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