1 2014-03-20 Pedro Alves <palves@redhat.com>
4 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5 are being stepped over.
6 (breakpoint_address_match): Make extern.
7 * breakpoint.h (breakpoint_address_match): New declaration.
8 * inferior.h (stepping_past_instruction_at): New declaration.
9 * infrun.c (struct step_over_info): New type.
10 (step_over_info): New global.
11 (set_step_over_info, clear_step_over_info)
12 (stepping_past_instruction_at): New functions.
13 (handle_inferior_event): Clear the step-over info when
14 trap_expected is cleared.
15 (resume): Remove now stale comment.
16 (clear_proceed_status): Clear step-over info.
17 (proceed): Adjust step-over handling to set or clear the step-over
18 info instead of removing all breakpoints.
19 (handle_signal_stop): When setting up a thread-hop, don't remove
21 (stop_stepping): Clear step-over info.
22 (keep_going): Adjust step-over handling to set or clear step-over
23 info and then always inserting breakpoints, instead of removing
24 all breakpoints when stepping over one.
26 2014-03-20 Pedro Alves <palves@redhat.com>
28 * infrun.c (previous_inferior_ptid): Adjust comment.
29 (deferred_step_ptid): Delete.
30 (infrun_thread_ptid_changed, prepare_to_proceed)
31 (init_wait_for_inferior): Adjust.
32 (handle_signal_stop): Delete deferred_step_ptid handling.
34 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
37 * defs.h (sync_quit_force_run): New declaration.
38 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
39 * event-top.c (async_sigterm_handler): New declaration.
40 (async_sigterm_token): New variable.
41 (async_init_signals): Create also async_sigterm_token.
42 (async_sigterm_handler): New function.
43 (sync_quit_force_run): New variable.
44 (handle_sigterm): Replace quit_force call by other calls.
45 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
47 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
49 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
50 offset into SPE pseudo registers.
52 2014-03-18 Pedro Alves <palves@redhat.com>
55 * inferior.h (print_stop_event): Declare.
56 * infrun.c (print_stop_event): New, factored out from ...
57 (normal_stop): ... this.
58 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
59 of bpstat_print/print_stack_frame.
61 2014-03-17 Tom Tromey <tromey@redhat.com>
63 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
65 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
67 * ada-lang.c (decode_constrained_packed_array): Perform a
68 minimal coercion for reference with coerce_ref instead of
71 2014-03-17 Tristan Gingold <gingold@adacore.com>
73 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
74 (darwin_solib_create_inferior_hook): Emit a warning if version
77 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
79 * python/py-value.c (get_field_flag): Cast flag_name argument to
80 PyObject_GetAttrString to support Python 2.4.
82 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
84 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
85 (Global Maintainers): Remove Jan Kratochvil.
87 2014-03-14 Pedro Alves <palves@redhat.com>
89 * inferior.h (terminal_ours_for_output): Rename to ...
90 (child_terminal_ours_for_output): ... this.
91 (terminal_save_ours): Rename to ...
92 (child_terminal_save_ours): ... this.
93 (terminal_ours): Rename to ...
94 (child_terminal_ours): ... this.
95 (terminal_inferior): Rename to ...
96 (child_terminal_inferior): ... this.
97 (terminal_init_inferior): Rename to ...
98 (child_terminal_init_inferior): ... this.
99 (terminal_init_inferior_with_pgrp): Rename to ...
100 (child_terminal_init_inferior_with_pgrp): ... this.
101 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
102 (child_terminal_init_with_pgrp): ... this.
103 (terminal_save_ours): Rename to ...
104 (child_terminal_save_ours): ... this.
105 (terminal_init_inferior): Rename to ...
106 (child_terminal_init): ... this. Adjust.
107 (terminal_inferior): Rename to ...
108 (child_terminal_inferior): ... this.
109 (terminal_ours_for_output): Rename to ...
110 (child_terminal_ours_for_output): ... this. Adjust.
111 (terminal_ours): Rename to ...
112 (child_terminal_ours): ... this.
113 (terminal_ours_1): Rename to ...
114 (child_terminal_ours_1): ... this. Adjust.
115 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
116 * windows-nat.c (do_initial_windows_stuff): Adjust.
117 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
118 (gnu_terminal_init): ... this. Adjust.
119 (gnu_target): Adjust.
120 * inf-child.c (inf_child_target): Adjust.
122 2014-03-13 Doug Evans <xdje42@gmail.com>
125 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
128 2014-03-13 Doug Evans <xdje42@gmail.com>
130 * value.c (record_latest_value): Call release_value_or_incref
131 instead of release_value.
133 2014-03-13 Pedro Alves <palves@redhat.com>
135 * procfs.c (procfs_target): Don't override to_shortname,
136 to_longname or to_doc.
138 2014-03-13 Pedro Alves <palves@redhat.com>
140 * inf-child.c (inf_child_open, inf_child_target): Don't mention
141 Unix in user visible strings.
143 2014-03-12 Stan Shebs <stan@codesourcery.com>
145 * gdbtypes.h: Annotate comments for Doxygen, add a page
146 block comment with some general info.
148 2014-03-12 Pedro Alves <palves@redhat.com>
150 * infcmd.c (prepare_execution_command): New function, factored out
151 from several execution commands.
152 (run_command_1, continue_command, step_1, jump_command)
153 (signal_command, until_command, advance_command, finish_command)
154 (attach_command): Use prepare_execution_command.
156 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
158 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
161 (struct arm_linux_thread_points): Removed.
162 (struct arm_linux_process_info): New.
163 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
164 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
165 (arm_linux_find_breakpoints_by_tid): Removed.
166 (struct arch_lwp_info): New.
167 (arm_linux_find_process_pid): New functions.
168 (arm_linux_add_process): New functions.
169 (arm_linux_process_info_get): New functions.
170 (arm_linux_forget_process): New function.
171 (arm_linux_get_debug_reg_state): New function.
172 (struct update_registers_data): New.
173 (update_registers_callback): New function.
174 (arm_linux_insert_hw_breakpoint1): Updated.
175 (arm_linux_remove_hw_breakpoint1): Updated.
176 (arm_linux_insert_hw_breakpoint): Updated.
177 (arm_linux_remove_hw_breakpoint): Updated.
178 (arm_linux_insert_watchpoint): Updated.
179 (arm_linux_remove_watchpoint): Updated.
180 (arm_linux_new_thread): Updated.
181 (arm_linux_prepare_to_resume): New function.
182 (arm_linux_new_fork): New function.
183 (_initialize_arm_linux_nat): Updated.
185 2014-03-12 Pedro Alves <palves@redhat.com>
187 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
189 2014-03-12 Tom Tromey <tromey@redhat.com>
191 * inf-child.c (return_zero): New function.
192 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
193 * aix-thread.c (aix_thread_inferior_created): New function.
194 (aix_thread_attach): Remove.
195 (init_aix_thread_ops): Don't set to_attach.
196 (_initialize_aix_thread): Register inferior_created observer.
197 * corelow.c (init_core_ops): Don't set to_attach or
199 * exec.c (init_exec_ops): Don't set to_attach or
201 * infcmd.c (run_command_1): Use find_run_target. Make direct
203 (attach_command): Use find_attach_target. Make direct target
205 * record-btrace.c (init_record_btrace_ops): Don't set
207 * record-full.c (record_full_can_async_p, record_full_is_async_p):
209 (init_record_full_ops, init_record_full_core_ops): Update. Don't
210 set to_create_inferior.
211 * target.c (complete_target_initialization): Add assertion.
212 (target_create_inferior): Remove.
213 (find_default_attach, find_default_create_inferior): Remove.
214 (find_attach_target, find_run_target): New functions.
215 (find_default_is_async_p, find_default_can_async_p)
216 (target_supports_non_stop, target_attach): Remove.
217 (init_dummy_target): Don't set to_create_inferior or
218 to_supports_non_stop.
219 * target.h (struct target_ops) <to_attach>: Add comment. Remove
221 <to_create_inferior>: Add comment.
222 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
223 TARGET_DEFAULT_RETURN.
224 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
225 (find_attach_target, find_run_target): Declare.
226 (target_create_inferior): Remove.
227 (target_has_execution_1): Update comment.
228 (target_supports_non_stop): Remove.
229 * target-delegates.c: Rebuild.
231 2014-03-12 Pedro Alves <palves@redhat.com>
233 * inf-child.h: Update comment to not mention Unix.
235 2014-03-12 Pedro Alves <palves@redhat.com>
237 * inf-child.c: Update top comment to not mention Unix. Add
238 generic comment describing how this target is meant to be used.
239 (inf_child_post_attach, inf_child_post_startup_inferior)
240 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
243 2014-03-12 Pedro Alves <palves@redhat.com>
245 * nto-procfs.c: Include inf-child.h.
246 (procfs_ops): Delete global.
247 (procfs_can_run): Delete method.
248 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
249 target pointer instead of referencing procfs_ops.
250 (procfs_prepare_to_store): Delete.
251 (init_procfs_ops): Delete function.
252 (procfs_target): New function, based on init_procfs_ops, but
253 inherit inf_child_target.
254 (_initialize_procfs): Use procfs_target.
256 2014-03-12 Pedro Alves <palves@redhat.com>
258 * windows-nat.c: Include inf-child.h.
259 (windows_ops): Delete global.
260 (windows_open, windows_prepare_to_store, windows_can_run): Delete
262 (init_windows_ops): Delete function.
263 (windows_target): New function, based on init_windows_ops, but
264 inherit inf_child_target.
265 (_initialize_windows_nat): Use windows_target. Install x86
266 specific target methods here.
268 2014-03-10 Doug Evans <xdje42@gmail.com>
270 * guile/guile.c (call_initialize_gdb_module): New function.
271 (initialize_guile): Replace call to scm_init_guile with call to
274 2014-03-10 Joel Brobecker <brobecker@adacore.com>
276 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
277 in call to TYPE_CODE macro.
279 2014-03-10 Jerome Guitton <guitton@adacore.com>
281 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
282 Resolve tagged types to full view.
284 2014-03-10 Hui Zhu <hui@codesourcery.com>
286 * target.h (target_insert_breakpoint): Remove "hardware" from its
289 2014-03-07 Doug Evans <dje@google.com>
291 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
293 2014-03-07 Doug Evans <dje@google.com>
295 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
296 Remove unused local comp_dir_attr. Assert exactly one of
297 stub_comp_unit_die, stub_comp_dir is non-NULL.
299 2014-03-07 Joel Brobecker <brobecker@adacore.com>
301 * target.h (complete_target_initialization, add_target):
304 2014-03-07 Pedro Alves <palves@redhat.com>
306 * go32-nat.c: Include inf-child.h.
307 (go32_ops): Delete global.
308 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
310 (go32_create_inferior): Push the passed in target pointer instead
311 of referencing go32_ops.
312 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
313 (go32_target): New function, based on init_go32_ops, but inherit
315 (_initialize_go32_nat): Use go32_target. Move parts of
318 2014-03-06 Joel Brobecker <brobecker@adacore.com>
320 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
321 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
322 SYMBOL_VALUE_ADDRESS.
323 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
325 2014-03-06 Yao Qi <yao@codesourcery.com>
327 * breakpoint.c (get_tracepoint_by_number): Remove argument
328 optional_p. All callers updated. Adjust comments. Update
330 * breakpoint.h (get_tracepoint_by_number): Update declaration.
332 2014-03-06 Yao Qi <yao@codesourcery.com>
334 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
335 early if get_number returns zero. Use 'p' instead of 'args'.
337 2014-03-06 Yao Qi <yao@codesourcery.com>
339 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
342 2014-03-06 Yao Qi <yao@codesourcery.com>
345 * tracepoint.c (check_trace_running): New function.
346 (trace_find_command): Move code to check_trace_running and
347 call check_trace_running.
348 (trace_find_pc_command): Likewise.
349 (trace_find_tracepoint_command): Likewise.
350 (trace_find_line_command): Likewise.
351 (trace_find_range_command): Likewise.
352 * tracepoint.h (check_trace_running): Likewise.
353 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
355 2014-03-06 Yao Qi <yao@codesourcery.com>
357 * target.h (struct target_ops) <to_traceframe_info>: Use
358 TARGET_DEFAULT_NORETURN (tcomplain ()).
359 * target-delegates.c: Regenerated.
361 2014-03-05 Pedro Alves <palves@redhat.com>
364 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
365 void. Update comment.
366 (dcache_xfer_memory): Delete.
367 (dcache_read_memory_partial): New, based on the read bits of
369 (dcache_update): Add status parameter. Use ULONGEST for len, and
370 adjust. Discard cache lines if the reason for the update was
372 * dcache.h (dcache_xfer_memory): Delete declaration.
373 (dcache_read_memory_partial): New declaration.
374 (dcache_update): Update prototype.
375 * target.c (raw_memory_xfer_partial): Update the dcache here.
376 (memory_xfer_partial_1): Don't handle dcache writes here.
378 2014-03-05 Mike Frysinger <vapier@gentoo.org>
380 * remote-sim.c (gdbsim_load): Add const to prog.
382 2014-03-03 Tom Tromey <tromey@redhat.com>
384 * elfread.c (probe_key): Change to bfd_data.
385 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
386 now per-BFD, not per-objfile.
387 * stap-probe.c (stap_probe_destroy): Update comment.
388 (handle_stap_probe): Allocate on the per-BFD obstack.
390 2014-03-03 Tom Tromey <tromey@redhat.com>
392 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
393 * breakpoint.c (create_longjmp_master_breakpoint): Use
395 (add_location_to_breakpoint, bkpt_probe_insert_location)
396 (bkpt_probe_remove_location): Update.
397 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
398 * elfread.c (elf_symfile_relocate_probe): Remove.
399 (elf_probe_fns): Update.
400 (insert_exception_resume_breakpoint): Change type of "probe"
401 parameter to bound_probe.
402 (check_exception_resume): Update.
403 * objfiles.c (objfile_relocate1): Don't relocate probes.
404 * probe.c (bound_probe_s): New typedef.
405 (parse_probes): Use get_probe_address. Set sal's objfile.
406 (find_probe_by_pc): Return a bound_probe.
407 (collect_probes): Return a VEC(bound_probe_s).
408 (compare_probes): Update.
409 (gen_ui_out_table_header_info): Change type of "probes"
411 (info_probes_for_ops): Update.
412 (get_probe_address): New function.
413 (probe_safe_evaluate_at_pc): Update.
414 * probe.h (struct probe_ops) <get_probe_address>: New field.
415 <set_semaphore, clear_semaphore>: Add objfile parameter.
416 (struct probe) <objfile>: Remove field.
418 <address>: Update comment.
419 (struct bound_probe): New.
420 (find_probe_by_pc): Return a bound_probe.
421 (get_probe_address): Declare.
422 * solib-svr4.c (struct probe_and_action) <address>: New field.
423 (hash_probe_and_action, equal_probe_and_action): Update.
424 (register_solib_event_probe): Add address parameter.
425 (solib_event_probe_at): Update.
426 (svr4_create_probe_breakpoints): Add objfile parameter. Use
428 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
429 (stap_get_probe_address): New function.
430 (stap_can_evaluate_probe_arguments, compute_probe_arg)
431 (compile_probe_arg): Update.
432 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
434 (handle_stap_probe): Don't relocate the probe.
435 (stap_relocate): Remove.
436 (stap_gen_info_probes_table_values): Update.
437 (stap_probe_ops): Remove stap_relocate.
438 * symfile-debug.c (debug_sym_relocate_probe): Remove.
439 (debug_sym_probe_fns): Update.
440 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
441 * symtab.c (init_sal): Use memset.
442 * symtab.h (struct symtab_and_line) <objfile>: New field.
443 * tracepoint.c (start_tracing, stop_tracing): Update.
445 2014-03-03 Tom Tromey <tromey@redhat.com>
447 * probe.h (parse_probes, find_probe_by_pc)
448 (find_probes_in_objfile): Fix comments.
450 2014-03-02 Doug Evans <xdje42@gmail.com>
452 * infrun.c (handle_signal_stop): Replace test for
453 TARGET_WAITKIND_STOPPED with an assert.
455 2014-03-02 Doug Evans <xdje42@gmail.com>
457 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
459 2014-03-02 Doug Evans <xdje42@gmail.com>
461 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
463 2014-03-01 Mark Kettenis <kettenis@gnu.org>
465 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
467 2014-03-01 Mark Kettenis <kettenis@gnu.org>
469 * i386obsd-nat.c: Include "obsd-nat.h".
470 (_initialize_i386obsd_nat): Call obsd_add_target instead of
472 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
474 2014-03-01 Mark Kettenis <kettenis@gnu.org>
476 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
478 2014-03-01 Mark Kettenis <kettenis@gnu.org>
480 * mips64obsd-nat.c: Include "obsd-nath".
481 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
483 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
485 2014-03-01 Mark Kettenis <kettenis@gnu.org>
487 * amd64obsd-nat.c: Include "obsd-nat,h.
488 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
490 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
492 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
494 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
495 (find_overload_match): Update call to find_oload_champ.
496 (find_oload_champ_namespace_loop): Likewise
498 2014-02-28 Mark Kettenis <kettenis@gnu.org>
500 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
502 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
503 * config/sparc/obsd64.mh: New file.
504 * sparc64obsd-nat.c: New file.
506 * obsd-nat.h: New file.
507 * obsd-nat.c: New file.
508 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
509 (ALLDEPFILES): Add obsd-nat.c.
511 2014-02-28 Tom Tromey <tromey@redhat.com>
513 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
514 * cli-out.h (cli_ui_out_impl): Now const.
515 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
516 * ui-out.c (struct ui_out) <impl>: Now const.
517 (default_ui_out_impl): Now const.
518 (ui_out_new): Make 'impl' parameter const.
519 * ui-out.h (ui_out_new): Update.
521 2014-02-27 Mark Kettenis <kettenis@gnu.org>
523 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
525 2014-02-27 Mark Kettenis <kettenis@gnu.org>
527 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
529 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
531 Additional PR 8882 fix.
532 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
534 2014-02-27 Pedro Alves <palves@redhat.com>
536 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
539 2014-02-27 Pedro Alves <palves@redhat.com>
542 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
543 * nat/linux-waitpid.c: Include string.h.
544 (status_to_str): Moved here and made extern.
545 * nat/linux-waitpid.h (status_to_str): New declaration.
547 2014-02-27 Hui Zhu <hui@codesourcery.com>
550 * infrun.c (ptid_match): Move ...
551 * common/ptid.c (ptid_match): ... here.
552 * inferior.h (ptid_match): Move ...
553 * common/ptid.h (ptid_match): ... here.
555 2014-02-27 Mark Kettenis <kettenis@gnu.org>
557 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
558 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
561 2014-02-27 Mark Kettenis <kettenis@gnu.org>
563 * obsd-tdep.c (obsd_auxv_parse): New function.
564 (obsd_init_abi): Set auxv_parse.
566 * gdbarch.sh (auxv_parse): New.
567 * gdbarch.h: Regenerated.
568 * gdbarch.c: Regenerated.
569 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
571 2014-02-26 Ludovic Courtès <ludo@gnu.org>
573 * guile/scm-value.c (gdbscm_history_append_x): New function.
574 (value_functions): Add it.
576 2014-02-27 Joel Brobecker <brobecker@adacore.com>
578 * dwarf2read.c (attr_value_as_address): New function.
579 (dwarf2_find_base_address, read_call_site_scope): Use
580 attr_value_as_address in place of DW_ADDR.
581 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
582 the low and high addresses. Slight rework of the handling
583 of the high pc being a constant form, and limit it to
584 DWARF verson 4 or higher.
585 (dwarf2_record_block_ranges): Likewise.
586 (read_partial_die): Likewise.
587 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
589 2014-02-26 Tom Tromey <tromey@redhat.com>
591 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
593 2014-02-26 Tom Tromey <tromey@redhat.com>
595 * elfread.c (elf_read_minimal_symbols): Return early if
596 minimal symbols have already been read. Add "ei" parameter.
597 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
598 * minsyms.c (prim_record_minimal_symbol_full): Update.
599 * objfiles.h (struct objstats) <n_minsyms>: Move...
600 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
601 * symmisc.c (print_objfile_statistics): Update.
603 2014-02-26 Tom Tromey <tromey@redhat.com>
605 * elfread.c (elf_read_minimal_symbols): New function, from
607 (elf_symfile_read): Call it.
609 2014-02-26 Tom Tromey <tromey@redhat.com>
611 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
612 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
613 (lookup_minimal_symbol_solib_trampoline)
614 (lookup_minimal_symbol_by_pc_section_1)
615 (lookup_minimal_symbol_and_objfile): Update.
616 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
617 Don't allocate a minimal symbol if minsyms have already been read.
618 (build_minimal_symbol_hash_tables): Update.
619 (install_minimal_symbols): Do nothing if minsyms already read.
620 Use the per-BFD obstack.
621 (terminate_minimal_symbol_table): Use the per-BFD obstack.
622 * objfiles.c (allocate_objfile): Call
623 terminate_minimal_symbol_table later.
624 (have_minimal_symbols): Update.
625 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
626 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
627 Move from struct objfile.
628 <minsyms_read>: New field.
629 (struct objfile) <msymbols, minimal_symbol_count,
630 msymbol_hash, msymbol_demangled_hash>: Move.
631 (ALL_OBJFILE_MSYMBOLS): Update.
632 * symfile.c (read_symbols): Set minsyms_read.
633 (reread_symbols): Update.
634 * symmisc.c (dump_objfile, dump_msymbols): Update.
636 2014-02-26 Tom Tromey <tromey@redhat.com>
638 * minsyms.c (msymbols_sort): Remove.
639 * minsyms.h (msymbols_sort): Remove.
640 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
641 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
642 * elfread.c (elf_symtab_read): Don't add section offsets.
643 * xcoffread.c (record_minimal_symbol): Don't add section offset
644 to minimal symbol address.
645 * somread.c (text_offset, data_offset): Remove.
646 (som_symtab_read): Don't add section offsets to minimal symbol
648 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
649 Don't add section offsets to minimal symbols.
650 * coffread.c (coff_symtab_read): Don't add section offsets
651 to minimal symbol addresses.
652 * machoread.c (macho_symtab_add_minsym): Don't add section offset
653 to minimal symbol addresses.
654 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
655 section offset to minimal symbol addresses.
656 * mdebugread.c (parse_partial_symbols): Don't add section
657 offset to minimal symbol addresses.
658 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
659 offset to minimal symbol addresses.
661 2014-02-26 Tom Tromey <tromey@redhat.com>
663 * ada-lang.c (ada_main_name): Update.
664 (ada_add_standard_exceptions): Update.
665 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
666 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
667 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
668 * auxv.c (ld_so_xfer_auxv): Update.
669 * avr-tdep.c (avr_scan_prologue): Update.
670 * ax-gdb.c (gen_var_ref): Update.
671 * blockframe.c (get_pc_function_start)
672 (find_pc_partial_function_gnu_ifunc): Update.
673 * breakpoint.c (create_overlay_event_breakpoint)
674 (create_longjmp_master_breakpoint)
675 (create_std_terminate_master_breakpoint)
676 (create_exception_master_breakpoint): Update.
677 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
678 * c-valprint.c (c_val_print): Update.
679 * coff-pe-read.c (add_pe_forwarded_sym): Update.
680 * common/agent.c (agent_look_up_symbols): Update.
681 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
682 * dwarf2loc.c (call_site_to_target_addr): Update.
683 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
684 * elfread.c (elf_gnu_ifunc_record_cache)
685 (elf_gnu_ifunc_resolve_by_got): Update.
686 * findvar.c (default_read_var_value): Update.
687 * frame.c (inside_main_func): Update.
688 * frv-tdep.c (frv_frame_this_id): Update.
689 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
690 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
692 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
693 (hppa_hpux_find_dummy_bpaddr): Update.
694 * hppa-tdep.c (hppa_symbol_address): Update.
695 * infcmd.c (until_next_command): Update.
696 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
698 * linespec.c (minsym_found, add_minsym): Update.
699 * linux-nat.c (get_signo): Update.
700 * linux-thread-db.c (inferior_has_bug): Update.
701 * m32c-tdep.c (m32c_return_value)
702 (m32c_m16c_address_to_pointer): Update.
703 * m32r-tdep.c (m32r_frame_this_id): Update.
704 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
705 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
706 * maint.c (maintenance_translate_address): Update.
707 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
708 (frob_address): New function.
709 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
710 frob_address. Rename parameter to "pc_in".
711 (compare_minimal_symbols, compact_minimal_symbols): Use raw
713 (find_solib_trampoline_target, minimal_symbol_upper_bound):
715 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
716 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
717 * objc-lang.c (find_objc_msgsend): Update.
718 * objfiles.c (objfile_relocate1): Update.
719 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
720 * p-valprint.c (pascal_val_print): Update.
721 * parse.c (write_exp_msymbol): Update.
722 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
723 (ppc_elfv2_skip_entrypoint): Update.
724 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
725 * printcmd.c (build_address_symbolic, msym_info)
726 (address_info): Update.
727 * proc-service.c (ps_pglobal_lookup): Update.
728 * psymtab.c (find_pc_sect_psymtab_closer)
729 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
730 Change msymbol parameter to bound_minimal_symbol.
731 * ravenscar-thread.c (get_running_thread_id): Update.
732 * remote.c (remote_check_symbols): Update.
733 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
735 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
736 * solib-dsbt.c (lm_base): Update.
737 * solib-frv.c (lm_base, main_got): Update.
738 * solib-irix.c (locate_base): Update.
739 * solib-som.c (som_solib_create_inferior_hook)
740 (link_map_start): Update.
741 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
742 * solib-svr4.c (elf_locate_base, enable_break): Update.
743 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
744 (flush_ea_cache): Update.
745 * stabsread.c (define_symbol, scan_file_globals): Update.
746 * stack.c (find_frame_funname): Update.
747 * symfile-debug.c (debug_qf_expand_symtabs_matching)
748 (debug_qf_find_pc_sect_symtab): Update.
749 * symfile.c (simple_read_overlay_table)
750 (simple_overlay_update): Update.
751 * symfile.h (struct quick_symbol_functions)
752 <find_pc_sect_symtab>: Change type of msymbol to
753 bound_minimal_symbol.
754 * symmisc.c (dump_msymbols): Update.
755 * symtab.c (find_pc_sect_symtab_via_partial)
756 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
757 (search_symbols, print_msymbol_info): Update.
758 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
759 (MSYMBOL_VALUE_ADDRESS): Redefine.
760 (BMSYMBOL_VALUE_ADDRESS): New macro.
761 * tracepoint.c (scope_info): Update.
762 * tui/tui-disasm.c (tui_find_disassembly_address)
763 (tui_get_begin_asm_address): Update.
764 * valops.c (find_function_in_inferior): Update.
765 * value.c (value_static_field, value_fn_field): Update.
767 2014-02-26 Tom Tromey <tromey@redhat.com>
769 * ada-lang.c (ada_update_initial_language): Update.
770 (ada_main_name, ada_has_this_exception_support): Update.
771 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
772 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
773 * arm-tdep.c (arm_skip_stub): Update.
774 * auxv.c (ld_so_xfer_auxv): Update.
775 * avr-tdep.c (avr_scan_prologue): Update.
776 * ax-gdb.c (gen_var_ref): Update.
777 * breakpoint.c (struct breakpoint_objfile_data)
778 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
779 type to bound_minimal_symbol.
780 (create_overlay_event_breakpoint)
781 (create_longjmp_master_breakpoint)
782 (create_std_terminate_master_breakpoint)
783 (create_exception_master_breakpoint): Update.
784 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
785 * c-exp.y (classify_name): Update.
786 * coffread.c (coff_symfile_read): Update.
787 * common/agent.c (agent_look_up_symbols): Update.
788 * d-lang.c (d_main_name): Update.
789 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
790 * dec-thread.c (enable_dec_thread): Update.
791 * dwarf2loc.c (call_site_to_target_addr): Update.
792 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
793 * eval.c (evaluate_subexp_standard): Update.
794 * findvar.c (struct minsym_lookup_data) <result>: Change type
795 to bound_minimal_symbol.
797 (minsym_lookup_iterator_cb, default_read_var_value): Update.
798 * frame.c (inside_main_func): Update.
799 * frv-tdep.c (frv_frame_this_id): Update.
800 * gcore.c (call_target_sbrk): Update.
801 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
802 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
804 * go-lang.c (go_main_name): Update.
805 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
806 (hppa_hpux_find_import_stub_for_addr): Update.
807 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
808 Update. Change return type.
809 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
811 * jit.c (jit_breakpoint_re_set_internal): Update.
812 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
814 * linux-nat.c (get_signo): Update.
815 * linux-thread-db.c (inferior_has_bug): Update
816 * m32c-tdep.c (m32c_return_value)
817 (m32c_m16c_address_to_pointer): Update.
818 * m32r-tdep.c (m32r_frame_this_id): Update.
819 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
820 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
821 * minsyms.c (lookup_minimal_symbol_internal): Rename to
822 lookup_minimal_symbol. Change return type.
823 (lookup_minimal_symbol): Remove.
824 (lookup_bound_minimal_symbol): Update.
825 (lookup_minimal_symbol_text): Change return type.
826 (lookup_minimal_symbol_solib_trampoline): Change return type.
827 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
828 (lookup_minimal_symbol_solib_trampoline): Change return type.
829 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
830 * objc-lang.c (lookup_objc_class, lookup_child_selector)
831 (value_nsstring, find_imps): Update.
832 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
833 * p-lang.c (pascal_main_name): Update.
834 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
835 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
836 * proc-service.c (ps_pglobal_lookup): Update.
837 * ravenscar-thread.c (get_running_thread_msymbol): Change
839 (has_ravenscar_runtime, get_running_thread_id): Update.
840 * remote.c (remote_check_symbols): Update.
841 * sol-thread.c (ps_pglobal_lookup): Update.
842 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
843 * solib-dsbt.c (lm_base): Update.
844 * solib-frv.c (lm_base, frv_relocate_section_addresses):
846 * solib-irix.c (locate_base): Update.
847 * solib-som.c (som_solib_create_inferior_hook)
848 (som_solib_desire_dynamic_linker_symbols, link_map_start):
850 * solib-spu.c (spu_enable_break): Update.
851 * solib-svr4.c (elf_locate_base, enable_break): Update.
852 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
853 (flush_ea_cache): Update.
854 * stabsread.c (define_symbol): Update.
855 * symfile.c (simple_read_overlay_table): Update.
856 * symtab.c (find_pc_sect_line): Update.
857 * tracepoint.c (scope_info): Update.
858 * tui-disasm.c (tui_get_begin_asm_address): Update.
859 * value.c (value_static_field): Update.
861 2014-02-26 Tom Tromey <tromey@redhat.com>
863 * minsyms.c (prim_record_minimal_symbol_full): Use
864 SET_MSYMBOL_VALUE_ADDRESS.
865 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
866 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
867 SET_MSYMBOL_VALUE_ADDRESS.
868 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
869 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
871 2014-02-26 Tom Tromey <tromey@redhat.com>
873 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
874 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
875 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
876 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
877 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
878 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
879 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
880 * ada-lang.c (ada_main_name): Update.
881 (ada_lookup_simple_minsym): Update.
882 (ada_make_symbol_completion_list): Update.
883 (ada_add_standard_exceptions): Update.
884 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
885 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
886 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
887 * arm-tdep.c (skip_prologue_function): Update.
888 (arm_skip_stack_protector, arm_skip_stub): Update.
889 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
890 (arm_wince_skip_main_prologue): Update.
891 * auxv.c (ld_so_xfer_auxv): Update.
892 * avr-tdep.c (avr_scan_prologue): Update.
893 * ax-gdb.c (gen_var_ref): Update.
894 * block.c (call_site_for_pc): Update.
895 * blockframe.c (get_pc_function_start): Update.
896 (find_pc_partial_function_gnu_ifunc): Update.
897 * breakpoint.c (create_overlay_event_breakpoint): Update.
898 (create_longjmp_master_breakpoint): Update.
899 (create_std_terminate_master_breakpoint): Update.
900 (create_exception_master_breakpoint): Update.
901 (resolve_sal_pc): Update.
902 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
903 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
905 * c-valprint.c (c_val_print): Update.
906 * coff-pe-read.c (add_pe_forwarded_sym): Update.
907 * coffread.c (coff_symfile_read): Update.
908 * common/agent.c (agent_look_up_symbols): Update.
909 * dbxread.c (find_stab_function_addr): Update.
910 (end_psymtab): Update.
911 * dwarf2loc.c (call_site_to_target_addr): Update.
912 (func_verify_no_selftailcall): Update.
913 (tailcall_dump): Update.
914 (call_site_find_chain_1): Update.
915 (dwarf_expr_reg_to_entry_parameter): Update.
916 * elfread.c (elf_gnu_ifunc_record_cache): Update.
917 (elf_gnu_ifunc_resolve_by_got): Update.
918 * f-valprint.c (info_common_command): Update.
919 * findvar.c (read_var_value): Update.
920 * frame.c (get_prev_frame_1): Update.
921 (inside_main_func): Update.
922 * frv-tdep.c (frv_skip_main_prologue): Update.
923 (frv_frame_this_id): Update.
924 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
925 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
926 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
927 (gnuv3_skip_trampoline): Update.
928 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
929 (hppa64_hpux_in_solib_call_trampoline): Update.
930 (hppa_hpux_skip_trampoline_code): Update.
931 (hppa64_hpux_search_dummy_call_sequence): Update.
932 (hppa_hpux_find_import_stub_for_addr): Update.
933 (hppa_hpux_find_dummy_bpaddr): Update.
934 * hppa-tdep.c (hppa_symbol_address)
935 (hppa_lookup_stub_minimal_symbol): Update.
936 * i386-tdep.c (i386_skip_main_prologue): Update.
937 (i386_pe_skip_trampoline_code): Update.
938 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
939 * infcall.c (get_function_name): Update.
940 * infcmd.c (until_next_command): Update.
941 * jit.c (jit_breakpoint_re_set_internal): Update.
942 (jit_inferior_init): Update.
943 * linespec.c (minsym_found): Update.
944 (add_minsym): Update.
945 * linux-fork.c (info_checkpoints_command): Update.
946 * linux-nat.c (get_signo): Update.
947 * linux-thread-db.c (inferior_has_bug): Update.
948 * m32c-tdep.c (m32c_return_value): Update.
949 (m32c_m16c_address_to_pointer): Update.
950 (m32c_m16c_pointer_to_address): Update.
951 * m32r-tdep.c (m32r_frame_this_id): Update.
952 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
953 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
954 * maint.c (maintenance_translate_address): Update.
955 * minsyms.c (add_minsym_to_hash_table): Update.
956 (add_minsym_to_demangled_hash_table): Update.
957 (msymbol_objfile): Update.
958 (lookup_minimal_symbol): Update.
959 (iterate_over_minimal_symbols): Update.
960 (lookup_minimal_symbol_text): Update.
961 (lookup_minimal_symbol_by_pc_name): Update.
962 (lookup_minimal_symbol_solib_trampoline): Update.
963 (lookup_minimal_symbol_by_pc_section_1): Update.
964 (lookup_minimal_symbol_and_objfile): Update.
965 (prim_record_minimal_symbol_full): Update.
966 (compare_minimal_symbols): Update.
967 (compact_minimal_symbols): Update.
968 (build_minimal_symbol_hash_tables): Update.
969 (install_minimal_symbols): Update.
970 (terminate_minimal_symbol_table): Update.
971 (find_solib_trampoline_target): Update.
972 (minimal_symbol_upper_bound): Update.
973 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
974 * mips-tdep.c (mips_stub_frame_sniffer): Update.
975 (mips_skip_pic_trampoline_code): Update.
976 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
977 * objc-lang.c (selectors_info): Update.
978 (classes_info): Update.
979 (find_methods): Update.
981 (find_objc_msgsend): Update.
982 * objfiles.c (objfile_relocate1): Update.
983 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
984 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
985 * p-valprint.c (pascal_val_print): Update.
986 * parse.c (write_exp_msymbol): Update.
987 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
988 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
989 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
990 * printcmd.c (build_address_symbolic): Update.
992 (address_info): Update.
993 * proc-service.c (ps_pglobal_lookup): Update.
994 * psymtab.c (find_pc_sect_psymtab_closer): Update.
995 (find_pc_sect_psymtab): Update.
996 * python/py-framefilter.c (py_print_frame): Update.
997 * ravenscar-thread.c (get_running_thread_id): Update.
998 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
1000 * remote.c (remote_check_symbols): Update.
1001 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1002 (rs6000_skip_trampoline_code): Update.
1003 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
1004 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1005 * solib-dsbt.c (lm_base): Update.
1006 * solib-frv.c (lm_base): Update.
1008 * solib-irix.c (locate_base): Update.
1009 * solib-som.c (som_solib_create_inferior_hook): Update.
1010 (som_solib_desire_dynamic_linker_symbols): Update.
1011 (link_map_start): Update.
1012 * solib-spu.c (spu_enable_break): Update.
1013 (ocl_enable_break): Update.
1014 * solib-svr4.c (elf_locate_base): Update.
1015 (enable_break): Update.
1016 * spu-tdep.c (spu_get_overlay_table): Update.
1017 (spu_catch_start): Update.
1018 (flush_ea_cache): Update.
1019 * stabsread.c (define_symbol): Update.
1020 (scan_file_globals): Update.
1021 * stack.c (find_frame_funname): Update.
1022 (frame_info): Update.
1023 * symfile.c (simple_read_overlay_table): Update.
1024 (simple_overlay_update): Update.
1025 * symmisc.c (dump_msymbols): Update.
1026 * symtab.c (fixup_section): Update.
1027 (find_pc_sect_line): Update.
1028 (skip_prologue_sal): Update.
1029 (search_symbols): Update.
1030 (print_msymbol_info): Update.
1031 (rbreak_command): Update.
1032 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
1033 (completion_list_objc_symbol): Update.
1034 (default_make_symbol_completion_list_break_on): Update.
1035 * tracepoint.c (scope_info): Update.
1036 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
1037 (tui_get_begin_asm_address): Update.
1038 * valops.c (find_function_in_inferior): Update.
1039 * value.c (value_static_field): Update.
1040 (value_fn_field): Update.
1042 2014-02-26 Tom Tromey <tromey@redhat.com>
1044 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
1045 bound minimal symbols. Move code that knows about minsym
1047 * minsyms.c (minimal_symbol_upper_bound): ... here. New
1049 * minsyms.h (minimal_symbol_upper_bound): Declare.
1050 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
1051 minimal_symbol_upper_bound.
1053 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1055 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
1056 Use the type's name if its basic type does not have a tag.
1058 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1060 * dwarf2read.c (read_subrange_type): Add comment.
1062 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1064 * dwarf2read.c (update_enumeration_type_from_children): New
1065 function, mostly extracted from process_structure_scope.
1066 (read_enumeration_type): Call update_enumeration_type_from_children.
1067 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
1068 and flag_flag_enum fields.
1070 2014-02-26 Pedro Alves <palves@redhat.com>
1072 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
1073 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
1074 to_xfer_partial method.
1076 2014-02-26 Pedro Alves <palves@redhat.com>
1078 * target.c (complete_target_initialization): Don't install
1079 default_xfer_partial as to_xfer_partial hook.
1081 (update_current_target): Don't INHERIT nor de_fault
1082 deprecated_xfer_memory. Delete de_fault macro.
1083 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
1084 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
1085 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
1088 2014-02-26 Pedro Alves <palves@redhat.com>
1090 * go32-nat.c (my_write_child): New function.
1091 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
1092 (go32_xfer_partial): New function.
1093 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
1094 Instead install a to_xfer_partial hook.
1096 2014-02-26 Pedro Alves <palves@redhat.com>
1098 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
1099 to_xfer_partial helper. Rewrite.
1100 (procfs_xfer_partial): New function.
1101 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
1102 Install a to_xfer_partial hook.
1104 2014-02-26 Pedro Alves <palves@redhat.com>
1106 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
1107 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
1108 (m32r_xfer_partial): New function.
1109 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
1110 Install a to_xfer_partial hook.
1112 2014-02-26 Pedro Alves <palves@redhat.com>
1114 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
1116 (mips_xfer_partial): New function.
1117 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
1118 hook. Install a to_xfer_partial hook.
1120 2014-02-26 Joel Brobecker <brobecker@adacore.com>
1122 * gdbtypes.h (create_array_type_with_stride): Add declaration.
1123 * gdbtypes.c (create_array_type_with_stride): New function,
1124 renaming create_array_type, but with an added parameter
1125 called "bit_stride".
1126 (create_array_type): Re-implement using
1127 create_array_type_with_stride.
1128 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
1129 and DW_AT_bit_stride attributes.
1131 2014-02-26 Pedro Alves <palves@redhat.com>
1133 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
1134 task-specific breakpoints.
1136 2014-02-25 Pedro Alves <palves@redhat.com>
1138 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
1139 handling of object == TARGET_OBJECT_UNWIND_TABLE.
1141 2014-02-25 Stan Shebs <stan@codesourcery.com>
1143 * defs.h: Annotate comments for Doxygen.
1145 2014-02-25 Tom Tromey <tromey@redhat.com>
1147 * target.h (target_ignore): Don't declare.
1148 * target.c (target_ignore): Remove.
1150 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1153 * auto-load.c (auto_load_objfile_script_1): Change filename to
1156 2014-02-25 Joel Brobecker <brobecker@adacore.com>
1158 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
1159 documentation. Adjust prototype to match the target_ops
1160 to_xfer_partial method. Adjust implementation accordingly.
1162 2014-02-25 Hui Zhu <hui@codesourcery.com>
1164 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
1167 2014-02-25 Kevin Buettner <kevinb@redhat.com>
1169 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
1170 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
1171 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
1172 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
1173 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
1174 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
1175 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
1176 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
1178 (rl78_register_type): Use a data pointer type for SP and
1179 new pseudo registers mentioned above. Use a 16 bit integer
1180 type for all other register pairs.
1181 (rl78_register_name, rl78_g10_register_name): Update for
1182 new pseudo registers.
1183 (rl78_pseudo_register_read): Likewise.
1184 (rl78_pseudo_register_write): Likewise.
1185 (rl78_dwarf_reg_to_regnum): Return register numbers representing
1186 to the newly added pseudo registers.
1188 2014-02-24 Doug Evans <dje@google.com>
1190 * value.c (record_latest_value): Fix comment.
1191 * printcmd.c (print_command_1): Remove code to handle -1 return from
1192 record_latest_value.
1194 2014-02-24 Pedro Alves <palves@redhat.com>
1196 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
1197 deprecated_xfer_memory hook.
1198 (procfs_xfer_partial): Call procfs_xfer_memory instead
1199 of the deprecated_xfer_memory target hook.
1200 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
1203 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
1205 * windows-nat.c (windows_xfer_shared_libraries): Return
1206 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
1207 requested object is TARGET_OBJECT_LIBRARIES.
1209 2014-02-24 Yao Qi <yao@codesourcery.com>
1211 * target.h (enum target_xfer_status)
1212 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
1213 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
1215 * corefile.c (memory_error_message): User updated.
1216 * exec.c (section_table_read_available_memory): Likewise.
1217 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1218 * target.c (target_xfer_status_to_string): Likewise.
1219 (raw_memory_xfer_partial): Likewise.
1220 (memory_xfer_partial_1, target_xfer_partial): Likewise.
1221 * valops.c (read_value_memory): Likewise.
1222 * exec.h: Update comments.
1224 2014-02-24 Yao Qi <yao@codesourcery.com>
1226 * target.c (target_xfer_status_to_string): Rename argument err
1228 * target.h (target_xfer_status_to_string): Update declaration.
1229 Replace target_xfer_error_to_string with
1230 target_xfer_status_to_string in comment.
1232 2014-02-24 Yao Qi <yao@codesourcery.com>
1234 * mips-linux-nat.c (super_close): Update its type.
1235 (mips_linux_close): Pass 'self' to super_close.
1237 2014-02-24 Yao Qi <yao@codesourcery.com>
1239 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
1240 * corefile.c (read_memory): Adjusted.
1241 * target.c (target_write_with_progress): Adjusted.
1243 2014-02-23 Yao Qi <yao@codesourcery.com>
1247 2013-10-25 Yao Qi <yao@codesourcery.com>
1249 * remote.c (remote_traceframe_info): Return early if
1250 traceframe is not selected.
1252 2013-07-19 Yao Qi <yao@codesourcery.com>
1254 * target.c (update_current_target): Change the default action
1255 of 'to_traceframe_info' from tcomplain to return_zero.
1256 * target.h (struct target_ops) <to_traceframe_info>: Add more
1259 2014-02-23 Yao Qi <yao@codesourcery.com>
1261 * valops.c (read_value_memory): Rewrite it. Call
1262 target_xfer_partial in a loop.
1263 * exec.h (section_table_available_memory): Remove declaration.
1264 Move comments to ...
1265 * exec.c (section_table_available_memory): ... here. Make it
1268 2014-02-23 Yao Qi <yao@codesourcery.com>
1270 * exec.c (section_table_read_available_memory): New function.
1271 * exec.h (section_table_read_available_memory): Declare.
1272 * ctf.c (ctf_xfer_partial): Call
1273 section_table_read_available_memory.
1274 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1276 2014-02-23 Yao Qi <yao@codesourcery.com>
1278 * ctf.c (ctf_xfer_partial): Move code to ...
1279 * exec.c (exec_read_partial_read_only): ... it. New function.
1280 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1281 * tracefile.c: Include "exec.h".
1282 * exec.h (exec_read_partial_read_only): Declare.
1284 2014-02-23 Yao Qi <yao@codesourcery.com>
1286 * tracefile-tfile.c (tfile_has_all_memory): Remove.
1287 (tfile_has_memory): Remove.
1288 (init_tfile_ops): Don't set fields to_has_all_memory and
1289 to_has_memory of tfile_ops.
1290 * tracefile.c (tracefile_has_all_memory): New function.
1291 (tracefile_has_memory): New function.
1292 (init_tracefile_ops): Initialize fields to_has_all_memory and
1293 to_has_memory of 'ops'.
1295 2014-02-23 Yao Qi <yao@codesourcery.com>
1297 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
1298 (ctf_thread_alive, ctf_get_trace_status): Remove.
1299 (init_ctf_ops): Don't set some fields of ctf_ops. Call
1301 * tracefile-tfile.c (tfile_get_trace_status): Remove.
1302 (tfile_has_stack, tfile_has_registers): Remove.
1303 (tfile_thread_alive): Remove.
1304 (init_tfile_ops): Don't set some fields of tfile_ops. Call
1306 * tracefile.c (tracefile_has_stack): New function.
1307 (tracefile_has_registers): New function.
1308 (tracefile_thread_alive): New function.
1309 (tracefile_get_trace_status): New function.
1310 (init_tracefile_ops): New function.
1311 * tracefile.h (init_tracefile_ops): Declare.
1313 2014-02-23 Yao Qi <yao@codesourcery.com>
1315 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
1316 (O_LARGEFILE): Likewise.
1317 (tfile_ops): Likewise.
1318 (TRACE_HEADER_SIZE): Likewise.
1319 (trace_fd, trace_frames_offset, cur_offset): Likewise.
1320 (cur_data_size): Likewise.
1321 (tfile_read, tfile_open, tfile_interp_line): Likewise.
1322 (tfile_close, tfile_files_info): Likewise.
1323 (tfile_get_trace_status): Likewise.
1324 (tfile_get_tracepoint_status): Likewise.
1325 (tfile_get_traceframe_address): Likewise.
1326 (tfile_trace_find, match_blocktype): Likewise.
1327 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
1328 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
1329 (tfile_get_trace_state_variable_value): Likewise.
1330 (tfile_has_all_memory, tfile_has_memory): Likewise.
1331 (tfile_has_stack, tfile_has_registers): Likewise.
1332 (tfile_thread_alive, build_traceframe_info): Likewise.
1333 (tfile_traceframe_info, init_tfile_ops): Likewise.
1334 (_initialize_tracepoint): Don't call init_tfile_ops
1335 and add_target_with_completer.
1336 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
1337 exec.h, completer.h and filenames.h.
1338 (_initialize_tracefile_tfile): New function.
1340 2014-02-23 Yao Qi <yao@codesourcery.com>
1342 * Makefile.in (REMOTE_OBS): Append tracefile.o and
1344 (HFILES_NO_SRCDIR): Add tracefile.h.
1345 * ctf.c: Include "tracefile.h".
1346 * tracefile.h: New file.
1347 * tracefile.c: New file
1348 * tracefile-tfile.c: New file.
1349 * tracepoint.c: Include "tracefile.h".
1350 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
1351 (stop_reason_names): Add const.
1352 (trace_file_writer_xfree): Move it to tracefile.c.
1353 (trace_save, trace_save_command, trace_save_tfile): Likewise.
1354 (trace_save_ctf): Likewise.
1355 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
1356 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
1357 (tfile_write_header, tfile_write_regblock_type): Likewise.
1358 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
1359 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
1360 (tfile_write_raw_data, tfile_end): Likewise.
1361 (tfile_trace_file_writer_new): Likewise.
1362 (free_uploaded_tp): Make it extern.
1363 (free_uploaded_tsv): Make it extern.
1364 (_initialize_tracepoint): Move code to register command 'tsave'
1366 * tracepoint.h (stop_reason_names): Declare.
1367 (struct trace_frame_write_ops): Move it to tracefile.h.
1368 (struct trace_file_write_ops): Likewise.
1369 (struct trace_file_writer): Likewise.
1370 (free_uploaded_tsvs, free_uploaded_tps): Declare.
1372 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1375 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
1377 (get_cores_used_by_process): New parameter num_cores, use it.
1378 (linux_xfer_osdata_processes): Pass num_cores to it.
1379 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
1382 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
1384 * target.c (memory_xfer_partial): Fix length arg in call to
1385 breakpoint_xfer_memory.
1387 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1390 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
1391 number comes after the + or - signs. Adjust length of register
1392 name to be extracted.
1394 2014-02-20 Tom Tromey <tromey@redhat.com>
1396 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
1397 (ada_varobj_ops): Mark "extern".
1399 2014-02-20 Tom Tromey <tromey@redhat.com>
1401 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
1403 2014-02-20 Doug Evans <xdje42@gmail.com>
1405 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
1406 All callers updated.
1407 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
1408 All callers updated.
1409 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
1410 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
1412 2014-02-20 lin zuojian <manjian2006@gmail.com>
1413 Joel Brobecker <brobecker@adacore.com>
1414 Doug Evans <xdje42@gmail.com>
1417 * dwarf2read.c (struct die_info): New member in_process.
1418 (reset_die_in_process): New function.
1419 (process_die): Set it at the start, reset when returning.
1420 (inherit_abstract_dies): Only call process_die if origin_child_die
1421 not already being processed.
1423 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1425 * windows-nat.c (handle_unload_dll): Add function documentation.
1426 (do_initial_windows_stuff): Add comment explaining why we wait
1427 until after inferior initialization has finished before
1428 processing all DLLs.
1430 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1432 * windows-nat.c (get_module_name): Delete.
1433 (windows_get_exec_module_filename): New function, mostly
1434 inspired from get_module_name.
1435 (windows_pid_to_exec_file): Replace call to get_module_name
1436 by call to windows_get_exec_module_filename.
1438 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1440 * windows-nat.c (handle_load_dll): Rewrite this function's
1441 introductory comment. Remove code using get_module_name
1442 to get the DLL's name.
1444 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1446 * windows-nat.c (get_windows_debug_event): Ignore
1447 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
1448 if windows_initialization_done == 0.
1449 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
1450 Adjust implementation to always load all DLLs.
1451 (do_initial_windows_stuff): Replace call to
1452 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
1454 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1456 * windows-nat.c (_initialize_windows_nat): Deprecate the
1457 "dll-symbols" command. Turn the "add-shared-symbol-files"
1458 and "assf" aliases into commands, and deprecate them as well.
1459 * NEWS: Add entry explaining that "dll-symbols" and its two
1460 aliases are now deprecated.
1462 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1464 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
1465 new-line in debug string. Remove trailing spaces.
1467 2014-02-19 Stan Shebs <stan@codesourcery.com>
1469 * darwin-nat.c (darwin_xfer_partial): Fix return type.
1471 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
1473 * NEWS: Add entry for the new feature
1474 * python/py-value.c (valpy_binop): Call value_x_binop for struct
1477 2014-02-19 Stan Shebs <stan@codesourcery.com>
1479 * MAINTAINERS: List Yao Qi as nios2 maintainer.
1481 2014-02-19 Pedro Alves <palves@redhat.com>
1483 * common/ptid.h (struct ptid): Mention that process_stratum
1484 targets should prefer ptid.lwp.
1486 2014-02-19 Pedro Alves <palves@redhat.com>
1488 * remote.c (remote_thread_alive, write_ptid, read_ptid)
1489 (read_ptid, remote_newthread_step, remote_threads_extra_info)
1490 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
1491 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
1492 store remote thread ids rather than ptid.tid.
1493 (_initialize_remote): Adjust.
1495 2014-02-19 Tom Tromey <tromey@redhat.com>
1497 * target.c (target_get_unwinder): Rewrite.
1498 (target_get_tailcall_unwinder): Rewrite.
1499 * record-btrace.c (record_btrace_to_get_unwinder): New function.
1500 (record_btrace_to_get_tailcall_unwinder): New function.
1501 (init_record_btrace_ops): Update.
1502 * target.h (struct target_ops) <to_get_unwinder,
1503 to_get_tailcall_unwinder>: Now function pointers. Use
1504 TARGET_DEFAULT_RETURN.
1506 2014-02-19 Tom Tromey <tromey@redhat.com>
1508 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
1510 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
1512 2014-02-19 Tom Tromey <tromey@redhat.com>
1514 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
1516 * target-delegates.c: Rebuild.
1517 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
1518 TARGET_DEFAULT_FUNC.
1519 * target.c (default_target_decr_pc_after_break): Rename from
1520 forward_target_decr_pc_after_break. Simplify.
1521 (target_decr_pc_after_break): Rely on delegation.
1523 2014-02-19 Tom Tromey <tromey@redhat.com>
1525 * target.c (update_current_target): Do not INHERIT to_doc or
1526 to_magic. Do not de_fault to_open or to_close.
1528 2014-02-19 Tom Tromey <tromey@redhat.com>
1530 * gcore.h (objfile_find_memory_regions): Declare.
1531 * gcore.c (objfile_find_memory_regions): No longer static. Add
1533 (_initialize_gcore): Don't call exec_set_find_memory_regions.
1534 * exec.c: Include gcore.h.
1535 (exec_set_find_memory_regions): Remove.
1536 (exec_find_memory_regions): Remove.
1537 (exec_do_find_memory_regions): Remove.
1538 (init_exec_ops): Update.
1539 * defs.h (exec_set_find_memory_regions): Remove.
1541 2014-02-19 Tom Tromey <tromey@redhat.com>
1543 * target-delegates.c: Rebuild.
1544 * target.h (struct target_ops) <to_extra_thread_info,
1545 to_thread_name, to_pid_to_exec_file, to_get_section_table,
1546 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
1547 not 0, in TARGET_DEFAULT_RETURN.
1549 2014-02-19 Tom Tromey <tromey@redhat.com>
1551 * target.c (complete_target_initialization): Remove casts. Use
1552 return_zero_has_execution.
1553 (return_zero): Add "ignore" argument.
1554 (return_zero_has_execution): New function.
1555 (init_dummy_target): Remove casts. Use
1556 return_zero_has_execution.
1558 2014-02-19 Tom Tromey <tromey@redhat.com>
1560 * target.c (update_current_target): Update comments. Do not
1563 2014-02-19 Tom Tromey <tromey@redhat.com>
1565 * arm-linux-nat.c (arm_linux_read_description): Delegate when
1567 * corelow.c (core_read_description): Delegate when needed.
1568 * remote.c (remote_read_description): Delegate when needed.
1569 * target-delegates.c: Rebuild.
1570 * target.c (target_read_description): Rewrite.
1571 * target.h (struct target_ops) <to_read_description>: Update
1572 comment. Use TARGET_DEFAULT_RETURN.
1574 2014-02-19 Tom Tromey <tromey@redhat.com>
1576 * target-delegates.c: Rebuild.
1577 * target.c (update_current_target): Don't inherit or default
1579 (find_default_run_target): Check against delegate_can_run.
1580 * target.h (struct target_ops) <to_can_run>: Use
1581 TARGET_DEFAULT_RETURN.
1583 2014-02-19 Tom Tromey <tromey@redhat.com>
1585 * target-delegates.c: Rebuild.
1586 * target.c (target_disconnect): Unconditionally delegate.
1587 * target.h (struct target_ops) <to_disconnect>: Use
1588 TARGET_DEFAULT_NORETURN.
1590 2014-02-19 Tom Tromey <tromey@redhat.com>
1592 * record.c (record_stop): Unconditionally delegate.
1593 * target-delegates.c: Rebuild.
1594 * target.c (target_stop_recording): Unconditionally delegate.
1595 * target.h (struct target_ops) <to_stop_recording>: Use
1596 TARGET_DEFAULT_IGNORE.
1598 2014-02-19 Tom Tromey <tromey@redhat.com>
1600 * target-delegates.c: Rebuild.
1601 * target.c (target_enable_btrace): Unconditionally delegate.
1602 * target.h (struct target_ops) <to_enable_btrace>: Use
1603 TARGET_DEFAULT_NORETURN.
1605 2014-02-19 Tom Tromey <tromey@redhat.com>
1607 * target-delegates.c: Rebuild.
1608 * target.c (target_read_btrace): Unconditionally delegate.
1609 * target.h (struct target_ops) <to_read_btrace>: Use
1610 TARGET_DEFAULT_NORETURN.
1612 2014-02-19 Tom Tromey <tromey@redhat.com>
1614 * target-delegates.c: Rebuild.
1615 * target.c (target_teardown_btrace): Unconditionally delegate.
1616 * target.h (struct target_ops) <to_teardown_btrace>: Use
1617 TARGET_DEFAULT_NORETURN.
1619 2014-02-19 Tom Tromey <tromey@redhat.com>
1621 * target-delegates.c: Rebuild.
1622 * target.c (target_disable_btrace): Unconditionally delegate.
1623 * target.h (struct target_ops) <to_disable_btrace>: Use
1624 TARGET_DEFAULT_NORETURN.
1626 2014-02-19 Tom Tromey <tromey@redhat.com>
1628 * target-delegates.c: Rebuild.
1629 * target.c (default_search_memory): New function.
1630 (simple_search_memory): Update comment.
1631 (target_search_memory): Unconditionally delegate.
1632 * target.h (struct target_ops) <to_search_memory>: Use
1633 TARGET_DEFAULT_FUNC.
1635 2014-02-19 Tom Tromey <tromey@redhat.com>
1637 * auxv.c (default_auxv_parse): No longer static.
1638 (target_auxv_parse): Unconditionally delegate.
1639 * auxv.h (default_auxv_parse): Declare.
1640 * target-delegates.c: Rebuild.
1641 * target.c: Include auxv.h.
1642 * target.h (struct target_ops) <to_auxv_parse>: Use
1643 TARGET_DEFAULT_FUNC.
1645 2014-02-19 Tom Tromey <tromey@redhat.com>
1647 * target-delegates.c: Rebuild.
1648 * target.c (target_memory_map): Unconditionally delegate.
1649 * target.h (struct target_ops) <to_memory_map>: Use
1650 TARGET_DEFAULT_RETURN.
1652 2014-02-19 Tom Tromey <tromey@redhat.com>
1654 * target-delegates.c: Rebuild.
1655 * target.c (target_thread_alive): Unconditionally delegate.
1656 * target.h (struct target_ops) <to_thread_alive>: Use
1657 TARGET_DEFAULT_RETURN.
1659 2014-02-19 Tom Tromey <tromey@redhat.com>
1661 * target-delegates.c: Rebuild.
1662 * target.c (target_save_record): Unconditionally delegate.
1663 * target.h (struct target_ops) <to_save_record>: Use
1664 TARGET_DEFAULT_NORETURN.
1666 2014-02-19 Tom Tromey <tromey@redhat.com>
1668 * target-delegates.c: Rebuild.
1669 * target.c (target_delete_record): Unconditionally delegate.
1670 * target.h (struct target_ops) <to_delete_record>: Use
1671 TARGET_DEFAULT_NORETURN.
1673 2014-02-19 Tom Tromey <tromey@redhat.com>
1675 * target-delegates.c: Rebuild.
1676 * target.c (target_record_is_replaying): Unconditionally
1678 * target.h (struct target_ops) <to_record_is_replaying>: Use
1679 TARGET_DEFAULT_RETURN.
1681 2014-02-19 Tom Tromey <tromey@redhat.com>
1683 * target-delegates.c: Rebuild.
1684 * target.c (target_goto_record_begin): Unconditionally delegate.
1685 * target.h (struct target_ops) <to_goto_record_begin>: Use
1686 TARGET_DEFAULT_NORETURN.
1688 2014-02-19 Tom Tromey <tromey@redhat.com>
1690 * target-delegates.c: Rebuild.
1691 * target.c (target_goto_record_end): Unconditionally delegate.
1692 * target.h (struct target_ops) <to_goto_record_end>: Use
1693 TARGET_DEFAULT_NORETURN.
1695 2014-02-19 Tom Tromey <tromey@redhat.com>
1697 * target-delegates.c: Rebuild.
1698 * target.c (target_goto_record): Unconditionally delegate.
1699 * target.h (struct target_ops) <to_goto_record>: Use
1700 TARGET_DEFAULT_NORETURN.
1702 2014-02-19 Tom Tromey <tromey@redhat.com>
1704 * target-delegates.c: Rebuild.
1705 * target.c (target_insn_history): Unconditionally delegate.
1706 * target.h (struct target_ops) <to_insn_history>: Use
1707 TARGET_DEFAULT_NORETURN.
1709 2014-02-19 Tom Tromey <tromey@redhat.com>
1711 * target-delegates.c: Rebuild.
1712 * target.c (target_insn_history_from): Unconditionally delegate.
1713 * target.h (struct target_ops) <to_insn_history_from>: Use
1714 TARGET_DEFAULT_NORETURN.
1716 2014-02-19 Tom Tromey <tromey@redhat.com>
1718 * target-delegates.c: Rebuild.
1719 * target.c (target_insn_history_range): Unconditionally delegate.
1720 * target.h (struct target_ops) <to_insn_history_range>: Use
1721 TARGET_DEFAULT_NORETURN.
1723 2014-02-19 Tom Tromey <tromey@redhat.com>
1725 * target-delegates.c: Rebuild.
1726 * target.c (target_call_history): Unconditionally delegate.
1727 * target.h (struct target_ops) <to_call_history>: Use
1728 TARGET_DEFAULT_NORETURN.
1730 2014-02-19 Tom Tromey <tromey@redhat.com>
1732 * target-delegates.c: Rebuild.
1733 * target.c (target_call_history_from): Unconditionally delegate.
1734 * target.h (struct target_ops) <to_call_history_from>: Use
1735 TARGET_DEFAULT_NORETURN.
1737 2014-02-19 Tom Tromey <tromey@redhat.com>
1739 * target-delegates.c: Rebuild.
1740 * target.c (target_call_history_range): Unconditionally delegate.
1741 * target.h (struct target_ops) <to_call_history_range>: Use
1742 TARGET_DEFAULT_NORETURN.
1744 2014-02-19 Tom Tromey <tromey@redhat.com>
1746 * target-delegates.c: Rebuild.
1747 * target.c (target_verify_memory): Unconditionally delegate.
1748 * target.h (struct target_ops) <to_verify_memory>: Use
1749 TARGET_DEFAULT_NORETURN.
1751 2014-02-19 Tom Tromey <tromey@redhat.com>
1753 * target-delegates.c: Rebuild.
1754 * target.c (target_core_of_thread): Unconditionally delegate.
1755 * target.h (struct target_ops) <to_core_of_thread>: Use
1756 TARGET_DEFAULT_RETURN.
1758 2014-02-19 Tom Tromey <tromey@redhat.com>
1760 * target-delegates.c: Rebuild.
1761 * target.c (target_flash_done): Unconditionally delegate.
1762 * target.h (struct target_ops) <to_flash_done>: Use
1763 TARGET_DEFAULT_NORETURN.
1765 2014-02-19 Tom Tromey <tromey@redhat.com>
1767 * target-delegates.c: Rebuild.
1768 * target.c (target_flash_erase): Unconditionally delegate.
1769 * target.h (struct target_ops) <to_flash_erase>: Use
1770 TARGET_DEFAULT_NORETURN.
1772 2014-02-19 Tom Tromey <tromey@redhat.com>
1774 * target-delegates.c: Rebuild.
1775 * target.c (target_get_section_table): Unconditionally delegate.
1776 * target.h (struct target_ops) <to_get_section_table>: Use
1777 TARGET_DEFAULT_RETURN.
1779 2014-02-19 Tom Tromey <tromey@redhat.com>
1781 * target-delegates.c: Rebuild.
1782 * target.c (target_pid_to_str): Unconditionally delegate.
1783 (init_dummy_target): Don't initialize to_pid_to_str.
1784 (default_pid_to_str): Rename from dummy_pid_to_str.
1785 * target.h (struct target_ops) <to_pid_to_str>: Use
1786 TARGET_DEFAULT_FUNC.
1788 2014-02-19 Tom Tromey <tromey@redhat.com>
1790 * target-delegates.c: Rebuild.
1791 * target.c (target_find_new_threads): Unconditionally delegate.
1792 * target.h (struct target_ops) <to_find_new_threads>: Use
1793 TARGET_DEFAULT_RETURN.
1795 2014-02-19 Tom Tromey <tromey@redhat.com>
1797 * target-delegates.c: Rebuild.
1798 * target.c (target_program_signals): Unconditionally delegate.
1799 * target.h (struct target_ops) <to_program_signals>: Use
1800 TARGET_DEFAULT_IGNORE.
1802 2014-02-19 Tom Tromey <tromey@redhat.com>
1804 * target-delegates.c: Rebuild.
1805 * target.c (target_pass_signals): Unconditionally delegate.
1806 * target.h (struct target_ops) <to_pass_signals>: Use
1807 TARGET_DEFAULT_IGNORE.
1809 2014-02-19 Tom Tromey <tromey@redhat.com>
1811 * target-delegates.c: Rebuild.
1812 * target.c (default_mourn_inferior): New function.
1813 (target_mourn_inferior): Unconditionally delegate.
1814 * target.h (struct target_ops) <to_mourn_inferior>: Use
1815 TARGET_DEFAULT_FUNC.
1817 2014-02-19 Tom Tromey <tromey@redhat.com>
1819 * target-delegates.c: Rebuild.
1820 * target.c (default_follow_fork): New function.
1821 (target_follow_fork): Unconditionally delegate.
1822 * target.h (struct target_ops) <to_follow_fork>: Use
1823 TARGET_DEFAULT_FUNC.
1825 2014-02-19 Tom Tromey <tromey@redhat.com>
1827 * target-delegates.c: Rebuild.
1828 * target.c (target_kill): Unconditionally delegate.
1829 * target.h (struct target_ops) <to_kill>: Use
1830 TARGET_DEFAULT_NORETURN.
1832 2014-02-19 Tom Tromey <tromey@redhat.com>
1834 * target-delegates.c: Rebuild.
1835 * target.c (target_masked_watch_num_registers): Unconditionally
1837 * target.h (struct target_ops) <to_masked_watch_num_registers>:
1838 Use TARGET_DEFAULT_RETURN.
1840 2014-02-19 Tom Tromey <tromey@redhat.com>
1842 * target-delegates.c: Rebuild.
1843 * target.c (target_remove_mask_watchpoint): Unconditionally
1845 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
1846 TARGET_DEFAULT_RETURN.
1848 2014-02-19 Tom Tromey <tromey@redhat.com>
1850 * target-delegates.c: Rebuild.
1851 * target.c (target_insert_mask_watchpoint): Unconditionally
1853 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
1854 TARGET_DEFAULT_RETURN.
1856 2014-02-19 Tom Tromey <tromey@redhat.com>
1858 * target-delegates.c: Rebuild.
1859 * target.c (target_ranged_break_num_registers): Unconditionally
1861 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1862 Use TARGET_DEFAULT_RETURN.
1864 2014-02-19 Tom Tromey <tromey@redhat.com>
1866 * target-delegates.c: Rebuild.
1867 * target.c (target_fetch_registers): Unconditionally delegate.
1868 * target.h (struct target_ops) <to_fetch_registers>: Use
1869 TARGET_DEFAULT_NORETURN.
1871 2014-02-19 Tom Tromey <tromey@redhat.com>
1873 * target-delegates.c: Rebuild.
1874 * target.c (update_current_target): Don't inherit or default
1876 * target.h (struct target_ops) <to_stop>: Use
1877 TARGET_DEFAULT_IGNORE.
1879 2014-02-19 Tom Tromey <tromey@redhat.com>
1881 * target-delegates.c: Rebuild.
1882 * target.c (update_current_target): Don't inherit or default
1883 to_can_run_breakpoint_commands.
1884 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
1885 Use TARGET_DEFAULT_RETURN.
1887 2014-02-19 Tom Tromey <tromey@redhat.com>
1889 * target-delegates.c: Rebuild.
1890 * target.c (update_current_target): Don't inherit or default
1891 to_supports_evaluation_of_breakpoint_conditions.
1892 * target.h (struct target_ops)
1893 <to_supports_evaluation_of_breakpoint_conditions>: Use
1894 TARGET_DEFAULT_RETURN.
1896 2014-02-19 Tom Tromey <tromey@redhat.com>
1898 * target-delegates.c: Rebuild.
1899 * target.c (update_current_target): Don't inherit or default
1900 to_augmented_libraries_svr4_read.
1901 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
1902 Use TARGET_DEFAULT_RETURN.
1904 2014-02-19 Tom Tromey <tromey@redhat.com>
1906 * target-delegates.c: Rebuild.
1907 * target.c (update_current_target): Don't inherit or default
1909 * target.h (struct target_ops) <to_can_use_agent>: Use
1910 TARGET_DEFAULT_RETURN.
1912 2014-02-19 Tom Tromey <tromey@redhat.com>
1914 * target-delegates.c: Rebuild.
1915 * target.c (update_current_target): Don't inherit or default
1917 * target.h (struct target_ops) <to_use_agent>: Use
1918 TARGET_DEFAULT_NORETURN.
1920 2014-02-19 Tom Tromey <tromey@redhat.com>
1922 * target-delegates.c: Rebuild.
1923 * target.c (update_current_target): Don't inherit or default
1925 (return_null): Remove.
1926 * target.h (struct target_ops) <to_traceframe_info>: Use
1927 TARGET_DEFAULT_RETURN.
1929 2014-02-19 Tom Tromey <tromey@redhat.com>
1931 * target-delegates.c: Rebuild.
1932 * target.c (update_current_target): Don't inherit or default
1933 to_static_tracepoint_markers_by_strid.
1934 * target.h (struct target_ops)
1935 <to_static_tracepoint_markers_by_strid>: Use
1936 TARGET_DEFAULT_NORETURN.
1938 2014-02-19 Tom Tromey <tromey@redhat.com>
1940 * target-delegates.c: Rebuild.
1941 * target.c (update_current_target): Don't inherit or default
1942 to_static_tracepoint_marker_at.
1943 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
1944 Use TARGET_DEFAULT_RETURN.
1946 2014-02-19 Tom Tromey <tromey@redhat.com>
1948 * target-delegates.c: Rebuild.
1949 * target.c (update_current_target): Don't inherit or default
1951 * target.h (struct target_ops) <to_set_permissions>: Use
1952 TARGET_DEFAULT_IGNORE.
1954 2014-02-19 Tom Tromey <tromey@redhat.com>
1956 * target-delegates.c: Rebuild.
1957 * target.c (update_current_target): Don't inherit or default
1959 * target.h (struct target_ops) <to_get_tib_address>: Use
1960 TARGET_DEFAULT_NORETURN.
1962 2014-02-19 Tom Tromey <tromey@redhat.com>
1964 * target-delegates.c: Rebuild.
1965 * target.c (update_current_target): Don't inherit or default
1967 * target.h (struct target_ops) <to_set_trace_notes>: Use
1968 TARGET_DEFAULT_RETURN.
1970 2014-02-19 Tom Tromey <tromey@redhat.com>
1972 * target-delegates.c: Rebuild.
1973 * target.c (update_current_target): Don't initialize
1974 to_set_trace_buffer_size.
1975 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
1976 TARGET_DEFAULT_IGNORE.
1978 2014-02-19 Tom Tromey <tromey@redhat.com>
1980 * target-delegates.c: Rebuild.
1981 * target.c (update_current_target): Don't inherit or default
1982 to_set_circular_trace_buffer.
1983 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
1984 TARGET_DEFAULT_IGNORE.
1986 2014-02-19 Tom Tromey <tromey@redhat.com>
1988 * target-delegates.c: Rebuild.
1989 * target.c (update_current_target): Don't inherit or default
1990 to_set_disconnected_tracing.
1991 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
1992 TARGET_DEFAULT_IGNORE.
1994 2014-02-19 Tom Tromey <tromey@redhat.com>
1996 * target-delegates.c: Rebuild.
1997 * target.c (update_current_target): Don't inherit or default
1998 to_get_min_fast_tracepoint_insn_len.
1999 (return_minus_one): Remove.
2000 * target.h (struct target_ops)
2001 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
2003 2014-02-19 Tom Tromey <tromey@redhat.com>
2005 * target-delegates.c: Rebuild.
2006 * target.c (update_current_target): Don't inherit or default
2007 to_get_raw_trace_data.
2008 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
2009 TARGET_DEFAULT_NORETURN.
2011 2014-02-19 Tom Tromey <tromey@redhat.com>
2013 * target-delegates.c: Rebuild.
2014 * target.c (update_current_target): Don't inherit or default
2015 to_upload_trace_state_variables.
2016 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2017 Use TARGET_DEFAULT_RETURN.
2019 2014-02-19 Tom Tromey <tromey@redhat.com>
2021 * target-delegates.c: Rebuild.
2022 * target.c (update_current_target): Don't inherit or default
2023 to_upload_tracepoints.
2024 * target.h (struct target_ops) <to_upload_tracepoints>: Use
2025 TARGET_DEFAULT_RETURN.
2027 2014-02-19 Tom Tromey <tromey@redhat.com>
2029 * target-delegates.c: Rebuild.
2030 * target.c (update_current_target): Don't inherit or default
2032 * target.h (struct target_ops) <to_save_trace_data>: Use
2033 TARGET_DEFAULT_NORETURN.
2035 2014-02-19 Tom Tromey <tromey@redhat.com>
2037 * target-delegates.c: Rebuild.
2038 * target.c (update_current_target): Don't inherit or default
2039 to_get_trace_state_variable_value.
2040 * target.h (struct target_ops)
2041 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
2043 2014-02-19 Tom Tromey <tromey@redhat.com>
2045 * target-delegates.c: Rebuild.
2046 * target.c (update_current_target): Don't inherit or default
2048 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
2050 2014-02-19 Tom Tromey <tromey@redhat.com>
2052 * target-delegates.c: Rebuild.
2053 * target.c (update_current_target): Don't inherit or default
2055 * target.h (struct target_ops) <to_trace_stop>: Use
2056 TARGET_DEFAULT_NORETURN.
2058 2014-02-19 Tom Tromey <tromey@redhat.com>
2060 * target-delegates.c: Rebuild.
2061 * target.c (update_current_target): Don't inherit or default
2062 to_get_tracepoint_status.
2063 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
2064 TARGET_DEFAULT_NORETURN.
2066 2014-02-19 Tom Tromey <tromey@redhat.com>
2068 * target-delegates.c: Rebuild.
2069 * target.c (update_current_target): Don't inherit or default
2070 to_get_trace_status.
2071 * target.h (struct target_ops) <to_get_trace_status>: Use
2072 TARGET_DEFAULT_RETURN.
2074 2014-02-19 Tom Tromey <tromey@redhat.com>
2076 * target-delegates.c: Rebuild.
2077 * target.c (update_current_target): Don't inherit or default
2079 * target.h (struct target_ops) <to_trace_start>: Use
2080 TARGET_DEFAULT_NORETURN.
2082 2014-02-19 Tom Tromey <tromey@redhat.com>
2084 * target-delegates.c: Rebuild.
2085 * target.c (update_current_target): Don't inherit or default
2086 to_trace_set_readonly_regions.
2087 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2088 Use TARGET_DEFAULT_NORETURN.
2090 2014-02-19 Tom Tromey <tromey@redhat.com>
2092 * target-delegates.c: Rebuild.
2093 * target.c (update_current_target): Don't inherit or default
2094 to_disable_tracepoint.
2095 * target.h (struct target_ops) <to_disable_tracepoint>: Use
2096 TARGET_DEFAULT_NORETURN.
2098 2014-02-19 Tom Tromey <tromey@redhat.com>
2100 * target-delegates.c: Rebuild.
2101 * target.c (update_current_target): Don't inherit or default
2102 to_enable_tracepoint.
2103 * target.h (struct target_ops) <to_enable_tracepoint>: Use
2104 TARGET_DEFAULT_NORETURN.
2106 2014-02-19 Tom Tromey <tromey@redhat.com>
2108 * target-delegates.c: Rebuild.
2109 * target.c (update_current_target): Don't inherit or default
2110 to_download_trace_state_variable.
2111 * target.h (struct target_ops) <to_download_trace_state_variable>:
2112 Use TARGET_DEFAULT_NORETURN.
2114 2014-02-19 Tom Tromey <tromey@redhat.com>
2116 * target-delegates.c: Rebuild.
2117 * target.c (update_current_target): Don't inherit or default
2118 to_can_download_tracepoint.
2119 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
2120 TARGET_DEFAULT_RETURN.
2122 2014-02-19 Tom Tromey <tromey@redhat.com>
2124 * target-delegates.c: Rebuild.
2125 * target.c (update_current_target): Don't inherit or default
2126 to_download_tracepoint.
2127 * target.h (struct target_ops) <to_download_tracepoint>: Use
2128 TARGET_DEFAULT_NORETURN.
2130 2014-02-19 Tom Tromey <tromey@redhat.com>
2132 * target-delegates.c: Rebuild.
2133 * target.c (update_current_target): Don't inherit or default
2135 * target.h (struct target_ops) <to_trace_init>: Use
2136 TARGET_DEFAULT_RETURN.
2138 2014-02-19 Tom Tromey <tromey@redhat.com>
2140 * target-delegates.c: Rebuild.
2141 * target.c (update_current_target): Don't inherit or default
2142 to_supports_string_tracing.
2143 * target.h (struct target_ops) <to_supports_string_tracing>: Use
2144 TARGET_DEFAULT_RETURN.
2146 2014-02-19 Tom Tromey <tromey@redhat.com>
2148 * target-delegates.c: Rebuild.
2149 * target.c (update_current_target): Don't inherit or default
2150 to_supports_enable_disable_tracepoint.
2151 * target.h (struct target_ops)
2152 <to_supports_enable_disable_tracepoint>: Use
2153 TARGET_DEFAULT_RETURN.
2155 2014-02-19 Tom Tromey <tromey@redhat.com>
2157 * target-delegates.c: Rebuild.
2158 * target.c (update_current_target): Don't inherit or default
2159 to_supports_multi_process.
2160 * target.h (struct target_ops) <to_supports_multi_process>: Use
2161 TARGET_DEFAULT_RETURN.
2163 2014-02-19 Tom Tromey <tromey@redhat.com>
2165 * target-delegates.c: Rebuild.
2166 * target.c (update_current_target): Don't inherit or default
2167 to_get_ada_task_ptid.
2168 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
2169 TARGET_DEFAULT_FUNC.
2171 2014-02-19 Tom Tromey <tromey@redhat.com>
2173 * target-delegates.c: Rebuild.
2174 * target.c (update_current_target): Don't inherit or default
2175 to_thread_architecture.
2176 * target.h (struct target_ops) <to_thread_architecture>: Use
2177 TARGET_DEFAULT_FUNC.
2179 2014-02-19 Tom Tromey <tromey@redhat.com>
2181 * target-delegates.c: Rebuild.
2182 * target.c (update_current_target): Don't inherit or default
2183 to_execution_direction.
2184 * target.h (struct target_ops) <to_execution_direction>: Use
2185 TARGET_DEFAULT_FUNC.
2187 2014-02-19 Tom Tromey <tromey@redhat.com>
2189 * target-delegates.c: Rebuild.
2190 * target.c (update_current_target): Don't inherit or default
2191 to_can_execute_reverse.
2192 * target.h (struct target_ops) <to_can_execute_reverse>: Use
2193 TARGET_DEFAULT_RETURN.
2194 (target_can_execute_reverse): Unconditionally delegate.
2196 2014-02-19 Tom Tromey <tromey@redhat.com>
2198 * target-delegates.c: Rebuild.
2199 * target.c (update_current_target): Don't inherit or default
2201 (dummy_goto_bookmark): Remove.
2202 (init_dummy_target): Don't inherit or default to_goto_bookmark.
2203 * target.h (struct target_ops) <to_goto_bookmark>: Use
2204 TARGET_DEFAULT_NORETURN.
2206 2014-02-19 Tom Tromey <tromey@redhat.com>
2208 * target-delegates.c: Rebuild.
2209 * target.c (update_current_target): Don't inherit or default
2211 (dummy_get_bookmark): Remove.
2212 (init_dummy_target): Don't inherit or default to_get_bookmark.
2213 * target.h (struct target_ops) <to_get_bookmark>: Use
2214 TARGET_DEFAULT_NORETURN
2216 2014-02-19 Tom Tromey <tromey@redhat.com>
2218 * target-delegates.c: Rebuild.
2219 * target.c (update_current_target): Don't inherit or default
2220 to_make_corefile_notes.
2221 (init_dummy_target): Don't initialize to_make_corefile_notes.
2222 * target.h (struct target_ops) <to_make_corefile_notes>: Use
2223 TARGET_DEFAULT_FUNC.
2225 2014-02-19 Tom Tromey <tromey@redhat.com>
2227 * target-delegates.c: Rebuild.
2228 * target.c (update_current_target): Don't inherit or default
2229 to_find_memory_regions.
2230 (init_dummy_target): Don't initialize to_find_memory_regions.
2231 * target.h (struct target_ops) <to_find_memory_regions>: Use
2232 TARGET_DEFAULT_FUNC.
2234 2014-02-19 Tom Tromey <tromey@redhat.com>
2236 * target-delegates.c: Rebuild.
2237 * target.c (update_current_target): Don't inherit or default
2239 * target.h (struct target_ops) <to_log_command>: Use
2240 TARGET_DEFAULT_IGNORE.
2241 (target_log_command): Unconditionally delegate.
2243 2014-02-19 Tom Tromey <tromey@redhat.com>
2245 * target-delegates.c: Rebuild.
2246 * target.c (update_current_target): Don't inherit or default
2247 to_pid_to_exec_file.
2248 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
2249 TARGET_DEFAULT_RETURN.
2251 2014-02-19 Tom Tromey <tromey@redhat.com>
2253 * target-delegates.c: Rebuild.
2254 * target.c (update_current_target): Don't inherit or default
2256 (target_thread_name): Unconditionally delegate.
2257 * target.h (struct target_ops) <to_thread_name>: Use
2258 TARGET_DEFAULT_RETURN.
2260 2014-02-19 Tom Tromey <tromey@redhat.com>
2262 * target-delegates.c: Rebuild.
2263 * target.c (update_current_target): Don't inherit or default
2264 to_extra_thread_info.
2265 * target.h (struct target_ops) <to_extra_thread_info>: Use
2266 TARGET_DEFAULT_RETURN.
2268 2014-02-19 Tom Tromey <tromey@redhat.com>
2270 * target-delegates.c: Rebuild.
2271 * target.c (update_current_target): Don't inherit or default
2273 * target.h (struct target_ops) <to_has_exited>: Use
2274 TARGET_DEFAULT_RETURN..
2276 2014-02-19 Tom Tromey <tromey@redhat.com>
2278 * target-delegates.c: Rebuild.
2279 * target.c (update_current_target): Don't inherit or default
2280 to_set_syscall_catchpoint.
2281 (return_one): Remove.
2282 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
2283 TARGET_DEFAULT_RETURN.
2285 2014-02-19 Tom Tromey <tromey@redhat.com>
2287 * target-delegates.c: Rebuild.
2288 * target.c (update_current_target): Don't inherit or default
2289 to_insert_exec_catchpoint.
2290 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
2291 TARGET_DEFAULT_RETURN.
2293 2014-01-08 Tom Tromey <tromey@redhat.com>
2295 * target-delegates.c: Rebuild.
2296 * target.c (update_current_target): Don't inherit or default
2297 to_insert_exec_catchpoint.
2298 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
2299 TARGET_DEFAULT_RETURN.
2301 2014-02-19 Tom Tromey <tromey@redhat.com>
2303 * target-delegates.c: Rebuild.
2304 * target.c (update_current_target): Don't inherit or default
2305 to_remove_vfork_catchpoint.
2306 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
2307 TARGET_DEFAULT_RETURN.
2309 2014-02-19 Tom Tromey <tromey@redhat.com>
2311 * target-delegates.c: Rebuild.
2312 * target.c (update_current_target): Don't inherit or default
2313 to_insert_vfork_catchpoint.
2314 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
2315 TARGET_DEFAULT_RETURN.
2317 2014-02-19 Tom Tromey <tromey@redhat.com>
2319 * target-delegates.c: Rebuild.
2320 * target.c (update_current_target): Don't inherit or default
2321 to_remove_fork_catchpoint.
2322 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
2323 TARGET_DEFAULT_RETURN.
2325 2014-02-19 Tom Tromey <tromey@redhat.com>
2327 * target-delegates.c: Rebuild.
2328 * target.c (update_current_target): Don't inherit or default
2329 to_insert_fork_catchpoint.
2330 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
2331 TARGET_DEFAULT_RETURN.
2333 2014-02-19 Tom Tromey <tromey@redhat.com>
2335 * target-delegates.c: Rebuild.
2336 * target.c (update_current_target): Don't inherit or default
2337 to_post_startup_inferior.
2338 * target.h (struct target_ops) <to_post_startup_inferior>: Use
2339 TARGET_DEFAULT_IGNORE.
2341 2014-02-19 Tom Tromey <tromey@redhat.com>
2343 * target-delegates.c: Rebuild.
2344 * target.c (update_current_target): Don't inherit or default
2346 * target.h (struct target_ops) <to_load>: Use
2347 TARGET_DEFAULT_NORETURN.
2349 2014-02-19 Tom Tromey <tromey@redhat.com>
2351 * target-delegates.c: Rebuild.
2352 * target.c (update_current_target): Don't inherit or default
2354 * target.h (struct target_ops) <to_terminal_info>: Use
2355 TARGET_DEFAULT_FUNC.
2357 2014-02-19 Tom Tromey <tromey@redhat.com>
2359 * target-delegates.c: Rebuild.
2360 * target.c (update_current_target): Don't inherit or default
2361 to_terminal_save_ours.
2362 * target.h (struct target_ops) <to_terminal_save_ours>: Use
2363 TARGET_DEFAULT_IGNORE.
2365 2014-02-19 Tom Tromey <tromey@redhat.com>
2367 * target-delegates.c: Rebuild.
2368 * target.c (update_current_target): Don't inherit or default
2370 * target.h (struct target_ops) <to_terminal_ours>: Use
2371 TARGET_DEFAULT_IGNORE.
2373 2014-02-19 Tom Tromey <tromey@redhat.com>
2375 * target-delegates.c: Rebuild.
2376 * target.c (update_current_target): Don't inherit or default
2377 to_terminal_ours_for_output.
2378 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
2379 TARGET_DEFAULT_IGNORE.
2381 2014-02-19 Tom Tromey <tromey@redhat.com>
2383 * target-delegates.c: Rebuild.
2384 * target.c (update_current_target): Don't inherit or default
2385 to_terminal_inferior.
2386 * target.h (struct target_ops) <to_terminal_inferior>: Use
2387 TARGET_DEFAULT_IGNORE.
2389 2014-02-19 Tom Tromey <tromey@redhat.com>
2391 * target-delegates.c: Rebuild.
2392 * target.c (update_current_target): Don't inherit or default
2394 * target.h (struct target_ops) <to_terminal_init>: Use
2395 TARGET_DEFAULT_IGNORE.
2397 2014-02-19 Tom Tromey <tromey@redhat.com>
2399 * target-delegates.c: Rebuild.
2400 * target.c (update_current_target): Don't inherit or default
2401 to_can_accel_watchpoint_condition.
2402 * target.h (struct target_ops)
2403 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
2405 2014-02-19 Tom Tromey <tromey@redhat.com>
2407 * target-delegates.c: Rebuild.
2408 * target.c (update_current_target): Don't inherit or default
2409 to_region_ok_for_hw_watchpoint.
2410 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2411 Use TARGET_DEFAULT_FUNC.
2413 2014-02-19 Tom Tromey <tromey@redhat.com>
2415 * target-delegates.c: Rebuild.
2416 * target.c (update_current_target): Don't inherit or default
2417 to_watchpoint_addr_within_range.
2418 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
2419 Use TARGET_DEFAULT_FUNC.
2421 2014-02-19 Tom Tromey <tromey@redhat.com>
2423 * target-delegates.c: Rebuild.
2424 * target.c (update_current_target): Don't inherit or default
2425 to_remove_watchpoint.
2426 * target.h (struct target_ops) <to_remove_watchpoint>: Use
2427 TARGET_DEFAULT_NORETURN.
2429 2014-02-19 Tom Tromey <tromey@redhat.com>
2431 * target-delegates.c: Rebuild.
2432 * target.c (update_current_target): Don't inherit or default
2433 to_insert_watchpoint.
2434 * target.h (struct target_ops) <to_insert_watchpoint>: Use
2435 TARGET_DEFAULT_RETURN.
2437 2014-02-19 Tom Tromey <tromey@redhat.com>
2439 * target-delegates.c: Rebuild.
2440 * target.c (update_current_target): Don't inherit or default
2441 to_remove_hw_breakpoint.
2442 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
2443 TARGET_DEFAULT_RETURN.
2445 2014-02-19 Tom Tromey <tromey@redhat.com>
2447 * target-delegates.c: Rebuild.
2448 * target.c (update_current_target): Don't inherit or default
2449 to_insert_hw_breakpoint.
2450 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
2451 TARGET_DEFAULT_RETURN.
2453 2014-02-19 Tom Tromey <tromey@redhat.com>
2455 * target-delegates.c: Rebuild.
2456 * target.c (update_current_target): Don't inherit or default
2457 to_can_use_hw_breakpoint.
2458 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
2459 TARGET_DEFAULT_RETURN.
2461 2014-02-19 Tom Tromey <tromey@redhat.com>
2463 * target-delegates.c: Rebuild.
2464 * target.c (update_current_target): Don't inherit or default
2466 * target.h (struct target_ops) <to_files_info>: Use
2467 TARGET_DEFAULT_IGNORE.
2469 2014-02-19 Tom Tromey <tromey@redhat.com>
2471 * target-delegates.c: Rebuild.
2472 * target.c (update_current_target): Don't inherit or default
2474 * target.h (struct target_ops) <to_store>: Use
2475 TARGET_DEFAULT_NORETURN.
2477 2014-02-19 Tom Tromey <tromey@redhat.com>
2479 * target-delegates.c: Rebuild.
2480 * target.c (update_current_target): Don't inherit or default
2482 * target.h (struct target_ops) <to_post_attach>: Use
2483 TARGET_DEFAULT_IGNORE.
2485 2014-02-19 Tom Tromey <tromey@redhat.com>
2487 * target-delegates.c: Rebuild.
2488 * target.c (update_current_target): Don't inherit or default
2490 (default_rcmd): New function.
2491 (do_monitor_command): Unconditionally delegate.
2492 * target.h (struct target_ops) <to_rmcd>: Use
2493 TARGET_DEFAULT_FUNC.
2495 2014-02-19 Tom Tromey <tromey@redhat.com>
2497 * target-delegates.c: Rebuild.
2498 * target.c (init_dummy_target): Don't initialize to_attach.
2499 (target_attach): Unconditionally delegate.
2500 * target.h (struct target_ops) <to_attach>: Use
2501 TARGET_DEFAULT_FUNC.
2503 2014-02-19 Tom Tromey <tromey@redhat.com>
2505 * target-delegates.c: Rebuild.
2506 * target.c (target_detach): Unconditionally delegate.
2507 (init_dummy_target): Don't initialize to_detach.
2508 * target.h (struct target_ops) <to_detach>: Use
2509 TARGET_DEFAULT_IGNORE.
2511 2014-02-19 Tom Tromey <tromey@redhat.com>
2513 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2515 (target_augmented_libraries_svr4_read): Add argument.
2516 * target.c (update_current_target): Update.
2517 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
2520 2014-02-19 Tom Tromey <tromey@redhat.com>
2522 * target.h (struct target_ops) <to_call_history_range>: Add
2524 * target.c (target_call_history_range): Add argument.
2525 * record-btrace.c (record_btrace_call_history_range): Add 'self'
2527 (record_btrace_call_history_from): Update.
2529 2014-02-19 Tom Tromey <tromey@redhat.com>
2531 * target.h (struct target_ops) <to_call_history_from>: Add
2533 * target.c (target_call_history_from): Add argument.
2534 * record-btrace.c (record_btrace_call_history_from): Add 'self'
2537 2014-02-19 Tom Tromey <tromey@redhat.com>
2539 * target.h (struct target_ops) <to_call_history>: Add argument.
2540 * target.c (target_call_history): Add argument.
2541 * record-btrace.c (record_btrace_call_history): Add 'self'
2544 2014-02-19 Tom Tromey <tromey@redhat.com>
2546 * target.h (struct target_ops) <to_insn_history_range>: Add
2548 * target.c (target_insn_history_range): Add argument.
2549 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
2551 (record_btrace_insn_history_from): Update.
2553 2014-02-19 Tom Tromey <tromey@redhat.com>
2555 * target.h (struct target_ops) <to_insn_history_from>: Add
2557 * target.c (target_insn_history_from): Add argument.
2558 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
2561 2014-02-19 Tom Tromey <tromey@redhat.com>
2563 * target.h (struct target_ops) <to_insn_history>: Add argument.
2564 * target.c (target_insn_history): Add argument.
2565 * record-btrace.c (record_btrace_insn_history): Add 'self'
2568 2014-02-19 Tom Tromey <tromey@redhat.com>
2570 * target.h (struct target_ops) <to_goto_record>: Add argument.
2571 * target.c (target_goto_record): Add argument.
2572 * record-full.c (record_full_goto): Add 'self' argument.
2573 * record-btrace.c (record_btrace_goto): Add 'self' argument.
2575 2014-02-19 Tom Tromey <tromey@redhat.com>
2577 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
2578 * target.c (target_goto_record_end): Add argument.
2579 * record-full.c (record_full_goto_end): Add 'self' argument.
2580 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
2582 2014-02-19 Tom Tromey <tromey@redhat.com>
2584 * target.h (struct target_ops) <to_goto_record_begin>: Add
2586 * target.c (target_goto_record_begin): Add argument.
2587 * record-full.c (record_full_goto_begin): Add 'self' argument.
2588 * record-btrace.c (record_btrace_goto_begin): Add 'self'
2591 2014-02-19 Tom Tromey <tromey@redhat.com>
2593 * target.h (struct target_ops) <to_record_is_replaying>: Add
2595 * target.c (target_record_is_replaying): Add argument.
2596 * record-full.c (record_full_is_replaying): Add 'self' argument.
2597 * record-btrace.c (record_btrace_is_replaying): Add 'self'
2599 (record_btrace_xfer_partial, record_btrace_store_registers)
2600 (record_btrace_prepare_to_store, record_btrace_resume)
2601 (record_btrace_wait, record_btrace_decr_pc_after_break)
2602 (record_btrace_find_new_threads, record_btrace_thread_alive):
2605 2014-02-19 Tom Tromey <tromey@redhat.com>
2607 * target.h (struct target_ops) <to_delete_record>: Add argument.
2608 * target.c (target_delete_record): Add argument.
2609 * record-full.c (record_full_delete): Add 'self' argument.
2611 2014-02-19 Tom Tromey <tromey@redhat.com>
2613 * target.h (struct target_ops) <to_save_record>: Add argument.
2614 * target.c (target_save_record): Add argument.
2615 * record-full.c (record_full_save): Add 'self' argument.
2616 (record_full_save): Add 'self' argument.
2618 2014-02-19 Tom Tromey <tromey@redhat.com>
2620 * target.h (struct target_ops) <to_info_record>: Add argument.
2621 * target.c (target_info_record): Add argument.
2622 * record.c (info_record_command): Add argument.
2623 * record-full.c (record_full_info): Add 'self' argument.
2624 * record-btrace.c (record_btrace_info): Add 'self' argument.
2626 2014-02-19 Tom Tromey <tromey@redhat.com>
2628 * target.h (struct target_ops) <to_stop_recording>: Add argument.
2629 * target.c (target_stop_recording): Add argument.
2630 * record.c (record_stop): Add argument.
2631 * record-btrace.c (record_btrace_stop_recording): Add 'self'
2634 2014-02-19 Tom Tromey <tromey@redhat.com>
2636 * target.h (struct target_ops) <to_read_btrace>: Add argument.
2637 * target.c (struct target_ops) <to_read_btrace>: Add argument.
2638 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
2640 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
2641 (_initialize_amd64_linux_nat): Use it.
2642 * i386-linux-nat.c (i386_linux_read_btrace): New function.
2643 (_initialize_i386_linux_nat): Use it.
2645 2014-02-19 Tom Tromey <tromey@redhat.com>
2647 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
2648 * target.c (target_teardown_btrace): Add argument.
2649 * remote.c (remote_teardown_btrace): Add 'self' argument.
2650 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
2652 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
2655 2014-02-19 Tom Tromey <tromey@redhat.com>
2657 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
2658 * target.c (target_disable_btrace): Add argument.
2659 * remote.c (remote_disable_btrace): Add 'self' argument.
2660 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
2662 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
2665 2014-02-19 Tom Tromey <tromey@redhat.com>
2667 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
2668 * target.c (target_enable_btrace): Add argument.
2669 * remote.c (remote_enable_btrace): Add 'self' argument.
2670 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
2672 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
2675 2014-02-19 Tom Tromey <tromey@redhat.com>
2677 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
2678 (target_can_use_agent): Add argument.
2679 * target.c (update_current_target): Update.
2680 * remote.c (remote_can_use_agent): Add 'self' argument.
2681 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
2683 2014-02-19 Tom Tromey <tromey@redhat.com>
2685 * target.h (struct target_ops) <to_use_agent>: Add argument.
2686 (target_use_agent): Add argument.
2687 * target.c (update_current_target): Update.
2688 * remote.c (remote_use_agent): Add 'self' argument.
2689 * inf-child.c (inf_child_use_agent): Add 'self' argument.
2691 2014-02-19 Tom Tromey <tromey@redhat.com>
2693 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
2694 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
2695 (target_traceframe_info): Add argument.
2696 * target.c (update_current_target): Update.
2697 * remote.c (remote_traceframe_info): Add 'self' argument.
2698 * ctf.c (ctf_traceframe_info): Add 'self' argument.
2700 2014-02-19 Tom Tromey <tromey@redhat.com>
2702 * target.h (target_static_tracepoint_markers_by_strid): Add
2704 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
2706 * target.c (update_current_target): Update.
2707 * remote.c (struct target_ops)
2708 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
2709 * linux-nat.c (struct target_ops)
2710 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
2712 2014-02-19 Tom Tromey <tromey@redhat.com>
2714 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
2716 (target_static_tracepoint_marker_at): Add argument.
2717 * target.c (update_current_target): Update.
2718 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
2721 2014-02-19 Tom Tromey <tromey@redhat.com>
2723 * target.h (struct target_ops) <to_set_permissions>: Add argument.
2724 (target_set_permissions): Add argument.
2725 * target.c (update_current_target): Update.
2726 * remote.c (remote_set_permissions): Add 'self' argument.
2727 (remote_start_remote): Update.
2729 2014-02-19 Tom Tromey <tromey@redhat.com>
2731 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
2732 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
2733 (target_get_tib_address): Add argument.
2734 * target.c (update_current_target): Update.
2735 * remote.c (remote_get_tib_address): Add 'self' argument.
2737 2014-02-19 Tom Tromey <tromey@redhat.com>
2739 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
2740 (target_set_trace_notes): Add argument.
2741 * target.c (update_current_target): Update.
2742 * remote.c (remote_set_trace_notes): Add 'self' argument.
2744 2014-02-19 Tom Tromey <tromey@redhat.com>
2746 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
2748 (target_set_trace_buffer_size): Add argument.
2749 * target.c (update_current_target): Update.
2750 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
2752 2014-02-19 Tom Tromey <tromey@redhat.com>
2754 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
2756 (target_set_circular_trace_buffer): Add argument.
2757 * target.c (update_current_target): Update.
2758 * remote.c (remote_set_circular_trace_buffer): Add 'self'
2761 2014-02-19 Tom Tromey <tromey@redhat.com>
2763 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
2765 (target_set_disconnected_tracing): Add argument.
2766 * target.c (update_current_target): Update.
2767 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
2769 2014-02-19 Tom Tromey <tromey@redhat.com>
2771 * target.h (struct target_ops)
2772 <to_get_min_fast_tracepoint_insn_len>: Add argument.
2773 (target_get_min_fast_tracepoint_insn_len): Add argument.
2774 * target.c (update_current_target): Update.
2775 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
2778 2014-02-19 Tom Tromey <tromey@redhat.com>
2780 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
2782 (target_get_raw_trace_data): Add argument.
2783 * target.c (update_current_target): Update.
2784 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
2786 2014-02-19 Tom Tromey <tromey@redhat.com>
2788 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2790 (target_upload_trace_state_variables): Add argument.
2791 * target.c (update_current_target): Update.
2792 * remote.c (remote_upload_trace_state_variables): Add 'self'
2794 (remote_start_remote): Update.
2796 2014-02-19 Tom Tromey <tromey@redhat.com>
2798 * target.h (struct target_ops) <to_upload_tracepoints>: Add
2800 (target_upload_tracepoints): Add argument.
2801 * target.c (update_current_target): Update.
2802 * remote.c (remote_upload_tracepoints): Add 'self' argument.
2803 (remote_start_remote): Update.
2805 2014-02-19 Tom Tromey <tromey@redhat.com>
2807 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
2808 (target_save_trace_data): Add argument.
2809 * target.c (update_current_target): Update.
2810 * remote.c (remote_save_trace_data): Add 'self' argument.
2812 2014-02-19 Tom Tromey <tromey@redhat.com>
2814 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
2816 * target.h (struct target_ops)
2817 <to_get_trace_state_variable_value>: Add argument.
2818 (target_get_trace_state_variable_value): Add argument.
2819 * target.c (update_current_target): Update.
2820 * remote.c (remote_get_trace_state_variable_value): Add 'self'
2822 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
2824 2014-02-19 Tom Tromey <tromey@redhat.com>
2826 * tracepoint.c (tfile_trace_find): Add 'self' argument.
2827 * target.h (struct target_ops) <to_trace_find>: Add argument.
2828 (target_trace_find): Add argument.
2829 * target.c (update_current_target): Update.
2830 * remote.c (remote_trace_find): Add 'self' argument.
2831 * ctf.c (ctf_trace_find): Add 'self' argument.
2833 2014-02-19 Tom Tromey <tromey@redhat.com>
2835 * target.h (struct target_ops) <to_trace_stop>: Add argument.
2836 (target_trace_stop): Add argument.
2837 * target.c (update_current_target): Update.
2838 * remote.c (remote_trace_stop): Add 'self' argument.
2840 2014-02-19 Tom Tromey <tromey@redhat.com>
2842 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
2843 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
2845 (target_get_tracepoint_status): Add argument.
2846 * target.c (update_current_target): Update.
2847 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
2849 2014-02-19 Tom Tromey <tromey@redhat.com>
2851 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
2852 * target.h (struct target_ops) <to_get_trace_status>: Add
2854 (target_get_trace_status): Add argument.
2855 * target.c (update_current_target): Update.
2856 * remote.c (remote_get_trace_status): Add 'self' argument.
2857 (remote_start_remote, remote_can_download_tracepoint): Update.
2858 * ctf.c (ctf_get_trace_status): Add 'self' argument.
2860 2014-02-19 Tom Tromey <tromey@redhat.com>
2862 * target.h (struct target_ops) <to_trace_start>: Add argument.
2863 (target_trace_start): Add argument.
2864 * target.c (update_current_target): Update.
2865 * remote.c (remote_trace_start): Add 'self' argument.
2867 2014-02-19 Tom Tromey <tromey@redhat.com>
2869 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2871 (target_trace_set_readonly_regions): Add argument.
2872 * target.c (update_current_target): Update.
2873 * remote.c (remote_trace_set_readonly_regions): Add 'self'
2876 2014-02-19 Tom Tromey <tromey@redhat.com>
2878 * target.h (struct target_ops) <to_disable_tracepoint>: Add
2880 (target_disable_tracepoint): Add argument.
2881 * target.c (update_current_target): Update.
2882 * remote.c (remote_disable_tracepoint): Add 'self' argument.
2884 2014-02-19 Tom Tromey <tromey@redhat.com>
2886 * target.h (struct target_ops) <to_enable_tracepoint>: Add
2888 (target_enable_tracepoint): Add argument.
2889 * target.c (update_current_target): Update.
2890 * remote.c (remote_enable_tracepoint): Add 'self' argument.
2892 2014-02-19 Tom Tromey <tromey@redhat.com>
2894 * target.h (struct target_ops) <to_download_trace_state_variable>:
2896 (target_download_trace_state_variable): Add argument.
2897 * target.c (update_current_target): Update.
2898 * remote.c (remote_download_trace_state_variable): Add 'self'
2901 2014-02-19 Tom Tromey <tromey@redhat.com>
2903 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
2905 (target_can_download_tracepoint): Add argument.
2906 * target.c (update_current_target): Update.
2907 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
2909 2014-02-19 Tom Tromey <tromey@redhat.com>
2911 * target.h (struct target_ops) <to_download_tracepoint>: Add
2913 (target_download_tracepoint): Add argument.
2914 * target.c (update_current_target): Update.
2915 * remote.c (remote_download_tracepoint): Add 'self' argument.
2917 2014-02-19 Tom Tromey <tromey@redhat.com>
2919 * target.h (struct target_ops) <to_trace_init>: Add argument.
2920 (target_trace_init): Add argument.
2921 * target.c (update_current_target): Update.
2922 * remote.c (remote_trace_init): Add 'self' argument.
2924 2014-02-19 Tom Tromey <tromey@redhat.com>
2926 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
2927 * target.c (target_fileio_readlink): Add argument.
2928 * remote.c (remote_hostio_readlink): Add 'self' argument.
2929 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
2931 2014-02-19 Tom Tromey <tromey@redhat.com>
2933 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
2934 * target.c (target_fileio_unlink): Add argument.
2935 * remote.c (remote_hostio_unlink): Add 'self' argument.
2936 (remote_file_delete): Update.
2937 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
2939 2014-02-19 Tom Tromey <tromey@redhat.com>
2941 * target.h (struct target_ops) <to_fileio_close>: Add argument.
2942 * target.c (target_fileio_close): Add argument.
2943 * remote.c (remote_hostio_close): Add 'self' argument.
2944 (remote_hostio_close_cleanup): Update.
2945 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
2947 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
2949 2014-02-19 Tom Tromey <tromey@redhat.com>
2951 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
2952 * target.c (target_fileio_pread): Add argument.
2953 * remote.c (remote_hostio_pread): Add 'self' argument.
2954 (remote_bfd_iovec_pread, remote_file_get): Update.
2955 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
2957 2014-02-19 Tom Tromey <tromey@redhat.com>
2959 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
2960 * target.c (target_fileio_pwrite): Add argument.
2961 * remote.c (remote_hostio_pwrite): Add 'self' argument.
2962 (remote_file_put): Update.
2963 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
2965 2014-02-19 Tom Tromey <tromey@redhat.com>
2967 * target.h (struct target_ops) <to_fileio_open>: Add argument.
2968 * target.c (target_fileio_open): Add argument.
2969 * remote.c (remote_hostio_open): Add 'self' argument.
2970 (remote_bfd_iovec_open): Add 'self' argument.
2971 (remote_file_put): Add 'self' argument.
2972 (remote_file_get): Add 'self' argument.
2973 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
2975 2014-02-19 Tom Tromey <tromey@redhat.com>
2977 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
2979 (target_can_run_breakpoint_commands): Add argument.
2980 * target.c (update_current_target): Update.
2981 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
2983 (remote_insert_breakpoint): Add 'self' argument.
2984 (remote_insert_hw_breakpoint): Add 'self' argument.
2985 (remote_can_run_breakpoint_commands): Add 'self' argument.
2987 2014-02-19 Tom Tromey <tromey@redhat.com>
2989 * target.h (struct target_ops)
2990 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
2991 (target_supports_evaluation_of_breakpoint_conditions): Add
2993 * target.c (update_current_target): Update.
2994 * remote.c (remote_supports_cond_breakpoints): Add 'self'
2996 (remote_insert_breakpoint): Add 'self' argument.
2997 (remote_insert_hw_breakpoint): Add 'self' argument.
2998 (remote_supports_cond_breakpoints): Add 'self' argument.
3000 2014-02-19 Tom Tromey <tromey@redhat.com>
3002 * target.h (struct target_ops) <to_supports_string_tracing>: Add
3004 (target_supports_string_tracing): Add argument.
3005 * target.c (update_current_target): Update.
3006 * remote.c (remote_supports_string_tracing): Add 'self' argument.
3008 2014-02-19 Tom Tromey <tromey@redhat.com>
3010 * target.h (struct target_ops)
3011 <to_supports_disable_randomization>: Add argument.
3012 * target.c (find_default_supports_disable_randomization): Add
3014 (target_supports_disable_randomization): Add argument.
3015 (find_default_supports_disable_randomization): Add 'self'
3017 * remote.c (extended_remote_supports_disable_randomization): Add
3019 (remote_supports_disable_randomization): Add 'self' argument.
3020 (extended_remote_create_inferior): Update.
3021 * linux-nat.c (linux_nat_supports_disable_randomization): Add
3024 2014-02-19 Tom Tromey <tromey@redhat.com>
3026 * target.h (struct target_ops)
3027 <to_supports_enable_disable_tracepoint>: Add argument.
3028 (target_supports_enable_disable_tracepoint): Add argument.
3029 * target.c (update_current_target): Update.
3030 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
3033 2014-02-19 Tom Tromey <tromey@redhat.com>
3035 * target.h (struct target_ops) <to_supports_multi_process>: Add
3037 (target_supports_multi_process): Add argument.
3038 * target.c (update_current_target): Update.
3039 * remote.c (remote_supports_multi_process): Add 'self' argument.
3040 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
3042 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
3045 2014-02-19 Tom Tromey <tromey@redhat.com>
3047 * target.h (struct target_ops) <to_execution_direction>: Add
3049 (target_execution_direction): Add argument.
3050 * target.c (default_execution_direction): Add 'self' argument.
3051 * record-full.c (record_full_execution_direction): Add 'self'
3054 2014-02-19 Tom Tromey <tromey@redhat.com>
3056 * target.h (struct target_ops) <to_can_execute_reverse>: Add
3058 (target_can_execute_reverse): Add argument.
3059 * remote.c (remote_can_execute_reverse): Add 'self' argument.
3060 * record-full.c (record_full_can_execute_reverse): Add 'self'
3062 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
3065 2014-02-19 Tom Tromey <tromey@redhat.com>
3067 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
3068 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
3070 (target_get_ada_task_ptid): Add argument.
3071 * target.c (update_current_target): Update.
3072 (default_get_ada_task_ptid): Add 'self' argument.
3073 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
3074 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
3075 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
3077 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
3079 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
3081 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
3083 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
3084 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
3087 2014-02-19 Tom Tromey <tromey@redhat.com>
3089 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
3090 (target_goto_bookmark): Add argument.
3091 * target.c (dummy_goto_bookmark): Add 'self' argument.
3092 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
3094 2014-02-19 Tom Tromey <tromey@redhat.com>
3096 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
3097 (target_get_bookmark): Add argument.
3098 * target.c (dummy_get_bookmark): Add 'self' argument.
3099 * record-full.c (record_full_get_bookmark): Add 'self' argument.
3101 2014-02-19 Tom Tromey <tromey@redhat.com>
3103 * target.h (struct target_ops) <to_make_corefile_notes>: Add
3105 (target_make_corefile_notes): Add argument.
3106 * target.c (dummy_make_corefile_notes): Add 'self' argument.
3107 * procfs.c (procfs_make_note_section): Add 'self' argument.
3108 (procfs_make_note_section): Add 'self' argument.
3109 (procfs_make_note_section): Add 'self' argument.
3110 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
3112 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
3113 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
3114 * exec.c (exec_make_note_section): Add 'self' argument.
3115 (exec_make_note_section): Add 'self' argument.
3117 2014-02-19 Tom Tromey <tromey@redhat.com>
3119 * target.h (struct target_ops) <to_find_memory_regions>: Add
3121 (target_find_memory_regions): Add argument.
3122 * target.c (dummy_find_memory_regions): Add 'self' argument.
3123 * procfs.c (proc_find_memory_regions): Add 'self' argument.
3124 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
3125 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
3126 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
3127 * exec. (exec_do_find_memory_regions): New global.
3128 (exec_set_find_memory_regions): Rewrite.
3129 (exec_find_memory_regions): New function.
3130 (init_exec_ops): Use exec_find_memory_regions.
3132 2014-02-19 Tom Tromey <tromey@redhat.com>
3134 * target.h (struct target_ops) <to_supports_non_stop>: Add
3136 * target.c (find_default_supports_non_stop): Add argument.
3137 (target_supports_non_stop): Add argument.
3138 (find_default_supports_non_stop): Add 'self' argument.
3139 * remote.c (remote_supports_non_stop): Add 'self' argument.
3140 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
3142 2014-02-19 Tom Tromey <tromey@redhat.com>
3144 * target.h (struct target_ops) <to_log_command>: Add argument.
3145 (target_log_command): Add argument.
3146 * serial.h (serial_log_command): Add 'self' argument.
3147 * serial.c (serial_log_command): Add 'self' argument.
3149 2014-02-19 Tom Tromey <tromey@redhat.com>
3151 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
3152 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
3154 (target_pid_to_exec_file): Add argument.
3155 * target.c (debug_to_pid_to_exec_file): Add argument.
3156 (update_current_target): Update.
3157 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
3158 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
3159 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
3160 (linux_handle_extended_wait): Update.
3161 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
3162 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
3163 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
3164 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
3166 2014-02-19 Tom Tromey <tromey@redhat.com>
3168 * target.h (struct target_ops) <to_rcmd>: Add argument.
3169 (target_rcmd): Add argument.
3170 * target.c (debug_to_rcmd): Add argument.
3171 (update_current_target, do_monitor_command): Update.
3172 * remote.c (remote_rcmd): Add 'self' argument.
3173 * monitor.c (monitor_rcmd): Add 'self' argument.
3175 2014-02-19 Tom Tromey <tromey@redhat.com>
3177 * windows-nat.c (windows_stop): Add 'self' argument.
3178 * target.h (struct target_ops) <to_stop>: Add argument.
3179 * target.c (target_stop): Add argument.
3180 (debug_to_stop): Add argument.
3181 (update_current_target): Update.
3182 * remote.c (remote_stop): Add 'self' argument.
3183 * remote-sim.c (gdbsim_stop): Add 'self' argument.
3184 (gdbsim_cntrl_c): Update.
3185 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
3186 * procfs.c (procfs_stop): Add 'self' argument.
3187 * nto-procfs.c (procfs_stop): Add 'self' argument.
3188 * monitor.c (monitor_stop): Add 'self' argument.
3189 (monitor_open): Update.
3190 * linux-nat.c (linux_nat_stop): Add argument.
3191 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
3192 * gnu-nat.c (gnu_stop): Add 'self' argument.
3193 * darwin-nat.c (darwin_stop): Add 'self' argument.
3195 2014-02-19 Tom Tromey <tromey@redhat.com>
3197 * target.h (struct target_ops) <to_thread_name>: Add argument.
3198 * target.c (target_thread_name): Add argument.
3199 (update_current_target): Update.
3200 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
3202 2014-02-19 Tom Tromey <tromey@redhat.com>
3204 * target.h (struct target_ops) <to_extra_thread_info>: Add
3206 (target_extra_thread_info): Add argument.
3207 * target.c (update_current_target): Update.
3208 * remote.c (remote_threads_extra_info): Add 'self' argument.
3209 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
3211 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
3212 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
3213 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
3215 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
3217 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
3219 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
3222 2014-02-19 Tom Tromey <tromey@redhat.com>
3224 * target.h (struct target_ops) <to_program_signals>: Add argument.
3225 * target.c (target_program_signals): Add argument.
3226 * remote.c (remote_program_signals): Add 'self' argument.
3228 2014-02-19 Tom Tromey <tromey@redhat.com>
3230 * target.h (struct target_ops) <to_pass_signals>: Add argument.
3231 * target.c (target_pass_signals): Add argument.
3232 * remote.c (remote_pass_signals): Add 'self' argument.
3233 (remote_start_remote): Update.
3234 * procfs.c (procfs_pass_signals): Add 'self' argument.
3235 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
3236 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
3237 (linux_nat_create_inferior, linux_nat_attach): Update.
3239 2014-02-19 Tom Tromey <tromey@redhat.com>
3241 * windows-nat.c (windows_can_run): Add 'self' argument.
3242 * target.h (struct target_ops) <to_can_run>: Add argument.
3243 (target_can_run): Add argument.
3244 * target.c (debug_to_can_run): Add argument.
3245 (update_current_target): Update.
3246 * nto-procfs.c (procfs_can_run): Add 'self' argument.
3247 * inf-child.c (inf_child_can_run): Add 'self' argument.
3248 * go32-nat.c (go32_can_run): Add 'self' argument.
3250 2014-02-19 Tom Tromey <tromey@redhat.com>
3252 * target.h (struct target_ops) <to_has_exited>: Add argument.
3253 (target_has_exited): Add argument.
3254 * target.c (debug_to_has_exited): Add argument.
3255 (update_current_target): Update.
3257 2014-02-19 Tom Tromey <tromey@redhat.com>
3259 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
3261 (target_set_syscall_catchpoint): Add argument.
3262 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
3264 * target.c (update_current_target): Update.
3266 2014-02-19 Tom Tromey <tromey@redhat.com>
3268 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
3270 (target_remove_exec_catchpoint): Add argument.
3271 * target.c (debug_to_remove_exec_catchpoint): Add argument.
3272 (update_current_target): Update.
3273 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
3276 2014-02-19 Tom Tromey <tromey@redhat.com>
3278 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
3280 (target_insert_exec_catchpoint): Add argument.
3281 * target.c (debug_to_insert_exec_catchpoint): Add argument.
3282 (update_current_target): Update.
3283 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
3286 2014-02-19 Tom Tromey <tromey@redhat.com>
3288 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
3290 (target_remove_vfork_catchpoint): Add argument.
3291 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
3292 (update_current_target): Update.
3293 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
3296 2014-02-19 Tom Tromey <tromey@redhat.com>
3298 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
3300 (target_insert_vfork_catchpoint): Add argument.
3301 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
3302 (update_current_target): Update.
3303 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
3306 2014-02-19 Tom Tromey <tromey@redhat.com>
3308 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
3310 (target_remove_fork_catchpoint): Add argument.
3311 * target.c (debug_to_remove_fork_catchpoint): Add argument.
3312 (update_current_target): Update.
3313 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
3316 2014-02-19 Tom Tromey <tromey@redhat.com>
3318 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
3320 (target_insert_fork_catchpoint): Add argument.
3321 * target.c (debug_to_insert_fork_catchpoint): Add argument.
3322 (update_current_target): Update.
3323 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
3326 2014-02-19 Tom Tromey <tromey@redhat.com>
3328 * target.h (struct target_ops) <to_post_startup_inferior>: Add
3330 (target_post_startup_inferior): Add argument.
3331 * target.c (debug_to_post_startup_inferior): Add argument.
3332 (update_current_target): Update.
3333 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
3335 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
3337 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
3339 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
3341 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
3343 (super_post_startup_inferior): Likewise.
3344 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
3346 (super_post_startup_inferior): Likewise.
3347 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
3348 Add 'self' argument.
3349 (super_post_startup_inferior): Likewise.
3351 2014-02-19 Tom Tromey <tromey@redhat.com>
3353 * target.h (struct target_ops) <to_load>: Add argument.
3354 * target.c (target_load): Add argument.
3355 (debug_to_load): Add argument.
3356 (update_current_target): Update.
3357 * remote.c (remote_load): Add 'self' argument.
3358 * remote-sim.c (gdbsim_load): Add 'self' argument.
3359 * remote-mips.c (mips_load): Add 'self' argument.
3360 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
3361 * monitor.c (monitor_load): Add 'self' argument.
3362 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
3364 2014-02-19 Tom Tromey <tromey@redhat.com>
3366 * target.h (struct target_ops) <to_terminal_info>: Add argument.
3367 (target_terminal_info): Add argument.
3368 * target.c (debug_to_terminal_info): Add argument.
3369 (default_terminal_info): Likewise.
3370 * inflow.c (child_terminal_info): Add 'self' argument.
3371 * inferior.h (child_terminal_info): Add 'self' argument.
3372 * go32-nat.c (go32_terminal_info): Add 'self' argument.
3374 2014-02-19 Tom Tromey <tromey@redhat.com>
3376 * target.h (struct target_ops) <to_terminal_save_ours>: Add
3378 (target_terminal_save_ours): Add argument.
3379 * target.c (debug_to_terminal_save_ours): Add argument.
3380 (update_current_target): Update.
3381 * inflow.c (terminal_save_ours): Add 'self' argument.
3382 * inferior.h (terminal_save_ours): Add 'self' argument.
3384 2014-02-19 Tom Tromey <tromey@redhat.com>
3386 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
3387 (target_terminal_ours): Add argument.
3388 * target.c (debug_to_terminal_ours): Add argument.
3389 (update_current_target): Update.
3390 * remote.c (remote_terminal_ours): Add 'self' argument.
3391 (remote_close): Update.
3392 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
3393 * inflow.c (terminal_ours): Add 'self' argument.
3394 * inferior.h (terminal_ours): Add 'self' argument.
3395 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
3397 2014-02-19 Pedro Alves <palves@redhat.com>
3398 Tom Tromey <tromey@redhat.com>
3400 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
3402 (target_terminal_ours_for_output): Add argument.
3403 * target.c (debug_to_terminal_ours_for_output): Add argument.
3404 (update_current_target): Update.
3405 * inflow.c (terminal_ours_for_output): Add 'self' argument.
3406 * inferior.h (terminal_ours_for_output): Add 'self' argument.
3407 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
3409 2014-02-19 Tom Tromey <tromey@redhat.com>
3411 * target.h (struct target_ops) <to_terminal_inferior>: Add
3413 * target.c (target_terminal_inferior): Add argument.
3414 (update_current_target): Update.
3415 * remote.c (remote_terminal_inferior): Add 'self' argument.
3416 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
3417 * inflow.c (terminal_inferior): Add 'self' argument.
3418 * inferior.h (terminal_inferior): Add 'self' argument.
3419 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
3420 (go32_terminal_inferior): Add 'self' argument.
3422 2014-02-19 Tom Tromey <tromey@redhat.com>
3424 * target.h (struct target_ops) <to_terminal_init>: Add argument.
3425 (target_terminal_init): Add argument.
3426 * target.c (debug_to_terminal_init): Add argument.
3427 (update_current_target): Update.
3428 * inflow.c (terminal_init_inferior): Add 'self' argument.
3429 * inferior.h (terminal_init_inferior): Add 'self' argument.
3430 * go32-nat.c (go32_terminal_init): Add 'self' argument.
3431 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
3433 2014-02-19 Tom Tromey <tromey@redhat.com>
3435 * target.h (struct target_ops)
3436 <to_can_accel_watchpoint_condition>: Add argument.
3437 (target_can_accel_watchpoint_condition): Add argument.
3438 * target.c (debug_to_can_accel_watchpoint_condition): Add
3440 (update_current_target): Update.
3441 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
3444 2014-02-19 Tom Tromey <tromey@redhat.com>
3446 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3448 (target_region_ok_for_hw_watchpoint): Add argument.
3449 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
3450 (default_region_ok_for_hw_watchpoint): Add argument.
3451 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
3452 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
3454 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
3456 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
3458 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
3460 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
3462 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
3464 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
3465 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
3467 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3468 Add 'self' argument.
3470 2014-02-19 Tom Tromey <tromey@redhat.com>
3472 * target.h (struct target_ops) <to_insert_watchpoint>: Add
3474 (target_insert_watchpoint): Add argument.
3475 * target.c (debug_to_insert_watchpoint): Add argument.
3476 (update_current_target): Update.
3477 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
3478 * remote.c (remote_insert_watchpoint): Add 'self' argument.
3479 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
3480 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
3481 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
3482 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
3484 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
3485 (procfs_insert_hw_watchpoint): Add 'self' argument.
3486 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
3488 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
3490 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
3492 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
3493 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
3495 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
3498 2014-02-19 Tom Tromey <tromey@redhat.com>
3500 * target.h (struct target_ops) <to_remove_watchpoint>: Add
3502 (target_remove_watchpoint): Add argument.
3503 * target.c (debug_to_remove_watchpoint): Add argument.
3504 (update_current_target): Update.
3505 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
3506 * remote.c (remote_remove_watchpoint): Add 'self' argument.
3507 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
3508 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
3509 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
3510 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
3512 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
3513 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
3515 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
3517 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
3519 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
3520 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
3522 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
3525 2014-02-19 Tom Tromey <tromey@redhat.com>
3527 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
3529 (target_remove_hw_breakpoint): Add argument.
3530 * target.c (debug_to_remove_hw_breakpoint): Add argument.
3531 (update_current_target): Update.
3532 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
3533 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
3535 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
3536 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
3538 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
3541 2014-02-19 Tom Tromey <tromey@redhat.com>
3543 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
3545 (target_insert_hw_breakpoint): Add argument.
3546 * target.c (debug_to_insert_hw_breakpoint): Add argument.
3547 (update_current_target): Update.
3548 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
3549 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
3551 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
3552 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
3553 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
3555 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
3558 2014-02-19 Tom Tromey <tromey@redhat.com>
3560 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
3562 (target_can_use_hardware_watchpoint): Add argument.
3563 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
3564 (update_current_target): Update.
3565 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
3567 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
3569 * remote.c (remote_check_watch_resources): Add 'self' argument.
3570 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
3571 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
3573 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
3574 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
3576 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
3578 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
3580 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
3582 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
3584 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
3586 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
3587 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
3589 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
3592 2014-02-19 Tom Tromey <tromey@redhat.com>
3594 * target.h (struct target_ops) <to_post_attach>: Add argument.
3595 (target_post_attach): Add argument.
3596 * target.c (debug_to_post_attach): Add argument.
3597 (update_current_target): Update.
3598 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
3599 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
3600 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
3601 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
3602 * inf-child.c (inf_child_post_attach): Add 'self' argument.
3604 2014-02-19 Tom Tromey <tromey@redhat.com>
3606 * windows-nat.c (windows_close): Add 'self' argument.
3607 * tracepoint.c (tfile_close): Add 'self' argument.
3608 * target.h (struct target_ops) <to_close>: Add argument.
3609 * target.c (target_close): Add argument.
3610 (update_current_target): Update.
3611 * remote.c (remote_close): Add 'self' argument.
3612 * remote-sim.c (gdbsim_close): Add 'self' argument.
3613 * remote-mips.c (mips_close): Add 'self' argument.
3614 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
3615 * record-full.c (record_full_close): Add 'self' argument.
3616 * record-btrace.c (record_btrace_close): Add 'self' argument.
3617 * monitor.h (monitor_close): Add 'self' argument.
3618 * monitor.c (monitor_close): Add 'self' argument.
3619 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
3620 * linux-nat.c (linux_nat_close): Add argument.
3621 * go32-nat.c (go32_close): Add 'self' argument.
3622 * exec.c (exec_close_1): Add 'self' argument.
3623 * ctf.c (ctf_close): Add 'self' argument.
3624 * corelow.c (core_close): Add 'self' argument.
3625 (core_close_cleanup): Update.
3626 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
3627 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
3629 2014-02-19 Tom Tromey <tromey@redhat.com>
3631 * remote.c (remote_load): New function.
3632 (init_remote_ops): Use it.
3634 2014-02-19 Tom Tromey <tromey@redhat.com>
3636 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
3638 * common/linux-btrace.h (linux_supports_btrace): Update.
3639 * remote.c (remote_supports_btrace): Add "self" argument.
3640 * target-delegates.c: Rebuild.
3641 * target.c (target_supports_btrace): Remove.
3642 * target.h (struct target_ops) <to_supports_btrace>: Add
3643 target_ops argument.
3644 (target_supports_btrace): New define.
3646 2014-02-19 Tom Tromey <tromey@redhat.com>
3648 * record-full.c (record_full_beneath_to_resume_ops)
3649 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
3650 (record_full_beneath_to_wait)
3651 (record_full_beneath_to_store_registers_ops)
3652 (record_full_beneath_to_store_registers)
3653 (record_full_beneath_to_xfer_partial_ops)
3654 (record_full_beneath_to_xfer_partial)
3655 (record_full_beneath_to_insert_breakpoint_ops)
3656 (record_full_beneath_to_insert_breakpoint)
3657 (record_full_beneath_to_remove_breakpoint_ops)
3658 (record_full_beneath_to_remove_breakpoint)
3659 (record_full_beneath_to_stopped_by_watchpoint)
3660 (record_full_beneath_to_stopped_data_address)
3661 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
3662 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
3663 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
3664 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
3665 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
3666 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
3667 (tmp_to_stopped_data_address, tmp_to_async): Remove.
3668 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
3669 (record_full_resume, record_full_wait_1)
3670 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
3671 (record_full_store_registers, record_full_xfer_partial)
3672 (record_full_insert_breakpoint, record_full_remove_breakpoint)
3673 (record_full_async, record_full_core_xfer_partial): Use target
3675 * target-delegates.c: Rebuild.
3676 * target.c (current_xfer_partial): Remove.
3677 (update_current_target): Do not INHERIT or de_fault
3678 to_insert_breakpoint, to_remove_breakpoint,
3679 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
3680 to_is_async_p, to_async. Do not set to_xfer_partial field.
3681 (default_xfer_partial): Simplify.
3682 (current_xfer_partial): Remove.
3683 (target_wait, target_resume): Simplify.
3684 (find_default_can_async_p, find_default_is_async_p): Update.
3685 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
3686 to_xfer_partial, to_stopped_by_watchpoint,
3687 to_stopped_data_address.
3688 (target_store_registers): Simplify.
3689 (forward_target_remove_breakpoint)
3690 (forward_target_insert_breakpoint): Remove.
3691 (target_remove_breakpoint, target_insert_breakpoint)
3692 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
3693 * target.h (struct target_ops) <to_resume, to_wait,
3694 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
3695 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
3696 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
3698 (forward_target_remove_breakpoint)
3699 (forward_target_insert_breakpoint): Remove.
3700 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
3702 (record_btrace_insert_breakpoint): Delegate directly.
3704 2014-02-19 Tom Tromey <tromey@redhat.com>
3707 * target-delegates.c: New file.
3708 * target.c: Include target-delegates.c.
3709 (init_dummy_target): Call install_dummy_methods.
3710 (complete_target_initialization): Call install_delegators.
3711 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
3712 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
3713 * make-target-delegates: New file.
3715 2014-02-19 Tom Tromey <tromey@redhat.com>
3717 * record.c (find_record_target): Use find_target_at.
3718 * target.c (find_target_at): New function.
3719 * target.h (find_target_at): Declare.
3721 2014-02-19 Tom Tromey <tromey@redhat.com>
3723 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
3725 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
3727 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
3728 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
3730 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
3732 * linux-nat.c (save_sigtrap): Update.
3733 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
3734 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
3735 (linux_nat_close): Update.
3736 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
3738 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
3740 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
3741 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
3742 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
3743 (tmp_to_async): Add 'ops' argument.
3744 (record_full_stopped_by_watchpoint, record_full_async)
3745 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
3747 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
3748 (m32r_stopped_by_watchpoint): Add 'ops' argument.
3749 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
3750 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
3751 (remote_is_async_p, remote_async): Add 'ops' argument.
3752 (remote_stopped_data_address): Update.
3753 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
3754 * target.c (update_current_target)
3755 (find_default_can_async_p, find_default_is_async_p): Update.
3756 (init_dummy_target): Update.
3757 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
3758 * target.h (struct target_ops) <to_stopped_by_watchpoint,
3759 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
3760 (target_can_async_p, target_is_async_p, target_async)
3761 (target_stopped_by_watchpoint): Update.
3763 2014-02-19 Yao Qi <yao@codesourcery.com>
3766 * gdbarch.sh: Remove startup_gdbarch.
3767 * gdbarch.c: Regenerated.
3768 * gdbarch.h: Likewise.
3770 2014-02-17 Kevin Buettner <kevinb@redhat.com>
3772 * rl78-tdep.c (rl78_g10_register_name): New function.
3773 (rl78_return_value): Add g10 support.
3774 (rl78_gdbarch_init): Register rl78_g10_register_name for the
3777 2014-02-17 Doug Evans <xdje42@gmail.com>
3779 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
3780 (SUBDIR_GUILE_SRCS): Ditto.
3781 (scm-gsmob.o): Ditto.
3783 2014-02-17 Yao Qi <yao@codesourcery.com>
3785 * gnu-nat.c (ILL_RPC): Declare defined function.
3787 2014-02-17 Yao Qi <yao@codesourcery.com>
3789 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
3790 mach_msg_type_number_t.
3791 (gnu_write_inferior): Likewise.
3793 2014-02-17 Yao Qi <yao@codesourcery.com>
3795 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
3797 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
3798 (inf_validate_procs, inf_signal): Likewise.
3799 (S_exception_raise_request): Likewise.
3800 (do_mach_notify_dead_name): Likewise.
3801 (steal_exc_port): Likewise.
3802 (gnu_read_inferior): Change 'copy_count''s type to
3803 mach_msg_type_number_t.
3804 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
3807 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
3809 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
3810 flag. Adjust all users; in particular...
3811 (gnu_wait): ..., don't decrement its value in here...
3812 (gnu_create_inferior): ..., and instead set the flag in here,
3813 around the startup_inferior call, and call that one with
3814 START_INFERIOR_TRAPS_EXPECTED.
3816 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
3817 (ILL_RPC): ... new macro.
3818 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
3819 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
3820 (do_mach_notify_send_once, S_proc_setmsgport_reply)
3821 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
3822 functions with ILL_RPC macro.
3823 (S_proc_pid2task_reply, S_proc_task2pid_reply)
3824 (S_proc_task2proc_reply, S_proc_proc2task_reply)
3825 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
3826 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
3827 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
3828 (S_proc_getlogin_reply, S_proc_getsid_reply)
3829 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
3830 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
3831 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
3832 (S_proc_getnports_reply, S_proc_is_important_reply)
3833 (S_proc_get_code_reply): New stub functions, generated with
3836 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
3837 collected the type check structures.
3839 * reply_mig_hack.awk: Don't expect to see the auto keyword.
3841 2014-02-14 Doug Evans <dje@google.com>
3843 * target.c (target_write_partial): Fix result type.
3845 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
3847 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
3848 the proper offsets to access fpregset_t.
3850 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
3852 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
3853 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
3854 * h8300-tdep.c (setmachinelist): Remove global.
3855 * hppa-tdep.c (hppa_sigtramp): Remove global.
3856 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
3857 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
3858 * ravenscar-thread.c (update_target_observer): Remove global.
3859 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
3861 2014-02-12 Tom Tromey <tromey@redhat.com>
3863 * common/rsp-low.c: Update comments.
3864 * common/rsp-low.h: Update comments.
3866 2014-02-12 Tom Tromey <tromey@redhat.com>
3868 * common/rsp-low.c (convert_ascii_to_int): Remove.
3869 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
3871 2014-02-12 Tom Tromey <tromey@redhat.com>
3873 * common/rsp-low.h (unhexify): Don't declare.
3874 * common/rsp-low.c (unhexify): Remove.
3876 2014-02-12 Tom Tromey <tromey@redhat.com>
3878 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
3879 * common/rsp-low.c (convert_int_to_ascii): Remove.
3881 2014-02-12 Tom Tromey <tromey@redhat.com>
3883 * common/rsp-low.h (hexify): Don't declare.
3884 * common/rsp-low.c (hexify): Remove.
3886 2014-02-12 Tom Tromey <tromey@redhat.com>
3888 * common/rsp-low.c (hexify): Never take strlen of argument.
3890 2014-02-12 Tom Tromey <tromey@redhat.com>
3892 * common/rsp-low.c (bin2hex): Never take strlen of argument.
3893 * remote.c (extended_remote_run, remote_rcmd)
3894 (remote_download_trace_state_variable, remote_save_trace_data)
3895 (remote_set_trace_notes): Update.
3896 * tracepoint.c (encode_source_string, tfile_write_status)
3897 (tfile_write_uploaded_tsv): Update.
3899 2014-02-12 Tom Tromey <tromey@redhat.com>
3901 * tracepoint.c: Include rsp-low.h.
3902 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
3903 * remote.c: Include rsp-low.h.
3904 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
3905 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
3906 (remote_unescape_input): Move to common/rsp-low.c.
3907 * common/rsp-low.h: New file.
3908 * common/rsp-low.c: New file.
3909 * Makefile.in (SFILES): Add common/rsp-low.c.
3910 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
3911 (COMMON_OBS): Add rsp-low.o.
3912 (rsp-low.o): New target.
3914 2014-02-12 Tom Tromey <tromey@redhat.com>
3916 * utils.h: Include print-utils.h.
3917 (host_address_to_string, plongest, pulongest, phex, phex_nz)
3918 (int_string, core_addr_to_string, core_addr_to_string_nz)
3919 (hex_string, hex_string_custom): Don't declare.
3920 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
3921 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
3922 (hex_string_custom, int_string, core_addr_to_string)
3923 (core_addr_to_string_nz, host_address_to_string): Move to
3924 common/print-utils.c.
3925 * common/print-utils.h: New file.
3926 * common/print-utils.c: New file
3927 * Makefile.in (SFILES): Add common/print-utils.c.
3928 (HFILES_NO_SRCDIR): Add common/print-utils.h.
3929 (COMMON_OBS): Add print-utils.o.
3930 (print-utils.o): New target.
3932 2014-02-12 Tom Tromey <tromey@redhat.com>
3934 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
3936 2014-02-12 Mark Kettenis <kettenis@gnu.org>
3938 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
3940 2014-02-12 Mark Kettenis <kettenis@gnu.org>
3942 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
3943 if a PT_IO ptrace request returns sucessfully but indicates that 0
3944 bytes were transferred.
3946 2014-02-12 Pedro Alves <palves@redhat.com>
3947 Kevin Buettner <kevinb@redhat.com>
3949 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
3950 TYPE_INSTANCE_FLAG_CODE_SPACE.
3952 2014-02-12 Pedro Alves <palves@redhat.com>
3954 * h8300-tdep.c (pseudo_from_raw_register)
3955 (raw_from_pseudo_register): New functions.
3956 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
3959 2014-02-12 Pedro Alves <palves@redhat.com>
3961 * h8300-tdep.c (h8300_register_sim_regno): New function.
3962 (h8300_gdbarch_init): Install h8300_register_sim_regno as
3963 gdbarch_register_sim_regno hook.
3965 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
3967 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
3969 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
3971 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
3973 2014-02-12 Mark Kettenis <kettenis@gnu.org>
3975 * obsd-tdep.h (obsd_init_abi): New prototype.
3976 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
3977 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
3978 (obsd_init_abi): New functions.
3979 * i386obsd-tdep.c: Include "obsd-tdep.h".
3980 (i386obsd_init_abi): Call obsd_init_abi.
3981 * amd64obsd-tdep.c: Include "obsd-tdep.h".
3982 (amd64obsd_init_abi): Call obsd_init_abi.
3983 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
3984 obsd-tdep.c to gdb_target_obs.
3986 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
3988 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
3989 double float arguments to 16-byte in the argument slots.
3991 2014-02-11 Doug Evans <xdje42@gmail.com>
3993 * configure.ac: Don't crash if pkg-config is not found and guile
3994 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
3996 * configure: Regenerate.
3998 2014-02-11 Yao Qi <yao@codesourcery.com>
4000 * aix-thread.c (aix_thread_xfer_partial): Update comments.
4001 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
4002 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
4003 * gnu-nat.c (gnu_xfer_memory): Likewise.
4004 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4005 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4006 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4007 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4009 2014-02-11 Yao Qi <yao@codesourcery.com>
4011 * target.h (enum target_xfer_error): Rename to ...
4012 (enum target_xfer_status): ... it. New. All users updated.
4013 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
4015 (TARGET_XFER_STATUS_ERROR_P): New macro.
4016 (target_xfer_error_to_string): Remove declaration.
4017 (target_xfer_status_to_string): Declare.
4018 (target_xfer_partial_ftype): Adjust it.
4019 (struct target_ops) <to_xfer_partial>: Return
4020 target_xfer_status. Add argument xfered_len. Update
4022 * target.c (target_xfer_error_to_string): Rename to ...
4023 (target_xfer_status_to_string): ... it. New. All callers
4025 (target_read_live_memory): Likewise. Call target_xfer_partial
4026 instead of target_read.
4027 (memory_xfer_live_readonly_partial): Return
4028 target_xfer_status. Add argument xfered_len.
4029 (raw_memory_xfer_partial): Likewise.
4030 (memory_xfer_partial_1): Likewise.
4031 (memory_xfer_partial): Likewise.
4032 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
4033 properly. Update debug message.
4034 (default_xfer_partial, current_xfer_partial): Likewise.
4035 (target_write_partial): Likewise.
4036 (target_read_partial): Likewise. All callers updated.
4037 (read_whatever_is_readable): Likewise.
4038 (target_write_with_progress): Likewise.
4039 (target_read_alloc_1): Likewise.
4041 * aix-thread.c (aix_thread_xfer_partial): Likewise.
4042 * auxv.c (procfs_xfer_auxv): Likewise.
4043 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
4044 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4045 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4046 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
4047 * corefile.c (read_memory): Adjust.
4048 * corelow.c (core_xfer_partial): Likewise.
4049 * ctf.c (ctf_xfer_partial): Likewise.
4050 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
4052 (darwin_xfer_partial): Likewise.
4053 * exec.c (section_table_xfer_memory_partial): Likewise. All
4055 (exec_xfer_partial): Likewise.
4056 * exec.h (section_table_xfer_memory_partial): Update
4058 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
4060 (gnu_xfer_partial): Likewise.
4061 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
4062 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
4063 (ia64_hpux_xfer_solib_got): Likewise.
4064 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
4065 type of 'partial_len' to ULONGEST.
4066 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4067 * linux-nat.c (linux_xfer_siginfo ): Likewise.
4068 (linux_nat_xfer_partial): Likewise.
4069 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
4070 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
4071 * monitor.c (monitor_xfer_memory): Likewise.
4072 (monitor_xfer_partial): Likewise.
4073 * procfs.c (procfs_xfer_partial): Likewise.
4074 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4075 * record-full.c (record_full_xfer_partial): Likewise.
4076 (record_full_core_xfer_partial): Likewise.
4077 * remote-sim.c (gdbsim_xfer_memory): Likewise.
4078 (gdbsim_xfer_partial): Likewise.
4079 * remote.c (remote_write_bytes_aux): Likewise. All callers
4081 (remote_write_bytes, remote_read_bytes): Likewise. All
4083 (remote_flash_erase): Likewise. All callers updated.
4084 (remote_write_qxfer): Likewise. All callers updated.
4085 (remote_read_qxfer): Likewise. All callers updated.
4086 (remote_xfer_partial): Likewise.
4087 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4088 (rs6000_xfer_shared_libraries): Likewise.
4089 * sol-thread.c (sol_thread_xfer_partial): Likewise.
4090 (sol_thread_xfer_partial): Likewise.
4091 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4092 (sparc_xfer_partial): Likewise.
4093 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
4095 (spu_xfer_partial): Likewise.
4096 * spu-multiarch.c (spu_xfer_partial): Likewise.
4097 * tracepoint.c (tfile_xfer_partial): Likewise.
4098 * windows-nat.c (windows_xfer_memory): Likewise.
4099 (windows_xfer_shared_libraries): Likewise.
4100 (windows_xfer_partial): Likewise.
4101 * valprint.c: Replace 'target_xfer_error' with
4102 'target_xfer_status' in comments.
4104 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
4106 Checked in by Joel Brobecker <brobecker@adacore.com>.
4107 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
4109 2014-02-11 Joel Brobecker <brobecker@adacore.com>
4111 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
4112 function parameters.
4114 2014-02-10 Will Newton <will.newton@linaro.org>
4116 * elfread.c (elf_rel_plt_read): Look for a .got section if
4117 looking up .got.plt fails.
4118 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
4119 on address passed to elf_gnu_ifunc_record_cache.
4120 (elf_gnu_ifunc_resolve_addr): Likewise.
4121 (elf_gnu_ifunc_resolver_return_stop): Likewise.
4123 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
4125 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
4126 (X_RETTURN): New macro.
4127 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
4129 * sparc64-tdep.c (sparc64_init_abi): Hook
4130 sparc_in_function_epilogue_p.
4132 2014-02-10 Gary Benson <gbenson@redhat.com>
4134 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4135 Rename name_matcher to symbol_matcher.
4137 2014-02-10 Gary Benson <gbenson@redhat.com>
4139 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4140 Use expand_symtabs_file_matcher_ftype and
4141 expand_symtabs_symbol_matcher_ftype.
4143 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4145 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
4146 (struct ada_symbol_cache): New.
4147 (ada_free_symbol_cache): Forward declare.
4148 (struct ada_pspace_data): New.
4149 (ada_pspace_data_handle): New static global.
4150 (get_ada_pspace_data, ada_pspace_data_cleanup)
4151 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
4152 (cache_space, cache): Delete, now folded inside struct
4154 (ada_get_symbol_cache): New function.
4155 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
4157 (_initialize_ada_language): Remove initialization of cache_space.
4158 Move call to observer_attach_inferior_exit up, grouping it
4159 with the other observer registrations inside this function.
4160 Rename command to be more general. Add call to
4161 register_program_space_data_with_cleanup.
4163 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4165 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
4166 ada_new_objfile_observer.
4167 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
4168 (_initialize_tasks): Update uses of ada_new_objfile_observer
4169 and ada_tasks_normal_stop_observer.
4171 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4173 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
4174 returned by the 'Length attribute to integer.
4176 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4178 * ada-lang.c (_initialize_ada_language): Initialize
4179 cache_space obstack.
4181 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4183 * ada-lang.c (HASH_SIZE): New macro.
4184 (struct cache_entry): New type.
4185 (cache_space, cache): New static globals.
4186 (ada_clear_symbol_cache, find_entry): New functions.
4187 (lookup_cached_symbol, cache_symbol): Implement.
4188 (ada_new_objfile_observer, ada_free_objfile_observer): New.
4189 (_initialize_ada_language): Attach ada_new_objfile_observer
4190 and ada_free_objfile_observer.
4192 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4194 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
4195 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
4196 struct block * parameter.
4197 (ada_lookup_symbol_list_worker): Constify local variable "block".
4198 Remove cast which is no longer necessary.
4200 2014-02-10 Doug Evans <xdje42@gmail.com>
4202 Add Guile as an extension language.
4203 * NEWS: Mention Guile scripting.
4204 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
4205 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
4206 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
4207 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
4208 (CLIBS): Add GUILE_LIBS.
4209 (install-guile): New rule.
4210 (guile.o): New rule.
4211 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
4212 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
4213 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
4214 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
4215 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
4216 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
4217 (scm-type.o, scm-utils.o, scm-value.o): New rules.
4218 * configure.ac: New option --with-guile.
4219 * configure: Regenerate.
4220 * config.in: Regenerate.
4221 * auto-load.c: Remove #include "python/python.h". Add #include
4222 "gdb/section-scripts.h".
4223 (source_section_scripts): Handle Guile scripts.
4224 (_initialize_auto_load): Add name of Guile objfile script to
4225 scripts-directory help text.
4226 * breakpoint.c (condition_command): Tweak comment to include Scheme.
4227 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
4228 (struct breakpoint): New member scm_bp_object.
4229 * defs.h (enum command_control_type): New value guile_control.
4230 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
4232 (show_user): Update comment.
4233 (_initialize_cli_cmds): Update help text for "show user". Update help
4234 text for max-user-call-depth.
4235 * cli/cli-script.c: Remove #include "python/python.h". Add #include
4237 (multi_line_command_p): Add guile_control.
4238 (print_command_lines): Handle guile_control.
4239 (execute_control_command, recurse_read_control_structure): Ditto.
4240 (process_next_line): Recognize "guile" commands.
4241 * disasm.c (gdb_disassemble_info): Make non-static.
4242 * disasm.h: #include "dis-asm.h".
4243 (struct gdbarch): Add forward decl.
4244 (gdb_disassemble_info): Declare.
4245 * extension.c: #include "guile/guile.h".
4246 (extension_languages): Add guile.
4247 (get_ext_lang_defn): Handle EXT_LANG_GDB.
4248 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
4249 * gdbtypes.c (get_unsigned_type_max): New function.
4250 (get_signed_type_minmax): New function.
4251 * gdbtypes.h (get_unsigned_type_max): Declare.
4252 (get_signed_type_minmax): Declare.
4253 * guile/README: New file.
4254 * guile/guile-internal.h: New file.
4255 * guile/guile.c: New file.
4256 * guile/guile.h: New file.
4257 * guile/scm-arch.c: New file.
4258 * guile/scm-auto-load.c: New file.
4259 * guile/scm-block.c: New file.
4260 * guile/scm-breakpoint.c: New file.
4261 * guile/scm-disasm.c: New file.
4262 * guile/scm-exception.c: New file.
4263 * guile/scm-frame.c: New file.
4264 * guile/scm-gsmob.c: New file.
4265 * guile/scm-iterator.c: New file.
4266 * guile/scm-lazy-string.c: New file.
4267 * guile/scm-math.c: New file.
4268 * guile/scm-objfile.c: New file.
4269 * guile/scm-ports.c: New file.
4270 * guile/scm-pretty-print.c: New file.
4271 * guile/scm-safe-call.c: New file.
4272 * guile/scm-string.c: New file.
4273 * guile/scm-symbol.c: New file.
4274 * guile/scm-symtab.c: New file.
4275 * guile/scm-type.c: New file.
4276 * guile/scm-utils.c: New file.
4277 * guile/scm-value.c: New file.
4278 * guile/lib/gdb.scm: New file.
4279 * guile/lib/gdb/boot.scm: New file.
4280 * guile/lib/gdb/experimental.scm: New file.
4281 * guile/lib/gdb/init.scm: New file.
4282 * guile/lib/gdb/iterator.scm: New file.
4283 * guile/lib/gdb/printing.scm: New file.
4284 * guile/lib/gdb/types.scm: New file.
4285 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
4286 (VPATH): Add $(GUILE_SRCDIR).
4287 (GUILE_DIR): New variable.
4288 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
4289 (all): Add stamp-guile dependency.
4290 (stamp-guile): New rule.
4291 (clean-guile, install-guile, uninstall-guile): New rules.
4292 (install-only): Add install-guile dependency.
4293 (uninstall): Add uninstall-guile dependency.
4294 (clean): Add clean-guile dependency.
4296 2014-02-09 Doug Evans <xdje42@gmail.com>
4298 Revert this patch (which I approved, mea culpa).
4300 2014-02-08 Mark Kettenis <kettenis@gnu.org>
4302 * Makefile.in (all-lib): Remove.
4303 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
4305 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4307 Fix Python stack corruption.
4308 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
4311 2014-02-08 Mark Kettenis <kettenis@gnu.org>
4313 * Makefile.in (all-lib): Remove.
4314 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
4316 2014-02-07 Doug Evans <dje@google.com>
4318 * extension-priv.h (extension_language_script_ops): Add comment.
4319 (extension_language_ops): Add comment.
4320 (active_ext_lang_state): Fix typo in comment.
4322 2014-02-07 Pedro Alves <palves@redhat.com>
4324 PR breakpoints/16292
4325 * infrun.c (handle_signal_stop) <signal arrives while stepping
4326 over a breakpoint>: Switch back to the stepping thread.
4328 2014-02-07 Yao Qi <yao@codesourcery.com>
4330 * target.c (target_xfer_partial): Return zero if LEN is zero.
4332 2014-02-07 Yao Qi <yao@codesourcery.com>
4334 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
4335 (ld_so_xfer_auxv): Likewise.
4336 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4337 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4338 * corelow.c (core_xfer_partial): Likewise.
4339 * ctf.c (ctf_xfer_partial): Likewise.
4340 * darwin-nat.c (darwin_read_dyld_info): Likewise.
4341 (darwin_xfer_partial): Likewise.
4342 * exec.c (exec_xfer_partial): Likewise.
4343 * gnu-nat.c (gnu_xfer_partial): Likewise.
4344 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
4345 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4346 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4347 * linux-nat.c (linux_xfer_siginfo): Likewise.
4348 (linux_proc_xfer_spu): Likewise.
4349 * procfs.c (procfs_xfer_partial): Likewise.
4350 * record-full.c (record_full_xfer_partial): Likewise.
4351 (record_full_core_xfer_partial): Likewise.
4352 * remote-sim.c (gdbsim_xfer_partial): Likewise.
4353 * remote.c (remote_write_qxfer): Likewise.
4354 (remote_write_qxfer, remote_read_qxfer): Likewise.
4355 (remote_xfer_partial): Likewise.
4356 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4357 (rs6000_xfer_shared_libraries): Likewise.
4358 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4359 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4360 (spu_xfer_partial): Likewise.
4361 * target.c (memory_xfer_partial_1): Likewise.
4362 * tracepoint.c (tfile_xfer_partial): Likewise.
4363 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
4364 (windows_xfer_partial): Likewise.
4366 2014-02-07 Yao Qi <yao@codesourcery.com>
4368 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
4370 (core_xfer_shared_libraries_aix): Likewise.
4371 * gdbarch.c, gdbarch.h: Regenerated.
4372 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
4373 ULONGEST. Change 'len_avail' type to ULONGEST.
4374 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
4375 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
4377 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
4379 2014-02-07 Yao Qi <yao@codesourcery.com>
4381 * corefile.c (memory_error): Get 'exception' from ERR and pass
4382 'exception' to throw_error.
4384 2014-02-06 Doug Evans <xdje42@gmail.com>
4386 * configure.ac (libpython checking): Remove all but python.o from
4387 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
4388 * configure: Regenerate.
4390 * Makefile.in (SFILES): Add extension.c.
4391 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
4392 (COMMON_OBS): Add extension.o.
4393 * extension.h: New file.
4394 * extension-priv.h: New file.
4395 * extension.c: New file.
4397 * python/python-internal.h: #include "extension.h".
4398 (gdbpy_auto_load_enabled): Declare.
4399 (gdbpy_apply_val_pretty_printer): Declare.
4400 (gdbpy_apply_frame_filter): Declare.
4401 (gdbpy_preserve_values): Declare.
4402 (gdbpy_breakpoint_cond_says_stop): Declare.
4403 (gdbpy_breakpoint_has_cond): Declare.
4404 (void source_python_script_for_objfile): Delete.
4405 * python/python.c: #include "extension-priv.h".
4406 Delete inclusion of "observer.h".
4407 (extension_language_python): Moved here and renamed from
4408 script_language_python in py-auto-load.c.
4409 Redefined to be of type extension_language_defn.
4410 (python_extension_script_ops): New global.
4411 (python_extension_ops): New global.
4412 (struct python_env): New member previous_active.
4413 (restore_python_env): Call restore_active_ext_lang.
4414 (ensure_python_env): Call set_active_ext_lang.
4415 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
4417 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
4419 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
4421 (gdbpy_eval_from_control_command): Renamed from
4422 eval_python_from_control_command, made static. New arg extlang.
4423 (gdbpy_source_script) Renamed from source_python_script, made static.
4425 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
4426 result to int. New arg extlang.
4427 (gdbpy_source_objfile_script): Renamed from
4428 source_python_script_for_objfile, made static. New arg extlang.
4429 (gdbpy_start_type_printers): Renamed from start_type_printers, made
4430 static. New args extlang, extlang_printers. Change result type to
4432 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
4433 static. New arg extlang. Rename arg printers to extlang_printers
4434 and change type to ext_lang_type_printers *.
4435 (gdbpy_free_type_printers): Renamed from free_type_printers, made
4436 static. Replace argument arg with extlang, extlang_printers.
4437 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
4438 (!HAVE_PYTHON, source_python_script): Delete.
4439 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
4440 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
4441 (!HAVE_PYTHON, start_type_printers): Delete.
4442 (!HAVE_PYTHON, apply_type_printers): Delete.
4443 (!HAVE_PYTHON, free_type_printers): Delete.
4444 (_initialize_python): Delete call to observer_attach_before_prompt.
4445 (finalize_python): Set/restore active extension language.
4446 (gdbpy_finish_initialization) Renamed from
4447 finish_python_initialization, made static. New arg extlang.
4448 (gdbpy_initialized): New function.
4449 * python/python.h: #include "extension.h". Delete #include
4450 "value.h", "mi/mi-cmds.h".
4451 (extension_language_python): Declare.
4452 (GDBPY_AUTO_FILE_NAME): Delete.
4453 (enum py_bt_status): Moved to extension.h and renamed to
4455 (enum frame_filter_flags): Moved to extension.h.
4456 (enum py_frame_args): Moved to extension.h and renamed to
4457 ext_lang_frame_args.
4458 (finish_python_initialization): Delete.
4459 (eval_python_from_control_command): Delete.
4460 (source_python_script): Delete.
4461 (apply_val_pretty_printer): Delete.
4462 (apply_frame_filter): Delete.
4463 (preserve_python_values): Delete.
4464 (gdbpy_script_language_defn): Delete.
4465 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
4466 (start_type_printers, apply_type_printers, free_type_printers): Delete.
4468 * auto-load.c: #include "extension.h".
4469 (GDB_AUTO_FILE_NAME): Delete.
4470 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
4471 (script_language_gdb): Delete, moved to extension.c and renamed to
4472 extension_language_gdb.
4473 (source_gdb_script_for_objfile): Delete.
4474 (auto_load_pspace_info): New member unsupported_script_warning_printed.
4475 (loaded_script): Change type of language member to
4476 struct extension_language_defn *.
4477 (init_loaded_scripts_info): Initialize
4478 unsupported_script_warning_printed.
4479 (maybe_add_script): Make static. Change type of language arg to
4480 struct extension_language_defn *.
4481 (clear_section_scripts): Reset unsupported_script_warning_printed.
4482 (auto_load_objfile_script_1): Rewrite to use extension language API.
4483 (auto_load_objfile_script): Make public. Remove support-compiled-in
4484 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
4485 (source_section_scripts): Rewrite to use extension language API.
4486 (load_auto_scripts_for_objfile): Rewrite to use
4487 auto_load_scripts_for_objfile.
4488 (collect_matching_scripts_data): Change type of language member to
4489 struct extension_language_defn *.
4490 (auto_load_info_scripts): Change type of language arg to
4491 struct extension_language_defn *.
4492 (unsupported_script_warning_print): New function.
4493 (script_not_found_warning_print): Make static.
4494 (_initialize_auto_load): Rewrite construction of scripts-directory
4496 * auto-load.h (struct objfile): Add forward decl.
4497 (struct script_language): Delete.
4498 (struct auto_load_pspace_info): Add forward decl.
4499 (struct extension_language_defn): Add forward decl.
4500 (maybe_add_script): Delete.
4501 (auto_load_objfile_script): Declare.
4502 (script_not_found_warning_print): Delete.
4503 (auto_load_info_scripts): Update prototype.
4504 (auto_load_gdb_scripts_enabled): Declare.
4505 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
4506 auto_load_python_scripts_enabled and made public.
4507 (script_language_python): Delete, moved to python.c.
4508 (gdbpy_script_language_defn): Delete.
4509 (info_auto_load_python_scripts): Update to use
4510 extension_language_python.
4512 * breakpoint.c (condition_command): Replace call to
4513 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
4514 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
4515 with call to breakpoint_ext_lang_cond_says_stop.
4516 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
4517 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
4518 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
4519 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
4521 (local_setattro): Print name of extension language with existing
4524 * valprint.c (val_print, value_print): Update to call
4525 apply_ext_lang_val_pretty_printer.
4526 * cp-valprint.c (cp_print_value): Update call to
4527 apply_ext_lang_val_pretty_printer.
4528 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
4529 (gdbpy_apply_val_pretty_printer): Renamed from
4530 apply_val_pretty_printer. New arg extlang.
4531 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
4533 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
4534 extension language API.
4535 * cli/cli-script.c (execute_control_command): Update to call
4536 eval_ext_lang_from_control_command.
4538 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
4539 enum ext_lang_bt_status values. Update call to
4540 apply_ext_lang_frame_filter.
4541 (mi_cmd_stack_list_locals): Ditto.
4542 (mi_cmd_stack_list_args): Ditto.
4543 (mi_cmd_stack_list_variables): Ditto.
4544 * mi/mi-main.c: Delete #include "python/python-internal.h".
4545 Add #include "extension.h".
4546 (mi_cmd_list_features): Replace reference to python internal variable
4547 gdb_python_initialized with call to ext_lang_initialized_p.
4549 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
4550 Update to use enum ext_lang_frame_args. Update to call
4551 apply_ext_lang_frame_filter.
4552 * python/py-framefilter.c (extract_sym): Update to use enum
4554 (extract_value, py_print_type, py_print_value): Ditto.
4555 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
4556 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
4557 (py_print_frame): Ditto.
4558 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
4559 New arg extlang. Update to use enum ext_lang_bt_status.
4561 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
4562 finish_python_initialization. Replace with call to
4563 finish_ext_lang_initialization.
4565 * typeprint.c (do_free_global_table): Update to call
4566 free_ext_lang_type_printers.
4567 (create_global_typedef_table): Update to call
4568 start_ext_lang_type_printers.
4569 (find_global_typedef): Update to call apply_ext_lang_type_printers.
4570 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
4571 (type_print_options): Change type of global_printers from "void *"
4572 to "struct ext_lang_type_printers *".
4574 * value.c (preserve_values): Update to call preserve_ext_lang_values.
4575 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
4576 (gdbpy_preserve_values): Renamed from preserve_python_values.
4578 (!HAVE_PYTHON, preserve_python_values): Delete.
4580 * utils.c (quit_flag): Delete, moved to extension.c.
4581 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
4584 * eval.c: Delete #include "python/python.h".
4585 * main.c: Delete #include "python/python.h".
4587 * defs.h: Update comment.
4589 2014-02-06 Joel Brobecker <brobecker@adacore.com>
4593 2014-02-05 Mark Kettenis <kettenis@gnu.org>
4595 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
4598 2014-02-05 Yao Qi <yao@codesourcery.com>
4600 * remote.c (remote_pass_signals): Remove local 'buf' and use
4602 (remote_program_signals): Likewise.
4604 2014-02-05 Yao Qi <yao@codesourcery.com>
4606 * ctf.c: Include "inferior.h" and "gdbthread.h".
4607 (CTF_PID): A new macro.
4608 (ctf_open): Call inferior_appeared and add_thread_silent.
4609 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
4610 (ctf_thread_alive): New function.
4611 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
4613 2014-02-05 Yao Qi <yao@codesourcery.com>
4617 2013-05-24 Yao Qi <yao@codesourcery.com>
4619 * tracepoint.c (TFILE_PID): Remove.
4620 (tfile_open): Don't add thread and inferior.
4621 (tfile_close): Don't set 'inferior_ptid'. Don't call
4622 exit_inferior_silent.
4623 (tfile_thread_alive): Remove.
4624 (init_tfile_ops): Don't set field 'to_thread_alive' of
4627 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
4629 * remote.c (remote_start_remote): Call remote_check_symbols even
4630 if only symbol-file (not file) has been given.
4632 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4634 * gdbarch.sh (skip_entrypoint): New callback.
4635 * gdbarch.c, gdbarch.h: Regenerate.
4636 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
4637 * infrun.c (fill_in_stop_func): Likewise.
4638 * ppc-linux-tdep.c: Include "elf/ppc64.h".
4639 (ppc_elfv2_elf_make_msymbol_special): New function.
4640 (ppc_elfv2_skip_entrypoint): Likewise.
4641 (ppc_linux_init_abi): Install them for ELFv2.
4643 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4645 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
4646 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
4647 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
4648 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
4649 structures returned in GPRs.
4651 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4653 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
4654 offset to the stack parameter list for the ELFv2 ABI.
4656 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4658 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
4659 set_gdbarch_convert_from_func_ptr_addr and
4660 set_gdbarch_elf_make_msymbol_special for ELFv1.
4661 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
4662 function descriptors on ELFv1.
4663 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
4664 set up r12 at function entry.
4666 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4668 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
4669 (struct gdbarch_tdep): New member elf_abi.
4671 * rs6000-tdep.c: Include "elf/ppc64.h".
4672 (rs6000_gdbarch_init): Detect ELF ABI version.
4674 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4676 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
4677 within a register pair holding a DFP 128-bit value on little-endian.
4678 (ppc64_sysv_abi_return_value_base): Likewise.
4679 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
4680 (dfp_pseudo_register_write): Likewise.
4682 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4684 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
4685 offset on little-endian when passing _Decimal32.
4686 (ppc64_sysv_abi_return_value_base): Likewise for return values.
4688 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4690 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
4691 of the overlapped FP register within the VSX register on little-
4693 (efpr_pseudo_register_write): Likewise.
4695 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4697 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
4698 offset on little-endian when passing small structures.
4700 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4702 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
4703 (struct ppc64_sysv_argpos): New data structure.
4704 (ppc64_sysv_abi_push_float): Remove.
4705 (ppc64_sysv_abi_push_val): New function.
4706 (ppc64_sysv_abi_push_integer): Likewise.
4707 (ppc64_sysv_abi_push_freg): Likewise.
4708 (ppc64_sysv_abi_push_vreg): Likewise.
4709 (ppc64_sysv_abi_push_param): Likewise.
4710 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
4711 (ppc64_sysv_abi_return_value_base): New function.
4712 (ppc64_sysv_abi_return_value): Refactor to use it.
4714 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4716 * NEWS: Document new target powerpc64le-*-linux*.
4718 2014-02-04 Mark Kettenis <kettenis@gnu.org>
4720 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
4721 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
4723 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
4724 register set used in ELF core dumps. Add floating-point register set.
4726 2014-02-03 Kevin Buettner <kevinb@redhat.com>
4728 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
4729 dwarf2_to_gdb[] table using symbolic constants. Adjust
4730 penultimate entry from number representing the PC register
4731 to symbolic constant representing the MDR register. Add
4732 constant for the PC register to the end of the table.
4734 2014-02-03 Mark Kettenis <kettenis@gnu.org>
4736 * bsd-kvm.c: Include <sys/param.h>
4738 2014-02-03 Mark Kettenis <kettenis@gnu.org>
4740 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
4742 2014-01-31 Joel Brobecker <brobecker@adacore.com>
4744 * ada-lang.h (clear_ada_sym_cache): Delete.
4746 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
4748 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
4750 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
4752 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
4753 the sigreturn register save area only if the syscall is
4756 2014-01-29 Joel Brobecker <brobecker@adacore.com>
4758 * valops.c (value_slice): Minor reformatting.
4760 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
4762 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
4764 2014-01-28 Joel Brobecker <brobecker@adacore.com>
4766 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
4768 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
4769 (ada_ignore_descriptive_types_p): New static global.
4770 (find_parallel_type_by_descriptive_type): Return immediately
4771 if ada_ignore_descriptive_types_p is set.
4772 (_initialize_ada_language): Register new commands "maintenance
4773 set ada", "maintenance show ada", "maintenance set ada
4774 ignore-descriptive-types" and "maintenance show ada
4775 ignore-descriptive-types".
4776 * NEWS: Add entry for new "maint ada set/show
4777 ignore-descriptive-types" commands.
4779 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
4781 * record-btrace.c (record_btrace_close): Call btrace_teardown
4784 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4786 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
4789 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4791 * ada-typeprint (type_is_full_subrange_of_target_type):
4793 (print_range): Add parameter bounds_prefered_p. If not set,
4794 try printing range types using the name of their base type.
4795 (print_range_type): Add parameter bounds_prefered_p.
4796 Use it in call to print_range.
4797 (print_array_type, ada_print_type): Update calls to print_range
4798 and print_range_type.
4800 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4802 * ada-typeprint.c (print_array_type, print_choices, print_range)
4803 (print_range_bound, print_dynamic_range_bound, print_range_type):
4806 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4808 * ada-typeprint.c (print_range): Add missing empty line
4809 after local declaration.
4811 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4813 * ada-valprint.c (print_optional_low_bound): Get index_type's
4814 target type for as long as it is a TYPE_CODE_RANGE.
4816 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4818 * procfs.c (procfs_make_note_section): Remove assertion and
4821 2014-01-24 Yao Qi <yao@codesourcery.com>
4823 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
4824 * corelow.c (get_core_siginfo): Likewise.
4826 2014-01-24 Yao Qi <yao@codesourcery.com>
4828 * remote.c (remote_write_bytes_aux): Change type of 'len' to
4829 ULONGEST. Don't check 'len' is negative.
4830 (remote_write_bytes): Change type of 'len' to ULONGEST.
4832 2014-01-23 Tom Tromey <tromey@redhat.com>
4835 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
4836 Handle exception from frame.block.
4837 (FrameVars.fetch_frame_locals): Likewise.
4839 2014-01-23 Tom Tromey <tromey@redhat.com>
4842 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
4843 on a NULL pointer. Move "goto error" to correct place.
4845 2014-01-23 Tom Tromey <tromey@redhat.com>
4848 * python/py-framefilter.c (apply_frame_filter): Call
4849 ensure_python_env after computing gdbarch.
4851 2014-01-23 Yao Qi <yao@codesourcery.com>
4853 * target.c (raw_memory_xfer_partial): Change argument type
4854 from void * to gdb_byte *.
4855 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
4857 2014-01-22 Doug Evans <dje@google.com>
4859 New gdbserver option --debug-format=timestamp.
4862 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
4864 * syscalls/s390x-linux.xml: New file.
4865 * syscalls/s390-linux.xml: New file.
4866 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
4867 (XML_SYSCALL_FILENAME_S390X): Likewise.
4868 (op_svc): New enum value for SVC opcode.
4869 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
4870 (s390_linux_get_syscall_number): New function.
4871 (s390_gdbarch_init): Register '*get_syscall_number' and the
4872 syscall xml file name.
4873 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4874 "s390-linux.xml" and "s390x-linux.xml".
4875 * NEWS: Announce new feature.
4877 2014-01-22 Baruch Siach <baruch@tkos.co.il>
4879 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
4881 2014-01-22 Pedro Alves <palves@redhat.com>
4883 * xtensa-config.c: Include defs.h.
4885 2014-01-22 Joel Brobecker <brobecker@adacore.com>
4887 * common/common-utils.h: Add "ARI:" comment beside __func__
4890 2014-01-22 Joel Brobecker <brobecker@adacore.com>
4892 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
4893 documentation a bit.
4895 2014-01-21 Roland McGrath <mcgrathr@google.com>
4897 * configure.ac: Call AM_PROG_INSTALL_STRIP.
4898 * configure: Regenerate.
4899 * aclocal.m4: Regenerate.
4900 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
4901 New substituted variables.
4902 (install-strip): New target.
4903 (INSTALL_SCRIPT): New substituted variable.
4904 (FLAGS_TO_PASS): Add it.
4905 (install-only): Use $(INSTALL_SCRIPT) rather than
4906 $(INSTALL_PROGRAM) for gcore.
4908 2014-01-20 Tom Tromey <tromey@redhat.com>
4910 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
4913 2014-01-20 Tom Tromey <tromey@redhat.com>
4915 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
4916 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
4917 (deprecated_cmd_warning, complete_on_cmdlist): Update.
4918 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
4919 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
4920 (struct cmd_list_element) <flags>: Remove.
4921 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
4922 doc_allocated>: New fields.
4923 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
4925 * maint.c (maintenance_do_deprecate): Update.
4926 * top.c (execute_command): Update.
4928 2014-01-20 Baruch Siach <baruch@tkos.co.il>
4930 * xtensa-linux-nat.c: Include asm/ptrace.h.
4932 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4934 * Makefile.in (SFILES): Add d-support.c.
4935 (COMMON_OBS): Add d-support.o.
4936 * d-lang.h (d_parse_symbol): Add comment, now defined in
4938 * d-lang.c (parse_call_convention)
4939 (parse_attributes, parse_function_types)
4940 (parse_function_args, parse_type, parse_identifier)
4941 (call_convention_p, d_parse_symbol): Move functions to ...
4942 * d-support.c: ... New file.
4944 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4946 * d-lang.h (d_parse_symbol): Add declaration.
4947 * d-lang.c (extract_identifiers)
4948 (extract_type_info): Remove functions.
4949 (parse_call_convention, parse_attributes)
4950 (parse_function_types, parse_function_args)
4951 (parse_type, parse_identifier, call_convention_p)
4952 (d_parse_symbol): New functions.
4953 (d_demangle): Use d_parse_symbol to demangle D symbols.
4955 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4957 * d-lang.h (struct builtin_d_type): New data type.
4958 (builtin_d_type): Add declaration.
4959 * d-lang.c (d_language_arch_info, build_d_types)
4960 (builtin_d_type): New functions.
4961 (enum d_primitive_types): New data type.
4962 (d_language_defn): Change c_language_arch_info to
4963 d_language_arch_info.
4964 (d_type_data): New static variable.
4965 (_initialize_d_language): Initialize d_type_data.
4967 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4969 * d-lang.h (d_main_name): Add declaration.
4970 * d-lang.c (d_main_name): New function.
4971 * symtab.c (find_main_name): Add call to d_main_name.
4973 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4975 * d-lang.c (d_language_defn): Change macro_expansion_c to
4978 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4980 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4982 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
4984 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
4985 gdb_exception" declaration.
4986 * remote.c (getpkt_or_notif_sane): Likewise.
4988 2014-01-17 Doug Evans <dje@google.com>
4990 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
4991 function, contents of dirnames_to_char_ptr_vec_append moved here.
4992 (delim_string_to_char_ptr_vec): New function.
4993 (dirnames_to_char_ptr_vec_append): Rewrite.
4994 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
4996 2014-01-17 Doug Evans <dje@google.com>
4998 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
5000 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
5001 #include "common-utils.h".
5002 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
5003 * common/vec.h (VEC_ASSERT_PASS): Update.
5004 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
5005 (MACH_CHECK_ERROR): Update.
5007 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
5009 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
5011 * gdbarch.h: Regenerate.
5013 2014-01-16 Tom Tromey <tromey@redhat.com>
5015 * value.c (struct value) <regnum>: Move earlier.
5017 2014-01-16 Tom Tromey <tromey@redhat.com>
5019 * remote.c (extended_remote_create_inferior): Rename from
5020 extended_remote_create_inferior_1. Add "ops" argument. Remove
5023 2014-01-16 Pedro Alves <palves@redhat.com>
5025 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
5026 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
5029 2014-01-16 Doug Evans <dje@google.com>
5031 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
5033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5035 * btrace.h (btrace_thread_flag): New.
5036 (struct btrace_thread_info) <flags>: New.
5037 * record-btrace.c (record_btrace_resume_thread)
5038 (record_btrace_find_thread_to_move, btrace_step_no_history)
5039 (btrace_step_stopped, record_btrace_start_replaying)
5040 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
5041 (record_btrace_find_resume_thread): New.
5042 (record_btrace_resume, record_btrace_wait): Extend.
5043 (record_btrace_can_execute_reverse): New.
5044 (record_btrace_open): Fail in non-stop mode.
5045 (record_btrace_set_replay): Split into this, ...
5046 (record_btrace_stop_replaying): ... this, ...
5047 (record_btrace_clear_histories): ... and this.
5048 (init_record_btrace_ops): Init to_can_execute_reverse.
5049 * NEWS: Announce it.
5051 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5053 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
5054 (forward_target_decr_pc_after_break)
5055 (target_decr_pc_after_break): New.
5056 * target.c (forward_target_decr_pc_after_break)
5057 (target_decr_pc_after_break): New.
5058 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
5059 instead of gdbarch_decr_pc_after_break.
5060 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5061 instead of gdbarch_decr_pc_after_break.
5062 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
5063 instead of gdbarch_decr_pc_after_break.
5064 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5065 instead of gdbarch_decr_pc_after_break.
5066 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
5067 instead of gdbarch_decr_pc_after_break.
5068 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
5069 instead of gdbarch_decr_pc_after_break.
5071 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5073 * btrace.c: Include regcache.h.
5074 (btrace_add_pc): New.
5075 (btrace_enable): Call btrace_add_pc.
5076 (btrace_is_empty): New.
5077 * btrace.h (btrace_is_empty): New.
5078 * record-btrace.c (require_btrace, record_btrace_info): Call
5081 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5083 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
5084 Support delta reads.
5085 (linux_disable_btrace): Change return type.
5086 * common/linux-btrace.h (linux_read_btrace): Change parameters
5087 and return type to allow error reporting. Update users.
5088 (linux_disable_btrace): Change return type. Update users.
5089 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
5091 (btrace_error): New.
5092 (btrace_block) <begin>: Comment on BEGIN == 0.
5093 * btrace.c (btrace_compute_ftrace): Start from the end of
5095 (btrace_stitch_trace, btrace_clear_history): New.
5096 (btrace_fetch): Read delta trace, return if replaying.
5097 (btrace_clear): Move clear history code to btrace_clear_history.
5098 (parse_xml_btrace): Throw an error if parsing failed.
5099 * target.h (struct target_ops) <to_read_btrace>: Change parameters
5100 and return type to allow error reporting.
5101 (target_read_btrace): Change parameters and return type to allow
5103 * target.c (target_read_btrace): Update.
5104 * remote.c (remote_read_btrace): Support delta reads. Pass
5106 * NEWS: Announce it.
5108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5110 * record.h (record_btrace_frame_unwind)
5111 (record_btrace_tailcall_frame_unwind): New declarations.
5112 * dwarf2-frame: Include record.h
5113 (dwarf2_frame_cfa): Throw an error for btrace frames.
5114 * record-btrace.c: Include hashtab.h.
5115 (btrace_get_bfun_name): New.
5116 (btrace_call_history): Call btrace_get_bfun_name.
5117 (struct btrace_frame_cache): New.
5119 (bfcache_hash, bfcache_eq, bfcache_new): New.
5120 (btrace_get_frame_function): New.
5121 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
5122 (record_btrace_frame_this_id): Compute own id.
5123 (record_btrace_frame_prev_register): Provide PC, throw_error
5124 for all other registers.
5125 (record_btrace_frame_sniffer): Detect btrace frames.
5126 (record_btrace_tailcall_frame_sniffer): New.
5127 (record_btrace_frame_dealloc_cache): New.
5128 (record_btrace_frame_unwind): Add new functions.
5129 (record_btrace_tailcall_frame_unwind): New.
5130 (_initialize_record_btrace): Allocate cache.
5131 * btrace.c (btrace_clear): Call reinit_frame_cache.
5132 * NEWS: Announce it.
5134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5136 * record-btrace.c (record_btrace_set_replay)
5137 (record_btrace_goto_begin, record_btrace_goto_end)
5138 (record_btrace_goto): New.
5139 (init_record_btrace_ops): Initialize them.
5140 * NEWS: Announce it.
5142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5144 * record-btrace.c (record_btrace_find_new_threads)
5145 (record_btrace_thread_alive): New.
5146 (init_record_btrace_ops): Initialize to_find_new_threads and
5149 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5151 * record-btrace.c (record_btrace_resume): New.
5152 (record_btrace_wait): New.
5153 (init_record_btrace_ops): Initialize to_wait and to_resume.
5155 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5157 * record-btrace.c (record_btrace_xfer_partial)
5158 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
5159 (record_btrace_allow_memory_access): New.
5160 (init_record_btrace_ops): Initialize new methods.
5161 * target.c (raw_memory_xfer_partial): Bail out if target reports
5162 that this memory is not available.
5164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5166 * target.h (target_ops) <to_insert_breakpoint>
5167 <to_remove_breakpoint>: Add target_ops parameter.
5168 (forward_target_insert_breakpoint): New.
5169 (forward_target_remove_breakpoint): New.
5170 (memory_remove_breakpoint, memory_insert_breakpoint):
5171 Add target_ops parameter.
5172 * target.c (target_insert_breakpoint): Split into this and ...
5173 (forward_target_insert_breakpoint): ... this.
5174 (target_remove_breakpoint): Split into this and ...
5175 (forward_target_remove_breakpoint): ... this.
5176 (debug_to_insert_breakpoint): Add target_ops parameter.
5177 Call forward_target_insert_breakpoint.
5178 (debug_to_remove_breakpoint): Add target_ops parameter.
5179 Call forward_target_remove_breakpoint.
5180 (update_current_target): Do not inherit or default to_insert_breakpoint
5181 and to_remove_breakpoint.
5182 * corelow.c (ignore): Add target_ops parameter.
5183 * exec.c (ignore): Add target_ops parameter.
5184 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
5185 Add target_ops parameter.
5186 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
5187 Add target_ops parameter.
5188 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
5189 Add target_ops parameter.
5190 * record-full.c (record_full_beneath_to_insert_breakpoint)
5191 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
5192 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
5193 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
5194 (record_full_core_remove_breakpoint): Add target_ops parameter.
5196 (record_full_beneath_to_insert_breakpoint_ops)
5197 (record_full_beneath_to_remove_breakpoint_ops)
5198 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
5199 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
5200 tmp_to_remove_breakpoint_ops,
5201 record_full_beneath_to_insert_breakpoint_ops, and
5202 record_full_beneath_to_remove_breakpoint_ops.
5203 * remote-m32r-sdi.c (m32r_insert_breakpoint)
5204 (m32r_remove_breakpoint): Add target_ops parameter.
5205 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
5206 Add target_ops parameter.
5207 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
5208 Add target_ops parameter.
5210 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5211 Markus Metzger <markus.t.metzger@intel.com>
5213 * record-btrace.c: Include frame-unwind.h.
5214 (record_btrace_frame_unwind_stop_reason)
5215 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
5216 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
5218 (init_record_btrace_ops): Install it.
5220 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5222 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
5225 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5227 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
5230 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5232 * frame-unwind.c: Include target.h.
5233 (frame_unwind_try_unwinder): New function with code from ...
5234 (frame_unwind_find_by_frame): ... here. New variable
5235 unwinder_from_target, call also target_get_unwinder)
5236 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
5237 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
5238 * target.h (struct target_ops): New fields to_get_unwinder and
5239 to_get_tailcall_unwinder.
5240 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
5242 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5244 * record-btrace.c (record_btrace_fetch_registers)
5245 (record_btrace_store_registers)
5246 (record_btrace_to_prepare_to_store): New.
5247 (init_record_btrace_ops): Add the above.
5249 2014-01-16 Tom Tromey <tromey@redhat.com>
5251 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
5252 * target.h (struct target_ops) <to_prepare_to_store>: Add
5254 (target_prepare_to_store): Add argument.
5255 * target.c (debug_to_prepare_to_store): Add argument.
5256 (update_current_target): Update.
5257 * remote.c (remote_prepare_to_store): Add 'self' argument.
5258 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
5259 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
5260 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
5261 * record-full.c (record_full_core_prepare_to_store): Add 'self'
5263 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
5264 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
5265 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
5266 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
5267 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
5269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5271 * btrace.h (replay) <replay>: New.
5272 (btrace_is_replaying): New.
5273 * btrace.c (btrace_clear): Free replay iterator.
5274 (btrace_is_replaying): New.
5275 * record-btrace.c (record_btrace_is_replaying): New.
5276 (record_btrace_info): Print insn number if replaying.
5277 (record_btrace_insn_history): Start at replay position.
5278 (record_btrace_call_history): Start at replay position.
5279 (init_record_btrace_ops): Init to_record_is_replaying.
5281 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5283 * record-btrace.c (record_btrace_insn_history_range): Include
5285 (record_btrace_insn_history_from): Adjust range.
5286 (record_btrace_call_history_range): Include
5288 (record_btrace_call_history_from): Adjust range.
5289 * NEWS: Announce changes.
5291 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5293 * record.h (enum record_print_flag)
5294 <record_print_indent_calls>: New.
5295 * record.c (get_call_history_modifiers): Recognize /c modifier.
5296 (_initialize_record): Document /c modifier.
5297 * record-btrace.c (btrace_call_history): Add btinfo parameter.
5298 Reorder fields. Optionally indent the function name. Update
5300 * NEWS: Announce changes.
5302 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5304 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
5306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5308 * btrace.c (ftrace_new_function): Start counting at one.
5309 * record-btrace.c (record_btrace_info): Adjust number of calls
5311 * NEWS: Announce it.
5313 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5315 * record-btrace.c (btrace_call_history_insn_range): Print
5316 insn range as [begin, end].
5318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5320 * btrace.h (struct btrace_func_link): New.
5321 (enum btrace_function_flag): New.
5322 (struct btrace_inst): Rename to ...
5323 (struct btrace_insn): ...this. Update all users.
5324 (struct btrace_func) <ibegin, iend>: Remove.
5325 (struct btrace_func_link): New.
5326 (struct btrace_func): Rename to ...
5327 (struct btrace_function): ...this. Update all users.
5328 (struct btrace_function) <segment, flow, up, insn, insn_offset)
5329 (number, level, flags>: New.
5330 (struct btrace_insn_iterator): Rename to ...
5331 (struct btrace_insn_history): ...this.
5333 (struct btrace_insn_iterator, btrace_call_iterator): New.
5334 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
5335 (struct btrace_target_info) <begin, end, level>
5336 <insn_history, call_history>: New.
5337 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
5338 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
5339 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
5340 (btrace_call_number, btrace_call_begin, btrace_call_end)
5341 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
5342 (btrace_find_function_by_number, btrace_set_insn_history)
5343 (btrace_set_call_history): New.
5344 * btrace.c (btrace_init_insn_iterator)
5345 (btrace_init_func_iterator, compute_itrace): Remove.
5346 (ftrace_print_function_name, ftrace_print_filename)
5347 (ftrace_skip_file): Change
5349 (ftrace_init_func): Remove.
5350 (ftrace_debug): Use new btrace_function fields.
5351 (ftrace_function_switched): Also consider gaining and
5352 losing symbol information).
5353 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
5354 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
5355 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
5357 (ftrace_new_function): Move. Remove debug print.
5358 (ftrace_update_lines, ftrace_update_insns): New.
5359 (ftrace_update_function): Check for call, ret, and jump.
5360 (compute_ftrace): Renamed to ...
5361 (btrace_compute_ftrace): ...this. Rewritten to compute call
5363 (btrace_fetch, btrace_clear): Updated.
5364 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
5365 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
5366 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
5367 (btrace_call_number, btrace_call_begin, btrace_call_end)
5368 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
5369 (btrace_find_function_by_number, btrace_set_insn_history)
5370 (btrace_set_call_history): New.
5371 * record-btrace.c (require_btrace): Use new btrace thread
5373 (record_btrace_info, btrace_insn_history)
5374 (record_btrace_insn_history, record_btrace_insn_history_range):
5375 Use new btrace thread info fields and new iterator.
5376 (btrace_func_history_src_line): Rename to ...
5377 (btrace_call_history_src_line): ...this. Use new btrace
5379 (btrace_func_history): Rename to ...
5380 (btrace_call_history): ...this. Use new btrace thread info
5381 fields and new iterator.
5382 (record_btrace_call_history, record_btrace_call_history_range):
5383 Use new btrace thread info fields and new iterator.
5385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5387 * frame.h (frame_id_build_unavailable_stack_special): New.
5388 * frame.c (frame_id_build_unavailable_stack_special): New.
5390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5392 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
5393 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
5394 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
5396 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
5397 (i386_insn_is_jump, i386_jmp_p): New.
5398 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
5399 insn_is_jump to gdbarch.
5400 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
5401 * gdbarch.h: Regenerated.
5402 * gdbarch.c: Regenerated.
5403 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
5404 (default_insn_is_jump): New.
5405 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
5406 (default_insn_is_jump): New.
5408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5410 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
5412 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
5413 (btrace_read_type) <btrace_read_new>: Change to ...
5414 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
5416 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5418 * common/linux-btrace.c (linux_read_btrace): Free trace from
5421 2014-01-15 Doug Evans <dje@google.com>
5423 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
5426 2014-01-15 Tom Tromey <tromey@redhat.com>
5428 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
5429 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
5430 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
5431 (set_objfile_main_name): New function.
5432 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
5433 language_of_main>: New fields.
5434 (set_objfile_main_name): Declare.
5435 * symtab.c (find_main_name): Loop over objfiles to find the main
5437 (set_main_name): Now static.
5438 (get_main_info): Add comment.
5439 * symtab.h (set_main_name): Don't declare.
5441 2014-01-15 Tom Tromey <tromey@redhat.com>
5443 * symtab.c (main_progspace_key): New global.
5444 (struct main_info): New.
5445 (name_of_main, language_of_main): Remove.
5446 (get_main_info, main_info_cleanup): New function.
5447 (set_main_name, main_name, main_language): Use get_main_info.
5448 (_initialize_symtab): Initialize main_progspace_key.
5450 2014-01-15 Tom Tromey <tromey@redhat.com>
5452 * dbxread.c (process_one_symbol): Update.
5453 * dwarf2read.c (read_partial_die): Update.
5454 * symfile.c (set_initial_language): Call main_language.
5455 * symtab.c (language_of_main): Now static.
5456 (set_main_name): Add 'lang' parameter.
5457 (find_main_name): Update.
5458 (main_language): New function.
5459 (symtab_observer_executable_changed): Update.
5460 * symtab.h (set_main_name): Update.
5461 (language_of_main): Remove.
5462 (main_language): Declare.
5464 2014-01-15 Tom Tromey <tromey@redhat.com>
5466 * symfile.c (init_entry_point_info): Use new "initialized" field.
5468 * objfiles.h (struct entry_point) <initialized>: New field.
5469 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
5470 (struct objfile) <ei>: ...here. Remove.
5471 * objfiles.c (entry_point_address_query): Update.
5473 2014-01-15 Tom Tromey <tromey@redhat.com>
5475 * objfiles.c (entry_point_address_query): Relocate entry point
5477 (objfile_relocate1): Do not relocate entry point address.
5478 * objfiles.h (struct entry_info) <entry_point>: Update comment.
5479 <the_bfd_section_index>: New field.
5480 * symfile.c (init_entry_point_info): Find the entry point's
5483 2014-01-15 Tom Tromey <tromey@redhat.com>
5485 * solib-frv.c (enable_break): Use entry_point_address_query.
5487 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5489 * NEWS: Add note on improved process record-replay on
5490 arm*-linux* targets.
5492 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5494 * arm-tdep.c (enum arm_record_result): New enum.
5495 (arm_record_unsupported_insn): New function.
5496 (arm_record_coproc_data_proc): Removed.
5497 (thumb2_record_ld_st_multiple): New function.
5498 (thumb2_record_ld_st_dual_ex_tbb): New function.
5499 (thumb2_record_data_proc_sreg_mimm): New function.
5500 (thumb2_record_ps_dest_generic): New function.
5501 (thumb2_record_branch_misc_cntrl): New function.
5502 (thumb2_record_str_single_data): New function.
5503 (thumb2_record_ld_mem_hints): New function.
5504 (thumb2_record_ld_word): New function.
5505 (thumb2_record_lmul_lmla_div): New function.
5506 (thumb2_record_decode_insn_handler): New function.
5507 (decode_insn): Add thumb32 instruction handlers.
5509 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5511 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
5512 (struct arm_linux_record_tdep): Declare.
5513 (arm_canonicalize_syscall): New function.
5514 (arm_all_but_pc_registers_record): New function.
5515 (arm_linux_syscall_record): New function.
5516 (arm_linux_init_abi): Add syscall recording constructs.
5517 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
5518 decoding. (arm_record_coproc_data_proc): Update arm syscall
5520 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
5521 <arm_syscall_record>: New field.
5522 * configure.tgt (arm*-*-linux*): Add linux-record.o to
5525 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5527 * arm-tdep.c (thumb_record_misc): Update to use sp as base
5528 register for push instruction recording.
5530 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5532 * arm-tdep.c (thumb_record_misc): Update to correct logical
5533 error while recording ldm, ldmia and pop instructions.
5535 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5537 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
5539 2014-01-15 Pedro Alves <palves@redhat.com>
5541 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
5542 (go32_resume, go32_fetch_registers, store_register)
5543 (go32_store_registers, go32_prepare_to_store)
5544 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
5545 (go32_create_inferior, go32_can_run, go32_terminal_init)
5546 (go32_terminal_inferior, go32_terminal_ours): Delete forward
5549 2014-01-15 Tom Tromey <tromey@redhat.com>
5551 * target.h (async_callback_ftype): New typedef.
5552 (struct target_ops) <to_async>: Use it.
5554 2014-01-15 Joel Brobecker <brobecker@adacore.com>
5556 * python/py-value.c (get_field_type): Remove unnecessary curly
5557 braces for single-statement if block.
5559 2014-01-15 Joel Brobecker <brobecker@adacore.com>
5561 * python/py-type.c (convert_field): Add missing empty line
5564 2014-01-14 Doug Evans <dje@google.com>
5566 * symfile.h (expand_symtabs_matching): Renamed from
5567 expand_partial_symbol_names. Update prototype.
5568 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
5569 * symfile.c (expand_symtabs_matching): Renamed from
5570 expand_partial_symbol_names. New args file_matcher, kind.
5571 Rename arg fun to symbol_matcher.
5572 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
5573 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
5574 ada_expand_partial_symbol_name.
5575 (ada_make_symbol_completion_list): Update to call
5576 expand_symtabs_matching.
5577 (ada_add_global_exceptions): Call expand_symtabs_matching.
5578 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
5579 call map_symbol_filenames.
5580 * symtab.c (sources_info): Update to call map_symbol_filenames.
5581 (search_symbols): Call expand_symtabs_matching.
5582 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
5583 (default_make_symbol_completion_list_break_on): Update to call
5584 expand_symtabs_matching.
5585 (make_source_files_completion_list): Update to call
5586 map_symbol_filenames.
5588 2014-01-14 Doug Evans <dje@google.com>
5590 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
5591 (expand_symtabs_symbol_matcher_ftype): New typedef.
5592 (quick_symbol_functions.expand_symtabs_matching): Update to use.
5593 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5594 * symfile.c (expand_partial_symbol_names): Update to use
5595 expand_symtabs_symbol_matcher_ftype.
5596 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
5597 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5598 Arg name_matcher renamed to symbol_matcher.
5599 * psymtab.c (recursively_search_psymtabs): Update to use
5600 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
5602 (expand_symtabs_matching_via_partial): Update to use
5603 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5604 Arg name_matcher renamed to symbol_matcher.
5606 2014-01-14 Doug Evans <dje@google.com>
5608 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
5609 (map_partial_symbol_filenames): Ditto.
5610 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
5611 (map_partial_symbol_filenames): Ditto.
5612 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
5613 (map_partial_symbol_filenames): Ditto.
5614 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
5615 (map_partial_symbol_filenames): Ditto.
5616 * symtab.c: Delete #include "psymtab.h".
5618 2014-01-14 Pedro Alves <palves@redhat.com>
5619 Tom Tromey <tromey@redhat.com>
5621 * infrun.c (use_displaced_stepping): Use find_record_target
5622 instead of RECORD_IS_USED.
5623 (adjust_pc_after_break): Use record_full_is_used instead of
5625 * record-btrace.c (record_btrace_open): Call record_preopen
5626 instead of checking RECORD_IS_USED.
5627 * record-full.c (record_full_shortname)
5628 (record_full_core_shortname): New globals.
5629 (record_full_is_used): New function.
5630 (find_full_open): Call record_preopen instead of checking
5632 (init_record_full_ops): Set the target's shortname to
5633 record_full_shortname.
5634 (init_record_full_core_ops): Set the target's shortname to
5635 record_full_core_shortname.
5636 * record-full.h (record_full_is_used): Declare.
5637 * record.c (find_record_target): Make extern.
5638 (record_preopen): New function.
5639 * record.h (RECORD_IS_USED): Delete macro.
5640 (find_record_target, record_preopen): Declare functions.
5642 2014-01-14 Yao Qi <yao@codesourcery.com>
5644 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
5645 'len''s type to ULONGEST.
5646 (core_xfer_shared_libraries_aix): Likewise.
5647 * gdbarch.c, gdbarch.h: Regenerated.
5648 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
5649 Change type of 'len' to ULONGEST.
5650 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5651 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5653 2014-01-14 Yao Qi <yao@codesourcery.com>
5655 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
5656 type of 'len' to ULONGEST.
5657 (linux_xfer_osdata_processgroups): Likewise.
5658 (linux_xfer_osdata_threads): Likewise.
5659 (linux_xfer_osdata_fds): Likewise.
5660 (linux_xfer_osdata_isockets): Likewise.
5661 (linux_xfer_osdata_shm): Likewise.
5662 (linux_xfer_osdata_sem): Likewise.
5663 (linux_xfer_osdata_msg): Likewise.
5664 (linux_common_xfer_osdata): Likewise.
5665 (struct osdata_type) <getter>: Likewise.
5666 * common/linux-osdata.h (linux_common_xfer_osdata): Update
5669 2014-01-14 Yao Qi <yao@codesourcery.com>
5671 * target.h (target_xfer_partial_ftype): Update.
5672 (struct target_ops) <to_xfer_partial>: Change 'len' type to
5674 * aix-thread.c (aix_thread_xfer_partial): Change type of
5675 argument 'len' to ULONGEST.
5676 * auxv.c (procfs_xfer_auxv): Likewise.
5677 (ld_so_xfer_auxv): Likewise.
5678 (memory_xfer_auxv): Likewise.
5679 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5680 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5681 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5682 * corelow.c (core_xfer_partial): Likewise.
5683 * ctf.c (ctf_xfer_partial): Likewise.
5684 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
5686 (darwin_read_dyld_info): Likewise.
5687 (darwin_xfer_partial): Likewise.
5688 * exec.c (section_table_xfer_memory_partial): Likewise.
5689 (exec_xfer_partial): Likewise.
5690 * exec.h (section_table_xfer_memory_partial): Update
5692 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
5693 instead of plongest.
5694 (gnu_xfer_partial): Likewise.
5695 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
5696 (ia64_hpux_xfer_solib_got): Likewise.
5697 (ia64_hpux_xfer_partial): Likewise.
5698 * ia64-linux-nat.c (ia64_linux_xfer_partial):
5699 * inf-ptrace.c (inf_ptrace_xfer_partial):
5700 * inf-ttrace.c (inf_ttrace_xfer_partial):
5701 * linux-nat.c (linux_xfer_siginfo): Likewise.
5702 (linux_nat_xfer_partial): Likewise.
5703 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
5704 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
5705 * monitor.c (monitor_xfer_memory): Likewise.
5706 (monitor_xfer_partial): Likewise.
5707 * procfs.c (procfs_xfer_partial): Likewise.
5708 * record-full.c (record_full_xfer_partial): Likewise.
5709 (record_full_core_xfer_partial): Likewise.
5710 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
5711 instead of plongest.
5712 (gdbsim_xfer_partial): Likewise.
5713 * remote.c (remote_xfer_partial): Likewise.
5714 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5715 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5717 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5718 (rs6000_xfer_shared_libraries): Likewise.
5719 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5720 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5721 (sparc_xfer_partial): Likewise.
5722 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5723 (spu_xfer_partial): Likewise.
5724 * spu-multiarch.c (spu_xfer_partial): Likewise.
5725 * target.c (target_read_live_memory): Likewise.
5726 (memory_xfer_live_readonly_partial): Likewise.
5727 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
5728 (target_xfer_partial, default_xfer_partial): Likewise.
5729 (current_xfer_partial): Likewise.
5730 * tracepoint.c (tfile_xfer_partial): Likewise.
5731 * windows-nat.c (windows_xfer_memory): Likewise. Call
5732 pulongest instead of plongest.
5733 (windows_xfer_partial): Likewise.
5734 (windows_xfer_shared_libraries): Likewise.
5736 2014-01-14 Yao Qi <yao@codesourcery.com>
5738 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
5739 target_xfer_partial_ftype.
5741 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
5745 * valops.c (value_struct_elt_bitpos): New function
5746 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
5747 object to 'None' if the field name is an empty string ("").
5748 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
5749 attribute to look for a field when 'name' is 'None'.
5750 (get_field_type): New function
5752 2014-01-13 Doug Evans <dje@google.com>
5755 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
5756 (try_open_dwop_file): Ditto.
5757 * gdb_bfd.c: #include "vec.h".
5758 (bfdp): New typedef.
5759 (struct gdb_bfd_data): New member included_bfds.
5760 (gdb_bfd_unref): Unref all included bfds.
5761 (gdb_bfd_record_inclusion): New function.
5762 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
5764 2014-01-13 Tom Tromey <tromey@redhat.com>
5766 * gdbcore.h (deprecated_core_resize_section_table): Remove.
5768 2014-01-13 Tom Tromey <tromey@redhat.com>
5770 * defs.h (use_windows): Remove.
5771 * gdb.c (main): Update.
5772 * main.c (captured_main, gdb_main): Update.
5773 * main.h (struct captured_main_args) <use_windows>: Remove.
5774 * top.c (use_windows): Remove.
5776 2014-01-13 Tom Tromey <tromey@redhat.com>
5778 * defs.h (deprecated_flush_hook): Remove.
5780 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5783 * linux-thread-db.c (try_thread_db_load): Add parameter
5784 check_auto_load_safe. Move here the file_is_auto_load_safe call.
5785 (try_thread_db_load_from_pdir_1): Move it there from here.
5786 (try_thread_db_load_from_sdir): Update caller.
5787 (try_thread_db_load_from_dir): Move it there from here.
5789 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
5791 * regformats/regdat.sh: Always rewrite the register file.
5793 2014-01-13 Pedro Alves <palves@redhat.com>
5795 * Makefile.in (CHECK_HEADERS): New variable.
5796 (check-headers:): New rule.
5798 2014-01-13 Tom Tromey <tromey@redhat.com>
5800 * cli/cli-setshow.c (do_set_command): Update.
5801 * defs.h (deprecated_set_hook): Remove.
5802 * top.c (deprecated_set_hook): Remove.
5804 2014-01-13 Pedro Alves <palves@redhat.com>
5806 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
5807 the tracepoint if the PC is a pseudo-register.
5809 2014-01-13 Tom Tromey <tromey@redhat.com>
5811 * defs.h (XCALLOC): Remove.
5812 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
5813 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
5814 * dwarf2loc.c (allocate_piece_closure): Likewise.
5815 * elfread.c (elf_symfile_segments): Likewise.
5816 (elf_symfile_segments): Likewise.
5817 * gdbtypes.c (copy_type_recursive): Likewise.
5818 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
5819 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
5820 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
5822 * mt-tdep.c (mt_gdbarch_init): Likewise.
5823 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
5825 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
5826 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
5827 * registry.c (registry_alloc_data): Likewise.
5828 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
5829 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5830 * serial.c (serial_fdopen_ops): Likewise.
5831 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
5833 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
5834 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
5837 2014-01-13 Tom Tromey <tromey@redhat.com>
5839 * defs.h (XMALLOC): Remove.
5840 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
5841 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5842 * cli-out.c (struct ui_out *): Likewise.
5843 * cli/cli-dump.c (add_dump_command): Likewise.
5844 (add_dump_command): Likewise.
5845 * complaints.c (get_complaints): Likewise.
5846 (find_complaint): Likewise.
5847 * dwarf2-frame.c (execute_cfa_program): Likewise.
5848 * dwarf2read.c (abbrev_table_read_table): Likewise.
5849 * gdbarch.sh: Likewise.
5850 * gdbarch.c: Rebuild.
5851 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
5852 * interps.c (interp_new): Likewise.
5853 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5854 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5855 * mi/mi-console.c (mi_console_file_new): Likewise.
5856 * mi/mi-interp.c (mi_interpreter_init): Likewise.
5857 * mi/mi-out.c (mi_out_new): Likewise.
5858 * mi/mi-parse.c (mi_parse): Likewise.
5859 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5860 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5861 * observer.c (xalloc_observer_list_node): Likewise.
5862 * regcache.c (regcache_xmalloc_1): Likewise.
5863 * reggroups.c (reggroup_new): Likewise.
5864 (_initialize_reggroup): Likewise.
5865 * registry.c (register_data_with_cleanup): Likewise.
5866 * remote.c (remote_notif_stop_alloc_reply): Likewise.
5867 * ser-base.c (serial_ttystate): Likewise.
5868 * ser-mingw.c (make_pipe_state): Likewise.
5869 * ser-pipe.c (pipe_open): Likewise.
5870 * serial.c (serial_open): Likewise.
5871 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5872 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
5873 (tui_alloc_win_info): Likewise.
5874 (tui_add_content_elements): Likewise.
5875 * tui/tui-file.c (tui_file_new): Likewise.
5876 * tui/tui-out.c (tui_out_new): Likewise.
5877 * ui-file.c (mem_file_new): Likewise.
5878 * ui-out.c (push_level): Likewise.
5879 (make_cleanup_ui_out_end): Likewise.
5880 (append_header_to_list): Likewise.
5881 (ui_out_new): Likewise.
5882 * user-regs.c (user_reg_add_builtin): Likewise.
5884 2014-01-13 Tom Tromey <tromey@redhat.com>
5886 * defs.h (XZALLOC): Remove.
5887 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
5888 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
5889 (get_ada_tasks_inferior_data): Likewise.
5890 * auto-load.c (get_auto_load_pspace_data): Likewise.
5891 * auxv.c (get_auxv_inferior_data): Likewise.
5892 * bfd-target.c (target_bfd_reopen): Likewise.
5893 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
5894 (deprecated_insert_raw_breakpoint): Likewise.
5895 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
5896 * corelow.c (core_open): Likewise.
5897 * darwin-nat.c (darwin_check_new_threads): Likewise.
5898 (darwin_attach_pid): Likewise.
5899 * dummy-frame.c (dummy_frame_push): Likewise.
5900 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5901 * dwarf2loc.c (allocate_piece_closure): Likewise.
5902 * elfread.c (elf_symfile_segments): Likewise.
5903 * eval.c (ptrmath_type_p): Likewise.
5904 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
5905 * gdbtypes.c (alloc_type_arch): Likewise.
5906 (alloc_type_instance): Likewise.
5907 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5908 * inf-child.c (inf_child_can_use_agent): Likewise.
5909 * inflow.c (get_inflow_inferior_data): Likewise.
5910 * infrun.c (save_infcall_suspend_state): Likewise.
5911 * jit.c (jit_reader_load): Likewise.
5912 (get_jit_objfile_data): Likewise.
5913 (get_jit_program_space_data): Likewise.
5914 (jit_object_open_impl): Likewise.
5915 (jit_symtab_open_impl): Likewise.
5916 (jit_block_open_impl): Likewise.
5917 (jit_frame_sniffer): Likewise.
5918 * linux-fork.c (add_fork): Likewise.
5919 * maint.c (make_command_stats_cleanup): Likewise.
5920 * objfiles.c (get_objfile_pspace_data): Likewise.
5921 * opencl-lang.c (struct lval_closure): Likewise.
5922 * osdata.c (osdata_start_osdata): Likewise.
5923 * progspace.c (new_address_space): Likewise.
5924 (add_program_space): Likewise.
5925 * remote-sim.c (get_sim_inferior_data): Likewise.
5926 * sh-tdep.c (sh_gdbarch_init): Likewise.
5927 * skip.c (Ignore): Likewise.
5928 (skip_delete_command): Likewise.
5929 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
5930 (library_list_start_library): Likewise.
5931 (solib_aix_current_sos): Likewise.
5932 * solib-darwin.c (get_darwin_info): Likewise.
5933 (darwin_current_sos): Likewise.
5934 * solib-dsbt.c (get_dsbt_info): Likewise.
5935 * solib-ia64-hpux.c (new_so_list): Likewise.
5936 (ia64_hpux_get_solib_linkage_addr): Likewise.
5937 * solib-spu.c (append_ocl_sos): Likewise.
5938 (spu_current_sos): Likewise.
5939 * solib-svr4.c (get_svr4_info): Likewise.
5940 (svr4_keep_data_in_core): Likewise.
5941 (library_list_start_library): Likewise.
5942 (svr4_default_sos): Likewise.
5943 (svr4_read_so_list): Likewise.
5944 * solib-target.c (library_list_start_library): Likewise.
5945 (solib_target_current_sos): Likewise.
5946 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5947 * symfile-debug.c (install_symfile_debug_logging): Likewise.
5948 * symfile.c (default_symfile_segments): Likewise.
5949 * target-descriptions.c (tdesc_data_init): Likewise.
5950 (tdesc_create_reg): Likewise.
5951 (struct tdesc_type *): Likewise.
5952 (tdesc_create_vector): Likewise.
5953 (tdesc_set_struct_size): Likewise.
5954 (struct tdesc_type *): Likewise.
5955 (tdesc_free_feature): Likewise.
5956 (tdesc_create_feature): Likewise.
5957 * windows-nat.c (windows_add_thread): Likewise.
5958 (windows_make_so): Likewise.
5959 * xml-support.c (gdb_xml_body_text): Likewise.
5960 (gdb_xml_create_parser_and_cleanup): Likewise.
5961 (xml_process_xincludes): Likewise.
5962 * xml-syscall.c (allocate_syscalls_info): Likewise.
5963 (syscall_create_syscall_desc): Likewise.
5965 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
5967 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
5968 function, with code from i386_stap_parse_special_token.
5969 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5970 (i386_stap_parse_special_token): Move code to the two functions
5973 2014-01-09 Pedro Alves <palves@redhat.com>
5974 Hui Zhu <hui@codesourcery.com>
5977 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
5978 bp_err_string. Don't mark the location shlib_disabled if the
5979 error thrown wasn't a generic or memory error. Catch errors
5980 thrown while inserting breakpoints in overlayed code. Output
5981 error message of software breakpoints.
5982 * remote.c (remote_insert_breakpoint): If this breakpoint has
5983 target-side commands but this stub doesn't support Z0 packets,
5984 throw NOT_SUPPORTED_ERROR error.
5985 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
5986 * target.h (target_insert_breakpoint): Extend comment.
5987 (target_insert_hw_breakpoint): Add comment.
5989 2014-01-08 Pedro Alves <palves@redhat.com>
5991 * remote.c (remote_add_thread): Add threads silently if starting
5993 (remote_notice_new_inferior): If in all-stop, and starting up,
5994 don't call notice_new_inferior.
5995 (get_current_thread): New function, factored out from ...
5996 (add_current_inferior_and_thread): ... this. Adjust.
5997 (remote_start_remote) <all-stop>: Fetch the thread list. If we
5998 found any thread, then select the remote's current thread as GDB's
6001 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6003 * NEWS: Create a new section for the next release branch.
6004 Rename the section of the current branch, now that it has
6007 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6009 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
6010 * version.in: Bump version to 7.7.50.DATE-cvs.
6012 2014-01-08 Yao Qi <yao@codesourcery.com>
6014 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
6015 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
6016 (spu_xfer_partial): Cast 'buf' to 'const char *'.
6018 2014-01-08 Yao Qi <yao@codesourcery.com>
6020 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
6021 return value of bfd_get_filename to symbol_file_add_from_bfd.
6023 2014-01-08 Pierre Muller <muller@sourceware.org>
6026 * coff-pe-read.c (struct read_pe_section_data): Add index field.
6027 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
6028 to prim_record_mininal_symbol_and_info.
6029 (add_pe_forwarded_sym): Use known section number of forwarded symbol
6030 in call to prim_record_minimal_symbol_and_info.
6031 (read_pe_exported_syms): Set index field of section_data.
6033 2014-01-07 Andrew Pinski <apinski@cavium.com>
6035 * features/aarch64-core.xml (cpsr): Change to be 64bit.
6036 * features/aarch64.c: Regenerate.
6038 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
6040 * target.c (return_null): Define.
6041 (update_current_target): Use it instead of return_zero for
6042 functions that return a pointer.
6044 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6046 * source.c (add_path): Fix check for duplicated paths in the previously
6049 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
6051 * ada-lang.c: Remove duplicated include statements.
6052 * alphabsd-nat.c: Ditto.
6053 * amd64-darwin-tdep.c: Ditto.
6054 * amd64fbsd-nat.c: Ditto.
6055 * auto-load.c: Ditto.
6057 * breakpoint.c: Ditto.
6059 * fork-child.c: Ditto.
6060 * gdb_usleep.c: Ditto.
6061 * i386-darwin-tdep.c: Ditto.
6062 * i386fbsd-nat.c: Ditto.
6064 * inferior.c: Ditto.
6066 * linux-nat.c: Ditto.
6067 * linux-tdep.c: Ditto.
6068 * m68kbsd-nat.c: Ditto.
6069 * m68klinux-nat.c: Ditto.
6070 * microblaze-tdep.c: Ditto.
6071 * mips-linux-tdep.c: Ditto.
6072 * mn10300-tdep.c: Ditto.
6073 * nto-tdep.c: Ditto.
6074 * opencl-lang.c: Ditto.
6076 * printcmd.c: Ditto.
6077 * regcache.c: Ditto.
6078 * remote-m32r-sdi.c: Ditto.
6082 * tilegx-linux-nat.c: Ditto.
6083 * tilegx-tdep.c: Ditto.
6084 * tracepoint.c: Ditto.
6086 * vaxbsd-nat.c: Ditto.
6087 * windows-nat.c: Ditto.
6088 * xtensa-tdep.c: Ditto.
6090 2014-01-07 Yao Qi <yao@codesourcery.com>
6092 * spu-linux-nat.c (_initialize_spu_nat): Declare.
6094 2014-01-07 Yao Qi <yao@codesourcery.com>
6095 Joel Brobecker <brobecker@adacore.com>
6097 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
6098 (pdc_write_regs): Likewise.
6099 (fetch_regs_kernel_thread): Likewise.
6100 (store_regs_kernel_thread): Likewise.
6102 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6104 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
6105 tagged type objects to their actual type.
6107 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6109 * ada-valprint.c (print_field_values): Add "language" parameter.
6110 Update calls to print_field_values and print_variant_part.
6111 Pass new parameter "language" in call to val_print instead
6112 of "current_language". Replace call to ada_val_print by call
6114 (print_variant_part): Add "language" parameter.
6115 (ada_val_print_struct_union): Update call to print_field_values.
6117 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6119 * ada-valprint.c (ui_memcpy): Delete.
6120 (ada_print_floating): Update documentation. Add empty line
6121 between between function documentation and implementation.
6122 Delete variable "buffer". Use ui_file_xstrdup in place of
6123 ui_file_put. Minor adjustments following this change.
6125 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6127 * ada-valprint.c (ada_val_print_string): New function,
6128 extracted from ada_val_print_array.
6129 (ada_val_print_array): Replace extracted code by call
6130 to ada_val_print_string followed by a return. Move
6131 "else" branch to the function's top block.
6133 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6135 * ada-valprint.c (ada_val_print_array): Move implementation
6136 down. Rename parameter "offset" and "val" into "offset_aligned"
6137 and "original_value" respectively. Add parameter "offset".
6139 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6141 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
6142 re-organizing the code. Change the "???" message printed
6143 when target type is a TYPE_CODE_UNDEF into
6144 "<ref to undefined type>".
6146 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6148 * ada-valprint.c (print_record): Delete, implementation inlined...
6149 (ada_val_print_struct_union): ... here. Remove call to
6150 ada_check_typedef in inlined implementation.
6152 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6154 * ada-valprint.c (ada_val_print_gnat_array): New function,
6155 extracted from ada_val_print_1;
6156 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
6157 (ada_val_print_flt, ada_val_print_struct_union)
6158 (ada_val_print_ref): Likewise.
6159 (ada_val_print_1): Delete variables i and elttype.
6160 Replace extracted-out code by call to corresponding
6163 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6165 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
6167 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6169 * ada-valprint.c (ada_val_print_1): Replace calls to
6170 ada_val_print_1 by calls to val_print.
6172 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6174 * ada-valprint.c (ada_val_print_1): Add parameter "language".
6175 Update calls to self accordingly. Replace calls to c_val_print
6176 by calls to val_print.
6178 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6180 * ada-valprint.c (print_record): Delete declaration.
6181 (adjust_type_signedness, ada_val_print_1): Likewise.
6182 (ada_val_print): Move function implementation down.
6183 (print_variant_part, print_field_values, print_record):
6184 Move function implementation up.
6186 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6188 * python/py-type.c (typy_get_name): New function.
6189 (type_object_getset): Add entry for attribute "name".
6190 * NEWS: Add entry mentioning this new attribute.
6192 2014-01-07 Yao Qi <yao@codesourcery.com>
6194 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
6197 2014-01-07 Yao Qi <yao@codesourcery.com>
6199 * gnu-nat.c (info_port_rights): Add qualifier const to
6202 2014-01-07 Yao Qi <yao@codesourcery.com>
6204 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
6206 2014-01-07 Yao Qi <yao@codesourcery.com>
6208 * gnu-nat.c (make_inf) Update declaration.
6209 (make_inf): Make it static.
6210 (inf_set_traced): Likewise.
6211 (inf_port_to_thread, inf_task_died_status): Likewise.
6213 2014-01-07 Yao Qi <yao@codesourcery.com>
6215 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
6217 2014-01-07 Yao Qi <yao@codesourcery.com>
6219 * gnu-nat.c (_initialize_gnu_nat): Declare.
6221 2014-01-07 Yao Qi <yao@codesourcery.com>
6223 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
6225 (struct gdbarch_info) <byte_order>: Change type to
6227 <byte_order_for_code>: Likewise.
6228 * gdbarch.c, gdbarch.h: Regenerated.
6230 2014-01-06 Sasha Smundak <asmundak@google.com>
6232 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
6234 2014-01-06 Tom Tromey <tromey@redhat.com>
6236 * doublest.c (convert_doublest_to_floatformat): Use const, not
6238 * somread.c (som_symtab_read): Likewise.
6240 2014-01-07 Hui Zhu <hui@codesourcery.com>
6242 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
6243 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
6244 (gdb_bfd_fopen): Ditto.
6245 (gdb_bfd_openr): Ditto.
6246 (gdb_bfd_openw): Ditto.
6247 (gdb_bfd_openr_iovec): Ditto.
6248 (gdb_bfd_fdopenr): Ditto.
6249 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
6250 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
6252 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
6254 * symfile-mem.c (symbol_file_add_from_memory): Removed
6255 gdb_bfd_stash_filename.
6257 2014-01-03 Doug Evans <dje@google.com>
6259 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
6262 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6264 Update year range in copyright notice of all files.
6266 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6268 * top.c (print_gdb_version): Set copyright year to 2014.
6270 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6272 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
6274 For older changes see ChangeLog-2013.
6280 version-control: never