1 2014-03-20 Pedro Alves <palves@redhat.com>
3 * infrun.c (prepare_to_proceed): Delete.
4 (thread_still_needs_step_over): New function.
5 (find_thread_needs_step_over): New function.
6 (proceed): If the current thread needs a step-over, set its
7 steping_over_breakpoint flag. Adjust to use
8 find_thread_needs_step_over instead of prepare_to_proceed.
9 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
12 (switch_back_to_stepped_thread): Step over breakpoints of all
13 threads not the stepping thread, before switching back to the
16 2014-03-20 Pedro Alves <palves@redhat.com>
18 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
20 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
21 * infrun.c (saved_singlestep_ptid)
22 (stepping_past_singlestep_breakpoint): Delete.
23 (resume): Remove stepping_past_singlestep_breakpoint handling.
24 (proceed): Store the prev_pc of the stepping thread too.
25 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
27 (enum infwait_states): Delete infwait_thread_hop_state.
28 (struct execution_control_state) <hit_singlestep_breakpoint>: New
30 (handle_inferior_event): Adjust.
31 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
32 handling and the thread-hop code. Before removing single-step
33 breakpoints, check whether the thread hit a single-step breakpoint
34 of another thread. If it did, the trap is not a random signal.
35 (switch_back_to_stepped_thread): If the event thread hit a
36 single-step breakpoint, unblock it before switching to the
37 stepping thread. Handle the case of the stepped thread having
39 (keep_going): Handle the case of the current thread moving past a
40 single-step breakpoint.
42 2014-03-20 Pedro Alves <palves@redhat.com>
45 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
46 are being stepped over.
47 (breakpoint_address_match): Make extern.
48 * breakpoint.h (breakpoint_address_match): New declaration.
49 * inferior.h (stepping_past_instruction_at): New declaration.
50 * infrun.c (struct step_over_info): New type.
51 (step_over_info): New global.
52 (set_step_over_info, clear_step_over_info)
53 (stepping_past_instruction_at): New functions.
54 (handle_inferior_event): Clear the step-over info when
55 trap_expected is cleared.
56 (resume): Remove now stale comment.
57 (clear_proceed_status): Clear step-over info.
58 (proceed): Adjust step-over handling to set or clear the step-over
59 info instead of removing all breakpoints.
60 (handle_signal_stop): When setting up a thread-hop, don't remove
62 (stop_stepping): Clear step-over info.
63 (keep_going): Adjust step-over handling to set or clear step-over
64 info and then always inserting breakpoints, instead of removing
65 all breakpoints when stepping over one.
67 2014-03-20 Pedro Alves <palves@redhat.com>
69 * infrun.c (previous_inferior_ptid): Adjust comment.
70 (deferred_step_ptid): Delete.
71 (infrun_thread_ptid_changed, prepare_to_proceed)
72 (init_wait_for_inferior): Adjust.
73 (handle_signal_stop): Delete deferred_step_ptid handling.
75 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
78 * defs.h (sync_quit_force_run): New declaration.
79 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
80 * event-top.c (async_sigterm_handler): New declaration.
81 (async_sigterm_token): New variable.
82 (async_init_signals): Create also async_sigterm_token.
83 (async_sigterm_handler): New function.
84 (sync_quit_force_run): New variable.
85 (handle_sigterm): Replace quit_force call by other calls.
86 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
88 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
90 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
91 offset into SPE pseudo registers.
93 2014-03-18 Pedro Alves <palves@redhat.com>
96 * inferior.h (print_stop_event): Declare.
97 * infrun.c (print_stop_event): New, factored out from ...
98 (normal_stop): ... this.
99 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
100 of bpstat_print/print_stack_frame.
102 2014-03-17 Tom Tromey <tromey@redhat.com>
104 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
106 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
108 * ada-lang.c (decode_constrained_packed_array): Perform a
109 minimal coercion for reference with coerce_ref instead of
112 2014-03-17 Tristan Gingold <gingold@adacore.com>
114 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
115 (darwin_solib_create_inferior_hook): Emit a warning if version
118 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
120 * python/py-value.c (get_field_flag): Cast flag_name argument to
121 PyObject_GetAttrString to support Python 2.4.
123 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
125 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
126 (Global Maintainers): Remove Jan Kratochvil.
128 2014-03-14 Pedro Alves <palves@redhat.com>
130 * inferior.h (terminal_ours_for_output): Rename to ...
131 (child_terminal_ours_for_output): ... this.
132 (terminal_save_ours): Rename to ...
133 (child_terminal_save_ours): ... this.
134 (terminal_ours): Rename to ...
135 (child_terminal_ours): ... this.
136 (terminal_inferior): Rename to ...
137 (child_terminal_inferior): ... this.
138 (terminal_init_inferior): Rename to ...
139 (child_terminal_init_inferior): ... this.
140 (terminal_init_inferior_with_pgrp): Rename to ...
141 (child_terminal_init_inferior_with_pgrp): ... this.
142 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
143 (child_terminal_init_with_pgrp): ... this.
144 (terminal_save_ours): Rename to ...
145 (child_terminal_save_ours): ... this.
146 (terminal_init_inferior): Rename to ...
147 (child_terminal_init): ... this. Adjust.
148 (terminal_inferior): Rename to ...
149 (child_terminal_inferior): ... this.
150 (terminal_ours_for_output): Rename to ...
151 (child_terminal_ours_for_output): ... this. Adjust.
152 (terminal_ours): Rename to ...
153 (child_terminal_ours): ... this.
154 (terminal_ours_1): Rename to ...
155 (child_terminal_ours_1): ... this. Adjust.
156 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
157 * windows-nat.c (do_initial_windows_stuff): Adjust.
158 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
159 (gnu_terminal_init): ... this. Adjust.
160 (gnu_target): Adjust.
161 * inf-child.c (inf_child_target): Adjust.
163 2014-03-13 Doug Evans <xdje42@gmail.com>
166 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
169 2014-03-13 Doug Evans <xdje42@gmail.com>
171 * value.c (record_latest_value): Call release_value_or_incref
172 instead of release_value.
174 2014-03-13 Pedro Alves <palves@redhat.com>
176 * procfs.c (procfs_target): Don't override to_shortname,
177 to_longname or to_doc.
179 2014-03-13 Pedro Alves <palves@redhat.com>
181 * inf-child.c (inf_child_open, inf_child_target): Don't mention
182 Unix in user visible strings.
184 2014-03-12 Stan Shebs <stan@codesourcery.com>
186 * gdbtypes.h: Annotate comments for Doxygen, add a page
187 block comment with some general info.
189 2014-03-12 Pedro Alves <palves@redhat.com>
191 * infcmd.c (prepare_execution_command): New function, factored out
192 from several execution commands.
193 (run_command_1, continue_command, step_1, jump_command)
194 (signal_command, until_command, advance_command, finish_command)
195 (attach_command): Use prepare_execution_command.
197 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
199 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
202 (struct arm_linux_thread_points): Removed.
203 (struct arm_linux_process_info): New.
204 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
205 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
206 (arm_linux_find_breakpoints_by_tid): Removed.
207 (struct arch_lwp_info): New.
208 (arm_linux_find_process_pid): New functions.
209 (arm_linux_add_process): New functions.
210 (arm_linux_process_info_get): New functions.
211 (arm_linux_forget_process): New function.
212 (arm_linux_get_debug_reg_state): New function.
213 (struct update_registers_data): New.
214 (update_registers_callback): New function.
215 (arm_linux_insert_hw_breakpoint1): Updated.
216 (arm_linux_remove_hw_breakpoint1): Updated.
217 (arm_linux_insert_hw_breakpoint): Updated.
218 (arm_linux_remove_hw_breakpoint): Updated.
219 (arm_linux_insert_watchpoint): Updated.
220 (arm_linux_remove_watchpoint): Updated.
221 (arm_linux_new_thread): Updated.
222 (arm_linux_prepare_to_resume): New function.
223 (arm_linux_new_fork): New function.
224 (_initialize_arm_linux_nat): Updated.
226 2014-03-12 Pedro Alves <palves@redhat.com>
228 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
230 2014-03-12 Tom Tromey <tromey@redhat.com>
232 * inf-child.c (return_zero): New function.
233 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
234 * aix-thread.c (aix_thread_inferior_created): New function.
235 (aix_thread_attach): Remove.
236 (init_aix_thread_ops): Don't set to_attach.
237 (_initialize_aix_thread): Register inferior_created observer.
238 * corelow.c (init_core_ops): Don't set to_attach or
240 * exec.c (init_exec_ops): Don't set to_attach or
242 * infcmd.c (run_command_1): Use find_run_target. Make direct
244 (attach_command): Use find_attach_target. Make direct target
246 * record-btrace.c (init_record_btrace_ops): Don't set
248 * record-full.c (record_full_can_async_p, record_full_is_async_p):
250 (init_record_full_ops, init_record_full_core_ops): Update. Don't
251 set to_create_inferior.
252 * target.c (complete_target_initialization): Add assertion.
253 (target_create_inferior): Remove.
254 (find_default_attach, find_default_create_inferior): Remove.
255 (find_attach_target, find_run_target): New functions.
256 (find_default_is_async_p, find_default_can_async_p)
257 (target_supports_non_stop, target_attach): Remove.
258 (init_dummy_target): Don't set to_create_inferior or
259 to_supports_non_stop.
260 * target.h (struct target_ops) <to_attach>: Add comment. Remove
262 <to_create_inferior>: Add comment.
263 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
264 TARGET_DEFAULT_RETURN.
265 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
266 (find_attach_target, find_run_target): Declare.
267 (target_create_inferior): Remove.
268 (target_has_execution_1): Update comment.
269 (target_supports_non_stop): Remove.
270 * target-delegates.c: Rebuild.
272 2014-03-12 Pedro Alves <palves@redhat.com>
274 * inf-child.h: Update comment to not mention Unix.
276 2014-03-12 Pedro Alves <palves@redhat.com>
278 * inf-child.c: Update top comment to not mention Unix. Add
279 generic comment describing how this target is meant to be used.
280 (inf_child_post_attach, inf_child_post_startup_inferior)
281 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
284 2014-03-12 Pedro Alves <palves@redhat.com>
286 * nto-procfs.c: Include inf-child.h.
287 (procfs_ops): Delete global.
288 (procfs_can_run): Delete method.
289 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
290 target pointer instead of referencing procfs_ops.
291 (procfs_prepare_to_store): Delete.
292 (init_procfs_ops): Delete function.
293 (procfs_target): New function, based on init_procfs_ops, but
294 inherit inf_child_target.
295 (_initialize_procfs): Use procfs_target.
297 2014-03-12 Pedro Alves <palves@redhat.com>
299 * windows-nat.c: Include inf-child.h.
300 (windows_ops): Delete global.
301 (windows_open, windows_prepare_to_store, windows_can_run): Delete
303 (init_windows_ops): Delete function.
304 (windows_target): New function, based on init_windows_ops, but
305 inherit inf_child_target.
306 (_initialize_windows_nat): Use windows_target. Install x86
307 specific target methods here.
309 2014-03-10 Doug Evans <xdje42@gmail.com>
311 * guile/guile.c (call_initialize_gdb_module): New function.
312 (initialize_guile): Replace call to scm_init_guile with call to
315 2014-03-10 Joel Brobecker <brobecker@adacore.com>
317 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
318 in call to TYPE_CODE macro.
320 2014-03-10 Jerome Guitton <guitton@adacore.com>
322 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
323 Resolve tagged types to full view.
325 2014-03-10 Hui Zhu <hui@codesourcery.com>
327 * target.h (target_insert_breakpoint): Remove "hardware" from its
330 2014-03-07 Doug Evans <dje@google.com>
332 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
334 2014-03-07 Doug Evans <dje@google.com>
336 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
337 Remove unused local comp_dir_attr. Assert exactly one of
338 stub_comp_unit_die, stub_comp_dir is non-NULL.
340 2014-03-07 Joel Brobecker <brobecker@adacore.com>
342 * target.h (complete_target_initialization, add_target):
345 2014-03-07 Pedro Alves <palves@redhat.com>
347 * go32-nat.c: Include inf-child.h.
348 (go32_ops): Delete global.
349 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
351 (go32_create_inferior): Push the passed in target pointer instead
352 of referencing go32_ops.
353 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
354 (go32_target): New function, based on init_go32_ops, but inherit
356 (_initialize_go32_nat): Use go32_target. Move parts of
359 2014-03-06 Joel Brobecker <brobecker@adacore.com>
361 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
362 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
363 SYMBOL_VALUE_ADDRESS.
364 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
366 2014-03-06 Yao Qi <yao@codesourcery.com>
368 * breakpoint.c (get_tracepoint_by_number): Remove argument
369 optional_p. All callers updated. Adjust comments. Update
371 * breakpoint.h (get_tracepoint_by_number): Update declaration.
373 2014-03-06 Yao Qi <yao@codesourcery.com>
375 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
376 early if get_number returns zero. Use 'p' instead of 'args'.
378 2014-03-06 Yao Qi <yao@codesourcery.com>
380 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
383 2014-03-06 Yao Qi <yao@codesourcery.com>
386 * tracepoint.c (check_trace_running): New function.
387 (trace_find_command): Move code to check_trace_running and
388 call check_trace_running.
389 (trace_find_pc_command): Likewise.
390 (trace_find_tracepoint_command): Likewise.
391 (trace_find_line_command): Likewise.
392 (trace_find_range_command): Likewise.
393 * tracepoint.h (check_trace_running): Likewise.
394 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
396 2014-03-06 Yao Qi <yao@codesourcery.com>
398 * target.h (struct target_ops) <to_traceframe_info>: Use
399 TARGET_DEFAULT_NORETURN (tcomplain ()).
400 * target-delegates.c: Regenerated.
402 2014-03-05 Pedro Alves <palves@redhat.com>
405 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
406 void. Update comment.
407 (dcache_xfer_memory): Delete.
408 (dcache_read_memory_partial): New, based on the read bits of
410 (dcache_update): Add status parameter. Use ULONGEST for len, and
411 adjust. Discard cache lines if the reason for the update was
413 * dcache.h (dcache_xfer_memory): Delete declaration.
414 (dcache_read_memory_partial): New declaration.
415 (dcache_update): Update prototype.
416 * target.c (raw_memory_xfer_partial): Update the dcache here.
417 (memory_xfer_partial_1): Don't handle dcache writes here.
419 2014-03-05 Mike Frysinger <vapier@gentoo.org>
421 * remote-sim.c (gdbsim_load): Add const to prog.
423 2014-03-03 Tom Tromey <tromey@redhat.com>
425 * elfread.c (probe_key): Change to bfd_data.
426 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
427 now per-BFD, not per-objfile.
428 * stap-probe.c (stap_probe_destroy): Update comment.
429 (handle_stap_probe): Allocate on the per-BFD obstack.
431 2014-03-03 Tom Tromey <tromey@redhat.com>
433 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
434 * breakpoint.c (create_longjmp_master_breakpoint): Use
436 (add_location_to_breakpoint, bkpt_probe_insert_location)
437 (bkpt_probe_remove_location): Update.
438 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
439 * elfread.c (elf_symfile_relocate_probe): Remove.
440 (elf_probe_fns): Update.
441 (insert_exception_resume_breakpoint): Change type of "probe"
442 parameter to bound_probe.
443 (check_exception_resume): Update.
444 * objfiles.c (objfile_relocate1): Don't relocate probes.
445 * probe.c (bound_probe_s): New typedef.
446 (parse_probes): Use get_probe_address. Set sal's objfile.
447 (find_probe_by_pc): Return a bound_probe.
448 (collect_probes): Return a VEC(bound_probe_s).
449 (compare_probes): Update.
450 (gen_ui_out_table_header_info): Change type of "probes"
452 (info_probes_for_ops): Update.
453 (get_probe_address): New function.
454 (probe_safe_evaluate_at_pc): Update.
455 * probe.h (struct probe_ops) <get_probe_address>: New field.
456 <set_semaphore, clear_semaphore>: Add objfile parameter.
457 (struct probe) <objfile>: Remove field.
459 <address>: Update comment.
460 (struct bound_probe): New.
461 (find_probe_by_pc): Return a bound_probe.
462 (get_probe_address): Declare.
463 * solib-svr4.c (struct probe_and_action) <address>: New field.
464 (hash_probe_and_action, equal_probe_and_action): Update.
465 (register_solib_event_probe): Add address parameter.
466 (solib_event_probe_at): Update.
467 (svr4_create_probe_breakpoints): Add objfile parameter. Use
469 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
470 (stap_get_probe_address): New function.
471 (stap_can_evaluate_probe_arguments, compute_probe_arg)
472 (compile_probe_arg): Update.
473 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
475 (handle_stap_probe): Don't relocate the probe.
476 (stap_relocate): Remove.
477 (stap_gen_info_probes_table_values): Update.
478 (stap_probe_ops): Remove stap_relocate.
479 * symfile-debug.c (debug_sym_relocate_probe): Remove.
480 (debug_sym_probe_fns): Update.
481 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
482 * symtab.c (init_sal): Use memset.
483 * symtab.h (struct symtab_and_line) <objfile>: New field.
484 * tracepoint.c (start_tracing, stop_tracing): Update.
486 2014-03-03 Tom Tromey <tromey@redhat.com>
488 * probe.h (parse_probes, find_probe_by_pc)
489 (find_probes_in_objfile): Fix comments.
491 2014-03-02 Doug Evans <xdje42@gmail.com>
493 * infrun.c (handle_signal_stop): Replace test for
494 TARGET_WAITKIND_STOPPED with an assert.
496 2014-03-02 Doug Evans <xdje42@gmail.com>
498 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
500 2014-03-02 Doug Evans <xdje42@gmail.com>
502 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
504 2014-03-01 Mark Kettenis <kettenis@gnu.org>
506 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
508 2014-03-01 Mark Kettenis <kettenis@gnu.org>
510 * i386obsd-nat.c: Include "obsd-nat.h".
511 (_initialize_i386obsd_nat): Call obsd_add_target instead of
513 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
515 2014-03-01 Mark Kettenis <kettenis@gnu.org>
517 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
519 2014-03-01 Mark Kettenis <kettenis@gnu.org>
521 * mips64obsd-nat.c: Include "obsd-nath".
522 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
524 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
526 2014-03-01 Mark Kettenis <kettenis@gnu.org>
528 * amd64obsd-nat.c: Include "obsd-nat,h.
529 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
531 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
533 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
535 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
536 (find_overload_match): Update call to find_oload_champ.
537 (find_oload_champ_namespace_loop): Likewise
539 2014-02-28 Mark Kettenis <kettenis@gnu.org>
541 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
543 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
544 * config/sparc/obsd64.mh: New file.
545 * sparc64obsd-nat.c: New file.
547 * obsd-nat.h: New file.
548 * obsd-nat.c: New file.
549 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
550 (ALLDEPFILES): Add obsd-nat.c.
552 2014-02-28 Tom Tromey <tromey@redhat.com>
554 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
555 * cli-out.h (cli_ui_out_impl): Now const.
556 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
557 * ui-out.c (struct ui_out) <impl>: Now const.
558 (default_ui_out_impl): Now const.
559 (ui_out_new): Make 'impl' parameter const.
560 * ui-out.h (ui_out_new): Update.
562 2014-02-27 Mark Kettenis <kettenis@gnu.org>
564 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
566 2014-02-27 Mark Kettenis <kettenis@gnu.org>
568 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
570 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
572 Additional PR 8882 fix.
573 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
575 2014-02-27 Pedro Alves <palves@redhat.com>
577 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
580 2014-02-27 Pedro Alves <palves@redhat.com>
583 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
584 * nat/linux-waitpid.c: Include string.h.
585 (status_to_str): Moved here and made extern.
586 * nat/linux-waitpid.h (status_to_str): New declaration.
588 2014-02-27 Hui Zhu <hui@codesourcery.com>
591 * infrun.c (ptid_match): Move ...
592 * common/ptid.c (ptid_match): ... here.
593 * inferior.h (ptid_match): Move ...
594 * common/ptid.h (ptid_match): ... here.
596 2014-02-27 Mark Kettenis <kettenis@gnu.org>
598 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
599 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
602 2014-02-27 Mark Kettenis <kettenis@gnu.org>
604 * obsd-tdep.c (obsd_auxv_parse): New function.
605 (obsd_init_abi): Set auxv_parse.
607 * gdbarch.sh (auxv_parse): New.
608 * gdbarch.h: Regenerated.
609 * gdbarch.c: Regenerated.
610 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
612 2014-02-26 Ludovic Courtès <ludo@gnu.org>
614 * guile/scm-value.c (gdbscm_history_append_x): New function.
615 (value_functions): Add it.
617 2014-02-27 Joel Brobecker <brobecker@adacore.com>
619 * dwarf2read.c (attr_value_as_address): New function.
620 (dwarf2_find_base_address, read_call_site_scope): Use
621 attr_value_as_address in place of DW_ADDR.
622 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
623 the low and high addresses. Slight rework of the handling
624 of the high pc being a constant form, and limit it to
625 DWARF verson 4 or higher.
626 (dwarf2_record_block_ranges): Likewise.
627 (read_partial_die): Likewise.
628 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
630 2014-02-26 Tom Tromey <tromey@redhat.com>
632 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
634 2014-02-26 Tom Tromey <tromey@redhat.com>
636 * elfread.c (elf_read_minimal_symbols): Return early if
637 minimal symbols have already been read. Add "ei" parameter.
638 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
639 * minsyms.c (prim_record_minimal_symbol_full): Update.
640 * objfiles.h (struct objstats) <n_minsyms>: Move...
641 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
642 * symmisc.c (print_objfile_statistics): Update.
644 2014-02-26 Tom Tromey <tromey@redhat.com>
646 * elfread.c (elf_read_minimal_symbols): New function, from
648 (elf_symfile_read): Call it.
650 2014-02-26 Tom Tromey <tromey@redhat.com>
652 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
653 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
654 (lookup_minimal_symbol_solib_trampoline)
655 (lookup_minimal_symbol_by_pc_section_1)
656 (lookup_minimal_symbol_and_objfile): Update.
657 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
658 Don't allocate a minimal symbol if minsyms have already been read.
659 (build_minimal_symbol_hash_tables): Update.
660 (install_minimal_symbols): Do nothing if minsyms already read.
661 Use the per-BFD obstack.
662 (terminate_minimal_symbol_table): Use the per-BFD obstack.
663 * objfiles.c (allocate_objfile): Call
664 terminate_minimal_symbol_table later.
665 (have_minimal_symbols): Update.
666 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
667 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
668 Move from struct objfile.
669 <minsyms_read>: New field.
670 (struct objfile) <msymbols, minimal_symbol_count,
671 msymbol_hash, msymbol_demangled_hash>: Move.
672 (ALL_OBJFILE_MSYMBOLS): Update.
673 * symfile.c (read_symbols): Set minsyms_read.
674 (reread_symbols): Update.
675 * symmisc.c (dump_objfile, dump_msymbols): Update.
677 2014-02-26 Tom Tromey <tromey@redhat.com>
679 * minsyms.c (msymbols_sort): Remove.
680 * minsyms.h (msymbols_sort): Remove.
681 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
682 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
683 * elfread.c (elf_symtab_read): Don't add section offsets.
684 * xcoffread.c (record_minimal_symbol): Don't add section offset
685 to minimal symbol address.
686 * somread.c (text_offset, data_offset): Remove.
687 (som_symtab_read): Don't add section offsets to minimal symbol
689 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
690 Don't add section offsets to minimal symbols.
691 * coffread.c (coff_symtab_read): Don't add section offsets
692 to minimal symbol addresses.
693 * machoread.c (macho_symtab_add_minsym): Don't add section offset
694 to minimal symbol addresses.
695 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
696 section offset to minimal symbol addresses.
697 * mdebugread.c (parse_partial_symbols): Don't add section
698 offset to minimal symbol addresses.
699 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
700 offset to minimal symbol addresses.
702 2014-02-26 Tom Tromey <tromey@redhat.com>
704 * ada-lang.c (ada_main_name): Update.
705 (ada_add_standard_exceptions): Update.
706 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
707 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
708 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
709 * auxv.c (ld_so_xfer_auxv): Update.
710 * avr-tdep.c (avr_scan_prologue): Update.
711 * ax-gdb.c (gen_var_ref): Update.
712 * blockframe.c (get_pc_function_start)
713 (find_pc_partial_function_gnu_ifunc): Update.
714 * breakpoint.c (create_overlay_event_breakpoint)
715 (create_longjmp_master_breakpoint)
716 (create_std_terminate_master_breakpoint)
717 (create_exception_master_breakpoint): Update.
718 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
719 * c-valprint.c (c_val_print): Update.
720 * coff-pe-read.c (add_pe_forwarded_sym): Update.
721 * common/agent.c (agent_look_up_symbols): Update.
722 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
723 * dwarf2loc.c (call_site_to_target_addr): Update.
724 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
725 * elfread.c (elf_gnu_ifunc_record_cache)
726 (elf_gnu_ifunc_resolve_by_got): Update.
727 * findvar.c (default_read_var_value): Update.
728 * frame.c (inside_main_func): Update.
729 * frv-tdep.c (frv_frame_this_id): Update.
730 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
731 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
733 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
734 (hppa_hpux_find_dummy_bpaddr): Update.
735 * hppa-tdep.c (hppa_symbol_address): Update.
736 * infcmd.c (until_next_command): Update.
737 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
739 * linespec.c (minsym_found, add_minsym): Update.
740 * linux-nat.c (get_signo): Update.
741 * linux-thread-db.c (inferior_has_bug): Update.
742 * m32c-tdep.c (m32c_return_value)
743 (m32c_m16c_address_to_pointer): Update.
744 * m32r-tdep.c (m32r_frame_this_id): Update.
745 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
746 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
747 * maint.c (maintenance_translate_address): Update.
748 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
749 (frob_address): New function.
750 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
751 frob_address. Rename parameter to "pc_in".
752 (compare_minimal_symbols, compact_minimal_symbols): Use raw
754 (find_solib_trampoline_target, minimal_symbol_upper_bound):
756 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
757 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
758 * objc-lang.c (find_objc_msgsend): Update.
759 * objfiles.c (objfile_relocate1): Update.
760 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
761 * p-valprint.c (pascal_val_print): Update.
762 * parse.c (write_exp_msymbol): Update.
763 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
764 (ppc_elfv2_skip_entrypoint): Update.
765 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
766 * printcmd.c (build_address_symbolic, msym_info)
767 (address_info): Update.
768 * proc-service.c (ps_pglobal_lookup): Update.
769 * psymtab.c (find_pc_sect_psymtab_closer)
770 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
771 Change msymbol parameter to bound_minimal_symbol.
772 * ravenscar-thread.c (get_running_thread_id): Update.
773 * remote.c (remote_check_symbols): Update.
774 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
776 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
777 * solib-dsbt.c (lm_base): Update.
778 * solib-frv.c (lm_base, main_got): Update.
779 * solib-irix.c (locate_base): Update.
780 * solib-som.c (som_solib_create_inferior_hook)
781 (link_map_start): Update.
782 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
783 * solib-svr4.c (elf_locate_base, enable_break): Update.
784 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
785 (flush_ea_cache): Update.
786 * stabsread.c (define_symbol, scan_file_globals): Update.
787 * stack.c (find_frame_funname): Update.
788 * symfile-debug.c (debug_qf_expand_symtabs_matching)
789 (debug_qf_find_pc_sect_symtab): Update.
790 * symfile.c (simple_read_overlay_table)
791 (simple_overlay_update): Update.
792 * symfile.h (struct quick_symbol_functions)
793 <find_pc_sect_symtab>: Change type of msymbol to
794 bound_minimal_symbol.
795 * symmisc.c (dump_msymbols): Update.
796 * symtab.c (find_pc_sect_symtab_via_partial)
797 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
798 (search_symbols, print_msymbol_info): Update.
799 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
800 (MSYMBOL_VALUE_ADDRESS): Redefine.
801 (BMSYMBOL_VALUE_ADDRESS): New macro.
802 * tracepoint.c (scope_info): Update.
803 * tui/tui-disasm.c (tui_find_disassembly_address)
804 (tui_get_begin_asm_address): Update.
805 * valops.c (find_function_in_inferior): Update.
806 * value.c (value_static_field, value_fn_field): Update.
808 2014-02-26 Tom Tromey <tromey@redhat.com>
810 * ada-lang.c (ada_update_initial_language): Update.
811 (ada_main_name, ada_has_this_exception_support): Update.
812 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
813 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
814 * arm-tdep.c (arm_skip_stub): Update.
815 * auxv.c (ld_so_xfer_auxv): Update.
816 * avr-tdep.c (avr_scan_prologue): Update.
817 * ax-gdb.c (gen_var_ref): Update.
818 * breakpoint.c (struct breakpoint_objfile_data)
819 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
820 type to bound_minimal_symbol.
821 (create_overlay_event_breakpoint)
822 (create_longjmp_master_breakpoint)
823 (create_std_terminate_master_breakpoint)
824 (create_exception_master_breakpoint): Update.
825 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
826 * c-exp.y (classify_name): Update.
827 * coffread.c (coff_symfile_read): Update.
828 * common/agent.c (agent_look_up_symbols): Update.
829 * d-lang.c (d_main_name): Update.
830 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
831 * dec-thread.c (enable_dec_thread): Update.
832 * dwarf2loc.c (call_site_to_target_addr): Update.
833 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
834 * eval.c (evaluate_subexp_standard): Update.
835 * findvar.c (struct minsym_lookup_data) <result>: Change type
836 to bound_minimal_symbol.
838 (minsym_lookup_iterator_cb, default_read_var_value): Update.
839 * frame.c (inside_main_func): Update.
840 * frv-tdep.c (frv_frame_this_id): Update.
841 * gcore.c (call_target_sbrk): Update.
842 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
843 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
845 * go-lang.c (go_main_name): Update.
846 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
847 (hppa_hpux_find_import_stub_for_addr): Update.
848 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
849 Update. Change return type.
850 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
852 * jit.c (jit_breakpoint_re_set_internal): Update.
853 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
855 * linux-nat.c (get_signo): Update.
856 * linux-thread-db.c (inferior_has_bug): Update
857 * m32c-tdep.c (m32c_return_value)
858 (m32c_m16c_address_to_pointer): Update.
859 * m32r-tdep.c (m32r_frame_this_id): Update.
860 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
861 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
862 * minsyms.c (lookup_minimal_symbol_internal): Rename to
863 lookup_minimal_symbol. Change return type.
864 (lookup_minimal_symbol): Remove.
865 (lookup_bound_minimal_symbol): Update.
866 (lookup_minimal_symbol_text): Change return type.
867 (lookup_minimal_symbol_solib_trampoline): Change return type.
868 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
869 (lookup_minimal_symbol_solib_trampoline): Change return type.
870 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
871 * objc-lang.c (lookup_objc_class, lookup_child_selector)
872 (value_nsstring, find_imps): Update.
873 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
874 * p-lang.c (pascal_main_name): Update.
875 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
876 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
877 * proc-service.c (ps_pglobal_lookup): Update.
878 * ravenscar-thread.c (get_running_thread_msymbol): Change
880 (has_ravenscar_runtime, get_running_thread_id): Update.
881 * remote.c (remote_check_symbols): Update.
882 * sol-thread.c (ps_pglobal_lookup): Update.
883 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
884 * solib-dsbt.c (lm_base): Update.
885 * solib-frv.c (lm_base, frv_relocate_section_addresses):
887 * solib-irix.c (locate_base): Update.
888 * solib-som.c (som_solib_create_inferior_hook)
889 (som_solib_desire_dynamic_linker_symbols, link_map_start):
891 * solib-spu.c (spu_enable_break): Update.
892 * solib-svr4.c (elf_locate_base, enable_break): Update.
893 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
894 (flush_ea_cache): Update.
895 * stabsread.c (define_symbol): Update.
896 * symfile.c (simple_read_overlay_table): Update.
897 * symtab.c (find_pc_sect_line): Update.
898 * tracepoint.c (scope_info): Update.
899 * tui-disasm.c (tui_get_begin_asm_address): Update.
900 * value.c (value_static_field): Update.
902 2014-02-26 Tom Tromey <tromey@redhat.com>
904 * minsyms.c (prim_record_minimal_symbol_full): Use
905 SET_MSYMBOL_VALUE_ADDRESS.
906 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
907 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
908 SET_MSYMBOL_VALUE_ADDRESS.
909 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
910 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
912 2014-02-26 Tom Tromey <tromey@redhat.com>
914 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
915 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
916 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
917 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
918 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
919 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
920 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
921 * ada-lang.c (ada_main_name): Update.
922 (ada_lookup_simple_minsym): Update.
923 (ada_make_symbol_completion_list): Update.
924 (ada_add_standard_exceptions): Update.
925 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
926 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
927 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
928 * arm-tdep.c (skip_prologue_function): Update.
929 (arm_skip_stack_protector, arm_skip_stub): Update.
930 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
931 (arm_wince_skip_main_prologue): Update.
932 * auxv.c (ld_so_xfer_auxv): Update.
933 * avr-tdep.c (avr_scan_prologue): Update.
934 * ax-gdb.c (gen_var_ref): Update.
935 * block.c (call_site_for_pc): Update.
936 * blockframe.c (get_pc_function_start): Update.
937 (find_pc_partial_function_gnu_ifunc): Update.
938 * breakpoint.c (create_overlay_event_breakpoint): Update.
939 (create_longjmp_master_breakpoint): Update.
940 (create_std_terminate_master_breakpoint): Update.
941 (create_exception_master_breakpoint): Update.
942 (resolve_sal_pc): Update.
943 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
944 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
946 * c-valprint.c (c_val_print): Update.
947 * coff-pe-read.c (add_pe_forwarded_sym): Update.
948 * coffread.c (coff_symfile_read): Update.
949 * common/agent.c (agent_look_up_symbols): Update.
950 * dbxread.c (find_stab_function_addr): Update.
951 (end_psymtab): Update.
952 * dwarf2loc.c (call_site_to_target_addr): Update.
953 (func_verify_no_selftailcall): Update.
954 (tailcall_dump): Update.
955 (call_site_find_chain_1): Update.
956 (dwarf_expr_reg_to_entry_parameter): Update.
957 * elfread.c (elf_gnu_ifunc_record_cache): Update.
958 (elf_gnu_ifunc_resolve_by_got): Update.
959 * f-valprint.c (info_common_command): Update.
960 * findvar.c (read_var_value): Update.
961 * frame.c (get_prev_frame_1): Update.
962 (inside_main_func): Update.
963 * frv-tdep.c (frv_skip_main_prologue): Update.
964 (frv_frame_this_id): Update.
965 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
966 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
967 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
968 (gnuv3_skip_trampoline): Update.
969 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
970 (hppa64_hpux_in_solib_call_trampoline): Update.
971 (hppa_hpux_skip_trampoline_code): Update.
972 (hppa64_hpux_search_dummy_call_sequence): Update.
973 (hppa_hpux_find_import_stub_for_addr): Update.
974 (hppa_hpux_find_dummy_bpaddr): Update.
975 * hppa-tdep.c (hppa_symbol_address)
976 (hppa_lookup_stub_minimal_symbol): Update.
977 * i386-tdep.c (i386_skip_main_prologue): Update.
978 (i386_pe_skip_trampoline_code): Update.
979 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
980 * infcall.c (get_function_name): Update.
981 * infcmd.c (until_next_command): Update.
982 * jit.c (jit_breakpoint_re_set_internal): Update.
983 (jit_inferior_init): Update.
984 * linespec.c (minsym_found): Update.
985 (add_minsym): Update.
986 * linux-fork.c (info_checkpoints_command): Update.
987 * linux-nat.c (get_signo): Update.
988 * linux-thread-db.c (inferior_has_bug): Update.
989 * m32c-tdep.c (m32c_return_value): Update.
990 (m32c_m16c_address_to_pointer): Update.
991 (m32c_m16c_pointer_to_address): Update.
992 * m32r-tdep.c (m32r_frame_this_id): Update.
993 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
994 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
995 * maint.c (maintenance_translate_address): Update.
996 * minsyms.c (add_minsym_to_hash_table): Update.
997 (add_minsym_to_demangled_hash_table): Update.
998 (msymbol_objfile): Update.
999 (lookup_minimal_symbol): Update.
1000 (iterate_over_minimal_symbols): Update.
1001 (lookup_minimal_symbol_text): Update.
1002 (lookup_minimal_symbol_by_pc_name): Update.
1003 (lookup_minimal_symbol_solib_trampoline): Update.
1004 (lookup_minimal_symbol_by_pc_section_1): Update.
1005 (lookup_minimal_symbol_and_objfile): Update.
1006 (prim_record_minimal_symbol_full): Update.
1007 (compare_minimal_symbols): Update.
1008 (compact_minimal_symbols): Update.
1009 (build_minimal_symbol_hash_tables): Update.
1010 (install_minimal_symbols): Update.
1011 (terminate_minimal_symbol_table): Update.
1012 (find_solib_trampoline_target): Update.
1013 (minimal_symbol_upper_bound): Update.
1014 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1015 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1016 (mips_skip_pic_trampoline_code): Update.
1017 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1018 * objc-lang.c (selectors_info): Update.
1019 (classes_info): Update.
1020 (find_methods): Update.
1021 (find_imps): Update.
1022 (find_objc_msgsend): Update.
1023 * objfiles.c (objfile_relocate1): Update.
1024 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
1025 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1026 * p-valprint.c (pascal_val_print): Update.
1027 * parse.c (write_exp_msymbol): Update.
1028 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
1029 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
1030 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1031 * printcmd.c (build_address_symbolic): Update.
1033 (address_info): Update.
1034 * proc-service.c (ps_pglobal_lookup): Update.
1035 * psymtab.c (find_pc_sect_psymtab_closer): Update.
1036 (find_pc_sect_psymtab): Update.
1037 * python/py-framefilter.c (py_print_frame): Update.
1038 * ravenscar-thread.c (get_running_thread_id): Update.
1039 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
1041 * remote.c (remote_check_symbols): Update.
1042 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1043 (rs6000_skip_trampoline_code): Update.
1044 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
1045 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1046 * solib-dsbt.c (lm_base): Update.
1047 * solib-frv.c (lm_base): Update.
1049 * solib-irix.c (locate_base): Update.
1050 * solib-som.c (som_solib_create_inferior_hook): Update.
1051 (som_solib_desire_dynamic_linker_symbols): Update.
1052 (link_map_start): Update.
1053 * solib-spu.c (spu_enable_break): Update.
1054 (ocl_enable_break): Update.
1055 * solib-svr4.c (elf_locate_base): Update.
1056 (enable_break): Update.
1057 * spu-tdep.c (spu_get_overlay_table): Update.
1058 (spu_catch_start): Update.
1059 (flush_ea_cache): Update.
1060 * stabsread.c (define_symbol): Update.
1061 (scan_file_globals): Update.
1062 * stack.c (find_frame_funname): Update.
1063 (frame_info): Update.
1064 * symfile.c (simple_read_overlay_table): Update.
1065 (simple_overlay_update): Update.
1066 * symmisc.c (dump_msymbols): Update.
1067 * symtab.c (fixup_section): Update.
1068 (find_pc_sect_line): Update.
1069 (skip_prologue_sal): Update.
1070 (search_symbols): Update.
1071 (print_msymbol_info): Update.
1072 (rbreak_command): Update.
1073 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
1074 (completion_list_objc_symbol): Update.
1075 (default_make_symbol_completion_list_break_on): Update.
1076 * tracepoint.c (scope_info): Update.
1077 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
1078 (tui_get_begin_asm_address): Update.
1079 * valops.c (find_function_in_inferior): Update.
1080 * value.c (value_static_field): Update.
1081 (value_fn_field): Update.
1083 2014-02-26 Tom Tromey <tromey@redhat.com>
1085 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
1086 bound minimal symbols. Move code that knows about minsym
1088 * minsyms.c (minimal_symbol_upper_bound): ... here. New
1090 * minsyms.h (minimal_symbol_upper_bound): Declare.
1091 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
1092 minimal_symbol_upper_bound.
1094 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1096 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
1097 Use the type's name if its basic type does not have a tag.
1099 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1101 * dwarf2read.c (read_subrange_type): Add comment.
1103 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1105 * dwarf2read.c (update_enumeration_type_from_children): New
1106 function, mostly extracted from process_structure_scope.
1107 (read_enumeration_type): Call update_enumeration_type_from_children.
1108 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
1109 and flag_flag_enum fields.
1111 2014-02-26 Pedro Alves <palves@redhat.com>
1113 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
1114 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
1115 to_xfer_partial method.
1117 2014-02-26 Pedro Alves <palves@redhat.com>
1119 * target.c (complete_target_initialization): Don't install
1120 default_xfer_partial as to_xfer_partial hook.
1122 (update_current_target): Don't INHERIT nor de_fault
1123 deprecated_xfer_memory. Delete de_fault macro.
1124 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
1125 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
1126 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
1129 2014-02-26 Pedro Alves <palves@redhat.com>
1131 * go32-nat.c (my_write_child): New function.
1132 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
1133 (go32_xfer_partial): New function.
1134 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
1135 Instead install a to_xfer_partial hook.
1137 2014-02-26 Pedro Alves <palves@redhat.com>
1139 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
1140 to_xfer_partial helper. Rewrite.
1141 (procfs_xfer_partial): New function.
1142 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
1143 Install a to_xfer_partial hook.
1145 2014-02-26 Pedro Alves <palves@redhat.com>
1147 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
1148 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
1149 (m32r_xfer_partial): New function.
1150 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
1151 Install a to_xfer_partial hook.
1153 2014-02-26 Pedro Alves <palves@redhat.com>
1155 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
1157 (mips_xfer_partial): New function.
1158 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
1159 hook. Install a to_xfer_partial hook.
1161 2014-02-26 Joel Brobecker <brobecker@adacore.com>
1163 * gdbtypes.h (create_array_type_with_stride): Add declaration.
1164 * gdbtypes.c (create_array_type_with_stride): New function,
1165 renaming create_array_type, but with an added parameter
1166 called "bit_stride".
1167 (create_array_type): Re-implement using
1168 create_array_type_with_stride.
1169 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
1170 and DW_AT_bit_stride attributes.
1172 2014-02-26 Pedro Alves <palves@redhat.com>
1174 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
1175 task-specific breakpoints.
1177 2014-02-25 Pedro Alves <palves@redhat.com>
1179 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
1180 handling of object == TARGET_OBJECT_UNWIND_TABLE.
1182 2014-02-25 Stan Shebs <stan@codesourcery.com>
1184 * defs.h: Annotate comments for Doxygen.
1186 2014-02-25 Tom Tromey <tromey@redhat.com>
1188 * target.h (target_ignore): Don't declare.
1189 * target.c (target_ignore): Remove.
1191 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1194 * auto-load.c (auto_load_objfile_script_1): Change filename to
1197 2014-02-25 Joel Brobecker <brobecker@adacore.com>
1199 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
1200 documentation. Adjust prototype to match the target_ops
1201 to_xfer_partial method. Adjust implementation accordingly.
1203 2014-02-25 Hui Zhu <hui@codesourcery.com>
1205 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
1208 2014-02-25 Kevin Buettner <kevinb@redhat.com>
1210 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
1211 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
1212 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
1213 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
1214 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
1215 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
1216 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
1217 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
1219 (rl78_register_type): Use a data pointer type for SP and
1220 new pseudo registers mentioned above. Use a 16 bit integer
1221 type for all other register pairs.
1222 (rl78_register_name, rl78_g10_register_name): Update for
1223 new pseudo registers.
1224 (rl78_pseudo_register_read): Likewise.
1225 (rl78_pseudo_register_write): Likewise.
1226 (rl78_dwarf_reg_to_regnum): Return register numbers representing
1227 to the newly added pseudo registers.
1229 2014-02-24 Doug Evans <dje@google.com>
1231 * value.c (record_latest_value): Fix comment.
1232 * printcmd.c (print_command_1): Remove code to handle -1 return from
1233 record_latest_value.
1235 2014-02-24 Pedro Alves <palves@redhat.com>
1237 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
1238 deprecated_xfer_memory hook.
1239 (procfs_xfer_partial): Call procfs_xfer_memory instead
1240 of the deprecated_xfer_memory target hook.
1241 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
1244 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
1246 * windows-nat.c (windows_xfer_shared_libraries): Return
1247 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
1248 requested object is TARGET_OBJECT_LIBRARIES.
1250 2014-02-24 Yao Qi <yao@codesourcery.com>
1252 * target.h (enum target_xfer_status)
1253 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
1254 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
1256 * corefile.c (memory_error_message): User updated.
1257 * exec.c (section_table_read_available_memory): Likewise.
1258 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1259 * target.c (target_xfer_status_to_string): Likewise.
1260 (raw_memory_xfer_partial): Likewise.
1261 (memory_xfer_partial_1, target_xfer_partial): Likewise.
1262 * valops.c (read_value_memory): Likewise.
1263 * exec.h: Update comments.
1265 2014-02-24 Yao Qi <yao@codesourcery.com>
1267 * target.c (target_xfer_status_to_string): Rename argument err
1269 * target.h (target_xfer_status_to_string): Update declaration.
1270 Replace target_xfer_error_to_string with
1271 target_xfer_status_to_string in comment.
1273 2014-02-24 Yao Qi <yao@codesourcery.com>
1275 * mips-linux-nat.c (super_close): Update its type.
1276 (mips_linux_close): Pass 'self' to super_close.
1278 2014-02-24 Yao Qi <yao@codesourcery.com>
1280 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
1281 * corefile.c (read_memory): Adjusted.
1282 * target.c (target_write_with_progress): Adjusted.
1284 2014-02-23 Yao Qi <yao@codesourcery.com>
1288 2013-10-25 Yao Qi <yao@codesourcery.com>
1290 * remote.c (remote_traceframe_info): Return early if
1291 traceframe is not selected.
1293 2013-07-19 Yao Qi <yao@codesourcery.com>
1295 * target.c (update_current_target): Change the default action
1296 of 'to_traceframe_info' from tcomplain to return_zero.
1297 * target.h (struct target_ops) <to_traceframe_info>: Add more
1300 2014-02-23 Yao Qi <yao@codesourcery.com>
1302 * valops.c (read_value_memory): Rewrite it. Call
1303 target_xfer_partial in a loop.
1304 * exec.h (section_table_available_memory): Remove declaration.
1305 Move comments to ...
1306 * exec.c (section_table_available_memory): ... here. Make it
1309 2014-02-23 Yao Qi <yao@codesourcery.com>
1311 * exec.c (section_table_read_available_memory): New function.
1312 * exec.h (section_table_read_available_memory): Declare.
1313 * ctf.c (ctf_xfer_partial): Call
1314 section_table_read_available_memory.
1315 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1317 2014-02-23 Yao Qi <yao@codesourcery.com>
1319 * ctf.c (ctf_xfer_partial): Move code to ...
1320 * exec.c (exec_read_partial_read_only): ... it. New function.
1321 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1322 * tracefile.c: Include "exec.h".
1323 * exec.h (exec_read_partial_read_only): Declare.
1325 2014-02-23 Yao Qi <yao@codesourcery.com>
1327 * tracefile-tfile.c (tfile_has_all_memory): Remove.
1328 (tfile_has_memory): Remove.
1329 (init_tfile_ops): Don't set fields to_has_all_memory and
1330 to_has_memory of tfile_ops.
1331 * tracefile.c (tracefile_has_all_memory): New function.
1332 (tracefile_has_memory): New function.
1333 (init_tracefile_ops): Initialize fields to_has_all_memory and
1334 to_has_memory of 'ops'.
1336 2014-02-23 Yao Qi <yao@codesourcery.com>
1338 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
1339 (ctf_thread_alive, ctf_get_trace_status): Remove.
1340 (init_ctf_ops): Don't set some fields of ctf_ops. Call
1342 * tracefile-tfile.c (tfile_get_trace_status): Remove.
1343 (tfile_has_stack, tfile_has_registers): Remove.
1344 (tfile_thread_alive): Remove.
1345 (init_tfile_ops): Don't set some fields of tfile_ops. Call
1347 * tracefile.c (tracefile_has_stack): New function.
1348 (tracefile_has_registers): New function.
1349 (tracefile_thread_alive): New function.
1350 (tracefile_get_trace_status): New function.
1351 (init_tracefile_ops): New function.
1352 * tracefile.h (init_tracefile_ops): Declare.
1354 2014-02-23 Yao Qi <yao@codesourcery.com>
1356 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
1357 (O_LARGEFILE): Likewise.
1358 (tfile_ops): Likewise.
1359 (TRACE_HEADER_SIZE): Likewise.
1360 (trace_fd, trace_frames_offset, cur_offset): Likewise.
1361 (cur_data_size): Likewise.
1362 (tfile_read, tfile_open, tfile_interp_line): Likewise.
1363 (tfile_close, tfile_files_info): Likewise.
1364 (tfile_get_trace_status): Likewise.
1365 (tfile_get_tracepoint_status): Likewise.
1366 (tfile_get_traceframe_address): Likewise.
1367 (tfile_trace_find, match_blocktype): Likewise.
1368 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
1369 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
1370 (tfile_get_trace_state_variable_value): Likewise.
1371 (tfile_has_all_memory, tfile_has_memory): Likewise.
1372 (tfile_has_stack, tfile_has_registers): Likewise.
1373 (tfile_thread_alive, build_traceframe_info): Likewise.
1374 (tfile_traceframe_info, init_tfile_ops): Likewise.
1375 (_initialize_tracepoint): Don't call init_tfile_ops
1376 and add_target_with_completer.
1377 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
1378 exec.h, completer.h and filenames.h.
1379 (_initialize_tracefile_tfile): New function.
1381 2014-02-23 Yao Qi <yao@codesourcery.com>
1383 * Makefile.in (REMOTE_OBS): Append tracefile.o and
1385 (HFILES_NO_SRCDIR): Add tracefile.h.
1386 * ctf.c: Include "tracefile.h".
1387 * tracefile.h: New file.
1388 * tracefile.c: New file
1389 * tracefile-tfile.c: New file.
1390 * tracepoint.c: Include "tracefile.h".
1391 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
1392 (stop_reason_names): Add const.
1393 (trace_file_writer_xfree): Move it to tracefile.c.
1394 (trace_save, trace_save_command, trace_save_tfile): Likewise.
1395 (trace_save_ctf): Likewise.
1396 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
1397 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
1398 (tfile_write_header, tfile_write_regblock_type): Likewise.
1399 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
1400 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
1401 (tfile_write_raw_data, tfile_end): Likewise.
1402 (tfile_trace_file_writer_new): Likewise.
1403 (free_uploaded_tp): Make it extern.
1404 (free_uploaded_tsv): Make it extern.
1405 (_initialize_tracepoint): Move code to register command 'tsave'
1407 * tracepoint.h (stop_reason_names): Declare.
1408 (struct trace_frame_write_ops): Move it to tracefile.h.
1409 (struct trace_file_write_ops): Likewise.
1410 (struct trace_file_writer): Likewise.
1411 (free_uploaded_tsvs, free_uploaded_tps): Declare.
1413 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1416 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
1418 (get_cores_used_by_process): New parameter num_cores, use it.
1419 (linux_xfer_osdata_processes): Pass num_cores to it.
1420 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
1423 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
1425 * target.c (memory_xfer_partial): Fix length arg in call to
1426 breakpoint_xfer_memory.
1428 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1431 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
1432 number comes after the + or - signs. Adjust length of register
1433 name to be extracted.
1435 2014-02-20 Tom Tromey <tromey@redhat.com>
1437 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
1438 (ada_varobj_ops): Mark "extern".
1440 2014-02-20 Tom Tromey <tromey@redhat.com>
1442 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
1444 2014-02-20 Doug Evans <xdje42@gmail.com>
1446 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
1447 All callers updated.
1448 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
1449 All callers updated.
1450 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
1451 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
1453 2014-02-20 lin zuojian <manjian2006@gmail.com>
1454 Joel Brobecker <brobecker@adacore.com>
1455 Doug Evans <xdje42@gmail.com>
1458 * dwarf2read.c (struct die_info): New member in_process.
1459 (reset_die_in_process): New function.
1460 (process_die): Set it at the start, reset when returning.
1461 (inherit_abstract_dies): Only call process_die if origin_child_die
1462 not already being processed.
1464 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1466 * windows-nat.c (handle_unload_dll): Add function documentation.
1467 (do_initial_windows_stuff): Add comment explaining why we wait
1468 until after inferior initialization has finished before
1469 processing all DLLs.
1471 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1473 * windows-nat.c (get_module_name): Delete.
1474 (windows_get_exec_module_filename): New function, mostly
1475 inspired from get_module_name.
1476 (windows_pid_to_exec_file): Replace call to get_module_name
1477 by call to windows_get_exec_module_filename.
1479 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1481 * windows-nat.c (handle_load_dll): Rewrite this function's
1482 introductory comment. Remove code using get_module_name
1483 to get the DLL's name.
1485 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1487 * windows-nat.c (get_windows_debug_event): Ignore
1488 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
1489 if windows_initialization_done == 0.
1490 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
1491 Adjust implementation to always load all DLLs.
1492 (do_initial_windows_stuff): Replace call to
1493 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
1495 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1497 * windows-nat.c (_initialize_windows_nat): Deprecate the
1498 "dll-symbols" command. Turn the "add-shared-symbol-files"
1499 and "assf" aliases into commands, and deprecate them as well.
1500 * NEWS: Add entry explaining that "dll-symbols" and its two
1501 aliases are now deprecated.
1503 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1505 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
1506 new-line in debug string. Remove trailing spaces.
1508 2014-02-19 Stan Shebs <stan@codesourcery.com>
1510 * darwin-nat.c (darwin_xfer_partial): Fix return type.
1512 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
1514 * NEWS: Add entry for the new feature
1515 * python/py-value.c (valpy_binop): Call value_x_binop for struct
1518 2014-02-19 Stan Shebs <stan@codesourcery.com>
1520 * MAINTAINERS: List Yao Qi as nios2 maintainer.
1522 2014-02-19 Pedro Alves <palves@redhat.com>
1524 * common/ptid.h (struct ptid): Mention that process_stratum
1525 targets should prefer ptid.lwp.
1527 2014-02-19 Pedro Alves <palves@redhat.com>
1529 * remote.c (remote_thread_alive, write_ptid, read_ptid)
1530 (read_ptid, remote_newthread_step, remote_threads_extra_info)
1531 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
1532 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
1533 store remote thread ids rather than ptid.tid.
1534 (_initialize_remote): Adjust.
1536 2014-02-19 Tom Tromey <tromey@redhat.com>
1538 * target.c (target_get_unwinder): Rewrite.
1539 (target_get_tailcall_unwinder): Rewrite.
1540 * record-btrace.c (record_btrace_to_get_unwinder): New function.
1541 (record_btrace_to_get_tailcall_unwinder): New function.
1542 (init_record_btrace_ops): Update.
1543 * target.h (struct target_ops) <to_get_unwinder,
1544 to_get_tailcall_unwinder>: Now function pointers. Use
1545 TARGET_DEFAULT_RETURN.
1547 2014-02-19 Tom Tromey <tromey@redhat.com>
1549 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
1551 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
1553 2014-02-19 Tom Tromey <tromey@redhat.com>
1555 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
1557 * target-delegates.c: Rebuild.
1558 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
1559 TARGET_DEFAULT_FUNC.
1560 * target.c (default_target_decr_pc_after_break): Rename from
1561 forward_target_decr_pc_after_break. Simplify.
1562 (target_decr_pc_after_break): Rely on delegation.
1564 2014-02-19 Tom Tromey <tromey@redhat.com>
1566 * target.c (update_current_target): Do not INHERIT to_doc or
1567 to_magic. Do not de_fault to_open or to_close.
1569 2014-02-19 Tom Tromey <tromey@redhat.com>
1571 * gcore.h (objfile_find_memory_regions): Declare.
1572 * gcore.c (objfile_find_memory_regions): No longer static. Add
1574 (_initialize_gcore): Don't call exec_set_find_memory_regions.
1575 * exec.c: Include gcore.h.
1576 (exec_set_find_memory_regions): Remove.
1577 (exec_find_memory_regions): Remove.
1578 (exec_do_find_memory_regions): Remove.
1579 (init_exec_ops): Update.
1580 * defs.h (exec_set_find_memory_regions): Remove.
1582 2014-02-19 Tom Tromey <tromey@redhat.com>
1584 * target-delegates.c: Rebuild.
1585 * target.h (struct target_ops) <to_extra_thread_info,
1586 to_thread_name, to_pid_to_exec_file, to_get_section_table,
1587 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
1588 not 0, in TARGET_DEFAULT_RETURN.
1590 2014-02-19 Tom Tromey <tromey@redhat.com>
1592 * target.c (complete_target_initialization): Remove casts. Use
1593 return_zero_has_execution.
1594 (return_zero): Add "ignore" argument.
1595 (return_zero_has_execution): New function.
1596 (init_dummy_target): Remove casts. Use
1597 return_zero_has_execution.
1599 2014-02-19 Tom Tromey <tromey@redhat.com>
1601 * target.c (update_current_target): Update comments. Do not
1604 2014-02-19 Tom Tromey <tromey@redhat.com>
1606 * arm-linux-nat.c (arm_linux_read_description): Delegate when
1608 * corelow.c (core_read_description): Delegate when needed.
1609 * remote.c (remote_read_description): Delegate when needed.
1610 * target-delegates.c: Rebuild.
1611 * target.c (target_read_description): Rewrite.
1612 * target.h (struct target_ops) <to_read_description>: Update
1613 comment. Use TARGET_DEFAULT_RETURN.
1615 2014-02-19 Tom Tromey <tromey@redhat.com>
1617 * target-delegates.c: Rebuild.
1618 * target.c (update_current_target): Don't inherit or default
1620 (find_default_run_target): Check against delegate_can_run.
1621 * target.h (struct target_ops) <to_can_run>: Use
1622 TARGET_DEFAULT_RETURN.
1624 2014-02-19 Tom Tromey <tromey@redhat.com>
1626 * target-delegates.c: Rebuild.
1627 * target.c (target_disconnect): Unconditionally delegate.
1628 * target.h (struct target_ops) <to_disconnect>: Use
1629 TARGET_DEFAULT_NORETURN.
1631 2014-02-19 Tom Tromey <tromey@redhat.com>
1633 * record.c (record_stop): Unconditionally delegate.
1634 * target-delegates.c: Rebuild.
1635 * target.c (target_stop_recording): Unconditionally delegate.
1636 * target.h (struct target_ops) <to_stop_recording>: Use
1637 TARGET_DEFAULT_IGNORE.
1639 2014-02-19 Tom Tromey <tromey@redhat.com>
1641 * target-delegates.c: Rebuild.
1642 * target.c (target_enable_btrace): Unconditionally delegate.
1643 * target.h (struct target_ops) <to_enable_btrace>: Use
1644 TARGET_DEFAULT_NORETURN.
1646 2014-02-19 Tom Tromey <tromey@redhat.com>
1648 * target-delegates.c: Rebuild.
1649 * target.c (target_read_btrace): Unconditionally delegate.
1650 * target.h (struct target_ops) <to_read_btrace>: Use
1651 TARGET_DEFAULT_NORETURN.
1653 2014-02-19 Tom Tromey <tromey@redhat.com>
1655 * target-delegates.c: Rebuild.
1656 * target.c (target_teardown_btrace): Unconditionally delegate.
1657 * target.h (struct target_ops) <to_teardown_btrace>: Use
1658 TARGET_DEFAULT_NORETURN.
1660 2014-02-19 Tom Tromey <tromey@redhat.com>
1662 * target-delegates.c: Rebuild.
1663 * target.c (target_disable_btrace): Unconditionally delegate.
1664 * target.h (struct target_ops) <to_disable_btrace>: Use
1665 TARGET_DEFAULT_NORETURN.
1667 2014-02-19 Tom Tromey <tromey@redhat.com>
1669 * target-delegates.c: Rebuild.
1670 * target.c (default_search_memory): New function.
1671 (simple_search_memory): Update comment.
1672 (target_search_memory): Unconditionally delegate.
1673 * target.h (struct target_ops) <to_search_memory>: Use
1674 TARGET_DEFAULT_FUNC.
1676 2014-02-19 Tom Tromey <tromey@redhat.com>
1678 * auxv.c (default_auxv_parse): No longer static.
1679 (target_auxv_parse): Unconditionally delegate.
1680 * auxv.h (default_auxv_parse): Declare.
1681 * target-delegates.c: Rebuild.
1682 * target.c: Include auxv.h.
1683 * target.h (struct target_ops) <to_auxv_parse>: Use
1684 TARGET_DEFAULT_FUNC.
1686 2014-02-19 Tom Tromey <tromey@redhat.com>
1688 * target-delegates.c: Rebuild.
1689 * target.c (target_memory_map): Unconditionally delegate.
1690 * target.h (struct target_ops) <to_memory_map>: Use
1691 TARGET_DEFAULT_RETURN.
1693 2014-02-19 Tom Tromey <tromey@redhat.com>
1695 * target-delegates.c: Rebuild.
1696 * target.c (target_thread_alive): Unconditionally delegate.
1697 * target.h (struct target_ops) <to_thread_alive>: Use
1698 TARGET_DEFAULT_RETURN.
1700 2014-02-19 Tom Tromey <tromey@redhat.com>
1702 * target-delegates.c: Rebuild.
1703 * target.c (target_save_record): Unconditionally delegate.
1704 * target.h (struct target_ops) <to_save_record>: Use
1705 TARGET_DEFAULT_NORETURN.
1707 2014-02-19 Tom Tromey <tromey@redhat.com>
1709 * target-delegates.c: Rebuild.
1710 * target.c (target_delete_record): Unconditionally delegate.
1711 * target.h (struct target_ops) <to_delete_record>: Use
1712 TARGET_DEFAULT_NORETURN.
1714 2014-02-19 Tom Tromey <tromey@redhat.com>
1716 * target-delegates.c: Rebuild.
1717 * target.c (target_record_is_replaying): Unconditionally
1719 * target.h (struct target_ops) <to_record_is_replaying>: Use
1720 TARGET_DEFAULT_RETURN.
1722 2014-02-19 Tom Tromey <tromey@redhat.com>
1724 * target-delegates.c: Rebuild.
1725 * target.c (target_goto_record_begin): Unconditionally delegate.
1726 * target.h (struct target_ops) <to_goto_record_begin>: Use
1727 TARGET_DEFAULT_NORETURN.
1729 2014-02-19 Tom Tromey <tromey@redhat.com>
1731 * target-delegates.c: Rebuild.
1732 * target.c (target_goto_record_end): Unconditionally delegate.
1733 * target.h (struct target_ops) <to_goto_record_end>: Use
1734 TARGET_DEFAULT_NORETURN.
1736 2014-02-19 Tom Tromey <tromey@redhat.com>
1738 * target-delegates.c: Rebuild.
1739 * target.c (target_goto_record): Unconditionally delegate.
1740 * target.h (struct target_ops) <to_goto_record>: Use
1741 TARGET_DEFAULT_NORETURN.
1743 2014-02-19 Tom Tromey <tromey@redhat.com>
1745 * target-delegates.c: Rebuild.
1746 * target.c (target_insn_history): Unconditionally delegate.
1747 * target.h (struct target_ops) <to_insn_history>: Use
1748 TARGET_DEFAULT_NORETURN.
1750 2014-02-19 Tom Tromey <tromey@redhat.com>
1752 * target-delegates.c: Rebuild.
1753 * target.c (target_insn_history_from): Unconditionally delegate.
1754 * target.h (struct target_ops) <to_insn_history_from>: Use
1755 TARGET_DEFAULT_NORETURN.
1757 2014-02-19 Tom Tromey <tromey@redhat.com>
1759 * target-delegates.c: Rebuild.
1760 * target.c (target_insn_history_range): Unconditionally delegate.
1761 * target.h (struct target_ops) <to_insn_history_range>: Use
1762 TARGET_DEFAULT_NORETURN.
1764 2014-02-19 Tom Tromey <tromey@redhat.com>
1766 * target-delegates.c: Rebuild.
1767 * target.c (target_call_history): Unconditionally delegate.
1768 * target.h (struct target_ops) <to_call_history>: Use
1769 TARGET_DEFAULT_NORETURN.
1771 2014-02-19 Tom Tromey <tromey@redhat.com>
1773 * target-delegates.c: Rebuild.
1774 * target.c (target_call_history_from): Unconditionally delegate.
1775 * target.h (struct target_ops) <to_call_history_from>: Use
1776 TARGET_DEFAULT_NORETURN.
1778 2014-02-19 Tom Tromey <tromey@redhat.com>
1780 * target-delegates.c: Rebuild.
1781 * target.c (target_call_history_range): Unconditionally delegate.
1782 * target.h (struct target_ops) <to_call_history_range>: Use
1783 TARGET_DEFAULT_NORETURN.
1785 2014-02-19 Tom Tromey <tromey@redhat.com>
1787 * target-delegates.c: Rebuild.
1788 * target.c (target_verify_memory): Unconditionally delegate.
1789 * target.h (struct target_ops) <to_verify_memory>: Use
1790 TARGET_DEFAULT_NORETURN.
1792 2014-02-19 Tom Tromey <tromey@redhat.com>
1794 * target-delegates.c: Rebuild.
1795 * target.c (target_core_of_thread): Unconditionally delegate.
1796 * target.h (struct target_ops) <to_core_of_thread>: Use
1797 TARGET_DEFAULT_RETURN.
1799 2014-02-19 Tom Tromey <tromey@redhat.com>
1801 * target-delegates.c: Rebuild.
1802 * target.c (target_flash_done): Unconditionally delegate.
1803 * target.h (struct target_ops) <to_flash_done>: Use
1804 TARGET_DEFAULT_NORETURN.
1806 2014-02-19 Tom Tromey <tromey@redhat.com>
1808 * target-delegates.c: Rebuild.
1809 * target.c (target_flash_erase): Unconditionally delegate.
1810 * target.h (struct target_ops) <to_flash_erase>: Use
1811 TARGET_DEFAULT_NORETURN.
1813 2014-02-19 Tom Tromey <tromey@redhat.com>
1815 * target-delegates.c: Rebuild.
1816 * target.c (target_get_section_table): Unconditionally delegate.
1817 * target.h (struct target_ops) <to_get_section_table>: Use
1818 TARGET_DEFAULT_RETURN.
1820 2014-02-19 Tom Tromey <tromey@redhat.com>
1822 * target-delegates.c: Rebuild.
1823 * target.c (target_pid_to_str): Unconditionally delegate.
1824 (init_dummy_target): Don't initialize to_pid_to_str.
1825 (default_pid_to_str): Rename from dummy_pid_to_str.
1826 * target.h (struct target_ops) <to_pid_to_str>: Use
1827 TARGET_DEFAULT_FUNC.
1829 2014-02-19 Tom Tromey <tromey@redhat.com>
1831 * target-delegates.c: Rebuild.
1832 * target.c (target_find_new_threads): Unconditionally delegate.
1833 * target.h (struct target_ops) <to_find_new_threads>: Use
1834 TARGET_DEFAULT_RETURN.
1836 2014-02-19 Tom Tromey <tromey@redhat.com>
1838 * target-delegates.c: Rebuild.
1839 * target.c (target_program_signals): Unconditionally delegate.
1840 * target.h (struct target_ops) <to_program_signals>: Use
1841 TARGET_DEFAULT_IGNORE.
1843 2014-02-19 Tom Tromey <tromey@redhat.com>
1845 * target-delegates.c: Rebuild.
1846 * target.c (target_pass_signals): Unconditionally delegate.
1847 * target.h (struct target_ops) <to_pass_signals>: Use
1848 TARGET_DEFAULT_IGNORE.
1850 2014-02-19 Tom Tromey <tromey@redhat.com>
1852 * target-delegates.c: Rebuild.
1853 * target.c (default_mourn_inferior): New function.
1854 (target_mourn_inferior): Unconditionally delegate.
1855 * target.h (struct target_ops) <to_mourn_inferior>: Use
1856 TARGET_DEFAULT_FUNC.
1858 2014-02-19 Tom Tromey <tromey@redhat.com>
1860 * target-delegates.c: Rebuild.
1861 * target.c (default_follow_fork): New function.
1862 (target_follow_fork): Unconditionally delegate.
1863 * target.h (struct target_ops) <to_follow_fork>: Use
1864 TARGET_DEFAULT_FUNC.
1866 2014-02-19 Tom Tromey <tromey@redhat.com>
1868 * target-delegates.c: Rebuild.
1869 * target.c (target_kill): Unconditionally delegate.
1870 * target.h (struct target_ops) <to_kill>: Use
1871 TARGET_DEFAULT_NORETURN.
1873 2014-02-19 Tom Tromey <tromey@redhat.com>
1875 * target-delegates.c: Rebuild.
1876 * target.c (target_masked_watch_num_registers): Unconditionally
1878 * target.h (struct target_ops) <to_masked_watch_num_registers>:
1879 Use TARGET_DEFAULT_RETURN.
1881 2014-02-19 Tom Tromey <tromey@redhat.com>
1883 * target-delegates.c: Rebuild.
1884 * target.c (target_remove_mask_watchpoint): Unconditionally
1886 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
1887 TARGET_DEFAULT_RETURN.
1889 2014-02-19 Tom Tromey <tromey@redhat.com>
1891 * target-delegates.c: Rebuild.
1892 * target.c (target_insert_mask_watchpoint): Unconditionally
1894 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
1895 TARGET_DEFAULT_RETURN.
1897 2014-02-19 Tom Tromey <tromey@redhat.com>
1899 * target-delegates.c: Rebuild.
1900 * target.c (target_ranged_break_num_registers): Unconditionally
1902 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1903 Use TARGET_DEFAULT_RETURN.
1905 2014-02-19 Tom Tromey <tromey@redhat.com>
1907 * target-delegates.c: Rebuild.
1908 * target.c (target_fetch_registers): Unconditionally delegate.
1909 * target.h (struct target_ops) <to_fetch_registers>: Use
1910 TARGET_DEFAULT_NORETURN.
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_stop>: Use
1918 TARGET_DEFAULT_IGNORE.
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
1924 to_can_run_breakpoint_commands.
1925 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
1926 Use TARGET_DEFAULT_RETURN.
1928 2014-02-19 Tom Tromey <tromey@redhat.com>
1930 * target-delegates.c: Rebuild.
1931 * target.c (update_current_target): Don't inherit or default
1932 to_supports_evaluation_of_breakpoint_conditions.
1933 * target.h (struct target_ops)
1934 <to_supports_evaluation_of_breakpoint_conditions>: Use
1935 TARGET_DEFAULT_RETURN.
1937 2014-02-19 Tom Tromey <tromey@redhat.com>
1939 * target-delegates.c: Rebuild.
1940 * target.c (update_current_target): Don't inherit or default
1941 to_augmented_libraries_svr4_read.
1942 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
1943 Use TARGET_DEFAULT_RETURN.
1945 2014-02-19 Tom Tromey <tromey@redhat.com>
1947 * target-delegates.c: Rebuild.
1948 * target.c (update_current_target): Don't inherit or default
1950 * target.h (struct target_ops) <to_can_use_agent>: Use
1951 TARGET_DEFAULT_RETURN.
1953 2014-02-19 Tom Tromey <tromey@redhat.com>
1955 * target-delegates.c: Rebuild.
1956 * target.c (update_current_target): Don't inherit or default
1958 * target.h (struct target_ops) <to_use_agent>: Use
1959 TARGET_DEFAULT_NORETURN.
1961 2014-02-19 Tom Tromey <tromey@redhat.com>
1963 * target-delegates.c: Rebuild.
1964 * target.c (update_current_target): Don't inherit or default
1966 (return_null): Remove.
1967 * target.h (struct target_ops) <to_traceframe_info>: 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 inherit or default
1974 to_static_tracepoint_markers_by_strid.
1975 * target.h (struct target_ops)
1976 <to_static_tracepoint_markers_by_strid>: Use
1977 TARGET_DEFAULT_NORETURN.
1979 2014-02-19 Tom Tromey <tromey@redhat.com>
1981 * target-delegates.c: Rebuild.
1982 * target.c (update_current_target): Don't inherit or default
1983 to_static_tracepoint_marker_at.
1984 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
1985 Use TARGET_DEFAULT_RETURN.
1987 2014-02-19 Tom Tromey <tromey@redhat.com>
1989 * target-delegates.c: Rebuild.
1990 * target.c (update_current_target): Don't inherit or default
1992 * target.h (struct target_ops) <to_set_permissions>: Use
1993 TARGET_DEFAULT_IGNORE.
1995 2014-02-19 Tom Tromey <tromey@redhat.com>
1997 * target-delegates.c: Rebuild.
1998 * target.c (update_current_target): Don't inherit or default
2000 * target.h (struct target_ops) <to_get_tib_address>: Use
2001 TARGET_DEFAULT_NORETURN.
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
2008 * target.h (struct target_ops) <to_set_trace_notes>: Use
2009 TARGET_DEFAULT_RETURN.
2011 2014-02-19 Tom Tromey <tromey@redhat.com>
2013 * target-delegates.c: Rebuild.
2014 * target.c (update_current_target): Don't initialize
2015 to_set_trace_buffer_size.
2016 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
2017 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
2024 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
2025 TARGET_DEFAULT_IGNORE.
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
2031 to_set_disconnected_tracing.
2032 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
2033 TARGET_DEFAULT_IGNORE.
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_min_fast_tracepoint_insn_len.
2040 (return_minus_one): Remove.
2041 * target.h (struct target_ops)
2042 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
2044 2014-02-19 Tom Tromey <tromey@redhat.com>
2046 * target-delegates.c: Rebuild.
2047 * target.c (update_current_target): Don't inherit or default
2048 to_get_raw_trace_data.
2049 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
2050 TARGET_DEFAULT_NORETURN.
2052 2014-02-19 Tom Tromey <tromey@redhat.com>
2054 * target-delegates.c: Rebuild.
2055 * target.c (update_current_target): Don't inherit or default
2056 to_upload_trace_state_variables.
2057 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2058 Use TARGET_DEFAULT_RETURN.
2060 2014-02-19 Tom Tromey <tromey@redhat.com>
2062 * target-delegates.c: Rebuild.
2063 * target.c (update_current_target): Don't inherit or default
2064 to_upload_tracepoints.
2065 * target.h (struct target_ops) <to_upload_tracepoints>: Use
2066 TARGET_DEFAULT_RETURN.
2068 2014-02-19 Tom Tromey <tromey@redhat.com>
2070 * target-delegates.c: Rebuild.
2071 * target.c (update_current_target): Don't inherit or default
2073 * target.h (struct target_ops) <to_save_trace_data>: Use
2074 TARGET_DEFAULT_NORETURN.
2076 2014-02-19 Tom Tromey <tromey@redhat.com>
2078 * target-delegates.c: Rebuild.
2079 * target.c (update_current_target): Don't inherit or default
2080 to_get_trace_state_variable_value.
2081 * target.h (struct target_ops)
2082 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
2084 2014-02-19 Tom Tromey <tromey@redhat.com>
2086 * target-delegates.c: Rebuild.
2087 * target.c (update_current_target): Don't inherit or default
2089 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
2091 2014-02-19 Tom Tromey <tromey@redhat.com>
2093 * target-delegates.c: Rebuild.
2094 * target.c (update_current_target): Don't inherit or default
2096 * target.h (struct target_ops) <to_trace_stop>: Use
2097 TARGET_DEFAULT_NORETURN.
2099 2014-02-19 Tom Tromey <tromey@redhat.com>
2101 * target-delegates.c: Rebuild.
2102 * target.c (update_current_target): Don't inherit or default
2103 to_get_tracepoint_status.
2104 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
2105 TARGET_DEFAULT_NORETURN.
2107 2014-02-19 Tom Tromey <tromey@redhat.com>
2109 * target-delegates.c: Rebuild.
2110 * target.c (update_current_target): Don't inherit or default
2111 to_get_trace_status.
2112 * target.h (struct target_ops) <to_get_trace_status>: Use
2113 TARGET_DEFAULT_RETURN.
2115 2014-02-19 Tom Tromey <tromey@redhat.com>
2117 * target-delegates.c: Rebuild.
2118 * target.c (update_current_target): Don't inherit or default
2120 * target.h (struct target_ops) <to_trace_start>: Use
2121 TARGET_DEFAULT_NORETURN.
2123 2014-02-19 Tom Tromey <tromey@redhat.com>
2125 * target-delegates.c: Rebuild.
2126 * target.c (update_current_target): Don't inherit or default
2127 to_trace_set_readonly_regions.
2128 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2129 Use TARGET_DEFAULT_NORETURN.
2131 2014-02-19 Tom Tromey <tromey@redhat.com>
2133 * target-delegates.c: Rebuild.
2134 * target.c (update_current_target): Don't inherit or default
2135 to_disable_tracepoint.
2136 * target.h (struct target_ops) <to_disable_tracepoint>: Use
2137 TARGET_DEFAULT_NORETURN.
2139 2014-02-19 Tom Tromey <tromey@redhat.com>
2141 * target-delegates.c: Rebuild.
2142 * target.c (update_current_target): Don't inherit or default
2143 to_enable_tracepoint.
2144 * target.h (struct target_ops) <to_enable_tracepoint>: Use
2145 TARGET_DEFAULT_NORETURN.
2147 2014-02-19 Tom Tromey <tromey@redhat.com>
2149 * target-delegates.c: Rebuild.
2150 * target.c (update_current_target): Don't inherit or default
2151 to_download_trace_state_variable.
2152 * target.h (struct target_ops) <to_download_trace_state_variable>:
2153 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
2160 * target.h (struct target_ops) <to_can_download_tracepoint>: 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_download_tracepoint.
2168 * target.h (struct target_ops) <to_download_tracepoint>: Use
2169 TARGET_DEFAULT_NORETURN.
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
2176 * target.h (struct target_ops) <to_trace_init>: Use
2177 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
2184 * target.h (struct target_ops) <to_supports_string_tracing>: Use
2185 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
2192 * target.h (struct target_ops)
2193 <to_supports_enable_disable_tracepoint>: Use
2194 TARGET_DEFAULT_RETURN.
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
2200 to_supports_multi_process.
2201 * target.h (struct target_ops) <to_supports_multi_process>: Use
2202 TARGET_DEFAULT_RETURN.
2204 2014-02-19 Tom Tromey <tromey@redhat.com>
2206 * target-delegates.c: Rebuild.
2207 * target.c (update_current_target): Don't inherit or default
2208 to_get_ada_task_ptid.
2209 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
2210 TARGET_DEFAULT_FUNC.
2212 2014-02-19 Tom Tromey <tromey@redhat.com>
2214 * target-delegates.c: Rebuild.
2215 * target.c (update_current_target): Don't inherit or default
2216 to_thread_architecture.
2217 * target.h (struct target_ops) <to_thread_architecture>: Use
2218 TARGET_DEFAULT_FUNC.
2220 2014-02-19 Tom Tromey <tromey@redhat.com>
2222 * target-delegates.c: Rebuild.
2223 * target.c (update_current_target): Don't inherit or default
2224 to_execution_direction.
2225 * target.h (struct target_ops) <to_execution_direction>: Use
2226 TARGET_DEFAULT_FUNC.
2228 2014-02-19 Tom Tromey <tromey@redhat.com>
2230 * target-delegates.c: Rebuild.
2231 * target.c (update_current_target): Don't inherit or default
2232 to_can_execute_reverse.
2233 * target.h (struct target_ops) <to_can_execute_reverse>: Use
2234 TARGET_DEFAULT_RETURN.
2235 (target_can_execute_reverse): Unconditionally delegate.
2237 2014-02-19 Tom Tromey <tromey@redhat.com>
2239 * target-delegates.c: Rebuild.
2240 * target.c (update_current_target): Don't inherit or default
2242 (dummy_goto_bookmark): Remove.
2243 (init_dummy_target): Don't inherit or default to_goto_bookmark.
2244 * target.h (struct target_ops) <to_goto_bookmark>: Use
2245 TARGET_DEFAULT_NORETURN.
2247 2014-02-19 Tom Tromey <tromey@redhat.com>
2249 * target-delegates.c: Rebuild.
2250 * target.c (update_current_target): Don't inherit or default
2252 (dummy_get_bookmark): Remove.
2253 (init_dummy_target): Don't inherit or default to_get_bookmark.
2254 * target.h (struct target_ops) <to_get_bookmark>: Use
2255 TARGET_DEFAULT_NORETURN
2257 2014-02-19 Tom Tromey <tromey@redhat.com>
2259 * target-delegates.c: Rebuild.
2260 * target.c (update_current_target): Don't inherit or default
2261 to_make_corefile_notes.
2262 (init_dummy_target): Don't initialize to_make_corefile_notes.
2263 * target.h (struct target_ops) <to_make_corefile_notes>: Use
2264 TARGET_DEFAULT_FUNC.
2266 2014-02-19 Tom Tromey <tromey@redhat.com>
2268 * target-delegates.c: Rebuild.
2269 * target.c (update_current_target): Don't inherit or default
2270 to_find_memory_regions.
2271 (init_dummy_target): Don't initialize to_find_memory_regions.
2272 * target.h (struct target_ops) <to_find_memory_regions>: Use
2273 TARGET_DEFAULT_FUNC.
2275 2014-02-19 Tom Tromey <tromey@redhat.com>
2277 * target-delegates.c: Rebuild.
2278 * target.c (update_current_target): Don't inherit or default
2280 * target.h (struct target_ops) <to_log_command>: Use
2281 TARGET_DEFAULT_IGNORE.
2282 (target_log_command): Unconditionally delegate.
2284 2014-02-19 Tom Tromey <tromey@redhat.com>
2286 * target-delegates.c: Rebuild.
2287 * target.c (update_current_target): Don't inherit or default
2288 to_pid_to_exec_file.
2289 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
2290 TARGET_DEFAULT_RETURN.
2292 2014-02-19 Tom Tromey <tromey@redhat.com>
2294 * target-delegates.c: Rebuild.
2295 * target.c (update_current_target): Don't inherit or default
2297 (target_thread_name): Unconditionally delegate.
2298 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
2306 * target.h (struct target_ops) <to_extra_thread_info>: 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
2314 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
2322 (return_one): Remove.
2323 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
2324 TARGET_DEFAULT_RETURN.
2326 2014-02-19 Tom Tromey <tromey@redhat.com>
2328 * target-delegates.c: Rebuild.
2329 * target.c (update_current_target): Don't inherit or default
2330 to_insert_exec_catchpoint.
2331 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
2332 TARGET_DEFAULT_RETURN.
2334 2014-01-08 Tom Tromey <tromey@redhat.com>
2336 * target-delegates.c: Rebuild.
2337 * target.c (update_current_target): Don't inherit or default
2338 to_insert_exec_catchpoint.
2339 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
2340 TARGET_DEFAULT_RETURN.
2342 2014-02-19 Tom Tromey <tromey@redhat.com>
2344 * target-delegates.c: Rebuild.
2345 * target.c (update_current_target): Don't inherit or default
2346 to_remove_vfork_catchpoint.
2347 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
2348 TARGET_DEFAULT_RETURN.
2350 2014-02-19 Tom Tromey <tromey@redhat.com>
2352 * target-delegates.c: Rebuild.
2353 * target.c (update_current_target): Don't inherit or default
2354 to_insert_vfork_catchpoint.
2355 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
2356 TARGET_DEFAULT_RETURN.
2358 2014-02-19 Tom Tromey <tromey@redhat.com>
2360 * target-delegates.c: Rebuild.
2361 * target.c (update_current_target): Don't inherit or default
2362 to_remove_fork_catchpoint.
2363 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
2364 TARGET_DEFAULT_RETURN.
2366 2014-02-19 Tom Tromey <tromey@redhat.com>
2368 * target-delegates.c: Rebuild.
2369 * target.c (update_current_target): Don't inherit or default
2370 to_insert_fork_catchpoint.
2371 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
2372 TARGET_DEFAULT_RETURN.
2374 2014-02-19 Tom Tromey <tromey@redhat.com>
2376 * target-delegates.c: Rebuild.
2377 * target.c (update_current_target): Don't inherit or default
2378 to_post_startup_inferior.
2379 * target.h (struct target_ops) <to_post_startup_inferior>: Use
2380 TARGET_DEFAULT_IGNORE.
2382 2014-02-19 Tom Tromey <tromey@redhat.com>
2384 * target-delegates.c: Rebuild.
2385 * target.c (update_current_target): Don't inherit or default
2387 * target.h (struct target_ops) <to_load>: Use
2388 TARGET_DEFAULT_NORETURN.
2390 2014-02-19 Tom Tromey <tromey@redhat.com>
2392 * target-delegates.c: Rebuild.
2393 * target.c (update_current_target): Don't inherit or default
2395 * target.h (struct target_ops) <to_terminal_info>: Use
2396 TARGET_DEFAULT_FUNC.
2398 2014-02-19 Tom Tromey <tromey@redhat.com>
2400 * target-delegates.c: Rebuild.
2401 * target.c (update_current_target): Don't inherit or default
2402 to_terminal_save_ours.
2403 * target.h (struct target_ops) <to_terminal_save_ours>: Use
2404 TARGET_DEFAULT_IGNORE.
2406 2014-02-19 Tom Tromey <tromey@redhat.com>
2408 * target-delegates.c: Rebuild.
2409 * target.c (update_current_target): Don't inherit or default
2411 * target.h (struct target_ops) <to_terminal_ours>: Use
2412 TARGET_DEFAULT_IGNORE.
2414 2014-02-19 Tom Tromey <tromey@redhat.com>
2416 * target-delegates.c: Rebuild.
2417 * target.c (update_current_target): Don't inherit or default
2418 to_terminal_ours_for_output.
2419 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
2420 TARGET_DEFAULT_IGNORE.
2422 2014-02-19 Tom Tromey <tromey@redhat.com>
2424 * target-delegates.c: Rebuild.
2425 * target.c (update_current_target): Don't inherit or default
2426 to_terminal_inferior.
2427 * target.h (struct target_ops) <to_terminal_inferior>: Use
2428 TARGET_DEFAULT_IGNORE.
2430 2014-02-19 Tom Tromey <tromey@redhat.com>
2432 * target-delegates.c: Rebuild.
2433 * target.c (update_current_target): Don't inherit or default
2435 * target.h (struct target_ops) <to_terminal_init>: Use
2436 TARGET_DEFAULT_IGNORE.
2438 2014-02-19 Tom Tromey <tromey@redhat.com>
2440 * target-delegates.c: Rebuild.
2441 * target.c (update_current_target): Don't inherit or default
2442 to_can_accel_watchpoint_condition.
2443 * target.h (struct target_ops)
2444 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
2446 2014-02-19 Tom Tromey <tromey@redhat.com>
2448 * target-delegates.c: Rebuild.
2449 * target.c (update_current_target): Don't inherit or default
2450 to_region_ok_for_hw_watchpoint.
2451 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2452 Use TARGET_DEFAULT_FUNC.
2454 2014-02-19 Tom Tromey <tromey@redhat.com>
2456 * target-delegates.c: Rebuild.
2457 * target.c (update_current_target): Don't inherit or default
2458 to_watchpoint_addr_within_range.
2459 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
2460 Use TARGET_DEFAULT_FUNC.
2462 2014-02-19 Tom Tromey <tromey@redhat.com>
2464 * target-delegates.c: Rebuild.
2465 * target.c (update_current_target): Don't inherit or default
2466 to_remove_watchpoint.
2467 * target.h (struct target_ops) <to_remove_watchpoint>: Use
2468 TARGET_DEFAULT_NORETURN.
2470 2014-02-19 Tom Tromey <tromey@redhat.com>
2472 * target-delegates.c: Rebuild.
2473 * target.c (update_current_target): Don't inherit or default
2474 to_insert_watchpoint.
2475 * target.h (struct target_ops) <to_insert_watchpoint>: Use
2476 TARGET_DEFAULT_RETURN.
2478 2014-02-19 Tom Tromey <tromey@redhat.com>
2480 * target-delegates.c: Rebuild.
2481 * target.c (update_current_target): Don't inherit or default
2482 to_remove_hw_breakpoint.
2483 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
2484 TARGET_DEFAULT_RETURN.
2486 2014-02-19 Tom Tromey <tromey@redhat.com>
2488 * target-delegates.c: Rebuild.
2489 * target.c (update_current_target): Don't inherit or default
2490 to_insert_hw_breakpoint.
2491 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
2492 TARGET_DEFAULT_RETURN.
2494 2014-02-19 Tom Tromey <tromey@redhat.com>
2496 * target-delegates.c: Rebuild.
2497 * target.c (update_current_target): Don't inherit or default
2498 to_can_use_hw_breakpoint.
2499 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
2500 TARGET_DEFAULT_RETURN.
2502 2014-02-19 Tom Tromey <tromey@redhat.com>
2504 * target-delegates.c: Rebuild.
2505 * target.c (update_current_target): Don't inherit or default
2507 * target.h (struct target_ops) <to_files_info>: Use
2508 TARGET_DEFAULT_IGNORE.
2510 2014-02-19 Tom Tromey <tromey@redhat.com>
2512 * target-delegates.c: Rebuild.
2513 * target.c (update_current_target): Don't inherit or default
2515 * target.h (struct target_ops) <to_store>: Use
2516 TARGET_DEFAULT_NORETURN.
2518 2014-02-19 Tom Tromey <tromey@redhat.com>
2520 * target-delegates.c: Rebuild.
2521 * target.c (update_current_target): Don't inherit or default
2523 * target.h (struct target_ops) <to_post_attach>: Use
2524 TARGET_DEFAULT_IGNORE.
2526 2014-02-19 Tom Tromey <tromey@redhat.com>
2528 * target-delegates.c: Rebuild.
2529 * target.c (update_current_target): Don't inherit or default
2531 (default_rcmd): New function.
2532 (do_monitor_command): Unconditionally delegate.
2533 * target.h (struct target_ops) <to_rmcd>: Use
2534 TARGET_DEFAULT_FUNC.
2536 2014-02-19 Tom Tromey <tromey@redhat.com>
2538 * target-delegates.c: Rebuild.
2539 * target.c (init_dummy_target): Don't initialize to_attach.
2540 (target_attach): Unconditionally delegate.
2541 * target.h (struct target_ops) <to_attach>: Use
2542 TARGET_DEFAULT_FUNC.
2544 2014-02-19 Tom Tromey <tromey@redhat.com>
2546 * target-delegates.c: Rebuild.
2547 * target.c (target_detach): Unconditionally delegate.
2548 (init_dummy_target): Don't initialize to_detach.
2549 * target.h (struct target_ops) <to_detach>: Use
2550 TARGET_DEFAULT_IGNORE.
2552 2014-02-19 Tom Tromey <tromey@redhat.com>
2554 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2556 (target_augmented_libraries_svr4_read): Add argument.
2557 * target.c (update_current_target): Update.
2558 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
2561 2014-02-19 Tom Tromey <tromey@redhat.com>
2563 * target.h (struct target_ops) <to_call_history_range>: Add
2565 * target.c (target_call_history_range): Add argument.
2566 * record-btrace.c (record_btrace_call_history_range): Add 'self'
2568 (record_btrace_call_history_from): Update.
2570 2014-02-19 Tom Tromey <tromey@redhat.com>
2572 * target.h (struct target_ops) <to_call_history_from>: Add
2574 * target.c (target_call_history_from): Add argument.
2575 * record-btrace.c (record_btrace_call_history_from): Add 'self'
2578 2014-02-19 Tom Tromey <tromey@redhat.com>
2580 * target.h (struct target_ops) <to_call_history>: Add argument.
2581 * target.c (target_call_history): Add argument.
2582 * record-btrace.c (record_btrace_call_history): Add 'self'
2585 2014-02-19 Tom Tromey <tromey@redhat.com>
2587 * target.h (struct target_ops) <to_insn_history_range>: Add
2589 * target.c (target_insn_history_range): Add argument.
2590 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
2592 (record_btrace_insn_history_from): Update.
2594 2014-02-19 Tom Tromey <tromey@redhat.com>
2596 * target.h (struct target_ops) <to_insn_history_from>: Add
2598 * target.c (target_insn_history_from): Add argument.
2599 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
2602 2014-02-19 Tom Tromey <tromey@redhat.com>
2604 * target.h (struct target_ops) <to_insn_history>: Add argument.
2605 * target.c (target_insn_history): Add argument.
2606 * record-btrace.c (record_btrace_insn_history): Add 'self'
2609 2014-02-19 Tom Tromey <tromey@redhat.com>
2611 * target.h (struct target_ops) <to_goto_record>: Add argument.
2612 * target.c (target_goto_record): Add argument.
2613 * record-full.c (record_full_goto): Add 'self' argument.
2614 * record-btrace.c (record_btrace_goto): Add 'self' argument.
2616 2014-02-19 Tom Tromey <tromey@redhat.com>
2618 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
2619 * target.c (target_goto_record_end): Add argument.
2620 * record-full.c (record_full_goto_end): Add 'self' argument.
2621 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
2623 2014-02-19 Tom Tromey <tromey@redhat.com>
2625 * target.h (struct target_ops) <to_goto_record_begin>: Add
2627 * target.c (target_goto_record_begin): Add argument.
2628 * record-full.c (record_full_goto_begin): Add 'self' argument.
2629 * record-btrace.c (record_btrace_goto_begin): Add 'self'
2632 2014-02-19 Tom Tromey <tromey@redhat.com>
2634 * target.h (struct target_ops) <to_record_is_replaying>: Add
2636 * target.c (target_record_is_replaying): Add argument.
2637 * record-full.c (record_full_is_replaying): Add 'self' argument.
2638 * record-btrace.c (record_btrace_is_replaying): Add 'self'
2640 (record_btrace_xfer_partial, record_btrace_store_registers)
2641 (record_btrace_prepare_to_store, record_btrace_resume)
2642 (record_btrace_wait, record_btrace_decr_pc_after_break)
2643 (record_btrace_find_new_threads, record_btrace_thread_alive):
2646 2014-02-19 Tom Tromey <tromey@redhat.com>
2648 * target.h (struct target_ops) <to_delete_record>: Add argument.
2649 * target.c (target_delete_record): Add argument.
2650 * record-full.c (record_full_delete): Add 'self' argument.
2652 2014-02-19 Tom Tromey <tromey@redhat.com>
2654 * target.h (struct target_ops) <to_save_record>: Add argument.
2655 * target.c (target_save_record): Add argument.
2656 * record-full.c (record_full_save): Add 'self' argument.
2657 (record_full_save): Add 'self' argument.
2659 2014-02-19 Tom Tromey <tromey@redhat.com>
2661 * target.h (struct target_ops) <to_info_record>: Add argument.
2662 * target.c (target_info_record): Add argument.
2663 * record.c (info_record_command): Add argument.
2664 * record-full.c (record_full_info): Add 'self' argument.
2665 * record-btrace.c (record_btrace_info): Add 'self' argument.
2667 2014-02-19 Tom Tromey <tromey@redhat.com>
2669 * target.h (struct target_ops) <to_stop_recording>: Add argument.
2670 * target.c (target_stop_recording): Add argument.
2671 * record.c (record_stop): Add argument.
2672 * record-btrace.c (record_btrace_stop_recording): Add 'self'
2675 2014-02-19 Tom Tromey <tromey@redhat.com>
2677 * target.h (struct target_ops) <to_read_btrace>: Add argument.
2678 * target.c (struct target_ops) <to_read_btrace>: Add argument.
2679 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
2681 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
2682 (_initialize_amd64_linux_nat): Use it.
2683 * i386-linux-nat.c (i386_linux_read_btrace): New function.
2684 (_initialize_i386_linux_nat): Use it.
2686 2014-02-19 Tom Tromey <tromey@redhat.com>
2688 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
2689 * target.c (target_teardown_btrace): Add argument.
2690 * remote.c (remote_teardown_btrace): Add 'self' argument.
2691 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
2693 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
2696 2014-02-19 Tom Tromey <tromey@redhat.com>
2698 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
2699 * target.c (target_disable_btrace): Add argument.
2700 * remote.c (remote_disable_btrace): Add 'self' argument.
2701 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
2703 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
2706 2014-02-19 Tom Tromey <tromey@redhat.com>
2708 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
2709 * target.c (target_enable_btrace): Add argument.
2710 * remote.c (remote_enable_btrace): Add 'self' argument.
2711 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
2713 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
2716 2014-02-19 Tom Tromey <tromey@redhat.com>
2718 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
2719 (target_can_use_agent): Add argument.
2720 * target.c (update_current_target): Update.
2721 * remote.c (remote_can_use_agent): Add 'self' argument.
2722 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
2724 2014-02-19 Tom Tromey <tromey@redhat.com>
2726 * target.h (struct target_ops) <to_use_agent>: Add argument.
2727 (target_use_agent): Add argument.
2728 * target.c (update_current_target): Update.
2729 * remote.c (remote_use_agent): Add 'self' argument.
2730 * inf-child.c (inf_child_use_agent): Add 'self' argument.
2732 2014-02-19 Tom Tromey <tromey@redhat.com>
2734 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
2735 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
2736 (target_traceframe_info): Add argument.
2737 * target.c (update_current_target): Update.
2738 * remote.c (remote_traceframe_info): Add 'self' argument.
2739 * ctf.c (ctf_traceframe_info): Add 'self' argument.
2741 2014-02-19 Tom Tromey <tromey@redhat.com>
2743 * target.h (target_static_tracepoint_markers_by_strid): Add
2745 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
2747 * target.c (update_current_target): Update.
2748 * remote.c (struct target_ops)
2749 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
2750 * linux-nat.c (struct target_ops)
2751 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
2753 2014-02-19 Tom Tromey <tromey@redhat.com>
2755 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
2757 (target_static_tracepoint_marker_at): Add argument.
2758 * target.c (update_current_target): Update.
2759 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
2762 2014-02-19 Tom Tromey <tromey@redhat.com>
2764 * target.h (struct target_ops) <to_set_permissions>: Add argument.
2765 (target_set_permissions): Add argument.
2766 * target.c (update_current_target): Update.
2767 * remote.c (remote_set_permissions): Add 'self' argument.
2768 (remote_start_remote): Update.
2770 2014-02-19 Tom Tromey <tromey@redhat.com>
2772 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
2773 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
2774 (target_get_tib_address): Add argument.
2775 * target.c (update_current_target): Update.
2776 * remote.c (remote_get_tib_address): Add 'self' argument.
2778 2014-02-19 Tom Tromey <tromey@redhat.com>
2780 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
2781 (target_set_trace_notes): Add argument.
2782 * target.c (update_current_target): Update.
2783 * remote.c (remote_set_trace_notes): Add 'self' argument.
2785 2014-02-19 Tom Tromey <tromey@redhat.com>
2787 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
2789 (target_set_trace_buffer_size): Add argument.
2790 * target.c (update_current_target): Update.
2791 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
2793 2014-02-19 Tom Tromey <tromey@redhat.com>
2795 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
2797 (target_set_circular_trace_buffer): Add argument.
2798 * target.c (update_current_target): Update.
2799 * remote.c (remote_set_circular_trace_buffer): Add 'self'
2802 2014-02-19 Tom Tromey <tromey@redhat.com>
2804 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
2806 (target_set_disconnected_tracing): Add argument.
2807 * target.c (update_current_target): Update.
2808 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
2810 2014-02-19 Tom Tromey <tromey@redhat.com>
2812 * target.h (struct target_ops)
2813 <to_get_min_fast_tracepoint_insn_len>: Add argument.
2814 (target_get_min_fast_tracepoint_insn_len): Add argument.
2815 * target.c (update_current_target): Update.
2816 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
2819 2014-02-19 Tom Tromey <tromey@redhat.com>
2821 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
2823 (target_get_raw_trace_data): Add argument.
2824 * target.c (update_current_target): Update.
2825 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
2827 2014-02-19 Tom Tromey <tromey@redhat.com>
2829 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2831 (target_upload_trace_state_variables): Add argument.
2832 * target.c (update_current_target): Update.
2833 * remote.c (remote_upload_trace_state_variables): Add 'self'
2835 (remote_start_remote): Update.
2837 2014-02-19 Tom Tromey <tromey@redhat.com>
2839 * target.h (struct target_ops) <to_upload_tracepoints>: Add
2841 (target_upload_tracepoints): Add argument.
2842 * target.c (update_current_target): Update.
2843 * remote.c (remote_upload_tracepoints): Add 'self' argument.
2844 (remote_start_remote): Update.
2846 2014-02-19 Tom Tromey <tromey@redhat.com>
2848 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
2849 (target_save_trace_data): Add argument.
2850 * target.c (update_current_target): Update.
2851 * remote.c (remote_save_trace_data): Add 'self' argument.
2853 2014-02-19 Tom Tromey <tromey@redhat.com>
2855 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
2857 * target.h (struct target_ops)
2858 <to_get_trace_state_variable_value>: Add argument.
2859 (target_get_trace_state_variable_value): Add argument.
2860 * target.c (update_current_target): Update.
2861 * remote.c (remote_get_trace_state_variable_value): Add 'self'
2863 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
2865 2014-02-19 Tom Tromey <tromey@redhat.com>
2867 * tracepoint.c (tfile_trace_find): Add 'self' argument.
2868 * target.h (struct target_ops) <to_trace_find>: Add argument.
2869 (target_trace_find): Add argument.
2870 * target.c (update_current_target): Update.
2871 * remote.c (remote_trace_find): Add 'self' argument.
2872 * ctf.c (ctf_trace_find): Add 'self' argument.
2874 2014-02-19 Tom Tromey <tromey@redhat.com>
2876 * target.h (struct target_ops) <to_trace_stop>: Add argument.
2877 (target_trace_stop): Add argument.
2878 * target.c (update_current_target): Update.
2879 * remote.c (remote_trace_stop): Add 'self' argument.
2881 2014-02-19 Tom Tromey <tromey@redhat.com>
2883 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
2884 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
2886 (target_get_tracepoint_status): Add argument.
2887 * target.c (update_current_target): Update.
2888 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
2890 2014-02-19 Tom Tromey <tromey@redhat.com>
2892 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
2893 * target.h (struct target_ops) <to_get_trace_status>: Add
2895 (target_get_trace_status): Add argument.
2896 * target.c (update_current_target): Update.
2897 * remote.c (remote_get_trace_status): Add 'self' argument.
2898 (remote_start_remote, remote_can_download_tracepoint): Update.
2899 * ctf.c (ctf_get_trace_status): Add 'self' argument.
2901 2014-02-19 Tom Tromey <tromey@redhat.com>
2903 * target.h (struct target_ops) <to_trace_start>: Add argument.
2904 (target_trace_start): Add argument.
2905 * target.c (update_current_target): Update.
2906 * remote.c (remote_trace_start): Add 'self' argument.
2908 2014-02-19 Tom Tromey <tromey@redhat.com>
2910 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2912 (target_trace_set_readonly_regions): Add argument.
2913 * target.c (update_current_target): Update.
2914 * remote.c (remote_trace_set_readonly_regions): Add 'self'
2917 2014-02-19 Tom Tromey <tromey@redhat.com>
2919 * target.h (struct target_ops) <to_disable_tracepoint>: Add
2921 (target_disable_tracepoint): Add argument.
2922 * target.c (update_current_target): Update.
2923 * remote.c (remote_disable_tracepoint): Add 'self' argument.
2925 2014-02-19 Tom Tromey <tromey@redhat.com>
2927 * target.h (struct target_ops) <to_enable_tracepoint>: Add
2929 (target_enable_tracepoint): Add argument.
2930 * target.c (update_current_target): Update.
2931 * remote.c (remote_enable_tracepoint): Add 'self' argument.
2933 2014-02-19 Tom Tromey <tromey@redhat.com>
2935 * target.h (struct target_ops) <to_download_trace_state_variable>:
2937 (target_download_trace_state_variable): Add argument.
2938 * target.c (update_current_target): Update.
2939 * remote.c (remote_download_trace_state_variable): Add 'self'
2942 2014-02-19 Tom Tromey <tromey@redhat.com>
2944 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
2946 (target_can_download_tracepoint): Add argument.
2947 * target.c (update_current_target): Update.
2948 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
2950 2014-02-19 Tom Tromey <tromey@redhat.com>
2952 * target.h (struct target_ops) <to_download_tracepoint>: Add
2954 (target_download_tracepoint): Add argument.
2955 * target.c (update_current_target): Update.
2956 * remote.c (remote_download_tracepoint): Add 'self' argument.
2958 2014-02-19 Tom Tromey <tromey@redhat.com>
2960 * target.h (struct target_ops) <to_trace_init>: Add argument.
2961 (target_trace_init): Add argument.
2962 * target.c (update_current_target): Update.
2963 * remote.c (remote_trace_init): Add 'self' argument.
2965 2014-02-19 Tom Tromey <tromey@redhat.com>
2967 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
2968 * target.c (target_fileio_readlink): Add argument.
2969 * remote.c (remote_hostio_readlink): Add 'self' argument.
2970 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
2972 2014-02-19 Tom Tromey <tromey@redhat.com>
2974 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
2975 * target.c (target_fileio_unlink): Add argument.
2976 * remote.c (remote_hostio_unlink): Add 'self' argument.
2977 (remote_file_delete): Update.
2978 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
2980 2014-02-19 Tom Tromey <tromey@redhat.com>
2982 * target.h (struct target_ops) <to_fileio_close>: Add argument.
2983 * target.c (target_fileio_close): Add argument.
2984 * remote.c (remote_hostio_close): Add 'self' argument.
2985 (remote_hostio_close_cleanup): Update.
2986 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
2988 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
2990 2014-02-19 Tom Tromey <tromey@redhat.com>
2992 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
2993 * target.c (target_fileio_pread): Add argument.
2994 * remote.c (remote_hostio_pread): Add 'self' argument.
2995 (remote_bfd_iovec_pread, remote_file_get): Update.
2996 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
2998 2014-02-19 Tom Tromey <tromey@redhat.com>
3000 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
3001 * target.c (target_fileio_pwrite): Add argument.
3002 * remote.c (remote_hostio_pwrite): Add 'self' argument.
3003 (remote_file_put): Update.
3004 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
3006 2014-02-19 Tom Tromey <tromey@redhat.com>
3008 * target.h (struct target_ops) <to_fileio_open>: Add argument.
3009 * target.c (target_fileio_open): Add argument.
3010 * remote.c (remote_hostio_open): Add 'self' argument.
3011 (remote_bfd_iovec_open): Add 'self' argument.
3012 (remote_file_put): Add 'self' argument.
3013 (remote_file_get): Add 'self' argument.
3014 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
3016 2014-02-19 Tom Tromey <tromey@redhat.com>
3018 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3020 (target_can_run_breakpoint_commands): Add argument.
3021 * target.c (update_current_target): Update.
3022 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
3024 (remote_insert_breakpoint): Add 'self' argument.
3025 (remote_insert_hw_breakpoint): Add 'self' argument.
3026 (remote_can_run_breakpoint_commands): Add 'self' argument.
3028 2014-02-19 Tom Tromey <tromey@redhat.com>
3030 * target.h (struct target_ops)
3031 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
3032 (target_supports_evaluation_of_breakpoint_conditions): Add
3034 * target.c (update_current_target): Update.
3035 * remote.c (remote_supports_cond_breakpoints): Add 'self'
3037 (remote_insert_breakpoint): Add 'self' argument.
3038 (remote_insert_hw_breakpoint): Add 'self' argument.
3039 (remote_supports_cond_breakpoints): Add 'self' argument.
3041 2014-02-19 Tom Tromey <tromey@redhat.com>
3043 * target.h (struct target_ops) <to_supports_string_tracing>: Add
3045 (target_supports_string_tracing): Add argument.
3046 * target.c (update_current_target): Update.
3047 * remote.c (remote_supports_string_tracing): Add 'self' argument.
3049 2014-02-19 Tom Tromey <tromey@redhat.com>
3051 * target.h (struct target_ops)
3052 <to_supports_disable_randomization>: Add argument.
3053 * target.c (find_default_supports_disable_randomization): Add
3055 (target_supports_disable_randomization): Add argument.
3056 (find_default_supports_disable_randomization): Add 'self'
3058 * remote.c (extended_remote_supports_disable_randomization): Add
3060 (remote_supports_disable_randomization): Add 'self' argument.
3061 (extended_remote_create_inferior): Update.
3062 * linux-nat.c (linux_nat_supports_disable_randomization): Add
3065 2014-02-19 Tom Tromey <tromey@redhat.com>
3067 * target.h (struct target_ops)
3068 <to_supports_enable_disable_tracepoint>: Add argument.
3069 (target_supports_enable_disable_tracepoint): Add argument.
3070 * target.c (update_current_target): Update.
3071 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
3074 2014-02-19 Tom Tromey <tromey@redhat.com>
3076 * target.h (struct target_ops) <to_supports_multi_process>: Add
3078 (target_supports_multi_process): Add argument.
3079 * target.c (update_current_target): Update.
3080 * remote.c (remote_supports_multi_process): Add 'self' argument.
3081 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
3083 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
3086 2014-02-19 Tom Tromey <tromey@redhat.com>
3088 * target.h (struct target_ops) <to_execution_direction>: Add
3090 (target_execution_direction): Add argument.
3091 * target.c (default_execution_direction): Add 'self' argument.
3092 * record-full.c (record_full_execution_direction): Add 'self'
3095 2014-02-19 Tom Tromey <tromey@redhat.com>
3097 * target.h (struct target_ops) <to_can_execute_reverse>: Add
3099 (target_can_execute_reverse): Add argument.
3100 * remote.c (remote_can_execute_reverse): Add 'self' argument.
3101 * record-full.c (record_full_can_execute_reverse): Add 'self'
3103 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
3106 2014-02-19 Tom Tromey <tromey@redhat.com>
3108 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
3109 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
3111 (target_get_ada_task_ptid): Add argument.
3112 * target.c (update_current_target): Update.
3113 (default_get_ada_task_ptid): Add 'self' argument.
3114 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
3115 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
3116 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
3118 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
3120 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
3122 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
3124 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
3125 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
3128 2014-02-19 Tom Tromey <tromey@redhat.com>
3130 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
3131 (target_goto_bookmark): Add argument.
3132 * target.c (dummy_goto_bookmark): Add 'self' argument.
3133 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
3135 2014-02-19 Tom Tromey <tromey@redhat.com>
3137 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
3138 (target_get_bookmark): Add argument.
3139 * target.c (dummy_get_bookmark): Add 'self' argument.
3140 * record-full.c (record_full_get_bookmark): Add 'self' argument.
3142 2014-02-19 Tom Tromey <tromey@redhat.com>
3144 * target.h (struct target_ops) <to_make_corefile_notes>: Add
3146 (target_make_corefile_notes): Add argument.
3147 * target.c (dummy_make_corefile_notes): Add 'self' argument.
3148 * procfs.c (procfs_make_note_section): Add 'self' argument.
3149 (procfs_make_note_section): Add 'self' argument.
3150 (procfs_make_note_section): Add 'self' argument.
3151 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
3153 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
3154 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
3155 * exec.c (exec_make_note_section): Add 'self' argument.
3156 (exec_make_note_section): Add 'self' argument.
3158 2014-02-19 Tom Tromey <tromey@redhat.com>
3160 * target.h (struct target_ops) <to_find_memory_regions>: Add
3162 (target_find_memory_regions): Add argument.
3163 * target.c (dummy_find_memory_regions): Add 'self' argument.
3164 * procfs.c (proc_find_memory_regions): Add 'self' argument.
3165 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
3166 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
3167 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
3168 * exec. (exec_do_find_memory_regions): New global.
3169 (exec_set_find_memory_regions): Rewrite.
3170 (exec_find_memory_regions): New function.
3171 (init_exec_ops): Use exec_find_memory_regions.
3173 2014-02-19 Tom Tromey <tromey@redhat.com>
3175 * target.h (struct target_ops) <to_supports_non_stop>: Add
3177 * target.c (find_default_supports_non_stop): Add argument.
3178 (target_supports_non_stop): Add argument.
3179 (find_default_supports_non_stop): Add 'self' argument.
3180 * remote.c (remote_supports_non_stop): Add 'self' argument.
3181 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
3183 2014-02-19 Tom Tromey <tromey@redhat.com>
3185 * target.h (struct target_ops) <to_log_command>: Add argument.
3186 (target_log_command): Add argument.
3187 * serial.h (serial_log_command): Add 'self' argument.
3188 * serial.c (serial_log_command): Add 'self' argument.
3190 2014-02-19 Tom Tromey <tromey@redhat.com>
3192 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
3193 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
3195 (target_pid_to_exec_file): Add argument.
3196 * target.c (debug_to_pid_to_exec_file): Add argument.
3197 (update_current_target): Update.
3198 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
3199 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
3200 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
3201 (linux_handle_extended_wait): Update.
3202 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
3203 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
3204 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
3205 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
3207 2014-02-19 Tom Tromey <tromey@redhat.com>
3209 * target.h (struct target_ops) <to_rcmd>: Add argument.
3210 (target_rcmd): Add argument.
3211 * target.c (debug_to_rcmd): Add argument.
3212 (update_current_target, do_monitor_command): Update.
3213 * remote.c (remote_rcmd): Add 'self' argument.
3214 * monitor.c (monitor_rcmd): Add 'self' argument.
3216 2014-02-19 Tom Tromey <tromey@redhat.com>
3218 * windows-nat.c (windows_stop): Add 'self' argument.
3219 * target.h (struct target_ops) <to_stop>: Add argument.
3220 * target.c (target_stop): Add argument.
3221 (debug_to_stop): Add argument.
3222 (update_current_target): Update.
3223 * remote.c (remote_stop): Add 'self' argument.
3224 * remote-sim.c (gdbsim_stop): Add 'self' argument.
3225 (gdbsim_cntrl_c): Update.
3226 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
3227 * procfs.c (procfs_stop): Add 'self' argument.
3228 * nto-procfs.c (procfs_stop): Add 'self' argument.
3229 * monitor.c (monitor_stop): Add 'self' argument.
3230 (monitor_open): Update.
3231 * linux-nat.c (linux_nat_stop): Add argument.
3232 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
3233 * gnu-nat.c (gnu_stop): Add 'self' argument.
3234 * darwin-nat.c (darwin_stop): Add 'self' argument.
3236 2014-02-19 Tom Tromey <tromey@redhat.com>
3238 * target.h (struct target_ops) <to_thread_name>: Add argument.
3239 * target.c (target_thread_name): Add argument.
3240 (update_current_target): Update.
3241 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
3243 2014-02-19 Tom Tromey <tromey@redhat.com>
3245 * target.h (struct target_ops) <to_extra_thread_info>: Add
3247 (target_extra_thread_info): Add argument.
3248 * target.c (update_current_target): Update.
3249 * remote.c (remote_threads_extra_info): Add 'self' argument.
3250 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
3252 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
3253 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
3254 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
3256 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
3258 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
3260 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
3263 2014-02-19 Tom Tromey <tromey@redhat.com>
3265 * target.h (struct target_ops) <to_program_signals>: Add argument.
3266 * target.c (target_program_signals): Add argument.
3267 * remote.c (remote_program_signals): Add 'self' argument.
3269 2014-02-19 Tom Tromey <tromey@redhat.com>
3271 * target.h (struct target_ops) <to_pass_signals>: Add argument.
3272 * target.c (target_pass_signals): Add argument.
3273 * remote.c (remote_pass_signals): Add 'self' argument.
3274 (remote_start_remote): Update.
3275 * procfs.c (procfs_pass_signals): Add 'self' argument.
3276 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
3277 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
3278 (linux_nat_create_inferior, linux_nat_attach): Update.
3280 2014-02-19 Tom Tromey <tromey@redhat.com>
3282 * windows-nat.c (windows_can_run): Add 'self' argument.
3283 * target.h (struct target_ops) <to_can_run>: Add argument.
3284 (target_can_run): Add argument.
3285 * target.c (debug_to_can_run): Add argument.
3286 (update_current_target): Update.
3287 * nto-procfs.c (procfs_can_run): Add 'self' argument.
3288 * inf-child.c (inf_child_can_run): Add 'self' argument.
3289 * go32-nat.c (go32_can_run): Add 'self' argument.
3291 2014-02-19 Tom Tromey <tromey@redhat.com>
3293 * target.h (struct target_ops) <to_has_exited>: Add argument.
3294 (target_has_exited): Add argument.
3295 * target.c (debug_to_has_exited): Add argument.
3296 (update_current_target): Update.
3298 2014-02-19 Tom Tromey <tromey@redhat.com>
3300 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
3302 (target_set_syscall_catchpoint): Add argument.
3303 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
3305 * target.c (update_current_target): Update.
3307 2014-02-19 Tom Tromey <tromey@redhat.com>
3309 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
3311 (target_remove_exec_catchpoint): Add argument.
3312 * target.c (debug_to_remove_exec_catchpoint): Add argument.
3313 (update_current_target): Update.
3314 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
3317 2014-02-19 Tom Tromey <tromey@redhat.com>
3319 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
3321 (target_insert_exec_catchpoint): Add argument.
3322 * target.c (debug_to_insert_exec_catchpoint): Add argument.
3323 (update_current_target): Update.
3324 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
3327 2014-02-19 Tom Tromey <tromey@redhat.com>
3329 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
3331 (target_remove_vfork_catchpoint): Add argument.
3332 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
3333 (update_current_target): Update.
3334 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
3337 2014-02-19 Tom Tromey <tromey@redhat.com>
3339 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
3341 (target_insert_vfork_catchpoint): Add argument.
3342 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
3343 (update_current_target): Update.
3344 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
3347 2014-02-19 Tom Tromey <tromey@redhat.com>
3349 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
3351 (target_remove_fork_catchpoint): Add argument.
3352 * target.c (debug_to_remove_fork_catchpoint): Add argument.
3353 (update_current_target): Update.
3354 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
3357 2014-02-19 Tom Tromey <tromey@redhat.com>
3359 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
3361 (target_insert_fork_catchpoint): Add argument.
3362 * target.c (debug_to_insert_fork_catchpoint): Add argument.
3363 (update_current_target): Update.
3364 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
3367 2014-02-19 Tom Tromey <tromey@redhat.com>
3369 * target.h (struct target_ops) <to_post_startup_inferior>: Add
3371 (target_post_startup_inferior): Add argument.
3372 * target.c (debug_to_post_startup_inferior): Add argument.
3373 (update_current_target): Update.
3374 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
3376 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
3378 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
3380 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
3382 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
3384 (super_post_startup_inferior): Likewise.
3385 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
3387 (super_post_startup_inferior): Likewise.
3388 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
3389 Add 'self' argument.
3390 (super_post_startup_inferior): Likewise.
3392 2014-02-19 Tom Tromey <tromey@redhat.com>
3394 * target.h (struct target_ops) <to_load>: Add argument.
3395 * target.c (target_load): Add argument.
3396 (debug_to_load): Add argument.
3397 (update_current_target): Update.
3398 * remote.c (remote_load): Add 'self' argument.
3399 * remote-sim.c (gdbsim_load): Add 'self' argument.
3400 * remote-mips.c (mips_load): Add 'self' argument.
3401 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
3402 * monitor.c (monitor_load): Add 'self' argument.
3403 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
3405 2014-02-19 Tom Tromey <tromey@redhat.com>
3407 * target.h (struct target_ops) <to_terminal_info>: Add argument.
3408 (target_terminal_info): Add argument.
3409 * target.c (debug_to_terminal_info): Add argument.
3410 (default_terminal_info): Likewise.
3411 * inflow.c (child_terminal_info): Add 'self' argument.
3412 * inferior.h (child_terminal_info): Add 'self' argument.
3413 * go32-nat.c (go32_terminal_info): Add 'self' argument.
3415 2014-02-19 Tom Tromey <tromey@redhat.com>
3417 * target.h (struct target_ops) <to_terminal_save_ours>: Add
3419 (target_terminal_save_ours): Add argument.
3420 * target.c (debug_to_terminal_save_ours): Add argument.
3421 (update_current_target): Update.
3422 * inflow.c (terminal_save_ours): Add 'self' argument.
3423 * inferior.h (terminal_save_ours): Add 'self' argument.
3425 2014-02-19 Tom Tromey <tromey@redhat.com>
3427 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
3428 (target_terminal_ours): Add argument.
3429 * target.c (debug_to_terminal_ours): Add argument.
3430 (update_current_target): Update.
3431 * remote.c (remote_terminal_ours): Add 'self' argument.
3432 (remote_close): Update.
3433 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
3434 * inflow.c (terminal_ours): Add 'self' argument.
3435 * inferior.h (terminal_ours): Add 'self' argument.
3436 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
3438 2014-02-19 Pedro Alves <palves@redhat.com>
3439 Tom Tromey <tromey@redhat.com>
3441 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
3443 (target_terminal_ours_for_output): Add argument.
3444 * target.c (debug_to_terminal_ours_for_output): Add argument.
3445 (update_current_target): Update.
3446 * inflow.c (terminal_ours_for_output): Add 'self' argument.
3447 * inferior.h (terminal_ours_for_output): Add 'self' argument.
3448 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
3450 2014-02-19 Tom Tromey <tromey@redhat.com>
3452 * target.h (struct target_ops) <to_terminal_inferior>: Add
3454 * target.c (target_terminal_inferior): Add argument.
3455 (update_current_target): Update.
3456 * remote.c (remote_terminal_inferior): Add 'self' argument.
3457 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
3458 * inflow.c (terminal_inferior): Add 'self' argument.
3459 * inferior.h (terminal_inferior): Add 'self' argument.
3460 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
3461 (go32_terminal_inferior): Add 'self' argument.
3463 2014-02-19 Tom Tromey <tromey@redhat.com>
3465 * target.h (struct target_ops) <to_terminal_init>: Add argument.
3466 (target_terminal_init): Add argument.
3467 * target.c (debug_to_terminal_init): Add argument.
3468 (update_current_target): Update.
3469 * inflow.c (terminal_init_inferior): Add 'self' argument.
3470 * inferior.h (terminal_init_inferior): Add 'self' argument.
3471 * go32-nat.c (go32_terminal_init): Add 'self' argument.
3472 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
3474 2014-02-19 Tom Tromey <tromey@redhat.com>
3476 * target.h (struct target_ops)
3477 <to_can_accel_watchpoint_condition>: Add argument.
3478 (target_can_accel_watchpoint_condition): Add argument.
3479 * target.c (debug_to_can_accel_watchpoint_condition): Add
3481 (update_current_target): Update.
3482 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
3485 2014-02-19 Tom Tromey <tromey@redhat.com>
3487 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3489 (target_region_ok_for_hw_watchpoint): Add argument.
3490 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
3491 (default_region_ok_for_hw_watchpoint): Add argument.
3492 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
3493 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
3495 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
3497 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
3499 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
3501 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
3503 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
3505 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
3506 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
3508 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3509 Add 'self' argument.
3511 2014-02-19 Tom Tromey <tromey@redhat.com>
3513 * target.h (struct target_ops) <to_insert_watchpoint>: Add
3515 (target_insert_watchpoint): Add argument.
3516 * target.c (debug_to_insert_watchpoint): Add argument.
3517 (update_current_target): Update.
3518 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
3519 * remote.c (remote_insert_watchpoint): Add 'self' argument.
3520 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
3521 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
3522 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
3523 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
3525 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
3526 (procfs_insert_hw_watchpoint): Add 'self' argument.
3527 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
3529 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
3531 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
3533 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
3534 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
3536 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
3539 2014-02-19 Tom Tromey <tromey@redhat.com>
3541 * target.h (struct target_ops) <to_remove_watchpoint>: Add
3543 (target_remove_watchpoint): Add argument.
3544 * target.c (debug_to_remove_watchpoint): Add argument.
3545 (update_current_target): Update.
3546 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
3547 * remote.c (remote_remove_watchpoint): Add 'self' argument.
3548 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
3549 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
3550 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
3551 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
3553 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
3554 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
3556 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
3558 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
3560 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
3561 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
3563 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
3566 2014-02-19 Tom Tromey <tromey@redhat.com>
3568 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
3570 (target_remove_hw_breakpoint): Add argument.
3571 * target.c (debug_to_remove_hw_breakpoint): Add argument.
3572 (update_current_target): Update.
3573 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
3574 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
3576 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
3577 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
3579 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
3582 2014-02-19 Tom Tromey <tromey@redhat.com>
3584 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
3586 (target_insert_hw_breakpoint): Add argument.
3587 * target.c (debug_to_insert_hw_breakpoint): Add argument.
3588 (update_current_target): Update.
3589 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
3590 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
3592 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
3593 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
3594 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
3596 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
3599 2014-02-19 Tom Tromey <tromey@redhat.com>
3601 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
3603 (target_can_use_hardware_watchpoint): Add argument.
3604 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
3605 (update_current_target): Update.
3606 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
3608 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
3610 * remote.c (remote_check_watch_resources): Add 'self' argument.
3611 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
3612 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
3614 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
3615 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
3617 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
3619 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
3621 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
3623 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
3625 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
3627 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
3628 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
3630 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
3633 2014-02-19 Tom Tromey <tromey@redhat.com>
3635 * target.h (struct target_ops) <to_post_attach>: Add argument.
3636 (target_post_attach): Add argument.
3637 * target.c (debug_to_post_attach): Add argument.
3638 (update_current_target): Update.
3639 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
3640 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
3641 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
3642 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
3643 * inf-child.c (inf_child_post_attach): Add 'self' argument.
3645 2014-02-19 Tom Tromey <tromey@redhat.com>
3647 * windows-nat.c (windows_close): Add 'self' argument.
3648 * tracepoint.c (tfile_close): Add 'self' argument.
3649 * target.h (struct target_ops) <to_close>: Add argument.
3650 * target.c (target_close): Add argument.
3651 (update_current_target): Update.
3652 * remote.c (remote_close): Add 'self' argument.
3653 * remote-sim.c (gdbsim_close): Add 'self' argument.
3654 * remote-mips.c (mips_close): Add 'self' argument.
3655 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
3656 * record-full.c (record_full_close): Add 'self' argument.
3657 * record-btrace.c (record_btrace_close): Add 'self' argument.
3658 * monitor.h (monitor_close): Add 'self' argument.
3659 * monitor.c (monitor_close): Add 'self' argument.
3660 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
3661 * linux-nat.c (linux_nat_close): Add argument.
3662 * go32-nat.c (go32_close): Add 'self' argument.
3663 * exec.c (exec_close_1): Add 'self' argument.
3664 * ctf.c (ctf_close): Add 'self' argument.
3665 * corelow.c (core_close): Add 'self' argument.
3666 (core_close_cleanup): Update.
3667 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
3668 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
3670 2014-02-19 Tom Tromey <tromey@redhat.com>
3672 * remote.c (remote_load): New function.
3673 (init_remote_ops): Use it.
3675 2014-02-19 Tom Tromey <tromey@redhat.com>
3677 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
3679 * common/linux-btrace.h (linux_supports_btrace): Update.
3680 * remote.c (remote_supports_btrace): Add "self" argument.
3681 * target-delegates.c: Rebuild.
3682 * target.c (target_supports_btrace): Remove.
3683 * target.h (struct target_ops) <to_supports_btrace>: Add
3684 target_ops argument.
3685 (target_supports_btrace): New define.
3687 2014-02-19 Tom Tromey <tromey@redhat.com>
3689 * record-full.c (record_full_beneath_to_resume_ops)
3690 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
3691 (record_full_beneath_to_wait)
3692 (record_full_beneath_to_store_registers_ops)
3693 (record_full_beneath_to_store_registers)
3694 (record_full_beneath_to_xfer_partial_ops)
3695 (record_full_beneath_to_xfer_partial)
3696 (record_full_beneath_to_insert_breakpoint_ops)
3697 (record_full_beneath_to_insert_breakpoint)
3698 (record_full_beneath_to_remove_breakpoint_ops)
3699 (record_full_beneath_to_remove_breakpoint)
3700 (record_full_beneath_to_stopped_by_watchpoint)
3701 (record_full_beneath_to_stopped_data_address)
3702 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
3703 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
3704 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
3705 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
3706 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
3707 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
3708 (tmp_to_stopped_data_address, tmp_to_async): Remove.
3709 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
3710 (record_full_resume, record_full_wait_1)
3711 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
3712 (record_full_store_registers, record_full_xfer_partial)
3713 (record_full_insert_breakpoint, record_full_remove_breakpoint)
3714 (record_full_async, record_full_core_xfer_partial): Use target
3716 * target-delegates.c: Rebuild.
3717 * target.c (current_xfer_partial): Remove.
3718 (update_current_target): Do not INHERIT or de_fault
3719 to_insert_breakpoint, to_remove_breakpoint,
3720 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
3721 to_is_async_p, to_async. Do not set to_xfer_partial field.
3722 (default_xfer_partial): Simplify.
3723 (current_xfer_partial): Remove.
3724 (target_wait, target_resume): Simplify.
3725 (find_default_can_async_p, find_default_is_async_p): Update.
3726 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
3727 to_xfer_partial, to_stopped_by_watchpoint,
3728 to_stopped_data_address.
3729 (target_store_registers): Simplify.
3730 (forward_target_remove_breakpoint)
3731 (forward_target_insert_breakpoint): Remove.
3732 (target_remove_breakpoint, target_insert_breakpoint)
3733 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
3734 * target.h (struct target_ops) <to_resume, to_wait,
3735 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
3736 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
3737 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
3739 (forward_target_remove_breakpoint)
3740 (forward_target_insert_breakpoint): Remove.
3741 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
3743 (record_btrace_insert_breakpoint): Delegate directly.
3745 2014-02-19 Tom Tromey <tromey@redhat.com>
3748 * target-delegates.c: New file.
3749 * target.c: Include target-delegates.c.
3750 (init_dummy_target): Call install_dummy_methods.
3751 (complete_target_initialization): Call install_delegators.
3752 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
3753 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
3754 * make-target-delegates: New file.
3756 2014-02-19 Tom Tromey <tromey@redhat.com>
3758 * record.c (find_record_target): Use find_target_at.
3759 * target.c (find_target_at): New function.
3760 * target.h (find_target_at): Declare.
3762 2014-02-19 Tom Tromey <tromey@redhat.com>
3764 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
3766 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
3768 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
3769 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
3771 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
3773 * linux-nat.c (save_sigtrap): Update.
3774 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
3775 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
3776 (linux_nat_close): Update.
3777 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
3779 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
3781 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
3782 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
3783 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
3784 (tmp_to_async): Add 'ops' argument.
3785 (record_full_stopped_by_watchpoint, record_full_async)
3786 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
3788 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
3789 (m32r_stopped_by_watchpoint): Add 'ops' argument.
3790 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
3791 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
3792 (remote_is_async_p, remote_async): Add 'ops' argument.
3793 (remote_stopped_data_address): Update.
3794 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
3795 * target.c (update_current_target)
3796 (find_default_can_async_p, find_default_is_async_p): Update.
3797 (init_dummy_target): Update.
3798 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
3799 * target.h (struct target_ops) <to_stopped_by_watchpoint,
3800 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
3801 (target_can_async_p, target_is_async_p, target_async)
3802 (target_stopped_by_watchpoint): Update.
3804 2014-02-19 Yao Qi <yao@codesourcery.com>
3807 * gdbarch.sh: Remove startup_gdbarch.
3808 * gdbarch.c: Regenerated.
3809 * gdbarch.h: Likewise.
3811 2014-02-17 Kevin Buettner <kevinb@redhat.com>
3813 * rl78-tdep.c (rl78_g10_register_name): New function.
3814 (rl78_return_value): Add g10 support.
3815 (rl78_gdbarch_init): Register rl78_g10_register_name for the
3818 2014-02-17 Doug Evans <xdje42@gmail.com>
3820 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
3821 (SUBDIR_GUILE_SRCS): Ditto.
3822 (scm-gsmob.o): Ditto.
3824 2014-02-17 Yao Qi <yao@codesourcery.com>
3826 * gnu-nat.c (ILL_RPC): Declare defined function.
3828 2014-02-17 Yao Qi <yao@codesourcery.com>
3830 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
3831 mach_msg_type_number_t.
3832 (gnu_write_inferior): Likewise.
3834 2014-02-17 Yao Qi <yao@codesourcery.com>
3836 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
3838 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
3839 (inf_validate_procs, inf_signal): Likewise.
3840 (S_exception_raise_request): Likewise.
3841 (do_mach_notify_dead_name): Likewise.
3842 (steal_exc_port): Likewise.
3843 (gnu_read_inferior): Change 'copy_count''s type to
3844 mach_msg_type_number_t.
3845 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
3848 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
3850 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
3851 flag. Adjust all users; in particular...
3852 (gnu_wait): ..., don't decrement its value in here...
3853 (gnu_create_inferior): ..., and instead set the flag in here,
3854 around the startup_inferior call, and call that one with
3855 START_INFERIOR_TRAPS_EXPECTED.
3857 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
3858 (ILL_RPC): ... new macro.
3859 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
3860 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
3861 (do_mach_notify_send_once, S_proc_setmsgport_reply)
3862 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
3863 functions with ILL_RPC macro.
3864 (S_proc_pid2task_reply, S_proc_task2pid_reply)
3865 (S_proc_task2proc_reply, S_proc_proc2task_reply)
3866 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
3867 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
3868 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
3869 (S_proc_getlogin_reply, S_proc_getsid_reply)
3870 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
3871 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
3872 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
3873 (S_proc_getnports_reply, S_proc_is_important_reply)
3874 (S_proc_get_code_reply): New stub functions, generated with
3877 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
3878 collected the type check structures.
3880 * reply_mig_hack.awk: Don't expect to see the auto keyword.
3882 2014-02-14 Doug Evans <dje@google.com>
3884 * target.c (target_write_partial): Fix result type.
3886 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
3888 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
3889 the proper offsets to access fpregset_t.
3891 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
3893 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
3894 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
3895 * h8300-tdep.c (setmachinelist): Remove global.
3896 * hppa-tdep.c (hppa_sigtramp): Remove global.
3897 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
3898 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
3899 * ravenscar-thread.c (update_target_observer): Remove global.
3900 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
3902 2014-02-12 Tom Tromey <tromey@redhat.com>
3904 * common/rsp-low.c: Update comments.
3905 * common/rsp-low.h: Update comments.
3907 2014-02-12 Tom Tromey <tromey@redhat.com>
3909 * common/rsp-low.c (convert_ascii_to_int): Remove.
3910 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
3912 2014-02-12 Tom Tromey <tromey@redhat.com>
3914 * common/rsp-low.h (unhexify): Don't declare.
3915 * common/rsp-low.c (unhexify): Remove.
3917 2014-02-12 Tom Tromey <tromey@redhat.com>
3919 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
3920 * common/rsp-low.c (convert_int_to_ascii): Remove.
3922 2014-02-12 Tom Tromey <tromey@redhat.com>
3924 * common/rsp-low.h (hexify): Don't declare.
3925 * common/rsp-low.c (hexify): Remove.
3927 2014-02-12 Tom Tromey <tromey@redhat.com>
3929 * common/rsp-low.c (hexify): Never take strlen of argument.
3931 2014-02-12 Tom Tromey <tromey@redhat.com>
3933 * common/rsp-low.c (bin2hex): Never take strlen of argument.
3934 * remote.c (extended_remote_run, remote_rcmd)
3935 (remote_download_trace_state_variable, remote_save_trace_data)
3936 (remote_set_trace_notes): Update.
3937 * tracepoint.c (encode_source_string, tfile_write_status)
3938 (tfile_write_uploaded_tsv): Update.
3940 2014-02-12 Tom Tromey <tromey@redhat.com>
3942 * tracepoint.c: Include rsp-low.h.
3943 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
3944 * remote.c: Include rsp-low.h.
3945 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
3946 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
3947 (remote_unescape_input): Move to common/rsp-low.c.
3948 * common/rsp-low.h: New file.
3949 * common/rsp-low.c: New file.
3950 * Makefile.in (SFILES): Add common/rsp-low.c.
3951 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
3952 (COMMON_OBS): Add rsp-low.o.
3953 (rsp-low.o): New target.
3955 2014-02-12 Tom Tromey <tromey@redhat.com>
3957 * utils.h: Include print-utils.h.
3958 (host_address_to_string, plongest, pulongest, phex, phex_nz)
3959 (int_string, core_addr_to_string, core_addr_to_string_nz)
3960 (hex_string, hex_string_custom): Don't declare.
3961 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
3962 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
3963 (hex_string_custom, int_string, core_addr_to_string)
3964 (core_addr_to_string_nz, host_address_to_string): Move to
3965 common/print-utils.c.
3966 * common/print-utils.h: New file.
3967 * common/print-utils.c: New file
3968 * Makefile.in (SFILES): Add common/print-utils.c.
3969 (HFILES_NO_SRCDIR): Add common/print-utils.h.
3970 (COMMON_OBS): Add print-utils.o.
3971 (print-utils.o): New target.
3973 2014-02-12 Tom Tromey <tromey@redhat.com>
3975 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
3977 2014-02-12 Mark Kettenis <kettenis@gnu.org>
3979 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
3981 2014-02-12 Mark Kettenis <kettenis@gnu.org>
3983 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
3984 if a PT_IO ptrace request returns sucessfully but indicates that 0
3985 bytes were transferred.
3987 2014-02-12 Pedro Alves <palves@redhat.com>
3988 Kevin Buettner <kevinb@redhat.com>
3990 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
3991 TYPE_INSTANCE_FLAG_CODE_SPACE.
3993 2014-02-12 Pedro Alves <palves@redhat.com>
3995 * h8300-tdep.c (pseudo_from_raw_register)
3996 (raw_from_pseudo_register): New functions.
3997 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
4000 2014-02-12 Pedro Alves <palves@redhat.com>
4002 * h8300-tdep.c (h8300_register_sim_regno): New function.
4003 (h8300_gdbarch_init): Install h8300_register_sim_regno as
4004 gdbarch_register_sim_regno hook.
4006 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4008 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
4010 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4012 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
4014 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4016 * obsd-tdep.h (obsd_init_abi): New prototype.
4017 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
4018 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
4019 (obsd_init_abi): New functions.
4020 * i386obsd-tdep.c: Include "obsd-tdep.h".
4021 (i386obsd_init_abi): Call obsd_init_abi.
4022 * amd64obsd-tdep.c: Include "obsd-tdep.h".
4023 (amd64obsd_init_abi): Call obsd_init_abi.
4024 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
4025 obsd-tdep.c to gdb_target_obs.
4027 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
4029 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
4030 double float arguments to 16-byte in the argument slots.
4032 2014-02-11 Doug Evans <xdje42@gmail.com>
4034 * configure.ac: Don't crash if pkg-config is not found and guile
4035 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
4037 * configure: Regenerate.
4039 2014-02-11 Yao Qi <yao@codesourcery.com>
4041 * aix-thread.c (aix_thread_xfer_partial): Update comments.
4042 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
4043 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
4044 * gnu-nat.c (gnu_xfer_memory): Likewise.
4045 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4046 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4047 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4048 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4050 2014-02-11 Yao Qi <yao@codesourcery.com>
4052 * target.h (enum target_xfer_error): Rename to ...
4053 (enum target_xfer_status): ... it. New. All users updated.
4054 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
4056 (TARGET_XFER_STATUS_ERROR_P): New macro.
4057 (target_xfer_error_to_string): Remove declaration.
4058 (target_xfer_status_to_string): Declare.
4059 (target_xfer_partial_ftype): Adjust it.
4060 (struct target_ops) <to_xfer_partial>: Return
4061 target_xfer_status. Add argument xfered_len. Update
4063 * target.c (target_xfer_error_to_string): Rename to ...
4064 (target_xfer_status_to_string): ... it. New. All callers
4066 (target_read_live_memory): Likewise. Call target_xfer_partial
4067 instead of target_read.
4068 (memory_xfer_live_readonly_partial): Return
4069 target_xfer_status. Add argument xfered_len.
4070 (raw_memory_xfer_partial): Likewise.
4071 (memory_xfer_partial_1): Likewise.
4072 (memory_xfer_partial): Likewise.
4073 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
4074 properly. Update debug message.
4075 (default_xfer_partial, current_xfer_partial): Likewise.
4076 (target_write_partial): Likewise.
4077 (target_read_partial): Likewise. All callers updated.
4078 (read_whatever_is_readable): Likewise.
4079 (target_write_with_progress): Likewise.
4080 (target_read_alloc_1): Likewise.
4082 * aix-thread.c (aix_thread_xfer_partial): Likewise.
4083 * auxv.c (procfs_xfer_auxv): Likewise.
4084 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
4085 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4086 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4087 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
4088 * corefile.c (read_memory): Adjust.
4089 * corelow.c (core_xfer_partial): Likewise.
4090 * ctf.c (ctf_xfer_partial): Likewise.
4091 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
4093 (darwin_xfer_partial): Likewise.
4094 * exec.c (section_table_xfer_memory_partial): Likewise. All
4096 (exec_xfer_partial): Likewise.
4097 * exec.h (section_table_xfer_memory_partial): Update
4099 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
4101 (gnu_xfer_partial): Likewise.
4102 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
4103 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
4104 (ia64_hpux_xfer_solib_got): Likewise.
4105 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
4106 type of 'partial_len' to ULONGEST.
4107 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4108 * linux-nat.c (linux_xfer_siginfo ): Likewise.
4109 (linux_nat_xfer_partial): Likewise.
4110 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
4111 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
4112 * monitor.c (monitor_xfer_memory): Likewise.
4113 (monitor_xfer_partial): Likewise.
4114 * procfs.c (procfs_xfer_partial): Likewise.
4115 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4116 * record-full.c (record_full_xfer_partial): Likewise.
4117 (record_full_core_xfer_partial): Likewise.
4118 * remote-sim.c (gdbsim_xfer_memory): Likewise.
4119 (gdbsim_xfer_partial): Likewise.
4120 * remote.c (remote_write_bytes_aux): Likewise. All callers
4122 (remote_write_bytes, remote_read_bytes): Likewise. All
4124 (remote_flash_erase): Likewise. All callers updated.
4125 (remote_write_qxfer): Likewise. All callers updated.
4126 (remote_read_qxfer): Likewise. All callers updated.
4127 (remote_xfer_partial): Likewise.
4128 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4129 (rs6000_xfer_shared_libraries): Likewise.
4130 * sol-thread.c (sol_thread_xfer_partial): Likewise.
4131 (sol_thread_xfer_partial): Likewise.
4132 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4133 (sparc_xfer_partial): Likewise.
4134 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
4136 (spu_xfer_partial): Likewise.
4137 * spu-multiarch.c (spu_xfer_partial): Likewise.
4138 * tracepoint.c (tfile_xfer_partial): Likewise.
4139 * windows-nat.c (windows_xfer_memory): Likewise.
4140 (windows_xfer_shared_libraries): Likewise.
4141 (windows_xfer_partial): Likewise.
4142 * valprint.c: Replace 'target_xfer_error' with
4143 'target_xfer_status' in comments.
4145 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
4147 Checked in by Joel Brobecker <brobecker@adacore.com>.
4148 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
4150 2014-02-11 Joel Brobecker <brobecker@adacore.com>
4152 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
4153 function parameters.
4155 2014-02-10 Will Newton <will.newton@linaro.org>
4157 * elfread.c (elf_rel_plt_read): Look for a .got section if
4158 looking up .got.plt fails.
4159 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
4160 on address passed to elf_gnu_ifunc_record_cache.
4161 (elf_gnu_ifunc_resolve_addr): Likewise.
4162 (elf_gnu_ifunc_resolver_return_stop): Likewise.
4164 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
4166 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
4167 (X_RETTURN): New macro.
4168 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
4170 * sparc64-tdep.c (sparc64_init_abi): Hook
4171 sparc_in_function_epilogue_p.
4173 2014-02-10 Gary Benson <gbenson@redhat.com>
4175 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4176 Rename name_matcher to symbol_matcher.
4178 2014-02-10 Gary Benson <gbenson@redhat.com>
4180 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4181 Use expand_symtabs_file_matcher_ftype and
4182 expand_symtabs_symbol_matcher_ftype.
4184 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4186 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
4187 (struct ada_symbol_cache): New.
4188 (ada_free_symbol_cache): Forward declare.
4189 (struct ada_pspace_data): New.
4190 (ada_pspace_data_handle): New static global.
4191 (get_ada_pspace_data, ada_pspace_data_cleanup)
4192 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
4193 (cache_space, cache): Delete, now folded inside struct
4195 (ada_get_symbol_cache): New function.
4196 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
4198 (_initialize_ada_language): Remove initialization of cache_space.
4199 Move call to observer_attach_inferior_exit up, grouping it
4200 with the other observer registrations inside this function.
4201 Rename command to be more general. Add call to
4202 register_program_space_data_with_cleanup.
4204 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4206 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
4207 ada_new_objfile_observer.
4208 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
4209 (_initialize_tasks): Update uses of ada_new_objfile_observer
4210 and ada_tasks_normal_stop_observer.
4212 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4214 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
4215 returned by the 'Length attribute to integer.
4217 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4219 * ada-lang.c (_initialize_ada_language): Initialize
4220 cache_space obstack.
4222 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4224 * ada-lang.c (HASH_SIZE): New macro.
4225 (struct cache_entry): New type.
4226 (cache_space, cache): New static globals.
4227 (ada_clear_symbol_cache, find_entry): New functions.
4228 (lookup_cached_symbol, cache_symbol): Implement.
4229 (ada_new_objfile_observer, ada_free_objfile_observer): New.
4230 (_initialize_ada_language): Attach ada_new_objfile_observer
4231 and ada_free_objfile_observer.
4233 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4235 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
4236 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
4237 struct block * parameter.
4238 (ada_lookup_symbol_list_worker): Constify local variable "block".
4239 Remove cast which is no longer necessary.
4241 2014-02-10 Doug Evans <xdje42@gmail.com>
4243 Add Guile as an extension language.
4244 * NEWS: Mention Guile scripting.
4245 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
4246 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
4247 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
4248 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
4249 (CLIBS): Add GUILE_LIBS.
4250 (install-guile): New rule.
4251 (guile.o): New rule.
4252 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
4253 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
4254 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
4255 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
4256 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
4257 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
4258 (scm-type.o, scm-utils.o, scm-value.o): New rules.
4259 * configure.ac: New option --with-guile.
4260 * configure: Regenerate.
4261 * config.in: Regenerate.
4262 * auto-load.c: Remove #include "python/python.h". Add #include
4263 "gdb/section-scripts.h".
4264 (source_section_scripts): Handle Guile scripts.
4265 (_initialize_auto_load): Add name of Guile objfile script to
4266 scripts-directory help text.
4267 * breakpoint.c (condition_command): Tweak comment to include Scheme.
4268 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
4269 (struct breakpoint): New member scm_bp_object.
4270 * defs.h (enum command_control_type): New value guile_control.
4271 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
4273 (show_user): Update comment.
4274 (_initialize_cli_cmds): Update help text for "show user". Update help
4275 text for max-user-call-depth.
4276 * cli/cli-script.c: Remove #include "python/python.h". Add #include
4278 (multi_line_command_p): Add guile_control.
4279 (print_command_lines): Handle guile_control.
4280 (execute_control_command, recurse_read_control_structure): Ditto.
4281 (process_next_line): Recognize "guile" commands.
4282 * disasm.c (gdb_disassemble_info): Make non-static.
4283 * disasm.h: #include "dis-asm.h".
4284 (struct gdbarch): Add forward decl.
4285 (gdb_disassemble_info): Declare.
4286 * extension.c: #include "guile/guile.h".
4287 (extension_languages): Add guile.
4288 (get_ext_lang_defn): Handle EXT_LANG_GDB.
4289 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
4290 * gdbtypes.c (get_unsigned_type_max): New function.
4291 (get_signed_type_minmax): New function.
4292 * gdbtypes.h (get_unsigned_type_max): Declare.
4293 (get_signed_type_minmax): Declare.
4294 * guile/README: New file.
4295 * guile/guile-internal.h: New file.
4296 * guile/guile.c: New file.
4297 * guile/guile.h: New file.
4298 * guile/scm-arch.c: New file.
4299 * guile/scm-auto-load.c: New file.
4300 * guile/scm-block.c: New file.
4301 * guile/scm-breakpoint.c: New file.
4302 * guile/scm-disasm.c: New file.
4303 * guile/scm-exception.c: New file.
4304 * guile/scm-frame.c: New file.
4305 * guile/scm-gsmob.c: New file.
4306 * guile/scm-iterator.c: New file.
4307 * guile/scm-lazy-string.c: New file.
4308 * guile/scm-math.c: New file.
4309 * guile/scm-objfile.c: New file.
4310 * guile/scm-ports.c: New file.
4311 * guile/scm-pretty-print.c: New file.
4312 * guile/scm-safe-call.c: New file.
4313 * guile/scm-string.c: New file.
4314 * guile/scm-symbol.c: New file.
4315 * guile/scm-symtab.c: New file.
4316 * guile/scm-type.c: New file.
4317 * guile/scm-utils.c: New file.
4318 * guile/scm-value.c: New file.
4319 * guile/lib/gdb.scm: New file.
4320 * guile/lib/gdb/boot.scm: New file.
4321 * guile/lib/gdb/experimental.scm: New file.
4322 * guile/lib/gdb/init.scm: New file.
4323 * guile/lib/gdb/iterator.scm: New file.
4324 * guile/lib/gdb/printing.scm: New file.
4325 * guile/lib/gdb/types.scm: New file.
4326 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
4327 (VPATH): Add $(GUILE_SRCDIR).
4328 (GUILE_DIR): New variable.
4329 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
4330 (all): Add stamp-guile dependency.
4331 (stamp-guile): New rule.
4332 (clean-guile, install-guile, uninstall-guile): New rules.
4333 (install-only): Add install-guile dependency.
4334 (uninstall): Add uninstall-guile dependency.
4335 (clean): Add clean-guile dependency.
4337 2014-02-09 Doug Evans <xdje42@gmail.com>
4339 Revert this patch (which I approved, mea culpa).
4341 2014-02-08 Mark Kettenis <kettenis@gnu.org>
4343 * Makefile.in (all-lib): Remove.
4344 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
4346 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4348 Fix Python stack corruption.
4349 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
4352 2014-02-08 Mark Kettenis <kettenis@gnu.org>
4354 * Makefile.in (all-lib): Remove.
4355 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
4357 2014-02-07 Doug Evans <dje@google.com>
4359 * extension-priv.h (extension_language_script_ops): Add comment.
4360 (extension_language_ops): Add comment.
4361 (active_ext_lang_state): Fix typo in comment.
4363 2014-02-07 Pedro Alves <palves@redhat.com>
4365 PR breakpoints/16292
4366 * infrun.c (handle_signal_stop) <signal arrives while stepping
4367 over a breakpoint>: Switch back to the stepping thread.
4369 2014-02-07 Yao Qi <yao@codesourcery.com>
4371 * target.c (target_xfer_partial): Return zero if LEN is zero.
4373 2014-02-07 Yao Qi <yao@codesourcery.com>
4375 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
4376 (ld_so_xfer_auxv): Likewise.
4377 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4378 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4379 * corelow.c (core_xfer_partial): Likewise.
4380 * ctf.c (ctf_xfer_partial): Likewise.
4381 * darwin-nat.c (darwin_read_dyld_info): Likewise.
4382 (darwin_xfer_partial): Likewise.
4383 * exec.c (exec_xfer_partial): Likewise.
4384 * gnu-nat.c (gnu_xfer_partial): Likewise.
4385 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
4386 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4387 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4388 * linux-nat.c (linux_xfer_siginfo): Likewise.
4389 (linux_proc_xfer_spu): Likewise.
4390 * procfs.c (procfs_xfer_partial): Likewise.
4391 * record-full.c (record_full_xfer_partial): Likewise.
4392 (record_full_core_xfer_partial): Likewise.
4393 * remote-sim.c (gdbsim_xfer_partial): Likewise.
4394 * remote.c (remote_write_qxfer): Likewise.
4395 (remote_write_qxfer, remote_read_qxfer): Likewise.
4396 (remote_xfer_partial): Likewise.
4397 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4398 (rs6000_xfer_shared_libraries): Likewise.
4399 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4400 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4401 (spu_xfer_partial): Likewise.
4402 * target.c (memory_xfer_partial_1): Likewise.
4403 * tracepoint.c (tfile_xfer_partial): Likewise.
4404 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
4405 (windows_xfer_partial): Likewise.
4407 2014-02-07 Yao Qi <yao@codesourcery.com>
4409 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
4411 (core_xfer_shared_libraries_aix): Likewise.
4412 * gdbarch.c, gdbarch.h: Regenerated.
4413 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
4414 ULONGEST. Change 'len_avail' type to ULONGEST.
4415 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
4416 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
4418 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
4420 2014-02-07 Yao Qi <yao@codesourcery.com>
4422 * corefile.c (memory_error): Get 'exception' from ERR and pass
4423 'exception' to throw_error.
4425 2014-02-06 Doug Evans <xdje42@gmail.com>
4427 * configure.ac (libpython checking): Remove all but python.o from
4428 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
4429 * configure: Regenerate.
4431 * Makefile.in (SFILES): Add extension.c.
4432 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
4433 (COMMON_OBS): Add extension.o.
4434 * extension.h: New file.
4435 * extension-priv.h: New file.
4436 * extension.c: New file.
4438 * python/python-internal.h: #include "extension.h".
4439 (gdbpy_auto_load_enabled): Declare.
4440 (gdbpy_apply_val_pretty_printer): Declare.
4441 (gdbpy_apply_frame_filter): Declare.
4442 (gdbpy_preserve_values): Declare.
4443 (gdbpy_breakpoint_cond_says_stop): Declare.
4444 (gdbpy_breakpoint_has_cond): Declare.
4445 (void source_python_script_for_objfile): Delete.
4446 * python/python.c: #include "extension-priv.h".
4447 Delete inclusion of "observer.h".
4448 (extension_language_python): Moved here and renamed from
4449 script_language_python in py-auto-load.c.
4450 Redefined to be of type extension_language_defn.
4451 (python_extension_script_ops): New global.
4452 (python_extension_ops): New global.
4453 (struct python_env): New member previous_active.
4454 (restore_python_env): Call restore_active_ext_lang.
4455 (ensure_python_env): Call set_active_ext_lang.
4456 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
4458 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
4460 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
4462 (gdbpy_eval_from_control_command): Renamed from
4463 eval_python_from_control_command, made static. New arg extlang.
4464 (gdbpy_source_script) Renamed from source_python_script, made static.
4466 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
4467 result to int. New arg extlang.
4468 (gdbpy_source_objfile_script): Renamed from
4469 source_python_script_for_objfile, made static. New arg extlang.
4470 (gdbpy_start_type_printers): Renamed from start_type_printers, made
4471 static. New args extlang, extlang_printers. Change result type to
4473 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
4474 static. New arg extlang. Rename arg printers to extlang_printers
4475 and change type to ext_lang_type_printers *.
4476 (gdbpy_free_type_printers): Renamed from free_type_printers, made
4477 static. Replace argument arg with extlang, extlang_printers.
4478 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
4479 (!HAVE_PYTHON, source_python_script): Delete.
4480 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
4481 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
4482 (!HAVE_PYTHON, start_type_printers): Delete.
4483 (!HAVE_PYTHON, apply_type_printers): Delete.
4484 (!HAVE_PYTHON, free_type_printers): Delete.
4485 (_initialize_python): Delete call to observer_attach_before_prompt.
4486 (finalize_python): Set/restore active extension language.
4487 (gdbpy_finish_initialization) Renamed from
4488 finish_python_initialization, made static. New arg extlang.
4489 (gdbpy_initialized): New function.
4490 * python/python.h: #include "extension.h". Delete #include
4491 "value.h", "mi/mi-cmds.h".
4492 (extension_language_python): Declare.
4493 (GDBPY_AUTO_FILE_NAME): Delete.
4494 (enum py_bt_status): Moved to extension.h and renamed to
4496 (enum frame_filter_flags): Moved to extension.h.
4497 (enum py_frame_args): Moved to extension.h and renamed to
4498 ext_lang_frame_args.
4499 (finish_python_initialization): Delete.
4500 (eval_python_from_control_command): Delete.
4501 (source_python_script): Delete.
4502 (apply_val_pretty_printer): Delete.
4503 (apply_frame_filter): Delete.
4504 (preserve_python_values): Delete.
4505 (gdbpy_script_language_defn): Delete.
4506 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
4507 (start_type_printers, apply_type_printers, free_type_printers): Delete.
4509 * auto-load.c: #include "extension.h".
4510 (GDB_AUTO_FILE_NAME): Delete.
4511 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
4512 (script_language_gdb): Delete, moved to extension.c and renamed to
4513 extension_language_gdb.
4514 (source_gdb_script_for_objfile): Delete.
4515 (auto_load_pspace_info): New member unsupported_script_warning_printed.
4516 (loaded_script): Change type of language member to
4517 struct extension_language_defn *.
4518 (init_loaded_scripts_info): Initialize
4519 unsupported_script_warning_printed.
4520 (maybe_add_script): Make static. Change type of language arg to
4521 struct extension_language_defn *.
4522 (clear_section_scripts): Reset unsupported_script_warning_printed.
4523 (auto_load_objfile_script_1): Rewrite to use extension language API.
4524 (auto_load_objfile_script): Make public. Remove support-compiled-in
4525 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
4526 (source_section_scripts): Rewrite to use extension language API.
4527 (load_auto_scripts_for_objfile): Rewrite to use
4528 auto_load_scripts_for_objfile.
4529 (collect_matching_scripts_data): Change type of language member to
4530 struct extension_language_defn *.
4531 (auto_load_info_scripts): Change type of language arg to
4532 struct extension_language_defn *.
4533 (unsupported_script_warning_print): New function.
4534 (script_not_found_warning_print): Make static.
4535 (_initialize_auto_load): Rewrite construction of scripts-directory
4537 * auto-load.h (struct objfile): Add forward decl.
4538 (struct script_language): Delete.
4539 (struct auto_load_pspace_info): Add forward decl.
4540 (struct extension_language_defn): Add forward decl.
4541 (maybe_add_script): Delete.
4542 (auto_load_objfile_script): Declare.
4543 (script_not_found_warning_print): Delete.
4544 (auto_load_info_scripts): Update prototype.
4545 (auto_load_gdb_scripts_enabled): Declare.
4546 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
4547 auto_load_python_scripts_enabled and made public.
4548 (script_language_python): Delete, moved to python.c.
4549 (gdbpy_script_language_defn): Delete.
4550 (info_auto_load_python_scripts): Update to use
4551 extension_language_python.
4553 * breakpoint.c (condition_command): Replace call to
4554 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
4555 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
4556 with call to breakpoint_ext_lang_cond_says_stop.
4557 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
4558 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
4559 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
4560 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
4562 (local_setattro): Print name of extension language with existing
4565 * valprint.c (val_print, value_print): Update to call
4566 apply_ext_lang_val_pretty_printer.
4567 * cp-valprint.c (cp_print_value): Update call to
4568 apply_ext_lang_val_pretty_printer.
4569 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
4570 (gdbpy_apply_val_pretty_printer): Renamed from
4571 apply_val_pretty_printer. New arg extlang.
4572 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
4574 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
4575 extension language API.
4576 * cli/cli-script.c (execute_control_command): Update to call
4577 eval_ext_lang_from_control_command.
4579 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
4580 enum ext_lang_bt_status values. Update call to
4581 apply_ext_lang_frame_filter.
4582 (mi_cmd_stack_list_locals): Ditto.
4583 (mi_cmd_stack_list_args): Ditto.
4584 (mi_cmd_stack_list_variables): Ditto.
4585 * mi/mi-main.c: Delete #include "python/python-internal.h".
4586 Add #include "extension.h".
4587 (mi_cmd_list_features): Replace reference to python internal variable
4588 gdb_python_initialized with call to ext_lang_initialized_p.
4590 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
4591 Update to use enum ext_lang_frame_args. Update to call
4592 apply_ext_lang_frame_filter.
4593 * python/py-framefilter.c (extract_sym): Update to use enum
4595 (extract_value, py_print_type, py_print_value): Ditto.
4596 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
4597 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
4598 (py_print_frame): Ditto.
4599 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
4600 New arg extlang. Update to use enum ext_lang_bt_status.
4602 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
4603 finish_python_initialization. Replace with call to
4604 finish_ext_lang_initialization.
4606 * typeprint.c (do_free_global_table): Update to call
4607 free_ext_lang_type_printers.
4608 (create_global_typedef_table): Update to call
4609 start_ext_lang_type_printers.
4610 (find_global_typedef): Update to call apply_ext_lang_type_printers.
4611 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
4612 (type_print_options): Change type of global_printers from "void *"
4613 to "struct ext_lang_type_printers *".
4615 * value.c (preserve_values): Update to call preserve_ext_lang_values.
4616 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
4617 (gdbpy_preserve_values): Renamed from preserve_python_values.
4619 (!HAVE_PYTHON, preserve_python_values): Delete.
4621 * utils.c (quit_flag): Delete, moved to extension.c.
4622 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
4625 * eval.c: Delete #include "python/python.h".
4626 * main.c: Delete #include "python/python.h".
4628 * defs.h: Update comment.
4630 2014-02-06 Joel Brobecker <brobecker@adacore.com>
4634 2014-02-05 Mark Kettenis <kettenis@gnu.org>
4636 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
4639 2014-02-05 Yao Qi <yao@codesourcery.com>
4641 * remote.c (remote_pass_signals): Remove local 'buf' and use
4643 (remote_program_signals): Likewise.
4645 2014-02-05 Yao Qi <yao@codesourcery.com>
4647 * ctf.c: Include "inferior.h" and "gdbthread.h".
4648 (CTF_PID): A new macro.
4649 (ctf_open): Call inferior_appeared and add_thread_silent.
4650 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
4651 (ctf_thread_alive): New function.
4652 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
4654 2014-02-05 Yao Qi <yao@codesourcery.com>
4658 2013-05-24 Yao Qi <yao@codesourcery.com>
4660 * tracepoint.c (TFILE_PID): Remove.
4661 (tfile_open): Don't add thread and inferior.
4662 (tfile_close): Don't set 'inferior_ptid'. Don't call
4663 exit_inferior_silent.
4664 (tfile_thread_alive): Remove.
4665 (init_tfile_ops): Don't set field 'to_thread_alive' of
4668 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
4670 * remote.c (remote_start_remote): Call remote_check_symbols even
4671 if only symbol-file (not file) has been given.
4673 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4675 * gdbarch.sh (skip_entrypoint): New callback.
4676 * gdbarch.c, gdbarch.h: Regenerate.
4677 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
4678 * infrun.c (fill_in_stop_func): Likewise.
4679 * ppc-linux-tdep.c: Include "elf/ppc64.h".
4680 (ppc_elfv2_elf_make_msymbol_special): New function.
4681 (ppc_elfv2_skip_entrypoint): Likewise.
4682 (ppc_linux_init_abi): Install them for ELFv2.
4684 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4686 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
4687 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
4688 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
4689 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
4690 structures returned in GPRs.
4692 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4694 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
4695 offset to the stack parameter list for the ELFv2 ABI.
4697 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4699 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
4700 set_gdbarch_convert_from_func_ptr_addr and
4701 set_gdbarch_elf_make_msymbol_special for ELFv1.
4702 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
4703 function descriptors on ELFv1.
4704 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
4705 set up r12 at function entry.
4707 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4709 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
4710 (struct gdbarch_tdep): New member elf_abi.
4712 * rs6000-tdep.c: Include "elf/ppc64.h".
4713 (rs6000_gdbarch_init): Detect ELF ABI version.
4715 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4717 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
4718 within a register pair holding a DFP 128-bit value on little-endian.
4719 (ppc64_sysv_abi_return_value_base): Likewise.
4720 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
4721 (dfp_pseudo_register_write): Likewise.
4723 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4725 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
4726 offset on little-endian when passing _Decimal32.
4727 (ppc64_sysv_abi_return_value_base): Likewise for return values.
4729 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4731 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
4732 of the overlapped FP register within the VSX register on little-
4734 (efpr_pseudo_register_write): Likewise.
4736 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4738 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
4739 offset on little-endian when passing small structures.
4741 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4743 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
4744 (struct ppc64_sysv_argpos): New data structure.
4745 (ppc64_sysv_abi_push_float): Remove.
4746 (ppc64_sysv_abi_push_val): New function.
4747 (ppc64_sysv_abi_push_integer): Likewise.
4748 (ppc64_sysv_abi_push_freg): Likewise.
4749 (ppc64_sysv_abi_push_vreg): Likewise.
4750 (ppc64_sysv_abi_push_param): Likewise.
4751 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
4752 (ppc64_sysv_abi_return_value_base): New function.
4753 (ppc64_sysv_abi_return_value): Refactor to use it.
4755 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4757 * NEWS: Document new target powerpc64le-*-linux*.
4759 2014-02-04 Mark Kettenis <kettenis@gnu.org>
4761 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
4762 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
4764 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
4765 register set used in ELF core dumps. Add floating-point register set.
4767 2014-02-03 Kevin Buettner <kevinb@redhat.com>
4769 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
4770 dwarf2_to_gdb[] table using symbolic constants. Adjust
4771 penultimate entry from number representing the PC register
4772 to symbolic constant representing the MDR register. Add
4773 constant for the PC register to the end of the table.
4775 2014-02-03 Mark Kettenis <kettenis@gnu.org>
4777 * bsd-kvm.c: Include <sys/param.h>
4779 2014-02-03 Mark Kettenis <kettenis@gnu.org>
4781 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
4783 2014-01-31 Joel Brobecker <brobecker@adacore.com>
4785 * ada-lang.h (clear_ada_sym_cache): Delete.
4787 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
4789 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
4791 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
4793 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
4794 the sigreturn register save area only if the syscall is
4797 2014-01-29 Joel Brobecker <brobecker@adacore.com>
4799 * valops.c (value_slice): Minor reformatting.
4801 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
4803 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
4805 2014-01-28 Joel Brobecker <brobecker@adacore.com>
4807 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
4809 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
4810 (ada_ignore_descriptive_types_p): New static global.
4811 (find_parallel_type_by_descriptive_type): Return immediately
4812 if ada_ignore_descriptive_types_p is set.
4813 (_initialize_ada_language): Register new commands "maintenance
4814 set ada", "maintenance show ada", "maintenance set ada
4815 ignore-descriptive-types" and "maintenance show ada
4816 ignore-descriptive-types".
4817 * NEWS: Add entry for new "maint ada set/show
4818 ignore-descriptive-types" commands.
4820 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
4822 * record-btrace.c (record_btrace_close): Call btrace_teardown
4825 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4827 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
4830 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4832 * ada-typeprint (type_is_full_subrange_of_target_type):
4834 (print_range): Add parameter bounds_prefered_p. If not set,
4835 try printing range types using the name of their base type.
4836 (print_range_type): Add parameter bounds_prefered_p.
4837 Use it in call to print_range.
4838 (print_array_type, ada_print_type): Update calls to print_range
4839 and print_range_type.
4841 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4843 * ada-typeprint.c (print_array_type, print_choices, print_range)
4844 (print_range_bound, print_dynamic_range_bound, print_range_type):
4847 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4849 * ada-typeprint.c (print_range): Add missing empty line
4850 after local declaration.
4852 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4854 * ada-valprint.c (print_optional_low_bound): Get index_type's
4855 target type for as long as it is a TYPE_CODE_RANGE.
4857 2014-01-27 Joel Brobecker <brobecker@adacore.com>
4859 * procfs.c (procfs_make_note_section): Remove assertion and
4862 2014-01-24 Yao Qi <yao@codesourcery.com>
4864 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
4865 * corelow.c (get_core_siginfo): Likewise.
4867 2014-01-24 Yao Qi <yao@codesourcery.com>
4869 * remote.c (remote_write_bytes_aux): Change type of 'len' to
4870 ULONGEST. Don't check 'len' is negative.
4871 (remote_write_bytes): Change type of 'len' to ULONGEST.
4873 2014-01-23 Tom Tromey <tromey@redhat.com>
4876 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
4877 Handle exception from frame.block.
4878 (FrameVars.fetch_frame_locals): Likewise.
4880 2014-01-23 Tom Tromey <tromey@redhat.com>
4883 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
4884 on a NULL pointer. Move "goto error" to correct place.
4886 2014-01-23 Tom Tromey <tromey@redhat.com>
4889 * python/py-framefilter.c (apply_frame_filter): Call
4890 ensure_python_env after computing gdbarch.
4892 2014-01-23 Yao Qi <yao@codesourcery.com>
4894 * target.c (raw_memory_xfer_partial): Change argument type
4895 from void * to gdb_byte *.
4896 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
4898 2014-01-22 Doug Evans <dje@google.com>
4900 New gdbserver option --debug-format=timestamp.
4903 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
4905 * syscalls/s390x-linux.xml: New file.
4906 * syscalls/s390-linux.xml: New file.
4907 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
4908 (XML_SYSCALL_FILENAME_S390X): Likewise.
4909 (op_svc): New enum value for SVC opcode.
4910 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
4911 (s390_linux_get_syscall_number): New function.
4912 (s390_gdbarch_init): Register '*get_syscall_number' and the
4913 syscall xml file name.
4914 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4915 "s390-linux.xml" and "s390x-linux.xml".
4916 * NEWS: Announce new feature.
4918 2014-01-22 Baruch Siach <baruch@tkos.co.il>
4920 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
4922 2014-01-22 Pedro Alves <palves@redhat.com>
4924 * xtensa-config.c: Include defs.h.
4926 2014-01-22 Joel Brobecker <brobecker@adacore.com>
4928 * common/common-utils.h: Add "ARI:" comment beside __func__
4931 2014-01-22 Joel Brobecker <brobecker@adacore.com>
4933 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
4934 documentation a bit.
4936 2014-01-21 Roland McGrath <mcgrathr@google.com>
4938 * configure.ac: Call AM_PROG_INSTALL_STRIP.
4939 * configure: Regenerate.
4940 * aclocal.m4: Regenerate.
4941 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
4942 New substituted variables.
4943 (install-strip): New target.
4944 (INSTALL_SCRIPT): New substituted variable.
4945 (FLAGS_TO_PASS): Add it.
4946 (install-only): Use $(INSTALL_SCRIPT) rather than
4947 $(INSTALL_PROGRAM) for gcore.
4949 2014-01-20 Tom Tromey <tromey@redhat.com>
4951 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
4954 2014-01-20 Tom Tromey <tromey@redhat.com>
4956 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
4957 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
4958 (deprecated_cmd_warning, complete_on_cmdlist): Update.
4959 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
4960 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
4961 (struct cmd_list_element) <flags>: Remove.
4962 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
4963 doc_allocated>: New fields.
4964 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
4966 * maint.c (maintenance_do_deprecate): Update.
4967 * top.c (execute_command): Update.
4969 2014-01-20 Baruch Siach <baruch@tkos.co.il>
4971 * xtensa-linux-nat.c: Include asm/ptrace.h.
4973 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4975 * Makefile.in (SFILES): Add d-support.c.
4976 (COMMON_OBS): Add d-support.o.
4977 * d-lang.h (d_parse_symbol): Add comment, now defined in
4979 * d-lang.c (parse_call_convention)
4980 (parse_attributes, parse_function_types)
4981 (parse_function_args, parse_type, parse_identifier)
4982 (call_convention_p, d_parse_symbol): Move functions to ...
4983 * d-support.c: ... New file.
4985 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4987 * d-lang.h (d_parse_symbol): Add declaration.
4988 * d-lang.c (extract_identifiers)
4989 (extract_type_info): Remove functions.
4990 (parse_call_convention, parse_attributes)
4991 (parse_function_types, parse_function_args)
4992 (parse_type, parse_identifier, call_convention_p)
4993 (d_parse_symbol): New functions.
4994 (d_demangle): Use d_parse_symbol to demangle D symbols.
4996 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
4998 * d-lang.h (struct builtin_d_type): New data type.
4999 (builtin_d_type): Add declaration.
5000 * d-lang.c (d_language_arch_info, build_d_types)
5001 (builtin_d_type): New functions.
5002 (enum d_primitive_types): New data type.
5003 (d_language_defn): Change c_language_arch_info to
5004 d_language_arch_info.
5005 (d_type_data): New static variable.
5006 (_initialize_d_language): Initialize d_type_data.
5008 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5010 * d-lang.h (d_main_name): Add declaration.
5011 * d-lang.c (d_main_name): New function.
5012 * symtab.c (find_main_name): Add call to d_main_name.
5014 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5016 * d-lang.c (d_language_defn): Change macro_expansion_c to
5019 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5021 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5023 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
5025 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
5026 gdb_exception" declaration.
5027 * remote.c (getpkt_or_notif_sane): Likewise.
5029 2014-01-17 Doug Evans <dje@google.com>
5031 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
5032 function, contents of dirnames_to_char_ptr_vec_append moved here.
5033 (delim_string_to_char_ptr_vec): New function.
5034 (dirnames_to_char_ptr_vec_append): Rewrite.
5035 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
5037 2014-01-17 Doug Evans <dje@google.com>
5039 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
5041 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
5042 #include "common-utils.h".
5043 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
5044 * common/vec.h (VEC_ASSERT_PASS): Update.
5045 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
5046 (MACH_CHECK_ERROR): Update.
5048 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
5050 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
5052 * gdbarch.h: Regenerate.
5054 2014-01-16 Tom Tromey <tromey@redhat.com>
5056 * value.c (struct value) <regnum>: Move earlier.
5058 2014-01-16 Tom Tromey <tromey@redhat.com>
5060 * remote.c (extended_remote_create_inferior): Rename from
5061 extended_remote_create_inferior_1. Add "ops" argument. Remove
5064 2014-01-16 Pedro Alves <palves@redhat.com>
5066 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
5067 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
5070 2014-01-16 Doug Evans <dje@google.com>
5072 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
5074 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5076 * btrace.h (btrace_thread_flag): New.
5077 (struct btrace_thread_info) <flags>: New.
5078 * record-btrace.c (record_btrace_resume_thread)
5079 (record_btrace_find_thread_to_move, btrace_step_no_history)
5080 (btrace_step_stopped, record_btrace_start_replaying)
5081 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
5082 (record_btrace_find_resume_thread): New.
5083 (record_btrace_resume, record_btrace_wait): Extend.
5084 (record_btrace_can_execute_reverse): New.
5085 (record_btrace_open): Fail in non-stop mode.
5086 (record_btrace_set_replay): Split into this, ...
5087 (record_btrace_stop_replaying): ... this, ...
5088 (record_btrace_clear_histories): ... and this.
5089 (init_record_btrace_ops): Init to_can_execute_reverse.
5090 * NEWS: Announce it.
5092 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5094 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
5095 (forward_target_decr_pc_after_break)
5096 (target_decr_pc_after_break): New.
5097 * target.c (forward_target_decr_pc_after_break)
5098 (target_decr_pc_after_break): New.
5099 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
5100 instead of gdbarch_decr_pc_after_break.
5101 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5102 instead of gdbarch_decr_pc_after_break.
5103 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
5104 instead of gdbarch_decr_pc_after_break.
5105 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5106 instead of gdbarch_decr_pc_after_break.
5107 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
5108 instead of gdbarch_decr_pc_after_break.
5109 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
5110 instead of gdbarch_decr_pc_after_break.
5112 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5114 * btrace.c: Include regcache.h.
5115 (btrace_add_pc): New.
5116 (btrace_enable): Call btrace_add_pc.
5117 (btrace_is_empty): New.
5118 * btrace.h (btrace_is_empty): New.
5119 * record-btrace.c (require_btrace, record_btrace_info): Call
5122 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5124 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
5125 Support delta reads.
5126 (linux_disable_btrace): Change return type.
5127 * common/linux-btrace.h (linux_read_btrace): Change parameters
5128 and return type to allow error reporting. Update users.
5129 (linux_disable_btrace): Change return type. Update users.
5130 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
5132 (btrace_error): New.
5133 (btrace_block) <begin>: Comment on BEGIN == 0.
5134 * btrace.c (btrace_compute_ftrace): Start from the end of
5136 (btrace_stitch_trace, btrace_clear_history): New.
5137 (btrace_fetch): Read delta trace, return if replaying.
5138 (btrace_clear): Move clear history code to btrace_clear_history.
5139 (parse_xml_btrace): Throw an error if parsing failed.
5140 * target.h (struct target_ops) <to_read_btrace>: Change parameters
5141 and return type to allow error reporting.
5142 (target_read_btrace): Change parameters and return type to allow
5144 * target.c (target_read_btrace): Update.
5145 * remote.c (remote_read_btrace): Support delta reads. Pass
5147 * NEWS: Announce it.
5149 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5151 * record.h (record_btrace_frame_unwind)
5152 (record_btrace_tailcall_frame_unwind): New declarations.
5153 * dwarf2-frame: Include record.h
5154 (dwarf2_frame_cfa): Throw an error for btrace frames.
5155 * record-btrace.c: Include hashtab.h.
5156 (btrace_get_bfun_name): New.
5157 (btrace_call_history): Call btrace_get_bfun_name.
5158 (struct btrace_frame_cache): New.
5160 (bfcache_hash, bfcache_eq, bfcache_new): New.
5161 (btrace_get_frame_function): New.
5162 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
5163 (record_btrace_frame_this_id): Compute own id.
5164 (record_btrace_frame_prev_register): Provide PC, throw_error
5165 for all other registers.
5166 (record_btrace_frame_sniffer): Detect btrace frames.
5167 (record_btrace_tailcall_frame_sniffer): New.
5168 (record_btrace_frame_dealloc_cache): New.
5169 (record_btrace_frame_unwind): Add new functions.
5170 (record_btrace_tailcall_frame_unwind): New.
5171 (_initialize_record_btrace): Allocate cache.
5172 * btrace.c (btrace_clear): Call reinit_frame_cache.
5173 * NEWS: Announce it.
5175 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5177 * record-btrace.c (record_btrace_set_replay)
5178 (record_btrace_goto_begin, record_btrace_goto_end)
5179 (record_btrace_goto): New.
5180 (init_record_btrace_ops): Initialize them.
5181 * NEWS: Announce it.
5183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5185 * record-btrace.c (record_btrace_find_new_threads)
5186 (record_btrace_thread_alive): New.
5187 (init_record_btrace_ops): Initialize to_find_new_threads and
5190 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5192 * record-btrace.c (record_btrace_resume): New.
5193 (record_btrace_wait): New.
5194 (init_record_btrace_ops): Initialize to_wait and to_resume.
5196 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5198 * record-btrace.c (record_btrace_xfer_partial)
5199 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
5200 (record_btrace_allow_memory_access): New.
5201 (init_record_btrace_ops): Initialize new methods.
5202 * target.c (raw_memory_xfer_partial): Bail out if target reports
5203 that this memory is not available.
5205 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5207 * target.h (target_ops) <to_insert_breakpoint>
5208 <to_remove_breakpoint>: Add target_ops parameter.
5209 (forward_target_insert_breakpoint): New.
5210 (forward_target_remove_breakpoint): New.
5211 (memory_remove_breakpoint, memory_insert_breakpoint):
5212 Add target_ops parameter.
5213 * target.c (target_insert_breakpoint): Split into this and ...
5214 (forward_target_insert_breakpoint): ... this.
5215 (target_remove_breakpoint): Split into this and ...
5216 (forward_target_remove_breakpoint): ... this.
5217 (debug_to_insert_breakpoint): Add target_ops parameter.
5218 Call forward_target_insert_breakpoint.
5219 (debug_to_remove_breakpoint): Add target_ops parameter.
5220 Call forward_target_remove_breakpoint.
5221 (update_current_target): Do not inherit or default to_insert_breakpoint
5222 and to_remove_breakpoint.
5223 * corelow.c (ignore): Add target_ops parameter.
5224 * exec.c (ignore): Add target_ops parameter.
5225 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
5226 Add target_ops parameter.
5227 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
5228 Add target_ops parameter.
5229 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
5230 Add target_ops parameter.
5231 * record-full.c (record_full_beneath_to_insert_breakpoint)
5232 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
5233 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
5234 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
5235 (record_full_core_remove_breakpoint): Add target_ops parameter.
5237 (record_full_beneath_to_insert_breakpoint_ops)
5238 (record_full_beneath_to_remove_breakpoint_ops)
5239 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
5240 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
5241 tmp_to_remove_breakpoint_ops,
5242 record_full_beneath_to_insert_breakpoint_ops, and
5243 record_full_beneath_to_remove_breakpoint_ops.
5244 * remote-m32r-sdi.c (m32r_insert_breakpoint)
5245 (m32r_remove_breakpoint): Add target_ops parameter.
5246 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
5247 Add target_ops parameter.
5248 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
5249 Add target_ops parameter.
5251 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5252 Markus Metzger <markus.t.metzger@intel.com>
5254 * record-btrace.c: Include frame-unwind.h.
5255 (record_btrace_frame_unwind_stop_reason)
5256 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
5257 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
5259 (init_record_btrace_ops): Install it.
5261 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5263 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
5266 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5268 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
5271 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5273 * frame-unwind.c: Include target.h.
5274 (frame_unwind_try_unwinder): New function with code from ...
5275 (frame_unwind_find_by_frame): ... here. New variable
5276 unwinder_from_target, call also target_get_unwinder)
5277 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
5278 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
5279 * target.h (struct target_ops): New fields to_get_unwinder and
5280 to_get_tailcall_unwinder.
5281 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
5283 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5285 * record-btrace.c (record_btrace_fetch_registers)
5286 (record_btrace_store_registers)
5287 (record_btrace_to_prepare_to_store): New.
5288 (init_record_btrace_ops): Add the above.
5290 2014-01-16 Tom Tromey <tromey@redhat.com>
5292 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
5293 * target.h (struct target_ops) <to_prepare_to_store>: Add
5295 (target_prepare_to_store): Add argument.
5296 * target.c (debug_to_prepare_to_store): Add argument.
5297 (update_current_target): Update.
5298 * remote.c (remote_prepare_to_store): Add 'self' argument.
5299 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
5300 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
5301 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
5302 * record-full.c (record_full_core_prepare_to_store): Add 'self'
5304 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
5305 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
5306 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
5307 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
5308 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
5310 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5312 * btrace.h (replay) <replay>: New.
5313 (btrace_is_replaying): New.
5314 * btrace.c (btrace_clear): Free replay iterator.
5315 (btrace_is_replaying): New.
5316 * record-btrace.c (record_btrace_is_replaying): New.
5317 (record_btrace_info): Print insn number if replaying.
5318 (record_btrace_insn_history): Start at replay position.
5319 (record_btrace_call_history): Start at replay position.
5320 (init_record_btrace_ops): Init to_record_is_replaying.
5322 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5324 * record-btrace.c (record_btrace_insn_history_range): Include
5326 (record_btrace_insn_history_from): Adjust range.
5327 (record_btrace_call_history_range): Include
5329 (record_btrace_call_history_from): Adjust range.
5330 * NEWS: Announce changes.
5332 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5334 * record.h (enum record_print_flag)
5335 <record_print_indent_calls>: New.
5336 * record.c (get_call_history_modifiers): Recognize /c modifier.
5337 (_initialize_record): Document /c modifier.
5338 * record-btrace.c (btrace_call_history): Add btinfo parameter.
5339 Reorder fields. Optionally indent the function name. Update
5341 * NEWS: Announce changes.
5343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5345 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
5347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5349 * btrace.c (ftrace_new_function): Start counting at one.
5350 * record-btrace.c (record_btrace_info): Adjust number of calls
5352 * NEWS: Announce it.
5354 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5356 * record-btrace.c (btrace_call_history_insn_range): Print
5357 insn range as [begin, end].
5359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5361 * btrace.h (struct btrace_func_link): New.
5362 (enum btrace_function_flag): New.
5363 (struct btrace_inst): Rename to ...
5364 (struct btrace_insn): ...this. Update all users.
5365 (struct btrace_func) <ibegin, iend>: Remove.
5366 (struct btrace_func_link): New.
5367 (struct btrace_func): Rename to ...
5368 (struct btrace_function): ...this. Update all users.
5369 (struct btrace_function) <segment, flow, up, insn, insn_offset)
5370 (number, level, flags>: New.
5371 (struct btrace_insn_iterator): Rename to ...
5372 (struct btrace_insn_history): ...this.
5374 (struct btrace_insn_iterator, btrace_call_iterator): New.
5375 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
5376 (struct btrace_target_info) <begin, end, level>
5377 <insn_history, call_history>: New.
5378 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
5379 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
5380 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
5381 (btrace_call_number, btrace_call_begin, btrace_call_end)
5382 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
5383 (btrace_find_function_by_number, btrace_set_insn_history)
5384 (btrace_set_call_history): New.
5385 * btrace.c (btrace_init_insn_iterator)
5386 (btrace_init_func_iterator, compute_itrace): Remove.
5387 (ftrace_print_function_name, ftrace_print_filename)
5388 (ftrace_skip_file): Change
5390 (ftrace_init_func): Remove.
5391 (ftrace_debug): Use new btrace_function fields.
5392 (ftrace_function_switched): Also consider gaining and
5393 losing symbol information).
5394 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
5395 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
5396 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
5398 (ftrace_new_function): Move. Remove debug print.
5399 (ftrace_update_lines, ftrace_update_insns): New.
5400 (ftrace_update_function): Check for call, ret, and jump.
5401 (compute_ftrace): Renamed to ...
5402 (btrace_compute_ftrace): ...this. Rewritten to compute call
5404 (btrace_fetch, btrace_clear): Updated.
5405 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
5406 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
5407 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
5408 (btrace_call_number, btrace_call_begin, btrace_call_end)
5409 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
5410 (btrace_find_function_by_number, btrace_set_insn_history)
5411 (btrace_set_call_history): New.
5412 * record-btrace.c (require_btrace): Use new btrace thread
5414 (record_btrace_info, btrace_insn_history)
5415 (record_btrace_insn_history, record_btrace_insn_history_range):
5416 Use new btrace thread info fields and new iterator.
5417 (btrace_func_history_src_line): Rename to ...
5418 (btrace_call_history_src_line): ...this. Use new btrace
5420 (btrace_func_history): Rename to ...
5421 (btrace_call_history): ...this. Use new btrace thread info
5422 fields and new iterator.
5423 (record_btrace_call_history, record_btrace_call_history_range):
5424 Use new btrace thread info fields and new iterator.
5426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5428 * frame.h (frame_id_build_unavailable_stack_special): New.
5429 * frame.c (frame_id_build_unavailable_stack_special): New.
5431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5433 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
5434 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
5435 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
5437 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
5438 (i386_insn_is_jump, i386_jmp_p): New.
5439 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
5440 insn_is_jump to gdbarch.
5441 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
5442 * gdbarch.h: Regenerated.
5443 * gdbarch.c: Regenerated.
5444 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
5445 (default_insn_is_jump): New.
5446 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
5447 (default_insn_is_jump): New.
5449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5451 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
5453 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
5454 (btrace_read_type) <btrace_read_new>: Change to ...
5455 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
5457 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5459 * common/linux-btrace.c (linux_read_btrace): Free trace from
5462 2014-01-15 Doug Evans <dje@google.com>
5464 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
5467 2014-01-15 Tom Tromey <tromey@redhat.com>
5469 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
5470 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
5471 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
5472 (set_objfile_main_name): New function.
5473 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
5474 language_of_main>: New fields.
5475 (set_objfile_main_name): Declare.
5476 * symtab.c (find_main_name): Loop over objfiles to find the main
5478 (set_main_name): Now static.
5479 (get_main_info): Add comment.
5480 * symtab.h (set_main_name): Don't declare.
5482 2014-01-15 Tom Tromey <tromey@redhat.com>
5484 * symtab.c (main_progspace_key): New global.
5485 (struct main_info): New.
5486 (name_of_main, language_of_main): Remove.
5487 (get_main_info, main_info_cleanup): New function.
5488 (set_main_name, main_name, main_language): Use get_main_info.
5489 (_initialize_symtab): Initialize main_progspace_key.
5491 2014-01-15 Tom Tromey <tromey@redhat.com>
5493 * dbxread.c (process_one_symbol): Update.
5494 * dwarf2read.c (read_partial_die): Update.
5495 * symfile.c (set_initial_language): Call main_language.
5496 * symtab.c (language_of_main): Now static.
5497 (set_main_name): Add 'lang' parameter.
5498 (find_main_name): Update.
5499 (main_language): New function.
5500 (symtab_observer_executable_changed): Update.
5501 * symtab.h (set_main_name): Update.
5502 (language_of_main): Remove.
5503 (main_language): Declare.
5505 2014-01-15 Tom Tromey <tromey@redhat.com>
5507 * symfile.c (init_entry_point_info): Use new "initialized" field.
5509 * objfiles.h (struct entry_point) <initialized>: New field.
5510 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
5511 (struct objfile) <ei>: ...here. Remove.
5512 * objfiles.c (entry_point_address_query): Update.
5514 2014-01-15 Tom Tromey <tromey@redhat.com>
5516 * objfiles.c (entry_point_address_query): Relocate entry point
5518 (objfile_relocate1): Do not relocate entry point address.
5519 * objfiles.h (struct entry_info) <entry_point>: Update comment.
5520 <the_bfd_section_index>: New field.
5521 * symfile.c (init_entry_point_info): Find the entry point's
5524 2014-01-15 Tom Tromey <tromey@redhat.com>
5526 * solib-frv.c (enable_break): Use entry_point_address_query.
5528 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5530 * NEWS: Add note on improved process record-replay on
5531 arm*-linux* targets.
5533 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5535 * arm-tdep.c (enum arm_record_result): New enum.
5536 (arm_record_unsupported_insn): New function.
5537 (arm_record_coproc_data_proc): Removed.
5538 (thumb2_record_ld_st_multiple): New function.
5539 (thumb2_record_ld_st_dual_ex_tbb): New function.
5540 (thumb2_record_data_proc_sreg_mimm): New function.
5541 (thumb2_record_ps_dest_generic): New function.
5542 (thumb2_record_branch_misc_cntrl): New function.
5543 (thumb2_record_str_single_data): New function.
5544 (thumb2_record_ld_mem_hints): New function.
5545 (thumb2_record_ld_word): New function.
5546 (thumb2_record_lmul_lmla_div): New function.
5547 (thumb2_record_decode_insn_handler): New function.
5548 (decode_insn): Add thumb32 instruction handlers.
5550 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5552 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
5553 (struct arm_linux_record_tdep): Declare.
5554 (arm_canonicalize_syscall): New function.
5555 (arm_all_but_pc_registers_record): New function.
5556 (arm_linux_syscall_record): New function.
5557 (arm_linux_init_abi): Add syscall recording constructs.
5558 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
5559 decoding. (arm_record_coproc_data_proc): Update arm syscall
5561 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
5562 <arm_syscall_record>: New field.
5563 * configure.tgt (arm*-*-linux*): Add linux-record.o to
5566 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5568 * arm-tdep.c (thumb_record_misc): Update to use sp as base
5569 register for push instruction recording.
5571 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5573 * arm-tdep.c (thumb_record_misc): Update to correct logical
5574 error while recording ldm, ldmia and pop instructions.
5576 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5578 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
5580 2014-01-15 Pedro Alves <palves@redhat.com>
5582 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
5583 (go32_resume, go32_fetch_registers, store_register)
5584 (go32_store_registers, go32_prepare_to_store)
5585 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
5586 (go32_create_inferior, go32_can_run, go32_terminal_init)
5587 (go32_terminal_inferior, go32_terminal_ours): Delete forward
5590 2014-01-15 Tom Tromey <tromey@redhat.com>
5592 * target.h (async_callback_ftype): New typedef.
5593 (struct target_ops) <to_async>: Use it.
5595 2014-01-15 Joel Brobecker <brobecker@adacore.com>
5597 * python/py-value.c (get_field_type): Remove unnecessary curly
5598 braces for single-statement if block.
5600 2014-01-15 Joel Brobecker <brobecker@adacore.com>
5602 * python/py-type.c (convert_field): Add missing empty line
5605 2014-01-14 Doug Evans <dje@google.com>
5607 * symfile.h (expand_symtabs_matching): Renamed from
5608 expand_partial_symbol_names. Update prototype.
5609 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
5610 * symfile.c (expand_symtabs_matching): Renamed from
5611 expand_partial_symbol_names. New args file_matcher, kind.
5612 Rename arg fun to symbol_matcher.
5613 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
5614 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
5615 ada_expand_partial_symbol_name.
5616 (ada_make_symbol_completion_list): Update to call
5617 expand_symtabs_matching.
5618 (ada_add_global_exceptions): Call expand_symtabs_matching.
5619 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
5620 call map_symbol_filenames.
5621 * symtab.c (sources_info): Update to call map_symbol_filenames.
5622 (search_symbols): Call expand_symtabs_matching.
5623 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
5624 (default_make_symbol_completion_list_break_on): Update to call
5625 expand_symtabs_matching.
5626 (make_source_files_completion_list): Update to call
5627 map_symbol_filenames.
5629 2014-01-14 Doug Evans <dje@google.com>
5631 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
5632 (expand_symtabs_symbol_matcher_ftype): New typedef.
5633 (quick_symbol_functions.expand_symtabs_matching): Update to use.
5634 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5635 * symfile.c (expand_partial_symbol_names): Update to use
5636 expand_symtabs_symbol_matcher_ftype.
5637 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
5638 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5639 Arg name_matcher renamed to symbol_matcher.
5640 * psymtab.c (recursively_search_psymtabs): Update to use
5641 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
5643 (expand_symtabs_matching_via_partial): Update to use
5644 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5645 Arg name_matcher renamed to symbol_matcher.
5647 2014-01-14 Doug Evans <dje@google.com>
5649 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
5650 (map_partial_symbol_filenames): Ditto.
5651 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
5652 (map_partial_symbol_filenames): Ditto.
5653 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
5654 (map_partial_symbol_filenames): Ditto.
5655 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
5656 (map_partial_symbol_filenames): Ditto.
5657 * symtab.c: Delete #include "psymtab.h".
5659 2014-01-14 Pedro Alves <palves@redhat.com>
5660 Tom Tromey <tromey@redhat.com>
5662 * infrun.c (use_displaced_stepping): Use find_record_target
5663 instead of RECORD_IS_USED.
5664 (adjust_pc_after_break): Use record_full_is_used instead of
5666 * record-btrace.c (record_btrace_open): Call record_preopen
5667 instead of checking RECORD_IS_USED.
5668 * record-full.c (record_full_shortname)
5669 (record_full_core_shortname): New globals.
5670 (record_full_is_used): New function.
5671 (find_full_open): Call record_preopen instead of checking
5673 (init_record_full_ops): Set the target's shortname to
5674 record_full_shortname.
5675 (init_record_full_core_ops): Set the target's shortname to
5676 record_full_core_shortname.
5677 * record-full.h (record_full_is_used): Declare.
5678 * record.c (find_record_target): Make extern.
5679 (record_preopen): New function.
5680 * record.h (RECORD_IS_USED): Delete macro.
5681 (find_record_target, record_preopen): Declare functions.
5683 2014-01-14 Yao Qi <yao@codesourcery.com>
5685 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
5686 'len''s type to ULONGEST.
5687 (core_xfer_shared_libraries_aix): Likewise.
5688 * gdbarch.c, gdbarch.h: Regenerated.
5689 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
5690 Change type of 'len' to ULONGEST.
5691 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5692 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5694 2014-01-14 Yao Qi <yao@codesourcery.com>
5696 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
5697 type of 'len' to ULONGEST.
5698 (linux_xfer_osdata_processgroups): Likewise.
5699 (linux_xfer_osdata_threads): Likewise.
5700 (linux_xfer_osdata_fds): Likewise.
5701 (linux_xfer_osdata_isockets): Likewise.
5702 (linux_xfer_osdata_shm): Likewise.
5703 (linux_xfer_osdata_sem): Likewise.
5704 (linux_xfer_osdata_msg): Likewise.
5705 (linux_common_xfer_osdata): Likewise.
5706 (struct osdata_type) <getter>: Likewise.
5707 * common/linux-osdata.h (linux_common_xfer_osdata): Update
5710 2014-01-14 Yao Qi <yao@codesourcery.com>
5712 * target.h (target_xfer_partial_ftype): Update.
5713 (struct target_ops) <to_xfer_partial>: Change 'len' type to
5715 * aix-thread.c (aix_thread_xfer_partial): Change type of
5716 argument 'len' to ULONGEST.
5717 * auxv.c (procfs_xfer_auxv): Likewise.
5718 (ld_so_xfer_auxv): Likewise.
5719 (memory_xfer_auxv): Likewise.
5720 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5721 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5722 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5723 * corelow.c (core_xfer_partial): Likewise.
5724 * ctf.c (ctf_xfer_partial): Likewise.
5725 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
5727 (darwin_read_dyld_info): Likewise.
5728 (darwin_xfer_partial): Likewise.
5729 * exec.c (section_table_xfer_memory_partial): Likewise.
5730 (exec_xfer_partial): Likewise.
5731 * exec.h (section_table_xfer_memory_partial): Update
5733 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
5734 instead of plongest.
5735 (gnu_xfer_partial): Likewise.
5736 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
5737 (ia64_hpux_xfer_solib_got): Likewise.
5738 (ia64_hpux_xfer_partial): Likewise.
5739 * ia64-linux-nat.c (ia64_linux_xfer_partial):
5740 * inf-ptrace.c (inf_ptrace_xfer_partial):
5741 * inf-ttrace.c (inf_ttrace_xfer_partial):
5742 * linux-nat.c (linux_xfer_siginfo): Likewise.
5743 (linux_nat_xfer_partial): Likewise.
5744 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
5745 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
5746 * monitor.c (monitor_xfer_memory): Likewise.
5747 (monitor_xfer_partial): Likewise.
5748 * procfs.c (procfs_xfer_partial): Likewise.
5749 * record-full.c (record_full_xfer_partial): Likewise.
5750 (record_full_core_xfer_partial): Likewise.
5751 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
5752 instead of plongest.
5753 (gdbsim_xfer_partial): Likewise.
5754 * remote.c (remote_xfer_partial): Likewise.
5755 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5756 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5758 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5759 (rs6000_xfer_shared_libraries): Likewise.
5760 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5761 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5762 (sparc_xfer_partial): Likewise.
5763 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5764 (spu_xfer_partial): Likewise.
5765 * spu-multiarch.c (spu_xfer_partial): Likewise.
5766 * target.c (target_read_live_memory): Likewise.
5767 (memory_xfer_live_readonly_partial): Likewise.
5768 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
5769 (target_xfer_partial, default_xfer_partial): Likewise.
5770 (current_xfer_partial): Likewise.
5771 * tracepoint.c (tfile_xfer_partial): Likewise.
5772 * windows-nat.c (windows_xfer_memory): Likewise. Call
5773 pulongest instead of plongest.
5774 (windows_xfer_partial): Likewise.
5775 (windows_xfer_shared_libraries): Likewise.
5777 2014-01-14 Yao Qi <yao@codesourcery.com>
5779 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
5780 target_xfer_partial_ftype.
5782 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
5786 * valops.c (value_struct_elt_bitpos): New function
5787 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
5788 object to 'None' if the field name is an empty string ("").
5789 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
5790 attribute to look for a field when 'name' is 'None'.
5791 (get_field_type): New function
5793 2014-01-13 Doug Evans <dje@google.com>
5796 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
5797 (try_open_dwop_file): Ditto.
5798 * gdb_bfd.c: #include "vec.h".
5799 (bfdp): New typedef.
5800 (struct gdb_bfd_data): New member included_bfds.
5801 (gdb_bfd_unref): Unref all included bfds.
5802 (gdb_bfd_record_inclusion): New function.
5803 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
5805 2014-01-13 Tom Tromey <tromey@redhat.com>
5807 * gdbcore.h (deprecated_core_resize_section_table): Remove.
5809 2014-01-13 Tom Tromey <tromey@redhat.com>
5811 * defs.h (use_windows): Remove.
5812 * gdb.c (main): Update.
5813 * main.c (captured_main, gdb_main): Update.
5814 * main.h (struct captured_main_args) <use_windows>: Remove.
5815 * top.c (use_windows): Remove.
5817 2014-01-13 Tom Tromey <tromey@redhat.com>
5819 * defs.h (deprecated_flush_hook): Remove.
5821 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5824 * linux-thread-db.c (try_thread_db_load): Add parameter
5825 check_auto_load_safe. Move here the file_is_auto_load_safe call.
5826 (try_thread_db_load_from_pdir_1): Move it there from here.
5827 (try_thread_db_load_from_sdir): Update caller.
5828 (try_thread_db_load_from_dir): Move it there from here.
5830 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
5832 * regformats/regdat.sh: Always rewrite the register file.
5834 2014-01-13 Pedro Alves <palves@redhat.com>
5836 * Makefile.in (CHECK_HEADERS): New variable.
5837 (check-headers:): New rule.
5839 2014-01-13 Tom Tromey <tromey@redhat.com>
5841 * cli/cli-setshow.c (do_set_command): Update.
5842 * defs.h (deprecated_set_hook): Remove.
5843 * top.c (deprecated_set_hook): Remove.
5845 2014-01-13 Pedro Alves <palves@redhat.com>
5847 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
5848 the tracepoint if the PC is a pseudo-register.
5850 2014-01-13 Tom Tromey <tromey@redhat.com>
5852 * defs.h (XCALLOC): Remove.
5853 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
5854 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
5855 * dwarf2loc.c (allocate_piece_closure): Likewise.
5856 * elfread.c (elf_symfile_segments): Likewise.
5857 (elf_symfile_segments): Likewise.
5858 * gdbtypes.c (copy_type_recursive): Likewise.
5859 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
5860 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
5861 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
5863 * mt-tdep.c (mt_gdbarch_init): Likewise.
5864 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
5866 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
5867 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
5868 * registry.c (registry_alloc_data): Likewise.
5869 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
5870 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5871 * serial.c (serial_fdopen_ops): Likewise.
5872 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
5874 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
5875 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
5878 2014-01-13 Tom Tromey <tromey@redhat.com>
5880 * defs.h (XMALLOC): Remove.
5881 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
5882 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5883 * cli-out.c (struct ui_out *): Likewise.
5884 * cli/cli-dump.c (add_dump_command): Likewise.
5885 (add_dump_command): Likewise.
5886 * complaints.c (get_complaints): Likewise.
5887 (find_complaint): Likewise.
5888 * dwarf2-frame.c (execute_cfa_program): Likewise.
5889 * dwarf2read.c (abbrev_table_read_table): Likewise.
5890 * gdbarch.sh: Likewise.
5891 * gdbarch.c: Rebuild.
5892 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
5893 * interps.c (interp_new): Likewise.
5894 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5895 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5896 * mi/mi-console.c (mi_console_file_new): Likewise.
5897 * mi/mi-interp.c (mi_interpreter_init): Likewise.
5898 * mi/mi-out.c (mi_out_new): Likewise.
5899 * mi/mi-parse.c (mi_parse): Likewise.
5900 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5901 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5902 * observer.c (xalloc_observer_list_node): Likewise.
5903 * regcache.c (regcache_xmalloc_1): Likewise.
5904 * reggroups.c (reggroup_new): Likewise.
5905 (_initialize_reggroup): Likewise.
5906 * registry.c (register_data_with_cleanup): Likewise.
5907 * remote.c (remote_notif_stop_alloc_reply): Likewise.
5908 * ser-base.c (serial_ttystate): Likewise.
5909 * ser-mingw.c (make_pipe_state): Likewise.
5910 * ser-pipe.c (pipe_open): Likewise.
5911 * serial.c (serial_open): Likewise.
5912 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5913 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
5914 (tui_alloc_win_info): Likewise.
5915 (tui_add_content_elements): Likewise.
5916 * tui/tui-file.c (tui_file_new): Likewise.
5917 * tui/tui-out.c (tui_out_new): Likewise.
5918 * ui-file.c (mem_file_new): Likewise.
5919 * ui-out.c (push_level): Likewise.
5920 (make_cleanup_ui_out_end): Likewise.
5921 (append_header_to_list): Likewise.
5922 (ui_out_new): Likewise.
5923 * user-regs.c (user_reg_add_builtin): Likewise.
5925 2014-01-13 Tom Tromey <tromey@redhat.com>
5927 * defs.h (XZALLOC): Remove.
5928 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
5929 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
5930 (get_ada_tasks_inferior_data): Likewise.
5931 * auto-load.c (get_auto_load_pspace_data): Likewise.
5932 * auxv.c (get_auxv_inferior_data): Likewise.
5933 * bfd-target.c (target_bfd_reopen): Likewise.
5934 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
5935 (deprecated_insert_raw_breakpoint): Likewise.
5936 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
5937 * corelow.c (core_open): Likewise.
5938 * darwin-nat.c (darwin_check_new_threads): Likewise.
5939 (darwin_attach_pid): Likewise.
5940 * dummy-frame.c (dummy_frame_push): Likewise.
5941 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5942 * dwarf2loc.c (allocate_piece_closure): Likewise.
5943 * elfread.c (elf_symfile_segments): Likewise.
5944 * eval.c (ptrmath_type_p): Likewise.
5945 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
5946 * gdbtypes.c (alloc_type_arch): Likewise.
5947 (alloc_type_instance): Likewise.
5948 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5949 * inf-child.c (inf_child_can_use_agent): Likewise.
5950 * inflow.c (get_inflow_inferior_data): Likewise.
5951 * infrun.c (save_infcall_suspend_state): Likewise.
5952 * jit.c (jit_reader_load): Likewise.
5953 (get_jit_objfile_data): Likewise.
5954 (get_jit_program_space_data): Likewise.
5955 (jit_object_open_impl): Likewise.
5956 (jit_symtab_open_impl): Likewise.
5957 (jit_block_open_impl): Likewise.
5958 (jit_frame_sniffer): Likewise.
5959 * linux-fork.c (add_fork): Likewise.
5960 * maint.c (make_command_stats_cleanup): Likewise.
5961 * objfiles.c (get_objfile_pspace_data): Likewise.
5962 * opencl-lang.c (struct lval_closure): Likewise.
5963 * osdata.c (osdata_start_osdata): Likewise.
5964 * progspace.c (new_address_space): Likewise.
5965 (add_program_space): Likewise.
5966 * remote-sim.c (get_sim_inferior_data): Likewise.
5967 * sh-tdep.c (sh_gdbarch_init): Likewise.
5968 * skip.c (Ignore): Likewise.
5969 (skip_delete_command): Likewise.
5970 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
5971 (library_list_start_library): Likewise.
5972 (solib_aix_current_sos): Likewise.
5973 * solib-darwin.c (get_darwin_info): Likewise.
5974 (darwin_current_sos): Likewise.
5975 * solib-dsbt.c (get_dsbt_info): Likewise.
5976 * solib-ia64-hpux.c (new_so_list): Likewise.
5977 (ia64_hpux_get_solib_linkage_addr): Likewise.
5978 * solib-spu.c (append_ocl_sos): Likewise.
5979 (spu_current_sos): Likewise.
5980 * solib-svr4.c (get_svr4_info): Likewise.
5981 (svr4_keep_data_in_core): Likewise.
5982 (library_list_start_library): Likewise.
5983 (svr4_default_sos): Likewise.
5984 (svr4_read_so_list): Likewise.
5985 * solib-target.c (library_list_start_library): Likewise.
5986 (solib_target_current_sos): Likewise.
5987 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5988 * symfile-debug.c (install_symfile_debug_logging): Likewise.
5989 * symfile.c (default_symfile_segments): Likewise.
5990 * target-descriptions.c (tdesc_data_init): Likewise.
5991 (tdesc_create_reg): Likewise.
5992 (struct tdesc_type *): Likewise.
5993 (tdesc_create_vector): Likewise.
5994 (tdesc_set_struct_size): Likewise.
5995 (struct tdesc_type *): Likewise.
5996 (tdesc_free_feature): Likewise.
5997 (tdesc_create_feature): Likewise.
5998 * windows-nat.c (windows_add_thread): Likewise.
5999 (windows_make_so): Likewise.
6000 * xml-support.c (gdb_xml_body_text): Likewise.
6001 (gdb_xml_create_parser_and_cleanup): Likewise.
6002 (xml_process_xincludes): Likewise.
6003 * xml-syscall.c (allocate_syscalls_info): Likewise.
6004 (syscall_create_syscall_desc): Likewise.
6006 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
6008 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
6009 function, with code from i386_stap_parse_special_token.
6010 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6011 (i386_stap_parse_special_token): Move code to the two functions
6014 2014-01-09 Pedro Alves <palves@redhat.com>
6015 Hui Zhu <hui@codesourcery.com>
6018 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
6019 bp_err_string. Don't mark the location shlib_disabled if the
6020 error thrown wasn't a generic or memory error. Catch errors
6021 thrown while inserting breakpoints in overlayed code. Output
6022 error message of software breakpoints.
6023 * remote.c (remote_insert_breakpoint): If this breakpoint has
6024 target-side commands but this stub doesn't support Z0 packets,
6025 throw NOT_SUPPORTED_ERROR error.
6026 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
6027 * target.h (target_insert_breakpoint): Extend comment.
6028 (target_insert_hw_breakpoint): Add comment.
6030 2014-01-08 Pedro Alves <palves@redhat.com>
6032 * remote.c (remote_add_thread): Add threads silently if starting
6034 (remote_notice_new_inferior): If in all-stop, and starting up,
6035 don't call notice_new_inferior.
6036 (get_current_thread): New function, factored out from ...
6037 (add_current_inferior_and_thread): ... this. Adjust.
6038 (remote_start_remote) <all-stop>: Fetch the thread list. If we
6039 found any thread, then select the remote's current thread as GDB's
6042 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6044 * NEWS: Create a new section for the next release branch.
6045 Rename the section of the current branch, now that it has
6048 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6050 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
6051 * version.in: Bump version to 7.7.50.DATE-cvs.
6053 2014-01-08 Yao Qi <yao@codesourcery.com>
6055 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
6056 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
6057 (spu_xfer_partial): Cast 'buf' to 'const char *'.
6059 2014-01-08 Yao Qi <yao@codesourcery.com>
6061 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
6062 return value of bfd_get_filename to symbol_file_add_from_bfd.
6064 2014-01-08 Pierre Muller <muller@sourceware.org>
6067 * coff-pe-read.c (struct read_pe_section_data): Add index field.
6068 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
6069 to prim_record_mininal_symbol_and_info.
6070 (add_pe_forwarded_sym): Use known section number of forwarded symbol
6071 in call to prim_record_minimal_symbol_and_info.
6072 (read_pe_exported_syms): Set index field of section_data.
6074 2014-01-07 Andrew Pinski <apinski@cavium.com>
6076 * features/aarch64-core.xml (cpsr): Change to be 64bit.
6077 * features/aarch64.c: Regenerate.
6079 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
6081 * target.c (return_null): Define.
6082 (update_current_target): Use it instead of return_zero for
6083 functions that return a pointer.
6085 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6087 * source.c (add_path): Fix check for duplicated paths in the previously
6090 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
6092 * ada-lang.c: Remove duplicated include statements.
6093 * alphabsd-nat.c: Ditto.
6094 * amd64-darwin-tdep.c: Ditto.
6095 * amd64fbsd-nat.c: Ditto.
6096 * auto-load.c: Ditto.
6098 * breakpoint.c: Ditto.
6100 * fork-child.c: Ditto.
6101 * gdb_usleep.c: Ditto.
6102 * i386-darwin-tdep.c: Ditto.
6103 * i386fbsd-nat.c: Ditto.
6105 * inferior.c: Ditto.
6107 * linux-nat.c: Ditto.
6108 * linux-tdep.c: Ditto.
6109 * m68kbsd-nat.c: Ditto.
6110 * m68klinux-nat.c: Ditto.
6111 * microblaze-tdep.c: Ditto.
6112 * mips-linux-tdep.c: Ditto.
6113 * mn10300-tdep.c: Ditto.
6114 * nto-tdep.c: Ditto.
6115 * opencl-lang.c: Ditto.
6117 * printcmd.c: Ditto.
6118 * regcache.c: Ditto.
6119 * remote-m32r-sdi.c: Ditto.
6123 * tilegx-linux-nat.c: Ditto.
6124 * tilegx-tdep.c: Ditto.
6125 * tracepoint.c: Ditto.
6127 * vaxbsd-nat.c: Ditto.
6128 * windows-nat.c: Ditto.
6129 * xtensa-tdep.c: Ditto.
6131 2014-01-07 Yao Qi <yao@codesourcery.com>
6133 * spu-linux-nat.c (_initialize_spu_nat): Declare.
6135 2014-01-07 Yao Qi <yao@codesourcery.com>
6136 Joel Brobecker <brobecker@adacore.com>
6138 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
6139 (pdc_write_regs): Likewise.
6140 (fetch_regs_kernel_thread): Likewise.
6141 (store_regs_kernel_thread): Likewise.
6143 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6145 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
6146 tagged type objects to their actual type.
6148 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6150 * ada-valprint.c (print_field_values): Add "language" parameter.
6151 Update calls to print_field_values and print_variant_part.
6152 Pass new parameter "language" in call to val_print instead
6153 of "current_language". Replace call to ada_val_print by call
6155 (print_variant_part): Add "language" parameter.
6156 (ada_val_print_struct_union): Update call to print_field_values.
6158 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6160 * ada-valprint.c (ui_memcpy): Delete.
6161 (ada_print_floating): Update documentation. Add empty line
6162 between between function documentation and implementation.
6163 Delete variable "buffer". Use ui_file_xstrdup in place of
6164 ui_file_put. Minor adjustments following this change.
6166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6168 * ada-valprint.c (ada_val_print_string): New function,
6169 extracted from ada_val_print_array.
6170 (ada_val_print_array): Replace extracted code by call
6171 to ada_val_print_string followed by a return. Move
6172 "else" branch to the function's top block.
6174 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6176 * ada-valprint.c (ada_val_print_array): Move implementation
6177 down. Rename parameter "offset" and "val" into "offset_aligned"
6178 and "original_value" respectively. Add parameter "offset".
6180 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6182 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
6183 re-organizing the code. Change the "???" message printed
6184 when target type is a TYPE_CODE_UNDEF into
6185 "<ref to undefined type>".
6187 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6189 * ada-valprint.c (print_record): Delete, implementation inlined...
6190 (ada_val_print_struct_union): ... here. Remove call to
6191 ada_check_typedef in inlined implementation.
6193 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6195 * ada-valprint.c (ada_val_print_gnat_array): New function,
6196 extracted from ada_val_print_1;
6197 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
6198 (ada_val_print_flt, ada_val_print_struct_union)
6199 (ada_val_print_ref): Likewise.
6200 (ada_val_print_1): Delete variables i and elttype.
6201 Replace extracted-out code by call to corresponding
6204 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6206 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
6208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6210 * ada-valprint.c (ada_val_print_1): Replace calls to
6211 ada_val_print_1 by calls to val_print.
6213 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6215 * ada-valprint.c (ada_val_print_1): Add parameter "language".
6216 Update calls to self accordingly. Replace calls to c_val_print
6217 by calls to val_print.
6219 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6221 * ada-valprint.c (print_record): Delete declaration.
6222 (adjust_type_signedness, ada_val_print_1): Likewise.
6223 (ada_val_print): Move function implementation down.
6224 (print_variant_part, print_field_values, print_record):
6225 Move function implementation up.
6227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6229 * python/py-type.c (typy_get_name): New function.
6230 (type_object_getset): Add entry for attribute "name".
6231 * NEWS: Add entry mentioning this new attribute.
6233 2014-01-07 Yao Qi <yao@codesourcery.com>
6235 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
6238 2014-01-07 Yao Qi <yao@codesourcery.com>
6240 * gnu-nat.c (info_port_rights): Add qualifier const to
6243 2014-01-07 Yao Qi <yao@codesourcery.com>
6245 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
6247 2014-01-07 Yao Qi <yao@codesourcery.com>
6249 * gnu-nat.c (make_inf) Update declaration.
6250 (make_inf): Make it static.
6251 (inf_set_traced): Likewise.
6252 (inf_port_to_thread, inf_task_died_status): Likewise.
6254 2014-01-07 Yao Qi <yao@codesourcery.com>
6256 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
6258 2014-01-07 Yao Qi <yao@codesourcery.com>
6260 * gnu-nat.c (_initialize_gnu_nat): Declare.
6262 2014-01-07 Yao Qi <yao@codesourcery.com>
6264 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
6266 (struct gdbarch_info) <byte_order>: Change type to
6268 <byte_order_for_code>: Likewise.
6269 * gdbarch.c, gdbarch.h: Regenerated.
6271 2014-01-06 Sasha Smundak <asmundak@google.com>
6273 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
6275 2014-01-06 Tom Tromey <tromey@redhat.com>
6277 * doublest.c (convert_doublest_to_floatformat): Use const, not
6279 * somread.c (som_symtab_read): Likewise.
6281 2014-01-07 Hui Zhu <hui@codesourcery.com>
6283 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
6284 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
6285 (gdb_bfd_fopen): Ditto.
6286 (gdb_bfd_openr): Ditto.
6287 (gdb_bfd_openw): Ditto.
6288 (gdb_bfd_openr_iovec): Ditto.
6289 (gdb_bfd_fdopenr): Ditto.
6290 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
6291 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
6293 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
6295 * symfile-mem.c (symbol_file_add_from_memory): Removed
6296 gdb_bfd_stash_filename.
6298 2014-01-03 Doug Evans <dje@google.com>
6300 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
6303 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6305 Update year range in copyright notice of all files.
6307 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6309 * top.c (print_gdb_version): Set copyright year to 2014.
6311 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6313 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
6315 For older changes see ChangeLog-2013.
6321 version-control: never