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