features/Makefile: Add a "clean" rule.
[external/binutils.git] / gdb / ChangeLog
1 2014-10-01  Pedro Alves  <palves@redhat.com>
2
3         * features/Makefile (clean): New rule.
4
5 2014-10-01  Pedro Alves  <palves@redhat.com>
6
7         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
8         (zmm14h): Add missing end quotes.
9
10 2014-10-01  Pedro Alves  <palves@redhat.com>
11
12         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
13         * features/aarch64.c: Regenerate.
14
15 2014-09-30  Don Breazeal  <donb@codesourcery.com>
16
17         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
18         code so as to work with follow_fork_inferior.
19         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
20         (inf_ttrace_create_inferior): Remove reference to
21         inf_ttrace_vfork_ppid.
22         (inf_ttrace_attach): Ditto.
23         (inf_ttrace_detach): Ditto.
24         (inf_ttrace_kill): Use current_inferior instead of
25         inf_ttrace_vfork_ppid.
26         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
27         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
28         inferior away from the parent.
29         * infrun.c (follow_fork): Call follow_fork_inferior instead of
30         target_follow_fork.
31         (follow_fork_inferior): New function.
32         (follow_inferior_reset_breakpoints): Make function static.
33         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
34         * linux-nat.c (linux_child_follow_fork): Move target-independent
35         code to infrun.c:follow_fork_inferior.
36
37 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
38
39         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
40         * gdbarch.c: Regenerate.
41         * gdbarch.h: Likewise.
42         * corelow.c (sniff_core_bfd): Drop presence check for deleted
43         gdbarch method 'regset_from_core_section'.
44         (get_core_register_section): Remove handling for the case that
45         regset == NULL and regset_from_core_section is defined.
46         (get_core_registers): Drop check for deleted method.
47         * procfs.c (procfs_do_thread_registers): Adjust comment.
48
49 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
50
51         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
52         (linux_nat_make_corefile_notes): Remove.
53         (linux_target_install_ops): Do not set target method
54         'make_corefile_notes'.
55         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
56         Remove field.
57         (linux_corefile_thread_callback): Instead of args->collect, call
58         linux_collect_thread_registers.
59         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
60         NULL unless there is a regset iterator.
61         (linux_make_corefile_notes_1): Remove.
62         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
63         by linux_make_corefile_notes.
64         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
65
66 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
67
68         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
69         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
70         Remove.
71         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
72
73 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
74
75         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
76         (xtensa_iterate_over_regset_sections): New.
77         (xtensa_gdbarch_init): Adjust gdbarch initialization.
78
79 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
80
81         * vax-tdep.c (vax_regset_from_core_section): Remove.
82         (vax_iterate_over_regset_sections): New.
83         (vax_gdbarch_init): Adjust gdbarch initialization.
84
85 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
86
87         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
88         (tilegx_regset_from_core_section): Remove.
89         (tilegx_iterate_over_regset_sections): New.
90         (tilegx_linux_init_abi): Adjust gdbarch initialization.
91
92 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
93
94         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
95         (sparc_iterate_over_regset_sections): New.
96         (sparc32_gdbarch_init): Adjust gdbarch initialization.
97         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
98         targets.
99         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
100         (sparc64fbsd_init_abi): Call fbsd_init_abi.
101         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
102         target method 'make_corefile_notes'.
103
104 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
105
106         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
107         'sizeof_gregset' and 'sizeof_fpregset'.
108         * sh-tdep.c (sh_regset_from_core_section): Remove.
109         (sh_iterate_over_regset_sections): New.
110         (sh_gdbarch_init): Adjust gdbarch initialization.
111         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
112         sizeof_fpregset.
113         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
114         'sizeof_gregset'.
115
116 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
117
118         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
119         (score7_linux_iterate_over_regset_sections): New.
120         (score_gdbarch_init): Adjust gdbarch initialization.
121
122 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
123
124         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
125         FreeBSD targets.
126         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
127         method 'make_corefile_notes'.
128         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
129         (ppcfbsd_regset_from_core_section): Remove.
130         (ppcfbsd_iterate_over_regset_sections): New.
131         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
132         initialization.
133         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
134         (ppcnbsd_iterate_over_regset_sections): New.
135         (ppcnbsd_init_abi): Adjust.
136         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
137         (ppcobsd_iterate_over_regset_sections): New.
138         (ppcobsd_init_abi): Adjust.
139         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
140         (rs6000_aix_iterate_over_regset_sections): New.
141         (rs6000_aix_init_osabi): Adjust.
142
143 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
144
145         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
146         (nios2_regset_from_core_section): Remove.
147         (nios2_iterate_over_regset_sections): New.
148         (nios2_linux_init_abi): Adjust gdbarch initialization.
149
150 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
151
152         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
153         (am33_iterate_over_regset_sections): New.
154         (am33_linux_init_osabi): Adjust gdbarch initialization.
155
156 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
157
158         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
159         (mips_linux_iterate_over_regset_sections): New.
160         (mips_linux_init_abi): Adjust gdbarch initialization.
161         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
162         (mips64obsd_iterate_over_regset_sections): New.
163         (mips64obsd_init_abi): Adjust.
164         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
165         (mipsnbsd_iterate_over_regset_sections): New.
166         (mipsnbsd_init_abi): Adjust.
167
168 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
169
170         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
171         (m88k_iterate_over_regset_sections): New.
172         (m88k_gdbarch_init): Adjust gdbarch initialization.
173
174 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
175
176         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
177         (ia64_linux_iterate_over_regset_sections): New.
178         (ia64_linux_init_abi): Adjust gdbarch initialization.
179
180 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
181
182         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
183         (m68kbsd_iterate_over_regset_sections): New.
184         (m68kbsd_init_abi): Adjust gdbarch initialization.
185         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
186         (m68k_linux_iterate_over_regset_sections): New.
187         (m68k_linux_init_abi): Adjust gdbarch initialization.
188
189 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
190
191         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
192         (m32r_linux_regset_from_core_section): Remove.
193         (m32r_linux_iterate_over_regset_sections): New.
194         (m32r_linux_init_abi): Adjust gdbarch initialization.
195
196 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
197
198         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
199         (amd64obsd_iterate_over_regset_sections): New.
200         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
201         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
202         Remove.
203         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
204         regset_from_core_section initialization.
205         * i386-tdep.c (i386_regset_from_core_section): Remove.
206         (i386_iterate_over_regset_sections): New.
207         (i386_gdbarch_init): Adjust gdbarch initialization.
208         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
209         (i386_iterate_over_regset_sections): New prototype.
210         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
211         Remove.
212         (i386obsd_aout_iterate_over_regset_sections): New.
213         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
214         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
215         targets.
216         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
217         (amd64fbsd_init_abi): Call fbsd_init_abi.
218         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
219         (i386fbsd4_init_abi): Call fbsd_init_abi.
220         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
221         target method 'make_corefile_notes'.
222         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
223
224 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
225
226         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
227         (hppa_hpux_iterate_over_regset_sections): New.
228         (hppa_hpux_init_abi): Adjust gdbarch initialization.
229         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
230         (hppa_linux_iterate_over_regset_sections): New.
231         (hppa_linux_init_abi): Adjust.
232         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
233         (hppanbsd_iterate_over_regset_sections): New.
234         (hppanbsd_init_abi): Adjust.
235         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
236         (hppaobsd_iterate_over_regset_sections): New.
237         (hppaobsd_init_abi): Adjust.
238
239 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
240
241         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
242         (frv_linux_iterate_over_regset_sections): New.
243         (frv_linux_init_abi): Adjust gdbarch initialization.
244
245 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
246
247         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
248         (armbsd_iterate_over_regset_sections): New prototype.
249         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
250         (armbsd_iterate_over_regset_sections): New.
251         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
252         initialization.
253
254 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
255
256         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
257         (alpha_linux_iterate_over_regset_sections): New.
258         (alpha_linux_init_abi): Adjust gdbarch initialization.
259         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
260         prototype.
261         (alphanbsd_iterate_over_regset_sections): New prototype.
262
263 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
264
265         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
266         Remove.
267         (aarch64_linux_iterate_over_regset_sections): New.
268         (aarch64_linux_init_abi): Adjust gdbarch initialization.
269
270 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
271
272         * fbsd-tdep.c: New file.
273         * fbsd-tdep.h: New file.
274         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
275         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
276         (ALLDEPFILES): Add fbsd-tdep.c.
277
278 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
279
280         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
281         parameter.
282         * gdbarch.h: Regenerate.
283         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
284         iterator.
285         (get_core_register_section): Add parameter 'regset' and use it, if
286         set.  Add parameter 'min_size' and verify the bfd section size
287         against it.
288         (get_core_registers_cb): Add parameter 'regset' and pass it to
289         get_core_register section.  For the "standard" register sections
290         ".reg" and ".reg2", set an appropriate default for human_name.
291         (get_core_registers): Don't abort when the gdbarch has an iterator
292         but no regset_from_core_section.  Add NULL/0 for parameters
293         'regset'/'min_size' in calls to get_core_register_section.
294         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
295         'regset' and use it instead of calling the
296         regset_from_core_section gdbarch method.
297         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
298         * i386-tdep.c (i386_supply_xstateregset)
299         (i386_collect_xstateregset, i386_xstateregset): Moved to
300         i386-linux-tdep.c.
301         (i386_regset_from_core_section): Drop handling for .reg-xfp and
302         .reg-xstate.
303         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
304         core file support only if the regset iterator hasn't been set.
305         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
306         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
307         Moved from i386-tdep.c and renamed to *_linux*.
308         (i386_linux_iterate_over_regset_sections): Add regset parameter to
309         each callback invocation.  Allow any .reg-xstate size when reading
310         from a core file.
311         * amd64-tdep.c (amd64_supply_xstateregset)
312         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
313         amd64-linux-tdep.c.
314         (amd64_regset_from_core_section): Remove.
315         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
316         install an amd64-specific regset_from_core_section gdbarch method.
317         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
318         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
319         Moved from amd64-tdep.c and renamed to *_linux*.
320         (amd64_linux_iterate_over_regset_sections): Add regset parameter
321         to each callback invocation.  Allow any .reg-xstate size when
322         reading from a core file.
323         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
324         (arm_linux_iterate_over_regset_sections): Add regset parameter to
325         each callback invocation.
326         (arm_linux_init_abi): No longer set the regset_from_core_section
327         gdbarch method.
328         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
329         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
330         each callback invocation.
331         (ppc_linux_init_abi): No longer set the regset_from_core_section
332         gdbarch method.
333         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
334         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
335         (s390_regset_from_core_section): Remove.
336         (s390_iterate_over_regset_sections): Add regset parameter to each
337         callback invocation.
338         (s390_gdbarch_init): No longer set the regset_from_core_section
339         gdbarch method.  Drop initialization of deleted tdep fields.
340
341 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
342
343         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
344         (amd64_linux_iterate_over_regset_sections): New.
345         (amd64_linux_init_abi_common): Don't install the regset section
346         list, but the new iterator in gdbarch.
347         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
348         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
349         (arm_linux_iterate_over_regset_sections): ...here.  New function.
350         (arm_linux_init_abi): Set iterator instead of section list.
351         * corelow.c (get_core_registers_cb): New function, logic moved
352         from...
353         (get_core_registers): ...loop body here.  Use new iterator method
354         instead of walking through the regset section list.
355         * gdbarch.sh: Remove 'core_regset_sections'.  New method
356         'iterate_over_regset_sections'.  New typedef
357         'iterate_over_regset_sections_cb'.
358         * gdbarch.c: Regenerate.
359         * gdbarch.h: Likewise.
360         * i386-linux-tdep.c (i386_linux_regset_sections)
361         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
362         Remove.
363         (i386_linux_iterate_over_regset_sections): New.
364         (i386_linux_init_abi): Don't choose a regset section list, but
365         install new iterator in gdbarch.
366         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
367         (linux_collect_regset_section_cb): New function, logic moved
368         from...
369         (linux_collect_thread_registers): ...loop body here.  Use iterator
370         method instead of walking through list.
371         (linux_make_corefile_notes_1): Check for presence of iterator
372         method instead of regset section list.
373         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
374         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
375         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
376         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
377         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
378         (ppc_linux_init_abi): Don't choose from above regset section
379         lists, but install new iterator in gdbarch.
380         * regset.h (struct core_regset_section): Remove.
381         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
382         have_linux_v1, have_linux_v2, and have_tdb.
383         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
384         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
385         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
386         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
387         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
388         (s390_iterate_over_regset_sections): ...here.  New function.  Use
389         new tdep fields.
390         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
391         regset section lists, but install new iterator.
392
393 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
394
395         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
396
397 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
398
399         * progspace.c (print_program_space): Don't prune program spaces
400         before printing them.
401
402 2014-09-25  Pedro Alves  <palves@redhat.com>
403
404         * infrun.c (user_visible_resume_ptid): Don't check
405         singlestep_breakpoints_inserted_p.
406
407 2014-09-25  Pedro Alves  <palves@redhat.com>
408
409         * breakpoint.c (should_be_inserted): Add debug output.
410
411 2014-09-25  Pedro Alves  <palves@redhat.com>
412
413         * infrun.c (stepping_past_instruction_at)
414         (clear_exit_convenience_vars): Point at infrun.h instead of
415         inferior.h.
416         (handle_signal_stop): Fix typo.
417
418 2014-09-24  Yao Qi  <yao@codesourcery.com>
419
420         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
421         bitmask.
422
423 2014-09-22  Gary Benson  <gbenson@redhat.com>
424
425         * target.c (target_stop): Updated comment.
426
427 2014-09-22  Gary Benson  <gbenson@redhat.com>
428
429         * target/target.h (target_stop_ptid): Renamed as...
430         (target_stop_and_wait): New function.  Updated comment.
431         All uses updated.
432         (target_continue_ptid): Renamed as...
433         (target_continue_no_signal): New function.  Updated comment.
434         All uses updated.
435
436 2014-09-22  Pedro Alves  <palves@redhat.com>
437
438         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
439         and "auto" merged.
440         * breakpoint.c (enum ugll_insert_mode): New enum.
441         (always_inserted_mode): Now a plain boolean.
442         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
443         (breakpoints_always_inserted_mode): Delete.
444         (breakpoints_should_be_inserted_now): New function.
445         (insert_breakpoints): Pass UGLL_INSERT to
446         update_global_location_list instead of calling
447         insert_breakpoint_locations manually.
448         (create_solib_event_breakpoint_1): New, factored out from ...
449         (create_solib_event_breakpoint): ... this.
450         (create_and_insert_solib_event_breakpoint): Use
451         create_solib_event_breakpoint_1 instead of calling
452         insert_breakpoint_locations manually.
453         (update_global_location_list): Change parameter type from boolean
454         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
455         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
456         (update_global_location_list_nothrow): Change parameter type from
457         boolean to enum ugll_insert_mode.
458         (_initialize_breakpoint): "breakpoint always-inserted" option is
459         now a boolean command.  Update help text.
460         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
461         (breakpoints_should_be_inserted_now): New declaration.
462         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
463         Remove breakpoints_always_inserted_mode check.
464         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
465         * remote.c (remote_start_remote): Likewise.
466
467 2014-09-22  Pedro Alves  <palves@redhat.com>
468
469         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
470         (insert_breakpoints): Don't call insert_breakpoint_locations here.
471         Instead, pass UGLL_INSERT to update_global_location_list.
472         (update_global_location_list): Change parameter type from boolean
473         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
474         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
475         (create_solib_event_breakpoint_1): New, factored out from ...
476         (create_solib_event_breakpoint): ... this.
477         (create_and_insert_solib_event_breakpoint): Use
478         create_solib_event_breakpoint_1 instead of calling
479         insert_breakpoint_locations manually.
480         (update_global_location_list): Handle UGLL_INSERT.
481
482 2014-09-22  Pedro Alves  <palves@redhat.com>
483
484         * breakpoint.c (enum ugll_insert_mode): New enum.
485         (update_global_location_list)
486         (update_global_location_list_nothrow): Change parameter type from
487         boolean to enum ugll_insert_mode.  All callers adjusted.
488
489 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
490
491         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
492         SystemTap support in GDB.
493
494 2014-09-19  Don Breazeal  <donb@codesourcery.com>
495
496         * linux-nat.c (linux_handle_extended_wait): Call
497         linux_ptrace_get_extended_event.
498         (wait_lwp): Call linux_is_extended_waitstatus.
499         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
500         and linux_is_extended_waitstatus.
501         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
502         linux_ptrace_get_extended_event.
503         (linux_ptrace_get_extended_event): New function.
504         (linux_is_extended_waitstatus): New function.
505         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
506         (linux_is_extended_waitstatus): New declarations.
507
508 2014-09-19  Yao Qi  <yao@codesourcery.com>
509
510         * dwarf2read.c (dwarf_decode_lines): Update declaration.
511         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
512         comments.  Callers update.
513         (dwarf_decode_lines): Likewise.
514         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
515         comments.  Skip the line table if  'lowpc' is greater than
516         'address'.  Don't check
517         dwarf2_per_objfile->has_section_at_zero.
518
519 2014-09-18  Doug Evans  <dje@google.com>
520
521         * NEWS: Mention new "producer" attribute of gdb.Symtab.
522         * python/py-symtab.c (stpy_get_producer): New function.
523         (symtab_object_getset): Add "producer" attribute.
524
525 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
526
527         PR gdb/17384
528         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
529         (do_captured_read_memory_integer): Remove.
530         (safe_read_memory_integer): Use target_read_memory directly instead
531         of catching errors in do_captured_read_memory_integer.
532
533 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
534
535         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
536         not gdb/doc.
537
538 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
539
540         * objc-lang.c (find_implementation_from_class): Remove dead code.
541
542 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
543
544         PR cli/7233
545         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
546         "fprintf_unfiltered (gdb_stdlog...)".
547
548 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
549
550         PR breakpoints/12526
551         * breakpoint.h (struct watchpoint): New fields val_bitpos and
552         val_bitsize.
553         * breakpoint.c (watch_command_1): Use these fields to retain
554         bitfield information.
555         (extract_bitfield_from_watchpoint_value): New function.
556         (watchpoint_check): Use it.
557         (update_watchpoint): Use it.  Optimize the address and length of a
558         HW watchpoint pointing to a bitfield.
559         * value.h (unpack_value_bitfield): New prototype.
560         * value.c (unpack_value_bitfield): Make extern.
561
562 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
563
564         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
565         x86-dregs.o.
566         * gnu-nat.c (inf_threads): New function.
567         * gnu-nat.h (inf_threads_ftype): New typedef.
568         (inf_threads): New declaration.
569         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
570         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
571         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
572         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
573         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
574         (i386_gnu_dr_get_control): New functions.
575         (reg_addr): New structure.
576         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
577         i386 debugging register hooks.
578         * NEWS: Mention this.
579
580 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
581
582         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
583         vector data transfer instructions.
584         (arm_record_coproc_data_proc): Updated.
585
586 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
587
588         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
589         arm_record_exreg_ld_st_insn.
590         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
591         load/store insns.
592
593 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
594
595         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
596         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
597         processing instructions.
598
599 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
600
601         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
602         for advance SIMD struct ld/st insn.
603         (thumb2_record_decode_insn_handler): Replace stub handler with
604         thumb2_record_asimd_struct_ld_st.
605
606 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
607
608         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
609         for asimd, vfp and coprocessor insns.
610         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
611         and coprocessor insns.
612         (thumb2_record_coproc_insn): New function.
613         (thumb2_record_decode_insn_handler): Update coprocessor insns record
614         handlers.
615         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
616         opcode 110 insns.
617
618 2014-09-13  Doug Evans  <xdje42@gmail.com>
619
620         * NEWS: Mention new "queue-signal" command.
621         * infcmd.c (queue_signal_command): New function.
622         (_initialize_infcmd): Add new queue-signal command.
623
624 2014-09-13  Doug Evans  <xdje42@gmail.com>
625
626         * linux-nat.c (wait_lwp): Add debugging printf.
627         (linux_nat_wait_1): Ditto.
628
629 2014-09-12  Pedro Alves  <palves@redhat.com>
630
631         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
632         (create_and_insert_solib_event_breakpoint): New functions.
633         * breakpoint.h (create_and_insert_solib_event_breakpoint)
634         (remove_solib_event_breakpoints_at_next_stop): New declarations.
635         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
636         (remove_dbx_link_breakpoint): Delete function.
637         (insert_dbx_link_bpt_in_file): Use
638         create_and_insert_solib_event_breakpoint instead of
639         deprecated_insert_raw_breakpoint.
640         (procfs_wait): Don't check whether we hit __dbx_link here.
641         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
642         here.
643         * solib-irix.c (base_breakpoint): Delete global.
644         (disable_break): Delete function.
645         (enable_break): Use create_solib_event_breakpoint
646         instead of deprecated_insert_raw_breakpoint.
647         (irix_solib_handle_event): New function.
648         (irix_solib_create_inferior_hook): Don't run the target or disable
649         the mapping-complete breakpoint here.
650         (_initialize_irix_solib): Install irix_solib_handle_event as
651         so_ops->handle_event hook.
652
653 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
654             Ulrich Weigand  <uweigand@de.ibm.com>
655
656         PR tdep/17379
657         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
658         instead of read_memory_unsigned_integer.
659
660 2014-09-12  Gary Benson  <gbenson@redhat.com>
661
662         * nat/linux-waitpid.c: Include common-defs.h.
663         [GDBSERVER]: Add FIXME comment.
664         [!GDBSERVER]: Don't include defs.h or signal.h.
665         (linux_debug) [!GDBSERVER]: Remove empty block.
666
667 2014-09-12  Gary Benson  <gbenson@redhat.com>
668
669         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
670         Don't include defs.h or server.h.
671
672 2014-09-12  Gary Benson  <gbenson@redhat.com>
673
674         * nat/linux-btrace.c: Include common-defs.h.
675         Don't include defs.h, server.h or gdbthread.h.
676         * nat/linux-btrace.h (struct target_ops): New forward declaration.
677
678 2014-09-12  Gary Benson  <gbenson@redhat.com>
679
680         * common/agent.c: Include common-defs.h.
681         Don't include defs.h or server.h.
682         * common/buffer.c: Likewise.
683         * common/common-debug.c: Likewise.
684         * common/common-utils.c: Likewise.
685         * common/errors.c: Likewise.
686         * common/filestuff.c: Likewise.
687         * common/format.c: Likewise.
688         * common/gdb_vecs.c: Likewise.
689         * common/print-utils.c: Likewise.
690         * common/ptid.c: Likewise.
691         * common/rsp-low.c: Likewise.
692         * common/signals.c: Likewise.
693         * common/vec.c: Likewise.
694         * common/xml-utils.c: Likewise.
695         * nat/linux-osdata.c: Likewise.
696         * nat/linux-procfs.c: Likewise.
697         * nat/linux-ptrace.c: Likewise.
698         * nat/mips-linux-watch.c: Likewise.
699         * target/waitstatus.c: Likewise.
700
701 2014-09-12  Tom Tromey  <tromey@redhat.com>
702             Gary Benson  <gbenson@redhat.com>
703
704         * common/common-regcache.h: New file.
705         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
706         * regcache.h: Include common-regcache.h.
707         (regcache_read_pc): Don't declare.
708         * regcache.c (get_thread_regcache_for_ptid): New function.
709         * nat/linux-btrace.c: Don't include regcache.h.
710         Include common-regcache.h.
711         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
712
713 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
714
715         * regcache.h (struct regset): Declare.
716
717 2014-09-11  Pedro Alves  <palves@redhat.com>
718
719         PR gdb/17347
720         * main.c: Include "infrun.h".
721         (catch_command_errors, catch_command_errors_const): Wait for the
722         foreground command to complete.
723         * top.c (maybe_wait_sync_command_done): New function, factored out
724         from ...
725         (maybe_wait_sync_command_done): ... here.
726         * top.h (maybe_wait_sync_command_done): New declaration.
727
728 2014-09-11  Tom Tromey  <tromey@redhat.com>
729             Gary Benson  <gbenson@redhat.com>
730
731         * common/symbol.h: New file.
732         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
733         * minsyms.c (find_minimal_symbol_address): New function.
734         * common/agent.c: Include common/symbol.h.
735         [!GDBSERVER]: Don't include objfiles.h.
736         (agent_look_up_symbols): Use find_minimal_symbol_address.
737
738 2014-09-11  Gary Benson  <gbenson@redhat.com>
739
740         * target/target.h (target_stop_ptid, target_continue_ptid):
741         Declare.
742         * target.c (target_stop_ptid, target_continue_ptid): New
743         functions.
744         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
745         (agent_run_command): Always use target_stop_ptid and
746         target_continue_ptid.
747
748 2014-09-11  Tom Tromey  <tromey@redhat.com>
749             Gary Benson  <gbenson@redhat.com>
750
751         * target/target.h: New file.
752         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
753         * target.h: Include target/target.h.
754         (target_read_memory, target_write_memory): Don't declare.
755         * target.c (target_read_uint32): New function.
756         * common/agent.c: Include target/target.h.
757         [!GDBSERVER]: Don't include target.h.
758         (helper_thread_id): Type changed to uint32_t.
759         (agent_get_helper_thread_id): Use target_read_uint32.
760         (agent_run_command): Always use target_read_memory and
761         target_write_memory.
762         (agent_capability): Type changed to uint32_t.
763         (agent_capability_check): Use target_read_uint32.
764
765 2014-09-11  Gary Benson  <gbenson@redhat.com>
766
767         * common/common-debug.h (show_debug_regs): Declare.
768         * common/common-debug.c (show_debug_regs): Define.
769         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
770         all uses with show_debug_regs.  Replace all uses that considered
771         debug_hw_points as a multi-value integer with straight boolean
772         uses.
773         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
774         with show_debug_regs.
775         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
776         all uses with show_debug_regs.
777         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
778         uses with show_debug_regs.
779
780 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
781
782         * findvar.c (address_from_register): Handle targets requiring
783         a special conversion routine even for plain pointer types.
784
785 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
786
787         * rs6000-nat.c (exec_one_dummy_insn): Remove.
788         (store_register): Do not call exec_one_dummy_insn.
789
790 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
791
792         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
793         dereference it first.  Use value_enclosing_type instead of
794         value_type.
795         (ada_array_length): Likewise.
796
797 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
798
799         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
800         Adjust function implementation and documentation accordingly.
801         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
802         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
803         Update call to ada_value_ptr_subscript.
804
805 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
806
807         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
808         instead of VAL's type.
809
810 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
811
812         * amd64-linux-nat.c: Add <sys/uio.h> #include.
813
814 2014-09-09  Doug Evans  <xdje42@gmail.com>
815
816         PR guile/17367
817         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
818         last parameter to pkg-config, not first.
819         * configure.ac: Pass --with-guile provided pkg-config path to
820         GDB_GUILE_PROGRAM_NAMES.
821         * configure: Regenerate.
822
823 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
824
825         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
826         Bertazi".
827
828 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
829
830         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
831         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
832         the list of sections determining GDB_OSABI_IRIX.
833
834 2014-09-09  James Hogan  <james.hogan@imgtec.com>
835
836         * MAINTAINERS (Write After Approval): Add "James Hogan".
837
838 2014-09-09  James Hogan  <james.hogan@imgtec.com>
839
840         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
841
842 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
843
844         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
845
846 2014-09-08  Doug Evans  <xdje42@gmail.com>
847
848         PR 17247
849         * guile.c: #include <signal.h>.
850         (_initialize_guile): Block SIGCHLD while initializing Guile.
851
852         Replaces the following, which is reverted.
853
854         2014-07-26  Doug Evans  <xdje42@gmail.com>
855
856         PR 17185
857         * configure.ac: Add check for header gc/gc.h.
858         Add check for function setenv.
859         * configure: Regenerate.
860         * config.in: Regenerate.
861         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
862
863 2014-09-08  Doug Evans  <xdje42@gmail.com>
864
865         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
866         with named constant.  Fix style of pointer comparison.
867         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
868
869 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
870
871         PR gdb/17035
872         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
873         decide whether we display the command on "show user".
874         * cli/cli-script.c (show_user_1): Only verify cmdlines after
875         printing command name.
876         * cli/cli-decode.h (cli_user_command_p): Declare new function.
877         * cli/cli-decode.c (cli_user_command_p): Create helper function
878         to verify whether cmd_list_element is a user-defined command.
879
880 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
881
882         PR python/17355
883         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
884         Fix goto out of TRY_CATCH.
885
886 2014-09-06  Doug Evans  <xdje42@gmail.com>
887             Tom Tromey  <tromey@redhat.com>
888
889         PR 15276
890         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
891         $_any_caller_matches.
892         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
893         * python/lib/gdb/function/caller_is.py: New file.
894
895 2014-09-06  Doug Evans  <xdje42@gmail.com>
896
897         * infcmd.c (program_info): Fix typo.
898
899 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
900
901         PR gdb/17235
902         * stap-probe.c (stap_parse_single_operand): Delete unused variable
903         'number'.  New variable 'has_digit'.  Rewrite code to deal with
904         subexpressions on SDT probes.
905
906 2014-09-04  Pedro Alves  <palves@redhat.com>
907
908         * c-exp.y (parse_number): Skip handling base-switching prefixes if
909         the input is only one character long.
910
911 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
912
913         PR fortran/17237
914         * f-valprint.c (f_val_print): Specify the correct print option to
915         use when printing integer values.
916
917 2014-09-04  Gary Benson  <gbenson@redhat.com>
918
919         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
920         Remove code to cope with LWPs wrapped as PIDs.
921         Add assertions to ensure no wrapped LWPs are passed.
922
923 2014-09-04  Pedro Alves  <palves@redhat.com>
924
925         * value.c (value_ranges_copy_adjusted): New function, factored out
926         from ...
927         (value_contents_copy_raw): ... here.
928         (unpack_value_bits_as_long_1): Rename back to ...
929         (unpack_bits_as_long): ... this.  Remove 'original_value' and
930         'result' parameters.  Change return type to LONGEST.
931         (unpack_value_bits_as_long): Delete.
932         (unpack_value_field_as_long_1): Delete.
933         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
934         (unpack_value_bitfield): New function.
935         (value_field_bitfield): Reimplement using unpack_value_bitfield.
936         (value_fetch_lazy): Use unpack_value_bitfield.
937         * value.h (unpack_value_bits_as_long): Delete declaration.
938
939 2014-09-03  Sasha Smundak  <asmundak@google.com>
940
941         * python/py-frame.c (frapy_read_register): New function.
942
943 2014-09-03  James Hogan  <james.hogan@imgtec.com>
944
945         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
946         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
947
948 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
949
950         PR python/16699
951         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
952         function.
953         (add_cmd): Set "completer_handle_brkchars" to NULL.
954         * cli/cli-decode.h (struct cmd_list_element)
955         <completer_handle_brkchars>: New field.
956         * command.h (completer_ftype_void): New typedef.
957         (set_cmd_completer_handle_brkchars): New prototype.
958         * completer.c (set_gdb_completion_word_break_characters): New
959         function.
960         (complete_line_internal): Call "completer_handle_brkchars"
961         callback from command.
962         * completer.h: Include "command.h".
963         (set_gdb_completion_word_break_characters): New prototype.
964         * python/py-cmd.c (cmdpy_completer_helper): New function.
965         (cmdpy_completer_handle_brkchars): New function.
966         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
967         (cmdpy_init): Set completer_handle_brkchars to
968         cmdpy_completer_handle_brkchars.
969
970 2014-09-03  Gary Benson  <gbenson@redhat.com>
971
972         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
973         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
974         Loop conditions changed to equivalent form.
975         (struct x86_debug_reg_state): Updated dr_ref_count comment.
976         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
977         ALL_DEBUG_ADDRESS_REGISTERS.
978
979 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
980
981         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
982         description fix.
983
984 2014-09-02  Doug Evans  <dje@google.com>
985
986         * typeprint.c (find_global_typedef): Fix comment.
987
988 2014-09-02  Gary Benson  <gbenson@redhat.com>
989
990         * i386-nat.h: Renamed as...
991         * x86-nat.h: New file.  All type, function and variable name
992         prefixes changed from "i386_" to "x86_".  All references updated.
993         * i386-nat.c: Renamed as...
994         * x86-nat.c: New file.  All type, function and variable name
995         prefixes changed from "i386_" to "x86_".  All references updated.
996         * common/i386-xstate.h: Renamed as...
997         * common/x86-xstate.h: New file.  All type, function and variable
998         name prefixes changed from "i386_" to "x86_".  All references
999         updated.
1000         * nat/i386-cpuid.h: Renamed as...
1001         * nat/x86-cpuid.h: New file.  All type, function and variable name
1002         prefixes changed from "i386_" to "x86_".  All references updated.
1003         * nat/i386-gcc-cpuid.h: Renamed as...
1004         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1005         name prefixes changed from "i386_" to "x86_".  All references
1006         updated.
1007         * nat/i386-dregs.h: Renamed as...
1008         * nat/x86-dregs.h: New file.  All type, function and variable name
1009         prefixes changed from "i386_" to "x86_".  All references updated.
1010         * nat/i386-dregs.c: Renamed as...
1011         * nat/x86-dregs.c: New file.  All type, function and variable name
1012         prefixes changed from "i386_" to "x86_".  All references updated.
1013
1014 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1015
1016         * varobj.c (_initialize_varobj): Move to the end of file.
1017
1018 2014-08-29  Gary Benson  <gbenson@redhat.com>
1019
1020         * common/common-exceptions.h: New file.
1021         * common/common-exceptions.c: Likewise.
1022         * Makefile.in (SFILES): Add common/common-exceptions.c.
1023         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1024         (COMMON_OBS): Add common-exceptions.o.
1025         (common-exceptions.o): New rule.
1026         * exceptions.h (common-exceptions.h): Include.
1027         (gdb_setjmp.h): Do not include.
1028         (return_reason): Moved to common-exceptions.h.
1029         (enum return_reason): Likewise.
1030         (RETURN_MASK): Likewise.
1031         (typedef return_mask): Likewise.
1032         (enum errors): Likewise.
1033         (struct gdb_exception): Likewise.
1034         (exceptions_state_mc_init): Likewise.
1035         (exceptions_state_mc_action_iter): Likewise.
1036         (exceptions_state_mc_action_iter_1): Likewise.
1037         (TRY_CATCH): Likewise.
1038         (throw_exception): Likewise.
1039         (throw_verror): Likewise.
1040         (throw_vquit): Likewise.
1041         (throw_error): Likewise.
1042         (throw_quit): Likewise.
1043         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1044         (enum catcher_action): Likewise.
1045         (struct catcher): Likewise.
1046         (current_catcher): Likewise.
1047         (catcher_list_size): Likewise.
1048         (exceptions_state_mc_init): Likewise.
1049         (catcher_pop): Likewise.
1050         (exceptions_state_mc): Likewise.
1051         (exceptions_state_mc_action_iter): Likewise.
1052         (exceptions_state_mc_action_iter_1): Likewise.
1053         (throw_exception): Likewise.
1054         (exception_messages): Likewise.
1055         (exception_messages_size): Likewise.
1056         (throw_it): Likewise.
1057         (throw_verror): Likewise.
1058         (throw_vquit): Likewise.
1059         (throw_error): Likewise.
1060         (throw_quit): Likewise.
1061         (prepare_to_throw_exception): New function.
1062
1063 2014-08-29  Gary Benson  <gbenson@redhat.com>
1064
1065         * common/gdb_setjmp.h: New file.
1066         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1067         * configure.ac: Move sigsetjmp check...
1068         * common/common.m4: ...here.
1069         * configure: Regenerate.
1070         * cp-support.c (SIGJMP_BUF): Delete.
1071         (SIGSETJMP): Likewise.
1072         (SIGLONGJMP): Likewise.
1073         * exceptions.h (gdb_setjmp.h): Include.
1074         (setjmp.h): Do not include.
1075         (EXCEPTIONS_SIGJMP_BUF): Delete.
1076         (EXCEPTIONS_SIGSETJMP): Likewise.
1077         (EXCEPTIONS_SIGLONGJMP): Likewise.
1078         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1079         from gdb_setjmp.h.
1080         * exceptions.c: Likewise.
1081
1082 2014-08-29  Gary Benson  <gbenson@redhat.com>
1083
1084         * cleanups.h: Moved to...
1085         * common/cleanups.h: New file.
1086         * cleanups.c: Moved to...
1087         * common/cleanups.c: New file.  Include common-defs.h and
1088         cleanups.h.  Do not include defs.h.
1089         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1090         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1091         (cleanups.o): New rule.
1092
1093 2014-08-29  Gary Benson  <gbenson@redhat.com>
1094
1095         * common/errors.h (internal_warning): New declaration.
1096         (internal_vwarning): Likewise.
1097         * common/errors.c (internal_warning): New function.
1098         * utils.h (internal_warning): Don't declare.
1099         (internal_vwarning): Likewise.
1100         * utils.c (internal_warning): Removed.
1101
1102 2014-08-29  Gary Benson  <gbenson@redhat.com>
1103
1104         * main.c (captured_main): Use warning during startup.
1105         Prefix startup warning messages with command name.
1106
1107 2014-08-29  Gary Benson  <gbenson@redhat.com>
1108
1109         * main.c (captured_main): Handle usage errors with error.
1110
1111 2014-08-29  Gary Benson  <gbenson@redhat.com>
1112
1113         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1114         exit pair with a call to error.  Wrap the message with _().
1115
1116 2014-08-29  Gary Benson  <gbenson@redhat.com>
1117
1118         * main.c (captured_main): Replace a fprintf/exit
1119         pair with a call to error.  Wrap the message with _().
1120
1121 2014-08-29  Gary Benson  <gbenson@redhat.com>
1122
1123         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1124         pairs with calls to error.  Wrap the message with _().
1125
1126 2014-08-29  Gary Benson  <gbenson@redhat.com>
1127
1128         * utils.c (vwarning): Protect calls to target_terminal_ours
1129         and wrap_here.
1130
1131 2014-08-29  Gary Benson  <gbenson@redhat.com>
1132
1133         * exceptions.c (print_flush): Protect calls to
1134         target_terminal_ours and wrap_here.
1135
1136 2014-08-29  Gary Benson  <gbenson@redhat.com>
1137
1138         * utils.h (filtered_printing_initialized): New declaration.
1139         * utils.c (abort_with_message): New function.
1140         (internal_vproblem): Use abort_with_message for first level
1141         recursive internal problems, and if gdb_stderr is not set up.
1142         Protect calls to target_terminal_ours, begin_line and query.
1143
1144 2014-08-28  Doug Evans  <dje@google.com>
1145
1146         * symtab.c (in_prologue): Move definition to better spot.
1147         (skip_prologue_using_sal): Ditto.
1148
1149 2014-08-28  Doug Evans  <dje@google.com>
1150
1151         * symtab.c (find_function_start_sal): Move definition to better spot.
1152
1153 2014-08-28  Yao Qi  <yao@codesourcery.com>
1154
1155         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1156         found_stack_adjust in forward scan.  Remove condition check
1157         on found_stack_adjust which is always true.  Indent the code.
1158
1159 2014-08-28  Yao Qi  <yao@codesourcery.com>
1160
1161         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1162         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1163         (dwarf_decode_lines): Remove argument
1164         want_line_info.  Remove condition check on want_line_info.
1165         Callers update.
1166
1167 2014-08-27  Doug Evans  <dje@google.com>
1168
1169         * dwarf2read.c (dwarf_record_line): Fix typo.
1170
1171 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1172
1173         * target.h (struct target_ops::to_terminal_save_ours): Remove
1174         declaration.
1175         (target_terminal_save_ours): Remove macro.
1176         * target-delegates.c: Regenerate.
1177         * inf-child.c (inf_child_target): Don't set the nonexistent
1178         field to_terminal_save_ours.
1179         * inferior.h (child_terminal_save_ours): Remove declaration.
1180         * terminal.h (gdb_save_tty_state): New declaration.
1181         * inflow.c (child_terminal_save_ours): Rename to ...
1182         (gdb_save_tty_state): ... this.
1183         * tui/tui.c: Include terminal.h.
1184         (tui_enable): Use gdb_save_tty_state instead of
1185         target_terminal_save_ours.
1186         (tui_disable): Likewise.
1187
1188 2014-08-25  Doug Evans  <dje@google.com>
1189
1190         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1191         Pass NULL instead of 0 for context pointer.
1192
1193 2014-08-25  Yao Qi  <yao@codesourcery.com>
1194
1195         * dwarf2read.c: Fix grammatical error.
1196
1197 2014-08-24  Yao Qi  <yao@codesourcery.com>
1198
1199         * dwarf2read.c (scan_partial_symbols):  Update comments.
1200         Rename argument 'need_pc' with 'set_addrmap'.
1201         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1202         'set_addrmap'.
1203         (add_partial_module): Likewise.
1204         (add_partial_subprogram): Likewise.  Update comments.
1205         (dwarf2_name): Fix typo.
1206
1207 2014-08-22  Doug Evans  <dje@google.com>
1208
1209         PR 17276
1210         * dwarf2read.c (dwarf_record_line_p): New function.
1211         (dwarf_decode_lines_1): Ignore subsequent line number entries
1212         for the same line if any entry had a non-zero discriminator.
1213
1214 2014-08-22  Doug Evans  <dje@google.com>
1215
1216         * buildsym.h (record_line_ftype): New typedef.
1217         (record_line): Use it.
1218         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1219         (dwarf_decode_lines_1): Call them.
1220
1221 2014-08-22  Yao Qi  <yao@codesourcery.com>
1222
1223         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1224         (ctf_end): Remove code.
1225
1226 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1227
1228         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1229         (linux_make_corefile_notes): call update_thread_list, protected against
1230         exceptions.
1231
1232 2014-08-21  Pedro Alves  <palves@redhat.com>
1233
1234         * infcmd.c (attach_command): Remove comment.
1235
1236 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1237
1238         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1239         unsigned LONGEST to ULONGEST.
1240
1241 2014-08-20  Pedro Alves  <palves@redhat.com>
1242
1243         * Makefile.in (check-read1): New rule.
1244
1245 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1246
1247         * value.c (value_from_contents_and_address): Strip resolved_type's
1248         typedef layers before checking its TYPE_DATA_LOCATION.
1249
1250 2014-08-20  Pedro Alves  <palves@redhat.com>
1251
1252         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1253
1254 2014-08-20  Yao Qi  <yao@codesourcery.com>
1255
1256         * amd64-tdep.c (amd64_classify): Add a blank line after the
1257         example.  Move "*/" to a new line.
1258         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1259         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1260         * dwarf2read.c (psymtab_include_file_name): Likewise.
1261
1262 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1263             Pedro Alves  <palves@redhat.com>
1264
1265         PR symtab/14604
1266         PR symtab/14605
1267         * ada-lang.c (coerce_unspec_val_to_type): Use
1268         value_contents_copy_raw.
1269         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1270         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1271         * cp-valprint.c (cp_print_value_fields): Let the common printing
1272         code handle optimized out values.
1273         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1274         * d-valprint.c (dynamic_array_type): Use
1275         value_bits_any_optimized_out.
1276         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1277         check_any_valid fields.
1278         (check_pieced_value_bits): Delete and inline ...
1279         (check_pieced_synthetic_pointer): ... here.
1280         (check_pieced_value_validity): Delete.
1281         (check_pieced_value_invalid): Delete.
1282         (pieced_value_funcs): Remove check_validity and check_any_valid
1283         fields.
1284         (read_pieced_value): Use mark_value_bits_optimized_out.
1285         (write_pieced_value): Switch to use
1286         mark_value_bytes_optimized_out.
1287         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1288         of assuming the whole value is optimized out.
1289         * findvar.c (read_frame_register_value): Remove special handling
1290         of optimized out registers.
1291         (value_from_register): Use mark_value_bytes_optimized_out.
1292         * frame-unwind.c (frame_unwind_got_optimized): Use
1293         mark_value_bytes_optimized_out.
1294         * jv-valprint.c (java_value_print): Adjust.
1295         (java_print_value_fields): Let the common printing code handle
1296         optimized out values.
1297         * mips-tdep.c (mips_print_register): Remove special handling of
1298         optimized out registers.
1299         * opencl-lang.c (lval_func_check_validity): Delete.
1300         (lval_func_check_any_valid): Delete.
1301         (opencl_value_funcs): Remove check_validity and check_any_valid
1302         fields.
1303         * p-valprint.c (pascal_object_print_value_fields): Let the common
1304         printing code handle optimized out values.
1305         * stack.c (read_frame_arg): Remove special handling of optimized
1306         out values.  Fetch both VAL and ENTRYVAL before comparing
1307         contents.  Adjust to value_available_contents_eq rename.
1308         * valprint.c (valprint_check_validity)
1309         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1310         (val_print_array_elements): Adjust.
1311         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1312         (value_bits_any_optimized_out): New function.
1313         (value_entirely_covered_by_range_vector): New function, factored
1314         out from value_entirely_unavailable.
1315         (value_entirely_unavailable): Reimplement.
1316         (value_entirely_optimized_out): New function.
1317         (insert_into_bit_range_vector): New function, factored out from
1318         mark_value_bits_unavailable.
1319         (mark_value_bits_unavailable): Reimplement.
1320         (struct ranges_and_idx): New struct.
1321         (find_first_range_overlap_and_match): New function, factored out
1322         from value_available_contents_bits_eq.
1323         (value_available_contents_bits_eq): Rename to ...
1324         (value_contents_bits_eq): ... this.  Check both unavailable
1325         contents and optimized out contents.
1326         (value_available_contents_eq): Rename to ...
1327         (value_contents_eq): ... this.
1328         (allocate_value_lazy): Remove reference to the old optimized_out
1329         boolean.
1330         (allocate_optimized_out_value): Use
1331         mark_value_bytes_optimized_out.
1332         (require_not_optimized_out): Adjust to check whether the
1333         optimized_out vec is empty.
1334         (ranges_copy_adjusted): New function, factored out from
1335         value_contents_copy_raw.
1336         (value_contents_copy_raw): Also copy the optimized out ranges.
1337         Assert the destination ranges aren't optimized out.
1338         (value_contents_copy): Update comment, remove call to
1339         require_not_optimized_out.
1340         (value_contents_equal): Adjust to check whether the optimized_out
1341         vec is empty.
1342         (set_value_optimized_out, value_optimized_out_const): Delete.
1343         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1344         New functions.
1345         (value_entirely_optimized_out, value_bits_valid): Delete.
1346         (value_copy): Take a VEC copy of the 'optimized_out' field.
1347         (value_primitive_field): Remove special handling of optimized out.
1348         (value_fetch_lazy): Assert that lazy values have no unavailable
1349         regions.  Use value_bits_any_optimized_out.  Remove some special
1350         handling for optimized out values.
1351         * value.h: Add intro comment about <optimized out> and
1352         <unavailable>.
1353         (struct lval_funcs): Remove check_validity and check_any_valid
1354         fields.
1355         (set_value_optimized_out, value_optimized_out_const): Remove.
1356         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1357         New declarations.
1358         (value_bits_any_optimized_out): New declaration.
1359         (value_bits_valid): Delete declaration.
1360         (value_available_contents_eq): Rename to ...
1361         (value_contents_eq): ... this, and extend comments.
1362
1363 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1364
1365         Fix -fsanitize=address on unreadable inferior strings.
1366         * valprint.c (val_print_string): Fix access before BUFFER.
1367
1368 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1369
1370         * target.c (target_struct_size): Remove.
1371         (target_struct_allocsize): Remove.
1372         (DEFAULT_ALLOCSIZE): Remove.
1373         (target_ops_p): New typedef.
1374         (DEF_VEC_P (target_ops_p)): New vector type.
1375         (target_structs): Change type to VEC (target_ops_p).
1376         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1377         (find_default_run_target): Rewrite for loop following changes to
1378         target_structs.
1379
1380 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1381
1382         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1383         Adjust code accordingly.  Adjust function description comment.
1384
1385 2014-08-19  Yao Qi  <yao@codesourcery.com>
1386
1387         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1388         types.
1389
1390 2014-08-19  Alan Modra  <amodra@gmail.com>
1391
1392         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1393         * config.in: Regenerate.
1394         * configure: Regenerate.
1395
1396 2014-08-19  Tom Tromey  <tromey@redhat.com>
1397             Gary Benson  <gbenson@redhat.com>
1398
1399         * common/common-debug.h: New file.
1400         * common/common-debug.c: Likewise.
1401         * debug.c: Likewise.
1402         * Makefile.in (SFILES): Add common/common-debug.c.
1403         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1404         (COMMON_OBS): Add common-debug.o and debug.o.
1405         (common-debug.o): New rule.
1406         * common/common-defs.h: Include common-debug.h.
1407         * common/agent.c (debug_agent_printf): New function.
1408         (DEBUG_AGENT): Redefine.
1409         * nat/i386-dregs.c (debug_printf): Undefine.
1410
1411 2014-08-19  Gary Benson  <gbenson@redhat.com>
1412
1413         * common/common-defs.h: Include print-utils.h.
1414         * utils.h: Do not include print-utils.h.
1415
1416 2014-08-19  Tom Tromey  <tromey@redhat.com>
1417             Gary Benson  <gbenson@redhat.com>
1418
1419         * common/common-types.h: New file.
1420         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1421         * common/common-defs.h: Include common-types.h.
1422         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1423         (ULONGEST): Remove.
1424
1425 2014-08-19  Tom Tromey  <tromey@redhat.com>
1426             Gary Benson  <gbenson@redhat.com>
1427
1428         * common/errors.h: New file.
1429         * common/errors.c: Likewise.
1430         * Makefile.in (SFILES): Add common/errors.c.
1431         (HFILES_NO_SRCDIR): Add common/errors.h.
1432         (COMMON_OBS): Add errors.o.
1433         (errors.o): New rule.
1434         * common/common-defs.h: Include errors.h.
1435         * utils.h (perror_with_name, error, verror, warning, vwarning):
1436         Don't declare.
1437         * common/common-utils.h: (malloc_failure, internal_error):
1438         Likewise.
1439
1440 2014-08-19  Gary Benson  <gbenson@redhat.com>
1441
1442         * utils.c (internal_vproblem): Always print the message.
1443
1444 2014-08-18  Doug Evans  <dje@google.com>
1445
1446         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1447
1448 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1449
1450         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1451         Return 0 if TYPE is dynamic.
1452         (print_range): Add handling of dynamic ranges.
1453
1454 2014-08-18  Keven Boell  <keven.boell@intel.com>
1455             Joel Brobecker  <brobecker@adacore.com>
1456
1457         * gdbtypes.h (struct main_type): Add field "data_location".
1458         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1459         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1460         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1461         a dynamic data location.
1462         (resolve_dynamic_type): Add DW_AT_data_location handling.
1463         (copy_recursive, copy_type): Copy the data_location information
1464         when present.
1465         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1466         * value.c (value_from_contents_and_address): Add
1467         DW_AT_data_location handling.
1468
1469 2014-08-18  Keven Boell  <keven.boell@intel.com>
1470             Joel Brobecker  <brobecker@adacore.com>
1471
1472         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1473         field "get_object_address".
1474         * dwarf2expr.c (execute_stack_op): Add handling for
1475         DW_OP_push_object_address.
1476         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1477         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1478         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1479         (dwarf_expr_get_obj_addr): New function.
1480         (dwarf_expr_ctx_funcs): Add get_object_address field.
1481         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1482         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1483         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1484         (needs_get_obj_addr): New function.
1485         (needs_frame_ctx_funcs): Add get_object_address field.
1486         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1487         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1488         (resolve_dynamic_array): Likewise.
1489
1490 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1491
1492         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1493         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1494         fixed value for records and unions for which some GNAT encodings
1495         are present.
1496
1497 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1498
1499         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1500         rewrite to avoid "else if" and "else" constructs.  Should be
1501         a no-op in practice.
1502
1503 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1504
1505         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1506         of lexical block.
1507
1508 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1509
1510         PR c++/17132
1511         * eval.c: Update all calls to find_overload_match.
1512         * valarith.c: Likewise.
1513         (value_user_defined_cpp_op, value_user_defined_op): New
1514         argument NOSIDE.  Update all callers.
1515         * valops.c (find_overload_match): New argument NOSIDE.
1516         * value.h (find_overload_match): Update signature.
1517
1518 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1519
1520         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1521         'items' methods instead of 'iteritems' method on dictionaries.
1522
1523 2014-08-15  Doug Evans  <dje@google.com>
1524
1525         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1526         closer to use.
1527
1528 2014-08-15  Doug Evans  <dje@google.com>
1529
1530         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1531
1532 2014-08-15  Doug Evans  <dje@google.com>
1533
1534         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1535
1536 2014-08-15  Doug Evans  <dje@google.com>
1537
1538         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1539         unused.
1540
1541 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1542
1543         * dcache.h: Include target.h, to avoid compile time warnings.
1544
1545 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1546
1547         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1548         frame_info" partial declaration.
1549         * gdbarch.h: Regenerate.
1550
1551 2014-08-15  Yao Qi  <yao@codesourcery.com>
1552
1553         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1554         Add parameter 'decode_for_pst_p'.  Callers update.
1555
1556 2014-08-13  Yao Qi  <yao@codesourcery.com>
1557
1558         PR build/17104
1559         * configure.ac: Use local variable 'pos'.
1560         * configure: Regenerated.
1561
1562 2014-08-11  Doug Evans  <dje@google.com>
1563
1564         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1565         message, it is redundant with "Reading symbols from ..." message.
1566
1567 2014-08-10  Doug Evans  <xdje42@gmail.com>
1568
1569         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1570
1571 2014-08-09  Yao Qi  <yao@codesourcery.com>
1572
1573         PR remote/9053
1574         * remote.c (remote_xfer_partial): Remove dead code.
1575
1576 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1577
1578         * ia64-linux-tdep.c: Include "regset.h".
1579         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1580         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1581         (ia64_linux_supply_fpregset): New function.
1582         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1583         (ia64_linux_regset_from_core_section): New function.
1584         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1585         method.
1586
1587 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1588
1589         * m68klinux-tdep.c: Include "regset.h".
1590         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1591         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1592         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1593         (m68k_linux_regset_from_core_section): New function.
1594         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1595         method.
1596
1597 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1598
1599         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1600         function.  Move logic to...
1601         (tilegx_linux_regmap): ... this new register map.
1602         (tilegx_linux_regset): Refer to register map, replace supply
1603         method by regcache_supply_regset, and add collect method.
1604         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1605         TILEGX_FIRST_EASY_REGNUM.
1606
1607 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1608
1609         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1610         that calls regcache_supply_regset and handles the EPC register
1611         separately.  Move main logic to...
1612         (score7_linux_gregmap): ... this new register map.
1613         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1614         (score7_linux_gregset): Refer to register map.  Add collect method.
1615         (score7_linux_regset_from_core_section): Replace
1616         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1617         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1618         (struct regset): Delete unused forward declaraction.
1619         (struct pt_regs): Delete structure definition.
1620         (elf_gregset_t): Delete typedef.
1621
1622 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1623
1624         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1625         (nios2_core_regset): Add collect method.
1626
1627 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1628
1629         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1630         platform-independent and don't write to read-only input buffer.
1631         (m32r_linux_collect_gregset): New function.
1632         (m32r_linux_gregset): Add collect method.
1633
1634 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1635
1636         * hppa-linux-tdep.c (greg_map): Rename to...
1637         (hppa_linux_gregmap): ... this.  Also convert to
1638         regcache_map_entry format.
1639         (hppa_linux_supply_regset): Delete function.
1640         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1641         (hppa_linux_fpregmap): ... this new register map.
1642         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1643         register map, replace supply method by regcache_supply_regset, and
1644         add collect method regcache_collect_regset.
1645
1646 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1647
1648         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1649         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1650         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1651         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1652         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1653         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1654         (frv_linux_supply_gregset): Replace main logic by call to
1655         regcache_supply_regset, but keep clearing gr32-gr63.
1656         (frv_linux_supply_fpregset): Delete function.
1657         (frv_linux_gregset): Refer to appropriate register map and add
1658         regcache_collect_regset as the collect method.
1659         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1660         by regcache_supply_regset.
1661
1662 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1663
1664         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1665         by call to alpha_supply_int_regs.
1666         (alpha_linux_collect_gregset): New function.
1667         (alpha_linux_supply_fpregset): Replace logic by call to
1668         alpha_supply_fp_regs.
1669         (alpha_linux_collect_fpregset): New function.
1670         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1671
1672 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1673
1674         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1675         by call to regcache_collect_regset.
1676         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1677         instead of aarch64_linux_supply_gregset/_fpregset.
1678         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1679         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1680         header file instead.
1681         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1682         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1683         functions.  Move logic to ...
1684         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1685         register maps.
1686         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1687         refer to new register maps, replace *_regset_from_core by
1688         regcache_supply_regset, and also use regcache_collect_regset.
1689         * aarch64-linux-tdep.h: Include "regset.h".
1690         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1691         Delete prototypes.
1692         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1693         macros, moved from C source file.
1694         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1695         variable declarations.
1696
1697 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1698
1699         * s390-linux-nat.c: Include "regset.h".
1700         (regmap_gregset): Delete macro.
1701         (s390_64_regmap_gregset): New register map for
1702         regcache_supply/_collect_regset.
1703         (s390_64_gregset): New regset.
1704         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1705         (regmap_fpregset): Delete macro.
1706         (s390_native_supply, s390_native_collect): Delete functions.
1707         (supply_gregset, fill_gregset): Replace s390-specific regmap
1708         handling by a call to regcache_supply/_collect_regset.
1709         (supply_fpregset, fill_fpregset): Call regcache_supply/
1710         _collect_regset instead of s390_native_supply/_collect.
1711         (fetch_regset, store_regset): Likewise.  Also change the last
1712         parameter to a regset instead of a regmap.
1713         (s390_linux_fetch_inferior_registers)
1714         (390_linux_store_inferior_registers): Adjust last parameter in
1715         calls to fetch_regset and store_regset.
1716         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1717         (s390_gregmap): ... this.  Also make static const and convert to
1718         regcache_map_entry format.
1719         (s390x_regmap_gregset): Delete.
1720         (s390_regmap_fpregset): Rename to...
1721         (s390_fpregmap): ... this.  Make static const and convert to
1722         regcache_map_entry format.
1723         (s390_regmap_upper, s390_regmap_last_break)
1724         (s390x_regmap_last_break, s390_regmap_system_call)
1725         (s390_regmap_tdb): Likewise.
1726         (s390_supply_regset, s390_collect_regset): Remove functions.
1727         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1728         s390_supply_regset.
1729         (s390_gregset, s390_fpregset, s390_upper_regset)
1730         (s390_last_break_regset, s390x_last_break_regset)
1731         (s390_system_call_regset, s390_tdb_regset): Make global and
1732         replace s390_supply/_collect_regset by regcache_supply/
1733         _collect_regset.
1734         (s390x_gregset): Delete.
1735         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1736         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1737         (s390_regmap_fpregset, s390_regmap_last_break)
1738         (s390x_regmap_last_break, s390_regmap_system_call)
1739         (s390_regmap_tdb): Delete global variable declarations.
1740         (s390_gregset, s390_fpregset, s390_last_break_regset)
1741         (s390x_last_break_regset, s390_system_call_regset)
1742         (s390_tdb_regset): New global variable declarations.
1743
1744 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1745
1746         * regcache.c: Include "regset.h".
1747         (regcache_transfer_regset): New local function.
1748         (regcache_supply_regset, regcache_collect_regset): New functions.
1749         * regcache.h (struct regcache_map_entry): New structure.
1750         (REGCACHE_MAP_SKIP): New enum value.
1751         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1752
1753 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1754
1755         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1756         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1757         (ppc_linux_collect_gregset ): Likewise.
1758         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1759         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1760         (ppc_collect_vrregset): Likewise.
1761         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1762         Likewise.
1763
1764 2014-08-07  Yao Qi  <yao@codesourcery.com>
1765
1766         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1767         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1768         * remote.c (remote_read_bytes): Likewise.
1769
1770 2014-08-07  Yao Qi  <yao@codesourcery.com>
1771
1772         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1773
1774 2014-08-07  Yao Qi  <yao@codesourcery.com>
1775
1776         PR remote/17230
1777         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1778         TARGET_XFER_OK instead of 0.
1779
1780 2014-08-07  Gary Benson  <gbenson@redhat.com>
1781
1782         * common/common-defs.h: Include errno.h.
1783         * defs.h: Do not include errno.h.
1784         * ada-typeprint.c: Likewise.
1785         * c-typeprint.c: Likewise.
1786         * core-regset.c: Likewise.
1787         * corefile.c: Likewise.
1788         * corelow.c: Likewise.
1789         * event-loop.c: Likewise.
1790         * f-typeprint.c: Likewise.
1791         * gnu-nat.c: Likewise.
1792         * go32-nat.c: Likewise.
1793         * i386gnu-nat.c: Likewise.
1794         * m2-typeprint.c: Likewise.
1795         * nat/linux-btrace.c: Likewise.
1796         * p-typeprint.c: Likewise.
1797         * procfs.c: Likewise.
1798         * remote-sim.c: Likewise.
1799         * rs6000-nat.c: Likewise.
1800         * target.c: Likewise.
1801         * typeprint.c: Likewise.
1802         * ui-file.c: Likewise.
1803         * valops.c: Likewise.
1804         * valprint.c: Likewise.
1805
1806 2014-08-07  Gary Benson  <gbenson@redhat.com>
1807
1808         * common/common-defs.h: Include string.h.
1809         * aarch64-tdep.c: Do not include string.h.
1810         * ada-exp.y: Likewise.
1811         * ada-lang.c: Likewise.
1812         * ada-lex.l: Likewise.
1813         * ada-typeprint.c: Likewise.
1814         * ada-valprint.c: Likewise.
1815         * aix-thread.c: Likewise.
1816         * alpha-linux-tdep.c: Likewise.
1817         * alpha-mdebug-tdep.c: Likewise.
1818         * alpha-nat.c: Likewise.
1819         * alpha-osf1-tdep.c: Likewise.
1820         * alpha-tdep.c: Likewise.
1821         * alphanbsd-tdep.c: Likewise.
1822         * amd64-dicos-tdep.c: Likewise.
1823         * amd64-linux-tdep.c: Likewise.
1824         * amd64-nat.c: Likewise.
1825         * amd64-sol2-tdep.c: Likewise.
1826         * amd64fbsd-tdep.c: Likewise.
1827         * amd64obsd-tdep.c: Likewise.
1828         * arch-utils.c: Likewise.
1829         * arm-linux-nat.c: Likewise.
1830         * arm-linux-tdep.c: Likewise.
1831         * arm-tdep.c: Likewise.
1832         * arm-wince-tdep.c: Likewise.
1833         * armbsd-tdep.c: Likewise.
1834         * armnbsd-nat.c: Likewise.
1835         * armnbsd-tdep.c: Likewise.
1836         * armobsd-tdep.c: Likewise.
1837         * avr-tdep.c: Likewise.
1838         * ax-gdb.c: Likewise.
1839         * ax-general.c: Likewise.
1840         * bcache.c: Likewise.
1841         * bfin-tdep.c: Likewise.
1842         * breakpoint.c: Likewise.
1843         * build-id.c: Likewise.
1844         * buildsym.c: Likewise.
1845         * c-exp.y: Likewise.
1846         * c-lang.c: Likewise.
1847         * c-typeprint.c: Likewise.
1848         * c-valprint.c: Likewise.
1849         * charset.c: Likewise.
1850         * cli-out.c: Likewise.
1851         * cli/cli-cmds.c: Likewise.
1852         * cli/cli-decode.c: Likewise.
1853         * cli/cli-dump.c: Likewise.
1854         * cli/cli-interp.c: Likewise.
1855         * cli/cli-logging.c: Likewise.
1856         * cli/cli-script.c: Likewise.
1857         * cli/cli-setshow.c: Likewise.
1858         * cli/cli-utils.c: Likewise.
1859         * coffread.c: Likewise.
1860         * common/agent.c: Likewise.
1861         * common/buffer.c: Likewise.
1862         * common/buffer.h: Likewise.
1863         * common/common-utils.c: Likewise.
1864         * common/filestuff.c: Likewise.
1865         * common/filestuff.c: Likewise.
1866         * common/format.c: Likewise.
1867         * common/print-utils.c: Likewise.
1868         * common/rsp-low.c: Likewise.
1869         * common/signals.c: Likewise.
1870         * common/vec.h: Likewise.
1871         * common/xml-utils.c: Likewise.
1872         * core-regset.c: Likewise.
1873         * corefile.c: Likewise.
1874         * corelow.c: Likewise.
1875         * cp-abi.c: Likewise.
1876         * cp-name-parser.y: Likewise.
1877         * cp-support.c: Likewise.
1878         * cp-valprint.c: Likewise.
1879         * cris-tdep.c: Likewise.
1880         * d-exp.y: Likewise.
1881         * darwin-nat.c: Likewise.
1882         * dbxread.c: Likewise.
1883         * dcache.c: Likewise.
1884         * demangle.c: Likewise.
1885         * dicos-tdep.c: Likewise.
1886         * disasm.c: Likewise.
1887         * doublest.c: Likewise.
1888         * dsrec.c: Likewise.
1889         * dummy-frame.c: Likewise.
1890         * dwarf2-frame.c: Likewise.
1891         * dwarf2loc.c: Likewise.
1892         * dwarf2read.c: Likewise.
1893         * elfread.c: Likewise.
1894         * environ.c: Likewise.
1895         * eval.c: Likewise.
1896         * event-loop.c: Likewise.
1897         * exceptions.c: Likewise.
1898         * exec.c: Likewise.
1899         * expprint.c: Likewise.
1900         * f-exp.y: Likewise.
1901         * f-lang.c: Likewise.
1902         * f-typeprint.c: Likewise.
1903         * f-valprint.c: Likewise.
1904         * fbsd-nat.c: Likewise.
1905         * findcmd.c: Likewise.
1906         * findvar.c: Likewise.
1907         * fork-child.c: Likewise.
1908         * frame.c: Likewise.
1909         * frv-linux-tdep.c: Likewise.
1910         * frv-tdep.c: Likewise.
1911         * gdb.c: Likewise.
1912         * gdb_bfd.c: Likewise.
1913         * gdbarch.c: Likewise.
1914         * gdbarch.sh: Likewise.
1915         * gdbtypes.c: Likewise.
1916         * gnu-nat.c: Likewise.
1917         * gnu-v2-abi.c: Likewise.
1918         * gnu-v3-abi.c: Likewise.
1919         * go-exp.y: Likewise.
1920         * go-lang.c: Likewise.
1921         * go32-nat.c: Likewise.
1922         * guile/guile.c: Likewise.
1923         * guile/scm-auto-load.c: Likewise.
1924         * hppa-hpux-tdep.c: Likewise.
1925         * hppa-linux-nat.c: Likewise.
1926         * hppanbsd-tdep.c: Likewise.
1927         * hppaobsd-tdep.c: Likewise.
1928         * i386-cygwin-tdep.c: Likewise.
1929         * i386-dicos-tdep.c: Likewise.
1930         * i386-linux-tdep.c: Likewise.
1931         * i386-nto-tdep.c: Likewise.
1932         * i386-sol2-tdep.c: Likewise.
1933         * i386-tdep.c: Likewise.
1934         * i386bsd-tdep.c: Likewise.
1935         * i386gnu-nat.c: Likewise.
1936         * i386nbsd-tdep.c: Likewise.
1937         * i386obsd-tdep.c: Likewise.
1938         * i387-tdep.c: Likewise.
1939         * ia64-libunwind-tdep.c: Likewise.
1940         * ia64-linux-nat.c: Likewise.
1941         * inf-child.c: Likewise.
1942         * inf-ptrace.c: Likewise.
1943         * inf-ttrace.c: Likewise.
1944         * infcall.c: Likewise.
1945         * infcmd.c: Likewise.
1946         * inflow.c: Likewise.
1947         * infrun.c: Likewise.
1948         * interps.c: Likewise.
1949         * iq2000-tdep.c: Likewise.
1950         * irix5-nat.c: Likewise.
1951         * jv-exp.y: Likewise.
1952         * jv-lang.c: Likewise.
1953         * jv-typeprint.c: Likewise.
1954         * jv-valprint.c: Likewise.
1955         * language.c: Likewise.
1956         * linux-fork.c: Likewise.
1957         * linux-nat.c: Likewise.
1958         * lm32-tdep.c: Likewise.
1959         * m2-exp.y: Likewise.
1960         * m2-typeprint.c: Likewise.
1961         * m32c-tdep.c: Likewise.
1962         * m32r-linux-nat.c: Likewise.
1963         * m32r-linux-tdep.c: Likewise.
1964         * m32r-rom.c: Likewise.
1965         * m32r-tdep.c: Likewise.
1966         * m68hc11-tdep.c: Likewise.
1967         * m68k-tdep.c: Likewise.
1968         * m68kbsd-tdep.c: Likewise.
1969         * m68klinux-nat.c: Likewise.
1970         * m68klinux-tdep.c: Likewise.
1971         * m88k-tdep.c: Likewise.
1972         * machoread.c: Likewise.
1973         * macrocmd.c: Likewise.
1974         * main.c: Likewise.
1975         * mdebugread.c: Likewise.
1976         * mem-break.c: Likewise.
1977         * memattr.c: Likewise.
1978         * memory-map.c: Likewise.
1979         * mep-tdep.c: Likewise.
1980         * mi/mi-cmd-break.c: Likewise.
1981         * mi/mi-cmd-disas.c: Likewise.
1982         * mi/mi-cmd-env.c: Likewise.
1983         * mi/mi-cmd-stack.c: Likewise.
1984         * mi/mi-cmd-var.c: Likewise.
1985         * mi/mi-cmds.c: Likewise.
1986         * mi/mi-console.c: Likewise.
1987         * mi/mi-getopt.c: Likewise.
1988         * mi/mi-interp.c: Likewise.
1989         * mi/mi-main.c: Likewise.
1990         * mi/mi-parse.c: Likewise.
1991         * microblaze-rom.c: Likewise.
1992         * microblaze-tdep.c: Likewise.
1993         * mingw-hdep.c: Likewise.
1994         * minidebug.c: Likewise.
1995         * minsyms.c: Likewise.
1996         * mips-irix-tdep.c: Likewise.
1997         * mips-linux-tdep.c: Likewise.
1998         * mips-tdep.c: Likewise.
1999         * mips64obsd-tdep.c: Likewise.
2000         * mipsnbsd-tdep.c: Likewise.
2001         * mipsread.c: Likewise.
2002         * mn10300-linux-tdep.c: Likewise.
2003         * mn10300-tdep.c: Likewise.
2004         * monitor.c: Likewise.
2005         * moxie-tdep.c: Likewise.
2006         * mt-tdep.c: Likewise.
2007         * nat/linux-btrace.c: Likewise.
2008         * nat/linux-osdata.c: Likewise.
2009         * nat/linux-procfs.c: Likewise.
2010         * nat/linux-ptrace.c: Likewise.
2011         * nat/linux-waitpid.c: Likewise.
2012         * nbsd-tdep.c: Likewise.
2013         * nios2-linux-tdep.c: Likewise.
2014         * nto-procfs.c: Likewise.
2015         * nto-tdep.c: Likewise.
2016         * objc-lang.c: Likewise.
2017         * objfiles.c: Likewise.
2018         * opencl-lang.c: Likewise.
2019         * osabi.c: Likewise.
2020         * osdata.c: Likewise.
2021         * p-exp.y: Likewise.
2022         * p-lang.c: Likewise.
2023         * p-typeprint.c: Likewise.
2024         * parse.c: Likewise.
2025         * posix-hdep.c: Likewise.
2026         * ppc-linux-nat.c: Likewise.
2027         * ppc-sysv-tdep.c: Likewise.
2028         * ppcfbsd-tdep.c: Likewise.
2029         * ppcnbsd-tdep.c: Likewise.
2030         * ppcobsd-tdep.c: Likewise.
2031         * printcmd.c: Likewise.
2032         * procfs.c: Likewise.
2033         * prologue-value.c: Likewise.
2034         * python/py-auto-load.c: Likewise.
2035         * python/py-gdb-readline.c: Likewise.
2036         * ravenscar-thread.c: Likewise.
2037         * regcache.c: Likewise.
2038         * registry.c: Likewise.
2039         * remote-fileio.c: Likewise.
2040         * remote-m32r-sdi.c: Likewise.
2041         * remote-mips.c: Likewise.
2042         * remote-notif.c: Likewise.
2043         * remote-sim.c: Likewise.
2044         * remote.c: Likewise.
2045         * reverse.c: Likewise.
2046         * rs6000-aix-tdep.c: Likewise.
2047         * ser-base.c: Likewise.
2048         * ser-go32.c: Likewise.
2049         * ser-mingw.c: Likewise.
2050         * ser-pipe.c: Likewise.
2051         * ser-tcp.c: Likewise.
2052         * ser-unix.c: Likewise.
2053         * serial.c: Likewise.
2054         * sh-tdep.c: Likewise.
2055         * sh64-tdep.c: Likewise.
2056         * shnbsd-tdep.c: Likewise.
2057         * skip.c: Likewise.
2058         * sol-thread.c: Likewise.
2059         * solib-dsbt.c: Likewise.
2060         * solib-frv.c: Likewise.
2061         * solib-osf.c: Likewise.
2062         * solib-som.c: Likewise.
2063         * solib-spu.c: Likewise.
2064         * solib-target.c: Likewise.
2065         * solib.c: Likewise.
2066         * somread.c: Likewise.
2067         * source.c: Likewise.
2068         * sparc-nat.c: Likewise.
2069         * sparc-sol2-tdep.c: Likewise.
2070         * sparc-tdep.c: Likewise.
2071         * sparc64-tdep.c: Likewise.
2072         * sparc64fbsd-tdep.c: Likewise.
2073         * sparc64nbsd-tdep.c: Likewise.
2074         * sparcnbsd-tdep.c: Likewise.
2075         * spu-linux-nat.c: Likewise.
2076         * spu-multiarch.c: Likewise.
2077         * spu-tdep.c: Likewise.
2078         * stabsread.c: Likewise.
2079         * stack.c: Likewise.
2080         * std-regs.c: Likewise.
2081         * symfile.c: Likewise.
2082         * symmisc.c: Likewise.
2083         * symtab.c: Likewise.
2084         * target.c: Likewise.
2085         * thread.c: Likewise.
2086         * tilegx-linux-nat.c: Likewise.
2087         * tilegx-tdep.c: Likewise.
2088         * top.c: Likewise.
2089         * tracepoint.c: Likewise.
2090         * tui/tui-command.c: Likewise.
2091         * tui/tui-data.c: Likewise.
2092         * tui/tui-disasm.c: Likewise.
2093         * tui/tui-file.c: Likewise.
2094         * tui/tui-layout.c: Likewise.
2095         * tui/tui-out.c: Likewise.
2096         * tui/tui-regs.c: Likewise.
2097         * tui/tui-source.c: Likewise.
2098         * tui/tui-stack.c: Likewise.
2099         * tui/tui-win.c: Likewise.
2100         * tui/tui-windata.c: Likewise.
2101         * tui/tui-winsource.c: Likewise.
2102         * typeprint.c: Likewise.
2103         * ui-file.c: Likewise.
2104         * ui-out.c: Likewise.
2105         * user-regs.c: Likewise.
2106         * utils.c: Likewise.
2107         * v850-tdep.c: Likewise.
2108         * valarith.c: Likewise.
2109         * valops.c: Likewise.
2110         * valprint.c: Likewise.
2111         * value.c: Likewise.
2112         * varobj.c: Likewise.
2113         * vax-tdep.c: Likewise.
2114         * vaxnbsd-tdep.c: Likewise.
2115         * vaxobsd-tdep.c: Likewise.
2116         * windows-nat.c: Likewise.
2117         * xcoffread.c: Likewise.
2118         * xml-support.c: Likewise.
2119         * xstormy16-tdep.c: Likewise.
2120         * xtensa-linux-nat.c: Likewise.
2121
2122 2014-08-07  Gary Benson  <gbenson@redhat.com>
2123
2124         * common/common-defs.h: Include gdb_assert.h.
2125         * aarch64-tdep.c: Do not include gdb_assert.h.
2126         * addrmap.c: Likewise.
2127         * aix-thread.c: Likewise.
2128         * alpha-linux-tdep.c: Likewise.
2129         * alpha-mdebug-tdep.c: Likewise.
2130         * alphanbsd-tdep.c: Likewise.
2131         * amd64-nat.c: Likewise.
2132         * amd64-tdep.c: Likewise.
2133         * amd64bsd-nat.c: Likewise.
2134         * amd64fbsd-nat.c: Likewise.
2135         * amd64fbsd-tdep.c: Likewise.
2136         * amd64nbsd-nat.c: Likewise.
2137         * amd64nbsd-tdep.c: Likewise.
2138         * amd64obsd-nat.c: Likewise.
2139         * amd64obsd-tdep.c: Likewise.
2140         * arch-utils.c: Likewise.
2141         * arm-tdep.c: Likewise.
2142         * armbsd-tdep.c: Likewise.
2143         * auxv.c: Likewise.
2144         * bcache.c: Likewise.
2145         * bfin-tdep.c: Likewise.
2146         * blockframe.c: Likewise.
2147         * breakpoint.c: Likewise.
2148         * bsd-kvm.c: Likewise.
2149         * bsd-uthread.c: Likewise.
2150         * buildsym.c: Likewise.
2151         * c-exp.y: Likewise.
2152         * c-lang.c: Likewise.
2153         * charset.c: Likewise.
2154         * cleanups.c: Likewise.
2155         * cli-out.c: Likewise.
2156         * cli/cli-decode.c: Likewise.
2157         * cli/cli-dump.c: Likewise.
2158         * cli/cli-logging.c: Likewise.
2159         * cli/cli-script.c: Likewise.
2160         * cli/cli-utils.c: Likewise.
2161         * coffread.c: Likewise.
2162         * common/common-utils.c: Likewise.
2163         * common/queue.h: Likewise.
2164         * common/signals.c: Likewise.
2165         * common/vec.h: Likewise.
2166         * complaints.c: Likewise.
2167         * completer.c: Likewise.
2168         * corelow.c: Likewise.
2169         * cp-abi.c: Likewise.
2170         * cp-name-parser.y: Likewise.
2171         * cp-namespace.c: Likewise.
2172         * cp-support.c: Likewise.
2173         * cris-tdep.c: Likewise.
2174         * dbxread.c: Likewise.
2175         * dictionary.c: Likewise.
2176         * doublest.c: Likewise.
2177         * dsrec.c: Likewise.
2178         * dummy-frame.c: Likewise.
2179         * dwarf2-frame-tailcall.c: Likewise.
2180         * dwarf2-frame.c: Likewise.
2181         * dwarf2expr.c: Likewise.
2182         * dwarf2loc.c: Likewise.
2183         * dwarf2read.c: Likewise.
2184         * eval.c: Likewise.
2185         * event-loop.c: Likewise.
2186         * exceptions.c: Likewise.
2187         * expprint.c: Likewise.
2188         * f-valprint.c: Likewise.
2189         * fbsd-nat.c: Likewise.
2190         * findvar.c: Likewise.
2191         * frame-unwind.c: Likewise.
2192         * frame.c: Likewise.
2193         * frv-tdep.c: Likewise.
2194         * gcore.c: Likewise.
2195         * gdb-dlfcn.c: Likewise.
2196         * gdb_bfd.c: Likewise.
2197         * gdbarch.c: Likewise.
2198         * gdbarch.sh: Likewise.
2199         * gdbtypes.c: Likewise.
2200         * gnu-nat.c: Likewise.
2201         * gnu-v3-abi.c: Likewise.
2202         * go-lang.c: Likewise.
2203         * guile/scm-exception.c: Likewise.
2204         * guile/scm-gsmob.c: Likewise.
2205         * guile/scm-lazy-string.c: Likewise.
2206         * guile/scm-math.c: Likewise.
2207         * guile/scm-pretty-print.c: Likewise.
2208         * guile/scm-safe-call.c: Likewise.
2209         * guile/scm-utils.c: Likewise.
2210         * guile/scm-value.c: Likewise.
2211         * h8300-tdep.c: Likewise.
2212         * hppa-hpux-nat.c: Likewise.
2213         * hppa-tdep.c: Likewise.
2214         * hppanbsd-tdep.c: Likewise.
2215         * hppaobsd-tdep.c: Likewise.
2216         * i386-darwin-nat.c: Likewise.
2217         * i386-darwin-tdep.c: Likewise.
2218         * i386-nto-tdep.c: Likewise.
2219         * i386-tdep.c: Likewise.
2220         * i386bsd-nat.c: Likewise.
2221         * i386fbsd-tdep.c: Likewise.
2222         * i386gnu-nat.c: Likewise.
2223         * i386nbsd-tdep.c: Likewise.
2224         * i386obsd-tdep.c: Likewise.
2225         * i387-tdep.c: Likewise.
2226         * ia64-libunwind-tdep.c: Likewise.
2227         * ia64-tdep.c: Likewise.
2228         * inf-ptrace.c: Likewise.
2229         * inf-ttrace.c: Likewise.
2230         * infcall.c: Likewise.
2231         * infcmd.c: Likewise.
2232         * infrun.c: Likewise.
2233         * inline-frame.c: Likewise.
2234         * interps.c: Likewise.
2235         * jv-lang.c: Likewise.
2236         * jv-typeprint.c: Likewise.
2237         * linux-fork.c: Likewise.
2238         * linux-nat.c: Likewise.
2239         * linux-thread-db.c: Likewise.
2240         * m32c-tdep.c: Likewise.
2241         * m32r-linux-nat.c: Likewise.
2242         * m32r-tdep.c: Likewise.
2243         * m68k-tdep.c: Likewise.
2244         * m68kbsd-nat.c: Likewise.
2245         * m68kbsd-tdep.c: Likewise.
2246         * m88k-tdep.c: Likewise.
2247         * machoread.c: Likewise.
2248         * macroexp.c: Likewise.
2249         * macrotab.c: Likewise.
2250         * maint.c: Likewise.
2251         * mdebugread.c: Likewise.
2252         * memory-map.c: Likewise.
2253         * mep-tdep.c: Likewise.
2254         * mi/mi-common.c: Likewise.
2255         * microblaze-tdep.c: Likewise.
2256         * mingw-hdep.c: Likewise.
2257         * mips-linux-nat.c: Likewise.
2258         * mips-linux-tdep.c: Likewise.
2259         * mips-tdep.c: Likewise.
2260         * mips64obsd-tdep.c: Likewise.
2261         * mipsnbsd-tdep.c: Likewise.
2262         * mn10300-linux-tdep.c: Likewise.
2263         * mn10300-tdep.c: Likewise.
2264         * moxie-tdep.c: Likewise.
2265         * mt-tdep.c: Likewise.
2266         * nat/linux-btrace.c: Likewise.
2267         * nat/linux-osdata.c: Likewise.
2268         * nat/linux-ptrace.c: Likewise.
2269         * nat/mips-linux-watch.c: Likewise.
2270         * nios2-linux-tdep.c: Likewise.
2271         * nios2-tdep.c: Likewise.
2272         * objc-lang.c: Likewise.
2273         * objfiles.c: Likewise.
2274         * obsd-nat.c: Likewise.
2275         * opencl-lang.c: Likewise.
2276         * osabi.c: Likewise.
2277         * parse.c: Likewise.
2278         * ppc-linux-nat.c: Likewise.
2279         * ppc-sysv-tdep.c: Likewise.
2280         * ppcfbsd-nat.c: Likewise.
2281         * ppcfbsd-tdep.c: Likewise.
2282         * ppcnbsd-nat.c: Likewise.
2283         * ppcnbsd-tdep.c: Likewise.
2284         * ppcobsd-nat.c: Likewise.
2285         * ppcobsd-tdep.c: Likewise.
2286         * printcmd.c: Likewise.
2287         * procfs.c: Likewise.
2288         * prologue-value.c: Likewise.
2289         * psymtab.c: Likewise.
2290         * python/py-lazy-string.c: Likewise.
2291         * python/py-value.c: Likewise.
2292         * regcache.c: Likewise.
2293         * reggroups.c: Likewise.
2294         * registry.c: Likewise.
2295         * remote-sim.c: Likewise.
2296         * remote.c: Likewise.
2297         * rs6000-aix-tdep.c: Likewise.
2298         * rs6000-tdep.c: Likewise.
2299         * s390-linux-tdep.c: Likewise.
2300         * score-tdep.c: Likewise.
2301         * ser-base.c: Likewise.
2302         * ser-mingw.c: Likewise.
2303         * sh-tdep.c: Likewise.
2304         * sh64-tdep.c: Likewise.
2305         * solib-darwin.c: Likewise.
2306         * solib-spu.c: Likewise.
2307         * solib-svr4.c: Likewise.
2308         * source.c: Likewise.
2309         * sparc-nat.c: Likewise.
2310         * sparc-sol2-tdep.c: Likewise.
2311         * sparc-tdep.c: Likewise.
2312         * sparc64-sol2-tdep.c: Likewise.
2313         * sparc64-tdep.c: Likewise.
2314         * sparc64fbsd-tdep.c: Likewise.
2315         * sparc64nbsd-tdep.c: Likewise.
2316         * sparc64obsd-tdep.c: Likewise.
2317         * sparcnbsd-tdep.c: Likewise.
2318         * sparcobsd-tdep.c: Likewise.
2319         * spu-multiarch.c: Likewise.
2320         * spu-tdep.c: Likewise.
2321         * stabsread.c: Likewise.
2322         * stack.c: Likewise.
2323         * symfile.c: Likewise.
2324         * symtab.c: Likewise.
2325         * target-descriptions.c: Likewise.
2326         * target-memory.c: Likewise.
2327         * target.c: Likewise.
2328         * tic6x-linux-tdep.c: Likewise.
2329         * tic6x-tdep.c: Likewise.
2330         * tilegx-linux-nat.c: Likewise.
2331         * tilegx-tdep.c: Likewise.
2332         * top.c: Likewise.
2333         * tramp-frame.c: Likewise.
2334         * tui/tui-out.c: Likewise.
2335         * tui/tui-winsource.c: Likewise.
2336         * ui-out.c: Likewise.
2337         * user-regs.c: Likewise.
2338         * utils.c: Likewise.
2339         * v850-tdep.c: Likewise.
2340         * valops.c: Likewise.
2341         * value.c: Likewise.
2342         * varobj.c: Likewise.
2343         * vax-nat.c: Likewise.
2344         * xml-syscall.c: Likewise.
2345         * xml-tdesc.c: Likewise.
2346         * xstormy16-tdep.c: Likewise.
2347         * xtensa-linux-nat.c: Likewise.
2348         * xtensa-tdep.c: Likewise.
2349
2350 2014-08-07  Gary Benson  <gbenson@redhat.com>
2351
2352         * common/common-defs.h: Include common-utils.h.
2353         * defs.h: Do not include common-utils.h.
2354         * common/gdb_assert.h: Likewise.
2355         * darwin-nat.h: Likewise.
2356         * nat/linux-btrace.c: Likewise.
2357         * target/waitstatus.h: Likewise.
2358
2359 2014-08-07  Gary Benson  <gbenson@redhat.com>
2360
2361         * common/common-defs.h: Include ptid.h.
2362         * defs.h: Do not include ptid.h.
2363         * inferior.h: Likewise.
2364         * infrun.h: Likewise.
2365         * nat/linux-btrace.h: Likewise.
2366         * nat/linux-osdata.h: Likewise.
2367         * target/waitstatus.h: Likewise.
2368
2369 2014-08-07  Gary Benson  <gbenson@redhat.com>
2370
2371         * common/common-defs.h: Include gdb_locale.h.
2372         * defs.h: Do not include gdb_locale.h.
2373
2374 2014-08-07  Gary Benson  <gbenson@redhat.com>
2375
2376         * common/common-defs.h: Include gdb/signals.h.
2377         * defs.h: Do not include gdb/signals.h.
2378
2379 2014-08-07  Gary Benson  <gbenson@redhat.com>
2380
2381         * common/common-defs.h: Include pathmax.h.
2382         * defs.h: Do not include pathmax.h.
2383
2384 2014-08-07  Gary Benson  <gbenson@redhat.com>
2385
2386         * common/common-defs.h: Include libiberty.h.
2387         * defs.h: Do not include libiberty.h.
2388         * common/queue.h: Likewise.
2389         * cp-name-parser.y: Likewise.
2390         * mi/mi-cmd-catch.c: Likewise.
2391         * python/python.c: Likewise.
2392
2393 2014-08-07  Gary Benson  <gbenson@redhat.com>
2394
2395         * common/common-defs.h: Include ansidecl.h.
2396         * defs.h: Do not include ansidecl.h.
2397         * common/buffer.h: Likewise.
2398         * common/common-utils.h: Likewise.
2399
2400 2014-08-07  Gary Benson  <gbenson@redhat.com>
2401
2402         * common/common-defs.h: Include stddef.h.
2403         * defs.h: Do not include stddef.h.
2404         * common/common-utils.h: Likewise.
2405         * amd64fbsd-nat.c: Likewise.
2406         * bcache.c: Likewise.
2407         * charset.c: Likewise.
2408         * common/buffer.h: Likewise.
2409         * common/vec.h: Likewise.
2410         * i386bsd-nat.c: Likewise.
2411         * nat/linux-btrace.h: Likewise.
2412         * ppcfbsd-nat.c: Likewise.
2413         * ppcnbsd-tdep.h: Likewise.
2414         * ppcobsd-nat.c: Likewise.
2415         * ppcobsd-tdep.h: Likewise.
2416         * python/py-gdb-readline.c: Likewise.
2417
2418 2014-08-07  Gary Benson  <gbenson@redhat.com>
2419
2420         * common/common-defs.h: Include stdarg.h.
2421         * defs.h: Do not include stdarg.h.
2422         * ada-lang.c: Likewise.
2423         * common/common-utils.h: Likewise.
2424         * guile/scm-string.c: Likewise.
2425         * guile/scm-utils.c: Likewise.
2426         * m32c-tdep.c: Likewise.
2427
2428 2014-08-07  Gary Benson  <gbenson@redhat.com>
2429
2430         * common/common-defs.h: Include stdlib.h.
2431         * defs.h: Do not include stdlib.h.
2432         * addrmap.c: Likewise.
2433         * bcache.c: Likewise.
2434         * common/buffer.c: Likewise.
2435         * common/common-utils.c: Likewise.
2436         * cp-name-parser.y: Likewise.
2437         * go32-nat.c: Likewise.
2438         * mn10300-linux-tdep.c: Likewise.
2439         * nat/linux-osdata.c: Likewise.
2440         * tui/tui.c: Likewise.
2441         * windows-nat.c: Likewise.
2442
2443 2014-08-07  Gary Benson  <gbenson@redhat.com>
2444
2445         * common/common-defs.h: Include stdio.h.
2446         * defs.h: Do not include stdio.h.
2447         * ada-lang.c: Likewise.
2448         * common/buffer.c: Likewise.
2449         * common/common-utils.c: Likewise.
2450         * cp-name-parser.y: Likewise.
2451         * gnu-nat.c: Likewise.
2452         * go32-nat.c: Likewise.
2453         * i386gnu-nat.c: Likewise.
2454         * proc-api.c: Likewise.
2455         * proc-events.c: Likewise.
2456         * proc-flags.c: Likewise.
2457         * proc-why.c: Likewise.
2458         * python/python-internal.h: Likewise.
2459         * target-memory.c: Likewise.
2460         * tui/tui-io.c: Likewise.
2461         * tui/tui.c: Likewise.
2462
2463 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2464
2465         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2466         (scan_dyntag_auxv): Same.
2467
2468 2014-08-06  Yao Qi  <yao@codesourcery.com>
2469
2470         * amd64-linux-nat.c: Remove duplicated include
2471         "x86-linux-nat.h".
2472         * i386-linux-nat.c: Likewise.
2473
2474 2014-08-06  Yao Qi  <yao@codesourcery.com>
2475
2476         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2477         operand" with "Special opcode" in comments.
2478
2479 2014-08-05  Gary Benson  <gbenson@redhat.com>
2480
2481         * interps.c (initialize_interps): Remove prototype.
2482         (interpreter_initialized): Remove static global.
2483         (interp_add): Do not call initialize_interps.
2484         (initialize_interps): Remove function.
2485
2486 2014-08-05  Gary Benson  <gbenson@redhat.com>
2487
2488         * utils.c (vwarning): Remove spurious va_end.
2489
2490 2014-08-05  Alan Modra  <amodra@gmail.com>
2491
2492         * charset.c (convert_between_encodings): Cast result of obstack_base.
2493         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2494         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2495         (read_unwind_info): Use size_t for some locals.
2496         * jit.c (finalize_symtab): Likewise.
2497         * utils.c (hashtab_obstack_allocate): Likewise.
2498         * symmisc.c (print_objfile_statistics): Update format strings.
2499
2500 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2501
2502         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2503         (Changes in GDB 7.8): ... here.
2504
2505 2014-08-04  Tom Tromey  <tromey@redhat.com>
2506
2507         * target.c (set_targetdebug): New function.
2508         (initialize_targets): Pass set_targetdebug when creating "set
2509         debug target".
2510
2511 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2512
2513         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2514         if detecting a variable-sized field that is not the last field.
2515         Fix struct type length computation.
2516
2517 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2518
2519         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2520         Add debug trace.
2521
2522 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2523
2524         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2525         Remove "+ 8" offset in computation of CHAIN_VMA.
2526
2527 2014-07-31  Doug Evans  <dje@google.com>
2528
2529         * inflow.c (child_terminal_inferior): Add comment.
2530         (child_terminal_ours_for_output): Add comment.
2531         (child_terminal_ours): Add comment.
2532         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2533         (linux_nat_terminal_ours): Add comment.
2534
2535 2014-07-31  Gary Benson  <gbenson@redhat.com>
2536
2537         * common/btrace-common.h: Do not include defs.h or server.h.
2538         * nat/mips-linux-watch.h: Likewise.
2539         * gdb-dlfcn.h: Do not include defs.h.
2540         * tracefile.h: Likewise.
2541
2542 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2543
2544         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2545
2546 2014-07-30  Tom Tromey  <tromey@redhat.com>
2547
2548         * bsd-kvm.c (bsd_kvm_open): Constify.
2549         * corelow.c (core_open): Constify.
2550         * ctf.c (ctf_open): Constify.
2551         * dbug-rom.c (dbug_open): Constify.
2552         * exec.c (exec_open): Constify.
2553         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2554         * microblaze-rom.c (picobug_open): Constify.
2555         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2556         Constify.
2557         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2558         * record-btrace.c (record_btrace_open): Constify.
2559         * record-full.c (record_full_core_open_1, record_full_open_1)
2560         (record_full_open): Constify.
2561         * remote-m32r-sdi.c (m32r_open): Constify.
2562         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2563         (rockhopper_open, lsi_open): Constify.
2564         * remote-sim.c (gdbsim_open): Constify.
2565         * remote.c (remote_open, extended_remote_open, remote_open_1):
2566         Constify.
2567         * target.h (struct target_ops) <to_open>: Make "arg" const.
2568         * tracefile-tfile.c (tfile_open): Constify.
2569
2570 2014-07-30  Tom Tromey  <tromey@redhat.com>
2571
2572         * breakpoint.c (map_breakpoint_numbers): Update.
2573         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2574         (get_number_const): New function.
2575         (get_number): Rewrite using get_number_const.
2576         (init_number_or_range): Make "string" const.
2577         (number_is_in_list): Make "list" const.
2578         * cli/cli-utils.h (get_number_const): Declare.
2579         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2580         (init_number_or_range, number_is_in_list): Update.
2581         * printcmd.c (map_display_numbers): Update.
2582         * value.c (value_from_history_ref): Constify.
2583         * value.h (value_from_history_ref): Update.
2584
2585 2014-07-30  Tom Tromey  <tromey@redhat.com>
2586
2587         * corefile.c (hook_type, call_extra_exec_file_hooks)
2588         (specify_exec_file_hook): Constify.
2589         * exec.c (exec_file_attach): Make "filename" const.
2590         * gdbcore.h (deprecated_exec_file_display_hook)
2591         (specify_exec_file_hook, exec_file_attach): Constify.
2592         * main.c (captured_main): Use catch_command_errors_const.
2593
2594 2014-07-30  Tom Tromey  <tromey@redhat.com>
2595
2596         * target.c (open_target): New function.
2597         (add_target_with_completer, add_deprecated_target_alias): Use
2598         set_cmd_sfunc, set_cmd_context.
2599         (debug_to_open): Remove.
2600         (setup_target_debug): Update.
2601
2602 2014-07-30  Yao Qi  <yao@codesourcery.com>
2603
2604         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2605         comments.
2606         * parse.c (exp_iterate): Update comments.
2607
2608 2014-07-30  Gary Benson  <gbenson@redhat.com>
2609
2610         * common/common-defs.h: New file.
2611         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2612         * defs.h: Include common-defs.h.
2613         Do not include config.h or build-gnulib/config.h.
2614
2615 2014-07-30  Gary Benson  <gbenson@redhat.com>
2616
2617         * common/common-utils.h: Do not include config.h.
2618         * nat/linux-btrace.h: Likewise.
2619
2620 2014-07-30  Gary Benson  <gbenson@redhat.com>
2621
2622         * btrace.c: Include defs.h.
2623         * common/ptid.c: Include defs.h or server.h as appropriate.
2624         * nat/mips-linux-watch.c: Likewise.
2625
2626 2014-07-29  Tom Tromey  <tromey@redhat.com>
2627
2628         * target.c (target_is_pushed): Simplify.
2629
2630 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2631
2632         GDB 7.8 released.
2633
2634 2014-07-29  Yao Qi  <yao@codesourcery.com>
2635
2636         PR gdb/17206
2637         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2638
2639 2014-07-28  Doug Evans  <xdje42@gmail.com>
2640
2641         PR guile/17203
2642         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2643         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2644         parameters.
2645
2646 2014-07-28  Will Newton  <will.newton@linaro.org>
2647
2648         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2649         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2650         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2651         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2652         (THUMB2_EABI_SYSCALL): Likewise.
2653         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2654         struct tramp_frame.
2655         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2656         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2657
2658 2014-07-27  Doug Evans  <xdje42@gmail.com>
2659
2660         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2661
2662 2014-07-27  Doug Evans  <xdje42@gmail.com>
2663
2664         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2665
2666 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2667             Doug Evans  <xdje42@gmail.com>
2668
2669         PR guile/17146
2670         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2671         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2672         * configure.ac: Try to use guild to compile an scm file, if it fails
2673         then disable guile support.
2674         * configure: Regenerate.
2675         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2676         GUILE_FILE_LIST.
2677         (GUILE_COMPILED_FILES): New variable.
2678         (GUILE_FILES) Update.
2679         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2680         (stamp-guile): Compile scm files.
2681         * guile/guile.c (boot_guile_support): New function.
2682         (standard_throw_args_p): New function.
2683         (print_standard_throw_error, print_throw_error): New functions.
2684         (handle_boot_error): New function.
2685         (initialize_scheme_side): Rewrite to call boot_guile_support.
2686         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2687         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2688
2689 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2690             Doug Evans  <xdje42@gmail.com>
2691
2692         PR guile/17146
2693         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2694         * guile/lib/gdb/support.scm: New file.
2695         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2696         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2697         All uses updated.
2698         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2699         All uses updated.
2700         (%assert-type): Ditto, and renamed to assert-type.
2701         (%exception-print-style): Delete.
2702
2703 2014-07-26  Doug Evans  <xdje42@gmail.com>
2704
2705         PR build/17105
2706         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2707         * configure: Regenerate.
2708         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2709         PYTHON_FILES.
2710         (PYTHON_FILES): New variable.
2711         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2712         (GUILE_FILES): New variable.
2713         (stamp-python, install-python, uninstall-python): Handle empty
2714         file list.
2715         (stamp-guile, install-guile, uninstall-guile): Ditto.
2716
2717 2014-07-26  Doug Evans  <xdje42@gmail.com>
2718
2719         PR guile/17177
2720         * guile/lib/gdb.scm (pretty-printers): Export.
2721         (set-pretty-printers!): Export.
2722         * guile/lib/gdb/printing.scm (gdb module): Update.
2723         (prepend-pretty-printer!, append-pretty-printer!): Update.
2724         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2725         (pretty_printer_list_var): Delete.
2726         (pretty_printer_list): New static global.
2727         (gdbscm_pretty_printers): New function.
2728         (gdbscm_set_pretty_printers_x): New function.
2729         (ppscm_find_pretty_printer_from_gdb): Update.
2730         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2731         (gdbscm_initialize_pretty_printers): Update.
2732
2733 2014-07-26  Doug Evans  <xdje42@gmail.com>
2734
2735         PR 17185
2736         * configure.ac: Add check for header gc/gc.h.
2737         Add check for function setenv.
2738         * configure: Regenerate.
2739         * config.in: Regenerate.
2740         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2741
2742 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2743
2744         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2745         variation in gdbarch matching.
2746
2747 2014-07-25  Tom Tromey  <tromey@redhat.com>
2748
2749         * exec.c (using_exec_ops): Remove.
2750         (exec_close_1): Update.  Remove extraneous block, reindent.
2751         (add_target_sections): Use target_is_pushed.
2752
2753 2014-07-25  Pedro Alves  <palves@redhat.com>
2754
2755         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2756         * monitor.c (monitor_create_inferior): Likewise.
2757         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2758         * remote-sim.c (gdbsim_create_inferior): Likewise.
2759         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2760         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2761         * windows-nat.c (do_initial_windows_stuff): Likewise.
2762
2763 2014-07-25  Pedro Alves  <palves@redhat.com>
2764
2765         * NEWS: Mention signal passing and "signal" command changes.
2766         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2767         comment.
2768         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2769         call.
2770         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2771         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2772         (jump_command): Adjust clear_proceed_status call.
2773         (signal_command): Warn if other thread that are resumed have
2774         signals that will be delivered.  Adjust clear_proceed_status call.
2775         (until_next_command, finish_command)
2776         (proceed_after_attach_callback, attach_command_post_wait)
2777         (attach_command): Adjust clear_proceed_status call.
2778         * infrun.c (proceed_after_vfork_done): Likewise.
2779         (proceed_after_attach_callback): Adjust comment.
2780         (clear_proceed_status_thread): Clear stop_signal if not in pass
2781         state.
2782         (clear_proceed_status_callback): Delete.
2783         (clear_proceed_status): New 'step' parameter.  Only clear the
2784         proceed status of threads the command being prepared is about to
2785         resume.
2786         (proceed): If passed in an explicit signal, override stop_signal
2787         with it.  Don't pass the last stop signal to the thread we're
2788         resuming.
2789         (init_wait_for_inferior): Adjust clear_proceed_status call.
2790         (switch_back_to_stepped_thread): Clear the signal if it should not
2791         be passed.
2792         * infrun.h (clear_proceed_status): New 'step' parameter.
2793         (user_visible_resume_ptid): Add comment.
2794         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2795         signal is in pass state.
2796         * remote.c (append_pending_thread_resumptions): Likewise.
2797         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2798
2799 2014-07-25  Tom Tromey  <tromey@redhat.com>
2800
2801         * target.h (target_stopped_data_address)
2802         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2803         parentheses.
2804
2805 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2806
2807         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2808         comments.
2809         (avr_pointer_to_address): Likewise.
2810
2811 2014-07-24  Tom Tromey  <tromey@redhat.com>
2812
2813         * monitor.c (compile_pattern): Update.
2814         * target.h (struct target_ops) <to_shortname, to_longname,
2815         to_doc>: Now const.
2816
2817 2014-07-24  Tom Tromey  <tromey@redhat.com>
2818
2819         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2820         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2821         (add_info_alias, add_com): Make "doc" const.
2822         (print_doc_line): Make "str" const.
2823         (delete_cmd): Update.
2824         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2825         (print_doc_line): Update.
2826         * cli/cli-script.c (document_command): Update.
2827         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2828         (add_com, add_info, add_info_alias): Update.
2829         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2830         * python/py-cmd.c (cmdpy_destroyer): Update.
2831
2832 2014-07-24  Tom Tromey  <tromey@redhat.com>
2833
2834         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2835         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2836         (help_cmd_list): Constify.
2837         (lookup_cmd): Update.
2838         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2839         const.
2840         (help_cmd_list, apropos_cmd): Update.
2841         * cli/cli-script.c (show_user): Update.
2842         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2843         * cli/cli-setshow.h (cmd_show_list): Update.
2844         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2845         (cmd_show_list): Update.
2846         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2847         * python/py-cmd.c (cmdpy_destroyer): Update.
2848
2849 2014-07-24  Tom Tromey  <tromey@redhat.com>
2850
2851         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2852         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2853         const.
2854         * command.h (deprecate_cmd): Update.
2855         * maint.c (maintenance_do_deprecate): Add casts.
2856
2857 2014-07-24  Tom Tromey  <tromey@redhat.com>
2858
2859         * cli/cli-decode.c (help_cmd): Make parameter "const".
2860         * cli/cli-decode.h (help_cmd): Update.
2861
2862 2014-07-24  Tom Tromey  <tromey@redhat.com>
2863
2864         * stack.c (up_silently_base, down_silently_base): Make argument
2865         const.
2866
2867 2014-07-24  Tom Tromey  <tromey@redhat.com>
2868
2869         * solib.c (solib_add): Make "pattern" const.
2870         * solib.h (solib_add): Update.
2871
2872 2014-07-24  Tom Tromey  <tromey@redhat.com>
2873
2874         * remote.c (remote_serial_open, print_packet, putpkt)
2875         (putpkt_binary): Constify.
2876         * remote.h (putpkt): Update.
2877
2878 2014-07-24  Tom Tromey  <tromey@redhat.com>
2879
2880         * monitor.c (monitor_open): Make "args" const.
2881         * monitor.h (monitor_open): Update.
2882
2883 2014-07-24  Tom Tromey  <tromey@redhat.com>
2884
2885         * maint.c (match_bfd_flags): Make "string" const.
2886         (print_bfd_section_info): Remove casts.
2887         (print_objfile_section_info): Make "string" const.
2888
2889 2014-07-24  Tom Tromey  <tromey@redhat.com>
2890
2891         * inf-child.c (inf_child_open_target): Make "arg" const.
2892         * inf-child.h (inf_child_open_target): Update.
2893
2894 2014-07-24  Tom Tromey  <tromey@redhat.com>
2895
2896         * environ.c (unset_in_environ): Make "var" const.
2897         * environ.h (unset_in_environ): Update.
2898
2899 2014-07-24  Tom Tromey  <tromey@redhat.com>
2900
2901         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2902         Make "cmd" const.
2903         (scan_filename_with_cleanup): Likewise.
2904         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2905         Make arguments const.
2906         (restore_command): Update.
2907
2908 2014-07-24  Pedro Alves  <palves@redhat.com>
2909
2910         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2911
2912 2014-07-24  Tom Tromey  <tromey@redhat.com>
2913             Gary Benson  <gbenson@redhat.com>
2914
2915         * nat/linux-ptrace.c (additional_flags): New global.
2916         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2917         additional_flags; don't check GDBSERVER.
2918         (linux_ptrace_set_additional_flags): New function.
2919         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2920         Declare.
2921         * linux-nat.c (_initialize_linux_nat): Call
2922         linux_ptrace_set_additional_flags.
2923
2924 2014-07-24  Tom Tromey  <tromey@redhat.com>
2925
2926         * make-target-delegates (munge_type, write_debugmethod): New
2927         functions.
2928         (debug_names): New global.
2929         ($TARGET_DEBUG_PRINTER): New global.
2930         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2931         name.
2932         Write debug methods.  Generate init_debug_target.
2933         * target-debug.h: New file.
2934         * target-delegates.c: Rebuild.
2935         * target.c: Include target-debug.h.
2936         (debug_target): Hoist definition.
2937         (target_kill, target_get_section_table, target_memory_map)
2938         (target_flash_erase, target_flash_done, target_detach)
2939         (target_disconnect, target_wait, target_resume)
2940         (target_pass_signals, target_program_signals, target_follow_fork)
2941         (target_mourn_inferior, target_search_memory)
2942         (target_thread_address_space, target_close)
2943         (target_find_new_threads, target_core_of_thread)
2944         (target_verify_memory, target_insert_mask_watchpoint)
2945         (target_remove_mask_watchpoint): Remove targetdebug code.
2946         (debug_to_post_attach, debug_to_prepare_to_store)
2947         (debug_to_files_info, debug_to_insert_breakpoint)
2948         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2949         (debug_to_region_ok_for_hw_watchpoint)
2950         (debug_to_can_accel_watchpoint_condition)
2951         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2952         (debug_to_watchpoint_addr_within_range)
2953         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2954         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2955         (debug_to_terminal_init, debug_to_terminal_inferior)
2956         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2957         (debug_to_terminal_save_ours, debug_to_terminal_info)
2958         (debug_to_load, debug_to_post_startup_inferior)
2959         (debug_to_insert_fork_catchpoint)
2960         (debug_to_remove_fork_catchpoint)
2961         (debug_to_insert_vfork_catchpoint)
2962         (debug_to_remove_vfork_catchpoint)
2963         (debug_to_insert_exec_catchpoint)
2964         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2965         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2966         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2967         (setup_target_debug): Call init_debug_target.
2968         * target.h (TARGET_DEBUG_PRINTER): New macro.
2969         (struct target_ops) <to_resume, to_wait, to_pass_signals,
2970         to_program_signals>: Use TARGET_DEBUG_PRINTER.
2971
2972 2014-07-24  Gary Benson  <gbenson@redhat.com>
2973
2974         * exceptions.h (throw_vfatal): Renamed to...
2975         (throw_vquit): New declaration.
2976         (throw_quit): Likewise.
2977         * exceptions.c (throw_vfatal): Renamed to...
2978         (throw_vquit): New function.
2979         (throw_quit): Likewise.
2980         (throw_error): Call throw_verror rather than throw_it.
2981         * utils.h (vfatal): Removed.
2982         (fatal): Likewise.
2983         * utils.c (vfatal): Removed.
2984         (fatal): Likewise.
2985         (internal_verror): Replaced call to fatal with call to throw_quit.
2986         (quit): Replaced calls to fatal with calls to throw_quit.
2987
2988 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
2989
2990         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2991         target_read_code.
2992
2993 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
2994
2995         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2996         less than zero in conditional expression.
2997
2998 2014-07-23  Tom Tromey  <tromey@redhat.com>
2999
3000         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3001         ($INTRO_PART): Don't match whitespace.
3002         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3003         argument matching.
3004         ($METHOD): Add $METHOD_TRAILER.
3005         (trim): Rewrite.
3006         (scan_target_h): New sub.
3007         Change main loop not to collect state.
3008         * target-delegates.c: Rebuild.
3009
3010 2014-07-23  Gary Benson  <gbenson@redhat.com>
3011
3012         * cp-support.c (gdb_demangle): Fix build on systems without
3013         sigaltstack.
3014
3015 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3016
3017         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3018         for reference entry value target data value.
3019
3020 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3021
3022         * stack.c (read_frame_arg): Verify value_optimized_out before calling
3023         value_available_contents_eq.
3024
3025 2014-07-22  Pedro Alves  <palves@redhat.com>
3026
3027         * value.c (allocate_optimized_out_value): Don't mark value as
3028         non-lazy.
3029
3030 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
3031
3032         * MAINTAINERS (Write After Approval): Update my email address.
3033
3034 2014-07-20  Doug Evans  <dje@google.com>
3035
3036         PR server/17147
3037         * remote.c (putpkt_binary): Add text to error message.
3038
3039 2014-07-20  Yao Qi  <yao@codesourcery.com>
3040
3041         * eval.c: Remove "Chill" from comments.
3042         * gdbtypes.h: Likewise.
3043         * symtab.h: Likewise.
3044
3045 2014-07-20  Yao Qi  <yao@codesourcery.com>
3046
3047         * std-operator.def: Update comments to TERNOP_SLICE.
3048
3049 2014-07-20  Yao Qi  <yao@codesourcery.com>
3050
3051         * std-operator.def: Remove BINOP_RANGE.
3052         * breakpoint.c (watchpoint_exp_is_const): Update.
3053         * expprint.c (dump_subexp_body_standard): Likewise.
3054         * eval.c (init_array_element): Remove dead code.
3055         (evaluate_subexp_standard): Likewise.
3056
3057 2014-07-20  Yao Qi  <yao@codesourcery.com>
3058
3059         * std-operator.def: Remove BINOP_IN.
3060         * breakpoint.c (watchpoint_exp_is_const): Update.
3061         * eval.c (evaluate_subexp_standard): Likewise.
3062         * expprint.c (dump_subexp_body_standard): Likewise.
3063
3064 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
3065
3066         * microblaze-tdep.c (microblaze_register_names): Add
3067         the rshr and rslr register names.
3068         (microblaze_gdbarch_init): Use of tdesc_has_registers.
3069         Use of tdesc_find_feature. Use of tdesc_data_alloc.
3070         Use of tdesc_numbered_register. Use of
3071         microblaze_register_g_packet_guesses. Use of
3072         tdesc_use_registers. Use of set_gdbarch_register_type.
3073         (microblaze_register_g_packet_guesses): New.
3074         * microblaze-tdep.h (microblaze_reg_num): Add
3075         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3076         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3077         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3078         * features/microblaze-core.xml: New file.
3079         * features/microblaze-stack-protect.xml: New file.
3080         * features/microblaze-with-stack-protect.c: New file.
3081         * features/microblaze-with-stack-protect.xml: New file.
3082         * features/microblaze.xml: New file.
3083         * features/microblaze.c: New file.
3084         * features/Makefile (microblaze-with-stack-protect): Add
3085         microblaze-with-stack-protect microblaze and microblaze-expedite.
3086         * regformats/microblaze-with-stack-protect.dat: New file.
3087         * regformats/microblaze.dat: New file.
3088         * doc/gdb.texinfo (MicroBlaze Features): Added.
3089
3090 2014-07-18  Tom Tromey  <tromey@redhat.com>
3091
3092         * exec.c (exec_ops): Now static.
3093         * exec.h (exec_ops): Don't declare.
3094
3095 2014-07-18  Tom Tromey  <tromey@redhat.com>
3096
3097         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3098         to find_target_beneath.
3099         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3100         find_target_beneath.
3101         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3102
3103 2014-07-18  Tom Tromey  <tromey@redhat.com>
3104
3105         PR gdb/17130:
3106         * utils.c (quit): Use target_supports_terminal_ours.
3107         * target.h (target_supports_terminal_ours): Declare.
3108         * target.c (target_supports_delete_record): Don't check
3109         to_delete_record against NULL.
3110         (target_supports_terminal_ours): New function.
3111
3112 2014-07-18  Tom Tromey  <tromey@redhat.com>
3113
3114         PR gdb/17130:
3115         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3116         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3117         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3118         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3119         * windows-nat.c (windows_xfer_partial): Always delegate.
3120         * record-btrace.c (record_btrace_xfer_partial): Simplify
3121         delegation.
3122         (record_btrace_fetch_registers, record_btrace_store_registers)
3123         (record_btrace_prepare_to_store, record_btrace_resume)
3124         (record_btrace_wait, record_btrace_find_new_threads)
3125         (record_btrace_thread_alive): Likewise.
3126         * procfs.c (procfs_xfer_partial): Always delegate.
3127         * corelow.c (core_xfer_partial): Always delegate.
3128         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3129
3130 2014-07-18  Tom Tromey  <tromey@redhat.com>
3131
3132         * exec.c (exec_make_note_section): Move earlier.
3133
3134 2014-07-17  Doug Evans  <dje@google.com>
3135
3136         PR gdb/17170
3137         * maint.c (count_symtabs_and_blocks): Handle NULL
3138         current_program_space.
3139         (report_command_stats): Check global enabled flag in addition to
3140         recorded enabled flag.
3141         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3142
3143 2014-07-16  Pedro Alves  <palves@redhat.com>
3144
3145         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3146
3147 2014-07-16  Tom Tromey  <tromey@redhat.com>
3148
3149         * target.h (struct target_ops) <to_delete_record>: Reformat
3150         comment.
3151
3152 2014-07-16  Tom Tromey  <tromey@redhat.com>
3153
3154         * target-delegates.c: Rebuild.
3155
3156 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3157
3158         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3159         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3160         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3161         (avr_pointer_to_address): Likewise.
3162         (avr_address_class_type_flags): New function.
3163         (avr_address_class_type_flags_to_name): Likewise.
3164         (avr_address_class_name_to_type_flags): Likewise.
3165         (avr_gdbarch_init): Set address_class_type_flags,
3166         address_class_type_flags_to_name and
3167         address_class_name_to_type_flags.
3168
3169 2014-07-15  Pedro Alves  <palves@redhat.com>
3170
3171         * linux-nat.c (kill_callback): Save errno and work with saved
3172         copy.
3173
3174 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3175
3176         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3177
3178 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3179
3180         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3181         breakpoint support correctly.
3182
3183 2014-07-14  Pedro Alves  <palves@redhat.com>
3184
3185         * utils.c (prompt_for_continue): Call target_terminal_ours.
3186
3187 2014-07-14  Pedro Alves  <palves@redhat.com>
3188
3189         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3190         catch_errors.  Don't re-enable stdin or notify observers where,
3191         and rethrow error.
3192         (fetch_inferior_event_wrapper): Delete.
3193
3194 2014-07-14  Pedro Alves  <palves@redhat.com>
3195
3196         PR gdb/17072
3197         * top.c: Include "inf-loop.h".
3198         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3199         field.
3200         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3201         was async before.
3202         (gdb_readline_wrapper): Store whether the target is async, and
3203         make it sync.
3204
3205 2014-07-14  Pedro Alves  <palves@redhat.com>
3206
3207         PR gdb/17072
3208         * top.c (gdb_readline_wrapper_line): Tweak comment.
3209         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3210         the input handler callback.
3211
3212 2014-07-14  Pedro Alves  <palves@redhat.com>
3213
3214         PR gdb/17072
3215         * main.c: Include event-top.h.
3216         (handle_command_errors): New function.
3217         (catch_command_errors, catch_command_errors_const): Use it.
3218
3219 2014-07-14  Pedro Alves  <palves@redhat.com>
3220
3221         * exceptions.c (catch_command_errors, catch_command_errors_const):
3222         Moved to main.c.
3223         * exceptions.h (catch_command_errors_ftype)
3224         (catch_command_errors_const_ftype): Moved to main.c.
3225         (catch_command_errors, catch_command_errors_const): Delete
3226         declarations.
3227         * main.c (catch_command_errors_ftype)
3228         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3229         (catch_command_errors, catch_command_errors_const)): Moved here
3230         from exceptions.c and make static.
3231
3232 2014-07-14  Pedro Alves  <palves@redhat.com>
3233
3234         * exceptions.c (print_any_exception): Delete.
3235         (catch_exceptions_with_msg): Use exception_print instead of
3236         print_any_exception.
3237         (catch_errors): Use exception_fprintf instead of
3238         print_any_exception.
3239         (catch_command_errors, catch_command_errors_const): Use
3240         exception_print instead of print_any_exception.
3241
3242 2014-07-14  Pedro Alves  <palves@redhat.com>
3243
3244         * infcall.c (run_inferior_call): Set 'sync_execution' while
3245         running the inferior call.
3246
3247 2014-07-14  Pedro Alves  <palves@redhat.com>
3248
3249         * value.c (value_contents_equal): Delete function.
3250         * value.h (value_contents_equal): Delete declaration.
3251
3252 2014-07-14  Tom Tromey  <tromey@redhat.com>
3253
3254         PR exp/17106:
3255         * gdbtypes.c (is_dynamic_type_internal): New function, from
3256         is_dynamic_type.
3257         (is_dynamic_type): Rewrite.
3258         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3259         (resolve_dynamic_struct): Likewise.
3260         (resolve_dynamic_type_internal): New function, from
3261         resolve_dynamic_type.
3262         (resolve_dynamic_type): Rewrite.
3263
3264 2014-07-14  Tom Tromey  <tromey@redhat.com>
3265
3266         * target.c (target_require_runnable): Also check record_stratum.
3267         Update comment.
3268
3269 2014-07-11  Yao Qi  <yao@codesourcery.com>
3270
3271         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3272         thumb_instruction_restores_sp return true.
3273
3274 2014-07-11  Yao Qi  <yao@codesourcery.com>
3275
3276         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3277         (thumb_in_function_epilogue_p): Call
3278         thumb_instruction_restores_sp.
3279
3280 2014-07-11  Yao Qi  <yao@codesourcery.com>
3281
3282         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3283         'add sp, #imm'.
3284         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3285
3286 2014-07-11  Gary Benson  <gbenson@redhat.com>
3287
3288         * amd64-linux-nat.c (gdbcore.h): Remove include.
3289         (regset.h): Likewise.
3290         (nat/linux-btrace.h): Likewise.
3291         (btrace.h): Likewise.
3292         (gdb_assert.h): Likewise.
3293         (string.h): Likewise.
3294         (sys/uio.h): Likewise.
3295         (sys/debugreg.h): Likewise.
3296         (sys/syscall.h): Likewise.
3297         (sys/procfs.h): Likewise.
3298         (sys/user.h): Likewise.
3299         (asm/ptrace.h): Likewise.
3300         (i386-nat.h): Likewise.
3301         * i386-linux-nat.c (i386-nat.h): Likewise.
3302         (regset.h): Likewise.
3303         (target.h): Likewise.
3304         (linux-nat.h): Likewise.
3305         (nat/linux-btrace.h): Likewise.
3306         (btrace.h): Likewise.
3307         (gdb_assert.h): Likewise.
3308         (string.h): Likewise.
3309         (sys/uio.h): Likewise.
3310         (sys/user.h): Likewise.
3311         (sys/procfs.h): Likewise.
3312         (sys/reg.h): Likewise.
3313         (sys/debugreg.h): Likewise.
3314         (ORIG_EAX): Remove definition.
3315
3316 2014-07-11  Gary Benson  <gbenson@redhat.com>
3317
3318         * i386-linux-nat.h: New file.
3319         * x86-linux-nat.h: Likewise.
3320         * x86-linux-nat.c: Likewise.
3321         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3322         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3323         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3324         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3325         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3326         (PTRACE_SETREGSET): Likewise.
3327         (arch_lwp_info): Now in x86-linux-nat.c.
3328         (have_ptrace_getregset): Now in x86-linux-nat.h.
3329         (x86_linux_dr_get): Now in x86-linux-nat.c.
3330         (x86_linux_dr_set): Likewise.
3331         (x86_linux_dr_get_addr): Likewise.
3332         (x86_linux_dr_get_control): Likewise.
3333         (x86_linux_dr_get_status): Likewise.
3334         (update_debug_registers_callback): Likewise.
3335         (x86_linux_dr_set_control): Likewise.
3336         (x86_linux_dr_set_addr): Likewise.
3337         (x86_linux_prepare_to_resume): Likewise.
3338         (x86_linux_new_thread): Likewise.
3339         (x86_linux_new_fork): Likewise.
3340         (x86_linux_get_thread_area): Likewise.
3341         (super_post_startup_inferior): Likewise.
3342         (x86_linux_child_post_startup_inferior): Likewise.
3343         (AMD64_LINUX_USER64_CS): Likewise.
3344         (AMD64_LINUX_X32_DS): Likewise.
3345         (x86_linux_read_description): Likewise.
3346         (x86_linux_enable_btrace): Likewise.
3347         (x86_linux_disable_btrace): Likewise.
3348         (x86_linux_teardown_btrace): Likewise.
3349         (x86_linux_read_btrace): Likewise.
3350         (x86_linux_create_target): Likewise.
3351         (x86_linux_add_target): Likewise.
3352         * i386-linux-nat.c (x86-linux-nat.h): New include.
3353         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3354         (PTRACE_SETREGSET): Likewise.
3355         (arch_lwp_info): Now in x86-linux-nat.c.
3356         (have_ptrace_getregset): Now in x86-linux-nat.h.
3357         (x86_linux_dr_get): Now in x86-linux-nat.c.
3358         (x86_linux_dr_set): Likewise.
3359         (x86_linux_dr_get_addr): Likewise.
3360         (x86_linux_dr_get_control): Likewise.
3361         (x86_linux_dr_get_status): Likewise.
3362         (update_debug_registers_callback): Likewise.
3363         (x86_linux_dr_set_control): Likewise.
3364         (x86_linux_dr_set_addr): Likewise.
3365         (x86_linux_prepare_to_resume): Likewise.
3366         (x86_linux_new_thread): Likewise.
3367         (x86_linux_new_fork): Likewise.
3368         (x86_linux_get_thread_area): Likewise.
3369         (super_post_startup_inferior): Likewise.
3370         (x86_linux_child_post_startup_inferior): Likewise.
3371         (AMD64_LINUX_USER64_CS): Likewise.
3372         (AMD64_LINUX_X32_DS): Likewise.
3373         (x86_linux_read_description): Likewise.
3374         (x86_linux_enable_btrace): Likewise.
3375         (x86_linux_disable_btrace): Likewise.
3376         (x86_linux_teardown_btrace): Likewise.
3377         (x86_linux_read_btrace): Likewise.
3378         (x86_linux_create_target): Likewise.
3379         (x86_linux_add_target): Likewise.
3380
3381 2014-07-11  Gary Benson  <gbenson@redhat.com>
3382
3383         * amd64-linux-nat.c: Comment and whitespace changes.
3384         * i386-linux-nat.c: Comment and whitespace changes.
3385
3386 2014-07-11  Gary Benson  <gbenson@redhat.com>
3387
3388         * amd64-linux-nat.c (x86_linux_create_target): New function.
3389         (x86_linux_add_target): Likewise.
3390         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3391         * i386-linux-nat.c (x86_linux_create_target): New function.
3392         (x86_linux_add_target): Likewise.
3393         (_initialize_i386_linux_nat): Delegate to the above new functions.
3394
3395 2014-07-11  Gary Benson  <gbenson@redhat.com>
3396
3397         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3398         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3399         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3400         (ps_get_thread_area): Delegate to the above.
3401
3402 2014-07-11  Gary Benson  <gbenson@redhat.com>
3403
3404         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3405         x86_linux_read_description.  All uses updated.  amd64-specific
3406         code conditionalized.  Conditionalized i386-specific code added.
3407         Redundant cast removed.
3408         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3409         x86_linux_read_description.  All uses updated.  i386-specific
3410         code conditionalized.  Conditionalized amd64-specific code added.
3411         One sizeof replaced with the actual type it is describing.
3412
3413 2014-07-11  Gary Benson  <gbenson@redhat.com>
3414
3415         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3416         x86_linux_dr_get.  All uses updated.
3417         (amd64_linux_dr_set): Renamed to
3418         x86_linux_dr_set.  All uses updated.
3419         (amd64_linux_dr_get_addr): Renamed to
3420         x86_linux_dr_get_addr.  All uses updated.
3421         (amd64_linux_dr_get_control): Renamed to
3422         x86_linux_dr_get_control.  All uses updated.
3423         (amd64_linux_dr_get_status): Renamed to
3424         x86_linux_dr_get_status.  All uses updated.
3425         (amd64_linux_dr_set_control): Renamed to
3426         x86_linux_dr_set_control.  All uses updated.
3427         (amd64_linux_dr_set_addr): Renamed to
3428         x86_linux_dr_set_addr.  All uses updated.
3429         (amd64_linux_prepare_to_resume): Renamed to
3430         x86_linux_prepare_to_resume.  All uses updated.
3431         (amd64_linux_new_thread): Renamed to
3432         x86_linux_new_thread.  All uses updated.
3433         (amd64_linux_new_fork): Renamed to
3434         x86_linux_new_fork.  All uses updated.
3435         (amd64_linux_child_post_startup_inferior): Renamed to
3436         x86_linux_child_post_startup_inferior.  All uses updated.
3437         (amd64_linux_enable_btrace): Renamed to
3438         x86_linux_enable_btrace.  All uses updated.
3439         (amd64_linux_disable_btrace): Renamed to
3440         x86_linux_disable_btrace.  All uses updated.
3441         (amd64_linux_teardown_btrace): Renamed to
3442         x86_linux_teardown_btrace.  All uses updated.
3443         (amd64_linux_read_btrace): Renamed to
3444         x86_linux_read_btrace.  All uses updated.
3445         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3446         x86_linux_dr_get.  All uses updated.
3447         (i386_linux_dr_set): Renamed to
3448         x86_linux_dr_set.  All uses updated.
3449         (i386_linux_dr_get_addr): Renamed to
3450         x86_linux_dr_get_addr.  All uses updated.
3451         (i386_linux_dr_get_control): Renamed to
3452         x86_linux_dr_get_control.  All uses updated.
3453         (i386_linux_dr_get_status): Renamed to
3454         x86_linux_dr_get_status.  All uses updated.
3455         (i386_linux_dr_set_control): Renamed to
3456         x86_linux_dr_set_control.  All uses updated.
3457         (i386_linux_dr_set_addr): Renamed to
3458         x86_linux_dr_set_addr.  All uses updated.
3459         (i386_linux_prepare_to_resume): Renamed to
3460         x86_linux_prepare_to_resume.  All uses updated.
3461         (i386_linux_new_thread): Renamed to
3462         x86_linux_new_thread.  All uses updated.
3463         (i386_linux_new_fork): Renamed to
3464         x86_linux_new_fork.  All uses updated.
3465         (i386_linux_child_post_startup_inferior): Renamed to
3466         x86_linux_child_post_startup_inferior.  All uses updated.
3467         (i386_linux_enable_btrace): Renamed to
3468         x86_linux_enable_btrace.  All uses updated.
3469         (i386_linux_disable_btrace): Renamed to
3470         x86_linux_disable_btrace.  All uses updated.
3471         (i386_linux_teardown_btrace): Renamed to
3472         x86_linux_teardown_btrace.  All uses updated.
3473         (i386_linux_read_btrace): Renamed to
3474         x86_linux_read_btrace.  All uses updated.
3475
3476 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3477
3478         * remote.c (extended_remote_post_attach): New function.
3479         (init_extended_remote_ops): Install it as to_post_attach method.
3480
3481 2014-07-09  Pedro Alves  <palves@redhat.com>
3482
3483         * infcmd.c (attach_command_post_wait): Don't call
3484         target_terminal_inferior here.
3485         (attach_command): Call it here instead.
3486
3487 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3488
3489         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3490         field.
3491         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3492         from varobj.c, with additional checks.
3493         (c_varobj_ops): Fill in is_path_expr_parent field.
3494         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3495         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3496         field.
3497         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3498         ops method.
3499         (varobj_default_is_path_expr_parent): New function.
3500         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3501         (varobj_default_is_path_expr_parent): Declare new function.
3502
3503 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3504
3505         * infcmd.c (finish_backward): Turn internal error into normal error.
3506
3507 2014-07-07  Pedro Alves  <palves@redhat.com>
3508
3509         PR gdb/17096
3510         * remote.c (async_handle_remote_sigint)
3511         (async_handle_remote_sigint_twice): Call
3512         gdb_call_async_signal_handler instead of
3513         mark_async_signal_handler.
3514
3515 2014-07-07  Tom Tromey  <tromey@redhat.com>
3516
3517         * target-delegates.c: Rebuild.
3518         * target.c (target_info_record): Remove.
3519         * record.c (info_record_command): Unconditionally call
3520         to_info_record.
3521         * target.h (struct target_ops) <to_info_record>: Use
3522         TARGET_DEFAULT_IGNORE.
3523         (target_info_record): Remove.
3524
3525 2014-07-07  Tom Tromey  <tromey@redhat.com>
3526
3527         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3528         TARGET_DEFAULT_NORETURN.
3529         * target.c (generic_tls_error): New function.
3530         (target_translate_tls_address): Don't search target stack.
3531         * target-delegates.c: Rebuild.
3532         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3533         stack.
3534         * linux-thread-db.c (thread_db_get_thread_local_address):
3535         Unconditionally call beneath target.
3536
3537 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3538
3539         * cli/cli-logging.c (pop_output_files): Assign targerr to
3540         gdb_stdtargerr.
3541
3542 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3543
3544         * MAINTAINERS (Write After Approval): Update my email address.
3545
3546 2014-07-02  Gary Benson  <gbenson@redhat.com>
3547
3548         * proc-service.c (ps_xfer_memory): Update comment.
3549         (ps_pstop): Remove unused function.
3550         (ps_pcontinue): Likewise.
3551         (ps_lstop): Likewise.
3552         (ps_lcontinue): Likewise.
3553         (ps_lgetxregsize): Likewise.
3554         (ps_lgetxregs): Likewise.
3555         (ps_lsetxregs): Likewise.
3556         (ps_plog): Likewise.
3557         (ps_ptread): Likewise.
3558         (ps_ptwrite): Likewise.
3559
3560 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3561
3562         * dwarf2read.c (add_array_cv_type): New function.
3563         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3564         (read_tag_volatile_type): Likewise.
3565
3566 2014-07-01  Tom Tromey  <tromey@redhat.com>
3567
3568         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3569         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3570         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3571         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3572         * command.h (cmd_cfunc_ftype): Move earlier.
3573         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3574         (add_com, add_info): Use cmd_cfunc_ftype.
3575
3576 2014-06-30  Tom Tromey  <tromey@redhat.com>
3577
3578         * symtab.c (operator_chars): Make parameters and return type
3579         const.
3580         (file_matches): Make "files" const.
3581         (struct search_symbols_data) <files>: Now const.
3582         (search_symbols): Make "regexp" and "files" parameters const.
3583         Update.
3584         (symtab_symbol_info): Remove cast.
3585         (rbreak_command): Update.
3586         * symtab.h (search_symbols): Update.
3587
3588 2014-06-27  Yao Qi  <yao@codesourcery.com>
3589
3590         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3591         Change parameter type to 'struct thread_info *'.  Caller
3592         updated.
3593         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3594         Update declaration.
3595         * dummy-frame.c (struct dummy_frame_id): New.
3596         (dummy_frame_id_eq): New function.
3597         (struct dummy_frame) <id>: Change its type to 'struct
3598         dummy_frame_id'.
3599         (dummy_frame_push): Add parameter ptid and save it in
3600         dummy_frame_id.
3601         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3602         inferior_ptid.
3603         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3604         to inferior_ptid.
3605         (lookup_dummy_frame): Change parameter type to 'struct
3606         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3607         instead of frame_id_eq.
3608         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3609         Update comments.  Compose dummy_frame_id and pass it to
3610         lookup_dummy_frame.
3611         (dummy_frame_discard): Add parameter ptid.
3612         (dummy_frame_sniffer): Compose dummy_frame_id and call
3613         dummy_frame_id_eq instead of frame_id_eq.
3614         (fprint_dummy_frames): Print ptid.
3615         * dummy-frame.h: Remove comments.
3616         (dummy_frame_push): Add ptid in declaration.
3617         (dummy_frame_pop, dummy_frame_discard): Likewise.
3618
3619 2014-06-26  Tom Tromey  <tromey@redhat.com>
3620
3621         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3622         * command.h (error_no_arg): Update.
3623
3624 2014-06-26  Tom Tromey  <tromey@redhat.com>
3625
3626         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3627         (do_show_command): Make "arg" const.
3628         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3629
3630 2014-06-26  Tom Tromey  <tromey@redhat.com>
3631
3632         * record-full.c (record_full_get_bookmark): Make "args" const.
3633         (record_full_goto_bookmark): Make "raw_bookmark" const.
3634         * record.c (record_goto): New function.
3635         (cmd_record_goto): Use it.  Now static.
3636         * record.h (record_goto): Declare.
3637         (cmd_record_goto): Remove declaration.
3638         * target-delegates.c: Rebuild.
3639         * target.h (struct target_ops) <to_get_bookmark,
3640         to_goto_bookmark>: Make parameter const.
3641
3642 2014-06-26  Tom Tromey  <tromey@redhat.com>
3643
3644         * defs.h (generic_load): Update.
3645         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3646         * monitor.c (monitor_load): Make "args" const.
3647         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3648         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3649         const.
3650         (mips_load): Make "file" const.
3651         * remote-sim.c (gdbsim_load): Make "args" const.
3652         * remote.c (remote_load): Make "name" const.
3653         * symfile.c (generic_load): Make "args" const.
3654         * target-delegates.c: Rebuild.
3655         * target.c (target_load): Make "arg" const.
3656         (debug_to_load): Make "args" const.
3657         * target.h (struct target_ops) <to_load>: Make parameter const.
3658         (target_load): Update.
3659
3660 2014-06-26  Tom Tromey  <tromey@redhat.com>
3661
3662         PR symtab/16902:
3663         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3664         (dwarf2_physname, read_partial_die)
3665         (guess_partial_die_structure_name, fixup_partial_die)
3666         (guess_full_die_structure_name, anonymous_struct_prefix)
3667         (dwarf2_name): Use per-BFD obstack.
3668
3669 2014-06-26  Yao Qi  <yao@codesourcery.com>
3670
3671         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3672         dummyframe and this_id into inner block below.
3673
3674 2014-06-26  Yao Qi  <yao@codesourcery.com>
3675
3676         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3677         with "signal_pass[0]" in the initialization of signal_pass.
3678
3679 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3680
3681         * record-btrace.c (record_btrace_generating_corefile)
3682         (record_btrace_prepare_to_generate_core)
3683         (record_btrace_done_generating_core): New.
3684         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3685         (record_btrace_store_registers, record_btrace_prepare_to_store):
3686         Forward request when generating a core file.
3687         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3688         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3689         to_done_generating_core.
3690
3691 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3692
3693         * target.h (target_ops) <to_prepare_to_generate_core>
3694         <to_done_generating_core>: New.
3695         (target_prepare_to_generate_core, target_done_generating_core): New.
3696         * target.c (target_prepare_to_generate_core)
3697         (target_done_generating_core): New.
3698         * target-delegates.c: Regenerate.
3699         * gcore.c: (write_gcore_file): Rename to ...
3700         (write_gcore_file_1): ...this.
3701         (write_gcore_file): Call target_prepare_to_generate_core
3702         and target_done_generating_core.
3703
3704 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3705
3706         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3707         * gcore.c (write_gcore_file): Free memory returned from
3708         make_corefile_notes.
3709         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3710         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3711
3712 2014-06-24  Yao Qi  <yao@codesourcery.com>
3713
3714         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3715         (arm_linux_init_abi): Set skip_trampoline_code with
3716         gdbarch_skip_trampoline_code instead of
3717         find_solib_trampoline_target.
3718
3719 2014-06-24  Yao Qi  <yao@codesourcery.com>
3720
3721         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3722         arm_skip_bx_reg returns non-zero.
3723
3724 2014-06-24  Yao Qi  <yao@codesourcery.com>
3725
3726         * arm-tdep.c (arm_skip_bx_reg): New function.
3727         (arm_skip_stub): Call arm_skip_bx_reg.
3728
3729 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3730
3731         * MAINTAINERS: Add myself as write-after-approval maintainer.
3732
3733 2014-06-23  Pedro Alves  <palves@redhat.com>
3734
3735         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3736         DR_CONTROL before setting DR0..DR3.
3737         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3738         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3739         bits of DR_CONTROL related to the debug register slot being
3740         disabled.  If all slots are vacant, clear local slowdown as well,
3741         and assert DR_CONTROL is 0.
3742
3743 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3744
3745         * python/lib/gdb/command/xmethods.py
3746         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3747         current progspace only if the string "progspace" matches LOCUS_RE.
3748
3749 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3750
3751         Fix --with-system-readline with readline-6.3 patch 5.
3752         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3753         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3754         types.
3755
3756 2014-06-20  Tom Tromey  <tromey@redhat.com>
3757
3758         * dwarf2read.c (dw2_get_real_path): Use correct type in
3759         OBSTACK_CALLOC.
3760         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3761
3762 2014-06-20  Gary Benson  <gbenson@redhat.com>
3763
3764         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3765         * common/glibc_thread_db.h: Likewise.
3766         * common/i386-cpuid.h: Likewise.
3767         * common/i386-gcc-cpuid.h: Likewise.
3768         * common/linux-btrace.h: Likewise.
3769         * common/linux-osdata.h: Likewise.
3770         * common/linux-procfs.h: Likewise.
3771         * common/linux-ptrace.h: Likewise.
3772         * common/mips-linux-watch.h: Likewise.
3773         * common/linux-btrace.c: Moved to nat.
3774         * common/linux-osdata.c: Likewise.
3775         * common/linux-procfs.c: Likewise.
3776         * common/linux-ptrace.c: Likewise.
3777         * common/mips-linux-watch.c: Likewise.
3778         * nat/gdb_thread_db.h: Moved from common.
3779         * nat/glibc_thread_db.h: Likewise.
3780         * nat/i386-cpuid.h: Likewise.
3781         * nat/i386-gcc-cpuid.h: Likewise.
3782         * nat/linux-btrace.c: Likewise.
3783         * nat/linux-btrace.h: Likewise.
3784         * nat/linux-osdata.c: Likewise.
3785         * nat/linux-osdata.h: Likewise.
3786         * nat/linux-procfs.c: Likewise.
3787         * nat/linux-procfs.h: Likewise.
3788         * nat/linux-ptrace.c: Likewise.
3789         * nat/linux-ptrace.h: Likewise.
3790         * nat/mips-linux-watch.c: Likewise.
3791         * nat/mips-linux-watch.h: Likewise.
3792         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3793         (object file files): Reordered.
3794         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3795         of glibc_thread_db.h.
3796
3797 2014-06-20  Gary Benson  <gbenson@redhat.com>
3798
3799         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3800         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3801         (i386_dr_low): Likewise.
3802         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3803         (i386_dr_low_set_addr): Likewise.
3804         (i386_dr_low_get_addr): Likewise.
3805         (i386_dr_low_can_set_control): Likewise.
3806         (i386_dr_low_set_control): Likewise.
3807         (i386_dr_low_get_control): Likewise.
3808         (i386_dr_low_get_status): Likewise.
3809         (i386_get_debug_register_length): Likewise.
3810         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3811         (i386_dr_low): Likewise.
3812         * nat/i386-dregs.c (i386-low.h): Remove include.
3813         (i386-nat.h): Likewise.
3814         (nat/i386-dregs.h): New include.
3815         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3816         (i386_dr_low_set_addr): Likewise.
3817         (i386_dr_low_get_addr): Likewise.
3818         (i386_dr_low_can_set_control): Likewise.
3819         (i386_dr_low_set_control): Likewise.
3820         (i386_dr_low_get_control): Likewise.
3821         (i386_dr_low_get_status): Likewise.
3822         (i386_get_debug_register_length): Likewise.
3823         (debug_hw_points): Likewise.
3824
3825 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3826
3827         * Makefile.in (SFILES): Add d-exp.y.
3828         (YYFILES): Add d-exp.c.
3829         (YYOBJ): Add d-exp.o.
3830         (local-maintainer-clean): Delete d-exp.c.
3831         * d-exp.y: New file.
3832         * d-lang.h (d_parse): New declaration.
3833         (d_error): New declaration.
3834         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3835         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3836         PREC_ORDER operators.
3837         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3838
3839 2014-06-19  Yao Qi  <yao@codesourcery.com>
3840
3841         * gdbthread.h (any_running): Remove the declaration.
3842         * thread.c (any_running): Remove.
3843
3844 2014-06-19  Yao Qi  <yao@codesourcery.com>
3845
3846         * gdbthread.h (struct thread_info) <state>: Change its type to
3847         'enum thread_state'.  Update comments.
3848
3849 2014-06-19  Pedro Alves  <palves@redhat.com>
3850
3851         * gdbthread.h (ALL_THREADS): Delete.
3852         (ALL_NON_EXITED_THREADS): New macro.
3853         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3854         instead of ALL_THREADS.
3855         * infrun.c (find_thread_needs_step_over)
3856         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3857         instead of ALL_THREADS.
3858         * record-btrace.c (record_btrace_open)
3859         (record_btrace_stop_recording, record_btrace_close)
3860         (record_btrace_is_replaying, record_btrace_resume)
3861         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3862         * remote.c (append_pending_thread_resumptions): Likewise.
3863         * thread.c (thread_apply_all_command): Likewise.
3864
3865 2014-06-19  Gary Benson  <gbenson@redhat.com>
3866
3867         * i386-nat.c (i386_stopped_by_watchpoint):
3868         Use i386_dr_stopped_by_watchpoint.
3869         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3870         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3871
3872 2014-06-19  Gary Benson  <gbenson@redhat.com>
3873
3874         * nat/i386-dregs.c: New file.
3875         * Makefile.in (i386-dregs.o): New rule.
3876         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3877         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3878         * config/i386/darwin.mh (NATDEPFILES): Likewise.
3879         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3880         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3881         * config/i386/go32.mh (NATDEPFILES): Likewise.
3882         * config/i386/linux.mh (NATDEPFILES): Likewise.
3883         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3884         * config/i386/mingw.mh (NATDEPFILES): Likewise.
3885         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3886         * i386-nat.h (debug_hw_points): New declaration.
3887         * i386-nat.c (breakpoint.h): Remove include.
3888         (command.h): Likewise.
3889         (target.h): Likewise.
3890         (gdb_assert.h): Likewise.
3891         (debug_hw_points): Made nonstatic.
3892         (debug_printf): Now in i386-dregs.c.
3893         (TARGET_HAS_DR_LEN_8): Likewise.
3894         (DR_CONTROL_SHIFT): Likewise.
3895         (DR_CONTROL_SIZE): Likewise.
3896         (DR_RW_EXECUTE): Likewise.
3897         (DR_RW_WRITE): Likewise.
3898         (DR_RW_READ): Likewise.
3899         (DR_RW_IORW): Likewise.
3900         (DR_LEN_1): Likewise.
3901         (DR_LEN_2): Likewise.
3902         (DR_LEN_4): Likewise.
3903         (DR_LEN_8): Likewise.
3904         (DR_LOCAL_ENABLE_SHIFT): Likewise.
3905         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3906         (DR_ENABLE_SIZE): Likewise.
3907         (DR_LOCAL_SLOWDOWN): Likewise.
3908         (DR_GLOBAL_SLOWDOWN): Likewise.
3909         (DR_CONTROL_RESERVED): Likewise.
3910         (I386_DR_CONTROL_MASK): Likewise.
3911         (I386_DR_VACANT): Likewise.
3912         (I386_DR_LOCAL_ENABLE): Likewise.
3913         (I386_DR_GLOBAL_ENABLE): Likewise.
3914         (I386_DR_DISABLE): Likewise.
3915         (I386_DR_SET_RW_LEN): Likewise.
3916         (I386_DR_GET_RW_LEN): Likewise.
3917         (I386_DR_WATCH_HIT): Likewise.
3918         (i386_wp_op_t): Likewise.
3919         (i386_show_dr): Likewise.
3920         (i386_length_and_rw_bits): Likewise.
3921         (i386_insert_aligned_watchpoint): Likewise.
3922         (i386_remove_aligned_watchpoint): Likewise.
3923         (i386_handle_nonaligned_watchpoint): Likewise.
3924         (i386_update_inferior_debug_regs): Likewise.
3925         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3926         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3927         (i386_region_ok_for_watchpoint):
3928         Use i386_dr_region_ok_for_watchpoint.
3929         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3930
3931 2014-06-19  Gary Benson  <gbenson@redhat.com>
3932
3933         * i386-nat.c (i386_insert_hw_breakpoint): Use
3934         i386_insert_watchpoint.
3935         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3936
3937 2014-06-19  Gary Benson  <gbenson@redhat.com>
3938
3939         * i386-nat.c (i386_dr_show): Renamed to
3940         i386_show_dr and made static.  All uses updated.
3941         (i386_dr_length_and_rw_bits): Renamed to
3942         i386_length_and_rw_bits and made static.
3943         All uses updated.
3944         (i386_dr_insert_aligned_watchpoint): Renamed to
3945         i386_insert_aligned_watchpoint and made static.
3946         All uses updated.
3947         (i386_dr_remove_aligned_watchpoint): Renamed to
3948         i386_remove_aligned_watchpoint and made static.
3949         All uses updated.
3950         (i386_dr_update_inferior_debug_regs): Renamed to
3951         i386_update_inferior_debug_regs and made static.
3952         All uses updated.
3953         * nat/i386-dregs.h (i386_dr_show): Removed.
3954         (i386_dr_length_and_rw_bits): Likewise.
3955         (i386_dr_insert_aligned_watchpoint): Likewise.
3956         (i386_dr_remove_aligned_watchpoint): Likewise.
3957         (i386_dr_update_inferior_debug_regs): Likewise.
3958
3959 2014-06-19  Gary Benson  <gbenson@redhat.com>
3960
3961         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3962         * configure: Regenerate.
3963         * config.in: Likewise.
3964         * main.c (signal.h): New include.
3965         (setup_alternate_signal_stack): New function.
3966         (captured_main): Call the above.
3967         * cp-support.c (signal.h): New include.
3968         (catch_demangler_crashes): New flag.
3969         (SIGJMP_BUF): New define.
3970         (SIGSETJMP): Likewise.
3971         (SIGLONGJMP): Likewise.
3972         (gdb_demangle_jmp_buf): New static global.
3973         (gdb_demangle_attempt_core_dump): Likewise.
3974         (gdb_demangle_signal_handler): New function.
3975         (gdb_demangle): If catch_demangler_crashes is set, install the
3976         above signal handler before calling bfd_demangle, and restore
3977         the original signal handler afterwards.  Display the offending
3978         symbol and call demangler_warning the first time a segmentation
3979         fault is caught.
3980         (_initialize_cp_support): New maint set/show command.
3981
3982 2014-06-19  Gary Benson  <gbenson@redhat.com>
3983
3984         * utils.h (resource_limit_kind): New enum.
3985         (can_dump_core): New declaration.
3986         (warn_cant_dump_core): Likewise.
3987         (dump_core): Likewise.
3988         * utils.c (dump_core): Made nonstatic.  Added new
3989         parameter "limit_kind".
3990         (can_dump_core): Made nonstatic. Moved printing code to...
3991         (warn_cant_dump_core): New function.
3992         (can_dump_core_warn): Likewise.
3993         (internal_vproblem): Replace calls to can_dump_core with
3994         calls to can_dump_core_warn.  Supply new argument to each.
3995
3996 2014-06-19  Gary Benson  <gbenson@redhat.com>
3997
3998         * utils.h (demangler_vwarning): New declaration.
3999         (demangler_warning): Likewise.
4000         * utils.c (struct internal_problem)
4001         <user_settable_should_quit>: New field.
4002         <user_settable_should_dump_core>: Likewise
4003         (internal_error_problem): Add values for above new fields.
4004         (internal_warning_problem): Likewise.
4005         (demangler_warning_problem): New static global.
4006         (demangler_vwarning): New function.
4007         (demangler_warning): Likewise.
4008         (add_internal_problem_command): Selectively add commands.
4009         (_initialize_utils): New internal problem command.
4010         * maint.c (maintenance_demangler_warning): New function.
4011         (_initialize_maint_cmds): New command.
4012
4013 2014-06-18  Tom Tromey  <tromey@redhat.com>
4014
4015         * f-valprint.c (info_common_command_for_block): Update.
4016         * symtab.h (struct general_symbol_info) <common_block>: Now
4017         const.
4018
4019 2014-06-18  Tom Tromey  <tromey@redhat.com>
4020
4021         * symtab.h (struct symtab) <blockvector>: Now const.
4022         * ada-lang.c (ada_add_global_exceptions): Update.
4023         * buildsym.c (augment_type_symtab): Update.
4024         * dwarf2read.c (dw2_lookup_symbol): Update.
4025         * jit.c (finalize_symtab): Update.
4026         * jv-lang.c (add_class_symtab_symbol): Update.
4027         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4028         Update.
4029         * objfiles.c (objfile_relocate1): Update.
4030         * psymtab.c (lookup_symbol_aux_psymtabs)
4031         (maintenance_check_psymtabs): Update.
4032         * python/py-symtab.c (stpy_global_block, stpy_static_block):
4033         Update.
4034         * spu-tdep.c (spu_catch_start): Update.
4035         * symmisc.c (dump_symtab_1): Update.
4036         * symtab.c (lookup_global_symbol_from_objfile)
4037         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4038         (basic_lookup_transparent_type_quick)
4039         (basic_lookup_transparent_type, find_pc_sect_symtab)
4040         (find_pc_sect_line, search_symbols): Update.
4041         * block.c (find_block_in_blockvector): Make "bl" const.
4042         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4043         const.
4044         (blockvector_contains_pc): Make "bv" const.
4045         (block_for_pc_sect): Update.
4046         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4047         (blockvector_contains_pc): Update.
4048         * breakpoint.c (resolve_sal_pc): Update.
4049         * inline-frame.c (block_starting_point_at): Update.
4050
4051 2014-06-18  Tom Tromey  <tromey@redhat.com>
4052
4053         * completer.c (complete_line): Make "line_buffer" const.
4054         * completer.h (complete_line): Update.
4055
4056 2014-06-18  Tom Tromey  <tromey@redhat.com>
4057
4058         * symtab.c (add_macro_name): Remove unneeded cast.
4059
4060 2014-06-18  Tom Tromey  <tromey@redhat.com>
4061
4062         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4063         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4064
4065 2014-06-18  Tom Tromey  <tromey@redhat.com>
4066
4067         * probe.c (info_probes_for_ops): Make "arg" const.
4068         * probe.h (info_probes_for_ops): Update.
4069
4070 2014-06-18  Tom Tromey  <tromey@redhat.com>
4071
4072         * varobj.c (varobj_create): Update.
4073         * valops.c (value_of_this): Update.
4074         * tracepoint.c (add_local_symbols, scope_info): Update.
4075         * symtab.h (struct general_symbol_info) <block>: Now const.
4076         * symtab.c (skip_prologue_sal)
4077         (default_make_symbol_completion_list_break_on)
4078         (skip_prologue_using_sal): Update.
4079         * stack.h (iterate_over_block_locals)
4080         (iterate_over_block_local_vars): Update.
4081         * stack.c (print_frame_args): Update.
4082         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4083         parameter const.
4084         (get_selected_block): Make return type const.
4085         * python/py-frame.c (frapy_block): Update.
4086         * python/py-block.c (gdbpy_block_for_pc): Update.
4087         * p-exp.y (%union) <bval>: Now const.
4088         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4089         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4090         * m2-exp.y (%union) <bval>: Now const.
4091         * linespec.c (get_current_search_block): Make return type const.
4092         (create_sals_line_offset, find_label_symbols): Update.
4093         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4094         Update.
4095         (block_starting_point_at): Make "block" const.
4096         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4097         (check_exception_resume): Update.
4098         * guile/scm-frame.c (gdbscm_frame_block): Update.
4099         * guile/scm-block.c (gdbscm_lookup_block): Update.
4100         * frame.h (get_frame_block): Update.
4101         (get_selected_block): Make return type const.
4102         * frame.c (frame_id_inner): Update.
4103         * f-valprint.c (info_common_command_for_block)
4104         (info_common_command): Update.
4105         * dwarf2loc.c (dwarf2_find_location_expression)
4106         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4107         (locexpr_describe_location_piece): Update.
4108         * c-exp.y (%union) <bval>: Now const.
4109         * breakpoint.c (resolve_sal_pc): Update.
4110         * blockframe.c (get_frame_block):Make return type const.
4111         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4112         (block_innermost_frame): Update.
4113         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4114         (block_for_pc, block_for_pc_sect): Update.
4115         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4116         'pblock' const.
4117         (block_for_pc_sect, block_for_pc): Make return type const.
4118         * ax-gdb.c (gen_expr): Update.
4119         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4120         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4121         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4122         (ada_read_var_value): Update.
4123         * ada-exp.y (struct name_info) <block>: Now const.
4124         (%union): Likewise.
4125         (block_lookup): Constify.
4126
4127 2014-06-18  Gary Benson  <gbenson@redhat.com>
4128
4129         * nat/i386-dregs.h: New file.
4130         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4131         * i386-nat.h (i386-dregs.h): New include.
4132         (DR_FIRSTADDR): Now in i386-dregs.h.
4133         (DR_LASTADDR): Likewise.
4134         (DR_NADDR): Likewise.
4135         (DR_STATUS): Likewise.
4136         (DR_CONTROL): Likewise.
4137         (i386_debug_reg_state): Likewise.
4138         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4139
4140 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4141
4142         * breakpoint.c (set_longjmp_breakpoint): Call
4143         momentary_breakpoint_from_master with additional argument.
4144         (set_longjmp_breakpoint_for_call_dummy): Call
4145         momentary_breakpoint_from_master with additional argument.
4146         (set_std_terminate_breakpoint): Call
4147         momentary_breakpoint_from_master with additional argument.
4148         (momentary_breakpoint_from_master): Add argument to function
4149         definition and use it to initialize structure member flag.
4150         (clone_momentary_breakpoint): Call
4151         momentary_breakpoint_from_master with additional argument.
4152         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4153         member flags set in momentary_breakpoint_from_master.
4154
4155 2014-06-18  Gary Benson  <gbenson@redhat.com>
4156
4157         * i386-nat.c (i386_show_dr): Renamed to
4158         i386_dr_show and made nonstatic.  All uses updated.
4159         (i386_length_and_rw_bits): Renamed to
4160         i386_dr_length_and_rw_bits and made nonstatic.
4161         All uses updated.
4162         (i386_insert_aligned_watchpoint): Renamed to
4163         i386_dr_insert_aligned_watchpoint and made nonstatic.
4164         All uses updated.
4165         (i386_remove_aligned_watchpoint): Renamed to
4166         i386_dr_remove_aligned_watchpoint and made nonstatic.
4167         All uses updated.
4168         (i386_update_inferior_debug_regs): Renamed to
4169         i386_dr_update_inferior_debug_regs and made nonstatic.
4170         All uses updated.
4171
4172 2014-06-18  Gary Benson  <gbenson@redhat.com>
4173
4174         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4175         (i386_dr_low_can_set_control): Likewise.
4176         (i386_dr_low_set_addr): Likewise.
4177         (i386_dr_low_set_control): Likewise.
4178         (i386_dr_low_get_addr): Likewise.
4179         (i386_dr_low_get_status): Likewise.
4180         (i386_dr_low_get_control): Likewise.
4181         (i386_insert_aligned_watchpoint): Use new macros.
4182         (i386_update_inferior_debug_regs): Likewise.
4183         (i386_stopped_data_address): Likewise.
4184
4185 2014-06-18  Gary Benson  <gbenson@redhat.com>
4186
4187         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4188         New parameter.  All uses updated.
4189
4190 2014-06-18  Gary Benson  <gbenson@redhat.com>
4191
4192         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4193         All uses updated.
4194
4195 2014-06-18  Gary Benson  <gbenson@redhat.com>
4196
4197         * i386-nat.c (debug_printf): New macro.
4198         (i386_get_debug_register_length): Likewise.
4199         (TARGET_HAS_DR_LEN_8): Use above macro.
4200         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4201         and printf_unfiltered.  Use phex to format values.
4202
4203 2014-06-18  Gary Benson  <gbenson@redhat.com>
4204
4205         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4206         Make const.
4207
4208 2014-06-18  Gary Benson  <gbenson@redhat.com>
4209
4210         * i386-nat.c: Comment changes.
4211
4212 2014-06-18  Gary Benson  <gbenson@redhat.com>
4213
4214         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4215
4216 2014-06-18  Gary Benson  <gbenson@redhat.com>
4217
4218         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4219         (i386_insert_aligned_watchpoint): Likewise.
4220         (i386_remove_aligned_watchpoint): Likewise.
4221         (i386_handle_nonaligned_watchpoint): Likewise.
4222
4223 2014-06-18  Gary Benson  <gbenson@redhat.com>
4224
4225         * i386-nat.c: Whitespace changes.
4226
4227 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4228
4229         * MAINTAINERS: Update Roland McGrath's email address.
4230         Thanks to Sergio Durigan Junior for pointing out that he left
4231         Red Hat a while ago, and giving me a current address.
4232
4233 2014-06-17  Tom Tromey  <tromey@redhat.com>
4234
4235         * utils.h (savestring): Remove declaration.
4236
4237 2014-06-17  Tom Tromey  <tromey@redhat.com>
4238
4239         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4240
4241 2014-06-16  Keith Seitz  <keiths@redhat.com>
4242
4243         PR mi/15863
4244         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4245         to update the varobj if inferior_ptid is null_ptid.
4246
4247 2014-06-16  Tom Tromey  <tromey@redhat.com>
4248
4249         * target.h (struct target_ops) <to_info_proc>: Make parameter
4250         const.
4251         (target_info_proc): Update.
4252         * target.c (target_info_proc): Make "args" const.
4253         * procfs.c (procfs_info_proc): Update.
4254         * linux-tdep.c (linux_info_proc): Update.
4255         (linux_core_info_proc_mappings): Make "args" const.
4256         (linux_core_info_proc): Update.
4257         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4258         * gdbarch.c: Rebuild.
4259         * gdbarch.h: Rebuild.
4260         * corelow.c (core_info_proc): Update.
4261
4262 2014-06-16  Tom Tromey  <tromey@redhat.com>
4263
4264         * target.h (struct target_ops) <to_disconnect>: Make parameter
4265         const.
4266         (target_disconnect): Update.
4267         * target.c (target_disconnect): Make "args" const.
4268         * target-delegates.c: Rebuild.
4269         * remote.c (remote_disconnect): Update.
4270         * record.h (record_disconnect): Update.
4271         * record.c (record_disconnect): Update.
4272         * inf-child.c (inf_child_disconnect): Update.
4273
4274 2014-06-16  Tom Tromey  <tromey@redhat.com>
4275
4276         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4277         * target.c (debug_to_rcmd, default_rcmd): Update.
4278         * target-delegates.c: Rebuild.
4279         * remote.c (remote_rcmd): Update.
4280         * monitor.c (monitor_rcmd): Update.
4281
4282 2014-06-16  Pedro Alves  <palves@redhat.com>
4283
4284         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4285         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4286         have OBJF_SHARED set.
4287         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4288         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4289         instead of OBJF_USERLOADED.
4290         * objfiles.h (OBJF_SHARED): Update comment.
4291         (userloaded_objfile_contains_address_p): Rename to ...
4292         (shared_objfile_contains_address_p): ... this, and update
4293         comments.
4294         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4295         new objfile.
4296         (remove_symbol_file_command): Skip objfiles that don't have
4297         OBJF_SHARED set.
4298
4299 2014-06-16  Tom Tromey  <tromey@redhat.com>
4300
4301         * minsyms.h (prim_record_minimal_symbol)
4302         (prim_record_minimal_symbol_and_info): Update comments.
4303
4304 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4305
4306         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4307         or --without-guile, according to how GDB was built.
4308
4309 2014-06-13  Tom Tromey  <tromey@redhat.com>
4310
4311         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4312         to help_list.
4313         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4314         to help_list.
4315         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4316         help_list.
4317         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4318         help_list.Pass all_commands, not -1, to help_list.
4319         * cli/cli-dump.c (dump_command, append_command)
4320         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4321         (binary_dump_command, binary_append_command): Pass all_commands,
4322         not -1, to help_list.
4323         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4324         -1, to help_list.
4325         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4326         -1, to help_list.
4327         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4328         help_list.
4329         * top.c (set_history): Pass all_commands, not -1, to help_list.
4330         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4331         all_commands, not -1, to help_list.
4332         * symfile.c (overlay_command): Pass all_commands, not -1, to
4333         help_list.
4334         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4335         help_list.
4336         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4337         help_list.
4338         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4339         -1, to help_list.
4340         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4341         not -1, to help_list.
4342         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4343         not -1, to help_list.
4344         * maint.c (maintenance_command, maintenance_info_command)
4345         (maintenance_print_command, maintenance_set_cmd): Pass
4346         all_commands, not -1, to help_list.
4347         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4348         help_list.
4349         * language.c (set_check): Pass all_commands, not -1, to help_list.
4350         * infcmd.c (unset_command): Pass all_commands, not -1, to
4351         help_list.
4352         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4353         help_list.
4354         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4355         help_list.
4356         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4357         help_list.
4358         * breakpoint.c (save_command): Pass all_commands, not -1, to
4359         help_list.
4360         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4361         all_commands, not -1, to help_list.
4362
4363 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4364
4365         * regcache.c (struct register_to_invalidate): New structure.
4366         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4367         functions.
4368         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4369
4370 2014-06-12  Yao Qi  <yao@codesourcery.com>
4371
4372         * varobj.c (varobj_get_num_children): Call
4373         varobj_is_dynamic_p.
4374         (varobj_list_children): Likewise.
4375         (varobj_update): Likewise.  Update comments.
4376
4377 2014-06-12  Yao Qi  <yao@codesourcery.com>
4378
4379         * varobj.c (varobj_pretty_printed_p): Rename to ...
4380         (varobj_is_dynamic_p): ... this.  New function.
4381         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4382         (varobj_is_dynamic_p): Declare.
4383         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4384         (mi_print_value_p, varobj_update_one): Likewise.
4385
4386 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4387             Yao Qi  <yao@codesourcery.com>
4388
4389         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4390         (varobj_get_iterator): Wrap up code for pretty-printer by
4391         "#if HAVE_PYTHON" and "#endif".
4392         (update_dynamic_varobj_children): Likewise.
4393
4394 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4395             Yao Qi  <yao@codesourcery.com>
4396
4397         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4398         gdb_python_initialized is false.  Move some code from varobj.c.
4399         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4400         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4401         (struct varobj_item): Moved to varobj-iter.h".
4402         (varobj_clear_saved_item): New function.
4403         (update_dynamic_varobj_children): Move python-related code to
4404         py-varobj.c.
4405         (free_variable): Call varobj_clear_saved_item and
4406         varobj_iter_delete.
4407
4408 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4409             Yao Qi  <yao@codesourcery.com>
4410
4411         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4412         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4413         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4414         (py-varobj.o): New rule.
4415         * python/py-varobj.c: New file.
4416         * python/python-internal.h (py_varobj_get_iterator): Declare.
4417         * varobj-iter.h: New file.
4418         * varobj.c: Include "varobj-iter.h"
4419         (struct varobj) <child_iter>: Change its type from "PyObject *"
4420         to "struct varobj_iter *".
4421         <saved_item>: Likewise.
4422         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4423         [HAVE_PYTHON] (varobj_get_iterator): New function.
4424         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4425         python-specific code to python/py-varobj.c.
4426         (install_visualizer): Call varobj_iter_delete instead of
4427         Py_XDECREF.
4428         * varobj.h (varobj_ensure_python_env): Declare.
4429
4430 2014-06-12  Yao Qi  <yao@codesourcery.com>
4431
4432         * varobj.c (struct varobj_item): New structure.
4433         (create_child_with_value): Update declaration.
4434         (varobj_add_child): Replace arguments 'name' and 'value' with
4435         'item'.  All callers updated.
4436         (install_dynamic_child): Likewise.
4437         (update_dynamic_varobj_children): Likewise.
4438         (varobj_add_child): Likewise.
4439         (create_child_with_value): Likewise.
4440
4441 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4442
4443         * NEWS: Create a new section for the next release branch.
4444         Rename the section of the current branch, now that it has
4445         been cut.
4446
4447 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4448
4449         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4450         * version.in: Bump version to 7.8.50.DATE-cvs.
4451
4452 2014-06-11  Pedro Alves  <palves@redhat.com>
4453
4454         PR remote/17028
4455         * ser-mingw.c (net_windows_socket_check_pending): New function.
4456         (net_windows_select_thread): Ignore spurious wakeups.  Use
4457         net_windows_socket_check_pending.
4458         (net_windows_wait_handle): Check for pending events with
4459         ioctlsocket, through net_windows_socket_check_pending, instead of
4460         checking the socket's event.
4461
4462 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4463
4464         * python/python-internal.h (gdb_PyObject_GetAttrString)
4465         (gdb_PyObject_HasAttrString): New inline function definitions.
4466         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4467         char * of the second argument to PyObject_GetAttrString.
4468
4469 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4470
4471         * serial.c (serial_write): Fix index of character to be printed
4472         in call to serial_logchar when serial debug traces are enabled.
4473
4474 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4475
4476         * gdbtypes (resolve_dynamic_range): Add function description.
4477
4478 2014-06-09  Pedro Alves  <palves@redhat.com>
4479
4480         * linux-nat.c (linux_child_follow_fork): Initialize status with
4481         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4482         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4483         state.
4484
4485 2014-06-09  Gary Benson  <gbenson@redhat.com>
4486
4487         * common/signals.c (gdb_signal_from_host): Reorder to separate
4488         the always-available ANSI-standard signals from the signals that
4489         require checking.
4490         (do_gdb_signal_to_host): Likewise.
4491         * proc-events.c (signal_table): Likewise.
4492
4493 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4494
4495         * common/linux-ptrace.c (linux_disable_event_reporting): New
4496         function.
4497         * common/linux-ptrace.h (linux_disable_event_reporting): New
4498         declaration.
4499         * linux-nat.c (linux_child_follow_fork): Do a single step before
4500         detach.
4501
4502 2014-06-07  Keith Seitz  <keiths@redhat.com>
4503
4504         Revert:
4505         PR c++/16253
4506         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4507         from symbol_matches_domain in symtab.c. All local callers
4508         of symbol_matches_domain updated.
4509         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4510         search STRUCT_DOMAIN.
4511         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4512         independently.  standard_lookup will do that automatically.
4513         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4514         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4515         (cp_lookup_symbol_in_namespace): Likewise.
4516         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4517         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4518         may return a STRUCT_DOMAIN match.
4519         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4520         * cp-support.c: Include language.h.
4521         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4522         VAR_DOMAIN.
4523         * psymtab.c (match_partial_symbol): Compare the requested
4524         domain with the symbol's domain directly.
4525         (lookup_partial_symbol): Likewise.
4526         * symtab.c (lookup_symbol_in_language): Explain when/why
4527         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4528         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4529         appropriate languages.
4530         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4531         and moved to ada-lang.c
4532         (lookup_block_symbol): Explain that this function only returns
4533         symbol matching the requested DOMAIN.
4534         Compare the requested domain with the symbol's domain directly.
4535         (iterate_over_symbols): Compare the requested domain with the
4536         symbol's domain directly.
4537         * symtab.h (symbol_matches_domain): Remove.
4538
4539 2014-06-06  Doug Evans  <xdje42@gmail.com>
4540
4541         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4542         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4543         (gdbscm_guile_version_is_at_least): Declare.
4544         (gdbscm_scm_string_to_int): Declare.
4545         * guile/guile.c (gdbscm_guile_major_version): New global.
4546         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4547         (guile_datadir): New static global.
4548         (gdbscm_guile_data_directory): New function.
4549         (initialize_scheme_side): Update.
4550         (misc_guile_functions): Add guile-data-directory.
4551         (initialize_gdb_module): Fetch guile version number.
4552         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4553         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4554         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4555         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4556         comments.
4557         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4558         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4559         * guile/scm-value.c (gdbscm_value_to_string): Only call
4560         scm_port_conversion_strategy if Guile version >= 2.0.6.
4561
4562 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4563
4564         * main.c (print_gdb_help): Add -q and --silent.
4565
4566 2014-06-06  Gary Benson  <gbenson@redhat.com>
4567
4568         * common/signals.c: Remove preprocessor conditionals for
4569         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4570         SIGSEGV and SIGTERM.
4571         * proc-events.c: Likewise.
4572
4573 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4574
4575         * symfile.c (symfile_free_objfile): Remove restriction to
4576         OBJF_USERLOADED.
4577         * symfile-mem.c (symbol_file_add_from_memory): Call
4578         add_target_sections_of_objfile.
4579
4580 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4581
4582         * guile/scm-value.c (gdbscm_history_append_x): Use
4583         'vlscm_get_value_smob_arg_unsafe' instead of
4584         'vlscm_scm_to_value'.
4585
4586 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4587
4588         PR mi/15806
4589         * utils.c (printchar): Don't escape at all if quoter is NUL.
4590         Update function documentation to clarify effect of parameter
4591         QUOTER.
4592         * remote.c (escape_buffer): Pass '\\' as the quoter to
4593         fputstrn_unfiltered.
4594         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4595         generate the output.
4596         (mi_solib_unloaded): Same.
4597
4598 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4599
4600         * development.sh: Delete.
4601         * Makefile.in (config.status): Adjust dependency on development.sh.
4602         * configure.ac: Adjust development.sh source call.
4603         * configure: Regenerate.
4604
4605 2014-06-04  Doug Evans  <xdje42@gmail.com>
4606
4607         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4608         is_scheme_bkpt, spec.
4609         (bpscm_make_breakpoint_smob): Initialize new members.
4610         (gdbscm_create_breakpoint_x): Split into two ...
4611         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4612         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4613         (scheme_function breakpoint_functions): Update.
4614         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4615         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4616         register-breakpoint!.
4617
4618 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4619
4620         PR server/17023
4621         * mem-break.c (z_type_supported): Return zero if
4622         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4623
4624 2014-06-04  Tom Tromey  <tromey@redhat.com>
4625
4626         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4627         value_from_contents_and_address_unresolved.
4628         (ada_template_to_fixed_record_type_1): Likewise.
4629         (ada_which_variant_applies): Likewise.
4630         * value.h (value_from_contents_and_address_unresolved): Declare.
4631         * value.c (value_from_contents_and_address_unresolved): New
4632         function.
4633         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4634         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4635         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4636
4637 2014-06-04  Tom Tromey  <tromey@redhat.com>
4638
4639         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4640
4641 2014-06-04  Tom Tromey  <tromey@redhat.com>
4642
4643         * procfs.c (procfs_attach): Make "args" const.
4644         * windows-nat.c (windows_attach): Make "args" const.
4645         * nto-procfs.c (procfs_attach): Make "args" const.
4646         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4647         * go32-nat.c (go32_attach): Make "args" const.
4648         * gnu-nat.c (gnu_attach): Make "args" const.
4649         * darwin-nat.c (darwin_attach): Make "args" const.
4650         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4651         * linux-nat.c (linux_nat_attach): Make "args" const.
4652         * remote.c (extended_remote_attach_1, extended_remote_attach):
4653         Make "args" const.
4654         * target.h (struct target_ops) <to_attach>: Make "args" const.
4655         (find_default_attach): Likewise.
4656         * utils.c (parse_pid_to_attach): Make "args" const.
4657         * utils.h (parse_pid_to_attach): Update.
4658
4659 2014-06-04  Tom Tromey  <tromey@redhat.com>
4660
4661         * target-delegates.c: Rebuild.
4662         * target.c (default_thread_address_space): New function.
4663         (target_thread_address_space): Simplify.
4664         * target.h (struct target_ops) <to_thread_address_space>: Add
4665         TARGET_DEFAULT_FUNC.
4666
4667 2014-06-04  Doug Evans  <xdje42@gmail.com>
4668
4669         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4670
4671 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4672
4673         * record-btrace.c: Include event-loop.h and inf-loop.h.
4674         (record_btrace_resume_exec_dir)
4675         (record_btrace_async_inferior_event_handler)
4676         (record_btrace_handle_async_inferior_event): New.
4677         (record_btrace_open): Create async event handler.
4678         (record_btrace_close): Delete async event handler.
4679         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4680         Mark async event handler.
4681         (record_btrace_execution_direction): New.
4682         (init_record_btrace_ops): Initialize to_execution_direction.
4683
4684 2014-06-03  Doug Evans  <xdje42@gmail.com>
4685
4686         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4687         (gdbscm_make_parameter): Ditto.
4688
4689 2014-06-03  Doug Evans  <dje@google.com>
4690
4691         * exec.c (exec_close_1): Call clear_section_table instead of
4692         resize_section_table.
4693         (clear_section_table): New function.
4694         (resize_section_table): Make static.  Rename arg num_added to
4695         adjustment.
4696         * exec.h (clear_section_table): Declare.
4697         (resize_section_table): Delete.
4698         * progspace.c (release_program_space): Call clear_section_table
4699         instead of resize_section_table.
4700
4701 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4702
4703         * NEWS (Python Scripting): Add entry about the new xmethods
4704         feature.
4705
4706 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4707
4708         * python/py-xmethods.c: New file.
4709         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4710         (objfpy_dealloc): XDECREF on the new xmethods field.
4711         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4712         field.
4713         (objfpy_get_xmethods): New function.
4714         (objfile_getset): New entry 'xmethods'.
4715         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4716         (pspy_dealloc): XDECREF on the new xmethods field.
4717         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4718         field.
4719         (pspy_get_xmethods): New function.
4720         (pspace_getset): New entry 'xmethods'.
4721         * python/python-internal.h: Add declarations for new functions.
4722         * python/python.c (_initialize_python): Invoke
4723         gdbpy_initialize_xmethods.
4724         * python/lib/gdb/__init__.py (xmethods): New
4725         attribute.
4726         * python/lib/gdb/xmethod.py: New file.
4727         * python/lib/gdb/command/xmethods.py: New file.
4728
4729 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4730
4731         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4732         best match method returned by find_overload_match is an xmethod.
4733         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4734         the best matching operator returned by find_overload_match is an
4735         xmethod.
4736         * valops.c: #include "extension.h".
4737         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4738         Return void.  The list of matching source methods is returned in
4739         "fn_list" and a vector of matching debug method workers is
4740         returned in "xm_worker_vec".  Update all callers.
4741         (value_find_oload_method_list): Likewise.
4742         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4743         non-NULL, then the index of the best matching method in this
4744         vector is returned.  Update all callers.
4745         (find_overload_match): Include xmethods while performing overload
4746         resolution.
4747
4748 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4749
4750         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4751         * extension-priv.h (struct extension_language_ops): Add the
4752         xmethod interface.
4753         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4754         get_matching_xmethod_workers, get_xmethod_argtypes,
4755         invoke_xmethod, free_xmethod_worker,
4756         free_xmethod_worker_vec): New functions.
4757         * extension.h: #include "common/vec.h".
4758         New function declarations.
4759         (struct xmethod_worker): New struct.
4760         (VEC (xmethod_worker_ptr)): New vector type.
4761         (xmethod_worker_ptr): New typedef.
4762         (xmethod_worker_vec): Likewise.
4763         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4764         builtin_type.
4765         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4766         (struct builtin_type): New field "xmethod".
4767         * valarith.c (value_ptradd): Assert that the value argument is not
4768         lval_xcallable.
4769         * valops.c (value_must_coerce_to_target): Return 0 for
4770         lval_xcallable values.
4771         * value.c (struct value): New field XM_WORKER in the field
4772         LOCATION.
4773         (value_address, value_raw_address): Return 0 for lval_xcallable
4774         values.
4775         (set_value_address): Assert that the value is not an
4776         lval_xcallable.
4777         (value_free): Free the associated xmethod worker when freeing
4778         lval_xcallable values.
4779         (set_value_component_location): Assert that the WHOLE value is not
4780         lval_xcallable.
4781         (value_of_xmethod, call_xmethod): New functions.
4782         * value.h: Declare "struct xmethod_worker".
4783         Declare new functions value_of_xmethod, call_xmethod.
4784
4785 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4786             Pedro Alves  <palves@redhat.com>
4787
4788         PR breakpoints/17000
4789         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4790         New function, extracted from software_breakpoint_inserted_here_p.
4791         (software_breakpoint_inserted_here_p): Replace factored out code
4792         by call to find_non_raw_software_breakpoint_inserted_here.
4793         (bp_target_info_copy_insertion_state): New function.
4794         (bkpt_insert_location): Handle the case of a single-step
4795         breakpoint already inserted at the same address.
4796         (bkpt_remove_location): Handle the case of a single-step
4797         breakpoint still inserted at the same address.
4798         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4799         breakpoint already inserted at the same address.
4800         (deprecated_remove_raw_breakpoint): Handle the case of a
4801         non-raw breakpoint still inserted at the same address.
4802         (find_single_step_breakpoint): New function, extracted from
4803         single_step_breakpoint_inserted_here_p.
4804         (find_single_step_breakpoint): New function,
4805         factored out from single_step_breakpoint_inserted_here_p.
4806         (single_step_breakpoint_inserted_here_p): Reimplement.
4807
4808 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4809
4810         Pushed by Joel Brobecker  <brobecker@adacore.com>
4811         * source.c (show_substitute_path_command): Fix display of matching
4812         substitution rules.
4813
4814 2014-06-03  Gary Benson  <gbenson@redhat.com>
4815
4816         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4817
4818 2014-06-02  Doug Evans  <xdje42@gmail.com>
4819
4820         Add parameter support for Guile.
4821         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4822         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4823         (scm-param.o): New rule.
4824         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4825         (gdbscm_misc_error): Declare.
4826         (gdbscm_canonicalize_command_name): Declare.
4827         (gdbscm_scm_to_host_string): Declare.
4828         (gdbscm_scm_from_host_string): Declare.
4829         (gdbscm_initialize_parameters): Declare.
4830         * guile/guile.c (initialize_gdb_module): Call
4831         gdbscm_initialize_parameters.
4832         * guile/lib/gdb.scm: Export parameter symbols.
4833         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4834         cmdscm_canonicalize_name and made public.  All callers updated.
4835         * guile/scm-exception.c (gdbscm_misc_error): New function.
4836         * guile/scm-param.c: New file.
4837         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4838         (gdbscm_scm_to_host_string): New function.
4839         (gdbscm_scm_from_host_string): New function.
4840         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4841
4842 2014-06-02  Doug Evans  <xdje42@gmail.com>
4843
4844         Add command support for Guile.
4845         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4846         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4847         (scm-cmd.o): New rule.
4848         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4849         (gdbscm_user_error_p): Declare.
4850         (gdbscm_parse_command_name): Declare.
4851         (gdbscm_valid_command_class_p): Declare.
4852         (gdbscm_initialize_commands): Declare.
4853         * guile/guile.c (initialize_gdb_module): Call
4854         gdbscm_initialize_commands.
4855         * guile/lib/gdb.scm: Export command symbols.
4856         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4857         (throw-user-error): New function.
4858         * guile/scm-cmd.c: New file.
4859         * guile/scm-exception.c (user_error_symbol): New static global.
4860         (gdbscm_user_error_p): New function.
4861         (gdbscm_initialize_exceptions): Set user_error_symbol.
4862         * scm-utils.c (gdbscm_gc_xstrdup): New function.
4863
4864 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
4865
4866         * top.c (command_loop): Handle comments here...
4867         (command_line_input): ... not here.
4868
4869 2014-06-02  Doug Evans  <xdje42@gmail.com>
4870
4871         Add progspace support for Guile.
4872         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4873         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4874         (scm-progspace.o): New rule.
4875         * guile/guile-internal.h (pspace_smob): New typedef.
4876         (psscm_pspace_smob_pretty_printers): Declare.
4877         (psscm_pspace_smob_from_pspace): Declare.
4878         (psscm_scm_from_pspace): Declare.
4879         * guile/guile.c (initialize_gdb_module): Call
4880         gdbscm_initialize_pspaces.
4881         * guile/lib/gdb.scm: Export progspace symbols.
4882         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4883         support.
4884         (append-pretty-printer!): Ditto.
4885         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4886         Implement.
4887         * guile/scm-progspace.c: New file.
4888
4889 2014-06-03  Alan Modra  <amodra@gmail.com>
4890
4891         * ppc64-tdep.c (ppc64_standard_linkage8): New.
4892         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4893
4894 2014-06-02  Doug Evans  <dje@google.com>
4895
4896         Add support for skeletonless type units.
4897         * dwarf2read.c (struct dwarf2_per_objfile): New member
4898         n_allocated_type_units.
4899         (struct dwarf2_per_objfile) <tu_stats>: New member
4900         nr_all_type_units_reallocs.
4901         (create_signatured_type_table_from_index): Initialize
4902         n_allocated_type_units
4903         (create_all_type_units): Ditto.
4904         (add_type_unit): Move up in file.  New arg slot.
4905         All callers updated.  Increase space for all_type_units more
4906         efficiently.
4907         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4908         (lookup_dwo_signatured_type): Handle skeletonless TUs.
4909         (lookup_dwp_signatured_type): Ditto.
4910         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4911         All callers updated.
4912         (build_type_psymtabs_1): Leave type_unit_groups as
4913         NULL if no TUs present.
4914         (print_tu_stats): New function.
4915         (process_skeletonless_type_unit): New function.
4916         (process_dwo_file_for_skeletonless_type_units): New
4917         function.
4918         (process_skeletonless_type_units): New function.
4919         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4920         Call print tu_stats if debugging enabled.
4921
4922 2014-06-02  Pedro Alves  <palves@redhat.com>
4923
4924         * breakpoint.c (build_target_command_list): Don't build a command
4925         list if we have any duplicate location that isn't a dprintf.
4926
4927 2014-06-02  Pedro Alves  <palves@redhat.com>
4928
4929         * breakpoint.c (dprintf_breakpoint_hit): New function.
4930         (initialize_breakpoint_ops): Install it as dprintf's
4931         breakpoint_hit method.
4932
4933 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4934
4935         * source.c (substitute_path_rule_matches): Simplify using
4936         filename_ncmp instead of FILENAME_CMP.
4937
4938 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4939
4940         * source.c (substitute_path_rule_matches): Remove trailing spaces.
4941
4942 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
4943
4944         * configure.ac: When Guile is available, check for the
4945         availability of 'scm_new_smob'.
4946         * configure, config.h.in: Regenerate.
4947         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4948         function.
4949
4950 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4951
4952         * frame.c (struct frame_info): Add stop_string field.
4953         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4954         (get_prev_frame_always): Old content moved into
4955         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
4956         TRY_CATCH, handle MEMORY_ERROR exceptions.
4957         (frame_stop_reason_string): New function definition.
4958         * frame.h (unwind_stop_reason_to_string): Extend comment to
4959         mention frame_stop_reason_string.
4960         (frame_stop_reason_string): New function declaration.
4961         * stack.c (frame_info): Switch to frame_stop_reason_string.
4962         (backtrace_command_1): Switch to frame_stop_reason_string.
4963         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4964         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4965         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4966
4967 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4968
4969         * frame.c (frame_stop_reason_string): Rename to ...
4970         (unwind_stop_reason_to_string): this.
4971         * frame.h (frame_stop_reason_string): Rename to ...
4972         (unwind_stop_reason_to_string): this.
4973         * stack.c (frame_info): Update call to frame_stop_reason_string.
4974         (backtrace_command_1): Likewise.
4975         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4976         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4977
4978 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4979
4980         * frame.c (remove_prev_frame): New function.
4981         (get_prev_frame_if_no_cycle): Create / discard cleanup using
4982         remove_prev_frame.
4983
4984 2014-05-29  Pedro Alves  <palves@redhat.com>
4985
4986         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4987         and make it const.  When a single-step decays to a continue,
4988         clear 'step', not 'hw_step'.  Pass whether the caller wanted
4989         to step to user_visible_resume_ptid, not what we ask the
4990         target to do.
4991
4992 2014-05-29  Pedro Alves  <palves@redhat.com>
4993
4994         * infrun.c (process_event_stop_test, handle_step_into_function)
4995         (handle_step_into_function_backward): Adjust.
4996         Don't set the even thread's stop_step and call stop_waiting before
4997         calling end_stepping_range.  Instead do that ...
4998         (end_stepping_range): ... here.  Take an ecs pointer parameter.
4999
5000 2014-05-29  Pedro Alves  <palves@redhat.com>
5001
5002         * infrun.c (stop_stepping): Rename to ...
5003         (stop_waiting): ... this.
5004         (proceed): Update comment.
5005         (process_event_stop_test, handle_inferior_event)
5006         (handle_signal_stop, handle_step_into_function)
5007         (handle_step_into_function_backward): Update.
5008
5009 2014-05-29  Pedro Alves  <palves@redhat.com>
5010
5011         * infcall.c (run_inferior_call): Don't check whether the current
5012         thread is running after the proceed call.
5013
5014 2014-05-29  Pedro Alves  <palves@redhat.com>
5015             Tom Tromey  <tromey@redhat.com>
5016
5017         * NEWS: Mention "maint set target-async", "set mi-async", and that
5018         background execution commands are now always available.
5019         * target.h (target_async_permitted): Update comment.
5020         * target.c (target_async_permitted, target_async_permitted_1):
5021         Default to 1.
5022         (set_target_async_command): Rename to ...
5023         (maint_set_target_async_command): ... this.
5024         (show_target_async_command): Rename to ...
5025         (maint_show_target_async_command): ... this.
5026         (_initialize_target): Adjust.
5027         * infcmd.c (prepare_execution_command): Make extern.
5028         * inferior.h (prepare_execution_command): Declare.
5029         * infrun.c (set_observer_mode): Leave target async alone.
5030         * mi/mi-interp.c (mi_interpreter_init): Install
5031         mi_on_sync_execution_done as sync_execution_done observer.
5032         (mi_on_sync_execution_done): New function.
5033         (mi_execute_command_input_handler): Don't print the prompt if we
5034         just started a synchronous command with an async target.
5035         (mi_on_resume): Check sync_execution before printing prompt.
5036         * mi/mi-main.h (mi_async_p): Declare.
5037         * mi/mi-main.c: Include gdbcmd.h.
5038         (mi_async_p): New function.
5039         (mi_async, mi_async_1): New globals.
5040         (set_mi_async_command, show_mi_async_command, mi_async): New
5041         functions.
5042         (exec_continue): Call prepare_execution_command.
5043         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5044         (mi_execute_async_cli_command): Use mi_async_p.
5045         (_initialize_mi_main): Install "set mi-async".  Make
5046         "target-async" a deprecated alias.
5047
5048 2014-05-29  Pedro Alves  <palves@redhat.com>
5049
5050         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5051         (_initialize_cli_interp): Adjust.
5052         * event-loop.c: Include "observer.h".
5053         (start_event_loop): Notify 'command_error' observers instead of
5054         calling display_gdb_prompt.  Remove FIXME comment.
5055         * event-top.c (display_gdb_prompt): Remove call into the
5056         interpreters.
5057         * inf-loop.c: Include "observer.h".
5058         (inferior_event_handler): Notify 'command_error' observers instead
5059         of calling display_gdb_prompt.
5060         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5061         observers instead of calling display_gdb_prompt.
5062         * interps.c (interp_set): Don't call display_gdb_prompt.
5063         (current_interp_display_prompt_p): Delete.
5064         * interps.h (interp_prompt_p): Delete declaration.
5065         (interp_prompt_p_ftype): Delete.
5066         (struct interp_procs) <prompt_proc_p>: Delete field.
5067         (current_interp_display_prompt_p): Delete declaration.
5068         * mi-interp.c (mi_interpreter_prompt_p): Delete.
5069         (_initialize_mi_interp): Adjust.
5070         * tui-interp.c (tui_init): Install 'sync_execution_done' and
5071         'command_error' observers.
5072         (tui_on_sync_execution_done, tui_on_command_error): New
5073         functions.
5074         (tui_display_prompt_p): Delete.
5075         (_initialize_tui_interp): Adjust.
5076
5077 2014-05-29  Pedro Alves  <palves@redhat.com>
5078
5079         PR gdb/13860
5080         * cli/cli-interp.c: Include infrun.h and observer.h.
5081         (cli_uiout, cli_interp): New globals.
5082         (cli_on_signal_received, cli_on_end_stepping_range)
5083         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5084         functions.
5085         (cli_interpreter_init): Install them as 'end_stepping_range',
5086         'signal_received' 'signal_exited', 'exited' and 'no_history'
5087         observers.
5088         (_initialize_cli_interp): Remove cli_interp local.
5089         * infrun.c (handle_inferior_event): Call the several stop reason
5090         observers instead of printing the stop reason directly.
5091         (end_stepping_range): New function.
5092         (print_end_stepping_range_reason, print_signal_exited_reason)
5093         (print_exited_reason, print_signal_received_reason)
5094         (print_no_history_reason): Make static, and add an uiout
5095         parameter.  Print to that instead of to CURRENT_UIOUT.
5096         * infrun.h (print_end_stepping_range_reason)
5097         (print_signal_exited_reason, print_exited_reason)
5098         (print_signal_received_reason print_no_history_reason): New
5099         declarations.
5100         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5101         'mi_uiout'.
5102         <cli_uiout>: New field.
5103         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5104         uiout for CLI output.  Install 'signal_received',
5105         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5106         observers.
5107         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5108         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5109         (mi_on_no_history): New functions.
5110         (ui_out_free_cleanup): Delete function.
5111         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5112         instead use the one already stored in the MI interpreter data.
5113         (mi_ui_out): Adjust.
5114         * tui/tui-interp.c: Include infrun.h and observer.h.
5115         (tui_interp): New global.
5116         (tui_on_signal_received, tui_on_end_stepping_range)
5117         (tui_on_signal_exited, tui_on_exited)
5118         (tui_on_no_history): New functions.
5119         (tui_init): Install them as 'end_stepping_range',
5120         'signal_received' 'signal_exited', 'exited' and 'no_history'
5121         observers.
5122         (_initialize_tui_interp): Delete tui_interp local.
5123
5124 2014-05-29  Pedro Alves  <palves@redhat.com>
5125
5126         PR gdb/15713
5127         * linux-nat.c (linux_nat_resume_callback): Rename the second
5128         parameter to 'except'.  Skip LP if it points to EXCEPT.
5129         (linux_nat_resume): Don't mark the event lwp as not stopped
5130         before resuming sibling lwps.  Instead ask
5131         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5132         stopped after actually resuming it.
5133         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5134         resuming it.
5135         (wait_lwp): Mark the lwp as stopped here.
5136         (stop_wait_callback): Mark the lwp as not stopped right after
5137         resuming it.  Don't mark lwps as stopped here.
5138         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5139         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5140
5141 2014-05-29  Pedro Alves  <palves@redhat.com>
5142
5143         PR PR15693
5144         * infrun.c (resume): Determine how much to resume depending on
5145         whether the caller wanted a step, not whether we can hardware step
5146         the target.  Mark all threads that we intend to run as running,
5147         unless we're calling an inferior function.
5148         (normal_stop): If the thread is running an infcall, don't finish
5149         thread state.
5150         * target.c (target_resume): Don't mark threads as running here.
5151
5152 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5153
5154         * serial.c (_initialize_serial): Remove support for
5155         the "set remotebaud" and "show remotebaud" commands.
5156         * NEWS: Add entry documenting the removal of that command.
5157
5158 2014-05-28  Yao Qi  <yao@codesourcery.com>
5159
5160         * charset.c: Fix typo in comments.
5161
5162 2014-05-27  Gary Benson  <gbenson@redhat.com>
5163
5164         * utils.c (internal_vproblem): Prompt for a bug report.
5165
5166 2014-05-26  Andy Wingo  <wingo@igalia.com>
5167
5168         * guile/scm-arch.c (arscm_mark_arch_smob):
5169         * guile/scm-block.c (bkscm_mark_block_smob)
5170         (bkscm_mark_block_syms_progress_smob):
5171         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5172         * guile/scm-exception.c (exscm_mark_exception_smob):
5173         * guile/scm-frame.c (frscm_mark_frame_smob):
5174         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5175         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5176         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5177         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5178         (ppscm_mark_pretty_printer_worker_smob):
5179         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5180         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5181         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5182         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5183         mark functions.
5184         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5185         function.
5186
5187 2014-05-26  Andy Wingo  <wingo@igalia.com>
5188             Doug Evans  <xdje42@gmail.com>
5189
5190         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5191         empty_base_class.  All uses updated.
5192         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5193         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5194         Adapt all callers.
5195         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5196         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5197         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5198         (gdbscm_gsmob_has_property_p, add_property_name)
5199         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5200         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5201         (gdb-object-has-property?, gdb-object-properties): Remove.
5202         (gdb-object-kind): Renamed from gsmob-kind.
5203
5204 2014-05-26  Andy Wingo  <wingo@igalia.com>
5205
5206         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5207         * configure: Regenerate.
5208
5209 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5210
5211         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5212
5213 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5214
5215         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5216         (replay_memory_access_read_only, replay_memory_access_read_write)
5217         (replay_memory_access_types, replay_memory_access)
5218         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5219         (cmd_set_record_btrace, cmd_show_record_btrace)
5220         (cmd_show_replay_memory_access): New.
5221         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5222         (record_btrace_remove_breakpoint): Replace
5223         record_btrace_allow_memory_access with replay_memory_access.
5224         (_initialize_record_btrace): Add commands.
5225         * NEWS: Announce it.
5226
5227 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5228
5229         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5230
5231 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5232
5233         * MAINTAINERS (Write After Approval): Move self back from
5234         paper trail.
5235
5236 2014-05-22  Pedro Alves  <palves@redhat.com>
5237
5238         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5239         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5240         (disable_randomization, enum exec_direction_kind)
5241         (execution_direction, stop_registers, start_remote)
5242         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5243         (wait_for_inferior, normal_stop, get_last_target_status)
5244         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5245         (insert_step_resume_breakpoint_at_sal)
5246         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5247         (set_step_info, print_stop_event, signal_stop_state)
5248         (signal_print_state, signal_pass_state, signal_stop_update)
5249         (signal_print_update, signal_pass_update)
5250         (update_signals_program_target, clear_exit_convenience_vars)
5251         (displaced_step_dump_bytes, update_observer_mode)
5252         (signal_catch_update, gdb_signal_from_command): Move
5253         declarations ...
5254         * infrun.h: ... to this new file.
5255         * amd64-tdep.c: Include infrun.h.
5256         * annotate.c: Include infrun.h.
5257         * arch-utils.c: Include infrun.h.
5258         * arm-linux-tdep.c: Include infrun.h.
5259         * arm-tdep.c: Include infrun.h.
5260         * break-catch-sig.c: Include infrun.h.
5261         * breakpoint.c: Include infrun.h.
5262         * common/agent.c: Include infrun.h instead of inferior.h.
5263         * corelow.c: Include infrun.h.
5264         * event-top.c: Include infrun.h.
5265         * go32-nat.c: Include infrun.h.
5266         * i386-tdep.c: Include infrun.h.
5267         * inf-loop.c: Include infrun.h.
5268         * infcall.c: Include infrun.h.
5269         * infcmd.c: Include infrun.h.
5270         * infrun.c: Include infrun.h.
5271         * linux-fork.c: Include infrun.h.
5272         * linux-nat.c: Include infrun.h.
5273         * linux-thread-db.c: Include infrun.h.
5274         * monitor.c: Include infrun.h.
5275         * nto-tdep.c: Include infrun.h.
5276         * procfs.c: Include infrun.h.
5277         * record-btrace.c: Include infrun.h.
5278         * record-full.c: Include infrun.h.
5279         * remote-m32r-sdi.c: Include infrun.h.
5280         * remote-mips.c: Include infrun.h.
5281         * remote-notif.c: Include infrun.h.
5282         * remote-sim.c: Include infrun.h.
5283         * remote.c: Include infrun.h.
5284         * reverse.c: Include infrun.h.
5285         * rs6000-tdep.c: Include infrun.h.
5286         * s390-linux-tdep.c: Include infrun.h.
5287         * solib-irix.c: Include infrun.h.
5288         * solib-osf.c: Include infrun.h.
5289         * solib-svr4.c: Include infrun.h.
5290         * target.c: Include infrun.h.
5291         * top.c: Include infrun.h.
5292         * windows-nat.c: Include infrun.h.
5293         * mi/mi-interp.c: Include infrun.h.
5294         * mi/mi-main.c: Include infrun.h.
5295         * python/py-threadevent.c: Include infrun.h.
5296
5297 2014-05-22  Pedro Alves  <palves@redhat.com>
5298
5299         * infrun.c (handle_inferior_event): Store the exit code for
5300         --return-child-result here, instead of ...
5301         (print_exited_reason): ... here.
5302
5303 2014-05-21  Pedro Alves  <palves@redhat.com>
5304
5305         PR gdb/13860
5306         * gdbthread.h (struct thread_control_state): New field
5307         `command_interp'.
5308         * infrun.c (follow_fork): Copy the new thread control field to the
5309         child fork thread.
5310         (clear_proceed_status_thread): Clear the new thread control field.
5311         (proceed): Set the new thread control field.
5312         * interps.h (command_interp): Declare.
5313         * interps.c (command_interpreter): New global.
5314         (command_interp): New function.
5315         (interp_exec): Set `command_interpreter' while here.
5316         * cli-out.c (cli_uiout_dtor): New function.
5317         (cli_ui_out_impl): Install it.
5318         * mi/mi-interp.c: Include cli-out.h.
5319         (mi_cmd_interpreter_exec): Add comment.
5320         (restore_current_uiout_cleanup): New function.
5321         (ui_out_free_cleanup): New function.
5322         (mi_on_normal_stop): If finishing an execution command started by
5323         a CLI command, or any kind of breakpoint-like event triggered,
5324         print the stop event to the output (CLI) stream.
5325         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5326
5327 2014-05-21  Pedro Alves  <palves@redhat.com>
5328
5329         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5330         current source line having changed.
5331         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5332         * infrun.c (normal_stop): Adjust call to
5333         set_current_sal_from_frame.
5334         * source.c (clear_lines_listed_range): New function.
5335         (set_current_source_symtab_and_line, identify_source_line): Clear
5336         the lines listed range.
5337         (line_info): Handle the first "info line" after the current source
5338         line having changed.
5339         * stack.c (print_stack_frame): Remove center handling.
5340         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5341         center sal.line.
5342
5343 2014-05-21  Pedro Alves  <palves@redhat.com>
5344
5345         * inf-child.c (inf_child_mourn_inferior): New function.
5346         * inf-child.h (inf_child_mourn_inferior): New declaration.
5347         * darwin-nat.c (darwin_mourn_inferior): Use
5348         inf_child_mourn_inferior.
5349         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5350         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5351         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5352         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5353         * windows-nat.c (windows_mourn_inferior): Likewise.
5354
5355 2014-05-21  Doug Evans  <xdje42@gmail.com>
5356
5357         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5358
5359 2014-05-21  Doug Evans  <xdje42@gmail.com>
5360
5361         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5362         (gdbscm_out_of_range_error): Ditto.
5363         (gdbscm_memory_error): Ditto.
5364         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5365         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5366         (gdbscm_out_of_range_error): Update.
5367         (gdbscm_memory_error): Update.
5368         (gdbscm_scm_to_target_string_unsafe): Delete.
5369
5370 2014-05-21  Pedro Alves  <palves@redhat.com>
5371
5372         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5373         globals.
5374         (inf_child_open_target): New function.
5375         (inf_child_open): Use inf_child_open_target to push the target
5376         instead of erroring out.
5377         (inf_child_disconnect, inf_child_close)
5378         (inf_child_maybe_unpush_target): New functions.
5379         (inf_child_target): Install inf_child_disconnect and
5380         inf_child_close.  Store a pointer to the returned object.
5381         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5382         declarations.
5383         * target.c (auto_connect_native_target): New global.
5384         (show_default_run_target): New function.
5385         (find_default_run_target): Return NULL if automatically connecting
5386         to the native target is disabled.
5387         (_initialize_target): Install set/show auto-connect-native-target.
5388         * NEWS: Mention "set auto-connect-native-target", and "target
5389         native".
5390         * linux-nat.c (super_close): New global.
5391         (linux_nat_close): Call super_close.
5392         (linux_nat_add_target): Store a pointer to the base class's
5393         to_close method.
5394         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5395         inf_child_maybe_unpush.
5396         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5397         already pushed.
5398         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5399         the inferior.  Use inf_child_maybe_unpush_target.
5400         (inf_ttrace_attach): Don't push the target if it is already
5401         pushed.
5402         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5403         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5404         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5405         (darwin_attach_pid): Don't push the target if it is already
5406         pushed.
5407         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5408         mourning the inferior.  Use inf_child_maybe_unpush_target.
5409         (gnu_detach): Use inf_child_maybe_unpush_target.
5410         * go32-nat.c (go32_create_inferior): Don't push the target if it
5411         is already pushed.
5412         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5413         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5414         (procfs_open): Rename to ...
5415         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5416         comments.  Can target_preopen before changing node.  Call
5417         inf_child_open_target to push the target explicitly.
5418         (procfs_attach): Don't push the target if it is already pushed.
5419         (procfs_detach): Use inf_child_maybe_unpush_target.
5420         (procfs_create_inferior): Don't push the target if it is already
5421         pushed.
5422         (nto_native_ops): New global.
5423         (procfs_open): Reimplement.
5424         (procfs_native_open): New function.
5425         (init_procfs_targets): Install procfs_native_open as to_open of
5426         "target native".  Store a pointer to the "native" target in
5427         nto_native_ops.
5428         * procfs.c (procfs_attach): Don't push the target if it is already
5429         pushed.
5430         (procfs_detach): Use inf_child_maybe_unpush_target.
5431         (procfs_mourn_inferior): Only unpush the target after mourning the
5432         inferior.  Use inf_child_maybe_unpush_target.
5433         (procfs_init_inferior): Don't push the target if it is already
5434         pushed.
5435         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5436         if it is already pushed.
5437
5438 2014-05-21  Pedro Alves  <palves@redhat.com>
5439
5440         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5441         and "procfs" targets are now called "native" instead.
5442
5443 2014-05-21  Pedro Alves  <palves@redhat.com>
5444
5445         * go32-nat.c (go32_open): Delete.
5446         (go32_target): Don't override the to_open method.
5447
5448 2014-05-21  Pedro Alves  <palves@redhat.com>
5449
5450         * nto-procfs.c (procfs_can_run): New function.
5451         (nto_procfs_ops): New global.
5452         (init_procfs_targets): New, based on procfs_target.  Install
5453         "target native" in addition to "target procfs".
5454         (_initialize_procfs): Call init_procfs_targets instead of adding
5455         the target here.
5456
5457 2014-05-21  Pedro Alves  <palves@redhat.com>
5458
5459         * windows-nat.c (windows_target): Don't override to_shortname,
5460         to_longname or to_doc.
5461
5462 2014-05-21  Pedro Alves  <palves@redhat.com>
5463
5464         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5465         to_doc.
5466
5467 2014-05-21  Pedro Alves  <palves@redhat.com>
5468
5469         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5470         to_shortname, to_longname or to_doc.
5471
5472 2014-05-21  Pedro Alves  <palves@redhat.com>
5473
5474         * go32-nat.c (go32_target): Don't override to_shortname,
5475         to_longname or to_doc.
5476
5477 2014-05-21  Pedro Alves  <palves@redhat.com>
5478
5479         * inf-child.c (inf_child_open): Remove mention of "child".
5480         (inf_child_target): Rename target to "native" instead of "child".
5481
5482 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5483
5484         * Makefile.in (SFILES): Delete "regset.c".
5485         (COMMON_OBS): Delete "regset.o".
5486         * regset.c: Remove.
5487         * regset.h (regset_alloc): Delete prototype.
5488
5489 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5490
5491         * sparc-linux-tdep.c (sparc32_linux_gregset)
5492         (sparc32_linux_fpregset): New static regset structures.
5493         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5494         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5495         'fpregset' fields.
5496         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5497         (sparc64_linux_fpregset): New static regset structures.
5498         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5499         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5500         New static regset structures.
5501         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5502         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5503         New static regset structures.
5504         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5505         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5506         New static regset structures.
5507         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5508         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5509         New static regset structures.
5510         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5511
5512 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5513
5514         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5515         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5516         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5517         for all regmap types and variables.
5518         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5519         (sparc32_linux_supply_core_gregset)
5520         (sparc32_linux_collect_core_gregset)
5521         (sparc32_linux_supply_core_fpregset)
5522         (sparc32_linux_collect_core_fpregset): Likewise.
5523         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5524         (sparc_gregmap, sparc_fpregmap): ... these.
5525         (sparc_supply_gregset, sparc_collect_gregset)
5526         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5527         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5528         (_initialize_sparc_nat): Rename regmaps.
5529         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5530         (sparc_gregmap, sparc_fpregmap): ... these.
5531         (sparc_supply_gregset, sparc_collect_gregset)
5532         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5533         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5534         Rename macros to...
5535         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5536         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5537         Likewise.
5538         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5539         Rename to...
5540         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5541         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5542         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5543         regmaps.
5544         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5545         (sparc32_bsd_fpregset): Rename to...
5546         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5547         (sparc32_bsd_fpregmap): ... these.
5548         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5549         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5550         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5551         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5552         (struct sparc_gregmap, struct sparc_fpregmap)
5553         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5554         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5555         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5556         (sparc32_supply_regset, sparc32_collect_gregset)
5557         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5558         prototypes.
5559         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5560         (sparc64_linux_ptrace_gregmap): ... this.
5561         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5562         (_initialize_sparc64_linux_nat): Rename regmaps.
5563         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5564         (sparc64_linux_core_gregmap): ... this.
5565         (sparc64_linux_supply_core_gregset)
5566         (sparc64_linux_collect_core_gregset)
5567         (sparc64_linux_supply_core_fpregset)
5568         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5569         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5570         (sparc64_sol2_fpregset): Rename to...
5571         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5572         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5573         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5574         regmaps.
5575         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5576         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5577         (sparc64_bsd_fpregset): Rename to...
5578         (struct sparc_gregmap, sparc64_sol2_gregmap)
5579         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5580         (sparc64_bsd_fpregmap): ... these.
5581         (sparc64_supply_gregset, sparc64_collect_gregset)
5582         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5583         prototypes.
5584         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5585         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5586         (sparc64fbsd_gregmap): ... this.
5587         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5588         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5589         Rename regmaps.
5590         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5591         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5592         (sparc64nbsd_collect_fpregset): Likewise.
5593         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5594         (sparc64nbsd_gregmap): ... this.
5595         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5596         regmaps.
5597         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5598         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5599         (sparc64obsd_gregmap): ... this.
5600         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5601         regmaps.
5602         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5603         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5604         (sparc32nbsd_gregmap): ... this.
5605         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5606         regmaps.
5607
5608 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5609
5610         * score-tdep.c (score7_linux_gregset): New static regset
5611         structure.
5612         (score7_linux_regset_from_core_section): Remove dynamic regset
5613         allocation.
5614         (score_gdbarch_init): Drop allocation of tdep structure.
5615         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5616
5617 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5618
5619         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5620         regset structures.
5621         (am33_regset_from_core_section): Remove dynamic regset
5622         allocations.
5623
5624 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5625
5626         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5627         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5628         structures.
5629         (mips_linux_regset_from_core_section): Remove dynamic regset
5630         allocations.
5631         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5632         'gregset64', 'fpregset', and 'fpregset64'.
5633         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5634         deleted tdep fields.
5635
5636 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5637
5638         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5639         regset structures.
5640         (amd64_regset_from_core_section): Remove dynamic regset
5641         allocations.
5642         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5643         structure.
5644         (amd64obsd_regset_from_core_section): Remove dynamic regset
5645         allocation.
5646         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5647         Likewise.
5648         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5649         x86-common regset supply function.
5650         * i386-tdep.c (i386_collect_gregset): Make static.
5651         (i386_gregset): New global regset structure.
5652         (i386_fpregset, i386_xstateregset): New static regset structures.
5653         (i386_regset_from_core_section): Remove dynamic regset
5654         allocations.
5655         (i386_gdbarch_init): Remove initialization of tdep fields
5656         'gregset', 'fpregset', and 'xstateregset'.
5657         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5658         'fpregset', and 'xstateregset'.
5659         (i386_collect_gregset): Remove prototype.
5660         (i386_gregset): New declaration.
5661         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5662         structure.
5663         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5664         allocation.
5665
5666 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5667
5668         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5669         (arm_linux_vfpregset): New static regset structures.
5670         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5671         regset structures.
5672         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5673         and 'vfpregset' fields.
5674
5675 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5676
5677         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5678         (aarch64_linux_fpregset): New static regset structures.
5679         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5680         of regset structures.
5681         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5682         'fpregset' fields.
5683
5684 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5685
5686         * regset.h (struct regset): Remove gdbarch field.
5687         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5688         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5689         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5690         Likewise.
5691         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5692         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5693         (ppc32_linux_vsxregset): Likewise.
5694         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5695         via the regcache instead of the regset.
5696         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5697         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5698         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5699         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5700         Likewise.
5701
5702 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5703
5704         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5705         Constify structures.
5706         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5707         (alphanbsd_aout_gregset): Likewise.
5708         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5709         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5710         Likewise.
5711         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5712         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5713         Likewise.
5714         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5715         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5716         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5717         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5718         * m88k-tdep.c (m88k_gregset): Likewise.
5719         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5720         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5721         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5722         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5723         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5724         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5725         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5726         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5727         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5728         Likewise.
5729         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5730         * sh-tdep.h (sh_corefile_gregset): Likewise.
5731         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5732         * vax-tdep.c (vax_gregset): Likewise.
5733
5734 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5735
5736         Fix TLS access for -static -pthread.
5737         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5738         (try_thread_db_load_1): Initialize it.
5739         (thread_db_get_thread_local_address): Call it if LM is zero.
5740         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5741         * target.h (struct target_ops) (to_get_thread_local_address): Add
5742         load_module_addr comment.
5743
5744 2014-05-21  Pedro Alves  <palves@redhat.com>
5745
5746         * dcache.c (dcache_read_memory_partial): If reading the cache line
5747         fails, fallback to reading just the memory the caller wanted.
5748
5749 2014-05-20  Doug Evans  <dje@google.com>
5750
5751         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5752         instead of get_current_arch.
5753
5754 2014-05-20  Pedro Alves  <palves@redhat.com>
5755
5756         * NEWS: Mention that compare-sections now works with all targets.
5757
5758         * remote.c (PACKET_qCRC): New enum value.
5759         (remote_verify_memory): Don't send qCRC if the target has no
5760         execution.  Use packet_support/packet_ok.  If the target doesn't
5761         support the qCRC packet, fallback to a deep memory copy.
5762         (compare_sections_command): Say "target image" instead of "remote
5763         executable".
5764         (_initialize_remote): Add PACKET_qCRC to the list of config
5765         packets that have no associated command.  Extend comment.
5766         * target.c (simple_verify_memory, default_verify_memory): New
5767         function.
5768         * target.h (struct target_ops) <to_verify_memory>: Default to
5769         default_verify_memory.
5770         (simple_verify_memory): New declaration.
5771         * target-delegates.c: Regenerate.
5772
5773 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5774
5775         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5776
5777 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5778             Yao Qi  <yao@codesourcery.com>
5779
5780         PR backtrace/16558
5781         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5782         and change address of sp and pc.
5783
5784 2014-05-19  Tom Tromey  <tromey@redhat.com>
5785
5786         * gdbtypes.c (rank_function): Use XNEWVEC.
5787         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5788
5789 2014-05-19  Doug Evans  <dje@google.com>
5790
5791         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5792         build_type_unit_groups and moved closer to only caller.  Remove
5793         arguments.  All references updated.  Remove outdated .gdb_index
5794         comment.
5795         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5796         build_type_psymtabs_1.
5797
5798 2014-05-19  Doug Evans  <dje@google.com>
5799
5800         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5801         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5802         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5803         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5804         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5805         (add_type_unit_group_to_table): Delete.
5806
5807 2014-05-19  Doug Evans  <dje@google.com>
5808
5809         * eval.c (evaluate_subexp_standard): Add some comments.
5810
5811 2014-05-17  Doug Evans  <xdje42@gmail.com>
5812
5813         * progspace.c (remove_program_space): Delete, unused.
5814         * progspace.h (remove_program_space): Ditto.
5815
5816 2014-05-17  Doug Evans  <xdje42@gmail.com>
5817
5818         * inferior.c (prune_inferiors): Fix comment.
5819         (remove_inferior_command): Call prune_program_spaces.
5820
5821 2014-05-16  Doug Evans  <dje@google.com>
5822
5823         New command line option -D.
5824         * NEWS: Mention it.
5825         * main.c (set_gdb_data_directory): New function.
5826         (captured_main): Recognize -D.  Flag error for --data-directory "".
5827         Call set_gdb_data_directory.
5828         (print_gdb_help): Print --data-directory, -D.
5829         * main.h (set_gdb_data_directory): Declare.
5830         * top.c (staged_gdb_datadir): New static global.
5831         (set_gdb_datadir): Call set_gdb_data_directory
5832         (show_gdb_datadir): New function.
5833         (init_main): Update init of data-directory parameter.
5834
5835 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5836
5837         Import the "dirfd" gnulib module.
5838         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5839         * gnulib/aclocal.m4: Update.
5840         * gnulib/config.in: Update.
5841         * gnulib/configure: Update.
5842         * gnulib/import/Makefile.am: Update.
5843         * gnulib/import/Makefile.in: Update.
5844         * gnulib/import/dirfd.c: New.
5845         * gnulib/import/m4/dirfd.m4: New.
5846         * gnulib/import/m4/gnulib-cache.m4: Update.
5847         * gnulib/import/m4/gnulib-comp.m4: Update.
5848
5849 2014-05-16  Pierre Muller  <muller@sourceware.org>
5850             Yao Qi  <yao@codesourcery.com>
5851
5852         * valprint.c (print_wchar): Move the code on checking whether
5853         W is a printable wide char to the default branch of switch
5854         statement below.  Call wchar_printable instead of gdb_iswprint.
5855
5856 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
5857
5858         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5859         ldr.w and ldrd instructions.
5860
5861 2014-05-15  Doug Evans  <dje@google.com>
5862
5863         * dwarf2read.c (read_structure_type): Delete outdated comments.
5864
5865 2014-05-14  Tom Tromey  <tromey@redhat.com>
5866
5867         * macrocmd.c (print_macro_definition): Reindent.
5868
5869 2014-05-13  Doug Evans  <xdje42@gmail.com>
5870
5871         * python/py-cmd.c (cmdpy_completer): Add comment.
5872         (completers): Make const.
5873
5874 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
5875
5876         * infrun.c (resume): Remove should_resume (unused).  Move up
5877         declaration of resume_ptid.
5878
5879 2014-05-13  Tom Tromey  <tromey@redhat.com>
5880
5881         * language.h (unop_type_check): Remove.
5882         (binop_type_check): Don't declare.
5883
5884 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
5885
5886         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5887         call to regcache_raw_collect.
5888
5889 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5890
5891         * mi/mi-console.c (mi_console_raw_packet): Use the value from
5892         mi_console->quote as the quoting character.
5893
5894 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5895
5896         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5897
5898 2014-04-29  Tom Tromey  <tromey@redhat.com>
5899
5900         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5901         "show debug varobj".
5902
5903 2014-05-07  Kyle McMartin  <kyle@redhat.com>
5904
5905         Pushed by Joel Brobecker  <brobecker@adacore.com>.
5906         * aarch64-tdep.c (aarch64_software_single_step): New function.
5907         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5908         with aarch64_software_single_step.
5909
5910 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
5911
5912         GDB 7.7.1 released.
5913
5914 2014-05-05  Keith Seitz  <keiths@redhat.com>
5915
5916         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5917         variable or history value is successfully parsed.
5918
5919 2014-05-05  Yao Qi  <yao@codesourcery.com>
5920             Pedro Alves  <palves@redhat.com>
5921
5922         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5923         address of blocks that intersects the requested range.  Trim
5924         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5925         sections.
5926         * ctf.c (ctf_xfer_partial): Likewise.
5927
5928 2014-05-05  Yao Qi  <yao@codesourcery.com>
5929
5930         * printcmd.c (display_command): Remove the check to
5931         target_has_execution.
5932
5933 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
5934
5935         * ppcobsd-nat.c: Include "obsd-nat.h".
5936         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5937         add_target.
5938         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5939
5940 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5941
5942         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5943         and 16-bit signed and unsigned arguments.  Update comment.
5944         (stap_parse_probe_arguments): Extend code to handle such
5945         arguments.  Use warning instead of complaint to notify about
5946         unrecognized bitness.
5947
5948 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5949
5950         PR breakpoints/16889
5951         * stap-probe.c (stap_parse_probe_arguments): Simplify
5952         check for non-prefixed probes (i.e., probes whose
5953         arguments do not start with "N@").  Always set the
5954         argument type to a sane value.
5955
5956 2014-05-01  David Taylor  <dtaylor@emc.com>
5957
5958         * remote.c (compare_sections_command): Add -r option to compare
5959         all loadable read-only sections.
5960
5961 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
5962
5963         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5964         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5965         Update all callers.
5966         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5967         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5968         Remove unused CORE_ADDR argument.  Update all callers.
5969
5970 2014-04-29  Pedro Alves  <palves@redhat.com>
5971
5972         * remote.c (struct packet_config) <detect>: Extend comment.
5973         (add_packet_config_cmd): Don't set the config's detect or support
5974         fields here.
5975         (init_all_packet_configs): Also initialize the config's 'detect'
5976         field.
5977         (reset_all_packet_configs_support): New function.
5978         (remote_open_1): Call reset_all_packet_configs_support instead of
5979         init_all_packet_configs.
5980         (_initialize_remote): Initialize all packet configs.  Assert that
5981         all packets have an associated command, except a few known
5982         outliers.
5983
5984 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5985
5986         * dwarf2read.c (read_subrange_type): Handle dynamic
5987         DW_AT_lower_bound attributes.
5988
5989 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5990
5991         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5992         dynamic bounds before computing its upper bound.
5993         (ada_discrete_type_low_bound): Same as above with the lower bound.
5994
5995 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5996
5997         * dwarf2read.c (is_dynamic_type): Return true for dynamic
5998         range types.  Adjust the array handling implementation to
5999         take advantage of this change.
6000         (resolve_dynamic_range): New function, mostly extracted from
6001         resolve_dynamic_bounds.
6002         (resolve_dynamic_array): New function, mostly extracted from
6003         resolve_dynamic_bounds.
6004         (resolve_dynamic_bounds): Delete.
6005         (resolve_dynamic_type): Reimplement.  Add handling of
6006         TYPE_CODE_RANGE types.
6007
6008 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6009
6010         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6011         handling of parallel ___XA types.
6012
6013 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6014
6015         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6016         unnecessary second call to static_unwrap_type.
6017
6018 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6019
6020         * stack.c (print_frame_info): Call do_gdb_disassembly with
6021         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6022
6023 2014-04-26  Doug Evans  <xdje42@gmail.com>
6024
6025         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6026
6027 2014-04-25  Pedro Alves  <palves@redhat.com>
6028
6029         PR server/16255
6030         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6031         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
6032         and newline from built string.
6033         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6034         (linux_ptrace_attach_fail_reason): ... this.
6035         * linux-nat.c (linux_nat_attach): Adjust to use
6036         linux_ptrace_attach_fail_reason.
6037
6038 2014-04-25  Pedro Alves  <palves@redhat.com>
6039
6040         * remote.c (struct remote_state): Remove multi_process_aware,
6041         non_stop_aware, cond_tracepoints, cond_breakpoints,
6042         breakpoint_commands, fast_tracepoints, static_tracepoints,
6043         install_in_trace, disconnected_tracing,
6044         enable_disable_tracepoints, string_tracing, and
6045         augmented_libraries_svr4_read fields.
6046         (remote_multi_process_p): Move further below in the file.
6047         (struct packet_config): Add comments.
6048         (update_packet_config): Delete function.
6049         (show_packet_config_cmd): Use packet_config_support.
6050         (add_packet_config_cmd): Use NULL as set callback.
6051         (packet_ok): "set remote foo-packet"-style commands no longer
6052         change config->supported -- adjust.
6053         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6054         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6055         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6056         (PACKET_QNonStop, PACKET_multiprocess_feature)
6057         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6058         (PACKET_DisconnectedTracing_feature)
6059         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6060         (set_remote_protocol_packet_cmd): Delete function.
6061         (packet_config_support, packet_support): New functions.
6062         (set_remote_protocol_Z_packet_cmd): Don't call
6063         update_packet_config.
6064         (remote_query_attached, remote_pass_signals)
6065         (remote_program_signals, remote_threads_info)
6066         (remote_threads_extra_info, remote_start_remote): Use
6067         packet_support.
6068         (remote_start_remote): Use packet_config_support and
6069         packet_support.
6070         (init_all_packet_configs): Set all packets to unknown support,
6071         instead of calling update_packet_config.
6072         (remote_check_symbols): Use packet_support.
6073         (remote_supported_packet): Unconditionally set the packet config's
6074         support status.
6075         (remote_multi_process_feature, remote_non_stop_feature)
6076         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6077         (remote_breakpoint_commands_feature)
6078         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6079         (remote_install_in_trace_feature)
6080         (remote_disconnected_tracing_feature)
6081         (remote_enable_disable_tracepoint_feature)
6082         (remote_string_tracing_feature)
6083         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6084         (remote_protocol_features): Adjust to use remote_supported_packet
6085         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6086         "ConditionalTracepoints", "ConditionalBreakpoints",
6087         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6088         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6089         "EnableDisableTracepoints", and "tracenz".
6090         (remote_query_supported): Use packet_support.
6091         (remote_open_1): Adjust.
6092         (extended_remote_attach_1): Use packet_support.  Switch on the
6093         result of packet_ok instead of checking whether the packet ended
6094         up disabled.
6095         (remote_vcont_resume): Use packet_support.
6096         (remote_resume, remote_stop_ns, fetch_register_using_p)
6097         (remote_prepare_to_store, store_register_using_P)
6098         (check_binary_download, remote_write_bytes): Use packet_support.
6099         (remote_vkill): Use packet_support.  Switch on the result of
6100         packet_ok instead of checking whether the packet ended up
6101         disabled.
6102         (extended_remote_supports_disable_randomization): Use
6103         packet_support.
6104         (extended_remote_run): Switch on the result of packet_ok instead
6105         of checking whether the packet ended up disabled.
6106         (remote_insert_breakpoint, remote_remove_breakpoint)
6107         (remote_insert_watchpoint, remote_remove_watchpoint)
6108         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6109         packet_support.
6110         (remote_search_memory): Use packet_config_support.
6111         (remote_get_thread_local_address, remote_get_tib_address)
6112         (remote_hostio_send_command, remote_can_execute_reverse): Use
6113         packet_support.
6114         (remote_supports_cond_tracepoints)
6115         (remote_supports_cond_breakpoints)
6116         (remote_supports_fast_tracepoints)
6117         (remote_supports_static_tracepoints)
6118         (remote_supports_install_in_trace)
6119         (remote_supports_enable_disable_tracepoint)
6120         (remote_supports_string_tracing)
6121         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6122         the packet config says the feature is enabled or disabled.
6123         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6124         (remote_get_trace_status): Use packet_support.
6125         (remote_set_disconnected_tracing): Adjust to check whether the
6126         feature is enabled with packet_support.
6127         (remote_set_trace_buffer_size, remote_use_agent)
6128         (remote_can_use_agent, remote_supports_btrace): Use
6129         packet_support.
6130         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6131         Use packet_config_support.
6132         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6133         the packet config says the feature is enabled or disabled.
6134         (set_range_stepping): Use packet_support.
6135
6136 2014-04-25  Tom Tromey  <tromey@redhat.com>
6137
6138         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6139         argument.
6140
6141 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6142
6143         * NEWS: Mention support for C99 variable length arrays.
6144
6145 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6146
6147         * ada-lang.c (standard_exc): Expand introductory comment.
6148
6149 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6150             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6151
6152         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6153         AVX512 registers.
6154         (amd64_linux_read_description): Add code to handle AVX512 xstate
6155         mask and return respective tdesc.
6156         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6157         and features/i386/x32-avx512-linux.c.
6158         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6159         (amd64_linux_core_read_description): Add code to handle AVX512
6160         xstate mask and return respective tdesc.
6161         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6162         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6163         calculation.
6164         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6165         (tdesc_amd64_avx512_linux): New prototype.
6166         (tdesc_x32_avx512_linux): Likewise.
6167         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6168         features/i386/x32-avx512.c.
6169         (amd64_ymm_avx512_names): New register names for pseudo
6170         registers YMM16-31.
6171         (amd64_ymmh_avx512_names): New register names for raw registers
6172         YMMH16-31.
6173         (amd64_k_names): New register names for K registers.
6174         (amd64_zmmh_names): New register names for ZMM raw registers.
6175         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6176         (amd64_xmm_avx512_names): New register names for XMM16-31
6177         registers.
6178         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6179         registers.
6180         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6181         if feature is present.
6182         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6183         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6184         (AMD64_NUM_REGS): Adjust to new number of registers.
6185         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6186         registers supplied via XSTATE by AVX512 registers.
6187         (i386_linux_read_description): Add case for AVX512.
6188         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6189         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6190         (i386_linux_core_read_description): Add case for AVX512.
6191         (i386_linux_init_abi): Install supported register note section
6192         for AVX512.
6193         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6194         AVX512.
6195         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6196         registers to be number of zmm7h + 1.
6197         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6198         * i386-tdep.c: Include features/i386/i386-avx512.c.
6199         (i386_zmm_names): Add ZMM pseudo register names array.
6200         (i386_zmmh_names): Add ZMM raw register names array.
6201         (i386_k_names): Add K raw register names array.
6202         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6203         registers. AVX512 has 16 more ZMM registers than there are YMM
6204         registers.
6205         (i386_zmmh_regnum_p): Add function to look up register number of
6206         ZMM raw registers.
6207         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6208         (i386_k_regnum_p): Likewise for K raw registers.
6209         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6210         registers added by AVX512.
6211         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6212         registers added by AVX512.
6213         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6214         added by AVX512.
6215         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6216         (i386_pseudo_register_name): Add ZMM pseudo registers.
6217         (i386_zmm_type): Construct and return vector registers type for ZMM
6218         registers.
6219         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6220         ZMM0-31 pseudo registers and K registers.
6221         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6222         and YMM16-31 registers from register cache.
6223         (i386_pseudo_register_write): Add code to write  K, ZMM and
6224         YMM16-31 registers.
6225         (i386_register_reggroup_p): Add code to include/exclude AVX512
6226         registers in/from respective register groups.
6227         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6228         registers if feature is present in xcr0.
6229         (i386_gdbarch_init): Add code to initialize AVX512 feature
6230         variables in tdep structure, wire in pseudo registers and call
6231         initialize_tdesc_i386_avx512.
6232         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6233         variables.
6234         (i386_regnum): Add AVX512 registers.
6235         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6236         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6237         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6238         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6239         512 bits wide.
6240         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6241         (i386_ymm_avx512_regnum_p): Likewise.
6242         (i386_k_regnum_p): Likewise.
6243         (i386_zmm_regnum_p): Likewise.
6244         (i386_zmmh_regnum_p): Likewise.
6245         * i387-tdep.c : Update year in copyright notice.
6246         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6247         XSAVE buffer.
6248         (XSAVE_YMM_AVX512_ADDR): New macro.
6249         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6250         XSAVE buffer.
6251         (XSAVE_XMM_AVX512_ADDR): New macro.
6252         (xsave_avx512_k_offset): New table for K register offsets in
6253         XSAVE buffer.
6254         (XSAVE_AVX512_K_ADDR): New macro.
6255         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6256         in XSAVE buffer.
6257         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6258         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6259         buffer.
6260         (i387_collect_xsave): Add code to collect AVX512 registers from
6261         XSAVE buffer.
6262         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6263         of XMM16-31 registers.
6264         (I387_NUM_K_REGS): New define for number of K registers.
6265         (I387_K0_REGNUM): New define for K0 register number.
6266         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6267         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6268         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6269         registers.
6270         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6271         (I387_XMM16_REGNUM): New define for XMM16 register number.
6272         (I387_YMM0_REGNUM): New define for YMM0 register number.
6273         (I387_KEND_REGNUM): New define for last K register number.
6274         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6275         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6276         number.
6277         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6278         number.
6279         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6280         size.
6281         * features/Makefile: Add AVX512 related files.
6282         * features/i386/32bit-avx512.xml: New file.
6283         * features/i386/64bit-avx512.xml: Likewise.
6284         * features/i386/amd64-avx512-linux.c: Likewise.
6285         * features/i386/amd64-avx512-linux.xml: Likewise.
6286         * features/i386/amd64-avx512.c: Likewise.
6287         * features/i386/amd64-avx512.xml: Likewise.
6288         * features/i386/i386-avx512-linux.c: Likewise.
6289         * features/i386/i386-avx512-linux.xml: Likewise.
6290         * features/i386/i386-avx512.c: Likewise.
6291         * features/i386/i386-avx512.xml: Likewise.
6292         * features/i386/x32-avx512-linux.c: Likewise.
6293         * features/i386/x32-avx512-linux.xml: Likewise.
6294         * features/i386/x32-avx512.c: Likewise.
6295         * features/i386/x32-avx512.xml: Likewise.
6296         * regformats/i386/amd64-avx512-linux.dat: New file.
6297         * regformats/i386/amd64-avx512.dat: Likewise.
6298         * regformats/i386/i386-avx512-linux.dat: Likewise.
6299         * regformats/i386/i386-avx512.dat: Likewise.
6300         * regformats/i386/x32-avx512-linux.dat: Likewise.
6301         * regformats/i386/x32-avx512.dat: Likewise.
6302         * NEWS: Add note about new support for AVX512.
6303
6304
6305 2014-04-23  Pedro Alves  <palves@redhat.com>
6306
6307         * breakpoint.c (insert_bp_location): Tolerate errors if the
6308         breakpoint is set in a user-loaded objfile.
6309         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6310         location is marked shlib_disabled.  If the breakpoint is set in a
6311         user-loaded objfile is a GDB-side memory breakpoint, validate it
6312         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6313         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6314         flag.
6315         * mem-break.c (memory_validate_breakpoint): New function.
6316         * objfiles.c (userloaded_objfile_contains_address_p): New
6317         function.
6318         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6319         * target.h (memory_validate_breakpoint): New declaration.
6320
6321 2014-04-23  Pedro Alves  <palves@redhat.com>
6322
6323         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6324         the breakpoint is set in a shared library, only suppress
6325         errors for software breakpoints, not hardware breakpoints.
6326
6327 2014-04-22  Pedro Alves  <palves@redhat.com>
6328
6329         * infrun.c (schedlock_applies): New function, factored out from
6330         find_thread_needs_step_over.
6331         (find_thread_needs_step_over): Use it.
6332         (switch_back_to_stepped_thread): Always clear trap_expected if the
6333         step over is finished.  Return early if scheduler locking applies.
6334         Look for the stepping thread and a potential step-over thread with
6335         a single loop.
6336         (currently_stepping_or_nexting_callback): Delete.
6337
6338 2014-04-22  Nick Clifton  <nickc@redhat.com>
6339
6340         * NEWS: Mention that ARM sim now supports tracing.
6341
6342 2014-04-22  Yao Qi  <yao@codesourcery.com>
6343
6344         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6345         to ...
6346         * tracefile.c (tracefile_fetch_registers): ... it.  New
6347         function.
6348         * tracefile.h (tracefile_fetch_registers): Declare.
6349         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6350         tracefile_fetch_registers.
6351
6352 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6353
6354         PR gdb/14018
6355         * windows-nat.c (thread_rec): Don't display a warning when
6356         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6357         fails for any reason, set th->suspended to -1, so that we don't
6358         try to resume such a thread.  Also, don't return NULL in these
6359         cases, to avoid completely ruin the session due to "PC register is
6360         not available" error.
6361         (do_windows_fetch_inferior_registers): Check errors in
6362         GetThreadContext call.
6363         (windows_continue): Accept an additional argument KILLED; if not
6364         zero, ignore errors in the SetThreadContext call, since the
6365         inferior was killed and is shutting down.
6366         (windows_resume, get_windows_debug_event)
6367         (windows_create_inferior, windows_mourn_inferior)
6368         (windows_kill_inferior): All callers of windows_continue changed
6369         to adjust to its new calling sequence.
6370
6371 2014-04-19  Yao Qi  <yao@codesourcery.com>
6372
6373         * ctf.c (ctf_open): Call post_create_inferior.
6374
6375 2014-04-19  Yao Qi  <yao@codesourcery.com>
6376
6377         * ctf.c (handle_id): New static variable.
6378         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6379         value.  Get the declaration of event "register" and get length
6380         of field "contents".
6381
6382 2014-04-19  Yao Qi  <yao@codesourcery.com>
6383
6384         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6385
6386 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6387
6388         * valops.c (oload_method_static): Remove unnecessary argument
6389         METHOD.  Update all callers.
6390
6391 2014-04-18  Pedro alves  <palves@redhat.com>
6392             Tom Tromey  <tromey@redhat.com>
6393
6394         PR backtrace/15558
6395         * frame.c (get_prev_frame_1): Rename to ...
6396         (get_prev_frame_always): ... this, and make extern.  Adjust.
6397         (skip_artificial_frames): Use get_prev_frame_always.
6398         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6399         (get_frame_unwind_stop_reason): Adjust to rename.
6400         * frame.h (get_prev_frame_always): Declare.
6401         * inline-frame.c: Include frame.h.
6402         (inline_frame_this_id): Use get_prev_frame_always.
6403
6404 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6405
6406         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6407         code by using bfd_mach_o_get_base_address.
6408
6409 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6410
6411         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6412         (spu_ax_pseudo_register_collect): New function.
6413         (spu_ax_pseudo_register_push_stack): Likewise.
6414         (spu_dwarf_reg_to_regnum): Likewise.
6415         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6416
6417 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6418
6419         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6420         Replace FRAME argument with FRAME_ID.
6421         * gdbarch.c, gdbarch.h: Regenerate.
6422         * findvar.c (default_value_from_register): Add GDBARCH argument;
6423         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6424         (value_from_register): Update call to gdbarch_value_from_register.
6425         * value.h (default_value_from_register): Update prototype.
6426         * s390-linux-tdep.c (s390_value_from_register): Update interface
6427         and call to default_value_from_register.
6428         * spu-tdep.c (spu_value_from_register): Likewise.
6429
6430         * findvar.c (address_from_register): Remove TYPE argument.
6431         Do not call value_from_register; use gdbarch_value_from_register
6432         with null_frame_id instead.
6433         * value.h (address_from_register): Update prototype.
6434         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6435         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6436         address_from_register interface change.
6437
6438 2014-04-17  Yao Qi  <yao@codesourcery.com>
6439
6440         * gdbtypes.h: Update comments to link to types and macros'
6441         definitions.
6442
6443 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6444
6445         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6446
6447 2014-04-16  Keith Seitz  <keiths@redhat.com>
6448
6449         PR gdb/15827
6450         * dwarf2read.c (skip_one_die): Check that all relative-offset
6451         sibling DIEs fall within range of the current reader's buffer.
6452         (read_partial_die): Likewise.
6453
6454 2014-04-16  Keith Seitz  <keiths@redhat.com>
6455
6456         PR c++/16597
6457         * cp-namespace.c (lookup_symbol_file): If the type name of
6458         `this' is NULL, return immediately.
6459
6460 2014-04-14  Keith Seitz  <keiths@redhat.com>
6461
6462         PR c++/16253
6463         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6464         from symbol_matches_domain in symtab.c. All local callers
6465         of symbol_matches_domain updated.
6466         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6467         search STRUCT_DOMAIN.
6468         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6469         independently.  standard_lookup will do that automatically.
6470         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6471         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6472         (cp_lookup_symbol_in_namespace): Likewise.
6473         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6474         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6475         may return a STRUCT_DOMAIN match.
6476         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6477         * cp-support.c: Include language.h.
6478         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6479         VAR_DOMAIN.
6480         * psymtab.c (match_partial_symbol): Compare the requested
6481         domain with the symbol's domain directly.
6482         (lookup_partial_symbol): Likewise.
6483         * symtab.c (lookup_symbol_in_language): Explain when/why
6484         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6485         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6486         appropriate languages.
6487         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6488         and moved to ada-lang.c
6489         (lookup_block_symbol): Explain that this function only returns
6490         symbol matching the requested DOMAIN.
6491         Compare the requested domain with the symbol's domain directly.
6492         (iterate_over_symbols): Compare the requested domain with the
6493         symbol's domain directly.
6494         * symtab.h (symbol_matches_domain): Remove.
6495
6496 2014-04-14  Tom Tromey  <tromey@redhat.com>
6497
6498         PR c++/15246:
6499         * c-exp.y (type_aggregate_p): New function.
6500         (qualified_name, classify_inner_name): Use it.
6501         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6502         and TYPE_TARGET_TYPE of an enum type.
6503         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6504         an enum type.
6505         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6506         handle TYPE_DECLARED_CLASS.
6507         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6508         types.
6509         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6510         * valops.c (enum_constant_from_type): New function.
6511         (value_aggregate_elt): Use it.
6512         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6513         TYPE_CODE_ENUM.
6514
6515 2014-04-14  Tom Tromey  <tromey@redhat.com>
6516
6517         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6518         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6519         const.
6520         * value.h (value_aggregate_elt): Update.
6521
6522 2014-04-14  Tom Tromey  <tromey@redhat.com>
6523
6524         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6525
6526 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6527
6528         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6529         (evaluate_subexp_standard): Pass noside argument.
6530         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6531         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6532         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6533         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6534         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6535
6536 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6537
6538         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6539         points to a constant blob.
6540
6541 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6542
6543         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6544         property and store it as the high bound and flag the range accordingly.
6545         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6546         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6547         * gdbtypes.h (enum range_flags): New enum.
6548         (struct range_bounds): Add flags member.
6549
6550 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6551
6552         * c-typeprint.c (c_type_print_varspec_suffix): Added
6553         check for not yet resolved high bound. If unresolved, print
6554         "variable length" string to the console instead of random
6555         length.
6556
6557 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6558
6559         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6560         value.
6561         (ada_template_to_fixed_record_type_1): Likewise.
6562         (ada_to_fixed_type_1): Likewise.
6563         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6564         (cp_print_value): Likewise.
6565         * d-valprint.c (dynamic_array_type): Likewise.
6566         * findvar.c (address_of_variable): Likewise.
6567         * jv-valprint.c (java_value_print): Likewise.
6568         * valops.c (value_ind): Likewise.
6569         * value.c (coerce_ref): Likewise.
6570
6571 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6572
6573         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6574         value and retrieve the dynamic type size.
6575
6576 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6577
6578         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6579         passed to sizeof is dynamic evaluate the argument to compute the length.
6580
6581 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6582             Joel Brobecker  <brobecker@adacore.com>
6583
6584         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6585         (dwarf2_evaluate_property): New function.
6586         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6587         * dwarf2read.c (attr_to_dynamic_prop): New function.
6588         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6589         attribute.
6590         * gdbtypes.c: Include dwarf2loc.h.
6591         (is_dynamic_type): New function.
6592         (resolve_dynamic_type): New function.
6593         (resolve_dynamic_bounds): New function.
6594         (get_type_length): New function.
6595         (check_typedef): Use get_type_length to compute type length.
6596         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6597         (TYPE_LOW_BOUND_KIND): New macro.
6598         (is_dynamic_type): New function prototype.
6599         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6600         to resolve dynamic properties of the type. Update comment.
6601         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6602
6603 2014-04-14  Richard Henderson  <rth@redhat.com>
6604
6605         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6606
6607 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6608             Doug Evans  <xdje42@gmail.com>
6609
6610         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6611         dereference TYPE_CODE_REF values.
6612
6613 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6614
6615         Revert the following changes due to regressions:
6616
6617         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6618         (dwarf2_evaluate_property): New function.
6619         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6620         * dwarf2read.c (attr_to_dynamic_prop): New function.
6621         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6622         attribute.
6623         * gdbtypes.c: Include dwarf2loc.h.
6624         (is_dynamic_type): New function.
6625         (resolve_dynamic_type): New function.
6626         (resolve_dynamic_bounds): New function.
6627         (get_type_length): New function.
6628         (check_typedef): Use get_type_length to compute type length.
6629         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6630         (TYPE_LOW_BOUND_KIND): New macro.
6631         (is_dynamic_type): New function prototype.
6632         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6633         to resolve dynamic properties of the type. Update comment.
6634         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6635
6636         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6637         passed to sizeof is dynamic evaluate the argument to compute the length.
6638
6639         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6640         value and retrieve the dynamic type size.
6641
6642         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6643         (ada_template_to_fixed_record_type_1): Likewise.
6644         (ada_to_fixed_type_1): Likewise.
6645         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6646         (cp_print_value): Likewise.
6647         * d-valprint.c (dynamic_array_type): Likewise.
6648         * eval.c (evaluate_subexp_with_coercion): Likewise.
6649         * findvar.c (address_of_variable): Likewise.
6650         * jv-valprint.c (java_value_print): Likewise.
6651         * valops.c (value_ind): Likewise.
6652         * value.c (coerce_ref): Likewise.
6653
6654         * c-typeprint.c (c_type_print_varspec_suffix): Added
6655         check for not yet resolved high bound. If unresolved, print
6656         "variable length" string to the console instead of random
6657         length.
6658
6659         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6660         property and store it as the high bound and flag the range accordingly.
6661         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6662         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6663         * gdbtypes.h (enum range_flags): New enum.
6664         (struct range_bounds): Add flags member.
6665
6666         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6667         points to a constant blob.
6668
6669         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6670         (evaluate_subexp_standard): Pass noside argument.
6671         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6672         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6673         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6674         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6675         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6676
6677 2014-04-11  Keith Seitz  <keiths@redhat.com>
6678
6679         PR c++/16675
6680         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6681         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6682         reference types.
6683
6684 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6685
6686         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6687         (evaluate_subexp_standard): Pass noside argument.
6688         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6689         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6690         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6691         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6692         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6693
6694 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6695
6696         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6697         points to a constant blob.
6698
6699 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6700
6701         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6702         property and store it as the high bound and flag the range accordingly.
6703         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6704         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6705         * gdbtypes.h (enum range_flags): New enum.
6706         (struct range_bounds): Add flags member.
6707
6708 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6709
6710         * c-typeprint.c (c_type_print_varspec_suffix): Added
6711         check for not yet resolved high bound. If unresolved, print
6712         "variable length" string to the console instead of random
6713         length.
6714
6715 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6716
6717         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6718         (ada_template_to_fixed_record_type_1): Likewise.
6719         (ada_to_fixed_type_1): Likewise.
6720         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6721         (cp_print_value): Likewise.
6722         * d-valprint.c (dynamic_array_type): Likewise.
6723         * eval.c (evaluate_subexp_with_coercion): Likewise.
6724         * findvar.c (address_of_variable): Likewise.
6725         * jv-valprint.c (java_value_print): Likewise.
6726         * valops.c (value_ind): Likewise.
6727         * value.c (coerce_ref): Likewise.
6728
6729 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6730
6731         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6732         value and retrieve the dynamic type size.
6733
6734 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6735
6736         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6737         passed to sizeof is dynamic evaluate the argument to compute the length.
6738
6739 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6740
6741         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6742         (dwarf2_evaluate_property): New function.
6743         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6744         * dwarf2read.c (attr_to_dynamic_prop): New function.
6745         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6746         attribute.
6747         * gdbtypes.c: Include dwarf2loc.h.
6748         (is_dynamic_type): New function.
6749         (resolve_dynamic_type): New function.
6750         (resolve_dynamic_bounds): New function.
6751         (get_type_length): New function.
6752         (check_typedef): Use get_type_length to compute type length.
6753         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6754         (TYPE_LOW_BOUND_KIND): New macro.
6755         (is_dynamic_type): New function prototype.
6756         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6757         to resolve dynamic properties of the type. Update comment.
6758         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6759
6760 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6761
6762         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6763         declaring high/low bounds and change uses accordingly. Call
6764         create_range_type instead of create_static_range_type.
6765         * gdbtypes.c (create_range_type): New function.
6766         (create_range_type): Convert bounds into struct bound_prop and pass
6767         them to create_range_type.
6768         * gdbtypes.h (struct bound_prop): New struct.
6769         (create_range_type): New function prototype.
6770         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6771         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6772         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6773         part of the bound.
6774         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6775
6776 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6777
6778         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6779         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6780         * ada-lang.c: All uses of create_range_type updated.
6781         * coffread.c: All uses of create_range_type updated.
6782         * dwarf2read.c: All uses of create_range_type updated.
6783         * f-exp.y: All uses of create_range_type updated.
6784         * m2-valprint.c: All uses of create_range_type updated.
6785         * mdebugread.c: All uses of create_range_type updated.
6786         * stabsread.c: All uses of create_range_type updated.
6787         * valops.c: All uses of create_range_type updated.
6788         * valprint.c: All uses of create_range_type updated.
6789
6790 2014-04-10  Pedro Alves  <palves@redhat.com>
6791
6792         * breakpoint.c (single_step_breakpoints)
6793         (single_step_gdbarch): Move up in the file.
6794         (one_breakpoint_xfer_memory): New function, factored out from ...
6795         (breakpoint_xfer_memory): ... here.  Also process single-step
6796         breakpoints.
6797
6798 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6799
6800         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6801         comments.
6802         (darwin_decode_exception_message): Free port only after use.
6803
6804 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6805
6806         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6807         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6808         when setting the size of call_length.
6809
6810 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6811
6812         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6813         dereference TYPE_CODE_REF values.
6814
6815 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6816
6817         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6818         end of warning message.
6819
6820 2014-04-03  Doug Evans  <dje@google.com>
6821
6822         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6823         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6824
6825 2014-04-02  Alan Modra  <amodra@gmail.com>
6826
6827         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6828         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6829         (struct symbol_file_add_from_memory_args): Add size field.
6830         (find_vdso_size): New function.
6831         (add_vsyscall_page): Attempt to find vdso size.
6832
6833 2014-04-01  Doug Evans  <dje@google.com>
6834
6835         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6836
6837 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6838
6839         * darwin-nat.c (darwin_encode_reply): Add prototype.
6840         (darwin_decode_exception_message): Reply to unknown inferiors.
6841         (darwin_decode_message): Handle message by id.  Ignore message
6842         to unknown inferior.
6843         (darwin_wait): Discard unknown messages, add debug trace.
6844
6845 2014-03-31  Doug Evans  <dje@google.com>
6846
6847         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6848         comp_dir_string.
6849
6850 2014-03-31  Doug Evans  <dje@google.com>
6851
6852         New option "set print symbol-loading".
6853         * NEWS: Mention it.
6854         * solib.c (solib_read_symbols): Only print symbol loading messages
6855         if requested.
6856         (solib_add): If symbol loading is in "brief" mode, notify user
6857         symbols are being loaded.
6858         (reload_shared_libraries_1): Ditto.
6859         * symfile.c (print_symbol_loading_off): New static global.
6860         (print_symbol_loading_brief): New static global.
6861         (print_symbol_loading_full): New static global.
6862         (print_symbol_loading_enums): New static global.
6863         (print_symbol_loading): New static global.
6864         (print_symbol_loading_p): New function.
6865         (symbol_file_add_with_addrs): Only print symbol loading messages
6866         if requested.
6867         (_initialize_symfile): Register "print symbol-loading" set/show
6868         command.
6869         * symfile.h (print_symbol_loading_p): Declare.
6870
6871 2014-03-30  Doug Evans  <xdje42@gmail.com>
6872
6873         * infrun.c (set_last_target_status): New function.
6874         (handle_inferior_event): Call it.
6875
6876 2014-03-30  Doug Evans  <xdje42@gmail.com>
6877
6878         * inferior.h (enum stop_kind): Improve comment.
6879
6880 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
6881
6882         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6883         a reference, strip the reference layer before calling
6884         the lang_ops value_has_mutated callback.
6885
6886 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6887
6888         Remove some globals from our parser.
6889         * language.c (unk_lang_parser): Add "struct parser_state"
6890         argument.
6891         * language.h (struct language_defn) <la_parser>: Likewise.
6892         * parse.c (expout, expout_size, expout_ptr): Remove variables.
6893         (initialize_expout): Add "struct parser_state" argument.
6894         Rewrite function to use the parser state.
6895         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6896         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6897         write_exp_elt_longcst, write_exp_elt_dblcst,
6898         write_exp_elt_decfloatcst, write_exp_elt_type,
6899         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6900         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6901         write_dollar_variable): Likewise.
6902         (parse_exp_in_context_1): Use parser state.
6903         (insert_type_address_space): Add "struct parser_state" argument.
6904         Use parser state.
6905         (increase_expout_size): New function.
6906         * parser-defs.h: Forward declare "struct language_defn" and
6907         "struct parser_state".
6908         (expout, expout_size, expout_ptr): Remove extern declarations.
6909         (parse_gdbarch, parse_language): Rewrite macro declarations to
6910         accept the parser state.
6911         (struct parser_state): New struct.
6912         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6913         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6914         write_exp_elt_decfloatcst, write_exp_elt_type,
6915         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6916         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6917         write_exp_msymbol, write_dollar_variable,
6918         mark_struct_expression, insert_type_address_space): Add "struct
6919         parser_state" argument.
6920         (increase_expout_size): New function.
6921         * utils.c (do_clear_parser_state): New function.
6922         (make_cleanup_clear_parser_state): Likewise.
6923         * utils.h (make_cleanup_clear_parser_state): New function
6924         prototype.
6925         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6926         Update calls to write_exp* in order to pass the parser state.
6927         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6928         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6929         (i386_stap_parse_special_token_three_arg_disp): Likewise.
6930         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6931         * stap-probe.c (stap_parse_register_operand): Likewise.
6932         (stap_parse_single_operand): Likewise.
6933         (stap_parse_argument_1): Likewise.
6934         (stap_parse_argument): Use parser state.
6935         * stap-probe.h: Include "parser-defs.h".
6936         (struct stap_parse_info) <pstate>: New field.
6937         * c-exp.y (parse_type): Rewrite to use parser state.
6938         (yyparse): Redefine to c_parse_internal.
6939         (pstate): New global variable.
6940         (parse_number): Add "struct parser_state" argument.
6941         (write_destructor_name): Likewise.
6942         (type_exp): Update calls to write_exp* and similars in order to
6943         use parser state.
6944         (exp1, exp, variable, qualified_name, space_identifier,
6945         typename, typebase): Likewise.
6946         (write_destructor_name, parse_number, lex_one_token,
6947         classify_name, classify_inner_name, c_parse): Add "struct
6948         parser_state" argument.  Update function to use parser state.
6949         * c-lang.h: Forward declare "struct parser_state".
6950         (c_parse): Add "struct parser_state" argument.
6951         * ada-exp.y (parse_type): Rewrite macro to use parser state.
6952         (yyparse): Redefine macro to ada_parse_internal.
6953         (pstate): New variable.
6954         (write_int, write_object_renaming, write_var_or_type,
6955         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6956         type_int, type_long, type_long_long, type_float, type_double,
6957         type_long_double, type_char, type_boolean, type_system_address):
6958         Add "struct parser_state" argument.
6959         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6960         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6961         var_or_type, aggregate, aggregate_component_list,
6962         positional_list, others, component_group,
6963         component_associations): Update calls to write_exp* and similar
6964         functions in order to use parser state.
6965         (ada_parse, write_var_from_sym, write_int,
6966         write_exp_op_with_string, write_object_renaming,
6967         find_primitive_type, write_selectors, write_ambiguous_var,
6968         write_var_or_type, write_name_assoc, type_int, type_long,
6969         type_long_long, type_float, type_double, type_long_double,
6970         type_char, type_boolean, type_system_address): Add "struct
6971         parser_state" argument.  Adjust function to use parser state.
6972         * ada-lang.c (parse): Likewise.
6973         * ada-lang.h: Forward declare "struct parser_state".
6974         (ada_parse): Add "struct parser_state" argument.
6975         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
6976         calls to both functions.
6977         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6978         parser state.
6979         (yyparse): Redefine macro to f_parse_internal.
6980         (pstate): New variable.
6981         (parse_number): Add "struct parser_state" argument.
6982         (type_exp, exp, subrange, typebase): Update calls to write_exp*
6983         and similars in order to use parser state.
6984         (parse_number): Adjust code to use parser state.
6985         (yylex): Likewise.
6986         (f_parse): New function.
6987         * f-lang.h: Forward declare "struct parser_state".
6988         (f_parse): Add "struct parser_state" argument.
6989         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6990         parser state.
6991         (yyparse): Redefine macro for java_parse_internal.
6992         (pstate): New variable.
6993         (push_expression_name, push_expression_name, insert_exp): Add
6994         "struct parser_state" argument.
6995         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6996         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6997         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6998         PostIncrementExpression, PostDecrementExpression,
6999         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7000         UnaryExpressionNotPlusMinus, CastExpression,
7001         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7002         RelationalExpression, EqualityExpression, AndExpression,
7003         ExclusiveOrExpression, InclusiveOrExpression,
7004         ConditionalAndExpression, ConditionalOrExpression,
7005         ConditionalExpression, Assignment, LeftHandSide): Update
7006         calls to write_exp* and similars in order to use parser state.
7007         (parse_number): Ajust code to use parser state.
7008         (yylex): Likewise.
7009         (java_parse): New function.
7010         (push_variable): Add "struct parser_state" argument.  Adjust
7011         code to user parser state.
7012         (push_fieldnames, push_qualified_expression_name,
7013         push_expression_name, insert_exp): Likewise.
7014         * jv-lang.h: Forward declare "struct parser_state".
7015         (java_parse): Add "struct parser_state" argument.
7016         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7017         parser state.
7018         (yyparse): Redefine macro to m2_parse_internal.
7019         (pstate): New variable.
7020         (type_exp, exp, fblock, variable, type): Update calls to
7021         write_exp* and similars to use parser state.
7022         (yylex): Likewise.
7023         (m2_parse): New function.
7024         * m2-lang.h: Forward declare "struct parser_state".
7025         (m2_parse): Add "struct parser_state" argument.
7026         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7027         * objc-lang.h: Forward declare "struct parser_state".
7028         (end_msglist): Add "struct parser_state" argument.
7029         * p-exp.y (parse_type): Rewrite macro to use parser state.
7030         (yyparse): Redefine macro to pascal_parse_internal.
7031         (pstate): New variable.
7032         (parse_number): Add "struct parser_state" argument.
7033         (type_exp, exp1, exp, qualified_name, variable): Update calls to
7034         write_exp* and similars in order to use parser state.
7035         (parse_number, yylex): Adjust code to use parser state.
7036         (pascal_parse): New function.
7037         * p-lang.h: Forward declare "struct parser_state".
7038         (pascal_parse): Add "struct parser_state" argument.
7039         * go-exp.y (parse_type): Rewrite macro to use parser state.
7040         (yyparse): Redefine macro to go_parse_internal.
7041         (pstate): New variable.
7042         (parse_number): Add "struct parser_state" argument.
7043         (type_exp, exp1, exp, variable, type): Update calls to
7044         write_exp* and similars in order to use parser state.
7045         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7046         to use parser state.
7047         (go_parse): Likewise.
7048         * go-lang.h: Forward declare "struct parser_state".
7049         (go_parse): Add "struct parser_state" argument.
7050
7051 2014-03-27  Doug Evans  <dje@google.com>
7052
7053         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7054
7055 2014-03-27  Doug Evans  <dje@google.com>
7056
7057         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7058         Remove argument abbrev_section.  All callers updated.
7059
7060 2014-03-27  Doug Evans  <dje@google.com>
7061
7062         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7063         addr_base, ranges_base.
7064
7065 2014-03-26  Keith Seitz  <keiths@redhat.com>
7066
7067         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7068         types, not VAR_DOMAIN.
7069
7070 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
7071
7072         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7073         "ra" registers.
7074         * features/nios2-linux.c: Regenerated.
7075         * features/nios2.c: Regenerated.
7076
7077 2014-03-25  Pedro Alves  <palves@redhat.com>
7078
7079         * cli/cli-script.c (script_from_file): Force the interpreter to
7080         sync mode.
7081
7082 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7083
7084         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7085         small stack allocation.
7086
7087 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7088
7089         * darwin-nat.c (exc_server): Remove unused prototype.
7090         (darwin_dump_message): Correctly display data on x86_64.
7091         (darwin_encode_reply): Fix style.
7092         Add comments and fix indentation.
7093
7094 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7095
7096         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7097
7098 2014-03-22  Doug Evans  <xdje42@gmail.com>
7099
7100         * infcmd.c: Whitespace fixes.
7101         (interrupt_command): Merge two function comments into one.
7102
7103 2014-03-22  Doug Evans  <xdje42@gmail.com>
7104
7105         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7106         All uses updated.
7107
7108 2014-03-22  Yao Qi  <yao@codesourcery.com>
7109
7110         * remote.c (target_read_live_memory): Remove.
7111         (memory_xfer_live_readonly_partial): Rename it to
7112         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7113         All callers updated.  Call remote_read_bytes_1
7114         instead of target_read_live_memory.
7115         * tracepoint.c (set_traceframe_number): Remove.
7116         (make_cleanup_restore_traceframe_number): Likewise .
7117         * tracepoint.h (set_traceframe_number): Remove declaration.
7118         (make_cleanup_restore_traceframe_number): Likewise.
7119
7120 2014-03-22  Yao Qi  <yao@codesourcery.com>
7121
7122         * remote.c (remote_read_bytes): Move code on reading from the
7123         remote stub to ...
7124         (remote_read_bytes_1): ... here.  New function.
7125
7126 2014-03-22  Yao Qi  <yao@codesourcery.com>
7127
7128         * ctf.c (ctf_xfer_partial): Check the return value of
7129         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7130         return TARGET_XFER_UNAVAILABLE.
7131         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7132         * target.c (target_read_live_memory): Move it to remote.c.
7133         (memory_xfer_live_readonly_partial): Likewise.
7134         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7135         * remote.c (target_read_live_memory): Moved from target.c.
7136         (memory_xfer_live_readonly_partial): Likewise.
7137         (remote_read_bytes): Factored out from
7138         memory_xfer_partial_1.
7139
7140 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7141
7142         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7143         NULL pointer.
7144
7145 2014-03-21  Pedro Alves  <palves@redhat.com>
7146
7147         * infrun.c (normal_stop): Extend comment.
7148
7149 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7150             Pedro Alves  <palves@redhat.com>
7151
7152         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7153         static buffer.
7154         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7155         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7156         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7157
7158 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7159
7160         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7161         `z' formatted output modifier.
7162
7163 2014-03-20  Tom Tromey  <tromey@redhat.com>
7164             Sergio Durigan Junior  <sergiodj@redhat.com>
7165
7166         * probe.c (parse_probes): Turn assert into an ordinary error.
7167         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7168         exceptions when parsing probes.  Rearrange the code for clarity.
7169
7170 2014-03-20  Tom Tromey  <tromey@redhat.com>
7171
7172         PR gdb/14135
7173         * top.c (execute_command): Only dispatch events if the command
7174         started the target.
7175
7176 2014-03-20  Tom Tromey  <tromey@redhat.com>
7177
7178         PR cli/15718
7179         * infcall.c: Include event-top.h.
7180         (run_inferior_call): Call async_disable_stdin if needed.
7181
7182 2014-03-20  Pedro Alves  <palves@redhat.com>
7183
7184         * infrun.c (prepare_to_proceed): Delete.
7185         (thread_still_needs_step_over): New function.
7186         (find_thread_needs_step_over): New function.
7187         (proceed): If the current thread needs a step-over, set its
7188         steping_over_breakpoint flag.  Adjust to use
7189         find_thread_needs_step_over instead of prepare_to_proceed.
7190         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7191         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7192         breakpoint.
7193         (switch_back_to_stepped_thread): Step over breakpoints of all
7194         threads not the stepping thread, before switching back to the
7195         stepping thread.
7196
7197 2014-03-20  Pedro Alves  <palves@redhat.com>
7198
7199         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7200         extern.
7201         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7202         * infrun.c (saved_singlestep_ptid)
7203         (stepping_past_singlestep_breakpoint): Delete.
7204         (resume): Remove stepping_past_singlestep_breakpoint handling.
7205         (proceed): Store the prev_pc of the stepping thread too.
7206         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7207         singlestep_pc.
7208         (enum infwait_states): Delete infwait_thread_hop_state.
7209         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7210         field.
7211         (handle_inferior_event): Adjust.
7212         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7213         handling and the thread-hop code.  Before removing single-step
7214         breakpoints, check whether the thread hit a single-step breakpoint
7215         of another thread.  If it did, the trap is not a random signal.
7216         (switch_back_to_stepped_thread): If the event thread hit a
7217         single-step breakpoint, unblock it before switching to the
7218         stepping thread.  Handle the case of the stepped thread having
7219         advanced already.
7220         (keep_going): Handle the case of the current thread moving past a
7221         single-step breakpoint.
7222
7223 2014-03-20  Pedro Alves  <palves@redhat.com>
7224
7225         PR breakpoints/7143
7226         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7227         are being stepped over.
7228         (breakpoint_address_match): Make extern.
7229         * breakpoint.h (breakpoint_address_match): New declaration.
7230         * inferior.h (stepping_past_instruction_at): New declaration.
7231         * infrun.c (struct step_over_info): New type.
7232         (step_over_info): New global.
7233         (set_step_over_info, clear_step_over_info)
7234         (stepping_past_instruction_at): New functions.
7235         (handle_inferior_event): Clear the step-over info when
7236         trap_expected is cleared.
7237         (resume): Remove now stale comment.
7238         (clear_proceed_status): Clear step-over info.
7239         (proceed): Adjust step-over handling to set or clear the step-over
7240         info instead of removing all breakpoints.
7241         (handle_signal_stop): When setting up a thread-hop, don't remove
7242         breakpoints here.
7243         (stop_stepping): Clear step-over info.
7244         (keep_going): Adjust step-over handling to set or clear step-over
7245         info and then always inserting breakpoints, instead of removing
7246         all breakpoints when stepping over one.
7247
7248 2014-03-20  Pedro Alves  <palves@redhat.com>
7249
7250         * infrun.c (previous_inferior_ptid): Adjust comment.
7251         (deferred_step_ptid): Delete.
7252         (infrun_thread_ptid_changed, prepare_to_proceed)
7253         (init_wait_for_inferior): Adjust.
7254         (handle_signal_stop): Delete deferred_step_ptid handling.
7255
7256 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7257
7258         PR gdb/15358
7259         * defs.h (sync_quit_force_run): New declaration.
7260         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7261         * event-top.c (async_sigterm_handler): New declaration.
7262         (async_sigterm_token): New variable.
7263         (async_init_signals): Create also async_sigterm_token.
7264         (async_sigterm_handler): New function.
7265         (sync_quit_force_run): New variable.
7266         (handle_sigterm): Replace quit_force call by other calls.
7267         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7268
7269 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7270
7271         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7272         offset into SPE pseudo registers.
7273
7274 2014-03-18  Pedro Alves  <palves@redhat.com>
7275
7276         PR gdb/13860
7277         * inferior.h (print_stop_event): Declare.
7278         * infrun.c (print_stop_event): New, factored out from ...
7279         (normal_stop): ... this.
7280         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7281         of bpstat_print/print_stack_frame.
7282
7283 2014-03-17  Tom Tromey  <tromey@redhat.com>
7284
7285         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7286
7287 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7288
7289         * ada-lang.c (decode_constrained_packed_array): Perform a
7290         minimal coercion for reference with coerce_ref instead of
7291         ada_coerce_ref.
7292
7293 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7294
7295         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7296         (darwin_solib_create_inferior_hook): Emit a warning if version
7297         is unhandled.
7298
7299 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7300
7301         * python/py-value.c (get_field_flag): Cast flag_name argument to
7302         PyObject_GetAttrString to support Python 2.4.
7303
7304 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7305
7306         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7307         (Global Maintainers): Remove Jan Kratochvil.
7308
7309 2014-03-14  Pedro Alves  <palves@redhat.com>
7310
7311         * inferior.h (terminal_ours_for_output): Rename to ...
7312         (child_terminal_ours_for_output): ... this.
7313         (terminal_save_ours): Rename to ...
7314         (child_terminal_save_ours): ... this.
7315         (terminal_ours): Rename to ...
7316         (child_terminal_ours): ... this.
7317         (terminal_inferior): Rename to ...
7318         (child_terminal_inferior): ... this.
7319         (terminal_init_inferior): Rename to ...
7320         (child_terminal_init_inferior): ... this.
7321         (terminal_init_inferior_with_pgrp): Rename to ...
7322         (child_terminal_init_inferior_with_pgrp): ... this.
7323         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7324         (child_terminal_init_with_pgrp): ... this.
7325         (terminal_save_ours): Rename to ...
7326         (child_terminal_save_ours): ... this.
7327         (terminal_init_inferior): Rename to ...
7328         (child_terminal_init): ... this.  Adjust.
7329         (terminal_inferior): Rename to ...
7330         (child_terminal_inferior): ... this.
7331         (terminal_ours_for_output): Rename to ...
7332         (child_terminal_ours_for_output): ... this.  Adjust.
7333         (terminal_ours): Rename to ...
7334         (child_terminal_ours): ... this.
7335         (terminal_ours_1): Rename to ...
7336         (child_terminal_ours_1): ... this.  Adjust.
7337         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7338         * windows-nat.c (do_initial_windows_stuff): Adjust.
7339         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7340         (gnu_terminal_init): ... this.  Adjust.
7341         (gnu_target): Adjust.
7342         * inf-child.c (inf_child_target): Adjust.
7343
7344 2014-03-13  Doug Evans  <xdje42@gmail.com>
7345
7346         PR guile/16612
7347         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7348         new eq?-hashtab.
7349
7350 2014-03-13  Doug Evans  <xdje42@gmail.com>
7351
7352         * value.c (record_latest_value): Call release_value_or_incref
7353         instead of release_value.
7354
7355 2014-03-13  Pedro Alves  <palves@redhat.com>
7356
7357         * procfs.c (procfs_target): Don't override to_shortname,
7358         to_longname or to_doc.
7359
7360 2014-03-13  Pedro Alves  <palves@redhat.com>
7361
7362         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7363         Unix in user visible strings.
7364
7365 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7366
7367         * gdbtypes.h: Annotate comments for Doxygen, add a page
7368         block comment with some general info.
7369
7370 2014-03-12  Pedro Alves  <palves@redhat.com>
7371
7372         * infcmd.c (prepare_execution_command): New function, factored out
7373         from several execution commands.
7374         (run_command_1, continue_command, step_1, jump_command)
7375         (signal_command, until_command, advance_command, finish_command)
7376         (attach_command): Use prepare_execution_command.
7377
7378 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7379
7380         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7381         (MAX_BPTS): Define.
7382         (MAX_WPTS): Define.
7383         (struct arm_linux_thread_points): Removed.
7384         (struct arm_linux_process_info): New.
7385         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7386         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7387         (arm_linux_find_breakpoints_by_tid): Removed.
7388         (struct arch_lwp_info): New.
7389         (arm_linux_find_process_pid): New functions.
7390         (arm_linux_add_process): New functions.
7391         (arm_linux_process_info_get): New functions.
7392         (arm_linux_forget_process): New function.
7393         (arm_linux_get_debug_reg_state): New function.
7394         (struct update_registers_data): New.
7395         (update_registers_callback): New function.
7396         (arm_linux_insert_hw_breakpoint1): Updated.
7397         (arm_linux_remove_hw_breakpoint1): Updated.
7398         (arm_linux_insert_hw_breakpoint): Updated.
7399         (arm_linux_remove_hw_breakpoint): Updated.
7400         (arm_linux_insert_watchpoint): Updated.
7401         (arm_linux_remove_watchpoint): Updated.
7402         (arm_linux_new_thread): Updated.
7403         (arm_linux_prepare_to_resume): New function.
7404         (arm_linux_new_fork): New function.
7405         (_initialize_arm_linux_nat): Updated.
7406
7407 2014-03-12  Pedro Alves  <palves@redhat.com>
7408
7409         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7410
7411 2014-03-12  Tom Tromey  <tromey@redhat.com>
7412
7413         * inf-child.c (return_zero): New function.
7414         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7415         * aix-thread.c (aix_thread_inferior_created): New function.
7416         (aix_thread_attach): Remove.
7417         (init_aix_thread_ops): Don't set to_attach.
7418         (_initialize_aix_thread): Register inferior_created observer.
7419         * corelow.c (init_core_ops): Don't set to_attach or
7420         to_create_inferior.
7421         * exec.c (init_exec_ops): Don't set to_attach or
7422         to_create_inferior.
7423         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7424         target calls.
7425         (attach_command): Use find_attach_target.  Make direct target
7426         calls.
7427         * record-btrace.c (init_record_btrace_ops): Don't set
7428         to_create_inferior.
7429         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7430         Remove.
7431         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7432         set to_create_inferior.
7433         * target.c (complete_target_initialization): Add assertion.
7434         (target_create_inferior): Remove.
7435         (find_default_attach, find_default_create_inferior): Remove.
7436         (find_attach_target, find_run_target): New functions.
7437         (find_default_is_async_p, find_default_can_async_p)
7438         (target_supports_non_stop, target_attach): Remove.
7439         (init_dummy_target): Don't set to_create_inferior or
7440         to_supports_non_stop.
7441         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7442         TARGET_DEFAULT_FUNC.
7443         <to_create_inferior>: Add comment.
7444         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7445         TARGET_DEFAULT_RETURN.
7446         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7447         (find_attach_target, find_run_target): Declare.
7448         (target_create_inferior): Remove.
7449         (target_has_execution_1): Update comment.
7450         (target_supports_non_stop): Remove.
7451         * target-delegates.c: Rebuild.
7452
7453 2014-03-12  Pedro Alves  <palves@redhat.com>
7454
7455         * inf-child.h: Update comment to not mention Unix.
7456
7457 2014-03-12  Pedro Alves  <palves@redhat.com>
7458
7459         * inf-child.c: Update top comment to not mention Unix.  Add
7460         generic comment describing how this target is meant to be used.
7461         (inf_child_post_attach, inf_child_post_startup_inferior)
7462         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7463         Unix in comment.
7464
7465 2014-03-12  Pedro Alves  <palves@redhat.com>
7466
7467         * nto-procfs.c: Include inf-child.h.
7468         (procfs_ops): Delete global.
7469         (procfs_can_run): Delete method.
7470         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7471         target pointer instead of referencing procfs_ops.
7472         (procfs_prepare_to_store): Delete.
7473         (init_procfs_ops): Delete function.
7474         (procfs_target): New function, based on init_procfs_ops, but
7475         inherit inf_child_target.
7476         (_initialize_procfs): Use procfs_target.
7477
7478 2014-03-12  Pedro Alves  <palves@redhat.com>
7479
7480         * windows-nat.c: Include inf-child.h.
7481         (windows_ops): Delete global.
7482         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7483         methods.
7484         (init_windows_ops): Delete function.
7485         (windows_target): New function, based on init_windows_ops, but
7486         inherit inf_child_target.
7487         (_initialize_windows_nat): Use windows_target.  Install x86
7488         specific target methods here.
7489
7490 2014-03-10  Doug Evans  <xdje42@gmail.com>
7491
7492         * guile/guile.c (call_initialize_gdb_module): New function.
7493         (initialize_guile): Replace call to scm_init_guile with call to
7494         scm_with_guile.
7495
7496 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7497
7498         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7499         in call to TYPE_CODE macro.
7500
7501 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7502
7503         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7504         Resolve tagged types to full view.
7505
7506 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7507
7508         * target.h (target_insert_breakpoint): Remove "hardware" from its
7509         comments.
7510
7511 2014-03-07  Doug Evans  <dje@google.com>
7512
7513         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7514
7515 2014-03-07  Doug Evans  <dje@google.com>
7516
7517         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7518         Remove unused local comp_dir_attr.  Assert exactly one of
7519         stub_comp_unit_die, stub_comp_dir is non-NULL.
7520
7521 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7522
7523         * target.h (complete_target_initialization, add_target):
7524         Add comment.
7525
7526 2014-03-07  Pedro Alves  <palves@redhat.com>
7527
7528         * go32-nat.c: Include inf-child.h.
7529         (go32_ops): Delete global.
7530         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7531         Delete methods.
7532         (go32_create_inferior): Push the passed in target pointer instead
7533         of referencing go32_ops.
7534         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7535         (go32_target): New function, based on init_go32_ops, but inherit
7536         inf_child_target.
7537         (_initialize_go32_nat): Use go32_target.  Move parts of
7538         init_go32_ops here.
7539
7540 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7541
7542         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7543         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7544         SYMBOL_VALUE_ADDRESS.
7545         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7546
7547 2014-03-06  Yao Qi  <yao@codesourcery.com>
7548
7549         * breakpoint.c (get_tracepoint_by_number): Remove argument
7550         optional_p.  All callers updated.  Adjust comments.  Update
7551         output message.
7552         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7553
7554 2014-03-06  Yao Qi  <yao@codesourcery.com>
7555
7556         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7557         early if get_number returns zero.  Use 'p' instead of 'args'.
7558
7559 2014-03-06  Yao Qi  <yao@codesourcery.com>
7560
7561         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7562         message.
7563
7564 2014-03-06  Yao Qi  <yao@codesourcery.com>
7565
7566         PR breakpoints/16508
7567         * tracepoint.c (check_trace_running): New function.
7568         (trace_find_command): Move code to check_trace_running and
7569         call check_trace_running.
7570         (trace_find_pc_command): Likewise.
7571         (trace_find_tracepoint_command): Likewise.
7572         (trace_find_line_command): Likewise.
7573         (trace_find_range_command): Likewise.
7574         * tracepoint.h (check_trace_running): Likewise.
7575         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7576
7577 2014-03-06  Yao Qi  <yao@codesourcery.com>
7578
7579         * target.h (struct target_ops) <to_traceframe_info>: Use
7580         TARGET_DEFAULT_NORETURN (tcomplain ()).
7581         * target-delegates.c: Regenerated.
7582
7583 2014-03-05  Pedro Alves  <palves@redhat.com>
7584
7585         PR gdb/16575
7586         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7587         void.  Update comment.
7588         (dcache_xfer_memory): Delete.
7589         (dcache_read_memory_partial): New, based on the read bits of
7590         dcache_xfer_memory.
7591         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7592         adjust.  Discard cache lines if the reason for the update was
7593         error.
7594         * dcache.h (dcache_xfer_memory): Delete declaration.
7595         (dcache_read_memory_partial): New declaration.
7596         (dcache_update): Update prototype.
7597         * target.c (raw_memory_xfer_partial): Update the dcache here.
7598         (memory_xfer_partial_1): Don't handle dcache writes here.
7599
7600 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7601
7602         * remote-sim.c (gdbsim_load): Add const to prog.
7603
7604 2014-03-03  Tom Tromey  <tromey@redhat.com>
7605
7606         * elfread.c (probe_key): Change to bfd_data.
7607         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7608         now per-BFD, not per-objfile.
7609         * stap-probe.c (stap_probe_destroy): Update comment.
7610         (handle_stap_probe): Allocate on the per-BFD obstack.
7611
7612 2014-03-03  Tom Tromey  <tromey@redhat.com>
7613
7614         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7615         * breakpoint.c (create_longjmp_master_breakpoint): Use
7616         get_probe_address.
7617         (add_location_to_breakpoint, bkpt_probe_insert_location)
7618         (bkpt_probe_remove_location): Update.
7619         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7620         * elfread.c (elf_symfile_relocate_probe): Remove.
7621         (elf_probe_fns): Update.
7622         (insert_exception_resume_breakpoint): Change type of "probe"
7623         parameter to bound_probe.
7624         (check_exception_resume): Update.
7625         * objfiles.c (objfile_relocate1): Don't relocate probes.
7626         * probe.c (bound_probe_s): New typedef.
7627         (parse_probes): Use get_probe_address.  Set sal's objfile.
7628         (find_probe_by_pc): Return a bound_probe.
7629         (collect_probes): Return a VEC(bound_probe_s).
7630         (compare_probes): Update.
7631         (gen_ui_out_table_header_info): Change type of "probes"
7632         parameter.  Update.
7633         (info_probes_for_ops): Update.
7634         (get_probe_address): New function.
7635         (probe_safe_evaluate_at_pc): Update.
7636         * probe.h (struct probe_ops) <get_probe_address>: New field.
7637         <set_semaphore, clear_semaphore>: Add objfile parameter.
7638         (struct probe) <objfile>: Remove field.
7639         <arch>: New field.
7640         <address>: Update comment.
7641         (struct bound_probe): New.
7642         (find_probe_by_pc): Return a bound_probe.
7643         (get_probe_address): Declare.
7644         * solib-svr4.c (struct probe_and_action) <address>: New field.
7645         (hash_probe_and_action, equal_probe_and_action): Update.
7646         (register_solib_event_probe): Add address parameter.
7647         (solib_event_probe_at): Update.
7648         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7649         get_probe_address.
7650         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7651         (stap_get_probe_address): New function.
7652         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7653         (compile_probe_arg): Update.
7654         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7655         address.
7656         (handle_stap_probe): Don't relocate the probe.
7657         (stap_relocate): Remove.
7658         (stap_gen_info_probes_table_values): Update.
7659         (stap_probe_ops): Remove stap_relocate.
7660         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7661         (debug_sym_probe_fns): Update.
7662         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7663         * symtab.c (init_sal): Use memset.
7664         * symtab.h (struct symtab_and_line) <objfile>: New field.
7665         * tracepoint.c (start_tracing, stop_tracing): Update.
7666
7667 2014-03-03  Tom Tromey  <tromey@redhat.com>
7668
7669         * probe.h (parse_probes, find_probe_by_pc)
7670         (find_probes_in_objfile): Fix comments.
7671
7672 2014-03-02  Doug Evans  <xdje42@gmail.com>
7673
7674         * infrun.c (handle_signal_stop): Replace test for
7675         TARGET_WAITKIND_STOPPED with an assert.
7676
7677 2014-03-02  Doug Evans  <xdje42@gmail.com>
7678
7679         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7680
7681 2014-03-02  Doug Evans  <xdje42@gmail.com>
7682
7683         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7684
7685 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7686
7687         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7688
7689 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7690
7691         * i386obsd-nat.c: Include "obsd-nat.h".
7692         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7693         add_target.
7694         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7695
7696 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7697
7698         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7699
7700 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7701
7702         * mips64obsd-nat.c: Include "obsd-nath".
7703         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7704         add_target
7705         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7706
7707 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7708
7709         * amd64obsd-nat.c: Include "obsd-nat,h.
7710         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7711         add_target.
7712         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7713
7714 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7715
7716         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7717         (find_overload_match): Update call to find_oload_champ.
7718         (find_oload_champ_namespace_loop): Likewise
7719
7720 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7721
7722         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7723
7724         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7725         * config/sparc/obsd64.mh: New file.
7726         * sparc64obsd-nat.c: New file.
7727
7728         * obsd-nat.h: New file.
7729         * obsd-nat.c: New file.
7730         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7731         (ALLDEPFILES): Add obsd-nat.c.
7732
7733 2014-02-28  Tom Tromey  <tromey@redhat.com>
7734
7735         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7736         * cli-out.h (cli_ui_out_impl): Now const.
7737         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7738         * ui-out.c (struct ui_out) <impl>: Now const.
7739         (default_ui_out_impl): Now const.
7740         (ui_out_new): Make 'impl' parameter const.
7741         * ui-out.h (ui_out_new): Update.
7742
7743 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7744
7745         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7746
7747 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7748
7749         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7750
7751 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7752
7753         Additional PR 8882 fix.
7754         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7755
7756 2014-02-27  Pedro Alves  <palves@redhat.com>
7757
7758         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7759         isn't set.
7760
7761 2014-02-27  Pedro Alves  <palves@redhat.com>
7762
7763         PR 12702
7764         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7765         * nat/linux-waitpid.c: Include string.h.
7766         (status_to_str): Moved here and made extern.
7767         * nat/linux-waitpid.h (status_to_str): New declaration.
7768
7769 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7770
7771         PR 12702
7772         * infrun.c (ptid_match): Move ...
7773         * common/ptid.c (ptid_match): ... here.
7774         * inferior.h (ptid_match): Move ...
7775         * common/ptid.h (ptid_match): ... here.
7776
7777 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7778
7779         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7780         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7781         gdb_target_obs.
7782
7783 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7784
7785         * obsd-tdep.c (obsd_auxv_parse): New function.
7786         (obsd_init_abi): Set auxv_parse.
7787
7788         * gdbarch.sh (auxv_parse): New.
7789         * gdbarch.h: Regenerated.
7790         * gdbarch.c: Regenerated.
7791         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7792
7793 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7794
7795         * guile/scm-value.c (gdbscm_history_append_x): New function.
7796         (value_functions): Add it.
7797
7798 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7799
7800         * dwarf2read.c (attr_value_as_address): New function.
7801         (dwarf2_find_base_address, read_call_site_scope): Use
7802         attr_value_as_address in place of DW_ADDR.
7803         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7804         the low and high addresses.  Slight rework of the handling
7805         of the high pc being a constant form, and limit it to
7806         DWARF verson 4 or higher.
7807         (dwarf2_record_block_ranges): Likewise.
7808         (read_partial_die): Likewise.
7809         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7810
7811 2014-02-26  Tom Tromey  <tromey@redhat.com>
7812
7813         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7814
7815 2014-02-26  Tom Tromey  <tromey@redhat.com>
7816
7817         * elfread.c (elf_read_minimal_symbols): Return early if
7818         minimal symbols have already been read.  Add "ei" parameter.
7819         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7820         * minsyms.c (prim_record_minimal_symbol_full): Update.
7821         * objfiles.h (struct objstats) <n_minsyms>: Move...
7822         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7823         * symmisc.c (print_objfile_statistics): Update.
7824
7825 2014-02-26  Tom Tromey  <tromey@redhat.com>
7826
7827         * elfread.c (elf_read_minimal_symbols): New function, from
7828         elf_symfile_read.
7829         (elf_symfile_read): Call it.
7830
7831 2014-02-26  Tom Tromey  <tromey@redhat.com>
7832
7833         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7834         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7835         (lookup_minimal_symbol_solib_trampoline)
7836         (lookup_minimal_symbol_by_pc_section_1)
7837         (lookup_minimal_symbol_and_objfile): Update.
7838         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7839         Don't allocate a minimal symbol if minsyms have already been read.
7840         (build_minimal_symbol_hash_tables): Update.
7841         (install_minimal_symbols): Do nothing if minsyms already read.
7842         Use the per-BFD obstack.
7843         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7844         * objfiles.c (allocate_objfile): Call
7845         terminate_minimal_symbol_table later.
7846         (have_minimal_symbols): Update.
7847         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7848         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7849         Move from struct objfile.
7850         <minsyms_read>: New field.
7851         (struct objfile) <msymbols, minimal_symbol_count,
7852         msymbol_hash, msymbol_demangled_hash>: Move.
7853         (ALL_OBJFILE_MSYMBOLS): Update.
7854         * symfile.c (read_symbols): Set minsyms_read.
7855         (reread_symbols): Update.
7856         * symmisc.c (dump_objfile, dump_msymbols): Update.
7857
7858 2014-02-26  Tom Tromey  <tromey@redhat.com>
7859
7860         * minsyms.c (msymbols_sort): Remove.
7861         * minsyms.h (msymbols_sort): Remove.
7862         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7863         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7864         * elfread.c (elf_symtab_read): Don't add section offsets.
7865         * xcoffread.c (record_minimal_symbol): Don't add section offset
7866         to minimal symbol address.
7867         * somread.c (text_offset, data_offset): Remove.
7868         (som_symtab_read): Don't add section offsets to minimal symbol
7869         addresses.
7870         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7871         Don't add section offsets to minimal symbols.
7872         * coffread.c (coff_symtab_read): Don't add section offsets
7873         to minimal symbol addresses.
7874         * machoread.c (macho_symtab_add_minsym): Don't add section offset
7875         to minimal symbol addresses.
7876         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7877         section offset to minimal symbol addresses.
7878         * mdebugread.c (parse_partial_symbols): Don't add section
7879         offset to minimal symbol addresses.
7880         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7881         offset to minimal symbol addresses.
7882
7883 2014-02-26  Tom Tromey  <tromey@redhat.com>
7884
7885         * ada-lang.c (ada_main_name): Update.
7886         (ada_add_standard_exceptions): Update.
7887         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7888         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7889         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7890         * auxv.c (ld_so_xfer_auxv): Update.
7891         * avr-tdep.c (avr_scan_prologue): Update.
7892         * ax-gdb.c (gen_var_ref): Update.
7893         * blockframe.c (get_pc_function_start)
7894         (find_pc_partial_function_gnu_ifunc): Update.
7895         * breakpoint.c (create_overlay_event_breakpoint)
7896         (create_longjmp_master_breakpoint)
7897         (create_std_terminate_master_breakpoint)
7898         (create_exception_master_breakpoint): Update.
7899         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7900         * c-valprint.c (c_val_print): Update.
7901         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7902         * common/agent.c (agent_look_up_symbols): Update.
7903         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7904         * dwarf2loc.c (call_site_to_target_addr): Update.
7905         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7906         * elfread.c (elf_gnu_ifunc_record_cache)
7907         (elf_gnu_ifunc_resolve_by_got): Update.
7908         * findvar.c (default_read_var_value): Update.
7909         * frame.c (inside_main_func): Update.
7910         * frv-tdep.c (frv_frame_this_id): Update.
7911         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7912         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7913         Update.
7914         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7915         (hppa_hpux_find_dummy_bpaddr): Update.
7916         * hppa-tdep.c (hppa_symbol_address): Update.
7917         * infcmd.c (until_next_command): Update.
7918         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7919         Update.
7920         * linespec.c (minsym_found, add_minsym): Update.
7921         * linux-nat.c (get_signo): Update.
7922         * linux-thread-db.c (inferior_has_bug): Update.
7923         * m32c-tdep.c (m32c_return_value)
7924         (m32c_m16c_address_to_pointer): Update.
7925         * m32r-tdep.c (m32r_frame_this_id): Update.
7926         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7927         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7928         * maint.c (maintenance_translate_address): Update.
7929         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7930         (frob_address): New function.
7931         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7932         frob_address.  Rename parameter to "pc_in".
7933         (compare_minimal_symbols, compact_minimal_symbols): Use raw
7934         addresses.
7935         (find_solib_trampoline_target, minimal_symbol_upper_bound):
7936         Update.
7937         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7938         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7939         * objc-lang.c (find_objc_msgsend): Update.
7940         * objfiles.c (objfile_relocate1): Update.
7941         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7942         * p-valprint.c (pascal_val_print): Update.
7943         * parse.c (write_exp_msymbol): Update.
7944         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7945         (ppc_elfv2_skip_entrypoint): Update.
7946         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7947         * printcmd.c (build_address_symbolic, msym_info)
7948         (address_info): Update.
7949         * proc-service.c (ps_pglobal_lookup): Update.
7950         * psymtab.c (find_pc_sect_psymtab_closer)
7951         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7952         Change msymbol parameter to bound_minimal_symbol.
7953         * ravenscar-thread.c (get_running_thread_id): Update.
7954         * remote.c (remote_check_symbols): Update.
7955         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7956         address.
7957         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7958         * solib-dsbt.c (lm_base): Update.
7959         * solib-frv.c (lm_base, main_got): Update.
7960         * solib-irix.c (locate_base): Update.
7961         * solib-som.c (som_solib_create_inferior_hook)
7962         (link_map_start): Update.
7963         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7964         * solib-svr4.c (elf_locate_base, enable_break): Update.
7965         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7966         (flush_ea_cache): Update.
7967         * stabsread.c (define_symbol, scan_file_globals): Update.
7968         * stack.c (find_frame_funname): Update.
7969         * symfile-debug.c (debug_qf_expand_symtabs_matching)
7970         (debug_qf_find_pc_sect_symtab): Update.
7971         * symfile.c (simple_read_overlay_table)
7972         (simple_overlay_update): Update.
7973         * symfile.h (struct quick_symbol_functions)
7974         <find_pc_sect_symtab>: Change type of msymbol to
7975         bound_minimal_symbol.
7976         * symmisc.c (dump_msymbols): Update.
7977         * symtab.c (find_pc_sect_symtab_via_partial)
7978         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7979         (search_symbols, print_msymbol_info): Update.
7980         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7981         (MSYMBOL_VALUE_ADDRESS): Redefine.
7982         (BMSYMBOL_VALUE_ADDRESS): New macro.
7983         * tracepoint.c (scope_info): Update.
7984         * tui/tui-disasm.c (tui_find_disassembly_address)
7985         (tui_get_begin_asm_address): Update.
7986         * valops.c (find_function_in_inferior): Update.
7987         * value.c (value_static_field, value_fn_field): Update.
7988
7989 2014-02-26  Tom Tromey  <tromey@redhat.com>
7990
7991         * ada-lang.c (ada_update_initial_language): Update.
7992         (ada_main_name, ada_has_this_exception_support): Update.
7993         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7994         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7995         * arm-tdep.c (arm_skip_stub): Update.
7996         * auxv.c (ld_so_xfer_auxv): Update.
7997         * avr-tdep.c (avr_scan_prologue): Update.
7998         * ax-gdb.c (gen_var_ref): Update.
7999         * breakpoint.c (struct breakpoint_objfile_data)
8000         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8001         type to bound_minimal_symbol.
8002         (create_overlay_event_breakpoint)
8003         (create_longjmp_master_breakpoint)
8004         (create_std_terminate_master_breakpoint)
8005         (create_exception_master_breakpoint): Update.
8006         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8007         * c-exp.y (classify_name): Update.
8008         * coffread.c (coff_symfile_read): Update.
8009         * common/agent.c (agent_look_up_symbols): Update.
8010         * d-lang.c (d_main_name): Update.
8011         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8012         * dec-thread.c (enable_dec_thread): Update.
8013         * dwarf2loc.c (call_site_to_target_addr): Update.
8014         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8015         * eval.c (evaluate_subexp_standard): Update.
8016         * findvar.c (struct minsym_lookup_data) <result>: Change type
8017         to bound_minimal_symbol.
8018         <objfile>: Remove.
8019         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8020         * frame.c (inside_main_func): Update.
8021         * frv-tdep.c (frv_frame_this_id): Update.
8022         * gcore.c (call_target_sbrk): Update.
8023         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8024         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8025         Update.
8026         * go-lang.c (go_main_name): Update.
8027         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8028         (hppa_hpux_find_import_stub_for_addr): Update.
8029         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8030         Update.  Change return type.
8031         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8032         type.
8033         * jit.c (jit_breakpoint_re_set_internal): Update.
8034         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8035         Update.
8036         * linux-nat.c (get_signo): Update.
8037         * linux-thread-db.c (inferior_has_bug): Update
8038         * m32c-tdep.c (m32c_return_value)
8039         (m32c_m16c_address_to_pointer): Update.
8040         * m32r-tdep.c (m32r_frame_this_id): Update.
8041         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8042         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8043         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8044         lookup_minimal_symbol.  Change return type.
8045         (lookup_minimal_symbol): Remove.
8046         (lookup_bound_minimal_symbol): Update.
8047         (lookup_minimal_symbol_text): Change return type.
8048         (lookup_minimal_symbol_solib_trampoline): Change return type.
8049         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8050         (lookup_minimal_symbol_solib_trampoline): Change return type.
8051         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8052         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8053         (value_nsstring, find_imps): Update.
8054         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8055         * p-lang.c (pascal_main_name): Update.
8056         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8057         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8058         * proc-service.c (ps_pglobal_lookup): Update.
8059         * ravenscar-thread.c (get_running_thread_msymbol): Change
8060         return type.
8061         (has_ravenscar_runtime, get_running_thread_id): Update.
8062         * remote.c (remote_check_symbols): Update.
8063         * sol-thread.c (ps_pglobal_lookup): Update.
8064         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8065         * solib-dsbt.c (lm_base): Update.
8066         * solib-frv.c (lm_base, frv_relocate_section_addresses):
8067         Update.
8068         * solib-irix.c (locate_base): Update.
8069         * solib-som.c (som_solib_create_inferior_hook)
8070         (som_solib_desire_dynamic_linker_symbols, link_map_start):
8071         Update.
8072         * solib-spu.c (spu_enable_break): Update.
8073         * solib-svr4.c (elf_locate_base, enable_break): Update.
8074         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8075         (flush_ea_cache): Update.
8076         * stabsread.c (define_symbol): Update.
8077         * symfile.c (simple_read_overlay_table): Update.
8078         * symtab.c (find_pc_sect_line): Update.
8079         * tracepoint.c (scope_info): Update.
8080         * tui-disasm.c (tui_get_begin_asm_address): Update.
8081         * value.c (value_static_field): Update.
8082
8083 2014-02-26  Tom Tromey  <tromey@redhat.com>
8084
8085         * minsyms.c (prim_record_minimal_symbol_full): Use
8086         SET_MSYMBOL_VALUE_ADDRESS.
8087         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8088         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8089         SET_MSYMBOL_VALUE_ADDRESS.
8090         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8091         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8092
8093 2014-02-26  Tom Tromey  <tromey@redhat.com>
8094
8095         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8096         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8097         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8098         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8099         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8100         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8101         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8102         * ada-lang.c (ada_main_name): Update.
8103         (ada_lookup_simple_minsym): Update.
8104         (ada_make_symbol_completion_list): Update.
8105         (ada_add_standard_exceptions): Update.
8106         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8107         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8108         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8109         * arm-tdep.c (skip_prologue_function): Update.
8110         (arm_skip_stack_protector, arm_skip_stub): Update.
8111         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8112         (arm_wince_skip_main_prologue): Update.
8113         * auxv.c (ld_so_xfer_auxv): Update.
8114         * avr-tdep.c (avr_scan_prologue): Update.
8115         * ax-gdb.c (gen_var_ref): Update.
8116         * block.c (call_site_for_pc): Update.
8117         * blockframe.c (get_pc_function_start): Update.
8118         (find_pc_partial_function_gnu_ifunc): Update.
8119         * breakpoint.c (create_overlay_event_breakpoint): Update.
8120         (create_longjmp_master_breakpoint): Update.
8121         (create_std_terminate_master_breakpoint): Update.
8122         (create_exception_master_breakpoint): Update.
8123         (resolve_sal_pc): Update.
8124         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8125         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8126         Update.
8127         * c-valprint.c (c_val_print): Update.
8128         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8129         * coffread.c (coff_symfile_read): Update.
8130         * common/agent.c (agent_look_up_symbols): Update.
8131         * dbxread.c (find_stab_function_addr): Update.
8132         (end_psymtab): Update.
8133         * dwarf2loc.c (call_site_to_target_addr): Update.
8134         (func_verify_no_selftailcall): Update.
8135         (tailcall_dump): Update.
8136         (call_site_find_chain_1): Update.
8137         (dwarf_expr_reg_to_entry_parameter): Update.
8138         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8139         (elf_gnu_ifunc_resolve_by_got): Update.
8140         * f-valprint.c (info_common_command): Update.
8141         * findvar.c (read_var_value): Update.
8142         * frame.c (get_prev_frame_1): Update.
8143         (inside_main_func): Update.
8144         * frv-tdep.c (frv_skip_main_prologue): Update.
8145         (frv_frame_this_id): Update.
8146         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8147         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8148         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8149         (gnuv3_skip_trampoline): Update.
8150         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8151         (hppa64_hpux_in_solib_call_trampoline): Update.
8152         (hppa_hpux_skip_trampoline_code): Update.
8153         (hppa64_hpux_search_dummy_call_sequence): Update.
8154         (hppa_hpux_find_import_stub_for_addr): Update.
8155         (hppa_hpux_find_dummy_bpaddr): Update.
8156         * hppa-tdep.c (hppa_symbol_address)
8157         (hppa_lookup_stub_minimal_symbol): Update.
8158         * i386-tdep.c (i386_skip_main_prologue): Update.
8159         (i386_pe_skip_trampoline_code): Update.
8160         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8161         * infcall.c (get_function_name): Update.
8162         * infcmd.c (until_next_command): Update.
8163         * jit.c (jit_breakpoint_re_set_internal): Update.
8164         (jit_inferior_init): Update.
8165         * linespec.c (minsym_found): Update.
8166         (add_minsym): Update.
8167         * linux-fork.c (info_checkpoints_command): Update.
8168         * linux-nat.c (get_signo): Update.
8169         * linux-thread-db.c (inferior_has_bug): Update.
8170         * m32c-tdep.c (m32c_return_value): Update.
8171         (m32c_m16c_address_to_pointer): Update.
8172         (m32c_m16c_pointer_to_address): Update.
8173         * m32r-tdep.c (m32r_frame_this_id): Update.
8174         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8175         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8176         * maint.c (maintenance_translate_address): Update.
8177         * minsyms.c (add_minsym_to_hash_table): Update.
8178         (add_minsym_to_demangled_hash_table): Update.
8179         (msymbol_objfile): Update.
8180         (lookup_minimal_symbol): Update.
8181         (iterate_over_minimal_symbols): Update.
8182         (lookup_minimal_symbol_text): Update.
8183         (lookup_minimal_symbol_by_pc_name): Update.
8184         (lookup_minimal_symbol_solib_trampoline): Update.
8185         (lookup_minimal_symbol_by_pc_section_1): Update.
8186         (lookup_minimal_symbol_and_objfile): Update.
8187         (prim_record_minimal_symbol_full): Update.
8188         (compare_minimal_symbols): Update.
8189         (compact_minimal_symbols): Update.
8190         (build_minimal_symbol_hash_tables): Update.
8191         (install_minimal_symbols): Update.
8192         (terminate_minimal_symbol_table): Update.
8193         (find_solib_trampoline_target): Update.
8194         (minimal_symbol_upper_bound): Update.
8195         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8196         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8197         (mips_skip_pic_trampoline_code): Update.
8198         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8199         * objc-lang.c (selectors_info): Update.
8200         (classes_info): Update.
8201         (find_methods): Update.
8202         (find_imps): Update.
8203         (find_objc_msgsend): Update.
8204         * objfiles.c (objfile_relocate1): Update.
8205         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8206         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8207         * p-valprint.c (pascal_val_print): Update.
8208         * parse.c (write_exp_msymbol): Update.
8209         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8210         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8211         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8212         * printcmd.c (build_address_symbolic): Update.
8213         (sym_info): Update.
8214         (address_info): Update.
8215         * proc-service.c (ps_pglobal_lookup): Update.
8216         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8217         (find_pc_sect_psymtab): Update.
8218         * python/py-framefilter.c (py_print_frame): Update.
8219         * ravenscar-thread.c (get_running_thread_id): Update.
8220         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8221         Update.
8222         * remote.c (remote_check_symbols): Update.
8223         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8224         (rs6000_skip_trampoline_code): Update.
8225         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8226         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8227         * solib-dsbt.c (lm_base): Update.
8228         * solib-frv.c (lm_base): Update.
8229         (main_got): Update.
8230         * solib-irix.c (locate_base): Update.
8231         * solib-som.c (som_solib_create_inferior_hook): Update.
8232         (som_solib_desire_dynamic_linker_symbols): Update.
8233         (link_map_start): Update.
8234         * solib-spu.c (spu_enable_break): Update.
8235         (ocl_enable_break): Update.
8236         * solib-svr4.c (elf_locate_base): Update.
8237         (enable_break): Update.
8238         * spu-tdep.c (spu_get_overlay_table): Update.
8239         (spu_catch_start): Update.
8240         (flush_ea_cache): Update.
8241         * stabsread.c (define_symbol): Update.
8242         (scan_file_globals): Update.
8243         * stack.c (find_frame_funname): Update.
8244         (frame_info): Update.
8245         * symfile.c (simple_read_overlay_table): Update.
8246         (simple_overlay_update): Update.
8247         * symmisc.c (dump_msymbols): Update.
8248         * symtab.c (fixup_section): Update.
8249         (find_pc_sect_line): Update.
8250         (skip_prologue_sal): Update.
8251         (search_symbols): Update.
8252         (print_msymbol_info): Update.
8253         (rbreak_command): Update.
8254         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8255         (completion_list_objc_symbol): Update.
8256         (default_make_symbol_completion_list_break_on): Update.
8257         * tracepoint.c (scope_info): Update.
8258         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8259         (tui_get_begin_asm_address): Update.
8260         * valops.c (find_function_in_inferior): Update.
8261         * value.c (value_static_field): Update.
8262         (value_fn_field): Update.
8263
8264 2014-02-26  Tom Tromey  <tromey@redhat.com>
8265
8266         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8267         bound minimal symbols.  Move code that knows about minsym
8268         table layout...
8269         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8270         function.
8271         * minsyms.h (minimal_symbol_upper_bound): Declare.
8272         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8273         minimal_symbol_upper_bound.
8274
8275 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8276
8277         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8278         Use the type's name if its basic type does not have a tag.
8279
8280 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8281
8282         * dwarf2read.c (read_subrange_type): Add comment.
8283
8284 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8285
8286         * dwarf2read.c (update_enumeration_type_from_children): New
8287         function, mostly extracted from process_structure_scope.
8288         (read_enumeration_type): Call update_enumeration_type_from_children.
8289         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8290         and flag_flag_enum fields.
8291
8292 2014-02-26  Pedro Alves  <palves@redhat.com>
8293
8294         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8295         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8296         to_xfer_partial method.
8297
8298 2014-02-26  Pedro Alves  <palves@redhat.com>
8299
8300         * target.c (complete_target_initialization): Don't install
8301         default_xfer_partial as to_xfer_partial hook.
8302         (nomemory): Delete.
8303         (update_current_target): Don't INHERIT nor de_fault
8304         deprecated_xfer_memory.  Delete de_fault macro.
8305         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8306         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8307         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8308         field.
8309
8310 2014-02-26  Pedro Alves  <palves@redhat.com>
8311
8312         * go32-nat.c (my_write_child): New function.
8313         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8314         (go32_xfer_partial): New function.
8315         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8316         Instead install a to_xfer_partial hook.
8317
8318 2014-02-26  Pedro Alves  <palves@redhat.com>
8319
8320         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8321         to_xfer_partial helper.  Rewrite.
8322         (procfs_xfer_partial): New function.
8323         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8324         Install a to_xfer_partial hook.
8325
8326 2014-02-26  Pedro Alves  <palves@redhat.com>
8327
8328         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8329         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8330         (m32r_xfer_partial): New function.
8331         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8332         Install a to_xfer_partial hook.
8333
8334 2014-02-26  Pedro Alves  <palves@redhat.com>
8335
8336         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8337         helper.
8338         (mips_xfer_partial): New function.
8339         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8340         hook.  Install a to_xfer_partial hook.
8341
8342 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8343
8344         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8345         * gdbtypes.c (create_array_type_with_stride): New function,
8346         renaming create_array_type, but with an added parameter
8347         called "bit_stride".
8348         (create_array_type): Re-implement using
8349         create_array_type_with_stride.
8350         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8351         and DW_AT_bit_stride attributes.
8352
8353 2014-02-26  Pedro Alves  <palves@redhat.com>
8354
8355         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8356         task-specific breakpoints.
8357
8358 2014-02-25  Pedro Alves  <palves@redhat.com>
8359
8360         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8361         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8362
8363 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8364
8365         * defs.h: Annotate comments for Doxygen.
8366
8367 2014-02-25  Tom Tromey  <tromey@redhat.com>
8368
8369         * target.h (target_ignore): Don't declare.
8370         * target.c (target_ignore): Remove.
8371
8372 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8373
8374         PR gdb/16626
8375         * auto-load.c (auto_load_objfile_script_1): Change filename to
8376         debugfile.
8377
8378 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8379
8380         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8381         documentation.  Adjust prototype to match the target_ops
8382         to_xfer_partial method.  Adjust implementation accordingly.
8383
8384 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8385
8386         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8387         to_traceframe_info.
8388
8389 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8390
8391         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8392         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8393         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8394         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8395         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8396         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8397         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8398         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8399         New constants.
8400         (rl78_register_type): Use a data pointer type for SP and
8401         new pseudo registers mentioned above.  Use a 16 bit integer
8402         type for all other register pairs.
8403         (rl78_register_name, rl78_g10_register_name): Update for
8404         new pseudo registers.
8405         (rl78_pseudo_register_read): Likewise.
8406         (rl78_pseudo_register_write): Likewise.
8407         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8408         to the newly added pseudo registers.
8409
8410 2014-02-24  Doug Evans  <dje@google.com>
8411
8412         * value.c (record_latest_value): Fix comment.
8413         * printcmd.c (print_command_1): Remove code to handle -1 return from
8414         record_latest_value.
8415
8416 2014-02-24  Pedro Alves  <palves@redhat.com>
8417
8418         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8419         deprecated_xfer_memory hook.
8420         (procfs_xfer_partial): Call procfs_xfer_memory instead
8421         of the deprecated_xfer_memory target hook.
8422         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8423         helper.
8424
8425 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8426
8427         * windows-nat.c (windows_xfer_shared_libraries): Return
8428         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8429         requested object is TARGET_OBJECT_LIBRARIES.
8430
8431 2014-02-24  Yao Qi  <yao@codesourcery.com>
8432
8433         * target.h (enum target_xfer_status)
8434         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8435         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8436         explicitly.  New.
8437         * corefile.c (memory_error_message): User updated.
8438         * exec.c (section_table_read_available_memory): Likewise.
8439         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8440         * target.c (target_xfer_status_to_string): Likewise.
8441         (raw_memory_xfer_partial): Likewise.
8442         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8443         * valops.c (read_value_memory): Likewise.
8444         * exec.h: Update comments.
8445
8446 2014-02-24  Yao Qi  <yao@codesourcery.com>
8447
8448         * target.c (target_xfer_status_to_string): Rename argument err
8449         to status.
8450         * target.h (target_xfer_status_to_string): Update declaration.
8451         Replace target_xfer_error_to_string with
8452         target_xfer_status_to_string in comment.
8453
8454 2014-02-24  Yao Qi  <yao@codesourcery.com>
8455
8456         * mips-linux-nat.c (super_close): Update its type.
8457         (mips_linux_close): Pass 'self' to super_close.
8458
8459 2014-02-24  Yao Qi  <yao@codesourcery.com>
8460
8461         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8462         * corefile.c (read_memory): Adjusted.
8463         * target.c (target_write_with_progress): Adjusted.
8464
8465 2014-02-23  Yao Qi  <yao@codesourcery.com>
8466
8467         Revert two patches:
8468
8469         2013-10-25  Yao Qi  <yao@codesourcery.com>
8470
8471         * remote.c (remote_traceframe_info): Return early if
8472         traceframe is not selected.
8473
8474         2013-07-19  Yao Qi  <yao@codesourcery.com>
8475
8476         * target.c (update_current_target): Change the default action
8477         of 'to_traceframe_info' from tcomplain to return_zero.
8478         * target.h (struct target_ops) <to_traceframe_info>: Add more
8479         comments.
8480
8481 2014-02-23  Yao Qi  <yao@codesourcery.com>
8482
8483         * valops.c (read_value_memory): Rewrite it.  Call
8484         target_xfer_partial in a loop.
8485         * exec.h (section_table_available_memory): Remove declaration.
8486         Move comments to ...
8487         * exec.c (section_table_available_memory): ... here.  Make it
8488         static.
8489
8490 2014-02-23  Yao Qi  <yao@codesourcery.com>
8491
8492         * exec.c (section_table_read_available_memory): New function.
8493         * exec.h (section_table_read_available_memory): Declare.
8494         * ctf.c (ctf_xfer_partial): Call
8495         section_table_read_available_memory.
8496         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8497
8498 2014-02-23  Yao Qi  <yao@codesourcery.com>
8499
8500         * ctf.c (ctf_xfer_partial): Move code to ...
8501         * exec.c (exec_read_partial_read_only): ... it.  New function.
8502         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8503         * tracefile.c: Include "exec.h".
8504         * exec.h (exec_read_partial_read_only): Declare.
8505
8506 2014-02-23  Yao Qi  <yao@codesourcery.com>
8507
8508         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8509         (tfile_has_memory): Remove.
8510         (init_tfile_ops): Don't set fields to_has_all_memory and
8511         to_has_memory of tfile_ops.
8512         * tracefile.c (tracefile_has_all_memory): New function.
8513         (tracefile_has_memory): New function.
8514         (init_tracefile_ops): Initialize fields to_has_all_memory and
8515         to_has_memory of 'ops'.
8516
8517 2014-02-23  Yao Qi  <yao@codesourcery.com>
8518
8519         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8520         (ctf_thread_alive, ctf_get_trace_status): Remove.
8521         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8522         init_tracefile_ops.
8523         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8524         (tfile_has_stack, tfile_has_registers): Remove.
8525         (tfile_thread_alive): Remove.
8526         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8527         init_tracefile_ops.
8528         * tracefile.c (tracefile_has_stack): New function.
8529         (tracefile_has_registers): New function.
8530         (tracefile_thread_alive): New function.
8531         (tracefile_get_trace_status): New function.
8532         (init_tracefile_ops): New function.
8533         * tracefile.h (init_tracefile_ops): Declare.
8534
8535 2014-02-23  Yao Qi  <yao@codesourcery.com>
8536
8537         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8538         (O_LARGEFILE): Likewise.
8539         (tfile_ops): Likewise.
8540         (TRACE_HEADER_SIZE): Likewise.
8541         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8542         (cur_data_size): Likewise.
8543         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8544         (tfile_close, tfile_files_info): Likewise.
8545         (tfile_get_trace_status): Likewise.
8546         (tfile_get_tracepoint_status): Likewise.
8547         (tfile_get_traceframe_address): Likewise.
8548         (tfile_trace_find, match_blocktype): Likewise.
8549         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8550         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8551         (tfile_get_trace_state_variable_value): Likewise.
8552         (tfile_has_all_memory, tfile_has_memory): Likewise.
8553         (tfile_has_stack, tfile_has_registers): Likewise.
8554         (tfile_thread_alive, build_traceframe_info): Likewise.
8555         (tfile_traceframe_info, init_tfile_ops): Likewise.
8556         (_initialize_tracepoint): Don't call init_tfile_ops
8557         and add_target_with_completer.
8558         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8559         exec.h, completer.h and filenames.h.
8560         (_initialize_tracefile_tfile): New function.
8561
8562 2014-02-23  Yao Qi  <yao@codesourcery.com>
8563
8564         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8565         tracefile-tfile.o.
8566         (HFILES_NO_SRCDIR): Add tracefile.h.
8567         * ctf.c: Include "tracefile.h".
8568         * tracefile.h: New file.
8569         * tracefile.c: New file
8570         * tracefile-tfile.c: New file.
8571         * tracepoint.c: Include "tracefile.h".
8572         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8573         (stop_reason_names): Add const.
8574         (trace_file_writer_xfree): Move it to tracefile.c.
8575         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8576         (trace_save_ctf): Likewise.
8577         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8578         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8579         (tfile_write_header, tfile_write_regblock_type): Likewise.
8580         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8581         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8582         (tfile_write_raw_data, tfile_end): Likewise.
8583         (tfile_trace_file_writer_new): Likewise.
8584         (free_uploaded_tp): Make it extern.
8585         (free_uploaded_tsv): Make it extern.
8586         (_initialize_tracepoint): Move code to register command 'tsave'
8587         to tracefile.c.
8588         * tracepoint.h (stop_reason_names): Declare.
8589         (struct trace_frame_write_ops): Move it to tracefile.h.
8590         (struct trace_file_write_ops): Likewise.
8591         (struct trace_file_writer): Likewise.
8592         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8593
8594 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8595
8596         PR gdb/16594
8597         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8598         process name.
8599         (get_cores_used_by_process): New parameter num_cores, use it.
8600         (linux_xfer_osdata_processes): Pass num_cores to it.
8601         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8602         process name.
8603
8604 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8605
8606         * target.c (memory_xfer_partial): Fix length arg in call to
8607         breakpoint_xfer_memory.
8608
8609 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8610
8611         PR tdep/16397
8612         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8613         number comes after the + or - signs.  Adjust length of register
8614         name to be extracted.
8615
8616 2014-02-20  Tom Tromey  <tromey@redhat.com>
8617
8618         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8619         (ada_varobj_ops): Mark "extern".
8620
8621 2014-02-20  Tom Tromey  <tromey@redhat.com>
8622
8623         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8624
8625 2014-02-20  Doug Evans  <xdje42@gmail.com>
8626
8627         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8628         All callers updated.
8629         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8630         All callers updated.
8631         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8632         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8633
8634 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8635             Joel Brobecker  <brobecker@adacore.com>
8636             Doug Evans  <xdje42@gmail.com>
8637
8638         PR symtab/16581
8639         * dwarf2read.c (struct die_info): New member in_process.
8640         (reset_die_in_process): New function.
8641         (process_die): Set it at the start, reset when returning.
8642         (inherit_abstract_dies): Only call process_die if origin_child_die
8643         not already being processed.
8644
8645 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8646
8647         * windows-nat.c (handle_unload_dll): Add function documentation.
8648         (do_initial_windows_stuff): Add comment explaining why we wait
8649         until after inferior initialization has finished before
8650         processing all DLLs.
8651
8652 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8653
8654         * windows-nat.c (get_module_name): Delete.
8655         (windows_get_exec_module_filename): New function, mostly
8656         inspired from get_module_name.
8657         (windows_pid_to_exec_file): Replace call to get_module_name
8658         by call to windows_get_exec_module_filename.
8659
8660 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8661
8662         * windows-nat.c (handle_load_dll): Rewrite this function's
8663         introductory comment.  Remove code using get_module_name
8664         to get the DLL's name.
8665
8666 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8667
8668         * windows-nat.c (get_windows_debug_event): Ignore
8669         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8670         if windows_initialization_done == 0.
8671         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8672         Adjust implementation to always load all DLLs.
8673         (do_initial_windows_stuff): Replace call to
8674         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8675
8676 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8677
8678         * windows-nat.c (_initialize_windows_nat): Deprecate the
8679         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8680         and "assf" aliases into commands, and deprecate them as well.
8681         * NEWS: Add entry explaining that "dll-symbols" and its two
8682         aliases are now deprecated.
8683
8684 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8685
8686         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8687         new-line in debug string.  Remove trailing spaces.
8688
8689 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8690
8691         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8692
8693 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8694
8695         * NEWS: Add entry for the new feature
8696         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8697         and class values.
8698
8699 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8700
8701         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8702
8703 2014-02-19  Pedro Alves  <palves@redhat.com>
8704
8705         * common/ptid.h (struct ptid): Mention that process_stratum
8706         targets should prefer ptid.lwp.
8707
8708 2014-02-19  Pedro Alves  <palves@redhat.com>
8709
8710         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8711         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8712         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8713         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8714         store remote thread ids rather than ptid.tid.
8715         (_initialize_remote): Adjust.
8716
8717 2014-02-19  Tom Tromey  <tromey@redhat.com>
8718
8719         * target.c (target_get_unwinder): Rewrite.
8720         (target_get_tailcall_unwinder): Rewrite.
8721         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8722         (record_btrace_to_get_tailcall_unwinder): New function.
8723         (init_record_btrace_ops): Update.
8724         * target.h (struct target_ops) <to_get_unwinder,
8725         to_get_tailcall_unwinder>: Now function pointers.  Use
8726         TARGET_DEFAULT_RETURN.
8727
8728 2014-02-19  Tom Tromey  <tromey@redhat.com>
8729
8730         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8731         argument.
8732         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8733
8734 2014-02-19  Tom Tromey  <tromey@redhat.com>
8735
8736         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8737         directly.
8738         * target-delegates.c: Rebuild.
8739         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8740         TARGET_DEFAULT_FUNC.
8741         * target.c (default_target_decr_pc_after_break): Rename from
8742         forward_target_decr_pc_after_break.  Simplify.
8743         (target_decr_pc_after_break): Rely on delegation.
8744
8745 2014-02-19  Tom Tromey  <tromey@redhat.com>
8746
8747         * target.c (update_current_target): Do not INHERIT to_doc or
8748         to_magic.  Do not de_fault to_open or to_close.
8749
8750 2014-02-19  Tom Tromey  <tromey@redhat.com>
8751
8752         * gcore.h (objfile_find_memory_regions): Declare.
8753         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8754         "self" argument.
8755         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8756         * exec.c: Include gcore.h.
8757         (exec_set_find_memory_regions): Remove.
8758         (exec_find_memory_regions): Remove.
8759         (exec_do_find_memory_regions): Remove.
8760         (init_exec_ops): Update.
8761         * defs.h (exec_set_find_memory_regions): Remove.
8762
8763 2014-02-19  Tom Tromey  <tromey@redhat.com>
8764
8765         * target-delegates.c: Rebuild.
8766         * target.h (struct target_ops) <to_extra_thread_info,
8767         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8768         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8769         not 0, in TARGET_DEFAULT_RETURN.
8770
8771 2014-02-19  Tom Tromey  <tromey@redhat.com>
8772
8773         * target.c (complete_target_initialization): Remove casts.  Use
8774         return_zero_has_execution.
8775         (return_zero): Add "ignore" argument.
8776         (return_zero_has_execution): New function.
8777         (init_dummy_target): Remove casts.  Use
8778         return_zero_has_execution.
8779
8780 2014-02-19  Tom Tromey  <tromey@redhat.com>
8781
8782         * target.c (update_current_target): Update comments.  Do not
8783         INHERIT to_stratum.
8784
8785 2014-02-19  Tom Tromey  <tromey@redhat.com>
8786
8787         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8788         needed.
8789         * corelow.c (core_read_description): Delegate when needed.
8790         * remote.c (remote_read_description): Delegate when needed.
8791         * target-delegates.c: Rebuild.
8792         * target.c (target_read_description): Rewrite.
8793         * target.h (struct target_ops) <to_read_description>: Update
8794         comment.  Use TARGET_DEFAULT_RETURN.
8795
8796 2014-02-19  Tom Tromey  <tromey@redhat.com>
8797
8798         * target-delegates.c: Rebuild.
8799         * target.c (update_current_target): Don't inherit or default
8800         to_can_run.
8801         (find_default_run_target): Check against delegate_can_run.
8802         * target.h (struct target_ops) <to_can_run>: Use
8803         TARGET_DEFAULT_RETURN.
8804
8805 2014-02-19  Tom Tromey  <tromey@redhat.com>
8806
8807         * target-delegates.c: Rebuild.
8808         * target.c (target_disconnect): Unconditionally delegate.
8809         * target.h (struct target_ops) <to_disconnect>: Use
8810         TARGET_DEFAULT_NORETURN.
8811
8812 2014-02-19  Tom Tromey  <tromey@redhat.com>
8813
8814         * record.c (record_stop): Unconditionally delegate.
8815         * target-delegates.c: Rebuild.
8816         * target.c (target_stop_recording): Unconditionally delegate.
8817         * target.h (struct target_ops) <to_stop_recording>: Use
8818         TARGET_DEFAULT_IGNORE.
8819
8820 2014-02-19  Tom Tromey  <tromey@redhat.com>
8821
8822         * target-delegates.c: Rebuild.
8823         * target.c (target_enable_btrace): Unconditionally delegate.
8824         * target.h (struct target_ops) <to_enable_btrace>: Use
8825         TARGET_DEFAULT_NORETURN.
8826
8827 2014-02-19  Tom Tromey  <tromey@redhat.com>
8828
8829         * target-delegates.c: Rebuild.
8830         * target.c (target_read_btrace): Unconditionally delegate.
8831         * target.h (struct target_ops) <to_read_btrace>: Use
8832         TARGET_DEFAULT_NORETURN.
8833
8834 2014-02-19  Tom Tromey  <tromey@redhat.com>
8835
8836         * target-delegates.c: Rebuild.
8837         * target.c (target_teardown_btrace): Unconditionally delegate.
8838         * target.h (struct target_ops) <to_teardown_btrace>: Use
8839         TARGET_DEFAULT_NORETURN.
8840
8841 2014-02-19  Tom Tromey  <tromey@redhat.com>
8842
8843         * target-delegates.c: Rebuild.
8844         * target.c (target_disable_btrace): Unconditionally delegate.
8845         * target.h (struct target_ops) <to_disable_btrace>: Use
8846         TARGET_DEFAULT_NORETURN.
8847
8848 2014-02-19  Tom Tromey  <tromey@redhat.com>
8849
8850         * target-delegates.c: Rebuild.
8851         * target.c (default_search_memory): New function.
8852         (simple_search_memory): Update comment.
8853         (target_search_memory): Unconditionally delegate.
8854         * target.h (struct target_ops) <to_search_memory>: Use
8855         TARGET_DEFAULT_FUNC.
8856
8857 2014-02-19  Tom Tromey  <tromey@redhat.com>
8858
8859         * auxv.c (default_auxv_parse): No longer static.
8860         (target_auxv_parse): Unconditionally delegate.
8861         * auxv.h (default_auxv_parse): Declare.
8862         * target-delegates.c: Rebuild.
8863         * target.c: Include auxv.h.
8864         * target.h (struct target_ops) <to_auxv_parse>: Use
8865         TARGET_DEFAULT_FUNC.
8866
8867 2014-02-19  Tom Tromey  <tromey@redhat.com>
8868
8869         * target-delegates.c: Rebuild.
8870         * target.c (target_memory_map): Unconditionally delegate.
8871         * target.h (struct target_ops) <to_memory_map>: Use
8872         TARGET_DEFAULT_RETURN.
8873
8874 2014-02-19  Tom Tromey  <tromey@redhat.com>
8875
8876         * target-delegates.c: Rebuild.
8877         * target.c (target_thread_alive): Unconditionally delegate.
8878         * target.h (struct target_ops) <to_thread_alive>: Use
8879         TARGET_DEFAULT_RETURN.
8880
8881 2014-02-19  Tom Tromey  <tromey@redhat.com>
8882
8883         * target-delegates.c: Rebuild.
8884         * target.c (target_save_record): Unconditionally delegate.
8885         * target.h (struct target_ops) <to_save_record>: Use
8886         TARGET_DEFAULT_NORETURN.
8887
8888 2014-02-19  Tom Tromey  <tromey@redhat.com>
8889
8890         * target-delegates.c: Rebuild.
8891         * target.c (target_delete_record): Unconditionally delegate.
8892         * target.h (struct target_ops) <to_delete_record>: Use
8893         TARGET_DEFAULT_NORETURN.
8894
8895 2014-02-19  Tom Tromey  <tromey@redhat.com>
8896
8897         * target-delegates.c: Rebuild.
8898         * target.c (target_record_is_replaying): Unconditionally
8899         delegate.
8900         * target.h (struct target_ops) <to_record_is_replaying>: Use
8901         TARGET_DEFAULT_RETURN.
8902
8903 2014-02-19  Tom Tromey  <tromey@redhat.com>
8904
8905         * target-delegates.c: Rebuild.
8906         * target.c (target_goto_record_begin): Unconditionally delegate.
8907         * target.h (struct target_ops) <to_goto_record_begin>: Use
8908         TARGET_DEFAULT_NORETURN.
8909
8910 2014-02-19  Tom Tromey  <tromey@redhat.com>
8911
8912         * target-delegates.c: Rebuild.
8913         * target.c (target_goto_record_end): Unconditionally delegate.
8914         * target.h (struct target_ops) <to_goto_record_end>: Use
8915         TARGET_DEFAULT_NORETURN.
8916
8917 2014-02-19  Tom Tromey  <tromey@redhat.com>
8918
8919         * target-delegates.c: Rebuild.
8920         * target.c (target_goto_record): Unconditionally delegate.
8921         * target.h (struct target_ops) <to_goto_record>: Use
8922         TARGET_DEFAULT_NORETURN.
8923
8924 2014-02-19  Tom Tromey  <tromey@redhat.com>
8925
8926         * target-delegates.c: Rebuild.
8927         * target.c (target_insn_history): Unconditionally delegate.
8928         * target.h (struct target_ops) <to_insn_history>: Use
8929         TARGET_DEFAULT_NORETURN.
8930
8931 2014-02-19  Tom Tromey  <tromey@redhat.com>
8932
8933         * target-delegates.c: Rebuild.
8934         * target.c (target_insn_history_from): Unconditionally delegate.
8935         * target.h (struct target_ops) <to_insn_history_from>: Use
8936         TARGET_DEFAULT_NORETURN.
8937
8938 2014-02-19  Tom Tromey  <tromey@redhat.com>
8939
8940         * target-delegates.c: Rebuild.
8941         * target.c (target_insn_history_range): Unconditionally delegate.
8942         * target.h (struct target_ops) <to_insn_history_range>: Use
8943         TARGET_DEFAULT_NORETURN.
8944
8945 2014-02-19  Tom Tromey  <tromey@redhat.com>
8946
8947         * target-delegates.c: Rebuild.
8948         * target.c (target_call_history): Unconditionally delegate.
8949         * target.h (struct target_ops) <to_call_history>: Use
8950         TARGET_DEFAULT_NORETURN.
8951
8952 2014-02-19  Tom Tromey  <tromey@redhat.com>
8953
8954         * target-delegates.c: Rebuild.
8955         * target.c (target_call_history_from): Unconditionally delegate.
8956         * target.h (struct target_ops) <to_call_history_from>: Use
8957         TARGET_DEFAULT_NORETURN.
8958
8959 2014-02-19  Tom Tromey  <tromey@redhat.com>
8960
8961         * target-delegates.c: Rebuild.
8962         * target.c (target_call_history_range): Unconditionally delegate.
8963         * target.h (struct target_ops) <to_call_history_range>: Use
8964         TARGET_DEFAULT_NORETURN.
8965
8966 2014-02-19  Tom Tromey  <tromey@redhat.com>
8967
8968         * target-delegates.c: Rebuild.
8969         * target.c (target_verify_memory): Unconditionally delegate.
8970         * target.h (struct target_ops) <to_verify_memory>: Use
8971         TARGET_DEFAULT_NORETURN.
8972
8973 2014-02-19  Tom Tromey  <tromey@redhat.com>
8974
8975         * target-delegates.c: Rebuild.
8976         * target.c (target_core_of_thread): Unconditionally delegate.
8977         * target.h (struct target_ops) <to_core_of_thread>: Use
8978         TARGET_DEFAULT_RETURN.
8979
8980 2014-02-19  Tom Tromey  <tromey@redhat.com>
8981
8982         * target-delegates.c: Rebuild.
8983         * target.c (target_flash_done): Unconditionally delegate.
8984         * target.h (struct target_ops) <to_flash_done>: Use
8985         TARGET_DEFAULT_NORETURN.
8986
8987 2014-02-19  Tom Tromey  <tromey@redhat.com>
8988
8989         * target-delegates.c: Rebuild.
8990         * target.c (target_flash_erase): Unconditionally delegate.
8991         * target.h (struct target_ops) <to_flash_erase>: Use
8992         TARGET_DEFAULT_NORETURN.
8993
8994 2014-02-19  Tom Tromey  <tromey@redhat.com>
8995
8996         * target-delegates.c: Rebuild.
8997         * target.c (target_get_section_table): Unconditionally delegate.
8998         * target.h (struct target_ops) <to_get_section_table>: Use
8999         TARGET_DEFAULT_RETURN.
9000
9001 2014-02-19  Tom Tromey  <tromey@redhat.com>
9002
9003         * target-delegates.c: Rebuild.
9004         * target.c (target_pid_to_str): Unconditionally delegate.
9005         (init_dummy_target): Don't initialize to_pid_to_str.
9006         (default_pid_to_str): Rename from dummy_pid_to_str.
9007         * target.h (struct target_ops) <to_pid_to_str>: Use
9008         TARGET_DEFAULT_FUNC.
9009
9010 2014-02-19  Tom Tromey  <tromey@redhat.com>
9011
9012         * target-delegates.c: Rebuild.
9013         * target.c (target_find_new_threads): Unconditionally delegate.
9014         * target.h (struct target_ops) <to_find_new_threads>: Use
9015         TARGET_DEFAULT_RETURN.
9016
9017 2014-02-19  Tom Tromey  <tromey@redhat.com>
9018
9019         * target-delegates.c: Rebuild.
9020         * target.c (target_program_signals): Unconditionally delegate.
9021         * target.h (struct target_ops) <to_program_signals>: Use
9022         TARGET_DEFAULT_IGNORE.
9023
9024 2014-02-19  Tom Tromey  <tromey@redhat.com>
9025
9026         * target-delegates.c: Rebuild.
9027         * target.c (target_pass_signals): Unconditionally delegate.
9028         * target.h (struct target_ops) <to_pass_signals>: Use
9029         TARGET_DEFAULT_IGNORE.
9030
9031 2014-02-19  Tom Tromey  <tromey@redhat.com>
9032
9033         * target-delegates.c: Rebuild.
9034         * target.c (default_mourn_inferior): New function.
9035         (target_mourn_inferior): Unconditionally delegate.
9036         * target.h (struct target_ops) <to_mourn_inferior>: Use
9037         TARGET_DEFAULT_FUNC.
9038
9039 2014-02-19  Tom Tromey  <tromey@redhat.com>
9040
9041         * target-delegates.c: Rebuild.
9042         * target.c (default_follow_fork): New function.
9043         (target_follow_fork): Unconditionally delegate.
9044         * target.h (struct target_ops) <to_follow_fork>: Use
9045         TARGET_DEFAULT_FUNC.
9046
9047 2014-02-19  Tom Tromey  <tromey@redhat.com>
9048
9049         * target-delegates.c: Rebuild.
9050         * target.c (target_kill): Unconditionally delegate.
9051         * target.h (struct target_ops) <to_kill>: Use
9052         TARGET_DEFAULT_NORETURN.
9053
9054 2014-02-19  Tom Tromey  <tromey@redhat.com>
9055
9056         * target-delegates.c: Rebuild.
9057         * target.c (target_masked_watch_num_registers): Unconditionally
9058         delegate.
9059         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9060         Use TARGET_DEFAULT_RETURN.
9061
9062 2014-02-19  Tom Tromey  <tromey@redhat.com>
9063
9064         * target-delegates.c: Rebuild.
9065         * target.c (target_remove_mask_watchpoint): Unconditionally
9066         delegate.
9067         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9068         TARGET_DEFAULT_RETURN.
9069
9070 2014-02-19  Tom Tromey  <tromey@redhat.com>
9071
9072         * target-delegates.c: Rebuild.
9073         * target.c (target_insert_mask_watchpoint): Unconditionally
9074         delegate.
9075         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9076         TARGET_DEFAULT_RETURN.
9077
9078 2014-02-19  Tom Tromey  <tromey@redhat.com>
9079
9080         * target-delegates.c: Rebuild.
9081         * target.c (target_ranged_break_num_registers): Unconditionally
9082         delegate.
9083         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9084         Use TARGET_DEFAULT_RETURN.
9085
9086 2014-02-19  Tom Tromey  <tromey@redhat.com>
9087
9088         * target-delegates.c: Rebuild.
9089         * target.c (target_fetch_registers): Unconditionally delegate.
9090         * target.h (struct target_ops) <to_fetch_registers>: Use
9091         TARGET_DEFAULT_NORETURN.
9092
9093 2014-02-19  Tom Tromey  <tromey@redhat.com>
9094
9095         * target-delegates.c: Rebuild.
9096         * target.c (update_current_target): Don't inherit or default
9097         to_stop.
9098         * target.h (struct target_ops) <to_stop>: Use
9099         TARGET_DEFAULT_IGNORE.
9100
9101 2014-02-19  Tom Tromey  <tromey@redhat.com>
9102
9103         * target-delegates.c: Rebuild.
9104         * target.c (update_current_target): Don't inherit or default
9105         to_can_run_breakpoint_commands.
9106         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9107         Use TARGET_DEFAULT_RETURN.
9108
9109 2014-02-19  Tom Tromey  <tromey@redhat.com>
9110
9111         * target-delegates.c: Rebuild.
9112         * target.c (update_current_target): Don't inherit or default
9113         to_supports_evaluation_of_breakpoint_conditions.
9114         * target.h (struct target_ops)
9115         <to_supports_evaluation_of_breakpoint_conditions>: Use
9116         TARGET_DEFAULT_RETURN.
9117
9118 2014-02-19  Tom Tromey  <tromey@redhat.com>
9119
9120         * target-delegates.c: Rebuild.
9121         * target.c (update_current_target): Don't inherit or default
9122         to_augmented_libraries_svr4_read.
9123         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9124         Use TARGET_DEFAULT_RETURN.
9125
9126 2014-02-19  Tom Tromey  <tromey@redhat.com>
9127
9128         * target-delegates.c: Rebuild.
9129         * target.c (update_current_target): Don't inherit or default
9130         to_can_use_agent.
9131         * target.h (struct target_ops) <to_can_use_agent>: Use
9132         TARGET_DEFAULT_RETURN.
9133
9134 2014-02-19  Tom Tromey  <tromey@redhat.com>
9135
9136         * target-delegates.c: Rebuild.
9137         * target.c (update_current_target): Don't inherit or default
9138         to_use_agent.
9139         * target.h (struct target_ops) <to_use_agent>: Use
9140         TARGET_DEFAULT_NORETURN.
9141
9142 2014-02-19  Tom Tromey  <tromey@redhat.com>
9143
9144         * target-delegates.c: Rebuild.
9145         * target.c (update_current_target): Don't inherit or default
9146         to_traceframe_info.
9147         (return_null): Remove.
9148         * target.h (struct target_ops) <to_traceframe_info>: Use
9149         TARGET_DEFAULT_RETURN.
9150
9151 2014-02-19  Tom Tromey  <tromey@redhat.com>
9152
9153         * target-delegates.c: Rebuild.
9154         * target.c (update_current_target): Don't inherit or default
9155         to_static_tracepoint_markers_by_strid.
9156         * target.h (struct target_ops)
9157         <to_static_tracepoint_markers_by_strid>: Use
9158         TARGET_DEFAULT_NORETURN.
9159
9160 2014-02-19  Tom Tromey  <tromey@redhat.com>
9161
9162         * target-delegates.c: Rebuild.
9163         * target.c (update_current_target): Don't inherit or default
9164         to_static_tracepoint_marker_at.
9165         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9166         Use TARGET_DEFAULT_RETURN.
9167
9168 2014-02-19  Tom Tromey  <tromey@redhat.com>
9169
9170         * target-delegates.c: Rebuild.
9171         * target.c (update_current_target): Don't inherit or default
9172         to_set_permissions.
9173         * target.h (struct target_ops) <to_set_permissions>: Use
9174         TARGET_DEFAULT_IGNORE.
9175
9176 2014-02-19  Tom Tromey  <tromey@redhat.com>
9177
9178         * target-delegates.c: Rebuild.
9179         * target.c (update_current_target): Don't inherit or default
9180         to_get_tib_address.
9181         * target.h (struct target_ops) <to_get_tib_address>: Use
9182         TARGET_DEFAULT_NORETURN.
9183
9184 2014-02-19  Tom Tromey  <tromey@redhat.com>
9185
9186         * target-delegates.c: Rebuild.
9187         * target.c (update_current_target): Don't inherit or default
9188         to_set_trace_notes.
9189         * target.h (struct target_ops) <to_set_trace_notes>: Use
9190         TARGET_DEFAULT_RETURN.
9191
9192 2014-02-19  Tom Tromey  <tromey@redhat.com>
9193
9194         * target-delegates.c: Rebuild.
9195         * target.c (update_current_target): Don't initialize
9196         to_set_trace_buffer_size.
9197         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9198         TARGET_DEFAULT_IGNORE.
9199
9200 2014-02-19  Tom Tromey  <tromey@redhat.com>
9201
9202         * target-delegates.c: Rebuild.
9203         * target.c (update_current_target): Don't inherit or default
9204         to_set_circular_trace_buffer.
9205         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9206         TARGET_DEFAULT_IGNORE.
9207
9208 2014-02-19  Tom Tromey  <tromey@redhat.com>
9209
9210         * target-delegates.c: Rebuild.
9211         * target.c (update_current_target): Don't inherit or default
9212         to_set_disconnected_tracing.
9213         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9214         TARGET_DEFAULT_IGNORE.
9215
9216 2014-02-19  Tom Tromey  <tromey@redhat.com>
9217
9218         * target-delegates.c: Rebuild.
9219         * target.c (update_current_target): Don't inherit or default
9220         to_get_min_fast_tracepoint_insn_len.
9221         (return_minus_one): Remove.
9222         * target.h (struct target_ops)
9223         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9224
9225 2014-02-19  Tom Tromey  <tromey@redhat.com>
9226
9227         * target-delegates.c: Rebuild.
9228         * target.c (update_current_target): Don't inherit or default
9229         to_get_raw_trace_data.
9230         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9231         TARGET_DEFAULT_NORETURN.
9232
9233 2014-02-19  Tom Tromey  <tromey@redhat.com>
9234
9235         * target-delegates.c: Rebuild.
9236         * target.c (update_current_target): Don't inherit or default
9237         to_upload_trace_state_variables.
9238         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9239         Use TARGET_DEFAULT_RETURN.
9240
9241 2014-02-19  Tom Tromey  <tromey@redhat.com>
9242
9243         * target-delegates.c: Rebuild.
9244         * target.c (update_current_target): Don't inherit or default
9245         to_upload_tracepoints.
9246         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9247         TARGET_DEFAULT_RETURN.
9248
9249 2014-02-19  Tom Tromey  <tromey@redhat.com>
9250
9251         * target-delegates.c: Rebuild.
9252         * target.c (update_current_target): Don't inherit or default
9253         to_save_trace_data.
9254         * target.h (struct target_ops) <to_save_trace_data>: Use
9255         TARGET_DEFAULT_NORETURN.
9256
9257 2014-02-19  Tom Tromey  <tromey@redhat.com>
9258
9259         * target-delegates.c: Rebuild.
9260         * target.c (update_current_target): Don't inherit or default
9261         to_get_trace_state_variable_value.
9262         * target.h (struct target_ops)
9263         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9264
9265 2014-02-19  Tom Tromey  <tromey@redhat.com>
9266
9267         * target-delegates.c: Rebuild.
9268         * target.c (update_current_target): Don't inherit or default
9269         to_trace_find.
9270         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9271
9272 2014-02-19  Tom Tromey  <tromey@redhat.com>
9273
9274         * target-delegates.c: Rebuild.
9275         * target.c (update_current_target): Don't inherit or default
9276         to_trace_stop.
9277         * target.h (struct target_ops) <to_trace_stop>: Use
9278         TARGET_DEFAULT_NORETURN.
9279
9280 2014-02-19  Tom Tromey  <tromey@redhat.com>
9281
9282         * target-delegates.c: Rebuild.
9283         * target.c (update_current_target): Don't inherit or default
9284         to_get_tracepoint_status.
9285         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9286         TARGET_DEFAULT_NORETURN.
9287
9288 2014-02-19  Tom Tromey  <tromey@redhat.com>
9289
9290         * target-delegates.c: Rebuild.
9291         * target.c (update_current_target): Don't inherit or default
9292         to_get_trace_status.
9293         * target.h (struct target_ops) <to_get_trace_status>: Use
9294         TARGET_DEFAULT_RETURN.
9295
9296 2014-02-19  Tom Tromey  <tromey@redhat.com>
9297
9298         * target-delegates.c: Rebuild.
9299         * target.c (update_current_target): Don't inherit or default
9300         to_trace_start.
9301         * target.h (struct target_ops) <to_trace_start>: Use
9302         TARGET_DEFAULT_NORETURN.
9303
9304 2014-02-19  Tom Tromey  <tromey@redhat.com>
9305
9306         * target-delegates.c: Rebuild.
9307         * target.c (update_current_target): Don't inherit or default
9308         to_trace_set_readonly_regions.
9309         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9310         Use TARGET_DEFAULT_NORETURN.
9311
9312 2014-02-19  Tom Tromey  <tromey@redhat.com>
9313
9314         * target-delegates.c: Rebuild.
9315         * target.c (update_current_target): Don't inherit or default
9316         to_disable_tracepoint.
9317         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9318         TARGET_DEFAULT_NORETURN.
9319
9320 2014-02-19  Tom Tromey  <tromey@redhat.com>
9321
9322         * target-delegates.c: Rebuild.
9323         * target.c (update_current_target): Don't inherit or default
9324         to_enable_tracepoint.
9325         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9326         TARGET_DEFAULT_NORETURN.
9327
9328 2014-02-19  Tom Tromey  <tromey@redhat.com>
9329
9330         * target-delegates.c: Rebuild.
9331         * target.c (update_current_target): Don't inherit or default
9332         to_download_trace_state_variable.
9333         * target.h (struct target_ops) <to_download_trace_state_variable>:
9334         Use TARGET_DEFAULT_NORETURN.
9335
9336 2014-02-19  Tom Tromey  <tromey@redhat.com>
9337
9338         * target-delegates.c: Rebuild.
9339         * target.c (update_current_target): Don't inherit or default
9340         to_can_download_tracepoint.
9341         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9342         TARGET_DEFAULT_RETURN.
9343
9344 2014-02-19  Tom Tromey  <tromey@redhat.com>
9345
9346         * target-delegates.c: Rebuild.
9347         * target.c (update_current_target): Don't inherit or default
9348         to_download_tracepoint.
9349         * target.h (struct target_ops) <to_download_tracepoint>: Use
9350         TARGET_DEFAULT_NORETURN.
9351
9352 2014-02-19  Tom Tromey  <tromey@redhat.com>
9353
9354         * target-delegates.c: Rebuild.
9355         * target.c (update_current_target): Don't inherit or default
9356         to_trace_init.
9357         * target.h (struct target_ops) <to_trace_init>: Use
9358         TARGET_DEFAULT_RETURN.
9359
9360 2014-02-19  Tom Tromey  <tromey@redhat.com>
9361
9362         * target-delegates.c: Rebuild.
9363         * target.c (update_current_target): Don't inherit or default
9364         to_supports_string_tracing.
9365         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9366         TARGET_DEFAULT_RETURN.
9367
9368 2014-02-19  Tom Tromey  <tromey@redhat.com>
9369
9370         * target-delegates.c: Rebuild.
9371         * target.c (update_current_target): Don't inherit or default
9372         to_supports_enable_disable_tracepoint.
9373         * target.h (struct target_ops)
9374         <to_supports_enable_disable_tracepoint>: Use
9375         TARGET_DEFAULT_RETURN.
9376
9377 2014-02-19  Tom Tromey  <tromey@redhat.com>
9378
9379         * target-delegates.c: Rebuild.
9380         * target.c (update_current_target): Don't inherit or default
9381         to_supports_multi_process.
9382         * target.h (struct target_ops) <to_supports_multi_process>: Use
9383         TARGET_DEFAULT_RETURN.
9384
9385 2014-02-19  Tom Tromey  <tromey@redhat.com>
9386
9387         * target-delegates.c: Rebuild.
9388         * target.c (update_current_target): Don't inherit or default
9389         to_get_ada_task_ptid.
9390         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9391         TARGET_DEFAULT_FUNC.
9392
9393 2014-02-19  Tom Tromey  <tromey@redhat.com>
9394
9395         * target-delegates.c: Rebuild.
9396         * target.c (update_current_target): Don't inherit or default
9397         to_thread_architecture.
9398         * target.h (struct target_ops) <to_thread_architecture>: Use
9399         TARGET_DEFAULT_FUNC.
9400
9401 2014-02-19  Tom Tromey  <tromey@redhat.com>
9402
9403         * target-delegates.c: Rebuild.
9404         * target.c (update_current_target): Don't inherit or default
9405         to_execution_direction.
9406         * target.h (struct target_ops) <to_execution_direction>: Use
9407         TARGET_DEFAULT_FUNC.
9408
9409 2014-02-19  Tom Tromey  <tromey@redhat.com>
9410
9411         * target-delegates.c: Rebuild.
9412         * target.c (update_current_target): Don't inherit or default
9413         to_can_execute_reverse.
9414         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9415         TARGET_DEFAULT_RETURN.
9416         (target_can_execute_reverse): Unconditionally delegate.
9417
9418 2014-02-19  Tom Tromey  <tromey@redhat.com>
9419
9420         * target-delegates.c: Rebuild.
9421         * target.c (update_current_target): Don't inherit or default
9422         to_goto_bookmark.
9423         (dummy_goto_bookmark): Remove.
9424         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9425         * target.h (struct target_ops) <to_goto_bookmark>: Use
9426         TARGET_DEFAULT_NORETURN.
9427
9428 2014-02-19  Tom Tromey  <tromey@redhat.com>
9429
9430         * target-delegates.c: Rebuild.
9431         * target.c (update_current_target): Don't inherit or default
9432         to_get_bookmark.
9433         (dummy_get_bookmark): Remove.
9434         (init_dummy_target): Don't inherit or default to_get_bookmark.
9435         * target.h (struct target_ops) <to_get_bookmark>: Use
9436         TARGET_DEFAULT_NORETURN
9437
9438 2014-02-19  Tom Tromey  <tromey@redhat.com>
9439
9440         * target-delegates.c: Rebuild.
9441         * target.c (update_current_target): Don't inherit or default
9442         to_make_corefile_notes.
9443         (init_dummy_target): Don't initialize to_make_corefile_notes.
9444         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9445         TARGET_DEFAULT_FUNC.
9446
9447 2014-02-19  Tom Tromey  <tromey@redhat.com>
9448
9449         * target-delegates.c: Rebuild.
9450         * target.c (update_current_target): Don't inherit or default
9451         to_find_memory_regions.
9452         (init_dummy_target): Don't initialize to_find_memory_regions.
9453         * target.h (struct target_ops) <to_find_memory_regions>: Use
9454         TARGET_DEFAULT_FUNC.
9455
9456 2014-02-19  Tom Tromey  <tromey@redhat.com>
9457
9458         * target-delegates.c: Rebuild.
9459         * target.c (update_current_target): Don't inherit or default
9460         to_log_command.
9461         * target.h (struct target_ops) <to_log_command>: Use
9462         TARGET_DEFAULT_IGNORE.
9463         (target_log_command): Unconditionally delegate.
9464
9465 2014-02-19  Tom Tromey  <tromey@redhat.com>
9466
9467         * target-delegates.c: Rebuild.
9468         * target.c (update_current_target): Don't inherit or default
9469         to_pid_to_exec_file.
9470         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9471         TARGET_DEFAULT_RETURN.
9472
9473 2014-02-19  Tom Tromey  <tromey@redhat.com>
9474
9475         * target-delegates.c: Rebuild.
9476         * target.c (update_current_target): Don't inherit or default
9477         to_thread_name.
9478         (target_thread_name): Unconditionally delegate.
9479         * target.h (struct target_ops) <to_thread_name>: Use
9480         TARGET_DEFAULT_RETURN.
9481
9482 2014-02-19  Tom Tromey  <tromey@redhat.com>
9483
9484         * target-delegates.c: Rebuild.
9485         * target.c (update_current_target): Don't inherit or default
9486         to_extra_thread_info.
9487         * target.h (struct target_ops) <to_extra_thread_info>: Use
9488         TARGET_DEFAULT_RETURN.
9489
9490 2014-02-19  Tom Tromey  <tromey@redhat.com>
9491
9492         * target-delegates.c: Rebuild.
9493         * target.c (update_current_target): Don't inherit or default
9494         to_has_exited.
9495         * target.h (struct target_ops) <to_has_exited>: Use
9496         TARGET_DEFAULT_RETURN..
9497
9498 2014-02-19  Tom Tromey  <tromey@redhat.com>
9499
9500         * target-delegates.c: Rebuild.
9501         * target.c (update_current_target): Don't inherit or default
9502         to_set_syscall_catchpoint.
9503         (return_one): Remove.
9504         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9505         TARGET_DEFAULT_RETURN.
9506
9507 2014-02-19  Tom Tromey  <tromey@redhat.com>
9508
9509         * target-delegates.c: Rebuild.
9510         * target.c (update_current_target): Don't inherit or default
9511         to_insert_exec_catchpoint.
9512         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9513         TARGET_DEFAULT_RETURN.
9514
9515 2014-01-08  Tom Tromey  <tromey@redhat.com>
9516
9517         * target-delegates.c: Rebuild.
9518         * target.c (update_current_target): Don't inherit or default
9519         to_insert_exec_catchpoint.
9520         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9521         TARGET_DEFAULT_RETURN.
9522
9523 2014-02-19  Tom Tromey  <tromey@redhat.com>
9524
9525         * target-delegates.c: Rebuild.
9526         * target.c (update_current_target): Don't inherit or default
9527         to_remove_vfork_catchpoint.
9528         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9529         TARGET_DEFAULT_RETURN.
9530
9531 2014-02-19  Tom Tromey  <tromey@redhat.com>
9532
9533         * target-delegates.c: Rebuild.
9534         * target.c (update_current_target): Don't inherit or default
9535         to_insert_vfork_catchpoint.
9536         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9537         TARGET_DEFAULT_RETURN.
9538
9539 2014-02-19  Tom Tromey  <tromey@redhat.com>
9540
9541         * target-delegates.c: Rebuild.
9542         * target.c (update_current_target): Don't inherit or default
9543         to_remove_fork_catchpoint.
9544         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9545         TARGET_DEFAULT_RETURN.
9546
9547 2014-02-19  Tom Tromey  <tromey@redhat.com>
9548
9549         * target-delegates.c: Rebuild.
9550         * target.c (update_current_target): Don't inherit or default
9551         to_insert_fork_catchpoint.
9552         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9553         TARGET_DEFAULT_RETURN.
9554
9555 2014-02-19  Tom Tromey  <tromey@redhat.com>
9556
9557         * target-delegates.c: Rebuild.
9558         * target.c (update_current_target): Don't inherit or default
9559         to_post_startup_inferior.
9560         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9561         TARGET_DEFAULT_IGNORE.
9562
9563 2014-02-19  Tom Tromey  <tromey@redhat.com>
9564
9565         * target-delegates.c: Rebuild.
9566         * target.c (update_current_target): Don't inherit or default
9567         to_load.
9568         * target.h (struct target_ops) <to_load>: Use
9569         TARGET_DEFAULT_NORETURN.
9570
9571 2014-02-19  Tom Tromey  <tromey@redhat.com>
9572
9573         * target-delegates.c: Rebuild.
9574         * target.c (update_current_target): Don't inherit or default
9575         to_terminal_info.
9576         * target.h (struct target_ops) <to_terminal_info>: Use
9577         TARGET_DEFAULT_FUNC.
9578
9579 2014-02-19  Tom Tromey  <tromey@redhat.com>
9580
9581         * target-delegates.c: Rebuild.
9582         * target.c (update_current_target): Don't inherit or default
9583         to_terminal_save_ours.
9584         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9585         TARGET_DEFAULT_IGNORE.
9586
9587 2014-02-19  Tom Tromey  <tromey@redhat.com>
9588
9589         * target-delegates.c: Rebuild.
9590         * target.c (update_current_target): Don't inherit or default
9591         to_terminal_ours.
9592         * target.h (struct target_ops) <to_terminal_ours>: Use
9593         TARGET_DEFAULT_IGNORE.
9594
9595 2014-02-19  Tom Tromey  <tromey@redhat.com>
9596
9597         * target-delegates.c: Rebuild.
9598         * target.c (update_current_target): Don't inherit or default
9599         to_terminal_ours_for_output.
9600         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9601         TARGET_DEFAULT_IGNORE.
9602
9603 2014-02-19  Tom Tromey  <tromey@redhat.com>
9604
9605         * target-delegates.c: Rebuild.
9606         * target.c (update_current_target): Don't inherit or default
9607         to_terminal_inferior.
9608         * target.h (struct target_ops) <to_terminal_inferior>: Use
9609         TARGET_DEFAULT_IGNORE.
9610
9611 2014-02-19  Tom Tromey  <tromey@redhat.com>
9612
9613         * target-delegates.c: Rebuild.
9614         * target.c (update_current_target): Don't inherit or default
9615         to_terminal_init.
9616         * target.h (struct target_ops) <to_terminal_init>: Use
9617         TARGET_DEFAULT_IGNORE.
9618
9619 2014-02-19  Tom Tromey  <tromey@redhat.com>
9620
9621         * target-delegates.c: Rebuild.
9622         * target.c (update_current_target): Don't inherit or default
9623         to_can_accel_watchpoint_condition.
9624         * target.h (struct target_ops)
9625         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9626
9627 2014-02-19  Tom Tromey  <tromey@redhat.com>
9628
9629         * target-delegates.c: Rebuild.
9630         * target.c (update_current_target): Don't inherit or default
9631         to_region_ok_for_hw_watchpoint.
9632         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9633         Use TARGET_DEFAULT_FUNC.
9634
9635 2014-02-19  Tom Tromey  <tromey@redhat.com>
9636
9637         * target-delegates.c: Rebuild.
9638         * target.c (update_current_target): Don't inherit or default
9639         to_watchpoint_addr_within_range.
9640         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9641         Use TARGET_DEFAULT_FUNC.
9642
9643 2014-02-19  Tom Tromey  <tromey@redhat.com>
9644
9645         * target-delegates.c: Rebuild.
9646         * target.c (update_current_target): Don't inherit or default
9647         to_remove_watchpoint.
9648         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9649         TARGET_DEFAULT_NORETURN.
9650
9651 2014-02-19  Tom Tromey  <tromey@redhat.com>
9652
9653         * target-delegates.c: Rebuild.
9654         * target.c (update_current_target): Don't inherit or default
9655         to_insert_watchpoint.
9656         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9657         TARGET_DEFAULT_RETURN.
9658
9659 2014-02-19  Tom Tromey  <tromey@redhat.com>
9660
9661         * target-delegates.c: Rebuild.
9662         * target.c (update_current_target): Don't inherit or default
9663         to_remove_hw_breakpoint.
9664         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9665         TARGET_DEFAULT_RETURN.
9666
9667 2014-02-19  Tom Tromey  <tromey@redhat.com>
9668
9669         * target-delegates.c: Rebuild.
9670         * target.c (update_current_target): Don't inherit or default
9671         to_insert_hw_breakpoint.
9672         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9673         TARGET_DEFAULT_RETURN.
9674
9675 2014-02-19  Tom Tromey  <tromey@redhat.com>
9676
9677         * target-delegates.c: Rebuild.
9678         * target.c (update_current_target): Don't inherit or default
9679         to_can_use_hw_breakpoint.
9680         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9681         TARGET_DEFAULT_RETURN.
9682
9683 2014-02-19  Tom Tromey  <tromey@redhat.com>
9684
9685         * target-delegates.c: Rebuild.
9686         * target.c (update_current_target): Don't inherit or default
9687         to_files_info.
9688         * target.h (struct target_ops) <to_files_info>: Use
9689         TARGET_DEFAULT_IGNORE.
9690
9691 2014-02-19  Tom Tromey  <tromey@redhat.com>
9692
9693         * target-delegates.c: Rebuild.
9694         * target.c (update_current_target): Don't inherit or default
9695         to_store.
9696         * target.h (struct target_ops) <to_store>: Use
9697         TARGET_DEFAULT_NORETURN.
9698
9699 2014-02-19  Tom Tromey  <tromey@redhat.com>
9700
9701         * target-delegates.c: Rebuild.
9702         * target.c (update_current_target): Don't inherit or default
9703         to_post_attach.
9704         * target.h (struct target_ops) <to_post_attach>: Use
9705         TARGET_DEFAULT_IGNORE.
9706
9707 2014-02-19  Tom Tromey  <tromey@redhat.com>
9708
9709         * target-delegates.c: Rebuild.
9710         * target.c (update_current_target): Don't inherit or default
9711         to_rcmd.
9712         (default_rcmd): New function.
9713         (do_monitor_command): Unconditionally delegate.
9714         * target.h (struct target_ops) <to_rmcd>: Use
9715         TARGET_DEFAULT_FUNC.
9716
9717 2014-02-19  Tom Tromey  <tromey@redhat.com>
9718
9719         * target-delegates.c: Rebuild.
9720         * target.c (init_dummy_target): Don't initialize to_attach.
9721         (target_attach): Unconditionally delegate.
9722         * target.h (struct target_ops) <to_attach>: Use
9723         TARGET_DEFAULT_FUNC.
9724
9725 2014-02-19  Tom Tromey  <tromey@redhat.com>
9726
9727         * target-delegates.c: Rebuild.
9728         * target.c (target_detach): Unconditionally delegate.
9729         (init_dummy_target): Don't initialize to_detach.
9730         * target.h (struct target_ops) <to_detach>: Use
9731         TARGET_DEFAULT_IGNORE.
9732
9733 2014-02-19  Tom Tromey  <tromey@redhat.com>
9734
9735         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9736         Add argument.
9737         (target_augmented_libraries_svr4_read): Add argument.
9738         * target.c (update_current_target): Update.
9739         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9740         argument.
9741
9742 2014-02-19  Tom Tromey  <tromey@redhat.com>
9743
9744         * target.h (struct target_ops) <to_call_history_range>: Add
9745         argument.
9746         * target.c (target_call_history_range): Add argument.
9747         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9748         argument.
9749         (record_btrace_call_history_from): Update.
9750
9751 2014-02-19  Tom Tromey  <tromey@redhat.com>
9752
9753         * target.h (struct target_ops) <to_call_history_from>: Add
9754         argument.
9755         * target.c (target_call_history_from): Add argument.
9756         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9757         argument.
9758
9759 2014-02-19  Tom Tromey  <tromey@redhat.com>
9760
9761         * target.h (struct target_ops) <to_call_history>: Add argument.
9762         * target.c (target_call_history): Add argument.
9763         * record-btrace.c (record_btrace_call_history): Add 'self'
9764         argument.
9765
9766 2014-02-19  Tom Tromey  <tromey@redhat.com>
9767
9768         * target.h (struct target_ops) <to_insn_history_range>: Add
9769         argument.
9770         * target.c (target_insn_history_range): Add argument.
9771         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9772         argument.
9773         (record_btrace_insn_history_from): Update.
9774
9775 2014-02-19  Tom Tromey  <tromey@redhat.com>
9776
9777         * target.h (struct target_ops) <to_insn_history_from>: Add
9778         argument.
9779         * target.c (target_insn_history_from): Add argument.
9780         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9781         argument.
9782
9783 2014-02-19  Tom Tromey  <tromey@redhat.com>
9784
9785         * target.h (struct target_ops) <to_insn_history>: Add argument.
9786         * target.c (target_insn_history): Add argument.
9787         * record-btrace.c (record_btrace_insn_history): Add 'self'
9788         argument.
9789
9790 2014-02-19  Tom Tromey  <tromey@redhat.com>
9791
9792         * target.h (struct target_ops) <to_goto_record>: Add argument.
9793         * target.c (target_goto_record): Add argument.
9794         * record-full.c (record_full_goto): Add 'self' argument.
9795         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9796
9797 2014-02-19  Tom Tromey  <tromey@redhat.com>
9798
9799         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9800         * target.c (target_goto_record_end): Add argument.
9801         * record-full.c (record_full_goto_end): Add 'self' argument.
9802         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9803
9804 2014-02-19  Tom Tromey  <tromey@redhat.com>
9805
9806         * target.h (struct target_ops) <to_goto_record_begin>: Add
9807         argument.
9808         * target.c (target_goto_record_begin): Add argument.
9809         * record-full.c (record_full_goto_begin): Add 'self' argument.
9810         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9811         argument.
9812
9813 2014-02-19  Tom Tromey  <tromey@redhat.com>
9814
9815         * target.h (struct target_ops) <to_record_is_replaying>: Add
9816         argument.
9817         * target.c (target_record_is_replaying): Add argument.
9818         * record-full.c (record_full_is_replaying): Add 'self' argument.
9819         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9820         argument.
9821         (record_btrace_xfer_partial, record_btrace_store_registers)
9822         (record_btrace_prepare_to_store, record_btrace_resume)
9823         (record_btrace_wait, record_btrace_decr_pc_after_break)
9824         (record_btrace_find_new_threads, record_btrace_thread_alive):
9825         Update.
9826
9827 2014-02-19  Tom Tromey  <tromey@redhat.com>
9828
9829         * target.h (struct target_ops) <to_delete_record>: Add argument.
9830         * target.c (target_delete_record): Add argument.
9831         * record-full.c (record_full_delete): Add 'self' argument.
9832
9833 2014-02-19  Tom Tromey  <tromey@redhat.com>
9834
9835         * target.h (struct target_ops) <to_save_record>: Add argument.
9836         * target.c (target_save_record): Add argument.
9837         * record-full.c (record_full_save): Add 'self' argument.
9838         (record_full_save): Add 'self' argument.
9839
9840 2014-02-19  Tom Tromey  <tromey@redhat.com>
9841
9842         * target.h (struct target_ops) <to_info_record>: Add argument.
9843         * target.c (target_info_record): Add argument.
9844         * record.c (info_record_command): Add argument.
9845         * record-full.c (record_full_info): Add 'self' argument.
9846         * record-btrace.c (record_btrace_info): Add 'self' argument.
9847
9848 2014-02-19  Tom Tromey  <tromey@redhat.com>
9849
9850         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9851         * target.c (target_stop_recording): Add argument.
9852         * record.c (record_stop): Add argument.
9853         * record-btrace.c (record_btrace_stop_recording): Add 'self'
9854         argument.
9855
9856 2014-02-19  Tom Tromey  <tromey@redhat.com>
9857
9858         * target.h (struct target_ops) <to_read_btrace>: Add argument.
9859         * target.c (struct target_ops) <to_read_btrace>: Add argument.
9860         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9861         argument.
9862         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9863         (_initialize_amd64_linux_nat): Use it.
9864         * i386-linux-nat.c (i386_linux_read_btrace): New function.
9865         (_initialize_i386_linux_nat): Use it.
9866
9867 2014-02-19  Tom Tromey  <tromey@redhat.com>
9868
9869         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9870         * target.c (target_teardown_btrace): Add argument.
9871         * remote.c (remote_teardown_btrace): Add 'self' argument.
9872         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9873         argument.
9874         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9875         argument.
9876
9877 2014-02-19  Tom Tromey  <tromey@redhat.com>
9878
9879         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9880         * target.c (target_disable_btrace): Add argument.
9881         * remote.c (remote_disable_btrace): Add 'self' argument.
9882         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9883         argument.
9884         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9885         argument.
9886
9887 2014-02-19  Tom Tromey  <tromey@redhat.com>
9888
9889         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9890         * target.c (target_enable_btrace): Add argument.
9891         * remote.c (remote_enable_btrace): Add 'self' argument.
9892         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9893         argument.
9894         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9895         argument.
9896
9897 2014-02-19  Tom Tromey  <tromey@redhat.com>
9898
9899         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9900         (target_can_use_agent): Add argument.
9901         * target.c (update_current_target): Update.
9902         * remote.c (remote_can_use_agent): Add 'self' argument.
9903         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9904
9905 2014-02-19  Tom Tromey  <tromey@redhat.com>
9906
9907         * target.h (struct target_ops) <to_use_agent>: Add argument.
9908         (target_use_agent): Add argument.
9909         * target.c (update_current_target): Update.
9910         * remote.c (remote_use_agent): Add 'self' argument.
9911         * inf-child.c (inf_child_use_agent): Add 'self' argument.
9912
9913 2014-02-19  Tom Tromey  <tromey@redhat.com>
9914
9915         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9916         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9917         (target_traceframe_info): Add argument.
9918         * target.c (update_current_target): Update.
9919         * remote.c (remote_traceframe_info): Add 'self' argument.
9920         * ctf.c (ctf_traceframe_info): Add 'self' argument.
9921
9922 2014-02-19  Tom Tromey  <tromey@redhat.com>
9923
9924         * target.h (target_static_tracepoint_markers_by_strid): Add
9925         argument.
9926         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9927         'self' argument.
9928         * target.c (update_current_target): Update.
9929         * remote.c (struct target_ops)
9930         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9931         * linux-nat.c (struct target_ops)
9932         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9933
9934 2014-02-19  Tom Tromey  <tromey@redhat.com>
9935
9936         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9937         Add argument.
9938         (target_static_tracepoint_marker_at): Add argument.
9939         * target.c (update_current_target): Update.
9940         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9941         argument.
9942
9943 2014-02-19  Tom Tromey  <tromey@redhat.com>
9944
9945         * target.h (struct target_ops) <to_set_permissions>: Add argument.
9946         (target_set_permissions): Add argument.
9947         * target.c (update_current_target): Update.
9948         * remote.c (remote_set_permissions): Add 'self' argument.
9949         (remote_start_remote): Update.
9950
9951 2014-02-19  Tom Tromey  <tromey@redhat.com>
9952
9953         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9954         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9955         (target_get_tib_address): Add argument.
9956         * target.c (update_current_target): Update.
9957         * remote.c (remote_get_tib_address): Add 'self' argument.
9958
9959 2014-02-19  Tom Tromey  <tromey@redhat.com>
9960
9961         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9962         (target_set_trace_notes): Add argument.
9963         * target.c (update_current_target): Update.
9964         * remote.c (remote_set_trace_notes): Add 'self' argument.
9965
9966 2014-02-19  Tom Tromey  <tromey@redhat.com>
9967
9968         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9969         argument.
9970         (target_set_trace_buffer_size): Add argument.
9971         * target.c (update_current_target): Update.
9972         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9973
9974 2014-02-19  Tom Tromey  <tromey@redhat.com>
9975
9976         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9977         argument.
9978         (target_set_circular_trace_buffer): Add argument.
9979         * target.c (update_current_target): Update.
9980         * remote.c (remote_set_circular_trace_buffer): Add 'self'
9981         argument.
9982
9983 2014-02-19  Tom Tromey  <tromey@redhat.com>
9984
9985         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9986         argument.
9987         (target_set_disconnected_tracing): Add argument.
9988         * target.c (update_current_target): Update.
9989         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9990
9991 2014-02-19  Tom Tromey  <tromey@redhat.com>
9992
9993         * target.h (struct target_ops)
9994         <to_get_min_fast_tracepoint_insn_len>: Add argument.
9995         (target_get_min_fast_tracepoint_insn_len): Add argument.
9996         * target.c (update_current_target): Update.
9997         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9998         argument.
9999
10000 2014-02-19  Tom Tromey  <tromey@redhat.com>
10001
10002         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10003         argument.
10004         (target_get_raw_trace_data): Add argument.
10005         * target.c (update_current_target): Update.
10006         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10007
10008 2014-02-19  Tom Tromey  <tromey@redhat.com>
10009
10010         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10011         Add argument.
10012         (target_upload_trace_state_variables): Add argument.
10013         * target.c (update_current_target): Update.
10014         * remote.c (remote_upload_trace_state_variables): Add 'self'
10015         argument.
10016         (remote_start_remote): Update.
10017
10018 2014-02-19  Tom Tromey  <tromey@redhat.com>
10019
10020         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10021         argument.
10022         (target_upload_tracepoints): Add argument.
10023         * target.c (update_current_target): Update.
10024         * remote.c (remote_upload_tracepoints): Add 'self' argument.
10025         (remote_start_remote): Update.
10026
10027 2014-02-19  Tom Tromey  <tromey@redhat.com>
10028
10029         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10030         (target_save_trace_data): Add argument.
10031         * target.c (update_current_target): Update.
10032         * remote.c (remote_save_trace_data): Add 'self' argument.
10033
10034 2014-02-19  Tom Tromey  <tromey@redhat.com>
10035
10036         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10037         argument.
10038         * target.h (struct target_ops)
10039         <to_get_trace_state_variable_value>: Add argument.
10040         (target_get_trace_state_variable_value): Add argument.
10041         * target.c (update_current_target): Update.
10042         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10043         argument.
10044         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10045
10046 2014-02-19  Tom Tromey  <tromey@redhat.com>
10047
10048         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10049         * target.h (struct target_ops) <to_trace_find>: Add argument.
10050         (target_trace_find): Add argument.
10051         * target.c (update_current_target): Update.
10052         * remote.c (remote_trace_find): Add 'self' argument.
10053         * ctf.c (ctf_trace_find): Add 'self' argument.
10054
10055 2014-02-19  Tom Tromey  <tromey@redhat.com>
10056
10057         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10058         (target_trace_stop): Add argument.
10059         * target.c (update_current_target): Update.
10060         * remote.c (remote_trace_stop): Add 'self' argument.
10061
10062 2014-02-19  Tom Tromey  <tromey@redhat.com>
10063
10064         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10065         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10066         argument.
10067         (target_get_tracepoint_status): Add argument.
10068         * target.c (update_current_target): Update.
10069         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10070
10071 2014-02-19  Tom Tromey  <tromey@redhat.com>
10072
10073         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10074         * target.h (struct target_ops) <to_get_trace_status>: Add
10075         argument.
10076         (target_get_trace_status): Add argument.
10077         * target.c (update_current_target): Update.
10078         * remote.c (remote_get_trace_status): Add 'self' argument.
10079         (remote_start_remote, remote_can_download_tracepoint): Update.
10080         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10081
10082 2014-02-19  Tom Tromey  <tromey@redhat.com>
10083
10084         * target.h (struct target_ops) <to_trace_start>: Add argument.
10085         (target_trace_start): Add argument.
10086         * target.c (update_current_target): Update.
10087         * remote.c (remote_trace_start): Add 'self' argument.
10088
10089 2014-02-19  Tom Tromey  <tromey@redhat.com>
10090
10091         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10092         Add argument.
10093         (target_trace_set_readonly_regions): Add argument.
10094         * target.c (update_current_target): Update.
10095         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10096         argument.
10097
10098 2014-02-19  Tom Tromey  <tromey@redhat.com>
10099
10100         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10101         argument.
10102         (target_disable_tracepoint): Add argument.
10103         * target.c (update_current_target): Update.
10104         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10105
10106 2014-02-19  Tom Tromey  <tromey@redhat.com>
10107
10108         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10109         argument.
10110         (target_enable_tracepoint): Add argument.
10111         * target.c (update_current_target): Update.
10112         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10113
10114 2014-02-19  Tom Tromey  <tromey@redhat.com>
10115
10116         * target.h (struct target_ops) <to_download_trace_state_variable>:
10117         Add argument.
10118         (target_download_trace_state_variable): Add argument.
10119         * target.c (update_current_target): Update.
10120         * remote.c (remote_download_trace_state_variable): Add 'self'
10121         argument.
10122
10123 2014-02-19  Tom Tromey  <tromey@redhat.com>
10124
10125         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10126         argument.
10127         (target_can_download_tracepoint): Add argument.
10128         * target.c (update_current_target): Update.
10129         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10130
10131 2014-02-19  Tom Tromey  <tromey@redhat.com>
10132
10133         * target.h (struct target_ops) <to_download_tracepoint>: Add
10134         argument.
10135         (target_download_tracepoint): Add argument.
10136         * target.c (update_current_target): Update.
10137         * remote.c (remote_download_tracepoint): Add 'self' argument.
10138
10139 2014-02-19  Tom Tromey  <tromey@redhat.com>
10140
10141         * target.h (struct target_ops) <to_trace_init>: Add argument.
10142         (target_trace_init): Add argument.
10143         * target.c (update_current_target): Update.
10144         * remote.c (remote_trace_init): Add 'self' argument.
10145
10146 2014-02-19  Tom Tromey  <tromey@redhat.com>
10147
10148         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10149         * target.c (target_fileio_readlink): Add argument.
10150         * remote.c (remote_hostio_readlink): Add 'self' argument.
10151         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10152
10153 2014-02-19  Tom Tromey  <tromey@redhat.com>
10154
10155         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10156         * target.c (target_fileio_unlink): Add argument.
10157         * remote.c (remote_hostio_unlink): Add 'self' argument.
10158         (remote_file_delete): Update.
10159         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10160
10161 2014-02-19  Tom Tromey  <tromey@redhat.com>
10162
10163         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10164         * target.c (target_fileio_close): Add argument.
10165         * remote.c (remote_hostio_close): Add 'self' argument.
10166         (remote_hostio_close_cleanup): Update.
10167         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10168         Update.
10169         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10170
10171 2014-02-19  Tom Tromey  <tromey@redhat.com>
10172
10173         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10174         * target.c (target_fileio_pread): Add argument.
10175         * remote.c (remote_hostio_pread): Add 'self' argument.
10176         (remote_bfd_iovec_pread, remote_file_get): Update.
10177         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10178
10179 2014-02-19  Tom Tromey  <tromey@redhat.com>
10180
10181         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10182         * target.c (target_fileio_pwrite): Add argument.
10183         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10184         (remote_file_put): Update.
10185         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10186
10187 2014-02-19  Tom Tromey  <tromey@redhat.com>
10188
10189         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10190         * target.c (target_fileio_open): Add argument.
10191         * remote.c (remote_hostio_open): Add 'self' argument.
10192         (remote_bfd_iovec_open): Add 'self' argument.
10193         (remote_file_put): Add 'self' argument.
10194         (remote_file_get): Add 'self' argument.
10195         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10196
10197 2014-02-19  Tom Tromey  <tromey@redhat.com>
10198
10199         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10200         Add argument.
10201         (target_can_run_breakpoint_commands): Add argument.
10202         * target.c (update_current_target): Update.
10203         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10204         argument.
10205         (remote_insert_breakpoint): Add 'self' argument.
10206         (remote_insert_hw_breakpoint): Add 'self' argument.
10207         (remote_can_run_breakpoint_commands): Add 'self' argument.
10208
10209 2014-02-19  Tom Tromey  <tromey@redhat.com>
10210
10211         * target.h (struct target_ops)
10212         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10213         (target_supports_evaluation_of_breakpoint_conditions): Add
10214         argument.
10215         * target.c (update_current_target): Update.
10216         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10217         argument.
10218         (remote_insert_breakpoint): Add 'self' argument.
10219         (remote_insert_hw_breakpoint): Add 'self' argument.
10220         (remote_supports_cond_breakpoints): Add 'self' argument.
10221
10222 2014-02-19  Tom Tromey  <tromey@redhat.com>
10223
10224         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10225         argument.
10226         (target_supports_string_tracing): Add argument.
10227         * target.c (update_current_target): Update.
10228         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10229
10230 2014-02-19  Tom Tromey  <tromey@redhat.com>
10231
10232         * target.h (struct target_ops)
10233         <to_supports_disable_randomization>: Add argument.
10234         * target.c (find_default_supports_disable_randomization): Add
10235         argument.
10236         (target_supports_disable_randomization): Add argument.
10237         (find_default_supports_disable_randomization): Add 'self'
10238         argument.
10239         * remote.c (extended_remote_supports_disable_randomization): Add
10240         'self' argument.
10241         (remote_supports_disable_randomization): Add 'self' argument.
10242         (extended_remote_create_inferior): Update.
10243         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10244         'self' argument.
10245
10246 2014-02-19  Tom Tromey  <tromey@redhat.com>
10247
10248         * target.h (struct target_ops)
10249         <to_supports_enable_disable_tracepoint>: Add argument.
10250         (target_supports_enable_disable_tracepoint): Add argument.
10251         * target.c (update_current_target): Update.
10252         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10253         argument.
10254
10255 2014-02-19  Tom Tromey  <tromey@redhat.com>
10256
10257         * target.h (struct target_ops) <to_supports_multi_process>: Add
10258         argument.
10259         (target_supports_multi_process): Add argument.
10260         * target.c (update_current_target): Update.
10261         * remote.c (remote_supports_multi_process): Add 'self' argument.
10262         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10263         argument.
10264         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10265         argument.
10266
10267 2014-02-19  Tom Tromey  <tromey@redhat.com>
10268
10269         * target.h (struct target_ops) <to_execution_direction>: Add
10270         argument.
10271         (target_execution_direction): Add argument.
10272         * target.c (default_execution_direction): Add 'self' argument.
10273         * record-full.c (record_full_execution_direction): Add 'self'
10274         argument.
10275
10276 2014-02-19  Tom Tromey  <tromey@redhat.com>
10277
10278         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10279         argument.
10280         (target_can_execute_reverse): Add argument.
10281         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10282         * record-full.c (record_full_can_execute_reverse): Add 'self'
10283         argument.
10284         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10285         argument.
10286
10287 2014-02-19  Tom Tromey  <tromey@redhat.com>
10288
10289         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10290         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10291         argument.
10292         (target_get_ada_task_ptid): Add argument.
10293         * target.c (update_current_target): Update.
10294         (default_get_ada_task_ptid): Add 'self' argument.
10295         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10296         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10297         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10298         argument.
10299         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10300         argument.
10301         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10302         argument.
10303         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10304         argument.
10305         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10306         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10307         argument.
10308
10309 2014-02-19  Tom Tromey  <tromey@redhat.com>
10310
10311         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10312         (target_goto_bookmark): Add argument.
10313         * target.c (dummy_goto_bookmark): Add 'self' argument.
10314         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10315
10316 2014-02-19  Tom Tromey  <tromey@redhat.com>
10317
10318         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10319         (target_get_bookmark): Add argument.
10320         * target.c (dummy_get_bookmark): Add 'self' argument.
10321         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10322
10323 2014-02-19  Tom Tromey  <tromey@redhat.com>
10324
10325         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10326         argument.
10327         (target_make_corefile_notes): Add argument.
10328         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10329         * procfs.c (procfs_make_note_section): Add 'self' argument.
10330         (procfs_make_note_section): Add 'self' argument.
10331         (procfs_make_note_section): Add 'self' argument.
10332         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10333         argument.
10334         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10335         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10336         * exec.c (exec_make_note_section): Add 'self' argument.
10337         (exec_make_note_section): Add 'self' argument.
10338
10339 2014-02-19  Tom Tromey  <tromey@redhat.com>
10340
10341         * target.h (struct target_ops) <to_find_memory_regions>: Add
10342         argument.
10343         (target_find_memory_regions): Add argument.
10344         * target.c (dummy_find_memory_regions): Add 'self' argument.
10345         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10346         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10347         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10348         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10349         * exec. (exec_do_find_memory_regions): New global.
10350         (exec_set_find_memory_regions): Rewrite.
10351         (exec_find_memory_regions): New function.
10352         (init_exec_ops): Use exec_find_memory_regions.
10353
10354 2014-02-19  Tom Tromey  <tromey@redhat.com>
10355
10356         * target.h (struct target_ops) <to_supports_non_stop>: Add
10357         argument.
10358         * target.c (find_default_supports_non_stop): Add argument.
10359         (target_supports_non_stop): Add argument.
10360         (find_default_supports_non_stop): Add 'self' argument.
10361         * remote.c (remote_supports_non_stop): Add 'self' argument.
10362         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10363
10364 2014-02-19  Tom Tromey  <tromey@redhat.com>
10365
10366         * target.h (struct target_ops) <to_log_command>: Add argument.
10367         (target_log_command): Add argument.
10368         * serial.h (serial_log_command): Add 'self' argument.
10369         * serial.c (serial_log_command): Add 'self' argument.
10370
10371 2014-02-19  Tom Tromey  <tromey@redhat.com>
10372
10373         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10374         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10375         argument.
10376         (target_pid_to_exec_file): Add argument.
10377         * target.c (debug_to_pid_to_exec_file): Add argument.
10378         (update_current_target): Update.
10379         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10380         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10381         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10382         (linux_handle_extended_wait): Update.
10383         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10384         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10385         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10386         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10387
10388 2014-02-19  Tom Tromey  <tromey@redhat.com>
10389
10390         * target.h (struct target_ops) <to_rcmd>: Add argument.
10391         (target_rcmd): Add argument.
10392         * target.c (debug_to_rcmd): Add argument.
10393         (update_current_target, do_monitor_command): Update.
10394         * remote.c (remote_rcmd): Add 'self' argument.
10395         * monitor.c (monitor_rcmd): Add 'self' argument.
10396
10397 2014-02-19  Tom Tromey  <tromey@redhat.com>
10398
10399         * windows-nat.c (windows_stop): Add 'self' argument.
10400         * target.h (struct target_ops) <to_stop>: Add argument.
10401         * target.c (target_stop): Add argument.
10402         (debug_to_stop): Add argument.
10403         (update_current_target): Update.
10404         * remote.c (remote_stop): Add 'self' argument.
10405         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10406         (gdbsim_cntrl_c): Update.
10407         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10408         * procfs.c (procfs_stop): Add 'self' argument.
10409         * nto-procfs.c (procfs_stop): Add 'self' argument.
10410         * monitor.c (monitor_stop): Add 'self' argument.
10411         (monitor_open): Update.
10412         * linux-nat.c (linux_nat_stop): Add argument.
10413         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10414         * gnu-nat.c (gnu_stop): Add 'self' argument.
10415         * darwin-nat.c (darwin_stop): Add 'self' argument.
10416
10417 2014-02-19  Tom Tromey  <tromey@redhat.com>
10418
10419         * target.h (struct target_ops) <to_thread_name>: Add argument.
10420         * target.c (target_thread_name): Add argument.
10421         (update_current_target): Update.
10422         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10423
10424 2014-02-19  Tom Tromey  <tromey@redhat.com>
10425
10426         * target.h (struct target_ops) <to_extra_thread_info>: Add
10427         argument.
10428         (target_extra_thread_info): Add argument.
10429         * target.c (update_current_target): Update.
10430         * remote.c (remote_threads_extra_info): Add 'self' argument.
10431         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10432         argument.
10433         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10434         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10435         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10436         argument.
10437         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10438         argument.
10439         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10440         argument.
10441         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10442         argument.
10443
10444 2014-02-19  Tom Tromey  <tromey@redhat.com>
10445
10446         * target.h (struct target_ops) <to_program_signals>: Add argument.
10447         * target.c (target_program_signals): Add argument.
10448         * remote.c (remote_program_signals): Add 'self' argument.
10449
10450 2014-02-19  Tom Tromey  <tromey@redhat.com>
10451
10452         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10453         * target.c (target_pass_signals): Add argument.
10454         * remote.c (remote_pass_signals): Add 'self' argument.
10455         (remote_start_remote): Update.
10456         * procfs.c (procfs_pass_signals): Add 'self' argument.
10457         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10458         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10459         (linux_nat_create_inferior, linux_nat_attach): Update.
10460
10461 2014-02-19  Tom Tromey  <tromey@redhat.com>
10462
10463         * windows-nat.c (windows_can_run): Add 'self' argument.
10464         * target.h (struct target_ops) <to_can_run>: Add argument.
10465         (target_can_run): Add argument.
10466         * target.c (debug_to_can_run): Add argument.
10467         (update_current_target): Update.
10468         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10469         * inf-child.c (inf_child_can_run): Add 'self' argument.
10470         * go32-nat.c (go32_can_run): Add 'self' argument.
10471
10472 2014-02-19  Tom Tromey  <tromey@redhat.com>
10473
10474         * target.h (struct target_ops) <to_has_exited>: Add argument.
10475         (target_has_exited): Add argument.
10476         * target.c (debug_to_has_exited): Add argument.
10477         (update_current_target): Update.
10478
10479 2014-02-19  Tom Tromey  <tromey@redhat.com>
10480
10481         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10482         argument.
10483         (target_set_syscall_catchpoint): Add argument.
10484         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10485         argument.
10486         * target.c (update_current_target): Update.
10487
10488 2014-02-19  Tom Tromey  <tromey@redhat.com>
10489
10490         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10491         argument.
10492         (target_remove_exec_catchpoint): Add argument.
10493         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10494         (update_current_target): Update.
10495         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10496         argument.
10497
10498 2014-02-19  Tom Tromey  <tromey@redhat.com>
10499
10500         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10501         argument.
10502         (target_insert_exec_catchpoint): Add argument.
10503         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10504         (update_current_target): Update.
10505         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10506         argument.
10507
10508 2014-02-19  Tom Tromey  <tromey@redhat.com>
10509
10510         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10511         argument.
10512         (target_remove_vfork_catchpoint): Add argument.
10513         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10514         (update_current_target): Update.
10515         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10516         argument.
10517
10518 2014-02-19  Tom Tromey  <tromey@redhat.com>
10519
10520         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10521         argument.
10522         (target_insert_vfork_catchpoint): Add argument.
10523         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10524         (update_current_target): Update.
10525         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10526         argument.
10527
10528 2014-02-19  Tom Tromey  <tromey@redhat.com>
10529
10530         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10531         argument.
10532         (target_remove_fork_catchpoint): Add argument.
10533         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10534         (update_current_target): Update.
10535         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10536         argument.
10537
10538 2014-02-19  Tom Tromey  <tromey@redhat.com>
10539
10540         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10541         argument.
10542         (target_insert_fork_catchpoint): Add argument.
10543         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10544         (update_current_target): Update.
10545         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10546         argument.
10547
10548 2014-02-19  Tom Tromey  <tromey@redhat.com>
10549
10550         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10551         argument.
10552         (target_post_startup_inferior): Add argument.
10553         * target.c (debug_to_post_startup_inferior): Add argument.
10554         (update_current_target): Update.
10555         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10556         argument.
10557         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10558         argument.
10559         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10560         argument.
10561         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10562         argument.
10563         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10564         'self' argument.
10565         (super_post_startup_inferior): Likewise.
10566         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10567         'self' argument.
10568         (super_post_startup_inferior): Likewise.
10569         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10570         Add 'self' argument.
10571         (super_post_startup_inferior): Likewise.
10572
10573 2014-02-19  Tom Tromey  <tromey@redhat.com>
10574
10575         * target.h (struct target_ops) <to_load>: Add argument.
10576         * target.c (target_load): Add argument.
10577         (debug_to_load): Add argument.
10578         (update_current_target): Update.
10579         * remote.c (remote_load): Add 'self' argument.
10580         * remote-sim.c (gdbsim_load): Add 'self' argument.
10581         * remote-mips.c (mips_load): Add 'self' argument.
10582         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10583         * monitor.c (monitor_load): Add 'self' argument.
10584         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10585
10586 2014-02-19  Tom Tromey  <tromey@redhat.com>
10587
10588         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10589         (target_terminal_info): Add argument.
10590         * target.c (debug_to_terminal_info): Add argument.
10591         (default_terminal_info): Likewise.
10592         * inflow.c (child_terminal_info): Add 'self' argument.
10593         * inferior.h (child_terminal_info): Add 'self' argument.
10594         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10595
10596 2014-02-19  Tom Tromey  <tromey@redhat.com>
10597
10598         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10599         argument.
10600         (target_terminal_save_ours): Add argument.
10601         * target.c (debug_to_terminal_save_ours): Add argument.
10602         (update_current_target): Update.
10603         * inflow.c (terminal_save_ours): Add 'self' argument.
10604         * inferior.h (terminal_save_ours): Add 'self' argument.
10605
10606 2014-02-19  Tom Tromey  <tromey@redhat.com>
10607
10608         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10609         (target_terminal_ours): Add argument.
10610         * target.c (debug_to_terminal_ours): Add argument.
10611         (update_current_target): Update.
10612         * remote.c (remote_terminal_ours): Add 'self' argument.
10613         (remote_close): Update.
10614         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10615         * inflow.c (terminal_ours): Add 'self' argument.
10616         * inferior.h (terminal_ours): Add 'self' argument.
10617         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10618
10619 2014-02-19  Pedro Alves  <palves@redhat.com>
10620             Tom Tromey  <tromey@redhat.com>
10621
10622         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10623         argument.
10624         (target_terminal_ours_for_output): Add argument.
10625         * target.c (debug_to_terminal_ours_for_output): Add argument.
10626         (update_current_target): Update.
10627         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10628         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10629         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10630
10631 2014-02-19  Tom Tromey  <tromey@redhat.com>
10632
10633         * target.h (struct target_ops) <to_terminal_inferior>: Add
10634         argument.
10635         * target.c (target_terminal_inferior): Add argument.
10636         (update_current_target): Update.
10637         * remote.c (remote_terminal_inferior): Add 'self' argument.
10638         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10639         * inflow.c (terminal_inferior): Add 'self' argument.
10640         * inferior.h (terminal_inferior): Add 'self' argument.
10641         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10642         (go32_terminal_inferior): Add 'self' argument.
10643
10644 2014-02-19  Tom Tromey  <tromey@redhat.com>
10645
10646         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10647         (target_terminal_init): Add argument.
10648         * target.c (debug_to_terminal_init): Add argument.
10649         (update_current_target): Update.
10650         * inflow.c (terminal_init_inferior): Add 'self' argument.
10651         * inferior.h (terminal_init_inferior): Add 'self' argument.
10652         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10653         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10654
10655 2014-02-19  Tom Tromey  <tromey@redhat.com>
10656
10657         * target.h (struct target_ops)
10658         <to_can_accel_watchpoint_condition>: Add argument.
10659         (target_can_accel_watchpoint_condition): Add argument.
10660         * target.c (debug_to_can_accel_watchpoint_condition): Add
10661         argument.
10662         (update_current_target): Update.
10663         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10664         'self' argument.
10665
10666 2014-02-19  Tom Tromey  <tromey@redhat.com>
10667
10668         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10669         Add argument.
10670         (target_region_ok_for_hw_watchpoint): Add argument.
10671         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10672         (default_region_ok_for_hw_watchpoint): Add argument.
10673         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10674         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10675         argument.
10676         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10677         argument.
10678         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10679         argument.
10680         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10681         'self' argument.
10682         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10683         'self' argument.
10684         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10685         'self' argument.
10686         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10687         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10688         'self' argument.
10689         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10690         Add 'self' argument.
10691
10692 2014-02-19  Tom Tromey  <tromey@redhat.com>
10693
10694         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10695         argument.
10696         (target_insert_watchpoint): Add argument.
10697         * target.c (debug_to_insert_watchpoint): Add argument.
10698         (update_current_target): Update.
10699         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10700         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10701         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10702         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10703         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10704         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10705         argument.
10706         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10707         (procfs_insert_hw_watchpoint): Add 'self' argument.
10708         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10709         argument.
10710         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10711         argument.
10712         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10713         argument.
10714         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10715         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10716         argument.
10717         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10718         'self' argument.
10719
10720 2014-02-19  Tom Tromey  <tromey@redhat.com>
10721
10722         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10723         argument.
10724         (target_remove_watchpoint): Add argument.
10725         * target.c (debug_to_remove_watchpoint): Add argument.
10726         (update_current_target): Update.
10727         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10728         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10729         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10730         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10731         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10732         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10733         argument.
10734         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10735         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10736         argument.
10737         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10738         argument.
10739         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10740         argument.
10741         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10742         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10743         argument.
10744         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10745         'self' argument.
10746
10747 2014-02-19  Tom Tromey  <tromey@redhat.com>
10748
10749         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10750         argument.
10751         (target_remove_hw_breakpoint): Add argument.
10752         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10753         (update_current_target): Update.
10754         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10755         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10756         argument.
10757         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10758         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10759         argument.
10760         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10761         'self' argument.
10762
10763 2014-02-19  Tom Tromey  <tromey@redhat.com>
10764
10765         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10766         argument.
10767         (target_insert_hw_breakpoint): Add argument.
10768         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10769         (update_current_target): Update.
10770         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10771         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10772         argument.
10773         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10774         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10775         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10776         argument.
10777         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10778         'self' argument.
10779
10780 2014-02-19  Tom Tromey  <tromey@redhat.com>
10781
10782         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10783         argument.
10784         (target_can_use_hardware_watchpoint): Add argument.
10785         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10786         (update_current_target): Update.
10787         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10788         argument.
10789         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10790         argument.
10791         * remote.c (remote_check_watch_resources): Add 'self' argument.
10792         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10793         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10794         argument.
10795         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10796         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10797         argument.
10798         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10799         argument.
10800         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10801         argument.
10802         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10803         argument.
10804         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10805         argument.
10806         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10807         argument.
10808         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10809         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10810         argument.
10811         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10812         'self' argument.
10813
10814 2014-02-19  Tom Tromey  <tromey@redhat.com>
10815
10816         * target.h (struct target_ops) <to_post_attach>: Add argument.
10817         (target_post_attach): Add argument.
10818         * target.c (debug_to_post_attach): Add argument.
10819         (update_current_target): Update.
10820         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10821         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10822         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10823         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10824         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10825
10826 2014-02-19  Tom Tromey  <tromey@redhat.com>
10827
10828         * windows-nat.c (windows_close): Add 'self' argument.
10829         * tracepoint.c (tfile_close): Add 'self' argument.
10830         * target.h (struct target_ops) <to_close>: Add argument.
10831         * target.c (target_close): Add argument.
10832         (update_current_target): Update.
10833         * remote.c (remote_close): Add 'self' argument.
10834         * remote-sim.c (gdbsim_close): Add 'self' argument.
10835         * remote-mips.c (mips_close): Add 'self' argument.
10836         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10837         * record-full.c (record_full_close): Add 'self' argument.
10838         * record-btrace.c (record_btrace_close): Add 'self' argument.
10839         * monitor.h (monitor_close): Add 'self' argument.
10840         * monitor.c (monitor_close): Add 'self' argument.
10841         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10842         * linux-nat.c (linux_nat_close): Add argument.
10843         * go32-nat.c (go32_close): Add 'self' argument.
10844         * exec.c (exec_close_1): Add 'self' argument.
10845         * ctf.c (ctf_close): Add 'self' argument.
10846         * corelow.c (core_close): Add 'self' argument.
10847         (core_close_cleanup): Update.
10848         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10849         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10850
10851 2014-02-19  Tom Tromey  <tromey@redhat.com>
10852
10853         * remote.c (remote_load): New function.
10854         (init_remote_ops): Use it.
10855
10856 2014-02-19  Tom Tromey  <tromey@redhat.com>
10857
10858         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10859         argument.
10860         * common/linux-btrace.h (linux_supports_btrace): Update.
10861         * remote.c (remote_supports_btrace): Add "self" argument.
10862         * target-delegates.c: Rebuild.
10863         * target.c (target_supports_btrace): Remove.
10864         * target.h (struct target_ops) <to_supports_btrace>: Add
10865         target_ops argument.
10866         (target_supports_btrace): New define.
10867
10868 2014-02-19  Tom Tromey  <tromey@redhat.com>
10869
10870         * record-full.c (record_full_beneath_to_resume_ops)
10871         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10872         (record_full_beneath_to_wait)
10873         (record_full_beneath_to_store_registers_ops)
10874         (record_full_beneath_to_store_registers)
10875         (record_full_beneath_to_xfer_partial_ops)
10876         (record_full_beneath_to_xfer_partial)
10877         (record_full_beneath_to_insert_breakpoint_ops)
10878         (record_full_beneath_to_insert_breakpoint)
10879         (record_full_beneath_to_remove_breakpoint_ops)
10880         (record_full_beneath_to_remove_breakpoint)
10881         (record_full_beneath_to_stopped_by_watchpoint)
10882         (record_full_beneath_to_stopped_data_address)
10883         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10884         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10885         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10886         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10887         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10888         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10889         (tmp_to_stopped_data_address, tmp_to_async): Remove.
10890         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
10891         (record_full_resume, record_full_wait_1)
10892         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10893         (record_full_store_registers, record_full_xfer_partial)
10894         (record_full_insert_breakpoint, record_full_remove_breakpoint)
10895         (record_full_async, record_full_core_xfer_partial): Use target
10896         delegation.
10897         * target-delegates.c: Rebuild.
10898         * target.c (current_xfer_partial): Remove.
10899         (update_current_target): Do not INHERIT or de_fault
10900         to_insert_breakpoint, to_remove_breakpoint,
10901         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10902         to_is_async_p, to_async.  Do not set to_xfer_partial field.
10903         (default_xfer_partial): Simplify.
10904         (current_xfer_partial): Remove.
10905         (target_wait, target_resume): Simplify.
10906         (find_default_can_async_p, find_default_is_async_p): Update.
10907         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10908         to_xfer_partial, to_stopped_by_watchpoint,
10909         to_stopped_data_address.
10910         (target_store_registers): Simplify.
10911         (forward_target_remove_breakpoint)
10912         (forward_target_insert_breakpoint): Remove.
10913         (target_remove_breakpoint, target_insert_breakpoint)
10914         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10915         * target.h (struct target_ops) <to_resume, to_wait,
10916         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10917         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10918         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10919         markup.
10920         (forward_target_remove_breakpoint)
10921         (forward_target_insert_breakpoint): Remove.
10922         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10923         directly.
10924         (record_btrace_insert_breakpoint): Delegate directly.
10925
10926 2014-02-19  Tom Tromey  <tromey@redhat.com>
10927
10928         PR build/7701:
10929         * target-delegates.c: New file.
10930         * target.c: Include target-delegates.c.
10931         (init_dummy_target): Call install_dummy_methods.
10932         (complete_target_initialization): Call install_delegators.
10933         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10934         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10935         * make-target-delegates: New file.
10936
10937 2014-02-19  Tom Tromey  <tromey@redhat.com>
10938
10939         * record.c (find_record_target): Use find_target_at.
10940         * target.c (find_target_at): New function.
10941         * target.h (find_target_at): Declare.
10942
10943 2014-02-19  Tom Tromey  <tromey@redhat.com>
10944
10945         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10946         Add 'ops' argument.
10947         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10948         'ops' argument.
10949         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10950         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10951         'ops' argument.
10952         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10953         argument.
10954         * linux-nat.c (save_sigtrap): Update.
10955         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10956         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10957         (linux_nat_close): Update.
10958         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10959         argument.
10960         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10961         argument.
10962         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10963         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10964         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10965         (tmp_to_async): Add 'ops' argument.
10966         (record_full_stopped_by_watchpoint, record_full_async)
10967         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10968         argument.
10969         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10970         (m32r_stopped_by_watchpoint): Add 'ops' argument.
10971         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10972         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10973         (remote_is_async_p, remote_async): Add 'ops' argument.
10974         (remote_stopped_data_address): Update.
10975         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10976         * target.c (update_current_target)
10977         (find_default_can_async_p, find_default_is_async_p): Update.
10978         (init_dummy_target): Update.
10979         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10980         * target.h (struct target_ops) <to_stopped_by_watchpoint,
10981         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10982         (target_can_async_p, target_is_async_p, target_async)
10983         (target_stopped_by_watchpoint): Update.
10984
10985 2014-02-19  Yao Qi  <yao@codesourcery.com>
10986
10987         PR gdb/16220
10988         * gdbarch.sh: Remove startup_gdbarch.
10989         * gdbarch.c: Regenerated.
10990         * gdbarch.h: Likewise.
10991
10992 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
10993
10994         * rl78-tdep.c (rl78_g10_register_name): New function.
10995         (rl78_return_value): Add g10 support.
10996         (rl78_gdbarch_init): Register rl78_g10_register_name for the
10997         g10.
10998
10999 2014-02-17  Doug Evans  <xdje42@gmail.com>
11000
11001         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11002         (SUBDIR_GUILE_SRCS): Ditto.
11003         (scm-gsmob.o): Ditto.
11004
11005 2014-02-17  Yao Qi  <yao@codesourcery.com>
11006
11007         * gnu-nat.c (ILL_RPC): Declare defined function.
11008
11009 2014-02-17  Yao Qi  <yao@codesourcery.com>
11010
11011         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11012         mach_msg_type_number_t.
11013         (gnu_write_inferior): Likewise.
11014
11015 2014-02-17  Yao Qi  <yao@codesourcery.com>
11016
11017         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11018         in format string.
11019         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11020         (inf_validate_procs, inf_signal): Likewise.
11021         (S_exception_raise_request): Likewise.
11022         (do_mach_notify_dead_name): Likewise.
11023         (steal_exc_port): Likewise.
11024         (gnu_read_inferior): Change 'copy_count''s type to
11025         mach_msg_type_number_t.
11026         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
11027         format string.
11028
11029 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
11030
11031         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11032         flag.  Adjust all users; in particular...
11033         (gnu_wait): ..., don't decrement its value in here...
11034         (gnu_create_inferior): ..., and instead set the flag in here,
11035         around the startup_inferior call, and call that one with
11036         START_INFERIOR_TRAPS_EXPECTED.
11037
11038         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11039         (ILL_RPC): ... new macro.
11040         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11041         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11042         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11043         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11044         functions with ILL_RPC macro.
11045         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11046         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11047         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11048         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11049         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11050         (S_proc_getlogin_reply, S_proc_getsid_reply)
11051         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11052         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11053         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11054         (S_proc_getnports_reply, S_proc_is_important_reply)
11055         (S_proc_get_code_reply): New stub functions, generated with
11056         ILL_RPC macro.
11057
11058         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11059         collected the type check structures.
11060
11061         * reply_mig_hack.awk: Don't expect to see the auto keyword.
11062
11063 2014-02-14  Doug Evans  <dje@google.com>
11064
11065         * target.c (target_write_partial): Fix result type.
11066
11067 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11068
11069         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11070         the proper offsets to access fpregset_t.
11071
11072 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
11073
11074         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11075         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11076         * h8300-tdep.c (setmachinelist): Remove global.
11077         * hppa-tdep.c (hppa_sigtramp): Remove global.
11078         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11079         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11080         * ravenscar-thread.c (update_target_observer): Remove global.
11081         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11082
11083 2014-02-12  Tom Tromey  <tromey@redhat.com>
11084
11085         * common/rsp-low.c: Update comments.
11086         * common/rsp-low.h: Update comments.
11087
11088 2014-02-12  Tom Tromey  <tromey@redhat.com>
11089
11090         * common/rsp-low.c (convert_ascii_to_int): Remove.
11091         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11092
11093 2014-02-12  Tom Tromey  <tromey@redhat.com>
11094
11095         * common/rsp-low.h (unhexify): Don't declare.
11096         * common/rsp-low.c (unhexify): Remove.
11097
11098 2014-02-12  Tom Tromey  <tromey@redhat.com>
11099
11100         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11101         * common/rsp-low.c (convert_int_to_ascii): Remove.
11102
11103 2014-02-12  Tom Tromey  <tromey@redhat.com>
11104
11105         * common/rsp-low.h (hexify): Don't declare.
11106         * common/rsp-low.c (hexify): Remove.
11107
11108 2014-02-12  Tom Tromey  <tromey@redhat.com>
11109
11110         * common/rsp-low.c (hexify): Never take strlen of argument.
11111
11112 2014-02-12  Tom Tromey  <tromey@redhat.com>
11113
11114         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11115         * remote.c (extended_remote_run, remote_rcmd)
11116         (remote_download_trace_state_variable, remote_save_trace_data)
11117         (remote_set_trace_notes): Update.
11118         * tracepoint.c (encode_source_string, tfile_write_status)
11119         (tfile_write_uploaded_tsv): Update.
11120
11121 2014-02-12  Tom Tromey  <tromey@redhat.com>
11122
11123         * tracepoint.c: Include rsp-low.h.
11124         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11125         * remote.c: Include rsp-low.h.
11126         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11127         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11128         (remote_unescape_input): Move to common/rsp-low.c.
11129         * common/rsp-low.h: New file.
11130         * common/rsp-low.c: New file.
11131         * Makefile.in (SFILES): Add common/rsp-low.c.
11132         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11133         (COMMON_OBS): Add rsp-low.o.
11134         (rsp-low.o): New target.
11135
11136 2014-02-12  Tom Tromey  <tromey@redhat.com>
11137
11138         * utils.h: Include print-utils.h.
11139         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11140         (int_string, core_addr_to_string, core_addr_to_string_nz)
11141         (hex_string, hex_string_custom): Don't declare.
11142         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11143         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11144         (hex_string_custom, int_string, core_addr_to_string)
11145         (core_addr_to_string_nz, host_address_to_string): Move to
11146         common/print-utils.c.
11147         * common/print-utils.h: New file.
11148         * common/print-utils.c: New file
11149         * Makefile.in (SFILES): Add common/print-utils.c.
11150         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11151         (COMMON_OBS): Add print-utils.o.
11152         (print-utils.o): New target.
11153
11154 2014-02-12  Tom Tromey  <tromey@redhat.com>
11155
11156         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11157
11158 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11159
11160         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11161
11162 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11163
11164         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11165         if a PT_IO ptrace request returns sucessfully but indicates that 0
11166         bytes were transferred.
11167
11168 2014-02-12  Pedro Alves  <palves@redhat.com>
11169             Kevin Buettner <kevinb@redhat.com>
11170
11171         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11172         TYPE_INSTANCE_FLAG_CODE_SPACE.
11173
11174 2014-02-12  Pedro Alves  <palves@redhat.com>
11175
11176         * h8300-tdep.c (pseudo_from_raw_register)
11177         (raw_from_pseudo_register): New functions.
11178         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11179         them.
11180
11181 2014-02-12  Pedro Alves  <palves@redhat.com>
11182
11183         * h8300-tdep.c (h8300_register_sim_regno): New function.
11184         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11185         gdbarch_register_sim_regno hook.
11186
11187 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11188
11189         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11190
11191 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11192
11193         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11194
11195 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11196
11197         * obsd-tdep.h (obsd_init_abi): New prototype.
11198         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11199         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11200         (obsd_init_abi): New functions.
11201         * i386obsd-tdep.c: Include "obsd-tdep.h".
11202         (i386obsd_init_abi): Call obsd_init_abi.
11203         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11204         (amd64obsd_init_abi): Call obsd_init_abi.
11205         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11206         obsd-tdep.c to gdb_target_obs.
11207
11208 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11209
11210         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11211         double float arguments to 16-byte in the argument slots.
11212
11213 2014-02-11  Doug Evans  <xdje42@gmail.com>
11214
11215         * configure.ac: Don't crash if pkg-config is not found and guile
11216         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11217         in guile checks.
11218         * configure: Regenerate.
11219
11220 2014-02-11  Yao Qi  <yao@codesourcery.com>
11221
11222         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11223         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11224         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11225         * gnu-nat.c (gnu_xfer_memory): Likewise.
11226         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11227         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11228         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11229         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11230
11231 2014-02-11  Yao Qi  <yao@codesourcery.com>
11232
11233         * target.h (enum target_xfer_error): Rename to ...
11234         (enum target_xfer_status): ... it.  New.  All users updated.
11235         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11236         New.
11237         (TARGET_XFER_STATUS_ERROR_P): New macro.
11238         (target_xfer_error_to_string): Remove declaration.
11239         (target_xfer_status_to_string): Declare.
11240         (target_xfer_partial_ftype): Adjust it.
11241         (struct target_ops) <to_xfer_partial>: Return
11242         target_xfer_status.  Add argument xfered_len.  Update
11243         comments.
11244         * target.c (target_xfer_error_to_string): Rename to ...
11245         (target_xfer_status_to_string): ... it.  New.  All callers
11246         updated.
11247         (target_read_live_memory): Likewise.  Call target_xfer_partial
11248         instead of target_read.
11249         (memory_xfer_live_readonly_partial): Return
11250         target_xfer_status.  Add argument xfered_len.
11251         (raw_memory_xfer_partial): Likewise.
11252         (memory_xfer_partial_1): Likewise.
11253         (memory_xfer_partial): Likewise.
11254         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11255         properly.  Update debug message.
11256         (default_xfer_partial, current_xfer_partial): Likewise.
11257         (target_write_partial): Likewise.
11258         (target_read_partial): Likewise.  All callers updated.
11259         (read_whatever_is_readable): Likewise.
11260         (target_write_with_progress): Likewise.
11261         (target_read_alloc_1): Likewise.
11262
11263         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11264         * auxv.c (procfs_xfer_auxv): Likewise.
11265         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11266         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11267         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11268         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11269         * corefile.c (read_memory): Adjust.
11270         * corelow.c (core_xfer_partial): Likewise.
11271         * ctf.c (ctf_xfer_partial): Likewise.
11272         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11273         updated.
11274         (darwin_xfer_partial): Likewise.
11275         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11276         callers updated.
11277         (exec_xfer_partial): Likewise.
11278         * exec.h (section_table_xfer_memory_partial): Update
11279         declaration.
11280         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11281         negative.
11282         (gnu_xfer_partial): Likewise.
11283         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11284         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11285         (ia64_hpux_xfer_solib_got): Likewise.
11286         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11287         type of 'partial_len' to ULONGEST.
11288         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11289         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11290         (linux_nat_xfer_partial): Likewise.
11291         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11292         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11293         * monitor.c (monitor_xfer_memory): Likewise.
11294         (monitor_xfer_partial): Likewise.
11295         * procfs.c (procfs_xfer_partial): Likewise.
11296         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11297         * record-full.c (record_full_xfer_partial): Likewise.
11298         (record_full_core_xfer_partial): Likewise.
11299         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11300         (gdbsim_xfer_partial): Likewise.
11301         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11302         updated.
11303         (remote_write_bytes, remote_read_bytes): Likewise.  All
11304         callers updated.
11305         (remote_flash_erase): Likewise.  All callers updated.
11306         (remote_write_qxfer): Likewise.  All callers updated.
11307         (remote_read_qxfer): Likewise.  All callers updated.
11308         (remote_xfer_partial): Likewise.
11309         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11310         (rs6000_xfer_shared_libraries): Likewise.
11311         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11312         (sol_thread_xfer_partial): Likewise.
11313         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11314         (sparc_xfer_partial): Likewise.
11315         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11316         updated.
11317         (spu_xfer_partial): Likewise.
11318         * spu-multiarch.c (spu_xfer_partial): Likewise.
11319         * tracepoint.c (tfile_xfer_partial): Likewise.
11320         * windows-nat.c (windows_xfer_memory): Likewise.
11321         (windows_xfer_shared_libraries): Likewise.
11322         (windows_xfer_partial): Likewise.
11323         * valprint.c: Replace 'target_xfer_error' with
11324         'target_xfer_status' in comments.
11325
11326 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11327
11328         Checked in by Joel Brobecker <brobecker@adacore.com>.
11329         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11330
11331 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11332
11333         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11334         function parameters.
11335
11336 2014-02-10  Will Newton  <will.newton@linaro.org>
11337
11338         * elfread.c (elf_rel_plt_read): Look for a .got section if
11339         looking up .got.plt fails.
11340         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11341         on address passed to elf_gnu_ifunc_record_cache.
11342         (elf_gnu_ifunc_resolve_addr): Likewise.
11343         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11344
11345 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11346
11347         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11348         (X_RETTURN): New macro.
11349         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11350
11351         * sparc64-tdep.c (sparc64_init_abi): Hook
11352         sparc_in_function_epilogue_p.
11353
11354 2014-02-10  Gary Benson  <gbenson@redhat.com>
11355
11356         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11357         Rename name_matcher to symbol_matcher.
11358
11359 2014-02-10  Gary Benson  <gbenson@redhat.com>
11360
11361         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11362         Use expand_symtabs_file_matcher_ftype and
11363         expand_symtabs_symbol_matcher_ftype.
11364
11365 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11366
11367         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11368         (struct ada_symbol_cache): New.
11369         (ada_free_symbol_cache): Forward declare.
11370         (struct ada_pspace_data): New.
11371         (ada_pspace_data_handle): New static global.
11372         (get_ada_pspace_data, ada_pspace_data_cleanup)
11373         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11374         (cache_space, cache): Delete, now folded inside struct
11375         ada_pspace_data.
11376         (ada_get_symbol_cache): New function.
11377         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11378         implementation.
11379         (_initialize_ada_language): Remove initialization of cache_space.
11380         Move call to observer_attach_inferior_exit up, grouping it
11381         with the other observer registrations inside this function.
11382         Rename command to be more general.  Add call to
11383         register_program_space_data_with_cleanup.
11384
11385 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11386
11387         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11388         ada_new_objfile_observer.
11389         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11390         (_initialize_tasks): Update uses of ada_new_objfile_observer
11391         and ada_tasks_normal_stop_observer.
11392
11393 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11394
11395         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11396         returned by the 'Length attribute to integer.
11397
11398 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11399
11400         * ada-lang.c (_initialize_ada_language): Initialize
11401         cache_space obstack.
11402
11403 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11404
11405         * ada-lang.c (HASH_SIZE): New macro.
11406         (struct cache_entry): New type.
11407         (cache_space, cache): New static globals.
11408         (ada_clear_symbol_cache, find_entry): New functions.
11409         (lookup_cached_symbol, cache_symbol): Implement.
11410         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11411         (_initialize_ada_language): Attach ada_new_objfile_observer
11412         and ada_free_objfile_observer.
11413
11414 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11415
11416         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11417         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11418         struct block * parameter.
11419         (ada_lookup_symbol_list_worker): Constify local variable "block".
11420         Remove cast which is no longer necessary.
11421
11422 2014-02-10  Doug Evans  <xdje42@gmail.com>
11423
11424         Add Guile as an extension language.
11425         * NEWS: Mention Guile scripting.
11426         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11427         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11428         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11429         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11430         (CLIBS): Add GUILE_LIBS.
11431         (install-guile): New rule.
11432         (guile.o): New rule.
11433         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11434         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11435         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11436         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11437         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11438         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11439         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11440         * configure.ac: New option --with-guile.
11441         * configure: Regenerate.
11442         * config.in: Regenerate.
11443         * auto-load.c: Remove #include "python/python.h".  Add #include
11444         "gdb/section-scripts.h".
11445         (source_section_scripts): Handle Guile scripts.
11446         (_initialize_auto_load): Add name of Guile objfile script to
11447         scripts-directory help text.
11448         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11449         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11450         (struct breakpoint): New member scm_bp_object.
11451         * defs.h (enum command_control_type): New value guile_control.
11452         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11453         "extension.h".
11454         (show_user): Update comment.
11455         (_initialize_cli_cmds): Update help text for "show user".  Update help
11456         text for max-user-call-depth.
11457         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11458         "extension.h".
11459         (multi_line_command_p): Add guile_control.
11460         (print_command_lines): Handle guile_control.
11461         (execute_control_command, recurse_read_control_structure): Ditto.
11462         (process_next_line): Recognize "guile" commands.
11463         * disasm.c (gdb_disassemble_info): Make non-static.
11464         * disasm.h: #include "dis-asm.h".
11465         (struct gdbarch): Add forward decl.
11466         (gdb_disassemble_info): Declare.
11467         * extension.c: #include "guile/guile.h".
11468         (extension_languages): Add guile.
11469         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11470         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11471         * gdbtypes.c (get_unsigned_type_max): New function.
11472         (get_signed_type_minmax): New function.
11473         * gdbtypes.h (get_unsigned_type_max): Declare.
11474         (get_signed_type_minmax): Declare.
11475         * guile/README: New file.
11476         * guile/guile-internal.h: New file.
11477         * guile/guile.c: New file.
11478         * guile/guile.h: New file.
11479         * guile/scm-arch.c: New file.
11480         * guile/scm-auto-load.c: New file.
11481         * guile/scm-block.c: New file.
11482         * guile/scm-breakpoint.c: New file.
11483         * guile/scm-disasm.c: New file.
11484         * guile/scm-exception.c: New file.
11485         * guile/scm-frame.c: New file.
11486         * guile/scm-gsmob.c: New file.
11487         * guile/scm-iterator.c: New file.
11488         * guile/scm-lazy-string.c: New file.
11489         * guile/scm-math.c: New file.
11490         * guile/scm-objfile.c: New file.
11491         * guile/scm-ports.c: New file.
11492         * guile/scm-pretty-print.c: New file.
11493         * guile/scm-safe-call.c: New file.
11494         * guile/scm-string.c: New file.
11495         * guile/scm-symbol.c: New file.
11496         * guile/scm-symtab.c: New file.
11497         * guile/scm-type.c: New file.
11498         * guile/scm-utils.c: New file.
11499         * guile/scm-value.c: New file.
11500         * guile/lib/gdb.scm: New file.
11501         * guile/lib/gdb/boot.scm: New file.
11502         * guile/lib/gdb/experimental.scm: New file.
11503         * guile/lib/gdb/init.scm: New file.
11504         * guile/lib/gdb/iterator.scm: New file.
11505         * guile/lib/gdb/printing.scm: New file.
11506         * guile/lib/gdb/types.scm: New file.
11507         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11508         (VPATH): Add $(GUILE_SRCDIR).
11509         (GUILE_DIR): New variable.
11510         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11511         (all): Add stamp-guile dependency.
11512         (stamp-guile): New rule.
11513         (clean-guile, install-guile, uninstall-guile): New rules.
11514         (install-only): Add install-guile dependency.
11515         (uninstall): Add uninstall-guile dependency.
11516         (clean): Add clean-guile dependency.
11517
11518 2014-02-09  Doug Evans  <xdje42@gmail.com>
11519
11520         Revert this patch (which I approved, mea culpa).
11521
11522         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11523
11524         * Makefile.in (all-lib): Remove.
11525         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11526
11527 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11528
11529         Fix Python stack corruption.
11530         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11531         gdb_py_longest.
11532
11533 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11534
11535         * Makefile.in (all-lib): Remove.
11536         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11537
11538 2014-02-07  Doug Evans  <dje@google.com>
11539
11540         * extension-priv.h (extension_language_script_ops): Add comment.
11541         (extension_language_ops): Add comment.
11542         (active_ext_lang_state): Fix typo in comment.
11543
11544 2014-02-07  Pedro Alves  <palves@redhat.com>
11545
11546         PR breakpoints/16292
11547         * infrun.c (handle_signal_stop) <signal arrives while stepping
11548         over a breakpoint>: Switch back to the stepping thread.
11549
11550 2014-02-07  Yao Qi  <yao@codesourcery.com>
11551
11552         * target.c (target_xfer_partial): Return zero if LEN is zero.
11553
11554 2014-02-07  Yao Qi  <yao@codesourcery.com>
11555
11556         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11557         (ld_so_xfer_auxv): Likewise.
11558         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11559         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11560         * corelow.c (core_xfer_partial): Likewise.
11561         * ctf.c (ctf_xfer_partial): Likewise.
11562         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11563         (darwin_xfer_partial): Likewise.
11564         * exec.c (exec_xfer_partial): Likewise.
11565         * gnu-nat.c (gnu_xfer_partial): Likewise.
11566         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11567         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11568         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11569         * linux-nat.c (linux_xfer_siginfo): Likewise.
11570         (linux_proc_xfer_spu): Likewise.
11571         * procfs.c (procfs_xfer_partial): Likewise.
11572         * record-full.c (record_full_xfer_partial): Likewise.
11573         (record_full_core_xfer_partial): Likewise.
11574         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11575         * remote.c (remote_write_qxfer): Likewise.
11576         (remote_write_qxfer, remote_read_qxfer): Likewise.
11577         (remote_xfer_partial): Likewise.
11578         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11579         (rs6000_xfer_shared_libraries): Likewise.
11580         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11581         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11582         (spu_xfer_partial): Likewise.
11583         * target.c (memory_xfer_partial_1): Likewise.
11584         * tracepoint.c (tfile_xfer_partial): Likewise.
11585         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11586         (windows_xfer_partial): Likewise.
11587
11588 2014-02-07  Yao Qi  <yao@codesourcery.com>
11589
11590         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11591         comments.
11592         (core_xfer_shared_libraries_aix): Likewise.
11593         * gdbarch.c, gdbarch.h: Regenerated.
11594         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11595         ULONGEST.  Change 'len_avail' type to ULONGEST.
11596         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11597         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11598         declaration.
11599         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11600
11601 2014-02-07  Yao Qi  <yao@codesourcery.com>
11602
11603         * corefile.c (memory_error): Get 'exception' from ERR and pass
11604         'exception' to throw_error.
11605
11606 2014-02-06  Doug Evans  <xdje42@gmail.com>
11607
11608         * configure.ac (libpython checking): Remove all but python.o from
11609         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11610         * configure: Regenerate.
11611
11612         * Makefile.in (SFILES): Add extension.c.
11613         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11614         (COMMON_OBS): Add extension.o.
11615         * extension.h: New file.
11616         * extension-priv.h: New file.
11617         * extension.c: New file.
11618
11619         * python/python-internal.h: #include "extension.h".
11620         (gdbpy_auto_load_enabled): Declare.
11621         (gdbpy_apply_val_pretty_printer): Declare.
11622         (gdbpy_apply_frame_filter): Declare.
11623         (gdbpy_preserve_values): Declare.
11624         (gdbpy_breakpoint_cond_says_stop): Declare.
11625         (gdbpy_breakpoint_has_cond): Declare.
11626         (void source_python_script_for_objfile): Delete.
11627         * python/python.c: #include "extension-priv.h".
11628         Delete inclusion of "observer.h".
11629         (extension_language_python): Moved here and renamed from
11630         script_language_python in py-auto-load.c.
11631         Redefined to be of type extension_language_defn.
11632         (python_extension_script_ops): New global.
11633         (python_extension_ops): New global.
11634         (struct python_env): New member previous_active.
11635         (restore_python_env): Call restore_active_ext_lang.
11636         (ensure_python_env): Call set_active_ext_lang.
11637         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11638         New arg extlang.
11639         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11640         New arg extlang.
11641         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11642         New arg extlang.
11643         (gdbpy_eval_from_control_command): Renamed from
11644         eval_python_from_control_command, made static.  New arg extlang.
11645         (gdbpy_source_script) Renamed from source_python_script, made static.
11646         New arg extlang.
11647         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11648         result to int.  New arg extlang.
11649         (gdbpy_source_objfile_script): Renamed from
11650         source_python_script_for_objfile, made static.  New arg extlang.
11651         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11652         static.  New args extlang, extlang_printers.  Change result type to
11653         "void".
11654         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11655         static.  New arg extlang.  Rename arg printers to extlang_printers
11656         and change type to ext_lang_type_printers *.
11657         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11658         static.  Replace argument arg with extlang, extlang_printers.
11659         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11660         (!HAVE_PYTHON, source_python_script): Delete.
11661         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11662         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11663         (!HAVE_PYTHON, start_type_printers): Delete.
11664         (!HAVE_PYTHON, apply_type_printers): Delete.
11665         (!HAVE_PYTHON, free_type_printers): Delete.
11666         (_initialize_python): Delete call to observer_attach_before_prompt.
11667         (finalize_python): Set/restore active extension language.
11668         (gdbpy_finish_initialization) Renamed from
11669         finish_python_initialization, made static.  New arg extlang.
11670         (gdbpy_initialized): New function.
11671         * python/python.h: #include "extension.h".  Delete #include
11672         "value.h", "mi/mi-cmds.h".
11673         (extension_language_python): Declare.
11674         (GDBPY_AUTO_FILE_NAME): Delete.
11675         (enum py_bt_status): Moved to extension.h and renamed to
11676         ext_lang_bt_status.
11677         (enum frame_filter_flags): Moved to extension.h.
11678         (enum py_frame_args): Moved to extension.h and renamed to
11679         ext_lang_frame_args.
11680         (finish_python_initialization): Delete.
11681         (eval_python_from_control_command): Delete.
11682         (source_python_script): Delete.
11683         (apply_val_pretty_printer): Delete.
11684         (apply_frame_filter): Delete.
11685         (preserve_python_values): Delete.
11686         (gdbpy_script_language_defn): Delete.
11687         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11688         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11689
11690         * auto-load.c: #include "extension.h".
11691         (GDB_AUTO_FILE_NAME): Delete.
11692         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11693         (script_language_gdb): Delete, moved to extension.c and renamed to
11694         extension_language_gdb.
11695         (source_gdb_script_for_objfile): Delete.
11696         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11697         (loaded_script): Change type of language member to
11698         struct extension_language_defn *.
11699         (init_loaded_scripts_info): Initialize
11700         unsupported_script_warning_printed.
11701         (maybe_add_script): Make static.  Change type of language arg to
11702         struct extension_language_defn *.
11703         (clear_section_scripts): Reset unsupported_script_warning_printed.
11704         (auto_load_objfile_script_1): Rewrite to use extension language API.
11705         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11706         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11707         (source_section_scripts): Rewrite to use extension language API.
11708         (load_auto_scripts_for_objfile): Rewrite to use
11709         auto_load_scripts_for_objfile.
11710         (collect_matching_scripts_data): Change type of language member to
11711         struct extension_language_defn *.
11712         (auto_load_info_scripts): Change type of language arg to
11713         struct extension_language_defn *.
11714         (unsupported_script_warning_print): New function.
11715         (script_not_found_warning_print): Make static.
11716         (_initialize_auto_load): Rewrite construction of scripts-directory
11717         help.
11718         * auto-load.h (struct objfile): Add forward decl.
11719         (struct script_language): Delete.
11720         (struct auto_load_pspace_info): Add forward decl.
11721         (struct extension_language_defn): Add forward decl.
11722         (maybe_add_script): Delete.
11723         (auto_load_objfile_script): Declare.
11724         (script_not_found_warning_print): Delete.
11725         (auto_load_info_scripts): Update prototype.
11726         (auto_load_gdb_scripts_enabled): Declare.
11727         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11728         auto_load_python_scripts_enabled and made public.
11729         (script_language_python): Delete, moved to python.c.
11730         (gdbpy_script_language_defn): Delete.
11731         (info_auto_load_python_scripts): Update to use
11732         extension_language_python.
11733
11734         * breakpoint.c (condition_command): Replace call to
11735         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11736         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11737         with call to breakpoint_ext_lang_cond_says_stop.
11738         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11739         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11740         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11741         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11742         New arg slang.
11743         (local_setattro): Print name of extension language with existing
11744         stop condition.
11745
11746         * valprint.c (val_print, value_print): Update to call
11747         apply_ext_lang_val_pretty_printer.
11748         * cp-valprint.c (cp_print_value): Update call to
11749         apply_ext_lang_val_pretty_printer.
11750         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11751         (gdbpy_apply_val_pretty_printer): Renamed from
11752         apply_val_pretty_printer.  New arg extlang.
11753         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11754
11755         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11756         extension language API.
11757         * cli/cli-script.c (execute_control_command): Update to call
11758         eval_ext_lang_from_control_command.
11759
11760         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11761         enum ext_lang_bt_status values.  Update call to
11762         apply_ext_lang_frame_filter.
11763         (mi_cmd_stack_list_locals): Ditto.
11764         (mi_cmd_stack_list_args): Ditto.
11765         (mi_cmd_stack_list_variables): Ditto.
11766         * mi/mi-main.c: Delete #include "python/python-internal.h".
11767         Add #include "extension.h".
11768         (mi_cmd_list_features): Replace reference to python internal variable
11769         gdb_python_initialized with call to ext_lang_initialized_p.
11770
11771         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11772         Update to use enum ext_lang_frame_args.  Update to call
11773         apply_ext_lang_frame_filter.
11774         * python/py-framefilter.c (extract_sym): Update to use enum
11775         ext_lang_bt_status.
11776         (extract_value, py_print_type, py_print_value): Ditto.
11777         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11778         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11779         (py_print_frame): Ditto.
11780         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11781         New arg extlang.  Update to use enum ext_lang_bt_status.
11782
11783         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11784         finish_python_initialization.  Replace with call to
11785         finish_ext_lang_initialization.
11786
11787         * typeprint.c (do_free_global_table): Update to call
11788         free_ext_lang_type_printers.
11789         (create_global_typedef_table): Update to call
11790         start_ext_lang_type_printers.
11791         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11792         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11793         (type_print_options): Change type of global_printers from "void *"
11794         to "struct ext_lang_type_printers *".
11795
11796         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11797         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11798         (gdbpy_preserve_values): Renamed from preserve_python_values.
11799         New arg extlang.
11800         (!HAVE_PYTHON, preserve_python_values): Delete.
11801
11802         * utils.c (quit_flag): Delete, moved to extension.c.
11803         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11804         extension.c.
11805
11806         * eval.c: Delete #include "python/python.h".
11807         * main.c: Delete #include "python/python.h".
11808
11809         * defs.h: Update comment.
11810
11811 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11812
11813         GDB 7.7 released.
11814
11815 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11816
11817         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11818         defined.
11819
11820 2014-02-05  Yao Qi  <yao@codesourcery.com>
11821
11822         * remote.c (remote_pass_signals): Remove local 'buf' and use
11823         rs->buf.
11824         (remote_program_signals): Likewise.
11825
11826 2014-02-05  Yao Qi  <yao@codesourcery.com>
11827
11828         * ctf.c: Include "inferior.h" and "gdbthread.h".
11829         (CTF_PID): A new macro.
11830         (ctf_open): Call inferior_appeared and add_thread_silent.
11831         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11832         (ctf_thread_alive): New function.
11833         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11834
11835 2014-02-05  Yao Qi  <yao@codesourcery.com>
11836
11837         Revert this patch:
11838
11839         2013-05-24  Yao Qi  <yao@codesourcery.com>
11840
11841         * tracepoint.c (TFILE_PID): Remove.
11842         (tfile_open): Don't add thread and inferior.
11843         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11844         exit_inferior_silent.
11845         (tfile_thread_alive): Remove.
11846         (init_tfile_ops): Don't set field 'to_thread_alive' of
11847         tfile_ops.
11848
11849 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11850
11851         * remote.c (remote_start_remote): Call remote_check_symbols even
11852         if only symbol-file (not file) has been given.
11853
11854 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11855
11856         * gdbarch.sh (skip_entrypoint): New callback.
11857         * gdbarch.c, gdbarch.h: Regenerate.
11858         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11859         * infrun.c (fill_in_stop_func): Likewise.
11860         * ppc-linux-tdep.c: Include "elf/ppc64.h".
11861         (ppc_elfv2_elf_make_msymbol_special): New function.
11862         (ppc_elfv2_skip_entrypoint): Likewise.
11863         (ppc_linux_init_abi): Install them for ELFv2.
11864
11865 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11866
11867         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11868         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11869         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11870         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
11871         structures returned in GPRs.
11872
11873 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11874
11875         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11876         offset to the stack parameter list for the ELFv2 ABI.
11877
11878 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11879
11880         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11881         set_gdbarch_convert_from_func_ptr_addr and
11882         set_gdbarch_elf_make_msymbol_special for ELFv1.
11883         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11884         function descriptors on ELFv1.
11885         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
11886         set up r12 at function entry.
11887
11888 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11889
11890         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11891         (struct gdbarch_tdep): New member elf_abi.
11892
11893         * rs6000-tdep.c: Include "elf/ppc64.h".
11894         (rs6000_gdbarch_init): Detect ELF ABI version.
11895
11896 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11897
11898         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11899         within a register pair holding a DFP 128-bit value on little-endian.
11900         (ppc64_sysv_abi_return_value_base): Likewise.
11901         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11902         (dfp_pseudo_register_write): Likewise.
11903
11904 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11905
11906         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11907         offset on little-endian when passing _Decimal32.
11908         (ppc64_sysv_abi_return_value_base): Likewise for return values.
11909
11910 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11911
11912         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11913         of the overlapped FP register within the VSX register on little-
11914         endian platforms.
11915         (efpr_pseudo_register_write): Likewise.
11916
11917 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11918
11919         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11920         offset on little-endian when passing small structures.
11921
11922 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11923
11924         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11925         (struct ppc64_sysv_argpos): New data structure.
11926         (ppc64_sysv_abi_push_float): Remove.
11927         (ppc64_sysv_abi_push_val): New function.
11928         (ppc64_sysv_abi_push_integer): Likewise.
11929         (ppc64_sysv_abi_push_freg): Likewise.
11930         (ppc64_sysv_abi_push_vreg): Likewise.
11931         (ppc64_sysv_abi_push_param): Likewise.
11932         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11933         (ppc64_sysv_abi_return_value_base): New function.
11934         (ppc64_sysv_abi_return_value): Refactor to use it.
11935
11936 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11937
11938         * NEWS: Document new target powerpc64le-*-linux*.
11939
11940 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
11941
11942         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11943         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11944         core dumps.
11945         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11946         register set used in ELF core dumps.  Add floating-point register set.
11947
11948 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
11949
11950         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11951         dwarf2_to_gdb[] table using symbolic constants.  Adjust
11952         penultimate entry from number representing the PC register
11953         to symbolic constant representing the MDR register.  Add
11954         constant for the PC register to the end of the table.
11955
11956 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11957
11958         * bsd-kvm.c: Include <sys/param.h>
11959
11960 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11961
11962         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11963
11964 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
11965
11966         * ada-lang.h (clear_ada_sym_cache): Delete.
11967
11968 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11969
11970         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11971
11972 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
11973
11974         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11975           the sigreturn register save area only if the syscall is
11976           sigreturn.
11977
11978 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
11979
11980         * valops.c (value_slice): Minor reformatting.
11981
11982 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
11983
11984         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11985
11986 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
11987
11988         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11989         New static globals.
11990         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11991         (ada_ignore_descriptive_types_p): New static global.
11992         (find_parallel_type_by_descriptive_type): Return immediately
11993         if ada_ignore_descriptive_types_p is set.
11994         (_initialize_ada_language): Register new commands "maintenance
11995         set ada", "maintenance show ada", "maintenance set ada
11996         ignore-descriptive-types" and "maintenance show ada
11997         ignore-descriptive-types".
11998         * NEWS: Add entry for new "maint ada set/show
11999         ignore-descriptive-types" commands.
12000
12001 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12002
12003         * record-btrace.c (record_btrace_close): Call btrace_teardown
12004         for all threads.
12005
12006 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12007
12008         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12009         "ui-out.h".
12010
12011 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12012
12013         * ada-typeprint (type_is_full_subrange_of_target_type):
12014         New function.
12015         (print_range): Add parameter bounds_prefered_p.  If not set,
12016         try printing range types using the name of their base type.
12017         (print_range_type): Add parameter bounds_prefered_p.
12018         Use it in call to print_range.
12019         (print_array_type, ada_print_type): Update calls to print_range
12020         and print_range_type.
12021
12022 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12023
12024         * ada-typeprint.c (print_array_type, print_choices, print_range)
12025         (print_range_bound, print_dynamic_range_bound, print_range_type):
12026         Remove declaration.
12027
12028 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12029
12030         * ada-typeprint.c (print_range): Add missing empty line
12031         after local declaration.
12032
12033 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12034
12035         * ada-valprint.c (print_optional_low_bound): Get index_type's
12036         target type for as long as it is a TYPE_CODE_RANGE.
12037
12038 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12039
12040         * procfs.c (procfs_make_note_section): Remove assertion and
12041         associated comment.
12042
12043 2014-01-24  Yao Qi  <yao@codesourcery.com>
12044
12045         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12046         * corelow.c (get_core_siginfo): Likewise.
12047
12048 2014-01-24  Yao Qi  <yao@codesourcery.com>
12049
12050         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12051         ULONGEST.  Don't check 'len' is negative.
12052         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12053
12054 2014-01-23  Tom Tromey  <tromey@redhat.com>
12055
12056         PR python/16485:
12057         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12058         Handle exception from frame.block.
12059         (FrameVars.fetch_frame_locals): Likewise.
12060
12061 2014-01-23  Tom Tromey  <tromey@redhat.com>
12062
12063         PR python/16487:
12064         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12065         on a NULL pointer.  Move "goto error" to correct place.
12066
12067 2014-01-23  Tom Tromey  <tromey@redhat.com>
12068
12069         PR python/16491:
12070         * python/py-framefilter.c (apply_frame_filter): Call
12071         ensure_python_env after computing gdbarch.
12072
12073 2014-01-23  Yao Qi  <yao@codesourcery.com>
12074
12075         * target.c (raw_memory_xfer_partial): Change argument type
12076         from void * to gdb_byte *.
12077         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12078
12079 2014-01-22  Doug Evans  <dje@google.com>
12080
12081         New gdbserver option --debug-format=timestamp.
12082         * NEWS: Mention it.
12083
12084 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12085
12086         * syscalls/s390x-linux.xml: New file.
12087         * syscalls/s390-linux.xml: New file.
12088         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12089         (XML_SYSCALL_FILENAME_S390X): Likewise.
12090         (op_svc): New enum value for SVC opcode.
12091         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12092         (s390_linux_get_syscall_number): New function.
12093         (s390_gdbarch_init): Register '*get_syscall_number' and the
12094         syscall xml file name.
12095         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12096         "s390-linux.xml" and "s390x-linux.xml".
12097         * NEWS: Announce new feature.
12098
12099 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12100
12101         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12102
12103 2014-01-22  Pedro Alves  <palves@redhat.com>
12104
12105         * xtensa-config.c: Include defs.h.
12106
12107 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12108
12109         * common/common-utils.h: Add "ARI:" comment beside __func__
12110         reference.
12111
12112 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12113
12114         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12115         documentation a bit.
12116
12117 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12118
12119         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12120         * configure: Regenerate.
12121         * aclocal.m4: Regenerate.
12122         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12123         New substituted variables.
12124         (install-strip): New target.
12125         (INSTALL_SCRIPT): New substituted variable.
12126         (FLAGS_TO_PASS): Add it.
12127         (install-only): Use $(INSTALL_SCRIPT) rather than
12128         $(INSTALL_PROGRAM) for gcore.
12129
12130 2014-01-20  Tom Tromey  <tromey@redhat.com>
12131
12132         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12133         together.
12134
12135 2014-01-20  Tom Tromey  <tromey@redhat.com>
12136
12137         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12138         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12139         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12140         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12141         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12142         (struct cmd_list_element) <flags>: Remove.
12143         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12144         doc_allocated>: New fields.
12145         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12146         bitfields.
12147         * maint.c (maintenance_do_deprecate): Update.
12148         * top.c (execute_command): Update.
12149
12150 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12151
12152         * xtensa-linux-nat.c: Include asm/ptrace.h.
12153
12154 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12155
12156         * Makefile.in (SFILES): Add d-support.c.
12157         (COMMON_OBS): Add d-support.o.
12158         * d-lang.h (d_parse_symbol): Add comment, now defined in
12159         d-support.c.
12160         * d-lang.c (parse_call_convention)
12161         (parse_attributes, parse_function_types)
12162         (parse_function_args, parse_type, parse_identifier)
12163         (call_convention_p, d_parse_symbol): Move functions to ...
12164         * d-support.c: ... New file.
12165
12166 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12167
12168         * d-lang.h (d_parse_symbol): Add declaration.
12169         * d-lang.c (extract_identifiers)
12170         (extract_type_info): Remove functions.
12171         (parse_call_convention, parse_attributes)
12172         (parse_function_types, parse_function_args)
12173         (parse_type, parse_identifier, call_convention_p)
12174         (d_parse_symbol): New functions.
12175         (d_demangle): Use d_parse_symbol to demangle D symbols.
12176
12177 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12178
12179         * d-lang.h (struct builtin_d_type): New data type.
12180         (builtin_d_type): Add declaration.
12181         * d-lang.c (d_language_arch_info, build_d_types)
12182         (builtin_d_type): New functions.
12183         (enum d_primitive_types): New data type.
12184         (d_language_defn): Change c_language_arch_info to
12185         d_language_arch_info.
12186         (d_type_data): New static variable.
12187         (_initialize_d_language): Initialize d_type_data.
12188
12189 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12190
12191         * d-lang.h (d_main_name): Add declaration.
12192         * d-lang.c (d_main_name): New function.
12193         * symtab.c (find_main_name): Add call to d_main_name.
12194
12195 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12196
12197         * d-lang.c (d_language_defn): Change macro_expansion_c to
12198         macro_expansion_no.
12199
12200 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12201
12202         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12203
12204 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12205
12206         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12207         gdb_exception" declaration.
12208         * remote.c (getpkt_or_notif_sane): Likewise.
12209
12210 2014-01-17  Doug Evans  <dje@google.com>
12211
12212         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12213         function, contents of dirnames_to_char_ptr_vec_append moved here.
12214         (delim_string_to_char_ptr_vec): New function.
12215         (dirnames_to_char_ptr_vec_append): Rewrite.
12216         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12217
12218 2014-01-17  Doug Evans  <dje@google.com>
12219
12220         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12221         and moved here ...
12222         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12223         #include "common-utils.h".
12224         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12225         * common/vec.h (VEC_ASSERT_PASS): Update.
12226         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12227         (MACH_CHECK_ERROR): Update.
12228
12229 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12230
12231         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12232         comments.
12233         * gdbarch.h: Regenerate.
12234
12235 2014-01-16  Tom Tromey  <tromey@redhat.com>
12236
12237         * value.c (struct value) <regnum>: Move earlier.
12238
12239 2014-01-16  Tom Tromey  <tromey@redhat.com>
12240
12241         * remote.c (extended_remote_create_inferior): Rename from
12242         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12243         old implementation.
12244
12245 2014-01-16  Pedro Alves  <palves@redhat.com>
12246
12247         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12248         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12249         the backchain.
12250
12251 2014-01-16  Doug Evans  <dje@google.com>
12252
12253         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12254
12255 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12256
12257         * btrace.h (btrace_thread_flag): New.
12258         (struct btrace_thread_info) <flags>: New.
12259         * record-btrace.c (record_btrace_resume_thread)
12260         (record_btrace_find_thread_to_move, btrace_step_no_history)
12261         (btrace_step_stopped, record_btrace_start_replaying)
12262         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12263         (record_btrace_find_resume_thread): New.
12264         (record_btrace_resume, record_btrace_wait): Extend.
12265         (record_btrace_can_execute_reverse): New.
12266         (record_btrace_open): Fail in non-stop mode.
12267         (record_btrace_set_replay): Split into this, ...
12268         (record_btrace_stop_replaying): ... this, ...
12269         (record_btrace_clear_histories): ... and this.
12270         (init_record_btrace_ops): Init to_can_execute_reverse.
12271         * NEWS: Announce it.
12272
12273 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12274
12275         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12276         (forward_target_decr_pc_after_break)
12277         (target_decr_pc_after_break): New.
12278         * target.c (forward_target_decr_pc_after_break)
12279         (target_decr_pc_after_break): New.
12280         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12281         instead of gdbarch_decr_pc_after_break.
12282         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12283         instead of gdbarch_decr_pc_after_break.
12284         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12285         instead of gdbarch_decr_pc_after_break.
12286         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12287         instead of gdbarch_decr_pc_after_break.
12288         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12289         instead of gdbarch_decr_pc_after_break.
12290         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12291         instead of gdbarch_decr_pc_after_break.
12292
12293 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12294
12295         * btrace.c: Include regcache.h.
12296         (btrace_add_pc): New.
12297         (btrace_enable): Call btrace_add_pc.
12298         (btrace_is_empty): New.
12299         * btrace.h (btrace_is_empty): New.
12300         * record-btrace.c (require_btrace, record_btrace_info): Call
12301         btrace_is_empty.
12302
12303 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12304
12305         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12306         Support delta reads.
12307         (linux_disable_btrace): Change return type.
12308         * common/linux-btrace.h (linux_read_btrace): Change parameters
12309         and return type to allow error reporting.  Update users.
12310         (linux_disable_btrace): Change return type.  Update users.
12311         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12312         New.
12313         (btrace_error): New.
12314         (btrace_block) <begin>: Comment on BEGIN == 0.
12315         * btrace.c (btrace_compute_ftrace): Start from the end of
12316         the current trace.
12317         (btrace_stitch_trace, btrace_clear_history): New.
12318         (btrace_fetch): Read delta trace, return if replaying.
12319         (btrace_clear): Move clear history code to btrace_clear_history.
12320         (parse_xml_btrace): Throw an error if parsing failed.
12321         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12322         and return type to allow error reporting.
12323         (target_read_btrace): Change parameters and return type to allow
12324         error reporting.
12325         * target.c (target_read_btrace): Update.
12326         * remote.c (remote_read_btrace): Support delta reads.  Pass
12327         errors on.
12328         * NEWS: Announce it.
12329
12330 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12331
12332         * record.h (record_btrace_frame_unwind)
12333         (record_btrace_tailcall_frame_unwind): New declarations.
12334         * dwarf2-frame: Include record.h
12335         (dwarf2_frame_cfa): Throw an error for btrace frames.
12336         * record-btrace.c: Include hashtab.h.
12337         (btrace_get_bfun_name): New.
12338         (btrace_call_history): Call btrace_get_bfun_name.
12339         (struct btrace_frame_cache): New.
12340         (bfcache): New.
12341         (bfcache_hash, bfcache_eq, bfcache_new): New.
12342         (btrace_get_frame_function): New.
12343         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12344         (record_btrace_frame_this_id): Compute own id.
12345         (record_btrace_frame_prev_register): Provide PC, throw_error
12346         for all other registers.
12347         (record_btrace_frame_sniffer): Detect btrace frames.
12348         (record_btrace_tailcall_frame_sniffer): New.
12349         (record_btrace_frame_dealloc_cache): New.
12350         (record_btrace_frame_unwind): Add new functions.
12351         (record_btrace_tailcall_frame_unwind): New.
12352         (_initialize_record_btrace): Allocate cache.
12353         * btrace.c (btrace_clear): Call reinit_frame_cache.
12354         * NEWS: Announce it.
12355
12356 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12357
12358         * record-btrace.c (record_btrace_set_replay)
12359         (record_btrace_goto_begin, record_btrace_goto_end)
12360         (record_btrace_goto): New.
12361         (init_record_btrace_ops): Initialize them.
12362         * NEWS: Announce it.
12363
12364 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12365
12366         * record-btrace.c (record_btrace_find_new_threads)
12367         (record_btrace_thread_alive): New.
12368         (init_record_btrace_ops): Initialize to_find_new_threads and
12369         to_thread_alive.
12370
12371 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12372
12373         * record-btrace.c (record_btrace_resume): New.
12374         (record_btrace_wait): New.
12375         (init_record_btrace_ops): Initialize to_wait and to_resume.
12376
12377 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12378
12379         * record-btrace.c (record_btrace_xfer_partial)
12380         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12381         (record_btrace_allow_memory_access): New.
12382         (init_record_btrace_ops): Initialize new methods.
12383         * target.c (raw_memory_xfer_partial): Bail out if target reports
12384         that this memory is not available.
12385
12386 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12387
12388         * target.h (target_ops) <to_insert_breakpoint>
12389         <to_remove_breakpoint>: Add target_ops parameter.
12390         (forward_target_insert_breakpoint): New.
12391         (forward_target_remove_breakpoint): New.
12392         (memory_remove_breakpoint, memory_insert_breakpoint):
12393         Add target_ops parameter.
12394         * target.c (target_insert_breakpoint): Split into this and ...
12395         (forward_target_insert_breakpoint): ... this.
12396         (target_remove_breakpoint): Split into this and ...
12397         (forward_target_remove_breakpoint): ... this.
12398         (debug_to_insert_breakpoint): Add target_ops parameter.
12399         Call forward_target_insert_breakpoint.
12400         (debug_to_remove_breakpoint): Add target_ops parameter.
12401         Call forward_target_remove_breakpoint.
12402         (update_current_target): Do not inherit or default to_insert_breakpoint
12403         and to_remove_breakpoint.
12404         * corelow.c (ignore): Add target_ops parameter.
12405         * exec.c (ignore): Add target_ops parameter.
12406         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12407         Add target_ops parameter.
12408         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12409         Add target_ops parameter.
12410         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12411         Add target_ops parameter.
12412         * record-full.c (record_full_beneath_to_insert_breakpoint)
12413         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12414         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12415         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12416         (record_full_core_remove_breakpoint): Add target_ops parameter.
12417         Update users.
12418         (record_full_beneath_to_insert_breakpoint_ops)
12419         (record_full_beneath_to_remove_breakpoint_ops)
12420         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12421         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12422         tmp_to_remove_breakpoint_ops,
12423         record_full_beneath_to_insert_breakpoint_ops, and
12424         record_full_beneath_to_remove_breakpoint_ops.
12425         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12426         (m32r_remove_breakpoint): Add target_ops parameter.
12427         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12428         Add target_ops parameter.
12429         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12430         Add target_ops parameter.
12431
12432 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12433             Markus Metzger  <markus.t.metzger@intel.com>
12434
12435         * record-btrace.c: Include frame-unwind.h.
12436         (record_btrace_frame_unwind_stop_reason)
12437         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12438         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12439         New.
12440         (init_record_btrace_ops): Install it.
12441
12442 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12443
12444         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12445         get_prev_frame_1.
12446
12447 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12448
12449         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12450         earlier.
12451
12452 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12453
12454         * frame-unwind.c: Include target.h.
12455         (frame_unwind_try_unwinder): New function with code from ...
12456         (frame_unwind_find_by_frame): ... here.  New variable
12457         unwinder_from_target, call also target_get_unwinder)
12458         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12459         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12460         * target.h (struct target_ops): New fields to_get_unwinder and
12461         to_get_tailcall_unwinder.
12462         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12463
12464 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12465
12466         * record-btrace.c (record_btrace_fetch_registers)
12467         (record_btrace_store_registers)
12468         (record_btrace_to_prepare_to_store): New.
12469         (init_record_btrace_ops): Add the above.
12470
12471 2014-01-16  Tom Tromey  <tromey@redhat.com>
12472
12473         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12474         * target.h (struct target_ops) <to_prepare_to_store>: Add
12475         argument.
12476         (target_prepare_to_store): Add argument.
12477         * target.c (debug_to_prepare_to_store): Add argument.
12478         (update_current_target): Update.
12479         * remote.c (remote_prepare_to_store): Add 'self' argument.
12480         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12481         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12482         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12483         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12484         argument.
12485         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12486         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12487         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12488         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12489         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12490
12491 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12492
12493         * btrace.h (replay) <replay>: New.
12494         (btrace_is_replaying): New.
12495         * btrace.c (btrace_clear): Free replay iterator.
12496         (btrace_is_replaying): New.
12497         * record-btrace.c (record_btrace_is_replaying): New.
12498         (record_btrace_info): Print insn number if replaying.
12499         (record_btrace_insn_history): Start at replay position.
12500         (record_btrace_call_history): Start at replay position.
12501         (init_record_btrace_ops): Init to_record_is_replaying.
12502
12503 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12504
12505         * record-btrace.c (record_btrace_insn_history_range): Include
12506         end.
12507         (record_btrace_insn_history_from): Adjust range.
12508         (record_btrace_call_history_range): Include
12509         end.
12510         (record_btrace_call_history_from): Adjust range.
12511         * NEWS: Announce changes.
12512
12513 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12514
12515         * record.h (enum record_print_flag)
12516         <record_print_indent_calls>: New.
12517         * record.c (get_call_history_modifiers): Recognize /c modifier.
12518         (_initialize_record): Document /c modifier.
12519         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12520         Reorder fields.  Optionally indent the function name.  Update
12521         all users.
12522         * NEWS: Announce changes.
12523
12524 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12525
12526         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12527
12528 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12529
12530         * btrace.c (ftrace_new_function): Start counting at one.
12531         * record-btrace.c (record_btrace_info): Adjust number of calls
12532         and insns.
12533         * NEWS: Announce it.
12534
12535 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12536
12537         * record-btrace.c (btrace_call_history_insn_range): Print
12538         insn range as [begin, end].
12539
12540 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12541
12542         * btrace.h (struct btrace_func_link): New.
12543         (enum btrace_function_flag): New.
12544         (struct btrace_inst): Rename to ...
12545         (struct btrace_insn): ...this. Update all users.
12546         (struct btrace_func) <ibegin, iend>: Remove.
12547         (struct btrace_func_link): New.
12548         (struct btrace_func): Rename to ...
12549         (struct btrace_function): ...this. Update all users.
12550         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12551         (number, level, flags>: New.
12552         (struct btrace_insn_iterator): Rename to ...
12553         (struct btrace_insn_history): ...this.
12554         Update all users.
12555         (struct btrace_insn_iterator, btrace_call_iterator): New.
12556         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12557         (struct btrace_target_info) <begin, end, level>
12558         <insn_history, call_history>: New.
12559         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12560         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12561         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12562         (btrace_call_number, btrace_call_begin, btrace_call_end)
12563         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12564         (btrace_find_function_by_number, btrace_set_insn_history)
12565         (btrace_set_call_history): New.
12566         * btrace.c (btrace_init_insn_iterator)
12567         (btrace_init_func_iterator, compute_itrace): Remove.
12568         (ftrace_print_function_name, ftrace_print_filename)
12569         (ftrace_skip_file): Change
12570         parameter to const.
12571         (ftrace_init_func): Remove.
12572         (ftrace_debug): Use new btrace_function fields.
12573         (ftrace_function_switched): Also consider gaining and
12574         losing symbol information).
12575         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12576         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12577         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12578         New.
12579         (ftrace_new_function): Move. Remove debug print.
12580         (ftrace_update_lines, ftrace_update_insns): New.
12581         (ftrace_update_function): Check for call, ret, and jump.
12582         (compute_ftrace): Renamed to ...
12583         (btrace_compute_ftrace): ...this. Rewritten to compute call
12584         stack.
12585         (btrace_fetch, btrace_clear): Updated.
12586         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12587         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12588         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12589         (btrace_call_number, btrace_call_begin, btrace_call_end)
12590         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12591         (btrace_find_function_by_number, btrace_set_insn_history)
12592         (btrace_set_call_history): New.
12593         * record-btrace.c (require_btrace): Use new btrace thread
12594         info fields.
12595         (record_btrace_info, btrace_insn_history)
12596         (record_btrace_insn_history, record_btrace_insn_history_range):
12597         Use new btrace thread info fields and new iterator.
12598         (btrace_func_history_src_line): Rename to ...
12599         (btrace_call_history_src_line): ...this. Use new btrace
12600         thread info fields.
12601         (btrace_func_history): Rename to ...
12602         (btrace_call_history): ...this. Use new btrace thread info
12603         fields and new iterator.
12604         (record_btrace_call_history, record_btrace_call_history_range):
12605         Use new btrace thread info fields and new iterator.
12606
12607 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12608
12609         * frame.h (frame_id_build_unavailable_stack_special): New.
12610         * frame.c (frame_id_build_unavailable_stack_special): New.
12611
12612 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12613
12614         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12615         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12616         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12617         to gdbarch.
12618         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12619         (i386_insn_is_jump, i386_jmp_p): New.
12620         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12621         insn_is_jump to gdbarch.
12622         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12623         * gdbarch.h: Regenerated.
12624         * gdbarch.c: Regenerated.
12625         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12626         (default_insn_is_jump): New.
12627         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12628         (default_insn_is_jump): New.
12629
12630 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12631
12632         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12633         Change to ...
12634         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12635         (btrace_read_type) <btrace_read_new>: Change to ...
12636         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12637
12638 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12639
12640         * common/linux-btrace.c (linux_read_btrace): Free trace from
12641         previous iteration.
12642
12643 2014-01-15  Doug Evans  <dje@google.com>
12644
12645         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12646         uint32_t.
12647
12648 2014-01-15  Tom Tromey  <tromey@redhat.com>
12649
12650         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12651         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12652         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12653         (set_objfile_main_name): New function.
12654         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12655         language_of_main>: New fields.
12656         (set_objfile_main_name): Declare.
12657         * symtab.c (find_main_name): Loop over objfiles to find the main
12658         name and language.
12659         (set_main_name): Now static.
12660         (get_main_info): Add comment.
12661         * symtab.h (set_main_name): Don't declare.
12662
12663 2014-01-15  Tom Tromey  <tromey@redhat.com>
12664
12665         * symtab.c (main_progspace_key): New global.
12666         (struct main_info): New.
12667         (name_of_main, language_of_main): Remove.
12668         (get_main_info, main_info_cleanup): New function.
12669         (set_main_name, main_name, main_language): Use get_main_info.
12670         (_initialize_symtab): Initialize main_progspace_key.
12671
12672 2014-01-15  Tom Tromey  <tromey@redhat.com>
12673
12674         * dbxread.c (process_one_symbol): Update.
12675         * dwarf2read.c (read_partial_die): Update.
12676         * symfile.c (set_initial_language): Call main_language.
12677         * symtab.c (language_of_main): Now static.
12678         (set_main_name): Add 'lang' parameter.
12679         (find_main_name): Update.
12680         (main_language): New function.
12681         (symtab_observer_executable_changed): Update.
12682         * symtab.h (set_main_name): Update.
12683         (language_of_main): Remove.
12684         (main_language): Declare.
12685
12686 2014-01-15  Tom Tromey  <tromey@redhat.com>
12687
12688         * symfile.c (init_entry_point_info): Use new "initialized" field.
12689         Update.
12690         * objfiles.h (struct entry_point) <initialized>: New field.
12691         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12692         (struct objfile) <ei>: ...here.  Remove.
12693         * objfiles.c (entry_point_address_query): Update.
12694
12695 2014-01-15  Tom Tromey  <tromey@redhat.com>
12696
12697         * objfiles.c (entry_point_address_query): Relocate entry point
12698         address.
12699         (objfile_relocate1): Do not relocate entry point address.
12700         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12701         <the_bfd_section_index>: New field.
12702         * symfile.c (init_entry_point_info): Find the entry point's
12703         section.
12704
12705 2014-01-15  Tom Tromey  <tromey@redhat.com>
12706
12707         * solib-frv.c (enable_break): Use entry_point_address_query.
12708
12709 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12710
12711         * NEWS: Add note on improved process record-replay on
12712         arm*-linux* targets.
12713
12714 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12715
12716         * arm-tdep.c (enum arm_record_result): New enum.
12717         (arm_record_unsupported_insn): New function.
12718         (arm_record_coproc_data_proc): Removed.
12719         (thumb2_record_ld_st_multiple): New function.
12720         (thumb2_record_ld_st_dual_ex_tbb): New function.
12721         (thumb2_record_data_proc_sreg_mimm): New function.
12722         (thumb2_record_ps_dest_generic): New function.
12723         (thumb2_record_branch_misc_cntrl): New function.
12724         (thumb2_record_str_single_data): New function.
12725         (thumb2_record_ld_mem_hints): New function.
12726         (thumb2_record_ld_word): New function.
12727         (thumb2_record_lmul_lmla_div): New function.
12728         (thumb2_record_decode_insn_handler): New function.
12729         (decode_insn): Add thumb32 instruction handlers.
12730
12731 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12732
12733         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12734         (struct arm_linux_record_tdep): Declare.
12735         (arm_canonicalize_syscall): New function.
12736         (arm_all_but_pc_registers_record): New function.
12737         (arm_linux_syscall_record): New function.
12738         (arm_linux_init_abi): Add syscall recording constructs.
12739         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12740         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12741         decoding.
12742         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12743         <arm_syscall_record>: New field.
12744         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12745         gdb_target_obs.
12746
12747 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12748
12749         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12750         register for push instruction recording.
12751
12752 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12753
12754         * arm-tdep.c (thumb_record_misc): Update to correct logical
12755         error while recording ldm, ldmia and pop instructions.
12756
12757 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12758
12759         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12760
12761 2014-01-15  Pedro Alves  <palves@redhat.com>
12762
12763         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12764         (go32_resume, go32_fetch_registers, store_register)
12765         (go32_store_registers, go32_prepare_to_store)
12766         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12767         (go32_create_inferior, go32_can_run, go32_terminal_init)
12768         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12769         declarations.
12770
12771 2014-01-15  Tom Tromey  <tromey@redhat.com>
12772
12773         * target.h (async_callback_ftype): New typedef.
12774         (struct target_ops) <to_async>: Use it.
12775
12776 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12777
12778         * python/py-value.c (get_field_type): Remove unnecessary curly
12779         braces for single-statement if block.
12780
12781 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12782
12783         * python/py-type.c (convert_field): Add missing empty line
12784         after declarations.
12785
12786 2014-01-14  Doug Evans  <dje@google.com>
12787
12788         * symfile.h (expand_symtabs_matching): Renamed from
12789         expand_partial_symbol_names.  Update prototype.
12790         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12791         * symfile.c (expand_symtabs_matching): Renamed from
12792         expand_partial_symbol_names.  New args file_matcher, kind.
12793         Rename arg fun to symbol_matcher.
12794         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12795         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12796         ada_expand_partial_symbol_name.
12797         (ada_make_symbol_completion_list): Update to call
12798         expand_symtabs_matching.
12799         (ada_add_global_exceptions): Call expand_symtabs_matching.
12800         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12801         call map_symbol_filenames.
12802         * symtab.c (sources_info): Update to call map_symbol_filenames.
12803         (search_symbols): Call expand_symtabs_matching.
12804         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12805         (default_make_symbol_completion_list_break_on): Update to call
12806         expand_symtabs_matching.
12807         (make_source_files_completion_list): Update to call
12808         map_symbol_filenames.
12809
12810 2014-01-14  Doug Evans  <dje@google.com>
12811
12812         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12813         (expand_symtabs_symbol_matcher_ftype): New typedef.
12814         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12815         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12816         * symfile.c (expand_partial_symbol_names): Update to use
12817         expand_symtabs_symbol_matcher_ftype.
12818         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12819         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12820         Arg name_matcher renamed to symbol_matcher.
12821         * psymtab.c (recursively_search_psymtabs): Update to use
12822         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12823         sym_matcher.
12824         (expand_symtabs_matching_via_partial): Update to use
12825         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12826         Arg name_matcher renamed to symbol_matcher.
12827
12828 2014-01-14  Doug Evans  <dje@google.com>
12829
12830         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12831         (map_partial_symbol_filenames): Ditto.
12832         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12833         (map_partial_symbol_filenames): Ditto.
12834         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12835         (map_partial_symbol_filenames): Ditto.
12836         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12837         (map_partial_symbol_filenames): Ditto.
12838         * symtab.c: Delete #include "psymtab.h".
12839
12840 2014-01-14  Pedro Alves  <palves@redhat.com>
12841             Tom Tromey  <tromey@redhat.com>
12842
12843         * infrun.c (use_displaced_stepping): Use find_record_target
12844         instead of RECORD_IS_USED.
12845         (adjust_pc_after_break): Use record_full_is_used instead of
12846         RECORD_IS_USED.
12847         * record-btrace.c (record_btrace_open): Call record_preopen
12848         instead of checking RECORD_IS_USED.
12849         * record-full.c (record_full_shortname)
12850         (record_full_core_shortname): New globals.
12851         (record_full_is_used): New function.
12852         (find_full_open): Call record_preopen instead of checking
12853         RECORD_IS_USED.
12854         (init_record_full_ops): Set the target's shortname to
12855         record_full_shortname.
12856         (init_record_full_core_ops): Set the target's shortname to
12857         record_full_core_shortname.
12858         * record-full.h (record_full_is_used): Declare.
12859         * record.c (find_record_target): Make extern.
12860         (record_preopen): New function.
12861         * record.h (RECORD_IS_USED): Delete macro.
12862         (find_record_target, record_preopen): Declare functions.
12863
12864 2014-01-14  Yao Qi  <yao@codesourcery.com>
12865
12866         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12867         'len''s type to ULONGEST.
12868         (core_xfer_shared_libraries_aix): Likewise.
12869         * gdbarch.c, gdbarch.h: Regenerated.
12870         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12871         Change type of 'len' to ULONGEST.
12872         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12873         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12874
12875 2014-01-14  Yao Qi  <yao@codesourcery.com>
12876
12877         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12878         type of 'len' to ULONGEST.
12879         (linux_xfer_osdata_processgroups): Likewise.
12880         (linux_xfer_osdata_threads): Likewise.
12881         (linux_xfer_osdata_fds): Likewise.
12882         (linux_xfer_osdata_isockets): Likewise.
12883         (linux_xfer_osdata_shm): Likewise.
12884         (linux_xfer_osdata_sem): Likewise.
12885         (linux_xfer_osdata_msg): Likewise.
12886         (linux_common_xfer_osdata): Likewise.
12887         (struct osdata_type) <getter>: Likewise.
12888         * common/linux-osdata.h (linux_common_xfer_osdata): Update
12889         the declaration.
12890
12891 2014-01-14  Yao Qi  <yao@codesourcery.com>
12892
12893         * target.h (target_xfer_partial_ftype): Update.
12894         (struct target_ops) <to_xfer_partial>: Change 'len' type to
12895         ULONGEST.
12896         * aix-thread.c (aix_thread_xfer_partial): Change type of
12897         argument 'len' to ULONGEST.
12898         * auxv.c (procfs_xfer_auxv): Likewise.
12899         (ld_so_xfer_auxv): Likewise.
12900         (memory_xfer_auxv): Likewise.
12901         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12902         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12903         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12904         * corelow.c (core_xfer_partial): Likewise.
12905         * ctf.c (ctf_xfer_partial): Likewise.
12906         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
12907         '%u'.
12908         (darwin_read_dyld_info): Likewise.
12909         (darwin_xfer_partial): Likewise.
12910         * exec.c (section_table_xfer_memory_partial): Likewise.
12911         (exec_xfer_partial): Likewise.
12912         * exec.h (section_table_xfer_memory_partial): Update
12913         declaration.
12914         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
12915         instead of plongest.
12916         (gnu_xfer_partial): Likewise.
12917         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12918         (ia64_hpux_xfer_solib_got): Likewise.
12919         (ia64_hpux_xfer_partial): Likewise.
12920         * ia64-linux-nat.c (ia64_linux_xfer_partial):
12921         * inf-ptrace.c (inf_ptrace_xfer_partial):
12922         * inf-ttrace.c (inf_ttrace_xfer_partial):
12923         * linux-nat.c (linux_xfer_siginfo): Likewise.
12924         (linux_nat_xfer_partial): Likewise.
12925         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12926         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12927         * monitor.c (monitor_xfer_memory): Likewise.
12928         (monitor_xfer_partial): Likewise.
12929         * procfs.c (procfs_xfer_partial): Likewise.
12930         * record-full.c (record_full_xfer_partial): Likewise.
12931         (record_full_core_xfer_partial): Likewise.
12932         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
12933         instead of plongest.
12934         (gdbsim_xfer_partial): Likewise.
12935         * remote.c (remote_xfer_partial): Likewise.
12936         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12937         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12938         declaration.
12939         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12940         (rs6000_xfer_shared_libraries): Likewise.
12941         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12942         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12943         (sparc_xfer_partial): Likewise.
12944         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12945         (spu_xfer_partial): Likewise.
12946         * spu-multiarch.c (spu_xfer_partial): Likewise.
12947         * target.c (target_read_live_memory): Likewise.
12948         (memory_xfer_live_readonly_partial): Likewise.
12949         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12950         (target_xfer_partial, default_xfer_partial): Likewise.
12951         (current_xfer_partial): Likewise.
12952         * tracepoint.c (tfile_xfer_partial): Likewise.
12953         * windows-nat.c (windows_xfer_memory): Likewise.  Call
12954         pulongest instead of plongest.
12955         (windows_xfer_partial): Likewise.
12956         (windows_xfer_shared_libraries): Likewise.
12957
12958 2014-01-14  Yao Qi  <yao@codesourcery.com>
12959
12960         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12961         target_xfer_partial_ftype.
12962
12963 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
12964
12965         PR python/15464
12966         PR python/16113
12967         * valops.c (value_struct_elt_bitpos): New function
12968         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12969         object to 'None' if the field name is an empty string ("").
12970         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12971         attribute to look for a field when 'name' is 'None'.
12972         (get_field_type): New function
12973
12974 2014-01-13  Doug Evans  <dje@google.com>
12975
12976         PR symtab/16426
12977         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12978         (try_open_dwop_file): Ditto.
12979         * gdb_bfd.c: #include "vec.h".
12980         (bfdp): New typedef.
12981         (struct gdb_bfd_data): New member included_bfds.
12982         (gdb_bfd_unref): Unref all included bfds.
12983         (gdb_bfd_record_inclusion): New function.
12984         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12985
12986 2014-01-13  Tom Tromey  <tromey@redhat.com>
12987
12988         * gdbcore.h (deprecated_core_resize_section_table): Remove.
12989
12990 2014-01-13  Tom Tromey  <tromey@redhat.com>
12991
12992         * defs.h (use_windows): Remove.
12993         * gdb.c (main): Update.
12994         * main.c (captured_main, gdb_main): Update.
12995         * main.h (struct captured_main_args) <use_windows>: Remove.
12996         * top.c (use_windows): Remove.
12997
12998 2014-01-13  Tom Tromey  <tromey@redhat.com>
12999
13000         * defs.h (deprecated_flush_hook): Remove.
13001
13002 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13003
13004         PR threads/16216
13005         * linux-thread-db.c (try_thread_db_load): Add parameter
13006         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13007         (try_thread_db_load_from_pdir_1): Move it there from here.
13008         (try_thread_db_load_from_sdir): Update caller.
13009         (try_thread_db_load_from_dir): Move it there from here.
13010
13011 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13012
13013         * regformats/regdat.sh: Always rewrite the register file.
13014
13015 2014-01-13  Pedro Alves  <palves@redhat.com>
13016
13017         * Makefile.in (CHECK_HEADERS): New variable.
13018         (check-headers:): New rule.
13019
13020 2014-01-13  Tom Tromey  <tromey@redhat.com>
13021
13022         * cli/cli-setshow.c (do_set_command): Update.
13023         * defs.h (deprecated_set_hook): Remove.
13024         * top.c (deprecated_set_hook): Remove.
13025
13026 2014-01-13  Pedro Alves  <palves@redhat.com>
13027
13028         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13029         the tracepoint if the PC is a pseudo-register.
13030
13031 2014-01-13  Tom Tromey  <tromey@redhat.com>
13032
13033         * defs.h (XCALLOC): Remove.
13034         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13035         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13036         * dwarf2loc.c (allocate_piece_closure): Likewise.
13037         * elfread.c (elf_symfile_segments): Likewise.
13038         (elf_symfile_segments): Likewise.
13039         * gdbtypes.c (copy_type_recursive): Likewise.
13040         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13041         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13042         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13043         XCALLOC.
13044         * mt-tdep.c (mt_gdbarch_init): Likewise.
13045         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13046         XCALLOC.
13047         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13048         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13049         * registry.c (registry_alloc_data): Likewise.
13050         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13051         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13052         * serial.c (serial_fdopen_ops): Likewise.
13053         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13054         XCALLOC.
13055         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13056         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13057         not XCALLOC.
13058
13059 2014-01-13  Tom Tromey  <tromey@redhat.com>
13060
13061         * defs.h (XMALLOC): Remove.
13062         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13063         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13064         * cli-out.c (struct ui_out *): Likewise.
13065         * cli/cli-dump.c (add_dump_command): Likewise.
13066         (add_dump_command): Likewise.
13067         * complaints.c (get_complaints): Likewise.
13068         (find_complaint): Likewise.
13069         * dwarf2-frame.c (execute_cfa_program): Likewise.
13070         * dwarf2read.c (abbrev_table_read_table): Likewise.
13071         * gdbarch.sh: Likewise.
13072         * gdbarch.c: Rebuild.
13073         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13074         * interps.c (interp_new): Likewise.
13075         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13076         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13077         * mi/mi-console.c (mi_console_file_new): Likewise.
13078         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13079         * mi/mi-out.c (mi_out_new): Likewise.
13080         * mi/mi-parse.c (mi_parse): Likewise.
13081         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13082         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13083         * observer.c (xalloc_observer_list_node): Likewise.
13084         * regcache.c (regcache_xmalloc_1): Likewise.
13085         * reggroups.c (reggroup_new): Likewise.
13086         (_initialize_reggroup): Likewise.
13087         * registry.c (register_data_with_cleanup): Likewise.
13088         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13089         * ser-base.c (serial_ttystate): Likewise.
13090         * ser-mingw.c (make_pipe_state): Likewise.
13091         * ser-pipe.c (pipe_open): Likewise.
13092         * serial.c (serial_open): Likewise.
13093         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13094         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13095         (tui_alloc_win_info): Likewise.
13096         (tui_add_content_elements): Likewise.
13097         * tui/tui-file.c (tui_file_new): Likewise.
13098         * tui/tui-out.c (tui_out_new): Likewise.
13099         * ui-file.c (mem_file_new): Likewise.
13100         * ui-out.c (push_level): Likewise.
13101         (make_cleanup_ui_out_end): Likewise.
13102         (append_header_to_list): Likewise.
13103         (ui_out_new): Likewise.
13104         * user-regs.c (user_reg_add_builtin): Likewise.
13105
13106 2014-01-13  Tom Tromey  <tromey@redhat.com>
13107
13108         * defs.h (XZALLOC): Remove.
13109         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13110         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13111         (get_ada_tasks_inferior_data): Likewise.
13112         * auto-load.c (get_auto_load_pspace_data): Likewise.
13113         * auxv.c (get_auxv_inferior_data): Likewise.
13114         * bfd-target.c (target_bfd_reopen): Likewise.
13115         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13116         (deprecated_insert_raw_breakpoint): Likewise.
13117         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13118         * corelow.c (core_open): Likewise.
13119         * darwin-nat.c (darwin_check_new_threads): Likewise.
13120         (darwin_attach_pid): Likewise.
13121         * dummy-frame.c (dummy_frame_push): Likewise.
13122         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13123         * dwarf2loc.c (allocate_piece_closure): Likewise.
13124         * elfread.c (elf_symfile_segments): Likewise.
13125         * eval.c (ptrmath_type_p): Likewise.
13126         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13127         * gdbtypes.c (alloc_type_arch): Likewise.
13128         (alloc_type_instance): Likewise.
13129         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13130         * inf-child.c (inf_child_can_use_agent): Likewise.
13131         * inflow.c (get_inflow_inferior_data): Likewise.
13132         * infrun.c (save_infcall_suspend_state): Likewise.
13133         * jit.c (jit_reader_load): Likewise.
13134         (get_jit_objfile_data): Likewise.
13135         (get_jit_program_space_data): Likewise.
13136         (jit_object_open_impl): Likewise.
13137         (jit_symtab_open_impl): Likewise.
13138         (jit_block_open_impl): Likewise.
13139         (jit_frame_sniffer): Likewise.
13140         * linux-fork.c (add_fork): Likewise.
13141         * maint.c (make_command_stats_cleanup): Likewise.
13142         * objfiles.c (get_objfile_pspace_data): Likewise.
13143         * opencl-lang.c (struct lval_closure): Likewise.
13144         * osdata.c (osdata_start_osdata): Likewise.
13145         * progspace.c (new_address_space): Likewise.
13146         (add_program_space): Likewise.
13147         * remote-sim.c (get_sim_inferior_data): Likewise.
13148         * sh-tdep.c (sh_gdbarch_init): Likewise.
13149         * skip.c (Ignore): Likewise.
13150         (skip_delete_command): Likewise.
13151         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13152         (library_list_start_library): Likewise.
13153         (solib_aix_current_sos): Likewise.
13154         * solib-darwin.c (get_darwin_info): Likewise.
13155         (darwin_current_sos): Likewise.
13156         * solib-dsbt.c (get_dsbt_info): Likewise.
13157         * solib-ia64-hpux.c (new_so_list): Likewise.
13158         (ia64_hpux_get_solib_linkage_addr): Likewise.
13159         * solib-spu.c (append_ocl_sos): Likewise.
13160         (spu_current_sos): Likewise.
13161         * solib-svr4.c (get_svr4_info): Likewise.
13162         (svr4_keep_data_in_core): Likewise.
13163         (library_list_start_library): Likewise.
13164         (svr4_default_sos): Likewise.
13165         (svr4_read_so_list): Likewise.
13166         * solib-target.c (library_list_start_library): Likewise.
13167         (solib_target_current_sos): Likewise.
13168         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13169         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13170         * symfile.c (default_symfile_segments): Likewise.
13171         * target-descriptions.c (tdesc_data_init): Likewise.
13172         (tdesc_create_reg): Likewise.
13173         (struct tdesc_type *): Likewise.
13174         (tdesc_create_vector): Likewise.
13175         (tdesc_set_struct_size): Likewise.
13176         (struct tdesc_type *): Likewise.
13177         (tdesc_free_feature): Likewise.
13178         (tdesc_create_feature): Likewise.
13179         * windows-nat.c (windows_add_thread): Likewise.
13180         (windows_make_so): Likewise.
13181         * xml-support.c (gdb_xml_body_text): Likewise.
13182         (gdb_xml_create_parser_and_cleanup): Likewise.
13183         (xml_process_xincludes): Likewise.
13184         * xml-syscall.c (allocate_syscalls_info): Likewise.
13185         (syscall_create_syscall_desc): Likewise.
13186
13187 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13188
13189         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13190         function, with code from i386_stap_parse_special_token.
13191         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13192         (i386_stap_parse_special_token): Move code to the two functions
13193         above; simplify it.
13194
13195 2014-01-09  Pedro Alves  <palves@redhat.com>
13196             Hui Zhu  <hui@codesourcery.com>
13197
13198         PR gdb/16101
13199         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13200         bp_err_string.  Don't mark the location shlib_disabled if the
13201         error thrown wasn't a generic or memory error.  Catch errors
13202         thrown while inserting breakpoints in overlayed code.  Output
13203         error message of software breakpoints.
13204         * remote.c (remote_insert_breakpoint): If this breakpoint has
13205         target-side commands but this stub doesn't support Z0 packets,
13206         throw NOT_SUPPORTED_ERROR error.
13207         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13208         * target.h (target_insert_breakpoint): Extend comment.
13209         (target_insert_hw_breakpoint): Add comment.
13210
13211 2014-01-08  Pedro Alves  <palves@redhat.com>
13212
13213         * remote.c (remote_add_thread): Add threads silently if starting
13214         up.
13215         (remote_notice_new_inferior): If in all-stop, and starting up,
13216         don't call notice_new_inferior.
13217         (get_current_thread): New function, factored out from ...
13218         (add_current_inferior_and_thread): ... this.  Adjust.
13219         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13220         found any thread, then select the remote's current thread as GDB's
13221         current thread too.
13222
13223 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13224
13225         * NEWS: Create a new section for the next release branch.
13226         Rename the section of the current branch, now that it has
13227         been cut.
13228
13229 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13230
13231         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13232         * version.in: Bump version to 7.7.50.DATE-cvs.
13233
13234 2014-01-08  Yao Qi  <yao@codesourcery.com>
13235
13236         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13237         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13238         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13239
13240 2014-01-08  Yao Qi  <yao@codesourcery.com>
13241
13242         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13243         return value of bfd_get_filename to symbol_file_add_from_bfd.
13244
13245 2014-01-08  Pierre Muller  <muller@sourceware.org>
13246
13247         Fix PR16201.
13248         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13249         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13250         to prim_record_mininal_symbol_and_info.
13251         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13252         in call to prim_record_minimal_symbol_and_info.
13253         (read_pe_exported_syms): Set index field of section_data.
13254
13255 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13256
13257         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13258         * features/aarch64.c: Regenerate.
13259
13260 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13261
13262         * target.c (return_null): Define.
13263         (update_current_target): Use it instead of return_zero for
13264         functions that return a pointer.
13265
13266 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13267
13268         * source.c (add_path): Fix check for duplicated paths in the previously
13269         included paths.
13270
13271 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13272
13273         * ada-lang.c: Remove duplicated include statements.
13274         * alphabsd-nat.c: Ditto.
13275         * amd64-darwin-tdep.c: Ditto.
13276         * amd64fbsd-nat.c: Ditto.
13277         * auto-load.c: Ditto.
13278         * ax-gdb.c: Ditto.
13279         * breakpoint.c: Ditto.
13280         * dbxread.c: Ditto.
13281         * fork-child.c: Ditto.
13282         * gdb_usleep.c: Ditto.
13283         * i386-darwin-tdep.c: Ditto.
13284         * i386fbsd-nat.c: Ditto.
13285         * infcmd.c: Ditto.
13286         * inferior.c: Ditto.
13287         * jv-lang.c: Ditto.
13288         * linux-nat.c: Ditto.
13289         * linux-tdep.c: Ditto.
13290         * m68kbsd-nat.c: Ditto.
13291         * m68klinux-nat.c: Ditto.
13292         * microblaze-tdep.c: Ditto.
13293         * mips-linux-tdep.c: Ditto.
13294         * mn10300-tdep.c: Ditto.
13295         * nto-tdep.c: Ditto.
13296         * opencl-lang.c: Ditto.
13297         * osdata.c: Ditto.
13298         * printcmd.c: Ditto.
13299         * regcache.c: Ditto.
13300         * remote-m32r-sdi.c: Ditto.
13301         * remote.c: Ditto.
13302         * symfile.c: Ditto.
13303         * symtab.c: Ditto.
13304         * tilegx-linux-nat.c: Ditto.
13305         * tilegx-tdep.c: Ditto.
13306         * tracepoint.c: Ditto.
13307         * valops.c: Ditto.
13308         * vaxbsd-nat.c: Ditto.
13309         * windows-nat.c: Ditto.
13310         * xtensa-tdep.c: Ditto.
13311
13312 2014-01-07  Yao Qi  <yao@codesourcery.com>
13313
13314         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13315
13316 2014-01-07  Yao Qi  <yao@codesourcery.com>
13317             Joel Brobecker  <brobecker@adacore.com>
13318
13319         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13320         (pdc_write_regs): Likewise.
13321         (fetch_regs_kernel_thread): Likewise.
13322         (store_regs_kernel_thread): Likewise.
13323
13324 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13325
13326         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13327         tagged type objects to their actual type.
13328
13329 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13330
13331         * ada-valprint.c (print_field_values): Add "language" parameter.
13332         Update calls to print_field_values and print_variant_part.
13333         Pass new parameter "language" in call to val_print instead
13334         of "current_language".  Replace call to ada_val_print by call
13335         to val_print.
13336         (print_variant_part): Add "language" parameter.
13337         (ada_val_print_struct_union): Update call to print_field_values.
13338
13339 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13340
13341         * ada-valprint.c (ui_memcpy): Delete.
13342         (ada_print_floating): Update documentation.  Add empty line
13343         between between function documentation and implementation.
13344         Delete variable "buffer".  Use ui_file_xstrdup in place of
13345         ui_file_put.  Minor adjustments following this change.
13346
13347 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13348
13349         * ada-valprint.c (ada_val_print_string): New function,
13350         extracted from ada_val_print_array.
13351         (ada_val_print_array): Replace extracted code by call
13352         to ada_val_print_string followed by a return.  Move
13353         "else" branch to the function's top block.
13354
13355 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13356
13357         * ada-valprint.c (ada_val_print_array): Move implementation
13358         down.  Rename parameter "offset" and "val" into "offset_aligned"
13359         and "original_value" respectively.  Add parameter "offset".
13360
13361 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13362
13363         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13364         re-organizing the code. Change the "???" message printed
13365         when target type is a TYPE_CODE_UNDEF into
13366         "<ref to undefined type>".
13367
13368 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13369
13370         * ada-valprint.c (print_record): Delete, implementation inlined...
13371         (ada_val_print_struct_union): ... here.  Remove call to
13372         ada_check_typedef in inlined implementation.
13373
13374 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13375
13376         * ada-valprint.c (ada_val_print_gnat_array): New function,
13377         extracted from ada_val_print_1;
13378         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13379         (ada_val_print_flt, ada_val_print_struct_union)
13380         (ada_val_print_ref): Likewise.
13381         (ada_val_print_1): Delete variables i and elttype.
13382         Replace extracted-out code by call to corresponding
13383         new functions.
13384
13385 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13386
13387         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13388
13389 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13390
13391         * ada-valprint.c (ada_val_print_1): Replace calls to
13392         ada_val_print_1 by calls to val_print.
13393
13394 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13395
13396         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13397         Update calls to self accordingly.  Replace calls to c_val_print
13398         by calls to val_print.
13399
13400 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13401
13402         * ada-valprint.c (print_record): Delete declaration.
13403         (adjust_type_signedness, ada_val_print_1): Likewise.
13404         (ada_val_print): Move function implementation down.
13405         (print_variant_part, print_field_values, print_record):
13406         Move function implementation up.
13407
13408 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13409
13410         * python/py-type.c (typy_get_name): New function.
13411         (type_object_getset): Add entry for attribute "name".
13412         * NEWS: Add entry mentioning this new attribute.
13413
13414 2014-01-07  Yao Qi  <yao@codesourcery.com>
13415
13416         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13417         statement.
13418
13419 2014-01-07  Yao Qi  <yao@codesourcery.com>
13420
13421         * gnu-nat.c (info_port_rights): Add qualifier const to
13422         argument args.
13423
13424 2014-01-07  Yao Qi  <yao@codesourcery.com>
13425
13426         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13427
13428 2014-01-07  Yao Qi  <yao@codesourcery.com>
13429
13430         * gnu-nat.c (make_inf) Update declaration.
13431         (make_inf): Make it static.
13432         (inf_set_traced): Likewise.
13433         (inf_port_to_thread, inf_task_died_status): Likewise.
13434
13435 2014-01-07  Yao Qi  <yao@codesourcery.com>
13436
13437         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13438
13439 2014-01-07  Yao Qi  <yao@codesourcery.com>
13440
13441         * gnu-nat.c (_initialize_gnu_nat): Declare.
13442
13443 2014-01-07  Yao Qi  <yao@codesourcery.com>
13444
13445         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13446         'enum bfd_endian'.
13447         (struct gdbarch_info) <byte_order>: Change type to
13448         'enum bfd_endian'.
13449         <byte_order_for_code>: Likewise.
13450         * gdbarch.c, gdbarch.h: Regenerated.
13451
13452 2014-01-06  Sasha Smundak  <asmundak@google.com>
13453
13454         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13455
13456 2014-01-06  Tom Tromey  <tromey@redhat.com>
13457
13458         * doublest.c (convert_doublest_to_floatformat): Use const, not
13459         CONST.
13460         * somread.c (som_symtab_read): Likewise.
13461
13462 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13463
13464         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13465         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13466         (gdb_bfd_fopen): Ditto.
13467         (gdb_bfd_openr): Ditto.
13468         (gdb_bfd_openw): Ditto.
13469         (gdb_bfd_openr_iovec): Ditto.
13470         (gdb_bfd_fdopenr): Ditto.
13471         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13472         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13473         with xstrdup.
13474         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13475         with xstrdup.
13476         * symfile-mem.c (symbol_file_add_from_memory): Removed
13477         gdb_bfd_stash_filename.
13478
13479 2014-01-03  Doug Evans  <dje@google.com>
13480
13481         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13482         output.
13483
13484 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13485
13486         Update year range in copyright notice of all files.
13487
13488 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13489
13490         * top.c (print_gdb_version): Set copyright year to 2014.
13491
13492 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13493
13494         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13495
13496 For older changes see ChangeLog-2013.
13497 \f
13498 Local Variables:
13499 mode: change-log
13500 left-margin: 8
13501 fill-column: 74
13502 version-control: never
13503 coding: utf-8
13504 End: