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