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