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