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