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