1 2014-07-14 Pedro Alves <palves@redhat.com>
4 * top.c: Include "inf-loop.h".
5 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
7 (gdb_readline_wrapper_cleanup): Make the target async again, if it
9 (gdb_readline_wrapper): Store whether the target is async, and
12 2014-07-14 Pedro Alves <palves@redhat.com>
15 * top.c (gdb_readline_wrapper_line): Tweak comment.
16 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
17 the input handler callback.
19 2014-07-14 Pedro Alves <palves@redhat.com>
22 * main.c: Include event-top.h.
23 (handle_command_errors): New function.
24 (catch_command_errors, catch_command_errors_const): Use it.
26 2014-07-14 Pedro Alves <palves@redhat.com>
28 * exceptions.c (catch_command_errors, catch_command_errors_const):
30 * exceptions.h (catch_command_errors_ftype)
31 (catch_command_errors_const_ftype): Moved to main.c.
32 (catch_command_errors, catch_command_errors_const): Delete
34 * main.c (catch_command_errors_ftype)
35 (catch_command_errors_const_ftype): Moved here from exceptions.h.
36 (catch_command_errors, catch_command_errors_const)): Moved here
37 from exceptions.c and make static.
39 2014-07-14 Pedro Alves <palves@redhat.com>
41 * exceptions.c (print_any_exception): Delete.
42 (catch_exceptions_with_msg): Use exception_print instead of
44 (catch_errors): Use exception_fprintf instead of
46 (catch_command_errors, catch_command_errors_const): Use
47 exception_print instead of print_any_exception.
49 2014-07-14 Pedro Alves <palves@redhat.com>
51 * infcall.c (run_inferior_call): Set 'sync_execution' while
52 running the inferior call.
54 2014-07-14 Pedro Alves <palves@redhat.com>
56 * value.c (value_contents_equal): Delete function.
57 * value.h (value_contents_equal): Delete declaration.
59 2014-07-14 Tom Tromey <tromey@redhat.com>
62 * gdbtypes.c (is_dynamic_type_internal): New function, from
64 (is_dynamic_type): Rewrite.
65 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
66 (resolve_dynamic_struct): Likewise.
67 (resolve_dynamic_type_internal): New function, from
69 (resolve_dynamic_type): Rewrite.
71 2014-07-14 Tom Tromey <tromey@redhat.com>
73 * target.c (target_require_runnable): Also check record_stratum.
76 2014-07-11 Yao Qi <yao@codesourcery.com>
78 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
79 thumb_instruction_restores_sp return true.
81 2014-07-11 Yao Qi <yao@codesourcery.com>
83 * arm-tdep.c (thumb_instruction_restores_sp): New function.
84 (thumb_in_function_epilogue_p): Call
85 thumb_instruction_restores_sp.
87 2014-07-11 Yao Qi <yao@codesourcery.com>
89 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
91 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
93 2014-07-11 Gary Benson <gbenson@redhat.com>
95 * amd64-linux-nat.c (gdbcore.h): Remove include.
97 (nat/linux-btrace.h): Likewise.
99 (gdb_assert.h): Likewise.
100 (string.h): Likewise.
101 (sys/uio.h): Likewise.
102 (sys/debugreg.h): Likewise.
103 (sys/syscall.h): Likewise.
104 (sys/procfs.h): Likewise.
105 (sys/user.h): Likewise.
106 (asm/ptrace.h): Likewise.
107 (i386-nat.h): Likewise.
108 * i386-linux-nat.c (i386-nat.h): Likewise.
109 (regset.h): Likewise.
110 (target.h): Likewise.
111 (linux-nat.h): Likewise.
112 (nat/linux-btrace.h): Likewise.
113 (btrace.h): Likewise.
114 (gdb_assert.h): Likewise.
115 (string.h): Likewise.
116 (sys/uio.h): Likewise.
117 (sys/user.h): Likewise.
118 (sys/procfs.h): Likewise.
119 (sys/reg.h): Likewise.
120 (sys/debugreg.h): Likewise.
121 (ORIG_EAX): Remove definition.
123 2014-07-11 Gary Benson <gbenson@redhat.com>
125 * i386-linux-nat.h: New file.
126 * x86-linux-nat.h: Likewise.
127 * x86-linux-nat.c: Likewise.
128 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
129 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
130 * config/i386/linux64.mh (NATDEPFILES): Likewise.
131 * amd64-linux-nat.c (x86-linux-nat.h): New include.
132 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
133 (PTRACE_SETREGSET): Likewise.
134 (arch_lwp_info): Now in x86-linux-nat.c.
135 (have_ptrace_getregset): Now in x86-linux-nat.h.
136 (x86_linux_dr_get): Now in x86-linux-nat.c.
137 (x86_linux_dr_set): Likewise.
138 (x86_linux_dr_get_addr): Likewise.
139 (x86_linux_dr_get_control): Likewise.
140 (x86_linux_dr_get_status): Likewise.
141 (update_debug_registers_callback): Likewise.
142 (x86_linux_dr_set_control): Likewise.
143 (x86_linux_dr_set_addr): Likewise.
144 (x86_linux_prepare_to_resume): Likewise.
145 (x86_linux_new_thread): Likewise.
146 (x86_linux_new_fork): Likewise.
147 (x86_linux_get_thread_area): Likewise.
148 (super_post_startup_inferior): Likewise.
149 (x86_linux_child_post_startup_inferior): Likewise.
150 (AMD64_LINUX_USER64_CS): Likewise.
151 (AMD64_LINUX_X32_DS): Likewise.
152 (x86_linux_read_description): Likewise.
153 (x86_linux_enable_btrace): Likewise.
154 (x86_linux_disable_btrace): Likewise.
155 (x86_linux_teardown_btrace): Likewise.
156 (x86_linux_read_btrace): Likewise.
157 (x86_linux_create_target): Likewise.
158 (x86_linux_add_target): Likewise.
159 * i386-linux-nat.c (x86-linux-nat.h): New include.
160 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
161 (PTRACE_SETREGSET): Likewise.
162 (arch_lwp_info): Now in x86-linux-nat.c.
163 (have_ptrace_getregset): Now in x86-linux-nat.h.
164 (x86_linux_dr_get): Now in x86-linux-nat.c.
165 (x86_linux_dr_set): Likewise.
166 (x86_linux_dr_get_addr): Likewise.
167 (x86_linux_dr_get_control): Likewise.
168 (x86_linux_dr_get_status): Likewise.
169 (update_debug_registers_callback): Likewise.
170 (x86_linux_dr_set_control): Likewise.
171 (x86_linux_dr_set_addr): Likewise.
172 (x86_linux_prepare_to_resume): Likewise.
173 (x86_linux_new_thread): Likewise.
174 (x86_linux_new_fork): Likewise.
175 (x86_linux_get_thread_area): Likewise.
176 (super_post_startup_inferior): Likewise.
177 (x86_linux_child_post_startup_inferior): Likewise.
178 (AMD64_LINUX_USER64_CS): Likewise.
179 (AMD64_LINUX_X32_DS): Likewise.
180 (x86_linux_read_description): Likewise.
181 (x86_linux_enable_btrace): Likewise.
182 (x86_linux_disable_btrace): Likewise.
183 (x86_linux_teardown_btrace): Likewise.
184 (x86_linux_read_btrace): Likewise.
185 (x86_linux_create_target): Likewise.
186 (x86_linux_add_target): Likewise.
188 2014-07-11 Gary Benson <gbenson@redhat.com>
190 * amd64-linux-nat.c: Comment and whitespace changes.
191 * i386-linux-nat.c: Comment and whitespace changes.
193 2014-07-11 Gary Benson <gbenson@redhat.com>
195 * amd64-linux-nat.c (x86_linux_create_target): New function.
196 (x86_linux_add_target): Likewise.
197 (_initialize_amd64_linux_nat): Delegate to the above new functions.
198 * i386-linux-nat.c (x86_linux_create_target): New function.
199 (x86_linux_add_target): Likewise.
200 (_initialize_i386_linux_nat): Delegate to the above new functions.
202 2014-07-11 Gary Benson <gbenson@redhat.com>
204 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
205 (ps_get_thread_area): Delegate to the above in 32-bit mode.
206 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
207 (ps_get_thread_area): Delegate to the above.
209 2014-07-11 Gary Benson <gbenson@redhat.com>
211 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
212 x86_linux_read_description. All uses updated. amd64-specific
213 code conditionalized. Conditionalized i386-specific code added.
214 Redundant cast removed.
215 * i386-linux-nat.c (i386_linux_read_description): Renamed to
216 x86_linux_read_description. All uses updated. i386-specific
217 code conditionalized. Conditionalized amd64-specific code added.
218 One sizeof replaced with the actual type it is describing.
220 2014-07-11 Gary Benson <gbenson@redhat.com>
222 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
223 x86_linux_dr_get. All uses updated.
224 (amd64_linux_dr_set): Renamed to
225 x86_linux_dr_set. All uses updated.
226 (amd64_linux_dr_get_addr): Renamed to
227 x86_linux_dr_get_addr. All uses updated.
228 (amd64_linux_dr_get_control): Renamed to
229 x86_linux_dr_get_control. All uses updated.
230 (amd64_linux_dr_get_status): Renamed to
231 x86_linux_dr_get_status. All uses updated.
232 (amd64_linux_dr_set_control): Renamed to
233 x86_linux_dr_set_control. All uses updated.
234 (amd64_linux_dr_set_addr): Renamed to
235 x86_linux_dr_set_addr. All uses updated.
236 (amd64_linux_prepare_to_resume): Renamed to
237 x86_linux_prepare_to_resume. All uses updated.
238 (amd64_linux_new_thread): Renamed to
239 x86_linux_new_thread. All uses updated.
240 (amd64_linux_new_fork): Renamed to
241 x86_linux_new_fork. All uses updated.
242 (amd64_linux_child_post_startup_inferior): Renamed to
243 x86_linux_child_post_startup_inferior. All uses updated.
244 (amd64_linux_enable_btrace): Renamed to
245 x86_linux_enable_btrace. All uses updated.
246 (amd64_linux_disable_btrace): Renamed to
247 x86_linux_disable_btrace. All uses updated.
248 (amd64_linux_teardown_btrace): Renamed to
249 x86_linux_teardown_btrace. All uses updated.
250 (amd64_linux_read_btrace): Renamed to
251 x86_linux_read_btrace. All uses updated.
252 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
253 x86_linux_dr_get. All uses updated.
254 (i386_linux_dr_set): Renamed to
255 x86_linux_dr_set. All uses updated.
256 (i386_linux_dr_get_addr): Renamed to
257 x86_linux_dr_get_addr. All uses updated.
258 (i386_linux_dr_get_control): Renamed to
259 x86_linux_dr_get_control. All uses updated.
260 (i386_linux_dr_get_status): Renamed to
261 x86_linux_dr_get_status. All uses updated.
262 (i386_linux_dr_set_control): Renamed to
263 x86_linux_dr_set_control. All uses updated.
264 (i386_linux_dr_set_addr): Renamed to
265 x86_linux_dr_set_addr. All uses updated.
266 (i386_linux_prepare_to_resume): Renamed to
267 x86_linux_prepare_to_resume. All uses updated.
268 (i386_linux_new_thread): Renamed to
269 x86_linux_new_thread. All uses updated.
270 (i386_linux_new_fork): Renamed to
271 x86_linux_new_fork. All uses updated.
272 (i386_linux_child_post_startup_inferior): Renamed to
273 x86_linux_child_post_startup_inferior. All uses updated.
274 (i386_linux_enable_btrace): Renamed to
275 x86_linux_enable_btrace. All uses updated.
276 (i386_linux_disable_btrace): Renamed to
277 x86_linux_disable_btrace. All uses updated.
278 (i386_linux_teardown_btrace): Renamed to
279 x86_linux_teardown_btrace. All uses updated.
280 (i386_linux_read_btrace): Renamed to
281 x86_linux_read_btrace. All uses updated.
283 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
285 * remote.c (extended_remote_post_attach): New function.
286 (init_extended_remote_ops): Install it as to_post_attach method.
288 2014-07-09 Pedro Alves <palves@redhat.com>
290 * infcmd.c (attach_command_post_wait): Don't call
291 target_terminal_inferior here.
292 (attach_command): Call it here instead.
294 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
296 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
298 * c-varobj.c (c_is_path_expr_parent): New function, moved core
299 from varobj.c, with additional checks.
300 (c_varobj_ops): Fill in is_path_expr_parent field.
301 (cplus_varobj_ops): Fill in is_path_expr_parent field.
302 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
304 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
306 (varobj_default_is_path_expr_parent): New function.
307 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
308 (varobj_default_is_path_expr_parent): Declare new function.
310 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
312 * infcmd.c (finish_backward): Turn internal error into normal error.
314 2014-07-07 Pedro Alves <palves@redhat.com>
317 * remote.c (async_handle_remote_sigint)
318 (async_handle_remote_sigint_twice): Call
319 gdb_call_async_signal_handler instead of
320 mark_async_signal_handler.
322 2014-07-07 Tom Tromey <tromey@redhat.com>
324 * target-delegates.c: Rebuild.
325 * target.c (target_info_record): Remove.
326 * record.c (info_record_command): Unconditionally call
328 * target.h (struct target_ops) <to_info_record>: Use
329 TARGET_DEFAULT_IGNORE.
330 (target_info_record): Remove.
332 2014-07-07 Tom Tromey <tromey@redhat.com>
334 * target.h (struct target_ops) <to_get_thread_local_address>: Use
335 TARGET_DEFAULT_NORETURN.
336 * target.c (generic_tls_error): New function.
337 (target_translate_tls_address): Don't search target stack.
338 * target-delegates.c: Rebuild.
339 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
341 * linux-thread-db.c (thread_db_get_thread_local_address):
342 Unconditionally call beneath target.
344 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
346 * cli/cli-logging.c (pop_output_files): Assign targerr to
349 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
351 * MAINTAINERS (Write After Approval): Update my email address.
353 2014-07-02 Gary Benson <gbenson@redhat.com>
355 * proc-service.c (ps_xfer_memory): Update comment.
356 (ps_pstop): Remove unused function.
357 (ps_pcontinue): Likewise.
358 (ps_lstop): Likewise.
359 (ps_lcontinue): Likewise.
360 (ps_lgetxregsize): Likewise.
361 (ps_lgetxregs): Likewise.
362 (ps_lsetxregs): Likewise.
364 (ps_ptread): Likewise.
365 (ps_ptwrite): Likewise.
367 2014-07-01 Mark Wielaard <mjw@redhat.com>
369 * dwarf2read.c (add_array_cv_type): New function.
370 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
371 (read_tag_volatile_type): Likewise.
373 2014-07-01 Tom Tromey <tromey@redhat.com>
375 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
376 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
377 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
378 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
379 * command.h (cmd_cfunc_ftype): Move earlier.
380 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
381 (add_com, add_info): Use cmd_cfunc_ftype.
383 2014-06-30 Tom Tromey <tromey@redhat.com>
385 * symtab.c (operator_chars): Make parameters and return type
387 (file_matches): Make "files" const.
388 (struct search_symbols_data) <files>: Now const.
389 (search_symbols): Make "regexp" and "files" parameters const.
391 (symtab_symbol_info): Remove cast.
392 (rbreak_command): Update.
393 * symtab.h (search_symbols): Update.
395 2014-06-27 Yao Qi <yao@codesourcery.com>
397 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
398 Change parameter type to 'struct thread_info *'. Caller
400 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
402 * dummy-frame.c (struct dummy_frame_id): New.
403 (dummy_frame_id_eq): New function.
404 (struct dummy_frame) <id>: Change its type to 'struct
406 (dummy_frame_push): Add parameter ptid and save it in
408 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
410 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
412 (lookup_dummy_frame): Change parameter type to 'struct
413 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
414 instead of frame_id_eq.
415 (dummy_frame_pop): Add parameter ptid. Callers updated.
416 Update comments. Compose dummy_frame_id and pass it to
418 (dummy_frame_discard): Add parameter ptid.
419 (dummy_frame_sniffer): Compose dummy_frame_id and call
420 dummy_frame_id_eq instead of frame_id_eq.
421 (fprint_dummy_frames): Print ptid.
422 * dummy-frame.h: Remove comments.
423 (dummy_frame_push): Add ptid in declaration.
424 (dummy_frame_pop, dummy_frame_discard): Likewise.
426 2014-06-26 Tom Tromey <tromey@redhat.com>
428 * cli/cli-cmds.c (error_no_arg): Make "why" const.
429 * command.h (error_no_arg): Update.
431 2014-06-26 Tom Tromey <tromey@redhat.com>
433 * cli/cli-setshow.c (do_set_command): Make "arg" const.
434 (do_show_command): Make "arg" const.
435 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
437 2014-06-26 Tom Tromey <tromey@redhat.com>
439 * record-full.c (record_full_get_bookmark): Make "args" const.
440 (record_full_goto_bookmark): Make "raw_bookmark" const.
441 * record.c (record_goto): New function.
442 (cmd_record_goto): Use it. Now static.
443 * record.h (record_goto): Declare.
444 (cmd_record_goto): Remove declaration.
445 * target-delegates.c: Rebuild.
446 * target.h (struct target_ops) <to_get_bookmark,
447 to_goto_bookmark>: Make parameter const.
449 2014-06-26 Tom Tromey <tromey@redhat.com>
451 * defs.h (generic_load): Update.
452 * m32r-rom.c (m32r_load_gen): Make "filename" const.
453 * monitor.c (monitor_load): Make "args" const.
454 * remote-m32r-sdi.c (m32r_load): Make "args" const.
455 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
457 (mips_load): Make "file" const.
458 * remote-sim.c (gdbsim_load): Make "args" const.
459 * remote.c (remote_load): Make "name" const.
460 * symfile.c (generic_load): Make "args" const.
461 * target-delegates.c: Rebuild.
462 * target.c (target_load): Make "arg" const.
463 (debug_to_load): Make "args" const.
464 * target.h (struct target_ops) <to_load>: Make parameter const.
465 (target_load): Update.
467 2014-06-26 Tom Tromey <tromey@redhat.com>
470 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
471 (dwarf2_physname, read_partial_die)
472 (guess_partial_die_structure_name, fixup_partial_die)
473 (guess_full_die_structure_name, anonymous_struct_prefix)
474 (dwarf2_name): Use per-BFD obstack.
476 2014-06-26 Yao Qi <yao@codesourcery.com>
478 * dummy-frame.c (dummy_frame_sniffer): Move local variables
479 dummyframe and this_id into inner block below.
481 2014-06-26 Yao Qi <yao@codesourcery.com>
483 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
484 with "signal_pass[0]" in the initialization of signal_pass.
486 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
488 * record-btrace.c (record_btrace_generating_corefile)
489 (record_btrace_prepare_to_generate_core)
490 (record_btrace_done_generating_core): New.
491 (record_btrace_xfer_partial, record_btrace_fetch_registers)
492 (record_btrace_store_registers, record_btrace_prepare_to_store):
493 Forward request when generating a core file.
494 (record_btrace_open): Set record_btrace_generating_corefile to zero.
495 (init_record_btrace_ops): Set to_prepare_to_generate_core and
496 to_done_generating_core.
498 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
500 * target.h (target_ops) <to_prepare_to_generate_core>
501 <to_done_generating_core>: New.
502 (target_prepare_to_generate_core, target_done_generating_core): New.
503 * target.c (target_prepare_to_generate_core)
504 (target_done_generating_core): New.
505 * target-delegates.c: Regenerate.
506 * gcore.c: (write_gcore_file): Rename to ...
507 (write_gcore_file_1): ...this.
508 (write_gcore_file): Call target_prepare_to_generate_core
509 and target_done_generating_core.
511 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
513 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
514 * gcore.c (write_gcore_file): Free memory returned from
516 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
517 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
519 2014-06-24 Yao Qi <yao@codesourcery.com>
521 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
522 (arm_linux_init_abi): Set skip_trampoline_code with
523 gdbarch_skip_trampoline_code instead of
524 find_solib_trampoline_target.
526 2014-06-24 Yao Qi <yao@codesourcery.com>
528 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
529 arm_skip_bx_reg returns non-zero.
531 2014-06-24 Yao Qi <yao@codesourcery.com>
533 * arm-tdep.c (arm_skip_bx_reg): New function.
534 (arm_skip_stub): Call arm_skip_bx_reg.
536 2014-06-23 Don Breazeal <donb@codesourcery.com>
538 * MAINTAINERS: Add myself as write-after-approval maintainer.
540 2014-06-23 Pedro Alves <palves@redhat.com>
542 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
543 DR_CONTROL before setting DR0..DR3.
544 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
545 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
546 bits of DR_CONTROL related to the debug register slot being
547 disabled. If all slots are vacant, clear local slowdown as well,
548 and assert DR_CONTROL is 0.
550 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
552 * python/lib/gdb/command/xmethods.py
553 (get_method_matchers_in_loci): Lookup xmethod matchers in the
554 current progspace only if the string "progspace" matches LOCUS_RE.
556 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
558 Fix --with-system-readline with readline-6.3 patch 5.
559 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
560 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
563 2014-06-20 Tom Tromey <tromey@redhat.com>
565 * dwarf2read.c (dw2_get_real_path): Use correct type in
567 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
569 2014-06-20 Gary Benson <gbenson@redhat.com>
571 * common/gdb_thread_db.h: Moved to nat. All includes updated.
572 * common/glibc_thread_db.h: Likewise.
573 * common/i386-cpuid.h: Likewise.
574 * common/i386-gcc-cpuid.h: Likewise.
575 * common/linux-btrace.h: Likewise.
576 * common/linux-osdata.h: Likewise.
577 * common/linux-procfs.h: Likewise.
578 * common/linux-ptrace.h: Likewise.
579 * common/mips-linux-watch.h: Likewise.
580 * common/linux-btrace.c: Moved to nat.
581 * common/linux-osdata.c: Likewise.
582 * common/linux-procfs.c: Likewise.
583 * common/linux-ptrace.c: Likewise.
584 * common/mips-linux-watch.c: Likewise.
585 * nat/gdb_thread_db.h: Moved from common.
586 * nat/glibc_thread_db.h: Likewise.
587 * nat/i386-cpuid.h: Likewise.
588 * nat/i386-gcc-cpuid.h: Likewise.
589 * nat/linux-btrace.c: Likewise.
590 * nat/linux-btrace.h: Likewise.
591 * nat/linux-osdata.c: Likewise.
592 * nat/linux-osdata.h: Likewise.
593 * nat/linux-procfs.c: Likewise.
594 * nat/linux-procfs.h: Likewise.
595 * nat/linux-ptrace.c: Likewise.
596 * nat/linux-ptrace.h: Likewise.
597 * nat/mips-linux-watch.c: Likewise.
598 * nat/mips-linux-watch.h: Likewise.
599 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
600 (object file files): Reordered.
601 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
602 of glibc_thread_db.h.
604 2014-06-20 Gary Benson <gbenson@redhat.com>
606 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
607 (i386_dr_low_type): Moved to nat/i386-dregs.h.
608 (i386_dr_low): Likewise.
609 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
610 (i386_dr_low_set_addr): Likewise.
611 (i386_dr_low_get_addr): Likewise.
612 (i386_dr_low_can_set_control): Likewise.
613 (i386_dr_low_set_control): Likewise.
614 (i386_dr_low_get_control): Likewise.
615 (i386_dr_low_get_status): Likewise.
616 (i386_get_debug_register_length): Likewise.
617 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
618 (i386_dr_low): Likewise.
619 * nat/i386-dregs.c (i386-low.h): Remove include.
620 (i386-nat.h): Likewise.
621 (nat/i386-dregs.h): New include.
622 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
623 (i386_dr_low_set_addr): Likewise.
624 (i386_dr_low_get_addr): Likewise.
625 (i386_dr_low_can_set_control): Likewise.
626 (i386_dr_low_set_control): Likewise.
627 (i386_dr_low_get_control): Likewise.
628 (i386_dr_low_get_status): Likewise.
629 (i386_get_debug_register_length): Likewise.
630 (debug_hw_points): Likewise.
632 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
634 * Makefile.in (SFILES): Add d-exp.y.
635 (YYFILES): Add d-exp.c.
636 (YYOBJ): Add d-exp.o.
637 (local-maintainer-clean): Delete d-exp.c.
639 * d-lang.h (d_parse): New declaration.
640 (d_error): New declaration.
641 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
642 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
643 PREC_ORDER operators.
644 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
646 2014-06-19 Yao Qi <yao@codesourcery.com>
648 * gdbthread.h (any_running): Remove the declaration.
649 * thread.c (any_running): Remove.
651 2014-06-19 Yao Qi <yao@codesourcery.com>
653 * gdbthread.h (struct thread_info) <state>: Change its type to
654 'enum thread_state'. Update comments.
656 2014-06-19 Pedro Alves <palves@redhat.com>
658 * gdbthread.h (ALL_THREADS): Delete.
659 (ALL_NON_EXITED_THREADS): New macro.
660 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
661 instead of ALL_THREADS.
662 * infrun.c (find_thread_needs_step_over)
663 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
664 instead of ALL_THREADS.
665 * record-btrace.c (record_btrace_open)
666 (record_btrace_stop_recording, record_btrace_close)
667 (record_btrace_is_replaying, record_btrace_resume)
668 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
669 * remote.c (append_pending_thread_resumptions): Likewise.
670 * thread.c (thread_apply_all_command): Likewise.
672 2014-06-19 Gary Benson <gbenson@redhat.com>
674 * i386-nat.c (i386_stopped_by_watchpoint):
675 Use i386_dr_stopped_by_watchpoint.
676 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
677 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
679 2014-06-19 Gary Benson <gbenson@redhat.com>
681 * nat/i386-dregs.c: New file.
682 * Makefile.in (i386-dregs.o): New rule.
683 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
684 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
685 * config/i386/darwin.mh (NATDEPFILES): Likewise.
686 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
687 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
688 * config/i386/go32.mh (NATDEPFILES): Likewise.
689 * config/i386/linux.mh (NATDEPFILES): Likewise.
690 * config/i386/linux64.mh (NATDEPFILES): Likewise.
691 * config/i386/mingw.mh (NATDEPFILES): Likewise.
692 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
693 * i386-nat.h (debug_hw_points): New declaration.
694 * i386-nat.c (breakpoint.h): Remove include.
695 (command.h): Likewise.
696 (target.h): Likewise.
697 (gdb_assert.h): Likewise.
698 (debug_hw_points): Made nonstatic.
699 (debug_printf): Now in i386-dregs.c.
700 (TARGET_HAS_DR_LEN_8): Likewise.
701 (DR_CONTROL_SHIFT): Likewise.
702 (DR_CONTROL_SIZE): Likewise.
703 (DR_RW_EXECUTE): Likewise.
704 (DR_RW_WRITE): Likewise.
705 (DR_RW_READ): Likewise.
706 (DR_RW_IORW): Likewise.
707 (DR_LEN_1): Likewise.
708 (DR_LEN_2): Likewise.
709 (DR_LEN_4): Likewise.
710 (DR_LEN_8): Likewise.
711 (DR_LOCAL_ENABLE_SHIFT): Likewise.
712 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
713 (DR_ENABLE_SIZE): Likewise.
714 (DR_LOCAL_SLOWDOWN): Likewise.
715 (DR_GLOBAL_SLOWDOWN): Likewise.
716 (DR_CONTROL_RESERVED): Likewise.
717 (I386_DR_CONTROL_MASK): Likewise.
718 (I386_DR_VACANT): Likewise.
719 (I386_DR_LOCAL_ENABLE): Likewise.
720 (I386_DR_GLOBAL_ENABLE): Likewise.
721 (I386_DR_DISABLE): Likewise.
722 (I386_DR_SET_RW_LEN): Likewise.
723 (I386_DR_GET_RW_LEN): Likewise.
724 (I386_DR_WATCH_HIT): Likewise.
725 (i386_wp_op_t): Likewise.
726 (i386_show_dr): Likewise.
727 (i386_length_and_rw_bits): Likewise.
728 (i386_insert_aligned_watchpoint): Likewise.
729 (i386_remove_aligned_watchpoint): Likewise.
730 (i386_handle_nonaligned_watchpoint): Likewise.
731 (i386_update_inferior_debug_regs): Likewise.
732 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
733 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
734 (i386_region_ok_for_watchpoint):
735 Use i386_dr_region_ok_for_watchpoint.
736 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
738 2014-06-19 Gary Benson <gbenson@redhat.com>
740 * i386-nat.c (i386_insert_hw_breakpoint): Use
741 i386_insert_watchpoint.
742 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
744 2014-06-19 Gary Benson <gbenson@redhat.com>
746 * i386-nat.c (i386_dr_show): Renamed to
747 i386_show_dr and made static. All uses updated.
748 (i386_dr_length_and_rw_bits): Renamed to
749 i386_length_and_rw_bits and made static.
751 (i386_dr_insert_aligned_watchpoint): Renamed to
752 i386_insert_aligned_watchpoint and made static.
754 (i386_dr_remove_aligned_watchpoint): Renamed to
755 i386_remove_aligned_watchpoint and made static.
757 (i386_dr_update_inferior_debug_regs): Renamed to
758 i386_update_inferior_debug_regs and made static.
760 * nat/i386-dregs.h (i386_dr_show): Removed.
761 (i386_dr_length_and_rw_bits): Likewise.
762 (i386_dr_insert_aligned_watchpoint): Likewise.
763 (i386_dr_remove_aligned_watchpoint): Likewise.
764 (i386_dr_update_inferior_debug_regs): Likewise.
766 2014-06-19 Gary Benson <gbenson@redhat.com>
768 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
769 * configure: Regenerate.
770 * config.in: Likewise.
771 * main.c (signal.h): New include.
772 (setup_alternate_signal_stack): New function.
773 (captured_main): Call the above.
774 * cp-support.c (signal.h): New include.
775 (catch_demangler_crashes): New flag.
776 (SIGJMP_BUF): New define.
777 (SIGSETJMP): Likewise.
778 (SIGLONGJMP): Likewise.
779 (gdb_demangle_jmp_buf): New static global.
780 (gdb_demangle_attempt_core_dump): Likewise.
781 (gdb_demangle_signal_handler): New function.
782 (gdb_demangle): If catch_demangler_crashes is set, install the
783 above signal handler before calling bfd_demangle, and restore
784 the original signal handler afterwards. Display the offending
785 symbol and call demangler_warning the first time a segmentation
787 (_initialize_cp_support): New maint set/show command.
789 2014-06-19 Gary Benson <gbenson@redhat.com>
791 * utils.h (resource_limit_kind): New enum.
792 (can_dump_core): New declaration.
793 (warn_cant_dump_core): Likewise.
794 (dump_core): Likewise.
795 * utils.c (dump_core): Made nonstatic. Added new
796 parameter "limit_kind".
797 (can_dump_core): Made nonstatic. Moved printing code to...
798 (warn_cant_dump_core): New function.
799 (can_dump_core_warn): Likewise.
800 (internal_vproblem): Replace calls to can_dump_core with
801 calls to can_dump_core_warn. Supply new argument to each.
803 2014-06-19 Gary Benson <gbenson@redhat.com>
805 * utils.h (demangler_vwarning): New declaration.
806 (demangler_warning): Likewise.
807 * utils.c (struct internal_problem)
808 <user_settable_should_quit>: New field.
809 <user_settable_should_dump_core>: Likewise
810 (internal_error_problem): Add values for above new fields.
811 (internal_warning_problem): Likewise.
812 (demangler_warning_problem): New static global.
813 (demangler_vwarning): New function.
814 (demangler_warning): Likewise.
815 (add_internal_problem_command): Selectively add commands.
816 (_initialize_utils): New internal problem command.
817 * maint.c (maintenance_demangler_warning): New function.
818 (_initialize_maint_cmds): New command.
820 2014-06-18 Tom Tromey <tromey@redhat.com>
822 * f-valprint.c (info_common_command_for_block): Update.
823 * symtab.h (struct general_symbol_info) <common_block>: Now
826 2014-06-18 Tom Tromey <tromey@redhat.com>
828 * symtab.h (struct symtab) <blockvector>: Now const.
829 * ada-lang.c (ada_add_global_exceptions): Update.
830 * buildsym.c (augment_type_symtab): Update.
831 * dwarf2read.c (dw2_lookup_symbol): Update.
832 * jit.c (finalize_symtab): Update.
833 * jv-lang.c (add_class_symtab_symbol): Update.
834 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
836 * objfiles.c (objfile_relocate1): Update.
837 * psymtab.c (lookup_symbol_aux_psymtabs)
838 (maintenance_check_psymtabs): Update.
839 * python/py-symtab.c (stpy_global_block, stpy_static_block):
841 * spu-tdep.c (spu_catch_start): Update.
842 * symmisc.c (dump_symtab_1): Update.
843 * symtab.c (lookup_global_symbol_from_objfile)
844 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
845 (basic_lookup_transparent_type_quick)
846 (basic_lookup_transparent_type, find_pc_sect_symtab)
847 (find_pc_sect_line, search_symbols): Update.
848 * block.c (find_block_in_blockvector): Make "bl" const.
849 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
851 (blockvector_contains_pc): Make "bv" const.
852 (block_for_pc_sect): Update.
853 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
854 (blockvector_contains_pc): Update.
855 * breakpoint.c (resolve_sal_pc): Update.
856 * inline-frame.c (block_starting_point_at): Update.
858 2014-06-18 Tom Tromey <tromey@redhat.com>
860 * completer.c (complete_line): Make "line_buffer" const.
861 * completer.h (complete_line): Update.
863 2014-06-18 Tom Tromey <tromey@redhat.com>
865 * symtab.c (add_macro_name): Remove unneeded cast.
867 2014-06-18 Tom Tromey <tromey@redhat.com>
869 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
870 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
872 2014-06-18 Tom Tromey <tromey@redhat.com>
874 * probe.c (info_probes_for_ops): Make "arg" const.
875 * probe.h (info_probes_for_ops): Update.
877 2014-06-18 Tom Tromey <tromey@redhat.com>
879 * varobj.c (varobj_create): Update.
880 * valops.c (value_of_this): Update.
881 * tracepoint.c (add_local_symbols, scope_info): Update.
882 * symtab.h (struct general_symbol_info) <block>: Now const.
883 * symtab.c (skip_prologue_sal)
884 (default_make_symbol_completion_list_break_on)
885 (skip_prologue_using_sal): Update.
886 * stack.h (iterate_over_block_locals)
887 (iterate_over_block_local_vars): Update.
888 * stack.c (print_frame_args): Update.
889 (iterate_over_block_locals, iterate_over_block_local_vars): Make
891 (get_selected_block): Make return type const.
892 * python/py-frame.c (frapy_block): Update.
893 * python/py-block.c (gdbpy_block_for_pc): Update.
894 * p-exp.y (%union) <bval>: Now const.
895 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
896 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
897 * m2-exp.y (%union) <bval>: Now const.
898 * linespec.c (get_current_search_block): Make return type const.
899 (create_sals_line_offset, find_label_symbols): Update.
900 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
902 (block_starting_point_at): Make "block" const.
903 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
904 (check_exception_resume): Update.
905 * guile/scm-frame.c (gdbscm_frame_block): Update.
906 * guile/scm-block.c (gdbscm_lookup_block): Update.
907 * frame.h (get_frame_block): Update.
908 (get_selected_block): Make return type const.
909 * frame.c (frame_id_inner): Update.
910 * f-valprint.c (info_common_command_for_block)
911 (info_common_command): Update.
912 * dwarf2loc.c (dwarf2_find_location_expression)
913 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
914 (locexpr_describe_location_piece): Update.
915 * c-exp.y (%union) <bval>: Now const.
916 * breakpoint.c (resolve_sal_pc): Update.
917 * blockframe.c (get_frame_block):Make return type const.
918 (get_pc_function_start, get_frame_function, find_pc_sect_function)
919 (block_innermost_frame): Update.
920 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
921 (block_for_pc, block_for_pc_sect): Update.
922 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
924 (block_for_pc_sect, block_for_pc): Make return type const.
925 * ax-gdb.c (gen_expr): Update.
926 * alpha-mdebug-tdep.c (find_proc_desc): Update.
927 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
928 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
929 (ada_read_var_value): Update.
930 * ada-exp.y (struct name_info) <block>: Now const.
932 (block_lookup): Constify.
934 2014-06-18 Gary Benson <gbenson@redhat.com>
936 * nat/i386-dregs.h: New file.
937 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
938 * i386-nat.h (i386-dregs.h): New include.
939 (DR_FIRSTADDR): Now in i386-dregs.h.
940 (DR_LASTADDR): Likewise.
941 (DR_NADDR): Likewise.
942 (DR_STATUS): Likewise.
943 (DR_CONTROL): Likewise.
944 (i386_debug_reg_state): Likewise.
945 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
947 2014-06-18 Don Breazeal <donb@codesourcery.com>
949 * breakpoint.c (set_longjmp_breakpoint): Call
950 momentary_breakpoint_from_master with additional argument.
951 (set_longjmp_breakpoint_for_call_dummy): Call
952 momentary_breakpoint_from_master with additional argument.
953 (set_std_terminate_breakpoint): Call
954 momentary_breakpoint_from_master with additional argument.
955 (momentary_breakpoint_from_master): Add argument to function
956 definition and use it to initialize structure member flag.
957 (clone_momentary_breakpoint): Call
958 momentary_breakpoint_from_master with additional argument.
959 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
960 member flags set in momentary_breakpoint_from_master.
962 2014-06-18 Gary Benson <gbenson@redhat.com>
964 * i386-nat.c (i386_show_dr): Renamed to
965 i386_dr_show and made nonstatic. All uses updated.
966 (i386_length_and_rw_bits): Renamed to
967 i386_dr_length_and_rw_bits and made nonstatic.
969 (i386_insert_aligned_watchpoint): Renamed to
970 i386_dr_insert_aligned_watchpoint and made nonstatic.
972 (i386_remove_aligned_watchpoint): Renamed to
973 i386_dr_remove_aligned_watchpoint and made nonstatic.
975 (i386_update_inferior_debug_regs): Renamed to
976 i386_dr_update_inferior_debug_regs and made nonstatic.
979 2014-06-18 Gary Benson <gbenson@redhat.com>
981 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
982 (i386_dr_low_can_set_control): Likewise.
983 (i386_dr_low_set_addr): Likewise.
984 (i386_dr_low_set_control): Likewise.
985 (i386_dr_low_get_addr): Likewise.
986 (i386_dr_low_get_status): Likewise.
987 (i386_dr_low_get_control): Likewise.
988 (i386_insert_aligned_watchpoint): Use new macros.
989 (i386_update_inferior_debug_regs): Likewise.
990 (i386_stopped_data_address): Likewise.
992 2014-06-18 Gary Benson <gbenson@redhat.com>
994 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
995 New parameter. All uses updated.
997 2014-06-18 Gary Benson <gbenson@redhat.com>
999 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1002 2014-06-18 Gary Benson <gbenson@redhat.com>
1004 * i386-nat.c (debug_printf): New macro.
1005 (i386_get_debug_register_length): Likewise.
1006 (TARGET_HAS_DR_LEN_8): Use above macro.
1007 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1008 and printf_unfiltered. Use phex to format values.
1010 2014-06-18 Gary Benson <gbenson@redhat.com>
1012 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1015 2014-06-18 Gary Benson <gbenson@redhat.com>
1017 * i386-nat.c: Comment changes.
1019 2014-06-18 Gary Benson <gbenson@redhat.com>
1021 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1023 2014-06-18 Gary Benson <gbenson@redhat.com>
1025 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1026 (i386_insert_aligned_watchpoint): Likewise.
1027 (i386_remove_aligned_watchpoint): Likewise.
1028 (i386_handle_nonaligned_watchpoint): Likewise.
1030 2014-06-18 Gary Benson <gbenson@redhat.com>
1032 * i386-nat.c: Whitespace changes.
1034 2014-06-17 Samuel Bronson <naesten@gmail.com>
1036 * MAINTAINERS: Update Roland McGrath's email address.
1037 Thanks to Sergio Durigan Junior for pointing out that he left
1038 Red Hat a while ago, and giving me a current address.
1040 2014-06-17 Tom Tromey <tromey@redhat.com>
1042 * utils.h (savestring): Remove declaration.
1044 2014-06-17 Tom Tromey <tromey@redhat.com>
1046 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1048 2014-06-16 Keith Seitz <keiths@redhat.com>
1051 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1052 to update the varobj if inferior_ptid is null_ptid.
1054 2014-06-16 Tom Tromey <tromey@redhat.com>
1056 * target.h (struct target_ops) <to_info_proc>: Make parameter
1058 (target_info_proc): Update.
1059 * target.c (target_info_proc): Make "args" const.
1060 * procfs.c (procfs_info_proc): Update.
1061 * linux-tdep.c (linux_info_proc): Update.
1062 (linux_core_info_proc_mappings): Make "args" const.
1063 (linux_core_info_proc): Update.
1064 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1065 * gdbarch.c: Rebuild.
1066 * gdbarch.h: Rebuild.
1067 * corelow.c (core_info_proc): Update.
1069 2014-06-16 Tom Tromey <tromey@redhat.com>
1071 * target.h (struct target_ops) <to_disconnect>: Make parameter
1073 (target_disconnect): Update.
1074 * target.c (target_disconnect): Make "args" const.
1075 * target-delegates.c: Rebuild.
1076 * remote.c (remote_disconnect): Update.
1077 * record.h (record_disconnect): Update.
1078 * record.c (record_disconnect): Update.
1079 * inf-child.c (inf_child_disconnect): Update.
1081 2014-06-16 Tom Tromey <tromey@redhat.com>
1083 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1084 * target.c (debug_to_rcmd, default_rcmd): Update.
1085 * target-delegates.c: Rebuild.
1086 * remote.c (remote_rcmd): Update.
1087 * monitor.c (monitor_rcmd): Update.
1089 2014-06-16 Pedro Alves <palves@redhat.com>
1091 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1092 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1093 have OBJF_SHARED set.
1094 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1095 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1096 instead of OBJF_USERLOADED.
1097 * objfiles.h (OBJF_SHARED): Update comment.
1098 (userloaded_objfile_contains_address_p): Rename to ...
1099 (shared_objfile_contains_address_p): ... this, and update
1101 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1103 (remove_symbol_file_command): Skip objfiles that don't have
1106 2014-06-16 Tom Tromey <tromey@redhat.com>
1108 * minsyms.h (prim_record_minimal_symbol)
1109 (prim_record_minimal_symbol_and_info): Update comments.
1111 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1113 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1114 or --without-guile, according to how GDB was built.
1116 2014-06-13 Tom Tromey <tromey@redhat.com>
1118 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1120 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1122 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1124 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1125 help_list.Pass all_commands, not -1, to help_list.
1126 * cli/cli-dump.c (dump_command, append_command)
1127 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1128 (binary_dump_command, binary_append_command): Pass all_commands,
1129 not -1, to help_list.
1130 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1132 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1134 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1136 * top.c (set_history): Pass all_commands, not -1, to help_list.
1137 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1138 all_commands, not -1, to help_list.
1139 * symfile.c (overlay_command): Pass all_commands, not -1, to
1141 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1143 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1145 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1147 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1148 not -1, to help_list.
1149 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1150 not -1, to help_list.
1151 * maint.c (maintenance_command, maintenance_info_command)
1152 (maintenance_print_command, maintenance_set_cmd): Pass
1153 all_commands, not -1, to help_list.
1154 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1156 * language.c (set_check): Pass all_commands, not -1, to help_list.
1157 * infcmd.c (unset_command): Pass all_commands, not -1, to
1159 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1161 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1163 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1165 * breakpoint.c (save_command): Pass all_commands, not -1, to
1167 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1168 all_commands, not -1, to help_list.
1170 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1172 * regcache.c (struct register_to_invalidate): New structure.
1173 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1175 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1177 2014-06-12 Yao Qi <yao@codesourcery.com>
1179 * varobj.c (varobj_get_num_children): Call
1180 varobj_is_dynamic_p.
1181 (varobj_list_children): Likewise.
1182 (varobj_update): Likewise. Update comments.
1184 2014-06-12 Yao Qi <yao@codesourcery.com>
1186 * varobj.c (varobj_pretty_printed_p): Rename to ...
1187 (varobj_is_dynamic_p): ... this. New function.
1188 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1189 (varobj_is_dynamic_p): Declare.
1190 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1191 (mi_print_value_p, varobj_update_one): Likewise.
1193 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1194 Yao Qi <yao@codesourcery.com>
1196 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1197 (varobj_get_iterator): Wrap up code for pretty-printer by
1198 "#if HAVE_PYTHON" and "#endif".
1199 (update_dynamic_varobj_children): Likewise.
1201 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1202 Yao Qi <yao@codesourcery.com>
1204 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1205 gdb_python_initialized is false. Move some code from varobj.c.
1206 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1207 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1208 (struct varobj_item): Moved to varobj-iter.h".
1209 (varobj_clear_saved_item): New function.
1210 (update_dynamic_varobj_children): Move python-related code to
1212 (free_variable): Call varobj_clear_saved_item and
1215 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1216 Yao Qi <yao@codesourcery.com>
1218 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1219 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1220 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1221 (py-varobj.o): New rule.
1222 * python/py-varobj.c: New file.
1223 * python/python-internal.h (py_varobj_get_iterator): Declare.
1224 * varobj-iter.h: New file.
1225 * varobj.c: Include "varobj-iter.h"
1226 (struct varobj) <child_iter>: Change its type from "PyObject *"
1227 to "struct varobj_iter *".
1228 <saved_item>: Likewise.
1229 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1230 [HAVE_PYTHON] (varobj_get_iterator): New function.
1231 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1232 python-specific code to python/py-varobj.c.
1233 (install_visualizer): Call varobj_iter_delete instead of
1235 * varobj.h (varobj_ensure_python_env): Declare.
1237 2014-06-12 Yao Qi <yao@codesourcery.com>
1239 * varobj.c (struct varobj_item): New structure.
1240 (create_child_with_value): Update declaration.
1241 (varobj_add_child): Replace arguments 'name' and 'value' with
1242 'item'. All callers updated.
1243 (install_dynamic_child): Likewise.
1244 (update_dynamic_varobj_children): Likewise.
1245 (varobj_add_child): Likewise.
1246 (create_child_with_value): Likewise.
1248 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1250 * NEWS: Create a new section for the next release branch.
1251 Rename the section of the current branch, now that it has
1254 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1256 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1257 * version.in: Bump version to 7.8.50.DATE-cvs.
1259 2014-06-11 Pedro Alves <palves@redhat.com>
1262 * ser-mingw.c (net_windows_socket_check_pending): New function.
1263 (net_windows_select_thread): Ignore spurious wakeups. Use
1264 net_windows_socket_check_pending.
1265 (net_windows_wait_handle): Check for pending events with
1266 ioctlsocket, through net_windows_socket_check_pending, instead of
1267 checking the socket's event.
1269 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1271 * python/python-internal.h (gdb_PyObject_GetAttrString)
1272 (gdb_PyObject_HasAttrString): New inline function definitions.
1273 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1274 char * of the second argument to PyObject_GetAttrString.
1276 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1278 * serial.c (serial_write): Fix index of character to be printed
1279 in call to serial_logchar when serial debug traces are enabled.
1281 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1283 * gdbtypes (resolve_dynamic_range): Add function description.
1285 2014-06-09 Pedro Alves <palves@redhat.com>
1287 * linux-nat.c (linux_child_follow_fork): Initialize status with
1288 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1289 inner block. Only pass the signal to PTRACE_DETACH if in pass
1292 2014-06-09 Gary Benson <gbenson@redhat.com>
1294 * common/signals.c (gdb_signal_from_host): Reorder to separate
1295 the always-available ANSI-standard signals from the signals that
1297 (do_gdb_signal_to_host): Likewise.
1298 * proc-events.c (signal_table): Likewise.
1300 2014-06-08 Hui Zhu <hui@codesourcery.com>
1302 * common/linux-ptrace.c (linux_disable_event_reporting): New
1304 * common/linux-ptrace.h (linux_disable_event_reporting): New
1306 * linux-nat.c (linux_child_follow_fork): Do a single step before
1309 2014-06-07 Keith Seitz <keiths@redhat.com>
1313 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1314 from symbol_matches_domain in symtab.c. All local callers
1315 of symbol_matches_domain updated.
1316 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1317 search STRUCT_DOMAIN.
1318 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1319 independently. standard_lookup will do that automatically.
1320 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1321 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1322 (cp_lookup_symbol_in_namespace): Likewise.
1323 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1324 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1325 may return a STRUCT_DOMAIN match.
1326 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1327 * cp-support.c: Include language.h.
1328 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1330 * psymtab.c (match_partial_symbol): Compare the requested
1331 domain with the symbol's domain directly.
1332 (lookup_partial_symbol): Likewise.
1333 * symtab.c (lookup_symbol_in_language): Explain when/why
1334 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1335 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1336 appropriate languages.
1337 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1338 and moved to ada-lang.c
1339 (lookup_block_symbol): Explain that this function only returns
1340 symbol matching the requested DOMAIN.
1341 Compare the requested domain with the symbol's domain directly.
1342 (iterate_over_symbols): Compare the requested domain with the
1343 symbol's domain directly.
1344 * symtab.h (symbol_matches_domain): Remove.
1346 2014-06-06 Doug Evans <xdje42@gmail.com>
1348 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1349 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1350 (gdbscm_guile_version_is_at_least): Declare.
1351 (gdbscm_scm_string_to_int): Declare.
1352 * guile/guile.c (gdbscm_guile_major_version): New global.
1353 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1354 (guile_datadir): New static global.
1355 (gdbscm_guile_data_directory): New function.
1356 (initialize_scheme_side): Update.
1357 (misc_guile_functions): Add guile-data-directory.
1358 (initialize_gdb_module): Fetch guile version number.
1359 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1360 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1361 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1362 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1364 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1365 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1366 * guile/scm-value.c (gdbscm_value_to_string): Only call
1367 scm_port_conversion_strategy if Guile version >= 2.0.6.
1369 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1371 * main.c (print_gdb_help): Add -q and --silent.
1373 2014-06-06 Gary Benson <gbenson@redhat.com>
1375 * common/signals.c: Remove preprocessor conditionals for
1376 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1377 SIGSEGV and SIGTERM.
1378 * proc-events.c: Likewise.
1380 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1382 * symfile.c (symfile_free_objfile): Remove restriction to
1384 * symfile-mem.c (symbol_file_add_from_memory): Call
1385 add_target_sections_of_objfile.
1387 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1389 * guile/scm-value.c (gdbscm_history_append_x): Use
1390 'vlscm_get_value_smob_arg_unsafe' instead of
1391 'vlscm_scm_to_value'.
1393 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1396 * utils.c (printchar): Don't escape at all if quoter is NUL.
1397 Update function documentation to clarify effect of parameter
1399 * remote.c (escape_buffer): Pass '\\' as the quoter to
1400 fputstrn_unfiltered.
1401 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1402 generate the output.
1403 (mi_solib_unloaded): Same.
1405 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1407 * development.sh: Delete.
1408 * Makefile.in (config.status): Adjust dependency on development.sh.
1409 * configure.ac: Adjust development.sh source call.
1410 * configure: Regenerate.
1412 2014-06-04 Doug Evans <xdje42@gmail.com>
1414 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1415 is_scheme_bkpt, spec.
1416 (bpscm_make_breakpoint_smob): Initialize new members.
1417 (gdbscm_create_breakpoint_x): Split into two ...
1418 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1419 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1420 (scheme_function breakpoint_functions): Update.
1421 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1422 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1423 register-breakpoint!.
1425 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1428 * mem-break.c (z_type_supported): Return zero if
1429 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1431 2014-06-04 Tom Tromey <tromey@redhat.com>
1433 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1434 value_from_contents_and_address_unresolved.
1435 (ada_template_to_fixed_record_type_1): Likewise.
1436 (ada_which_variant_applies): Likewise.
1437 * value.h (value_from_contents_and_address_unresolved): Declare.
1438 * value.c (value_from_contents_and_address_unresolved): New
1440 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1441 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1442 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1444 2014-06-04 Tom Tromey <tromey@redhat.com>
1446 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1448 2014-06-04 Tom Tromey <tromey@redhat.com>
1450 * procfs.c (procfs_attach): Make "args" const.
1451 * windows-nat.c (windows_attach): Make "args" const.
1452 * nto-procfs.c (procfs_attach): Make "args" const.
1453 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1454 * go32-nat.c (go32_attach): Make "args" const.
1455 * gnu-nat.c (gnu_attach): Make "args" const.
1456 * darwin-nat.c (darwin_attach): Make "args" const.
1457 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1458 * linux-nat.c (linux_nat_attach): Make "args" const.
1459 * remote.c (extended_remote_attach_1, extended_remote_attach):
1461 * target.h (struct target_ops) <to_attach>: Make "args" const.
1462 (find_default_attach): Likewise.
1463 * utils.c (parse_pid_to_attach): Make "args" const.
1464 * utils.h (parse_pid_to_attach): Update.
1466 2014-06-04 Tom Tromey <tromey@redhat.com>
1468 * target-delegates.c: Rebuild.
1469 * target.c (default_thread_address_space): New function.
1470 (target_thread_address_space): Simplify.
1471 * target.h (struct target_ops) <to_thread_address_space>: Add
1472 TARGET_DEFAULT_FUNC.
1474 2014-06-04 Doug Evans <xdje42@gmail.com>
1476 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1478 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1480 * record-btrace.c: Include event-loop.h and inf-loop.h.
1481 (record_btrace_resume_exec_dir)
1482 (record_btrace_async_inferior_event_handler)
1483 (record_btrace_handle_async_inferior_event): New.
1484 (record_btrace_open): Create async event handler.
1485 (record_btrace_close): Delete async event handler.
1486 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1487 Mark async event handler.
1488 (record_btrace_execution_direction): New.
1489 (init_record_btrace_ops): Initialize to_execution_direction.
1491 2014-06-03 Doug Evans <xdje42@gmail.com>
1493 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1494 (gdbscm_make_parameter): Ditto.
1496 2014-06-03 Doug Evans <dje@google.com>
1498 * exec.c (exec_close_1): Call clear_section_table instead of
1499 resize_section_table.
1500 (clear_section_table): New function.
1501 (resize_section_table): Make static. Rename arg num_added to
1503 * exec.h (clear_section_table): Declare.
1504 (resize_section_table): Delete.
1505 * progspace.c (release_program_space): Call clear_section_table
1506 instead of resize_section_table.
1508 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1510 * NEWS (Python Scripting): Add entry about the new xmethods
1513 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1515 * python/py-xmethods.c: New file.
1516 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1517 (objfpy_dealloc): XDECREF on the new xmethods field.
1518 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1520 (objfpy_get_xmethods): New function.
1521 (objfile_getset): New entry 'xmethods'.
1522 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1523 (pspy_dealloc): XDECREF on the new xmethods field.
1524 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1526 (pspy_get_xmethods): New function.
1527 (pspace_getset): New entry 'xmethods'.
1528 * python/python-internal.h: Add declarations for new functions.
1529 * python/python.c (_initialize_python): Invoke
1530 gdbpy_initialize_xmethods.
1531 * python/lib/gdb/__init__.py (xmethods): New
1533 * python/lib/gdb/xmethod.py: New file.
1534 * python/lib/gdb/command/xmethods.py: New file.
1536 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1538 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1539 best match method returned by find_overload_match is an xmethod.
1540 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1541 the best matching operator returned by find_overload_match is an
1543 * valops.c: #include "extension.h".
1544 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1545 Return void. The list of matching source methods is returned in
1546 "fn_list" and a vector of matching debug method workers is
1547 returned in "xm_worker_vec". Update all callers.
1548 (value_find_oload_method_list): Likewise.
1549 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1550 non-NULL, then the index of the best matching method in this
1551 vector is returned. Update all callers.
1552 (find_overload_match): Include xmethods while performing overload
1555 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1557 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1558 * extension-priv.h (struct extension_language_ops): Add the
1560 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1561 get_matching_xmethod_workers, get_xmethod_argtypes,
1562 invoke_xmethod, free_xmethod_worker,
1563 free_xmethod_worker_vec): New functions.
1564 * extension.h: #include "common/vec.h".
1565 New function declarations.
1566 (struct xmethod_worker): New struct.
1567 (VEC (xmethod_worker_ptr)): New vector type.
1568 (xmethod_worker_ptr): New typedef.
1569 (xmethod_worker_vec): Likewise.
1570 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1572 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1573 (struct builtin_type): New field "xmethod".
1574 * valarith.c (value_ptradd): Assert that the value argument is not
1576 * valops.c (value_must_coerce_to_target): Return 0 for
1577 lval_xcallable values.
1578 * value.c (struct value): New field XM_WORKER in the field
1580 (value_address, value_raw_address): Return 0 for lval_xcallable
1582 (set_value_address): Assert that the value is not an
1584 (value_free): Free the associated xmethod worker when freeing
1585 lval_xcallable values.
1586 (set_value_component_location): Assert that the WHOLE value is not
1588 (value_of_xmethod, call_xmethod): New functions.
1589 * value.h: Declare "struct xmethod_worker".
1590 Declare new functions value_of_xmethod, call_xmethod.
1592 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1593 Pedro Alves <palves@redhat.com>
1595 PR breakpoints/17000
1596 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1597 New function, extracted from software_breakpoint_inserted_here_p.
1598 (software_breakpoint_inserted_here_p): Replace factored out code
1599 by call to find_non_raw_software_breakpoint_inserted_here.
1600 (bp_target_info_copy_insertion_state): New function.
1601 (bkpt_insert_location): Handle the case of a single-step
1602 breakpoint already inserted at the same address.
1603 (bkpt_remove_location): Handle the case of a single-step
1604 breakpoint still inserted at the same address.
1605 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1606 breakpoint already inserted at the same address.
1607 (deprecated_remove_raw_breakpoint): Handle the case of a
1608 non-raw breakpoint still inserted at the same address.
1609 (find_single_step_breakpoint): New function, extracted from
1610 single_step_breakpoint_inserted_here_p.
1611 (find_single_step_breakpoint): New function,
1612 factored out from single_step_breakpoint_inserted_here_p.
1613 (single_step_breakpoint_inserted_here_p): Reimplement.
1615 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1617 Pushed by Joel Brobecker <brobecker@adacore.com>
1618 * source.c (show_substitute_path_command): Fix display of matching
1621 2014-06-03 Gary Benson <gbenson@redhat.com>
1623 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1625 2014-06-02 Doug Evans <xdje42@gmail.com>
1627 Add parameter support for Guile.
1628 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1629 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1630 (scm-param.o): New rule.
1631 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1632 (gdbscm_misc_error): Declare.
1633 (gdbscm_canonicalize_command_name): Declare.
1634 (gdbscm_scm_to_host_string): Declare.
1635 (gdbscm_scm_from_host_string): Declare.
1636 (gdbscm_initialize_parameters): Declare.
1637 * guile/guile.c (initialize_gdb_module): Call
1638 gdbscm_initialize_parameters.
1639 * guile/lib/gdb.scm: Export parameter symbols.
1640 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1641 cmdscm_canonicalize_name and made public. All callers updated.
1642 * guile/scm-exception.c (gdbscm_misc_error): New function.
1643 * guile/scm-param.c: New file.
1644 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1645 (gdbscm_scm_to_host_string): New function.
1646 (gdbscm_scm_from_host_string): New function.
1647 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1649 2014-06-02 Doug Evans <xdje42@gmail.com>
1651 Add command support for Guile.
1652 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1653 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1654 (scm-cmd.o): New rule.
1655 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1656 (gdbscm_user_error_p): Declare.
1657 (gdbscm_parse_command_name): Declare.
1658 (gdbscm_valid_command_class_p): Declare.
1659 (gdbscm_initialize_commands): Declare.
1660 * guile/guile.c (initialize_gdb_module): Call
1661 gdbscm_initialize_commands.
1662 * guile/lib/gdb.scm: Export command symbols.
1663 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1664 (throw-user-error): New function.
1665 * guile/scm-cmd.c: New file.
1666 * guile/scm-exception.c (user_error_symbol): New static global.
1667 (gdbscm_user_error_p): New function.
1668 (gdbscm_initialize_exceptions): Set user_error_symbol.
1669 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1671 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1673 * top.c (command_loop): Handle comments here...
1674 (command_line_input): ... not here.
1676 2014-06-02 Doug Evans <xdje42@gmail.com>
1678 Add progspace support for Guile.
1679 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1680 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1681 (scm-progspace.o): New rule.
1682 * guile/guile-internal.h (pspace_smob): New typedef.
1683 (psscm_pspace_smob_pretty_printers): Declare.
1684 (psscm_pspace_smob_from_pspace): Declare.
1685 (psscm_scm_from_pspace): Declare.
1686 * guile/guile.c (initialize_gdb_module): Call
1687 gdbscm_initialize_pspaces.
1688 * guile/lib/gdb.scm: Export progspace symbols.
1689 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1691 (append-pretty-printer!): Ditto.
1692 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1694 * guile/scm-progspace.c: New file.
1696 2014-06-03 Alan Modra <amodra@gmail.com>
1698 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1699 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1701 2014-06-02 Doug Evans <dje@google.com>
1703 Add support for skeletonless type units.
1704 * dwarf2read.c (struct dwarf2_per_objfile): New member
1705 n_allocated_type_units.
1706 (struct dwarf2_per_objfile) <tu_stats>: New member
1707 nr_all_type_units_reallocs.
1708 (create_signatured_type_table_from_index): Initialize
1709 n_allocated_type_units
1710 (create_all_type_units): Ditto.
1711 (add_type_unit): Move up in file. New arg slot.
1712 All callers updated. Increase space for all_type_units more
1714 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1715 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1716 (lookup_dwp_signatured_type): Ditto.
1717 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1718 All callers updated.
1719 (build_type_psymtabs_1): Leave type_unit_groups as
1720 NULL if no TUs present.
1721 (print_tu_stats): New function.
1722 (process_skeletonless_type_unit): New function.
1723 (process_dwo_file_for_skeletonless_type_units): New
1725 (process_skeletonless_type_units): New function.
1726 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1727 Call print tu_stats if debugging enabled.
1729 2014-06-02 Pedro Alves <palves@redhat.com>
1731 * breakpoint.c (build_target_command_list): Don't build a command
1732 list if we have any duplicate location that isn't a dprintf.
1734 2014-06-02 Pedro Alves <palves@redhat.com>
1736 * breakpoint.c (dprintf_breakpoint_hit): New function.
1737 (initialize_breakpoint_ops): Install it as dprintf's
1738 breakpoint_hit method.
1740 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1742 * source.c (substitute_path_rule_matches): Simplify using
1743 filename_ncmp instead of FILENAME_CMP.
1745 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1747 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1749 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1751 * configure.ac: When Guile is available, check for the
1752 availability of 'scm_new_smob'.
1753 * configure, config.h.in: Regenerate.
1754 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1757 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1759 * frame.c (struct frame_info): Add stop_string field.
1760 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1761 (get_prev_frame_always): Old content moved into
1762 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1763 TRY_CATCH, handle MEMORY_ERROR exceptions.
1764 (frame_stop_reason_string): New function definition.
1765 * frame.h (unwind_stop_reason_to_string): Extend comment to
1766 mention frame_stop_reason_string.
1767 (frame_stop_reason_string): New function declaration.
1768 * stack.c (frame_info): Switch to frame_stop_reason_string.
1769 (backtrace_command_1): Switch to frame_stop_reason_string.
1770 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1771 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1772 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1774 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1776 * frame.c (frame_stop_reason_string): Rename to ...
1777 (unwind_stop_reason_to_string): this.
1778 * frame.h (frame_stop_reason_string): Rename to ...
1779 (unwind_stop_reason_to_string): this.
1780 * stack.c (frame_info): Update call to frame_stop_reason_string.
1781 (backtrace_command_1): Likewise.
1782 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1783 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1785 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1787 * frame.c (remove_prev_frame): New function.
1788 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1791 2014-05-29 Pedro Alves <palves@redhat.com>
1793 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1794 and make it const. When a single-step decays to a continue,
1795 clear 'step', not 'hw_step'. Pass whether the caller wanted
1796 to step to user_visible_resume_ptid, not what we ask the
1799 2014-05-29 Pedro Alves <palves@redhat.com>
1801 * infrun.c (process_event_stop_test, handle_step_into_function)
1802 (handle_step_into_function_backward): Adjust.
1803 Don't set the even thread's stop_step and call stop_waiting before
1804 calling end_stepping_range. Instead do that ...
1805 (end_stepping_range): ... here. Take an ecs pointer parameter.
1807 2014-05-29 Pedro Alves <palves@redhat.com>
1809 * infrun.c (stop_stepping): Rename to ...
1810 (stop_waiting): ... this.
1811 (proceed): Update comment.
1812 (process_event_stop_test, handle_inferior_event)
1813 (handle_signal_stop, handle_step_into_function)
1814 (handle_step_into_function_backward): Update.
1816 2014-05-29 Pedro Alves <palves@redhat.com>
1818 * infcall.c (run_inferior_call): Don't check whether the current
1819 thread is running after the proceed call.
1821 2014-05-29 Pedro Alves <palves@redhat.com>
1822 Tom Tromey <tromey@redhat.com>
1824 * NEWS: Mention "maint set target-async", "set mi-async", and that
1825 background execution commands are now always available.
1826 * target.h (target_async_permitted): Update comment.
1827 * target.c (target_async_permitted, target_async_permitted_1):
1829 (set_target_async_command): Rename to ...
1830 (maint_set_target_async_command): ... this.
1831 (show_target_async_command): Rename to ...
1832 (maint_show_target_async_command): ... this.
1833 (_initialize_target): Adjust.
1834 * infcmd.c (prepare_execution_command): Make extern.
1835 * inferior.h (prepare_execution_command): Declare.
1836 * infrun.c (set_observer_mode): Leave target async alone.
1837 * mi/mi-interp.c (mi_interpreter_init): Install
1838 mi_on_sync_execution_done as sync_execution_done observer.
1839 (mi_on_sync_execution_done): New function.
1840 (mi_execute_command_input_handler): Don't print the prompt if we
1841 just started a synchronous command with an async target.
1842 (mi_on_resume): Check sync_execution before printing prompt.
1843 * mi/mi-main.h (mi_async_p): Declare.
1844 * mi/mi-main.c: Include gdbcmd.h.
1845 (mi_async_p): New function.
1846 (mi_async, mi_async_1): New globals.
1847 (set_mi_async_command, show_mi_async_command, mi_async): New
1849 (exec_continue): Call prepare_execution_command.
1850 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1851 (mi_execute_async_cli_command): Use mi_async_p.
1852 (_initialize_mi_main): Install "set mi-async". Make
1853 "target-async" a deprecated alias.
1855 2014-05-29 Pedro Alves <palves@redhat.com>
1857 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1858 (_initialize_cli_interp): Adjust.
1859 * event-loop.c: Include "observer.h".
1860 (start_event_loop): Notify 'command_error' observers instead of
1861 calling display_gdb_prompt. Remove FIXME comment.
1862 * event-top.c (display_gdb_prompt): Remove call into the
1864 * inf-loop.c: Include "observer.h".
1865 (inferior_event_handler): Notify 'command_error' observers instead
1866 of calling display_gdb_prompt.
1867 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1868 observers instead of calling display_gdb_prompt.
1869 * interps.c (interp_set): Don't call display_gdb_prompt.
1870 (current_interp_display_prompt_p): Delete.
1871 * interps.h (interp_prompt_p): Delete declaration.
1872 (interp_prompt_p_ftype): Delete.
1873 (struct interp_procs) <prompt_proc_p>: Delete field.
1874 (current_interp_display_prompt_p): Delete declaration.
1875 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1876 (_initialize_mi_interp): Adjust.
1877 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1878 'command_error' observers.
1879 (tui_on_sync_execution_done, tui_on_command_error): New
1881 (tui_display_prompt_p): Delete.
1882 (_initialize_tui_interp): Adjust.
1884 2014-05-29 Pedro Alves <palves@redhat.com>
1887 * cli/cli-interp.c: Include infrun.h and observer.h.
1888 (cli_uiout, cli_interp): New globals.
1889 (cli_on_signal_received, cli_on_end_stepping_range)
1890 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1892 (cli_interpreter_init): Install them as 'end_stepping_range',
1893 'signal_received' 'signal_exited', 'exited' and 'no_history'
1895 (_initialize_cli_interp): Remove cli_interp local.
1896 * infrun.c (handle_inferior_event): Call the several stop reason
1897 observers instead of printing the stop reason directly.
1898 (end_stepping_range): New function.
1899 (print_end_stepping_range_reason, print_signal_exited_reason)
1900 (print_exited_reason, print_signal_received_reason)
1901 (print_no_history_reason): Make static, and add an uiout
1902 parameter. Print to that instead of to CURRENT_UIOUT.
1903 * infrun.h (print_end_stepping_range_reason)
1904 (print_signal_exited_reason, print_exited_reason)
1905 (print_signal_received_reason print_no_history_reason): New
1907 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1909 <cli_uiout>: New field.
1910 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1911 uiout for CLI output. Install 'signal_received',
1912 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1914 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1915 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1916 (mi_on_no_history): New functions.
1917 (ui_out_free_cleanup): Delete function.
1918 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1919 instead use the one already stored in the MI interpreter data.
1920 (mi_ui_out): Adjust.
1921 * tui/tui-interp.c: Include infrun.h and observer.h.
1922 (tui_interp): New global.
1923 (tui_on_signal_received, tui_on_end_stepping_range)
1924 (tui_on_signal_exited, tui_on_exited)
1925 (tui_on_no_history): New functions.
1926 (tui_init): Install them as 'end_stepping_range',
1927 'signal_received' 'signal_exited', 'exited' and 'no_history'
1929 (_initialize_tui_interp): Delete tui_interp local.
1931 2014-05-29 Pedro Alves <palves@redhat.com>
1934 * linux-nat.c (linux_nat_resume_callback): Rename the second
1935 parameter to 'except'. Skip LP if it points to EXCEPT.
1936 (linux_nat_resume): Don't mark the event lwp as not stopped
1937 before resuming sibling lwps. Instead ask
1938 linux_nat_resume_callback to skip the event lwp. Mark it as not
1939 stopped after actually resuming it.
1940 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1942 (wait_lwp): Mark the lwp as stopped here.
1943 (stop_wait_callback): Mark the lwp as not stopped right after
1944 resuming it. Don't mark lwps as stopped here.
1945 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1946 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1948 2014-05-29 Pedro Alves <palves@redhat.com>
1951 * infrun.c (resume): Determine how much to resume depending on
1952 whether the caller wanted a step, not whether we can hardware step
1953 the target. Mark all threads that we intend to run as running,
1954 unless we're calling an inferior function.
1955 (normal_stop): If the thread is running an infcall, don't finish
1957 * target.c (target_resume): Don't mark threads as running here.
1959 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1961 * serial.c (_initialize_serial): Remove support for
1962 the "set remotebaud" and "show remotebaud" commands.
1963 * NEWS: Add entry documenting the removal of that command.
1965 2014-05-28 Yao Qi <yao@codesourcery.com>
1967 * charset.c: Fix typo in comments.
1969 2014-05-27 Gary Benson <gbenson@redhat.com>
1971 * utils.c (internal_vproblem): Prompt for a bug report.
1973 2014-05-26 Andy Wingo <wingo@igalia.com>
1975 * guile/scm-arch.c (arscm_mark_arch_smob):
1976 * guile/scm-block.c (bkscm_mark_block_smob)
1977 (bkscm_mark_block_syms_progress_smob):
1978 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1979 * guile/scm-exception.c (exscm_mark_exception_smob):
1980 * guile/scm-frame.c (frscm_mark_frame_smob):
1981 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1982 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1983 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1984 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1985 (ppscm_mark_pretty_printer_worker_smob):
1986 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1987 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1988 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1989 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1991 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1994 2014-05-26 Andy Wingo <wingo@igalia.com>
1995 Doug Evans <xdje42@gmail.com>
1997 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1998 empty_base_class. All uses updated.
1999 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2000 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2002 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2003 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2004 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2005 (gdbscm_gsmob_has_property_p, add_property_name)
2006 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2007 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2008 (gdb-object-has-property?, gdb-object-properties): Remove.
2009 (gdb-object-kind): Renamed from gsmob-kind.
2011 2014-05-26 Andy Wingo <wingo@igalia.com>
2013 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2014 * configure: Regenerate.
2016 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2018 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2020 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2022 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2023 (replay_memory_access_read_only, replay_memory_access_read_write)
2024 (replay_memory_access_types, replay_memory_access)
2025 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2026 (cmd_set_record_btrace, cmd_show_record_btrace)
2027 (cmd_show_replay_memory_access): New.
2028 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2029 (record_btrace_remove_breakpoint): Replace
2030 record_btrace_allow_memory_access with replay_memory_access.
2031 (_initialize_record_btrace): Add commands.
2032 * NEWS: Announce it.
2034 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2036 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2038 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2040 * MAINTAINERS (Write After Approval): Move self back from
2043 2014-05-22 Pedro Alves <palves@redhat.com>
2045 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2046 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2047 (disable_randomization, enum exec_direction_kind)
2048 (execution_direction, stop_registers, start_remote)
2049 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2050 (wait_for_inferior, normal_stop, get_last_target_status)
2051 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2052 (insert_step_resume_breakpoint_at_sal)
2053 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2054 (set_step_info, print_stop_event, signal_stop_state)
2055 (signal_print_state, signal_pass_state, signal_stop_update)
2056 (signal_print_update, signal_pass_update)
2057 (update_signals_program_target, clear_exit_convenience_vars)
2058 (displaced_step_dump_bytes, update_observer_mode)
2059 (signal_catch_update, gdb_signal_from_command): Move
2061 * infrun.h: ... to this new file.
2062 * amd64-tdep.c: Include infrun.h.
2063 * annotate.c: Include infrun.h.
2064 * arch-utils.c: Include infrun.h.
2065 * arm-linux-tdep.c: Include infrun.h.
2066 * arm-tdep.c: Include infrun.h.
2067 * break-catch-sig.c: Include infrun.h.
2068 * breakpoint.c: Include infrun.h.
2069 * common/agent.c: Include infrun.h instead of inferior.h.
2070 * corelow.c: Include infrun.h.
2071 * event-top.c: Include infrun.h.
2072 * go32-nat.c: Include infrun.h.
2073 * i386-tdep.c: Include infrun.h.
2074 * inf-loop.c: Include infrun.h.
2075 * infcall.c: Include infrun.h.
2076 * infcmd.c: Include infrun.h.
2077 * infrun.c: Include infrun.h.
2078 * linux-fork.c: Include infrun.h.
2079 * linux-nat.c: Include infrun.h.
2080 * linux-thread-db.c: Include infrun.h.
2081 * monitor.c: Include infrun.h.
2082 * nto-tdep.c: Include infrun.h.
2083 * procfs.c: Include infrun.h.
2084 * record-btrace.c: Include infrun.h.
2085 * record-full.c: Include infrun.h.
2086 * remote-m32r-sdi.c: Include infrun.h.
2087 * remote-mips.c: Include infrun.h.
2088 * remote-notif.c: Include infrun.h.
2089 * remote-sim.c: Include infrun.h.
2090 * remote.c: Include infrun.h.
2091 * reverse.c: Include infrun.h.
2092 * rs6000-tdep.c: Include infrun.h.
2093 * s390-linux-tdep.c: Include infrun.h.
2094 * solib-irix.c: Include infrun.h.
2095 * solib-osf.c: Include infrun.h.
2096 * solib-svr4.c: Include infrun.h.
2097 * target.c: Include infrun.h.
2098 * top.c: Include infrun.h.
2099 * windows-nat.c: Include infrun.h.
2100 * mi/mi-interp.c: Include infrun.h.
2101 * mi/mi-main.c: Include infrun.h.
2102 * python/py-threadevent.c: Include infrun.h.
2104 2014-05-22 Pedro Alves <palves@redhat.com>
2106 * infrun.c (handle_inferior_event): Store the exit code for
2107 --return-child-result here, instead of ...
2108 (print_exited_reason): ... here.
2110 2014-05-21 Pedro Alves <palves@redhat.com>
2113 * gdbthread.h (struct thread_control_state): New field
2115 * infrun.c (follow_fork): Copy the new thread control field to the
2117 (clear_proceed_status_thread): Clear the new thread control field.
2118 (proceed): Set the new thread control field.
2119 * interps.h (command_interp): Declare.
2120 * interps.c (command_interpreter): New global.
2121 (command_interp): New function.
2122 (interp_exec): Set `command_interpreter' while here.
2123 * cli-out.c (cli_uiout_dtor): New function.
2124 (cli_ui_out_impl): Install it.
2125 * mi/mi-interp.c: Include cli-out.h.
2126 (mi_cmd_interpreter_exec): Add comment.
2127 (restore_current_uiout_cleanup): New function.
2128 (ui_out_free_cleanup): New function.
2129 (mi_on_normal_stop): If finishing an execution command started by
2130 a CLI command, or any kind of breakpoint-like event triggered,
2131 print the stop event to the output (CLI) stream.
2132 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2134 2014-05-21 Pedro Alves <palves@redhat.com>
2136 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2137 current source line having changed.
2138 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2139 * infrun.c (normal_stop): Adjust call to
2140 set_current_sal_from_frame.
2141 * source.c (clear_lines_listed_range): New function.
2142 (set_current_source_symtab_and_line, identify_source_line): Clear
2143 the lines listed range.
2144 (line_info): Handle the first "info line" after the current source
2145 line having changed.
2146 * stack.c (print_stack_frame): Remove center handling.
2147 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2150 2014-05-21 Pedro Alves <palves@redhat.com>
2152 * inf-child.c (inf_child_mourn_inferior): New function.
2153 * inf-child.h (inf_child_mourn_inferior): New declaration.
2154 * darwin-nat.c (darwin_mourn_inferior): Use
2155 inf_child_mourn_inferior.
2156 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2157 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2158 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2159 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2160 * windows-nat.c (windows_mourn_inferior): Likewise.
2162 2014-05-21 Doug Evans <xdje42@gmail.com>
2164 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2166 2014-05-21 Doug Evans <xdje42@gmail.com>
2168 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2169 (gdbscm_out_of_range_error): Ditto.
2170 (gdbscm_memory_error): Ditto.
2171 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2172 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2173 (gdbscm_out_of_range_error): Update.
2174 (gdbscm_memory_error): Update.
2175 (gdbscm_scm_to_target_string_unsafe): Delete.
2177 2014-05-21 Pedro Alves <palves@redhat.com>
2179 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2181 (inf_child_open_target): New function.
2182 (inf_child_open): Use inf_child_open_target to push the target
2183 instead of erroring out.
2184 (inf_child_disconnect, inf_child_close)
2185 (inf_child_maybe_unpush_target): New functions.
2186 (inf_child_target): Install inf_child_disconnect and
2187 inf_child_close. Store a pointer to the returned object.
2188 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2190 * target.c (auto_connect_native_target): New global.
2191 (show_default_run_target): New function.
2192 (find_default_run_target): Return NULL if automatically connecting
2193 to the native target is disabled.
2194 (_initialize_target): Install set/show auto-connect-native-target.
2195 * NEWS: Mention "set auto-connect-native-target", and "target
2197 * linux-nat.c (super_close): New global.
2198 (linux_nat_close): Call super_close.
2199 (linux_nat_add_target): Store a pointer to the base class's
2201 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2202 inf_child_maybe_unpush.
2203 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2205 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2206 the inferior. Use inf_child_maybe_unpush_target.
2207 (inf_ttrace_attach): Don't push the target if it is already
2209 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2210 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2211 after mourning the inferior. Use inf_child_maybe_unpush_target.
2212 (darwin_attach_pid): Don't push the target if it is already
2214 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2215 mourning the inferior. Use inf_child_maybe_unpush_target.
2216 (gnu_detach): Use inf_child_maybe_unpush_target.
2217 * go32-nat.c (go32_create_inferior): Don't push the target if it
2219 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2220 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2221 (procfs_open): Rename to ...
2222 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2223 comments. Can target_preopen before changing node. Call
2224 inf_child_open_target to push the target explicitly.
2225 (procfs_attach): Don't push the target if it is already pushed.
2226 (procfs_detach): Use inf_child_maybe_unpush_target.
2227 (procfs_create_inferior): Don't push the target if it is already
2229 (nto_native_ops): New global.
2230 (procfs_open): Reimplement.
2231 (procfs_native_open): New function.
2232 (init_procfs_targets): Install procfs_native_open as to_open of
2233 "target native". Store a pointer to the "native" target in
2235 * procfs.c (procfs_attach): Don't push the target if it is already
2237 (procfs_detach): Use inf_child_maybe_unpush_target.
2238 (procfs_mourn_inferior): Only unpush the target after mourning the
2239 inferior. Use inf_child_maybe_unpush_target.
2240 (procfs_init_inferior): Don't push the target if it is already
2242 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2243 if it is already pushed.
2245 2014-05-21 Pedro Alves <palves@redhat.com>
2247 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2248 and "procfs" targets are now called "native" instead.
2250 2014-05-21 Pedro Alves <palves@redhat.com>
2252 * go32-nat.c (go32_open): Delete.
2253 (go32_target): Don't override the to_open method.
2255 2014-05-21 Pedro Alves <palves@redhat.com>
2257 * nto-procfs.c (procfs_can_run): New function.
2258 (nto_procfs_ops): New global.
2259 (init_procfs_targets): New, based on procfs_target. Install
2260 "target native" in addition to "target procfs".
2261 (_initialize_procfs): Call init_procfs_targets instead of adding
2264 2014-05-21 Pedro Alves <palves@redhat.com>
2266 * windows-nat.c (windows_target): Don't override to_shortname,
2267 to_longname or to_doc.
2269 2014-05-21 Pedro Alves <palves@redhat.com>
2271 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2274 2014-05-21 Pedro Alves <palves@redhat.com>
2276 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2277 to_shortname, to_longname or to_doc.
2279 2014-05-21 Pedro Alves <palves@redhat.com>
2281 * go32-nat.c (go32_target): Don't override to_shortname,
2282 to_longname or to_doc.
2284 2014-05-21 Pedro Alves <palves@redhat.com>
2286 * inf-child.c (inf_child_open): Remove mention of "child".
2287 (inf_child_target): Rename target to "native" instead of "child".
2289 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2291 * Makefile.in (SFILES): Delete "regset.c".
2292 (COMMON_OBS): Delete "regset.o".
2294 * regset.h (regset_alloc): Delete prototype.
2296 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2298 * sparc-linux-tdep.c (sparc32_linux_gregset)
2299 (sparc32_linux_fpregset): New static regset structures.
2300 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2301 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2303 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2304 (sparc64_linux_fpregset): New static regset structures.
2305 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2306 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2307 New static regset structures.
2308 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2309 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2310 New static regset structures.
2311 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2312 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2313 New static regset structures.
2314 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2315 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2316 New static regset structures.
2317 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2319 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2321 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2322 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2323 register maps ("regmaps") from "*regset" to "*regmap". Do this
2324 for all regmap types and variables.
2325 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2326 (sparc32_linux_supply_core_gregset)
2327 (sparc32_linux_collect_core_gregset)
2328 (sparc32_linux_supply_core_fpregset)
2329 (sparc32_linux_collect_core_fpregset): Likewise.
2330 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2331 (sparc_gregmap, sparc_fpregmap): ... these.
2332 (sparc_supply_gregset, sparc_collect_gregset)
2333 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2334 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2335 (_initialize_sparc_nat): Rename regmaps.
2336 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2337 (sparc_gregmap, sparc_fpregmap): ... these.
2338 (sparc_supply_gregset, sparc_collect_gregset)
2339 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2340 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2342 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2343 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2345 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2347 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2348 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2349 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2351 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2352 (sparc32_bsd_fpregset): Rename to...
2353 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2354 (sparc32_bsd_fpregmap): ... these.
2355 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2356 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2357 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2358 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2359 (struct sparc_gregmap, struct sparc_fpregmap)
2360 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2361 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2362 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2363 (sparc32_supply_regset, sparc32_collect_gregset)
2364 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2366 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2367 (sparc64_linux_ptrace_gregmap): ... this.
2368 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2369 (_initialize_sparc64_linux_nat): Rename regmaps.
2370 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2371 (sparc64_linux_core_gregmap): ... this.
2372 (sparc64_linux_supply_core_gregset)
2373 (sparc64_linux_collect_core_gregset)
2374 (sparc64_linux_supply_core_fpregset)
2375 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2376 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2377 (sparc64_sol2_fpregset): Rename to...
2378 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2379 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2380 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2382 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2383 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2384 (sparc64_bsd_fpregset): Rename to...
2385 (struct sparc_gregmap, sparc64_sol2_gregmap)
2386 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2387 (sparc64_bsd_fpregmap): ... these.
2388 (sparc64_supply_gregset, sparc64_collect_gregset)
2389 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2391 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2392 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2393 (sparc64fbsd_gregmap): ... this.
2394 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2395 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2397 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2398 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2399 (sparc64nbsd_collect_fpregset): Likewise.
2400 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2401 (sparc64nbsd_gregmap): ... this.
2402 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2404 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2405 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2406 (sparc64obsd_gregmap): ... this.
2407 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2409 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2410 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2411 (sparc32nbsd_gregmap): ... this.
2412 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2415 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2417 * score-tdep.c (score7_linux_gregset): New static regset
2419 (score7_linux_regset_from_core_section): Remove dynamic regset
2421 (score_gdbarch_init): Drop allocation of tdep structure.
2422 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2424 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2426 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2428 (am33_regset_from_core_section): Remove dynamic regset
2431 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2433 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2434 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2436 (mips_linux_regset_from_core_section): Remove dynamic regset
2438 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2439 'gregset64', 'fpregset', and 'fpregset64'.
2440 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2441 deleted tdep fields.
2443 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2445 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2447 (amd64_regset_from_core_section): Remove dynamic regset
2449 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2451 (amd64obsd_regset_from_core_section): Remove dynamic regset
2453 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2455 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2456 x86-common regset supply function.
2457 * i386-tdep.c (i386_collect_gregset): Make static.
2458 (i386_gregset): New global regset structure.
2459 (i386_fpregset, i386_xstateregset): New static regset structures.
2460 (i386_regset_from_core_section): Remove dynamic regset
2462 (i386_gdbarch_init): Remove initialization of tdep fields
2463 'gregset', 'fpregset', and 'xstateregset'.
2464 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2465 'fpregset', and 'xstateregset'.
2466 (i386_collect_gregset): Remove prototype.
2467 (i386_gregset): New declaration.
2468 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2470 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2473 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2475 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2476 (arm_linux_vfpregset): New static regset structures.
2477 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2479 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2480 and 'vfpregset' fields.
2482 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2484 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2485 (aarch64_linux_fpregset): New static regset structures.
2486 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2487 of regset structures.
2488 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2491 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2493 * regset.h (struct regset): Remove gdbarch field.
2494 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2495 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2496 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2498 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2499 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2500 (ppc32_linux_vsxregset): Likewise.
2501 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2502 via the regcache instead of the regset.
2503 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2504 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2505 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2506 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2509 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2511 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2512 Constify structures.
2513 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2514 (alphanbsd_aout_gregset): Likewise.
2515 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2516 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2518 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2519 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2521 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2522 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2523 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2524 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2525 * m88k-tdep.c (m88k_gregset): Likewise.
2526 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2527 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2528 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2529 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2530 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2531 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2532 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2533 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2534 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2536 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2537 * sh-tdep.h (sh_corefile_gregset): Likewise.
2538 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2539 * vax-tdep.c (vax_gregset): Likewise.
2541 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2543 Fix TLS access for -static -pthread.
2544 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2545 (try_thread_db_load_1): Initialize it.
2546 (thread_db_get_thread_local_address): Call it if LM is zero.
2547 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2548 * target.h (struct target_ops) (to_get_thread_local_address): Add
2549 load_module_addr comment.
2551 2014-05-21 Pedro Alves <palves@redhat.com>
2553 * dcache.c (dcache_read_memory_partial): If reading the cache line
2554 fails, fallback to reading just the memory the caller wanted.
2556 2014-05-20 Doug Evans <dje@google.com>
2558 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2559 instead of get_current_arch.
2561 2014-05-20 Pedro Alves <palves@redhat.com>
2563 * NEWS: Mention that compare-sections now works with all targets.
2565 * remote.c (PACKET_qCRC): New enum value.
2566 (remote_verify_memory): Don't send qCRC if the target has no
2567 execution. Use packet_support/packet_ok. If the target doesn't
2568 support the qCRC packet, fallback to a deep memory copy.
2569 (compare_sections_command): Say "target image" instead of "remote
2571 (_initialize_remote): Add PACKET_qCRC to the list of config
2572 packets that have no associated command. Extend comment.
2573 * target.c (simple_verify_memory, default_verify_memory): New
2575 * target.h (struct target_ops) <to_verify_memory>: Default to
2576 default_verify_memory.
2577 (simple_verify_memory): New declaration.
2578 * target-delegates.c: Regenerate.
2580 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2582 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2584 2014-05-20 Hui Zhu <hui@codesourcery.com>
2585 Yao Qi <yao@codesourcery.com>
2588 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2589 and change address of sp and pc.
2591 2014-05-19 Tom Tromey <tromey@redhat.com>
2593 * gdbtypes.c (rank_function): Use XNEWVEC.
2594 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2596 2014-05-19 Doug Evans <dje@google.com>
2598 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2599 build_type_unit_groups and moved closer to only caller. Remove
2600 arguments. All references updated. Remove outdated .gdb_index
2602 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2603 build_type_psymtabs_1.
2605 2014-05-19 Doug Evans <dje@google.com>
2607 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2608 n_type_unit_groups, all_type_unit_groups. All uses removed.
2609 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2610 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2611 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2612 (add_type_unit_group_to_table): Delete.
2614 2014-05-19 Doug Evans <dje@google.com>
2616 * eval.c (evaluate_subexp_standard): Add some comments.
2618 2014-05-17 Doug Evans <xdje42@gmail.com>
2620 * progspace.c (remove_program_space): Delete, unused.
2621 * progspace.h (remove_program_space): Ditto.
2623 2014-05-17 Doug Evans <xdje42@gmail.com>
2625 * inferior.c (prune_inferiors): Fix comment.
2626 (remove_inferior_command): Call prune_program_spaces.
2628 2014-05-16 Doug Evans <dje@google.com>
2630 New command line option -D.
2632 * main.c (set_gdb_data_directory): New function.
2633 (captured_main): Recognize -D. Flag error for --data-directory "".
2634 Call set_gdb_data_directory.
2635 (print_gdb_help): Print --data-directory, -D.
2636 * main.h (set_gdb_data_directory): Declare.
2637 * top.c (staged_gdb_datadir): New static global.
2638 (set_gdb_datadir): Call set_gdb_data_directory
2639 (show_gdb_datadir): New function.
2640 (init_main): Update init of data-directory parameter.
2642 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2644 Import the "dirfd" gnulib module.
2645 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2646 * gnulib/aclocal.m4: Update.
2647 * gnulib/config.in: Update.
2648 * gnulib/configure: Update.
2649 * gnulib/import/Makefile.am: Update.
2650 * gnulib/import/Makefile.in: Update.
2651 * gnulib/import/dirfd.c: New.
2652 * gnulib/import/m4/dirfd.m4: New.
2653 * gnulib/import/m4/gnulib-cache.m4: Update.
2654 * gnulib/import/m4/gnulib-comp.m4: Update.
2656 2014-05-16 Pierre Muller <muller@sourceware.org>
2657 Yao Qi <yao@codesourcery.com>
2659 * valprint.c (print_wchar): Move the code on checking whether
2660 W is a printable wide char to the default branch of switch
2661 statement below. Call wchar_printable instead of gdb_iswprint.
2663 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2665 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2666 ldr.w and ldrd instructions.
2668 2014-05-15 Doug Evans <dje@google.com>
2670 * dwarf2read.c (read_structure_type): Delete outdated comments.
2672 2014-05-14 Tom Tromey <tromey@redhat.com>
2674 * macrocmd.c (print_macro_definition): Reindent.
2676 2014-05-13 Doug Evans <xdje42@gmail.com>
2678 * python/py-cmd.c (cmdpy_completer): Add comment.
2679 (completers): Make const.
2681 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2683 * infrun.c (resume): Remove should_resume (unused). Move up
2684 declaration of resume_ptid.
2686 2014-05-13 Tom Tromey <tromey@redhat.com>
2688 * language.h (unop_type_check): Remove.
2689 (binop_type_check): Don't declare.
2691 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2693 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2694 call to regcache_raw_collect.
2696 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2698 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2699 mi_console->quote as the quoting character.
2701 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2703 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2705 2014-04-29 Tom Tromey <tromey@redhat.com>
2707 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2708 "show debug varobj".
2710 2014-05-07 Kyle McMartin <kyle@redhat.com>
2712 Pushed by Joel Brobecker <brobecker@adacore.com>.
2713 * aarch64-tdep.c (aarch64_software_single_step): New function.
2714 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2715 with aarch64_software_single_step.
2717 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2721 2014-05-05 Keith Seitz <keiths@redhat.com>
2723 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2724 variable or history value is successfully parsed.
2726 2014-05-05 Yao Qi <yao@codesourcery.com>
2727 Pedro Alves <palves@redhat.com>
2729 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2730 address of blocks that intersects the requested range. Trim
2731 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2733 * ctf.c (ctf_xfer_partial): Likewise.
2735 2014-05-05 Yao Qi <yao@codesourcery.com>
2737 * printcmd.c (display_command): Remove the check to
2738 target_has_execution.
2740 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2742 * ppcobsd-nat.c: Include "obsd-nat.h".
2743 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2745 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2747 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2749 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2750 and 16-bit signed and unsigned arguments. Update comment.
2751 (stap_parse_probe_arguments): Extend code to handle such
2752 arguments. Use warning instead of complaint to notify about
2753 unrecognized bitness.
2755 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2757 PR breakpoints/16889
2758 * stap-probe.c (stap_parse_probe_arguments): Simplify
2759 check for non-prefixed probes (i.e., probes whose
2760 arguments do not start with "N@"). Always set the
2761 argument type to a sane value.
2763 2014-05-01 David Taylor <dtaylor@emc.com>
2765 * remote.c (compare_sections_command): Add -r option to compare
2766 all loadable read-only sections.
2768 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2770 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2771 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2773 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2774 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2775 Remove unused CORE_ADDR argument. Update all callers.
2777 2014-04-29 Pedro Alves <palves@redhat.com>
2779 * remote.c (struct packet_config) <detect>: Extend comment.
2780 (add_packet_config_cmd): Don't set the config's detect or support
2782 (init_all_packet_configs): Also initialize the config's 'detect'
2784 (reset_all_packet_configs_support): New function.
2785 (remote_open_1): Call reset_all_packet_configs_support instead of
2786 init_all_packet_configs.
2787 (_initialize_remote): Initialize all packet configs. Assert that
2788 all packets have an associated command, except a few known
2791 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2793 * dwarf2read.c (read_subrange_type): Handle dynamic
2794 DW_AT_lower_bound attributes.
2796 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2798 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2799 dynamic bounds before computing its upper bound.
2800 (ada_discrete_type_low_bound): Same as above with the lower bound.
2802 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2804 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2805 range types. Adjust the array handling implementation to
2806 take advantage of this change.
2807 (resolve_dynamic_range): New function, mostly extracted from
2808 resolve_dynamic_bounds.
2809 (resolve_dynamic_array): New function, mostly extracted from
2810 resolve_dynamic_bounds.
2811 (resolve_dynamic_bounds): Delete.
2812 (resolve_dynamic_type): Reimplement. Add handling of
2813 TYPE_CODE_RANGE types.
2815 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2817 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2818 handling of parallel ___XA types.
2820 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2822 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2823 unnecessary second call to static_unwrap_type.
2825 2014-04-27 Hui Zhu <hui@codesourcery.com>
2827 * stack.c (print_frame_info): Call do_gdb_disassembly with
2828 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2830 2014-04-26 Doug Evans <xdje42@gmail.com>
2832 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2834 2014-04-25 Pedro Alves <palves@redhat.com>
2837 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2838 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2839 and newline from built string.
2840 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2841 (linux_ptrace_attach_fail_reason): ... this.
2842 * linux-nat.c (linux_nat_attach): Adjust to use
2843 linux_ptrace_attach_fail_reason.
2845 2014-04-25 Pedro Alves <palves@redhat.com>
2847 * remote.c (struct remote_state): Remove multi_process_aware,
2848 non_stop_aware, cond_tracepoints, cond_breakpoints,
2849 breakpoint_commands, fast_tracepoints, static_tracepoints,
2850 install_in_trace, disconnected_tracing,
2851 enable_disable_tracepoints, string_tracing, and
2852 augmented_libraries_svr4_read fields.
2853 (remote_multi_process_p): Move further below in the file.
2854 (struct packet_config): Add comments.
2855 (update_packet_config): Delete function.
2856 (show_packet_config_cmd): Use packet_config_support.
2857 (add_packet_config_cmd): Use NULL as set callback.
2858 (packet_ok): "set remote foo-packet"-style commands no longer
2859 change config->supported -- adjust.
2860 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2861 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2862 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2863 (PACKET_QNonStop, PACKET_multiprocess_feature)
2864 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2865 (PACKET_DisconnectedTracing_feature)
2866 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2867 (set_remote_protocol_packet_cmd): Delete function.
2868 (packet_config_support, packet_support): New functions.
2869 (set_remote_protocol_Z_packet_cmd): Don't call
2870 update_packet_config.
2871 (remote_query_attached, remote_pass_signals)
2872 (remote_program_signals, remote_threads_info)
2873 (remote_threads_extra_info, remote_start_remote): Use
2875 (remote_start_remote): Use packet_config_support and
2877 (init_all_packet_configs): Set all packets to unknown support,
2878 instead of calling update_packet_config.
2879 (remote_check_symbols): Use packet_support.
2880 (remote_supported_packet): Unconditionally set the packet config's
2882 (remote_multi_process_feature, remote_non_stop_feature)
2883 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2884 (remote_breakpoint_commands_feature)
2885 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2886 (remote_install_in_trace_feature)
2887 (remote_disconnected_tracing_feature)
2888 (remote_enable_disable_tracepoint_feature)
2889 (remote_string_tracing_feature)
2890 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2891 (remote_protocol_features): Adjust to use remote_supported_packet
2892 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2893 "ConditionalTracepoints", "ConditionalBreakpoints",
2894 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2895 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2896 "EnableDisableTracepoints", and "tracenz".
2897 (remote_query_supported): Use packet_support.
2898 (remote_open_1): Adjust.
2899 (extended_remote_attach_1): Use packet_support. Switch on the
2900 result of packet_ok instead of checking whether the packet ended
2902 (remote_vcont_resume): Use packet_support.
2903 (remote_resume, remote_stop_ns, fetch_register_using_p)
2904 (remote_prepare_to_store, store_register_using_P)
2905 (check_binary_download, remote_write_bytes): Use packet_support.
2906 (remote_vkill): Use packet_support. Switch on the result of
2907 packet_ok instead of checking whether the packet ended up
2909 (extended_remote_supports_disable_randomization): Use
2911 (extended_remote_run): Switch on the result of packet_ok instead
2912 of checking whether the packet ended up disabled.
2913 (remote_insert_breakpoint, remote_remove_breakpoint)
2914 (remote_insert_watchpoint, remote_remove_watchpoint)
2915 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2917 (remote_search_memory): Use packet_config_support.
2918 (remote_get_thread_local_address, remote_get_tib_address)
2919 (remote_hostio_send_command, remote_can_execute_reverse): Use
2921 (remote_supports_cond_tracepoints)
2922 (remote_supports_cond_breakpoints)
2923 (remote_supports_fast_tracepoints)
2924 (remote_supports_static_tracepoints)
2925 (remote_supports_install_in_trace)
2926 (remote_supports_enable_disable_tracepoint)
2927 (remote_supports_string_tracing)
2928 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2929 the packet config says the feature is enabled or disabled.
2930 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2931 (remote_get_trace_status): Use packet_support.
2932 (remote_set_disconnected_tracing): Adjust to check whether the
2933 feature is enabled with packet_support.
2934 (remote_set_trace_buffer_size, remote_use_agent)
2935 (remote_can_use_agent, remote_supports_btrace): Use
2937 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2938 Use packet_config_support.
2939 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2940 the packet config says the feature is enabled or disabled.
2941 (set_range_stepping): Use packet_support.
2943 2014-04-25 Tom Tromey <tromey@redhat.com>
2945 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2948 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2950 * NEWS: Mention support for C99 variable length arrays.
2952 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2954 * ada-lang.c (standard_exc): Expand introductory comment.
2956 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2957 Walfred Tedeschi <walfred.tedeschi@intel.com>
2959 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2961 (amd64_linux_read_description): Add code to handle AVX512 xstate
2962 mask and return respective tdesc.
2963 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2964 and features/i386/x32-avx512-linux.c.
2965 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2966 (amd64_linux_core_read_description): Add code to handle AVX512
2967 xstate mask and return respective tdesc.
2968 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2969 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2971 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2972 (tdesc_amd64_avx512_linux): New prototype.
2973 (tdesc_x32_avx512_linux): Likewise.
2974 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2975 features/i386/x32-avx512.c.
2976 (amd64_ymm_avx512_names): New register names for pseudo
2978 (amd64_ymmh_avx512_names): New register names for raw registers
2980 (amd64_k_names): New register names for K registers.
2981 (amd64_zmmh_names): New register names for ZMM raw registers.
2982 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2983 (amd64_xmm_avx512_names): New register names for XMM16-31
2985 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2987 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2988 if feature is present.
2989 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2990 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2991 (AMD64_NUM_REGS): Adjust to new number of registers.
2992 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2993 registers supplied via XSTATE by AVX512 registers.
2994 (i386_linux_read_description): Add case for AVX512.
2995 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2996 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2997 (i386_linux_core_read_description): Add case for AVX512.
2998 (i386_linux_init_abi): Install supported register note section
3000 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3002 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3003 registers to be number of zmm7h + 1.
3004 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3005 * i386-tdep.c: Include features/i386/i386-avx512.c.
3006 (i386_zmm_names): Add ZMM pseudo register names array.
3007 (i386_zmmh_names): Add ZMM raw register names array.
3008 (i386_k_names): Add K raw register names array.
3009 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3010 registers. AVX512 has 16 more ZMM registers than there are YMM
3012 (i386_zmmh_regnum_p): Add function to look up register number of
3014 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3015 (i386_k_regnum_p): Likewise for K raw registers.
3016 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3017 registers added by AVX512.
3018 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3019 registers added by AVX512.
3020 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3022 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3023 (i386_pseudo_register_name): Add ZMM pseudo registers.
3024 (i386_zmm_type): Construct and return vector registers type for ZMM
3026 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3027 ZMM0-31 pseudo registers and K registers.
3028 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3029 and YMM16-31 registers from register cache.
3030 (i386_pseudo_register_write): Add code to write K, ZMM and
3032 (i386_register_reggroup_p): Add code to include/exclude AVX512
3033 registers in/from respective register groups.
3034 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3035 registers if feature is present in xcr0.
3036 (i386_gdbarch_init): Add code to initialize AVX512 feature
3037 variables in tdep structure, wire in pseudo registers and call
3038 initialize_tdesc_i386_avx512.
3039 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3041 (i386_regnum): Add AVX512 registers.
3042 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3043 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3044 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3045 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3047 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3048 (i386_ymm_avx512_regnum_p): Likewise.
3049 (i386_k_regnum_p): Likewise.
3050 (i386_zmm_regnum_p): Likewise.
3051 (i386_zmmh_regnum_p): Likewise.
3052 * i387-tdep.c : Update year in copyright notice.
3053 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3055 (XSAVE_YMM_AVX512_ADDR): New macro.
3056 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3058 (XSAVE_XMM_AVX512_ADDR): New macro.
3059 (xsave_avx512_k_offset): New table for K register offsets in
3061 (XSAVE_AVX512_K_ADDR): New macro.
3062 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3064 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3065 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3067 (i387_collect_xsave): Add code to collect AVX512 registers from
3069 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3070 of XMM16-31 registers.
3071 (I387_NUM_K_REGS): New define for number of K registers.
3072 (I387_K0_REGNUM): New define for K0 register number.
3073 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3074 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3075 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3077 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3078 (I387_XMM16_REGNUM): New define for XMM16 register number.
3079 (I387_YMM0_REGNUM): New define for YMM0 register number.
3080 (I387_KEND_REGNUM): New define for last K register number.
3081 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3082 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3084 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3086 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3088 * features/Makefile: Add AVX512 related files.
3089 * features/i386/32bit-avx512.xml: New file.
3090 * features/i386/64bit-avx512.xml: Likewise.
3091 * features/i386/amd64-avx512-linux.c: Likewise.
3092 * features/i386/amd64-avx512-linux.xml: Likewise.
3093 * features/i386/amd64-avx512.c: Likewise.
3094 * features/i386/amd64-avx512.xml: Likewise.
3095 * features/i386/i386-avx512-linux.c: Likewise.
3096 * features/i386/i386-avx512-linux.xml: Likewise.
3097 * features/i386/i386-avx512.c: Likewise.
3098 * features/i386/i386-avx512.xml: Likewise.
3099 * features/i386/x32-avx512-linux.c: Likewise.
3100 * features/i386/x32-avx512-linux.xml: Likewise.
3101 * features/i386/x32-avx512.c: Likewise.
3102 * features/i386/x32-avx512.xml: Likewise.
3103 * regformats/i386/amd64-avx512-linux.dat: New file.
3104 * regformats/i386/amd64-avx512.dat: Likewise.
3105 * regformats/i386/i386-avx512-linux.dat: Likewise.
3106 * regformats/i386/i386-avx512.dat: Likewise.
3107 * regformats/i386/x32-avx512-linux.dat: Likewise.
3108 * regformats/i386/x32-avx512.dat: Likewise.
3109 * NEWS: Add note about new support for AVX512.
3112 2014-04-23 Pedro Alves <palves@redhat.com>
3114 * breakpoint.c (insert_bp_location): Tolerate errors if the
3115 breakpoint is set in a user-loaded objfile.
3116 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3117 location is marked shlib_disabled. If the breakpoint is set in a
3118 user-loaded objfile is a GDB-side memory breakpoint, validate it
3119 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3120 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3122 * mem-break.c (memory_validate_breakpoint): New function.
3123 * objfiles.c (userloaded_objfile_contains_address_p): New
3125 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3126 * target.h (memory_validate_breakpoint): New declaration.
3128 2014-04-23 Pedro Alves <palves@redhat.com>
3130 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3131 the breakpoint is set in a shared library, only suppress
3132 errors for software breakpoints, not hardware breakpoints.
3134 2014-04-22 Pedro Alves <palves@redhat.com>
3136 * infrun.c (schedlock_applies): New function, factored out from
3137 find_thread_needs_step_over.
3138 (find_thread_needs_step_over): Use it.
3139 (switch_back_to_stepped_thread): Always clear trap_expected if the
3140 step over is finished. Return early if scheduler locking applies.
3141 Look for the stepping thread and a potential step-over thread with
3143 (currently_stepping_or_nexting_callback): Delete.
3145 2014-04-22 Nick Clifton <nickc@redhat.com>
3147 * NEWS: Mention that ARM sim now supports tracing.
3149 2014-04-22 Yao Qi <yao@codesourcery.com>
3151 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3153 * tracefile.c (tracefile_fetch_registers): ... it. New
3155 * tracefile.h (tracefile_fetch_registers): Declare.
3156 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3157 tracefile_fetch_registers.
3159 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3162 * windows-nat.c (thread_rec): Don't display a warning when
3163 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3164 fails for any reason, set th->suspended to -1, so that we don't
3165 try to resume such a thread. Also, don't return NULL in these
3166 cases, to avoid completely ruin the session due to "PC register is
3167 not available" error.
3168 (do_windows_fetch_inferior_registers): Check errors in
3169 GetThreadContext call.
3170 (windows_continue): Accept an additional argument KILLED; if not
3171 zero, ignore errors in the SetThreadContext call, since the
3172 inferior was killed and is shutting down.
3173 (windows_resume, get_windows_debug_event)
3174 (windows_create_inferior, windows_mourn_inferior)
3175 (windows_kill_inferior): All callers of windows_continue changed
3176 to adjust to its new calling sequence.
3178 2014-04-19 Yao Qi <yao@codesourcery.com>
3180 * ctf.c (ctf_open): Call post_create_inferior.
3182 2014-04-19 Yao Qi <yao@codesourcery.com>
3184 * ctf.c (handle_id): New static variable.
3185 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3186 value. Get the declaration of event "register" and get length
3187 of field "contents".
3189 2014-04-19 Yao Qi <yao@codesourcery.com>
3191 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3193 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3195 * valops.c (oload_method_static): Remove unnecessary argument
3196 METHOD. Update all callers.
3198 2014-04-18 Pedro alves <palves@redhat.com>
3199 Tom Tromey <tromey@redhat.com>
3202 * frame.c (get_prev_frame_1): Rename to ...
3203 (get_prev_frame_always): ... this, and make extern. Adjust.
3204 (skip_artificial_frames): Use get_prev_frame_always.
3205 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3206 (get_frame_unwind_stop_reason): Adjust to rename.
3207 * frame.h (get_prev_frame_always): Declare.
3208 * inline-frame.c: Include frame.h.
3209 (inline_frame_this_id): Use get_prev_frame_always.
3211 2014-04-18 Tristan Gingold <gingold@adacore.com>
3213 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3214 code by using bfd_mach_o_get_base_address.
3216 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3218 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3219 (spu_ax_pseudo_register_collect): New function.
3220 (spu_ax_pseudo_register_push_stack): Likewise.
3221 (spu_dwarf_reg_to_regnum): Likewise.
3222 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3224 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3226 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3227 Replace FRAME argument with FRAME_ID.
3228 * gdbarch.c, gdbarch.h: Regenerate.
3229 * findvar.c (default_value_from_register): Add GDBARCH argument;
3230 replace FRAME by FRAME_ID. No longer call get_frame_id.
3231 (value_from_register): Update call to gdbarch_value_from_register.
3232 * value.h (default_value_from_register): Update prototype.
3233 * s390-linux-tdep.c (s390_value_from_register): Update interface
3234 and call to default_value_from_register.
3235 * spu-tdep.c (spu_value_from_register): Likewise.
3237 * findvar.c (address_from_register): Remove TYPE argument.
3238 Do not call value_from_register; use gdbarch_value_from_register
3239 with null_frame_id instead.
3240 * value.h (address_from_register): Update prototype.
3241 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3242 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3243 address_from_register interface change.
3245 2014-04-17 Yao Qi <yao@codesourcery.com>
3247 * gdbtypes.h: Update comments to link to types and macros'
3250 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3252 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3254 2014-04-16 Keith Seitz <keiths@redhat.com>
3257 * dwarf2read.c (skip_one_die): Check that all relative-offset
3258 sibling DIEs fall within range of the current reader's buffer.
3259 (read_partial_die): Likewise.
3261 2014-04-16 Keith Seitz <keiths@redhat.com>
3264 * cp-namespace.c (lookup_symbol_file): If the type name of
3265 `this' is NULL, return immediately.
3267 2014-04-14 Keith Seitz <keiths@redhat.com>
3270 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3271 from symbol_matches_domain in symtab.c. All local callers
3272 of symbol_matches_domain updated.
3273 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3274 search STRUCT_DOMAIN.
3275 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3276 independently. standard_lookup will do that automatically.
3277 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3278 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3279 (cp_lookup_symbol_in_namespace): Likewise.
3280 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3281 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3282 may return a STRUCT_DOMAIN match.
3283 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3284 * cp-support.c: Include language.h.
3285 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3287 * psymtab.c (match_partial_symbol): Compare the requested
3288 domain with the symbol's domain directly.
3289 (lookup_partial_symbol): Likewise.
3290 * symtab.c (lookup_symbol_in_language): Explain when/why
3291 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3292 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3293 appropriate languages.
3294 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3295 and moved to ada-lang.c
3296 (lookup_block_symbol): Explain that this function only returns
3297 symbol matching the requested DOMAIN.
3298 Compare the requested domain with the symbol's domain directly.
3299 (iterate_over_symbols): Compare the requested domain with the
3300 symbol's domain directly.
3301 * symtab.h (symbol_matches_domain): Remove.
3303 2014-04-14 Tom Tromey <tromey@redhat.com>
3306 * c-exp.y (type_aggregate_p): New function.
3307 (qualified_name, classify_inner_name): Use it.
3308 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3309 and TYPE_TARGET_TYPE of an enum type.
3310 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3312 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3313 handle TYPE_DECLARED_CLASS.
3314 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3316 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3317 * valops.c (enum_constant_from_type): New function.
3318 (value_aggregate_elt): Use it.
3319 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3322 2014-04-14 Tom Tromey <tromey@redhat.com>
3324 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3325 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3327 * value.h (value_aggregate_elt): Update.
3329 2014-04-14 Tom Tromey <tromey@redhat.com>
3331 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3333 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3335 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3336 (evaluate_subexp_standard): Pass noside argument.
3337 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3338 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3339 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3340 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3341 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3343 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3345 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3346 points to a constant blob.
3348 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3350 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3351 property and store it as the high bound and flag the range accordingly.
3352 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3353 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3354 * gdbtypes.h (enum range_flags): New enum.
3355 (struct range_bounds): Add flags member.
3357 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3359 * c-typeprint.c (c_type_print_varspec_suffix): Added
3360 check for not yet resolved high bound. If unresolved, print
3361 "variable length" string to the console instead of random
3364 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3366 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3368 (ada_template_to_fixed_record_type_1): Likewise.
3369 (ada_to_fixed_type_1): Likewise.
3370 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3371 (cp_print_value): Likewise.
3372 * d-valprint.c (dynamic_array_type): Likewise.
3373 * findvar.c (address_of_variable): Likewise.
3374 * jv-valprint.c (java_value_print): Likewise.
3375 * valops.c (value_ind): Likewise.
3376 * value.c (coerce_ref): Likewise.
3378 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3380 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3381 value and retrieve the dynamic type size.
3383 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3385 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3386 passed to sizeof is dynamic evaluate the argument to compute the length.
3388 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3389 Joel Brobecker <brobecker@adacore.com>
3391 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3392 (dwarf2_evaluate_property): New function.
3393 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3394 * dwarf2read.c (attr_to_dynamic_prop): New function.
3395 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3397 * gdbtypes.c: Include dwarf2loc.h.
3398 (is_dynamic_type): New function.
3399 (resolve_dynamic_type): New function.
3400 (resolve_dynamic_bounds): New function.
3401 (get_type_length): New function.
3402 (check_typedef): Use get_type_length to compute type length.
3403 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3404 (TYPE_LOW_BOUND_KIND): New macro.
3405 (is_dynamic_type): New function prototype.
3406 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3407 to resolve dynamic properties of the type. Update comment.
3408 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3410 2014-04-14 Richard Henderson <rth@redhat.com>
3412 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3414 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3415 Doug Evans <xdje42@gmail.com>
3417 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3418 dereference TYPE_CODE_REF values.
3420 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3422 Revert the following changes due to regressions:
3424 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3425 (dwarf2_evaluate_property): New function.
3426 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3427 * dwarf2read.c (attr_to_dynamic_prop): New function.
3428 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3430 * gdbtypes.c: Include dwarf2loc.h.
3431 (is_dynamic_type): New function.
3432 (resolve_dynamic_type): New function.
3433 (resolve_dynamic_bounds): New function.
3434 (get_type_length): New function.
3435 (check_typedef): Use get_type_length to compute type length.
3436 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3437 (TYPE_LOW_BOUND_KIND): New macro.
3438 (is_dynamic_type): New function prototype.
3439 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3440 to resolve dynamic properties of the type. Update comment.
3441 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3443 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3444 passed to sizeof is dynamic evaluate the argument to compute the length.
3446 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3447 value and retrieve the dynamic type size.
3449 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3450 (ada_template_to_fixed_record_type_1): Likewise.
3451 (ada_to_fixed_type_1): Likewise.
3452 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3453 (cp_print_value): Likewise.
3454 * d-valprint.c (dynamic_array_type): Likewise.
3455 * eval.c (evaluate_subexp_with_coercion): Likewise.
3456 * findvar.c (address_of_variable): Likewise.
3457 * jv-valprint.c (java_value_print): Likewise.
3458 * valops.c (value_ind): Likewise.
3459 * value.c (coerce_ref): Likewise.
3461 * c-typeprint.c (c_type_print_varspec_suffix): Added
3462 check for not yet resolved high bound. If unresolved, print
3463 "variable length" string to the console instead of random
3466 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3467 property and store it as the high bound and flag the range accordingly.
3468 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3469 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3470 * gdbtypes.h (enum range_flags): New enum.
3471 (struct range_bounds): Add flags member.
3473 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3474 points to a constant blob.
3476 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3477 (evaluate_subexp_standard): Pass noside argument.
3478 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3479 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3480 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3481 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3482 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3484 2014-04-11 Keith Seitz <keiths@redhat.com>
3487 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3488 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3491 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3493 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3494 (evaluate_subexp_standard): Pass noside argument.
3495 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3496 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3497 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3498 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3499 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3501 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3503 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3504 points to a constant blob.
3506 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3508 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3509 property and store it as the high bound and flag the range accordingly.
3510 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3511 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3512 * gdbtypes.h (enum range_flags): New enum.
3513 (struct range_bounds): Add flags member.
3515 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3517 * c-typeprint.c (c_type_print_varspec_suffix): Added
3518 check for not yet resolved high bound. If unresolved, print
3519 "variable length" string to the console instead of random
3522 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3524 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3525 (ada_template_to_fixed_record_type_1): Likewise.
3526 (ada_to_fixed_type_1): Likewise.
3527 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3528 (cp_print_value): Likewise.
3529 * d-valprint.c (dynamic_array_type): Likewise.
3530 * eval.c (evaluate_subexp_with_coercion): Likewise.
3531 * findvar.c (address_of_variable): Likewise.
3532 * jv-valprint.c (java_value_print): Likewise.
3533 * valops.c (value_ind): Likewise.
3534 * value.c (coerce_ref): Likewise.
3536 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3538 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3539 value and retrieve the dynamic type size.
3541 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3543 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3544 passed to sizeof is dynamic evaluate the argument to compute the length.
3546 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3548 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3549 (dwarf2_evaluate_property): New function.
3550 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3551 * dwarf2read.c (attr_to_dynamic_prop): New function.
3552 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3554 * gdbtypes.c: Include dwarf2loc.h.
3555 (is_dynamic_type): New function.
3556 (resolve_dynamic_type): New function.
3557 (resolve_dynamic_bounds): New function.
3558 (get_type_length): New function.
3559 (check_typedef): Use get_type_length to compute type length.
3560 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3561 (TYPE_LOW_BOUND_KIND): New macro.
3562 (is_dynamic_type): New function prototype.
3563 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3564 to resolve dynamic properties of the type. Update comment.
3565 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3567 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3569 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3570 declaring high/low bounds and change uses accordingly. Call
3571 create_range_type instead of create_static_range_type.
3572 * gdbtypes.c (create_range_type): New function.
3573 (create_range_type): Convert bounds into struct bound_prop and pass
3574 them to create_range_type.
3575 * gdbtypes.h (struct bound_prop): New struct.
3576 (create_range_type): New function prototype.
3577 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3578 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3579 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3581 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3583 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3585 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3586 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3587 * ada-lang.c: All uses of create_range_type updated.
3588 * coffread.c: All uses of create_range_type updated.
3589 * dwarf2read.c: All uses of create_range_type updated.
3590 * f-exp.y: All uses of create_range_type updated.
3591 * m2-valprint.c: All uses of create_range_type updated.
3592 * mdebugread.c: All uses of create_range_type updated.
3593 * stabsread.c: All uses of create_range_type updated.
3594 * valops.c: All uses of create_range_type updated.
3595 * valprint.c: All uses of create_range_type updated.
3597 2014-04-10 Pedro Alves <palves@redhat.com>
3599 * breakpoint.c (single_step_breakpoints)
3600 (single_step_gdbarch): Move up in the file.
3601 (one_breakpoint_xfer_memory): New function, factored out from ...
3602 (breakpoint_xfer_memory): ... here. Also process single-step
3605 2014-04-09 Tristan Gingold <gingold@adacore.com>
3607 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3609 (darwin_decode_exception_message): Free port only after use.
3611 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3613 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3614 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3615 when setting the size of call_length.
3617 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3619 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3620 dereference TYPE_CODE_REF values.
3622 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3624 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3625 end of warning message.
3627 2014-04-03 Doug Evans <dje@google.com>
3629 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3630 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3632 2014-04-02 Alan Modra <amodra@gmail.com>
3634 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3635 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3636 (struct symbol_file_add_from_memory_args): Add size field.
3637 (find_vdso_size): New function.
3638 (add_vsyscall_page): Attempt to find vdso size.
3640 2014-04-01 Doug Evans <dje@google.com>
3642 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3644 2014-04-01 Tristan Gingold <gingold@adacore.com>
3646 * darwin-nat.c (darwin_encode_reply): Add prototype.
3647 (darwin_decode_exception_message): Reply to unknown inferiors.
3648 (darwin_decode_message): Handle message by id. Ignore message
3649 to unknown inferior.
3650 (darwin_wait): Discard unknown messages, add debug trace.
3652 2014-03-31 Doug Evans <dje@google.com>
3654 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3657 2014-03-31 Doug Evans <dje@google.com>
3659 New option "set print symbol-loading".
3661 * solib.c (solib_read_symbols): Only print symbol loading messages
3663 (solib_add): If symbol loading is in "brief" mode, notify user
3664 symbols are being loaded.
3665 (reload_shared_libraries_1): Ditto.
3666 * symfile.c (print_symbol_loading_off): New static global.
3667 (print_symbol_loading_brief): New static global.
3668 (print_symbol_loading_full): New static global.
3669 (print_symbol_loading_enums): New static global.
3670 (print_symbol_loading): New static global.
3671 (print_symbol_loading_p): New function.
3672 (symbol_file_add_with_addrs): Only print symbol loading messages
3674 (_initialize_symfile): Register "print symbol-loading" set/show
3676 * symfile.h (print_symbol_loading_p): Declare.
3678 2014-03-30 Doug Evans <xdje42@gmail.com>
3680 * infrun.c (set_last_target_status): New function.
3681 (handle_inferior_event): Call it.
3683 2014-03-30 Doug Evans <xdje42@gmail.com>
3685 * inferior.h (enum stop_kind): Improve comment.
3687 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3689 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3690 a reference, strip the reference layer before calling
3691 the lang_ops value_has_mutated callback.
3693 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3695 Remove some globals from our parser.
3696 * language.c (unk_lang_parser): Add "struct parser_state"
3698 * language.h (struct language_defn) <la_parser>: Likewise.
3699 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3700 (initialize_expout): Add "struct parser_state" argument.
3701 Rewrite function to use the parser state.
3702 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3703 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3704 write_exp_elt_longcst, write_exp_elt_dblcst,
3705 write_exp_elt_decfloatcst, write_exp_elt_type,
3706 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3707 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3708 write_dollar_variable): Likewise.
3709 (parse_exp_in_context_1): Use parser state.
3710 (insert_type_address_space): Add "struct parser_state" argument.
3712 (increase_expout_size): New function.
3713 * parser-defs.h: Forward declare "struct language_defn" and
3714 "struct parser_state".
3715 (expout, expout_size, expout_ptr): Remove extern declarations.
3716 (parse_gdbarch, parse_language): Rewrite macro declarations to
3717 accept the parser state.
3718 (struct parser_state): New struct.
3719 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3720 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3721 write_exp_elt_decfloatcst, write_exp_elt_type,
3722 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3723 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3724 write_exp_msymbol, write_dollar_variable,
3725 mark_struct_expression, insert_type_address_space): Add "struct
3726 parser_state" argument.
3727 (increase_expout_size): New function.
3728 * utils.c (do_clear_parser_state): New function.
3729 (make_cleanup_clear_parser_state): Likewise.
3730 * utils.h (make_cleanup_clear_parser_state): New function
3732 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3733 Update calls to write_exp* in order to pass the parser state.
3734 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3735 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3736 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3737 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3738 * stap-probe.c (stap_parse_register_operand): Likewise.
3739 (stap_parse_single_operand): Likewise.
3740 (stap_parse_argument_1): Likewise.
3741 (stap_parse_argument): Use parser state.
3742 * stap-probe.h: Include "parser-defs.h".
3743 (struct stap_parse_info) <pstate>: New field.
3744 * c-exp.y (parse_type): Rewrite to use parser state.
3745 (yyparse): Redefine to c_parse_internal.
3746 (pstate): New global variable.
3747 (parse_number): Add "struct parser_state" argument.
3748 (write_destructor_name): Likewise.
3749 (type_exp): Update calls to write_exp* and similars in order to
3751 (exp1, exp, variable, qualified_name, space_identifier,
3752 typename, typebase): Likewise.
3753 (write_destructor_name, parse_number, lex_one_token,
3754 classify_name, classify_inner_name, c_parse): Add "struct
3755 parser_state" argument. Update function to use parser state.
3756 * c-lang.h: Forward declare "struct parser_state".
3757 (c_parse): Add "struct parser_state" argument.
3758 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3759 (yyparse): Redefine macro to ada_parse_internal.
3760 (pstate): New variable.
3761 (write_int, write_object_renaming, write_var_or_type,
3762 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3763 type_int, type_long, type_long_long, type_float, type_double,
3764 type_long_double, type_char, type_boolean, type_system_address):
3765 Add "struct parser_state" argument.
3766 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3767 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3768 var_or_type, aggregate, aggregate_component_list,
3769 positional_list, others, component_group,
3770 component_associations): Update calls to write_exp* and similar
3771 functions in order to use parser state.
3772 (ada_parse, write_var_from_sym, write_int,
3773 write_exp_op_with_string, write_object_renaming,
3774 find_primitive_type, write_selectors, write_ambiguous_var,
3775 write_var_or_type, write_name_assoc, type_int, type_long,
3776 type_long_long, type_float, type_double, type_long_double,
3777 type_char, type_boolean, type_system_address): Add "struct
3778 parser_state" argument. Adjust function to use parser state.
3779 * ada-lang.c (parse): Likewise.
3780 * ada-lang.h: Forward declare "struct parser_state".
3781 (ada_parse): Add "struct parser_state" argument.
3782 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3783 calls to both functions.
3784 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3786 (yyparse): Redefine macro to f_parse_internal.
3787 (pstate): New variable.
3788 (parse_number): Add "struct parser_state" argument.
3789 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3790 and similars in order to use parser state.
3791 (parse_number): Adjust code to use parser state.
3793 (f_parse): New function.
3794 * f-lang.h: Forward declare "struct parser_state".
3795 (f_parse): Add "struct parser_state" argument.
3796 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3798 (yyparse): Redefine macro for java_parse_internal.
3799 (pstate): New variable.
3800 (push_expression_name, push_expression_name, insert_exp): Add
3801 "struct parser_state" argument.
3802 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3803 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3804 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3805 PostIncrementExpression, PostDecrementExpression,
3806 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3807 UnaryExpressionNotPlusMinus, CastExpression,
3808 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3809 RelationalExpression, EqualityExpression, AndExpression,
3810 ExclusiveOrExpression, InclusiveOrExpression,
3811 ConditionalAndExpression, ConditionalOrExpression,
3812 ConditionalExpression, Assignment, LeftHandSide): Update
3813 calls to write_exp* and similars in order to use parser state.
3814 (parse_number): Ajust code to use parser state.
3816 (java_parse): New function.
3817 (push_variable): Add "struct parser_state" argument. Adjust
3818 code to user parser state.
3819 (push_fieldnames, push_qualified_expression_name,
3820 push_expression_name, insert_exp): Likewise.
3821 * jv-lang.h: Forward declare "struct parser_state".
3822 (java_parse): Add "struct parser_state" argument.
3823 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3825 (yyparse): Redefine macro to m2_parse_internal.
3826 (pstate): New variable.
3827 (type_exp, exp, fblock, variable, type): Update calls to
3828 write_exp* and similars to use parser state.
3830 (m2_parse): New function.
3831 * m2-lang.h: Forward declare "struct parser_state".
3832 (m2_parse): Add "struct parser_state" argument.
3833 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3834 * objc-lang.h: Forward declare "struct parser_state".
3835 (end_msglist): Add "struct parser_state" argument.
3836 * p-exp.y (parse_type): Rewrite macro to use parser state.
3837 (yyparse): Redefine macro to pascal_parse_internal.
3838 (pstate): New variable.
3839 (parse_number): Add "struct parser_state" argument.
3840 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3841 write_exp* and similars in order to use parser state.
3842 (parse_number, yylex): Adjust code to use parser state.
3843 (pascal_parse): New function.
3844 * p-lang.h: Forward declare "struct parser_state".
3845 (pascal_parse): Add "struct parser_state" argument.
3846 * go-exp.y (parse_type): Rewrite macro to use parser state.
3847 (yyparse): Redefine macro to go_parse_internal.
3848 (pstate): New variable.
3849 (parse_number): Add "struct parser_state" argument.
3850 (type_exp, exp1, exp, variable, type): Update calls to
3851 write_exp* and similars in order to use parser state.
3852 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3853 to use parser state.
3854 (go_parse): Likewise.
3855 * go-lang.h: Forward declare "struct parser_state".
3856 (go_parse): Add "struct parser_state" argument.
3858 2014-03-27 Doug Evans <dje@google.com>
3860 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3862 2014-03-27 Doug Evans <dje@google.com>
3864 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3865 Remove argument abbrev_section. All callers updated.
3867 2014-03-27 Doug Evans <dje@google.com>
3869 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3870 addr_base, ranges_base.
3872 2014-03-26 Keith Seitz <keiths@redhat.com>
3874 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3875 types, not VAR_DOMAIN.
3877 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3879 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3881 * features/nios2-linux.c: Regenerated.
3882 * features/nios2.c: Regenerated.
3884 2014-03-25 Pedro Alves <palves@redhat.com>
3886 * cli/cli-script.c (script_from_file): Force the interpreter to
3889 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3891 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3892 small stack allocation.
3894 2014-03-24 Tristan Gingold <gingold@adacore.com>
3896 * darwin-nat.c (exc_server): Remove unused prototype.
3897 (darwin_dump_message): Correctly display data on x86_64.
3898 (darwin_encode_reply): Fix style.
3899 Add comments and fix indentation.
3901 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3903 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3905 2014-03-22 Doug Evans <xdje42@gmail.com>
3907 * infcmd.c: Whitespace fixes.
3908 (interrupt_command): Merge two function comments into one.
3910 2014-03-22 Doug Evans <xdje42@gmail.com>
3912 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3915 2014-03-22 Yao Qi <yao@codesourcery.com>
3917 * remote.c (target_read_live_memory): Remove.
3918 (memory_xfer_live_readonly_partial): Rename it to
3919 remote_xfer_live_readonly_partial. Remove argument 'object'.
3920 All callers updated. Call remote_read_bytes_1
3921 instead of target_read_live_memory.
3922 * tracepoint.c (set_traceframe_number): Remove.
3923 (make_cleanup_restore_traceframe_number): Likewise .
3924 * tracepoint.h (set_traceframe_number): Remove declaration.
3925 (make_cleanup_restore_traceframe_number): Likewise.
3927 2014-03-22 Yao Qi <yao@codesourcery.com>
3929 * remote.c (remote_read_bytes): Move code on reading from the
3931 (remote_read_bytes_1): ... here. New function.
3933 2014-03-22 Yao Qi <yao@codesourcery.com>
3935 * ctf.c (ctf_xfer_partial): Check the return value of
3936 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3937 return TARGET_XFER_UNAVAILABLE.
3938 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3939 * target.c (target_read_live_memory): Move it to remote.c.
3940 (memory_xfer_live_readonly_partial): Likewise.
3941 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3942 * remote.c (target_read_live_memory): Moved from target.c.
3943 (memory_xfer_live_readonly_partial): Likewise.
3944 (remote_read_bytes): Factored out from
3945 memory_xfer_partial_1.
3947 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3949 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3952 2014-03-21 Pedro Alves <palves@redhat.com>
3954 * infrun.c (normal_stop): Extend comment.
3956 2014-03-21 Hui Zhu <hui@codesourcery.com>
3957 Pedro Alves <palves@redhat.com>
3959 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3961 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3962 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3963 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3965 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3967 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3968 `z' formatted output modifier.
3970 2014-03-20 Tom Tromey <tromey@redhat.com>
3971 Sergio Durigan Junior <sergiodj@redhat.com>
3973 * probe.c (parse_probes): Turn assert into an ordinary error.
3974 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3975 exceptions when parsing probes. Rearrange the code for clarity.
3977 2014-03-20 Tom Tromey <tromey@redhat.com>
3980 * top.c (execute_command): Only dispatch events if the command
3983 2014-03-20 Tom Tromey <tromey@redhat.com>
3986 * infcall.c: Include event-top.h.
3987 (run_inferior_call): Call async_disable_stdin if needed.
3989 2014-03-20 Pedro Alves <palves@redhat.com>
3991 * infrun.c (prepare_to_proceed): Delete.
3992 (thread_still_needs_step_over): New function.
3993 (find_thread_needs_step_over): New function.
3994 (proceed): If the current thread needs a step-over, set its
3995 steping_over_breakpoint flag. Adjust to use
3996 find_thread_needs_step_over instead of prepare_to_proceed.
3997 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3998 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4000 (switch_back_to_stepped_thread): Step over breakpoints of all
4001 threads not the stepping thread, before switching back to the
4004 2014-03-20 Pedro Alves <palves@redhat.com>
4006 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4008 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4009 * infrun.c (saved_singlestep_ptid)
4010 (stepping_past_singlestep_breakpoint): Delete.
4011 (resume): Remove stepping_past_singlestep_breakpoint handling.
4012 (proceed): Store the prev_pc of the stepping thread too.
4013 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4015 (enum infwait_states): Delete infwait_thread_hop_state.
4016 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4018 (handle_inferior_event): Adjust.
4019 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4020 handling and the thread-hop code. Before removing single-step
4021 breakpoints, check whether the thread hit a single-step breakpoint
4022 of another thread. If it did, the trap is not a random signal.
4023 (switch_back_to_stepped_thread): If the event thread hit a
4024 single-step breakpoint, unblock it before switching to the
4025 stepping thread. Handle the case of the stepped thread having
4027 (keep_going): Handle the case of the current thread moving past a
4028 single-step breakpoint.
4030 2014-03-20 Pedro Alves <palves@redhat.com>
4033 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4034 are being stepped over.
4035 (breakpoint_address_match): Make extern.
4036 * breakpoint.h (breakpoint_address_match): New declaration.
4037 * inferior.h (stepping_past_instruction_at): New declaration.
4038 * infrun.c (struct step_over_info): New type.
4039 (step_over_info): New global.
4040 (set_step_over_info, clear_step_over_info)
4041 (stepping_past_instruction_at): New functions.
4042 (handle_inferior_event): Clear the step-over info when
4043 trap_expected is cleared.
4044 (resume): Remove now stale comment.
4045 (clear_proceed_status): Clear step-over info.
4046 (proceed): Adjust step-over handling to set or clear the step-over
4047 info instead of removing all breakpoints.
4048 (handle_signal_stop): When setting up a thread-hop, don't remove
4050 (stop_stepping): Clear step-over info.
4051 (keep_going): Adjust step-over handling to set or clear step-over
4052 info and then always inserting breakpoints, instead of removing
4053 all breakpoints when stepping over one.
4055 2014-03-20 Pedro Alves <palves@redhat.com>
4057 * infrun.c (previous_inferior_ptid): Adjust comment.
4058 (deferred_step_ptid): Delete.
4059 (infrun_thread_ptid_changed, prepare_to_proceed)
4060 (init_wait_for_inferior): Adjust.
4061 (handle_signal_stop): Delete deferred_step_ptid handling.
4063 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4066 * defs.h (sync_quit_force_run): New declaration.
4067 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4068 * event-top.c (async_sigterm_handler): New declaration.
4069 (async_sigterm_token): New variable.
4070 (async_init_signals): Create also async_sigterm_token.
4071 (async_sigterm_handler): New function.
4072 (sync_quit_force_run): New variable.
4073 (handle_sigterm): Replace quit_force call by other calls.
4074 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4076 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4078 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4079 offset into SPE pseudo registers.
4081 2014-03-18 Pedro Alves <palves@redhat.com>
4084 * inferior.h (print_stop_event): Declare.
4085 * infrun.c (print_stop_event): New, factored out from ...
4086 (normal_stop): ... this.
4087 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4088 of bpstat_print/print_stack_frame.
4090 2014-03-17 Tom Tromey <tromey@redhat.com>
4092 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4094 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4096 * ada-lang.c (decode_constrained_packed_array): Perform a
4097 minimal coercion for reference with coerce_ref instead of
4100 2014-03-17 Tristan Gingold <gingold@adacore.com>
4102 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4103 (darwin_solib_create_inferior_hook): Emit a warning if version
4106 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4108 * python/py-value.c (get_field_flag): Cast flag_name argument to
4109 PyObject_GetAttrString to support Python 2.4.
4111 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4113 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4114 (Global Maintainers): Remove Jan Kratochvil.
4116 2014-03-14 Pedro Alves <palves@redhat.com>
4118 * inferior.h (terminal_ours_for_output): Rename to ...
4119 (child_terminal_ours_for_output): ... this.
4120 (terminal_save_ours): Rename to ...
4121 (child_terminal_save_ours): ... this.
4122 (terminal_ours): Rename to ...
4123 (child_terminal_ours): ... this.
4124 (terminal_inferior): Rename to ...
4125 (child_terminal_inferior): ... this.
4126 (terminal_init_inferior): Rename to ...
4127 (child_terminal_init_inferior): ... this.
4128 (terminal_init_inferior_with_pgrp): Rename to ...
4129 (child_terminal_init_inferior_with_pgrp): ... this.
4130 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4131 (child_terminal_init_with_pgrp): ... this.
4132 (terminal_save_ours): Rename to ...
4133 (child_terminal_save_ours): ... this.
4134 (terminal_init_inferior): Rename to ...
4135 (child_terminal_init): ... this. Adjust.
4136 (terminal_inferior): Rename to ...
4137 (child_terminal_inferior): ... this.
4138 (terminal_ours_for_output): Rename to ...
4139 (child_terminal_ours_for_output): ... this. Adjust.
4140 (terminal_ours): Rename to ...
4141 (child_terminal_ours): ... this.
4142 (terminal_ours_1): Rename to ...
4143 (child_terminal_ours_1): ... this. Adjust.
4144 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4145 * windows-nat.c (do_initial_windows_stuff): Adjust.
4146 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4147 (gnu_terminal_init): ... this. Adjust.
4148 (gnu_target): Adjust.
4149 * inf-child.c (inf_child_target): Adjust.
4151 2014-03-13 Doug Evans <xdje42@gmail.com>
4154 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4157 2014-03-13 Doug Evans <xdje42@gmail.com>
4159 * value.c (record_latest_value): Call release_value_or_incref
4160 instead of release_value.
4162 2014-03-13 Pedro Alves <palves@redhat.com>
4164 * procfs.c (procfs_target): Don't override to_shortname,
4165 to_longname or to_doc.
4167 2014-03-13 Pedro Alves <palves@redhat.com>
4169 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4170 Unix in user visible strings.
4172 2014-03-12 Stan Shebs <stan@codesourcery.com>
4174 * gdbtypes.h: Annotate comments for Doxygen, add a page
4175 block comment with some general info.
4177 2014-03-12 Pedro Alves <palves@redhat.com>
4179 * infcmd.c (prepare_execution_command): New function, factored out
4180 from several execution commands.
4181 (run_command_1, continue_command, step_1, jump_command)
4182 (signal_command, until_command, advance_command, finish_command)
4183 (attach_command): Use prepare_execution_command.
4185 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4187 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4190 (struct arm_linux_thread_points): Removed.
4191 (struct arm_linux_process_info): New.
4192 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4193 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4194 (arm_linux_find_breakpoints_by_tid): Removed.
4195 (struct arch_lwp_info): New.
4196 (arm_linux_find_process_pid): New functions.
4197 (arm_linux_add_process): New functions.
4198 (arm_linux_process_info_get): New functions.
4199 (arm_linux_forget_process): New function.
4200 (arm_linux_get_debug_reg_state): New function.
4201 (struct update_registers_data): New.
4202 (update_registers_callback): New function.
4203 (arm_linux_insert_hw_breakpoint1): Updated.
4204 (arm_linux_remove_hw_breakpoint1): Updated.
4205 (arm_linux_insert_hw_breakpoint): Updated.
4206 (arm_linux_remove_hw_breakpoint): Updated.
4207 (arm_linux_insert_watchpoint): Updated.
4208 (arm_linux_remove_watchpoint): Updated.
4209 (arm_linux_new_thread): Updated.
4210 (arm_linux_prepare_to_resume): New function.
4211 (arm_linux_new_fork): New function.
4212 (_initialize_arm_linux_nat): Updated.
4214 2014-03-12 Pedro Alves <palves@redhat.com>
4216 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4218 2014-03-12 Tom Tromey <tromey@redhat.com>
4220 * inf-child.c (return_zero): New function.
4221 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4222 * aix-thread.c (aix_thread_inferior_created): New function.
4223 (aix_thread_attach): Remove.
4224 (init_aix_thread_ops): Don't set to_attach.
4225 (_initialize_aix_thread): Register inferior_created observer.
4226 * corelow.c (init_core_ops): Don't set to_attach or
4228 * exec.c (init_exec_ops): Don't set to_attach or
4230 * infcmd.c (run_command_1): Use find_run_target. Make direct
4232 (attach_command): Use find_attach_target. Make direct target
4234 * record-btrace.c (init_record_btrace_ops): Don't set
4236 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4238 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4239 set to_create_inferior.
4240 * target.c (complete_target_initialization): Add assertion.
4241 (target_create_inferior): Remove.
4242 (find_default_attach, find_default_create_inferior): Remove.
4243 (find_attach_target, find_run_target): New functions.
4244 (find_default_is_async_p, find_default_can_async_p)
4245 (target_supports_non_stop, target_attach): Remove.
4246 (init_dummy_target): Don't set to_create_inferior or
4247 to_supports_non_stop.
4248 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4249 TARGET_DEFAULT_FUNC.
4250 <to_create_inferior>: Add comment.
4251 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4252 TARGET_DEFAULT_RETURN.
4253 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4254 (find_attach_target, find_run_target): Declare.
4255 (target_create_inferior): Remove.
4256 (target_has_execution_1): Update comment.
4257 (target_supports_non_stop): Remove.
4258 * target-delegates.c: Rebuild.
4260 2014-03-12 Pedro Alves <palves@redhat.com>
4262 * inf-child.h: Update comment to not mention Unix.
4264 2014-03-12 Pedro Alves <palves@redhat.com>
4266 * inf-child.c: Update top comment to not mention Unix. Add
4267 generic comment describing how this target is meant to be used.
4268 (inf_child_post_attach, inf_child_post_startup_inferior)
4269 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4272 2014-03-12 Pedro Alves <palves@redhat.com>
4274 * nto-procfs.c: Include inf-child.h.
4275 (procfs_ops): Delete global.
4276 (procfs_can_run): Delete method.
4277 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4278 target pointer instead of referencing procfs_ops.
4279 (procfs_prepare_to_store): Delete.
4280 (init_procfs_ops): Delete function.
4281 (procfs_target): New function, based on init_procfs_ops, but
4282 inherit inf_child_target.
4283 (_initialize_procfs): Use procfs_target.
4285 2014-03-12 Pedro Alves <palves@redhat.com>
4287 * windows-nat.c: Include inf-child.h.
4288 (windows_ops): Delete global.
4289 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4291 (init_windows_ops): Delete function.
4292 (windows_target): New function, based on init_windows_ops, but
4293 inherit inf_child_target.
4294 (_initialize_windows_nat): Use windows_target. Install x86
4295 specific target methods here.
4297 2014-03-10 Doug Evans <xdje42@gmail.com>
4299 * guile/guile.c (call_initialize_gdb_module): New function.
4300 (initialize_guile): Replace call to scm_init_guile with call to
4303 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4305 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4306 in call to TYPE_CODE macro.
4308 2014-03-10 Jerome Guitton <guitton@adacore.com>
4310 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4311 Resolve tagged types to full view.
4313 2014-03-10 Hui Zhu <hui@codesourcery.com>
4315 * target.h (target_insert_breakpoint): Remove "hardware" from its
4318 2014-03-07 Doug Evans <dje@google.com>
4320 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4322 2014-03-07 Doug Evans <dje@google.com>
4324 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4325 Remove unused local comp_dir_attr. Assert exactly one of
4326 stub_comp_unit_die, stub_comp_dir is non-NULL.
4328 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4330 * target.h (complete_target_initialization, add_target):
4333 2014-03-07 Pedro Alves <palves@redhat.com>
4335 * go32-nat.c: Include inf-child.h.
4336 (go32_ops): Delete global.
4337 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4339 (go32_create_inferior): Push the passed in target pointer instead
4340 of referencing go32_ops.
4341 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4342 (go32_target): New function, based on init_go32_ops, but inherit
4344 (_initialize_go32_nat): Use go32_target. Move parts of
4347 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4349 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4350 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4351 SYMBOL_VALUE_ADDRESS.
4352 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4354 2014-03-06 Yao Qi <yao@codesourcery.com>
4356 * breakpoint.c (get_tracepoint_by_number): Remove argument
4357 optional_p. All callers updated. Adjust comments. Update
4359 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4361 2014-03-06 Yao Qi <yao@codesourcery.com>
4363 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4364 early if get_number returns zero. Use 'p' instead of 'args'.
4366 2014-03-06 Yao Qi <yao@codesourcery.com>
4368 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4371 2014-03-06 Yao Qi <yao@codesourcery.com>
4373 PR breakpoints/16508
4374 * tracepoint.c (check_trace_running): New function.
4375 (trace_find_command): Move code to check_trace_running and
4376 call check_trace_running.
4377 (trace_find_pc_command): Likewise.
4378 (trace_find_tracepoint_command): Likewise.
4379 (trace_find_line_command): Likewise.
4380 (trace_find_range_command): Likewise.
4381 * tracepoint.h (check_trace_running): Likewise.
4382 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4384 2014-03-06 Yao Qi <yao@codesourcery.com>
4386 * target.h (struct target_ops) <to_traceframe_info>: Use
4387 TARGET_DEFAULT_NORETURN (tcomplain ()).
4388 * target-delegates.c: Regenerated.
4390 2014-03-05 Pedro Alves <palves@redhat.com>
4393 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4394 void. Update comment.
4395 (dcache_xfer_memory): Delete.
4396 (dcache_read_memory_partial): New, based on the read bits of
4398 (dcache_update): Add status parameter. Use ULONGEST for len, and
4399 adjust. Discard cache lines if the reason for the update was
4401 * dcache.h (dcache_xfer_memory): Delete declaration.
4402 (dcache_read_memory_partial): New declaration.
4403 (dcache_update): Update prototype.
4404 * target.c (raw_memory_xfer_partial): Update the dcache here.
4405 (memory_xfer_partial_1): Don't handle dcache writes here.
4407 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4409 * remote-sim.c (gdbsim_load): Add const to prog.
4411 2014-03-03 Tom Tromey <tromey@redhat.com>
4413 * elfread.c (probe_key): Change to bfd_data.
4414 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4415 now per-BFD, not per-objfile.
4416 * stap-probe.c (stap_probe_destroy): Update comment.
4417 (handle_stap_probe): Allocate on the per-BFD obstack.
4419 2014-03-03 Tom Tromey <tromey@redhat.com>
4421 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4422 * breakpoint.c (create_longjmp_master_breakpoint): Use
4424 (add_location_to_breakpoint, bkpt_probe_insert_location)
4425 (bkpt_probe_remove_location): Update.
4426 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4427 * elfread.c (elf_symfile_relocate_probe): Remove.
4428 (elf_probe_fns): Update.
4429 (insert_exception_resume_breakpoint): Change type of "probe"
4430 parameter to bound_probe.
4431 (check_exception_resume): Update.
4432 * objfiles.c (objfile_relocate1): Don't relocate probes.
4433 * probe.c (bound_probe_s): New typedef.
4434 (parse_probes): Use get_probe_address. Set sal's objfile.
4435 (find_probe_by_pc): Return a bound_probe.
4436 (collect_probes): Return a VEC(bound_probe_s).
4437 (compare_probes): Update.
4438 (gen_ui_out_table_header_info): Change type of "probes"
4440 (info_probes_for_ops): Update.
4441 (get_probe_address): New function.
4442 (probe_safe_evaluate_at_pc): Update.
4443 * probe.h (struct probe_ops) <get_probe_address>: New field.
4444 <set_semaphore, clear_semaphore>: Add objfile parameter.
4445 (struct probe) <objfile>: Remove field.
4447 <address>: Update comment.
4448 (struct bound_probe): New.
4449 (find_probe_by_pc): Return a bound_probe.
4450 (get_probe_address): Declare.
4451 * solib-svr4.c (struct probe_and_action) <address>: New field.
4452 (hash_probe_and_action, equal_probe_and_action): Update.
4453 (register_solib_event_probe): Add address parameter.
4454 (solib_event_probe_at): Update.
4455 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4457 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4458 (stap_get_probe_address): New function.
4459 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4460 (compile_probe_arg): Update.
4461 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4463 (handle_stap_probe): Don't relocate the probe.
4464 (stap_relocate): Remove.
4465 (stap_gen_info_probes_table_values): Update.
4466 (stap_probe_ops): Remove stap_relocate.
4467 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4468 (debug_sym_probe_fns): Update.
4469 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4470 * symtab.c (init_sal): Use memset.
4471 * symtab.h (struct symtab_and_line) <objfile>: New field.
4472 * tracepoint.c (start_tracing, stop_tracing): Update.
4474 2014-03-03 Tom Tromey <tromey@redhat.com>
4476 * probe.h (parse_probes, find_probe_by_pc)
4477 (find_probes_in_objfile): Fix comments.
4479 2014-03-02 Doug Evans <xdje42@gmail.com>
4481 * infrun.c (handle_signal_stop): Replace test for
4482 TARGET_WAITKIND_STOPPED with an assert.
4484 2014-03-02 Doug Evans <xdje42@gmail.com>
4486 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4488 2014-03-02 Doug Evans <xdje42@gmail.com>
4490 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4492 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4494 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4496 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4498 * i386obsd-nat.c: Include "obsd-nat.h".
4499 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4501 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4503 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4505 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4507 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4509 * mips64obsd-nat.c: Include "obsd-nath".
4510 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4512 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4514 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4516 * amd64obsd-nat.c: Include "obsd-nat,h.
4517 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4519 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4521 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4523 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4524 (find_overload_match): Update call to find_oload_champ.
4525 (find_oload_champ_namespace_loop): Likewise
4527 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4529 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4531 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4532 * config/sparc/obsd64.mh: New file.
4533 * sparc64obsd-nat.c: New file.
4535 * obsd-nat.h: New file.
4536 * obsd-nat.c: New file.
4537 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4538 (ALLDEPFILES): Add obsd-nat.c.
4540 2014-02-28 Tom Tromey <tromey@redhat.com>
4542 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4543 * cli-out.h (cli_ui_out_impl): Now const.
4544 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4545 * ui-out.c (struct ui_out) <impl>: Now const.
4546 (default_ui_out_impl): Now const.
4547 (ui_out_new): Make 'impl' parameter const.
4548 * ui-out.h (ui_out_new): Update.
4550 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4552 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4554 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4556 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4558 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4560 Additional PR 8882 fix.
4561 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4563 2014-02-27 Pedro Alves <palves@redhat.com>
4565 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4568 2014-02-27 Pedro Alves <palves@redhat.com>
4571 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4572 * nat/linux-waitpid.c: Include string.h.
4573 (status_to_str): Moved here and made extern.
4574 * nat/linux-waitpid.h (status_to_str): New declaration.
4576 2014-02-27 Hui Zhu <hui@codesourcery.com>
4579 * infrun.c (ptid_match): Move ...
4580 * common/ptid.c (ptid_match): ... here.
4581 * inferior.h (ptid_match): Move ...
4582 * common/ptid.h (ptid_match): ... here.
4584 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4586 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4587 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4590 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4592 * obsd-tdep.c (obsd_auxv_parse): New function.
4593 (obsd_init_abi): Set auxv_parse.
4595 * gdbarch.sh (auxv_parse): New.
4596 * gdbarch.h: Regenerated.
4597 * gdbarch.c: Regenerated.
4598 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4600 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4602 * guile/scm-value.c (gdbscm_history_append_x): New function.
4603 (value_functions): Add it.
4605 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4607 * dwarf2read.c (attr_value_as_address): New function.
4608 (dwarf2_find_base_address, read_call_site_scope): Use
4609 attr_value_as_address in place of DW_ADDR.
4610 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4611 the low and high addresses. Slight rework of the handling
4612 of the high pc being a constant form, and limit it to
4613 DWARF verson 4 or higher.
4614 (dwarf2_record_block_ranges): Likewise.
4615 (read_partial_die): Likewise.
4616 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4618 2014-02-26 Tom Tromey <tromey@redhat.com>
4620 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4622 2014-02-26 Tom Tromey <tromey@redhat.com>
4624 * elfread.c (elf_read_minimal_symbols): Return early if
4625 minimal symbols have already been read. Add "ei" parameter.
4626 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4627 * minsyms.c (prim_record_minimal_symbol_full): Update.
4628 * objfiles.h (struct objstats) <n_minsyms>: Move...
4629 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4630 * symmisc.c (print_objfile_statistics): Update.
4632 2014-02-26 Tom Tromey <tromey@redhat.com>
4634 * elfread.c (elf_read_minimal_symbols): New function, from
4636 (elf_symfile_read): Call it.
4638 2014-02-26 Tom Tromey <tromey@redhat.com>
4640 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4641 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4642 (lookup_minimal_symbol_solib_trampoline)
4643 (lookup_minimal_symbol_by_pc_section_1)
4644 (lookup_minimal_symbol_and_objfile): Update.
4645 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4646 Don't allocate a minimal symbol if minsyms have already been read.
4647 (build_minimal_symbol_hash_tables): Update.
4648 (install_minimal_symbols): Do nothing if minsyms already read.
4649 Use the per-BFD obstack.
4650 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4651 * objfiles.c (allocate_objfile): Call
4652 terminate_minimal_symbol_table later.
4653 (have_minimal_symbols): Update.
4654 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4655 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4656 Move from struct objfile.
4657 <minsyms_read>: New field.
4658 (struct objfile) <msymbols, minimal_symbol_count,
4659 msymbol_hash, msymbol_demangled_hash>: Move.
4660 (ALL_OBJFILE_MSYMBOLS): Update.
4661 * symfile.c (read_symbols): Set minsyms_read.
4662 (reread_symbols): Update.
4663 * symmisc.c (dump_objfile, dump_msymbols): Update.
4665 2014-02-26 Tom Tromey <tromey@redhat.com>
4667 * minsyms.c (msymbols_sort): Remove.
4668 * minsyms.h (msymbols_sort): Remove.
4669 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4670 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4671 * elfread.c (elf_symtab_read): Don't add section offsets.
4672 * xcoffread.c (record_minimal_symbol): Don't add section offset
4673 to minimal symbol address.
4674 * somread.c (text_offset, data_offset): Remove.
4675 (som_symtab_read): Don't add section offsets to minimal symbol
4677 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4678 Don't add section offsets to minimal symbols.
4679 * coffread.c (coff_symtab_read): Don't add section offsets
4680 to minimal symbol addresses.
4681 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4682 to minimal symbol addresses.
4683 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4684 section offset to minimal symbol addresses.
4685 * mdebugread.c (parse_partial_symbols): Don't add section
4686 offset to minimal symbol addresses.
4687 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4688 offset to minimal symbol addresses.
4690 2014-02-26 Tom Tromey <tromey@redhat.com>
4692 * ada-lang.c (ada_main_name): Update.
4693 (ada_add_standard_exceptions): Update.
4694 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4695 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4696 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4697 * auxv.c (ld_so_xfer_auxv): Update.
4698 * avr-tdep.c (avr_scan_prologue): Update.
4699 * ax-gdb.c (gen_var_ref): Update.
4700 * blockframe.c (get_pc_function_start)
4701 (find_pc_partial_function_gnu_ifunc): Update.
4702 * breakpoint.c (create_overlay_event_breakpoint)
4703 (create_longjmp_master_breakpoint)
4704 (create_std_terminate_master_breakpoint)
4705 (create_exception_master_breakpoint): Update.
4706 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4707 * c-valprint.c (c_val_print): Update.
4708 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4709 * common/agent.c (agent_look_up_symbols): Update.
4710 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4711 * dwarf2loc.c (call_site_to_target_addr): Update.
4712 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4713 * elfread.c (elf_gnu_ifunc_record_cache)
4714 (elf_gnu_ifunc_resolve_by_got): Update.
4715 * findvar.c (default_read_var_value): Update.
4716 * frame.c (inside_main_func): Update.
4717 * frv-tdep.c (frv_frame_this_id): Update.
4718 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4719 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4721 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4722 (hppa_hpux_find_dummy_bpaddr): Update.
4723 * hppa-tdep.c (hppa_symbol_address): Update.
4724 * infcmd.c (until_next_command): Update.
4725 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4727 * linespec.c (minsym_found, add_minsym): Update.
4728 * linux-nat.c (get_signo): Update.
4729 * linux-thread-db.c (inferior_has_bug): Update.
4730 * m32c-tdep.c (m32c_return_value)
4731 (m32c_m16c_address_to_pointer): Update.
4732 * m32r-tdep.c (m32r_frame_this_id): Update.
4733 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4734 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4735 * maint.c (maintenance_translate_address): Update.
4736 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4737 (frob_address): New function.
4738 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4739 frob_address. Rename parameter to "pc_in".
4740 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4742 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4744 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4745 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4746 * objc-lang.c (find_objc_msgsend): Update.
4747 * objfiles.c (objfile_relocate1): Update.
4748 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4749 * p-valprint.c (pascal_val_print): Update.
4750 * parse.c (write_exp_msymbol): Update.
4751 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4752 (ppc_elfv2_skip_entrypoint): Update.
4753 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4754 * printcmd.c (build_address_symbolic, msym_info)
4755 (address_info): Update.
4756 * proc-service.c (ps_pglobal_lookup): Update.
4757 * psymtab.c (find_pc_sect_psymtab_closer)
4758 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4759 Change msymbol parameter to bound_minimal_symbol.
4760 * ravenscar-thread.c (get_running_thread_id): Update.
4761 * remote.c (remote_check_symbols): Update.
4762 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4764 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4765 * solib-dsbt.c (lm_base): Update.
4766 * solib-frv.c (lm_base, main_got): Update.
4767 * solib-irix.c (locate_base): Update.
4768 * solib-som.c (som_solib_create_inferior_hook)
4769 (link_map_start): Update.
4770 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4771 * solib-svr4.c (elf_locate_base, enable_break): Update.
4772 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4773 (flush_ea_cache): Update.
4774 * stabsread.c (define_symbol, scan_file_globals): Update.
4775 * stack.c (find_frame_funname): Update.
4776 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4777 (debug_qf_find_pc_sect_symtab): Update.
4778 * symfile.c (simple_read_overlay_table)
4779 (simple_overlay_update): Update.
4780 * symfile.h (struct quick_symbol_functions)
4781 <find_pc_sect_symtab>: Change type of msymbol to
4782 bound_minimal_symbol.
4783 * symmisc.c (dump_msymbols): Update.
4784 * symtab.c (find_pc_sect_symtab_via_partial)
4785 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4786 (search_symbols, print_msymbol_info): Update.
4787 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4788 (MSYMBOL_VALUE_ADDRESS): Redefine.
4789 (BMSYMBOL_VALUE_ADDRESS): New macro.
4790 * tracepoint.c (scope_info): Update.
4791 * tui/tui-disasm.c (tui_find_disassembly_address)
4792 (tui_get_begin_asm_address): Update.
4793 * valops.c (find_function_in_inferior): Update.
4794 * value.c (value_static_field, value_fn_field): Update.
4796 2014-02-26 Tom Tromey <tromey@redhat.com>
4798 * ada-lang.c (ada_update_initial_language): Update.
4799 (ada_main_name, ada_has_this_exception_support): Update.
4800 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4801 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4802 * arm-tdep.c (arm_skip_stub): Update.
4803 * auxv.c (ld_so_xfer_auxv): Update.
4804 * avr-tdep.c (avr_scan_prologue): Update.
4805 * ax-gdb.c (gen_var_ref): Update.
4806 * breakpoint.c (struct breakpoint_objfile_data)
4807 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4808 type to bound_minimal_symbol.
4809 (create_overlay_event_breakpoint)
4810 (create_longjmp_master_breakpoint)
4811 (create_std_terminate_master_breakpoint)
4812 (create_exception_master_breakpoint): Update.
4813 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4814 * c-exp.y (classify_name): Update.
4815 * coffread.c (coff_symfile_read): Update.
4816 * common/agent.c (agent_look_up_symbols): Update.
4817 * d-lang.c (d_main_name): Update.
4818 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4819 * dec-thread.c (enable_dec_thread): Update.
4820 * dwarf2loc.c (call_site_to_target_addr): Update.
4821 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4822 * eval.c (evaluate_subexp_standard): Update.
4823 * findvar.c (struct minsym_lookup_data) <result>: Change type
4824 to bound_minimal_symbol.
4826 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4827 * frame.c (inside_main_func): Update.
4828 * frv-tdep.c (frv_frame_this_id): Update.
4829 * gcore.c (call_target_sbrk): Update.
4830 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4831 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4833 * go-lang.c (go_main_name): Update.
4834 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4835 (hppa_hpux_find_import_stub_for_addr): Update.
4836 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4837 Update. Change return type.
4838 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4840 * jit.c (jit_breakpoint_re_set_internal): Update.
4841 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4843 * linux-nat.c (get_signo): Update.
4844 * linux-thread-db.c (inferior_has_bug): Update
4845 * m32c-tdep.c (m32c_return_value)
4846 (m32c_m16c_address_to_pointer): Update.
4847 * m32r-tdep.c (m32r_frame_this_id): Update.
4848 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4849 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4850 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4851 lookup_minimal_symbol. Change return type.
4852 (lookup_minimal_symbol): Remove.
4853 (lookup_bound_minimal_symbol): Update.
4854 (lookup_minimal_symbol_text): Change return type.
4855 (lookup_minimal_symbol_solib_trampoline): Change return type.
4856 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4857 (lookup_minimal_symbol_solib_trampoline): Change return type.
4858 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4859 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4860 (value_nsstring, find_imps): Update.
4861 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4862 * p-lang.c (pascal_main_name): Update.
4863 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4864 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4865 * proc-service.c (ps_pglobal_lookup): Update.
4866 * ravenscar-thread.c (get_running_thread_msymbol): Change
4868 (has_ravenscar_runtime, get_running_thread_id): Update.
4869 * remote.c (remote_check_symbols): Update.
4870 * sol-thread.c (ps_pglobal_lookup): Update.
4871 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4872 * solib-dsbt.c (lm_base): Update.
4873 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4875 * solib-irix.c (locate_base): Update.
4876 * solib-som.c (som_solib_create_inferior_hook)
4877 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4879 * solib-spu.c (spu_enable_break): Update.
4880 * solib-svr4.c (elf_locate_base, enable_break): Update.
4881 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4882 (flush_ea_cache): Update.
4883 * stabsread.c (define_symbol): Update.
4884 * symfile.c (simple_read_overlay_table): Update.
4885 * symtab.c (find_pc_sect_line): Update.
4886 * tracepoint.c (scope_info): Update.
4887 * tui-disasm.c (tui_get_begin_asm_address): Update.
4888 * value.c (value_static_field): Update.
4890 2014-02-26 Tom Tromey <tromey@redhat.com>
4892 * minsyms.c (prim_record_minimal_symbol_full): Use
4893 SET_MSYMBOL_VALUE_ADDRESS.
4894 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4895 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4896 SET_MSYMBOL_VALUE_ADDRESS.
4897 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4898 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4900 2014-02-26 Tom Tromey <tromey@redhat.com>
4902 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4903 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4904 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4905 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4906 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4907 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4908 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4909 * ada-lang.c (ada_main_name): Update.
4910 (ada_lookup_simple_minsym): Update.
4911 (ada_make_symbol_completion_list): Update.
4912 (ada_add_standard_exceptions): Update.
4913 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4914 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4915 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4916 * arm-tdep.c (skip_prologue_function): Update.
4917 (arm_skip_stack_protector, arm_skip_stub): Update.
4918 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4919 (arm_wince_skip_main_prologue): Update.
4920 * auxv.c (ld_so_xfer_auxv): Update.
4921 * avr-tdep.c (avr_scan_prologue): Update.
4922 * ax-gdb.c (gen_var_ref): Update.
4923 * block.c (call_site_for_pc): Update.
4924 * blockframe.c (get_pc_function_start): Update.
4925 (find_pc_partial_function_gnu_ifunc): Update.
4926 * breakpoint.c (create_overlay_event_breakpoint): Update.
4927 (create_longjmp_master_breakpoint): Update.
4928 (create_std_terminate_master_breakpoint): Update.
4929 (create_exception_master_breakpoint): Update.
4930 (resolve_sal_pc): Update.
4931 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4932 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4934 * c-valprint.c (c_val_print): Update.
4935 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4936 * coffread.c (coff_symfile_read): Update.
4937 * common/agent.c (agent_look_up_symbols): Update.
4938 * dbxread.c (find_stab_function_addr): Update.
4939 (end_psymtab): Update.
4940 * dwarf2loc.c (call_site_to_target_addr): Update.
4941 (func_verify_no_selftailcall): Update.
4942 (tailcall_dump): Update.
4943 (call_site_find_chain_1): Update.
4944 (dwarf_expr_reg_to_entry_parameter): Update.
4945 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4946 (elf_gnu_ifunc_resolve_by_got): Update.
4947 * f-valprint.c (info_common_command): Update.
4948 * findvar.c (read_var_value): Update.
4949 * frame.c (get_prev_frame_1): Update.
4950 (inside_main_func): Update.
4951 * frv-tdep.c (frv_skip_main_prologue): Update.
4952 (frv_frame_this_id): Update.
4953 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4954 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4955 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4956 (gnuv3_skip_trampoline): Update.
4957 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4958 (hppa64_hpux_in_solib_call_trampoline): Update.
4959 (hppa_hpux_skip_trampoline_code): Update.
4960 (hppa64_hpux_search_dummy_call_sequence): Update.
4961 (hppa_hpux_find_import_stub_for_addr): Update.
4962 (hppa_hpux_find_dummy_bpaddr): Update.
4963 * hppa-tdep.c (hppa_symbol_address)
4964 (hppa_lookup_stub_minimal_symbol): Update.
4965 * i386-tdep.c (i386_skip_main_prologue): Update.
4966 (i386_pe_skip_trampoline_code): Update.
4967 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4968 * infcall.c (get_function_name): Update.
4969 * infcmd.c (until_next_command): Update.
4970 * jit.c (jit_breakpoint_re_set_internal): Update.
4971 (jit_inferior_init): Update.
4972 * linespec.c (minsym_found): Update.
4973 (add_minsym): Update.
4974 * linux-fork.c (info_checkpoints_command): Update.
4975 * linux-nat.c (get_signo): Update.
4976 * linux-thread-db.c (inferior_has_bug): Update.
4977 * m32c-tdep.c (m32c_return_value): Update.
4978 (m32c_m16c_address_to_pointer): Update.
4979 (m32c_m16c_pointer_to_address): Update.
4980 * m32r-tdep.c (m32r_frame_this_id): Update.
4981 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4982 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4983 * maint.c (maintenance_translate_address): Update.
4984 * minsyms.c (add_minsym_to_hash_table): Update.
4985 (add_minsym_to_demangled_hash_table): Update.
4986 (msymbol_objfile): Update.
4987 (lookup_minimal_symbol): Update.
4988 (iterate_over_minimal_symbols): Update.
4989 (lookup_minimal_symbol_text): Update.
4990 (lookup_minimal_symbol_by_pc_name): Update.
4991 (lookup_minimal_symbol_solib_trampoline): Update.
4992 (lookup_minimal_symbol_by_pc_section_1): Update.
4993 (lookup_minimal_symbol_and_objfile): Update.
4994 (prim_record_minimal_symbol_full): Update.
4995 (compare_minimal_symbols): Update.
4996 (compact_minimal_symbols): Update.
4997 (build_minimal_symbol_hash_tables): Update.
4998 (install_minimal_symbols): Update.
4999 (terminate_minimal_symbol_table): Update.
5000 (find_solib_trampoline_target): Update.
5001 (minimal_symbol_upper_bound): Update.
5002 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5003 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5004 (mips_skip_pic_trampoline_code): Update.
5005 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5006 * objc-lang.c (selectors_info): Update.
5007 (classes_info): Update.
5008 (find_methods): Update.
5009 (find_imps): Update.
5010 (find_objc_msgsend): Update.
5011 * objfiles.c (objfile_relocate1): Update.
5012 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5013 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5014 * p-valprint.c (pascal_val_print): Update.
5015 * parse.c (write_exp_msymbol): Update.
5016 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5017 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5018 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5019 * printcmd.c (build_address_symbolic): Update.
5021 (address_info): Update.
5022 * proc-service.c (ps_pglobal_lookup): Update.
5023 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5024 (find_pc_sect_psymtab): Update.
5025 * python/py-framefilter.c (py_print_frame): Update.
5026 * ravenscar-thread.c (get_running_thread_id): Update.
5027 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5029 * remote.c (remote_check_symbols): Update.
5030 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5031 (rs6000_skip_trampoline_code): Update.
5032 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5033 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5034 * solib-dsbt.c (lm_base): Update.
5035 * solib-frv.c (lm_base): Update.
5037 * solib-irix.c (locate_base): Update.
5038 * solib-som.c (som_solib_create_inferior_hook): Update.
5039 (som_solib_desire_dynamic_linker_symbols): Update.
5040 (link_map_start): Update.
5041 * solib-spu.c (spu_enable_break): Update.
5042 (ocl_enable_break): Update.
5043 * solib-svr4.c (elf_locate_base): Update.
5044 (enable_break): Update.
5045 * spu-tdep.c (spu_get_overlay_table): Update.
5046 (spu_catch_start): Update.
5047 (flush_ea_cache): Update.
5048 * stabsread.c (define_symbol): Update.
5049 (scan_file_globals): Update.
5050 * stack.c (find_frame_funname): Update.
5051 (frame_info): Update.
5052 * symfile.c (simple_read_overlay_table): Update.
5053 (simple_overlay_update): Update.
5054 * symmisc.c (dump_msymbols): Update.
5055 * symtab.c (fixup_section): Update.
5056 (find_pc_sect_line): Update.
5057 (skip_prologue_sal): Update.
5058 (search_symbols): Update.
5059 (print_msymbol_info): Update.
5060 (rbreak_command): Update.
5061 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5062 (completion_list_objc_symbol): Update.
5063 (default_make_symbol_completion_list_break_on): Update.
5064 * tracepoint.c (scope_info): Update.
5065 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5066 (tui_get_begin_asm_address): Update.
5067 * valops.c (find_function_in_inferior): Update.
5068 * value.c (value_static_field): Update.
5069 (value_fn_field): Update.
5071 2014-02-26 Tom Tromey <tromey@redhat.com>
5073 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5074 bound minimal symbols. Move code that knows about minsym
5076 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5078 * minsyms.h (minimal_symbol_upper_bound): Declare.
5079 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5080 minimal_symbol_upper_bound.
5082 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5084 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5085 Use the type's name if its basic type does not have a tag.
5087 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5089 * dwarf2read.c (read_subrange_type): Add comment.
5091 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5093 * dwarf2read.c (update_enumeration_type_from_children): New
5094 function, mostly extracted from process_structure_scope.
5095 (read_enumeration_type): Call update_enumeration_type_from_children.
5096 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5097 and flag_flag_enum fields.
5099 2014-02-26 Pedro Alves <palves@redhat.com>
5101 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5102 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5103 to_xfer_partial method.
5105 2014-02-26 Pedro Alves <palves@redhat.com>
5107 * target.c (complete_target_initialization): Don't install
5108 default_xfer_partial as to_xfer_partial hook.
5110 (update_current_target): Don't INHERIT nor de_fault
5111 deprecated_xfer_memory. Delete de_fault macro.
5112 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5113 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5114 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5117 2014-02-26 Pedro Alves <palves@redhat.com>
5119 * go32-nat.c (my_write_child): New function.
5120 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5121 (go32_xfer_partial): New function.
5122 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5123 Instead install a to_xfer_partial hook.
5125 2014-02-26 Pedro Alves <palves@redhat.com>
5127 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5128 to_xfer_partial helper. Rewrite.
5129 (procfs_xfer_partial): New function.
5130 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5131 Install a to_xfer_partial hook.
5133 2014-02-26 Pedro Alves <palves@redhat.com>
5135 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5136 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5137 (m32r_xfer_partial): New function.
5138 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5139 Install a to_xfer_partial hook.
5141 2014-02-26 Pedro Alves <palves@redhat.com>
5143 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5145 (mips_xfer_partial): New function.
5146 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5147 hook. Install a to_xfer_partial hook.
5149 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5151 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5152 * gdbtypes.c (create_array_type_with_stride): New function,
5153 renaming create_array_type, but with an added parameter
5154 called "bit_stride".
5155 (create_array_type): Re-implement using
5156 create_array_type_with_stride.
5157 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5158 and DW_AT_bit_stride attributes.
5160 2014-02-26 Pedro Alves <palves@redhat.com>
5162 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5163 task-specific breakpoints.
5165 2014-02-25 Pedro Alves <palves@redhat.com>
5167 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5168 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5170 2014-02-25 Stan Shebs <stan@codesourcery.com>
5172 * defs.h: Annotate comments for Doxygen.
5174 2014-02-25 Tom Tromey <tromey@redhat.com>
5176 * target.h (target_ignore): Don't declare.
5177 * target.c (target_ignore): Remove.
5179 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5182 * auto-load.c (auto_load_objfile_script_1): Change filename to
5185 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5187 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5188 documentation. Adjust prototype to match the target_ops
5189 to_xfer_partial method. Adjust implementation accordingly.
5191 2014-02-25 Hui Zhu <hui@codesourcery.com>
5193 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5196 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5198 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5199 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5200 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5201 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5202 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5203 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5204 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5205 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5207 (rl78_register_type): Use a data pointer type for SP and
5208 new pseudo registers mentioned above. Use a 16 bit integer
5209 type for all other register pairs.
5210 (rl78_register_name, rl78_g10_register_name): Update for
5211 new pseudo registers.
5212 (rl78_pseudo_register_read): Likewise.
5213 (rl78_pseudo_register_write): Likewise.
5214 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5215 to the newly added pseudo registers.
5217 2014-02-24 Doug Evans <dje@google.com>
5219 * value.c (record_latest_value): Fix comment.
5220 * printcmd.c (print_command_1): Remove code to handle -1 return from
5221 record_latest_value.
5223 2014-02-24 Pedro Alves <palves@redhat.com>
5225 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5226 deprecated_xfer_memory hook.
5227 (procfs_xfer_partial): Call procfs_xfer_memory instead
5228 of the deprecated_xfer_memory target hook.
5229 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5232 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5234 * windows-nat.c (windows_xfer_shared_libraries): Return
5235 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5236 requested object is TARGET_OBJECT_LIBRARIES.
5238 2014-02-24 Yao Qi <yao@codesourcery.com>
5240 * target.h (enum target_xfer_status)
5241 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5242 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5244 * corefile.c (memory_error_message): User updated.
5245 * exec.c (section_table_read_available_memory): Likewise.
5246 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5247 * target.c (target_xfer_status_to_string): Likewise.
5248 (raw_memory_xfer_partial): Likewise.
5249 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5250 * valops.c (read_value_memory): Likewise.
5251 * exec.h: Update comments.
5253 2014-02-24 Yao Qi <yao@codesourcery.com>
5255 * target.c (target_xfer_status_to_string): Rename argument err
5257 * target.h (target_xfer_status_to_string): Update declaration.
5258 Replace target_xfer_error_to_string with
5259 target_xfer_status_to_string in comment.
5261 2014-02-24 Yao Qi <yao@codesourcery.com>
5263 * mips-linux-nat.c (super_close): Update its type.
5264 (mips_linux_close): Pass 'self' to super_close.
5266 2014-02-24 Yao Qi <yao@codesourcery.com>
5268 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5269 * corefile.c (read_memory): Adjusted.
5270 * target.c (target_write_with_progress): Adjusted.
5272 2014-02-23 Yao Qi <yao@codesourcery.com>
5276 2013-10-25 Yao Qi <yao@codesourcery.com>
5278 * remote.c (remote_traceframe_info): Return early if
5279 traceframe is not selected.
5281 2013-07-19 Yao Qi <yao@codesourcery.com>
5283 * target.c (update_current_target): Change the default action
5284 of 'to_traceframe_info' from tcomplain to return_zero.
5285 * target.h (struct target_ops) <to_traceframe_info>: Add more
5288 2014-02-23 Yao Qi <yao@codesourcery.com>
5290 * valops.c (read_value_memory): Rewrite it. Call
5291 target_xfer_partial in a loop.
5292 * exec.h (section_table_available_memory): Remove declaration.
5293 Move comments to ...
5294 * exec.c (section_table_available_memory): ... here. Make it
5297 2014-02-23 Yao Qi <yao@codesourcery.com>
5299 * exec.c (section_table_read_available_memory): New function.
5300 * exec.h (section_table_read_available_memory): Declare.
5301 * ctf.c (ctf_xfer_partial): Call
5302 section_table_read_available_memory.
5303 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5305 2014-02-23 Yao Qi <yao@codesourcery.com>
5307 * ctf.c (ctf_xfer_partial): Move code to ...
5308 * exec.c (exec_read_partial_read_only): ... it. New function.
5309 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5310 * tracefile.c: Include "exec.h".
5311 * exec.h (exec_read_partial_read_only): Declare.
5313 2014-02-23 Yao Qi <yao@codesourcery.com>
5315 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5316 (tfile_has_memory): Remove.
5317 (init_tfile_ops): Don't set fields to_has_all_memory and
5318 to_has_memory of tfile_ops.
5319 * tracefile.c (tracefile_has_all_memory): New function.
5320 (tracefile_has_memory): New function.
5321 (init_tracefile_ops): Initialize fields to_has_all_memory and
5322 to_has_memory of 'ops'.
5324 2014-02-23 Yao Qi <yao@codesourcery.com>
5326 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5327 (ctf_thread_alive, ctf_get_trace_status): Remove.
5328 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5330 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5331 (tfile_has_stack, tfile_has_registers): Remove.
5332 (tfile_thread_alive): Remove.
5333 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5335 * tracefile.c (tracefile_has_stack): New function.
5336 (tracefile_has_registers): New function.
5337 (tracefile_thread_alive): New function.
5338 (tracefile_get_trace_status): New function.
5339 (init_tracefile_ops): New function.
5340 * tracefile.h (init_tracefile_ops): Declare.
5342 2014-02-23 Yao Qi <yao@codesourcery.com>
5344 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5345 (O_LARGEFILE): Likewise.
5346 (tfile_ops): Likewise.
5347 (TRACE_HEADER_SIZE): Likewise.
5348 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5349 (cur_data_size): Likewise.
5350 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5351 (tfile_close, tfile_files_info): Likewise.
5352 (tfile_get_trace_status): Likewise.
5353 (tfile_get_tracepoint_status): Likewise.
5354 (tfile_get_traceframe_address): Likewise.
5355 (tfile_trace_find, match_blocktype): Likewise.
5356 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5357 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5358 (tfile_get_trace_state_variable_value): Likewise.
5359 (tfile_has_all_memory, tfile_has_memory): Likewise.
5360 (tfile_has_stack, tfile_has_registers): Likewise.
5361 (tfile_thread_alive, build_traceframe_info): Likewise.
5362 (tfile_traceframe_info, init_tfile_ops): Likewise.
5363 (_initialize_tracepoint): Don't call init_tfile_ops
5364 and add_target_with_completer.
5365 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5366 exec.h, completer.h and filenames.h.
5367 (_initialize_tracefile_tfile): New function.
5369 2014-02-23 Yao Qi <yao@codesourcery.com>
5371 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5373 (HFILES_NO_SRCDIR): Add tracefile.h.
5374 * ctf.c: Include "tracefile.h".
5375 * tracefile.h: New file.
5376 * tracefile.c: New file
5377 * tracefile-tfile.c: New file.
5378 * tracepoint.c: Include "tracefile.h".
5379 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5380 (stop_reason_names): Add const.
5381 (trace_file_writer_xfree): Move it to tracefile.c.
5382 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5383 (trace_save_ctf): Likewise.
5384 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5385 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5386 (tfile_write_header, tfile_write_regblock_type): Likewise.
5387 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5388 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5389 (tfile_write_raw_data, tfile_end): Likewise.
5390 (tfile_trace_file_writer_new): Likewise.
5391 (free_uploaded_tp): Make it extern.
5392 (free_uploaded_tsv): Make it extern.
5393 (_initialize_tracepoint): Move code to register command 'tsave'
5395 * tracepoint.h (stop_reason_names): Declare.
5396 (struct trace_frame_write_ops): Move it to tracefile.h.
5397 (struct trace_file_write_ops): Likewise.
5398 (struct trace_file_writer): Likewise.
5399 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5401 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5404 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5406 (get_cores_used_by_process): New parameter num_cores, use it.
5407 (linux_xfer_osdata_processes): Pass num_cores to it.
5408 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5411 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5413 * target.c (memory_xfer_partial): Fix length arg in call to
5414 breakpoint_xfer_memory.
5416 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5419 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5420 number comes after the + or - signs. Adjust length of register
5421 name to be extracted.
5423 2014-02-20 Tom Tromey <tromey@redhat.com>
5425 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5426 (ada_varobj_ops): Mark "extern".
5428 2014-02-20 Tom Tromey <tromey@redhat.com>
5430 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5432 2014-02-20 Doug Evans <xdje42@gmail.com>
5434 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5435 All callers updated.
5436 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5437 All callers updated.
5438 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5439 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5441 2014-02-20 lin zuojian <manjian2006@gmail.com>
5442 Joel Brobecker <brobecker@adacore.com>
5443 Doug Evans <xdje42@gmail.com>
5446 * dwarf2read.c (struct die_info): New member in_process.
5447 (reset_die_in_process): New function.
5448 (process_die): Set it at the start, reset when returning.
5449 (inherit_abstract_dies): Only call process_die if origin_child_die
5450 not already being processed.
5452 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5454 * windows-nat.c (handle_unload_dll): Add function documentation.
5455 (do_initial_windows_stuff): Add comment explaining why we wait
5456 until after inferior initialization has finished before
5457 processing all DLLs.
5459 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5461 * windows-nat.c (get_module_name): Delete.
5462 (windows_get_exec_module_filename): New function, mostly
5463 inspired from get_module_name.
5464 (windows_pid_to_exec_file): Replace call to get_module_name
5465 by call to windows_get_exec_module_filename.
5467 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5469 * windows-nat.c (handle_load_dll): Rewrite this function's
5470 introductory comment. Remove code using get_module_name
5471 to get the DLL's name.
5473 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5475 * windows-nat.c (get_windows_debug_event): Ignore
5476 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5477 if windows_initialization_done == 0.
5478 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5479 Adjust implementation to always load all DLLs.
5480 (do_initial_windows_stuff): Replace call to
5481 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5483 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5485 * windows-nat.c (_initialize_windows_nat): Deprecate the
5486 "dll-symbols" command. Turn the "add-shared-symbol-files"
5487 and "assf" aliases into commands, and deprecate them as well.
5488 * NEWS: Add entry explaining that "dll-symbols" and its two
5489 aliases are now deprecated.
5491 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5493 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5494 new-line in debug string. Remove trailing spaces.
5496 2014-02-19 Stan Shebs <stan@codesourcery.com>
5498 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5500 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5502 * NEWS: Add entry for the new feature
5503 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5506 2014-02-19 Stan Shebs <stan@codesourcery.com>
5508 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5510 2014-02-19 Pedro Alves <palves@redhat.com>
5512 * common/ptid.h (struct ptid): Mention that process_stratum
5513 targets should prefer ptid.lwp.
5515 2014-02-19 Pedro Alves <palves@redhat.com>
5517 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5518 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5519 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5520 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5521 store remote thread ids rather than ptid.tid.
5522 (_initialize_remote): Adjust.
5524 2014-02-19 Tom Tromey <tromey@redhat.com>
5526 * target.c (target_get_unwinder): Rewrite.
5527 (target_get_tailcall_unwinder): Rewrite.
5528 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5529 (record_btrace_to_get_tailcall_unwinder): New function.
5530 (init_record_btrace_ops): Update.
5531 * target.h (struct target_ops) <to_get_unwinder,
5532 to_get_tailcall_unwinder>: Now function pointers. Use
5533 TARGET_DEFAULT_RETURN.
5535 2014-02-19 Tom Tromey <tromey@redhat.com>
5537 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5539 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5541 2014-02-19 Tom Tromey <tromey@redhat.com>
5543 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5545 * target-delegates.c: Rebuild.
5546 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5547 TARGET_DEFAULT_FUNC.
5548 * target.c (default_target_decr_pc_after_break): Rename from
5549 forward_target_decr_pc_after_break. Simplify.
5550 (target_decr_pc_after_break): Rely on delegation.
5552 2014-02-19 Tom Tromey <tromey@redhat.com>
5554 * target.c (update_current_target): Do not INHERIT to_doc or
5555 to_magic. Do not de_fault to_open or to_close.
5557 2014-02-19 Tom Tromey <tromey@redhat.com>
5559 * gcore.h (objfile_find_memory_regions): Declare.
5560 * gcore.c (objfile_find_memory_regions): No longer static. Add
5562 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5563 * exec.c: Include gcore.h.
5564 (exec_set_find_memory_regions): Remove.
5565 (exec_find_memory_regions): Remove.
5566 (exec_do_find_memory_regions): Remove.
5567 (init_exec_ops): Update.
5568 * defs.h (exec_set_find_memory_regions): Remove.
5570 2014-02-19 Tom Tromey <tromey@redhat.com>
5572 * target-delegates.c: Rebuild.
5573 * target.h (struct target_ops) <to_extra_thread_info,
5574 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5575 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5576 not 0, in TARGET_DEFAULT_RETURN.
5578 2014-02-19 Tom Tromey <tromey@redhat.com>
5580 * target.c (complete_target_initialization): Remove casts. Use
5581 return_zero_has_execution.
5582 (return_zero): Add "ignore" argument.
5583 (return_zero_has_execution): New function.
5584 (init_dummy_target): Remove casts. Use
5585 return_zero_has_execution.
5587 2014-02-19 Tom Tromey <tromey@redhat.com>
5589 * target.c (update_current_target): Update comments. Do not
5592 2014-02-19 Tom Tromey <tromey@redhat.com>
5594 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5596 * corelow.c (core_read_description): Delegate when needed.
5597 * remote.c (remote_read_description): Delegate when needed.
5598 * target-delegates.c: Rebuild.
5599 * target.c (target_read_description): Rewrite.
5600 * target.h (struct target_ops) <to_read_description>: Update
5601 comment. Use TARGET_DEFAULT_RETURN.
5603 2014-02-19 Tom Tromey <tromey@redhat.com>
5605 * target-delegates.c: Rebuild.
5606 * target.c (update_current_target): Don't inherit or default
5608 (find_default_run_target): Check against delegate_can_run.
5609 * target.h (struct target_ops) <to_can_run>: Use
5610 TARGET_DEFAULT_RETURN.
5612 2014-02-19 Tom Tromey <tromey@redhat.com>
5614 * target-delegates.c: Rebuild.
5615 * target.c (target_disconnect): Unconditionally delegate.
5616 * target.h (struct target_ops) <to_disconnect>: Use
5617 TARGET_DEFAULT_NORETURN.
5619 2014-02-19 Tom Tromey <tromey@redhat.com>
5621 * record.c (record_stop): Unconditionally delegate.
5622 * target-delegates.c: Rebuild.
5623 * target.c (target_stop_recording): Unconditionally delegate.
5624 * target.h (struct target_ops) <to_stop_recording>: Use
5625 TARGET_DEFAULT_IGNORE.
5627 2014-02-19 Tom Tromey <tromey@redhat.com>
5629 * target-delegates.c: Rebuild.
5630 * target.c (target_enable_btrace): Unconditionally delegate.
5631 * target.h (struct target_ops) <to_enable_btrace>: Use
5632 TARGET_DEFAULT_NORETURN.
5634 2014-02-19 Tom Tromey <tromey@redhat.com>
5636 * target-delegates.c: Rebuild.
5637 * target.c (target_read_btrace): Unconditionally delegate.
5638 * target.h (struct target_ops) <to_read_btrace>: Use
5639 TARGET_DEFAULT_NORETURN.
5641 2014-02-19 Tom Tromey <tromey@redhat.com>
5643 * target-delegates.c: Rebuild.
5644 * target.c (target_teardown_btrace): Unconditionally delegate.
5645 * target.h (struct target_ops) <to_teardown_btrace>: Use
5646 TARGET_DEFAULT_NORETURN.
5648 2014-02-19 Tom Tromey <tromey@redhat.com>
5650 * target-delegates.c: Rebuild.
5651 * target.c (target_disable_btrace): Unconditionally delegate.
5652 * target.h (struct target_ops) <to_disable_btrace>: Use
5653 TARGET_DEFAULT_NORETURN.
5655 2014-02-19 Tom Tromey <tromey@redhat.com>
5657 * target-delegates.c: Rebuild.
5658 * target.c (default_search_memory): New function.
5659 (simple_search_memory): Update comment.
5660 (target_search_memory): Unconditionally delegate.
5661 * target.h (struct target_ops) <to_search_memory>: Use
5662 TARGET_DEFAULT_FUNC.
5664 2014-02-19 Tom Tromey <tromey@redhat.com>
5666 * auxv.c (default_auxv_parse): No longer static.
5667 (target_auxv_parse): Unconditionally delegate.
5668 * auxv.h (default_auxv_parse): Declare.
5669 * target-delegates.c: Rebuild.
5670 * target.c: Include auxv.h.
5671 * target.h (struct target_ops) <to_auxv_parse>: Use
5672 TARGET_DEFAULT_FUNC.
5674 2014-02-19 Tom Tromey <tromey@redhat.com>
5676 * target-delegates.c: Rebuild.
5677 * target.c (target_memory_map): Unconditionally delegate.
5678 * target.h (struct target_ops) <to_memory_map>: Use
5679 TARGET_DEFAULT_RETURN.
5681 2014-02-19 Tom Tromey <tromey@redhat.com>
5683 * target-delegates.c: Rebuild.
5684 * target.c (target_thread_alive): Unconditionally delegate.
5685 * target.h (struct target_ops) <to_thread_alive>: Use
5686 TARGET_DEFAULT_RETURN.
5688 2014-02-19 Tom Tromey <tromey@redhat.com>
5690 * target-delegates.c: Rebuild.
5691 * target.c (target_save_record): Unconditionally delegate.
5692 * target.h (struct target_ops) <to_save_record>: Use
5693 TARGET_DEFAULT_NORETURN.
5695 2014-02-19 Tom Tromey <tromey@redhat.com>
5697 * target-delegates.c: Rebuild.
5698 * target.c (target_delete_record): Unconditionally delegate.
5699 * target.h (struct target_ops) <to_delete_record>: Use
5700 TARGET_DEFAULT_NORETURN.
5702 2014-02-19 Tom Tromey <tromey@redhat.com>
5704 * target-delegates.c: Rebuild.
5705 * target.c (target_record_is_replaying): Unconditionally
5707 * target.h (struct target_ops) <to_record_is_replaying>: Use
5708 TARGET_DEFAULT_RETURN.
5710 2014-02-19 Tom Tromey <tromey@redhat.com>
5712 * target-delegates.c: Rebuild.
5713 * target.c (target_goto_record_begin): Unconditionally delegate.
5714 * target.h (struct target_ops) <to_goto_record_begin>: Use
5715 TARGET_DEFAULT_NORETURN.
5717 2014-02-19 Tom Tromey <tromey@redhat.com>
5719 * target-delegates.c: Rebuild.
5720 * target.c (target_goto_record_end): Unconditionally delegate.
5721 * target.h (struct target_ops) <to_goto_record_end>: Use
5722 TARGET_DEFAULT_NORETURN.
5724 2014-02-19 Tom Tromey <tromey@redhat.com>
5726 * target-delegates.c: Rebuild.
5727 * target.c (target_goto_record): Unconditionally delegate.
5728 * target.h (struct target_ops) <to_goto_record>: Use
5729 TARGET_DEFAULT_NORETURN.
5731 2014-02-19 Tom Tromey <tromey@redhat.com>
5733 * target-delegates.c: Rebuild.
5734 * target.c (target_insn_history): Unconditionally delegate.
5735 * target.h (struct target_ops) <to_insn_history>: Use
5736 TARGET_DEFAULT_NORETURN.
5738 2014-02-19 Tom Tromey <tromey@redhat.com>
5740 * target-delegates.c: Rebuild.
5741 * target.c (target_insn_history_from): Unconditionally delegate.
5742 * target.h (struct target_ops) <to_insn_history_from>: Use
5743 TARGET_DEFAULT_NORETURN.
5745 2014-02-19 Tom Tromey <tromey@redhat.com>
5747 * target-delegates.c: Rebuild.
5748 * target.c (target_insn_history_range): Unconditionally delegate.
5749 * target.h (struct target_ops) <to_insn_history_range>: Use
5750 TARGET_DEFAULT_NORETURN.
5752 2014-02-19 Tom Tromey <tromey@redhat.com>
5754 * target-delegates.c: Rebuild.
5755 * target.c (target_call_history): Unconditionally delegate.
5756 * target.h (struct target_ops) <to_call_history>: Use
5757 TARGET_DEFAULT_NORETURN.
5759 2014-02-19 Tom Tromey <tromey@redhat.com>
5761 * target-delegates.c: Rebuild.
5762 * target.c (target_call_history_from): Unconditionally delegate.
5763 * target.h (struct target_ops) <to_call_history_from>: Use
5764 TARGET_DEFAULT_NORETURN.
5766 2014-02-19 Tom Tromey <tromey@redhat.com>
5768 * target-delegates.c: Rebuild.
5769 * target.c (target_call_history_range): Unconditionally delegate.
5770 * target.h (struct target_ops) <to_call_history_range>: Use
5771 TARGET_DEFAULT_NORETURN.
5773 2014-02-19 Tom Tromey <tromey@redhat.com>
5775 * target-delegates.c: Rebuild.
5776 * target.c (target_verify_memory): Unconditionally delegate.
5777 * target.h (struct target_ops) <to_verify_memory>: Use
5778 TARGET_DEFAULT_NORETURN.
5780 2014-02-19 Tom Tromey <tromey@redhat.com>
5782 * target-delegates.c: Rebuild.
5783 * target.c (target_core_of_thread): Unconditionally delegate.
5784 * target.h (struct target_ops) <to_core_of_thread>: Use
5785 TARGET_DEFAULT_RETURN.
5787 2014-02-19 Tom Tromey <tromey@redhat.com>
5789 * target-delegates.c: Rebuild.
5790 * target.c (target_flash_done): Unconditionally delegate.
5791 * target.h (struct target_ops) <to_flash_done>: Use
5792 TARGET_DEFAULT_NORETURN.
5794 2014-02-19 Tom Tromey <tromey@redhat.com>
5796 * target-delegates.c: Rebuild.
5797 * target.c (target_flash_erase): Unconditionally delegate.
5798 * target.h (struct target_ops) <to_flash_erase>: Use
5799 TARGET_DEFAULT_NORETURN.
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target-delegates.c: Rebuild.
5804 * target.c (target_get_section_table): Unconditionally delegate.
5805 * target.h (struct target_ops) <to_get_section_table>: Use
5806 TARGET_DEFAULT_RETURN.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target-delegates.c: Rebuild.
5811 * target.c (target_pid_to_str): Unconditionally delegate.
5812 (init_dummy_target): Don't initialize to_pid_to_str.
5813 (default_pid_to_str): Rename from dummy_pid_to_str.
5814 * target.h (struct target_ops) <to_pid_to_str>: Use
5815 TARGET_DEFAULT_FUNC.
5817 2014-02-19 Tom Tromey <tromey@redhat.com>
5819 * target-delegates.c: Rebuild.
5820 * target.c (target_find_new_threads): Unconditionally delegate.
5821 * target.h (struct target_ops) <to_find_new_threads>: Use
5822 TARGET_DEFAULT_RETURN.
5824 2014-02-19 Tom Tromey <tromey@redhat.com>
5826 * target-delegates.c: Rebuild.
5827 * target.c (target_program_signals): Unconditionally delegate.
5828 * target.h (struct target_ops) <to_program_signals>: Use
5829 TARGET_DEFAULT_IGNORE.
5831 2014-02-19 Tom Tromey <tromey@redhat.com>
5833 * target-delegates.c: Rebuild.
5834 * target.c (target_pass_signals): Unconditionally delegate.
5835 * target.h (struct target_ops) <to_pass_signals>: Use
5836 TARGET_DEFAULT_IGNORE.
5838 2014-02-19 Tom Tromey <tromey@redhat.com>
5840 * target-delegates.c: Rebuild.
5841 * target.c (default_mourn_inferior): New function.
5842 (target_mourn_inferior): Unconditionally delegate.
5843 * target.h (struct target_ops) <to_mourn_inferior>: Use
5844 TARGET_DEFAULT_FUNC.
5846 2014-02-19 Tom Tromey <tromey@redhat.com>
5848 * target-delegates.c: Rebuild.
5849 * target.c (default_follow_fork): New function.
5850 (target_follow_fork): Unconditionally delegate.
5851 * target.h (struct target_ops) <to_follow_fork>: Use
5852 TARGET_DEFAULT_FUNC.
5854 2014-02-19 Tom Tromey <tromey@redhat.com>
5856 * target-delegates.c: Rebuild.
5857 * target.c (target_kill): Unconditionally delegate.
5858 * target.h (struct target_ops) <to_kill>: Use
5859 TARGET_DEFAULT_NORETURN.
5861 2014-02-19 Tom Tromey <tromey@redhat.com>
5863 * target-delegates.c: Rebuild.
5864 * target.c (target_masked_watch_num_registers): Unconditionally
5866 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5867 Use TARGET_DEFAULT_RETURN.
5869 2014-02-19 Tom Tromey <tromey@redhat.com>
5871 * target-delegates.c: Rebuild.
5872 * target.c (target_remove_mask_watchpoint): Unconditionally
5874 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5875 TARGET_DEFAULT_RETURN.
5877 2014-02-19 Tom Tromey <tromey@redhat.com>
5879 * target-delegates.c: Rebuild.
5880 * target.c (target_insert_mask_watchpoint): Unconditionally
5882 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5883 TARGET_DEFAULT_RETURN.
5885 2014-02-19 Tom Tromey <tromey@redhat.com>
5887 * target-delegates.c: Rebuild.
5888 * target.c (target_ranged_break_num_registers): Unconditionally
5890 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5891 Use TARGET_DEFAULT_RETURN.
5893 2014-02-19 Tom Tromey <tromey@redhat.com>
5895 * target-delegates.c: Rebuild.
5896 * target.c (target_fetch_registers): Unconditionally delegate.
5897 * target.h (struct target_ops) <to_fetch_registers>: Use
5898 TARGET_DEFAULT_NORETURN.
5900 2014-02-19 Tom Tromey <tromey@redhat.com>
5902 * target-delegates.c: Rebuild.
5903 * target.c (update_current_target): Don't inherit or default
5905 * target.h (struct target_ops) <to_stop>: Use
5906 TARGET_DEFAULT_IGNORE.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target-delegates.c: Rebuild.
5911 * target.c (update_current_target): Don't inherit or default
5912 to_can_run_breakpoint_commands.
5913 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5914 Use TARGET_DEFAULT_RETURN.
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target-delegates.c: Rebuild.
5919 * target.c (update_current_target): Don't inherit or default
5920 to_supports_evaluation_of_breakpoint_conditions.
5921 * target.h (struct target_ops)
5922 <to_supports_evaluation_of_breakpoint_conditions>: Use
5923 TARGET_DEFAULT_RETURN.
5925 2014-02-19 Tom Tromey <tromey@redhat.com>
5927 * target-delegates.c: Rebuild.
5928 * target.c (update_current_target): Don't inherit or default
5929 to_augmented_libraries_svr4_read.
5930 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5931 Use TARGET_DEFAULT_RETURN.
5933 2014-02-19 Tom Tromey <tromey@redhat.com>
5935 * target-delegates.c: Rebuild.
5936 * target.c (update_current_target): Don't inherit or default
5938 * target.h (struct target_ops) <to_can_use_agent>: Use
5939 TARGET_DEFAULT_RETURN.
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * target-delegates.c: Rebuild.
5944 * target.c (update_current_target): Don't inherit or default
5946 * target.h (struct target_ops) <to_use_agent>: Use
5947 TARGET_DEFAULT_NORETURN.
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5951 * target-delegates.c: Rebuild.
5952 * target.c (update_current_target): Don't inherit or default
5954 (return_null): Remove.
5955 * target.h (struct target_ops) <to_traceframe_info>: Use
5956 TARGET_DEFAULT_RETURN.
5958 2014-02-19 Tom Tromey <tromey@redhat.com>
5960 * target-delegates.c: Rebuild.
5961 * target.c (update_current_target): Don't inherit or default
5962 to_static_tracepoint_markers_by_strid.
5963 * target.h (struct target_ops)
5964 <to_static_tracepoint_markers_by_strid>: Use
5965 TARGET_DEFAULT_NORETURN.
5967 2014-02-19 Tom Tromey <tromey@redhat.com>
5969 * target-delegates.c: Rebuild.
5970 * target.c (update_current_target): Don't inherit or default
5971 to_static_tracepoint_marker_at.
5972 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5973 Use TARGET_DEFAULT_RETURN.
5975 2014-02-19 Tom Tromey <tromey@redhat.com>
5977 * target-delegates.c: Rebuild.
5978 * target.c (update_current_target): Don't inherit or default
5980 * target.h (struct target_ops) <to_set_permissions>: Use
5981 TARGET_DEFAULT_IGNORE.
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target-delegates.c: Rebuild.
5986 * target.c (update_current_target): Don't inherit or default
5988 * target.h (struct target_ops) <to_get_tib_address>: Use
5989 TARGET_DEFAULT_NORETURN.
5991 2014-02-19 Tom Tromey <tromey@redhat.com>
5993 * target-delegates.c: Rebuild.
5994 * target.c (update_current_target): Don't inherit or default
5996 * target.h (struct target_ops) <to_set_trace_notes>: Use
5997 TARGET_DEFAULT_RETURN.
5999 2014-02-19 Tom Tromey <tromey@redhat.com>
6001 * target-delegates.c: Rebuild.
6002 * target.c (update_current_target): Don't initialize
6003 to_set_trace_buffer_size.
6004 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6005 TARGET_DEFAULT_IGNORE.
6007 2014-02-19 Tom Tromey <tromey@redhat.com>
6009 * target-delegates.c: Rebuild.
6010 * target.c (update_current_target): Don't inherit or default
6011 to_set_circular_trace_buffer.
6012 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6013 TARGET_DEFAULT_IGNORE.
6015 2014-02-19 Tom Tromey <tromey@redhat.com>
6017 * target-delegates.c: Rebuild.
6018 * target.c (update_current_target): Don't inherit or default
6019 to_set_disconnected_tracing.
6020 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6021 TARGET_DEFAULT_IGNORE.
6023 2014-02-19 Tom Tromey <tromey@redhat.com>
6025 * target-delegates.c: Rebuild.
6026 * target.c (update_current_target): Don't inherit or default
6027 to_get_min_fast_tracepoint_insn_len.
6028 (return_minus_one): Remove.
6029 * target.h (struct target_ops)
6030 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6032 2014-02-19 Tom Tromey <tromey@redhat.com>
6034 * target-delegates.c: Rebuild.
6035 * target.c (update_current_target): Don't inherit or default
6036 to_get_raw_trace_data.
6037 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6038 TARGET_DEFAULT_NORETURN.
6040 2014-02-19 Tom Tromey <tromey@redhat.com>
6042 * target-delegates.c: Rebuild.
6043 * target.c (update_current_target): Don't inherit or default
6044 to_upload_trace_state_variables.
6045 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6046 Use TARGET_DEFAULT_RETURN.
6048 2014-02-19 Tom Tromey <tromey@redhat.com>
6050 * target-delegates.c: Rebuild.
6051 * target.c (update_current_target): Don't inherit or default
6052 to_upload_tracepoints.
6053 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6054 TARGET_DEFAULT_RETURN.
6056 2014-02-19 Tom Tromey <tromey@redhat.com>
6058 * target-delegates.c: Rebuild.
6059 * target.c (update_current_target): Don't inherit or default
6061 * target.h (struct target_ops) <to_save_trace_data>: Use
6062 TARGET_DEFAULT_NORETURN.
6064 2014-02-19 Tom Tromey <tromey@redhat.com>
6066 * target-delegates.c: Rebuild.
6067 * target.c (update_current_target): Don't inherit or default
6068 to_get_trace_state_variable_value.
6069 * target.h (struct target_ops)
6070 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6074 * target-delegates.c: Rebuild.
6075 * target.c (update_current_target): Don't inherit or default
6077 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6079 2014-02-19 Tom Tromey <tromey@redhat.com>
6081 * target-delegates.c: Rebuild.
6082 * target.c (update_current_target): Don't inherit or default
6084 * target.h (struct target_ops) <to_trace_stop>: Use
6085 TARGET_DEFAULT_NORETURN.
6087 2014-02-19 Tom Tromey <tromey@redhat.com>
6089 * target-delegates.c: Rebuild.
6090 * target.c (update_current_target): Don't inherit or default
6091 to_get_tracepoint_status.
6092 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6093 TARGET_DEFAULT_NORETURN.
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6097 * target-delegates.c: Rebuild.
6098 * target.c (update_current_target): Don't inherit or default
6099 to_get_trace_status.
6100 * target.h (struct target_ops) <to_get_trace_status>: Use
6101 TARGET_DEFAULT_RETURN.
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * target-delegates.c: Rebuild.
6106 * target.c (update_current_target): Don't inherit or default
6108 * target.h (struct target_ops) <to_trace_start>: Use
6109 TARGET_DEFAULT_NORETURN.
6111 2014-02-19 Tom Tromey <tromey@redhat.com>
6113 * target-delegates.c: Rebuild.
6114 * target.c (update_current_target): Don't inherit or default
6115 to_trace_set_readonly_regions.
6116 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6117 Use TARGET_DEFAULT_NORETURN.
6119 2014-02-19 Tom Tromey <tromey@redhat.com>
6121 * target-delegates.c: Rebuild.
6122 * target.c (update_current_target): Don't inherit or default
6123 to_disable_tracepoint.
6124 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6125 TARGET_DEFAULT_NORETURN.
6127 2014-02-19 Tom Tromey <tromey@redhat.com>
6129 * target-delegates.c: Rebuild.
6130 * target.c (update_current_target): Don't inherit or default
6131 to_enable_tracepoint.
6132 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6133 TARGET_DEFAULT_NORETURN.
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6137 * target-delegates.c: Rebuild.
6138 * target.c (update_current_target): Don't inherit or default
6139 to_download_trace_state_variable.
6140 * target.h (struct target_ops) <to_download_trace_state_variable>:
6141 Use TARGET_DEFAULT_NORETURN.
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target-delegates.c: Rebuild.
6146 * target.c (update_current_target): Don't inherit or default
6147 to_can_download_tracepoint.
6148 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6149 TARGET_DEFAULT_RETURN.
6151 2014-02-19 Tom Tromey <tromey@redhat.com>
6153 * target-delegates.c: Rebuild.
6154 * target.c (update_current_target): Don't inherit or default
6155 to_download_tracepoint.
6156 * target.h (struct target_ops) <to_download_tracepoint>: Use
6157 TARGET_DEFAULT_NORETURN.
6159 2014-02-19 Tom Tromey <tromey@redhat.com>
6161 * target-delegates.c: Rebuild.
6162 * target.c (update_current_target): Don't inherit or default
6164 * target.h (struct target_ops) <to_trace_init>: Use
6165 TARGET_DEFAULT_RETURN.
6167 2014-02-19 Tom Tromey <tromey@redhat.com>
6169 * target-delegates.c: Rebuild.
6170 * target.c (update_current_target): Don't inherit or default
6171 to_supports_string_tracing.
6172 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6173 TARGET_DEFAULT_RETURN.
6175 2014-02-19 Tom Tromey <tromey@redhat.com>
6177 * target-delegates.c: Rebuild.
6178 * target.c (update_current_target): Don't inherit or default
6179 to_supports_enable_disable_tracepoint.
6180 * target.h (struct target_ops)
6181 <to_supports_enable_disable_tracepoint>: Use
6182 TARGET_DEFAULT_RETURN.
6184 2014-02-19 Tom Tromey <tromey@redhat.com>
6186 * target-delegates.c: Rebuild.
6187 * target.c (update_current_target): Don't inherit or default
6188 to_supports_multi_process.
6189 * target.h (struct target_ops) <to_supports_multi_process>: Use
6190 TARGET_DEFAULT_RETURN.
6192 2014-02-19 Tom Tromey <tromey@redhat.com>
6194 * target-delegates.c: Rebuild.
6195 * target.c (update_current_target): Don't inherit or default
6196 to_get_ada_task_ptid.
6197 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6198 TARGET_DEFAULT_FUNC.
6200 2014-02-19 Tom Tromey <tromey@redhat.com>
6202 * target-delegates.c: Rebuild.
6203 * target.c (update_current_target): Don't inherit or default
6204 to_thread_architecture.
6205 * target.h (struct target_ops) <to_thread_architecture>: Use
6206 TARGET_DEFAULT_FUNC.
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6210 * target-delegates.c: Rebuild.
6211 * target.c (update_current_target): Don't inherit or default
6212 to_execution_direction.
6213 * target.h (struct target_ops) <to_execution_direction>: Use
6214 TARGET_DEFAULT_FUNC.
6216 2014-02-19 Tom Tromey <tromey@redhat.com>
6218 * target-delegates.c: Rebuild.
6219 * target.c (update_current_target): Don't inherit or default
6220 to_can_execute_reverse.
6221 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6222 TARGET_DEFAULT_RETURN.
6223 (target_can_execute_reverse): Unconditionally delegate.
6225 2014-02-19 Tom Tromey <tromey@redhat.com>
6227 * target-delegates.c: Rebuild.
6228 * target.c (update_current_target): Don't inherit or default
6230 (dummy_goto_bookmark): Remove.
6231 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6232 * target.h (struct target_ops) <to_goto_bookmark>: Use
6233 TARGET_DEFAULT_NORETURN.
6235 2014-02-19 Tom Tromey <tromey@redhat.com>
6237 * target-delegates.c: Rebuild.
6238 * target.c (update_current_target): Don't inherit or default
6240 (dummy_get_bookmark): Remove.
6241 (init_dummy_target): Don't inherit or default to_get_bookmark.
6242 * target.h (struct target_ops) <to_get_bookmark>: Use
6243 TARGET_DEFAULT_NORETURN
6245 2014-02-19 Tom Tromey <tromey@redhat.com>
6247 * target-delegates.c: Rebuild.
6248 * target.c (update_current_target): Don't inherit or default
6249 to_make_corefile_notes.
6250 (init_dummy_target): Don't initialize to_make_corefile_notes.
6251 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6252 TARGET_DEFAULT_FUNC.
6254 2014-02-19 Tom Tromey <tromey@redhat.com>
6256 * target-delegates.c: Rebuild.
6257 * target.c (update_current_target): Don't inherit or default
6258 to_find_memory_regions.
6259 (init_dummy_target): Don't initialize to_find_memory_regions.
6260 * target.h (struct target_ops) <to_find_memory_regions>: Use
6261 TARGET_DEFAULT_FUNC.
6263 2014-02-19 Tom Tromey <tromey@redhat.com>
6265 * target-delegates.c: Rebuild.
6266 * target.c (update_current_target): Don't inherit or default
6268 * target.h (struct target_ops) <to_log_command>: Use
6269 TARGET_DEFAULT_IGNORE.
6270 (target_log_command): Unconditionally delegate.
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * target-delegates.c: Rebuild.
6275 * target.c (update_current_target): Don't inherit or default
6276 to_pid_to_exec_file.
6277 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6278 TARGET_DEFAULT_RETURN.
6280 2014-02-19 Tom Tromey <tromey@redhat.com>
6282 * target-delegates.c: Rebuild.
6283 * target.c (update_current_target): Don't inherit or default
6285 (target_thread_name): Unconditionally delegate.
6286 * target.h (struct target_ops) <to_thread_name>: Use
6287 TARGET_DEFAULT_RETURN.
6289 2014-02-19 Tom Tromey <tromey@redhat.com>
6291 * target-delegates.c: Rebuild.
6292 * target.c (update_current_target): Don't inherit or default
6293 to_extra_thread_info.
6294 * target.h (struct target_ops) <to_extra_thread_info>: Use
6295 TARGET_DEFAULT_RETURN.
6297 2014-02-19 Tom Tromey <tromey@redhat.com>
6299 * target-delegates.c: Rebuild.
6300 * target.c (update_current_target): Don't inherit or default
6302 * target.h (struct target_ops) <to_has_exited>: Use
6303 TARGET_DEFAULT_RETURN..
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6307 * target-delegates.c: Rebuild.
6308 * target.c (update_current_target): Don't inherit or default
6309 to_set_syscall_catchpoint.
6310 (return_one): Remove.
6311 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6312 TARGET_DEFAULT_RETURN.
6314 2014-02-19 Tom Tromey <tromey@redhat.com>
6316 * target-delegates.c: Rebuild.
6317 * target.c (update_current_target): Don't inherit or default
6318 to_insert_exec_catchpoint.
6319 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6320 TARGET_DEFAULT_RETURN.
6322 2014-01-08 Tom Tromey <tromey@redhat.com>
6324 * target-delegates.c: Rebuild.
6325 * target.c (update_current_target): Don't inherit or default
6326 to_insert_exec_catchpoint.
6327 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6328 TARGET_DEFAULT_RETURN.
6330 2014-02-19 Tom Tromey <tromey@redhat.com>
6332 * target-delegates.c: Rebuild.
6333 * target.c (update_current_target): Don't inherit or default
6334 to_remove_vfork_catchpoint.
6335 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6336 TARGET_DEFAULT_RETURN.
6338 2014-02-19 Tom Tromey <tromey@redhat.com>
6340 * target-delegates.c: Rebuild.
6341 * target.c (update_current_target): Don't inherit or default
6342 to_insert_vfork_catchpoint.
6343 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6344 TARGET_DEFAULT_RETURN.
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * target-delegates.c: Rebuild.
6349 * target.c (update_current_target): Don't inherit or default
6350 to_remove_fork_catchpoint.
6351 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6352 TARGET_DEFAULT_RETURN.
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target-delegates.c: Rebuild.
6357 * target.c (update_current_target): Don't inherit or default
6358 to_insert_fork_catchpoint.
6359 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6360 TARGET_DEFAULT_RETURN.
6362 2014-02-19 Tom Tromey <tromey@redhat.com>
6364 * target-delegates.c: Rebuild.
6365 * target.c (update_current_target): Don't inherit or default
6366 to_post_startup_inferior.
6367 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6368 TARGET_DEFAULT_IGNORE.
6370 2014-02-19 Tom Tromey <tromey@redhat.com>
6372 * target-delegates.c: Rebuild.
6373 * target.c (update_current_target): Don't inherit or default
6375 * target.h (struct target_ops) <to_load>: Use
6376 TARGET_DEFAULT_NORETURN.
6378 2014-02-19 Tom Tromey <tromey@redhat.com>
6380 * target-delegates.c: Rebuild.
6381 * target.c (update_current_target): Don't inherit or default
6383 * target.h (struct target_ops) <to_terminal_info>: Use
6384 TARGET_DEFAULT_FUNC.
6386 2014-02-19 Tom Tromey <tromey@redhat.com>
6388 * target-delegates.c: Rebuild.
6389 * target.c (update_current_target): Don't inherit or default
6390 to_terminal_save_ours.
6391 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6392 TARGET_DEFAULT_IGNORE.
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6396 * target-delegates.c: Rebuild.
6397 * target.c (update_current_target): Don't inherit or default
6399 * target.h (struct target_ops) <to_terminal_ours>: Use
6400 TARGET_DEFAULT_IGNORE.
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6404 * target-delegates.c: Rebuild.
6405 * target.c (update_current_target): Don't inherit or default
6406 to_terminal_ours_for_output.
6407 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6408 TARGET_DEFAULT_IGNORE.
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6412 * target-delegates.c: Rebuild.
6413 * target.c (update_current_target): Don't inherit or default
6414 to_terminal_inferior.
6415 * target.h (struct target_ops) <to_terminal_inferior>: Use
6416 TARGET_DEFAULT_IGNORE.
6418 2014-02-19 Tom Tromey <tromey@redhat.com>
6420 * target-delegates.c: Rebuild.
6421 * target.c (update_current_target): Don't inherit or default
6423 * target.h (struct target_ops) <to_terminal_init>: Use
6424 TARGET_DEFAULT_IGNORE.
6426 2014-02-19 Tom Tromey <tromey@redhat.com>
6428 * target-delegates.c: Rebuild.
6429 * target.c (update_current_target): Don't inherit or default
6430 to_can_accel_watchpoint_condition.
6431 * target.h (struct target_ops)
6432 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6434 2014-02-19 Tom Tromey <tromey@redhat.com>
6436 * target-delegates.c: Rebuild.
6437 * target.c (update_current_target): Don't inherit or default
6438 to_region_ok_for_hw_watchpoint.
6439 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6440 Use TARGET_DEFAULT_FUNC.
6442 2014-02-19 Tom Tromey <tromey@redhat.com>
6444 * target-delegates.c: Rebuild.
6445 * target.c (update_current_target): Don't inherit or default
6446 to_watchpoint_addr_within_range.
6447 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6448 Use TARGET_DEFAULT_FUNC.
6450 2014-02-19 Tom Tromey <tromey@redhat.com>
6452 * target-delegates.c: Rebuild.
6453 * target.c (update_current_target): Don't inherit or default
6454 to_remove_watchpoint.
6455 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6456 TARGET_DEFAULT_NORETURN.
6458 2014-02-19 Tom Tromey <tromey@redhat.com>
6460 * target-delegates.c: Rebuild.
6461 * target.c (update_current_target): Don't inherit or default
6462 to_insert_watchpoint.
6463 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6464 TARGET_DEFAULT_RETURN.
6466 2014-02-19 Tom Tromey <tromey@redhat.com>
6468 * target-delegates.c: Rebuild.
6469 * target.c (update_current_target): Don't inherit or default
6470 to_remove_hw_breakpoint.
6471 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6472 TARGET_DEFAULT_RETURN.
6474 2014-02-19 Tom Tromey <tromey@redhat.com>
6476 * target-delegates.c: Rebuild.
6477 * target.c (update_current_target): Don't inherit or default
6478 to_insert_hw_breakpoint.
6479 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6480 TARGET_DEFAULT_RETURN.
6482 2014-02-19 Tom Tromey <tromey@redhat.com>
6484 * target-delegates.c: Rebuild.
6485 * target.c (update_current_target): Don't inherit or default
6486 to_can_use_hw_breakpoint.
6487 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6488 TARGET_DEFAULT_RETURN.
6490 2014-02-19 Tom Tromey <tromey@redhat.com>
6492 * target-delegates.c: Rebuild.
6493 * target.c (update_current_target): Don't inherit or default
6495 * target.h (struct target_ops) <to_files_info>: Use
6496 TARGET_DEFAULT_IGNORE.
6498 2014-02-19 Tom Tromey <tromey@redhat.com>
6500 * target-delegates.c: Rebuild.
6501 * target.c (update_current_target): Don't inherit or default
6503 * target.h (struct target_ops) <to_store>: Use
6504 TARGET_DEFAULT_NORETURN.
6506 2014-02-19 Tom Tromey <tromey@redhat.com>
6508 * target-delegates.c: Rebuild.
6509 * target.c (update_current_target): Don't inherit or default
6511 * target.h (struct target_ops) <to_post_attach>: Use
6512 TARGET_DEFAULT_IGNORE.
6514 2014-02-19 Tom Tromey <tromey@redhat.com>
6516 * target-delegates.c: Rebuild.
6517 * target.c (update_current_target): Don't inherit or default
6519 (default_rcmd): New function.
6520 (do_monitor_command): Unconditionally delegate.
6521 * target.h (struct target_ops) <to_rmcd>: Use
6522 TARGET_DEFAULT_FUNC.
6524 2014-02-19 Tom Tromey <tromey@redhat.com>
6526 * target-delegates.c: Rebuild.
6527 * target.c (init_dummy_target): Don't initialize to_attach.
6528 (target_attach): Unconditionally delegate.
6529 * target.h (struct target_ops) <to_attach>: Use
6530 TARGET_DEFAULT_FUNC.
6532 2014-02-19 Tom Tromey <tromey@redhat.com>
6534 * target-delegates.c: Rebuild.
6535 * target.c (target_detach): Unconditionally delegate.
6536 (init_dummy_target): Don't initialize to_detach.
6537 * target.h (struct target_ops) <to_detach>: Use
6538 TARGET_DEFAULT_IGNORE.
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6544 (target_augmented_libraries_svr4_read): Add argument.
6545 * target.c (update_current_target): Update.
6546 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6551 * target.h (struct target_ops) <to_call_history_range>: Add
6553 * target.c (target_call_history_range): Add argument.
6554 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6556 (record_btrace_call_history_from): Update.
6558 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target.h (struct target_ops) <to_call_history_from>: Add
6562 * target.c (target_call_history_from): Add argument.
6563 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6566 2014-02-19 Tom Tromey <tromey@redhat.com>
6568 * target.h (struct target_ops) <to_call_history>: Add argument.
6569 * target.c (target_call_history): Add argument.
6570 * record-btrace.c (record_btrace_call_history): Add 'self'
6573 2014-02-19 Tom Tromey <tromey@redhat.com>
6575 * target.h (struct target_ops) <to_insn_history_range>: Add
6577 * target.c (target_insn_history_range): Add argument.
6578 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6580 (record_btrace_insn_history_from): Update.
6582 2014-02-19 Tom Tromey <tromey@redhat.com>
6584 * target.h (struct target_ops) <to_insn_history_from>: Add
6586 * target.c (target_insn_history_from): Add argument.
6587 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6590 2014-02-19 Tom Tromey <tromey@redhat.com>
6592 * target.h (struct target_ops) <to_insn_history>: Add argument.
6593 * target.c (target_insn_history): Add argument.
6594 * record-btrace.c (record_btrace_insn_history): Add 'self'
6597 2014-02-19 Tom Tromey <tromey@redhat.com>
6599 * target.h (struct target_ops) <to_goto_record>: Add argument.
6600 * target.c (target_goto_record): Add argument.
6601 * record-full.c (record_full_goto): Add 'self' argument.
6602 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6604 2014-02-19 Tom Tromey <tromey@redhat.com>
6606 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6607 * target.c (target_goto_record_end): Add argument.
6608 * record-full.c (record_full_goto_end): Add 'self' argument.
6609 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6611 2014-02-19 Tom Tromey <tromey@redhat.com>
6613 * target.h (struct target_ops) <to_goto_record_begin>: Add
6615 * target.c (target_goto_record_begin): Add argument.
6616 * record-full.c (record_full_goto_begin): Add 'self' argument.
6617 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6620 2014-02-19 Tom Tromey <tromey@redhat.com>
6622 * target.h (struct target_ops) <to_record_is_replaying>: Add
6624 * target.c (target_record_is_replaying): Add argument.
6625 * record-full.c (record_full_is_replaying): Add 'self' argument.
6626 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6628 (record_btrace_xfer_partial, record_btrace_store_registers)
6629 (record_btrace_prepare_to_store, record_btrace_resume)
6630 (record_btrace_wait, record_btrace_decr_pc_after_break)
6631 (record_btrace_find_new_threads, record_btrace_thread_alive):
6634 2014-02-19 Tom Tromey <tromey@redhat.com>
6636 * target.h (struct target_ops) <to_delete_record>: Add argument.
6637 * target.c (target_delete_record): Add argument.
6638 * record-full.c (record_full_delete): Add 'self' argument.
6640 2014-02-19 Tom Tromey <tromey@redhat.com>
6642 * target.h (struct target_ops) <to_save_record>: Add argument.
6643 * target.c (target_save_record): Add argument.
6644 * record-full.c (record_full_save): Add 'self' argument.
6645 (record_full_save): Add 'self' argument.
6647 2014-02-19 Tom Tromey <tromey@redhat.com>
6649 * target.h (struct target_ops) <to_info_record>: Add argument.
6650 * target.c (target_info_record): Add argument.
6651 * record.c (info_record_command): Add argument.
6652 * record-full.c (record_full_info): Add 'self' argument.
6653 * record-btrace.c (record_btrace_info): Add 'self' argument.
6655 2014-02-19 Tom Tromey <tromey@redhat.com>
6657 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6658 * target.c (target_stop_recording): Add argument.
6659 * record.c (record_stop): Add argument.
6660 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6666 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6667 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6669 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6670 (_initialize_amd64_linux_nat): Use it.
6671 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6672 (_initialize_i386_linux_nat): Use it.
6674 2014-02-19 Tom Tromey <tromey@redhat.com>
6676 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6677 * target.c (target_teardown_btrace): Add argument.
6678 * remote.c (remote_teardown_btrace): Add 'self' argument.
6679 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6681 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6684 2014-02-19 Tom Tromey <tromey@redhat.com>
6686 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6687 * target.c (target_disable_btrace): Add argument.
6688 * remote.c (remote_disable_btrace): Add 'self' argument.
6689 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6691 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6694 2014-02-19 Tom Tromey <tromey@redhat.com>
6696 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6697 * target.c (target_enable_btrace): Add argument.
6698 * remote.c (remote_enable_btrace): Add 'self' argument.
6699 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6701 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6704 2014-02-19 Tom Tromey <tromey@redhat.com>
6706 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6707 (target_can_use_agent): Add argument.
6708 * target.c (update_current_target): Update.
6709 * remote.c (remote_can_use_agent): Add 'self' argument.
6710 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6712 2014-02-19 Tom Tromey <tromey@redhat.com>
6714 * target.h (struct target_ops) <to_use_agent>: Add argument.
6715 (target_use_agent): Add argument.
6716 * target.c (update_current_target): Update.
6717 * remote.c (remote_use_agent): Add 'self' argument.
6718 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6720 2014-02-19 Tom Tromey <tromey@redhat.com>
6722 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6723 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6724 (target_traceframe_info): Add argument.
6725 * target.c (update_current_target): Update.
6726 * remote.c (remote_traceframe_info): Add 'self' argument.
6727 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * target.h (target_static_tracepoint_markers_by_strid): Add
6733 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6735 * target.c (update_current_target): Update.
6736 * remote.c (struct target_ops)
6737 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6738 * linux-nat.c (struct target_ops)
6739 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6741 2014-02-19 Tom Tromey <tromey@redhat.com>
6743 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6745 (target_static_tracepoint_marker_at): Add argument.
6746 * target.c (update_current_target): Update.
6747 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6750 2014-02-19 Tom Tromey <tromey@redhat.com>
6752 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6753 (target_set_permissions): Add argument.
6754 * target.c (update_current_target): Update.
6755 * remote.c (remote_set_permissions): Add 'self' argument.
6756 (remote_start_remote): Update.
6758 2014-02-19 Tom Tromey <tromey@redhat.com>
6760 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6761 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6762 (target_get_tib_address): Add argument.
6763 * target.c (update_current_target): Update.
6764 * remote.c (remote_get_tib_address): Add 'self' argument.
6766 2014-02-19 Tom Tromey <tromey@redhat.com>
6768 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6769 (target_set_trace_notes): Add argument.
6770 * target.c (update_current_target): Update.
6771 * remote.c (remote_set_trace_notes): Add 'self' argument.
6773 2014-02-19 Tom Tromey <tromey@redhat.com>
6775 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6777 (target_set_trace_buffer_size): Add argument.
6778 * target.c (update_current_target): Update.
6779 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6781 2014-02-19 Tom Tromey <tromey@redhat.com>
6783 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6785 (target_set_circular_trace_buffer): Add argument.
6786 * target.c (update_current_target): Update.
6787 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6790 2014-02-19 Tom Tromey <tromey@redhat.com>
6792 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6794 (target_set_disconnected_tracing): Add argument.
6795 * target.c (update_current_target): Update.
6796 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6798 2014-02-19 Tom Tromey <tromey@redhat.com>
6800 * target.h (struct target_ops)
6801 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6802 (target_get_min_fast_tracepoint_insn_len): Add argument.
6803 * target.c (update_current_target): Update.
6804 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6807 2014-02-19 Tom Tromey <tromey@redhat.com>
6809 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6811 (target_get_raw_trace_data): Add argument.
6812 * target.c (update_current_target): Update.
6813 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6815 2014-02-19 Tom Tromey <tromey@redhat.com>
6817 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6819 (target_upload_trace_state_variables): Add argument.
6820 * target.c (update_current_target): Update.
6821 * remote.c (remote_upload_trace_state_variables): Add 'self'
6823 (remote_start_remote): Update.
6825 2014-02-19 Tom Tromey <tromey@redhat.com>
6827 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6829 (target_upload_tracepoints): Add argument.
6830 * target.c (update_current_target): Update.
6831 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6832 (remote_start_remote): Update.
6834 2014-02-19 Tom Tromey <tromey@redhat.com>
6836 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6837 (target_save_trace_data): Add argument.
6838 * target.c (update_current_target): Update.
6839 * remote.c (remote_save_trace_data): Add 'self' argument.
6841 2014-02-19 Tom Tromey <tromey@redhat.com>
6843 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6845 * target.h (struct target_ops)
6846 <to_get_trace_state_variable_value>: Add argument.
6847 (target_get_trace_state_variable_value): Add argument.
6848 * target.c (update_current_target): Update.
6849 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6851 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6853 2014-02-19 Tom Tromey <tromey@redhat.com>
6855 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6856 * target.h (struct target_ops) <to_trace_find>: Add argument.
6857 (target_trace_find): Add argument.
6858 * target.c (update_current_target): Update.
6859 * remote.c (remote_trace_find): Add 'self' argument.
6860 * ctf.c (ctf_trace_find): Add 'self' argument.
6862 2014-02-19 Tom Tromey <tromey@redhat.com>
6864 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6865 (target_trace_stop): Add argument.
6866 * target.c (update_current_target): Update.
6867 * remote.c (remote_trace_stop): Add 'self' argument.
6869 2014-02-19 Tom Tromey <tromey@redhat.com>
6871 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6872 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6874 (target_get_tracepoint_status): Add argument.
6875 * target.c (update_current_target): Update.
6876 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6878 2014-02-19 Tom Tromey <tromey@redhat.com>
6880 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6881 * target.h (struct target_ops) <to_get_trace_status>: Add
6883 (target_get_trace_status): Add argument.
6884 * target.c (update_current_target): Update.
6885 * remote.c (remote_get_trace_status): Add 'self' argument.
6886 (remote_start_remote, remote_can_download_tracepoint): Update.
6887 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6889 2014-02-19 Tom Tromey <tromey@redhat.com>
6891 * target.h (struct target_ops) <to_trace_start>: Add argument.
6892 (target_trace_start): Add argument.
6893 * target.c (update_current_target): Update.
6894 * remote.c (remote_trace_start): Add 'self' argument.
6896 2014-02-19 Tom Tromey <tromey@redhat.com>
6898 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6900 (target_trace_set_readonly_regions): Add argument.
6901 * target.c (update_current_target): Update.
6902 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6905 2014-02-19 Tom Tromey <tromey@redhat.com>
6907 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6909 (target_disable_tracepoint): Add argument.
6910 * target.c (update_current_target): Update.
6911 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6913 2014-02-19 Tom Tromey <tromey@redhat.com>
6915 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6917 (target_enable_tracepoint): Add argument.
6918 * target.c (update_current_target): Update.
6919 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6921 2014-02-19 Tom Tromey <tromey@redhat.com>
6923 * target.h (struct target_ops) <to_download_trace_state_variable>:
6925 (target_download_trace_state_variable): Add argument.
6926 * target.c (update_current_target): Update.
6927 * remote.c (remote_download_trace_state_variable): Add 'self'
6930 2014-02-19 Tom Tromey <tromey@redhat.com>
6932 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6934 (target_can_download_tracepoint): Add argument.
6935 * target.c (update_current_target): Update.
6936 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6938 2014-02-19 Tom Tromey <tromey@redhat.com>
6940 * target.h (struct target_ops) <to_download_tracepoint>: Add
6942 (target_download_tracepoint): Add argument.
6943 * target.c (update_current_target): Update.
6944 * remote.c (remote_download_tracepoint): Add 'self' argument.
6946 2014-02-19 Tom Tromey <tromey@redhat.com>
6948 * target.h (struct target_ops) <to_trace_init>: Add argument.
6949 (target_trace_init): Add argument.
6950 * target.c (update_current_target): Update.
6951 * remote.c (remote_trace_init): Add 'self' argument.
6953 2014-02-19 Tom Tromey <tromey@redhat.com>
6955 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6956 * target.c (target_fileio_readlink): Add argument.
6957 * remote.c (remote_hostio_readlink): Add 'self' argument.
6958 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6960 2014-02-19 Tom Tromey <tromey@redhat.com>
6962 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6963 * target.c (target_fileio_unlink): Add argument.
6964 * remote.c (remote_hostio_unlink): Add 'self' argument.
6965 (remote_file_delete): Update.
6966 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6968 2014-02-19 Tom Tromey <tromey@redhat.com>
6970 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6971 * target.c (target_fileio_close): Add argument.
6972 * remote.c (remote_hostio_close): Add 'self' argument.
6973 (remote_hostio_close_cleanup): Update.
6974 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6976 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6978 2014-02-19 Tom Tromey <tromey@redhat.com>
6980 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6981 * target.c (target_fileio_pread): Add argument.
6982 * remote.c (remote_hostio_pread): Add 'self' argument.
6983 (remote_bfd_iovec_pread, remote_file_get): Update.
6984 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6986 2014-02-19 Tom Tromey <tromey@redhat.com>
6988 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6989 * target.c (target_fileio_pwrite): Add argument.
6990 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6991 (remote_file_put): Update.
6992 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6994 2014-02-19 Tom Tromey <tromey@redhat.com>
6996 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6997 * target.c (target_fileio_open): Add argument.
6998 * remote.c (remote_hostio_open): Add 'self' argument.
6999 (remote_bfd_iovec_open): Add 'self' argument.
7000 (remote_file_put): Add 'self' argument.
7001 (remote_file_get): Add 'self' argument.
7002 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7004 2014-02-19 Tom Tromey <tromey@redhat.com>
7006 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7008 (target_can_run_breakpoint_commands): Add argument.
7009 * target.c (update_current_target): Update.
7010 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7012 (remote_insert_breakpoint): Add 'self' argument.
7013 (remote_insert_hw_breakpoint): Add 'self' argument.
7014 (remote_can_run_breakpoint_commands): Add 'self' argument.
7016 2014-02-19 Tom Tromey <tromey@redhat.com>
7018 * target.h (struct target_ops)
7019 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7020 (target_supports_evaluation_of_breakpoint_conditions): Add
7022 * target.c (update_current_target): Update.
7023 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7025 (remote_insert_breakpoint): Add 'self' argument.
7026 (remote_insert_hw_breakpoint): Add 'self' argument.
7027 (remote_supports_cond_breakpoints): Add 'self' argument.
7029 2014-02-19 Tom Tromey <tromey@redhat.com>
7031 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7033 (target_supports_string_tracing): Add argument.
7034 * target.c (update_current_target): Update.
7035 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7037 2014-02-19 Tom Tromey <tromey@redhat.com>
7039 * target.h (struct target_ops)
7040 <to_supports_disable_randomization>: Add argument.
7041 * target.c (find_default_supports_disable_randomization): Add
7043 (target_supports_disable_randomization): Add argument.
7044 (find_default_supports_disable_randomization): Add 'self'
7046 * remote.c (extended_remote_supports_disable_randomization): Add
7048 (remote_supports_disable_randomization): Add 'self' argument.
7049 (extended_remote_create_inferior): Update.
7050 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * target.h (struct target_ops)
7056 <to_supports_enable_disable_tracepoint>: Add argument.
7057 (target_supports_enable_disable_tracepoint): Add argument.
7058 * target.c (update_current_target): Update.
7059 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7062 2014-02-19 Tom Tromey <tromey@redhat.com>
7064 * target.h (struct target_ops) <to_supports_multi_process>: Add
7066 (target_supports_multi_process): Add argument.
7067 * target.c (update_current_target): Update.
7068 * remote.c (remote_supports_multi_process): Add 'self' argument.
7069 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7071 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7074 2014-02-19 Tom Tromey <tromey@redhat.com>
7076 * target.h (struct target_ops) <to_execution_direction>: Add
7078 (target_execution_direction): Add argument.
7079 * target.c (default_execution_direction): Add 'self' argument.
7080 * record-full.c (record_full_execution_direction): Add 'self'
7083 2014-02-19 Tom Tromey <tromey@redhat.com>
7085 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7087 (target_can_execute_reverse): Add argument.
7088 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7089 * record-full.c (record_full_can_execute_reverse): Add 'self'
7091 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7096 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7097 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7099 (target_get_ada_task_ptid): Add argument.
7100 * target.c (update_current_target): Update.
7101 (default_get_ada_task_ptid): Add 'self' argument.
7102 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7103 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7104 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7106 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7108 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7110 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7112 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7113 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7116 2014-02-19 Tom Tromey <tromey@redhat.com>
7118 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7119 (target_goto_bookmark): Add argument.
7120 * target.c (dummy_goto_bookmark): Add 'self' argument.
7121 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7123 2014-02-19 Tom Tromey <tromey@redhat.com>
7125 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7126 (target_get_bookmark): Add argument.
7127 * target.c (dummy_get_bookmark): Add 'self' argument.
7128 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7130 2014-02-19 Tom Tromey <tromey@redhat.com>
7132 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7134 (target_make_corefile_notes): Add argument.
7135 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7136 * procfs.c (procfs_make_note_section): Add 'self' argument.
7137 (procfs_make_note_section): Add 'self' argument.
7138 (procfs_make_note_section): Add 'self' argument.
7139 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7141 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7142 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7143 * exec.c (exec_make_note_section): Add 'self' argument.
7144 (exec_make_note_section): Add 'self' argument.
7146 2014-02-19 Tom Tromey <tromey@redhat.com>
7148 * target.h (struct target_ops) <to_find_memory_regions>: Add
7150 (target_find_memory_regions): Add argument.
7151 * target.c (dummy_find_memory_regions): Add 'self' argument.
7152 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7153 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7154 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7155 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7156 * exec. (exec_do_find_memory_regions): New global.
7157 (exec_set_find_memory_regions): Rewrite.
7158 (exec_find_memory_regions): New function.
7159 (init_exec_ops): Use exec_find_memory_regions.
7161 2014-02-19 Tom Tromey <tromey@redhat.com>
7163 * target.h (struct target_ops) <to_supports_non_stop>: Add
7165 * target.c (find_default_supports_non_stop): Add argument.
7166 (target_supports_non_stop): Add argument.
7167 (find_default_supports_non_stop): Add 'self' argument.
7168 * remote.c (remote_supports_non_stop): Add 'self' argument.
7169 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7171 2014-02-19 Tom Tromey <tromey@redhat.com>
7173 * target.h (struct target_ops) <to_log_command>: Add argument.
7174 (target_log_command): Add argument.
7175 * serial.h (serial_log_command): Add 'self' argument.
7176 * serial.c (serial_log_command): Add 'self' argument.
7178 2014-02-19 Tom Tromey <tromey@redhat.com>
7180 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7181 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7183 (target_pid_to_exec_file): Add argument.
7184 * target.c (debug_to_pid_to_exec_file): Add argument.
7185 (update_current_target): Update.
7186 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7187 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7188 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7189 (linux_handle_extended_wait): Update.
7190 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7191 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7192 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7193 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7195 2014-02-19 Tom Tromey <tromey@redhat.com>
7197 * target.h (struct target_ops) <to_rcmd>: Add argument.
7198 (target_rcmd): Add argument.
7199 * target.c (debug_to_rcmd): Add argument.
7200 (update_current_target, do_monitor_command): Update.
7201 * remote.c (remote_rcmd): Add 'self' argument.
7202 * monitor.c (monitor_rcmd): Add 'self' argument.
7204 2014-02-19 Tom Tromey <tromey@redhat.com>
7206 * windows-nat.c (windows_stop): Add 'self' argument.
7207 * target.h (struct target_ops) <to_stop>: Add argument.
7208 * target.c (target_stop): Add argument.
7209 (debug_to_stop): Add argument.
7210 (update_current_target): Update.
7211 * remote.c (remote_stop): Add 'self' argument.
7212 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7213 (gdbsim_cntrl_c): Update.
7214 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7215 * procfs.c (procfs_stop): Add 'self' argument.
7216 * nto-procfs.c (procfs_stop): Add 'self' argument.
7217 * monitor.c (monitor_stop): Add 'self' argument.
7218 (monitor_open): Update.
7219 * linux-nat.c (linux_nat_stop): Add argument.
7220 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7221 * gnu-nat.c (gnu_stop): Add 'self' argument.
7222 * darwin-nat.c (darwin_stop): Add 'self' argument.
7224 2014-02-19 Tom Tromey <tromey@redhat.com>
7226 * target.h (struct target_ops) <to_thread_name>: Add argument.
7227 * target.c (target_thread_name): Add argument.
7228 (update_current_target): Update.
7229 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7231 2014-02-19 Tom Tromey <tromey@redhat.com>
7233 * target.h (struct target_ops) <to_extra_thread_info>: Add
7235 (target_extra_thread_info): Add argument.
7236 * target.c (update_current_target): Update.
7237 * remote.c (remote_threads_extra_info): Add 'self' argument.
7238 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7240 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7241 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7242 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7244 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7246 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7248 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7251 2014-02-19 Tom Tromey <tromey@redhat.com>
7253 * target.h (struct target_ops) <to_program_signals>: Add argument.
7254 * target.c (target_program_signals): Add argument.
7255 * remote.c (remote_program_signals): Add 'self' argument.
7257 2014-02-19 Tom Tromey <tromey@redhat.com>
7259 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7260 * target.c (target_pass_signals): Add argument.
7261 * remote.c (remote_pass_signals): Add 'self' argument.
7262 (remote_start_remote): Update.
7263 * procfs.c (procfs_pass_signals): Add 'self' argument.
7264 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7265 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7266 (linux_nat_create_inferior, linux_nat_attach): Update.
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7270 * windows-nat.c (windows_can_run): Add 'self' argument.
7271 * target.h (struct target_ops) <to_can_run>: Add argument.
7272 (target_can_run): Add argument.
7273 * target.c (debug_to_can_run): Add argument.
7274 (update_current_target): Update.
7275 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7276 * inf-child.c (inf_child_can_run): Add 'self' argument.
7277 * go32-nat.c (go32_can_run): Add 'self' argument.
7279 2014-02-19 Tom Tromey <tromey@redhat.com>
7281 * target.h (struct target_ops) <to_has_exited>: Add argument.
7282 (target_has_exited): Add argument.
7283 * target.c (debug_to_has_exited): Add argument.
7284 (update_current_target): Update.
7286 2014-02-19 Tom Tromey <tromey@redhat.com>
7288 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7290 (target_set_syscall_catchpoint): Add argument.
7291 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7293 * target.c (update_current_target): Update.
7295 2014-02-19 Tom Tromey <tromey@redhat.com>
7297 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7299 (target_remove_exec_catchpoint): Add argument.
7300 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7301 (update_current_target): Update.
7302 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7305 2014-02-19 Tom Tromey <tromey@redhat.com>
7307 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7309 (target_insert_exec_catchpoint): Add argument.
7310 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7311 (update_current_target): Update.
7312 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7317 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7319 (target_remove_vfork_catchpoint): Add argument.
7320 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7321 (update_current_target): Update.
7322 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7325 2014-02-19 Tom Tromey <tromey@redhat.com>
7327 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7329 (target_insert_vfork_catchpoint): Add argument.
7330 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7331 (update_current_target): Update.
7332 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7335 2014-02-19 Tom Tromey <tromey@redhat.com>
7337 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7339 (target_remove_fork_catchpoint): Add argument.
7340 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7341 (update_current_target): Update.
7342 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7345 2014-02-19 Tom Tromey <tromey@redhat.com>
7347 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7349 (target_insert_fork_catchpoint): Add argument.
7350 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7351 (update_current_target): Update.
7352 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7359 (target_post_startup_inferior): Add argument.
7360 * target.c (debug_to_post_startup_inferior): Add argument.
7361 (update_current_target): Update.
7362 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7364 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7366 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7368 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7370 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7372 (super_post_startup_inferior): Likewise.
7373 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7375 (super_post_startup_inferior): Likewise.
7376 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7377 Add 'self' argument.
7378 (super_post_startup_inferior): Likewise.
7380 2014-02-19 Tom Tromey <tromey@redhat.com>
7382 * target.h (struct target_ops) <to_load>: Add argument.
7383 * target.c (target_load): Add argument.
7384 (debug_to_load): Add argument.
7385 (update_current_target): Update.
7386 * remote.c (remote_load): Add 'self' argument.
7387 * remote-sim.c (gdbsim_load): Add 'self' argument.
7388 * remote-mips.c (mips_load): Add 'self' argument.
7389 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7390 * monitor.c (monitor_load): Add 'self' argument.
7391 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7393 2014-02-19 Tom Tromey <tromey@redhat.com>
7395 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7396 (target_terminal_info): Add argument.
7397 * target.c (debug_to_terminal_info): Add argument.
7398 (default_terminal_info): Likewise.
7399 * inflow.c (child_terminal_info): Add 'self' argument.
7400 * inferior.h (child_terminal_info): Add 'self' argument.
7401 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7403 2014-02-19 Tom Tromey <tromey@redhat.com>
7405 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7407 (target_terminal_save_ours): Add argument.
7408 * target.c (debug_to_terminal_save_ours): Add argument.
7409 (update_current_target): Update.
7410 * inflow.c (terminal_save_ours): Add 'self' argument.
7411 * inferior.h (terminal_save_ours): Add 'self' argument.
7413 2014-02-19 Tom Tromey <tromey@redhat.com>
7415 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7416 (target_terminal_ours): Add argument.
7417 * target.c (debug_to_terminal_ours): Add argument.
7418 (update_current_target): Update.
7419 * remote.c (remote_terminal_ours): Add 'self' argument.
7420 (remote_close): Update.
7421 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7422 * inflow.c (terminal_ours): Add 'self' argument.
7423 * inferior.h (terminal_ours): Add 'self' argument.
7424 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7426 2014-02-19 Pedro Alves <palves@redhat.com>
7427 Tom Tromey <tromey@redhat.com>
7429 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7431 (target_terminal_ours_for_output): Add argument.
7432 * target.c (debug_to_terminal_ours_for_output): Add argument.
7433 (update_current_target): Update.
7434 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7435 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7436 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7440 * target.h (struct target_ops) <to_terminal_inferior>: Add
7442 * target.c (target_terminal_inferior): Add argument.
7443 (update_current_target): Update.
7444 * remote.c (remote_terminal_inferior): Add 'self' argument.
7445 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7446 * inflow.c (terminal_inferior): Add 'self' argument.
7447 * inferior.h (terminal_inferior): Add 'self' argument.
7448 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7449 (go32_terminal_inferior): Add 'self' argument.
7451 2014-02-19 Tom Tromey <tromey@redhat.com>
7453 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7454 (target_terminal_init): Add argument.
7455 * target.c (debug_to_terminal_init): Add argument.
7456 (update_current_target): Update.
7457 * inflow.c (terminal_init_inferior): Add 'self' argument.
7458 * inferior.h (terminal_init_inferior): Add 'self' argument.
7459 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7460 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7464 * target.h (struct target_ops)
7465 <to_can_accel_watchpoint_condition>: Add argument.
7466 (target_can_accel_watchpoint_condition): Add argument.
7467 * target.c (debug_to_can_accel_watchpoint_condition): Add
7469 (update_current_target): Update.
7470 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7473 2014-02-19 Tom Tromey <tromey@redhat.com>
7475 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7477 (target_region_ok_for_hw_watchpoint): Add argument.
7478 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7479 (default_region_ok_for_hw_watchpoint): Add argument.
7480 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7481 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7483 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7485 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7487 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7489 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7491 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7493 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7494 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7496 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7497 Add 'self' argument.
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7503 (target_insert_watchpoint): Add argument.
7504 * target.c (debug_to_insert_watchpoint): Add argument.
7505 (update_current_target): Update.
7506 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7507 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7508 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7509 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7510 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7511 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7513 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7514 (procfs_insert_hw_watchpoint): Add 'self' argument.
7515 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7517 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7519 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7521 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7522 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7524 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7527 2014-02-19 Tom Tromey <tromey@redhat.com>
7529 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7531 (target_remove_watchpoint): Add argument.
7532 * target.c (debug_to_remove_watchpoint): Add argument.
7533 (update_current_target): Update.
7534 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7535 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7536 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7537 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7538 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7539 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7541 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7542 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7544 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7546 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7548 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7549 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7551 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7554 2014-02-19 Tom Tromey <tromey@redhat.com>
7556 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7558 (target_remove_hw_breakpoint): Add argument.
7559 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7560 (update_current_target): Update.
7561 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7562 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7564 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7565 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7567 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7570 2014-02-19 Tom Tromey <tromey@redhat.com>
7572 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7574 (target_insert_hw_breakpoint): Add argument.
7575 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7576 (update_current_target): Update.
7577 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7578 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7580 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7581 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7582 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7584 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7589 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7591 (target_can_use_hardware_watchpoint): Add argument.
7592 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7593 (update_current_target): Update.
7594 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7596 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7598 * remote.c (remote_check_watch_resources): Add 'self' argument.
7599 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7600 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7602 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7603 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7605 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7607 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7609 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7611 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7613 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7615 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7616 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7618 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7621 2014-02-19 Tom Tromey <tromey@redhat.com>
7623 * target.h (struct target_ops) <to_post_attach>: Add argument.
7624 (target_post_attach): Add argument.
7625 * target.c (debug_to_post_attach): Add argument.
7626 (update_current_target): Update.
7627 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7628 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7629 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7630 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7631 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7633 2014-02-19 Tom Tromey <tromey@redhat.com>
7635 * windows-nat.c (windows_close): Add 'self' argument.
7636 * tracepoint.c (tfile_close): Add 'self' argument.
7637 * target.h (struct target_ops) <to_close>: Add argument.
7638 * target.c (target_close): Add argument.
7639 (update_current_target): Update.
7640 * remote.c (remote_close): Add 'self' argument.
7641 * remote-sim.c (gdbsim_close): Add 'self' argument.
7642 * remote-mips.c (mips_close): Add 'self' argument.
7643 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7644 * record-full.c (record_full_close): Add 'self' argument.
7645 * record-btrace.c (record_btrace_close): Add 'self' argument.
7646 * monitor.h (monitor_close): Add 'self' argument.
7647 * monitor.c (monitor_close): Add 'self' argument.
7648 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7649 * linux-nat.c (linux_nat_close): Add argument.
7650 * go32-nat.c (go32_close): Add 'self' argument.
7651 * exec.c (exec_close_1): Add 'self' argument.
7652 * ctf.c (ctf_close): Add 'self' argument.
7653 * corelow.c (core_close): Add 'self' argument.
7654 (core_close_cleanup): Update.
7655 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7656 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7658 2014-02-19 Tom Tromey <tromey@redhat.com>
7660 * remote.c (remote_load): New function.
7661 (init_remote_ops): Use it.
7663 2014-02-19 Tom Tromey <tromey@redhat.com>
7665 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7667 * common/linux-btrace.h (linux_supports_btrace): Update.
7668 * remote.c (remote_supports_btrace): Add "self" argument.
7669 * target-delegates.c: Rebuild.
7670 * target.c (target_supports_btrace): Remove.
7671 * target.h (struct target_ops) <to_supports_btrace>: Add
7672 target_ops argument.
7673 (target_supports_btrace): New define.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * record-full.c (record_full_beneath_to_resume_ops)
7678 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7679 (record_full_beneath_to_wait)
7680 (record_full_beneath_to_store_registers_ops)
7681 (record_full_beneath_to_store_registers)
7682 (record_full_beneath_to_xfer_partial_ops)
7683 (record_full_beneath_to_xfer_partial)
7684 (record_full_beneath_to_insert_breakpoint_ops)
7685 (record_full_beneath_to_insert_breakpoint)
7686 (record_full_beneath_to_remove_breakpoint_ops)
7687 (record_full_beneath_to_remove_breakpoint)
7688 (record_full_beneath_to_stopped_by_watchpoint)
7689 (record_full_beneath_to_stopped_data_address)
7690 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7691 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7692 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7693 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7694 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7695 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7696 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7697 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7698 (record_full_resume, record_full_wait_1)
7699 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7700 (record_full_store_registers, record_full_xfer_partial)
7701 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7702 (record_full_async, record_full_core_xfer_partial): Use target
7704 * target-delegates.c: Rebuild.
7705 * target.c (current_xfer_partial): Remove.
7706 (update_current_target): Do not INHERIT or de_fault
7707 to_insert_breakpoint, to_remove_breakpoint,
7708 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7709 to_is_async_p, to_async. Do not set to_xfer_partial field.
7710 (default_xfer_partial): Simplify.
7711 (current_xfer_partial): Remove.
7712 (target_wait, target_resume): Simplify.
7713 (find_default_can_async_p, find_default_is_async_p): Update.
7714 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7715 to_xfer_partial, to_stopped_by_watchpoint,
7716 to_stopped_data_address.
7717 (target_store_registers): Simplify.
7718 (forward_target_remove_breakpoint)
7719 (forward_target_insert_breakpoint): Remove.
7720 (target_remove_breakpoint, target_insert_breakpoint)
7721 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7722 * target.h (struct target_ops) <to_resume, to_wait,
7723 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7724 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7725 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7727 (forward_target_remove_breakpoint)
7728 (forward_target_insert_breakpoint): Remove.
7729 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7731 (record_btrace_insert_breakpoint): Delegate directly.
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7736 * target-delegates.c: New file.
7737 * target.c: Include target-delegates.c.
7738 (init_dummy_target): Call install_dummy_methods.
7739 (complete_target_initialization): Call install_delegators.
7740 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7741 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7742 * make-target-delegates: New file.
7744 2014-02-19 Tom Tromey <tromey@redhat.com>
7746 * record.c (find_record_target): Use find_target_at.
7747 * target.c (find_target_at): New function.
7748 * target.h (find_target_at): Declare.
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7752 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7754 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7756 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7757 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7759 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7761 * linux-nat.c (save_sigtrap): Update.
7762 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7763 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7764 (linux_nat_close): Update.
7765 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7767 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7769 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7770 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7771 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7772 (tmp_to_async): Add 'ops' argument.
7773 (record_full_stopped_by_watchpoint, record_full_async)
7774 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7776 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7777 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7778 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7779 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7780 (remote_is_async_p, remote_async): Add 'ops' argument.
7781 (remote_stopped_data_address): Update.
7782 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7783 * target.c (update_current_target)
7784 (find_default_can_async_p, find_default_is_async_p): Update.
7785 (init_dummy_target): Update.
7786 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7787 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7788 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7789 (target_can_async_p, target_is_async_p, target_async)
7790 (target_stopped_by_watchpoint): Update.
7792 2014-02-19 Yao Qi <yao@codesourcery.com>
7795 * gdbarch.sh: Remove startup_gdbarch.
7796 * gdbarch.c: Regenerated.
7797 * gdbarch.h: Likewise.
7799 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7801 * rl78-tdep.c (rl78_g10_register_name): New function.
7802 (rl78_return_value): Add g10 support.
7803 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7806 2014-02-17 Doug Evans <xdje42@gmail.com>
7808 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7809 (SUBDIR_GUILE_SRCS): Ditto.
7810 (scm-gsmob.o): Ditto.
7812 2014-02-17 Yao Qi <yao@codesourcery.com>
7814 * gnu-nat.c (ILL_RPC): Declare defined function.
7816 2014-02-17 Yao Qi <yao@codesourcery.com>
7818 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7819 mach_msg_type_number_t.
7820 (gnu_write_inferior): Likewise.
7822 2014-02-17 Yao Qi <yao@codesourcery.com>
7824 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7826 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7827 (inf_validate_procs, inf_signal): Likewise.
7828 (S_exception_raise_request): Likewise.
7829 (do_mach_notify_dead_name): Likewise.
7830 (steal_exc_port): Likewise.
7831 (gnu_read_inferior): Change 'copy_count''s type to
7832 mach_msg_type_number_t.
7833 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7836 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7838 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7839 flag. Adjust all users; in particular...
7840 (gnu_wait): ..., don't decrement its value in here...
7841 (gnu_create_inferior): ..., and instead set the flag in here,
7842 around the startup_inferior call, and call that one with
7843 START_INFERIOR_TRAPS_EXPECTED.
7845 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7846 (ILL_RPC): ... new macro.
7847 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7848 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7849 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7850 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7851 functions with ILL_RPC macro.
7852 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7853 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7854 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7855 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7856 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7857 (S_proc_getlogin_reply, S_proc_getsid_reply)
7858 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7859 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7860 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7861 (S_proc_getnports_reply, S_proc_is_important_reply)
7862 (S_proc_get_code_reply): New stub functions, generated with
7865 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7866 collected the type check structures.
7868 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7870 2014-02-14 Doug Evans <dje@google.com>
7872 * target.c (target_write_partial): Fix result type.
7874 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7876 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7877 the proper offsets to access fpregset_t.
7879 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7881 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7882 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7883 * h8300-tdep.c (setmachinelist): Remove global.
7884 * hppa-tdep.c (hppa_sigtramp): Remove global.
7885 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7886 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7887 * ravenscar-thread.c (update_target_observer): Remove global.
7888 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7890 2014-02-12 Tom Tromey <tromey@redhat.com>
7892 * common/rsp-low.c: Update comments.
7893 * common/rsp-low.h: Update comments.
7895 2014-02-12 Tom Tromey <tromey@redhat.com>
7897 * common/rsp-low.c (convert_ascii_to_int): Remove.
7898 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7900 2014-02-12 Tom Tromey <tromey@redhat.com>
7902 * common/rsp-low.h (unhexify): Don't declare.
7903 * common/rsp-low.c (unhexify): Remove.
7905 2014-02-12 Tom Tromey <tromey@redhat.com>
7907 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7908 * common/rsp-low.c (convert_int_to_ascii): Remove.
7910 2014-02-12 Tom Tromey <tromey@redhat.com>
7912 * common/rsp-low.h (hexify): Don't declare.
7913 * common/rsp-low.c (hexify): Remove.
7915 2014-02-12 Tom Tromey <tromey@redhat.com>
7917 * common/rsp-low.c (hexify): Never take strlen of argument.
7919 2014-02-12 Tom Tromey <tromey@redhat.com>
7921 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7922 * remote.c (extended_remote_run, remote_rcmd)
7923 (remote_download_trace_state_variable, remote_save_trace_data)
7924 (remote_set_trace_notes): Update.
7925 * tracepoint.c (encode_source_string, tfile_write_status)
7926 (tfile_write_uploaded_tsv): Update.
7928 2014-02-12 Tom Tromey <tromey@redhat.com>
7930 * tracepoint.c: Include rsp-low.h.
7931 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7932 * remote.c: Include rsp-low.h.
7933 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7934 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7935 (remote_unescape_input): Move to common/rsp-low.c.
7936 * common/rsp-low.h: New file.
7937 * common/rsp-low.c: New file.
7938 * Makefile.in (SFILES): Add common/rsp-low.c.
7939 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7940 (COMMON_OBS): Add rsp-low.o.
7941 (rsp-low.o): New target.
7943 2014-02-12 Tom Tromey <tromey@redhat.com>
7945 * utils.h: Include print-utils.h.
7946 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7947 (int_string, core_addr_to_string, core_addr_to_string_nz)
7948 (hex_string, hex_string_custom): Don't declare.
7949 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7950 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7951 (hex_string_custom, int_string, core_addr_to_string)
7952 (core_addr_to_string_nz, host_address_to_string): Move to
7953 common/print-utils.c.
7954 * common/print-utils.h: New file.
7955 * common/print-utils.c: New file
7956 * Makefile.in (SFILES): Add common/print-utils.c.
7957 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7958 (COMMON_OBS): Add print-utils.o.
7959 (print-utils.o): New target.
7961 2014-02-12 Tom Tromey <tromey@redhat.com>
7963 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7965 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7967 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7969 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7971 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7972 if a PT_IO ptrace request returns sucessfully but indicates that 0
7973 bytes were transferred.
7975 2014-02-12 Pedro Alves <palves@redhat.com>
7976 Kevin Buettner <kevinb@redhat.com>
7978 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7979 TYPE_INSTANCE_FLAG_CODE_SPACE.
7981 2014-02-12 Pedro Alves <palves@redhat.com>
7983 * h8300-tdep.c (pseudo_from_raw_register)
7984 (raw_from_pseudo_register): New functions.
7985 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7988 2014-02-12 Pedro Alves <palves@redhat.com>
7990 * h8300-tdep.c (h8300_register_sim_regno): New function.
7991 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7992 gdbarch_register_sim_regno hook.
7994 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7996 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7998 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8000 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8002 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8004 * obsd-tdep.h (obsd_init_abi): New prototype.
8005 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8006 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8007 (obsd_init_abi): New functions.
8008 * i386obsd-tdep.c: Include "obsd-tdep.h".
8009 (i386obsd_init_abi): Call obsd_init_abi.
8010 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8011 (amd64obsd_init_abi): Call obsd_init_abi.
8012 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8013 obsd-tdep.c to gdb_target_obs.
8015 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8017 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8018 double float arguments to 16-byte in the argument slots.
8020 2014-02-11 Doug Evans <xdje42@gmail.com>
8022 * configure.ac: Don't crash if pkg-config is not found and guile
8023 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8025 * configure: Regenerate.
8027 2014-02-11 Yao Qi <yao@codesourcery.com>
8029 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8030 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8031 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8032 * gnu-nat.c (gnu_xfer_memory): Likewise.
8033 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8034 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8035 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8036 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8038 2014-02-11 Yao Qi <yao@codesourcery.com>
8040 * target.h (enum target_xfer_error): Rename to ...
8041 (enum target_xfer_status): ... it. New. All users updated.
8042 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8044 (TARGET_XFER_STATUS_ERROR_P): New macro.
8045 (target_xfer_error_to_string): Remove declaration.
8046 (target_xfer_status_to_string): Declare.
8047 (target_xfer_partial_ftype): Adjust it.
8048 (struct target_ops) <to_xfer_partial>: Return
8049 target_xfer_status. Add argument xfered_len. Update
8051 * target.c (target_xfer_error_to_string): Rename to ...
8052 (target_xfer_status_to_string): ... it. New. All callers
8054 (target_read_live_memory): Likewise. Call target_xfer_partial
8055 instead of target_read.
8056 (memory_xfer_live_readonly_partial): Return
8057 target_xfer_status. Add argument xfered_len.
8058 (raw_memory_xfer_partial): Likewise.
8059 (memory_xfer_partial_1): Likewise.
8060 (memory_xfer_partial): Likewise.
8061 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8062 properly. Update debug message.
8063 (default_xfer_partial, current_xfer_partial): Likewise.
8064 (target_write_partial): Likewise.
8065 (target_read_partial): Likewise. All callers updated.
8066 (read_whatever_is_readable): Likewise.
8067 (target_write_with_progress): Likewise.
8068 (target_read_alloc_1): Likewise.
8070 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8071 * auxv.c (procfs_xfer_auxv): Likewise.
8072 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8073 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8074 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8075 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8076 * corefile.c (read_memory): Adjust.
8077 * corelow.c (core_xfer_partial): Likewise.
8078 * ctf.c (ctf_xfer_partial): Likewise.
8079 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8081 (darwin_xfer_partial): Likewise.
8082 * exec.c (section_table_xfer_memory_partial): Likewise. All
8084 (exec_xfer_partial): Likewise.
8085 * exec.h (section_table_xfer_memory_partial): Update
8087 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8089 (gnu_xfer_partial): Likewise.
8090 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8091 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8092 (ia64_hpux_xfer_solib_got): Likewise.
8093 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8094 type of 'partial_len' to ULONGEST.
8095 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8096 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8097 (linux_nat_xfer_partial): Likewise.
8098 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8099 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8100 * monitor.c (monitor_xfer_memory): Likewise.
8101 (monitor_xfer_partial): Likewise.
8102 * procfs.c (procfs_xfer_partial): Likewise.
8103 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8104 * record-full.c (record_full_xfer_partial): Likewise.
8105 (record_full_core_xfer_partial): Likewise.
8106 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8107 (gdbsim_xfer_partial): Likewise.
8108 * remote.c (remote_write_bytes_aux): Likewise. All callers
8110 (remote_write_bytes, remote_read_bytes): Likewise. All
8112 (remote_flash_erase): Likewise. All callers updated.
8113 (remote_write_qxfer): Likewise. All callers updated.
8114 (remote_read_qxfer): Likewise. All callers updated.
8115 (remote_xfer_partial): Likewise.
8116 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8117 (rs6000_xfer_shared_libraries): Likewise.
8118 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8119 (sol_thread_xfer_partial): Likewise.
8120 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8121 (sparc_xfer_partial): Likewise.
8122 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8124 (spu_xfer_partial): Likewise.
8125 * spu-multiarch.c (spu_xfer_partial): Likewise.
8126 * tracepoint.c (tfile_xfer_partial): Likewise.
8127 * windows-nat.c (windows_xfer_memory): Likewise.
8128 (windows_xfer_shared_libraries): Likewise.
8129 (windows_xfer_partial): Likewise.
8130 * valprint.c: Replace 'target_xfer_error' with
8131 'target_xfer_status' in comments.
8133 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8135 Checked in by Joel Brobecker <brobecker@adacore.com>.
8136 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8138 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8140 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8141 function parameters.
8143 2014-02-10 Will Newton <will.newton@linaro.org>
8145 * elfread.c (elf_rel_plt_read): Look for a .got section if
8146 looking up .got.plt fails.
8147 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8148 on address passed to elf_gnu_ifunc_record_cache.
8149 (elf_gnu_ifunc_resolve_addr): Likewise.
8150 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8152 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8154 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8155 (X_RETTURN): New macro.
8156 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8158 * sparc64-tdep.c (sparc64_init_abi): Hook
8159 sparc_in_function_epilogue_p.
8161 2014-02-10 Gary Benson <gbenson@redhat.com>
8163 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8164 Rename name_matcher to symbol_matcher.
8166 2014-02-10 Gary Benson <gbenson@redhat.com>
8168 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8169 Use expand_symtabs_file_matcher_ftype and
8170 expand_symtabs_symbol_matcher_ftype.
8172 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8174 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8175 (struct ada_symbol_cache): New.
8176 (ada_free_symbol_cache): Forward declare.
8177 (struct ada_pspace_data): New.
8178 (ada_pspace_data_handle): New static global.
8179 (get_ada_pspace_data, ada_pspace_data_cleanup)
8180 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8181 (cache_space, cache): Delete, now folded inside struct
8183 (ada_get_symbol_cache): New function.
8184 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8186 (_initialize_ada_language): Remove initialization of cache_space.
8187 Move call to observer_attach_inferior_exit up, grouping it
8188 with the other observer registrations inside this function.
8189 Rename command to be more general. Add call to
8190 register_program_space_data_with_cleanup.
8192 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8194 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8195 ada_new_objfile_observer.
8196 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8197 (_initialize_tasks): Update uses of ada_new_objfile_observer
8198 and ada_tasks_normal_stop_observer.
8200 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8202 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8203 returned by the 'Length attribute to integer.
8205 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8207 * ada-lang.c (_initialize_ada_language): Initialize
8208 cache_space obstack.
8210 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8212 * ada-lang.c (HASH_SIZE): New macro.
8213 (struct cache_entry): New type.
8214 (cache_space, cache): New static globals.
8215 (ada_clear_symbol_cache, find_entry): New functions.
8216 (lookup_cached_symbol, cache_symbol): Implement.
8217 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8218 (_initialize_ada_language): Attach ada_new_objfile_observer
8219 and ada_free_objfile_observer.
8221 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8223 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8224 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8225 struct block * parameter.
8226 (ada_lookup_symbol_list_worker): Constify local variable "block".
8227 Remove cast which is no longer necessary.
8229 2014-02-10 Doug Evans <xdje42@gmail.com>
8231 Add Guile as an extension language.
8232 * NEWS: Mention Guile scripting.
8233 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8234 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8235 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8236 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8237 (CLIBS): Add GUILE_LIBS.
8238 (install-guile): New rule.
8239 (guile.o): New rule.
8240 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8241 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8242 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8243 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8244 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8245 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8246 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8247 * configure.ac: New option --with-guile.
8248 * configure: Regenerate.
8249 * config.in: Regenerate.
8250 * auto-load.c: Remove #include "python/python.h". Add #include
8251 "gdb/section-scripts.h".
8252 (source_section_scripts): Handle Guile scripts.
8253 (_initialize_auto_load): Add name of Guile objfile script to
8254 scripts-directory help text.
8255 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8256 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8257 (struct breakpoint): New member scm_bp_object.
8258 * defs.h (enum command_control_type): New value guile_control.
8259 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8261 (show_user): Update comment.
8262 (_initialize_cli_cmds): Update help text for "show user". Update help
8263 text for max-user-call-depth.
8264 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8266 (multi_line_command_p): Add guile_control.
8267 (print_command_lines): Handle guile_control.
8268 (execute_control_command, recurse_read_control_structure): Ditto.
8269 (process_next_line): Recognize "guile" commands.
8270 * disasm.c (gdb_disassemble_info): Make non-static.
8271 * disasm.h: #include "dis-asm.h".
8272 (struct gdbarch): Add forward decl.
8273 (gdb_disassemble_info): Declare.
8274 * extension.c: #include "guile/guile.h".
8275 (extension_languages): Add guile.
8276 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8277 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8278 * gdbtypes.c (get_unsigned_type_max): New function.
8279 (get_signed_type_minmax): New function.
8280 * gdbtypes.h (get_unsigned_type_max): Declare.
8281 (get_signed_type_minmax): Declare.
8282 * guile/README: New file.
8283 * guile/guile-internal.h: New file.
8284 * guile/guile.c: New file.
8285 * guile/guile.h: New file.
8286 * guile/scm-arch.c: New file.
8287 * guile/scm-auto-load.c: New file.
8288 * guile/scm-block.c: New file.
8289 * guile/scm-breakpoint.c: New file.
8290 * guile/scm-disasm.c: New file.
8291 * guile/scm-exception.c: New file.
8292 * guile/scm-frame.c: New file.
8293 * guile/scm-gsmob.c: New file.
8294 * guile/scm-iterator.c: New file.
8295 * guile/scm-lazy-string.c: New file.
8296 * guile/scm-math.c: New file.
8297 * guile/scm-objfile.c: New file.
8298 * guile/scm-ports.c: New file.
8299 * guile/scm-pretty-print.c: New file.
8300 * guile/scm-safe-call.c: New file.
8301 * guile/scm-string.c: New file.
8302 * guile/scm-symbol.c: New file.
8303 * guile/scm-symtab.c: New file.
8304 * guile/scm-type.c: New file.
8305 * guile/scm-utils.c: New file.
8306 * guile/scm-value.c: New file.
8307 * guile/lib/gdb.scm: New file.
8308 * guile/lib/gdb/boot.scm: New file.
8309 * guile/lib/gdb/experimental.scm: New file.
8310 * guile/lib/gdb/init.scm: New file.
8311 * guile/lib/gdb/iterator.scm: New file.
8312 * guile/lib/gdb/printing.scm: New file.
8313 * guile/lib/gdb/types.scm: New file.
8314 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8315 (VPATH): Add $(GUILE_SRCDIR).
8316 (GUILE_DIR): New variable.
8317 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8318 (all): Add stamp-guile dependency.
8319 (stamp-guile): New rule.
8320 (clean-guile, install-guile, uninstall-guile): New rules.
8321 (install-only): Add install-guile dependency.
8322 (uninstall): Add uninstall-guile dependency.
8323 (clean): Add clean-guile dependency.
8325 2014-02-09 Doug Evans <xdje42@gmail.com>
8327 Revert this patch (which I approved, mea culpa).
8329 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8331 * Makefile.in (all-lib): Remove.
8332 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8334 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8336 Fix Python stack corruption.
8337 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8340 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8342 * Makefile.in (all-lib): Remove.
8343 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8345 2014-02-07 Doug Evans <dje@google.com>
8347 * extension-priv.h (extension_language_script_ops): Add comment.
8348 (extension_language_ops): Add comment.
8349 (active_ext_lang_state): Fix typo in comment.
8351 2014-02-07 Pedro Alves <palves@redhat.com>
8353 PR breakpoints/16292
8354 * infrun.c (handle_signal_stop) <signal arrives while stepping
8355 over a breakpoint>: Switch back to the stepping thread.
8357 2014-02-07 Yao Qi <yao@codesourcery.com>
8359 * target.c (target_xfer_partial): Return zero if LEN is zero.
8361 2014-02-07 Yao Qi <yao@codesourcery.com>
8363 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8364 (ld_so_xfer_auxv): Likewise.
8365 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8366 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8367 * corelow.c (core_xfer_partial): Likewise.
8368 * ctf.c (ctf_xfer_partial): Likewise.
8369 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8370 (darwin_xfer_partial): Likewise.
8371 * exec.c (exec_xfer_partial): Likewise.
8372 * gnu-nat.c (gnu_xfer_partial): Likewise.
8373 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8374 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8375 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8376 * linux-nat.c (linux_xfer_siginfo): Likewise.
8377 (linux_proc_xfer_spu): Likewise.
8378 * procfs.c (procfs_xfer_partial): Likewise.
8379 * record-full.c (record_full_xfer_partial): Likewise.
8380 (record_full_core_xfer_partial): Likewise.
8381 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8382 * remote.c (remote_write_qxfer): Likewise.
8383 (remote_write_qxfer, remote_read_qxfer): Likewise.
8384 (remote_xfer_partial): Likewise.
8385 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8386 (rs6000_xfer_shared_libraries): Likewise.
8387 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8388 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8389 (spu_xfer_partial): Likewise.
8390 * target.c (memory_xfer_partial_1): Likewise.
8391 * tracepoint.c (tfile_xfer_partial): Likewise.
8392 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8393 (windows_xfer_partial): Likewise.
8395 2014-02-07 Yao Qi <yao@codesourcery.com>
8397 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8399 (core_xfer_shared_libraries_aix): Likewise.
8400 * gdbarch.c, gdbarch.h: Regenerated.
8401 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8402 ULONGEST. Change 'len_avail' type to ULONGEST.
8403 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8404 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8406 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8408 2014-02-07 Yao Qi <yao@codesourcery.com>
8410 * corefile.c (memory_error): Get 'exception' from ERR and pass
8411 'exception' to throw_error.
8413 2014-02-06 Doug Evans <xdje42@gmail.com>
8415 * configure.ac (libpython checking): Remove all but python.o from
8416 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8417 * configure: Regenerate.
8419 * Makefile.in (SFILES): Add extension.c.
8420 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8421 (COMMON_OBS): Add extension.o.
8422 * extension.h: New file.
8423 * extension-priv.h: New file.
8424 * extension.c: New file.
8426 * python/python-internal.h: #include "extension.h".
8427 (gdbpy_auto_load_enabled): Declare.
8428 (gdbpy_apply_val_pretty_printer): Declare.
8429 (gdbpy_apply_frame_filter): Declare.
8430 (gdbpy_preserve_values): Declare.
8431 (gdbpy_breakpoint_cond_says_stop): Declare.
8432 (gdbpy_breakpoint_has_cond): Declare.
8433 (void source_python_script_for_objfile): Delete.
8434 * python/python.c: #include "extension-priv.h".
8435 Delete inclusion of "observer.h".
8436 (extension_language_python): Moved here and renamed from
8437 script_language_python in py-auto-load.c.
8438 Redefined to be of type extension_language_defn.
8439 (python_extension_script_ops): New global.
8440 (python_extension_ops): New global.
8441 (struct python_env): New member previous_active.
8442 (restore_python_env): Call restore_active_ext_lang.
8443 (ensure_python_env): Call set_active_ext_lang.
8444 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8446 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8448 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8450 (gdbpy_eval_from_control_command): Renamed from
8451 eval_python_from_control_command, made static. New arg extlang.
8452 (gdbpy_source_script) Renamed from source_python_script, made static.
8454 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8455 result to int. New arg extlang.
8456 (gdbpy_source_objfile_script): Renamed from
8457 source_python_script_for_objfile, made static. New arg extlang.
8458 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8459 static. New args extlang, extlang_printers. Change result type to
8461 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8462 static. New arg extlang. Rename arg printers to extlang_printers
8463 and change type to ext_lang_type_printers *.
8464 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8465 static. Replace argument arg with extlang, extlang_printers.
8466 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8467 (!HAVE_PYTHON, source_python_script): Delete.
8468 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8469 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8470 (!HAVE_PYTHON, start_type_printers): Delete.
8471 (!HAVE_PYTHON, apply_type_printers): Delete.
8472 (!HAVE_PYTHON, free_type_printers): Delete.
8473 (_initialize_python): Delete call to observer_attach_before_prompt.
8474 (finalize_python): Set/restore active extension language.
8475 (gdbpy_finish_initialization) Renamed from
8476 finish_python_initialization, made static. New arg extlang.
8477 (gdbpy_initialized): New function.
8478 * python/python.h: #include "extension.h". Delete #include
8479 "value.h", "mi/mi-cmds.h".
8480 (extension_language_python): Declare.
8481 (GDBPY_AUTO_FILE_NAME): Delete.
8482 (enum py_bt_status): Moved to extension.h and renamed to
8484 (enum frame_filter_flags): Moved to extension.h.
8485 (enum py_frame_args): Moved to extension.h and renamed to
8486 ext_lang_frame_args.
8487 (finish_python_initialization): Delete.
8488 (eval_python_from_control_command): Delete.
8489 (source_python_script): Delete.
8490 (apply_val_pretty_printer): Delete.
8491 (apply_frame_filter): Delete.
8492 (preserve_python_values): Delete.
8493 (gdbpy_script_language_defn): Delete.
8494 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8495 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8497 * auto-load.c: #include "extension.h".
8498 (GDB_AUTO_FILE_NAME): Delete.
8499 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8500 (script_language_gdb): Delete, moved to extension.c and renamed to
8501 extension_language_gdb.
8502 (source_gdb_script_for_objfile): Delete.
8503 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8504 (loaded_script): Change type of language member to
8505 struct extension_language_defn *.
8506 (init_loaded_scripts_info): Initialize
8507 unsupported_script_warning_printed.
8508 (maybe_add_script): Make static. Change type of language arg to
8509 struct extension_language_defn *.
8510 (clear_section_scripts): Reset unsupported_script_warning_printed.
8511 (auto_load_objfile_script_1): Rewrite to use extension language API.
8512 (auto_load_objfile_script): Make public. Remove support-compiled-in
8513 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8514 (source_section_scripts): Rewrite to use extension language API.
8515 (load_auto_scripts_for_objfile): Rewrite to use
8516 auto_load_scripts_for_objfile.
8517 (collect_matching_scripts_data): Change type of language member to
8518 struct extension_language_defn *.
8519 (auto_load_info_scripts): Change type of language arg to
8520 struct extension_language_defn *.
8521 (unsupported_script_warning_print): New function.
8522 (script_not_found_warning_print): Make static.
8523 (_initialize_auto_load): Rewrite construction of scripts-directory
8525 * auto-load.h (struct objfile): Add forward decl.
8526 (struct script_language): Delete.
8527 (struct auto_load_pspace_info): Add forward decl.
8528 (struct extension_language_defn): Add forward decl.
8529 (maybe_add_script): Delete.
8530 (auto_load_objfile_script): Declare.
8531 (script_not_found_warning_print): Delete.
8532 (auto_load_info_scripts): Update prototype.
8533 (auto_load_gdb_scripts_enabled): Declare.
8534 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8535 auto_load_python_scripts_enabled and made public.
8536 (script_language_python): Delete, moved to python.c.
8537 (gdbpy_script_language_defn): Delete.
8538 (info_auto_load_python_scripts): Update to use
8539 extension_language_python.
8541 * breakpoint.c (condition_command): Replace call to
8542 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8543 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8544 with call to breakpoint_ext_lang_cond_says_stop.
8545 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8546 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8547 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8548 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8550 (local_setattro): Print name of extension language with existing
8553 * valprint.c (val_print, value_print): Update to call
8554 apply_ext_lang_val_pretty_printer.
8555 * cp-valprint.c (cp_print_value): Update call to
8556 apply_ext_lang_val_pretty_printer.
8557 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8558 (gdbpy_apply_val_pretty_printer): Renamed from
8559 apply_val_pretty_printer. New arg extlang.
8560 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8562 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8563 extension language API.
8564 * cli/cli-script.c (execute_control_command): Update to call
8565 eval_ext_lang_from_control_command.
8567 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8568 enum ext_lang_bt_status values. Update call to
8569 apply_ext_lang_frame_filter.
8570 (mi_cmd_stack_list_locals): Ditto.
8571 (mi_cmd_stack_list_args): Ditto.
8572 (mi_cmd_stack_list_variables): Ditto.
8573 * mi/mi-main.c: Delete #include "python/python-internal.h".
8574 Add #include "extension.h".
8575 (mi_cmd_list_features): Replace reference to python internal variable
8576 gdb_python_initialized with call to ext_lang_initialized_p.
8578 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8579 Update to use enum ext_lang_frame_args. Update to call
8580 apply_ext_lang_frame_filter.
8581 * python/py-framefilter.c (extract_sym): Update to use enum
8583 (extract_value, py_print_type, py_print_value): Ditto.
8584 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8585 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8586 (py_print_frame): Ditto.
8587 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8588 New arg extlang. Update to use enum ext_lang_bt_status.
8590 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8591 finish_python_initialization. Replace with call to
8592 finish_ext_lang_initialization.
8594 * typeprint.c (do_free_global_table): Update to call
8595 free_ext_lang_type_printers.
8596 (create_global_typedef_table): Update to call
8597 start_ext_lang_type_printers.
8598 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8599 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8600 (type_print_options): Change type of global_printers from "void *"
8601 to "struct ext_lang_type_printers *".
8603 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8604 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8605 (gdbpy_preserve_values): Renamed from preserve_python_values.
8607 (!HAVE_PYTHON, preserve_python_values): Delete.
8609 * utils.c (quit_flag): Delete, moved to extension.c.
8610 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8613 * eval.c: Delete #include "python/python.h".
8614 * main.c: Delete #include "python/python.h".
8616 * defs.h: Update comment.
8618 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8622 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8624 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8627 2014-02-05 Yao Qi <yao@codesourcery.com>
8629 * remote.c (remote_pass_signals): Remove local 'buf' and use
8631 (remote_program_signals): Likewise.
8633 2014-02-05 Yao Qi <yao@codesourcery.com>
8635 * ctf.c: Include "inferior.h" and "gdbthread.h".
8636 (CTF_PID): A new macro.
8637 (ctf_open): Call inferior_appeared and add_thread_silent.
8638 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8639 (ctf_thread_alive): New function.
8640 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8642 2014-02-05 Yao Qi <yao@codesourcery.com>
8646 2013-05-24 Yao Qi <yao@codesourcery.com>
8648 * tracepoint.c (TFILE_PID): Remove.
8649 (tfile_open): Don't add thread and inferior.
8650 (tfile_close): Don't set 'inferior_ptid'. Don't call
8651 exit_inferior_silent.
8652 (tfile_thread_alive): Remove.
8653 (init_tfile_ops): Don't set field 'to_thread_alive' of
8656 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8658 * remote.c (remote_start_remote): Call remote_check_symbols even
8659 if only symbol-file (not file) has been given.
8661 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8663 * gdbarch.sh (skip_entrypoint): New callback.
8664 * gdbarch.c, gdbarch.h: Regenerate.
8665 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8666 * infrun.c (fill_in_stop_func): Likewise.
8667 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8668 (ppc_elfv2_elf_make_msymbol_special): New function.
8669 (ppc_elfv2_skip_entrypoint): Likewise.
8670 (ppc_linux_init_abi): Install them for ELFv2.
8672 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8674 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8675 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8676 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8677 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8678 structures returned in GPRs.
8680 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8682 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8683 offset to the stack parameter list for the ELFv2 ABI.
8685 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8687 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8688 set_gdbarch_convert_from_func_ptr_addr and
8689 set_gdbarch_elf_make_msymbol_special for ELFv1.
8690 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8691 function descriptors on ELFv1.
8692 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8693 set up r12 at function entry.
8695 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8697 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8698 (struct gdbarch_tdep): New member elf_abi.
8700 * rs6000-tdep.c: Include "elf/ppc64.h".
8701 (rs6000_gdbarch_init): Detect ELF ABI version.
8703 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8705 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8706 within a register pair holding a DFP 128-bit value on little-endian.
8707 (ppc64_sysv_abi_return_value_base): Likewise.
8708 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8709 (dfp_pseudo_register_write): Likewise.
8711 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8713 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8714 offset on little-endian when passing _Decimal32.
8715 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8717 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8719 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8720 of the overlapped FP register within the VSX register on little-
8722 (efpr_pseudo_register_write): Likewise.
8724 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8726 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8727 offset on little-endian when passing small structures.
8729 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8731 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8732 (struct ppc64_sysv_argpos): New data structure.
8733 (ppc64_sysv_abi_push_float): Remove.
8734 (ppc64_sysv_abi_push_val): New function.
8735 (ppc64_sysv_abi_push_integer): Likewise.
8736 (ppc64_sysv_abi_push_freg): Likewise.
8737 (ppc64_sysv_abi_push_vreg): Likewise.
8738 (ppc64_sysv_abi_push_param): Likewise.
8739 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8740 (ppc64_sysv_abi_return_value_base): New function.
8741 (ppc64_sysv_abi_return_value): Refactor to use it.
8743 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8745 * NEWS: Document new target powerpc64le-*-linux*.
8747 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8749 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8750 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8752 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8753 register set used in ELF core dumps. Add floating-point register set.
8755 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8757 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8758 dwarf2_to_gdb[] table using symbolic constants. Adjust
8759 penultimate entry from number representing the PC register
8760 to symbolic constant representing the MDR register. Add
8761 constant for the PC register to the end of the table.
8763 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8765 * bsd-kvm.c: Include <sys/param.h>
8767 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8769 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8771 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8773 * ada-lang.h (clear_ada_sym_cache): Delete.
8775 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8777 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8779 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8781 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8782 the sigreturn register save area only if the syscall is
8785 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8787 * valops.c (value_slice): Minor reformatting.
8789 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8791 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8793 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8795 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8797 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8798 (ada_ignore_descriptive_types_p): New static global.
8799 (find_parallel_type_by_descriptive_type): Return immediately
8800 if ada_ignore_descriptive_types_p is set.
8801 (_initialize_ada_language): Register new commands "maintenance
8802 set ada", "maintenance show ada", "maintenance set ada
8803 ignore-descriptive-types" and "maintenance show ada
8804 ignore-descriptive-types".
8805 * NEWS: Add entry for new "maint ada set/show
8806 ignore-descriptive-types" commands.
8808 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8810 * record-btrace.c (record_btrace_close): Call btrace_teardown
8813 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8815 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8818 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8820 * ada-typeprint (type_is_full_subrange_of_target_type):
8822 (print_range): Add parameter bounds_prefered_p. If not set,
8823 try printing range types using the name of their base type.
8824 (print_range_type): Add parameter bounds_prefered_p.
8825 Use it in call to print_range.
8826 (print_array_type, ada_print_type): Update calls to print_range
8827 and print_range_type.
8829 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8831 * ada-typeprint.c (print_array_type, print_choices, print_range)
8832 (print_range_bound, print_dynamic_range_bound, print_range_type):
8835 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8837 * ada-typeprint.c (print_range): Add missing empty line
8838 after local declaration.
8840 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8842 * ada-valprint.c (print_optional_low_bound): Get index_type's
8843 target type for as long as it is a TYPE_CODE_RANGE.
8845 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8847 * procfs.c (procfs_make_note_section): Remove assertion and
8850 2014-01-24 Yao Qi <yao@codesourcery.com>
8852 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8853 * corelow.c (get_core_siginfo): Likewise.
8855 2014-01-24 Yao Qi <yao@codesourcery.com>
8857 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8858 ULONGEST. Don't check 'len' is negative.
8859 (remote_write_bytes): Change type of 'len' to ULONGEST.
8861 2014-01-23 Tom Tromey <tromey@redhat.com>
8864 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8865 Handle exception from frame.block.
8866 (FrameVars.fetch_frame_locals): Likewise.
8868 2014-01-23 Tom Tromey <tromey@redhat.com>
8871 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8872 on a NULL pointer. Move "goto error" to correct place.
8874 2014-01-23 Tom Tromey <tromey@redhat.com>
8877 * python/py-framefilter.c (apply_frame_filter): Call
8878 ensure_python_env after computing gdbarch.
8880 2014-01-23 Yao Qi <yao@codesourcery.com>
8882 * target.c (raw_memory_xfer_partial): Change argument type
8883 from void * to gdb_byte *.
8884 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8886 2014-01-22 Doug Evans <dje@google.com>
8888 New gdbserver option --debug-format=timestamp.
8891 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8893 * syscalls/s390x-linux.xml: New file.
8894 * syscalls/s390-linux.xml: New file.
8895 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8896 (XML_SYSCALL_FILENAME_S390X): Likewise.
8897 (op_svc): New enum value for SVC opcode.
8898 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8899 (s390_linux_get_syscall_number): New function.
8900 (s390_gdbarch_init): Register '*get_syscall_number' and the
8901 syscall xml file name.
8902 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8903 "s390-linux.xml" and "s390x-linux.xml".
8904 * NEWS: Announce new feature.
8906 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8908 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8910 2014-01-22 Pedro Alves <palves@redhat.com>
8912 * xtensa-config.c: Include defs.h.
8914 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8916 * common/common-utils.h: Add "ARI:" comment beside __func__
8919 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8921 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8922 documentation a bit.
8924 2014-01-21 Roland McGrath <mcgrathr@google.com>
8926 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8927 * configure: Regenerate.
8928 * aclocal.m4: Regenerate.
8929 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8930 New substituted variables.
8931 (install-strip): New target.
8932 (INSTALL_SCRIPT): New substituted variable.
8933 (FLAGS_TO_PASS): Add it.
8934 (install-only): Use $(INSTALL_SCRIPT) rather than
8935 $(INSTALL_PROGRAM) for gcore.
8937 2014-01-20 Tom Tromey <tromey@redhat.com>
8939 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8942 2014-01-20 Tom Tromey <tromey@redhat.com>
8944 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8945 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8946 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8947 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8948 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8949 (struct cmd_list_element) <flags>: Remove.
8950 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8951 doc_allocated>: New fields.
8952 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8954 * maint.c (maintenance_do_deprecate): Update.
8955 * top.c (execute_command): Update.
8957 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8959 * xtensa-linux-nat.c: Include asm/ptrace.h.
8961 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8963 * Makefile.in (SFILES): Add d-support.c.
8964 (COMMON_OBS): Add d-support.o.
8965 * d-lang.h (d_parse_symbol): Add comment, now defined in
8967 * d-lang.c (parse_call_convention)
8968 (parse_attributes, parse_function_types)
8969 (parse_function_args, parse_type, parse_identifier)
8970 (call_convention_p, d_parse_symbol): Move functions to ...
8971 * d-support.c: ... New file.
8973 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8975 * d-lang.h (d_parse_symbol): Add declaration.
8976 * d-lang.c (extract_identifiers)
8977 (extract_type_info): Remove functions.
8978 (parse_call_convention, parse_attributes)
8979 (parse_function_types, parse_function_args)
8980 (parse_type, parse_identifier, call_convention_p)
8981 (d_parse_symbol): New functions.
8982 (d_demangle): Use d_parse_symbol to demangle D symbols.
8984 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8986 * d-lang.h (struct builtin_d_type): New data type.
8987 (builtin_d_type): Add declaration.
8988 * d-lang.c (d_language_arch_info, build_d_types)
8989 (builtin_d_type): New functions.
8990 (enum d_primitive_types): New data type.
8991 (d_language_defn): Change c_language_arch_info to
8992 d_language_arch_info.
8993 (d_type_data): New static variable.
8994 (_initialize_d_language): Initialize d_type_data.
8996 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8998 * d-lang.h (d_main_name): Add declaration.
8999 * d-lang.c (d_main_name): New function.
9000 * symtab.c (find_main_name): Add call to d_main_name.
9002 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9004 * d-lang.c (d_language_defn): Change macro_expansion_c to
9007 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9009 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9011 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9013 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9014 gdb_exception" declaration.
9015 * remote.c (getpkt_or_notif_sane): Likewise.
9017 2014-01-17 Doug Evans <dje@google.com>
9019 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9020 function, contents of dirnames_to_char_ptr_vec_append moved here.
9021 (delim_string_to_char_ptr_vec): New function.
9022 (dirnames_to_char_ptr_vec_append): Rewrite.
9023 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9025 2014-01-17 Doug Evans <dje@google.com>
9027 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9029 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9030 #include "common-utils.h".
9031 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9032 * common/vec.h (VEC_ASSERT_PASS): Update.
9033 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9034 (MACH_CHECK_ERROR): Update.
9036 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9038 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9040 * gdbarch.h: Regenerate.
9042 2014-01-16 Tom Tromey <tromey@redhat.com>
9044 * value.c (struct value) <regnum>: Move earlier.
9046 2014-01-16 Tom Tromey <tromey@redhat.com>
9048 * remote.c (extended_remote_create_inferior): Rename from
9049 extended_remote_create_inferior_1. Add "ops" argument. Remove
9052 2014-01-16 Pedro Alves <palves@redhat.com>
9054 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9055 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9058 2014-01-16 Doug Evans <dje@google.com>
9060 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9062 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9064 * btrace.h (btrace_thread_flag): New.
9065 (struct btrace_thread_info) <flags>: New.
9066 * record-btrace.c (record_btrace_resume_thread)
9067 (record_btrace_find_thread_to_move, btrace_step_no_history)
9068 (btrace_step_stopped, record_btrace_start_replaying)
9069 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9070 (record_btrace_find_resume_thread): New.
9071 (record_btrace_resume, record_btrace_wait): Extend.
9072 (record_btrace_can_execute_reverse): New.
9073 (record_btrace_open): Fail in non-stop mode.
9074 (record_btrace_set_replay): Split into this, ...
9075 (record_btrace_stop_replaying): ... this, ...
9076 (record_btrace_clear_histories): ... and this.
9077 (init_record_btrace_ops): Init to_can_execute_reverse.
9078 * NEWS: Announce it.
9080 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9082 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9083 (forward_target_decr_pc_after_break)
9084 (target_decr_pc_after_break): New.
9085 * target.c (forward_target_decr_pc_after_break)
9086 (target_decr_pc_after_break): New.
9087 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9088 instead of gdbarch_decr_pc_after_break.
9089 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9090 instead of gdbarch_decr_pc_after_break.
9091 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9092 instead of gdbarch_decr_pc_after_break.
9093 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9094 instead of gdbarch_decr_pc_after_break.
9095 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9096 instead of gdbarch_decr_pc_after_break.
9097 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9098 instead of gdbarch_decr_pc_after_break.
9100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9102 * btrace.c: Include regcache.h.
9103 (btrace_add_pc): New.
9104 (btrace_enable): Call btrace_add_pc.
9105 (btrace_is_empty): New.
9106 * btrace.h (btrace_is_empty): New.
9107 * record-btrace.c (require_btrace, record_btrace_info): Call
9110 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9112 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9113 Support delta reads.
9114 (linux_disable_btrace): Change return type.
9115 * common/linux-btrace.h (linux_read_btrace): Change parameters
9116 and return type to allow error reporting. Update users.
9117 (linux_disable_btrace): Change return type. Update users.
9118 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9120 (btrace_error): New.
9121 (btrace_block) <begin>: Comment on BEGIN == 0.
9122 * btrace.c (btrace_compute_ftrace): Start from the end of
9124 (btrace_stitch_trace, btrace_clear_history): New.
9125 (btrace_fetch): Read delta trace, return if replaying.
9126 (btrace_clear): Move clear history code to btrace_clear_history.
9127 (parse_xml_btrace): Throw an error if parsing failed.
9128 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9129 and return type to allow error reporting.
9130 (target_read_btrace): Change parameters and return type to allow
9132 * target.c (target_read_btrace): Update.
9133 * remote.c (remote_read_btrace): Support delta reads. Pass
9135 * NEWS: Announce it.
9137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9139 * record.h (record_btrace_frame_unwind)
9140 (record_btrace_tailcall_frame_unwind): New declarations.
9141 * dwarf2-frame: Include record.h
9142 (dwarf2_frame_cfa): Throw an error for btrace frames.
9143 * record-btrace.c: Include hashtab.h.
9144 (btrace_get_bfun_name): New.
9145 (btrace_call_history): Call btrace_get_bfun_name.
9146 (struct btrace_frame_cache): New.
9148 (bfcache_hash, bfcache_eq, bfcache_new): New.
9149 (btrace_get_frame_function): New.
9150 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9151 (record_btrace_frame_this_id): Compute own id.
9152 (record_btrace_frame_prev_register): Provide PC, throw_error
9153 for all other registers.
9154 (record_btrace_frame_sniffer): Detect btrace frames.
9155 (record_btrace_tailcall_frame_sniffer): New.
9156 (record_btrace_frame_dealloc_cache): New.
9157 (record_btrace_frame_unwind): Add new functions.
9158 (record_btrace_tailcall_frame_unwind): New.
9159 (_initialize_record_btrace): Allocate cache.
9160 * btrace.c (btrace_clear): Call reinit_frame_cache.
9161 * NEWS: Announce it.
9163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9165 * record-btrace.c (record_btrace_set_replay)
9166 (record_btrace_goto_begin, record_btrace_goto_end)
9167 (record_btrace_goto): New.
9168 (init_record_btrace_ops): Initialize them.
9169 * NEWS: Announce it.
9171 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9173 * record-btrace.c (record_btrace_find_new_threads)
9174 (record_btrace_thread_alive): New.
9175 (init_record_btrace_ops): Initialize to_find_new_threads and
9178 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9180 * record-btrace.c (record_btrace_resume): New.
9181 (record_btrace_wait): New.
9182 (init_record_btrace_ops): Initialize to_wait and to_resume.
9184 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9186 * record-btrace.c (record_btrace_xfer_partial)
9187 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9188 (record_btrace_allow_memory_access): New.
9189 (init_record_btrace_ops): Initialize new methods.
9190 * target.c (raw_memory_xfer_partial): Bail out if target reports
9191 that this memory is not available.
9193 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9195 * target.h (target_ops) <to_insert_breakpoint>
9196 <to_remove_breakpoint>: Add target_ops parameter.
9197 (forward_target_insert_breakpoint): New.
9198 (forward_target_remove_breakpoint): New.
9199 (memory_remove_breakpoint, memory_insert_breakpoint):
9200 Add target_ops parameter.
9201 * target.c (target_insert_breakpoint): Split into this and ...
9202 (forward_target_insert_breakpoint): ... this.
9203 (target_remove_breakpoint): Split into this and ...
9204 (forward_target_remove_breakpoint): ... this.
9205 (debug_to_insert_breakpoint): Add target_ops parameter.
9206 Call forward_target_insert_breakpoint.
9207 (debug_to_remove_breakpoint): Add target_ops parameter.
9208 Call forward_target_remove_breakpoint.
9209 (update_current_target): Do not inherit or default to_insert_breakpoint
9210 and to_remove_breakpoint.
9211 * corelow.c (ignore): Add target_ops parameter.
9212 * exec.c (ignore): Add target_ops parameter.
9213 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9214 Add target_ops parameter.
9215 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9216 Add target_ops parameter.
9217 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9218 Add target_ops parameter.
9219 * record-full.c (record_full_beneath_to_insert_breakpoint)
9220 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9221 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9222 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9223 (record_full_core_remove_breakpoint): Add target_ops parameter.
9225 (record_full_beneath_to_insert_breakpoint_ops)
9226 (record_full_beneath_to_remove_breakpoint_ops)
9227 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9228 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9229 tmp_to_remove_breakpoint_ops,
9230 record_full_beneath_to_insert_breakpoint_ops, and
9231 record_full_beneath_to_remove_breakpoint_ops.
9232 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9233 (m32r_remove_breakpoint): Add target_ops parameter.
9234 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9235 Add target_ops parameter.
9236 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9237 Add target_ops parameter.
9239 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9240 Markus Metzger <markus.t.metzger@intel.com>
9242 * record-btrace.c: Include frame-unwind.h.
9243 (record_btrace_frame_unwind_stop_reason)
9244 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9245 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9247 (init_record_btrace_ops): Install it.
9249 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9251 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9254 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9256 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9259 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9261 * frame-unwind.c: Include target.h.
9262 (frame_unwind_try_unwinder): New function with code from ...
9263 (frame_unwind_find_by_frame): ... here. New variable
9264 unwinder_from_target, call also target_get_unwinder)
9265 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9266 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9267 * target.h (struct target_ops): New fields to_get_unwinder and
9268 to_get_tailcall_unwinder.
9269 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9273 * record-btrace.c (record_btrace_fetch_registers)
9274 (record_btrace_store_registers)
9275 (record_btrace_to_prepare_to_store): New.
9276 (init_record_btrace_ops): Add the above.
9278 2014-01-16 Tom Tromey <tromey@redhat.com>
9280 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9281 * target.h (struct target_ops) <to_prepare_to_store>: Add
9283 (target_prepare_to_store): Add argument.
9284 * target.c (debug_to_prepare_to_store): Add argument.
9285 (update_current_target): Update.
9286 * remote.c (remote_prepare_to_store): Add 'self' argument.
9287 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9288 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9289 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9290 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9292 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9293 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9294 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9295 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9296 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9300 * btrace.h (replay) <replay>: New.
9301 (btrace_is_replaying): New.
9302 * btrace.c (btrace_clear): Free replay iterator.
9303 (btrace_is_replaying): New.
9304 * record-btrace.c (record_btrace_is_replaying): New.
9305 (record_btrace_info): Print insn number if replaying.
9306 (record_btrace_insn_history): Start at replay position.
9307 (record_btrace_call_history): Start at replay position.
9308 (init_record_btrace_ops): Init to_record_is_replaying.
9310 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9312 * record-btrace.c (record_btrace_insn_history_range): Include
9314 (record_btrace_insn_history_from): Adjust range.
9315 (record_btrace_call_history_range): Include
9317 (record_btrace_call_history_from): Adjust range.
9318 * NEWS: Announce changes.
9320 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9322 * record.h (enum record_print_flag)
9323 <record_print_indent_calls>: New.
9324 * record.c (get_call_history_modifiers): Recognize /c modifier.
9325 (_initialize_record): Document /c modifier.
9326 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9327 Reorder fields. Optionally indent the function name. Update
9329 * NEWS: Announce changes.
9331 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9333 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9337 * btrace.c (ftrace_new_function): Start counting at one.
9338 * record-btrace.c (record_btrace_info): Adjust number of calls
9340 * NEWS: Announce it.
9342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9344 * record-btrace.c (btrace_call_history_insn_range): Print
9345 insn range as [begin, end].
9347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9349 * btrace.h (struct btrace_func_link): New.
9350 (enum btrace_function_flag): New.
9351 (struct btrace_inst): Rename to ...
9352 (struct btrace_insn): ...this. Update all users.
9353 (struct btrace_func) <ibegin, iend>: Remove.
9354 (struct btrace_func_link): New.
9355 (struct btrace_func): Rename to ...
9356 (struct btrace_function): ...this. Update all users.
9357 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9358 (number, level, flags>: New.
9359 (struct btrace_insn_iterator): Rename to ...
9360 (struct btrace_insn_history): ...this.
9362 (struct btrace_insn_iterator, btrace_call_iterator): New.
9363 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9364 (struct btrace_target_info) <begin, end, level>
9365 <insn_history, call_history>: New.
9366 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9367 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9368 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9369 (btrace_call_number, btrace_call_begin, btrace_call_end)
9370 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9371 (btrace_find_function_by_number, btrace_set_insn_history)
9372 (btrace_set_call_history): New.
9373 * btrace.c (btrace_init_insn_iterator)
9374 (btrace_init_func_iterator, compute_itrace): Remove.
9375 (ftrace_print_function_name, ftrace_print_filename)
9376 (ftrace_skip_file): Change
9378 (ftrace_init_func): Remove.
9379 (ftrace_debug): Use new btrace_function fields.
9380 (ftrace_function_switched): Also consider gaining and
9381 losing symbol information).
9382 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9383 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9384 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9386 (ftrace_new_function): Move. Remove debug print.
9387 (ftrace_update_lines, ftrace_update_insns): New.
9388 (ftrace_update_function): Check for call, ret, and jump.
9389 (compute_ftrace): Renamed to ...
9390 (btrace_compute_ftrace): ...this. Rewritten to compute call
9392 (btrace_fetch, btrace_clear): Updated.
9393 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9394 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9395 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9396 (btrace_call_number, btrace_call_begin, btrace_call_end)
9397 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9398 (btrace_find_function_by_number, btrace_set_insn_history)
9399 (btrace_set_call_history): New.
9400 * record-btrace.c (require_btrace): Use new btrace thread
9402 (record_btrace_info, btrace_insn_history)
9403 (record_btrace_insn_history, record_btrace_insn_history_range):
9404 Use new btrace thread info fields and new iterator.
9405 (btrace_func_history_src_line): Rename to ...
9406 (btrace_call_history_src_line): ...this. Use new btrace
9408 (btrace_func_history): Rename to ...
9409 (btrace_call_history): ...this. Use new btrace thread info
9410 fields and new iterator.
9411 (record_btrace_call_history, record_btrace_call_history_range):
9412 Use new btrace thread info fields and new iterator.
9414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9416 * frame.h (frame_id_build_unavailable_stack_special): New.
9417 * frame.c (frame_id_build_unavailable_stack_special): New.
9419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9421 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9422 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9423 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9425 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9426 (i386_insn_is_jump, i386_jmp_p): New.
9427 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9428 insn_is_jump to gdbarch.
9429 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9430 * gdbarch.h: Regenerated.
9431 * gdbarch.c: Regenerated.
9432 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9433 (default_insn_is_jump): New.
9434 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9435 (default_insn_is_jump): New.
9437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9439 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9441 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9442 (btrace_read_type) <btrace_read_new>: Change to ...
9443 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9445 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9447 * common/linux-btrace.c (linux_read_btrace): Free trace from
9450 2014-01-15 Doug Evans <dje@google.com>
9452 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9455 2014-01-15 Tom Tromey <tromey@redhat.com>
9457 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9458 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9459 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9460 (set_objfile_main_name): New function.
9461 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9462 language_of_main>: New fields.
9463 (set_objfile_main_name): Declare.
9464 * symtab.c (find_main_name): Loop over objfiles to find the main
9466 (set_main_name): Now static.
9467 (get_main_info): Add comment.
9468 * symtab.h (set_main_name): Don't declare.
9470 2014-01-15 Tom Tromey <tromey@redhat.com>
9472 * symtab.c (main_progspace_key): New global.
9473 (struct main_info): New.
9474 (name_of_main, language_of_main): Remove.
9475 (get_main_info, main_info_cleanup): New function.
9476 (set_main_name, main_name, main_language): Use get_main_info.
9477 (_initialize_symtab): Initialize main_progspace_key.
9479 2014-01-15 Tom Tromey <tromey@redhat.com>
9481 * dbxread.c (process_one_symbol): Update.
9482 * dwarf2read.c (read_partial_die): Update.
9483 * symfile.c (set_initial_language): Call main_language.
9484 * symtab.c (language_of_main): Now static.
9485 (set_main_name): Add 'lang' parameter.
9486 (find_main_name): Update.
9487 (main_language): New function.
9488 (symtab_observer_executable_changed): Update.
9489 * symtab.h (set_main_name): Update.
9490 (language_of_main): Remove.
9491 (main_language): Declare.
9493 2014-01-15 Tom Tromey <tromey@redhat.com>
9495 * symfile.c (init_entry_point_info): Use new "initialized" field.
9497 * objfiles.h (struct entry_point) <initialized>: New field.
9498 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9499 (struct objfile) <ei>: ...here. Remove.
9500 * objfiles.c (entry_point_address_query): Update.
9502 2014-01-15 Tom Tromey <tromey@redhat.com>
9504 * objfiles.c (entry_point_address_query): Relocate entry point
9506 (objfile_relocate1): Do not relocate entry point address.
9507 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9508 <the_bfd_section_index>: New field.
9509 * symfile.c (init_entry_point_info): Find the entry point's
9512 2014-01-15 Tom Tromey <tromey@redhat.com>
9514 * solib-frv.c (enable_break): Use entry_point_address_query.
9516 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9518 * NEWS: Add note on improved process record-replay on
9519 arm*-linux* targets.
9521 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9523 * arm-tdep.c (enum arm_record_result): New enum.
9524 (arm_record_unsupported_insn): New function.
9525 (arm_record_coproc_data_proc): Removed.
9526 (thumb2_record_ld_st_multiple): New function.
9527 (thumb2_record_ld_st_dual_ex_tbb): New function.
9528 (thumb2_record_data_proc_sreg_mimm): New function.
9529 (thumb2_record_ps_dest_generic): New function.
9530 (thumb2_record_branch_misc_cntrl): New function.
9531 (thumb2_record_str_single_data): New function.
9532 (thumb2_record_ld_mem_hints): New function.
9533 (thumb2_record_ld_word): New function.
9534 (thumb2_record_lmul_lmla_div): New function.
9535 (thumb2_record_decode_insn_handler): New function.
9536 (decode_insn): Add thumb32 instruction handlers.
9538 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9540 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9541 (struct arm_linux_record_tdep): Declare.
9542 (arm_canonicalize_syscall): New function.
9543 (arm_all_but_pc_registers_record): New function.
9544 (arm_linux_syscall_record): New function.
9545 (arm_linux_init_abi): Add syscall recording constructs.
9546 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9547 decoding. (arm_record_coproc_data_proc): Update arm syscall
9549 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9550 <arm_syscall_record>: New field.
9551 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9554 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9556 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9557 register for push instruction recording.
9559 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9561 * arm-tdep.c (thumb_record_misc): Update to correct logical
9562 error while recording ldm, ldmia and pop instructions.
9564 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9566 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9568 2014-01-15 Pedro Alves <palves@redhat.com>
9570 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9571 (go32_resume, go32_fetch_registers, store_register)
9572 (go32_store_registers, go32_prepare_to_store)
9573 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9574 (go32_create_inferior, go32_can_run, go32_terminal_init)
9575 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9578 2014-01-15 Tom Tromey <tromey@redhat.com>
9580 * target.h (async_callback_ftype): New typedef.
9581 (struct target_ops) <to_async>: Use it.
9583 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9585 * python/py-value.c (get_field_type): Remove unnecessary curly
9586 braces for single-statement if block.
9588 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9590 * python/py-type.c (convert_field): Add missing empty line
9593 2014-01-14 Doug Evans <dje@google.com>
9595 * symfile.h (expand_symtabs_matching): Renamed from
9596 expand_partial_symbol_names. Update prototype.
9597 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9598 * symfile.c (expand_symtabs_matching): Renamed from
9599 expand_partial_symbol_names. New args file_matcher, kind.
9600 Rename arg fun to symbol_matcher.
9601 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9602 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9603 ada_expand_partial_symbol_name.
9604 (ada_make_symbol_completion_list): Update to call
9605 expand_symtabs_matching.
9606 (ada_add_global_exceptions): Call expand_symtabs_matching.
9607 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9608 call map_symbol_filenames.
9609 * symtab.c (sources_info): Update to call map_symbol_filenames.
9610 (search_symbols): Call expand_symtabs_matching.
9611 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9612 (default_make_symbol_completion_list_break_on): Update to call
9613 expand_symtabs_matching.
9614 (make_source_files_completion_list): Update to call
9615 map_symbol_filenames.
9617 2014-01-14 Doug Evans <dje@google.com>
9619 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9620 (expand_symtabs_symbol_matcher_ftype): New typedef.
9621 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9622 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9623 * symfile.c (expand_partial_symbol_names): Update to use
9624 expand_symtabs_symbol_matcher_ftype.
9625 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9626 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9627 Arg name_matcher renamed to symbol_matcher.
9628 * psymtab.c (recursively_search_psymtabs): Update to use
9629 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9631 (expand_symtabs_matching_via_partial): Update to use
9632 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9633 Arg name_matcher renamed to symbol_matcher.
9635 2014-01-14 Doug Evans <dje@google.com>
9637 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9638 (map_partial_symbol_filenames): Ditto.
9639 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9640 (map_partial_symbol_filenames): Ditto.
9641 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9642 (map_partial_symbol_filenames): Ditto.
9643 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9644 (map_partial_symbol_filenames): Ditto.
9645 * symtab.c: Delete #include "psymtab.h".
9647 2014-01-14 Pedro Alves <palves@redhat.com>
9648 Tom Tromey <tromey@redhat.com>
9650 * infrun.c (use_displaced_stepping): Use find_record_target
9651 instead of RECORD_IS_USED.
9652 (adjust_pc_after_break): Use record_full_is_used instead of
9654 * record-btrace.c (record_btrace_open): Call record_preopen
9655 instead of checking RECORD_IS_USED.
9656 * record-full.c (record_full_shortname)
9657 (record_full_core_shortname): New globals.
9658 (record_full_is_used): New function.
9659 (find_full_open): Call record_preopen instead of checking
9661 (init_record_full_ops): Set the target's shortname to
9662 record_full_shortname.
9663 (init_record_full_core_ops): Set the target's shortname to
9664 record_full_core_shortname.
9665 * record-full.h (record_full_is_used): Declare.
9666 * record.c (find_record_target): Make extern.
9667 (record_preopen): New function.
9668 * record.h (RECORD_IS_USED): Delete macro.
9669 (find_record_target, record_preopen): Declare functions.
9671 2014-01-14 Yao Qi <yao@codesourcery.com>
9673 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9674 'len''s type to ULONGEST.
9675 (core_xfer_shared_libraries_aix): Likewise.
9676 * gdbarch.c, gdbarch.h: Regenerated.
9677 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9678 Change type of 'len' to ULONGEST.
9679 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9680 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9682 2014-01-14 Yao Qi <yao@codesourcery.com>
9684 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9685 type of 'len' to ULONGEST.
9686 (linux_xfer_osdata_processgroups): Likewise.
9687 (linux_xfer_osdata_threads): Likewise.
9688 (linux_xfer_osdata_fds): Likewise.
9689 (linux_xfer_osdata_isockets): Likewise.
9690 (linux_xfer_osdata_shm): Likewise.
9691 (linux_xfer_osdata_sem): Likewise.
9692 (linux_xfer_osdata_msg): Likewise.
9693 (linux_common_xfer_osdata): Likewise.
9694 (struct osdata_type) <getter>: Likewise.
9695 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9698 2014-01-14 Yao Qi <yao@codesourcery.com>
9700 * target.h (target_xfer_partial_ftype): Update.
9701 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9703 * aix-thread.c (aix_thread_xfer_partial): Change type of
9704 argument 'len' to ULONGEST.
9705 * auxv.c (procfs_xfer_auxv): Likewise.
9706 (ld_so_xfer_auxv): Likewise.
9707 (memory_xfer_auxv): Likewise.
9708 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9709 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9710 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9711 * corelow.c (core_xfer_partial): Likewise.
9712 * ctf.c (ctf_xfer_partial): Likewise.
9713 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9715 (darwin_read_dyld_info): Likewise.
9716 (darwin_xfer_partial): Likewise.
9717 * exec.c (section_table_xfer_memory_partial): Likewise.
9718 (exec_xfer_partial): Likewise.
9719 * exec.h (section_table_xfer_memory_partial): Update
9721 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9722 instead of plongest.
9723 (gnu_xfer_partial): Likewise.
9724 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9725 (ia64_hpux_xfer_solib_got): Likewise.
9726 (ia64_hpux_xfer_partial): Likewise.
9727 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9728 * inf-ptrace.c (inf_ptrace_xfer_partial):
9729 * inf-ttrace.c (inf_ttrace_xfer_partial):
9730 * linux-nat.c (linux_xfer_siginfo): Likewise.
9731 (linux_nat_xfer_partial): Likewise.
9732 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9733 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9734 * monitor.c (monitor_xfer_memory): Likewise.
9735 (monitor_xfer_partial): Likewise.
9736 * procfs.c (procfs_xfer_partial): Likewise.
9737 * record-full.c (record_full_xfer_partial): Likewise.
9738 (record_full_core_xfer_partial): Likewise.
9739 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9740 instead of plongest.
9741 (gdbsim_xfer_partial): Likewise.
9742 * remote.c (remote_xfer_partial): Likewise.
9743 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9744 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9746 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9747 (rs6000_xfer_shared_libraries): Likewise.
9748 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9749 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9750 (sparc_xfer_partial): Likewise.
9751 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9752 (spu_xfer_partial): Likewise.
9753 * spu-multiarch.c (spu_xfer_partial): Likewise.
9754 * target.c (target_read_live_memory): Likewise.
9755 (memory_xfer_live_readonly_partial): Likewise.
9756 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9757 (target_xfer_partial, default_xfer_partial): Likewise.
9758 (current_xfer_partial): Likewise.
9759 * tracepoint.c (tfile_xfer_partial): Likewise.
9760 * windows-nat.c (windows_xfer_memory): Likewise. Call
9761 pulongest instead of plongest.
9762 (windows_xfer_partial): Likewise.
9763 (windows_xfer_shared_libraries): Likewise.
9765 2014-01-14 Yao Qi <yao@codesourcery.com>
9767 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9768 target_xfer_partial_ftype.
9770 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9774 * valops.c (value_struct_elt_bitpos): New function
9775 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9776 object to 'None' if the field name is an empty string ("").
9777 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9778 attribute to look for a field when 'name' is 'None'.
9779 (get_field_type): New function
9781 2014-01-13 Doug Evans <dje@google.com>
9784 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9785 (try_open_dwop_file): Ditto.
9786 * gdb_bfd.c: #include "vec.h".
9787 (bfdp): New typedef.
9788 (struct gdb_bfd_data): New member included_bfds.
9789 (gdb_bfd_unref): Unref all included bfds.
9790 (gdb_bfd_record_inclusion): New function.
9791 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9793 2014-01-13 Tom Tromey <tromey@redhat.com>
9795 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9797 2014-01-13 Tom Tromey <tromey@redhat.com>
9799 * defs.h (use_windows): Remove.
9800 * gdb.c (main): Update.
9801 * main.c (captured_main, gdb_main): Update.
9802 * main.h (struct captured_main_args) <use_windows>: Remove.
9803 * top.c (use_windows): Remove.
9805 2014-01-13 Tom Tromey <tromey@redhat.com>
9807 * defs.h (deprecated_flush_hook): Remove.
9809 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9812 * linux-thread-db.c (try_thread_db_load): Add parameter
9813 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9814 (try_thread_db_load_from_pdir_1): Move it there from here.
9815 (try_thread_db_load_from_sdir): Update caller.
9816 (try_thread_db_load_from_dir): Move it there from here.
9818 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9820 * regformats/regdat.sh: Always rewrite the register file.
9822 2014-01-13 Pedro Alves <palves@redhat.com>
9824 * Makefile.in (CHECK_HEADERS): New variable.
9825 (check-headers:): New rule.
9827 2014-01-13 Tom Tromey <tromey@redhat.com>
9829 * cli/cli-setshow.c (do_set_command): Update.
9830 * defs.h (deprecated_set_hook): Remove.
9831 * top.c (deprecated_set_hook): Remove.
9833 2014-01-13 Pedro Alves <palves@redhat.com>
9835 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9836 the tracepoint if the PC is a pseudo-register.
9838 2014-01-13 Tom Tromey <tromey@redhat.com>
9840 * defs.h (XCALLOC): Remove.
9841 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9842 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9843 * dwarf2loc.c (allocate_piece_closure): Likewise.
9844 * elfread.c (elf_symfile_segments): Likewise.
9845 (elf_symfile_segments): Likewise.
9846 * gdbtypes.c (copy_type_recursive): Likewise.
9847 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9848 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9849 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9851 * mt-tdep.c (mt_gdbarch_init): Likewise.
9852 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9854 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9855 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9856 * registry.c (registry_alloc_data): Likewise.
9857 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9858 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9859 * serial.c (serial_fdopen_ops): Likewise.
9860 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9862 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9863 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9866 2014-01-13 Tom Tromey <tromey@redhat.com>
9868 * defs.h (XMALLOC): Remove.
9869 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9870 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9871 * cli-out.c (struct ui_out *): Likewise.
9872 * cli/cli-dump.c (add_dump_command): Likewise.
9873 (add_dump_command): Likewise.
9874 * complaints.c (get_complaints): Likewise.
9875 (find_complaint): Likewise.
9876 * dwarf2-frame.c (execute_cfa_program): Likewise.
9877 * dwarf2read.c (abbrev_table_read_table): Likewise.
9878 * gdbarch.sh: Likewise.
9879 * gdbarch.c: Rebuild.
9880 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9881 * interps.c (interp_new): Likewise.
9882 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9883 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9884 * mi/mi-console.c (mi_console_file_new): Likewise.
9885 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9886 * mi/mi-out.c (mi_out_new): Likewise.
9887 * mi/mi-parse.c (mi_parse): Likewise.
9888 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9889 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9890 * observer.c (xalloc_observer_list_node): Likewise.
9891 * regcache.c (regcache_xmalloc_1): Likewise.
9892 * reggroups.c (reggroup_new): Likewise.
9893 (_initialize_reggroup): Likewise.
9894 * registry.c (register_data_with_cleanup): Likewise.
9895 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9896 * ser-base.c (serial_ttystate): Likewise.
9897 * ser-mingw.c (make_pipe_state): Likewise.
9898 * ser-pipe.c (pipe_open): Likewise.
9899 * serial.c (serial_open): Likewise.
9900 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9901 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9902 (tui_alloc_win_info): Likewise.
9903 (tui_add_content_elements): Likewise.
9904 * tui/tui-file.c (tui_file_new): Likewise.
9905 * tui/tui-out.c (tui_out_new): Likewise.
9906 * ui-file.c (mem_file_new): Likewise.
9907 * ui-out.c (push_level): Likewise.
9908 (make_cleanup_ui_out_end): Likewise.
9909 (append_header_to_list): Likewise.
9910 (ui_out_new): Likewise.
9911 * user-regs.c (user_reg_add_builtin): Likewise.
9913 2014-01-13 Tom Tromey <tromey@redhat.com>
9915 * defs.h (XZALLOC): Remove.
9916 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9917 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9918 (get_ada_tasks_inferior_data): Likewise.
9919 * auto-load.c (get_auto_load_pspace_data): Likewise.
9920 * auxv.c (get_auxv_inferior_data): Likewise.
9921 * bfd-target.c (target_bfd_reopen): Likewise.
9922 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9923 (deprecated_insert_raw_breakpoint): Likewise.
9924 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9925 * corelow.c (core_open): Likewise.
9926 * darwin-nat.c (darwin_check_new_threads): Likewise.
9927 (darwin_attach_pid): Likewise.
9928 * dummy-frame.c (dummy_frame_push): Likewise.
9929 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9930 * dwarf2loc.c (allocate_piece_closure): Likewise.
9931 * elfread.c (elf_symfile_segments): Likewise.
9932 * eval.c (ptrmath_type_p): Likewise.
9933 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9934 * gdbtypes.c (alloc_type_arch): Likewise.
9935 (alloc_type_instance): Likewise.
9936 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9937 * inf-child.c (inf_child_can_use_agent): Likewise.
9938 * inflow.c (get_inflow_inferior_data): Likewise.
9939 * infrun.c (save_infcall_suspend_state): Likewise.
9940 * jit.c (jit_reader_load): Likewise.
9941 (get_jit_objfile_data): Likewise.
9942 (get_jit_program_space_data): Likewise.
9943 (jit_object_open_impl): Likewise.
9944 (jit_symtab_open_impl): Likewise.
9945 (jit_block_open_impl): Likewise.
9946 (jit_frame_sniffer): Likewise.
9947 * linux-fork.c (add_fork): Likewise.
9948 * maint.c (make_command_stats_cleanup): Likewise.
9949 * objfiles.c (get_objfile_pspace_data): Likewise.
9950 * opencl-lang.c (struct lval_closure): Likewise.
9951 * osdata.c (osdata_start_osdata): Likewise.
9952 * progspace.c (new_address_space): Likewise.
9953 (add_program_space): Likewise.
9954 * remote-sim.c (get_sim_inferior_data): Likewise.
9955 * sh-tdep.c (sh_gdbarch_init): Likewise.
9956 * skip.c (Ignore): Likewise.
9957 (skip_delete_command): Likewise.
9958 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9959 (library_list_start_library): Likewise.
9960 (solib_aix_current_sos): Likewise.
9961 * solib-darwin.c (get_darwin_info): Likewise.
9962 (darwin_current_sos): Likewise.
9963 * solib-dsbt.c (get_dsbt_info): Likewise.
9964 * solib-ia64-hpux.c (new_so_list): Likewise.
9965 (ia64_hpux_get_solib_linkage_addr): Likewise.
9966 * solib-spu.c (append_ocl_sos): Likewise.
9967 (spu_current_sos): Likewise.
9968 * solib-svr4.c (get_svr4_info): Likewise.
9969 (svr4_keep_data_in_core): Likewise.
9970 (library_list_start_library): Likewise.
9971 (svr4_default_sos): Likewise.
9972 (svr4_read_so_list): Likewise.
9973 * solib-target.c (library_list_start_library): Likewise.
9974 (solib_target_current_sos): Likewise.
9975 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9976 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9977 * symfile.c (default_symfile_segments): Likewise.
9978 * target-descriptions.c (tdesc_data_init): Likewise.
9979 (tdesc_create_reg): Likewise.
9980 (struct tdesc_type *): Likewise.
9981 (tdesc_create_vector): Likewise.
9982 (tdesc_set_struct_size): Likewise.
9983 (struct tdesc_type *): Likewise.
9984 (tdesc_free_feature): Likewise.
9985 (tdesc_create_feature): Likewise.
9986 * windows-nat.c (windows_add_thread): Likewise.
9987 (windows_make_so): Likewise.
9988 * xml-support.c (gdb_xml_body_text): Likewise.
9989 (gdb_xml_create_parser_and_cleanup): Likewise.
9990 (xml_process_xincludes): Likewise.
9991 * xml-syscall.c (allocate_syscalls_info): Likewise.
9992 (syscall_create_syscall_desc): Likewise.
9994 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9996 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9997 function, with code from i386_stap_parse_special_token.
9998 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9999 (i386_stap_parse_special_token): Move code to the two functions
10000 above; simplify it.
10002 2014-01-09 Pedro Alves <palves@redhat.com>
10003 Hui Zhu <hui@codesourcery.com>
10006 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10007 bp_err_string. Don't mark the location shlib_disabled if the
10008 error thrown wasn't a generic or memory error. Catch errors
10009 thrown while inserting breakpoints in overlayed code. Output
10010 error message of software breakpoints.
10011 * remote.c (remote_insert_breakpoint): If this breakpoint has
10012 target-side commands but this stub doesn't support Z0 packets,
10013 throw NOT_SUPPORTED_ERROR error.
10014 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10015 * target.h (target_insert_breakpoint): Extend comment.
10016 (target_insert_hw_breakpoint): Add comment.
10018 2014-01-08 Pedro Alves <palves@redhat.com>
10020 * remote.c (remote_add_thread): Add threads silently if starting
10022 (remote_notice_new_inferior): If in all-stop, and starting up,
10023 don't call notice_new_inferior.
10024 (get_current_thread): New function, factored out from ...
10025 (add_current_inferior_and_thread): ... this. Adjust.
10026 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10027 found any thread, then select the remote's current thread as GDB's
10028 current thread too.
10030 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10032 * NEWS: Create a new section for the next release branch.
10033 Rename the section of the current branch, now that it has
10036 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10038 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10039 * version.in: Bump version to 7.7.50.DATE-cvs.
10041 2014-01-08 Yao Qi <yao@codesourcery.com>
10043 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10044 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10045 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10047 2014-01-08 Yao Qi <yao@codesourcery.com>
10049 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10050 return value of bfd_get_filename to symbol_file_add_from_bfd.
10052 2014-01-08 Pierre Muller <muller@sourceware.org>
10055 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10056 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10057 to prim_record_mininal_symbol_and_info.
10058 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10059 in call to prim_record_minimal_symbol_and_info.
10060 (read_pe_exported_syms): Set index field of section_data.
10062 2014-01-07 Andrew Pinski <apinski@cavium.com>
10064 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10065 * features/aarch64.c: Regenerate.
10067 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10069 * target.c (return_null): Define.
10070 (update_current_target): Use it instead of return_zero for
10071 functions that return a pointer.
10073 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10075 * source.c (add_path): Fix check for duplicated paths in the previously
10078 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10080 * ada-lang.c: Remove duplicated include statements.
10081 * alphabsd-nat.c: Ditto.
10082 * amd64-darwin-tdep.c: Ditto.
10083 * amd64fbsd-nat.c: Ditto.
10084 * auto-load.c: Ditto.
10086 * breakpoint.c: Ditto.
10087 * dbxread.c: Ditto.
10088 * fork-child.c: Ditto.
10089 * gdb_usleep.c: Ditto.
10090 * i386-darwin-tdep.c: Ditto.
10091 * i386fbsd-nat.c: Ditto.
10093 * inferior.c: Ditto.
10094 * jv-lang.c: Ditto.
10095 * linux-nat.c: Ditto.
10096 * linux-tdep.c: Ditto.
10097 * m68kbsd-nat.c: Ditto.
10098 * m68klinux-nat.c: Ditto.
10099 * microblaze-tdep.c: Ditto.
10100 * mips-linux-tdep.c: Ditto.
10101 * mn10300-tdep.c: Ditto.
10102 * nto-tdep.c: Ditto.
10103 * opencl-lang.c: Ditto.
10105 * printcmd.c: Ditto.
10106 * regcache.c: Ditto.
10107 * remote-m32r-sdi.c: Ditto.
10109 * symfile.c: Ditto.
10111 * tilegx-linux-nat.c: Ditto.
10112 * tilegx-tdep.c: Ditto.
10113 * tracepoint.c: Ditto.
10115 * vaxbsd-nat.c: Ditto.
10116 * windows-nat.c: Ditto.
10117 * xtensa-tdep.c: Ditto.
10119 2014-01-07 Yao Qi <yao@codesourcery.com>
10121 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10123 2014-01-07 Yao Qi <yao@codesourcery.com>
10124 Joel Brobecker <brobecker@adacore.com>
10126 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10127 (pdc_write_regs): Likewise.
10128 (fetch_regs_kernel_thread): Likewise.
10129 (store_regs_kernel_thread): Likewise.
10131 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10133 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10134 tagged type objects to their actual type.
10136 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10138 * ada-valprint.c (print_field_values): Add "language" parameter.
10139 Update calls to print_field_values and print_variant_part.
10140 Pass new parameter "language" in call to val_print instead
10141 of "current_language". Replace call to ada_val_print by call
10143 (print_variant_part): Add "language" parameter.
10144 (ada_val_print_struct_union): Update call to print_field_values.
10146 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10148 * ada-valprint.c (ui_memcpy): Delete.
10149 (ada_print_floating): Update documentation. Add empty line
10150 between between function documentation and implementation.
10151 Delete variable "buffer". Use ui_file_xstrdup in place of
10152 ui_file_put. Minor adjustments following this change.
10154 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10156 * ada-valprint.c (ada_val_print_string): New function,
10157 extracted from ada_val_print_array.
10158 (ada_val_print_array): Replace extracted code by call
10159 to ada_val_print_string followed by a return. Move
10160 "else" branch to the function's top block.
10162 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10164 * ada-valprint.c (ada_val_print_array): Move implementation
10165 down. Rename parameter "offset" and "val" into "offset_aligned"
10166 and "original_value" respectively. Add parameter "offset".
10168 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10170 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10171 re-organizing the code. Change the "???" message printed
10172 when target type is a TYPE_CODE_UNDEF into
10173 "<ref to undefined type>".
10175 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10177 * ada-valprint.c (print_record): Delete, implementation inlined...
10178 (ada_val_print_struct_union): ... here. Remove call to
10179 ada_check_typedef in inlined implementation.
10181 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10183 * ada-valprint.c (ada_val_print_gnat_array): New function,
10184 extracted from ada_val_print_1;
10185 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10186 (ada_val_print_flt, ada_val_print_struct_union)
10187 (ada_val_print_ref): Likewise.
10188 (ada_val_print_1): Delete variables i and elttype.
10189 Replace extracted-out code by call to corresponding
10192 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10194 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10196 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10198 * ada-valprint.c (ada_val_print_1): Replace calls to
10199 ada_val_print_1 by calls to val_print.
10201 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10203 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10204 Update calls to self accordingly. Replace calls to c_val_print
10205 by calls to val_print.
10207 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10209 * ada-valprint.c (print_record): Delete declaration.
10210 (adjust_type_signedness, ada_val_print_1): Likewise.
10211 (ada_val_print): Move function implementation down.
10212 (print_variant_part, print_field_values, print_record):
10213 Move function implementation up.
10215 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10217 * python/py-type.c (typy_get_name): New function.
10218 (type_object_getset): Add entry for attribute "name".
10219 * NEWS: Add entry mentioning this new attribute.
10221 2014-01-07 Yao Qi <yao@codesourcery.com>
10223 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10226 2014-01-07 Yao Qi <yao@codesourcery.com>
10228 * gnu-nat.c (info_port_rights): Add qualifier const to
10231 2014-01-07 Yao Qi <yao@codesourcery.com>
10233 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10235 2014-01-07 Yao Qi <yao@codesourcery.com>
10237 * gnu-nat.c (make_inf) Update declaration.
10238 (make_inf): Make it static.
10239 (inf_set_traced): Likewise.
10240 (inf_port_to_thread, inf_task_died_status): Likewise.
10242 2014-01-07 Yao Qi <yao@codesourcery.com>
10244 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10246 2014-01-07 Yao Qi <yao@codesourcery.com>
10248 * gnu-nat.c (_initialize_gnu_nat): Declare.
10250 2014-01-07 Yao Qi <yao@codesourcery.com>
10252 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10254 (struct gdbarch_info) <byte_order>: Change type to
10256 <byte_order_for_code>: Likewise.
10257 * gdbarch.c, gdbarch.h: Regenerated.
10259 2014-01-06 Sasha Smundak <asmundak@google.com>
10261 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10263 2014-01-06 Tom Tromey <tromey@redhat.com>
10265 * doublest.c (convert_doublest_to_floatformat): Use const, not
10267 * somread.c (som_symtab_read): Likewise.
10269 2014-01-07 Hui Zhu <hui@codesourcery.com>
10271 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10272 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10273 (gdb_bfd_fopen): Ditto.
10274 (gdb_bfd_openr): Ditto.
10275 (gdb_bfd_openw): Ditto.
10276 (gdb_bfd_openr_iovec): Ditto.
10277 (gdb_bfd_fdopenr): Ditto.
10278 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10279 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10281 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10283 * symfile-mem.c (symbol_file_add_from_memory): Removed
10284 gdb_bfd_stash_filename.
10286 2014-01-03 Doug Evans <dje@google.com>
10288 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10291 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10293 Update year range in copyright notice of all files.
10295 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10297 * top.c (print_gdb_version): Set copyright year to 2014.
10299 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10301 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10303 For older changes see ChangeLog-2013.
10309 version-control: never