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