4ea78b9ba71276e13dc9affc3acf99803a2db18a
[external/binutils.git] / gdb / ChangeLog
1 2014-05-29  Pedro Alves  <palves@redhat.com>
2
3         PR gdb/13860
4         * cli/cli-interp.c: Include infrun.h and observer.h.
5         (cli_uiout, cli_interp): New globals.
6         (cli_on_signal_received, cli_on_end_stepping_range)
7         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8         functions.
9         (cli_interpreter_init): Install them as 'end_stepping_range',
10         'signal_received' 'signal_exited', 'exited' and 'no_history'
11         observers.
12         (_initialize_cli_interp): Remove cli_interp local.
13         * infrun.c (handle_inferior_event): Call the several stop reason
14         observers instead of printing the stop reason directly.
15         (end_stepping_range): New function.
16         (print_end_stepping_range_reason, print_signal_exited_reason)
17         (print_exited_reason, print_signal_received_reason)
18         (print_no_history_reason): Make static, and add an uiout
19         parameter.  Print to that instead of to CURRENT_UIOUT.
20         * infrun.h (print_end_stepping_range_reason)
21         (print_signal_exited_reason, print_exited_reason)
22         (print_signal_received_reason print_no_history_reason): New
23         declarations.
24         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
25         'mi_uiout'.
26         <cli_uiout>: New field.
27         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
28         uiout for CLI output.  Install 'signal_received',
29         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
30         observers.
31         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
32         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
33         (mi_on_no_history): New functions.
34         (ui_out_free_cleanup): Delete function.
35         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
36         instead use the one already stored in the MI interpreter data.
37         (mi_ui_out): Adjust.
38         * tui/tui-interp.c: Include infrun.h and observer.h.
39         (tui_interp): New global.
40         (tui_on_signal_received, tui_on_end_stepping_range)
41         (tui_on_signal_exited, tui_on_exited)
42         (tui_on_no_history): New functions.
43         (tui_init): Install them as 'end_stepping_range',
44         'signal_received' 'signal_exited', 'exited' and 'no_history'
45         observers.
46         (_initialize_tui_interp): Delete tui_interp local.
47
48 2014-05-29  Pedro Alves  <palves@redhat.com>
49
50         PR gdb/15713
51         * linux-nat.c (linux_nat_resume_callback): Rename the second
52         parameter to 'except'.  Skip LP if it points to EXCEPT.
53         (linux_nat_resume): Don't mark the event lwp as not stopped
54         before resuming sibling lwps.  Instead ask
55         linux_nat_resume_callback to skip the event lwp.  Mark it as not
56         stopped after actually resuming it.
57         (linux_handle_syscall_trap): Mark the lwp as not stopped after
58         resuming it.
59         (wait_lwp): Mark the lwp as stopped here.
60         (stop_wait_callback): Mark the lwp as not stopped right after
61         resuming it.  Don't mark lwps as stopped here.
62         (linux_nat_filter_event): Mark the lwp as stopped earlier.
63         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
64
65 2014-05-29  Pedro Alves  <palves@redhat.com>
66
67         PR PR15693
68         * infrun.c (resume): Determine how much to resume depending on
69         whether the caller wanted a step, not whether we can hardware step
70         the target.  Mark all threads that we intend to run as running,
71         unless we're calling an inferior function.
72         (normal_stop): If the thread is running an infcall, don't finish
73         thread state.
74         * target.c (target_resume): Don't mark threads as running here.
75
76 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
77
78         * serial.c (_initialize_serial): Remove support for
79         the "set remotebaud" and "show remotebaud" commands.
80         * NEWS: Add entry documenting the removal of that command.
81
82 2014-05-28  Yao Qi  <yao@codesourcery.com>
83
84         * charset.c: Fix typo in comments.
85
86 2014-05-27  Gary Benson  <gbenson@redhat.com>
87
88         * utils.c (internal_vproblem): Prompt for a bug report.
89
90 2014-05-26  Andy Wingo  <wingo@igalia.com>
91
92         * guile/scm-arch.c (arscm_mark_arch_smob):
93         * guile/scm-block.c (bkscm_mark_block_smob)
94         (bkscm_mark_block_syms_progress_smob):
95         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
96         * guile/scm-exception.c (exscm_mark_exception_smob):
97         * guile/scm-frame.c (frscm_mark_frame_smob):
98         * guile/scm-iterator.c (itscm_mark_iterator_smob):
99         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
100         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
101         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
102         (ppscm_mark_pretty_printer_worker_smob):
103         * guile/scm-symbol.c (syscm_mark_symbol_smob):
104         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
105         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
106         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
107         mark functions.
108         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
109         function.
110
111 2014-05-26  Andy Wingo  <wingo@igalia.com>
112             Doug Evans  <xdje42@gmail.com>
113
114         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
115         empty_base_class.  All uses updated.
116         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
117         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
118         Adapt all callers.
119         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
120         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
121         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
122         (gdbscm_gsmob_has_property_p, add_property_name)
123         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
124         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
125         (gdb-object-has-property?, gdb-object-properties): Remove.
126         (gdb-object-kind): Renamed from gsmob-kind.
127
128 2014-05-26  Andy Wingo  <wingo@igalia.com>
129
130         * configure.ac (try_guile_versions): Allow building with guile 2.2.
131         * configure: Regenerate.
132
133 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
134
135         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
136
137 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
138
139         * record-btrace.c (record_btrace_allow_memory_access): Remove.
140         (replay_memory_access_read_only, replay_memory_access_read_write)
141         (replay_memory_access_types, replay_memory_access)
142         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
143         (cmd_set_record_btrace, cmd_show_record_btrace)
144         (cmd_show_replay_memory_access): New.
145         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
146         (record_btrace_remove_breakpoint): Replace
147         record_btrace_allow_memory_access with replay_memory_access.
148         (_initialize_record_btrace): Add commands.
149         * NEWS: Announce it.
150
151 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
152
153         * aarch64-linux-nat.c (asm/ptrace.h): Include.
154
155 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
156
157         * MAINTAINERS (Write After Approval): Move self back from
158         paper trail.
159
160 2014-05-22  Pedro Alves  <palves@redhat.com>
161
162         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
163         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
164         (disable_randomization, enum exec_direction_kind)
165         (execution_direction, stop_registers, start_remote)
166         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
167         (wait_for_inferior, normal_stop, get_last_target_status)
168         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
169         (insert_step_resume_breakpoint_at_sal)
170         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
171         (set_step_info, print_stop_event, signal_stop_state)
172         (signal_print_state, signal_pass_state, signal_stop_update)
173         (signal_print_update, signal_pass_update)
174         (update_signals_program_target, clear_exit_convenience_vars)
175         (displaced_step_dump_bytes, update_observer_mode)
176         (signal_catch_update, gdb_signal_from_command): Move
177         declarations ...
178         * infrun.h: ... to this new file.
179         * amd64-tdep.c: Include infrun.h.
180         * annotate.c: Include infrun.h.
181         * arch-utils.c: Include infrun.h.
182         * arm-linux-tdep.c: Include infrun.h.
183         * arm-tdep.c: Include infrun.h.
184         * break-catch-sig.c: Include infrun.h.
185         * breakpoint.c: Include infrun.h.
186         * common/agent.c: Include infrun.h instead of inferior.h.
187         * corelow.c: Include infrun.h.
188         * event-top.c: Include infrun.h.
189         * go32-nat.c: Include infrun.h.
190         * i386-tdep.c: Include infrun.h.
191         * inf-loop.c: Include infrun.h.
192         * infcall.c: Include infrun.h.
193         * infcmd.c: Include infrun.h.
194         * infrun.c: Include infrun.h.
195         * linux-fork.c: Include infrun.h.
196         * linux-nat.c: Include infrun.h.
197         * linux-thread-db.c: Include infrun.h.
198         * monitor.c: Include infrun.h.
199         * nto-tdep.c: Include infrun.h.
200         * procfs.c: Include infrun.h.
201         * record-btrace.c: Include infrun.h.
202         * record-full.c: Include infrun.h.
203         * remote-m32r-sdi.c: Include infrun.h.
204         * remote-mips.c: Include infrun.h.
205         * remote-notif.c: Include infrun.h.
206         * remote-sim.c: Include infrun.h.
207         * remote.c: Include infrun.h.
208         * reverse.c: Include infrun.h.
209         * rs6000-tdep.c: Include infrun.h.
210         * s390-linux-tdep.c: Include infrun.h.
211         * solib-irix.c: Include infrun.h.
212         * solib-osf.c: Include infrun.h.
213         * solib-svr4.c: Include infrun.h.
214         * target.c: Include infrun.h.
215         * top.c: Include infrun.h.
216         * windows-nat.c: Include infrun.h.
217         * mi/mi-interp.c: Include infrun.h.
218         * mi/mi-main.c: Include infrun.h.
219         * python/py-threadevent.c: Include infrun.h.
220
221 2014-05-22  Pedro Alves  <palves@redhat.com>
222
223         * infrun.c (handle_inferior_event): Store the exit code for
224         --return-child-result here, instead of ...
225         (print_exited_reason): ... here.
226
227 2014-05-21  Pedro Alves  <palves@redhat.com>
228
229         PR gdb/13860
230         * gdbthread.h (struct thread_control_state): New field
231         `command_interp'.
232         * infrun.c (follow_fork): Copy the new thread control field to the
233         child fork thread.
234         (clear_proceed_status_thread): Clear the new thread control field.
235         (proceed): Set the new thread control field.
236         * interps.h (command_interp): Declare.
237         * interps.c (command_interpreter): New global.
238         (command_interp): New function.
239         (interp_exec): Set `command_interpreter' while here.
240         * cli-out.c (cli_uiout_dtor): New function.
241         (cli_ui_out_impl): Install it.
242         * mi/mi-interp.c: Include cli-out.h.
243         (mi_cmd_interpreter_exec): Add comment.
244         (restore_current_uiout_cleanup): New function.
245         (ui_out_free_cleanup): New function.
246         (mi_on_normal_stop): If finishing an execution command started by
247         a CLI command, or any kind of breakpoint-like event triggered,
248         print the stop event to the output (CLI) stream.
249         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
250
251 2014-05-21  Pedro Alves  <palves@redhat.com>
252
253         * cli/cli-cmds.c (list_command): Handle the first "list" after the
254         current source line having changed.
255         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
256         * infrun.c (normal_stop): Adjust call to
257         set_current_sal_from_frame.
258         * source.c (clear_lines_listed_range): New function.
259         (set_current_source_symtab_and_line, identify_source_line): Clear
260         the lines listed range.
261         (line_info): Handle the first "info line" after the current source
262         line having changed.
263         * stack.c (print_stack_frame): Remove center handling.
264         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
265         center sal.line.
266
267 2014-05-21  Pedro Alves  <palves@redhat.com>
268
269         * inf-child.c (inf_child_mourn_inferior): New function.
270         * inf-child.h (inf_child_mourn_inferior): New declaration.
271         * darwin-nat.c (darwin_mourn_inferior): Use
272         inf_child_mourn_inferior.
273         * gnu-nat.c (gnu_mourn_inferior): Likewise.
274         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
275         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
276         * nto-procfs.c (procfs_mourn_inferior): Likewise.
277         * windows-nat.c (windows_mourn_inferior): Likewise.
278
279 2014-05-21  Doug Evans  <xdje42@gmail.com>
280
281         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
282
283 2014-05-21  Doug Evans  <xdje42@gmail.com>
284
285         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
286         (gdbscm_out_of_range_error): Ditto.
287         (gdbscm_memory_error): Ditto.
288         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
289         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
290         (gdbscm_out_of_range_error): Update.
291         (gdbscm_memory_error): Update.
292         (gdbscm_scm_to_target_string_unsafe): Delete.
293
294 2014-05-21  Pedro Alves  <palves@redhat.com>
295
296         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
297         globals.
298         (inf_child_open_target): New function.
299         (inf_child_open): Use inf_child_open_target to push the target
300         instead of erroring out.
301         (inf_child_disconnect, inf_child_close)
302         (inf_child_maybe_unpush_target): New functions.
303         (inf_child_target): Install inf_child_disconnect and
304         inf_child_close.  Store a pointer to the returned object.
305         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
306         declarations.
307         * target.c (auto_connect_native_target): New global.
308         (show_default_run_target): New function.
309         (find_default_run_target): Return NULL if automatically connecting
310         to the native target is disabled.
311         (_initialize_target): Install set/show auto-connect-native-target.
312         * NEWS: Mention "set auto-connect-native-target", and "target
313         native".
314         * linux-nat.c (super_close): New global.
315         (linux_nat_close): Call super_close.
316         (linux_nat_add_target): Store a pointer to the base class's
317         to_close method.
318         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
319         inf_child_maybe_unpush.
320         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
321         already pushed.
322         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
323         the inferior.  Use inf_child_maybe_unpush_target.
324         (inf_ttrace_attach): Don't push the target if it is already
325         pushed.
326         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
327         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
328         after mourning the inferior.  Use inf_child_maybe_unpush_target.
329         (darwin_attach_pid): Don't push the target if it is already
330         pushed.
331         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
332         mourning the inferior.  Use inf_child_maybe_unpush_target.
333         (gnu_detach): Use inf_child_maybe_unpush_target.
334         * go32-nat.c (go32_create_inferior): Don't push the target if it
335         is already pushed.
336         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
337         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
338         (procfs_open): Rename to ...
339         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
340         comments.  Can target_preopen before changing node.  Call
341         inf_child_open_target to push the target explicitly.
342         (procfs_attach): Don't push the target if it is already pushed.
343         (procfs_detach): Use inf_child_maybe_unpush_target.
344         (procfs_create_inferior): Don't push the target if it is already
345         pushed.
346         (nto_native_ops): New global.
347         (procfs_open): Reimplement.
348         (procfs_native_open): New function.
349         (init_procfs_targets): Install procfs_native_open as to_open of
350         "target native".  Store a pointer to the "native" target in
351         nto_native_ops.
352         * procfs.c (procfs_attach): Don't push the target if it is already
353         pushed.
354         (procfs_detach): Use inf_child_maybe_unpush_target.
355         (procfs_mourn_inferior): Only unpush the target after mourning the
356         inferior.  Use inf_child_maybe_unpush_target.
357         (procfs_init_inferior): Don't push the target if it is already
358         pushed.
359         * windows-nat.c (do_initial_windows_stuff): Don't push the target
360         if it is already pushed.
361
362 2014-05-21  Pedro Alves  <palves@redhat.com>
363
364         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
365         and "procfs" targets are now called "native" instead.
366
367 2014-05-21  Pedro Alves  <palves@redhat.com>
368
369         * go32-nat.c (go32_open): Delete.
370         (go32_target): Don't override the to_open method.
371
372 2014-05-21  Pedro Alves  <palves@redhat.com>
373
374         * nto-procfs.c (procfs_can_run): New function.
375         (nto_procfs_ops): New global.
376         (init_procfs_targets): New, based on procfs_target.  Install
377         "target native" in addition to "target procfs".
378         (_initialize_procfs): Call init_procfs_targets instead of adding
379         the target here.
380
381 2014-05-21  Pedro Alves  <palves@redhat.com>
382
383         * windows-nat.c (windows_target): Don't override to_shortname,
384         to_longname or to_doc.
385
386 2014-05-21  Pedro Alves  <palves@redhat.com>
387
388         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
389         to_doc.
390
391 2014-05-21  Pedro Alves  <palves@redhat.com>
392
393         * darwin-nat.c (_initialize_darwin_inferior): Don't override
394         to_shortname, to_longname or to_doc.
395
396 2014-05-21  Pedro Alves  <palves@redhat.com>
397
398         * go32-nat.c (go32_target): Don't override to_shortname,
399         to_longname or to_doc.
400
401 2014-05-21  Pedro Alves  <palves@redhat.com>
402
403         * inf-child.c (inf_child_open): Remove mention of "child".
404         (inf_child_target): Rename target to "native" instead of "child".
405
406 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
407
408         * Makefile.in (SFILES): Delete "regset.c".
409         (COMMON_OBS): Delete "regset.o".
410         * regset.c: Remove.
411         * regset.h (regset_alloc): Delete prototype.
412
413 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
414
415         * sparc-linux-tdep.c (sparc32_linux_gregset)
416         (sparc32_linux_fpregset): New static regset structures.
417         (sparc32_linux_init_abi): Drop dynamic regset allocations.
418         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
419         'fpregset' fields.
420         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
421         (sparc64_linux_fpregset): New static regset structures.
422         (sparc64_linux_init_abi): Drop dynamic regset allocations.
423         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
424         New static regset structures.
425         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
426         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
427         New static regset structures.
428         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
429         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
430         New static regset structures.
431         (sparc64obsd_init_abi): Drop dynamic regset allocations.
432         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
433         New static regset structures.
434         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
435
436 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
437
438         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
439         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
440         register maps ("regmaps") from "*regset" to "*regmap".  Do this
441         for all regmap types and variables.
442         * sparc-linux-tdep.c (sparc32_linux_step_trap)
443         (sparc32_linux_supply_core_gregset)
444         (sparc32_linux_collect_core_gregset)
445         (sparc32_linux_supply_core_fpregset)
446         (sparc32_linux_collect_core_fpregset): Likewise.
447         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
448         (sparc_gregmap, sparc_fpregmap): ... these.
449         (sparc_supply_gregset, sparc_collect_gregset)
450         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
451         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
452         (_initialize_sparc_nat): Rename regmaps.
453         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
454         (sparc_gregmap, sparc_fpregmap): ... these.
455         (sparc_supply_gregset, sparc_collect_gregset)
456         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
457         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
458         Rename macros to...
459         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
460         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
461         Likewise.
462         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
463         Rename to...
464         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
465         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
466         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
467         regmaps.
468         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
469         (sparc32_bsd_fpregset): Rename to...
470         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
471         (sparc32_bsd_fpregmap): ... these.
472         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
473         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
474         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
475         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
476         (struct sparc_gregmap, struct sparc_fpregmap)
477         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
478         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
479         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
480         (sparc32_supply_regset, sparc32_collect_gregset)
481         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
482         prototypes.
483         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
484         (sparc64_linux_ptrace_gregmap): ... this.
485         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
486         (_initialize_sparc64_linux_nat): Rename regmaps.
487         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
488         (sparc64_linux_core_gregmap): ... this.
489         (sparc64_linux_supply_core_gregset)
490         (sparc64_linux_collect_core_gregset)
491         (sparc64_linux_supply_core_fpregset)
492         (sparc64_linux_collect_core_fpregset): Rename regmaps.
493         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
494         (sparc64_sol2_fpregset): Rename to...
495         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
496         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
497         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
498         regmaps.
499         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
500         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
501         (sparc64_bsd_fpregset): Rename to...
502         (struct sparc_gregmap, sparc64_sol2_gregmap)
503         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
504         (sparc64_bsd_fpregmap): ... these.
505         (sparc64_supply_gregset, sparc64_collect_gregset)
506         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
507         prototypes.
508         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
509         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
510         (sparc64fbsd_gregmap): ... this.
511         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
512         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
513         Rename regmaps.
514         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
515         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
516         (sparc64nbsd_collect_fpregset): Likewise.
517         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
518         (sparc64nbsd_gregmap): ... this.
519         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
520         regmaps.
521         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
522         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
523         (sparc64obsd_gregmap): ... this.
524         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
525         regmaps.
526         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
527         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
528         (sparc32nbsd_gregmap): ... this.
529         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
530         regmaps.
531
532 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
533
534         * score-tdep.c (score7_linux_gregset): New static regset
535         structure.
536         (score7_linux_regset_from_core_section): Remove dynamic regset
537         allocation.
538         (score_gdbarch_init): Drop allocation of tdep structure.
539         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
540
541 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
542
543         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
544         regset structures.
545         (am33_regset_from_core_section): Remove dynamic regset
546         allocations.
547
548 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
549
550         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
551         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
552         structures.
553         (mips_linux_regset_from_core_section): Remove dynamic regset
554         allocations.
555         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
556         'gregset64', 'fpregset', and 'fpregset64'.
557         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
558         deleted tdep fields.
559
560 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
561
562         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
563         regset structures.
564         (amd64_regset_from_core_section): Remove dynamic regset
565         allocations.
566         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
567         structure.
568         (amd64obsd_regset_from_core_section): Remove dynamic regset
569         allocation.
570         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
571         Likewise.
572         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
573         x86-common regset supply function.
574         * i386-tdep.c (i386_collect_gregset): Make static.
575         (i386_gregset): New global regset structure.
576         (i386_fpregset, i386_xstateregset): New static regset structures.
577         (i386_regset_from_core_section): Remove dynamic regset
578         allocations.
579         (i386_gdbarch_init): Remove initialization of tdep fields
580         'gregset', 'fpregset', and 'xstateregset'.
581         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
582         'fpregset', and 'xstateregset'.
583         (i386_collect_gregset): Remove prototype.
584         (i386_gregset): New declaration.
585         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
586         structure.
587         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
588         allocation.
589
590 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
591
592         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
593         (arm_linux_vfpregset): New static regset structures.
594         (arm_linux_regset_from_core_section): Remove dynamic allocation of
595         regset structures.
596         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
597         and 'vfpregset' fields.
598
599 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
600
601         * aarch64-linux-tdep.c (aarch64_linux_gregset)
602         (aarch64_linux_fpregset): New static regset structures.
603         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
604         of regset structures.
605         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
606         'fpregset' fields.
607
608 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
609
610         * regset.h (struct regset): Remove gdbarch field.
611         * regset.c (regset_alloc): Drop initialization of gdbarch field.
612         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
613         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
614         Likewise.
615         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
616         (ppc32_linux_fpregset, ppc32_linux_vrregset)
617         (ppc32_linux_vsxregset): Likewise.
618         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
619         via the regcache instead of the regset.
620         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
621         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
622         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
623         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
624         Likewise.
625
626 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
627
628         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
629         Constify structures.
630         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
631         (alphanbsd_aout_gregset): Likewise.
632         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
633         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
634         Likewise.
635         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
636         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
637         Likewise.
638         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
639         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
640         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
641         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
642         * m88k-tdep.c (m88k_gregset): Likewise.
643         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
644         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
645         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
646         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
647         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
648         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
649         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
650         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
651         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
652         Likewise.
653         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
654         * sh-tdep.h (sh_corefile_gregset): Likewise.
655         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
656         * vax-tdep.c (vax_gregset): Likewise.
657
658 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
659
660         Fix TLS access for -static -pthread.
661         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
662         (try_thread_db_load_1): Initialize it.
663         (thread_db_get_thread_local_address): Call it if LM is zero.
664         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
665         * target.h (struct target_ops) (to_get_thread_local_address): Add
666         load_module_addr comment.
667
668 2014-05-21  Pedro Alves  <palves@redhat.com>
669
670         * dcache.c (dcache_read_memory_partial): If reading the cache line
671         fails, fallback to reading just the memory the caller wanted.
672
673 2014-05-20  Doug Evans  <dje@google.com>
674
675         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
676         instead of get_current_arch.
677
678 2014-05-20  Pedro Alves  <palves@redhat.com>
679
680         * NEWS: Mention that compare-sections now works with all targets.
681
682         * remote.c (PACKET_qCRC): New enum value.
683         (remote_verify_memory): Don't send qCRC if the target has no
684         execution.  Use packet_support/packet_ok.  If the target doesn't
685         support the qCRC packet, fallback to a deep memory copy.
686         (compare_sections_command): Say "target image" instead of "remote
687         executable".
688         (_initialize_remote): Add PACKET_qCRC to the list of config
689         packets that have no associated command.  Extend comment.
690         * target.c (simple_verify_memory, default_verify_memory): New
691         function.
692         * target.h (struct target_ops) <to_verify_memory>: Default to
693         default_verify_memory.
694         (simple_verify_memory): New declaration.
695         * target-delegates.c: Regenerate.
696
697 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
698
699         * record-btrace.c (record_btrace_step_thread): Check for empty history.
700
701 2014-05-20  Hui Zhu  <hui@codesourcery.com>
702             Yao Qi  <yao@codesourcery.com>
703
704         PR backtrace/16558
705         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
706         and change address of sp and pc.
707
708 2014-05-19  Tom Tromey  <tromey@redhat.com>
709
710         * gdbtypes.c (rank_function): Use XNEWVEC.
711         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
712
713 2014-05-19  Doug Evans  <dje@google.com>
714
715         * dwarf2read.c (build_type_psymtabs_1): Renamed from
716         build_type_unit_groups and moved closer to only caller.  Remove
717         arguments.  All references updated.  Remove outdated .gdb_index
718         comment.
719         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
720         build_type_psymtabs_1.
721
722 2014-05-19  Doug Evans  <dje@google.com>
723
724         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
725         n_type_unit_groups, all_type_unit_groups.  All uses removed.
726         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
727         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
728         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
729         (add_type_unit_group_to_table): Delete.
730
731 2014-05-19  Doug Evans  <dje@google.com>
732
733         * eval.c (evaluate_subexp_standard): Add some comments.
734
735 2014-05-17  Doug Evans  <xdje42@gmail.com>
736
737         * progspace.c (remove_program_space): Delete, unused.
738         * progspace.h (remove_program_space): Ditto.
739
740 2014-05-17  Doug Evans  <xdje42@gmail.com>
741
742         * inferior.c (prune_inferiors): Fix comment.
743         (remove_inferior_command): Call prune_program_spaces.
744
745 2014-05-16  Doug Evans  <dje@google.com>
746
747         New command line option -D.
748         * NEWS: Mention it.
749         * main.c (set_gdb_data_directory): New function.
750         (captured_main): Recognize -D.  Flag error for --data-directory "".
751         Call set_gdb_data_directory.
752         (print_gdb_help): Print --data-directory, -D.
753         * main.h (set_gdb_data_directory): Declare.
754         * top.c (staged_gdb_datadir): New static global.
755         (set_gdb_datadir): Call set_gdb_data_directory
756         (show_gdb_datadir): New function.
757         (init_main): Update init of data-directory parameter.
758
759 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
760
761         Import the "dirfd" gnulib module.
762         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
763         * gnulib/aclocal.m4: Update.
764         * gnulib/config.in: Update.
765         * gnulib/configure: Update.
766         * gnulib/import/Makefile.am: Update.
767         * gnulib/import/Makefile.in: Update.
768         * gnulib/import/dirfd.c: New.
769         * gnulib/import/m4/dirfd.m4: New.
770         * gnulib/import/m4/gnulib-cache.m4: Update.
771         * gnulib/import/m4/gnulib-comp.m4: Update.
772
773 2014-05-16  Pierre Muller  <muller@sourceware.org>
774             Yao Qi  <yao@codesourcery.com>
775
776         * valprint.c (print_wchar): Move the code on checking whether
777         W is a printable wide char to the default branch of switch
778         statement below.  Call wchar_printable instead of gdb_iswprint.
779
780 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
781
782         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
783         ldr.w and ldrd instructions.
784
785 2014-05-15  Doug Evans  <dje@google.com>
786
787         * dwarf2read.c (read_structure_type): Delete outdated comments.
788
789 2014-05-14  Tom Tromey  <tromey@redhat.com>
790
791         * macrocmd.c (print_macro_definition): Reindent.
792
793 2014-05-13  Doug Evans  <xdje42@gmail.com>
794
795         * python/py-cmd.c (cmdpy_completer): Add comment.
796         (completers): Make const.
797
798 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
799
800         * infrun.c (resume): Remove should_resume (unused).  Move up
801         declaration of resume_ptid.
802
803 2014-05-13  Tom Tromey  <tromey@redhat.com>
804
805         * language.h (unop_type_check): Remove.
806         (binop_type_check): Don't declare.
807
808 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
809
810         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
811         call to regcache_raw_collect.
812
813 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
814
815         * mi/mi-console.c (mi_console_raw_packet): Use the value from
816         mi_console->quote as the quoting character.
817
818 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
819
820         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
821
822 2014-04-29  Tom Tromey  <tromey@redhat.com>
823
824         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
825         "show debug varobj".
826
827 2014-05-07  Kyle McMartin  <kyle@redhat.com>
828
829         Pushed by Joel Brobecker  <brobecker@adacore.com>.
830         * aarch64-tdep.c (aarch64_software_single_step): New function.
831         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
832         with aarch64_software_single_step.
833
834 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
835
836         GDB 7.7.1 released.
837
838 2014-05-05  Keith Seitz  <keiths@redhat.com>
839
840         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
841         variable or history value is successfully parsed.
842
843 2014-05-05  Yao Qi  <yao@codesourcery.com>
844             Pedro Alves  <palves@redhat.com>
845
846         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
847         address of blocks that intersects the requested range.  Trim
848         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
849         sections.
850         * ctf.c (ctf_xfer_partial): Likewise.
851
852 2014-05-05  Yao Qi  <yao@codesourcery.com>
853
854         * printcmd.c (display_command): Remove the check to
855         target_has_execution.
856
857 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
858
859         * ppcobsd-nat.c: Include "obsd-nat.h".
860         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
861         add_target.
862         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
863
864 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
865
866         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
867         and 16-bit signed and unsigned arguments.  Update comment.
868         (stap_parse_probe_arguments): Extend code to handle such
869         arguments.  Use warning instead of complaint to notify about
870         unrecognized bitness.
871
872 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
873
874         PR breakpoints/16889
875         * stap-probe.c (stap_parse_probe_arguments): Simplify
876         check for non-prefixed probes (i.e., probes whose
877         arguments do not start with "N@").  Always set the
878         argument type to a sane value.
879
880 2014-05-01  David Taylor  <dtaylor@emc.com>
881
882         * remote.c (compare_sections_command): Add -r option to compare
883         all loadable read-only sections.
884
885 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
886
887         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
888         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
889         Update all callers.
890         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
891         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
892         Remove unused CORE_ADDR argument.  Update all callers.
893
894 2014-04-29  Pedro Alves  <palves@redhat.com>
895
896         * remote.c (struct packet_config) <detect>: Extend comment.
897         (add_packet_config_cmd): Don't set the config's detect or support
898         fields here.
899         (init_all_packet_configs): Also initialize the config's 'detect'
900         field.
901         (reset_all_packet_configs_support): New function.
902         (remote_open_1): Call reset_all_packet_configs_support instead of
903         init_all_packet_configs.
904         (_initialize_remote): Initialize all packet configs.  Assert that
905         all packets have an associated command, except a few known
906         outliers.
907
908 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
909
910         * dwarf2read.c (read_subrange_type): Handle dynamic
911         DW_AT_lower_bound attributes.
912
913 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
914
915         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
916         dynamic bounds before computing its upper bound.
917         (ada_discrete_type_low_bound): Same as above with the lower bound.
918
919 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
920
921         * dwarf2read.c (is_dynamic_type): Return true for dynamic
922         range types.  Adjust the array handling implementation to
923         take advantage of this change.
924         (resolve_dynamic_range): New function, mostly extracted from
925         resolve_dynamic_bounds.
926         (resolve_dynamic_array): New function, mostly extracted from
927         resolve_dynamic_bounds.
928         (resolve_dynamic_bounds): Delete.
929         (resolve_dynamic_type): Reimplement.  Add handling of
930         TYPE_CODE_RANGE types.
931
932 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
933
934         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
935         handling of parallel ___XA types.
936
937 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
938
939         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
940         unnecessary second call to static_unwrap_type.
941
942 2014-04-27  Hui Zhu  <hui@codesourcery.com>
943
944         * stack.c (print_frame_info): Call do_gdb_disassembly with
945         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
946
947 2014-04-26  Doug Evans  <xdje42@gmail.com>
948
949         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
950
951 2014-04-25  Pedro Alves  <palves@redhat.com>
952
953         PR server/16255
954         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
955         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
956         and newline from built string.
957         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
958         (linux_ptrace_attach_fail_reason): ... this.
959         * linux-nat.c (linux_nat_attach): Adjust to use
960         linux_ptrace_attach_fail_reason.
961
962 2014-04-25  Pedro Alves  <palves@redhat.com>
963
964         * remote.c (struct remote_state): Remove multi_process_aware,
965         non_stop_aware, cond_tracepoints, cond_breakpoints,
966         breakpoint_commands, fast_tracepoints, static_tracepoints,
967         install_in_trace, disconnected_tracing,
968         enable_disable_tracepoints, string_tracing, and
969         augmented_libraries_svr4_read fields.
970         (remote_multi_process_p): Move further below in the file.
971         (struct packet_config): Add comments.
972         (update_packet_config): Delete function.
973         (show_packet_config_cmd): Use packet_config_support.
974         (add_packet_config_cmd): Use NULL as set callback.
975         (packet_ok): "set remote foo-packet"-style commands no longer
976         change config->supported -- adjust.
977         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
978         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
979         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
980         (PACKET_QNonStop, PACKET_multiprocess_feature)
981         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
982         (PACKET_DisconnectedTracing_feature)
983         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
984         (set_remote_protocol_packet_cmd): Delete function.
985         (packet_config_support, packet_support): New functions.
986         (set_remote_protocol_Z_packet_cmd): Don't call
987         update_packet_config.
988         (remote_query_attached, remote_pass_signals)
989         (remote_program_signals, remote_threads_info)
990         (remote_threads_extra_info, remote_start_remote): Use
991         packet_support.
992         (remote_start_remote): Use packet_config_support and
993         packet_support.
994         (init_all_packet_configs): Set all packets to unknown support,
995         instead of calling update_packet_config.
996         (remote_check_symbols): Use packet_support.
997         (remote_supported_packet): Unconditionally set the packet config's
998         support status.
999         (remote_multi_process_feature, remote_non_stop_feature)
1000         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1001         (remote_breakpoint_commands_feature)
1002         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1003         (remote_install_in_trace_feature)
1004         (remote_disconnected_tracing_feature)
1005         (remote_enable_disable_tracepoint_feature)
1006         (remote_string_tracing_feature)
1007         (remote_augmented_libraries_svr4_read_feature): Delete functions.
1008         (remote_protocol_features): Adjust to use remote_supported_packet
1009         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1010         "ConditionalTracepoints", "ConditionalBreakpoints",
1011         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1012         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1013         "EnableDisableTracepoints", and "tracenz".
1014         (remote_query_supported): Use packet_support.
1015         (remote_open_1): Adjust.
1016         (extended_remote_attach_1): Use packet_support.  Switch on the
1017         result of packet_ok instead of checking whether the packet ended
1018         up disabled.
1019         (remote_vcont_resume): Use packet_support.
1020         (remote_resume, remote_stop_ns, fetch_register_using_p)
1021         (remote_prepare_to_store, store_register_using_P)
1022         (check_binary_download, remote_write_bytes): Use packet_support.
1023         (remote_vkill): Use packet_support.  Switch on the result of
1024         packet_ok instead of checking whether the packet ended up
1025         disabled.
1026         (extended_remote_supports_disable_randomization): Use
1027         packet_support.
1028         (extended_remote_run): Switch on the result of packet_ok instead
1029         of checking whether the packet ended up disabled.
1030         (remote_insert_breakpoint, remote_remove_breakpoint)
1031         (remote_insert_watchpoint, remote_remove_watchpoint)
1032         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1033         packet_support.
1034         (remote_search_memory): Use packet_config_support.
1035         (remote_get_thread_local_address, remote_get_tib_address)
1036         (remote_hostio_send_command, remote_can_execute_reverse): Use
1037         packet_support.
1038         (remote_supports_cond_tracepoints)
1039         (remote_supports_cond_breakpoints)
1040         (remote_supports_fast_tracepoints)
1041         (remote_supports_static_tracepoints)
1042         (remote_supports_install_in_trace)
1043         (remote_supports_enable_disable_tracepoint)
1044         (remote_supports_string_tracing)
1045         (remote_can_run_breakpoint_commands): Rewrite, checking whether
1046         the packet config says the feature is enabled or disabled.
1047         (remote_download_tracepoint, remote_trace_set_readonly_regions)
1048         (remote_get_trace_status): Use packet_support.
1049         (remote_set_disconnected_tracing): Adjust to check whether the
1050         feature is enabled with packet_support.
1051         (remote_set_trace_buffer_size, remote_use_agent)
1052         (remote_can_use_agent, remote_supports_btrace): Use
1053         packet_support.
1054         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1055         Use packet_config_support.
1056         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1057         the packet config says the feature is enabled or disabled.
1058         (set_range_stepping): Use packet_support.
1059
1060 2014-04-25  Tom Tromey  <tromey@redhat.com>
1061
1062         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1063         argument.
1064
1065 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
1066
1067         * NEWS: Mention support for C99 variable length arrays.
1068
1069 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
1070
1071         * ada-lang.c (standard_exc): Expand introductory comment.
1072
1073 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
1074             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1075
1076         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1077         AVX512 registers.
1078         (amd64_linux_read_description): Add code to handle AVX512 xstate
1079         mask and return respective tdesc.
1080         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1081         and features/i386/x32-avx512-linux.c.
1082         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1083         (amd64_linux_core_read_description): Add code to handle AVX512
1084         xstate mask and return respective tdesc.
1085         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1086         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1087         calculation.
1088         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1089         (tdesc_amd64_avx512_linux): New prototype.
1090         (tdesc_x32_avx512_linux): Likewise.
1091         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1092         features/i386/x32-avx512.c.
1093         (amd64_ymm_avx512_names): New register names for pseudo
1094         registers YMM16-31.
1095         (amd64_ymmh_avx512_names): New register names for raw registers
1096         YMMH16-31.
1097         (amd64_k_names): New register names for K registers.
1098         (amd64_zmmh_names): New register names for ZMM raw registers.
1099         (amd64_zmm_names): New registers names for ZMM pseudo registers.
1100         (amd64_xmm_avx512_names): New register names for XMM16-31
1101         registers.
1102         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1103         registers.
1104         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1105         if feature is present.
1106         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1107         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1108         (AMD64_NUM_REGS): Adjust to new number of registers.
1109         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1110         registers supplied via XSTATE by AVX512 registers.
1111         (i386_linux_read_description): Add case for AVX512.
1112         * i386-linux-tdep.c: Include i386-avx512-linux.c.
1113         (i386_linux_gregset_reg_offset): Add AVX512 registers.
1114         (i386_linux_core_read_description): Add case for AVX512.
1115         (i386_linux_init_abi): Install supported register note section
1116         for AVX512.
1117         (_initialize_i386_linux_tdep): Add call to tdesc init function for
1118         AVX512.
1119         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1120         registers to be number of zmm7h + 1.
1121         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1122         * i386-tdep.c: Include features/i386/i386-avx512.c.
1123         (i386_zmm_names): Add ZMM pseudo register names array.
1124         (i386_zmmh_names): Add ZMM raw register names array.
1125         (i386_k_names): Add K raw register names array.
1126         (num_lower_zmm_regs): Add constant for the number of lower ZMM
1127         registers. AVX512 has 16 more ZMM registers than there are YMM
1128         registers.
1129         (i386_zmmh_regnum_p): Add function to look up register number of
1130         ZMM raw registers.
1131         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1132         (i386_k_regnum_p): Likewise for K raw registers.
1133         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1134         registers added by AVX512.
1135         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1136         registers added by AVX512.
1137         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1138         added by AVX512.
1139         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1140         (i386_pseudo_register_name): Add ZMM pseudo registers.
1141         (i386_zmm_type): Construct and return vector registers type for ZMM
1142         registers.
1143         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1144         ZMM0-31 pseudo registers and K registers.
1145         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1146         and YMM16-31 registers from register cache.
1147         (i386_pseudo_register_write): Add code to write  K, ZMM and
1148         YMM16-31 registers.
1149         (i386_register_reggroup_p): Add code to include/exclude AVX512
1150         registers in/from respective register groups.
1151         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1152         registers if feature is present in xcr0.
1153         (i386_gdbarch_init): Add code to initialize AVX512 feature
1154         variables in tdep structure, wire in pseudo registers and call
1155         initialize_tdesc_i386_avx512.
1156         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1157         variables.
1158         (i386_regnum): Add AVX512 registers.
1159         (I386_SSE_NUM_REGS): New define for number of SSE registers.
1160         (I386_AVX_NUM_REGS): Likewise for AVX registers.
1161         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1162         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1163         512 bits wide.
1164         (i386_xmm_avx512_regnum_p): New prototype for register look up.
1165         (i386_ymm_avx512_regnum_p): Likewise.
1166         (i386_k_regnum_p): Likewise.
1167         (i386_zmm_regnum_p): Likewise.
1168         (i386_zmmh_regnum_p): Likewise.
1169         * i387-tdep.c : Update year in copyright notice.
1170         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1171         XSAVE buffer.
1172         (XSAVE_YMM_AVX512_ADDR): New macro.
1173         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1174         XSAVE buffer.
1175         (XSAVE_XMM_AVX512_ADDR): New macro.
1176         (xsave_avx512_k_offset): New table for K register offsets in
1177         XSAVE buffer.
1178         (XSAVE_AVX512_K_ADDR): New macro.
1179         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1180         in XSAVE buffer.
1181         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1182         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1183         buffer.
1184         (i387_collect_xsave): Add code to collect AVX512 registers from
1185         XSAVE buffer.
1186         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1187         of XMM16-31 registers.
1188         (I387_NUM_K_REGS): New define for number of K registers.
1189         (I387_K0_REGNUM): New define for K0 register number.
1190         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1191         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1192         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1193         registers.
1194         (I387_YMM16H_REGNUM): New define for YMM16H register number.
1195         (I387_XMM16_REGNUM): New define for XMM16 register number.
1196         (I387_YMM0_REGNUM): New define for YMM0 register number.
1197         (I387_KEND_REGNUM): New define for last K register number.
1198         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1199         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1200         number.
1201         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1202         number.
1203         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1204         size.
1205         * features/Makefile: Add AVX512 related files.
1206         * features/i386/32bit-avx512.xml: New file.
1207         * features/i386/64bit-avx512.xml: Likewise.
1208         * features/i386/amd64-avx512-linux.c: Likewise.
1209         * features/i386/amd64-avx512-linux.xml: Likewise.
1210         * features/i386/amd64-avx512.c: Likewise.
1211         * features/i386/amd64-avx512.xml: Likewise.
1212         * features/i386/i386-avx512-linux.c: Likewise.
1213         * features/i386/i386-avx512-linux.xml: Likewise.
1214         * features/i386/i386-avx512.c: Likewise.
1215         * features/i386/i386-avx512.xml: Likewise.
1216         * features/i386/x32-avx512-linux.c: Likewise.
1217         * features/i386/x32-avx512-linux.xml: Likewise.
1218         * features/i386/x32-avx512.c: Likewise.
1219         * features/i386/x32-avx512.xml: Likewise.
1220         * regformats/i386/amd64-avx512-linux.dat: New file.
1221         * regformats/i386/amd64-avx512.dat: Likewise.
1222         * regformats/i386/i386-avx512-linux.dat: Likewise.
1223         * regformats/i386/i386-avx512.dat: Likewise.
1224         * regformats/i386/x32-avx512-linux.dat: Likewise.
1225         * regformats/i386/x32-avx512.dat: Likewise.
1226         * NEWS: Add note about new support for AVX512.
1227
1228
1229 2014-04-23  Pedro Alves  <palves@redhat.com>
1230
1231         * breakpoint.c (insert_bp_location): Tolerate errors if the
1232         breakpoint is set in a user-loaded objfile.
1233         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
1234         location is marked shlib_disabled.  If the breakpoint is set in a
1235         user-loaded objfile is a GDB-side memory breakpoint, validate it
1236         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
1237         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
1238         flag.
1239         * mem-break.c (memory_validate_breakpoint): New function.
1240         * objfiles.c (userloaded_objfile_contains_address_p): New
1241         function.
1242         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1243         * target.h (memory_validate_breakpoint): New declaration.
1244
1245 2014-04-23  Pedro Alves  <palves@redhat.com>
1246
1247         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1248         the breakpoint is set in a shared library, only suppress
1249         errors for software breakpoints, not hardware breakpoints.
1250
1251 2014-04-22  Pedro Alves  <palves@redhat.com>
1252
1253         * infrun.c (schedlock_applies): New function, factored out from
1254         find_thread_needs_step_over.
1255         (find_thread_needs_step_over): Use it.
1256         (switch_back_to_stepped_thread): Always clear trap_expected if the
1257         step over is finished.  Return early if scheduler locking applies.
1258         Look for the stepping thread and a potential step-over thread with
1259         a single loop.
1260         (currently_stepping_or_nexting_callback): Delete.
1261
1262 2014-04-22  Nick Clifton  <nickc@redhat.com>
1263
1264         * NEWS: Mention that ARM sim now supports tracing.
1265
1266 2014-04-22  Yao Qi  <yao@codesourcery.com>
1267
1268         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1269         to ...
1270         * tracefile.c (tracefile_fetch_registers): ... it.  New
1271         function.
1272         * tracefile.h (tracefile_fetch_registers): Declare.
1273         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
1274         tracefile_fetch_registers.
1275
1276 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
1277
1278         PR gdb/14018
1279         * windows-nat.c (thread_rec): Don't display a warning when
1280         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
1281         fails for any reason, set th->suspended to -1, so that we don't
1282         try to resume such a thread.  Also, don't return NULL in these
1283         cases, to avoid completely ruin the session due to "PC register is
1284         not available" error.
1285         (do_windows_fetch_inferior_registers): Check errors in
1286         GetThreadContext call.
1287         (windows_continue): Accept an additional argument KILLED; if not
1288         zero, ignore errors in the SetThreadContext call, since the
1289         inferior was killed and is shutting down.
1290         (windows_resume, get_windows_debug_event)
1291         (windows_create_inferior, windows_mourn_inferior)
1292         (windows_kill_inferior): All callers of windows_continue changed
1293         to adjust to its new calling sequence.
1294
1295 2014-04-19  Yao Qi  <yao@codesourcery.com>
1296
1297         * ctf.c (ctf_open): Call post_create_inferior.
1298
1299 2014-04-19  Yao Qi  <yao@codesourcery.com>
1300
1301         * ctf.c (handle_id): New static variable.
1302         (ctf_open_dir): Get handle_id from bt_context_add_trace return
1303         value.  Get the declaration of event "register" and get length
1304         of field "contents".
1305
1306 2014-04-19  Yao Qi  <yao@codesourcery.com>
1307
1308         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1309
1310 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
1311
1312         * valops.c (oload_method_static): Remove unnecessary argument
1313         METHOD.  Update all callers.
1314
1315 2014-04-18  Pedro alves  <palves@redhat.com>
1316             Tom Tromey  <tromey@redhat.com>
1317
1318         PR backtrace/15558
1319         * frame.c (get_prev_frame_1): Rename to ...
1320         (get_prev_frame_always): ... this, and make extern.  Adjust.
1321         (skip_artificial_frames): Use get_prev_frame_always.
1322         (frame_unwind_caller_id, frame_pop, get_prev_frame)
1323         (get_frame_unwind_stop_reason): Adjust to rename.
1324         * frame.h (get_prev_frame_always): Declare.
1325         * inline-frame.c: Include frame.h.
1326         (inline_frame_this_id): Use get_prev_frame_always.
1327
1328 2014-04-18  Tristan Gingold  <gingold@adacore.com>
1329
1330         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1331         code by using bfd_mach_o_get_base_address.
1332
1333 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1334
1335         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1336         (spu_ax_pseudo_register_collect): New function.
1337         (spu_ax_pseudo_register_push_stack): Likewise.
1338         (spu_dwarf_reg_to_regnum): Likewise.
1339         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
1340
1341 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1342
1343         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1344         Replace FRAME argument with FRAME_ID.
1345         * gdbarch.c, gdbarch.h: Regenerate.
1346         * findvar.c (default_value_from_register): Add GDBARCH argument;
1347         replace FRAME by FRAME_ID.  No longer call get_frame_id.
1348         (value_from_register): Update call to gdbarch_value_from_register.
1349         * value.h (default_value_from_register): Update prototype.
1350         * s390-linux-tdep.c (s390_value_from_register): Update interface
1351         and call to default_value_from_register.
1352         * spu-tdep.c (spu_value_from_register): Likewise.
1353
1354         * findvar.c (address_from_register): Remove TYPE argument.
1355         Do not call value_from_register; use gdbarch_value_from_register
1356         with null_frame_id instead.
1357         * value.h (address_from_register): Update prototype.
1358         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1359         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1360         address_from_register interface change.
1361
1362 2014-04-17  Yao Qi  <yao@codesourcery.com>
1363
1364         * gdbtypes.h: Update comments to link to types and macros'
1365         definitions.
1366
1367 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
1368
1369         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1370
1371 2014-04-16  Keith Seitz  <keiths@redhat.com>
1372
1373         PR gdb/15827
1374         * dwarf2read.c (skip_one_die): Check that all relative-offset
1375         sibling DIEs fall within range of the current reader's buffer.
1376         (read_partial_die): Likewise.
1377
1378 2014-04-16  Keith Seitz  <keiths@redhat.com>
1379
1380         PR c++/16597
1381         * cp-namespace.c (lookup_symbol_file): If the type name of
1382         `this' is NULL, return immediately.
1383
1384 2014-04-14  Keith Seitz  <keiths@redhat.com>
1385
1386         PR c++/16253
1387         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1388         from symbol_matches_domain in symtab.c. All local callers
1389         of symbol_matches_domain updated.
1390         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1391         search STRUCT_DOMAIN.
1392         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1393         independently.  standard_lookup will do that automatically.
1394         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1395         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1396         (cp_lookup_symbol_in_namespace): Likewise.
1397         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1398         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1399         may return a STRUCT_DOMAIN match.
1400         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1401         * cp-support.c: Include language.h.
1402         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1403         VAR_DOMAIN.
1404         * psymtab.c (match_partial_symbol): Compare the requested
1405         domain with the symbol's domain directly.
1406         (lookup_partial_symbol): Likewise.
1407         * symtab.c (lookup_symbol_in_language): Explain when/why
1408         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1409         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1410         appropriate languages.
1411         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1412         and moved to ada-lang.c
1413         (lookup_block_symbol): Explain that this function only returns
1414         symbol matching the requested DOMAIN.
1415         Compare the requested domain with the symbol's domain directly.
1416         (iterate_over_symbols): Compare the requested domain with the
1417         symbol's domain directly.
1418         * symtab.h (symbol_matches_domain): Remove.
1419
1420 2014-04-14  Tom Tromey  <tromey@redhat.com>
1421
1422         PR c++/15246:
1423         * c-exp.y (type_aggregate_p): New function.
1424         (qualified_name, classify_inner_name): Use it.
1425         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1426         and TYPE_TARGET_TYPE of an enum type.
1427         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1428         an enum type.
1429         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1430         handle TYPE_DECLARED_CLASS.
1431         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1432         types.
1433         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1434         * valops.c (enum_constant_from_type): New function.
1435         (value_aggregate_elt): Use it.
1436         * cp-namespace.c (cp_lookup_nested_symbol): Handle
1437         TYPE_CODE_ENUM.
1438
1439 2014-04-14  Tom Tromey  <tromey@redhat.com>
1440
1441         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1442         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1443         const.
1444         * value.h (value_aggregate_elt): Update.
1445
1446 2014-04-14  Tom Tromey  <tromey@redhat.com>
1447
1448         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1449
1450 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1451
1452         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1453         (evaluate_subexp_standard): Pass noside argument.
1454         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1455         if noside equals EVAL_NORMAL. If the subscript yields a vla type
1456         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1457         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1458         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1459
1460 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1461
1462         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1463         points to a constant blob.
1464
1465 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1466
1467         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1468         property and store it as the high bound and flag the range accordingly.
1469         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1470         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1471         * gdbtypes.h (enum range_flags): New enum.
1472         (struct range_bounds): Add flags member.
1473
1474 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1475
1476         * c-typeprint.c (c_type_print_varspec_suffix): Added
1477         check for not yet resolved high bound. If unresolved, print
1478         "variable length" string to the console instead of random
1479         length.
1480
1481 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1482
1483         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1484         value.
1485         (ada_template_to_fixed_record_type_1): Likewise.
1486         (ada_to_fixed_type_1): Likewise.
1487         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1488         (cp_print_value): Likewise.
1489         * d-valprint.c (dynamic_array_type): Likewise.
1490         * findvar.c (address_of_variable): Likewise.
1491         * jv-valprint.c (java_value_print): Likewise.
1492         * valops.c (value_ind): Likewise.
1493         * value.c (coerce_ref): Likewise.
1494
1495 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1496
1497         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1498         value and retrieve the dynamic type size.
1499
1500 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1501
1502         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1503         passed to sizeof is dynamic evaluate the argument to compute the length.
1504
1505 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1506             Joel Brobecker  <brobecker@adacore.com>
1507
1508         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1509         (dwarf2_evaluate_property): New function.
1510         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1511         * dwarf2read.c (attr_to_dynamic_prop): New function.
1512         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1513         attribute.
1514         * gdbtypes.c: Include dwarf2loc.h.
1515         (is_dynamic_type): New function.
1516         (resolve_dynamic_type): New function.
1517         (resolve_dynamic_bounds): New function.
1518         (get_type_length): New function.
1519         (check_typedef): Use get_type_length to compute type length.
1520         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1521         (TYPE_LOW_BOUND_KIND): New macro.
1522         (is_dynamic_type): New function prototype.
1523         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1524         to resolve dynamic properties of the type. Update comment.
1525         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1526
1527 2014-04-14  Richard Henderson  <rth@redhat.com>
1528
1529         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1530
1531 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
1532             Doug Evans  <xdje42@gmail.com>
1533
1534         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1535         dereference TYPE_CODE_REF values.
1536
1537 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
1538
1539         Revert the following changes due to regressions:
1540
1541         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1542         (dwarf2_evaluate_property): New function.
1543         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1544         * dwarf2read.c (attr_to_dynamic_prop): New function.
1545         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1546         attribute.
1547         * gdbtypes.c: Include dwarf2loc.h.
1548         (is_dynamic_type): New function.
1549         (resolve_dynamic_type): New function.
1550         (resolve_dynamic_bounds): New function.
1551         (get_type_length): New function.
1552         (check_typedef): Use get_type_length to compute type length.
1553         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1554         (TYPE_LOW_BOUND_KIND): New macro.
1555         (is_dynamic_type): New function prototype.
1556         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1557         to resolve dynamic properties of the type. Update comment.
1558         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1559
1560         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1561         passed to sizeof is dynamic evaluate the argument to compute the length.
1562
1563         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1564         value and retrieve the dynamic type size.
1565
1566         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1567         (ada_template_to_fixed_record_type_1): Likewise.
1568         (ada_to_fixed_type_1): Likewise.
1569         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1570         (cp_print_value): Likewise.
1571         * d-valprint.c (dynamic_array_type): Likewise.
1572         * eval.c (evaluate_subexp_with_coercion): Likewise.
1573         * findvar.c (address_of_variable): Likewise.
1574         * jv-valprint.c (java_value_print): Likewise.
1575         * valops.c (value_ind): Likewise.
1576         * value.c (coerce_ref): Likewise.
1577
1578         * c-typeprint.c (c_type_print_varspec_suffix): Added
1579         check for not yet resolved high bound. If unresolved, print
1580         "variable length" string to the console instead of random
1581         length.
1582
1583         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1584         property and store it as the high bound and flag the range accordingly.
1585         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1586         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1587         * gdbtypes.h (enum range_flags): New enum.
1588         (struct range_bounds): Add flags member.
1589
1590         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1591         points to a constant blob.
1592
1593         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1594         (evaluate_subexp_standard): Pass noside argument.
1595         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1596         if noside equals EVAL_NORMAL. If the subscript yields a vla type
1597         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1598         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1599         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1600
1601 2014-04-11  Keith Seitz  <keiths@redhat.com>
1602
1603         PR c++/16675
1604         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1605         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1606         reference types.
1607
1608 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1609
1610         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1611         (evaluate_subexp_standard): Pass noside argument.
1612         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1613         if noside equals EVAL_NORMAL. If the subscript yields a vla type
1614         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1615         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1616         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1617
1618 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1619
1620         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1621         points to a constant blob.
1622
1623 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1624
1625         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1626         property and store it as the high bound and flag the range accordingly.
1627         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1628         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1629         * gdbtypes.h (enum range_flags): New enum.
1630         (struct range_bounds): Add flags member.
1631
1632 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1633
1634         * c-typeprint.c (c_type_print_varspec_suffix): Added
1635         check for not yet resolved high bound. If unresolved, print
1636         "variable length" string to the console instead of random
1637         length.
1638
1639 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1640
1641         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1642         (ada_template_to_fixed_record_type_1): Likewise.
1643         (ada_to_fixed_type_1): Likewise.
1644         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1645         (cp_print_value): Likewise.
1646         * d-valprint.c (dynamic_array_type): Likewise.
1647         * eval.c (evaluate_subexp_with_coercion): Likewise.
1648         * findvar.c (address_of_variable): Likewise.
1649         * jv-valprint.c (java_value_print): Likewise.
1650         * valops.c (value_ind): Likewise.
1651         * value.c (coerce_ref): Likewise.
1652
1653 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1654
1655         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1656         value and retrieve the dynamic type size.
1657
1658 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1659
1660         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1661         passed to sizeof is dynamic evaluate the argument to compute the length.
1662
1663 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1664
1665         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1666         (dwarf2_evaluate_property): New function.
1667         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1668         * dwarf2read.c (attr_to_dynamic_prop): New function.
1669         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1670         attribute.
1671         * gdbtypes.c: Include dwarf2loc.h.
1672         (is_dynamic_type): New function.
1673         (resolve_dynamic_type): New function.
1674         (resolve_dynamic_bounds): New function.
1675         (get_type_length): New function.
1676         (check_typedef): Use get_type_length to compute type length.
1677         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1678         (TYPE_LOW_BOUND_KIND): New macro.
1679         (is_dynamic_type): New function prototype.
1680         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1681         to resolve dynamic properties of the type. Update comment.
1682         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1683
1684 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1685
1686         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1687         declaring high/low bounds and change uses accordingly. Call
1688         create_range_type instead of create_static_range_type.
1689         * gdbtypes.c (create_range_type): New function.
1690         (create_range_type): Convert bounds into struct bound_prop and pass
1691         them to create_range_type.
1692         * gdbtypes.h (struct bound_prop): New struct.
1693         (create_range_type): New function prototype.
1694         (struct range_bounds): Use struct bound_prop instead of LONGEST for
1695         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1696         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1697         part of the bound.
1698         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1699
1700 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1701
1702         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1703         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1704         * ada-lang.c: All uses of create_range_type updated.
1705         * coffread.c: All uses of create_range_type updated.
1706         * dwarf2read.c: All uses of create_range_type updated.
1707         * f-exp.y: All uses of create_range_type updated.
1708         * m2-valprint.c: All uses of create_range_type updated.
1709         * mdebugread.c: All uses of create_range_type updated.
1710         * stabsread.c: All uses of create_range_type updated.
1711         * valops.c: All uses of create_range_type updated.
1712         * valprint.c: All uses of create_range_type updated.
1713
1714 2014-04-10  Pedro Alves  <palves@redhat.com>
1715
1716         * breakpoint.c (single_step_breakpoints)
1717         (single_step_gdbarch): Move up in the file.
1718         (one_breakpoint_xfer_memory): New function, factored out from ...
1719         (breakpoint_xfer_memory): ... here.  Also process single-step
1720         breakpoints.
1721
1722 2014-04-09  Tristan Gingold  <gingold@adacore.com>
1723
1724         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1725         comments.
1726         (darwin_decode_exception_message): Free port only after use.
1727
1728 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
1729
1730         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1731         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1732         when setting the size of call_length.
1733
1734 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
1735
1736         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1737         dereference TYPE_CODE_REF values.
1738
1739 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
1740
1741         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1742         end of warning message.
1743
1744 2014-04-03  Doug Evans  <dje@google.com>
1745
1746         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1747         of stub_comp_unit_die, stub_comp_dir is non-NULL.
1748
1749 2014-04-02  Alan Modra  <amodra@gmail.com>
1750
1751         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1752         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
1753         (struct symbol_file_add_from_memory_args): Add size field.
1754         (find_vdso_size): New function.
1755         (add_vsyscall_page): Attempt to find vdso size.
1756
1757 2014-04-01  Doug Evans  <dje@google.com>
1758
1759         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1760
1761 2014-04-01  Tristan Gingold  <gingold@adacore.com>
1762
1763         * darwin-nat.c (darwin_encode_reply): Add prototype.
1764         (darwin_decode_exception_message): Reply to unknown inferiors.
1765         (darwin_decode_message): Handle message by id.  Ignore message
1766         to unknown inferior.
1767         (darwin_wait): Discard unknown messages, add debug trace.
1768
1769 2014-03-31  Doug Evans  <dje@google.com>
1770
1771         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1772         comp_dir_string.
1773
1774 2014-03-31  Doug Evans  <dje@google.com>
1775
1776         New option "set print symbol-loading".
1777         * NEWS: Mention it.
1778         * solib.c (solib_read_symbols): Only print symbol loading messages
1779         if requested.
1780         (solib_add): If symbol loading is in "brief" mode, notify user
1781         symbols are being loaded.
1782         (reload_shared_libraries_1): Ditto.
1783         * symfile.c (print_symbol_loading_off): New static global.
1784         (print_symbol_loading_brief): New static global.
1785         (print_symbol_loading_full): New static global.
1786         (print_symbol_loading_enums): New static global.
1787         (print_symbol_loading): New static global.
1788         (print_symbol_loading_p): New function.
1789         (symbol_file_add_with_addrs): Only print symbol loading messages
1790         if requested.
1791         (_initialize_symfile): Register "print symbol-loading" set/show
1792         command.
1793         * symfile.h (print_symbol_loading_p): Declare.
1794
1795 2014-03-30  Doug Evans  <xdje42@gmail.com>
1796
1797         * infrun.c (set_last_target_status): New function.
1798         (handle_inferior_event): Call it.
1799
1800 2014-03-30  Doug Evans  <xdje42@gmail.com>
1801
1802         * inferior.h (enum stop_kind): Improve comment.
1803
1804 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
1805
1806         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1807         a reference, strip the reference layer before calling
1808         the lang_ops value_has_mutated callback.
1809
1810 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
1811
1812         Remove some globals from our parser.
1813         * language.c (unk_lang_parser): Add "struct parser_state"
1814         argument.
1815         * language.h (struct language_defn) <la_parser>: Likewise.
1816         * parse.c (expout, expout_size, expout_ptr): Remove variables.
1817         (initialize_expout): Add "struct parser_state" argument.
1818         Rewrite function to use the parser state.
1819         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1820         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1821         write_exp_elt_longcst, write_exp_elt_dblcst,
1822         write_exp_elt_decfloatcst, write_exp_elt_type,
1823         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1824         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1825         write_dollar_variable): Likewise.
1826         (parse_exp_in_context_1): Use parser state.
1827         (insert_type_address_space): Add "struct parser_state" argument.
1828         Use parser state.
1829         (increase_expout_size): New function.
1830         * parser-defs.h: Forward declare "struct language_defn" and
1831         "struct parser_state".
1832         (expout, expout_size, expout_ptr): Remove extern declarations.
1833         (parse_gdbarch, parse_language): Rewrite macro declarations to
1834         accept the parser state.
1835         (struct parser_state): New struct.
1836         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1837         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1838         write_exp_elt_decfloatcst, write_exp_elt_type,
1839         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1840         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1841         write_exp_msymbol, write_dollar_variable,
1842         mark_struct_expression, insert_type_address_space): Add "struct
1843         parser_state" argument.
1844         (increase_expout_size): New function.
1845         * utils.c (do_clear_parser_state): New function.
1846         (make_cleanup_clear_parser_state): Likewise.
1847         * utils.h (make_cleanup_clear_parser_state): New function
1848         prototype.
1849         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1850         Update calls to write_exp* in order to pass the parser state.
1851         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1852         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1853         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1854         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1855         * stap-probe.c (stap_parse_register_operand): Likewise.
1856         (stap_parse_single_operand): Likewise.
1857         (stap_parse_argument_1): Likewise.
1858         (stap_parse_argument): Use parser state.
1859         * stap-probe.h: Include "parser-defs.h".
1860         (struct stap_parse_info) <pstate>: New field.
1861         * c-exp.y (parse_type): Rewrite to use parser state.
1862         (yyparse): Redefine to c_parse_internal.
1863         (pstate): New global variable.
1864         (parse_number): Add "struct parser_state" argument.
1865         (write_destructor_name): Likewise.
1866         (type_exp): Update calls to write_exp* and similars in order to
1867         use parser state.
1868         (exp1, exp, variable, qualified_name, space_identifier,
1869         typename, typebase): Likewise.
1870         (write_destructor_name, parse_number, lex_one_token,
1871         classify_name, classify_inner_name, c_parse): Add "struct
1872         parser_state" argument.  Update function to use parser state.
1873         * c-lang.h: Forward declare "struct parser_state".
1874         (c_parse): Add "struct parser_state" argument.
1875         * ada-exp.y (parse_type): Rewrite macro to use parser state.
1876         (yyparse): Redefine macro to ada_parse_internal.
1877         (pstate): New variable.
1878         (write_int, write_object_renaming, write_var_or_type,
1879         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1880         type_int, type_long, type_long_long, type_float, type_double,
1881         type_long_double, type_char, type_boolean, type_system_address):
1882         Add "struct parser_state" argument.
1883         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1884         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1885         var_or_type, aggregate, aggregate_component_list,
1886         positional_list, others, component_group,
1887         component_associations): Update calls to write_exp* and similar
1888         functions in order to use parser state.
1889         (ada_parse, write_var_from_sym, write_int,
1890         write_exp_op_with_string, write_object_renaming,
1891         find_primitive_type, write_selectors, write_ambiguous_var,
1892         write_var_or_type, write_name_assoc, type_int, type_long,
1893         type_long_long, type_float, type_double, type_long_double,
1894         type_char, type_boolean, type_system_address): Add "struct
1895         parser_state" argument.  Adjust function to use parser state.
1896         * ada-lang.c (parse): Likewise.
1897         * ada-lang.h: Forward declare "struct parser_state".
1898         (ada_parse): Add "struct parser_state" argument.
1899         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
1900         calls to both functions.
1901         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1902         parser state.
1903         (yyparse): Redefine macro to f_parse_internal.
1904         (pstate): New variable.
1905         (parse_number): Add "struct parser_state" argument.
1906         (type_exp, exp, subrange, typebase): Update calls to write_exp*
1907         and similars in order to use parser state.
1908         (parse_number): Adjust code to use parser state.
1909         (yylex): Likewise.
1910         (f_parse): New function.
1911         * f-lang.h: Forward declare "struct parser_state".
1912         (f_parse): Add "struct parser_state" argument.
1913         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1914         parser state.
1915         (yyparse): Redefine macro for java_parse_internal.
1916         (pstate): New variable.
1917         (push_expression_name, push_expression_name, insert_exp): Add
1918         "struct parser_state" argument.
1919         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1920         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1921         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1922         PostIncrementExpression, PostDecrementExpression,
1923         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1924         UnaryExpressionNotPlusMinus, CastExpression,
1925         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1926         RelationalExpression, EqualityExpression, AndExpression,
1927         ExclusiveOrExpression, InclusiveOrExpression,
1928         ConditionalAndExpression, ConditionalOrExpression,
1929         ConditionalExpression, Assignment, LeftHandSide): Update
1930         calls to write_exp* and similars in order to use parser state.
1931         (parse_number): Ajust code to use parser state.
1932         (yylex): Likewise.
1933         (java_parse): New function.
1934         (push_variable): Add "struct parser_state" argument.  Adjust
1935         code to user parser state.
1936         (push_fieldnames, push_qualified_expression_name,
1937         push_expression_name, insert_exp): Likewise.
1938         * jv-lang.h: Forward declare "struct parser_state".
1939         (java_parse): Add "struct parser_state" argument.
1940         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1941         parser state.
1942         (yyparse): Redefine macro to m2_parse_internal.
1943         (pstate): New variable.
1944         (type_exp, exp, fblock, variable, type): Update calls to
1945         write_exp* and similars to use parser state.
1946         (yylex): Likewise.
1947         (m2_parse): New function.
1948         * m2-lang.h: Forward declare "struct parser_state".
1949         (m2_parse): Add "struct parser_state" argument.
1950         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1951         * objc-lang.h: Forward declare "struct parser_state".
1952         (end_msglist): Add "struct parser_state" argument.
1953         * p-exp.y (parse_type): Rewrite macro to use parser state.
1954         (yyparse): Redefine macro to pascal_parse_internal.
1955         (pstate): New variable.
1956         (parse_number): Add "struct parser_state" argument.
1957         (type_exp, exp1, exp, qualified_name, variable): Update calls to
1958         write_exp* and similars in order to use parser state.
1959         (parse_number, yylex): Adjust code to use parser state.
1960         (pascal_parse): New function.
1961         * p-lang.h: Forward declare "struct parser_state".
1962         (pascal_parse): Add "struct parser_state" argument.
1963         * go-exp.y (parse_type): Rewrite macro to use parser state.
1964         (yyparse): Redefine macro to go_parse_internal.
1965         (pstate): New variable.
1966         (parse_number): Add "struct parser_state" argument.
1967         (type_exp, exp1, exp, variable, type): Update calls to
1968         write_exp* and similars in order to use parser state.
1969         (parse_number, lex_one_token, classify_name, yylex): Adjust code
1970         to use parser state.
1971         (go_parse): Likewise.
1972         * go-lang.h: Forward declare "struct parser_state".
1973         (go_parse): Add "struct parser_state" argument.
1974
1975 2014-03-27  Doug Evans  <dje@google.com>
1976
1977         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
1978
1979 2014-03-27  Doug Evans  <dje@google.com>
1980
1981         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1982         Remove argument abbrev_section.  All callers updated.
1983
1984 2014-03-27  Doug Evans  <dje@google.com>
1985
1986         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1987         addr_base, ranges_base.
1988
1989 2014-03-26  Keith Seitz  <keiths@redhat.com>
1990
1991         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1992         types, not VAR_DOMAIN.
1993
1994 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
1995
1996         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1997         "ra" registers.
1998         * features/nios2-linux.c: Regenerated.
1999         * features/nios2.c: Regenerated.
2000
2001 2014-03-25  Pedro Alves  <palves@redhat.com>
2002
2003         * cli/cli-script.c (script_from_file): Force the interpreter to
2004         sync mode.
2005
2006 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
2007
2008         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2009         small stack allocation.
2010
2011 2014-03-24  Tristan Gingold  <gingold@adacore.com>
2012
2013         * darwin-nat.c (exc_server): Remove unused prototype.
2014         (darwin_dump_message): Correctly display data on x86_64.
2015         (darwin_encode_reply): Fix style.
2016         Add comments and fix indentation.
2017
2018 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
2019
2020         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2021
2022 2014-03-22  Doug Evans  <xdje42@gmail.com>
2023
2024         * infcmd.c: Whitespace fixes.
2025         (interrupt_command): Merge two function comments into one.
2026
2027 2014-03-22  Doug Evans  <xdje42@gmail.com>
2028
2029         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2030         All uses updated.
2031
2032 2014-03-22  Yao Qi  <yao@codesourcery.com>
2033
2034         * remote.c (target_read_live_memory): Remove.
2035         (memory_xfer_live_readonly_partial): Rename it to
2036         remote_xfer_live_readonly_partial.  Remove argument 'object'.
2037         All callers updated.  Call remote_read_bytes_1
2038         instead of target_read_live_memory.
2039         * tracepoint.c (set_traceframe_number): Remove.
2040         (make_cleanup_restore_traceframe_number): Likewise .
2041         * tracepoint.h (set_traceframe_number): Remove declaration.
2042         (make_cleanup_restore_traceframe_number): Likewise.
2043
2044 2014-03-22  Yao Qi  <yao@codesourcery.com>
2045
2046         * remote.c (remote_read_bytes): Move code on reading from the
2047         remote stub to ...
2048         (remote_read_bytes_1): ... here.  New function.
2049
2050 2014-03-22  Yao Qi  <yao@codesourcery.com>
2051
2052         * ctf.c (ctf_xfer_partial): Check the return value of
2053         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2054         return TARGET_XFER_UNAVAILABLE.
2055         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2056         * target.c (target_read_live_memory): Move it to remote.c.
2057         (memory_xfer_live_readonly_partial): Likewise.
2058         (memory_xfer_partial_1): Move some code to remote_read_bytes.
2059         * remote.c (target_read_live_memory): Moved from target.c.
2060         (memory_xfer_live_readonly_partial): Likewise.
2061         (remote_read_bytes): Factored out from
2062         memory_xfer_partial_1.
2063
2064 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
2065
2066         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2067         NULL pointer.
2068
2069 2014-03-21  Pedro Alves  <palves@redhat.com>
2070
2071         * infrun.c (normal_stop): Extend comment.
2072
2073 2014-03-21  Hui Zhu  <hui@codesourcery.com>
2074             Pedro Alves  <palves@redhat.com>
2075
2076         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2077         static buffer.
2078         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2079         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2080         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2081
2082 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
2083
2084         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2085         `z' formatted output modifier.
2086
2087 2014-03-20  Tom Tromey  <tromey@redhat.com>
2088             Sergio Durigan Junior  <sergiodj@redhat.com>
2089
2090         * probe.c (parse_probes): Turn assert into an ordinary error.
2091         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2092         exceptions when parsing probes.  Rearrange the code for clarity.
2093
2094 2014-03-20  Tom Tromey  <tromey@redhat.com>
2095
2096         PR gdb/14135
2097         * top.c (execute_command): Only dispatch events if the command
2098         started the target.
2099
2100 2014-03-20  Tom Tromey  <tromey@redhat.com>
2101
2102         PR cli/15718
2103         * infcall.c: Include event-top.h.
2104         (run_inferior_call): Call async_disable_stdin if needed.
2105
2106 2014-03-20  Pedro Alves  <palves@redhat.com>
2107
2108         * infrun.c (prepare_to_proceed): Delete.
2109         (thread_still_needs_step_over): New function.
2110         (find_thread_needs_step_over): New function.
2111         (proceed): If the current thread needs a step-over, set its
2112         steping_over_breakpoint flag.  Adjust to use
2113         find_thread_needs_step_over instead of prepare_to_proceed.
2114         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2115         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2116         breakpoint.
2117         (switch_back_to_stepped_thread): Step over breakpoints of all
2118         threads not the stepping thread, before switching back to the
2119         stepping thread.
2120
2121 2014-03-20  Pedro Alves  <palves@redhat.com>
2122
2123         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2124         extern.
2125         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2126         * infrun.c (saved_singlestep_ptid)
2127         (stepping_past_singlestep_breakpoint): Delete.
2128         (resume): Remove stepping_past_singlestep_breakpoint handling.
2129         (proceed): Store the prev_pc of the stepping thread too.
2130         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
2131         singlestep_pc.
2132         (enum infwait_states): Delete infwait_thread_hop_state.
2133         (struct execution_control_state) <hit_singlestep_breakpoint>: New
2134         field.
2135         (handle_inferior_event): Adjust.
2136         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2137         handling and the thread-hop code.  Before removing single-step
2138         breakpoints, check whether the thread hit a single-step breakpoint
2139         of another thread.  If it did, the trap is not a random signal.
2140         (switch_back_to_stepped_thread): If the event thread hit a
2141         single-step breakpoint, unblock it before switching to the
2142         stepping thread.  Handle the case of the stepped thread having
2143         advanced already.
2144         (keep_going): Handle the case of the current thread moving past a
2145         single-step breakpoint.
2146
2147 2014-03-20  Pedro Alves  <palves@redhat.com>
2148
2149         PR breakpoints/7143
2150         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2151         are being stepped over.
2152         (breakpoint_address_match): Make extern.
2153         * breakpoint.h (breakpoint_address_match): New declaration.
2154         * inferior.h (stepping_past_instruction_at): New declaration.
2155         * infrun.c (struct step_over_info): New type.
2156         (step_over_info): New global.
2157         (set_step_over_info, clear_step_over_info)
2158         (stepping_past_instruction_at): New functions.
2159         (handle_inferior_event): Clear the step-over info when
2160         trap_expected is cleared.
2161         (resume): Remove now stale comment.
2162         (clear_proceed_status): Clear step-over info.
2163         (proceed): Adjust step-over handling to set or clear the step-over
2164         info instead of removing all breakpoints.
2165         (handle_signal_stop): When setting up a thread-hop, don't remove
2166         breakpoints here.
2167         (stop_stepping): Clear step-over info.
2168         (keep_going): Adjust step-over handling to set or clear step-over
2169         info and then always inserting breakpoints, instead of removing
2170         all breakpoints when stepping over one.
2171
2172 2014-03-20  Pedro Alves  <palves@redhat.com>
2173
2174         * infrun.c (previous_inferior_ptid): Adjust comment.
2175         (deferred_step_ptid): Delete.
2176         (infrun_thread_ptid_changed, prepare_to_proceed)
2177         (init_wait_for_inferior): Adjust.
2178         (handle_signal_stop): Delete deferred_step_ptid handling.
2179
2180 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
2181
2182         PR gdb/15358
2183         * defs.h (sync_quit_force_run): New declaration.
2184         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2185         * event-top.c (async_sigterm_handler): New declaration.
2186         (async_sigterm_token): New variable.
2187         (async_init_signals): Create also async_sigterm_token.
2188         (async_sigterm_handler): New function.
2189         (sync_quit_force_run): New variable.
2190         (handle_sigterm): Replace quit_force call by other calls.
2191         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2192
2193 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
2194
2195         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2196         offset into SPE pseudo registers.
2197
2198 2014-03-18  Pedro Alves  <palves@redhat.com>
2199
2200         PR gdb/13860
2201         * inferior.h (print_stop_event): Declare.
2202         * infrun.c (print_stop_event): New, factored out from ...
2203         (normal_stop): ... this.
2204         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2205         of bpstat_print/print_stack_frame.
2206
2207 2014-03-17  Tom Tromey  <tromey@redhat.com>
2208
2209         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2210
2211 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
2212
2213         * ada-lang.c (decode_constrained_packed_array): Perform a
2214         minimal coercion for reference with coerce_ref instead of
2215         ada_coerce_ref.
2216
2217 2014-03-17  Tristan Gingold  <gingold@adacore.com>
2218
2219         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2220         (darwin_solib_create_inferior_hook): Emit a warning if version
2221         is unhandled.
2222
2223 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
2224
2225         * python/py-value.c (get_field_flag): Cast flag_name argument to
2226         PyObject_GetAttrString to support Python 2.4.
2227
2228 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2229
2230         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2231         (Global Maintainers): Remove Jan Kratochvil.
2232
2233 2014-03-14  Pedro Alves  <palves@redhat.com>
2234
2235         * inferior.h (terminal_ours_for_output): Rename to ...
2236         (child_terminal_ours_for_output): ... this.
2237         (terminal_save_ours): Rename to ...
2238         (child_terminal_save_ours): ... this.
2239         (terminal_ours): Rename to ...
2240         (child_terminal_ours): ... this.
2241         (terminal_inferior): Rename to ...
2242         (child_terminal_inferior): ... this.
2243         (terminal_init_inferior): Rename to ...
2244         (child_terminal_init_inferior): ... this.
2245         (terminal_init_inferior_with_pgrp): Rename to ...
2246         (child_terminal_init_inferior_with_pgrp): ... this.
2247         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2248         (child_terminal_init_with_pgrp): ... this.
2249         (terminal_save_ours): Rename to ...
2250         (child_terminal_save_ours): ... this.
2251         (terminal_init_inferior): Rename to ...
2252         (child_terminal_init): ... this.  Adjust.
2253         (terminal_inferior): Rename to ...
2254         (child_terminal_inferior): ... this.
2255         (terminal_ours_for_output): Rename to ...
2256         (child_terminal_ours_for_output): ... this.  Adjust.
2257         (terminal_ours): Rename to ...
2258         (child_terminal_ours): ... this.
2259         (terminal_ours_1): Rename to ...
2260         (child_terminal_ours_1): ... this.  Adjust.
2261         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2262         * windows-nat.c (do_initial_windows_stuff): Adjust.
2263         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2264         (gnu_terminal_init): ... this.  Adjust.
2265         (gnu_target): Adjust.
2266         * inf-child.c (inf_child_target): Adjust.
2267
2268 2014-03-13  Doug Evans  <xdje42@gmail.com>
2269
2270         PR guile/16612
2271         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2272         new eq?-hashtab.
2273
2274 2014-03-13  Doug Evans  <xdje42@gmail.com>
2275
2276         * value.c (record_latest_value): Call release_value_or_incref
2277         instead of release_value.
2278
2279 2014-03-13  Pedro Alves  <palves@redhat.com>
2280
2281         * procfs.c (procfs_target): Don't override to_shortname,
2282         to_longname or to_doc.
2283
2284 2014-03-13  Pedro Alves  <palves@redhat.com>
2285
2286         * inf-child.c (inf_child_open, inf_child_target): Don't mention
2287         Unix in user visible strings.
2288
2289 2014-03-12  Stan Shebs  <stan@codesourcery.com>
2290
2291         * gdbtypes.h: Annotate comments for Doxygen, add a page
2292         block comment with some general info.
2293
2294 2014-03-12  Pedro Alves  <palves@redhat.com>
2295
2296         * infcmd.c (prepare_execution_command): New function, factored out
2297         from several execution commands.
2298         (run_command_1, continue_command, step_1, jump_command)
2299         (signal_command, until_command, advance_command, finish_command)
2300         (attach_command): Use prepare_execution_command.
2301
2302 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
2303
2304         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2305         (MAX_BPTS): Define.
2306         (MAX_WPTS): Define.
2307         (struct arm_linux_thread_points): Removed.
2308         (struct arm_linux_process_info): New.
2309         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2310         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2311         (arm_linux_find_breakpoints_by_tid): Removed.
2312         (struct arch_lwp_info): New.
2313         (arm_linux_find_process_pid): New functions.
2314         (arm_linux_add_process): New functions.
2315         (arm_linux_process_info_get): New functions.
2316         (arm_linux_forget_process): New function.
2317         (arm_linux_get_debug_reg_state): New function.
2318         (struct update_registers_data): New.
2319         (update_registers_callback): New function.
2320         (arm_linux_insert_hw_breakpoint1): Updated.
2321         (arm_linux_remove_hw_breakpoint1): Updated.
2322         (arm_linux_insert_hw_breakpoint): Updated.
2323         (arm_linux_remove_hw_breakpoint): Updated.
2324         (arm_linux_insert_watchpoint): Updated.
2325         (arm_linux_remove_watchpoint): Updated.
2326         (arm_linux_new_thread): Updated.
2327         (arm_linux_prepare_to_resume): New function.
2328         (arm_linux_new_fork): New function.
2329         (_initialize_arm_linux_nat): Updated.
2330
2331 2014-03-12  Pedro Alves  <palves@redhat.com>
2332
2333         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2334
2335 2014-03-12  Tom Tromey  <tromey@redhat.com>
2336
2337         * inf-child.c (return_zero): New function.
2338         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2339         * aix-thread.c (aix_thread_inferior_created): New function.
2340         (aix_thread_attach): Remove.
2341         (init_aix_thread_ops): Don't set to_attach.
2342         (_initialize_aix_thread): Register inferior_created observer.
2343         * corelow.c (init_core_ops): Don't set to_attach or
2344         to_create_inferior.
2345         * exec.c (init_exec_ops): Don't set to_attach or
2346         to_create_inferior.
2347         * infcmd.c (run_command_1): Use find_run_target.  Make direct
2348         target calls.
2349         (attach_command): Use find_attach_target.  Make direct target
2350         calls.
2351         * record-btrace.c (init_record_btrace_ops): Don't set
2352         to_create_inferior.
2353         * record-full.c (record_full_can_async_p, record_full_is_async_p):
2354         Remove.
2355         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
2356         set to_create_inferior.
2357         * target.c (complete_target_initialization): Add assertion.
2358         (target_create_inferior): Remove.
2359         (find_default_attach, find_default_create_inferior): Remove.
2360         (find_attach_target, find_run_target): New functions.
2361         (find_default_is_async_p, find_default_can_async_p)
2362         (target_supports_non_stop, target_attach): Remove.
2363         (init_dummy_target): Don't set to_create_inferior or
2364         to_supports_non_stop.
2365         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
2366         TARGET_DEFAULT_FUNC.
2367         <to_create_inferior>: Add comment.
2368         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2369         TARGET_DEFAULT_RETURN.
2370         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2371         (find_attach_target, find_run_target): Declare.
2372         (target_create_inferior): Remove.
2373         (target_has_execution_1): Update comment.
2374         (target_supports_non_stop): Remove.
2375         * target-delegates.c: Rebuild.
2376
2377 2014-03-12  Pedro Alves  <palves@redhat.com>
2378
2379         * inf-child.h: Update comment to not mention Unix.
2380
2381 2014-03-12  Pedro Alves  <palves@redhat.com>
2382
2383         * inf-child.c: Update top comment to not mention Unix.  Add
2384         generic comment describing how this target is meant to be used.
2385         (inf_child_post_attach, inf_child_post_startup_inferior)
2386         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2387         Unix in comment.
2388
2389 2014-03-12  Pedro Alves  <palves@redhat.com>
2390
2391         * nto-procfs.c: Include inf-child.h.
2392         (procfs_ops): Delete global.
2393         (procfs_can_run): Delete method.
2394         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2395         target pointer instead of referencing procfs_ops.
2396         (procfs_prepare_to_store): Delete.
2397         (init_procfs_ops): Delete function.
2398         (procfs_target): New function, based on init_procfs_ops, but
2399         inherit inf_child_target.
2400         (_initialize_procfs): Use procfs_target.
2401
2402 2014-03-12  Pedro Alves  <palves@redhat.com>
2403
2404         * windows-nat.c: Include inf-child.h.
2405         (windows_ops): Delete global.
2406         (windows_open, windows_prepare_to_store, windows_can_run): Delete
2407         methods.
2408         (init_windows_ops): Delete function.
2409         (windows_target): New function, based on init_windows_ops, but
2410         inherit inf_child_target.
2411         (_initialize_windows_nat): Use windows_target.  Install x86
2412         specific target methods here.
2413
2414 2014-03-10  Doug Evans  <xdje42@gmail.com>
2415
2416         * guile/guile.c (call_initialize_gdb_module): New function.
2417         (initialize_guile): Replace call to scm_init_guile with call to
2418         scm_with_guile.
2419
2420 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
2421
2422         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2423         in call to TYPE_CODE macro.
2424
2425 2014-03-10  Jerome Guitton  <guitton@adacore.com>
2426
2427         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2428         Resolve tagged types to full view.
2429
2430 2014-03-10  Hui Zhu  <hui@codesourcery.com>
2431
2432         * target.h (target_insert_breakpoint): Remove "hardware" from its
2433         comments.
2434
2435 2014-03-07  Doug Evans  <dje@google.com>
2436
2437         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2438
2439 2014-03-07  Doug Evans  <dje@google.com>
2440
2441         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2442         Remove unused local comp_dir_attr.  Assert exactly one of
2443         stub_comp_unit_die, stub_comp_dir is non-NULL.
2444
2445 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
2446
2447         * target.h (complete_target_initialization, add_target):
2448         Add comment.
2449
2450 2014-03-07  Pedro Alves  <palves@redhat.com>
2451
2452         * go32-nat.c: Include inf-child.h.
2453         (go32_ops): Delete global.
2454         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2455         Delete methods.
2456         (go32_create_inferior): Push the passed in target pointer instead
2457         of referencing go32_ops.
2458         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
2459         (go32_target): New function, based on init_go32_ops, but inherit
2460         inf_child_target.
2461         (_initialize_go32_nat): Use go32_target.  Move parts of
2462         init_go32_ops here.
2463
2464 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
2465
2466         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2467         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2468         SYMBOL_VALUE_ADDRESS.
2469         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2470
2471 2014-03-06  Yao Qi  <yao@codesourcery.com>
2472
2473         * breakpoint.c (get_tracepoint_by_number): Remove argument
2474         optional_p.  All callers updated.  Adjust comments.  Update
2475         output message.
2476         * breakpoint.h (get_tracepoint_by_number): Update declaration.
2477
2478 2014-03-06  Yao Qi  <yao@codesourcery.com>
2479
2480         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
2481         early if get_number returns zero.  Use 'p' instead of 'args'.
2482
2483 2014-03-06  Yao Qi  <yao@codesourcery.com>
2484
2485         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2486         message.
2487
2488 2014-03-06  Yao Qi  <yao@codesourcery.com>
2489
2490         PR breakpoints/16508
2491         * tracepoint.c (check_trace_running): New function.
2492         (trace_find_command): Move code to check_trace_running and
2493         call check_trace_running.
2494         (trace_find_pc_command): Likewise.
2495         (trace_find_tracepoint_command): Likewise.
2496         (trace_find_line_command): Likewise.
2497         (trace_find_range_command): Likewise.
2498         * tracepoint.h (check_trace_running): Likewise.
2499         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2500
2501 2014-03-06  Yao Qi  <yao@codesourcery.com>
2502
2503         * target.h (struct target_ops) <to_traceframe_info>: Use
2504         TARGET_DEFAULT_NORETURN (tcomplain ()).
2505         * target-delegates.c: Regenerated.
2506
2507 2014-03-05  Pedro Alves  <palves@redhat.com>
2508
2509         PR gdb/16575
2510         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
2511         void.  Update comment.
2512         (dcache_xfer_memory): Delete.
2513         (dcache_read_memory_partial): New, based on the read bits of
2514         dcache_xfer_memory.
2515         (dcache_update): Add status parameter.  Use ULONGEST for len, and
2516         adjust.  Discard cache lines if the reason for the update was
2517         error.
2518         * dcache.h (dcache_xfer_memory): Delete declaration.
2519         (dcache_read_memory_partial): New declaration.
2520         (dcache_update): Update prototype.
2521         * target.c (raw_memory_xfer_partial): Update the dcache here.
2522         (memory_xfer_partial_1): Don't handle dcache writes here.
2523
2524 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
2525
2526         * remote-sim.c (gdbsim_load): Add const to prog.
2527
2528 2014-03-03  Tom Tromey  <tromey@redhat.com>
2529
2530         * elfread.c (probe_key): Change to bfd_data.
2531         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2532         now per-BFD, not per-objfile.
2533         * stap-probe.c (stap_probe_destroy): Update comment.
2534         (handle_stap_probe): Allocate on the per-BFD obstack.
2535
2536 2014-03-03  Tom Tromey  <tromey@redhat.com>
2537
2538         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2539         * breakpoint.c (create_longjmp_master_breakpoint): Use
2540         get_probe_address.
2541         (add_location_to_breakpoint, bkpt_probe_insert_location)
2542         (bkpt_probe_remove_location): Update.
2543         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2544         * elfread.c (elf_symfile_relocate_probe): Remove.
2545         (elf_probe_fns): Update.
2546         (insert_exception_resume_breakpoint): Change type of "probe"
2547         parameter to bound_probe.
2548         (check_exception_resume): Update.
2549         * objfiles.c (objfile_relocate1): Don't relocate probes.
2550         * probe.c (bound_probe_s): New typedef.
2551         (parse_probes): Use get_probe_address.  Set sal's objfile.
2552         (find_probe_by_pc): Return a bound_probe.
2553         (collect_probes): Return a VEC(bound_probe_s).
2554         (compare_probes): Update.
2555         (gen_ui_out_table_header_info): Change type of "probes"
2556         parameter.  Update.
2557         (info_probes_for_ops): Update.
2558         (get_probe_address): New function.
2559         (probe_safe_evaluate_at_pc): Update.
2560         * probe.h (struct probe_ops) <get_probe_address>: New field.
2561         <set_semaphore, clear_semaphore>: Add objfile parameter.
2562         (struct probe) <objfile>: Remove field.
2563         <arch>: New field.
2564         <address>: Update comment.
2565         (struct bound_probe): New.
2566         (find_probe_by_pc): Return a bound_probe.
2567         (get_probe_address): Declare.
2568         * solib-svr4.c (struct probe_and_action) <address>: New field.
2569         (hash_probe_and_action, equal_probe_and_action): Update.
2570         (register_solib_event_probe): Add address parameter.
2571         (solib_event_probe_at): Update.
2572         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
2573         get_probe_address.
2574         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2575         (stap_get_probe_address): New function.
2576         (stap_can_evaluate_probe_arguments, compute_probe_arg)
2577         (compile_probe_arg): Update.
2578         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2579         address.
2580         (handle_stap_probe): Don't relocate the probe.
2581         (stap_relocate): Remove.
2582         (stap_gen_info_probes_table_values): Update.
2583         (stap_probe_ops): Remove stap_relocate.
2584         * symfile-debug.c (debug_sym_relocate_probe): Remove.
2585         (debug_sym_probe_fns): Update.
2586         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2587         * symtab.c (init_sal): Use memset.
2588         * symtab.h (struct symtab_and_line) <objfile>: New field.
2589         * tracepoint.c (start_tracing, stop_tracing): Update.
2590
2591 2014-03-03  Tom Tromey  <tromey@redhat.com>
2592
2593         * probe.h (parse_probes, find_probe_by_pc)
2594         (find_probes_in_objfile): Fix comments.
2595
2596 2014-03-02  Doug Evans  <xdje42@gmail.com>
2597
2598         * infrun.c (handle_signal_stop): Replace test for
2599         TARGET_WAITKIND_STOPPED with an assert.
2600
2601 2014-03-02  Doug Evans  <xdje42@gmail.com>
2602
2603         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2604
2605 2014-03-02  Doug Evans  <xdje42@gmail.com>
2606
2607         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2608
2609 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2610
2611         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2612
2613 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2614
2615         * i386obsd-nat.c: Include "obsd-nat.h".
2616         (_initialize_i386obsd_nat): Call obsd_add_target instead of
2617         add_target.
2618         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2619
2620 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2621
2622         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2623
2624 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2625
2626         * mips64obsd-nat.c: Include "obsd-nath".
2627         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2628         add_target
2629         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2630
2631 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2632
2633         * amd64obsd-nat.c: Include "obsd-nat,h.
2634         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2635         add_target.
2636         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2637
2638 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
2639
2640         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2641         (find_overload_match): Update call to find_oload_champ.
2642         (find_oload_champ_namespace_loop): Likewise
2643
2644 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
2645
2646         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2647
2648         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2649         * config/sparc/obsd64.mh: New file.
2650         * sparc64obsd-nat.c: New file.
2651
2652         * obsd-nat.h: New file.
2653         * obsd-nat.c: New file.
2654         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2655         (ALLDEPFILES): Add obsd-nat.c.
2656
2657 2014-02-28  Tom Tromey  <tromey@redhat.com>
2658
2659         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
2660         * cli-out.h (cli_ui_out_impl): Now const.
2661         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
2662         * ui-out.c (struct ui_out) <impl>: Now const.
2663         (default_ui_out_impl): Now const.
2664         (ui_out_new): Make 'impl' parameter const.
2665         * ui-out.h (ui_out_new): Update.
2666
2667 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
2668
2669         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2670
2671 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
2672
2673         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2674
2675 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2676
2677         Additional PR 8882 fix.
2678         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2679
2680 2014-02-27  Pedro Alves  <palves@redhat.com>
2681
2682         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2683         isn't set.
2684
2685 2014-02-27  Pedro Alves  <palves@redhat.com>
2686
2687         PR 12702
2688         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2689         * nat/linux-waitpid.c: Include string.h.
2690         (status_to_str): Moved here and made extern.
2691         * nat/linux-waitpid.h (status_to_str): New declaration.
2692
2693 2014-02-27  Hui Zhu  <hui@codesourcery.com>
2694
2695         PR 12702
2696         * infrun.c (ptid_match): Move ...
2697         * common/ptid.c (ptid_match): ... here.
2698         * inferior.h (ptid_match): Move ...
2699         * common/ptid.h (ptid_match): ... here.
2700
2701 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
2702
2703         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2704         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2705         gdb_target_obs.
2706
2707 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
2708
2709         * obsd-tdep.c (obsd_auxv_parse): New function.
2710         (obsd_init_abi): Set auxv_parse.
2711
2712         * gdbarch.sh (auxv_parse): New.
2713         * gdbarch.h: Regenerated.
2714         * gdbarch.c: Regenerated.
2715         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2716
2717 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
2718
2719         * guile/scm-value.c (gdbscm_history_append_x): New function.
2720         (value_functions): Add it.
2721
2722 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
2723
2724         * dwarf2read.c (attr_value_as_address): New function.
2725         (dwarf2_find_base_address, read_call_site_scope): Use
2726         attr_value_as_address in place of DW_ADDR.
2727         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2728         the low and high addresses.  Slight rework of the handling
2729         of the high pc being a constant form, and limit it to
2730         DWARF verson 4 or higher.
2731         (dwarf2_record_block_ranges): Likewise.
2732         (read_partial_die): Likewise.
2733         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2734
2735 2014-02-26  Tom Tromey  <tromey@redhat.com>
2736
2737         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2738
2739 2014-02-26  Tom Tromey  <tromey@redhat.com>
2740
2741         * elfread.c (elf_read_minimal_symbols): Return early if
2742         minimal symbols have already been read.  Add "ei" parameter.
2743         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2744         * minsyms.c (prim_record_minimal_symbol_full): Update.
2745         * objfiles.h (struct objstats) <n_minsyms>: Move...
2746         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2747         * symmisc.c (print_objfile_statistics): Update.
2748
2749 2014-02-26  Tom Tromey  <tromey@redhat.com>
2750
2751         * elfread.c (elf_read_minimal_symbols): New function, from
2752         elf_symfile_read.
2753         (elf_symfile_read): Call it.
2754
2755 2014-02-26  Tom Tromey  <tromey@redhat.com>
2756
2757         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2758         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2759         (lookup_minimal_symbol_solib_trampoline)
2760         (lookup_minimal_symbol_by_pc_section_1)
2761         (lookup_minimal_symbol_and_objfile): Update.
2762         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2763         Don't allocate a minimal symbol if minsyms have already been read.
2764         (build_minimal_symbol_hash_tables): Update.
2765         (install_minimal_symbols): Do nothing if minsyms already read.
2766         Use the per-BFD obstack.
2767         (terminate_minimal_symbol_table): Use the per-BFD obstack.
2768         * objfiles.c (allocate_objfile): Call
2769         terminate_minimal_symbol_table later.
2770         (have_minimal_symbols): Update.
2771         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2772         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2773         Move from struct objfile.
2774         <minsyms_read>: New field.
2775         (struct objfile) <msymbols, minimal_symbol_count,
2776         msymbol_hash, msymbol_demangled_hash>: Move.
2777         (ALL_OBJFILE_MSYMBOLS): Update.
2778         * symfile.c (read_symbols): Set minsyms_read.
2779         (reread_symbols): Update.
2780         * symmisc.c (dump_objfile, dump_msymbols): Update.
2781
2782 2014-02-26  Tom Tromey  <tromey@redhat.com>
2783
2784         * minsyms.c (msymbols_sort): Remove.
2785         * minsyms.h (msymbols_sort): Remove.
2786         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2787         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2788         * elfread.c (elf_symtab_read): Don't add section offsets.
2789         * xcoffread.c (record_minimal_symbol): Don't add section offset
2790         to minimal symbol address.
2791         * somread.c (text_offset, data_offset): Remove.
2792         (som_symtab_read): Don't add section offsets to minimal symbol
2793         addresses.
2794         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2795         Don't add section offsets to minimal symbols.
2796         * coffread.c (coff_symtab_read): Don't add section offsets
2797         to minimal symbol addresses.
2798         * machoread.c (macho_symtab_add_minsym): Don't add section offset
2799         to minimal symbol addresses.
2800         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2801         section offset to minimal symbol addresses.
2802         * mdebugread.c (parse_partial_symbols): Don't add section
2803         offset to minimal symbol addresses.
2804         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2805         offset to minimal symbol addresses.
2806
2807 2014-02-26  Tom Tromey  <tromey@redhat.com>
2808
2809         * ada-lang.c (ada_main_name): Update.
2810         (ada_add_standard_exceptions): Update.
2811         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2812         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2813         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2814         * auxv.c (ld_so_xfer_auxv): Update.
2815         * avr-tdep.c (avr_scan_prologue): Update.
2816         * ax-gdb.c (gen_var_ref): Update.
2817         * blockframe.c (get_pc_function_start)
2818         (find_pc_partial_function_gnu_ifunc): Update.
2819         * breakpoint.c (create_overlay_event_breakpoint)
2820         (create_longjmp_master_breakpoint)
2821         (create_std_terminate_master_breakpoint)
2822         (create_exception_master_breakpoint): Update.
2823         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2824         * c-valprint.c (c_val_print): Update.
2825         * coff-pe-read.c (add_pe_forwarded_sym): Update.
2826         * common/agent.c (agent_look_up_symbols): Update.
2827         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2828         * dwarf2loc.c (call_site_to_target_addr): Update.
2829         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2830         * elfread.c (elf_gnu_ifunc_record_cache)
2831         (elf_gnu_ifunc_resolve_by_got): Update.
2832         * findvar.c (default_read_var_value): Update.
2833         * frame.c (inside_main_func): Update.
2834         * frv-tdep.c (frv_frame_this_id): Update.
2835         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2836         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2837         Update.
2838         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2839         (hppa_hpux_find_dummy_bpaddr): Update.
2840         * hppa-tdep.c (hppa_symbol_address): Update.
2841         * infcmd.c (until_next_command): Update.
2842         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2843         Update.
2844         * linespec.c (minsym_found, add_minsym): Update.
2845         * linux-nat.c (get_signo): Update.
2846         * linux-thread-db.c (inferior_has_bug): Update.
2847         * m32c-tdep.c (m32c_return_value)
2848         (m32c_m16c_address_to_pointer): Update.
2849         * m32r-tdep.c (m32r_frame_this_id): Update.
2850         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2851         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2852         * maint.c (maintenance_translate_address): Update.
2853         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2854         (frob_address): New function.
2855         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2856         frob_address.  Rename parameter to "pc_in".
2857         (compare_minimal_symbols, compact_minimal_symbols): Use raw
2858         addresses.
2859         (find_solib_trampoline_target, minimal_symbol_upper_bound):
2860         Update.
2861         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2862         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2863         * objc-lang.c (find_objc_msgsend): Update.
2864         * objfiles.c (objfile_relocate1): Update.
2865         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2866         * p-valprint.c (pascal_val_print): Update.
2867         * parse.c (write_exp_msymbol): Update.
2868         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2869         (ppc_elfv2_skip_entrypoint): Update.
2870         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2871         * printcmd.c (build_address_symbolic, msym_info)
2872         (address_info): Update.
2873         * proc-service.c (ps_pglobal_lookup): Update.
2874         * psymtab.c (find_pc_sect_psymtab_closer)
2875         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2876         Change msymbol parameter to bound_minimal_symbol.
2877         * ravenscar-thread.c (get_running_thread_id): Update.
2878         * remote.c (remote_check_symbols): Update.
2879         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2880         address.
2881         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2882         * solib-dsbt.c (lm_base): Update.
2883         * solib-frv.c (lm_base, main_got): Update.
2884         * solib-irix.c (locate_base): Update.
2885         * solib-som.c (som_solib_create_inferior_hook)
2886         (link_map_start): Update.
2887         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2888         * solib-svr4.c (elf_locate_base, enable_break): Update.
2889         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2890         (flush_ea_cache): Update.
2891         * stabsread.c (define_symbol, scan_file_globals): Update.
2892         * stack.c (find_frame_funname): Update.
2893         * symfile-debug.c (debug_qf_expand_symtabs_matching)
2894         (debug_qf_find_pc_sect_symtab): Update.
2895         * symfile.c (simple_read_overlay_table)
2896         (simple_overlay_update): Update.
2897         * symfile.h (struct quick_symbol_functions)
2898         <find_pc_sect_symtab>: Change type of msymbol to
2899         bound_minimal_symbol.
2900         * symmisc.c (dump_msymbols): Update.
2901         * symtab.c (find_pc_sect_symtab_via_partial)
2902         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2903         (search_symbols, print_msymbol_info): Update.
2904         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2905         (MSYMBOL_VALUE_ADDRESS): Redefine.
2906         (BMSYMBOL_VALUE_ADDRESS): New macro.
2907         * tracepoint.c (scope_info): Update.
2908         * tui/tui-disasm.c (tui_find_disassembly_address)
2909         (tui_get_begin_asm_address): Update.
2910         * valops.c (find_function_in_inferior): Update.
2911         * value.c (value_static_field, value_fn_field): Update.
2912
2913 2014-02-26  Tom Tromey  <tromey@redhat.com>
2914
2915         * ada-lang.c (ada_update_initial_language): Update.
2916         (ada_main_name, ada_has_this_exception_support): Update.
2917         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2918         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2919         * arm-tdep.c (arm_skip_stub): Update.
2920         * auxv.c (ld_so_xfer_auxv): Update.
2921         * avr-tdep.c (avr_scan_prologue): Update.
2922         * ax-gdb.c (gen_var_ref): Update.
2923         * breakpoint.c (struct breakpoint_objfile_data)
2924         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2925         type to bound_minimal_symbol.
2926         (create_overlay_event_breakpoint)
2927         (create_longjmp_master_breakpoint)
2928         (create_std_terminate_master_breakpoint)
2929         (create_exception_master_breakpoint): Update.
2930         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2931         * c-exp.y (classify_name): Update.
2932         * coffread.c (coff_symfile_read): Update.
2933         * common/agent.c (agent_look_up_symbols): Update.
2934         * d-lang.c (d_main_name): Update.
2935         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2936         * dec-thread.c (enable_dec_thread): Update.
2937         * dwarf2loc.c (call_site_to_target_addr): Update.
2938         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2939         * eval.c (evaluate_subexp_standard): Update.
2940         * findvar.c (struct minsym_lookup_data) <result>: Change type
2941         to bound_minimal_symbol.
2942         <objfile>: Remove.
2943         (minsym_lookup_iterator_cb, default_read_var_value): Update.
2944         * frame.c (inside_main_func): Update.
2945         * frv-tdep.c (frv_frame_this_id): Update.
2946         * gcore.c (call_target_sbrk): Update.
2947         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2948         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2949         Update.
2950         * go-lang.c (go_main_name): Update.
2951         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2952         (hppa_hpux_find_import_stub_for_addr): Update.
2953         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2954         Update.  Change return type.
2955         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2956         type.
2957         * jit.c (jit_breakpoint_re_set_internal): Update.
2958         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2959         Update.
2960         * linux-nat.c (get_signo): Update.
2961         * linux-thread-db.c (inferior_has_bug): Update
2962         * m32c-tdep.c (m32c_return_value)
2963         (m32c_m16c_address_to_pointer): Update.
2964         * m32r-tdep.c (m32r_frame_this_id): Update.
2965         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2966         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2967         * minsyms.c (lookup_minimal_symbol_internal): Rename to
2968         lookup_minimal_symbol.  Change return type.
2969         (lookup_minimal_symbol): Remove.
2970         (lookup_bound_minimal_symbol): Update.
2971         (lookup_minimal_symbol_text): Change return type.
2972         (lookup_minimal_symbol_solib_trampoline): Change return type.
2973         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2974         (lookup_minimal_symbol_solib_trampoline): Change return type.
2975         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2976         * objc-lang.c (lookup_objc_class, lookup_child_selector)
2977         (value_nsstring, find_imps): Update.
2978         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2979         * p-lang.c (pascal_main_name): Update.
2980         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2981         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2982         * proc-service.c (ps_pglobal_lookup): Update.
2983         * ravenscar-thread.c (get_running_thread_msymbol): Change
2984         return type.
2985         (has_ravenscar_runtime, get_running_thread_id): Update.
2986         * remote.c (remote_check_symbols): Update.
2987         * sol-thread.c (ps_pglobal_lookup): Update.
2988         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2989         * solib-dsbt.c (lm_base): Update.
2990         * solib-frv.c (lm_base, frv_relocate_section_addresses):
2991         Update.
2992         * solib-irix.c (locate_base): Update.
2993         * solib-som.c (som_solib_create_inferior_hook)
2994         (som_solib_desire_dynamic_linker_symbols, link_map_start):
2995         Update.
2996         * solib-spu.c (spu_enable_break): Update.
2997         * solib-svr4.c (elf_locate_base, enable_break): Update.
2998         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2999         (flush_ea_cache): Update.
3000         * stabsread.c (define_symbol): Update.
3001         * symfile.c (simple_read_overlay_table): Update.
3002         * symtab.c (find_pc_sect_line): Update.
3003         * tracepoint.c (scope_info): Update.
3004         * tui-disasm.c (tui_get_begin_asm_address): Update.
3005         * value.c (value_static_field): Update.
3006
3007 2014-02-26  Tom Tromey  <tromey@redhat.com>
3008
3009         * minsyms.c (prim_record_minimal_symbol_full): Use
3010         SET_MSYMBOL_VALUE_ADDRESS.
3011         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3012         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3013         SET_MSYMBOL_VALUE_ADDRESS.
3014         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3015         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3016
3017 2014-02-26  Tom Tromey  <tromey@redhat.com>
3018
3019         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3020         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3021         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3022         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3023         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3024         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3025         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3026         * ada-lang.c (ada_main_name): Update.
3027         (ada_lookup_simple_minsym): Update.
3028         (ada_make_symbol_completion_list): Update.
3029         (ada_add_standard_exceptions): Update.
3030         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3031         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3032         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3033         * arm-tdep.c (skip_prologue_function): Update.
3034         (arm_skip_stack_protector, arm_skip_stub): Update.
3035         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3036         (arm_wince_skip_main_prologue): Update.
3037         * auxv.c (ld_so_xfer_auxv): Update.
3038         * avr-tdep.c (avr_scan_prologue): Update.
3039         * ax-gdb.c (gen_var_ref): Update.
3040         * block.c (call_site_for_pc): Update.
3041         * blockframe.c (get_pc_function_start): Update.
3042         (find_pc_partial_function_gnu_ifunc): Update.
3043         * breakpoint.c (create_overlay_event_breakpoint): Update.
3044         (create_longjmp_master_breakpoint): Update.
3045         (create_std_terminate_master_breakpoint): Update.
3046         (create_exception_master_breakpoint): Update.
3047         (resolve_sal_pc): Update.
3048         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3049         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3050         Update.
3051         * c-valprint.c (c_val_print): Update.
3052         * coff-pe-read.c (add_pe_forwarded_sym): Update.
3053         * coffread.c (coff_symfile_read): Update.
3054         * common/agent.c (agent_look_up_symbols): Update.
3055         * dbxread.c (find_stab_function_addr): Update.
3056         (end_psymtab): Update.
3057         * dwarf2loc.c (call_site_to_target_addr): Update.
3058         (func_verify_no_selftailcall): Update.
3059         (tailcall_dump): Update.
3060         (call_site_find_chain_1): Update.
3061         (dwarf_expr_reg_to_entry_parameter): Update.
3062         * elfread.c (elf_gnu_ifunc_record_cache): Update.
3063         (elf_gnu_ifunc_resolve_by_got): Update.
3064         * f-valprint.c (info_common_command): Update.
3065         * findvar.c (read_var_value): Update.
3066         * frame.c (get_prev_frame_1): Update.
3067         (inside_main_func): Update.
3068         * frv-tdep.c (frv_skip_main_prologue): Update.
3069         (frv_frame_this_id): Update.
3070         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3071         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3072         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3073         (gnuv3_skip_trampoline): Update.
3074         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3075         (hppa64_hpux_in_solib_call_trampoline): Update.
3076         (hppa_hpux_skip_trampoline_code): Update.
3077         (hppa64_hpux_search_dummy_call_sequence): Update.
3078         (hppa_hpux_find_import_stub_for_addr): Update.
3079         (hppa_hpux_find_dummy_bpaddr): Update.
3080         * hppa-tdep.c (hppa_symbol_address)
3081         (hppa_lookup_stub_minimal_symbol): Update.
3082         * i386-tdep.c (i386_skip_main_prologue): Update.
3083         (i386_pe_skip_trampoline_code): Update.
3084         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3085         * infcall.c (get_function_name): Update.
3086         * infcmd.c (until_next_command): Update.
3087         * jit.c (jit_breakpoint_re_set_internal): Update.
3088         (jit_inferior_init): Update.
3089         * linespec.c (minsym_found): Update.
3090         (add_minsym): Update.
3091         * linux-fork.c (info_checkpoints_command): Update.
3092         * linux-nat.c (get_signo): Update.
3093         * linux-thread-db.c (inferior_has_bug): Update.
3094         * m32c-tdep.c (m32c_return_value): Update.
3095         (m32c_m16c_address_to_pointer): Update.
3096         (m32c_m16c_pointer_to_address): Update.
3097         * m32r-tdep.c (m32r_frame_this_id): Update.
3098         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3099         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3100         * maint.c (maintenance_translate_address): Update.
3101         * minsyms.c (add_minsym_to_hash_table): Update.
3102         (add_minsym_to_demangled_hash_table): Update.
3103         (msymbol_objfile): Update.
3104         (lookup_minimal_symbol): Update.
3105         (iterate_over_minimal_symbols): Update.
3106         (lookup_minimal_symbol_text): Update.
3107         (lookup_minimal_symbol_by_pc_name): Update.
3108         (lookup_minimal_symbol_solib_trampoline): Update.
3109         (lookup_minimal_symbol_by_pc_section_1): Update.
3110         (lookup_minimal_symbol_and_objfile): Update.
3111         (prim_record_minimal_symbol_full): Update.
3112         (compare_minimal_symbols): Update.
3113         (compact_minimal_symbols): Update.
3114         (build_minimal_symbol_hash_tables): Update.
3115         (install_minimal_symbols): Update.
3116         (terminate_minimal_symbol_table): Update.
3117         (find_solib_trampoline_target): Update.
3118         (minimal_symbol_upper_bound): Update.
3119         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3120         * mips-tdep.c (mips_stub_frame_sniffer): Update.
3121         (mips_skip_pic_trampoline_code): Update.
3122         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3123         * objc-lang.c (selectors_info): Update.
3124         (classes_info): Update.
3125         (find_methods): Update.
3126         (find_imps): Update.
3127         (find_objc_msgsend): Update.
3128         * objfiles.c (objfile_relocate1): Update.
3129         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3130         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3131         * p-valprint.c (pascal_val_print): Update.
3132         * parse.c (write_exp_msymbol): Update.
3133         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3134         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3135         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3136         * printcmd.c (build_address_symbolic): Update.
3137         (sym_info): Update.
3138         (address_info): Update.
3139         * proc-service.c (ps_pglobal_lookup): Update.
3140         * psymtab.c (find_pc_sect_psymtab_closer): Update.
3141         (find_pc_sect_psymtab): Update.
3142         * python/py-framefilter.c (py_print_frame): Update.
3143         * ravenscar-thread.c (get_running_thread_id): Update.
3144         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3145         Update.
3146         * remote.c (remote_check_symbols): Update.
3147         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3148         (rs6000_skip_trampoline_code): Update.
3149         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3150         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3151         * solib-dsbt.c (lm_base): Update.
3152         * solib-frv.c (lm_base): Update.
3153         (main_got): Update.
3154         * solib-irix.c (locate_base): Update.
3155         * solib-som.c (som_solib_create_inferior_hook): Update.
3156         (som_solib_desire_dynamic_linker_symbols): Update.
3157         (link_map_start): Update.
3158         * solib-spu.c (spu_enable_break): Update.
3159         (ocl_enable_break): Update.
3160         * solib-svr4.c (elf_locate_base): Update.
3161         (enable_break): Update.
3162         * spu-tdep.c (spu_get_overlay_table): Update.
3163         (spu_catch_start): Update.
3164         (flush_ea_cache): Update.
3165         * stabsread.c (define_symbol): Update.
3166         (scan_file_globals): Update.
3167         * stack.c (find_frame_funname): Update.
3168         (frame_info): Update.
3169         * symfile.c (simple_read_overlay_table): Update.
3170         (simple_overlay_update): Update.
3171         * symmisc.c (dump_msymbols): Update.
3172         * symtab.c (fixup_section): Update.
3173         (find_pc_sect_line): Update.
3174         (skip_prologue_sal): Update.
3175         (search_symbols): Update.
3176         (print_msymbol_info): Update.
3177         (rbreak_command): Update.
3178         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3179         (completion_list_objc_symbol): Update.
3180         (default_make_symbol_completion_list_break_on): Update.
3181         * tracepoint.c (scope_info): Update.
3182         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3183         (tui_get_begin_asm_address): Update.
3184         * valops.c (find_function_in_inferior): Update.
3185         * value.c (value_static_field): Update.
3186         (value_fn_field): Update.
3187
3188 2014-02-26  Tom Tromey  <tromey@redhat.com>
3189
3190         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3191         bound minimal symbols.  Move code that knows about minsym
3192         table layout...
3193         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
3194         function.
3195         * minsyms.h (minimal_symbol_upper_bound): Declare.
3196         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3197         minimal_symbol_upper_bound.
3198
3199 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
3200
3201         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3202         Use the type's name if its basic type does not have a tag.
3203
3204 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
3205
3206         * dwarf2read.c (read_subrange_type): Add comment.
3207
3208 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
3209
3210         * dwarf2read.c (update_enumeration_type_from_children): New
3211         function, mostly extracted from process_structure_scope.
3212         (read_enumeration_type): Call update_enumeration_type_from_children.
3213         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3214         and flag_flag_enum fields.
3215
3216 2014-02-26  Pedro Alves  <palves@redhat.com>
3217
3218         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3219         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3220         to_xfer_partial method.
3221
3222 2014-02-26  Pedro Alves  <palves@redhat.com>
3223
3224         * target.c (complete_target_initialization): Don't install
3225         default_xfer_partial as to_xfer_partial hook.
3226         (nomemory): Delete.
3227         (update_current_target): Don't INHERIT nor de_fault
3228         deprecated_xfer_memory.  Delete de_fault macro.
3229         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3230         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3231         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3232         field.
3233
3234 2014-02-26  Pedro Alves  <palves@redhat.com>
3235
3236         * go32-nat.c (my_write_child): New function.
3237         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3238         (go32_xfer_partial): New function.
3239         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3240         Instead install a to_xfer_partial hook.
3241
3242 2014-02-26  Pedro Alves  <palves@redhat.com>
3243
3244         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3245         to_xfer_partial helper.  Rewrite.
3246         (procfs_xfer_partial): New function.
3247         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3248         Install a to_xfer_partial hook.
3249
3250 2014-02-26  Pedro Alves  <palves@redhat.com>
3251
3252         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3253         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3254         (m32r_xfer_partial): New function.
3255         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3256         Install a to_xfer_partial hook.
3257
3258 2014-02-26  Pedro Alves  <palves@redhat.com>
3259
3260         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3261         helper.
3262         (mips_xfer_partial): New function.
3263         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3264         hook.  Install a to_xfer_partial hook.
3265
3266 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
3267
3268         * gdbtypes.h (create_array_type_with_stride): Add declaration.
3269         * gdbtypes.c (create_array_type_with_stride): New function,
3270         renaming create_array_type, but with an added parameter
3271         called "bit_stride".
3272         (create_array_type): Re-implement using
3273         create_array_type_with_stride.
3274         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3275         and DW_AT_bit_stride attributes.
3276
3277 2014-02-26  Pedro Alves  <palves@redhat.com>
3278
3279         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3280         task-specific breakpoints.
3281
3282 2014-02-25  Pedro Alves  <palves@redhat.com>
3283
3284         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3285         handling of object == TARGET_OBJECT_UNWIND_TABLE.
3286
3287 2014-02-25  Stan Shebs  <stan@codesourcery.com>
3288
3289         * defs.h: Annotate comments for Doxygen.
3290
3291 2014-02-25  Tom Tromey  <tromey@redhat.com>
3292
3293         * target.h (target_ignore): Don't declare.
3294         * target.c (target_ignore): Remove.
3295
3296 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3297
3298         PR gdb/16626
3299         * auto-load.c (auto_load_objfile_script_1): Change filename to
3300         debugfile.
3301
3302 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
3303
3304         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3305         documentation.  Adjust prototype to match the target_ops
3306         to_xfer_partial method.  Adjust implementation accordingly.
3307
3308 2014-02-25  Hui Zhu  <hui@codesourcery.com>
3309
3310         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3311         to_traceframe_info.
3312
3313 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
3314
3315         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3316         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3317         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3318         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3319         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3320         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3321         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3322         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3323         New constants.
3324         (rl78_register_type): Use a data pointer type for SP and
3325         new pseudo registers mentioned above.  Use a 16 bit integer
3326         type for all other register pairs.
3327         (rl78_register_name, rl78_g10_register_name): Update for
3328         new pseudo registers.
3329         (rl78_pseudo_register_read): Likewise.
3330         (rl78_pseudo_register_write): Likewise.
3331         (rl78_dwarf_reg_to_regnum): Return register numbers representing
3332         to the newly added pseudo registers.
3333
3334 2014-02-24  Doug Evans  <dje@google.com>
3335
3336         * value.c (record_latest_value): Fix comment.
3337         * printcmd.c (print_command_1): Remove code to handle -1 return from
3338         record_latest_value.
3339
3340 2014-02-24  Pedro Alves  <palves@redhat.com>
3341
3342         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3343         deprecated_xfer_memory hook.
3344         (procfs_xfer_partial): Call procfs_xfer_memory instead
3345         of the deprecated_xfer_memory target hook.
3346         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3347         helper.
3348
3349 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
3350
3351         * windows-nat.c (windows_xfer_shared_libraries): Return
3352         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3353         requested object is TARGET_OBJECT_LIBRARIES.
3354
3355 2014-02-24  Yao Qi  <yao@codesourcery.com>
3356
3357         * target.h (enum target_xfer_status)
3358         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3359         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3360         explicitly.  New.
3361         * corefile.c (memory_error_message): User updated.
3362         * exec.c (section_table_read_available_memory): Likewise.
3363         * record-btrace.c (record_btrace_xfer_partial): Likewise.
3364         * target.c (target_xfer_status_to_string): Likewise.
3365         (raw_memory_xfer_partial): Likewise.
3366         (memory_xfer_partial_1, target_xfer_partial): Likewise.
3367         * valops.c (read_value_memory): Likewise.
3368         * exec.h: Update comments.
3369
3370 2014-02-24  Yao Qi  <yao@codesourcery.com>
3371
3372         * target.c (target_xfer_status_to_string): Rename argument err
3373         to status.
3374         * target.h (target_xfer_status_to_string): Update declaration.
3375         Replace target_xfer_error_to_string with
3376         target_xfer_status_to_string in comment.
3377
3378 2014-02-24  Yao Qi  <yao@codesourcery.com>
3379
3380         * mips-linux-nat.c (super_close): Update its type.
3381         (mips_linux_close): Pass 'self' to super_close.
3382
3383 2014-02-24  Yao Qi  <yao@codesourcery.com>
3384
3385         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3386         * corefile.c (read_memory): Adjusted.
3387         * target.c (target_write_with_progress): Adjusted.
3388
3389 2014-02-23  Yao Qi  <yao@codesourcery.com>
3390
3391         Revert two patches:
3392
3393         2013-10-25  Yao Qi  <yao@codesourcery.com>
3394
3395         * remote.c (remote_traceframe_info): Return early if
3396         traceframe is not selected.
3397
3398         2013-07-19  Yao Qi  <yao@codesourcery.com>
3399
3400         * target.c (update_current_target): Change the default action
3401         of 'to_traceframe_info' from tcomplain to return_zero.
3402         * target.h (struct target_ops) <to_traceframe_info>: Add more
3403         comments.
3404
3405 2014-02-23  Yao Qi  <yao@codesourcery.com>
3406
3407         * valops.c (read_value_memory): Rewrite it.  Call
3408         target_xfer_partial in a loop.
3409         * exec.h (section_table_available_memory): Remove declaration.
3410         Move comments to ...
3411         * exec.c (section_table_available_memory): ... here.  Make it
3412         static.
3413
3414 2014-02-23  Yao Qi  <yao@codesourcery.com>
3415
3416         * exec.c (section_table_read_available_memory): New function.
3417         * exec.h (section_table_read_available_memory): Declare.
3418         * ctf.c (ctf_xfer_partial): Call
3419         section_table_read_available_memory.
3420         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3421
3422 2014-02-23  Yao Qi  <yao@codesourcery.com>
3423
3424         * ctf.c (ctf_xfer_partial): Move code to ...
3425         * exec.c (exec_read_partial_read_only): ... it.  New function.
3426         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3427         * tracefile.c: Include "exec.h".
3428         * exec.h (exec_read_partial_read_only): Declare.
3429
3430 2014-02-23  Yao Qi  <yao@codesourcery.com>
3431
3432         * tracefile-tfile.c (tfile_has_all_memory): Remove.
3433         (tfile_has_memory): Remove.
3434         (init_tfile_ops): Don't set fields to_has_all_memory and
3435         to_has_memory of tfile_ops.
3436         * tracefile.c (tracefile_has_all_memory): New function.
3437         (tracefile_has_memory): New function.
3438         (init_tracefile_ops): Initialize fields to_has_all_memory and
3439         to_has_memory of 'ops'.
3440
3441 2014-02-23  Yao Qi  <yao@codesourcery.com>
3442
3443         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3444         (ctf_thread_alive, ctf_get_trace_status): Remove.
3445         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
3446         init_tracefile_ops.
3447         * tracefile-tfile.c (tfile_get_trace_status): Remove.
3448         (tfile_has_stack, tfile_has_registers): Remove.
3449         (tfile_thread_alive): Remove.
3450         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
3451         init_tracefile_ops.
3452         * tracefile.c (tracefile_has_stack): New function.
3453         (tracefile_has_registers): New function.
3454         (tracefile_thread_alive): New function.
3455         (tracefile_get_trace_status): New function.
3456         (init_tracefile_ops): New function.
3457         * tracefile.h (init_tracefile_ops): Declare.
3458
3459 2014-02-23  Yao Qi  <yao@codesourcery.com>
3460
3461         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3462         (O_LARGEFILE): Likewise.
3463         (tfile_ops): Likewise.
3464         (TRACE_HEADER_SIZE): Likewise.
3465         (trace_fd, trace_frames_offset, cur_offset): Likewise.
3466         (cur_data_size): Likewise.
3467         (tfile_read, tfile_open, tfile_interp_line): Likewise.
3468         (tfile_close, tfile_files_info): Likewise.
3469         (tfile_get_trace_status): Likewise.
3470         (tfile_get_tracepoint_status): Likewise.
3471         (tfile_get_traceframe_address): Likewise.
3472         (tfile_trace_find, match_blocktype): Likewise.
3473         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3474         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3475         (tfile_get_trace_state_variable_value): Likewise.
3476         (tfile_has_all_memory, tfile_has_memory): Likewise.
3477         (tfile_has_stack, tfile_has_registers): Likewise.
3478         (tfile_thread_alive, build_traceframe_info): Likewise.
3479         (tfile_traceframe_info, init_tfile_ops): Likewise.
3480         (_initialize_tracepoint): Don't call init_tfile_ops
3481         and add_target_with_completer.
3482         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3483         exec.h, completer.h and filenames.h.
3484         (_initialize_tracefile_tfile): New function.
3485
3486 2014-02-23  Yao Qi  <yao@codesourcery.com>
3487
3488         * Makefile.in (REMOTE_OBS): Append tracefile.o and
3489         tracefile-tfile.o.
3490         (HFILES_NO_SRCDIR): Add tracefile.h.
3491         * ctf.c: Include "tracefile.h".
3492         * tracefile.h: New file.
3493         * tracefile.c: New file
3494         * tracefile-tfile.c: New file.
3495         * tracepoint.c: Include "tracefile.h".
3496         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3497         (stop_reason_names): Add const.
3498         (trace_file_writer_xfree): Move it to tracefile.c.
3499         (trace_save, trace_save_command, trace_save_tfile): Likewise.
3500         (trace_save_ctf): Likewise.
3501         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3502         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3503         (tfile_write_header, tfile_write_regblock_type): Likewise.
3504         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3505         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3506         (tfile_write_raw_data, tfile_end): Likewise.
3507         (tfile_trace_file_writer_new): Likewise.
3508         (free_uploaded_tp): Make it extern.
3509         (free_uploaded_tsv): Make it extern.
3510         (_initialize_tracepoint): Move code to register command 'tsave'
3511         to tracefile.c.
3512         * tracepoint.h (stop_reason_names): Declare.
3513         (struct trace_frame_write_ops): Move it to tracefile.h.
3514         (struct trace_file_write_ops): Likewise.
3515         (struct trace_file_writer): Likewise.
3516         (free_uploaded_tsvs, free_uploaded_tps): Declare.
3517
3518 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3519
3520         PR gdb/16594
3521         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3522         process name.
3523         (get_cores_used_by_process): New parameter num_cores, use it.
3524         (linux_xfer_osdata_processes): Pass num_cores to it.
3525         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3526         process name.
3527
3528 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
3529
3530         * target.c (memory_xfer_partial): Fix length arg in call to
3531         breakpoint_xfer_memory.
3532
3533 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
3534
3535         PR tdep/16397
3536         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3537         number comes after the + or - signs.  Adjust length of register
3538         name to be extracted.
3539
3540 2014-02-20  Tom Tromey  <tromey@redhat.com>
3541
3542         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3543         (ada_varobj_ops): Mark "extern".
3544
3545 2014-02-20  Tom Tromey  <tromey@redhat.com>
3546
3547         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3548
3549 2014-02-20  Doug Evans  <xdje42@gmail.com>
3550
3551         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3552         All callers updated.
3553         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3554         All callers updated.
3555         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3556         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3557
3558 2014-02-20  lin zuojian  <manjian2006@gmail.com>
3559             Joel Brobecker  <brobecker@adacore.com>
3560             Doug Evans  <xdje42@gmail.com>
3561
3562         PR symtab/16581
3563         * dwarf2read.c (struct die_info): New member in_process.
3564         (reset_die_in_process): New function.
3565         (process_die): Set it at the start, reset when returning.
3566         (inherit_abstract_dies): Only call process_die if origin_child_die
3567         not already being processed.
3568
3569 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3570
3571         * windows-nat.c (handle_unload_dll): Add function documentation.
3572         (do_initial_windows_stuff): Add comment explaining why we wait
3573         until after inferior initialization has finished before
3574         processing all DLLs.
3575
3576 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3577
3578         * windows-nat.c (get_module_name): Delete.
3579         (windows_get_exec_module_filename): New function, mostly
3580         inspired from get_module_name.
3581         (windows_pid_to_exec_file): Replace call to get_module_name
3582         by call to windows_get_exec_module_filename.
3583
3584 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3585
3586         * windows-nat.c (handle_load_dll): Rewrite this function's
3587         introductory comment.  Remove code using get_module_name
3588         to get the DLL's name.
3589
3590 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3591
3592         * windows-nat.c (get_windows_debug_event): Ignore
3593         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3594         if windows_initialization_done == 0.
3595         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3596         Adjust implementation to always load all DLLs.
3597         (do_initial_windows_stuff): Replace call to
3598         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3599
3600 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3601
3602         * windows-nat.c (_initialize_windows_nat): Deprecate the
3603         "dll-symbols" command.  Turn the "add-shared-symbol-files"
3604         and "assf" aliases into commands, and deprecate them as well.
3605         * NEWS: Add entry explaining that "dll-symbols" and its two
3606         aliases are now deprecated.
3607
3608 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3609
3610         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3611         new-line in debug string.  Remove trailing spaces.
3612
3613 2014-02-19  Stan Shebs  <stan@codesourcery.com>
3614
3615         * darwin-nat.c (darwin_xfer_partial): Fix return type.
3616
3617 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
3618
3619         * NEWS: Add entry for the new feature
3620         * python/py-value.c (valpy_binop): Call value_x_binop for struct
3621         and class values.
3622
3623 2014-02-19  Stan Shebs  <stan@codesourcery.com>
3624
3625         * MAINTAINERS: List Yao Qi as nios2 maintainer.
3626
3627 2014-02-19  Pedro Alves  <palves@redhat.com>
3628
3629         * common/ptid.h (struct ptid): Mention that process_stratum
3630         targets should prefer ptid.lwp.
3631
3632 2014-02-19  Pedro Alves  <palves@redhat.com>
3633
3634         * remote.c (remote_thread_alive, write_ptid, read_ptid)
3635         (read_ptid, remote_newthread_step, remote_threads_extra_info)
3636         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3637         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3638         store remote thread ids rather than ptid.tid.
3639         (_initialize_remote): Adjust.
3640
3641 2014-02-19  Tom Tromey  <tromey@redhat.com>
3642
3643         * target.c (target_get_unwinder): Rewrite.
3644         (target_get_tailcall_unwinder): Rewrite.
3645         * record-btrace.c (record_btrace_to_get_unwinder): New function.
3646         (record_btrace_to_get_tailcall_unwinder): New function.
3647         (init_record_btrace_ops): Update.
3648         * target.h (struct target_ops) <to_get_unwinder,
3649         to_get_tailcall_unwinder>: Now function pointers.  Use
3650         TARGET_DEFAULT_RETURN.
3651
3652 2014-02-19  Tom Tromey  <tromey@redhat.com>
3653
3654         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3655         argument.
3656         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3657
3658 2014-02-19  Tom Tromey  <tromey@redhat.com>
3659
3660         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3661         directly.
3662         * target-delegates.c: Rebuild.
3663         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3664         TARGET_DEFAULT_FUNC.
3665         * target.c (default_target_decr_pc_after_break): Rename from
3666         forward_target_decr_pc_after_break.  Simplify.
3667         (target_decr_pc_after_break): Rely on delegation.
3668
3669 2014-02-19  Tom Tromey  <tromey@redhat.com>
3670
3671         * target.c (update_current_target): Do not INHERIT to_doc or
3672         to_magic.  Do not de_fault to_open or to_close.
3673
3674 2014-02-19  Tom Tromey  <tromey@redhat.com>
3675
3676         * gcore.h (objfile_find_memory_regions): Declare.
3677         * gcore.c (objfile_find_memory_regions): No longer static.  Add
3678         "self" argument.
3679         (_initialize_gcore): Don't call exec_set_find_memory_regions.
3680         * exec.c: Include gcore.h.
3681         (exec_set_find_memory_regions): Remove.
3682         (exec_find_memory_regions): Remove.
3683         (exec_do_find_memory_regions): Remove.
3684         (init_exec_ops): Update.
3685         * defs.h (exec_set_find_memory_regions): Remove.
3686
3687 2014-02-19  Tom Tromey  <tromey@redhat.com>
3688
3689         * target-delegates.c: Rebuild.
3690         * target.h (struct target_ops) <to_extra_thread_info,
3691         to_thread_name, to_pid_to_exec_file, to_get_section_table,
3692         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3693         not 0, in TARGET_DEFAULT_RETURN.
3694
3695 2014-02-19  Tom Tromey  <tromey@redhat.com>
3696
3697         * target.c (complete_target_initialization): Remove casts.  Use
3698         return_zero_has_execution.
3699         (return_zero): Add "ignore" argument.
3700         (return_zero_has_execution): New function.
3701         (init_dummy_target): Remove casts.  Use
3702         return_zero_has_execution.
3703
3704 2014-02-19  Tom Tromey  <tromey@redhat.com>
3705
3706         * target.c (update_current_target): Update comments.  Do not
3707         INHERIT to_stratum.
3708
3709 2014-02-19  Tom Tromey  <tromey@redhat.com>
3710
3711         * arm-linux-nat.c (arm_linux_read_description): Delegate when
3712         needed.
3713         * corelow.c (core_read_description): Delegate when needed.
3714         * remote.c (remote_read_description): Delegate when needed.
3715         * target-delegates.c: Rebuild.
3716         * target.c (target_read_description): Rewrite.
3717         * target.h (struct target_ops) <to_read_description>: Update
3718         comment.  Use TARGET_DEFAULT_RETURN.
3719
3720 2014-02-19  Tom Tromey  <tromey@redhat.com>
3721
3722         * target-delegates.c: Rebuild.
3723         * target.c (update_current_target): Don't inherit or default
3724         to_can_run.
3725         (find_default_run_target): Check against delegate_can_run.
3726         * target.h (struct target_ops) <to_can_run>: Use
3727         TARGET_DEFAULT_RETURN.
3728
3729 2014-02-19  Tom Tromey  <tromey@redhat.com>
3730
3731         * target-delegates.c: Rebuild.
3732         * target.c (target_disconnect): Unconditionally delegate.
3733         * target.h (struct target_ops) <to_disconnect>: Use
3734         TARGET_DEFAULT_NORETURN.
3735
3736 2014-02-19  Tom Tromey  <tromey@redhat.com>
3737
3738         * record.c (record_stop): Unconditionally delegate.
3739         * target-delegates.c: Rebuild.
3740         * target.c (target_stop_recording): Unconditionally delegate.
3741         * target.h (struct target_ops) <to_stop_recording>: Use
3742         TARGET_DEFAULT_IGNORE.
3743
3744 2014-02-19  Tom Tromey  <tromey@redhat.com>
3745
3746         * target-delegates.c: Rebuild.
3747         * target.c (target_enable_btrace): Unconditionally delegate.
3748         * target.h (struct target_ops) <to_enable_btrace>: Use
3749         TARGET_DEFAULT_NORETURN.
3750
3751 2014-02-19  Tom Tromey  <tromey@redhat.com>
3752
3753         * target-delegates.c: Rebuild.
3754         * target.c (target_read_btrace): Unconditionally delegate.
3755         * target.h (struct target_ops) <to_read_btrace>: Use
3756         TARGET_DEFAULT_NORETURN.
3757
3758 2014-02-19  Tom Tromey  <tromey@redhat.com>
3759
3760         * target-delegates.c: Rebuild.
3761         * target.c (target_teardown_btrace): Unconditionally delegate.
3762         * target.h (struct target_ops) <to_teardown_btrace>: Use
3763         TARGET_DEFAULT_NORETURN.
3764
3765 2014-02-19  Tom Tromey  <tromey@redhat.com>
3766
3767         * target-delegates.c: Rebuild.
3768         * target.c (target_disable_btrace): Unconditionally delegate.
3769         * target.h (struct target_ops) <to_disable_btrace>: Use
3770         TARGET_DEFAULT_NORETURN.
3771
3772 2014-02-19  Tom Tromey  <tromey@redhat.com>
3773
3774         * target-delegates.c: Rebuild.
3775         * target.c (default_search_memory): New function.
3776         (simple_search_memory): Update comment.
3777         (target_search_memory): Unconditionally delegate.
3778         * target.h (struct target_ops) <to_search_memory>: Use
3779         TARGET_DEFAULT_FUNC.
3780
3781 2014-02-19  Tom Tromey  <tromey@redhat.com>
3782
3783         * auxv.c (default_auxv_parse): No longer static.
3784         (target_auxv_parse): Unconditionally delegate.
3785         * auxv.h (default_auxv_parse): Declare.
3786         * target-delegates.c: Rebuild.
3787         * target.c: Include auxv.h.
3788         * target.h (struct target_ops) <to_auxv_parse>: Use
3789         TARGET_DEFAULT_FUNC.
3790
3791 2014-02-19  Tom Tromey  <tromey@redhat.com>
3792
3793         * target-delegates.c: Rebuild.
3794         * target.c (target_memory_map): Unconditionally delegate.
3795         * target.h (struct target_ops) <to_memory_map>: Use
3796         TARGET_DEFAULT_RETURN.
3797
3798 2014-02-19  Tom Tromey  <tromey@redhat.com>
3799
3800         * target-delegates.c: Rebuild.
3801         * target.c (target_thread_alive): Unconditionally delegate.
3802         * target.h (struct target_ops) <to_thread_alive>: Use
3803         TARGET_DEFAULT_RETURN.
3804
3805 2014-02-19  Tom Tromey  <tromey@redhat.com>
3806
3807         * target-delegates.c: Rebuild.
3808         * target.c (target_save_record): Unconditionally delegate.
3809         * target.h (struct target_ops) <to_save_record>: Use
3810         TARGET_DEFAULT_NORETURN.
3811
3812 2014-02-19  Tom Tromey  <tromey@redhat.com>
3813
3814         * target-delegates.c: Rebuild.
3815         * target.c (target_delete_record): Unconditionally delegate.
3816         * target.h (struct target_ops) <to_delete_record>: Use
3817         TARGET_DEFAULT_NORETURN.
3818
3819 2014-02-19  Tom Tromey  <tromey@redhat.com>
3820
3821         * target-delegates.c: Rebuild.
3822         * target.c (target_record_is_replaying): Unconditionally
3823         delegate.
3824         * target.h (struct target_ops) <to_record_is_replaying>: Use
3825         TARGET_DEFAULT_RETURN.
3826
3827 2014-02-19  Tom Tromey  <tromey@redhat.com>
3828
3829         * target-delegates.c: Rebuild.
3830         * target.c (target_goto_record_begin): Unconditionally delegate.
3831         * target.h (struct target_ops) <to_goto_record_begin>: Use
3832         TARGET_DEFAULT_NORETURN.
3833
3834 2014-02-19  Tom Tromey  <tromey@redhat.com>
3835
3836         * target-delegates.c: Rebuild.
3837         * target.c (target_goto_record_end): Unconditionally delegate.
3838         * target.h (struct target_ops) <to_goto_record_end>: Use
3839         TARGET_DEFAULT_NORETURN.
3840
3841 2014-02-19  Tom Tromey  <tromey@redhat.com>
3842
3843         * target-delegates.c: Rebuild.
3844         * target.c (target_goto_record): Unconditionally delegate.
3845         * target.h (struct target_ops) <to_goto_record>: Use
3846         TARGET_DEFAULT_NORETURN.
3847
3848 2014-02-19  Tom Tromey  <tromey@redhat.com>
3849
3850         * target-delegates.c: Rebuild.
3851         * target.c (target_insn_history): Unconditionally delegate.
3852         * target.h (struct target_ops) <to_insn_history>: Use
3853         TARGET_DEFAULT_NORETURN.
3854
3855 2014-02-19  Tom Tromey  <tromey@redhat.com>
3856
3857         * target-delegates.c: Rebuild.
3858         * target.c (target_insn_history_from): Unconditionally delegate.
3859         * target.h (struct target_ops) <to_insn_history_from>: Use
3860         TARGET_DEFAULT_NORETURN.
3861
3862 2014-02-19  Tom Tromey  <tromey@redhat.com>
3863
3864         * target-delegates.c: Rebuild.
3865         * target.c (target_insn_history_range): Unconditionally delegate.
3866         * target.h (struct target_ops) <to_insn_history_range>: Use
3867         TARGET_DEFAULT_NORETURN.
3868
3869 2014-02-19  Tom Tromey  <tromey@redhat.com>
3870
3871         * target-delegates.c: Rebuild.
3872         * target.c (target_call_history): Unconditionally delegate.
3873         * target.h (struct target_ops) <to_call_history>: Use
3874         TARGET_DEFAULT_NORETURN.
3875
3876 2014-02-19  Tom Tromey  <tromey@redhat.com>
3877
3878         * target-delegates.c: Rebuild.
3879         * target.c (target_call_history_from): Unconditionally delegate.
3880         * target.h (struct target_ops) <to_call_history_from>: Use
3881         TARGET_DEFAULT_NORETURN.
3882
3883 2014-02-19  Tom Tromey  <tromey@redhat.com>
3884
3885         * target-delegates.c: Rebuild.
3886         * target.c (target_call_history_range): Unconditionally delegate.
3887         * target.h (struct target_ops) <to_call_history_range>: Use
3888         TARGET_DEFAULT_NORETURN.
3889
3890 2014-02-19  Tom Tromey  <tromey@redhat.com>
3891
3892         * target-delegates.c: Rebuild.
3893         * target.c (target_verify_memory): Unconditionally delegate.
3894         * target.h (struct target_ops) <to_verify_memory>: Use
3895         TARGET_DEFAULT_NORETURN.
3896
3897 2014-02-19  Tom Tromey  <tromey@redhat.com>
3898
3899         * target-delegates.c: Rebuild.
3900         * target.c (target_core_of_thread): Unconditionally delegate.
3901         * target.h (struct target_ops) <to_core_of_thread>: Use
3902         TARGET_DEFAULT_RETURN.
3903
3904 2014-02-19  Tom Tromey  <tromey@redhat.com>
3905
3906         * target-delegates.c: Rebuild.
3907         * target.c (target_flash_done): Unconditionally delegate.
3908         * target.h (struct target_ops) <to_flash_done>: Use
3909         TARGET_DEFAULT_NORETURN.
3910
3911 2014-02-19  Tom Tromey  <tromey@redhat.com>
3912
3913         * target-delegates.c: Rebuild.
3914         * target.c (target_flash_erase): Unconditionally delegate.
3915         * target.h (struct target_ops) <to_flash_erase>: Use
3916         TARGET_DEFAULT_NORETURN.
3917
3918 2014-02-19  Tom Tromey  <tromey@redhat.com>
3919
3920         * target-delegates.c: Rebuild.
3921         * target.c (target_get_section_table): Unconditionally delegate.
3922         * target.h (struct target_ops) <to_get_section_table>: Use
3923         TARGET_DEFAULT_RETURN.
3924
3925 2014-02-19  Tom Tromey  <tromey@redhat.com>
3926
3927         * target-delegates.c: Rebuild.
3928         * target.c (target_pid_to_str): Unconditionally delegate.
3929         (init_dummy_target): Don't initialize to_pid_to_str.
3930         (default_pid_to_str): Rename from dummy_pid_to_str.
3931         * target.h (struct target_ops) <to_pid_to_str>: Use
3932         TARGET_DEFAULT_FUNC.
3933
3934 2014-02-19  Tom Tromey  <tromey@redhat.com>
3935
3936         * target-delegates.c: Rebuild.
3937         * target.c (target_find_new_threads): Unconditionally delegate.
3938         * target.h (struct target_ops) <to_find_new_threads>: Use
3939         TARGET_DEFAULT_RETURN.
3940
3941 2014-02-19  Tom Tromey  <tromey@redhat.com>
3942
3943         * target-delegates.c: Rebuild.
3944         * target.c (target_program_signals): Unconditionally delegate.
3945         * target.h (struct target_ops) <to_program_signals>: Use
3946         TARGET_DEFAULT_IGNORE.
3947
3948 2014-02-19  Tom Tromey  <tromey@redhat.com>
3949
3950         * target-delegates.c: Rebuild.
3951         * target.c (target_pass_signals): Unconditionally delegate.
3952         * target.h (struct target_ops) <to_pass_signals>: Use
3953         TARGET_DEFAULT_IGNORE.
3954
3955 2014-02-19  Tom Tromey  <tromey@redhat.com>
3956
3957         * target-delegates.c: Rebuild.
3958         * target.c (default_mourn_inferior): New function.
3959         (target_mourn_inferior): Unconditionally delegate.
3960         * target.h (struct target_ops) <to_mourn_inferior>: Use
3961         TARGET_DEFAULT_FUNC.
3962
3963 2014-02-19  Tom Tromey  <tromey@redhat.com>
3964
3965         * target-delegates.c: Rebuild.
3966         * target.c (default_follow_fork): New function.
3967         (target_follow_fork): Unconditionally delegate.
3968         * target.h (struct target_ops) <to_follow_fork>: Use
3969         TARGET_DEFAULT_FUNC.
3970
3971 2014-02-19  Tom Tromey  <tromey@redhat.com>
3972
3973         * target-delegates.c: Rebuild.
3974         * target.c (target_kill): Unconditionally delegate.
3975         * target.h (struct target_ops) <to_kill>: Use
3976         TARGET_DEFAULT_NORETURN.
3977
3978 2014-02-19  Tom Tromey  <tromey@redhat.com>
3979
3980         * target-delegates.c: Rebuild.
3981         * target.c (target_masked_watch_num_registers): Unconditionally
3982         delegate.
3983         * target.h (struct target_ops) <to_masked_watch_num_registers>:
3984         Use TARGET_DEFAULT_RETURN.
3985
3986 2014-02-19  Tom Tromey  <tromey@redhat.com>
3987
3988         * target-delegates.c: Rebuild.
3989         * target.c (target_remove_mask_watchpoint): Unconditionally
3990         delegate.
3991         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3992         TARGET_DEFAULT_RETURN.
3993
3994 2014-02-19  Tom Tromey  <tromey@redhat.com>
3995
3996         * target-delegates.c: Rebuild.
3997         * target.c (target_insert_mask_watchpoint): Unconditionally
3998         delegate.
3999         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4000         TARGET_DEFAULT_RETURN.
4001
4002 2014-02-19  Tom Tromey  <tromey@redhat.com>
4003
4004         * target-delegates.c: Rebuild.
4005         * target.c (target_ranged_break_num_registers): Unconditionally
4006         delegate.
4007         * target.h (struct target_ops) <to_ranged_break_num_registers>:
4008         Use TARGET_DEFAULT_RETURN.
4009
4010 2014-02-19  Tom Tromey  <tromey@redhat.com>
4011
4012         * target-delegates.c: Rebuild.
4013         * target.c (target_fetch_registers): Unconditionally delegate.
4014         * target.h (struct target_ops) <to_fetch_registers>: Use
4015         TARGET_DEFAULT_NORETURN.
4016
4017 2014-02-19  Tom Tromey  <tromey@redhat.com>
4018
4019         * target-delegates.c: Rebuild.
4020         * target.c (update_current_target): Don't inherit or default
4021         to_stop.
4022         * target.h (struct target_ops) <to_stop>: Use
4023         TARGET_DEFAULT_IGNORE.
4024
4025 2014-02-19  Tom Tromey  <tromey@redhat.com>
4026
4027         * target-delegates.c: Rebuild.
4028         * target.c (update_current_target): Don't inherit or default
4029         to_can_run_breakpoint_commands.
4030         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4031         Use TARGET_DEFAULT_RETURN.
4032
4033 2014-02-19  Tom Tromey  <tromey@redhat.com>
4034
4035         * target-delegates.c: Rebuild.
4036         * target.c (update_current_target): Don't inherit or default
4037         to_supports_evaluation_of_breakpoint_conditions.
4038         * target.h (struct target_ops)
4039         <to_supports_evaluation_of_breakpoint_conditions>: Use
4040         TARGET_DEFAULT_RETURN.
4041
4042 2014-02-19  Tom Tromey  <tromey@redhat.com>
4043
4044         * target-delegates.c: Rebuild.
4045         * target.c (update_current_target): Don't inherit or default
4046         to_augmented_libraries_svr4_read.
4047         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4048         Use TARGET_DEFAULT_RETURN.
4049
4050 2014-02-19  Tom Tromey  <tromey@redhat.com>
4051
4052         * target-delegates.c: Rebuild.
4053         * target.c (update_current_target): Don't inherit or default
4054         to_can_use_agent.
4055         * target.h (struct target_ops) <to_can_use_agent>: Use
4056         TARGET_DEFAULT_RETURN.
4057
4058 2014-02-19  Tom Tromey  <tromey@redhat.com>
4059
4060         * target-delegates.c: Rebuild.
4061         * target.c (update_current_target): Don't inherit or default
4062         to_use_agent.
4063         * target.h (struct target_ops) <to_use_agent>: Use
4064         TARGET_DEFAULT_NORETURN.
4065
4066 2014-02-19  Tom Tromey  <tromey@redhat.com>
4067
4068         * target-delegates.c: Rebuild.
4069         * target.c (update_current_target): Don't inherit or default
4070         to_traceframe_info.
4071         (return_null): Remove.
4072         * target.h (struct target_ops) <to_traceframe_info>: Use
4073         TARGET_DEFAULT_RETURN.
4074
4075 2014-02-19  Tom Tromey  <tromey@redhat.com>
4076
4077         * target-delegates.c: Rebuild.
4078         * target.c (update_current_target): Don't inherit or default
4079         to_static_tracepoint_markers_by_strid.
4080         * target.h (struct target_ops)
4081         <to_static_tracepoint_markers_by_strid>: Use
4082         TARGET_DEFAULT_NORETURN.
4083
4084 2014-02-19  Tom Tromey  <tromey@redhat.com>
4085
4086         * target-delegates.c: Rebuild.
4087         * target.c (update_current_target): Don't inherit or default
4088         to_static_tracepoint_marker_at.
4089         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4090         Use TARGET_DEFAULT_RETURN.
4091
4092 2014-02-19  Tom Tromey  <tromey@redhat.com>
4093
4094         * target-delegates.c: Rebuild.
4095         * target.c (update_current_target): Don't inherit or default
4096         to_set_permissions.
4097         * target.h (struct target_ops) <to_set_permissions>: Use
4098         TARGET_DEFAULT_IGNORE.
4099
4100 2014-02-19  Tom Tromey  <tromey@redhat.com>
4101
4102         * target-delegates.c: Rebuild.
4103         * target.c (update_current_target): Don't inherit or default
4104         to_get_tib_address.
4105         * target.h (struct target_ops) <to_get_tib_address>: Use
4106         TARGET_DEFAULT_NORETURN.
4107
4108 2014-02-19  Tom Tromey  <tromey@redhat.com>
4109
4110         * target-delegates.c: Rebuild.
4111         * target.c (update_current_target): Don't inherit or default
4112         to_set_trace_notes.
4113         * target.h (struct target_ops) <to_set_trace_notes>: Use
4114         TARGET_DEFAULT_RETURN.
4115
4116 2014-02-19  Tom Tromey  <tromey@redhat.com>
4117
4118         * target-delegates.c: Rebuild.
4119         * target.c (update_current_target): Don't initialize
4120         to_set_trace_buffer_size.
4121         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4122         TARGET_DEFAULT_IGNORE.
4123
4124 2014-02-19  Tom Tromey  <tromey@redhat.com>
4125
4126         * target-delegates.c: Rebuild.
4127         * target.c (update_current_target): Don't inherit or default
4128         to_set_circular_trace_buffer.
4129         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4130         TARGET_DEFAULT_IGNORE.
4131
4132 2014-02-19  Tom Tromey  <tromey@redhat.com>
4133
4134         * target-delegates.c: Rebuild.
4135         * target.c (update_current_target): Don't inherit or default
4136         to_set_disconnected_tracing.
4137         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4138         TARGET_DEFAULT_IGNORE.
4139
4140 2014-02-19  Tom Tromey  <tromey@redhat.com>
4141
4142         * target-delegates.c: Rebuild.
4143         * target.c (update_current_target): Don't inherit or default
4144         to_get_min_fast_tracepoint_insn_len.
4145         (return_minus_one): Remove.
4146         * target.h (struct target_ops)
4147         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4148
4149 2014-02-19  Tom Tromey  <tromey@redhat.com>
4150
4151         * target-delegates.c: Rebuild.
4152         * target.c (update_current_target): Don't inherit or default
4153         to_get_raw_trace_data.
4154         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4155         TARGET_DEFAULT_NORETURN.
4156
4157 2014-02-19  Tom Tromey  <tromey@redhat.com>
4158
4159         * target-delegates.c: Rebuild.
4160         * target.c (update_current_target): Don't inherit or default
4161         to_upload_trace_state_variables.
4162         * target.h (struct target_ops) <to_upload_trace_state_variables>:
4163         Use TARGET_DEFAULT_RETURN.
4164
4165 2014-02-19  Tom Tromey  <tromey@redhat.com>
4166
4167         * target-delegates.c: Rebuild.
4168         * target.c (update_current_target): Don't inherit or default
4169         to_upload_tracepoints.
4170         * target.h (struct target_ops) <to_upload_tracepoints>: Use
4171         TARGET_DEFAULT_RETURN.
4172
4173 2014-02-19  Tom Tromey  <tromey@redhat.com>
4174
4175         * target-delegates.c: Rebuild.
4176         * target.c (update_current_target): Don't inherit or default
4177         to_save_trace_data.
4178         * target.h (struct target_ops) <to_save_trace_data>: Use
4179         TARGET_DEFAULT_NORETURN.
4180
4181 2014-02-19  Tom Tromey  <tromey@redhat.com>
4182
4183         * target-delegates.c: Rebuild.
4184         * target.c (update_current_target): Don't inherit or default
4185         to_get_trace_state_variable_value.
4186         * target.h (struct target_ops)
4187         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4188
4189 2014-02-19  Tom Tromey  <tromey@redhat.com>
4190
4191         * target-delegates.c: Rebuild.
4192         * target.c (update_current_target): Don't inherit or default
4193         to_trace_find.
4194         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4195
4196 2014-02-19  Tom Tromey  <tromey@redhat.com>
4197
4198         * target-delegates.c: Rebuild.
4199         * target.c (update_current_target): Don't inherit or default
4200         to_trace_stop.
4201         * target.h (struct target_ops) <to_trace_stop>: Use
4202         TARGET_DEFAULT_NORETURN.
4203
4204 2014-02-19  Tom Tromey  <tromey@redhat.com>
4205
4206         * target-delegates.c: Rebuild.
4207         * target.c (update_current_target): Don't inherit or default
4208         to_get_tracepoint_status.
4209         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4210         TARGET_DEFAULT_NORETURN.
4211
4212 2014-02-19  Tom Tromey  <tromey@redhat.com>
4213
4214         * target-delegates.c: Rebuild.
4215         * target.c (update_current_target): Don't inherit or default
4216         to_get_trace_status.
4217         * target.h (struct target_ops) <to_get_trace_status>: Use
4218         TARGET_DEFAULT_RETURN.
4219
4220 2014-02-19  Tom Tromey  <tromey@redhat.com>
4221
4222         * target-delegates.c: Rebuild.
4223         * target.c (update_current_target): Don't inherit or default
4224         to_trace_start.
4225         * target.h (struct target_ops) <to_trace_start>: Use
4226         TARGET_DEFAULT_NORETURN.
4227
4228 2014-02-19  Tom Tromey  <tromey@redhat.com>
4229
4230         * target-delegates.c: Rebuild.
4231         * target.c (update_current_target): Don't inherit or default
4232         to_trace_set_readonly_regions.
4233         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4234         Use TARGET_DEFAULT_NORETURN.
4235
4236 2014-02-19  Tom Tromey  <tromey@redhat.com>
4237
4238         * target-delegates.c: Rebuild.
4239         * target.c (update_current_target): Don't inherit or default
4240         to_disable_tracepoint.
4241         * target.h (struct target_ops) <to_disable_tracepoint>: Use
4242         TARGET_DEFAULT_NORETURN.
4243
4244 2014-02-19  Tom Tromey  <tromey@redhat.com>
4245
4246         * target-delegates.c: Rebuild.
4247         * target.c (update_current_target): Don't inherit or default
4248         to_enable_tracepoint.
4249         * target.h (struct target_ops) <to_enable_tracepoint>: Use
4250         TARGET_DEFAULT_NORETURN.
4251
4252 2014-02-19  Tom Tromey  <tromey@redhat.com>
4253
4254         * target-delegates.c: Rebuild.
4255         * target.c (update_current_target): Don't inherit or default
4256         to_download_trace_state_variable.
4257         * target.h (struct target_ops) <to_download_trace_state_variable>:
4258         Use TARGET_DEFAULT_NORETURN.
4259
4260 2014-02-19  Tom Tromey  <tromey@redhat.com>
4261
4262         * target-delegates.c: Rebuild.
4263         * target.c (update_current_target): Don't inherit or default
4264         to_can_download_tracepoint.
4265         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4266         TARGET_DEFAULT_RETURN.
4267
4268 2014-02-19  Tom Tromey  <tromey@redhat.com>
4269
4270         * target-delegates.c: Rebuild.
4271         * target.c (update_current_target): Don't inherit or default
4272         to_download_tracepoint.
4273         * target.h (struct target_ops) <to_download_tracepoint>: Use
4274         TARGET_DEFAULT_NORETURN.
4275
4276 2014-02-19  Tom Tromey  <tromey@redhat.com>
4277
4278         * target-delegates.c: Rebuild.
4279         * target.c (update_current_target): Don't inherit or default
4280         to_trace_init.
4281         * target.h (struct target_ops) <to_trace_init>: Use
4282         TARGET_DEFAULT_RETURN.
4283
4284 2014-02-19  Tom Tromey  <tromey@redhat.com>
4285
4286         * target-delegates.c: Rebuild.
4287         * target.c (update_current_target): Don't inherit or default
4288         to_supports_string_tracing.
4289         * target.h (struct target_ops) <to_supports_string_tracing>: Use
4290         TARGET_DEFAULT_RETURN.
4291
4292 2014-02-19  Tom Tromey  <tromey@redhat.com>
4293
4294         * target-delegates.c: Rebuild.
4295         * target.c (update_current_target): Don't inherit or default
4296         to_supports_enable_disable_tracepoint.
4297         * target.h (struct target_ops)
4298         <to_supports_enable_disable_tracepoint>: Use
4299         TARGET_DEFAULT_RETURN.
4300
4301 2014-02-19  Tom Tromey  <tromey@redhat.com>
4302
4303         * target-delegates.c: Rebuild.
4304         * target.c (update_current_target): Don't inherit or default
4305         to_supports_multi_process.
4306         * target.h (struct target_ops) <to_supports_multi_process>: Use
4307         TARGET_DEFAULT_RETURN.
4308
4309 2014-02-19  Tom Tromey  <tromey@redhat.com>
4310
4311         * target-delegates.c: Rebuild.
4312         * target.c (update_current_target): Don't inherit or default
4313         to_get_ada_task_ptid.
4314         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4315         TARGET_DEFAULT_FUNC.
4316
4317 2014-02-19  Tom Tromey  <tromey@redhat.com>
4318
4319         * target-delegates.c: Rebuild.
4320         * target.c (update_current_target): Don't inherit or default
4321         to_thread_architecture.
4322         * target.h (struct target_ops) <to_thread_architecture>: Use
4323         TARGET_DEFAULT_FUNC.
4324
4325 2014-02-19  Tom Tromey  <tromey@redhat.com>
4326
4327         * target-delegates.c: Rebuild.
4328         * target.c (update_current_target): Don't inherit or default
4329         to_execution_direction.
4330         * target.h (struct target_ops) <to_execution_direction>: Use
4331         TARGET_DEFAULT_FUNC.
4332
4333 2014-02-19  Tom Tromey  <tromey@redhat.com>
4334
4335         * target-delegates.c: Rebuild.
4336         * target.c (update_current_target): Don't inherit or default
4337         to_can_execute_reverse.
4338         * target.h (struct target_ops) <to_can_execute_reverse>: Use
4339         TARGET_DEFAULT_RETURN.
4340         (target_can_execute_reverse): Unconditionally delegate.
4341
4342 2014-02-19  Tom Tromey  <tromey@redhat.com>
4343
4344         * target-delegates.c: Rebuild.
4345         * target.c (update_current_target): Don't inherit or default
4346         to_goto_bookmark.
4347         (dummy_goto_bookmark): Remove.
4348         (init_dummy_target): Don't inherit or default to_goto_bookmark.
4349         * target.h (struct target_ops) <to_goto_bookmark>: Use
4350         TARGET_DEFAULT_NORETURN.
4351
4352 2014-02-19  Tom Tromey  <tromey@redhat.com>
4353
4354         * target-delegates.c: Rebuild.
4355         * target.c (update_current_target): Don't inherit or default
4356         to_get_bookmark.
4357         (dummy_get_bookmark): Remove.
4358         (init_dummy_target): Don't inherit or default to_get_bookmark.
4359         * target.h (struct target_ops) <to_get_bookmark>: Use
4360         TARGET_DEFAULT_NORETURN
4361
4362 2014-02-19  Tom Tromey  <tromey@redhat.com>
4363
4364         * target-delegates.c: Rebuild.
4365         * target.c (update_current_target): Don't inherit or default
4366         to_make_corefile_notes.
4367         (init_dummy_target): Don't initialize to_make_corefile_notes.
4368         * target.h (struct target_ops) <to_make_corefile_notes>: Use
4369         TARGET_DEFAULT_FUNC.
4370
4371 2014-02-19  Tom Tromey  <tromey@redhat.com>
4372
4373         * target-delegates.c: Rebuild.
4374         * target.c (update_current_target): Don't inherit or default
4375         to_find_memory_regions.
4376         (init_dummy_target): Don't initialize to_find_memory_regions.
4377         * target.h (struct target_ops) <to_find_memory_regions>: Use
4378         TARGET_DEFAULT_FUNC.
4379
4380 2014-02-19  Tom Tromey  <tromey@redhat.com>
4381
4382         * target-delegates.c: Rebuild.
4383         * target.c (update_current_target): Don't inherit or default
4384         to_log_command.
4385         * target.h (struct target_ops) <to_log_command>: Use
4386         TARGET_DEFAULT_IGNORE.
4387         (target_log_command): Unconditionally delegate.
4388
4389 2014-02-19  Tom Tromey  <tromey@redhat.com>
4390
4391         * target-delegates.c: Rebuild.
4392         * target.c (update_current_target): Don't inherit or default
4393         to_pid_to_exec_file.
4394         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4395         TARGET_DEFAULT_RETURN.
4396
4397 2014-02-19  Tom Tromey  <tromey@redhat.com>
4398
4399         * target-delegates.c: Rebuild.
4400         * target.c (update_current_target): Don't inherit or default
4401         to_thread_name.
4402         (target_thread_name): Unconditionally delegate.
4403         * target.h (struct target_ops) <to_thread_name>: Use
4404         TARGET_DEFAULT_RETURN.
4405
4406 2014-02-19  Tom Tromey  <tromey@redhat.com>
4407
4408         * target-delegates.c: Rebuild.
4409         * target.c (update_current_target): Don't inherit or default
4410         to_extra_thread_info.
4411         * target.h (struct target_ops) <to_extra_thread_info>: Use
4412         TARGET_DEFAULT_RETURN.
4413
4414 2014-02-19  Tom Tromey  <tromey@redhat.com>
4415
4416         * target-delegates.c: Rebuild.
4417         * target.c (update_current_target): Don't inherit or default
4418         to_has_exited.
4419         * target.h (struct target_ops) <to_has_exited>: Use
4420         TARGET_DEFAULT_RETURN..
4421
4422 2014-02-19  Tom Tromey  <tromey@redhat.com>
4423
4424         * target-delegates.c: Rebuild.
4425         * target.c (update_current_target): Don't inherit or default
4426         to_set_syscall_catchpoint.
4427         (return_one): Remove.
4428         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4429         TARGET_DEFAULT_RETURN.
4430
4431 2014-02-19  Tom Tromey  <tromey@redhat.com>
4432
4433         * target-delegates.c: Rebuild.
4434         * target.c (update_current_target): Don't inherit or default
4435         to_insert_exec_catchpoint.
4436         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4437         TARGET_DEFAULT_RETURN.
4438
4439 2014-01-08  Tom Tromey  <tromey@redhat.com>
4440
4441         * target-delegates.c: Rebuild.
4442         * target.c (update_current_target): Don't inherit or default
4443         to_insert_exec_catchpoint.
4444         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4445         TARGET_DEFAULT_RETURN.
4446
4447 2014-02-19  Tom Tromey  <tromey@redhat.com>
4448
4449         * target-delegates.c: Rebuild.
4450         * target.c (update_current_target): Don't inherit or default
4451         to_remove_vfork_catchpoint.
4452         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4453         TARGET_DEFAULT_RETURN.
4454
4455 2014-02-19  Tom Tromey  <tromey@redhat.com>
4456
4457         * target-delegates.c: Rebuild.
4458         * target.c (update_current_target): Don't inherit or default
4459         to_insert_vfork_catchpoint.
4460         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4461         TARGET_DEFAULT_RETURN.
4462
4463 2014-02-19  Tom Tromey  <tromey@redhat.com>
4464
4465         * target-delegates.c: Rebuild.
4466         * target.c (update_current_target): Don't inherit or default
4467         to_remove_fork_catchpoint.
4468         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4469         TARGET_DEFAULT_RETURN.
4470
4471 2014-02-19  Tom Tromey  <tromey@redhat.com>
4472
4473         * target-delegates.c: Rebuild.
4474         * target.c (update_current_target): Don't inherit or default
4475         to_insert_fork_catchpoint.
4476         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4477         TARGET_DEFAULT_RETURN.
4478
4479 2014-02-19  Tom Tromey  <tromey@redhat.com>
4480
4481         * target-delegates.c: Rebuild.
4482         * target.c (update_current_target): Don't inherit or default
4483         to_post_startup_inferior.
4484         * target.h (struct target_ops) <to_post_startup_inferior>: Use
4485         TARGET_DEFAULT_IGNORE.
4486
4487 2014-02-19  Tom Tromey  <tromey@redhat.com>
4488
4489         * target-delegates.c: Rebuild.
4490         * target.c (update_current_target): Don't inherit or default
4491         to_load.
4492         * target.h (struct target_ops) <to_load>: Use
4493         TARGET_DEFAULT_NORETURN.
4494
4495 2014-02-19  Tom Tromey  <tromey@redhat.com>
4496
4497         * target-delegates.c: Rebuild.
4498         * target.c (update_current_target): Don't inherit or default
4499         to_terminal_info.
4500         * target.h (struct target_ops) <to_terminal_info>: Use
4501         TARGET_DEFAULT_FUNC.
4502
4503 2014-02-19  Tom Tromey  <tromey@redhat.com>
4504
4505         * target-delegates.c: Rebuild.
4506         * target.c (update_current_target): Don't inherit or default
4507         to_terminal_save_ours.
4508         * target.h (struct target_ops) <to_terminal_save_ours>: Use
4509         TARGET_DEFAULT_IGNORE.
4510
4511 2014-02-19  Tom Tromey  <tromey@redhat.com>
4512
4513         * target-delegates.c: Rebuild.
4514         * target.c (update_current_target): Don't inherit or default
4515         to_terminal_ours.
4516         * target.h (struct target_ops) <to_terminal_ours>: Use
4517         TARGET_DEFAULT_IGNORE.
4518
4519 2014-02-19  Tom Tromey  <tromey@redhat.com>
4520
4521         * target-delegates.c: Rebuild.
4522         * target.c (update_current_target): Don't inherit or default
4523         to_terminal_ours_for_output.
4524         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4525         TARGET_DEFAULT_IGNORE.
4526
4527 2014-02-19  Tom Tromey  <tromey@redhat.com>
4528
4529         * target-delegates.c: Rebuild.
4530         * target.c (update_current_target): Don't inherit or default
4531         to_terminal_inferior.
4532         * target.h (struct target_ops) <to_terminal_inferior>: Use
4533         TARGET_DEFAULT_IGNORE.
4534
4535 2014-02-19  Tom Tromey  <tromey@redhat.com>
4536
4537         * target-delegates.c: Rebuild.
4538         * target.c (update_current_target): Don't inherit or default
4539         to_terminal_init.
4540         * target.h (struct target_ops) <to_terminal_init>: Use
4541         TARGET_DEFAULT_IGNORE.
4542
4543 2014-02-19  Tom Tromey  <tromey@redhat.com>
4544
4545         * target-delegates.c: Rebuild.
4546         * target.c (update_current_target): Don't inherit or default
4547         to_can_accel_watchpoint_condition.
4548         * target.h (struct target_ops)
4549         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4550
4551 2014-02-19  Tom Tromey  <tromey@redhat.com>
4552
4553         * target-delegates.c: Rebuild.
4554         * target.c (update_current_target): Don't inherit or default
4555         to_region_ok_for_hw_watchpoint.
4556         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4557         Use TARGET_DEFAULT_FUNC.
4558
4559 2014-02-19  Tom Tromey  <tromey@redhat.com>
4560
4561         * target-delegates.c: Rebuild.
4562         * target.c (update_current_target): Don't inherit or default
4563         to_watchpoint_addr_within_range.
4564         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4565         Use TARGET_DEFAULT_FUNC.
4566
4567 2014-02-19  Tom Tromey  <tromey@redhat.com>
4568
4569         * target-delegates.c: Rebuild.
4570         * target.c (update_current_target): Don't inherit or default
4571         to_remove_watchpoint.
4572         * target.h (struct target_ops) <to_remove_watchpoint>: Use
4573         TARGET_DEFAULT_NORETURN.
4574
4575 2014-02-19  Tom Tromey  <tromey@redhat.com>
4576
4577         * target-delegates.c: Rebuild.
4578         * target.c (update_current_target): Don't inherit or default
4579         to_insert_watchpoint.
4580         * target.h (struct target_ops) <to_insert_watchpoint>: Use
4581         TARGET_DEFAULT_RETURN.
4582
4583 2014-02-19  Tom Tromey  <tromey@redhat.com>
4584
4585         * target-delegates.c: Rebuild.
4586         * target.c (update_current_target): Don't inherit or default
4587         to_remove_hw_breakpoint.
4588         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4589         TARGET_DEFAULT_RETURN.
4590
4591 2014-02-19  Tom Tromey  <tromey@redhat.com>
4592
4593         * target-delegates.c: Rebuild.
4594         * target.c (update_current_target): Don't inherit or default
4595         to_insert_hw_breakpoint.
4596         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4597         TARGET_DEFAULT_RETURN.
4598
4599 2014-02-19  Tom Tromey  <tromey@redhat.com>
4600
4601         * target-delegates.c: Rebuild.
4602         * target.c (update_current_target): Don't inherit or default
4603         to_can_use_hw_breakpoint.
4604         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4605         TARGET_DEFAULT_RETURN.
4606
4607 2014-02-19  Tom Tromey  <tromey@redhat.com>
4608
4609         * target-delegates.c: Rebuild.
4610         * target.c (update_current_target): Don't inherit or default
4611         to_files_info.
4612         * target.h (struct target_ops) <to_files_info>: Use
4613         TARGET_DEFAULT_IGNORE.
4614
4615 2014-02-19  Tom Tromey  <tromey@redhat.com>
4616
4617         * target-delegates.c: Rebuild.
4618         * target.c (update_current_target): Don't inherit or default
4619         to_store.
4620         * target.h (struct target_ops) <to_store>: Use
4621         TARGET_DEFAULT_NORETURN.
4622
4623 2014-02-19  Tom Tromey  <tromey@redhat.com>
4624
4625         * target-delegates.c: Rebuild.
4626         * target.c (update_current_target): Don't inherit or default
4627         to_post_attach.
4628         * target.h (struct target_ops) <to_post_attach>: Use
4629         TARGET_DEFAULT_IGNORE.
4630
4631 2014-02-19  Tom Tromey  <tromey@redhat.com>
4632
4633         * target-delegates.c: Rebuild.
4634         * target.c (update_current_target): Don't inherit or default
4635         to_rcmd.
4636         (default_rcmd): New function.
4637         (do_monitor_command): Unconditionally delegate.
4638         * target.h (struct target_ops) <to_rmcd>: Use
4639         TARGET_DEFAULT_FUNC.
4640
4641 2014-02-19  Tom Tromey  <tromey@redhat.com>
4642
4643         * target-delegates.c: Rebuild.
4644         * target.c (init_dummy_target): Don't initialize to_attach.
4645         (target_attach): Unconditionally delegate.
4646         * target.h (struct target_ops) <to_attach>: Use
4647         TARGET_DEFAULT_FUNC.
4648
4649 2014-02-19  Tom Tromey  <tromey@redhat.com>
4650
4651         * target-delegates.c: Rebuild.
4652         * target.c (target_detach): Unconditionally delegate.
4653         (init_dummy_target): Don't initialize to_detach.
4654         * target.h (struct target_ops) <to_detach>: Use
4655         TARGET_DEFAULT_IGNORE.
4656
4657 2014-02-19  Tom Tromey  <tromey@redhat.com>
4658
4659         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4660         Add argument.
4661         (target_augmented_libraries_svr4_read): Add argument.
4662         * target.c (update_current_target): Update.
4663         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4664         argument.
4665
4666 2014-02-19  Tom Tromey  <tromey@redhat.com>
4667
4668         * target.h (struct target_ops) <to_call_history_range>: Add
4669         argument.
4670         * target.c (target_call_history_range): Add argument.
4671         * record-btrace.c (record_btrace_call_history_range): Add 'self'
4672         argument.
4673         (record_btrace_call_history_from): Update.
4674
4675 2014-02-19  Tom Tromey  <tromey@redhat.com>
4676
4677         * target.h (struct target_ops) <to_call_history_from>: Add
4678         argument.
4679         * target.c (target_call_history_from): Add argument.
4680         * record-btrace.c (record_btrace_call_history_from): Add 'self'
4681         argument.
4682
4683 2014-02-19  Tom Tromey  <tromey@redhat.com>
4684
4685         * target.h (struct target_ops) <to_call_history>: Add argument.
4686         * target.c (target_call_history): Add argument.
4687         * record-btrace.c (record_btrace_call_history): Add 'self'
4688         argument.
4689
4690 2014-02-19  Tom Tromey  <tromey@redhat.com>
4691
4692         * target.h (struct target_ops) <to_insn_history_range>: Add
4693         argument.
4694         * target.c (target_insn_history_range): Add argument.
4695         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4696         argument.
4697         (record_btrace_insn_history_from): Update.
4698
4699 2014-02-19  Tom Tromey  <tromey@redhat.com>
4700
4701         * target.h (struct target_ops) <to_insn_history_from>: Add
4702         argument.
4703         * target.c (target_insn_history_from): Add argument.
4704         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4705         argument.
4706
4707 2014-02-19  Tom Tromey  <tromey@redhat.com>
4708
4709         * target.h (struct target_ops) <to_insn_history>: Add argument.
4710         * target.c (target_insn_history): Add argument.
4711         * record-btrace.c (record_btrace_insn_history): Add 'self'
4712         argument.
4713
4714 2014-02-19  Tom Tromey  <tromey@redhat.com>
4715
4716         * target.h (struct target_ops) <to_goto_record>: Add argument.
4717         * target.c (target_goto_record): Add argument.
4718         * record-full.c (record_full_goto): Add 'self' argument.
4719         * record-btrace.c (record_btrace_goto): Add 'self' argument.
4720
4721 2014-02-19  Tom Tromey  <tromey@redhat.com>
4722
4723         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4724         * target.c (target_goto_record_end): Add argument.
4725         * record-full.c (record_full_goto_end): Add 'self' argument.
4726         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4727
4728 2014-02-19  Tom Tromey  <tromey@redhat.com>
4729
4730         * target.h (struct target_ops) <to_goto_record_begin>: Add
4731         argument.
4732         * target.c (target_goto_record_begin): Add argument.
4733         * record-full.c (record_full_goto_begin): Add 'self' argument.
4734         * record-btrace.c (record_btrace_goto_begin): Add 'self'
4735         argument.
4736
4737 2014-02-19  Tom Tromey  <tromey@redhat.com>
4738
4739         * target.h (struct target_ops) <to_record_is_replaying>: Add
4740         argument.
4741         * target.c (target_record_is_replaying): Add argument.
4742         * record-full.c (record_full_is_replaying): Add 'self' argument.
4743         * record-btrace.c (record_btrace_is_replaying): Add 'self'
4744         argument.
4745         (record_btrace_xfer_partial, record_btrace_store_registers)
4746         (record_btrace_prepare_to_store, record_btrace_resume)
4747         (record_btrace_wait, record_btrace_decr_pc_after_break)
4748         (record_btrace_find_new_threads, record_btrace_thread_alive):
4749         Update.
4750
4751 2014-02-19  Tom Tromey  <tromey@redhat.com>
4752
4753         * target.h (struct target_ops) <to_delete_record>: Add argument.
4754         * target.c (target_delete_record): Add argument.
4755         * record-full.c (record_full_delete): Add 'self' argument.
4756
4757 2014-02-19  Tom Tromey  <tromey@redhat.com>
4758
4759         * target.h (struct target_ops) <to_save_record>: Add argument.
4760         * target.c (target_save_record): Add argument.
4761         * record-full.c (record_full_save): Add 'self' argument.
4762         (record_full_save): Add 'self' argument.
4763
4764 2014-02-19  Tom Tromey  <tromey@redhat.com>
4765
4766         * target.h (struct target_ops) <to_info_record>: Add argument.
4767         * target.c (target_info_record): Add argument.
4768         * record.c (info_record_command): Add argument.
4769         * record-full.c (record_full_info): Add 'self' argument.
4770         * record-btrace.c (record_btrace_info): Add 'self' argument.
4771
4772 2014-02-19  Tom Tromey  <tromey@redhat.com>
4773
4774         * target.h (struct target_ops) <to_stop_recording>: Add argument.
4775         * target.c (target_stop_recording): Add argument.
4776         * record.c (record_stop): Add argument.
4777         * record-btrace.c (record_btrace_stop_recording): Add 'self'
4778         argument.
4779
4780 2014-02-19  Tom Tromey  <tromey@redhat.com>
4781
4782         * target.h (struct target_ops) <to_read_btrace>: Add argument.
4783         * target.c (struct target_ops) <to_read_btrace>: Add argument.
4784         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4785         argument.
4786         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4787         (_initialize_amd64_linux_nat): Use it.
4788         * i386-linux-nat.c (i386_linux_read_btrace): New function.
4789         (_initialize_i386_linux_nat): Use it.
4790
4791 2014-02-19  Tom Tromey  <tromey@redhat.com>
4792
4793         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4794         * target.c (target_teardown_btrace): Add argument.
4795         * remote.c (remote_teardown_btrace): Add 'self' argument.
4796         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4797         argument.
4798         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4799         argument.
4800
4801 2014-02-19  Tom Tromey  <tromey@redhat.com>
4802
4803         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4804         * target.c (target_disable_btrace): Add argument.
4805         * remote.c (remote_disable_btrace): Add 'self' argument.
4806         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4807         argument.
4808         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4809         argument.
4810
4811 2014-02-19  Tom Tromey  <tromey@redhat.com>
4812
4813         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4814         * target.c (target_enable_btrace): Add argument.
4815         * remote.c (remote_enable_btrace): Add 'self' argument.
4816         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4817         argument.
4818         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4819         argument.
4820
4821 2014-02-19  Tom Tromey  <tromey@redhat.com>
4822
4823         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4824         (target_can_use_agent): Add argument.
4825         * target.c (update_current_target): Update.
4826         * remote.c (remote_can_use_agent): Add 'self' argument.
4827         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4828
4829 2014-02-19  Tom Tromey  <tromey@redhat.com>
4830
4831         * target.h (struct target_ops) <to_use_agent>: Add argument.
4832         (target_use_agent): Add argument.
4833         * target.c (update_current_target): Update.
4834         * remote.c (remote_use_agent): Add 'self' argument.
4835         * inf-child.c (inf_child_use_agent): Add 'self' argument.
4836
4837 2014-02-19  Tom Tromey  <tromey@redhat.com>
4838
4839         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4840         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4841         (target_traceframe_info): Add argument.
4842         * target.c (update_current_target): Update.
4843         * remote.c (remote_traceframe_info): Add 'self' argument.
4844         * ctf.c (ctf_traceframe_info): Add 'self' argument.
4845
4846 2014-02-19  Tom Tromey  <tromey@redhat.com>
4847
4848         * target.h (target_static_tracepoint_markers_by_strid): Add
4849         argument.
4850         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4851         'self' argument.
4852         * target.c (update_current_target): Update.
4853         * remote.c (struct target_ops)
4854         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4855         * linux-nat.c (struct target_ops)
4856         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4857
4858 2014-02-19  Tom Tromey  <tromey@redhat.com>
4859
4860         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4861         Add argument.
4862         (target_static_tracepoint_marker_at): Add argument.
4863         * target.c (update_current_target): Update.
4864         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4865         argument.
4866
4867 2014-02-19  Tom Tromey  <tromey@redhat.com>
4868
4869         * target.h (struct target_ops) <to_set_permissions>: Add argument.
4870         (target_set_permissions): Add argument.
4871         * target.c (update_current_target): Update.
4872         * remote.c (remote_set_permissions): Add 'self' argument.
4873         (remote_start_remote): Update.
4874
4875 2014-02-19  Tom Tromey  <tromey@redhat.com>
4876
4877         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4878         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4879         (target_get_tib_address): Add argument.
4880         * target.c (update_current_target): Update.
4881         * remote.c (remote_get_tib_address): Add 'self' argument.
4882
4883 2014-02-19  Tom Tromey  <tromey@redhat.com>
4884
4885         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4886         (target_set_trace_notes): Add argument.
4887         * target.c (update_current_target): Update.
4888         * remote.c (remote_set_trace_notes): Add 'self' argument.
4889
4890 2014-02-19  Tom Tromey  <tromey@redhat.com>
4891
4892         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4893         argument.
4894         (target_set_trace_buffer_size): Add argument.
4895         * target.c (update_current_target): Update.
4896         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4897
4898 2014-02-19  Tom Tromey  <tromey@redhat.com>
4899
4900         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4901         argument.
4902         (target_set_circular_trace_buffer): Add argument.
4903         * target.c (update_current_target): Update.
4904         * remote.c (remote_set_circular_trace_buffer): Add 'self'
4905         argument.
4906
4907 2014-02-19  Tom Tromey  <tromey@redhat.com>
4908
4909         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4910         argument.
4911         (target_set_disconnected_tracing): Add argument.
4912         * target.c (update_current_target): Update.
4913         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4914
4915 2014-02-19  Tom Tromey  <tromey@redhat.com>
4916
4917         * target.h (struct target_ops)
4918         <to_get_min_fast_tracepoint_insn_len>: Add argument.
4919         (target_get_min_fast_tracepoint_insn_len): Add argument.
4920         * target.c (update_current_target): Update.
4921         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4922         argument.
4923
4924 2014-02-19  Tom Tromey  <tromey@redhat.com>
4925
4926         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4927         argument.
4928         (target_get_raw_trace_data): Add argument.
4929         * target.c (update_current_target): Update.
4930         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4931
4932 2014-02-19  Tom Tromey  <tromey@redhat.com>
4933
4934         * target.h (struct target_ops) <to_upload_trace_state_variables>:
4935         Add argument.
4936         (target_upload_trace_state_variables): Add argument.
4937         * target.c (update_current_target): Update.
4938         * remote.c (remote_upload_trace_state_variables): Add 'self'
4939         argument.
4940         (remote_start_remote): Update.
4941
4942 2014-02-19  Tom Tromey  <tromey@redhat.com>
4943
4944         * target.h (struct target_ops) <to_upload_tracepoints>: Add
4945         argument.
4946         (target_upload_tracepoints): Add argument.
4947         * target.c (update_current_target): Update.
4948         * remote.c (remote_upload_tracepoints): Add 'self' argument.
4949         (remote_start_remote): Update.
4950
4951 2014-02-19  Tom Tromey  <tromey@redhat.com>
4952
4953         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4954         (target_save_trace_data): Add argument.
4955         * target.c (update_current_target): Update.
4956         * remote.c (remote_save_trace_data): Add 'self' argument.
4957
4958 2014-02-19  Tom Tromey  <tromey@redhat.com>
4959
4960         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4961         argument.
4962         * target.h (struct target_ops)
4963         <to_get_trace_state_variable_value>: Add argument.
4964         (target_get_trace_state_variable_value): Add argument.
4965         * target.c (update_current_target): Update.
4966         * remote.c (remote_get_trace_state_variable_value): Add 'self'
4967         argument.
4968         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4969
4970 2014-02-19  Tom Tromey  <tromey@redhat.com>
4971
4972         * tracepoint.c (tfile_trace_find): Add 'self' argument.
4973         * target.h (struct target_ops) <to_trace_find>: Add argument.
4974         (target_trace_find): Add argument.
4975         * target.c (update_current_target): Update.
4976         * remote.c (remote_trace_find): Add 'self' argument.
4977         * ctf.c (ctf_trace_find): Add 'self' argument.
4978
4979 2014-02-19  Tom Tromey  <tromey@redhat.com>
4980
4981         * target.h (struct target_ops) <to_trace_stop>: Add argument.
4982         (target_trace_stop): Add argument.
4983         * target.c (update_current_target): Update.
4984         * remote.c (remote_trace_stop): Add 'self' argument.
4985
4986 2014-02-19  Tom Tromey  <tromey@redhat.com>
4987
4988         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4989         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4990         argument.
4991         (target_get_tracepoint_status): Add argument.
4992         * target.c (update_current_target): Update.
4993         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4994
4995 2014-02-19  Tom Tromey  <tromey@redhat.com>
4996
4997         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4998         * target.h (struct target_ops) <to_get_trace_status>: Add
4999         argument.
5000         (target_get_trace_status): Add argument.
5001         * target.c (update_current_target): Update.
5002         * remote.c (remote_get_trace_status): Add 'self' argument.
5003         (remote_start_remote, remote_can_download_tracepoint): Update.
5004         * ctf.c (ctf_get_trace_status): Add 'self' argument.
5005
5006 2014-02-19  Tom Tromey  <tromey@redhat.com>
5007
5008         * target.h (struct target_ops) <to_trace_start>: Add argument.
5009         (target_trace_start): Add argument.
5010         * target.c (update_current_target): Update.
5011         * remote.c (remote_trace_start): Add 'self' argument.
5012
5013 2014-02-19  Tom Tromey  <tromey@redhat.com>
5014
5015         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5016         Add argument.
5017         (target_trace_set_readonly_regions): Add argument.
5018         * target.c (update_current_target): Update.
5019         * remote.c (remote_trace_set_readonly_regions): Add 'self'
5020         argument.
5021
5022 2014-02-19  Tom Tromey  <tromey@redhat.com>
5023
5024         * target.h (struct target_ops) <to_disable_tracepoint>: Add
5025         argument.
5026         (target_disable_tracepoint): Add argument.
5027         * target.c (update_current_target): Update.
5028         * remote.c (remote_disable_tracepoint): Add 'self' argument.
5029
5030 2014-02-19  Tom Tromey  <tromey@redhat.com>
5031
5032         * target.h (struct target_ops) <to_enable_tracepoint>: Add
5033         argument.
5034         (target_enable_tracepoint): Add argument.
5035         * target.c (update_current_target): Update.
5036         * remote.c (remote_enable_tracepoint): Add 'self' argument.
5037
5038 2014-02-19  Tom Tromey  <tromey@redhat.com>
5039
5040         * target.h (struct target_ops) <to_download_trace_state_variable>:
5041         Add argument.
5042         (target_download_trace_state_variable): Add argument.
5043         * target.c (update_current_target): Update.
5044         * remote.c (remote_download_trace_state_variable): Add 'self'
5045         argument.
5046
5047 2014-02-19  Tom Tromey  <tromey@redhat.com>
5048
5049         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5050         argument.
5051         (target_can_download_tracepoint): Add argument.
5052         * target.c (update_current_target): Update.
5053         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5054
5055 2014-02-19  Tom Tromey  <tromey@redhat.com>
5056
5057         * target.h (struct target_ops) <to_download_tracepoint>: Add
5058         argument.
5059         (target_download_tracepoint): Add argument.
5060         * target.c (update_current_target): Update.
5061         * remote.c (remote_download_tracepoint): Add 'self' argument.
5062
5063 2014-02-19  Tom Tromey  <tromey@redhat.com>
5064
5065         * target.h (struct target_ops) <to_trace_init>: Add argument.
5066         (target_trace_init): Add argument.
5067         * target.c (update_current_target): Update.
5068         * remote.c (remote_trace_init): Add 'self' argument.
5069
5070 2014-02-19  Tom Tromey  <tromey@redhat.com>
5071
5072         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5073         * target.c (target_fileio_readlink): Add argument.
5074         * remote.c (remote_hostio_readlink): Add 'self' argument.
5075         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5076
5077 2014-02-19  Tom Tromey  <tromey@redhat.com>
5078
5079         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5080         * target.c (target_fileio_unlink): Add argument.
5081         * remote.c (remote_hostio_unlink): Add 'self' argument.
5082         (remote_file_delete): Update.
5083         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5084
5085 2014-02-19  Tom Tromey  <tromey@redhat.com>
5086
5087         * target.h (struct target_ops) <to_fileio_close>: Add argument.
5088         * target.c (target_fileio_close): Add argument.
5089         * remote.c (remote_hostio_close): Add 'self' argument.
5090         (remote_hostio_close_cleanup): Update.
5091         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5092         Update.
5093         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5094
5095 2014-02-19  Tom Tromey  <tromey@redhat.com>
5096
5097         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5098         * target.c (target_fileio_pread): Add argument.
5099         * remote.c (remote_hostio_pread): Add 'self' argument.
5100         (remote_bfd_iovec_pread, remote_file_get): Update.
5101         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5102
5103 2014-02-19  Tom Tromey  <tromey@redhat.com>
5104
5105         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5106         * target.c (target_fileio_pwrite): Add argument.
5107         * remote.c (remote_hostio_pwrite): Add 'self' argument.
5108         (remote_file_put): Update.
5109         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5110
5111 2014-02-19  Tom Tromey  <tromey@redhat.com>
5112
5113         * target.h (struct target_ops) <to_fileio_open>: Add argument.
5114         * target.c (target_fileio_open): Add argument.
5115         * remote.c (remote_hostio_open): Add 'self' argument.
5116         (remote_bfd_iovec_open): Add 'self' argument.
5117         (remote_file_put): Add 'self' argument.
5118         (remote_file_get): Add 'self' argument.
5119         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5120
5121 2014-02-19  Tom Tromey  <tromey@redhat.com>
5122
5123         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5124         Add argument.
5125         (target_can_run_breakpoint_commands): Add argument.
5126         * target.c (update_current_target): Update.
5127         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5128         argument.
5129         (remote_insert_breakpoint): Add 'self' argument.
5130         (remote_insert_hw_breakpoint): Add 'self' argument.
5131         (remote_can_run_breakpoint_commands): Add 'self' argument.
5132
5133 2014-02-19  Tom Tromey  <tromey@redhat.com>
5134
5135         * target.h (struct target_ops)
5136         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5137         (target_supports_evaluation_of_breakpoint_conditions): Add
5138         argument.
5139         * target.c (update_current_target): Update.
5140         * remote.c (remote_supports_cond_breakpoints): Add 'self'
5141         argument.
5142         (remote_insert_breakpoint): Add 'self' argument.
5143         (remote_insert_hw_breakpoint): Add 'self' argument.
5144         (remote_supports_cond_breakpoints): Add 'self' argument.
5145
5146 2014-02-19  Tom Tromey  <tromey@redhat.com>
5147
5148         * target.h (struct target_ops) <to_supports_string_tracing>: Add
5149         argument.
5150         (target_supports_string_tracing): Add argument.
5151         * target.c (update_current_target): Update.
5152         * remote.c (remote_supports_string_tracing): Add 'self' argument.
5153
5154 2014-02-19  Tom Tromey  <tromey@redhat.com>
5155
5156         * target.h (struct target_ops)
5157         <to_supports_disable_randomization>: Add argument.
5158         * target.c (find_default_supports_disable_randomization): Add
5159         argument.
5160         (target_supports_disable_randomization): Add argument.
5161         (find_default_supports_disable_randomization): Add 'self'
5162         argument.
5163         * remote.c (extended_remote_supports_disable_randomization): Add
5164         'self' argument.
5165         (remote_supports_disable_randomization): Add 'self' argument.
5166         (extended_remote_create_inferior): Update.
5167         * linux-nat.c (linux_nat_supports_disable_randomization): Add
5168         'self' argument.
5169
5170 2014-02-19  Tom Tromey  <tromey@redhat.com>
5171
5172         * target.h (struct target_ops)
5173         <to_supports_enable_disable_tracepoint>: Add argument.
5174         (target_supports_enable_disable_tracepoint): Add argument.
5175         * target.c (update_current_target): Update.
5176         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5177         argument.
5178
5179 2014-02-19  Tom Tromey  <tromey@redhat.com>
5180
5181         * target.h (struct target_ops) <to_supports_multi_process>: Add
5182         argument.
5183         (target_supports_multi_process): Add argument.
5184         * target.c (update_current_target): Update.
5185         * remote.c (remote_supports_multi_process): Add 'self' argument.
5186         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5187         argument.
5188         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5189         argument.
5190
5191 2014-02-19  Tom Tromey  <tromey@redhat.com>
5192
5193         * target.h (struct target_ops) <to_execution_direction>: Add
5194         argument.
5195         (target_execution_direction): Add argument.
5196         * target.c (default_execution_direction): Add 'self' argument.
5197         * record-full.c (record_full_execution_direction): Add 'self'
5198         argument.
5199
5200 2014-02-19  Tom Tromey  <tromey@redhat.com>
5201
5202         * target.h (struct target_ops) <to_can_execute_reverse>: Add
5203         argument.
5204         (target_can_execute_reverse): Add argument.
5205         * remote.c (remote_can_execute_reverse): Add 'self' argument.
5206         * record-full.c (record_full_can_execute_reverse): Add 'self'
5207         argument.
5208         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5209         argument.
5210
5211 2014-02-19  Tom Tromey  <tromey@redhat.com>
5212
5213         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5214         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5215         argument.
5216         (target_get_ada_task_ptid): Add argument.
5217         * target.c (update_current_target): Update.
5218         (default_get_ada_task_ptid): Add 'self' argument.
5219         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5220         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5221         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5222         argument.
5223         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5224         argument.
5225         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5226         argument.
5227         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5228         argument.
5229         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5230         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5231         argument.
5232
5233 2014-02-19  Tom Tromey  <tromey@redhat.com>
5234
5235         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5236         (target_goto_bookmark): Add argument.
5237         * target.c (dummy_goto_bookmark): Add 'self' argument.
5238         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5239
5240 2014-02-19  Tom Tromey  <tromey@redhat.com>
5241
5242         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5243         (target_get_bookmark): Add argument.
5244         * target.c (dummy_get_bookmark): Add 'self' argument.
5245         * record-full.c (record_full_get_bookmark): Add 'self' argument.
5246
5247 2014-02-19  Tom Tromey  <tromey@redhat.com>
5248
5249         * target.h (struct target_ops) <to_make_corefile_notes>: Add
5250         argument.
5251         (target_make_corefile_notes): Add argument.
5252         * target.c (dummy_make_corefile_notes): Add 'self' argument.
5253         * procfs.c (procfs_make_note_section): Add 'self' argument.
5254         (procfs_make_note_section): Add 'self' argument.
5255         (procfs_make_note_section): Add 'self' argument.
5256         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5257         argument.
5258         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5259         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5260         * exec.c (exec_make_note_section): Add 'self' argument.
5261         (exec_make_note_section): Add 'self' argument.
5262
5263 2014-02-19  Tom Tromey  <tromey@redhat.com>
5264
5265         * target.h (struct target_ops) <to_find_memory_regions>: Add
5266         argument.
5267         (target_find_memory_regions): Add argument.
5268         * target.c (dummy_find_memory_regions): Add 'self' argument.
5269         * procfs.c (proc_find_memory_regions): Add 'self' argument.
5270         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5271         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5272         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5273         * exec. (exec_do_find_memory_regions): New global.
5274         (exec_set_find_memory_regions): Rewrite.
5275         (exec_find_memory_regions): New function.
5276         (init_exec_ops): Use exec_find_memory_regions.
5277
5278 2014-02-19  Tom Tromey  <tromey@redhat.com>
5279
5280         * target.h (struct target_ops) <to_supports_non_stop>: Add
5281         argument.
5282         * target.c (find_default_supports_non_stop): Add argument.
5283         (target_supports_non_stop): Add argument.
5284         (find_default_supports_non_stop): Add 'self' argument.
5285         * remote.c (remote_supports_non_stop): Add 'self' argument.
5286         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5287
5288 2014-02-19  Tom Tromey  <tromey@redhat.com>
5289
5290         * target.h (struct target_ops) <to_log_command>: Add argument.
5291         (target_log_command): Add argument.
5292         * serial.h (serial_log_command): Add 'self' argument.
5293         * serial.c (serial_log_command): Add 'self' argument.
5294
5295 2014-02-19  Tom Tromey  <tromey@redhat.com>
5296
5297         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5298         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5299         argument.
5300         (target_pid_to_exec_file): Add argument.
5301         * target.c (debug_to_pid_to_exec_file): Add argument.
5302         (update_current_target): Update.
5303         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5304         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5305         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5306         (linux_handle_extended_wait): Update.
5307         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5308         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5309         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5310         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5311
5312 2014-02-19  Tom Tromey  <tromey@redhat.com>
5313
5314         * target.h (struct target_ops) <to_rcmd>: Add argument.
5315         (target_rcmd): Add argument.
5316         * target.c (debug_to_rcmd): Add argument.
5317         (update_current_target, do_monitor_command): Update.
5318         * remote.c (remote_rcmd): Add 'self' argument.
5319         * monitor.c (monitor_rcmd): Add 'self' argument.
5320
5321 2014-02-19  Tom Tromey  <tromey@redhat.com>
5322
5323         * windows-nat.c (windows_stop): Add 'self' argument.
5324         * target.h (struct target_ops) <to_stop>: Add argument.
5325         * target.c (target_stop): Add argument.
5326         (debug_to_stop): Add argument.
5327         (update_current_target): Update.
5328         * remote.c (remote_stop): Add 'self' argument.
5329         * remote-sim.c (gdbsim_stop): Add 'self' argument.
5330         (gdbsim_cntrl_c): Update.
5331         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5332         * procfs.c (procfs_stop): Add 'self' argument.
5333         * nto-procfs.c (procfs_stop): Add 'self' argument.
5334         * monitor.c (monitor_stop): Add 'self' argument.
5335         (monitor_open): Update.
5336         * linux-nat.c (linux_nat_stop): Add argument.
5337         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5338         * gnu-nat.c (gnu_stop): Add 'self' argument.
5339         * darwin-nat.c (darwin_stop): Add 'self' argument.
5340
5341 2014-02-19  Tom Tromey  <tromey@redhat.com>
5342
5343         * target.h (struct target_ops) <to_thread_name>: Add argument.
5344         * target.c (target_thread_name): Add argument.
5345         (update_current_target): Update.
5346         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5347
5348 2014-02-19  Tom Tromey  <tromey@redhat.com>
5349
5350         * target.h (struct target_ops) <to_extra_thread_info>: Add
5351         argument.
5352         (target_extra_thread_info): Add argument.
5353         * target.c (update_current_target): Update.
5354         * remote.c (remote_threads_extra_info): Add 'self' argument.
5355         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5356         argument.
5357         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5358         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5359         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5360         argument.
5361         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5362         argument.
5363         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5364         argument.
5365         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5366         argument.
5367
5368 2014-02-19  Tom Tromey  <tromey@redhat.com>
5369
5370         * target.h (struct target_ops) <to_program_signals>: Add argument.
5371         * target.c (target_program_signals): Add argument.
5372         * remote.c (remote_program_signals): Add 'self' argument.
5373
5374 2014-02-19  Tom Tromey  <tromey@redhat.com>
5375
5376         * target.h (struct target_ops) <to_pass_signals>: Add argument.
5377         * target.c (target_pass_signals): Add argument.
5378         * remote.c (remote_pass_signals): Add 'self' argument.
5379         (remote_start_remote): Update.
5380         * procfs.c (procfs_pass_signals): Add 'self' argument.
5381         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5382         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5383         (linux_nat_create_inferior, linux_nat_attach): Update.
5384
5385 2014-02-19  Tom Tromey  <tromey@redhat.com>
5386
5387         * windows-nat.c (windows_can_run): Add 'self' argument.
5388         * target.h (struct target_ops) <to_can_run>: Add argument.
5389         (target_can_run): Add argument.
5390         * target.c (debug_to_can_run): Add argument.
5391         (update_current_target): Update.
5392         * nto-procfs.c (procfs_can_run): Add 'self' argument.
5393         * inf-child.c (inf_child_can_run): Add 'self' argument.
5394         * go32-nat.c (go32_can_run): Add 'self' argument.
5395
5396 2014-02-19  Tom Tromey  <tromey@redhat.com>
5397
5398         * target.h (struct target_ops) <to_has_exited>: Add argument.
5399         (target_has_exited): Add argument.
5400         * target.c (debug_to_has_exited): Add argument.
5401         (update_current_target): Update.
5402
5403 2014-02-19  Tom Tromey  <tromey@redhat.com>
5404
5405         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5406         argument.
5407         (target_set_syscall_catchpoint): Add argument.
5408         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5409         argument.
5410         * target.c (update_current_target): Update.
5411
5412 2014-02-19  Tom Tromey  <tromey@redhat.com>
5413
5414         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5415         argument.
5416         (target_remove_exec_catchpoint): Add argument.
5417         * target.c (debug_to_remove_exec_catchpoint): Add argument.
5418         (update_current_target): Update.
5419         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5420         argument.
5421
5422 2014-02-19  Tom Tromey  <tromey@redhat.com>
5423
5424         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5425         argument.
5426         (target_insert_exec_catchpoint): Add argument.
5427         * target.c (debug_to_insert_exec_catchpoint): Add argument.
5428         (update_current_target): Update.
5429         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5430         argument.
5431
5432 2014-02-19  Tom Tromey  <tromey@redhat.com>
5433
5434         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5435         argument.
5436         (target_remove_vfork_catchpoint): Add argument.
5437         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5438         (update_current_target): Update.
5439         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5440         argument.
5441
5442 2014-02-19  Tom Tromey  <tromey@redhat.com>
5443
5444         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5445         argument.
5446         (target_insert_vfork_catchpoint): Add argument.
5447         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5448         (update_current_target): Update.
5449         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5450         argument.
5451
5452 2014-02-19  Tom Tromey  <tromey@redhat.com>
5453
5454         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5455         argument.
5456         (target_remove_fork_catchpoint): Add argument.
5457         * target.c (debug_to_remove_fork_catchpoint): Add argument.
5458         (update_current_target): Update.
5459         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5460         argument.
5461
5462 2014-02-19  Tom Tromey  <tromey@redhat.com>
5463
5464         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5465         argument.
5466         (target_insert_fork_catchpoint): Add argument.
5467         * target.c (debug_to_insert_fork_catchpoint): Add argument.
5468         (update_current_target): Update.
5469         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5470         argument.
5471
5472 2014-02-19  Tom Tromey  <tromey@redhat.com>
5473
5474         * target.h (struct target_ops) <to_post_startup_inferior>: Add
5475         argument.
5476         (target_post_startup_inferior): Add argument.
5477         * target.c (debug_to_post_startup_inferior): Add argument.
5478         (update_current_target): Update.
5479         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5480         argument.
5481         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5482         argument.
5483         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5484         argument.
5485         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5486         argument.
5487         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5488         'self' argument.
5489         (super_post_startup_inferior): Likewise.
5490         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5491         'self' argument.
5492         (super_post_startup_inferior): Likewise.
5493         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5494         Add 'self' argument.
5495         (super_post_startup_inferior): Likewise.
5496
5497 2014-02-19  Tom Tromey  <tromey@redhat.com>
5498
5499         * target.h (struct target_ops) <to_load>: Add argument.
5500         * target.c (target_load): Add argument.
5501         (debug_to_load): Add argument.
5502         (update_current_target): Update.
5503         * remote.c (remote_load): Add 'self' argument.
5504         * remote-sim.c (gdbsim_load): Add 'self' argument.
5505         * remote-mips.c (mips_load): Add 'self' argument.
5506         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5507         * monitor.c (monitor_load): Add 'self' argument.
5508         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5509
5510 2014-02-19  Tom Tromey  <tromey@redhat.com>
5511
5512         * target.h (struct target_ops) <to_terminal_info>: Add argument.
5513         (target_terminal_info): Add argument.
5514         * target.c (debug_to_terminal_info): Add argument.
5515         (default_terminal_info): Likewise.
5516         * inflow.c (child_terminal_info): Add 'self' argument.
5517         * inferior.h (child_terminal_info): Add 'self' argument.
5518         * go32-nat.c (go32_terminal_info): Add 'self' argument.
5519
5520 2014-02-19  Tom Tromey  <tromey@redhat.com>
5521
5522         * target.h (struct target_ops) <to_terminal_save_ours>: Add
5523         argument.
5524         (target_terminal_save_ours): Add argument.
5525         * target.c (debug_to_terminal_save_ours): Add argument.
5526         (update_current_target): Update.
5527         * inflow.c (terminal_save_ours): Add 'self' argument.
5528         * inferior.h (terminal_save_ours): Add 'self' argument.
5529
5530 2014-02-19  Tom Tromey  <tromey@redhat.com>
5531
5532         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5533         (target_terminal_ours): Add argument.
5534         * target.c (debug_to_terminal_ours): Add argument.
5535         (update_current_target): Update.
5536         * remote.c (remote_terminal_ours): Add 'self' argument.
5537         (remote_close): Update.
5538         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5539         * inflow.c (terminal_ours): Add 'self' argument.
5540         * inferior.h (terminal_ours): Add 'self' argument.
5541         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5542
5543 2014-02-19  Pedro Alves  <palves@redhat.com>
5544             Tom Tromey  <tromey@redhat.com>
5545
5546         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5547         argument.
5548         (target_terminal_ours_for_output): Add argument.
5549         * target.c (debug_to_terminal_ours_for_output): Add argument.
5550         (update_current_target): Update.
5551         * inflow.c (terminal_ours_for_output): Add 'self' argument.
5552         * inferior.h (terminal_ours_for_output): Add 'self' argument.
5553         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5554
5555 2014-02-19  Tom Tromey  <tromey@redhat.com>
5556
5557         * target.h (struct target_ops) <to_terminal_inferior>: Add
5558         argument.
5559         * target.c (target_terminal_inferior): Add argument.
5560         (update_current_target): Update.
5561         * remote.c (remote_terminal_inferior): Add 'self' argument.
5562         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5563         * inflow.c (terminal_inferior): Add 'self' argument.
5564         * inferior.h (terminal_inferior): Add 'self' argument.
5565         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5566         (go32_terminal_inferior): Add 'self' argument.
5567
5568 2014-02-19  Tom Tromey  <tromey@redhat.com>
5569
5570         * target.h (struct target_ops) <to_terminal_init>: Add argument.
5571         (target_terminal_init): Add argument.
5572         * target.c (debug_to_terminal_init): Add argument.
5573         (update_current_target): Update.
5574         * inflow.c (terminal_init_inferior): Add 'self' argument.
5575         * inferior.h (terminal_init_inferior): Add 'self' argument.
5576         * go32-nat.c (go32_terminal_init): Add 'self' argument.
5577         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5578
5579 2014-02-19  Tom Tromey  <tromey@redhat.com>
5580
5581         * target.h (struct target_ops)
5582         <to_can_accel_watchpoint_condition>: Add argument.
5583         (target_can_accel_watchpoint_condition): Add argument.
5584         * target.c (debug_to_can_accel_watchpoint_condition): Add
5585         argument.
5586         (update_current_target): Update.
5587         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5588         'self' argument.
5589
5590 2014-02-19  Tom Tromey  <tromey@redhat.com>
5591
5592         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5593         Add argument.
5594         (target_region_ok_for_hw_watchpoint): Add argument.
5595         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5596         (default_region_ok_for_hw_watchpoint): Add argument.
5597         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5598         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5599         argument.
5600         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5601         argument.
5602         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5603         argument.
5604         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5605         'self' argument.
5606         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5607         'self' argument.
5608         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5609         'self' argument.
5610         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5611         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5612         'self' argument.
5613         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5614         Add 'self' argument.
5615
5616 2014-02-19  Tom Tromey  <tromey@redhat.com>
5617
5618         * target.h (struct target_ops) <to_insert_watchpoint>: Add
5619         argument.
5620         (target_insert_watchpoint): Add argument.
5621         * target.c (debug_to_insert_watchpoint): Add argument.
5622         (update_current_target): Update.
5623         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5624         * remote.c (remote_insert_watchpoint): Add 'self' argument.
5625         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5626         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5627         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5628         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5629         argument.
5630         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5631         (procfs_insert_hw_watchpoint): Add 'self' argument.
5632         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5633         argument.
5634         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5635         argument.
5636         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5637         argument.
5638         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5639         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5640         argument.
5641         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5642         'self' argument.
5643
5644 2014-02-19  Tom Tromey  <tromey@redhat.com>
5645
5646         * target.h (struct target_ops) <to_remove_watchpoint>: Add
5647         argument.
5648         (target_remove_watchpoint): Add argument.
5649         * target.c (debug_to_remove_watchpoint): Add argument.
5650         (update_current_target): Update.
5651         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5652         * remote.c (remote_remove_watchpoint): Add 'self' argument.
5653         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5654         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5655         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5656         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5657         argument.
5658         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5659         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5660         argument.
5661         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5662         argument.
5663         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5664         argument.
5665         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5666         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5667         argument.
5668         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5669         'self' argument.
5670
5671 2014-02-19  Tom Tromey  <tromey@redhat.com>
5672
5673         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5674         argument.
5675         (target_remove_hw_breakpoint): Add argument.
5676         * target.c (debug_to_remove_hw_breakpoint): Add argument.
5677         (update_current_target): Update.
5678         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5679         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5680         argument.
5681         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5682         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5683         argument.
5684         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5685         'self' argument.
5686
5687 2014-02-19  Tom Tromey  <tromey@redhat.com>
5688
5689         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5690         argument.
5691         (target_insert_hw_breakpoint): Add argument.
5692         * target.c (debug_to_insert_hw_breakpoint): Add argument.
5693         (update_current_target): Update.
5694         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5695         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5696         argument.
5697         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5698         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5699         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5700         argument.
5701         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5702         'self' argument.
5703
5704 2014-02-19  Tom Tromey  <tromey@redhat.com>
5705
5706         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5707         argument.
5708         (target_can_use_hardware_watchpoint): Add argument.
5709         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5710         (update_current_target): Update.
5711         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5712         argument.
5713         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5714         argument.
5715         * remote.c (remote_check_watch_resources): Add 'self' argument.
5716         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5717         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5718         argument.
5719         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5720         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5721         argument.
5722         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5723         argument.
5724         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5725         argument.
5726         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5727         argument.
5728         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5729         argument.
5730         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5731         argument.
5732         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5733         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5734         argument.
5735         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5736         'self' argument.
5737
5738 2014-02-19  Tom Tromey  <tromey@redhat.com>
5739
5740         * target.h (struct target_ops) <to_post_attach>: Add argument.
5741         (target_post_attach): Add argument.
5742         * target.c (debug_to_post_attach): Add argument.
5743         (update_current_target): Update.
5744         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5745         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5746         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5747         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5748         * inf-child.c (inf_child_post_attach): Add 'self' argument.
5749
5750 2014-02-19  Tom Tromey  <tromey@redhat.com>
5751
5752         * windows-nat.c (windows_close): Add 'self' argument.
5753         * tracepoint.c (tfile_close): Add 'self' argument.
5754         * target.h (struct target_ops) <to_close>: Add argument.
5755         * target.c (target_close): Add argument.
5756         (update_current_target): Update.
5757         * remote.c (remote_close): Add 'self' argument.
5758         * remote-sim.c (gdbsim_close): Add 'self' argument.
5759         * remote-mips.c (mips_close): Add 'self' argument.
5760         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5761         * record-full.c (record_full_close): Add 'self' argument.
5762         * record-btrace.c (record_btrace_close): Add 'self' argument.
5763         * monitor.h (monitor_close): Add 'self' argument.
5764         * monitor.c (monitor_close): Add 'self' argument.
5765         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5766         * linux-nat.c (linux_nat_close): Add argument.
5767         * go32-nat.c (go32_close): Add 'self' argument.
5768         * exec.c (exec_close_1): Add 'self' argument.
5769         * ctf.c (ctf_close): Add 'self' argument.
5770         * corelow.c (core_close): Add 'self' argument.
5771         (core_close_cleanup): Update.
5772         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5773         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5774
5775 2014-02-19  Tom Tromey  <tromey@redhat.com>
5776
5777         * remote.c (remote_load): New function.
5778         (init_remote_ops): Use it.
5779
5780 2014-02-19  Tom Tromey  <tromey@redhat.com>
5781
5782         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5783         argument.
5784         * common/linux-btrace.h (linux_supports_btrace): Update.
5785         * remote.c (remote_supports_btrace): Add "self" argument.
5786         * target-delegates.c: Rebuild.
5787         * target.c (target_supports_btrace): Remove.
5788         * target.h (struct target_ops) <to_supports_btrace>: Add
5789         target_ops argument.
5790         (target_supports_btrace): New define.
5791
5792 2014-02-19  Tom Tromey  <tromey@redhat.com>
5793
5794         * record-full.c (record_full_beneath_to_resume_ops)
5795         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5796         (record_full_beneath_to_wait)
5797         (record_full_beneath_to_store_registers_ops)
5798         (record_full_beneath_to_store_registers)
5799         (record_full_beneath_to_xfer_partial_ops)
5800         (record_full_beneath_to_xfer_partial)
5801         (record_full_beneath_to_insert_breakpoint_ops)
5802         (record_full_beneath_to_insert_breakpoint)
5803         (record_full_beneath_to_remove_breakpoint_ops)
5804         (record_full_beneath_to_remove_breakpoint)
5805         (record_full_beneath_to_stopped_by_watchpoint)
5806         (record_full_beneath_to_stopped_data_address)
5807         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5808         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5809         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5810         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5811         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5812         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5813         (tmp_to_stopped_data_address, tmp_to_async): Remove.
5814         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
5815         (record_full_resume, record_full_wait_1)
5816         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5817         (record_full_store_registers, record_full_xfer_partial)
5818         (record_full_insert_breakpoint, record_full_remove_breakpoint)
5819         (record_full_async, record_full_core_xfer_partial): Use target
5820         delegation.
5821         * target-delegates.c: Rebuild.
5822         * target.c (current_xfer_partial): Remove.
5823         (update_current_target): Do not INHERIT or de_fault
5824         to_insert_breakpoint, to_remove_breakpoint,
5825         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5826         to_is_async_p, to_async.  Do not set to_xfer_partial field.
5827         (default_xfer_partial): Simplify.
5828         (current_xfer_partial): Remove.
5829         (target_wait, target_resume): Simplify.
5830         (find_default_can_async_p, find_default_is_async_p): Update.
5831         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5832         to_xfer_partial, to_stopped_by_watchpoint,
5833         to_stopped_data_address.
5834         (target_store_registers): Simplify.
5835         (forward_target_remove_breakpoint)
5836         (forward_target_insert_breakpoint): Remove.
5837         (target_remove_breakpoint, target_insert_breakpoint)
5838         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5839         * target.h (struct target_ops) <to_resume, to_wait,
5840         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5841         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5842         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5843         markup.
5844         (forward_target_remove_breakpoint)
5845         (forward_target_insert_breakpoint): Remove.
5846         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5847         directly.
5848         (record_btrace_insert_breakpoint): Delegate directly.
5849
5850 2014-02-19  Tom Tromey  <tromey@redhat.com>
5851
5852         PR build/7701:
5853         * target-delegates.c: New file.
5854         * target.c: Include target-delegates.c.
5855         (init_dummy_target): Call install_dummy_methods.
5856         (complete_target_initialization): Call install_delegators.
5857         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5858         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5859         * make-target-delegates: New file.
5860
5861 2014-02-19  Tom Tromey  <tromey@redhat.com>
5862
5863         * record.c (find_record_target): Use find_target_at.
5864         * target.c (find_target_at): New function.
5865         * target.h (find_target_at): Declare.
5866
5867 2014-02-19  Tom Tromey  <tromey@redhat.com>
5868
5869         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5870         Add 'ops' argument.
5871         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5872         'ops' argument.
5873         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5874         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5875         'ops' argument.
5876         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5877         argument.
5878         * linux-nat.c (save_sigtrap): Update.
5879         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5880         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5881         (linux_nat_close): Update.
5882         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5883         argument.
5884         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5885         argument.
5886         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5887         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5888         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5889         (tmp_to_async): Add 'ops' argument.
5890         (record_full_stopped_by_watchpoint, record_full_async)
5891         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5892         argument.
5893         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5894         (m32r_stopped_by_watchpoint): Add 'ops' argument.
5895         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5896         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5897         (remote_is_async_p, remote_async): Add 'ops' argument.
5898         (remote_stopped_data_address): Update.
5899         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5900         * target.c (update_current_target)
5901         (find_default_can_async_p, find_default_is_async_p): Update.
5902         (init_dummy_target): Update.
5903         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5904         * target.h (struct target_ops) <to_stopped_by_watchpoint,
5905         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5906         (target_can_async_p, target_is_async_p, target_async)
5907         (target_stopped_by_watchpoint): Update.
5908
5909 2014-02-19  Yao Qi  <yao@codesourcery.com>
5910
5911         PR gdb/16220
5912         * gdbarch.sh: Remove startup_gdbarch.
5913         * gdbarch.c: Regenerated.
5914         * gdbarch.h: Likewise.
5915
5916 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
5917
5918         * rl78-tdep.c (rl78_g10_register_name): New function.
5919         (rl78_return_value): Add g10 support.
5920         (rl78_gdbarch_init): Register rl78_g10_register_name for the
5921         g10.
5922
5923 2014-02-17  Doug Evans  <xdje42@gmail.com>
5924
5925         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5926         (SUBDIR_GUILE_SRCS): Ditto.
5927         (scm-gsmob.o): Ditto.
5928
5929 2014-02-17  Yao Qi  <yao@codesourcery.com>
5930
5931         * gnu-nat.c (ILL_RPC): Declare defined function.
5932
5933 2014-02-17  Yao Qi  <yao@codesourcery.com>
5934
5935         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5936         mach_msg_type_number_t.
5937         (gnu_write_inferior): Likewise.
5938
5939 2014-02-17  Yao Qi  <yao@codesourcery.com>
5940
5941         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5942         in format string.
5943         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5944         (inf_validate_procs, inf_signal): Likewise.
5945         (S_exception_raise_request): Likewise.
5946         (do_mach_notify_dead_name): Likewise.
5947         (steal_exc_port): Likewise.
5948         (gnu_read_inferior): Change 'copy_count''s type to
5949         mach_msg_type_number_t.
5950         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
5951         format string.
5952
5953 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
5954
5955         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5956         flag.  Adjust all users; in particular...
5957         (gnu_wait): ..., don't decrement its value in here...
5958         (gnu_create_inferior): ..., and instead set the flag in here,
5959         around the startup_inferior call, and call that one with
5960         START_INFERIOR_TRAPS_EXPECTED.
5961
5962         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5963         (ILL_RPC): ... new macro.
5964         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5965         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5966         (do_mach_notify_send_once, S_proc_setmsgport_reply)
5967         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5968         functions with ILL_RPC macro.
5969         (S_proc_pid2task_reply, S_proc_task2pid_reply)
5970         (S_proc_task2proc_reply, S_proc_proc2task_reply)
5971         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5972         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5973         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5974         (S_proc_getlogin_reply, S_proc_getsid_reply)
5975         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5976         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5977         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5978         (S_proc_getnports_reply, S_proc_is_important_reply)
5979         (S_proc_get_code_reply): New stub functions, generated with
5980         ILL_RPC macro.
5981
5982         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5983         collected the type check structures.
5984
5985         * reply_mig_hack.awk: Don't expect to see the auto keyword.
5986
5987 2014-02-14  Doug Evans  <dje@google.com>
5988
5989         * target.c (target_write_partial): Fix result type.
5990
5991 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
5992
5993         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5994         the proper offsets to access fpregset_t.
5995
5996 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
5997
5998         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5999         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6000         * h8300-tdep.c (setmachinelist): Remove global.
6001         * hppa-tdep.c (hppa_sigtramp): Remove global.
6002         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6003         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6004         * ravenscar-thread.c (update_target_observer): Remove global.
6005         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6006
6007 2014-02-12  Tom Tromey  <tromey@redhat.com>
6008
6009         * common/rsp-low.c: Update comments.
6010         * common/rsp-low.h: Update comments.
6011
6012 2014-02-12  Tom Tromey  <tromey@redhat.com>
6013
6014         * common/rsp-low.c (convert_ascii_to_int): Remove.
6015         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6016
6017 2014-02-12  Tom Tromey  <tromey@redhat.com>
6018
6019         * common/rsp-low.h (unhexify): Don't declare.
6020         * common/rsp-low.c (unhexify): Remove.
6021
6022 2014-02-12  Tom Tromey  <tromey@redhat.com>
6023
6024         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6025         * common/rsp-low.c (convert_int_to_ascii): Remove.
6026
6027 2014-02-12  Tom Tromey  <tromey@redhat.com>
6028
6029         * common/rsp-low.h (hexify): Don't declare.
6030         * common/rsp-low.c (hexify): Remove.
6031
6032 2014-02-12  Tom Tromey  <tromey@redhat.com>
6033
6034         * common/rsp-low.c (hexify): Never take strlen of argument.
6035
6036 2014-02-12  Tom Tromey  <tromey@redhat.com>
6037
6038         * common/rsp-low.c (bin2hex): Never take strlen of argument.
6039         * remote.c (extended_remote_run, remote_rcmd)
6040         (remote_download_trace_state_variable, remote_save_trace_data)
6041         (remote_set_trace_notes): Update.
6042         * tracepoint.c (encode_source_string, tfile_write_status)
6043         (tfile_write_uploaded_tsv): Update.
6044
6045 2014-02-12  Tom Tromey  <tromey@redhat.com>
6046
6047         * tracepoint.c: Include rsp-low.h.
6048         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6049         * remote.c: Include rsp-low.h.
6050         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6051         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6052         (remote_unescape_input): Move to common/rsp-low.c.
6053         * common/rsp-low.h: New file.
6054         * common/rsp-low.c: New file.
6055         * Makefile.in (SFILES): Add common/rsp-low.c.
6056         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6057         (COMMON_OBS): Add rsp-low.o.
6058         (rsp-low.o): New target.
6059
6060 2014-02-12  Tom Tromey  <tromey@redhat.com>
6061
6062         * utils.h: Include print-utils.h.
6063         (host_address_to_string, plongest, pulongest, phex, phex_nz)
6064         (int_string, core_addr_to_string, core_addr_to_string_nz)
6065         (hex_string, hex_string_custom): Don't declare.
6066         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6067         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6068         (hex_string_custom, int_string, core_addr_to_string)
6069         (core_addr_to_string_nz, host_address_to_string): Move to
6070         common/print-utils.c.
6071         * common/print-utils.h: New file.
6072         * common/print-utils.c: New file
6073         * Makefile.in (SFILES): Add common/print-utils.c.
6074         (HFILES_NO_SRCDIR): Add common/print-utils.h.
6075         (COMMON_OBS): Add print-utils.o.
6076         (print-utils.o): New target.
6077
6078 2014-02-12  Tom Tromey  <tromey@redhat.com>
6079
6080         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6081
6082 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
6083
6084         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6085
6086 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
6087
6088         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6089         if a PT_IO ptrace request returns sucessfully but indicates that 0
6090         bytes were transferred.
6091
6092 2014-02-12  Pedro Alves  <palves@redhat.com>
6093             Kevin Buettner <kevinb@redhat.com>
6094
6095         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6096         TYPE_INSTANCE_FLAG_CODE_SPACE.
6097
6098 2014-02-12  Pedro Alves  <palves@redhat.com>
6099
6100         * h8300-tdep.c (pseudo_from_raw_register)
6101         (raw_from_pseudo_register): New functions.
6102         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6103         them.
6104
6105 2014-02-12  Pedro Alves  <palves@redhat.com>
6106
6107         * h8300-tdep.c (h8300_register_sim_regno): New function.
6108         (h8300_gdbarch_init): Install h8300_register_sim_regno as
6109         gdbarch_register_sim_regno hook.
6110
6111 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
6112
6113         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6114
6115 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
6116
6117         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6118
6119 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
6120
6121         * obsd-tdep.h (obsd_init_abi): New prototype.
6122         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6123         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6124         (obsd_init_abi): New functions.
6125         * i386obsd-tdep.c: Include "obsd-tdep.h".
6126         (i386obsd_init_abi): Call obsd_init_abi.
6127         * amd64obsd-tdep.c: Include "obsd-tdep.h".
6128         (amd64obsd_init_abi): Call obsd_init_abi.
6129         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6130         obsd-tdep.c to gdb_target_obs.
6131
6132 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
6133
6134         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6135         double float arguments to 16-byte in the argument slots.
6136
6137 2014-02-11  Doug Evans  <xdje42@gmail.com>
6138
6139         * configure.ac: Don't crash if pkg-config is not found and guile
6140         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
6141         in guile checks.
6142         * configure: Regenerate.
6143
6144 2014-02-11  Yao Qi  <yao@codesourcery.com>
6145
6146         * aix-thread.c (aix_thread_xfer_partial): Update comments.
6147         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6148         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6149         * gnu-nat.c (gnu_xfer_memory): Likewise.
6150         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
6151         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6152         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6153         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6154
6155 2014-02-11  Yao Qi  <yao@codesourcery.com>
6156
6157         * target.h (enum target_xfer_error): Rename to ...
6158         (enum target_xfer_status): ... it.  New.  All users updated.
6159         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6160         New.
6161         (TARGET_XFER_STATUS_ERROR_P): New macro.
6162         (target_xfer_error_to_string): Remove declaration.
6163         (target_xfer_status_to_string): Declare.
6164         (target_xfer_partial_ftype): Adjust it.
6165         (struct target_ops) <to_xfer_partial>: Return
6166         target_xfer_status.  Add argument xfered_len.  Update
6167         comments.
6168         * target.c (target_xfer_error_to_string): Rename to ...
6169         (target_xfer_status_to_string): ... it.  New.  All callers
6170         updated.
6171         (target_read_live_memory): Likewise.  Call target_xfer_partial
6172         instead of target_read.
6173         (memory_xfer_live_readonly_partial): Return
6174         target_xfer_status.  Add argument xfered_len.
6175         (raw_memory_xfer_partial): Likewise.
6176         (memory_xfer_partial_1): Likewise.
6177         (memory_xfer_partial): Likewise.
6178         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
6179         properly.  Update debug message.
6180         (default_xfer_partial, current_xfer_partial): Likewise.
6181         (target_write_partial): Likewise.
6182         (target_read_partial): Likewise.  All callers updated.
6183         (read_whatever_is_readable): Likewise.
6184         (target_write_with_progress): Likewise.
6185         (target_read_alloc_1): Likewise.
6186
6187         * aix-thread.c (aix_thread_xfer_partial): Likewise.
6188         * auxv.c (procfs_xfer_auxv): Likewise.
6189         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6190         * bfd-target.c (target_bfd_xfer_partial): Likewise.
6191         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6192         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6193         * corefile.c (read_memory): Adjust.
6194         * corelow.c (core_xfer_partial): Likewise.
6195         * ctf.c (ctf_xfer_partial): Likewise.
6196         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
6197         updated.
6198         (darwin_xfer_partial): Likewise.
6199         * exec.c (section_table_xfer_memory_partial): Likewise.  All
6200         callers updated.
6201         (exec_xfer_partial): Likewise.
6202         * exec.h (section_table_xfer_memory_partial): Update
6203         declaration.
6204         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
6205         negative.
6206         (gnu_xfer_partial): Likewise.
6207         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6208         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6209         (ia64_hpux_xfer_solib_got): Likewise.
6210         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
6211         type of 'partial_len' to ULONGEST.
6212         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6213         * linux-nat.c (linux_xfer_siginfo ): Likewise.
6214         (linux_nat_xfer_partial): Likewise.
6215         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6216         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6217         * monitor.c (monitor_xfer_memory): Likewise.
6218         (monitor_xfer_partial): Likewise.
6219         * procfs.c (procfs_xfer_partial): Likewise.
6220         * record-btrace.c (record_btrace_xfer_partial): Likewise.
6221         * record-full.c (record_full_xfer_partial): Likewise.
6222         (record_full_core_xfer_partial): Likewise.
6223         * remote-sim.c (gdbsim_xfer_memory): Likewise.
6224         (gdbsim_xfer_partial): Likewise.
6225         * remote.c (remote_write_bytes_aux): Likewise.  All callers
6226         updated.
6227         (remote_write_bytes, remote_read_bytes): Likewise.  All
6228         callers updated.
6229         (remote_flash_erase): Likewise.  All callers updated.
6230         (remote_write_qxfer): Likewise.  All callers updated.
6231         (remote_read_qxfer): Likewise.  All callers updated.
6232         (remote_xfer_partial): Likewise.
6233         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6234         (rs6000_xfer_shared_libraries): Likewise.
6235         * sol-thread.c (sol_thread_xfer_partial): Likewise.
6236         (sol_thread_xfer_partial): Likewise.
6237         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6238         (sparc_xfer_partial): Likewise.
6239         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
6240         updated.
6241         (spu_xfer_partial): Likewise.
6242         * spu-multiarch.c (spu_xfer_partial): Likewise.
6243         * tracepoint.c (tfile_xfer_partial): Likewise.
6244         * windows-nat.c (windows_xfer_memory): Likewise.
6245         (windows_xfer_shared_libraries): Likewise.
6246         (windows_xfer_partial): Likewise.
6247         * valprint.c: Replace 'target_xfer_error' with
6248         'target_xfer_status' in comments.
6249
6250 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
6251
6252         Checked in by Joel Brobecker <brobecker@adacore.com>.
6253         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6254
6255 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
6256
6257         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6258         function parameters.
6259
6260 2014-02-10  Will Newton  <will.newton@linaro.org>
6261
6262         * elfread.c (elf_rel_plt_read): Look for a .got section if
6263         looking up .got.plt fails.
6264         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6265         on address passed to elf_gnu_ifunc_record_cache.
6266         (elf_gnu_ifunc_resolve_addr): Likewise.
6267         (elf_gnu_ifunc_resolver_return_stop): Likewise.
6268
6269 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
6270
6271         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6272         (X_RETTURN): New macro.
6273         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6274
6275         * sparc64-tdep.c (sparc64_init_abi): Hook
6276         sparc_in_function_epilogue_p.
6277
6278 2014-02-10  Gary Benson  <gbenson@redhat.com>
6279
6280         * symfile-debug.c (debug_qf_expand_symtabs_matching):
6281         Rename name_matcher to symbol_matcher.
6282
6283 2014-02-10  Gary Benson  <gbenson@redhat.com>
6284
6285         * symfile-debug.c (debug_qf_expand_symtabs_matching):
6286         Use expand_symtabs_file_matcher_ftype and
6287         expand_symtabs_symbol_matcher_ftype.
6288
6289 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
6290
6291         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6292         (struct ada_symbol_cache): New.
6293         (ada_free_symbol_cache): Forward declare.
6294         (struct ada_pspace_data): New.
6295         (ada_pspace_data_handle): New static global.
6296         (get_ada_pspace_data, ada_pspace_data_cleanup)
6297         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6298         (cache_space, cache): Delete, now folded inside struct
6299         ada_pspace_data.
6300         (ada_get_symbol_cache): New function.
6301         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6302         implementation.
6303         (_initialize_ada_language): Remove initialization of cache_space.
6304         Move call to observer_attach_inferior_exit up, grouping it
6305         with the other observer registrations inside this function.
6306         Rename command to be more general.  Add call to
6307         register_program_space_data_with_cleanup.
6308
6309 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
6310
6311         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6312         ada_new_objfile_observer.
6313         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6314         (_initialize_tasks): Update uses of ada_new_objfile_observer
6315         and ada_tasks_normal_stop_observer.
6316
6317 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
6318
6319         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6320         returned by the 'Length attribute to integer.
6321
6322 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
6323
6324         * ada-lang.c (_initialize_ada_language): Initialize
6325         cache_space obstack.
6326
6327 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
6328
6329         * ada-lang.c (HASH_SIZE): New macro.
6330         (struct cache_entry): New type.
6331         (cache_space, cache): New static globals.
6332         (ada_clear_symbol_cache, find_entry): New functions.
6333         (lookup_cached_symbol, cache_symbol): Implement.
6334         (ada_new_objfile_observer, ada_free_objfile_observer): New.
6335         (_initialize_ada_language): Attach ada_new_objfile_observer
6336         and ada_free_objfile_observer.
6337
6338 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
6339
6340         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6341         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6342         struct block * parameter.
6343         (ada_lookup_symbol_list_worker): Constify local variable "block".
6344         Remove cast which is no longer necessary.
6345
6346 2014-02-10  Doug Evans  <xdje42@gmail.com>
6347
6348         Add Guile as an extension language.
6349         * NEWS: Mention Guile scripting.
6350         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6351         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6352         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6353         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6354         (CLIBS): Add GUILE_LIBS.
6355         (install-guile): New rule.
6356         (guile.o): New rule.
6357         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6358         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6359         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6360         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6361         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6362         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6363         (scm-type.o, scm-utils.o, scm-value.o): New rules.
6364         * configure.ac: New option --with-guile.
6365         * configure: Regenerate.
6366         * config.in: Regenerate.
6367         * auto-load.c: Remove #include "python/python.h".  Add #include
6368         "gdb/section-scripts.h".
6369         (source_section_scripts): Handle Guile scripts.
6370         (_initialize_auto_load): Add name of Guile objfile script to
6371         scripts-directory help text.
6372         * breakpoint.c (condition_command): Tweak comment to include Scheme.
6373         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6374         (struct breakpoint): New member scm_bp_object.
6375         * defs.h (enum command_control_type): New value guile_control.
6376         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
6377         "extension.h".
6378         (show_user): Update comment.
6379         (_initialize_cli_cmds): Update help text for "show user".  Update help
6380         text for max-user-call-depth.
6381         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
6382         "extension.h".
6383         (multi_line_command_p): Add guile_control.
6384         (print_command_lines): Handle guile_control.
6385         (execute_control_command, recurse_read_control_structure): Ditto.
6386         (process_next_line): Recognize "guile" commands.
6387         * disasm.c (gdb_disassemble_info): Make non-static.
6388         * disasm.h: #include "dis-asm.h".
6389         (struct gdbarch): Add forward decl.
6390         (gdb_disassemble_info): Declare.
6391         * extension.c: #include "guile/guile.h".
6392         (extension_languages): Add guile.
6393         (get_ext_lang_defn): Handle EXT_LANG_GDB.
6394         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6395         * gdbtypes.c (get_unsigned_type_max): New function.
6396         (get_signed_type_minmax): New function.
6397         * gdbtypes.h (get_unsigned_type_max): Declare.
6398         (get_signed_type_minmax): Declare.
6399         * guile/README: New file.
6400         * guile/guile-internal.h: New file.
6401         * guile/guile.c: New file.
6402         * guile/guile.h: New file.
6403         * guile/scm-arch.c: New file.
6404         * guile/scm-auto-load.c: New file.
6405         * guile/scm-block.c: New file.
6406         * guile/scm-breakpoint.c: New file.
6407         * guile/scm-disasm.c: New file.
6408         * guile/scm-exception.c: New file.
6409         * guile/scm-frame.c: New file.
6410         * guile/scm-gsmob.c: New file.
6411         * guile/scm-iterator.c: New file.
6412         * guile/scm-lazy-string.c: New file.
6413         * guile/scm-math.c: New file.
6414         * guile/scm-objfile.c: New file.
6415         * guile/scm-ports.c: New file.
6416         * guile/scm-pretty-print.c: New file.
6417         * guile/scm-safe-call.c: New file.
6418         * guile/scm-string.c: New file.
6419         * guile/scm-symbol.c: New file.
6420         * guile/scm-symtab.c: New file.
6421         * guile/scm-type.c: New file.
6422         * guile/scm-utils.c: New file.
6423         * guile/scm-value.c: New file.
6424         * guile/lib/gdb.scm: New file.
6425         * guile/lib/gdb/boot.scm: New file.
6426         * guile/lib/gdb/experimental.scm: New file.
6427         * guile/lib/gdb/init.scm: New file.
6428         * guile/lib/gdb/iterator.scm: New file.
6429         * guile/lib/gdb/printing.scm: New file.
6430         * guile/lib/gdb/types.scm: New file.
6431         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6432         (VPATH): Add $(GUILE_SRCDIR).
6433         (GUILE_DIR): New variable.
6434         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6435         (all): Add stamp-guile dependency.
6436         (stamp-guile): New rule.
6437         (clean-guile, install-guile, uninstall-guile): New rules.
6438         (install-only): Add install-guile dependency.
6439         (uninstall): Add uninstall-guile dependency.
6440         (clean): Add clean-guile dependency.
6441
6442 2014-02-09  Doug Evans  <xdje42@gmail.com>
6443
6444         Revert this patch (which I approved, mea culpa).
6445
6446         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
6447
6448         * Makefile.in (all-lib): Remove.
6449         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6450
6451 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6452
6453         Fix Python stack corruption.
6454         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6455         gdb_py_longest.
6456
6457 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
6458
6459         * Makefile.in (all-lib): Remove.
6460         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6461
6462 2014-02-07  Doug Evans  <dje@google.com>
6463
6464         * extension-priv.h (extension_language_script_ops): Add comment.
6465         (extension_language_ops): Add comment.
6466         (active_ext_lang_state): Fix typo in comment.
6467
6468 2014-02-07  Pedro Alves  <palves@redhat.com>
6469
6470         PR breakpoints/16292
6471         * infrun.c (handle_signal_stop) <signal arrives while stepping
6472         over a breakpoint>: Switch back to the stepping thread.
6473
6474 2014-02-07  Yao Qi  <yao@codesourcery.com>
6475
6476         * target.c (target_xfer_partial): Return zero if LEN is zero.
6477
6478 2014-02-07  Yao Qi  <yao@codesourcery.com>
6479
6480         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6481         (ld_so_xfer_auxv): Likewise.
6482         * bfd-target.c (target_bfd_xfer_partial): Likewise.
6483         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6484         * corelow.c (core_xfer_partial): Likewise.
6485         * ctf.c (ctf_xfer_partial): Likewise.
6486         * darwin-nat.c (darwin_read_dyld_info): Likewise.
6487         (darwin_xfer_partial): Likewise.
6488         * exec.c (exec_xfer_partial): Likewise.
6489         * gnu-nat.c (gnu_xfer_partial): Likewise.
6490         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6491         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6492         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6493         * linux-nat.c (linux_xfer_siginfo): Likewise.
6494         (linux_proc_xfer_spu): Likewise.
6495         * procfs.c (procfs_xfer_partial): Likewise.
6496         * record-full.c (record_full_xfer_partial): Likewise.
6497         (record_full_core_xfer_partial): Likewise.
6498         * remote-sim.c (gdbsim_xfer_partial): Likewise.
6499         * remote.c (remote_write_qxfer): Likewise.
6500         (remote_write_qxfer, remote_read_qxfer): Likewise.
6501         (remote_xfer_partial): Likewise.
6502         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6503         (rs6000_xfer_shared_libraries): Likewise.
6504         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6505         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6506         (spu_xfer_partial): Likewise.
6507         * target.c (memory_xfer_partial_1): Likewise.
6508         * tracepoint.c (tfile_xfer_partial): Likewise.
6509         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6510         (windows_xfer_partial): Likewise.
6511
6512 2014-02-07  Yao Qi  <yao@codesourcery.com>
6513
6514         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
6515         comments.
6516         (core_xfer_shared_libraries_aix): Likewise.
6517         * gdbarch.c, gdbarch.h: Regenerated.
6518         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6519         ULONGEST.  Change 'len_avail' type to ULONGEST.
6520         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6521         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6522         declaration.
6523         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6524
6525 2014-02-07  Yao Qi  <yao@codesourcery.com>
6526
6527         * corefile.c (memory_error): Get 'exception' from ERR and pass
6528         'exception' to throw_error.
6529
6530 2014-02-06  Doug Evans  <xdje42@gmail.com>
6531
6532         * configure.ac (libpython checking): Remove all but python.o from
6533         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
6534         * configure: Regenerate.
6535
6536         * Makefile.in (SFILES): Add extension.c.
6537         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6538         (COMMON_OBS): Add extension.o.
6539         * extension.h: New file.
6540         * extension-priv.h: New file.
6541         * extension.c: New file.
6542
6543         * python/python-internal.h: #include "extension.h".
6544         (gdbpy_auto_load_enabled): Declare.
6545         (gdbpy_apply_val_pretty_printer): Declare.
6546         (gdbpy_apply_frame_filter): Declare.
6547         (gdbpy_preserve_values): Declare.
6548         (gdbpy_breakpoint_cond_says_stop): Declare.
6549         (gdbpy_breakpoint_has_cond): Declare.
6550         (void source_python_script_for_objfile): Delete.
6551         * python/python.c: #include "extension-priv.h".
6552         Delete inclusion of "observer.h".
6553         (extension_language_python): Moved here and renamed from
6554         script_language_python in py-auto-load.c.
6555         Redefined to be of type extension_language_defn.
6556         (python_extension_script_ops): New global.
6557         (python_extension_ops): New global.
6558         (struct python_env): New member previous_active.
6559         (restore_python_env): Call restore_active_ext_lang.
6560         (ensure_python_env): Call set_active_ext_lang.
6561         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6562         New arg extlang.
6563         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6564         New arg extlang.
6565         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6566         New arg extlang.
6567         (gdbpy_eval_from_control_command): Renamed from
6568         eval_python_from_control_command, made static.  New arg extlang.
6569         (gdbpy_source_script) Renamed from source_python_script, made static.
6570         New arg extlang.
6571         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
6572         result to int.  New arg extlang.
6573         (gdbpy_source_objfile_script): Renamed from
6574         source_python_script_for_objfile, made static.  New arg extlang.
6575         (gdbpy_start_type_printers): Renamed from start_type_printers, made
6576         static.  New args extlang, extlang_printers.  Change result type to
6577         "void".
6578         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6579         static.  New arg extlang.  Rename arg printers to extlang_printers
6580         and change type to ext_lang_type_printers *.
6581         (gdbpy_free_type_printers): Renamed from free_type_printers, made
6582         static.  Replace argument arg with extlang, extlang_printers.
6583         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6584         (!HAVE_PYTHON, source_python_script): Delete.
6585         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6586         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6587         (!HAVE_PYTHON, start_type_printers): Delete.
6588         (!HAVE_PYTHON, apply_type_printers): Delete.
6589         (!HAVE_PYTHON, free_type_printers): Delete.
6590         (_initialize_python): Delete call to observer_attach_before_prompt.
6591         (finalize_python): Set/restore active extension language.
6592         (gdbpy_finish_initialization) Renamed from
6593         finish_python_initialization, made static.  New arg extlang.
6594         (gdbpy_initialized): New function.
6595         * python/python.h: #include "extension.h".  Delete #include
6596         "value.h", "mi/mi-cmds.h".
6597         (extension_language_python): Declare.
6598         (GDBPY_AUTO_FILE_NAME): Delete.
6599         (enum py_bt_status): Moved to extension.h and renamed to
6600         ext_lang_bt_status.
6601         (enum frame_filter_flags): Moved to extension.h.
6602         (enum py_frame_args): Moved to extension.h and renamed to
6603         ext_lang_frame_args.
6604         (finish_python_initialization): Delete.
6605         (eval_python_from_control_command): Delete.
6606         (source_python_script): Delete.
6607         (apply_val_pretty_printer): Delete.
6608         (apply_frame_filter): Delete.
6609         (preserve_python_values): Delete.
6610         (gdbpy_script_language_defn): Delete.
6611         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6612         (start_type_printers, apply_type_printers, free_type_printers): Delete.
6613
6614         * auto-load.c: #include "extension.h".
6615         (GDB_AUTO_FILE_NAME): Delete.
6616         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
6617         (script_language_gdb): Delete, moved to extension.c and renamed to
6618         extension_language_gdb.
6619         (source_gdb_script_for_objfile): Delete.
6620         (auto_load_pspace_info): New member unsupported_script_warning_printed.
6621         (loaded_script): Change type of language member to
6622         struct extension_language_defn *.
6623         (init_loaded_scripts_info): Initialize
6624         unsupported_script_warning_printed.
6625         (maybe_add_script): Make static.  Change type of language arg to
6626         struct extension_language_defn *.
6627         (clear_section_scripts): Reset unsupported_script_warning_printed.
6628         (auto_load_objfile_script_1): Rewrite to use extension language API.
6629         (auto_load_objfile_script): Make public.  Remove support-compiled-in
6630         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6631         (source_section_scripts): Rewrite to use extension language API.
6632         (load_auto_scripts_for_objfile): Rewrite to use
6633         auto_load_scripts_for_objfile.
6634         (collect_matching_scripts_data): Change type of language member to
6635         struct extension_language_defn *.
6636         (auto_load_info_scripts): Change type of language arg to
6637         struct extension_language_defn *.
6638         (unsupported_script_warning_print): New function.
6639         (script_not_found_warning_print): Make static.
6640         (_initialize_auto_load): Rewrite construction of scripts-directory
6641         help.
6642         * auto-load.h (struct objfile): Add forward decl.
6643         (struct script_language): Delete.
6644         (struct auto_load_pspace_info): Add forward decl.
6645         (struct extension_language_defn): Add forward decl.
6646         (maybe_add_script): Delete.
6647         (auto_load_objfile_script): Declare.
6648         (script_not_found_warning_print): Delete.
6649         (auto_load_info_scripts): Update prototype.
6650         (auto_load_gdb_scripts_enabled): Declare.
6651         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6652         auto_load_python_scripts_enabled and made public.
6653         (script_language_python): Delete, moved to python.c.
6654         (gdbpy_script_language_defn): Delete.
6655         (info_auto_load_python_scripts): Update to use
6656         extension_language_python.
6657
6658         * breakpoint.c (condition_command): Replace call to
6659         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6660         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6661         with call to breakpoint_ext_lang_cond_says_stop.
6662         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6663         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
6664         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6665         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6666         New arg slang.
6667         (local_setattro): Print name of extension language with existing
6668         stop condition.
6669
6670         * valprint.c (val_print, value_print): Update to call
6671         apply_ext_lang_val_pretty_printer.
6672         * cp-valprint.c (cp_print_value): Update call to
6673         apply_ext_lang_val_pretty_printer.
6674         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6675         (gdbpy_apply_val_pretty_printer): Renamed from
6676         apply_val_pretty_printer.  New arg extlang.
6677         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6678
6679         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6680         extension language API.
6681         * cli/cli-script.c (execute_control_command): Update to call
6682         eval_ext_lang_from_control_command.
6683
6684         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6685         enum ext_lang_bt_status values.  Update call to
6686         apply_ext_lang_frame_filter.
6687         (mi_cmd_stack_list_locals): Ditto.
6688         (mi_cmd_stack_list_args): Ditto.
6689         (mi_cmd_stack_list_variables): Ditto.
6690         * mi/mi-main.c: Delete #include "python/python-internal.h".
6691         Add #include "extension.h".
6692         (mi_cmd_list_features): Replace reference to python internal variable
6693         gdb_python_initialized with call to ext_lang_initialized_p.
6694
6695         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6696         Update to use enum ext_lang_frame_args.  Update to call
6697         apply_ext_lang_frame_filter.
6698         * python/py-framefilter.c (extract_sym): Update to use enum
6699         ext_lang_bt_status.
6700         (extract_value, py_print_type, py_print_value): Ditto.
6701         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6702         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6703         (py_print_frame): Ditto.
6704         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6705         New arg extlang.  Update to use enum ext_lang_bt_status.
6706
6707         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6708         finish_python_initialization.  Replace with call to
6709         finish_ext_lang_initialization.
6710
6711         * typeprint.c (do_free_global_table): Update to call
6712         free_ext_lang_type_printers.
6713         (create_global_typedef_table): Update to call
6714         start_ext_lang_type_printers.
6715         (find_global_typedef): Update to call apply_ext_lang_type_printers.
6716         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6717         (type_print_options): Change type of global_printers from "void *"
6718         to "struct ext_lang_type_printers *".
6719
6720         * value.c (preserve_values): Update to call preserve_ext_lang_values.
6721         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6722         (gdbpy_preserve_values): Renamed from preserve_python_values.
6723         New arg extlang.
6724         (!HAVE_PYTHON, preserve_python_values): Delete.
6725
6726         * utils.c (quit_flag): Delete, moved to extension.c.
6727         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6728         extension.c.
6729
6730         * eval.c: Delete #include "python/python.h".
6731         * main.c: Delete #include "python/python.h".
6732
6733         * defs.h: Update comment.
6734
6735 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
6736
6737         GDB 7.7 released.
6738
6739 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
6740
6741         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6742         defined.
6743
6744 2014-02-05  Yao Qi  <yao@codesourcery.com>
6745
6746         * remote.c (remote_pass_signals): Remove local 'buf' and use
6747         rs->buf.
6748         (remote_program_signals): Likewise.
6749
6750 2014-02-05  Yao Qi  <yao@codesourcery.com>
6751
6752         * ctf.c: Include "inferior.h" and "gdbthread.h".
6753         (CTF_PID): A new macro.
6754         (ctf_open): Call inferior_appeared and add_thread_silent.
6755         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6756         (ctf_thread_alive): New function.
6757         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6758
6759 2014-02-05  Yao Qi  <yao@codesourcery.com>
6760
6761         Revert this patch:
6762
6763         2013-05-24  Yao Qi  <yao@codesourcery.com>
6764
6765         * tracepoint.c (TFILE_PID): Remove.
6766         (tfile_open): Don't add thread and inferior.
6767         (tfile_close): Don't set 'inferior_ptid'.  Don't call
6768         exit_inferior_silent.
6769         (tfile_thread_alive): Remove.
6770         (init_tfile_ops): Don't set field 'to_thread_alive' of
6771         tfile_ops.
6772
6773 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
6774
6775         * remote.c (remote_start_remote): Call remote_check_symbols even
6776         if only symbol-file (not file) has been given.
6777
6778 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6779
6780         * gdbarch.sh (skip_entrypoint): New callback.
6781         * gdbarch.c, gdbarch.h: Regenerate.
6782         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6783         * infrun.c (fill_in_stop_func): Likewise.
6784         * ppc-linux-tdep.c: Include "elf/ppc64.h".
6785         (ppc_elfv2_elf_make_msymbol_special): New function.
6786         (ppc_elfv2_skip_entrypoint): Likewise.
6787         (ppc_linux_init_abi): Install them for ELFv2.
6788
6789 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6790
6791         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6792         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6793         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6794         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
6795         structures returned in GPRs.
6796
6797 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6798
6799         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6800         offset to the stack parameter list for the ELFv2 ABI.
6801
6802 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6803
6804         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6805         set_gdbarch_convert_from_func_ptr_addr and
6806         set_gdbarch_elf_make_msymbol_special for ELFv1.
6807         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6808         function descriptors on ELFv1.
6809         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
6810         set up r12 at function entry.
6811
6812 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6813
6814         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6815         (struct gdbarch_tdep): New member elf_abi.
6816
6817         * rs6000-tdep.c: Include "elf/ppc64.h".
6818         (rs6000_gdbarch_init): Detect ELF ABI version.
6819
6820 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6821
6822         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6823         within a register pair holding a DFP 128-bit value on little-endian.
6824         (ppc64_sysv_abi_return_value_base): Likewise.
6825         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6826         (dfp_pseudo_register_write): Likewise.
6827
6828 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6829
6830         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6831         offset on little-endian when passing _Decimal32.
6832         (ppc64_sysv_abi_return_value_base): Likewise for return values.
6833
6834 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6835
6836         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6837         of the overlapped FP register within the VSX register on little-
6838         endian platforms.
6839         (efpr_pseudo_register_write): Likewise.
6840
6841 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6842
6843         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6844         offset on little-endian when passing small structures.
6845
6846 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6847
6848         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6849         (struct ppc64_sysv_argpos): New data structure.
6850         (ppc64_sysv_abi_push_float): Remove.
6851         (ppc64_sysv_abi_push_val): New function.
6852         (ppc64_sysv_abi_push_integer): Likewise.
6853         (ppc64_sysv_abi_push_freg): Likewise.
6854         (ppc64_sysv_abi_push_vreg): Likewise.
6855         (ppc64_sysv_abi_push_param): Likewise.
6856         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6857         (ppc64_sysv_abi_return_value_base): New function.
6858         (ppc64_sysv_abi_return_value): Refactor to use it.
6859
6860 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6861
6862         * NEWS: Document new target powerpc64le-*-linux*.
6863
6864 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
6865
6866         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6867         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6868         core dumps.
6869         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6870         register set used in ELF core dumps.  Add floating-point register set.
6871
6872 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
6873
6874         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite 
6875         dwarf2_to_gdb[] table using symbolic constants.  Adjust
6876         penultimate entry from number representing the PC register
6877         to symbolic constant representing the MDR register.  Add
6878         constant for the PC register to the end of the table.
6879
6880 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
6881
6882         * bsd-kvm.c: Include <sys/param.h>
6883
6884 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
6885
6886         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6887
6888 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
6889
6890         * ada-lang.h (clear_ada_sym_cache): Delete.
6891
6892 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
6893
6894         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6895
6896 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
6897
6898         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6899           the sigreturn register save area only if the syscall is
6900           sigreturn.
6901
6902 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
6903
6904         * valops.c (value_slice): Minor reformatting.
6905
6906 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
6907
6908         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6909
6910 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
6911
6912         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6913         New static globals.
6914         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6915         (ada_ignore_descriptive_types_p): New static global.
6916         (find_parallel_type_by_descriptive_type): Return immediately
6917         if ada_ignore_descriptive_types_p is set.
6918         (_initialize_ada_language): Register new commands "maintenance
6919         set ada", "maintenance show ada", "maintenance set ada
6920         ignore-descriptive-types" and "maintenance show ada
6921         ignore-descriptive-types".
6922         * NEWS: Add entry for new "maint ada set/show
6923         ignore-descriptive-types" commands.
6924
6925 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
6926
6927         * record-btrace.c (record_btrace_close): Call btrace_teardown
6928         for all threads.
6929
6930 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6931
6932         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6933         "ui-out.h".
6934
6935 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6936
6937         * ada-typeprint (type_is_full_subrange_of_target_type):
6938         New function.
6939         (print_range): Add parameter bounds_prefered_p.  If not set,
6940         try printing range types using the name of their base type.
6941         (print_range_type): Add parameter bounds_prefered_p.
6942         Use it in call to print_range.
6943         (print_array_type, ada_print_type): Update calls to print_range
6944         and print_range_type.
6945
6946 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6947
6948         * ada-typeprint.c (print_array_type, print_choices, print_range)
6949         (print_range_bound, print_dynamic_range_bound, print_range_type):
6950         Remove declaration.
6951
6952 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6953
6954         * ada-typeprint.c (print_range): Add missing empty line
6955         after local declaration.
6956
6957 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6958
6959         * ada-valprint.c (print_optional_low_bound): Get index_type's
6960         target type for as long as it is a TYPE_CODE_RANGE.
6961
6962 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6963
6964         * procfs.c (procfs_make_note_section): Remove assertion and
6965         associated comment.
6966
6967 2014-01-24  Yao Qi  <yao@codesourcery.com>
6968
6969         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6970         * corelow.c (get_core_siginfo): Likewise.
6971
6972 2014-01-24  Yao Qi  <yao@codesourcery.com>
6973
6974         * remote.c (remote_write_bytes_aux): Change type of 'len' to
6975         ULONGEST.  Don't check 'len' is negative.
6976         (remote_write_bytes):  Change type of 'len' to ULONGEST.
6977
6978 2014-01-23  Tom Tromey  <tromey@redhat.com>
6979
6980         PR python/16485:
6981         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6982         Handle exception from frame.block.
6983         (FrameVars.fetch_frame_locals): Likewise.
6984
6985 2014-01-23  Tom Tromey  <tromey@redhat.com>
6986
6987         PR python/16487:
6988         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6989         on a NULL pointer.  Move "goto error" to correct place.
6990
6991 2014-01-23  Tom Tromey  <tromey@redhat.com>
6992
6993         PR python/16491:
6994         * python/py-framefilter.c (apply_frame_filter): Call
6995         ensure_python_env after computing gdbarch.
6996
6997 2014-01-23  Yao Qi  <yao@codesourcery.com>
6998
6999         * target.c (raw_memory_xfer_partial): Change argument type
7000         from void * to gdb_byte *.
7001         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7002
7003 2014-01-22  Doug Evans  <dje@google.com>
7004
7005         New gdbserver option --debug-format=timestamp.
7006         * NEWS: Mention it.
7007
7008 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7009
7010         * syscalls/s390x-linux.xml: New file.
7011         * syscalls/s390-linux.xml: New file.
7012         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7013         (XML_SYSCALL_FILENAME_S390X): Likewise.
7014         (op_svc): New enum value for SVC opcode.
7015         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7016         (s390_linux_get_syscall_number): New function.
7017         (s390_gdbarch_init): Register '*get_syscall_number' and the
7018         syscall xml file name.
7019         * data-directory/Makefile.in (SYSCALLS_FILES): Add
7020         "s390-linux.xml" and "s390x-linux.xml".
7021         * NEWS: Announce new feature.
7022
7023 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
7024
7025         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7026
7027 2014-01-22  Pedro Alves  <palves@redhat.com>
7028
7029         * xtensa-config.c: Include defs.h.
7030
7031 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
7032
7033         * common/common-utils.h: Add "ARI:" comment beside __func__
7034         reference.
7035
7036 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
7037
7038         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7039         documentation a bit.
7040
7041 2014-01-21  Roland McGrath  <mcgrathr@google.com>
7042
7043         * configure.ac: Call AM_PROG_INSTALL_STRIP.
7044         * configure: Regenerate.
7045         * aclocal.m4: Regenerate.
7046         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7047         New substituted variables.
7048         (install-strip): New target.
7049         (INSTALL_SCRIPT): New substituted variable.
7050         (FLAGS_TO_PASS): Add it.
7051         (install-only): Use $(INSTALL_SCRIPT) rather than
7052         $(INSTALL_PROGRAM) for gcore.
7053
7054 2014-01-20  Tom Tromey  <tromey@redhat.com>
7055
7056         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7057         together.
7058
7059 2014-01-20  Tom Tromey  <tromey@redhat.com>
7060
7061         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7062         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7063         (deprecated_cmd_warning, complete_on_cmdlist): Update.
7064         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7065         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7066         (struct cmd_list_element) <flags>: Remove.
7067         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7068         doc_allocated>: New fields.
7069         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7070         bitfields.
7071         * maint.c (maintenance_do_deprecate): Update.
7072         * top.c (execute_command): Update.
7073
7074 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
7075
7076         * xtensa-linux-nat.c: Include asm/ptrace.h.
7077
7078 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
7079
7080         * Makefile.in (SFILES): Add d-support.c.
7081         (COMMON_OBS): Add d-support.o.
7082         * d-lang.h (d_parse_symbol): Add comment, now defined in
7083         d-support.c.
7084         * d-lang.c (parse_call_convention)
7085         (parse_attributes, parse_function_types)
7086         (parse_function_args, parse_type, parse_identifier)
7087         (call_convention_p, d_parse_symbol): Move functions to ...
7088         * d-support.c: ... New file.
7089
7090 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
7091
7092         * d-lang.h (d_parse_symbol): Add declaration.
7093         * d-lang.c (extract_identifiers)
7094         (extract_type_info): Remove functions.
7095         (parse_call_convention, parse_attributes)
7096         (parse_function_types, parse_function_args)
7097         (parse_type, parse_identifier, call_convention_p)
7098         (d_parse_symbol): New functions.
7099         (d_demangle): Use d_parse_symbol to demangle D symbols.
7100
7101 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
7102
7103         * d-lang.h (struct builtin_d_type): New data type.
7104         (builtin_d_type): Add declaration.
7105         * d-lang.c (d_language_arch_info, build_d_types)
7106         (builtin_d_type): New functions.
7107         (enum d_primitive_types): New data type.
7108         (d_language_defn): Change c_language_arch_info to
7109         d_language_arch_info.
7110         (d_type_data): New static variable.
7111         (_initialize_d_language): Initialize d_type_data.
7112
7113 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
7114
7115         * d-lang.h (d_main_name): Add declaration.
7116         * d-lang.c (d_main_name): New function.
7117         * symtab.c (find_main_name): Add call to d_main_name.
7118
7119 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
7120
7121         * d-lang.c (d_language_defn): Change macro_expansion_c to
7122         macro_expansion_no.
7123
7124 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
7125
7126         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7127
7128 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
7129
7130         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7131         gdb_exception" declaration.
7132         * remote.c (getpkt_or_notif_sane): Likewise.
7133
7134 2014-01-17  Doug Evans  <dje@google.com>
7135
7136         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7137         function, contents of dirnames_to_char_ptr_vec_append moved here.
7138         (delim_string_to_char_ptr_vec): New function.
7139         (dirnames_to_char_ptr_vec_append): Rewrite.
7140         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7141
7142 2014-01-17  Doug Evans  <dje@google.com>
7143
7144         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7145         and moved here ...
7146         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7147         #include "common-utils.h".
7148         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7149         * common/vec.h (VEC_ASSERT_PASS): Update.
7150         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7151         (MACH_CHECK_ERROR): Update.
7152
7153 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
7154
7155         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7156         comments.
7157         * gdbarch.h: Regenerate.
7158
7159 2014-01-16  Tom Tromey  <tromey@redhat.com>
7160
7161         * value.c (struct value) <regnum>: Move earlier.
7162
7163 2014-01-16  Tom Tromey  <tromey@redhat.com>
7164
7165         * remote.c (extended_remote_create_inferior): Rename from
7166         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
7167         old implementation.
7168
7169 2014-01-16  Pedro Alves  <palves@redhat.com>
7170
7171         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7172         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7173         the backchain.
7174
7175 2014-01-16  Doug Evans  <dje@google.com>
7176
7177         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7178
7179 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7180
7181         * btrace.h (btrace_thread_flag): New.
7182         (struct btrace_thread_info) <flags>: New.
7183         * record-btrace.c (record_btrace_resume_thread)
7184         (record_btrace_find_thread_to_move, btrace_step_no_history)
7185         (btrace_step_stopped, record_btrace_start_replaying)
7186         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7187         (record_btrace_find_resume_thread): New.
7188         (record_btrace_resume, record_btrace_wait): Extend.
7189         (record_btrace_can_execute_reverse): New.
7190         (record_btrace_open): Fail in non-stop mode.
7191         (record_btrace_set_replay): Split into this, ...
7192         (record_btrace_stop_replaying): ... this, ...
7193         (record_btrace_clear_histories): ... and this.
7194         (init_record_btrace_ops): Init to_can_execute_reverse.
7195         * NEWS: Announce it.
7196
7197 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7198
7199         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7200         (forward_target_decr_pc_after_break)
7201         (target_decr_pc_after_break): New.
7202         * target.c (forward_target_decr_pc_after_break)
7203         (target_decr_pc_after_break): New.
7204         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7205         instead of gdbarch_decr_pc_after_break.
7206         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7207         instead of gdbarch_decr_pc_after_break.
7208         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7209         instead of gdbarch_decr_pc_after_break.
7210         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7211         instead of gdbarch_decr_pc_after_break.
7212         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7213         instead of gdbarch_decr_pc_after_break.
7214         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7215         instead of gdbarch_decr_pc_after_break.
7216
7217 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7218
7219         * btrace.c: Include regcache.h.
7220         (btrace_add_pc): New.
7221         (btrace_enable): Call btrace_add_pc.
7222         (btrace_is_empty): New.
7223         * btrace.h (btrace_is_empty): New.
7224         * record-btrace.c (require_btrace, record_btrace_info): Call
7225         btrace_is_empty.
7226
7227 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7228
7229         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7230         Support delta reads.
7231         (linux_disable_btrace): Change return type.
7232         * common/linux-btrace.h (linux_read_btrace): Change parameters
7233         and return type to allow error reporting.  Update users.
7234         (linux_disable_btrace): Change return type.  Update users.
7235         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7236         New.
7237         (btrace_error): New.
7238         (btrace_block) <begin>: Comment on BEGIN == 0.
7239         * btrace.c (btrace_compute_ftrace): Start from the end of
7240         the current trace.
7241         (btrace_stitch_trace, btrace_clear_history): New.
7242         (btrace_fetch): Read delta trace, return if replaying.
7243         (btrace_clear): Move clear history code to btrace_clear_history.
7244         (parse_xml_btrace): Throw an error if parsing failed.
7245         * target.h (struct target_ops) <to_read_btrace>: Change parameters
7246         and return type to allow error reporting.
7247         (target_read_btrace): Change parameters and return type to allow
7248         error reporting.
7249         * target.c (target_read_btrace): Update.
7250         * remote.c (remote_read_btrace): Support delta reads.  Pass
7251         errors on.
7252         * NEWS: Announce it.
7253
7254 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7255
7256         * record.h (record_btrace_frame_unwind)
7257         (record_btrace_tailcall_frame_unwind): New declarations.
7258         * dwarf2-frame: Include record.h
7259         (dwarf2_frame_cfa): Throw an error for btrace frames.
7260         * record-btrace.c: Include hashtab.h.
7261         (btrace_get_bfun_name): New.
7262         (btrace_call_history): Call btrace_get_bfun_name.
7263         (struct btrace_frame_cache): New.
7264         (bfcache): New.
7265         (bfcache_hash, bfcache_eq, bfcache_new): New.
7266         (btrace_get_frame_function): New.
7267         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7268         (record_btrace_frame_this_id): Compute own id.
7269         (record_btrace_frame_prev_register): Provide PC, throw_error
7270         for all other registers.
7271         (record_btrace_frame_sniffer): Detect btrace frames.
7272         (record_btrace_tailcall_frame_sniffer): New.
7273         (record_btrace_frame_dealloc_cache): New.
7274         (record_btrace_frame_unwind): Add new functions.
7275         (record_btrace_tailcall_frame_unwind): New.
7276         (_initialize_record_btrace): Allocate cache.
7277         * btrace.c (btrace_clear): Call reinit_frame_cache.
7278         * NEWS: Announce it.
7279
7280 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7281
7282         * record-btrace.c (record_btrace_set_replay)
7283         (record_btrace_goto_begin, record_btrace_goto_end)
7284         (record_btrace_goto): New.
7285         (init_record_btrace_ops): Initialize them.
7286         * NEWS: Announce it.
7287
7288 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7289
7290         * record-btrace.c (record_btrace_find_new_threads)
7291         (record_btrace_thread_alive): New.
7292         (init_record_btrace_ops): Initialize to_find_new_threads and
7293         to_thread_alive.
7294
7295 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7296
7297         * record-btrace.c (record_btrace_resume): New.
7298         (record_btrace_wait): New.
7299         (init_record_btrace_ops): Initialize to_wait and to_resume.
7300
7301 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7302
7303         * record-btrace.c (record_btrace_xfer_partial)
7304         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7305         (record_btrace_allow_memory_access): New.
7306         (init_record_btrace_ops): Initialize new methods.
7307         * target.c (raw_memory_xfer_partial): Bail out if target reports
7308         that this memory is not available.
7309
7310 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7311
7312         * target.h (target_ops) <to_insert_breakpoint>
7313         <to_remove_breakpoint>: Add target_ops parameter.
7314         (forward_target_insert_breakpoint): New.
7315         (forward_target_remove_breakpoint): New.
7316         (memory_remove_breakpoint, memory_insert_breakpoint):
7317         Add target_ops parameter.
7318         * target.c (target_insert_breakpoint): Split into this and ...
7319         (forward_target_insert_breakpoint): ... this.
7320         (target_remove_breakpoint): Split into this and ...
7321         (forward_target_remove_breakpoint): ... this.
7322         (debug_to_insert_breakpoint): Add target_ops parameter.
7323         Call forward_target_insert_breakpoint.
7324         (debug_to_remove_breakpoint): Add target_ops parameter.
7325         Call forward_target_remove_breakpoint.
7326         (update_current_target): Do not inherit or default to_insert_breakpoint
7327         and to_remove_breakpoint.
7328         * corelow.c (ignore): Add target_ops parameter.
7329         * exec.c (ignore): Add target_ops parameter.
7330         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7331         Add target_ops parameter.
7332         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7333         Add target_ops parameter.
7334         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7335         Add target_ops parameter.
7336         * record-full.c (record_full_beneath_to_insert_breakpoint)
7337         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7338         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7339         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7340         (record_full_core_remove_breakpoint): Add target_ops parameter.
7341         Update users.
7342         (record_full_beneath_to_insert_breakpoint_ops)
7343         (record_full_beneath_to_remove_breakpoint_ops)
7344         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7345         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7346         tmp_to_remove_breakpoint_ops,
7347         record_full_beneath_to_insert_breakpoint_ops, and
7348         record_full_beneath_to_remove_breakpoint_ops.
7349         * remote-m32r-sdi.c (m32r_insert_breakpoint)
7350         (m32r_remove_breakpoint): Add target_ops parameter.
7351         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7352         Add target_ops parameter.
7353         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7354         Add target_ops parameter.
7355
7356 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7357             Markus Metzger  <markus.t.metzger@intel.com>
7358
7359         * record-btrace.c: Include frame-unwind.h.
7360         (record_btrace_frame_unwind_stop_reason)
7361         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7362         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7363         New.
7364         (init_record_btrace_ops): Install it.
7365
7366 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7367
7368         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7369         get_prev_frame_1.
7370
7371 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7372
7373         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7374         earlier.
7375
7376 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7377
7378         * frame-unwind.c: Include target.h.
7379         (frame_unwind_try_unwinder): New function with code from ...
7380         (frame_unwind_find_by_frame): ... here.  New variable
7381         unwinder_from_target, call also target_get_unwinder)
7382         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7383         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7384         * target.h (struct target_ops): New fields to_get_unwinder and
7385         to_get_tailcall_unwinder.
7386         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7387
7388 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7389
7390         * record-btrace.c (record_btrace_fetch_registers)
7391         (record_btrace_store_registers)
7392         (record_btrace_to_prepare_to_store): New.
7393         (init_record_btrace_ops): Add the above.
7394
7395 2014-01-16  Tom Tromey  <tromey@redhat.com>
7396
7397         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7398         * target.h (struct target_ops) <to_prepare_to_store>: Add
7399         argument.
7400         (target_prepare_to_store): Add argument.
7401         * target.c (debug_to_prepare_to_store): Add argument.
7402         (update_current_target): Update.
7403         * remote.c (remote_prepare_to_store): Add 'self' argument.
7404         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7405         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7406         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7407         * record-full.c (record_full_core_prepare_to_store): Add 'self'
7408         argument.
7409         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7410         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7411         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7412         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7413         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7414
7415 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7416
7417         * btrace.h (replay) <replay>: New.
7418         (btrace_is_replaying): New.
7419         * btrace.c (btrace_clear): Free replay iterator.
7420         (btrace_is_replaying): New.
7421         * record-btrace.c (record_btrace_is_replaying): New.
7422         (record_btrace_info): Print insn number if replaying.
7423         (record_btrace_insn_history): Start at replay position.
7424         (record_btrace_call_history): Start at replay position.
7425         (init_record_btrace_ops): Init to_record_is_replaying.
7426
7427 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7428
7429         * record-btrace.c (record_btrace_insn_history_range): Include
7430         end.
7431         (record_btrace_insn_history_from): Adjust range.
7432         (record_btrace_call_history_range): Include
7433         end.
7434         (record_btrace_call_history_from): Adjust range.
7435         * NEWS: Announce changes.
7436
7437 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7438
7439         * record.h (enum record_print_flag)
7440         <record_print_indent_calls>: New.
7441         * record.c (get_call_history_modifiers): Recognize /c modifier.
7442         (_initialize_record): Document /c modifier.
7443         * record-btrace.c (btrace_call_history): Add btinfo parameter.
7444         Reorder fields.  Optionally indent the function name.  Update
7445         all users.
7446         * NEWS: Announce changes.
7447
7448 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7449
7450         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7451
7452 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7453
7454         * btrace.c (ftrace_new_function): Start counting at one.
7455         * record-btrace.c (record_btrace_info): Adjust number of calls
7456         and insns.
7457         * NEWS: Announce it.
7458
7459 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7460
7461         * record-btrace.c (btrace_call_history_insn_range): Print
7462         insn range as [begin, end].
7463
7464 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7465
7466         * btrace.h (struct btrace_func_link): New.
7467         (enum btrace_function_flag): New.
7468         (struct btrace_inst): Rename to ...
7469         (struct btrace_insn): ...this. Update all users.
7470         (struct btrace_func) <ibegin, iend>: Remove.
7471         (struct btrace_func_link): New.
7472         (struct btrace_func): Rename to ...
7473         (struct btrace_function): ...this. Update all users.
7474         (struct btrace_function) <segment, flow, up, insn, insn_offset)
7475         (number, level, flags>: New.
7476         (struct btrace_insn_iterator): Rename to ...
7477         (struct btrace_insn_history): ...this.
7478         Update all users.
7479         (struct btrace_insn_iterator, btrace_call_iterator): New.
7480         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7481         (struct btrace_target_info) <begin, end, level>
7482         <insn_history, call_history>: New.
7483         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7484         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7485         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7486         (btrace_call_number, btrace_call_begin, btrace_call_end)
7487         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7488         (btrace_find_function_by_number, btrace_set_insn_history)
7489         (btrace_set_call_history): New.
7490         * btrace.c (btrace_init_insn_iterator)
7491         (btrace_init_func_iterator, compute_itrace): Remove.
7492         (ftrace_print_function_name, ftrace_print_filename)
7493         (ftrace_skip_file): Change
7494         parameter to const.
7495         (ftrace_init_func): Remove.
7496         (ftrace_debug): Use new btrace_function fields.
7497         (ftrace_function_switched): Also consider gaining and
7498         losing symbol information).
7499         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7500         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7501         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7502         New.
7503         (ftrace_new_function): Move. Remove debug print.
7504         (ftrace_update_lines, ftrace_update_insns): New.
7505         (ftrace_update_function): Check for call, ret, and jump.
7506         (compute_ftrace): Renamed to ...
7507         (btrace_compute_ftrace): ...this. Rewritten to compute call
7508         stack.
7509         (btrace_fetch, btrace_clear): Updated.
7510         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7511         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7512         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7513         (btrace_call_number, btrace_call_begin, btrace_call_end)
7514         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7515         (btrace_find_function_by_number, btrace_set_insn_history)
7516         (btrace_set_call_history): New.
7517         * record-btrace.c (require_btrace): Use new btrace thread
7518         info fields.
7519         (record_btrace_info, btrace_insn_history)
7520         (record_btrace_insn_history, record_btrace_insn_history_range):
7521         Use new btrace thread info fields and new iterator.
7522         (btrace_func_history_src_line): Rename to ...
7523         (btrace_call_history_src_line): ...this. Use new btrace
7524         thread info fields.
7525         (btrace_func_history): Rename to ...
7526         (btrace_call_history): ...this. Use new btrace thread info
7527         fields and new iterator.
7528         (record_btrace_call_history, record_btrace_call_history_range):
7529         Use new btrace thread info fields and new iterator.
7530
7531 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7532
7533         * frame.h (frame_id_build_unavailable_stack_special): New.
7534         * frame.c (frame_id_build_unavailable_stack_special): New.
7535
7536 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7537
7538         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7539         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7540         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7541         to gdbarch.
7542         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7543         (i386_insn_is_jump, i386_jmp_p): New.
7544         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7545         insn_is_jump to gdbarch.
7546         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7547         * gdbarch.h: Regenerated.
7548         * gdbarch.c: Regenerated.
7549         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7550         (default_insn_is_jump): New.
7551         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7552         (default_insn_is_jump): New.
7553
7554 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7555
7556         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7557         Change to ...
7558         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
7559         (btrace_read_type) <btrace_read_new>: Change to ...
7560         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
7561
7562 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7563
7564         * common/linux-btrace.c (linux_read_btrace): Free trace from
7565         previous iteration.
7566
7567 2014-01-15  Doug Evans  <dje@google.com>
7568
7569         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7570         uint32_t.
7571
7572 2014-01-15  Tom Tromey  <tromey@redhat.com>
7573
7574         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7575         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7576         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7577         (set_objfile_main_name): New function.
7578         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7579         language_of_main>: New fields.
7580         (set_objfile_main_name): Declare.
7581         * symtab.c (find_main_name): Loop over objfiles to find the main
7582         name and language.
7583         (set_main_name): Now static.
7584         (get_main_info): Add comment.
7585         * symtab.h (set_main_name): Don't declare.
7586
7587 2014-01-15  Tom Tromey  <tromey@redhat.com>
7588
7589         * symtab.c (main_progspace_key): New global.
7590         (struct main_info): New.
7591         (name_of_main, language_of_main): Remove.
7592         (get_main_info, main_info_cleanup): New function.
7593         (set_main_name, main_name, main_language): Use get_main_info.
7594         (_initialize_symtab): Initialize main_progspace_key.
7595
7596 2014-01-15  Tom Tromey  <tromey@redhat.com>
7597
7598         * dbxread.c (process_one_symbol): Update.
7599         * dwarf2read.c (read_partial_die): Update.
7600         * symfile.c (set_initial_language): Call main_language.
7601         * symtab.c (language_of_main): Now static.
7602         (set_main_name): Add 'lang' parameter.
7603         (find_main_name): Update.
7604         (main_language): New function.
7605         (symtab_observer_executable_changed): Update.
7606         * symtab.h (set_main_name): Update.
7607         (language_of_main): Remove.
7608         (main_language): Declare.
7609
7610 2014-01-15  Tom Tromey  <tromey@redhat.com>
7611
7612         * symfile.c (init_entry_point_info): Use new "initialized" field.
7613         Update.
7614         * objfiles.h (struct entry_point) <initialized>: New field.
7615         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7616         (struct objfile) <ei>: ...here.  Remove.
7617         * objfiles.c (entry_point_address_query): Update.
7618
7619 2014-01-15  Tom Tromey  <tromey@redhat.com>
7620
7621         * objfiles.c (entry_point_address_query): Relocate entry point
7622         address.
7623         (objfile_relocate1): Do not relocate entry point address.
7624         * objfiles.h (struct entry_info) <entry_point>: Update comment.
7625         <the_bfd_section_index>: New field.
7626         * symfile.c (init_entry_point_info): Find the entry point's
7627         section.
7628
7629 2014-01-15  Tom Tromey  <tromey@redhat.com>
7630
7631         * solib-frv.c (enable_break): Use entry_point_address_query.
7632
7633 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7634
7635         * NEWS: Add note on improved process record-replay on
7636         arm*-linux* targets.
7637
7638 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7639
7640         * arm-tdep.c (enum arm_record_result): New enum.
7641         (arm_record_unsupported_insn): New function.
7642         (arm_record_coproc_data_proc): Removed.
7643         (thumb2_record_ld_st_multiple): New function.
7644         (thumb2_record_ld_st_dual_ex_tbb): New function.
7645         (thumb2_record_data_proc_sreg_mimm): New function.
7646         (thumb2_record_ps_dest_generic): New function.
7647         (thumb2_record_branch_misc_cntrl): New function.
7648         (thumb2_record_str_single_data): New function.
7649         (thumb2_record_ld_mem_hints): New function.
7650         (thumb2_record_ld_word): New function.
7651         (thumb2_record_lmul_lmla_div): New function.
7652         (thumb2_record_decode_insn_handler): New function.
7653         (decode_insn): Add thumb32 instruction handlers.
7654
7655 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7656
7657         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7658         (struct arm_linux_record_tdep): Declare.
7659         (arm_canonicalize_syscall): New function.
7660         (arm_all_but_pc_registers_record): New function.
7661         (arm_linux_syscall_record): New function.
7662         (arm_linux_init_abi): Add syscall recording constructs.
7663         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7664         decoding.  (arm_record_coproc_data_proc): Update arm syscall
7665         decoding.
7666         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7667         <arm_syscall_record>: New field.
7668         * configure.tgt (arm*-*-linux*): Add linux-record.o to
7669         gdb_target_obs.
7670
7671 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7672
7673         * arm-tdep.c (thumb_record_misc): Update to use sp as base
7674         register for push instruction recording.
7675
7676 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7677
7678         * arm-tdep.c (thumb_record_misc): Update to correct logical
7679         error while recording ldm, ldmia and pop instructions.
7680
7681 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7682
7683         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7684
7685 2014-01-15  Pedro Alves  <palves@redhat.com>
7686
7687         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7688         (go32_resume, go32_fetch_registers, store_register)
7689         (go32_store_registers, go32_prepare_to_store)
7690         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7691         (go32_create_inferior, go32_can_run, go32_terminal_init)
7692         (go32_terminal_inferior, go32_terminal_ours): Delete forward
7693         declarations.
7694
7695 2014-01-15  Tom Tromey  <tromey@redhat.com>
7696
7697         * target.h (async_callback_ftype): New typedef.
7698         (struct target_ops) <to_async>: Use it.
7699
7700 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
7701
7702         * python/py-value.c (get_field_type): Remove unnecessary curly
7703         braces for single-statement if block.
7704
7705 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
7706
7707         * python/py-type.c (convert_field): Add missing empty line
7708         after declarations.
7709
7710 2014-01-14  Doug Evans  <dje@google.com>
7711
7712         * symfile.h (expand_symtabs_matching): Renamed from
7713         expand_partial_symbol_names.  Update prototype.
7714         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7715         * symfile.c (expand_symtabs_matching): Renamed from
7716         expand_partial_symbol_names.  New args file_matcher, kind.
7717         Rename arg fun to symbol_matcher.
7718         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7719         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7720         ada_expand_partial_symbol_name.
7721         (ada_make_symbol_completion_list): Update to call
7722         expand_symtabs_matching.
7723         (ada_add_global_exceptions): Call expand_symtabs_matching.
7724         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7725         call map_symbol_filenames.
7726         * symtab.c (sources_info): Update to call map_symbol_filenames.
7727         (search_symbols): Call expand_symtabs_matching.
7728         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7729         (default_make_symbol_completion_list_break_on): Update to call
7730         expand_symtabs_matching.
7731         (make_source_files_completion_list): Update to call
7732         map_symbol_filenames.
7733
7734 2014-01-14  Doug Evans  <dje@google.com>
7735
7736         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7737         (expand_symtabs_symbol_matcher_ftype): New typedef.
7738         (quick_symbol_functions.expand_symtabs_matching): Update to use.
7739         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7740         * symfile.c (expand_partial_symbol_names): Update to use
7741         expand_symtabs_symbol_matcher_ftype.
7742         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7743         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7744         Arg name_matcher renamed to symbol_matcher.
7745         * psymtab.c (recursively_search_psymtabs): Update to use
7746         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
7747         sym_matcher.
7748         (expand_symtabs_matching_via_partial): Update to use
7749         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7750         Arg name_matcher renamed to symbol_matcher.
7751
7752 2014-01-14  Doug Evans  <dje@google.com>
7753
7754         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7755         (map_partial_symbol_filenames): Ditto.
7756         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7757         (map_partial_symbol_filenames): Ditto.
7758         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7759         (map_partial_symbol_filenames): Ditto.
7760         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7761         (map_partial_symbol_filenames): Ditto.
7762         * symtab.c: Delete #include "psymtab.h".
7763
7764 2014-01-14  Pedro Alves  <palves@redhat.com>
7765             Tom Tromey  <tromey@redhat.com>
7766
7767         * infrun.c (use_displaced_stepping): Use find_record_target
7768         instead of RECORD_IS_USED.
7769         (adjust_pc_after_break): Use record_full_is_used instead of
7770         RECORD_IS_USED.
7771         * record-btrace.c (record_btrace_open): Call record_preopen
7772         instead of checking RECORD_IS_USED.
7773         * record-full.c (record_full_shortname)
7774         (record_full_core_shortname): New globals.
7775         (record_full_is_used): New function.
7776         (find_full_open): Call record_preopen instead of checking
7777         RECORD_IS_USED.
7778         (init_record_full_ops): Set the target's shortname to
7779         record_full_shortname.
7780         (init_record_full_core_ops): Set the target's shortname to
7781         record_full_core_shortname.
7782         * record-full.h (record_full_is_used): Declare.
7783         * record.c (find_record_target): Make extern.
7784         (record_preopen): New function.
7785         * record.h (RECORD_IS_USED): Delete macro.
7786         (find_record_target, record_preopen): Declare functions.
7787
7788 2014-01-14  Yao Qi  <yao@codesourcery.com>
7789
7790         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7791         'len''s type to ULONGEST.
7792         (core_xfer_shared_libraries_aix): Likewise.
7793         * gdbarch.c, gdbarch.h: Regenerated.
7794         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7795         Change type of 'len' to ULONGEST.
7796         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7797         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7798
7799 2014-01-14  Yao Qi  <yao@codesourcery.com>
7800
7801         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7802         type of 'len' to ULONGEST.
7803         (linux_xfer_osdata_processgroups): Likewise.
7804         (linux_xfer_osdata_threads): Likewise.
7805         (linux_xfer_osdata_fds): Likewise.
7806         (linux_xfer_osdata_isockets): Likewise.
7807         (linux_xfer_osdata_shm): Likewise.
7808         (linux_xfer_osdata_sem): Likewise.
7809         (linux_xfer_osdata_msg): Likewise.
7810         (linux_common_xfer_osdata): Likewise.
7811         (struct osdata_type) <getter>: Likewise.
7812         * common/linux-osdata.h (linux_common_xfer_osdata): Update
7813         the declaration.
7814
7815 2014-01-14  Yao Qi  <yao@codesourcery.com>
7816
7817         * target.h (target_xfer_partial_ftype): Update.
7818         (struct target_ops) <to_xfer_partial>: Change 'len' type to
7819         ULONGEST.
7820         * aix-thread.c (aix_thread_xfer_partial): Change type of
7821         argument 'len' to ULONGEST.
7822         * auxv.c (procfs_xfer_auxv): Likewise.
7823         (ld_so_xfer_auxv): Likewise.
7824         (memory_xfer_auxv): Likewise.
7825         * bfd-target.c (target_bfd_xfer_partial): Likewise.
7826         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7827         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7828         * corelow.c (core_xfer_partial): Likewise.
7829         * ctf.c (ctf_xfer_partial): Likewise.
7830         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
7831         '%u'.
7832         (darwin_read_dyld_info): Likewise.
7833         (darwin_xfer_partial): Likewise.
7834         * exec.c (section_table_xfer_memory_partial): Likewise.
7835         (exec_xfer_partial): Likewise.
7836         * exec.h (section_table_xfer_memory_partial): Update
7837         declaration.
7838         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
7839         instead of plongest.
7840         (gnu_xfer_partial): Likewise.
7841         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7842         (ia64_hpux_xfer_solib_got): Likewise.
7843         (ia64_hpux_xfer_partial): Likewise.
7844         * ia64-linux-nat.c (ia64_linux_xfer_partial):
7845         * inf-ptrace.c (inf_ptrace_xfer_partial):
7846         * inf-ttrace.c (inf_ttrace_xfer_partial):
7847         * linux-nat.c (linux_xfer_siginfo): Likewise.
7848         (linux_nat_xfer_partial): Likewise.
7849         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7850         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7851         * monitor.c (monitor_xfer_memory): Likewise.
7852         (monitor_xfer_partial): Likewise.
7853         * procfs.c (procfs_xfer_partial): Likewise.
7854         * record-full.c (record_full_xfer_partial): Likewise.
7855         (record_full_core_xfer_partial): Likewise.
7856         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
7857         instead of plongest.
7858         (gdbsim_xfer_partial): Likewise.
7859         * remote.c (remote_xfer_partial): Likewise.
7860         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7861         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7862         declaration.
7863         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7864         (rs6000_xfer_shared_libraries): Likewise.
7865         * sol-thread.c (sol_thread_xfer_partial): Likewise.
7866         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7867         (sparc_xfer_partial): Likewise.
7868         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7869         (spu_xfer_partial): Likewise.
7870         * spu-multiarch.c (spu_xfer_partial): Likewise.
7871         * target.c (target_read_live_memory): Likewise.
7872         (memory_xfer_live_readonly_partial): Likewise.
7873         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7874         (target_xfer_partial, default_xfer_partial): Likewise.
7875         (current_xfer_partial): Likewise.
7876         * tracepoint.c (tfile_xfer_partial): Likewise.
7877         * windows-nat.c (windows_xfer_memory): Likewise.  Call
7878         pulongest instead of plongest.
7879         (windows_xfer_partial): Likewise.
7880         (windows_xfer_shared_libraries): Likewise.
7881
7882 2014-01-14  Yao Qi  <yao@codesourcery.com>
7883
7884         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7885         target_xfer_partial_ftype.
7886
7887 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
7888
7889         PR python/15464
7890         PR python/16113
7891         * valops.c (value_struct_elt_bitpos): New function
7892         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7893         object to 'None' if the field name is an empty string ("").
7894         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7895         attribute to look for a field when 'name' is 'None'.
7896         (get_field_type): New function
7897
7898 2014-01-13  Doug Evans  <dje@google.com>
7899
7900         PR symtab/16426
7901         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7902         (try_open_dwop_file): Ditto.
7903         * gdb_bfd.c: #include "vec.h".
7904         (bfdp): New typedef.
7905         (struct gdb_bfd_data): New member included_bfds.
7906         (gdb_bfd_unref): Unref all included bfds.
7907         (gdb_bfd_record_inclusion): New function.
7908         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7909
7910 2014-01-13  Tom Tromey  <tromey@redhat.com>
7911
7912         * gdbcore.h (deprecated_core_resize_section_table): Remove.
7913
7914 2014-01-13  Tom Tromey  <tromey@redhat.com>
7915
7916         * defs.h (use_windows): Remove.
7917         * gdb.c (main): Update.
7918         * main.c (captured_main, gdb_main): Update.
7919         * main.h (struct captured_main_args) <use_windows>: Remove.
7920         * top.c (use_windows): Remove.
7921
7922 2014-01-13  Tom Tromey  <tromey@redhat.com>
7923
7924         * defs.h (deprecated_flush_hook): Remove.
7925
7926 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7927
7928         PR threads/16216
7929         * linux-thread-db.c (try_thread_db_load): Add parameter
7930         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
7931         (try_thread_db_load_from_pdir_1): Move it there from here.
7932         (try_thread_db_load_from_sdir): Update caller.
7933         (try_thread_db_load_from_dir): Move it there from here.
7934
7935 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
7936
7937         * regformats/regdat.sh: Always rewrite the register file.
7938
7939 2014-01-13  Pedro Alves  <palves@redhat.com>
7940
7941         * Makefile.in (CHECK_HEADERS): New variable.
7942         (check-headers:): New rule.
7943
7944 2014-01-13  Tom Tromey  <tromey@redhat.com>
7945
7946         * cli/cli-setshow.c (do_set_command): Update.
7947         * defs.h (deprecated_set_hook): Remove.
7948         * top.c (deprecated_set_hook): Remove.
7949
7950 2014-01-13  Pedro Alves  <palves@redhat.com>
7951
7952         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7953         the tracepoint if the PC is a pseudo-register.
7954
7955 2014-01-13  Tom Tromey  <tromey@redhat.com>
7956
7957         * defs.h (XCALLOC): Remove.
7958         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7959         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7960         * dwarf2loc.c (allocate_piece_closure): Likewise.
7961         * elfread.c (elf_symfile_segments): Likewise.
7962         (elf_symfile_segments): Likewise.
7963         * gdbtypes.c (copy_type_recursive): Likewise.
7964         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7965         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7966         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7967         XCALLOC.
7968         * mt-tdep.c (mt_gdbarch_init): Likewise.
7969         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7970         XCALLOC.
7971         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7972         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7973         * registry.c (registry_alloc_data): Likewise.
7974         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7975         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7976         * serial.c (serial_fdopen_ops): Likewise.
7977         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7978         XCALLOC.
7979         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7980         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7981         not XCALLOC.
7982
7983 2014-01-13  Tom Tromey  <tromey@redhat.com>
7984
7985         * defs.h (XMALLOC): Remove.
7986         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7987         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7988         * cli-out.c (struct ui_out *): Likewise.
7989         * cli/cli-dump.c (add_dump_command): Likewise.
7990         (add_dump_command): Likewise.
7991         * complaints.c (get_complaints): Likewise.
7992         (find_complaint): Likewise.
7993         * dwarf2-frame.c (execute_cfa_program): Likewise.
7994         * dwarf2read.c (abbrev_table_read_table): Likewise.
7995         * gdbarch.sh: Likewise.
7996         * gdbarch.c: Rebuild.
7997         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7998         * interps.c (interp_new): Likewise.
7999         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8000         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8001         * mi/mi-console.c (mi_console_file_new): Likewise.
8002         * mi/mi-interp.c (mi_interpreter_init): Likewise.
8003         * mi/mi-out.c (mi_out_new): Likewise.
8004         * mi/mi-parse.c (mi_parse): Likewise.
8005         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8006         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8007         * observer.c (xalloc_observer_list_node): Likewise.
8008         * regcache.c (regcache_xmalloc_1): Likewise.
8009         * reggroups.c (reggroup_new): Likewise.
8010         (_initialize_reggroup): Likewise.
8011         * registry.c (register_data_with_cleanup): Likewise.
8012         * remote.c (remote_notif_stop_alloc_reply): Likewise.
8013         * ser-base.c (serial_ttystate): Likewise.
8014         * ser-mingw.c (make_pipe_state): Likewise.
8015         * ser-pipe.c (pipe_open): Likewise.
8016         * serial.c (serial_open): Likewise.
8017         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8018         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8019         (tui_alloc_win_info): Likewise.
8020         (tui_add_content_elements): Likewise.
8021         * tui/tui-file.c (tui_file_new): Likewise.
8022         * tui/tui-out.c (tui_out_new): Likewise.
8023         * ui-file.c (mem_file_new): Likewise.
8024         * ui-out.c (push_level): Likewise.
8025         (make_cleanup_ui_out_end): Likewise.
8026         (append_header_to_list): Likewise.
8027         (ui_out_new): Likewise.
8028         * user-regs.c (user_reg_add_builtin): Likewise.
8029
8030 2014-01-13  Tom Tromey  <tromey@redhat.com>
8031
8032         * defs.h (XZALLOC): Remove.
8033         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8034         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8035         (get_ada_tasks_inferior_data): Likewise.
8036         * auto-load.c (get_auto_load_pspace_data): Likewise.
8037         * auxv.c (get_auxv_inferior_data): Likewise.
8038         * bfd-target.c (target_bfd_reopen): Likewise.
8039         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8040         (deprecated_insert_raw_breakpoint): Likewise.
8041         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8042         * corelow.c (core_open): Likewise.
8043         * darwin-nat.c (darwin_check_new_threads): Likewise.
8044         (darwin_attach_pid): Likewise.
8045         * dummy-frame.c (dummy_frame_push): Likewise.
8046         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8047         * dwarf2loc.c (allocate_piece_closure): Likewise.
8048         * elfread.c (elf_symfile_segments): Likewise.
8049         * eval.c (ptrmath_type_p): Likewise.
8050         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8051         * gdbtypes.c (alloc_type_arch): Likewise.
8052         (alloc_type_instance): Likewise.
8053         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8054         * inf-child.c (inf_child_can_use_agent): Likewise.
8055         * inflow.c (get_inflow_inferior_data): Likewise.
8056         * infrun.c (save_infcall_suspend_state): Likewise.
8057         * jit.c (jit_reader_load): Likewise.
8058         (get_jit_objfile_data): Likewise.
8059         (get_jit_program_space_data): Likewise.
8060         (jit_object_open_impl): Likewise.
8061         (jit_symtab_open_impl): Likewise.
8062         (jit_block_open_impl): Likewise.
8063         (jit_frame_sniffer): Likewise.
8064         * linux-fork.c (add_fork): Likewise.
8065         * maint.c (make_command_stats_cleanup): Likewise.
8066         * objfiles.c (get_objfile_pspace_data): Likewise.
8067         * opencl-lang.c (struct lval_closure): Likewise.
8068         * osdata.c (osdata_start_osdata): Likewise.
8069         * progspace.c (new_address_space): Likewise.
8070         (add_program_space): Likewise.
8071         * remote-sim.c (get_sim_inferior_data): Likewise.
8072         * sh-tdep.c (sh_gdbarch_init): Likewise.
8073         * skip.c (Ignore): Likewise.
8074         (skip_delete_command): Likewise.
8075         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8076         (library_list_start_library): Likewise.
8077         (solib_aix_current_sos): Likewise.
8078         * solib-darwin.c (get_darwin_info): Likewise.
8079         (darwin_current_sos): Likewise.
8080         * solib-dsbt.c (get_dsbt_info): Likewise.
8081         * solib-ia64-hpux.c (new_so_list): Likewise.
8082         (ia64_hpux_get_solib_linkage_addr): Likewise.
8083         * solib-spu.c (append_ocl_sos): Likewise.
8084         (spu_current_sos): Likewise.
8085         * solib-svr4.c (get_svr4_info): Likewise.
8086         (svr4_keep_data_in_core): Likewise.
8087         (library_list_start_library): Likewise.
8088         (svr4_default_sos): Likewise.
8089         (svr4_read_so_list): Likewise.
8090         * solib-target.c (library_list_start_library): Likewise.
8091         (solib_target_current_sos): Likewise.
8092         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8093         * symfile-debug.c (install_symfile_debug_logging): Likewise.
8094         * symfile.c (default_symfile_segments): Likewise.
8095         * target-descriptions.c (tdesc_data_init): Likewise.
8096         (tdesc_create_reg): Likewise.
8097         (struct tdesc_type *): Likewise.
8098         (tdesc_create_vector): Likewise.
8099         (tdesc_set_struct_size): Likewise.
8100         (struct tdesc_type *): Likewise.
8101         (tdesc_free_feature): Likewise.
8102         (tdesc_create_feature): Likewise.
8103         * windows-nat.c (windows_add_thread): Likewise.
8104         (windows_make_so): Likewise.
8105         * xml-support.c (gdb_xml_body_text): Likewise.
8106         (gdb_xml_create_parser_and_cleanup): Likewise.
8107         (xml_process_xincludes): Likewise.
8108         * xml-syscall.c (allocate_syscalls_info): Likewise.
8109         (syscall_create_syscall_desc): Likewise.
8110
8111 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
8112
8113         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8114         function, with code from i386_stap_parse_special_token.
8115         (i386_stap_parse_special_token_three_arg_disp): Likewise.
8116         (i386_stap_parse_special_token): Move code to the two functions
8117         above; simplify it.
8118
8119 2014-01-09  Pedro Alves  <palves@redhat.com>
8120             Hui Zhu  <hui@codesourcery.com>
8121
8122         PR gdb/16101
8123         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8124         bp_err_string.  Don't mark the location shlib_disabled if the
8125         error thrown wasn't a generic or memory error.  Catch errors
8126         thrown while inserting breakpoints in overlayed code.  Output
8127         error message of software breakpoints.
8128         * remote.c (remote_insert_breakpoint): If this breakpoint has
8129         target-side commands but this stub doesn't support Z0 packets,
8130         throw NOT_SUPPORTED_ERROR error.
8131         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8132         * target.h (target_insert_breakpoint): Extend comment.
8133         (target_insert_hw_breakpoint): Add comment.
8134
8135 2014-01-08  Pedro Alves  <palves@redhat.com>
8136
8137         * remote.c (remote_add_thread): Add threads silently if starting
8138         up.
8139         (remote_notice_new_inferior): If in all-stop, and starting up,
8140         don't call notice_new_inferior.
8141         (get_current_thread): New function, factored out from ...
8142         (add_current_inferior_and_thread): ... this.  Adjust.
8143         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
8144         found any thread, then select the remote's current thread as GDB's
8145         current thread too.
8146
8147 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
8148
8149         * NEWS: Create a new section for the next release branch.
8150         Rename the section of the current branch, now that it has
8151         been cut.
8152
8153 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
8154
8155         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8156         * version.in: Bump version to 7.7.50.DATE-cvs.
8157
8158 2014-01-08  Yao Qi  <yao@codesourcery.com>
8159
8160         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8161         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
8162         (spu_xfer_partial): Cast 'buf' to 'const char *'.
8163
8164 2014-01-08  Yao Qi  <yao@codesourcery.com>
8165
8166         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8167         return value of bfd_get_filename to symbol_file_add_from_bfd.
8168
8169 2014-01-08  Pierre Muller  <muller@sourceware.org>
8170
8171         Fix PR16201.
8172         * coff-pe-read.c (struct read_pe_section_data): Add index field.
8173         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8174         to prim_record_mininal_symbol_and_info.
8175         (add_pe_forwarded_sym): Use known section number of forwarded symbol
8176         in call to prim_record_minimal_symbol_and_info.
8177         (read_pe_exported_syms): Set index field of section_data.
8178
8179 2014-01-07  Andrew Pinski  <apinski@cavium.com>
8180
8181         * features/aarch64-core.xml (cpsr): Change to be 64bit.
8182         * features/aarch64.c: Regenerate.
8183
8184 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
8185
8186         * target.c (return_null): Define.
8187         (update_current_target): Use it instead of return_zero for
8188         functions that return a pointer.
8189
8190 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8191
8192         * source.c (add_path): Fix check for duplicated paths in the previously
8193         included paths.
8194
8195 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
8196
8197         * ada-lang.c: Remove duplicated include statements.
8198         * alphabsd-nat.c: Ditto.
8199         * amd64-darwin-tdep.c: Ditto.
8200         * amd64fbsd-nat.c: Ditto.
8201         * auto-load.c: Ditto.
8202         * ax-gdb.c: Ditto.
8203         * breakpoint.c: Ditto.
8204         * dbxread.c: Ditto.
8205         * fork-child.c: Ditto.
8206         * gdb_usleep.c: Ditto.
8207         * i386-darwin-tdep.c: Ditto.
8208         * i386fbsd-nat.c: Ditto.
8209         * infcmd.c: Ditto.
8210         * inferior.c: Ditto.
8211         * jv-lang.c: Ditto.
8212         * linux-nat.c: Ditto.
8213         * linux-tdep.c: Ditto.
8214         * m68kbsd-nat.c: Ditto.
8215         * m68klinux-nat.c: Ditto.
8216         * microblaze-tdep.c: Ditto.
8217         * mips-linux-tdep.c: Ditto.
8218         * mn10300-tdep.c: Ditto.
8219         * nto-tdep.c: Ditto.
8220         * opencl-lang.c: Ditto.
8221         * osdata.c: Ditto.
8222         * printcmd.c: Ditto.
8223         * regcache.c: Ditto.
8224         * remote-m32r-sdi.c: Ditto.
8225         * remote.c: Ditto.
8226         * symfile.c: Ditto.
8227         * symtab.c: Ditto.
8228         * tilegx-linux-nat.c: Ditto.
8229         * tilegx-tdep.c: Ditto.
8230         * tracepoint.c: Ditto.
8231         * valops.c: Ditto.
8232         * vaxbsd-nat.c: Ditto.
8233         * windows-nat.c: Ditto.
8234         * xtensa-tdep.c: Ditto.
8235
8236 2014-01-07  Yao Qi  <yao@codesourcery.com>
8237
8238         * spu-linux-nat.c (_initialize_spu_nat): Declare.
8239
8240 2014-01-07  Yao Qi  <yao@codesourcery.com>
8241             Joel Brobecker  <brobecker@adacore.com>
8242
8243         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8244         (pdc_write_regs): Likewise.
8245         (fetch_regs_kernel_thread): Likewise.
8246         (store_regs_kernel_thread): Likewise.
8247
8248 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8249
8250         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8251         tagged type objects to their actual type.
8252
8253 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8254
8255         * ada-valprint.c (print_field_values): Add "language" parameter.
8256         Update calls to print_field_values and print_variant_part.
8257         Pass new parameter "language" in call to val_print instead
8258         of "current_language".  Replace call to ada_val_print by call
8259         to val_print.
8260         (print_variant_part): Add "language" parameter.
8261         (ada_val_print_struct_union): Update call to print_field_values.
8262
8263 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8264
8265         * ada-valprint.c (ui_memcpy): Delete.
8266         (ada_print_floating): Update documentation.  Add empty line
8267         between between function documentation and implementation.
8268         Delete variable "buffer".  Use ui_file_xstrdup in place of
8269         ui_file_put.  Minor adjustments following this change.
8270
8271 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8272
8273         * ada-valprint.c (ada_val_print_string): New function,
8274         extracted from ada_val_print_array.
8275         (ada_val_print_array): Replace extracted code by call
8276         to ada_val_print_string followed by a return.  Move
8277         "else" branch to the function's top block.
8278
8279 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8280
8281         * ada-valprint.c (ada_val_print_array): Move implementation
8282         down.  Rename parameter "offset" and "val" into "offset_aligned"
8283         and "original_value" respectively.  Add parameter "offset".
8284
8285 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8286
8287         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8288         re-organizing the code. Change the "???" message printed
8289         when target type is a TYPE_CODE_UNDEF into
8290         "<ref to undefined type>".
8291
8292 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8293
8294         * ada-valprint.c (print_record): Delete, implementation inlined...
8295         (ada_val_print_struct_union): ... here.  Remove call to
8296         ada_check_typedef in inlined implementation.
8297
8298 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8299
8300         * ada-valprint.c (ada_val_print_gnat_array): New function,
8301         extracted from ada_val_print_1;
8302         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8303         (ada_val_print_flt, ada_val_print_struct_union)
8304         (ada_val_print_ref): Likewise.
8305         (ada_val_print_1): Delete variables i and elttype.
8306         Replace extracted-out code by call to corresponding
8307         new functions.
8308
8309 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8310
8311         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8312
8313 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8314
8315         * ada-valprint.c (ada_val_print_1): Replace calls to
8316         ada_val_print_1 by calls to val_print.
8317
8318 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8319
8320         * ada-valprint.c (ada_val_print_1): Add parameter "language".
8321         Update calls to self accordingly.  Replace calls to c_val_print
8322         by calls to val_print.
8323
8324 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8325
8326         * ada-valprint.c (print_record): Delete declaration.
8327         (adjust_type_signedness, ada_val_print_1): Likewise.
8328         (ada_val_print): Move function implementation down.
8329         (print_variant_part, print_field_values, print_record):
8330         Move function implementation up.
8331
8332 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
8333
8334         * python/py-type.c (typy_get_name): New function.
8335         (type_object_getset): Add entry for attribute "name".
8336         * NEWS: Add entry mentioning this new attribute.
8337
8338 2014-01-07  Yao Qi  <yao@codesourcery.com>
8339
8340         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8341         statement.
8342
8343 2014-01-07  Yao Qi  <yao@codesourcery.com>
8344
8345         * gnu-nat.c (info_port_rights): Add qualifier const to
8346         argument args.
8347
8348 2014-01-07  Yao Qi  <yao@codesourcery.com>
8349
8350         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8351
8352 2014-01-07  Yao Qi  <yao@codesourcery.com>
8353
8354         * gnu-nat.c (make_inf) Update declaration.
8355         (make_inf): Make it static.
8356         (inf_set_traced): Likewise.
8357         (inf_port_to_thread, inf_task_died_status): Likewise.
8358
8359 2014-01-07  Yao Qi  <yao@codesourcery.com>
8360
8361         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8362
8363 2014-01-07  Yao Qi  <yao@codesourcery.com>
8364
8365         * gnu-nat.c (_initialize_gnu_nat): Declare.
8366
8367 2014-01-07  Yao Qi  <yao@codesourcery.com>
8368
8369         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8370         'enum bfd_endian'.
8371         (struct gdbarch_info) <byte_order>: Change type to
8372         'enum bfd_endian'.
8373         <byte_order_for_code>: Likewise.
8374         * gdbarch.c, gdbarch.h: Regenerated.
8375
8376 2014-01-06  Sasha Smundak  <asmundak@google.com>
8377
8378         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8379
8380 2014-01-06  Tom Tromey  <tromey@redhat.com>
8381
8382         * doublest.c (convert_doublest_to_floatformat): Use const, not
8383         CONST.
8384         * somread.c (som_symtab_read): Likewise.
8385
8386 2014-01-07  Hui Zhu  <hui@codesourcery.com>
8387
8388         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8389         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8390         (gdb_bfd_fopen): Ditto.
8391         (gdb_bfd_openr): Ditto.
8392         (gdb_bfd_openw): Ditto.
8393         (gdb_bfd_openr_iovec): Ditto.
8394         (gdb_bfd_fdopenr): Ditto.
8395         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8396         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8397         with xstrdup.
8398         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8399         with xstrdup.
8400         * symfile-mem.c (symbol_file_add_from_memory): Removed
8401         gdb_bfd_stash_filename.
8402
8403 2014-01-03  Doug Evans  <dje@google.com>
8404
8405         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8406         output.
8407
8408 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
8409
8410         Update year range in copyright notice of all files.
8411
8412 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
8413
8414         * top.c (print_gdb_version): Set copyright year to 2014.
8415
8416 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
8417
8418         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8419
8420 For older changes see ChangeLog-2013.
8421 \f
8422 Local Variables:
8423 mode: change-log
8424 left-margin: 8
8425 fill-column: 74
8426 version-control: never
8427 coding: utf-8
8428 End: