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