Add read-only markers to generated gdb/regformats/ .dat files
[external/binutils.git] / gdb / ChangeLog
1 2014-10-01  Pedro Alves  <palves@redhat.com>
2
3         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
4         GENERATED" along with emacs/vi read-only markers.
5         * regformats/aarch64.dat: Regenerate.
6         * regformats/arm-with-iwmmxt.dat: Regenerate.
7         * regformats/arm-with-neon.dat: Regenerate.
8         * regformats/arm-with-vfpv2.dat: Regenerate.
9         * regformats/arm-with-vfpv3.dat: Regenerate.
10         * regformats/i386/amd64-avx-linux.dat: Regenerate.
11         * regformats/i386/amd64-avx.dat: Regenerate.
12         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
13         * regformats/i386/amd64-avx512.dat: Regenerate.
14         * regformats/i386/amd64-linux.dat: Regenerate.
15         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
16         * regformats/i386/amd64-mpx.dat: Regenerate.
17         * regformats/i386/amd64.dat: Regenerate.
18         * regformats/i386/i386-avx-linux.dat: Regenerate.
19         * regformats/i386/i386-avx.dat: Regenerate.
20         * regformats/i386/i386-avx512-linux.dat: Regenerate.
21         * regformats/i386/i386-avx512.dat: Regenerate.
22         * regformats/i386/i386-linux.dat: Regenerate.
23         * regformats/i386/i386-mmx-linux.dat: Regenerate.
24         * regformats/i386/i386-mmx.dat: Regenerate.
25         * regformats/i386/i386-mpx-linux.dat: Regenerate.
26         * regformats/i386/i386-mpx.dat: Regenerate.
27         * regformats/i386/i386.dat: Regenerate.
28         * regformats/i386/x32-avx-linux.dat: Regenerate.
29         * regformats/i386/x32-avx.dat: Regenerate.
30         * regformats/i386/x32-avx512-linux.dat: Regenerate.
31         * regformats/i386/x32-avx512.dat: Regenerate.
32         * regformats/i386/x32-linux.dat: Regenerate.
33         * regformats/i386/x32.dat: Regenerate.
34         * regformats/microblaze-with-stack-protect.dat: Regenerate.
35         * regformats/mips-dsp-linux.dat: Regenerate.
36         * regformats/mips-linux.dat: Regenerate.
37         * regformats/mips64-dsp-linux.dat: Regenerate.
38         * regformats/mips64-linux.dat: Regenerate.
39         * regformats/nios2-linux.dat: Regenerate.
40         * regformats/rs6000/powerpc-32.dat: Regenerate.
41         * regformats/rs6000/powerpc-32l.dat: Regenerate.
42         * regformats/rs6000/powerpc-64l.dat: Regenerate.
43         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
44         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
45         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
46         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
47         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
48         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
49         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
50         * regformats/s390-linux32.dat: Regenerate.
51         * regformats/s390-linux32v1.dat: Regenerate.
52         * regformats/s390-linux32v2.dat: Regenerate.
53         * regformats/s390-linux64.dat: Regenerate.
54         * regformats/s390-linux64v1.dat: Regenerate.
55         * regformats/s390-linux64v2.dat: Regenerate.
56         * regformats/s390-te-linux64.dat: Regenerate.
57         * regformats/s390x-linux64.dat: Regenerate.
58         * regformats/s390x-linux64v1.dat: Regenerate.
59         * regformats/s390x-linux64v2.dat: Regenerate.
60         * regformats/s390x-te-linux64.dat: Regenerate.
61         * regformats/tic6x-c62x-linux.dat: Regenerate.
62         * regformats/tic6x-c62x.dat: Regenerate.
63         * regformats/tic6x-c64x-linux.dat: Regenerate.
64         * regformats/tic6x-c64x.dat: Regenerate.
65         * regformats/tic6x-c64xp-linux.dat: Regenerate.
66         * regformats/tic6x-c64xp.dat: Regenerate.
67
68 2014-10-01  Pedro Alves  <palves@redhat.com>
69
70         * features/Makefile: Update comments.
71         (XMLTOC): List all xml files we build C files from.
72         (clean-cfiles): New rule.
73
74 2014-10-01  Pedro Alves  <palves@redhat.com>
75
76         * features/i386/amd64-avx512-linux.c: Regenerate.
77         * features/i386/amd64-avx512.c: Regenerate.
78         * features/i386/x32-avx512-linux.c: Regenerate.
79         * features/i386/x32-avx512.c: Regenerate.
80
81 2014-10-01  Pedro Alves  <palves@redhat.com>
82
83         * features/Makefile (WHICH): Remove arm-with-m,
84         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
85
86 2014-10-01  Pedro Alves  <palves@redhat.com>
87
88         * features/Makefile (clean): New rule.
89
90 2014-10-01  Pedro Alves  <palves@redhat.com>
91
92         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
93         (zmm14h): Add missing end quotes.
94
95 2014-10-01  Pedro Alves  <palves@redhat.com>
96
97         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
98         * features/aarch64.c: Regenerate.
99
100 2014-09-30  Don Breazeal  <donb@codesourcery.com>
101
102         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
103         code so as to work with follow_fork_inferior.
104         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
105         (inf_ttrace_create_inferior): Remove reference to
106         inf_ttrace_vfork_ppid.
107         (inf_ttrace_attach): Ditto.
108         (inf_ttrace_detach): Ditto.
109         (inf_ttrace_kill): Use current_inferior instead of
110         inf_ttrace_vfork_ppid.
111         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
112         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
113         inferior away from the parent.
114         * infrun.c (follow_fork): Call follow_fork_inferior instead of
115         target_follow_fork.
116         (follow_fork_inferior): New function.
117         (follow_inferior_reset_breakpoints): Make function static.
118         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
119         * linux-nat.c (linux_child_follow_fork): Move target-independent
120         code to infrun.c:follow_fork_inferior.
121
122 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
123
124         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
125         * gdbarch.c: Regenerate.
126         * gdbarch.h: Likewise.
127         * corelow.c (sniff_core_bfd): Drop presence check for deleted
128         gdbarch method 'regset_from_core_section'.
129         (get_core_register_section): Remove handling for the case that
130         regset == NULL and regset_from_core_section is defined.
131         (get_core_registers): Drop check for deleted method.
132         * procfs.c (procfs_do_thread_registers): Adjust comment.
133
134 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
135
136         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
137         (linux_nat_make_corefile_notes): Remove.
138         (linux_target_install_ops): Do not set target method
139         'make_corefile_notes'.
140         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
141         Remove field.
142         (linux_corefile_thread_callback): Instead of args->collect, call
143         linux_collect_thread_registers.
144         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
145         NULL unless there is a regset iterator.
146         (linux_make_corefile_notes_1): Remove.
147         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
148         by linux_make_corefile_notes.
149         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
150
151 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
152
153         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
154         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
155         Remove.
156         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
157
158 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
159
160         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
161         (xtensa_iterate_over_regset_sections): New.
162         (xtensa_gdbarch_init): Adjust gdbarch initialization.
163
164 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
165
166         * vax-tdep.c (vax_regset_from_core_section): Remove.
167         (vax_iterate_over_regset_sections): New.
168         (vax_gdbarch_init): Adjust gdbarch initialization.
169
170 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
171
172         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
173         (tilegx_regset_from_core_section): Remove.
174         (tilegx_iterate_over_regset_sections): New.
175         (tilegx_linux_init_abi): Adjust gdbarch initialization.
176
177 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
178
179         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
180         (sparc_iterate_over_regset_sections): New.
181         (sparc32_gdbarch_init): Adjust gdbarch initialization.
182         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
183         targets.
184         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
185         (sparc64fbsd_init_abi): Call fbsd_init_abi.
186         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
187         target method 'make_corefile_notes'.
188
189 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
190
191         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
192         'sizeof_gregset' and 'sizeof_fpregset'.
193         * sh-tdep.c (sh_regset_from_core_section): Remove.
194         (sh_iterate_over_regset_sections): New.
195         (sh_gdbarch_init): Adjust gdbarch initialization.
196         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
197         sizeof_fpregset.
198         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
199         'sizeof_gregset'.
200
201 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
202
203         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
204         (score7_linux_iterate_over_regset_sections): New.
205         (score_gdbarch_init): Adjust gdbarch initialization.
206
207 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
208
209         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
210         FreeBSD targets.
211         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
212         method 'make_corefile_notes'.
213         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
214         (ppcfbsd_regset_from_core_section): Remove.
215         (ppcfbsd_iterate_over_regset_sections): New.
216         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
217         initialization.
218         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
219         (ppcnbsd_iterate_over_regset_sections): New.
220         (ppcnbsd_init_abi): Adjust.
221         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
222         (ppcobsd_iterate_over_regset_sections): New.
223         (ppcobsd_init_abi): Adjust.
224         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
225         (rs6000_aix_iterate_over_regset_sections): New.
226         (rs6000_aix_init_osabi): Adjust.
227
228 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
229
230         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
231         (nios2_regset_from_core_section): Remove.
232         (nios2_iterate_over_regset_sections): New.
233         (nios2_linux_init_abi): Adjust gdbarch initialization.
234
235 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
236
237         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
238         (am33_iterate_over_regset_sections): New.
239         (am33_linux_init_osabi): Adjust gdbarch initialization.
240
241 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
242
243         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
244         (mips_linux_iterate_over_regset_sections): New.
245         (mips_linux_init_abi): Adjust gdbarch initialization.
246         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
247         (mips64obsd_iterate_over_regset_sections): New.
248         (mips64obsd_init_abi): Adjust.
249         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
250         (mipsnbsd_iterate_over_regset_sections): New.
251         (mipsnbsd_init_abi): Adjust.
252
253 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
254
255         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
256         (m88k_iterate_over_regset_sections): New.
257         (m88k_gdbarch_init): Adjust gdbarch initialization.
258
259 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
260
261         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
262         (ia64_linux_iterate_over_regset_sections): New.
263         (ia64_linux_init_abi): Adjust gdbarch initialization.
264
265 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
266
267         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
268         (m68kbsd_iterate_over_regset_sections): New.
269         (m68kbsd_init_abi): Adjust gdbarch initialization.
270         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
271         (m68k_linux_iterate_over_regset_sections): New.
272         (m68k_linux_init_abi): Adjust gdbarch initialization.
273
274 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
275
276         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
277         (m32r_linux_regset_from_core_section): Remove.
278         (m32r_linux_iterate_over_regset_sections): New.
279         (m32r_linux_init_abi): Adjust gdbarch initialization.
280
281 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
282
283         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
284         (amd64obsd_iterate_over_regset_sections): New.
285         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
286         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
287         Remove.
288         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
289         regset_from_core_section initialization.
290         * i386-tdep.c (i386_regset_from_core_section): Remove.
291         (i386_iterate_over_regset_sections): New.
292         (i386_gdbarch_init): Adjust gdbarch initialization.
293         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
294         (i386_iterate_over_regset_sections): New prototype.
295         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
296         Remove.
297         (i386obsd_aout_iterate_over_regset_sections): New.
298         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
299         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
300         targets.
301         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
302         (amd64fbsd_init_abi): Call fbsd_init_abi.
303         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
304         (i386fbsd4_init_abi): Call fbsd_init_abi.
305         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
306         target method 'make_corefile_notes'.
307         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
308
309 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
310
311         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
312         (hppa_hpux_iterate_over_regset_sections): New.
313         (hppa_hpux_init_abi): Adjust gdbarch initialization.
314         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
315         (hppa_linux_iterate_over_regset_sections): New.
316         (hppa_linux_init_abi): Adjust.
317         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
318         (hppanbsd_iterate_over_regset_sections): New.
319         (hppanbsd_init_abi): Adjust.
320         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
321         (hppaobsd_iterate_over_regset_sections): New.
322         (hppaobsd_init_abi): Adjust.
323
324 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
325
326         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
327         (frv_linux_iterate_over_regset_sections): New.
328         (frv_linux_init_abi): Adjust gdbarch initialization.
329
330 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
331
332         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
333         (armbsd_iterate_over_regset_sections): New prototype.
334         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
335         (armbsd_iterate_over_regset_sections): New.
336         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
337         initialization.
338
339 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
340
341         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
342         (alpha_linux_iterate_over_regset_sections): New.
343         (alpha_linux_init_abi): Adjust gdbarch initialization.
344         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
345         prototype.
346         (alphanbsd_iterate_over_regset_sections): New prototype.
347
348 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
349
350         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
351         Remove.
352         (aarch64_linux_iterate_over_regset_sections): New.
353         (aarch64_linux_init_abi): Adjust gdbarch initialization.
354
355 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
356
357         * fbsd-tdep.c: New file.
358         * fbsd-tdep.h: New file.
359         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
360         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
361         (ALLDEPFILES): Add fbsd-tdep.c.
362
363 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
364
365         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
366         parameter.
367         * gdbarch.h: Regenerate.
368         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
369         iterator.
370         (get_core_register_section): Add parameter 'regset' and use it, if
371         set.  Add parameter 'min_size' and verify the bfd section size
372         against it.
373         (get_core_registers_cb): Add parameter 'regset' and pass it to
374         get_core_register section.  For the "standard" register sections
375         ".reg" and ".reg2", set an appropriate default for human_name.
376         (get_core_registers): Don't abort when the gdbarch has an iterator
377         but no regset_from_core_section.  Add NULL/0 for parameters
378         'regset'/'min_size' in calls to get_core_register_section.
379         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
380         'regset' and use it instead of calling the
381         regset_from_core_section gdbarch method.
382         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
383         * i386-tdep.c (i386_supply_xstateregset)
384         (i386_collect_xstateregset, i386_xstateregset): Moved to
385         i386-linux-tdep.c.
386         (i386_regset_from_core_section): Drop handling for .reg-xfp and
387         .reg-xstate.
388         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
389         core file support only if the regset iterator hasn't been set.
390         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
391         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
392         Moved from i386-tdep.c and renamed to *_linux*.
393         (i386_linux_iterate_over_regset_sections): Add regset parameter to
394         each callback invocation.  Allow any .reg-xstate size when reading
395         from a core file.
396         * amd64-tdep.c (amd64_supply_xstateregset)
397         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
398         amd64-linux-tdep.c.
399         (amd64_regset_from_core_section): Remove.
400         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
401         install an amd64-specific regset_from_core_section gdbarch method.
402         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
403         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
404         Moved from amd64-tdep.c and renamed to *_linux*.
405         (amd64_linux_iterate_over_regset_sections): Add regset parameter
406         to each callback invocation.  Allow any .reg-xstate size when
407         reading from a core file.
408         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
409         (arm_linux_iterate_over_regset_sections): Add regset parameter to
410         each callback invocation.
411         (arm_linux_init_abi): No longer set the regset_from_core_section
412         gdbarch method.
413         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
414         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
415         each callback invocation.
416         (ppc_linux_init_abi): No longer set the regset_from_core_section
417         gdbarch method.
418         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
419         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
420         (s390_regset_from_core_section): Remove.
421         (s390_iterate_over_regset_sections): Add regset parameter to each
422         callback invocation.
423         (s390_gdbarch_init): No longer set the regset_from_core_section
424         gdbarch method.  Drop initialization of deleted tdep fields.
425
426 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
427
428         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
429         (amd64_linux_iterate_over_regset_sections): New.
430         (amd64_linux_init_abi_common): Don't install the regset section
431         list, but the new iterator in gdbarch.
432         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
433         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
434         (arm_linux_iterate_over_regset_sections): ...here.  New function.
435         (arm_linux_init_abi): Set iterator instead of section list.
436         * corelow.c (get_core_registers_cb): New function, logic moved
437         from...
438         (get_core_registers): ...loop body here.  Use new iterator method
439         instead of walking through the regset section list.
440         * gdbarch.sh: Remove 'core_regset_sections'.  New method
441         'iterate_over_regset_sections'.  New typedef
442         'iterate_over_regset_sections_cb'.
443         * gdbarch.c: Regenerate.
444         * gdbarch.h: Likewise.
445         * i386-linux-tdep.c (i386_linux_regset_sections)
446         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
447         Remove.
448         (i386_linux_iterate_over_regset_sections): New.
449         (i386_linux_init_abi): Don't choose a regset section list, but
450         install new iterator in gdbarch.
451         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
452         (linux_collect_regset_section_cb): New function, logic moved
453         from...
454         (linux_collect_thread_registers): ...loop body here.  Use iterator
455         method instead of walking through list.
456         (linux_make_corefile_notes_1): Check for presence of iterator
457         method instead of regset section list.
458         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
459         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
460         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
461         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
462         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
463         (ppc_linux_init_abi): Don't choose from above regset section
464         lists, but install new iterator in gdbarch.
465         * regset.h (struct core_regset_section): Remove.
466         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
467         have_linux_v1, have_linux_v2, and have_tdb.
468         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
469         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
470         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
471         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
472         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
473         (s390_iterate_over_regset_sections): ...here.  New function.  Use
474         new tdep fields.
475         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
476         regset section lists, but install new iterator.
477
478 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
479
480         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
481
482 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
483
484         * progspace.c (print_program_space): Don't prune program spaces
485         before printing them.
486
487 2014-09-25  Pedro Alves  <palves@redhat.com>
488
489         * infrun.c (user_visible_resume_ptid): Don't check
490         singlestep_breakpoints_inserted_p.
491
492 2014-09-25  Pedro Alves  <palves@redhat.com>
493
494         * breakpoint.c (should_be_inserted): Add debug output.
495
496 2014-09-25  Pedro Alves  <palves@redhat.com>
497
498         * infrun.c (stepping_past_instruction_at)
499         (clear_exit_convenience_vars): Point at infrun.h instead of
500         inferior.h.
501         (handle_signal_stop): Fix typo.
502
503 2014-09-24  Yao Qi  <yao@codesourcery.com>
504
505         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
506         bitmask.
507
508 2014-09-22  Gary Benson  <gbenson@redhat.com>
509
510         * target.c (target_stop): Updated comment.
511
512 2014-09-22  Gary Benson  <gbenson@redhat.com>
513
514         * target/target.h (target_stop_ptid): Renamed as...
515         (target_stop_and_wait): New function.  Updated comment.
516         All uses updated.
517         (target_continue_ptid): Renamed as...
518         (target_continue_no_signal): New function.  Updated comment.
519         All uses updated.
520
521 2014-09-22  Pedro Alves  <palves@redhat.com>
522
523         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
524         and "auto" merged.
525         * breakpoint.c (enum ugll_insert_mode): New enum.
526         (always_inserted_mode): Now a plain boolean.
527         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
528         (breakpoints_always_inserted_mode): Delete.
529         (breakpoints_should_be_inserted_now): New function.
530         (insert_breakpoints): Pass UGLL_INSERT to
531         update_global_location_list instead of calling
532         insert_breakpoint_locations manually.
533         (create_solib_event_breakpoint_1): New, factored out from ...
534         (create_solib_event_breakpoint): ... this.
535         (create_and_insert_solib_event_breakpoint): Use
536         create_solib_event_breakpoint_1 instead of calling
537         insert_breakpoint_locations manually.
538         (update_global_location_list): Change parameter type from boolean
539         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
540         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
541         (update_global_location_list_nothrow): Change parameter type from
542         boolean to enum ugll_insert_mode.
543         (_initialize_breakpoint): "breakpoint always-inserted" option is
544         now a boolean command.  Update help text.
545         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
546         (breakpoints_should_be_inserted_now): New declaration.
547         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
548         Remove breakpoints_always_inserted_mode check.
549         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
550         * remote.c (remote_start_remote): Likewise.
551
552 2014-09-22  Pedro Alves  <palves@redhat.com>
553
554         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
555         (insert_breakpoints): Don't call insert_breakpoint_locations here.
556         Instead, pass UGLL_INSERT to update_global_location_list.
557         (update_global_location_list): Change parameter type from boolean
558         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
559         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
560         (create_solib_event_breakpoint_1): New, factored out from ...
561         (create_solib_event_breakpoint): ... this.
562         (create_and_insert_solib_event_breakpoint): Use
563         create_solib_event_breakpoint_1 instead of calling
564         insert_breakpoint_locations manually.
565         (update_global_location_list): Handle UGLL_INSERT.
566
567 2014-09-22  Pedro Alves  <palves@redhat.com>
568
569         * breakpoint.c (enum ugll_insert_mode): New enum.
570         (update_global_location_list)
571         (update_global_location_list_nothrow): Change parameter type from
572         boolean to enum ugll_insert_mode.  All callers adjusted.
573
574 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
575
576         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
577         SystemTap support in GDB.
578
579 2014-09-19  Don Breazeal  <donb@codesourcery.com>
580
581         * linux-nat.c (linux_handle_extended_wait): Call
582         linux_ptrace_get_extended_event.
583         (wait_lwp): Call linux_is_extended_waitstatus.
584         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
585         and linux_is_extended_waitstatus.
586         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
587         linux_ptrace_get_extended_event.
588         (linux_ptrace_get_extended_event): New function.
589         (linux_is_extended_waitstatus): New function.
590         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
591         (linux_is_extended_waitstatus): New declarations.
592
593 2014-09-19  Yao Qi  <yao@codesourcery.com>
594
595         * dwarf2read.c (dwarf_decode_lines): Update declaration.
596         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
597         comments.  Callers update.
598         (dwarf_decode_lines): Likewise.
599         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
600         comments.  Skip the line table if  'lowpc' is greater than
601         'address'.  Don't check
602         dwarf2_per_objfile->has_section_at_zero.
603
604 2014-09-18  Doug Evans  <dje@google.com>
605
606         * NEWS: Mention new "producer" attribute of gdb.Symtab.
607         * python/py-symtab.c (stpy_get_producer): New function.
608         (symtab_object_getset): Add "producer" attribute.
609
610 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
611
612         PR gdb/17384
613         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
614         (do_captured_read_memory_integer): Remove.
615         (safe_read_memory_integer): Use target_read_memory directly instead
616         of catching errors in do_captured_read_memory_integer.
617
618 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
619
620         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
621         not gdb/doc.
622
623 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
624
625         * objc-lang.c (find_implementation_from_class): Remove dead code.
626
627 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
628
629         PR cli/7233
630         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
631         "fprintf_unfiltered (gdb_stdlog...)".
632
633 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
634
635         PR breakpoints/12526
636         * breakpoint.h (struct watchpoint): New fields val_bitpos and
637         val_bitsize.
638         * breakpoint.c (watch_command_1): Use these fields to retain
639         bitfield information.
640         (extract_bitfield_from_watchpoint_value): New function.
641         (watchpoint_check): Use it.
642         (update_watchpoint): Use it.  Optimize the address and length of a
643         HW watchpoint pointing to a bitfield.
644         * value.h (unpack_value_bitfield): New prototype.
645         * value.c (unpack_value_bitfield): Make extern.
646
647 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
648
649         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
650         x86-dregs.o.
651         * gnu-nat.c (inf_threads): New function.
652         * gnu-nat.h (inf_threads_ftype): New typedef.
653         (inf_threads): New declaration.
654         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
655         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
656         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
657         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
658         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
659         (i386_gnu_dr_get_control): New functions.
660         (reg_addr): New structure.
661         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
662         i386 debugging register hooks.
663         * NEWS: Mention this.
664
665 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
666
667         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
668         vector data transfer instructions.
669         (arm_record_coproc_data_proc): Updated.
670
671 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
672
673         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
674         arm_record_exreg_ld_st_insn.
675         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
676         load/store insns.
677
678 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
679
680         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
681         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
682         processing instructions.
683
684 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
685
686         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
687         for advance SIMD struct ld/st insn.
688         (thumb2_record_decode_insn_handler): Replace stub handler with
689         thumb2_record_asimd_struct_ld_st.
690
691 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
692
693         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
694         for asimd, vfp and coprocessor insns.
695         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
696         and coprocessor insns.
697         (thumb2_record_coproc_insn): New function.
698         (thumb2_record_decode_insn_handler): Update coprocessor insns record
699         handlers.
700         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
701         opcode 110 insns.
702
703 2014-09-13  Doug Evans  <xdje42@gmail.com>
704
705         * NEWS: Mention new "queue-signal" command.
706         * infcmd.c (queue_signal_command): New function.
707         (_initialize_infcmd): Add new queue-signal command.
708
709 2014-09-13  Doug Evans  <xdje42@gmail.com>
710
711         * linux-nat.c (wait_lwp): Add debugging printf.
712         (linux_nat_wait_1): Ditto.
713
714 2014-09-12  Pedro Alves  <palves@redhat.com>
715
716         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
717         (create_and_insert_solib_event_breakpoint): New functions.
718         * breakpoint.h (create_and_insert_solib_event_breakpoint)
719         (remove_solib_event_breakpoints_at_next_stop): New declarations.
720         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
721         (remove_dbx_link_breakpoint): Delete function.
722         (insert_dbx_link_bpt_in_file): Use
723         create_and_insert_solib_event_breakpoint instead of
724         deprecated_insert_raw_breakpoint.
725         (procfs_wait): Don't check whether we hit __dbx_link here.
726         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
727         here.
728         * solib-irix.c (base_breakpoint): Delete global.
729         (disable_break): Delete function.
730         (enable_break): Use create_solib_event_breakpoint
731         instead of deprecated_insert_raw_breakpoint.
732         (irix_solib_handle_event): New function.
733         (irix_solib_create_inferior_hook): Don't run the target or disable
734         the mapping-complete breakpoint here.
735         (_initialize_irix_solib): Install irix_solib_handle_event as
736         so_ops->handle_event hook.
737
738 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
739             Ulrich Weigand  <uweigand@de.ibm.com>
740
741         PR tdep/17379
742         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
743         instead of read_memory_unsigned_integer.
744
745 2014-09-12  Gary Benson  <gbenson@redhat.com>
746
747         * nat/linux-waitpid.c: Include common-defs.h.
748         [GDBSERVER]: Add FIXME comment.
749         [!GDBSERVER]: Don't include defs.h or signal.h.
750         (linux_debug) [!GDBSERVER]: Remove empty block.
751
752 2014-09-12  Gary Benson  <gbenson@redhat.com>
753
754         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
755         Don't include defs.h or server.h.
756
757 2014-09-12  Gary Benson  <gbenson@redhat.com>
758
759         * nat/linux-btrace.c: Include common-defs.h.
760         Don't include defs.h, server.h or gdbthread.h.
761         * nat/linux-btrace.h (struct target_ops): New forward declaration.
762
763 2014-09-12  Gary Benson  <gbenson@redhat.com>
764
765         * common/agent.c: Include common-defs.h.
766         Don't include defs.h or server.h.
767         * common/buffer.c: Likewise.
768         * common/common-debug.c: Likewise.
769         * common/common-utils.c: Likewise.
770         * common/errors.c: Likewise.
771         * common/filestuff.c: Likewise.
772         * common/format.c: Likewise.
773         * common/gdb_vecs.c: Likewise.
774         * common/print-utils.c: Likewise.
775         * common/ptid.c: Likewise.
776         * common/rsp-low.c: Likewise.
777         * common/signals.c: Likewise.
778         * common/vec.c: Likewise.
779         * common/xml-utils.c: Likewise.
780         * nat/linux-osdata.c: Likewise.
781         * nat/linux-procfs.c: Likewise.
782         * nat/linux-ptrace.c: Likewise.
783         * nat/mips-linux-watch.c: Likewise.
784         * target/waitstatus.c: Likewise.
785
786 2014-09-12  Tom Tromey  <tromey@redhat.com>
787             Gary Benson  <gbenson@redhat.com>
788
789         * common/common-regcache.h: New file.
790         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
791         * regcache.h: Include common-regcache.h.
792         (regcache_read_pc): Don't declare.
793         * regcache.c (get_thread_regcache_for_ptid): New function.
794         * nat/linux-btrace.c: Don't include regcache.h.
795         Include common-regcache.h.
796         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
797
798 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
799
800         * regcache.h (struct regset): Declare.
801
802 2014-09-11  Pedro Alves  <palves@redhat.com>
803
804         PR gdb/17347
805         * main.c: Include "infrun.h".
806         (catch_command_errors, catch_command_errors_const): Wait for the
807         foreground command to complete.
808         * top.c (maybe_wait_sync_command_done): New function, factored out
809         from ...
810         (maybe_wait_sync_command_done): ... here.
811         * top.h (maybe_wait_sync_command_done): New declaration.
812
813 2014-09-11  Tom Tromey  <tromey@redhat.com>
814             Gary Benson  <gbenson@redhat.com>
815
816         * common/symbol.h: New file.
817         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
818         * minsyms.c (find_minimal_symbol_address): New function.
819         * common/agent.c: Include common/symbol.h.
820         [!GDBSERVER]: Don't include objfiles.h.
821         (agent_look_up_symbols): Use find_minimal_symbol_address.
822
823 2014-09-11  Gary Benson  <gbenson@redhat.com>
824
825         * target/target.h (target_stop_ptid, target_continue_ptid):
826         Declare.
827         * target.c (target_stop_ptid, target_continue_ptid): New
828         functions.
829         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
830         (agent_run_command): Always use target_stop_ptid and
831         target_continue_ptid.
832
833 2014-09-11  Tom Tromey  <tromey@redhat.com>
834             Gary Benson  <gbenson@redhat.com>
835
836         * target/target.h: New file.
837         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
838         * target.h: Include target/target.h.
839         (target_read_memory, target_write_memory): Don't declare.
840         * target.c (target_read_uint32): New function.
841         * common/agent.c: Include target/target.h.
842         [!GDBSERVER]: Don't include target.h.
843         (helper_thread_id): Type changed to uint32_t.
844         (agent_get_helper_thread_id): Use target_read_uint32.
845         (agent_run_command): Always use target_read_memory and
846         target_write_memory.
847         (agent_capability): Type changed to uint32_t.
848         (agent_capability_check): Use target_read_uint32.
849
850 2014-09-11  Gary Benson  <gbenson@redhat.com>
851
852         * common/common-debug.h (show_debug_regs): Declare.
853         * common/common-debug.c (show_debug_regs): Define.
854         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
855         all uses with show_debug_regs.  Replace all uses that considered
856         debug_hw_points as a multi-value integer with straight boolean
857         uses.
858         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
859         with show_debug_regs.
860         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
861         all uses with show_debug_regs.
862         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
863         uses with show_debug_regs.
864
865 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
866
867         * findvar.c (address_from_register): Handle targets requiring
868         a special conversion routine even for plain pointer types.
869
870 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
871
872         * rs6000-nat.c (exec_one_dummy_insn): Remove.
873         (store_register): Do not call exec_one_dummy_insn.
874
875 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
876
877         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
878         dereference it first.  Use value_enclosing_type instead of
879         value_type.
880         (ada_array_length): Likewise.
881
882 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
883
884         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
885         Adjust function implementation and documentation accordingly.
886         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
887         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
888         Update call to ada_value_ptr_subscript.
889
890 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
891
892         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
893         instead of VAL's type.
894
895 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
896
897         * amd64-linux-nat.c: Add <sys/uio.h> #include.
898
899 2014-09-09  Doug Evans  <xdje42@gmail.com>
900
901         PR guile/17367
902         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
903         last parameter to pkg-config, not first.
904         * configure.ac: Pass --with-guile provided pkg-config path to
905         GDB_GUILE_PROGRAM_NAMES.
906         * configure: Regenerate.
907
908 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
909
910         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
911         Bertazi".
912
913 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
914
915         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
916         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
917         the list of sections determining GDB_OSABI_IRIX.
918
919 2014-09-09  James Hogan  <james.hogan@imgtec.com>
920
921         * MAINTAINERS (Write After Approval): Add "James Hogan".
922
923 2014-09-09  James Hogan  <james.hogan@imgtec.com>
924
925         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
926
927 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
928
929         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
930
931 2014-09-08  Doug Evans  <xdje42@gmail.com>
932
933         PR 17247
934         * guile.c: #include <signal.h>.
935         (_initialize_guile): Block SIGCHLD while initializing Guile.
936
937         Replaces the following, which is reverted.
938
939         2014-07-26  Doug Evans  <xdje42@gmail.com>
940
941         PR 17185
942         * configure.ac: Add check for header gc/gc.h.
943         Add check for function setenv.
944         * configure: Regenerate.
945         * config.in: Regenerate.
946         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
947
948 2014-09-08  Doug Evans  <xdje42@gmail.com>
949
950         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
951         with named constant.  Fix style of pointer comparison.
952         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
953
954 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
955
956         PR gdb/17035
957         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
958         decide whether we display the command on "show user".
959         * cli/cli-script.c (show_user_1): Only verify cmdlines after
960         printing command name.
961         * cli/cli-decode.h (cli_user_command_p): Declare new function.
962         * cli/cli-decode.c (cli_user_command_p): Create helper function
963         to verify whether cmd_list_element is a user-defined command.
964
965 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
966
967         PR python/17355
968         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
969         Fix goto out of TRY_CATCH.
970
971 2014-09-06  Doug Evans  <xdje42@gmail.com>
972             Tom Tromey  <tromey@redhat.com>
973
974         PR 15276
975         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
976         $_any_caller_matches.
977         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
978         * python/lib/gdb/function/caller_is.py: New file.
979
980 2014-09-06  Doug Evans  <xdje42@gmail.com>
981
982         * infcmd.c (program_info): Fix typo.
983
984 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
985
986         PR gdb/17235
987         * stap-probe.c (stap_parse_single_operand): Delete unused variable
988         'number'.  New variable 'has_digit'.  Rewrite code to deal with
989         subexpressions on SDT probes.
990
991 2014-09-04  Pedro Alves  <palves@redhat.com>
992
993         * c-exp.y (parse_number): Skip handling base-switching prefixes if
994         the input is only one character long.
995
996 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
997
998         PR fortran/17237
999         * f-valprint.c (f_val_print): Specify the correct print option to
1000         use when printing integer values.
1001
1002 2014-09-04  Gary Benson  <gbenson@redhat.com>
1003
1004         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1005         Remove code to cope with LWPs wrapped as PIDs.
1006         Add assertions to ensure no wrapped LWPs are passed.
1007
1008 2014-09-04  Pedro Alves  <palves@redhat.com>
1009
1010         * value.c (value_ranges_copy_adjusted): New function, factored out
1011         from ...
1012         (value_contents_copy_raw): ... here.
1013         (unpack_value_bits_as_long_1): Rename back to ...
1014         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1015         'result' parameters.  Change return type to LONGEST.
1016         (unpack_value_bits_as_long): Delete.
1017         (unpack_value_field_as_long_1): Delete.
1018         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1019         (unpack_value_bitfield): New function.
1020         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1021         (value_fetch_lazy): Use unpack_value_bitfield.
1022         * value.h (unpack_value_bits_as_long): Delete declaration.
1023
1024 2014-09-03  Sasha Smundak  <asmundak@google.com>
1025
1026         * python/py-frame.c (frapy_read_register): New function.
1027
1028 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1029
1030         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1031         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1032
1033 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1034
1035         PR python/16699
1036         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1037         function.
1038         (add_cmd): Set "completer_handle_brkchars" to NULL.
1039         * cli/cli-decode.h (struct cmd_list_element)
1040         <completer_handle_brkchars>: New field.
1041         * command.h (completer_ftype_void): New typedef.
1042         (set_cmd_completer_handle_brkchars): New prototype.
1043         * completer.c (set_gdb_completion_word_break_characters): New
1044         function.
1045         (complete_line_internal): Call "completer_handle_brkchars"
1046         callback from command.
1047         * completer.h: Include "command.h".
1048         (set_gdb_completion_word_break_characters): New prototype.
1049         * python/py-cmd.c (cmdpy_completer_helper): New function.
1050         (cmdpy_completer_handle_brkchars): New function.
1051         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1052         (cmdpy_init): Set completer_handle_brkchars to
1053         cmdpy_completer_handle_brkchars.
1054
1055 2014-09-03  Gary Benson  <gbenson@redhat.com>
1056
1057         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1058         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1059         Loop conditions changed to equivalent form.
1060         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1061         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1062         ALL_DEBUG_ADDRESS_REGISTERS.
1063
1064 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1065
1066         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1067         description fix.
1068
1069 2014-09-02  Doug Evans  <dje@google.com>
1070
1071         * typeprint.c (find_global_typedef): Fix comment.
1072
1073 2014-09-02  Gary Benson  <gbenson@redhat.com>
1074
1075         * i386-nat.h: Renamed as...
1076         * x86-nat.h: New file.  All type, function and variable name
1077         prefixes changed from "i386_" to "x86_".  All references updated.
1078         * i386-nat.c: Renamed as...
1079         * x86-nat.c: New file.  All type, function and variable name
1080         prefixes changed from "i386_" to "x86_".  All references updated.
1081         * common/i386-xstate.h: Renamed as...
1082         * common/x86-xstate.h: New file.  All type, function and variable
1083         name prefixes changed from "i386_" to "x86_".  All references
1084         updated.
1085         * nat/i386-cpuid.h: Renamed as...
1086         * nat/x86-cpuid.h: New file.  All type, function and variable name
1087         prefixes changed from "i386_" to "x86_".  All references updated.
1088         * nat/i386-gcc-cpuid.h: Renamed as...
1089         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1090         name prefixes changed from "i386_" to "x86_".  All references
1091         updated.
1092         * nat/i386-dregs.h: Renamed as...
1093         * nat/x86-dregs.h: New file.  All type, function and variable name
1094         prefixes changed from "i386_" to "x86_".  All references updated.
1095         * nat/i386-dregs.c: Renamed as...
1096         * nat/x86-dregs.c: New file.  All type, function and variable name
1097         prefixes changed from "i386_" to "x86_".  All references updated.
1098
1099 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1100
1101         * varobj.c (_initialize_varobj): Move to the end of file.
1102
1103 2014-08-29  Gary Benson  <gbenson@redhat.com>
1104
1105         * common/common-exceptions.h: New file.
1106         * common/common-exceptions.c: Likewise.
1107         * Makefile.in (SFILES): Add common/common-exceptions.c.
1108         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1109         (COMMON_OBS): Add common-exceptions.o.
1110         (common-exceptions.o): New rule.
1111         * exceptions.h (common-exceptions.h): Include.
1112         (gdb_setjmp.h): Do not include.
1113         (return_reason): Moved to common-exceptions.h.
1114         (enum return_reason): Likewise.
1115         (RETURN_MASK): Likewise.
1116         (typedef return_mask): Likewise.
1117         (enum errors): Likewise.
1118         (struct gdb_exception): Likewise.
1119         (exceptions_state_mc_init): Likewise.
1120         (exceptions_state_mc_action_iter): Likewise.
1121         (exceptions_state_mc_action_iter_1): Likewise.
1122         (TRY_CATCH): Likewise.
1123         (throw_exception): Likewise.
1124         (throw_verror): Likewise.
1125         (throw_vquit): Likewise.
1126         (throw_error): Likewise.
1127         (throw_quit): Likewise.
1128         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1129         (enum catcher_action): Likewise.
1130         (struct catcher): Likewise.
1131         (current_catcher): Likewise.
1132         (catcher_list_size): Likewise.
1133         (exceptions_state_mc_init): Likewise.
1134         (catcher_pop): Likewise.
1135         (exceptions_state_mc): Likewise.
1136         (exceptions_state_mc_action_iter): Likewise.
1137         (exceptions_state_mc_action_iter_1): Likewise.
1138         (throw_exception): Likewise.
1139         (exception_messages): Likewise.
1140         (exception_messages_size): Likewise.
1141         (throw_it): Likewise.
1142         (throw_verror): Likewise.
1143         (throw_vquit): Likewise.
1144         (throw_error): Likewise.
1145         (throw_quit): Likewise.
1146         (prepare_to_throw_exception): New function.
1147
1148 2014-08-29  Gary Benson  <gbenson@redhat.com>
1149
1150         * common/gdb_setjmp.h: New file.
1151         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1152         * configure.ac: Move sigsetjmp check...
1153         * common/common.m4: ...here.
1154         * configure: Regenerate.
1155         * cp-support.c (SIGJMP_BUF): Delete.
1156         (SIGSETJMP): Likewise.
1157         (SIGLONGJMP): Likewise.
1158         * exceptions.h (gdb_setjmp.h): Include.
1159         (setjmp.h): Do not include.
1160         (EXCEPTIONS_SIGJMP_BUF): Delete.
1161         (EXCEPTIONS_SIGSETJMP): Likewise.
1162         (EXCEPTIONS_SIGLONGJMP): Likewise.
1163         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1164         from gdb_setjmp.h.
1165         * exceptions.c: Likewise.
1166
1167 2014-08-29  Gary Benson  <gbenson@redhat.com>
1168
1169         * cleanups.h: Moved to...
1170         * common/cleanups.h: New file.
1171         * cleanups.c: Moved to...
1172         * common/cleanups.c: New file.  Include common-defs.h and
1173         cleanups.h.  Do not include defs.h.
1174         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1175         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1176         (cleanups.o): New rule.
1177
1178 2014-08-29  Gary Benson  <gbenson@redhat.com>
1179
1180         * common/errors.h (internal_warning): New declaration.
1181         (internal_vwarning): Likewise.
1182         * common/errors.c (internal_warning): New function.
1183         * utils.h (internal_warning): Don't declare.
1184         (internal_vwarning): Likewise.
1185         * utils.c (internal_warning): Removed.
1186
1187 2014-08-29  Gary Benson  <gbenson@redhat.com>
1188
1189         * main.c (captured_main): Use warning during startup.
1190         Prefix startup warning messages with command name.
1191
1192 2014-08-29  Gary Benson  <gbenson@redhat.com>
1193
1194         * main.c (captured_main): Handle usage errors with error.
1195
1196 2014-08-29  Gary Benson  <gbenson@redhat.com>
1197
1198         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1199         exit pair with a call to error.  Wrap the message with _().
1200
1201 2014-08-29  Gary Benson  <gbenson@redhat.com>
1202
1203         * main.c (captured_main): Replace a fprintf/exit
1204         pair with a call to error.  Wrap the message with _().
1205
1206 2014-08-29  Gary Benson  <gbenson@redhat.com>
1207
1208         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1209         pairs with calls to error.  Wrap the message with _().
1210
1211 2014-08-29  Gary Benson  <gbenson@redhat.com>
1212
1213         * utils.c (vwarning): Protect calls to target_terminal_ours
1214         and wrap_here.
1215
1216 2014-08-29  Gary Benson  <gbenson@redhat.com>
1217
1218         * exceptions.c (print_flush): Protect calls to
1219         target_terminal_ours and wrap_here.
1220
1221 2014-08-29  Gary Benson  <gbenson@redhat.com>
1222
1223         * utils.h (filtered_printing_initialized): New declaration.
1224         * utils.c (abort_with_message): New function.
1225         (internal_vproblem): Use abort_with_message for first level
1226         recursive internal problems, and if gdb_stderr is not set up.
1227         Protect calls to target_terminal_ours, begin_line and query.
1228
1229 2014-08-28  Doug Evans  <dje@google.com>
1230
1231         * symtab.c (in_prologue): Move definition to better spot.
1232         (skip_prologue_using_sal): Ditto.
1233
1234 2014-08-28  Doug Evans  <dje@google.com>
1235
1236         * symtab.c (find_function_start_sal): Move definition to better spot.
1237
1238 2014-08-28  Yao Qi  <yao@codesourcery.com>
1239
1240         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1241         found_stack_adjust in forward scan.  Remove condition check
1242         on found_stack_adjust which is always true.  Indent the code.
1243
1244 2014-08-28  Yao Qi  <yao@codesourcery.com>
1245
1246         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1247         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1248         (dwarf_decode_lines): Remove argument
1249         want_line_info.  Remove condition check on want_line_info.
1250         Callers update.
1251
1252 2014-08-27  Doug Evans  <dje@google.com>
1253
1254         * dwarf2read.c (dwarf_record_line): Fix typo.
1255
1256 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1257
1258         * target.h (struct target_ops::to_terminal_save_ours): Remove
1259         declaration.
1260         (target_terminal_save_ours): Remove macro.
1261         * target-delegates.c: Regenerate.
1262         * inf-child.c (inf_child_target): Don't set the nonexistent
1263         field to_terminal_save_ours.
1264         * inferior.h (child_terminal_save_ours): Remove declaration.
1265         * terminal.h (gdb_save_tty_state): New declaration.
1266         * inflow.c (child_terminal_save_ours): Rename to ...
1267         (gdb_save_tty_state): ... this.
1268         * tui/tui.c: Include terminal.h.
1269         (tui_enable): Use gdb_save_tty_state instead of
1270         target_terminal_save_ours.
1271         (tui_disable): Likewise.
1272
1273 2014-08-25  Doug Evans  <dje@google.com>
1274
1275         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1276         Pass NULL instead of 0 for context pointer.
1277
1278 2014-08-25  Yao Qi  <yao@codesourcery.com>
1279
1280         * dwarf2read.c: Fix grammatical error.
1281
1282 2014-08-24  Yao Qi  <yao@codesourcery.com>
1283
1284         * dwarf2read.c (scan_partial_symbols):  Update comments.
1285         Rename argument 'need_pc' with 'set_addrmap'.
1286         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1287         'set_addrmap'.
1288         (add_partial_module): Likewise.
1289         (add_partial_subprogram): Likewise.  Update comments.
1290         (dwarf2_name): Fix typo.
1291
1292 2014-08-22  Doug Evans  <dje@google.com>
1293
1294         PR 17276
1295         * dwarf2read.c (dwarf_record_line_p): New function.
1296         (dwarf_decode_lines_1): Ignore subsequent line number entries
1297         for the same line if any entry had a non-zero discriminator.
1298
1299 2014-08-22  Doug Evans  <dje@google.com>
1300
1301         * buildsym.h (record_line_ftype): New typedef.
1302         (record_line): Use it.
1303         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1304         (dwarf_decode_lines_1): Call them.
1305
1306 2014-08-22  Yao Qi  <yao@codesourcery.com>
1307
1308         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1309         (ctf_end): Remove code.
1310
1311 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1312
1313         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1314         (linux_make_corefile_notes): call update_thread_list, protected against
1315         exceptions.
1316
1317 2014-08-21  Pedro Alves  <palves@redhat.com>
1318
1319         * infcmd.c (attach_command): Remove comment.
1320
1321 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1322
1323         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1324         unsigned LONGEST to ULONGEST.
1325
1326 2014-08-20  Pedro Alves  <palves@redhat.com>
1327
1328         * Makefile.in (check-read1): New rule.
1329
1330 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1331
1332         * value.c (value_from_contents_and_address): Strip resolved_type's
1333         typedef layers before checking its TYPE_DATA_LOCATION.
1334
1335 2014-08-20  Pedro Alves  <palves@redhat.com>
1336
1337         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1338
1339 2014-08-20  Yao Qi  <yao@codesourcery.com>
1340
1341         * amd64-tdep.c (amd64_classify): Add a blank line after the
1342         example.  Move "*/" to a new line.
1343         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1344         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1345         * dwarf2read.c (psymtab_include_file_name): Likewise.
1346
1347 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1348             Pedro Alves  <palves@redhat.com>
1349
1350         PR symtab/14604
1351         PR symtab/14605
1352         * ada-lang.c (coerce_unspec_val_to_type): Use
1353         value_contents_copy_raw.
1354         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1355         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1356         * cp-valprint.c (cp_print_value_fields): Let the common printing
1357         code handle optimized out values.
1358         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1359         * d-valprint.c (dynamic_array_type): Use
1360         value_bits_any_optimized_out.
1361         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1362         check_any_valid fields.
1363         (check_pieced_value_bits): Delete and inline ...
1364         (check_pieced_synthetic_pointer): ... here.
1365         (check_pieced_value_validity): Delete.
1366         (check_pieced_value_invalid): Delete.
1367         (pieced_value_funcs): Remove check_validity and check_any_valid
1368         fields.
1369         (read_pieced_value): Use mark_value_bits_optimized_out.
1370         (write_pieced_value): Switch to use
1371         mark_value_bytes_optimized_out.
1372         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1373         of assuming the whole value is optimized out.
1374         * findvar.c (read_frame_register_value): Remove special handling
1375         of optimized out registers.
1376         (value_from_register): Use mark_value_bytes_optimized_out.
1377         * frame-unwind.c (frame_unwind_got_optimized): Use
1378         mark_value_bytes_optimized_out.
1379         * jv-valprint.c (java_value_print): Adjust.
1380         (java_print_value_fields): Let the common printing code handle
1381         optimized out values.
1382         * mips-tdep.c (mips_print_register): Remove special handling of
1383         optimized out registers.
1384         * opencl-lang.c (lval_func_check_validity): Delete.
1385         (lval_func_check_any_valid): Delete.
1386         (opencl_value_funcs): Remove check_validity and check_any_valid
1387         fields.
1388         * p-valprint.c (pascal_object_print_value_fields): Let the common
1389         printing code handle optimized out values.
1390         * stack.c (read_frame_arg): Remove special handling of optimized
1391         out values.  Fetch both VAL and ENTRYVAL before comparing
1392         contents.  Adjust to value_available_contents_eq rename.
1393         * valprint.c (valprint_check_validity)
1394         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1395         (val_print_array_elements): Adjust.
1396         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1397         (value_bits_any_optimized_out): New function.
1398         (value_entirely_covered_by_range_vector): New function, factored
1399         out from value_entirely_unavailable.
1400         (value_entirely_unavailable): Reimplement.
1401         (value_entirely_optimized_out): New function.
1402         (insert_into_bit_range_vector): New function, factored out from
1403         mark_value_bits_unavailable.
1404         (mark_value_bits_unavailable): Reimplement.
1405         (struct ranges_and_idx): New struct.
1406         (find_first_range_overlap_and_match): New function, factored out
1407         from value_available_contents_bits_eq.
1408         (value_available_contents_bits_eq): Rename to ...
1409         (value_contents_bits_eq): ... this.  Check both unavailable
1410         contents and optimized out contents.
1411         (value_available_contents_eq): Rename to ...
1412         (value_contents_eq): ... this.
1413         (allocate_value_lazy): Remove reference to the old optimized_out
1414         boolean.
1415         (allocate_optimized_out_value): Use
1416         mark_value_bytes_optimized_out.
1417         (require_not_optimized_out): Adjust to check whether the
1418         optimized_out vec is empty.
1419         (ranges_copy_adjusted): New function, factored out from
1420         value_contents_copy_raw.
1421         (value_contents_copy_raw): Also copy the optimized out ranges.
1422         Assert the destination ranges aren't optimized out.
1423         (value_contents_copy): Update comment, remove call to
1424         require_not_optimized_out.
1425         (value_contents_equal): Adjust to check whether the optimized_out
1426         vec is empty.
1427         (set_value_optimized_out, value_optimized_out_const): Delete.
1428         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1429         New functions.
1430         (value_entirely_optimized_out, value_bits_valid): Delete.
1431         (value_copy): Take a VEC copy of the 'optimized_out' field.
1432         (value_primitive_field): Remove special handling of optimized out.
1433         (value_fetch_lazy): Assert that lazy values have no unavailable
1434         regions.  Use value_bits_any_optimized_out.  Remove some special
1435         handling for optimized out values.
1436         * value.h: Add intro comment about <optimized out> and
1437         <unavailable>.
1438         (struct lval_funcs): Remove check_validity and check_any_valid
1439         fields.
1440         (set_value_optimized_out, value_optimized_out_const): Remove.
1441         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1442         New declarations.
1443         (value_bits_any_optimized_out): New declaration.
1444         (value_bits_valid): Delete declaration.
1445         (value_available_contents_eq): Rename to ...
1446         (value_contents_eq): ... this, and extend comments.
1447
1448 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1449
1450         Fix -fsanitize=address on unreadable inferior strings.
1451         * valprint.c (val_print_string): Fix access before BUFFER.
1452
1453 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1454
1455         * target.c (target_struct_size): Remove.
1456         (target_struct_allocsize): Remove.
1457         (DEFAULT_ALLOCSIZE): Remove.
1458         (target_ops_p): New typedef.
1459         (DEF_VEC_P (target_ops_p)): New vector type.
1460         (target_structs): Change type to VEC (target_ops_p).
1461         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1462         (find_default_run_target): Rewrite for loop following changes to
1463         target_structs.
1464
1465 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1466
1467         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1468         Adjust code accordingly.  Adjust function description comment.
1469
1470 2014-08-19  Yao Qi  <yao@codesourcery.com>
1471
1472         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1473         types.
1474
1475 2014-08-19  Alan Modra  <amodra@gmail.com>
1476
1477         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1478         * config.in: Regenerate.
1479         * configure: Regenerate.
1480
1481 2014-08-19  Tom Tromey  <tromey@redhat.com>
1482             Gary Benson  <gbenson@redhat.com>
1483
1484         * common/common-debug.h: New file.
1485         * common/common-debug.c: Likewise.
1486         * debug.c: Likewise.
1487         * Makefile.in (SFILES): Add common/common-debug.c.
1488         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1489         (COMMON_OBS): Add common-debug.o and debug.o.
1490         (common-debug.o): New rule.
1491         * common/common-defs.h: Include common-debug.h.
1492         * common/agent.c (debug_agent_printf): New function.
1493         (DEBUG_AGENT): Redefine.
1494         * nat/i386-dregs.c (debug_printf): Undefine.
1495
1496 2014-08-19  Gary Benson  <gbenson@redhat.com>
1497
1498         * common/common-defs.h: Include print-utils.h.
1499         * utils.h: Do not include print-utils.h.
1500
1501 2014-08-19  Tom Tromey  <tromey@redhat.com>
1502             Gary Benson  <gbenson@redhat.com>
1503
1504         * common/common-types.h: New file.
1505         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1506         * common/common-defs.h: Include common-types.h.
1507         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1508         (ULONGEST): Remove.
1509
1510 2014-08-19  Tom Tromey  <tromey@redhat.com>
1511             Gary Benson  <gbenson@redhat.com>
1512
1513         * common/errors.h: New file.
1514         * common/errors.c: Likewise.
1515         * Makefile.in (SFILES): Add common/errors.c.
1516         (HFILES_NO_SRCDIR): Add common/errors.h.
1517         (COMMON_OBS): Add errors.o.
1518         (errors.o): New rule.
1519         * common/common-defs.h: Include errors.h.
1520         * utils.h (perror_with_name, error, verror, warning, vwarning):
1521         Don't declare.
1522         * common/common-utils.h: (malloc_failure, internal_error):
1523         Likewise.
1524
1525 2014-08-19  Gary Benson  <gbenson@redhat.com>
1526
1527         * utils.c (internal_vproblem): Always print the message.
1528
1529 2014-08-18  Doug Evans  <dje@google.com>
1530
1531         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1532
1533 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1534
1535         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1536         Return 0 if TYPE is dynamic.
1537         (print_range): Add handling of dynamic ranges.
1538
1539 2014-08-18  Keven Boell  <keven.boell@intel.com>
1540             Joel Brobecker  <brobecker@adacore.com>
1541
1542         * gdbtypes.h (struct main_type): Add field "data_location".
1543         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1544         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1545         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1546         a dynamic data location.
1547         (resolve_dynamic_type): Add DW_AT_data_location handling.
1548         (copy_recursive, copy_type): Copy the data_location information
1549         when present.
1550         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1551         * value.c (value_from_contents_and_address): Add
1552         DW_AT_data_location handling.
1553
1554 2014-08-18  Keven Boell  <keven.boell@intel.com>
1555             Joel Brobecker  <brobecker@adacore.com>
1556
1557         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1558         field "get_object_address".
1559         * dwarf2expr.c (execute_stack_op): Add handling for
1560         DW_OP_push_object_address.
1561         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1562         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1563         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1564         (dwarf_expr_get_obj_addr): New function.
1565         (dwarf_expr_ctx_funcs): Add get_object_address field.
1566         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1567         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1568         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1569         (needs_get_obj_addr): New function.
1570         (needs_frame_ctx_funcs): Add get_object_address field.
1571         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1572         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1573         (resolve_dynamic_array): Likewise.
1574
1575 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1576
1577         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1578         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1579         fixed value for records and unions for which some GNAT encodings
1580         are present.
1581
1582 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1583
1584         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1585         rewrite to avoid "else if" and "else" constructs.  Should be
1586         a no-op in practice.
1587
1588 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1589
1590         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1591         of lexical block.
1592
1593 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1594
1595         PR c++/17132
1596         * eval.c: Update all calls to find_overload_match.
1597         * valarith.c: Likewise.
1598         (value_user_defined_cpp_op, value_user_defined_op): New
1599         argument NOSIDE.  Update all callers.
1600         * valops.c (find_overload_match): New argument NOSIDE.
1601         * value.h (find_overload_match): Update signature.
1602
1603 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1604
1605         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1606         'items' methods instead of 'iteritems' method on dictionaries.
1607
1608 2014-08-15  Doug Evans  <dje@google.com>
1609
1610         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1611         closer to use.
1612
1613 2014-08-15  Doug Evans  <dje@google.com>
1614
1615         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1616
1617 2014-08-15  Doug Evans  <dje@google.com>
1618
1619         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1620
1621 2014-08-15  Doug Evans  <dje@google.com>
1622
1623         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1624         unused.
1625
1626 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1627
1628         * dcache.h: Include target.h, to avoid compile time warnings.
1629
1630 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1631
1632         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1633         frame_info" partial declaration.
1634         * gdbarch.h: Regenerate.
1635
1636 2014-08-15  Yao Qi  <yao@codesourcery.com>
1637
1638         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1639         Add parameter 'decode_for_pst_p'.  Callers update.
1640
1641 2014-08-13  Yao Qi  <yao@codesourcery.com>
1642
1643         PR build/17104
1644         * configure.ac: Use local variable 'pos'.
1645         * configure: Regenerated.
1646
1647 2014-08-11  Doug Evans  <dje@google.com>
1648
1649         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1650         message, it is redundant with "Reading symbols from ..." message.
1651
1652 2014-08-10  Doug Evans  <xdje42@gmail.com>
1653
1654         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1655
1656 2014-08-09  Yao Qi  <yao@codesourcery.com>
1657
1658         PR remote/9053
1659         * remote.c (remote_xfer_partial): Remove dead code.
1660
1661 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1662
1663         * ia64-linux-tdep.c: Include "regset.h".
1664         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1665         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1666         (ia64_linux_supply_fpregset): New function.
1667         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1668         (ia64_linux_regset_from_core_section): New function.
1669         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1670         method.
1671
1672 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1673
1674         * m68klinux-tdep.c: Include "regset.h".
1675         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1676         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1677         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1678         (m68k_linux_regset_from_core_section): New function.
1679         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1680         method.
1681
1682 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1683
1684         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1685         function.  Move logic to...
1686         (tilegx_linux_regmap): ... this new register map.
1687         (tilegx_linux_regset): Refer to register map, replace supply
1688         method by regcache_supply_regset, and add collect method.
1689         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1690         TILEGX_FIRST_EASY_REGNUM.
1691
1692 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1693
1694         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1695         that calls regcache_supply_regset and handles the EPC register
1696         separately.  Move main logic to...
1697         (score7_linux_gregmap): ... this new register map.
1698         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1699         (score7_linux_gregset): Refer to register map.  Add collect method.
1700         (score7_linux_regset_from_core_section): Replace
1701         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1702         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1703         (struct regset): Delete unused forward declaraction.
1704         (struct pt_regs): Delete structure definition.
1705         (elf_gregset_t): Delete typedef.
1706
1707 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1708
1709         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1710         (nios2_core_regset): Add collect method.
1711
1712 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1713
1714         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1715         platform-independent and don't write to read-only input buffer.
1716         (m32r_linux_collect_gregset): New function.
1717         (m32r_linux_gregset): Add collect method.
1718
1719 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1720
1721         * hppa-linux-tdep.c (greg_map): Rename to...
1722         (hppa_linux_gregmap): ... this.  Also convert to
1723         regcache_map_entry format.
1724         (hppa_linux_supply_regset): Delete function.
1725         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1726         (hppa_linux_fpregmap): ... this new register map.
1727         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1728         register map, replace supply method by regcache_supply_regset, and
1729         add collect method regcache_collect_regset.
1730
1731 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1732
1733         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1734         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1735         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1736         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1737         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1738         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1739         (frv_linux_supply_gregset): Replace main logic by call to
1740         regcache_supply_regset, but keep clearing gr32-gr63.
1741         (frv_linux_supply_fpregset): Delete function.
1742         (frv_linux_gregset): Refer to appropriate register map and add
1743         regcache_collect_regset as the collect method.
1744         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1745         by regcache_supply_regset.
1746
1747 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1748
1749         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1750         by call to alpha_supply_int_regs.
1751         (alpha_linux_collect_gregset): New function.
1752         (alpha_linux_supply_fpregset): Replace logic by call to
1753         alpha_supply_fp_regs.
1754         (alpha_linux_collect_fpregset): New function.
1755         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1756
1757 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1758
1759         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1760         by call to regcache_collect_regset.
1761         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1762         instead of aarch64_linux_supply_gregset/_fpregset.
1763         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1764         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1765         header file instead.
1766         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1767         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1768         functions.  Move logic to ...
1769         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1770         register maps.
1771         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1772         refer to new register maps, replace *_regset_from_core by
1773         regcache_supply_regset, and also use regcache_collect_regset.
1774         * aarch64-linux-tdep.h: Include "regset.h".
1775         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1776         Delete prototypes.
1777         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1778         macros, moved from C source file.
1779         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1780         variable declarations.
1781
1782 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1783
1784         * s390-linux-nat.c: Include "regset.h".
1785         (regmap_gregset): Delete macro.
1786         (s390_64_regmap_gregset): New register map for
1787         regcache_supply/_collect_regset.
1788         (s390_64_gregset): New regset.
1789         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1790         (regmap_fpregset): Delete macro.
1791         (s390_native_supply, s390_native_collect): Delete functions.
1792         (supply_gregset, fill_gregset): Replace s390-specific regmap
1793         handling by a call to regcache_supply/_collect_regset.
1794         (supply_fpregset, fill_fpregset): Call regcache_supply/
1795         _collect_regset instead of s390_native_supply/_collect.
1796         (fetch_regset, store_regset): Likewise.  Also change the last
1797         parameter to a regset instead of a regmap.
1798         (s390_linux_fetch_inferior_registers)
1799         (390_linux_store_inferior_registers): Adjust last parameter in
1800         calls to fetch_regset and store_regset.
1801         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1802         (s390_gregmap): ... this.  Also make static const and convert to
1803         regcache_map_entry format.
1804         (s390x_regmap_gregset): Delete.
1805         (s390_regmap_fpregset): Rename to...
1806         (s390_fpregmap): ... this.  Make static const and convert to
1807         regcache_map_entry format.
1808         (s390_regmap_upper, s390_regmap_last_break)
1809         (s390x_regmap_last_break, s390_regmap_system_call)
1810         (s390_regmap_tdb): Likewise.
1811         (s390_supply_regset, s390_collect_regset): Remove functions.
1812         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1813         s390_supply_regset.
1814         (s390_gregset, s390_fpregset, s390_upper_regset)
1815         (s390_last_break_regset, s390x_last_break_regset)
1816         (s390_system_call_regset, s390_tdb_regset): Make global and
1817         replace s390_supply/_collect_regset by regcache_supply/
1818         _collect_regset.
1819         (s390x_gregset): Delete.
1820         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1821         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1822         (s390_regmap_fpregset, s390_regmap_last_break)
1823         (s390x_regmap_last_break, s390_regmap_system_call)
1824         (s390_regmap_tdb): Delete global variable declarations.
1825         (s390_gregset, s390_fpregset, s390_last_break_regset)
1826         (s390x_last_break_regset, s390_system_call_regset)
1827         (s390_tdb_regset): New global variable declarations.
1828
1829 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1830
1831         * regcache.c: Include "regset.h".
1832         (regcache_transfer_regset): New local function.
1833         (regcache_supply_regset, regcache_collect_regset): New functions.
1834         * regcache.h (struct regcache_map_entry): New structure.
1835         (REGCACHE_MAP_SKIP): New enum value.
1836         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1837
1838 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1839
1840         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1841         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1842         (ppc_linux_collect_gregset ): Likewise.
1843         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1844         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1845         (ppc_collect_vrregset): Likewise.
1846         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1847         Likewise.
1848
1849 2014-08-07  Yao Qi  <yao@codesourcery.com>
1850
1851         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1852         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1853         * remote.c (remote_read_bytes): Likewise.
1854
1855 2014-08-07  Yao Qi  <yao@codesourcery.com>
1856
1857         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1858
1859 2014-08-07  Yao Qi  <yao@codesourcery.com>
1860
1861         PR remote/17230
1862         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1863         TARGET_XFER_OK instead of 0.
1864
1865 2014-08-07  Gary Benson  <gbenson@redhat.com>
1866
1867         * common/common-defs.h: Include errno.h.
1868         * defs.h: Do not include errno.h.
1869         * ada-typeprint.c: Likewise.
1870         * c-typeprint.c: Likewise.
1871         * core-regset.c: Likewise.
1872         * corefile.c: Likewise.
1873         * corelow.c: Likewise.
1874         * event-loop.c: Likewise.
1875         * f-typeprint.c: Likewise.
1876         * gnu-nat.c: Likewise.
1877         * go32-nat.c: Likewise.
1878         * i386gnu-nat.c: Likewise.
1879         * m2-typeprint.c: Likewise.
1880         * nat/linux-btrace.c: Likewise.
1881         * p-typeprint.c: Likewise.
1882         * procfs.c: Likewise.
1883         * remote-sim.c: Likewise.
1884         * rs6000-nat.c: Likewise.
1885         * target.c: Likewise.
1886         * typeprint.c: Likewise.
1887         * ui-file.c: Likewise.
1888         * valops.c: Likewise.
1889         * valprint.c: Likewise.
1890
1891 2014-08-07  Gary Benson  <gbenson@redhat.com>
1892
1893         * common/common-defs.h: Include string.h.
1894         * aarch64-tdep.c: Do not include string.h.
1895         * ada-exp.y: Likewise.
1896         * ada-lang.c: Likewise.
1897         * ada-lex.l: Likewise.
1898         * ada-typeprint.c: Likewise.
1899         * ada-valprint.c: Likewise.
1900         * aix-thread.c: Likewise.
1901         * alpha-linux-tdep.c: Likewise.
1902         * alpha-mdebug-tdep.c: Likewise.
1903         * alpha-nat.c: Likewise.
1904         * alpha-osf1-tdep.c: Likewise.
1905         * alpha-tdep.c: Likewise.
1906         * alphanbsd-tdep.c: Likewise.
1907         * amd64-dicos-tdep.c: Likewise.
1908         * amd64-linux-tdep.c: Likewise.
1909         * amd64-nat.c: Likewise.
1910         * amd64-sol2-tdep.c: Likewise.
1911         * amd64fbsd-tdep.c: Likewise.
1912         * amd64obsd-tdep.c: Likewise.
1913         * arch-utils.c: Likewise.
1914         * arm-linux-nat.c: Likewise.
1915         * arm-linux-tdep.c: Likewise.
1916         * arm-tdep.c: Likewise.
1917         * arm-wince-tdep.c: Likewise.
1918         * armbsd-tdep.c: Likewise.
1919         * armnbsd-nat.c: Likewise.
1920         * armnbsd-tdep.c: Likewise.
1921         * armobsd-tdep.c: Likewise.
1922         * avr-tdep.c: Likewise.
1923         * ax-gdb.c: Likewise.
1924         * ax-general.c: Likewise.
1925         * bcache.c: Likewise.
1926         * bfin-tdep.c: Likewise.
1927         * breakpoint.c: Likewise.
1928         * build-id.c: Likewise.
1929         * buildsym.c: Likewise.
1930         * c-exp.y: Likewise.
1931         * c-lang.c: Likewise.
1932         * c-typeprint.c: Likewise.
1933         * c-valprint.c: Likewise.
1934         * charset.c: Likewise.
1935         * cli-out.c: Likewise.
1936         * cli/cli-cmds.c: Likewise.
1937         * cli/cli-decode.c: Likewise.
1938         * cli/cli-dump.c: Likewise.
1939         * cli/cli-interp.c: Likewise.
1940         * cli/cli-logging.c: Likewise.
1941         * cli/cli-script.c: Likewise.
1942         * cli/cli-setshow.c: Likewise.
1943         * cli/cli-utils.c: Likewise.
1944         * coffread.c: Likewise.
1945         * common/agent.c: Likewise.
1946         * common/buffer.c: Likewise.
1947         * common/buffer.h: Likewise.
1948         * common/common-utils.c: Likewise.
1949         * common/filestuff.c: Likewise.
1950         * common/filestuff.c: Likewise.
1951         * common/format.c: Likewise.
1952         * common/print-utils.c: Likewise.
1953         * common/rsp-low.c: Likewise.
1954         * common/signals.c: Likewise.
1955         * common/vec.h: Likewise.
1956         * common/xml-utils.c: Likewise.
1957         * core-regset.c: Likewise.
1958         * corefile.c: Likewise.
1959         * corelow.c: Likewise.
1960         * cp-abi.c: Likewise.
1961         * cp-name-parser.y: Likewise.
1962         * cp-support.c: Likewise.
1963         * cp-valprint.c: Likewise.
1964         * cris-tdep.c: Likewise.
1965         * d-exp.y: Likewise.
1966         * darwin-nat.c: Likewise.
1967         * dbxread.c: Likewise.
1968         * dcache.c: Likewise.
1969         * demangle.c: Likewise.
1970         * dicos-tdep.c: Likewise.
1971         * disasm.c: Likewise.
1972         * doublest.c: Likewise.
1973         * dsrec.c: Likewise.
1974         * dummy-frame.c: Likewise.
1975         * dwarf2-frame.c: Likewise.
1976         * dwarf2loc.c: Likewise.
1977         * dwarf2read.c: Likewise.
1978         * elfread.c: Likewise.
1979         * environ.c: Likewise.
1980         * eval.c: Likewise.
1981         * event-loop.c: Likewise.
1982         * exceptions.c: Likewise.
1983         * exec.c: Likewise.
1984         * expprint.c: Likewise.
1985         * f-exp.y: Likewise.
1986         * f-lang.c: Likewise.
1987         * f-typeprint.c: Likewise.
1988         * f-valprint.c: Likewise.
1989         * fbsd-nat.c: Likewise.
1990         * findcmd.c: Likewise.
1991         * findvar.c: Likewise.
1992         * fork-child.c: Likewise.
1993         * frame.c: Likewise.
1994         * frv-linux-tdep.c: Likewise.
1995         * frv-tdep.c: Likewise.
1996         * gdb.c: Likewise.
1997         * gdb_bfd.c: Likewise.
1998         * gdbarch.c: Likewise.
1999         * gdbarch.sh: Likewise.
2000         * gdbtypes.c: Likewise.
2001         * gnu-nat.c: Likewise.
2002         * gnu-v2-abi.c: Likewise.
2003         * gnu-v3-abi.c: Likewise.
2004         * go-exp.y: Likewise.
2005         * go-lang.c: Likewise.
2006         * go32-nat.c: Likewise.
2007         * guile/guile.c: Likewise.
2008         * guile/scm-auto-load.c: Likewise.
2009         * hppa-hpux-tdep.c: Likewise.
2010         * hppa-linux-nat.c: Likewise.
2011         * hppanbsd-tdep.c: Likewise.
2012         * hppaobsd-tdep.c: Likewise.
2013         * i386-cygwin-tdep.c: Likewise.
2014         * i386-dicos-tdep.c: Likewise.
2015         * i386-linux-tdep.c: Likewise.
2016         * i386-nto-tdep.c: Likewise.
2017         * i386-sol2-tdep.c: Likewise.
2018         * i386-tdep.c: Likewise.
2019         * i386bsd-tdep.c: Likewise.
2020         * i386gnu-nat.c: Likewise.
2021         * i386nbsd-tdep.c: Likewise.
2022         * i386obsd-tdep.c: Likewise.
2023         * i387-tdep.c: Likewise.
2024         * ia64-libunwind-tdep.c: Likewise.
2025         * ia64-linux-nat.c: Likewise.
2026         * inf-child.c: Likewise.
2027         * inf-ptrace.c: Likewise.
2028         * inf-ttrace.c: Likewise.
2029         * infcall.c: Likewise.
2030         * infcmd.c: Likewise.
2031         * inflow.c: Likewise.
2032         * infrun.c: Likewise.
2033         * interps.c: Likewise.
2034         * iq2000-tdep.c: Likewise.
2035         * irix5-nat.c: Likewise.
2036         * jv-exp.y: Likewise.
2037         * jv-lang.c: Likewise.
2038         * jv-typeprint.c: Likewise.
2039         * jv-valprint.c: Likewise.
2040         * language.c: Likewise.
2041         * linux-fork.c: Likewise.
2042         * linux-nat.c: Likewise.
2043         * lm32-tdep.c: Likewise.
2044         * m2-exp.y: Likewise.
2045         * m2-typeprint.c: Likewise.
2046         * m32c-tdep.c: Likewise.
2047         * m32r-linux-nat.c: Likewise.
2048         * m32r-linux-tdep.c: Likewise.
2049         * m32r-rom.c: Likewise.
2050         * m32r-tdep.c: Likewise.
2051         * m68hc11-tdep.c: Likewise.
2052         * m68k-tdep.c: Likewise.
2053         * m68kbsd-tdep.c: Likewise.
2054         * m68klinux-nat.c: Likewise.
2055         * m68klinux-tdep.c: Likewise.
2056         * m88k-tdep.c: Likewise.
2057         * machoread.c: Likewise.
2058         * macrocmd.c: Likewise.
2059         * main.c: Likewise.
2060         * mdebugread.c: Likewise.
2061         * mem-break.c: Likewise.
2062         * memattr.c: Likewise.
2063         * memory-map.c: Likewise.
2064         * mep-tdep.c: Likewise.
2065         * mi/mi-cmd-break.c: Likewise.
2066         * mi/mi-cmd-disas.c: Likewise.
2067         * mi/mi-cmd-env.c: Likewise.
2068         * mi/mi-cmd-stack.c: Likewise.
2069         * mi/mi-cmd-var.c: Likewise.
2070         * mi/mi-cmds.c: Likewise.
2071         * mi/mi-console.c: Likewise.
2072         * mi/mi-getopt.c: Likewise.
2073         * mi/mi-interp.c: Likewise.
2074         * mi/mi-main.c: Likewise.
2075         * mi/mi-parse.c: Likewise.
2076         * microblaze-rom.c: Likewise.
2077         * microblaze-tdep.c: Likewise.
2078         * mingw-hdep.c: Likewise.
2079         * minidebug.c: Likewise.
2080         * minsyms.c: Likewise.
2081         * mips-irix-tdep.c: Likewise.
2082         * mips-linux-tdep.c: Likewise.
2083         * mips-tdep.c: Likewise.
2084         * mips64obsd-tdep.c: Likewise.
2085         * mipsnbsd-tdep.c: Likewise.
2086         * mipsread.c: Likewise.
2087         * mn10300-linux-tdep.c: Likewise.
2088         * mn10300-tdep.c: Likewise.
2089         * monitor.c: Likewise.
2090         * moxie-tdep.c: Likewise.
2091         * mt-tdep.c: Likewise.
2092         * nat/linux-btrace.c: Likewise.
2093         * nat/linux-osdata.c: Likewise.
2094         * nat/linux-procfs.c: Likewise.
2095         * nat/linux-ptrace.c: Likewise.
2096         * nat/linux-waitpid.c: Likewise.
2097         * nbsd-tdep.c: Likewise.
2098         * nios2-linux-tdep.c: Likewise.
2099         * nto-procfs.c: Likewise.
2100         * nto-tdep.c: Likewise.
2101         * objc-lang.c: Likewise.
2102         * objfiles.c: Likewise.
2103         * opencl-lang.c: Likewise.
2104         * osabi.c: Likewise.
2105         * osdata.c: Likewise.
2106         * p-exp.y: Likewise.
2107         * p-lang.c: Likewise.
2108         * p-typeprint.c: Likewise.
2109         * parse.c: Likewise.
2110         * posix-hdep.c: Likewise.
2111         * ppc-linux-nat.c: Likewise.
2112         * ppc-sysv-tdep.c: Likewise.
2113         * ppcfbsd-tdep.c: Likewise.
2114         * ppcnbsd-tdep.c: Likewise.
2115         * ppcobsd-tdep.c: Likewise.
2116         * printcmd.c: Likewise.
2117         * procfs.c: Likewise.
2118         * prologue-value.c: Likewise.
2119         * python/py-auto-load.c: Likewise.
2120         * python/py-gdb-readline.c: Likewise.
2121         * ravenscar-thread.c: Likewise.
2122         * regcache.c: Likewise.
2123         * registry.c: Likewise.
2124         * remote-fileio.c: Likewise.
2125         * remote-m32r-sdi.c: Likewise.
2126         * remote-mips.c: Likewise.
2127         * remote-notif.c: Likewise.
2128         * remote-sim.c: Likewise.
2129         * remote.c: Likewise.
2130         * reverse.c: Likewise.
2131         * rs6000-aix-tdep.c: Likewise.
2132         * ser-base.c: Likewise.
2133         * ser-go32.c: Likewise.
2134         * ser-mingw.c: Likewise.
2135         * ser-pipe.c: Likewise.
2136         * ser-tcp.c: Likewise.
2137         * ser-unix.c: Likewise.
2138         * serial.c: Likewise.
2139         * sh-tdep.c: Likewise.
2140         * sh64-tdep.c: Likewise.
2141         * shnbsd-tdep.c: Likewise.
2142         * skip.c: Likewise.
2143         * sol-thread.c: Likewise.
2144         * solib-dsbt.c: Likewise.
2145         * solib-frv.c: Likewise.
2146         * solib-osf.c: Likewise.
2147         * solib-som.c: Likewise.
2148         * solib-spu.c: Likewise.
2149         * solib-target.c: Likewise.
2150         * solib.c: Likewise.
2151         * somread.c: Likewise.
2152         * source.c: Likewise.
2153         * sparc-nat.c: Likewise.
2154         * sparc-sol2-tdep.c: Likewise.
2155         * sparc-tdep.c: Likewise.
2156         * sparc64-tdep.c: Likewise.
2157         * sparc64fbsd-tdep.c: Likewise.
2158         * sparc64nbsd-tdep.c: Likewise.
2159         * sparcnbsd-tdep.c: Likewise.
2160         * spu-linux-nat.c: Likewise.
2161         * spu-multiarch.c: Likewise.
2162         * spu-tdep.c: Likewise.
2163         * stabsread.c: Likewise.
2164         * stack.c: Likewise.
2165         * std-regs.c: Likewise.
2166         * symfile.c: Likewise.
2167         * symmisc.c: Likewise.
2168         * symtab.c: Likewise.
2169         * target.c: Likewise.
2170         * thread.c: Likewise.
2171         * tilegx-linux-nat.c: Likewise.
2172         * tilegx-tdep.c: Likewise.
2173         * top.c: Likewise.
2174         * tracepoint.c: Likewise.
2175         * tui/tui-command.c: Likewise.
2176         * tui/tui-data.c: Likewise.
2177         * tui/tui-disasm.c: Likewise.
2178         * tui/tui-file.c: Likewise.
2179         * tui/tui-layout.c: Likewise.
2180         * tui/tui-out.c: Likewise.
2181         * tui/tui-regs.c: Likewise.
2182         * tui/tui-source.c: Likewise.
2183         * tui/tui-stack.c: Likewise.
2184         * tui/tui-win.c: Likewise.
2185         * tui/tui-windata.c: Likewise.
2186         * tui/tui-winsource.c: Likewise.
2187         * typeprint.c: Likewise.
2188         * ui-file.c: Likewise.
2189         * ui-out.c: Likewise.
2190         * user-regs.c: Likewise.
2191         * utils.c: Likewise.
2192         * v850-tdep.c: Likewise.
2193         * valarith.c: Likewise.
2194         * valops.c: Likewise.
2195         * valprint.c: Likewise.
2196         * value.c: Likewise.
2197         * varobj.c: Likewise.
2198         * vax-tdep.c: Likewise.
2199         * vaxnbsd-tdep.c: Likewise.
2200         * vaxobsd-tdep.c: Likewise.
2201         * windows-nat.c: Likewise.
2202         * xcoffread.c: Likewise.
2203         * xml-support.c: Likewise.
2204         * xstormy16-tdep.c: Likewise.
2205         * xtensa-linux-nat.c: Likewise.
2206
2207 2014-08-07  Gary Benson  <gbenson@redhat.com>
2208
2209         * common/common-defs.h: Include gdb_assert.h.
2210         * aarch64-tdep.c: Do not include gdb_assert.h.
2211         * addrmap.c: Likewise.
2212         * aix-thread.c: Likewise.
2213         * alpha-linux-tdep.c: Likewise.
2214         * alpha-mdebug-tdep.c: Likewise.
2215         * alphanbsd-tdep.c: Likewise.
2216         * amd64-nat.c: Likewise.
2217         * amd64-tdep.c: Likewise.
2218         * amd64bsd-nat.c: Likewise.
2219         * amd64fbsd-nat.c: Likewise.
2220         * amd64fbsd-tdep.c: Likewise.
2221         * amd64nbsd-nat.c: Likewise.
2222         * amd64nbsd-tdep.c: Likewise.
2223         * amd64obsd-nat.c: Likewise.
2224         * amd64obsd-tdep.c: Likewise.
2225         * arch-utils.c: Likewise.
2226         * arm-tdep.c: Likewise.
2227         * armbsd-tdep.c: Likewise.
2228         * auxv.c: Likewise.
2229         * bcache.c: Likewise.
2230         * bfin-tdep.c: Likewise.
2231         * blockframe.c: Likewise.
2232         * breakpoint.c: Likewise.
2233         * bsd-kvm.c: Likewise.
2234         * bsd-uthread.c: Likewise.
2235         * buildsym.c: Likewise.
2236         * c-exp.y: Likewise.
2237         * c-lang.c: Likewise.
2238         * charset.c: Likewise.
2239         * cleanups.c: Likewise.
2240         * cli-out.c: Likewise.
2241         * cli/cli-decode.c: Likewise.
2242         * cli/cli-dump.c: Likewise.
2243         * cli/cli-logging.c: Likewise.
2244         * cli/cli-script.c: Likewise.
2245         * cli/cli-utils.c: Likewise.
2246         * coffread.c: Likewise.
2247         * common/common-utils.c: Likewise.
2248         * common/queue.h: Likewise.
2249         * common/signals.c: Likewise.
2250         * common/vec.h: Likewise.
2251         * complaints.c: Likewise.
2252         * completer.c: Likewise.
2253         * corelow.c: Likewise.
2254         * cp-abi.c: Likewise.
2255         * cp-name-parser.y: Likewise.
2256         * cp-namespace.c: Likewise.
2257         * cp-support.c: Likewise.
2258         * cris-tdep.c: Likewise.
2259         * dbxread.c: Likewise.
2260         * dictionary.c: Likewise.
2261         * doublest.c: Likewise.
2262         * dsrec.c: Likewise.
2263         * dummy-frame.c: Likewise.
2264         * dwarf2-frame-tailcall.c: Likewise.
2265         * dwarf2-frame.c: Likewise.
2266         * dwarf2expr.c: Likewise.
2267         * dwarf2loc.c: Likewise.
2268         * dwarf2read.c: Likewise.
2269         * eval.c: Likewise.
2270         * event-loop.c: Likewise.
2271         * exceptions.c: Likewise.
2272         * expprint.c: Likewise.
2273         * f-valprint.c: Likewise.
2274         * fbsd-nat.c: Likewise.
2275         * findvar.c: Likewise.
2276         * frame-unwind.c: Likewise.
2277         * frame.c: Likewise.
2278         * frv-tdep.c: Likewise.
2279         * gcore.c: Likewise.
2280         * gdb-dlfcn.c: Likewise.
2281         * gdb_bfd.c: Likewise.
2282         * gdbarch.c: Likewise.
2283         * gdbarch.sh: Likewise.
2284         * gdbtypes.c: Likewise.
2285         * gnu-nat.c: Likewise.
2286         * gnu-v3-abi.c: Likewise.
2287         * go-lang.c: Likewise.
2288         * guile/scm-exception.c: Likewise.
2289         * guile/scm-gsmob.c: Likewise.
2290         * guile/scm-lazy-string.c: Likewise.
2291         * guile/scm-math.c: Likewise.
2292         * guile/scm-pretty-print.c: Likewise.
2293         * guile/scm-safe-call.c: Likewise.
2294         * guile/scm-utils.c: Likewise.
2295         * guile/scm-value.c: Likewise.
2296         * h8300-tdep.c: Likewise.
2297         * hppa-hpux-nat.c: Likewise.
2298         * hppa-tdep.c: Likewise.
2299         * hppanbsd-tdep.c: Likewise.
2300         * hppaobsd-tdep.c: Likewise.
2301         * i386-darwin-nat.c: Likewise.
2302         * i386-darwin-tdep.c: Likewise.
2303         * i386-nto-tdep.c: Likewise.
2304         * i386-tdep.c: Likewise.
2305         * i386bsd-nat.c: Likewise.
2306         * i386fbsd-tdep.c: Likewise.
2307         * i386gnu-nat.c: Likewise.
2308         * i386nbsd-tdep.c: Likewise.
2309         * i386obsd-tdep.c: Likewise.
2310         * i387-tdep.c: Likewise.
2311         * ia64-libunwind-tdep.c: Likewise.
2312         * ia64-tdep.c: Likewise.
2313         * inf-ptrace.c: Likewise.
2314         * inf-ttrace.c: Likewise.
2315         * infcall.c: Likewise.
2316         * infcmd.c: Likewise.
2317         * infrun.c: Likewise.
2318         * inline-frame.c: Likewise.
2319         * interps.c: Likewise.
2320         * jv-lang.c: Likewise.
2321         * jv-typeprint.c: Likewise.
2322         * linux-fork.c: Likewise.
2323         * linux-nat.c: Likewise.
2324         * linux-thread-db.c: Likewise.
2325         * m32c-tdep.c: Likewise.
2326         * m32r-linux-nat.c: Likewise.
2327         * m32r-tdep.c: Likewise.
2328         * m68k-tdep.c: Likewise.
2329         * m68kbsd-nat.c: Likewise.
2330         * m68kbsd-tdep.c: Likewise.
2331         * m88k-tdep.c: Likewise.
2332         * machoread.c: Likewise.
2333         * macroexp.c: Likewise.
2334         * macrotab.c: Likewise.
2335         * maint.c: Likewise.
2336         * mdebugread.c: Likewise.
2337         * memory-map.c: Likewise.
2338         * mep-tdep.c: Likewise.
2339         * mi/mi-common.c: Likewise.
2340         * microblaze-tdep.c: Likewise.
2341         * mingw-hdep.c: Likewise.
2342         * mips-linux-nat.c: Likewise.
2343         * mips-linux-tdep.c: Likewise.
2344         * mips-tdep.c: Likewise.
2345         * mips64obsd-tdep.c: Likewise.
2346         * mipsnbsd-tdep.c: Likewise.
2347         * mn10300-linux-tdep.c: Likewise.
2348         * mn10300-tdep.c: Likewise.
2349         * moxie-tdep.c: Likewise.
2350         * mt-tdep.c: Likewise.
2351         * nat/linux-btrace.c: Likewise.
2352         * nat/linux-osdata.c: Likewise.
2353         * nat/linux-ptrace.c: Likewise.
2354         * nat/mips-linux-watch.c: Likewise.
2355         * nios2-linux-tdep.c: Likewise.
2356         * nios2-tdep.c: Likewise.
2357         * objc-lang.c: Likewise.
2358         * objfiles.c: Likewise.
2359         * obsd-nat.c: Likewise.
2360         * opencl-lang.c: Likewise.
2361         * osabi.c: Likewise.
2362         * parse.c: Likewise.
2363         * ppc-linux-nat.c: Likewise.
2364         * ppc-sysv-tdep.c: Likewise.
2365         * ppcfbsd-nat.c: Likewise.
2366         * ppcfbsd-tdep.c: Likewise.
2367         * ppcnbsd-nat.c: Likewise.
2368         * ppcnbsd-tdep.c: Likewise.
2369         * ppcobsd-nat.c: Likewise.
2370         * ppcobsd-tdep.c: Likewise.
2371         * printcmd.c: Likewise.
2372         * procfs.c: Likewise.
2373         * prologue-value.c: Likewise.
2374         * psymtab.c: Likewise.
2375         * python/py-lazy-string.c: Likewise.
2376         * python/py-value.c: Likewise.
2377         * regcache.c: Likewise.
2378         * reggroups.c: Likewise.
2379         * registry.c: Likewise.
2380         * remote-sim.c: Likewise.
2381         * remote.c: Likewise.
2382         * rs6000-aix-tdep.c: Likewise.
2383         * rs6000-tdep.c: Likewise.
2384         * s390-linux-tdep.c: Likewise.
2385         * score-tdep.c: Likewise.
2386         * ser-base.c: Likewise.
2387         * ser-mingw.c: Likewise.
2388         * sh-tdep.c: Likewise.
2389         * sh64-tdep.c: Likewise.
2390         * solib-darwin.c: Likewise.
2391         * solib-spu.c: Likewise.
2392         * solib-svr4.c: Likewise.
2393         * source.c: Likewise.
2394         * sparc-nat.c: Likewise.
2395         * sparc-sol2-tdep.c: Likewise.
2396         * sparc-tdep.c: Likewise.
2397         * sparc64-sol2-tdep.c: Likewise.
2398         * sparc64-tdep.c: Likewise.
2399         * sparc64fbsd-tdep.c: Likewise.
2400         * sparc64nbsd-tdep.c: Likewise.
2401         * sparc64obsd-tdep.c: Likewise.
2402         * sparcnbsd-tdep.c: Likewise.
2403         * sparcobsd-tdep.c: Likewise.
2404         * spu-multiarch.c: Likewise.
2405         * spu-tdep.c: Likewise.
2406         * stabsread.c: Likewise.
2407         * stack.c: Likewise.
2408         * symfile.c: Likewise.
2409         * symtab.c: Likewise.
2410         * target-descriptions.c: Likewise.
2411         * target-memory.c: Likewise.
2412         * target.c: Likewise.
2413         * tic6x-linux-tdep.c: Likewise.
2414         * tic6x-tdep.c: Likewise.
2415         * tilegx-linux-nat.c: Likewise.
2416         * tilegx-tdep.c: Likewise.
2417         * top.c: Likewise.
2418         * tramp-frame.c: Likewise.
2419         * tui/tui-out.c: Likewise.
2420         * tui/tui-winsource.c: Likewise.
2421         * ui-out.c: Likewise.
2422         * user-regs.c: Likewise.
2423         * utils.c: Likewise.
2424         * v850-tdep.c: Likewise.
2425         * valops.c: Likewise.
2426         * value.c: Likewise.
2427         * varobj.c: Likewise.
2428         * vax-nat.c: Likewise.
2429         * xml-syscall.c: Likewise.
2430         * xml-tdesc.c: Likewise.
2431         * xstormy16-tdep.c: Likewise.
2432         * xtensa-linux-nat.c: Likewise.
2433         * xtensa-tdep.c: Likewise.
2434
2435 2014-08-07  Gary Benson  <gbenson@redhat.com>
2436
2437         * common/common-defs.h: Include common-utils.h.
2438         * defs.h: Do not include common-utils.h.
2439         * common/gdb_assert.h: Likewise.
2440         * darwin-nat.h: Likewise.
2441         * nat/linux-btrace.c: Likewise.
2442         * target/waitstatus.h: Likewise.
2443
2444 2014-08-07  Gary Benson  <gbenson@redhat.com>
2445
2446         * common/common-defs.h: Include ptid.h.
2447         * defs.h: Do not include ptid.h.
2448         * inferior.h: Likewise.
2449         * infrun.h: Likewise.
2450         * nat/linux-btrace.h: Likewise.
2451         * nat/linux-osdata.h: Likewise.
2452         * target/waitstatus.h: Likewise.
2453
2454 2014-08-07  Gary Benson  <gbenson@redhat.com>
2455
2456         * common/common-defs.h: Include gdb_locale.h.
2457         * defs.h: Do not include gdb_locale.h.
2458
2459 2014-08-07  Gary Benson  <gbenson@redhat.com>
2460
2461         * common/common-defs.h: Include gdb/signals.h.
2462         * defs.h: Do not include gdb/signals.h.
2463
2464 2014-08-07  Gary Benson  <gbenson@redhat.com>
2465
2466         * common/common-defs.h: Include pathmax.h.
2467         * defs.h: Do not include pathmax.h.
2468
2469 2014-08-07  Gary Benson  <gbenson@redhat.com>
2470
2471         * common/common-defs.h: Include libiberty.h.
2472         * defs.h: Do not include libiberty.h.
2473         * common/queue.h: Likewise.
2474         * cp-name-parser.y: Likewise.
2475         * mi/mi-cmd-catch.c: Likewise.
2476         * python/python.c: Likewise.
2477
2478 2014-08-07  Gary Benson  <gbenson@redhat.com>
2479
2480         * common/common-defs.h: Include ansidecl.h.
2481         * defs.h: Do not include ansidecl.h.
2482         * common/buffer.h: Likewise.
2483         * common/common-utils.h: Likewise.
2484
2485 2014-08-07  Gary Benson  <gbenson@redhat.com>
2486
2487         * common/common-defs.h: Include stddef.h.
2488         * defs.h: Do not include stddef.h.
2489         * common/common-utils.h: Likewise.
2490         * amd64fbsd-nat.c: Likewise.
2491         * bcache.c: Likewise.
2492         * charset.c: Likewise.
2493         * common/buffer.h: Likewise.
2494         * common/vec.h: Likewise.
2495         * i386bsd-nat.c: Likewise.
2496         * nat/linux-btrace.h: Likewise.
2497         * ppcfbsd-nat.c: Likewise.
2498         * ppcnbsd-tdep.h: Likewise.
2499         * ppcobsd-nat.c: Likewise.
2500         * ppcobsd-tdep.h: Likewise.
2501         * python/py-gdb-readline.c: Likewise.
2502
2503 2014-08-07  Gary Benson  <gbenson@redhat.com>
2504
2505         * common/common-defs.h: Include stdarg.h.
2506         * defs.h: Do not include stdarg.h.
2507         * ada-lang.c: Likewise.
2508         * common/common-utils.h: Likewise.
2509         * guile/scm-string.c: Likewise.
2510         * guile/scm-utils.c: Likewise.
2511         * m32c-tdep.c: Likewise.
2512
2513 2014-08-07  Gary Benson  <gbenson@redhat.com>
2514
2515         * common/common-defs.h: Include stdlib.h.
2516         * defs.h: Do not include stdlib.h.
2517         * addrmap.c: Likewise.
2518         * bcache.c: Likewise.
2519         * common/buffer.c: Likewise.
2520         * common/common-utils.c: Likewise.
2521         * cp-name-parser.y: Likewise.
2522         * go32-nat.c: Likewise.
2523         * mn10300-linux-tdep.c: Likewise.
2524         * nat/linux-osdata.c: Likewise.
2525         * tui/tui.c: Likewise.
2526         * windows-nat.c: Likewise.
2527
2528 2014-08-07  Gary Benson  <gbenson@redhat.com>
2529
2530         * common/common-defs.h: Include stdio.h.
2531         * defs.h: Do not include stdio.h.
2532         * ada-lang.c: Likewise.
2533         * common/buffer.c: Likewise.
2534         * common/common-utils.c: Likewise.
2535         * cp-name-parser.y: Likewise.
2536         * gnu-nat.c: Likewise.
2537         * go32-nat.c: Likewise.
2538         * i386gnu-nat.c: Likewise.
2539         * proc-api.c: Likewise.
2540         * proc-events.c: Likewise.
2541         * proc-flags.c: Likewise.
2542         * proc-why.c: Likewise.
2543         * python/python-internal.h: Likewise.
2544         * target-memory.c: Likewise.
2545         * tui/tui-io.c: Likewise.
2546         * tui/tui.c: Likewise.
2547
2548 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2549
2550         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2551         (scan_dyntag_auxv): Same.
2552
2553 2014-08-06  Yao Qi  <yao@codesourcery.com>
2554
2555         * amd64-linux-nat.c: Remove duplicated include
2556         "x86-linux-nat.h".
2557         * i386-linux-nat.c: Likewise.
2558
2559 2014-08-06  Yao Qi  <yao@codesourcery.com>
2560
2561         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2562         operand" with "Special opcode" in comments.
2563
2564 2014-08-05  Gary Benson  <gbenson@redhat.com>
2565
2566         * interps.c (initialize_interps): Remove prototype.
2567         (interpreter_initialized): Remove static global.
2568         (interp_add): Do not call initialize_interps.
2569         (initialize_interps): Remove function.
2570
2571 2014-08-05  Gary Benson  <gbenson@redhat.com>
2572
2573         * utils.c (vwarning): Remove spurious va_end.
2574
2575 2014-08-05  Alan Modra  <amodra@gmail.com>
2576
2577         * charset.c (convert_between_encodings): Cast result of obstack_base.
2578         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2579         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2580         (read_unwind_info): Use size_t for some locals.
2581         * jit.c (finalize_symtab): Likewise.
2582         * utils.c (hashtab_obstack_allocate): Likewise.
2583         * symmisc.c (print_objfile_statistics): Update format strings.
2584
2585 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2586
2587         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2588         (Changes in GDB 7.8): ... here.
2589
2590 2014-08-04  Tom Tromey  <tromey@redhat.com>
2591
2592         * target.c (set_targetdebug): New function.
2593         (initialize_targets): Pass set_targetdebug when creating "set
2594         debug target".
2595
2596 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2597
2598         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2599         if detecting a variable-sized field that is not the last field.
2600         Fix struct type length computation.
2601
2602 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2603
2604         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2605         Add debug trace.
2606
2607 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2608
2609         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2610         Remove "+ 8" offset in computation of CHAIN_VMA.
2611
2612 2014-07-31  Doug Evans  <dje@google.com>
2613
2614         * inflow.c (child_terminal_inferior): Add comment.
2615         (child_terminal_ours_for_output): Add comment.
2616         (child_terminal_ours): Add comment.
2617         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2618         (linux_nat_terminal_ours): Add comment.
2619
2620 2014-07-31  Gary Benson  <gbenson@redhat.com>
2621
2622         * common/btrace-common.h: Do not include defs.h or server.h.
2623         * nat/mips-linux-watch.h: Likewise.
2624         * gdb-dlfcn.h: Do not include defs.h.
2625         * tracefile.h: Likewise.
2626
2627 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2628
2629         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2630
2631 2014-07-30  Tom Tromey  <tromey@redhat.com>
2632
2633         * bsd-kvm.c (bsd_kvm_open): Constify.
2634         * corelow.c (core_open): Constify.
2635         * ctf.c (ctf_open): Constify.
2636         * dbug-rom.c (dbug_open): Constify.
2637         * exec.c (exec_open): Constify.
2638         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2639         * microblaze-rom.c (picobug_open): Constify.
2640         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2641         Constify.
2642         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2643         * record-btrace.c (record_btrace_open): Constify.
2644         * record-full.c (record_full_core_open_1, record_full_open_1)
2645         (record_full_open): Constify.
2646         * remote-m32r-sdi.c (m32r_open): Constify.
2647         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2648         (rockhopper_open, lsi_open): Constify.
2649         * remote-sim.c (gdbsim_open): Constify.
2650         * remote.c (remote_open, extended_remote_open, remote_open_1):
2651         Constify.
2652         * target.h (struct target_ops) <to_open>: Make "arg" const.
2653         * tracefile-tfile.c (tfile_open): Constify.
2654
2655 2014-07-30  Tom Tromey  <tromey@redhat.com>
2656
2657         * breakpoint.c (map_breakpoint_numbers): Update.
2658         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2659         (get_number_const): New function.
2660         (get_number): Rewrite using get_number_const.
2661         (init_number_or_range): Make "string" const.
2662         (number_is_in_list): Make "list" const.
2663         * cli/cli-utils.h (get_number_const): Declare.
2664         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2665         (init_number_or_range, number_is_in_list): Update.
2666         * printcmd.c (map_display_numbers): Update.
2667         * value.c (value_from_history_ref): Constify.
2668         * value.h (value_from_history_ref): Update.
2669
2670 2014-07-30  Tom Tromey  <tromey@redhat.com>
2671
2672         * corefile.c (hook_type, call_extra_exec_file_hooks)
2673         (specify_exec_file_hook): Constify.
2674         * exec.c (exec_file_attach): Make "filename" const.
2675         * gdbcore.h (deprecated_exec_file_display_hook)
2676         (specify_exec_file_hook, exec_file_attach): Constify.
2677         * main.c (captured_main): Use catch_command_errors_const.
2678
2679 2014-07-30  Tom Tromey  <tromey@redhat.com>
2680
2681         * target.c (open_target): New function.
2682         (add_target_with_completer, add_deprecated_target_alias): Use
2683         set_cmd_sfunc, set_cmd_context.
2684         (debug_to_open): Remove.
2685         (setup_target_debug): Update.
2686
2687 2014-07-30  Yao Qi  <yao@codesourcery.com>
2688
2689         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2690         comments.
2691         * parse.c (exp_iterate): Update comments.
2692
2693 2014-07-30  Gary Benson  <gbenson@redhat.com>
2694
2695         * common/common-defs.h: New file.
2696         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2697         * defs.h: Include common-defs.h.
2698         Do not include config.h or build-gnulib/config.h.
2699
2700 2014-07-30  Gary Benson  <gbenson@redhat.com>
2701
2702         * common/common-utils.h: Do not include config.h.
2703         * nat/linux-btrace.h: Likewise.
2704
2705 2014-07-30  Gary Benson  <gbenson@redhat.com>
2706
2707         * btrace.c: Include defs.h.
2708         * common/ptid.c: Include defs.h or server.h as appropriate.
2709         * nat/mips-linux-watch.c: Likewise.
2710
2711 2014-07-29  Tom Tromey  <tromey@redhat.com>
2712
2713         * target.c (target_is_pushed): Simplify.
2714
2715 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2716
2717         GDB 7.8 released.
2718
2719 2014-07-29  Yao Qi  <yao@codesourcery.com>
2720
2721         PR gdb/17206
2722         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2723
2724 2014-07-28  Doug Evans  <xdje42@gmail.com>
2725
2726         PR guile/17203
2727         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2728         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2729         parameters.
2730
2731 2014-07-28  Will Newton  <will.newton@linaro.org>
2732
2733         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2734         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2735         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2736         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2737         (THUMB2_EABI_SYSCALL): Likewise.
2738         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2739         struct tramp_frame.
2740         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2741         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2742
2743 2014-07-27  Doug Evans  <xdje42@gmail.com>
2744
2745         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2746
2747 2014-07-27  Doug Evans  <xdje42@gmail.com>
2748
2749         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2750
2751 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2752             Doug Evans  <xdje42@gmail.com>
2753
2754         PR guile/17146
2755         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2756         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2757         * configure.ac: Try to use guild to compile an scm file, if it fails
2758         then disable guile support.
2759         * configure: Regenerate.
2760         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2761         GUILE_FILE_LIST.
2762         (GUILE_COMPILED_FILES): New variable.
2763         (GUILE_FILES) Update.
2764         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2765         (stamp-guile): Compile scm files.
2766         * guile/guile.c (boot_guile_support): New function.
2767         (standard_throw_args_p): New function.
2768         (print_standard_throw_error, print_throw_error): New functions.
2769         (handle_boot_error): New function.
2770         (initialize_scheme_side): Rewrite to call boot_guile_support.
2771         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2772         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2773
2774 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2775             Doug Evans  <xdje42@gmail.com>
2776
2777         PR guile/17146
2778         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2779         * guile/lib/gdb/support.scm: New file.
2780         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2781         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2782         All uses updated.
2783         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2784         All uses updated.
2785         (%assert-type): Ditto, and renamed to assert-type.
2786         (%exception-print-style): Delete.
2787
2788 2014-07-26  Doug Evans  <xdje42@gmail.com>
2789
2790         PR build/17105
2791         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2792         * configure: Regenerate.
2793         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2794         PYTHON_FILES.
2795         (PYTHON_FILES): New variable.
2796         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2797         (GUILE_FILES): New variable.
2798         (stamp-python, install-python, uninstall-python): Handle empty
2799         file list.
2800         (stamp-guile, install-guile, uninstall-guile): Ditto.
2801
2802 2014-07-26  Doug Evans  <xdje42@gmail.com>
2803
2804         PR guile/17177
2805         * guile/lib/gdb.scm (pretty-printers): Export.
2806         (set-pretty-printers!): Export.
2807         * guile/lib/gdb/printing.scm (gdb module): Update.
2808         (prepend-pretty-printer!, append-pretty-printer!): Update.
2809         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2810         (pretty_printer_list_var): Delete.
2811         (pretty_printer_list): New static global.
2812         (gdbscm_pretty_printers): New function.
2813         (gdbscm_set_pretty_printers_x): New function.
2814         (ppscm_find_pretty_printer_from_gdb): Update.
2815         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2816         (gdbscm_initialize_pretty_printers): Update.
2817
2818 2014-07-26  Doug Evans  <xdje42@gmail.com>
2819
2820         PR 17185
2821         * configure.ac: Add check for header gc/gc.h.
2822         Add check for function setenv.
2823         * configure: Regenerate.
2824         * config.in: Regenerate.
2825         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2826
2827 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2828
2829         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2830         variation in gdbarch matching.
2831
2832 2014-07-25  Tom Tromey  <tromey@redhat.com>
2833
2834         * exec.c (using_exec_ops): Remove.
2835         (exec_close_1): Update.  Remove extraneous block, reindent.
2836         (add_target_sections): Use target_is_pushed.
2837
2838 2014-07-25  Pedro Alves  <palves@redhat.com>
2839
2840         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2841         * monitor.c (monitor_create_inferior): Likewise.
2842         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2843         * remote-sim.c (gdbsim_create_inferior): Likewise.
2844         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2845         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2846         * windows-nat.c (do_initial_windows_stuff): Likewise.
2847
2848 2014-07-25  Pedro Alves  <palves@redhat.com>
2849
2850         * NEWS: Mention signal passing and "signal" command changes.
2851         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2852         comment.
2853         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2854         call.
2855         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2856         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2857         (jump_command): Adjust clear_proceed_status call.
2858         (signal_command): Warn if other thread that are resumed have
2859         signals that will be delivered.  Adjust clear_proceed_status call.
2860         (until_next_command, finish_command)
2861         (proceed_after_attach_callback, attach_command_post_wait)
2862         (attach_command): Adjust clear_proceed_status call.
2863         * infrun.c (proceed_after_vfork_done): Likewise.
2864         (proceed_after_attach_callback): Adjust comment.
2865         (clear_proceed_status_thread): Clear stop_signal if not in pass
2866         state.
2867         (clear_proceed_status_callback): Delete.
2868         (clear_proceed_status): New 'step' parameter.  Only clear the
2869         proceed status of threads the command being prepared is about to
2870         resume.
2871         (proceed): If passed in an explicit signal, override stop_signal
2872         with it.  Don't pass the last stop signal to the thread we're
2873         resuming.
2874         (init_wait_for_inferior): Adjust clear_proceed_status call.
2875         (switch_back_to_stepped_thread): Clear the signal if it should not
2876         be passed.
2877         * infrun.h (clear_proceed_status): New 'step' parameter.
2878         (user_visible_resume_ptid): Add comment.
2879         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2880         signal is in pass state.
2881         * remote.c (append_pending_thread_resumptions): Likewise.
2882         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2883
2884 2014-07-25  Tom Tromey  <tromey@redhat.com>
2885
2886         * target.h (target_stopped_data_address)
2887         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2888         parentheses.
2889
2890 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2891
2892         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2893         comments.
2894         (avr_pointer_to_address): Likewise.
2895
2896 2014-07-24  Tom Tromey  <tromey@redhat.com>
2897
2898         * monitor.c (compile_pattern): Update.
2899         * target.h (struct target_ops) <to_shortname, to_longname,
2900         to_doc>: Now const.
2901
2902 2014-07-24  Tom Tromey  <tromey@redhat.com>
2903
2904         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2905         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2906         (add_info_alias, add_com): Make "doc" const.
2907         (print_doc_line): Make "str" const.
2908         (delete_cmd): Update.
2909         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2910         (print_doc_line): Update.
2911         * cli/cli-script.c (document_command): Update.
2912         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2913         (add_com, add_info, add_info_alias): Update.
2914         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2915         * python/py-cmd.c (cmdpy_destroyer): Update.
2916
2917 2014-07-24  Tom Tromey  <tromey@redhat.com>
2918
2919         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2920         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2921         (help_cmd_list): Constify.
2922         (lookup_cmd): Update.
2923         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2924         const.
2925         (help_cmd_list, apropos_cmd): Update.
2926         * cli/cli-script.c (show_user): Update.
2927         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2928         * cli/cli-setshow.h (cmd_show_list): Update.
2929         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2930         (cmd_show_list): Update.
2931         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2932         * python/py-cmd.c (cmdpy_destroyer): Update.
2933
2934 2014-07-24  Tom Tromey  <tromey@redhat.com>
2935
2936         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2937         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2938         const.
2939         * command.h (deprecate_cmd): Update.
2940         * maint.c (maintenance_do_deprecate): Add casts.
2941
2942 2014-07-24  Tom Tromey  <tromey@redhat.com>
2943
2944         * cli/cli-decode.c (help_cmd): Make parameter "const".
2945         * cli/cli-decode.h (help_cmd): Update.
2946
2947 2014-07-24  Tom Tromey  <tromey@redhat.com>
2948
2949         * stack.c (up_silently_base, down_silently_base): Make argument
2950         const.
2951
2952 2014-07-24  Tom Tromey  <tromey@redhat.com>
2953
2954         * solib.c (solib_add): Make "pattern" const.
2955         * solib.h (solib_add): Update.
2956
2957 2014-07-24  Tom Tromey  <tromey@redhat.com>
2958
2959         * remote.c (remote_serial_open, print_packet, putpkt)
2960         (putpkt_binary): Constify.
2961         * remote.h (putpkt): Update.
2962
2963 2014-07-24  Tom Tromey  <tromey@redhat.com>
2964
2965         * monitor.c (monitor_open): Make "args" const.
2966         * monitor.h (monitor_open): Update.
2967
2968 2014-07-24  Tom Tromey  <tromey@redhat.com>
2969
2970         * maint.c (match_bfd_flags): Make "string" const.
2971         (print_bfd_section_info): Remove casts.
2972         (print_objfile_section_info): Make "string" const.
2973
2974 2014-07-24  Tom Tromey  <tromey@redhat.com>
2975
2976         * inf-child.c (inf_child_open_target): Make "arg" const.
2977         * inf-child.h (inf_child_open_target): Update.
2978
2979 2014-07-24  Tom Tromey  <tromey@redhat.com>
2980
2981         * environ.c (unset_in_environ): Make "var" const.
2982         * environ.h (unset_in_environ): Update.
2983
2984 2014-07-24  Tom Tromey  <tromey@redhat.com>
2985
2986         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2987         Make "cmd" const.
2988         (scan_filename_with_cleanup): Likewise.
2989         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2990         Make arguments const.
2991         (restore_command): Update.
2992
2993 2014-07-24  Pedro Alves  <palves@redhat.com>
2994
2995         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2996
2997 2014-07-24  Tom Tromey  <tromey@redhat.com>
2998             Gary Benson  <gbenson@redhat.com>
2999
3000         * nat/linux-ptrace.c (additional_flags): New global.
3001         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3002         additional_flags; don't check GDBSERVER.
3003         (linux_ptrace_set_additional_flags): New function.
3004         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3005         Declare.
3006         * linux-nat.c (_initialize_linux_nat): Call
3007         linux_ptrace_set_additional_flags.
3008
3009 2014-07-24  Tom Tromey  <tromey@redhat.com>
3010
3011         * make-target-delegates (munge_type, write_debugmethod): New
3012         functions.
3013         (debug_names): New global.
3014         ($TARGET_DEBUG_PRINTER): New global.
3015         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3016         name.
3017         Write debug methods.  Generate init_debug_target.
3018         * target-debug.h: New file.
3019         * target-delegates.c: Rebuild.
3020         * target.c: Include target-debug.h.
3021         (debug_target): Hoist definition.
3022         (target_kill, target_get_section_table, target_memory_map)
3023         (target_flash_erase, target_flash_done, target_detach)
3024         (target_disconnect, target_wait, target_resume)
3025         (target_pass_signals, target_program_signals, target_follow_fork)
3026         (target_mourn_inferior, target_search_memory)
3027         (target_thread_address_space, target_close)
3028         (target_find_new_threads, target_core_of_thread)
3029         (target_verify_memory, target_insert_mask_watchpoint)
3030         (target_remove_mask_watchpoint): Remove targetdebug code.
3031         (debug_to_post_attach, debug_to_prepare_to_store)
3032         (debug_to_files_info, debug_to_insert_breakpoint)
3033         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3034         (debug_to_region_ok_for_hw_watchpoint)
3035         (debug_to_can_accel_watchpoint_condition)
3036         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3037         (debug_to_watchpoint_addr_within_range)
3038         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3039         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3040         (debug_to_terminal_init, debug_to_terminal_inferior)
3041         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3042         (debug_to_terminal_save_ours, debug_to_terminal_info)
3043         (debug_to_load, debug_to_post_startup_inferior)
3044         (debug_to_insert_fork_catchpoint)
3045         (debug_to_remove_fork_catchpoint)
3046         (debug_to_insert_vfork_catchpoint)
3047         (debug_to_remove_vfork_catchpoint)
3048         (debug_to_insert_exec_catchpoint)
3049         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3050         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3051         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3052         (setup_target_debug): Call init_debug_target.
3053         * target.h (TARGET_DEBUG_PRINTER): New macro.
3054         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3055         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3056
3057 2014-07-24  Gary Benson  <gbenson@redhat.com>
3058
3059         * exceptions.h (throw_vfatal): Renamed to...
3060         (throw_vquit): New declaration.
3061         (throw_quit): Likewise.
3062         * exceptions.c (throw_vfatal): Renamed to...
3063         (throw_vquit): New function.
3064         (throw_quit): Likewise.
3065         (throw_error): Call throw_verror rather than throw_it.
3066         * utils.h (vfatal): Removed.
3067         (fatal): Likewise.
3068         * utils.c (vfatal): Removed.
3069         (fatal): Likewise.
3070         (internal_verror): Replaced call to fatal with call to throw_quit.
3071         (quit): Replaced calls to fatal with calls to throw_quit.
3072
3073 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3074
3075         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3076         target_read_code.
3077
3078 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3079
3080         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3081         less than zero in conditional expression.
3082
3083 2014-07-23  Tom Tromey  <tromey@redhat.com>
3084
3085         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3086         ($INTRO_PART): Don't match whitespace.
3087         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3088         argument matching.
3089         ($METHOD): Add $METHOD_TRAILER.
3090         (trim): Rewrite.
3091         (scan_target_h): New sub.
3092         Change main loop not to collect state.
3093         * target-delegates.c: Rebuild.
3094
3095 2014-07-23  Gary Benson  <gbenson@redhat.com>
3096
3097         * cp-support.c (gdb_demangle): Fix build on systems without
3098         sigaltstack.
3099
3100 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3101
3102         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3103         for reference entry value target data value.
3104
3105 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3106
3107         * stack.c (read_frame_arg): Verify value_optimized_out before calling
3108         value_available_contents_eq.
3109
3110 2014-07-22  Pedro Alves  <palves@redhat.com>
3111
3112         * value.c (allocate_optimized_out_value): Don't mark value as
3113         non-lazy.
3114
3115 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
3116
3117         * MAINTAINERS (Write After Approval): Update my email address.
3118
3119 2014-07-20  Doug Evans  <dje@google.com>
3120
3121         PR server/17147
3122         * remote.c (putpkt_binary): Add text to error message.
3123
3124 2014-07-20  Yao Qi  <yao@codesourcery.com>
3125
3126         * eval.c: Remove "Chill" from comments.
3127         * gdbtypes.h: Likewise.
3128         * symtab.h: Likewise.
3129
3130 2014-07-20  Yao Qi  <yao@codesourcery.com>
3131
3132         * std-operator.def: Update comments to TERNOP_SLICE.
3133
3134 2014-07-20  Yao Qi  <yao@codesourcery.com>
3135
3136         * std-operator.def: Remove BINOP_RANGE.
3137         * breakpoint.c (watchpoint_exp_is_const): Update.
3138         * expprint.c (dump_subexp_body_standard): Likewise.
3139         * eval.c (init_array_element): Remove dead code.
3140         (evaluate_subexp_standard): Likewise.
3141
3142 2014-07-20  Yao Qi  <yao@codesourcery.com>
3143
3144         * std-operator.def: Remove BINOP_IN.
3145         * breakpoint.c (watchpoint_exp_is_const): Update.
3146         * eval.c (evaluate_subexp_standard): Likewise.
3147         * expprint.c (dump_subexp_body_standard): Likewise.
3148
3149 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
3150
3151         * microblaze-tdep.c (microblaze_register_names): Add
3152         the rshr and rslr register names.
3153         (microblaze_gdbarch_init): Use of tdesc_has_registers.
3154         Use of tdesc_find_feature. Use of tdesc_data_alloc.
3155         Use of tdesc_numbered_register. Use of
3156         microblaze_register_g_packet_guesses. Use of
3157         tdesc_use_registers. Use of set_gdbarch_register_type.
3158         (microblaze_register_g_packet_guesses): New.
3159         * microblaze-tdep.h (microblaze_reg_num): Add
3160         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3161         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3162         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3163         * features/microblaze-core.xml: New file.
3164         * features/microblaze-stack-protect.xml: New file.
3165         * features/microblaze-with-stack-protect.c: New file.
3166         * features/microblaze-with-stack-protect.xml: New file.
3167         * features/microblaze.xml: New file.
3168         * features/microblaze.c: New file.
3169         * features/Makefile (microblaze-with-stack-protect): Add
3170         microblaze-with-stack-protect microblaze and microblaze-expedite.
3171         * regformats/microblaze-with-stack-protect.dat: New file.
3172         * regformats/microblaze.dat: New file.
3173         * doc/gdb.texinfo (MicroBlaze Features): Added.
3174
3175 2014-07-18  Tom Tromey  <tromey@redhat.com>
3176
3177         * exec.c (exec_ops): Now static.
3178         * exec.h (exec_ops): Don't declare.
3179
3180 2014-07-18  Tom Tromey  <tromey@redhat.com>
3181
3182         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3183         to find_target_beneath.
3184         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3185         find_target_beneath.
3186         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3187
3188 2014-07-18  Tom Tromey  <tromey@redhat.com>
3189
3190         PR gdb/17130:
3191         * utils.c (quit): Use target_supports_terminal_ours.
3192         * target.h (target_supports_terminal_ours): Declare.
3193         * target.c (target_supports_delete_record): Don't check
3194         to_delete_record against NULL.
3195         (target_supports_terminal_ours): New function.
3196
3197 2014-07-18  Tom Tromey  <tromey@redhat.com>
3198
3199         PR gdb/17130:
3200         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3201         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3202         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3203         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3204         * windows-nat.c (windows_xfer_partial): Always delegate.
3205         * record-btrace.c (record_btrace_xfer_partial): Simplify
3206         delegation.
3207         (record_btrace_fetch_registers, record_btrace_store_registers)
3208         (record_btrace_prepare_to_store, record_btrace_resume)
3209         (record_btrace_wait, record_btrace_find_new_threads)
3210         (record_btrace_thread_alive): Likewise.
3211         * procfs.c (procfs_xfer_partial): Always delegate.
3212         * corelow.c (core_xfer_partial): Always delegate.
3213         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3214
3215 2014-07-18  Tom Tromey  <tromey@redhat.com>
3216
3217         * exec.c (exec_make_note_section): Move earlier.
3218
3219 2014-07-17  Doug Evans  <dje@google.com>
3220
3221         PR gdb/17170
3222         * maint.c (count_symtabs_and_blocks): Handle NULL
3223         current_program_space.
3224         (report_command_stats): Check global enabled flag in addition to
3225         recorded enabled flag.
3226         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3227
3228 2014-07-16  Pedro Alves  <palves@redhat.com>
3229
3230         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3231
3232 2014-07-16  Tom Tromey  <tromey@redhat.com>
3233
3234         * target.h (struct target_ops) <to_delete_record>: Reformat
3235         comment.
3236
3237 2014-07-16  Tom Tromey  <tromey@redhat.com>
3238
3239         * target-delegates.c: Rebuild.
3240
3241 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3242
3243         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3244         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3245         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3246         (avr_pointer_to_address): Likewise.
3247         (avr_address_class_type_flags): New function.
3248         (avr_address_class_type_flags_to_name): Likewise.
3249         (avr_address_class_name_to_type_flags): Likewise.
3250         (avr_gdbarch_init): Set address_class_type_flags,
3251         address_class_type_flags_to_name and
3252         address_class_name_to_type_flags.
3253
3254 2014-07-15  Pedro Alves  <palves@redhat.com>
3255
3256         * linux-nat.c (kill_callback): Save errno and work with saved
3257         copy.
3258
3259 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3260
3261         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3262
3263 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3264
3265         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3266         breakpoint support correctly.
3267
3268 2014-07-14  Pedro Alves  <palves@redhat.com>
3269
3270         * utils.c (prompt_for_continue): Call target_terminal_ours.
3271
3272 2014-07-14  Pedro Alves  <palves@redhat.com>
3273
3274         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3275         catch_errors.  Don't re-enable stdin or notify observers where,
3276         and rethrow error.
3277         (fetch_inferior_event_wrapper): Delete.
3278
3279 2014-07-14  Pedro Alves  <palves@redhat.com>
3280
3281         PR gdb/17072
3282         * top.c: Include "inf-loop.h".
3283         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3284         field.
3285         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3286         was async before.
3287         (gdb_readline_wrapper): Store whether the target is async, and
3288         make it sync.
3289
3290 2014-07-14  Pedro Alves  <palves@redhat.com>
3291
3292         PR gdb/17072
3293         * top.c (gdb_readline_wrapper_line): Tweak comment.
3294         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3295         the input handler callback.
3296
3297 2014-07-14  Pedro Alves  <palves@redhat.com>
3298
3299         PR gdb/17072
3300         * main.c: Include event-top.h.
3301         (handle_command_errors): New function.
3302         (catch_command_errors, catch_command_errors_const): Use it.
3303
3304 2014-07-14  Pedro Alves  <palves@redhat.com>
3305
3306         * exceptions.c (catch_command_errors, catch_command_errors_const):
3307         Moved to main.c.
3308         * exceptions.h (catch_command_errors_ftype)
3309         (catch_command_errors_const_ftype): Moved to main.c.
3310         (catch_command_errors, catch_command_errors_const): Delete
3311         declarations.
3312         * main.c (catch_command_errors_ftype)
3313         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3314         (catch_command_errors, catch_command_errors_const)): Moved here
3315         from exceptions.c and make static.
3316
3317 2014-07-14  Pedro Alves  <palves@redhat.com>
3318
3319         * exceptions.c (print_any_exception): Delete.
3320         (catch_exceptions_with_msg): Use exception_print instead of
3321         print_any_exception.
3322         (catch_errors): Use exception_fprintf instead of
3323         print_any_exception.
3324         (catch_command_errors, catch_command_errors_const): Use
3325         exception_print instead of print_any_exception.
3326
3327 2014-07-14  Pedro Alves  <palves@redhat.com>
3328
3329         * infcall.c (run_inferior_call): Set 'sync_execution' while
3330         running the inferior call.
3331
3332 2014-07-14  Pedro Alves  <palves@redhat.com>
3333
3334         * value.c (value_contents_equal): Delete function.
3335         * value.h (value_contents_equal): Delete declaration.
3336
3337 2014-07-14  Tom Tromey  <tromey@redhat.com>
3338
3339         PR exp/17106:
3340         * gdbtypes.c (is_dynamic_type_internal): New function, from
3341         is_dynamic_type.
3342         (is_dynamic_type): Rewrite.
3343         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3344         (resolve_dynamic_struct): Likewise.
3345         (resolve_dynamic_type_internal): New function, from
3346         resolve_dynamic_type.
3347         (resolve_dynamic_type): Rewrite.
3348
3349 2014-07-14  Tom Tromey  <tromey@redhat.com>
3350
3351         * target.c (target_require_runnable): Also check record_stratum.
3352         Update comment.
3353
3354 2014-07-11  Yao Qi  <yao@codesourcery.com>
3355
3356         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3357         thumb_instruction_restores_sp return true.
3358
3359 2014-07-11  Yao Qi  <yao@codesourcery.com>
3360
3361         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3362         (thumb_in_function_epilogue_p): Call
3363         thumb_instruction_restores_sp.
3364
3365 2014-07-11  Yao Qi  <yao@codesourcery.com>
3366
3367         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3368         'add sp, #imm'.
3369         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3370
3371 2014-07-11  Gary Benson  <gbenson@redhat.com>
3372
3373         * amd64-linux-nat.c (gdbcore.h): Remove include.
3374         (regset.h): Likewise.
3375         (nat/linux-btrace.h): Likewise.
3376         (btrace.h): Likewise.
3377         (gdb_assert.h): Likewise.
3378         (string.h): Likewise.
3379         (sys/uio.h): Likewise.
3380         (sys/debugreg.h): Likewise.
3381         (sys/syscall.h): Likewise.
3382         (sys/procfs.h): Likewise.
3383         (sys/user.h): Likewise.
3384         (asm/ptrace.h): Likewise.
3385         (i386-nat.h): Likewise.
3386         * i386-linux-nat.c (i386-nat.h): Likewise.
3387         (regset.h): Likewise.
3388         (target.h): Likewise.
3389         (linux-nat.h): Likewise.
3390         (nat/linux-btrace.h): Likewise.
3391         (btrace.h): Likewise.
3392         (gdb_assert.h): Likewise.
3393         (string.h): Likewise.
3394         (sys/uio.h): Likewise.
3395         (sys/user.h): Likewise.
3396         (sys/procfs.h): Likewise.
3397         (sys/reg.h): Likewise.
3398         (sys/debugreg.h): Likewise.
3399         (ORIG_EAX): Remove definition.
3400
3401 2014-07-11  Gary Benson  <gbenson@redhat.com>
3402
3403         * i386-linux-nat.h: New file.
3404         * x86-linux-nat.h: Likewise.
3405         * x86-linux-nat.c: Likewise.
3406         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3407         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3408         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3409         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3410         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3411         (PTRACE_SETREGSET): Likewise.
3412         (arch_lwp_info): Now in x86-linux-nat.c.
3413         (have_ptrace_getregset): Now in x86-linux-nat.h.
3414         (x86_linux_dr_get): Now in x86-linux-nat.c.
3415         (x86_linux_dr_set): Likewise.
3416         (x86_linux_dr_get_addr): Likewise.
3417         (x86_linux_dr_get_control): Likewise.
3418         (x86_linux_dr_get_status): Likewise.
3419         (update_debug_registers_callback): Likewise.
3420         (x86_linux_dr_set_control): Likewise.
3421         (x86_linux_dr_set_addr): Likewise.
3422         (x86_linux_prepare_to_resume): Likewise.
3423         (x86_linux_new_thread): Likewise.
3424         (x86_linux_new_fork): Likewise.
3425         (x86_linux_get_thread_area): Likewise.
3426         (super_post_startup_inferior): Likewise.
3427         (x86_linux_child_post_startup_inferior): Likewise.
3428         (AMD64_LINUX_USER64_CS): Likewise.
3429         (AMD64_LINUX_X32_DS): Likewise.
3430         (x86_linux_read_description): Likewise.
3431         (x86_linux_enable_btrace): Likewise.
3432         (x86_linux_disable_btrace): Likewise.
3433         (x86_linux_teardown_btrace): Likewise.
3434         (x86_linux_read_btrace): Likewise.
3435         (x86_linux_create_target): Likewise.
3436         (x86_linux_add_target): Likewise.
3437         * i386-linux-nat.c (x86-linux-nat.h): New include.
3438         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3439         (PTRACE_SETREGSET): Likewise.
3440         (arch_lwp_info): Now in x86-linux-nat.c.
3441         (have_ptrace_getregset): Now in x86-linux-nat.h.
3442         (x86_linux_dr_get): Now in x86-linux-nat.c.
3443         (x86_linux_dr_set): Likewise.
3444         (x86_linux_dr_get_addr): Likewise.
3445         (x86_linux_dr_get_control): Likewise.
3446         (x86_linux_dr_get_status): Likewise.
3447         (update_debug_registers_callback): Likewise.
3448         (x86_linux_dr_set_control): Likewise.
3449         (x86_linux_dr_set_addr): Likewise.
3450         (x86_linux_prepare_to_resume): Likewise.
3451         (x86_linux_new_thread): Likewise.
3452         (x86_linux_new_fork): Likewise.
3453         (x86_linux_get_thread_area): Likewise.
3454         (super_post_startup_inferior): Likewise.
3455         (x86_linux_child_post_startup_inferior): Likewise.
3456         (AMD64_LINUX_USER64_CS): Likewise.
3457         (AMD64_LINUX_X32_DS): Likewise.
3458         (x86_linux_read_description): Likewise.
3459         (x86_linux_enable_btrace): Likewise.
3460         (x86_linux_disable_btrace): Likewise.
3461         (x86_linux_teardown_btrace): Likewise.
3462         (x86_linux_read_btrace): Likewise.
3463         (x86_linux_create_target): Likewise.
3464         (x86_linux_add_target): Likewise.
3465
3466 2014-07-11  Gary Benson  <gbenson@redhat.com>
3467
3468         * amd64-linux-nat.c: Comment and whitespace changes.
3469         * i386-linux-nat.c: Comment and whitespace changes.
3470
3471 2014-07-11  Gary Benson  <gbenson@redhat.com>
3472
3473         * amd64-linux-nat.c (x86_linux_create_target): New function.
3474         (x86_linux_add_target): Likewise.
3475         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3476         * i386-linux-nat.c (x86_linux_create_target): New function.
3477         (x86_linux_add_target): Likewise.
3478         (_initialize_i386_linux_nat): Delegate to the above new functions.
3479
3480 2014-07-11  Gary Benson  <gbenson@redhat.com>
3481
3482         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3483         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3484         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3485         (ps_get_thread_area): Delegate to the above.
3486
3487 2014-07-11  Gary Benson  <gbenson@redhat.com>
3488
3489         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3490         x86_linux_read_description.  All uses updated.  amd64-specific
3491         code conditionalized.  Conditionalized i386-specific code added.
3492         Redundant cast removed.
3493         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3494         x86_linux_read_description.  All uses updated.  i386-specific
3495         code conditionalized.  Conditionalized amd64-specific code added.
3496         One sizeof replaced with the actual type it is describing.
3497
3498 2014-07-11  Gary Benson  <gbenson@redhat.com>
3499
3500         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3501         x86_linux_dr_get.  All uses updated.
3502         (amd64_linux_dr_set): Renamed to
3503         x86_linux_dr_set.  All uses updated.
3504         (amd64_linux_dr_get_addr): Renamed to
3505         x86_linux_dr_get_addr.  All uses updated.
3506         (amd64_linux_dr_get_control): Renamed to
3507         x86_linux_dr_get_control.  All uses updated.
3508         (amd64_linux_dr_get_status): Renamed to
3509         x86_linux_dr_get_status.  All uses updated.
3510         (amd64_linux_dr_set_control): Renamed to
3511         x86_linux_dr_set_control.  All uses updated.
3512         (amd64_linux_dr_set_addr): Renamed to
3513         x86_linux_dr_set_addr.  All uses updated.
3514         (amd64_linux_prepare_to_resume): Renamed to
3515         x86_linux_prepare_to_resume.  All uses updated.
3516         (amd64_linux_new_thread): Renamed to
3517         x86_linux_new_thread.  All uses updated.
3518         (amd64_linux_new_fork): Renamed to
3519         x86_linux_new_fork.  All uses updated.
3520         (amd64_linux_child_post_startup_inferior): Renamed to
3521         x86_linux_child_post_startup_inferior.  All uses updated.
3522         (amd64_linux_enable_btrace): Renamed to
3523         x86_linux_enable_btrace.  All uses updated.
3524         (amd64_linux_disable_btrace): Renamed to
3525         x86_linux_disable_btrace.  All uses updated.
3526         (amd64_linux_teardown_btrace): Renamed to
3527         x86_linux_teardown_btrace.  All uses updated.
3528         (amd64_linux_read_btrace): Renamed to
3529         x86_linux_read_btrace.  All uses updated.
3530         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3531         x86_linux_dr_get.  All uses updated.
3532         (i386_linux_dr_set): Renamed to
3533         x86_linux_dr_set.  All uses updated.
3534         (i386_linux_dr_get_addr): Renamed to
3535         x86_linux_dr_get_addr.  All uses updated.
3536         (i386_linux_dr_get_control): Renamed to
3537         x86_linux_dr_get_control.  All uses updated.
3538         (i386_linux_dr_get_status): Renamed to
3539         x86_linux_dr_get_status.  All uses updated.
3540         (i386_linux_dr_set_control): Renamed to
3541         x86_linux_dr_set_control.  All uses updated.
3542         (i386_linux_dr_set_addr): Renamed to
3543         x86_linux_dr_set_addr.  All uses updated.
3544         (i386_linux_prepare_to_resume): Renamed to
3545         x86_linux_prepare_to_resume.  All uses updated.
3546         (i386_linux_new_thread): Renamed to
3547         x86_linux_new_thread.  All uses updated.
3548         (i386_linux_new_fork): Renamed to
3549         x86_linux_new_fork.  All uses updated.
3550         (i386_linux_child_post_startup_inferior): Renamed to
3551         x86_linux_child_post_startup_inferior.  All uses updated.
3552         (i386_linux_enable_btrace): Renamed to
3553         x86_linux_enable_btrace.  All uses updated.
3554         (i386_linux_disable_btrace): Renamed to
3555         x86_linux_disable_btrace.  All uses updated.
3556         (i386_linux_teardown_btrace): Renamed to
3557         x86_linux_teardown_btrace.  All uses updated.
3558         (i386_linux_read_btrace): Renamed to
3559         x86_linux_read_btrace.  All uses updated.
3560
3561 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3562
3563         * remote.c (extended_remote_post_attach): New function.
3564         (init_extended_remote_ops): Install it as to_post_attach method.
3565
3566 2014-07-09  Pedro Alves  <palves@redhat.com>
3567
3568         * infcmd.c (attach_command_post_wait): Don't call
3569         target_terminal_inferior here.
3570         (attach_command): Call it here instead.
3571
3572 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3573
3574         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3575         field.
3576         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3577         from varobj.c, with additional checks.
3578         (c_varobj_ops): Fill in is_path_expr_parent field.
3579         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3580         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3581         field.
3582         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3583         ops method.
3584         (varobj_default_is_path_expr_parent): New function.
3585         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3586         (varobj_default_is_path_expr_parent): Declare new function.
3587
3588 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3589
3590         * infcmd.c (finish_backward): Turn internal error into normal error.
3591
3592 2014-07-07  Pedro Alves  <palves@redhat.com>
3593
3594         PR gdb/17096
3595         * remote.c (async_handle_remote_sigint)
3596         (async_handle_remote_sigint_twice): Call
3597         gdb_call_async_signal_handler instead of
3598         mark_async_signal_handler.
3599
3600 2014-07-07  Tom Tromey  <tromey@redhat.com>
3601
3602         * target-delegates.c: Rebuild.
3603         * target.c (target_info_record): Remove.
3604         * record.c (info_record_command): Unconditionally call
3605         to_info_record.
3606         * target.h (struct target_ops) <to_info_record>: Use
3607         TARGET_DEFAULT_IGNORE.
3608         (target_info_record): Remove.
3609
3610 2014-07-07  Tom Tromey  <tromey@redhat.com>
3611
3612         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3613         TARGET_DEFAULT_NORETURN.
3614         * target.c (generic_tls_error): New function.
3615         (target_translate_tls_address): Don't search target stack.
3616         * target-delegates.c: Rebuild.
3617         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3618         stack.
3619         * linux-thread-db.c (thread_db_get_thread_local_address):
3620         Unconditionally call beneath target.
3621
3622 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3623
3624         * cli/cli-logging.c (pop_output_files): Assign targerr to
3625         gdb_stdtargerr.
3626
3627 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3628
3629         * MAINTAINERS (Write After Approval): Update my email address.
3630
3631 2014-07-02  Gary Benson  <gbenson@redhat.com>
3632
3633         * proc-service.c (ps_xfer_memory): Update comment.
3634         (ps_pstop): Remove unused function.
3635         (ps_pcontinue): Likewise.
3636         (ps_lstop): Likewise.
3637         (ps_lcontinue): Likewise.
3638         (ps_lgetxregsize): Likewise.
3639         (ps_lgetxregs): Likewise.
3640         (ps_lsetxregs): Likewise.
3641         (ps_plog): Likewise.
3642         (ps_ptread): Likewise.
3643         (ps_ptwrite): Likewise.
3644
3645 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3646
3647         * dwarf2read.c (add_array_cv_type): New function.
3648         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3649         (read_tag_volatile_type): Likewise.
3650
3651 2014-07-01  Tom Tromey  <tromey@redhat.com>
3652
3653         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3654         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3655         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3656         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3657         * command.h (cmd_cfunc_ftype): Move earlier.
3658         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3659         (add_com, add_info): Use cmd_cfunc_ftype.
3660
3661 2014-06-30  Tom Tromey  <tromey@redhat.com>
3662
3663         * symtab.c (operator_chars): Make parameters and return type
3664         const.
3665         (file_matches): Make "files" const.
3666         (struct search_symbols_data) <files>: Now const.
3667         (search_symbols): Make "regexp" and "files" parameters const.
3668         Update.
3669         (symtab_symbol_info): Remove cast.
3670         (rbreak_command): Update.
3671         * symtab.h (search_symbols): Update.
3672
3673 2014-06-27  Yao Qi  <yao@codesourcery.com>
3674
3675         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3676         Change parameter type to 'struct thread_info *'.  Caller
3677         updated.
3678         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3679         Update declaration.
3680         * dummy-frame.c (struct dummy_frame_id): New.
3681         (dummy_frame_id_eq): New function.
3682         (struct dummy_frame) <id>: Change its type to 'struct
3683         dummy_frame_id'.
3684         (dummy_frame_push): Add parameter ptid and save it in
3685         dummy_frame_id.
3686         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3687         inferior_ptid.
3688         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3689         to inferior_ptid.
3690         (lookup_dummy_frame): Change parameter type to 'struct
3691         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3692         instead of frame_id_eq.
3693         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3694         Update comments.  Compose dummy_frame_id and pass it to
3695         lookup_dummy_frame.
3696         (dummy_frame_discard): Add parameter ptid.
3697         (dummy_frame_sniffer): Compose dummy_frame_id and call
3698         dummy_frame_id_eq instead of frame_id_eq.
3699         (fprint_dummy_frames): Print ptid.
3700         * dummy-frame.h: Remove comments.
3701         (dummy_frame_push): Add ptid in declaration.
3702         (dummy_frame_pop, dummy_frame_discard): Likewise.
3703
3704 2014-06-26  Tom Tromey  <tromey@redhat.com>
3705
3706         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3707         * command.h (error_no_arg): Update.
3708
3709 2014-06-26  Tom Tromey  <tromey@redhat.com>
3710
3711         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3712         (do_show_command): Make "arg" const.
3713         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3714
3715 2014-06-26  Tom Tromey  <tromey@redhat.com>
3716
3717         * record-full.c (record_full_get_bookmark): Make "args" const.
3718         (record_full_goto_bookmark): Make "raw_bookmark" const.
3719         * record.c (record_goto): New function.
3720         (cmd_record_goto): Use it.  Now static.
3721         * record.h (record_goto): Declare.
3722         (cmd_record_goto): Remove declaration.
3723         * target-delegates.c: Rebuild.
3724         * target.h (struct target_ops) <to_get_bookmark,
3725         to_goto_bookmark>: Make parameter const.
3726
3727 2014-06-26  Tom Tromey  <tromey@redhat.com>
3728
3729         * defs.h (generic_load): Update.
3730         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3731         * monitor.c (monitor_load): Make "args" const.
3732         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3733         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3734         const.
3735         (mips_load): Make "file" const.
3736         * remote-sim.c (gdbsim_load): Make "args" const.
3737         * remote.c (remote_load): Make "name" const.
3738         * symfile.c (generic_load): Make "args" const.
3739         * target-delegates.c: Rebuild.
3740         * target.c (target_load): Make "arg" const.
3741         (debug_to_load): Make "args" const.
3742         * target.h (struct target_ops) <to_load>: Make parameter const.
3743         (target_load): Update.
3744
3745 2014-06-26  Tom Tromey  <tromey@redhat.com>
3746
3747         PR symtab/16902:
3748         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3749         (dwarf2_physname, read_partial_die)
3750         (guess_partial_die_structure_name, fixup_partial_die)
3751         (guess_full_die_structure_name, anonymous_struct_prefix)
3752         (dwarf2_name): Use per-BFD obstack.
3753
3754 2014-06-26  Yao Qi  <yao@codesourcery.com>
3755
3756         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3757         dummyframe and this_id into inner block below.
3758
3759 2014-06-26  Yao Qi  <yao@codesourcery.com>
3760
3761         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3762         with "signal_pass[0]" in the initialization of signal_pass.
3763
3764 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3765
3766         * record-btrace.c (record_btrace_generating_corefile)
3767         (record_btrace_prepare_to_generate_core)
3768         (record_btrace_done_generating_core): New.
3769         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3770         (record_btrace_store_registers, record_btrace_prepare_to_store):
3771         Forward request when generating a core file.
3772         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3773         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3774         to_done_generating_core.
3775
3776 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3777
3778         * target.h (target_ops) <to_prepare_to_generate_core>
3779         <to_done_generating_core>: New.
3780         (target_prepare_to_generate_core, target_done_generating_core): New.
3781         * target.c (target_prepare_to_generate_core)
3782         (target_done_generating_core): New.
3783         * target-delegates.c: Regenerate.
3784         * gcore.c: (write_gcore_file): Rename to ...
3785         (write_gcore_file_1): ...this.
3786         (write_gcore_file): Call target_prepare_to_generate_core
3787         and target_done_generating_core.
3788
3789 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3790
3791         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3792         * gcore.c (write_gcore_file): Free memory returned from
3793         make_corefile_notes.
3794         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3795         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3796
3797 2014-06-24  Yao Qi  <yao@codesourcery.com>
3798
3799         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3800         (arm_linux_init_abi): Set skip_trampoline_code with
3801         gdbarch_skip_trampoline_code instead of
3802         find_solib_trampoline_target.
3803
3804 2014-06-24  Yao Qi  <yao@codesourcery.com>
3805
3806         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3807         arm_skip_bx_reg returns non-zero.
3808
3809 2014-06-24  Yao Qi  <yao@codesourcery.com>
3810
3811         * arm-tdep.c (arm_skip_bx_reg): New function.
3812         (arm_skip_stub): Call arm_skip_bx_reg.
3813
3814 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3815
3816         * MAINTAINERS: Add myself as write-after-approval maintainer.
3817
3818 2014-06-23  Pedro Alves  <palves@redhat.com>
3819
3820         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3821         DR_CONTROL before setting DR0..DR3.
3822         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3823         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3824         bits of DR_CONTROL related to the debug register slot being
3825         disabled.  If all slots are vacant, clear local slowdown as well,
3826         and assert DR_CONTROL is 0.
3827
3828 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3829
3830         * python/lib/gdb/command/xmethods.py
3831         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3832         current progspace only if the string "progspace" matches LOCUS_RE.
3833
3834 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3835
3836         Fix --with-system-readline with readline-6.3 patch 5.
3837         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3838         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3839         types.
3840
3841 2014-06-20  Tom Tromey  <tromey@redhat.com>
3842
3843         * dwarf2read.c (dw2_get_real_path): Use correct type in
3844         OBSTACK_CALLOC.
3845         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3846
3847 2014-06-20  Gary Benson  <gbenson@redhat.com>
3848
3849         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3850         * common/glibc_thread_db.h: Likewise.
3851         * common/i386-cpuid.h: Likewise.
3852         * common/i386-gcc-cpuid.h: Likewise.
3853         * common/linux-btrace.h: Likewise.
3854         * common/linux-osdata.h: Likewise.
3855         * common/linux-procfs.h: Likewise.
3856         * common/linux-ptrace.h: Likewise.
3857         * common/mips-linux-watch.h: Likewise.
3858         * common/linux-btrace.c: Moved to nat.
3859         * common/linux-osdata.c: Likewise.
3860         * common/linux-procfs.c: Likewise.
3861         * common/linux-ptrace.c: Likewise.
3862         * common/mips-linux-watch.c: Likewise.
3863         * nat/gdb_thread_db.h: Moved from common.
3864         * nat/glibc_thread_db.h: Likewise.
3865         * nat/i386-cpuid.h: Likewise.
3866         * nat/i386-gcc-cpuid.h: Likewise.
3867         * nat/linux-btrace.c: Likewise.
3868         * nat/linux-btrace.h: Likewise.
3869         * nat/linux-osdata.c: Likewise.
3870         * nat/linux-osdata.h: Likewise.
3871         * nat/linux-procfs.c: Likewise.
3872         * nat/linux-procfs.h: Likewise.
3873         * nat/linux-ptrace.c: Likewise.
3874         * nat/linux-ptrace.h: Likewise.
3875         * nat/mips-linux-watch.c: Likewise.
3876         * nat/mips-linux-watch.h: Likewise.
3877         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3878         (object file files): Reordered.
3879         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3880         of glibc_thread_db.h.
3881
3882 2014-06-20  Gary Benson  <gbenson@redhat.com>
3883
3884         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3885         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3886         (i386_dr_low): Likewise.
3887         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3888         (i386_dr_low_set_addr): Likewise.
3889         (i386_dr_low_get_addr): Likewise.
3890         (i386_dr_low_can_set_control): Likewise.
3891         (i386_dr_low_set_control): Likewise.
3892         (i386_dr_low_get_control): Likewise.
3893         (i386_dr_low_get_status): Likewise.
3894         (i386_get_debug_register_length): Likewise.
3895         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3896         (i386_dr_low): Likewise.
3897         * nat/i386-dregs.c (i386-low.h): Remove include.
3898         (i386-nat.h): Likewise.
3899         (nat/i386-dregs.h): New include.
3900         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3901         (i386_dr_low_set_addr): Likewise.
3902         (i386_dr_low_get_addr): Likewise.
3903         (i386_dr_low_can_set_control): Likewise.
3904         (i386_dr_low_set_control): Likewise.
3905         (i386_dr_low_get_control): Likewise.
3906         (i386_dr_low_get_status): Likewise.
3907         (i386_get_debug_register_length): Likewise.
3908         (debug_hw_points): Likewise.
3909
3910 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3911
3912         * Makefile.in (SFILES): Add d-exp.y.
3913         (YYFILES): Add d-exp.c.
3914         (YYOBJ): Add d-exp.o.
3915         (local-maintainer-clean): Delete d-exp.c.
3916         * d-exp.y: New file.
3917         * d-lang.h (d_parse): New declaration.
3918         (d_error): New declaration.
3919         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3920         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3921         PREC_ORDER operators.
3922         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3923
3924 2014-06-19  Yao Qi  <yao@codesourcery.com>
3925
3926         * gdbthread.h (any_running): Remove the declaration.
3927         * thread.c (any_running): Remove.
3928
3929 2014-06-19  Yao Qi  <yao@codesourcery.com>
3930
3931         * gdbthread.h (struct thread_info) <state>: Change its type to
3932         'enum thread_state'.  Update comments.
3933
3934 2014-06-19  Pedro Alves  <palves@redhat.com>
3935
3936         * gdbthread.h (ALL_THREADS): Delete.
3937         (ALL_NON_EXITED_THREADS): New macro.
3938         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3939         instead of ALL_THREADS.
3940         * infrun.c (find_thread_needs_step_over)
3941         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3942         instead of ALL_THREADS.
3943         * record-btrace.c (record_btrace_open)
3944         (record_btrace_stop_recording, record_btrace_close)
3945         (record_btrace_is_replaying, record_btrace_resume)
3946         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3947         * remote.c (append_pending_thread_resumptions): Likewise.
3948         * thread.c (thread_apply_all_command): Likewise.
3949
3950 2014-06-19  Gary Benson  <gbenson@redhat.com>
3951
3952         * i386-nat.c (i386_stopped_by_watchpoint):
3953         Use i386_dr_stopped_by_watchpoint.
3954         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3955         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3956
3957 2014-06-19  Gary Benson  <gbenson@redhat.com>
3958
3959         * nat/i386-dregs.c: New file.
3960         * Makefile.in (i386-dregs.o): New rule.
3961         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3962         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3963         * config/i386/darwin.mh (NATDEPFILES): Likewise.
3964         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3965         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3966         * config/i386/go32.mh (NATDEPFILES): Likewise.
3967         * config/i386/linux.mh (NATDEPFILES): Likewise.
3968         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3969         * config/i386/mingw.mh (NATDEPFILES): Likewise.
3970         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3971         * i386-nat.h (debug_hw_points): New declaration.
3972         * i386-nat.c (breakpoint.h): Remove include.
3973         (command.h): Likewise.
3974         (target.h): Likewise.
3975         (gdb_assert.h): Likewise.
3976         (debug_hw_points): Made nonstatic.
3977         (debug_printf): Now in i386-dregs.c.
3978         (TARGET_HAS_DR_LEN_8): Likewise.
3979         (DR_CONTROL_SHIFT): Likewise.
3980         (DR_CONTROL_SIZE): Likewise.
3981         (DR_RW_EXECUTE): Likewise.
3982         (DR_RW_WRITE): Likewise.
3983         (DR_RW_READ): Likewise.
3984         (DR_RW_IORW): Likewise.
3985         (DR_LEN_1): Likewise.
3986         (DR_LEN_2): Likewise.
3987         (DR_LEN_4): Likewise.
3988         (DR_LEN_8): Likewise.
3989         (DR_LOCAL_ENABLE_SHIFT): Likewise.
3990         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3991         (DR_ENABLE_SIZE): Likewise.
3992         (DR_LOCAL_SLOWDOWN): Likewise.
3993         (DR_GLOBAL_SLOWDOWN): Likewise.
3994         (DR_CONTROL_RESERVED): Likewise.
3995         (I386_DR_CONTROL_MASK): Likewise.
3996         (I386_DR_VACANT): Likewise.
3997         (I386_DR_LOCAL_ENABLE): Likewise.
3998         (I386_DR_GLOBAL_ENABLE): Likewise.
3999         (I386_DR_DISABLE): Likewise.
4000         (I386_DR_SET_RW_LEN): Likewise.
4001         (I386_DR_GET_RW_LEN): Likewise.
4002         (I386_DR_WATCH_HIT): Likewise.
4003         (i386_wp_op_t): Likewise.
4004         (i386_show_dr): Likewise.
4005         (i386_length_and_rw_bits): Likewise.
4006         (i386_insert_aligned_watchpoint): Likewise.
4007         (i386_remove_aligned_watchpoint): Likewise.
4008         (i386_handle_nonaligned_watchpoint): Likewise.
4009         (i386_update_inferior_debug_regs): Likewise.
4010         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4011         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4012         (i386_region_ok_for_watchpoint):
4013         Use i386_dr_region_ok_for_watchpoint.
4014         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4015
4016 2014-06-19  Gary Benson  <gbenson@redhat.com>
4017
4018         * i386-nat.c (i386_insert_hw_breakpoint): Use
4019         i386_insert_watchpoint.
4020         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4021
4022 2014-06-19  Gary Benson  <gbenson@redhat.com>
4023
4024         * i386-nat.c (i386_dr_show): Renamed to
4025         i386_show_dr and made static.  All uses updated.
4026         (i386_dr_length_and_rw_bits): Renamed to
4027         i386_length_and_rw_bits and made static.
4028         All uses updated.
4029         (i386_dr_insert_aligned_watchpoint): Renamed to
4030         i386_insert_aligned_watchpoint and made static.
4031         All uses updated.
4032         (i386_dr_remove_aligned_watchpoint): Renamed to
4033         i386_remove_aligned_watchpoint and made static.
4034         All uses updated.
4035         (i386_dr_update_inferior_debug_regs): Renamed to
4036         i386_update_inferior_debug_regs and made static.
4037         All uses updated.
4038         * nat/i386-dregs.h (i386_dr_show): Removed.
4039         (i386_dr_length_and_rw_bits): Likewise.
4040         (i386_dr_insert_aligned_watchpoint): Likewise.
4041         (i386_dr_remove_aligned_watchpoint): Likewise.
4042         (i386_dr_update_inferior_debug_regs): Likewise.
4043
4044 2014-06-19  Gary Benson  <gbenson@redhat.com>
4045
4046         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4047         * configure: Regenerate.
4048         * config.in: Likewise.
4049         * main.c (signal.h): New include.
4050         (setup_alternate_signal_stack): New function.
4051         (captured_main): Call the above.
4052         * cp-support.c (signal.h): New include.
4053         (catch_demangler_crashes): New flag.
4054         (SIGJMP_BUF): New define.
4055         (SIGSETJMP): Likewise.
4056         (SIGLONGJMP): Likewise.
4057         (gdb_demangle_jmp_buf): New static global.
4058         (gdb_demangle_attempt_core_dump): Likewise.
4059         (gdb_demangle_signal_handler): New function.
4060         (gdb_demangle): If catch_demangler_crashes is set, install the
4061         above signal handler before calling bfd_demangle, and restore
4062         the original signal handler afterwards.  Display the offending
4063         symbol and call demangler_warning the first time a segmentation
4064         fault is caught.
4065         (_initialize_cp_support): New maint set/show command.
4066
4067 2014-06-19  Gary Benson  <gbenson@redhat.com>
4068
4069         * utils.h (resource_limit_kind): New enum.
4070         (can_dump_core): New declaration.
4071         (warn_cant_dump_core): Likewise.
4072         (dump_core): Likewise.
4073         * utils.c (dump_core): Made nonstatic.  Added new
4074         parameter "limit_kind".
4075         (can_dump_core): Made nonstatic. Moved printing code to...
4076         (warn_cant_dump_core): New function.
4077         (can_dump_core_warn): Likewise.
4078         (internal_vproblem): Replace calls to can_dump_core with
4079         calls to can_dump_core_warn.  Supply new argument to each.
4080
4081 2014-06-19  Gary Benson  <gbenson@redhat.com>
4082
4083         * utils.h (demangler_vwarning): New declaration.
4084         (demangler_warning): Likewise.
4085         * utils.c (struct internal_problem)
4086         <user_settable_should_quit>: New field.
4087         <user_settable_should_dump_core>: Likewise
4088         (internal_error_problem): Add values for above new fields.
4089         (internal_warning_problem): Likewise.
4090         (demangler_warning_problem): New static global.
4091         (demangler_vwarning): New function.
4092         (demangler_warning): Likewise.
4093         (add_internal_problem_command): Selectively add commands.
4094         (_initialize_utils): New internal problem command.
4095         * maint.c (maintenance_demangler_warning): New function.
4096         (_initialize_maint_cmds): New command.
4097
4098 2014-06-18  Tom Tromey  <tromey@redhat.com>
4099
4100         * f-valprint.c (info_common_command_for_block): Update.
4101         * symtab.h (struct general_symbol_info) <common_block>: Now
4102         const.
4103
4104 2014-06-18  Tom Tromey  <tromey@redhat.com>
4105
4106         * symtab.h (struct symtab) <blockvector>: Now const.
4107         * ada-lang.c (ada_add_global_exceptions): Update.
4108         * buildsym.c (augment_type_symtab): Update.
4109         * dwarf2read.c (dw2_lookup_symbol): Update.
4110         * jit.c (finalize_symtab): Update.
4111         * jv-lang.c (add_class_symtab_symbol): Update.
4112         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4113         Update.
4114         * objfiles.c (objfile_relocate1): Update.
4115         * psymtab.c (lookup_symbol_aux_psymtabs)
4116         (maintenance_check_psymtabs): Update.
4117         * python/py-symtab.c (stpy_global_block, stpy_static_block):
4118         Update.
4119         * spu-tdep.c (spu_catch_start): Update.
4120         * symmisc.c (dump_symtab_1): Update.
4121         * symtab.c (lookup_global_symbol_from_objfile)
4122         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4123         (basic_lookup_transparent_type_quick)
4124         (basic_lookup_transparent_type, find_pc_sect_symtab)
4125         (find_pc_sect_line, search_symbols): Update.
4126         * block.c (find_block_in_blockvector): Make "bl" const.
4127         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4128         const.
4129         (blockvector_contains_pc): Make "bv" const.
4130         (block_for_pc_sect): Update.
4131         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4132         (blockvector_contains_pc): Update.
4133         * breakpoint.c (resolve_sal_pc): Update.
4134         * inline-frame.c (block_starting_point_at): Update.
4135
4136 2014-06-18  Tom Tromey  <tromey@redhat.com>
4137
4138         * completer.c (complete_line): Make "line_buffer" const.
4139         * completer.h (complete_line): Update.
4140
4141 2014-06-18  Tom Tromey  <tromey@redhat.com>
4142
4143         * symtab.c (add_macro_name): Remove unneeded cast.
4144
4145 2014-06-18  Tom Tromey  <tromey@redhat.com>
4146
4147         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4148         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4149
4150 2014-06-18  Tom Tromey  <tromey@redhat.com>
4151
4152         * probe.c (info_probes_for_ops): Make "arg" const.
4153         * probe.h (info_probes_for_ops): Update.
4154
4155 2014-06-18  Tom Tromey  <tromey@redhat.com>
4156
4157         * varobj.c (varobj_create): Update.
4158         * valops.c (value_of_this): Update.
4159         * tracepoint.c (add_local_symbols, scope_info): Update.
4160         * symtab.h (struct general_symbol_info) <block>: Now const.
4161         * symtab.c (skip_prologue_sal)
4162         (default_make_symbol_completion_list_break_on)
4163         (skip_prologue_using_sal): Update.
4164         * stack.h (iterate_over_block_locals)
4165         (iterate_over_block_local_vars): Update.
4166         * stack.c (print_frame_args): Update.
4167         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4168         parameter const.
4169         (get_selected_block): Make return type const.
4170         * python/py-frame.c (frapy_block): Update.
4171         * python/py-block.c (gdbpy_block_for_pc): Update.
4172         * p-exp.y (%union) <bval>: Now const.
4173         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4174         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4175         * m2-exp.y (%union) <bval>: Now const.
4176         * linespec.c (get_current_search_block): Make return type const.
4177         (create_sals_line_offset, find_label_symbols): Update.
4178         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4179         Update.
4180         (block_starting_point_at): Make "block" const.
4181         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4182         (check_exception_resume): Update.
4183         * guile/scm-frame.c (gdbscm_frame_block): Update.
4184         * guile/scm-block.c (gdbscm_lookup_block): Update.
4185         * frame.h (get_frame_block): Update.
4186         (get_selected_block): Make return type const.
4187         * frame.c (frame_id_inner): Update.
4188         * f-valprint.c (info_common_command_for_block)
4189         (info_common_command): Update.
4190         * dwarf2loc.c (dwarf2_find_location_expression)
4191         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4192         (locexpr_describe_location_piece): Update.
4193         * c-exp.y (%union) <bval>: Now const.
4194         * breakpoint.c (resolve_sal_pc): Update.
4195         * blockframe.c (get_frame_block):Make return type const.
4196         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4197         (block_innermost_frame): Update.
4198         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4199         (block_for_pc, block_for_pc_sect): Update.
4200         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4201         'pblock' const.
4202         (block_for_pc_sect, block_for_pc): Make return type const.
4203         * ax-gdb.c (gen_expr): Update.
4204         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4205         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4206         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4207         (ada_read_var_value): Update.
4208         * ada-exp.y (struct name_info) <block>: Now const.
4209         (%union): Likewise.
4210         (block_lookup): Constify.
4211
4212 2014-06-18  Gary Benson  <gbenson@redhat.com>
4213
4214         * nat/i386-dregs.h: New file.
4215         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4216         * i386-nat.h (i386-dregs.h): New include.
4217         (DR_FIRSTADDR): Now in i386-dregs.h.
4218         (DR_LASTADDR): Likewise.
4219         (DR_NADDR): Likewise.
4220         (DR_STATUS): Likewise.
4221         (DR_CONTROL): Likewise.
4222         (i386_debug_reg_state): Likewise.
4223         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4224
4225 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4226
4227         * breakpoint.c (set_longjmp_breakpoint): Call
4228         momentary_breakpoint_from_master with additional argument.
4229         (set_longjmp_breakpoint_for_call_dummy): Call
4230         momentary_breakpoint_from_master with additional argument.
4231         (set_std_terminate_breakpoint): Call
4232         momentary_breakpoint_from_master with additional argument.
4233         (momentary_breakpoint_from_master): Add argument to function
4234         definition and use it to initialize structure member flag.
4235         (clone_momentary_breakpoint): Call
4236         momentary_breakpoint_from_master with additional argument.
4237         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4238         member flags set in momentary_breakpoint_from_master.
4239
4240 2014-06-18  Gary Benson  <gbenson@redhat.com>
4241
4242         * i386-nat.c (i386_show_dr): Renamed to
4243         i386_dr_show and made nonstatic.  All uses updated.
4244         (i386_length_and_rw_bits): Renamed to
4245         i386_dr_length_and_rw_bits and made nonstatic.
4246         All uses updated.
4247         (i386_insert_aligned_watchpoint): Renamed to
4248         i386_dr_insert_aligned_watchpoint and made nonstatic.
4249         All uses updated.
4250         (i386_remove_aligned_watchpoint): Renamed to
4251         i386_dr_remove_aligned_watchpoint and made nonstatic.
4252         All uses updated.
4253         (i386_update_inferior_debug_regs): Renamed to
4254         i386_dr_update_inferior_debug_regs and made nonstatic.
4255         All uses updated.
4256
4257 2014-06-18  Gary Benson  <gbenson@redhat.com>
4258
4259         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4260         (i386_dr_low_can_set_control): Likewise.
4261         (i386_dr_low_set_addr): Likewise.
4262         (i386_dr_low_set_control): Likewise.
4263         (i386_dr_low_get_addr): Likewise.
4264         (i386_dr_low_get_status): Likewise.
4265         (i386_dr_low_get_control): Likewise.
4266         (i386_insert_aligned_watchpoint): Use new macros.
4267         (i386_update_inferior_debug_regs): Likewise.
4268         (i386_stopped_data_address): Likewise.
4269
4270 2014-06-18  Gary Benson  <gbenson@redhat.com>
4271
4272         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4273         New parameter.  All uses updated.
4274
4275 2014-06-18  Gary Benson  <gbenson@redhat.com>
4276
4277         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4278         All uses updated.
4279
4280 2014-06-18  Gary Benson  <gbenson@redhat.com>
4281
4282         * i386-nat.c (debug_printf): New macro.
4283         (i386_get_debug_register_length): Likewise.
4284         (TARGET_HAS_DR_LEN_8): Use above macro.
4285         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4286         and printf_unfiltered.  Use phex to format values.
4287
4288 2014-06-18  Gary Benson  <gbenson@redhat.com>
4289
4290         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4291         Make const.
4292
4293 2014-06-18  Gary Benson  <gbenson@redhat.com>
4294
4295         * i386-nat.c: Comment changes.
4296
4297 2014-06-18  Gary Benson  <gbenson@redhat.com>
4298
4299         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4300
4301 2014-06-18  Gary Benson  <gbenson@redhat.com>
4302
4303         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4304         (i386_insert_aligned_watchpoint): Likewise.
4305         (i386_remove_aligned_watchpoint): Likewise.
4306         (i386_handle_nonaligned_watchpoint): Likewise.
4307
4308 2014-06-18  Gary Benson  <gbenson@redhat.com>
4309
4310         * i386-nat.c: Whitespace changes.
4311
4312 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4313
4314         * MAINTAINERS: Update Roland McGrath's email address.
4315         Thanks to Sergio Durigan Junior for pointing out that he left
4316         Red Hat a while ago, and giving me a current address.
4317
4318 2014-06-17  Tom Tromey  <tromey@redhat.com>
4319
4320         * utils.h (savestring): Remove declaration.
4321
4322 2014-06-17  Tom Tromey  <tromey@redhat.com>
4323
4324         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4325
4326 2014-06-16  Keith Seitz  <keiths@redhat.com>
4327
4328         PR mi/15863
4329         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4330         to update the varobj if inferior_ptid is null_ptid.
4331
4332 2014-06-16  Tom Tromey  <tromey@redhat.com>
4333
4334         * target.h (struct target_ops) <to_info_proc>: Make parameter
4335         const.
4336         (target_info_proc): Update.
4337         * target.c (target_info_proc): Make "args" const.
4338         * procfs.c (procfs_info_proc): Update.
4339         * linux-tdep.c (linux_info_proc): Update.
4340         (linux_core_info_proc_mappings): Make "args" const.
4341         (linux_core_info_proc): Update.
4342         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4343         * gdbarch.c: Rebuild.
4344         * gdbarch.h: Rebuild.
4345         * corelow.c (core_info_proc): Update.
4346
4347 2014-06-16  Tom Tromey  <tromey@redhat.com>
4348
4349         * target.h (struct target_ops) <to_disconnect>: Make parameter
4350         const.
4351         (target_disconnect): Update.
4352         * target.c (target_disconnect): Make "args" const.
4353         * target-delegates.c: Rebuild.
4354         * remote.c (remote_disconnect): Update.
4355         * record.h (record_disconnect): Update.
4356         * record.c (record_disconnect): Update.
4357         * inf-child.c (inf_child_disconnect): Update.
4358
4359 2014-06-16  Tom Tromey  <tromey@redhat.com>
4360
4361         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4362         * target.c (debug_to_rcmd, default_rcmd): Update.
4363         * target-delegates.c: Rebuild.
4364         * remote.c (remote_rcmd): Update.
4365         * monitor.c (monitor_rcmd): Update.
4366
4367 2014-06-16  Pedro Alves  <palves@redhat.com>
4368
4369         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4370         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4371         have OBJF_SHARED set.
4372         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4373         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4374         instead of OBJF_USERLOADED.
4375         * objfiles.h (OBJF_SHARED): Update comment.
4376         (userloaded_objfile_contains_address_p): Rename to ...
4377         (shared_objfile_contains_address_p): ... this, and update
4378         comments.
4379         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4380         new objfile.
4381         (remove_symbol_file_command): Skip objfiles that don't have
4382         OBJF_SHARED set.
4383
4384 2014-06-16  Tom Tromey  <tromey@redhat.com>
4385
4386         * minsyms.h (prim_record_minimal_symbol)
4387         (prim_record_minimal_symbol_and_info): Update comments.
4388
4389 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4390
4391         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4392         or --without-guile, according to how GDB was built.
4393
4394 2014-06-13  Tom Tromey  <tromey@redhat.com>
4395
4396         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4397         to help_list.
4398         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4399         to help_list.
4400         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4401         help_list.
4402         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4403         help_list.Pass all_commands, not -1, to help_list.
4404         * cli/cli-dump.c (dump_command, append_command)
4405         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4406         (binary_dump_command, binary_append_command): Pass all_commands,
4407         not -1, to help_list.
4408         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4409         -1, to help_list.
4410         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4411         -1, to help_list.
4412         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4413         help_list.
4414         * top.c (set_history): Pass all_commands, not -1, to help_list.
4415         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4416         all_commands, not -1, to help_list.
4417         * symfile.c (overlay_command): Pass all_commands, not -1, to
4418         help_list.
4419         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4420         help_list.
4421         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4422         help_list.
4423         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4424         -1, to help_list.
4425         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4426         not -1, to help_list.
4427         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4428         not -1, to help_list.
4429         * maint.c (maintenance_command, maintenance_info_command)
4430         (maintenance_print_command, maintenance_set_cmd): Pass
4431         all_commands, not -1, to help_list.
4432         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4433         help_list.
4434         * language.c (set_check): Pass all_commands, not -1, to help_list.
4435         * infcmd.c (unset_command): Pass all_commands, not -1, to
4436         help_list.
4437         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4438         help_list.
4439         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4440         help_list.
4441         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4442         help_list.
4443         * breakpoint.c (save_command): Pass all_commands, not -1, to
4444         help_list.
4445         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4446         all_commands, not -1, to help_list.
4447
4448 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4449
4450         * regcache.c (struct register_to_invalidate): New structure.
4451         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4452         functions.
4453         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4454
4455 2014-06-12  Yao Qi  <yao@codesourcery.com>
4456
4457         * varobj.c (varobj_get_num_children): Call
4458         varobj_is_dynamic_p.
4459         (varobj_list_children): Likewise.
4460         (varobj_update): Likewise.  Update comments.
4461
4462 2014-06-12  Yao Qi  <yao@codesourcery.com>
4463
4464         * varobj.c (varobj_pretty_printed_p): Rename to ...
4465         (varobj_is_dynamic_p): ... this.  New function.
4466         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4467         (varobj_is_dynamic_p): Declare.
4468         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4469         (mi_print_value_p, varobj_update_one): Likewise.
4470
4471 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4472             Yao Qi  <yao@codesourcery.com>
4473
4474         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4475         (varobj_get_iterator): Wrap up code for pretty-printer by
4476         "#if HAVE_PYTHON" and "#endif".
4477         (update_dynamic_varobj_children): Likewise.
4478
4479 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4480             Yao Qi  <yao@codesourcery.com>
4481
4482         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4483         gdb_python_initialized is false.  Move some code from varobj.c.
4484         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4485         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4486         (struct varobj_item): Moved to varobj-iter.h".
4487         (varobj_clear_saved_item): New function.
4488         (update_dynamic_varobj_children): Move python-related code to
4489         py-varobj.c.
4490         (free_variable): Call varobj_clear_saved_item and
4491         varobj_iter_delete.
4492
4493 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4494             Yao Qi  <yao@codesourcery.com>
4495
4496         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4497         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4498         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4499         (py-varobj.o): New rule.
4500         * python/py-varobj.c: New file.
4501         * python/python-internal.h (py_varobj_get_iterator): Declare.
4502         * varobj-iter.h: New file.
4503         * varobj.c: Include "varobj-iter.h"
4504         (struct varobj) <child_iter>: Change its type from "PyObject *"
4505         to "struct varobj_iter *".
4506         <saved_item>: Likewise.
4507         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4508         [HAVE_PYTHON] (varobj_get_iterator): New function.
4509         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4510         python-specific code to python/py-varobj.c.
4511         (install_visualizer): Call varobj_iter_delete instead of
4512         Py_XDECREF.
4513         * varobj.h (varobj_ensure_python_env): Declare.
4514
4515 2014-06-12  Yao Qi  <yao@codesourcery.com>
4516
4517         * varobj.c (struct varobj_item): New structure.
4518         (create_child_with_value): Update declaration.
4519         (varobj_add_child): Replace arguments 'name' and 'value' with
4520         'item'.  All callers updated.
4521         (install_dynamic_child): Likewise.
4522         (update_dynamic_varobj_children): Likewise.
4523         (varobj_add_child): Likewise.
4524         (create_child_with_value): Likewise.
4525
4526 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4527
4528         * NEWS: Create a new section for the next release branch.
4529         Rename the section of the current branch, now that it has
4530         been cut.
4531
4532 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4533
4534         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4535         * version.in: Bump version to 7.8.50.DATE-cvs.
4536
4537 2014-06-11  Pedro Alves  <palves@redhat.com>
4538
4539         PR remote/17028
4540         * ser-mingw.c (net_windows_socket_check_pending): New function.
4541         (net_windows_select_thread): Ignore spurious wakeups.  Use
4542         net_windows_socket_check_pending.
4543         (net_windows_wait_handle): Check for pending events with
4544         ioctlsocket, through net_windows_socket_check_pending, instead of
4545         checking the socket's event.
4546
4547 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4548
4549         * python/python-internal.h (gdb_PyObject_GetAttrString)
4550         (gdb_PyObject_HasAttrString): New inline function definitions.
4551         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4552         char * of the second argument to PyObject_GetAttrString.
4553
4554 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4555
4556         * serial.c (serial_write): Fix index of character to be printed
4557         in call to serial_logchar when serial debug traces are enabled.
4558
4559 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4560
4561         * gdbtypes (resolve_dynamic_range): Add function description.
4562
4563 2014-06-09  Pedro Alves  <palves@redhat.com>
4564
4565         * linux-nat.c (linux_child_follow_fork): Initialize status with
4566         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4567         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4568         state.
4569
4570 2014-06-09  Gary Benson  <gbenson@redhat.com>
4571
4572         * common/signals.c (gdb_signal_from_host): Reorder to separate
4573         the always-available ANSI-standard signals from the signals that
4574         require checking.
4575         (do_gdb_signal_to_host): Likewise.
4576         * proc-events.c (signal_table): Likewise.
4577
4578 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4579
4580         * common/linux-ptrace.c (linux_disable_event_reporting): New
4581         function.
4582         * common/linux-ptrace.h (linux_disable_event_reporting): New
4583         declaration.
4584         * linux-nat.c (linux_child_follow_fork): Do a single step before
4585         detach.
4586
4587 2014-06-07  Keith Seitz  <keiths@redhat.com>
4588
4589         Revert:
4590         PR c++/16253
4591         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4592         from symbol_matches_domain in symtab.c. All local callers
4593         of symbol_matches_domain updated.
4594         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4595         search STRUCT_DOMAIN.
4596         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4597         independently.  standard_lookup will do that automatically.
4598         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4599         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4600         (cp_lookup_symbol_in_namespace): Likewise.
4601         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4602         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4603         may return a STRUCT_DOMAIN match.
4604         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4605         * cp-support.c: Include language.h.
4606         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4607         VAR_DOMAIN.
4608         * psymtab.c (match_partial_symbol): Compare the requested
4609         domain with the symbol's domain directly.
4610         (lookup_partial_symbol): Likewise.
4611         * symtab.c (lookup_symbol_in_language): Explain when/why
4612         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4613         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4614         appropriate languages.
4615         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4616         and moved to ada-lang.c
4617         (lookup_block_symbol): Explain that this function only returns
4618         symbol matching the requested DOMAIN.
4619         Compare the requested domain with the symbol's domain directly.
4620         (iterate_over_symbols): Compare the requested domain with the
4621         symbol's domain directly.
4622         * symtab.h (symbol_matches_domain): Remove.
4623
4624 2014-06-06  Doug Evans  <xdje42@gmail.com>
4625
4626         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4627         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4628         (gdbscm_guile_version_is_at_least): Declare.
4629         (gdbscm_scm_string_to_int): Declare.
4630         * guile/guile.c (gdbscm_guile_major_version): New global.
4631         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4632         (guile_datadir): New static global.
4633         (gdbscm_guile_data_directory): New function.
4634         (initialize_scheme_side): Update.
4635         (misc_guile_functions): Add guile-data-directory.
4636         (initialize_gdb_module): Fetch guile version number.
4637         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4638         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4639         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4640         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4641         comments.
4642         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4643         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4644         * guile/scm-value.c (gdbscm_value_to_string): Only call
4645         scm_port_conversion_strategy if Guile version >= 2.0.6.
4646
4647 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4648
4649         * main.c (print_gdb_help): Add -q and --silent.
4650
4651 2014-06-06  Gary Benson  <gbenson@redhat.com>
4652
4653         * common/signals.c: Remove preprocessor conditionals for
4654         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4655         SIGSEGV and SIGTERM.
4656         * proc-events.c: Likewise.
4657
4658 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4659
4660         * symfile.c (symfile_free_objfile): Remove restriction to
4661         OBJF_USERLOADED.
4662         * symfile-mem.c (symbol_file_add_from_memory): Call
4663         add_target_sections_of_objfile.
4664
4665 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4666
4667         * guile/scm-value.c (gdbscm_history_append_x): Use
4668         'vlscm_get_value_smob_arg_unsafe' instead of
4669         'vlscm_scm_to_value'.
4670
4671 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4672
4673         PR mi/15806
4674         * utils.c (printchar): Don't escape at all if quoter is NUL.
4675         Update function documentation to clarify effect of parameter
4676         QUOTER.
4677         * remote.c (escape_buffer): Pass '\\' as the quoter to
4678         fputstrn_unfiltered.
4679         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4680         generate the output.
4681         (mi_solib_unloaded): Same.
4682
4683 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4684
4685         * development.sh: Delete.
4686         * Makefile.in (config.status): Adjust dependency on development.sh.
4687         * configure.ac: Adjust development.sh source call.
4688         * configure: Regenerate.
4689
4690 2014-06-04  Doug Evans  <xdje42@gmail.com>
4691
4692         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4693         is_scheme_bkpt, spec.
4694         (bpscm_make_breakpoint_smob): Initialize new members.
4695         (gdbscm_create_breakpoint_x): Split into two ...
4696         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4697         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4698         (scheme_function breakpoint_functions): Update.
4699         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4700         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4701         register-breakpoint!.
4702
4703 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4704
4705         PR server/17023
4706         * mem-break.c (z_type_supported): Return zero if
4707         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4708
4709 2014-06-04  Tom Tromey  <tromey@redhat.com>
4710
4711         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4712         value_from_contents_and_address_unresolved.
4713         (ada_template_to_fixed_record_type_1): Likewise.
4714         (ada_which_variant_applies): Likewise.
4715         * value.h (value_from_contents_and_address_unresolved): Declare.
4716         * value.c (value_from_contents_and_address_unresolved): New
4717         function.
4718         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4719         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4720         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4721
4722 2014-06-04  Tom Tromey  <tromey@redhat.com>
4723
4724         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4725
4726 2014-06-04  Tom Tromey  <tromey@redhat.com>
4727
4728         * procfs.c (procfs_attach): Make "args" const.
4729         * windows-nat.c (windows_attach): Make "args" const.
4730         * nto-procfs.c (procfs_attach): Make "args" const.
4731         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4732         * go32-nat.c (go32_attach): Make "args" const.
4733         * gnu-nat.c (gnu_attach): Make "args" const.
4734         * darwin-nat.c (darwin_attach): Make "args" const.
4735         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4736         * linux-nat.c (linux_nat_attach): Make "args" const.
4737         * remote.c (extended_remote_attach_1, extended_remote_attach):
4738         Make "args" const.
4739         * target.h (struct target_ops) <to_attach>: Make "args" const.
4740         (find_default_attach): Likewise.
4741         * utils.c (parse_pid_to_attach): Make "args" const.
4742         * utils.h (parse_pid_to_attach): Update.
4743
4744 2014-06-04  Tom Tromey  <tromey@redhat.com>
4745
4746         * target-delegates.c: Rebuild.
4747         * target.c (default_thread_address_space): New function.
4748         (target_thread_address_space): Simplify.
4749         * target.h (struct target_ops) <to_thread_address_space>: Add
4750         TARGET_DEFAULT_FUNC.
4751
4752 2014-06-04  Doug Evans  <xdje42@gmail.com>
4753
4754         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4755
4756 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4757
4758         * record-btrace.c: Include event-loop.h and inf-loop.h.
4759         (record_btrace_resume_exec_dir)
4760         (record_btrace_async_inferior_event_handler)
4761         (record_btrace_handle_async_inferior_event): New.
4762         (record_btrace_open): Create async event handler.
4763         (record_btrace_close): Delete async event handler.
4764         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4765         Mark async event handler.
4766         (record_btrace_execution_direction): New.
4767         (init_record_btrace_ops): Initialize to_execution_direction.
4768
4769 2014-06-03  Doug Evans  <xdje42@gmail.com>
4770
4771         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4772         (gdbscm_make_parameter): Ditto.
4773
4774 2014-06-03  Doug Evans  <dje@google.com>
4775
4776         * exec.c (exec_close_1): Call clear_section_table instead of
4777         resize_section_table.
4778         (clear_section_table): New function.
4779         (resize_section_table): Make static.  Rename arg num_added to
4780         adjustment.
4781         * exec.h (clear_section_table): Declare.
4782         (resize_section_table): Delete.
4783         * progspace.c (release_program_space): Call clear_section_table
4784         instead of resize_section_table.
4785
4786 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4787
4788         * NEWS (Python Scripting): Add entry about the new xmethods
4789         feature.
4790
4791 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4792
4793         * python/py-xmethods.c: New file.
4794         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4795         (objfpy_dealloc): XDECREF on the new xmethods field.
4796         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4797         field.
4798         (objfpy_get_xmethods): New function.
4799         (objfile_getset): New entry 'xmethods'.
4800         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4801         (pspy_dealloc): XDECREF on the new xmethods field.
4802         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4803         field.
4804         (pspy_get_xmethods): New function.
4805         (pspace_getset): New entry 'xmethods'.
4806         * python/python-internal.h: Add declarations for new functions.
4807         * python/python.c (_initialize_python): Invoke
4808         gdbpy_initialize_xmethods.
4809         * python/lib/gdb/__init__.py (xmethods): New
4810         attribute.
4811         * python/lib/gdb/xmethod.py: New file.
4812         * python/lib/gdb/command/xmethods.py: New file.
4813
4814 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4815
4816         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4817         best match method returned by find_overload_match is an xmethod.
4818         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4819         the best matching operator returned by find_overload_match is an
4820         xmethod.
4821         * valops.c: #include "extension.h".
4822         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4823         Return void.  The list of matching source methods is returned in
4824         "fn_list" and a vector of matching debug method workers is
4825         returned in "xm_worker_vec".  Update all callers.
4826         (value_find_oload_method_list): Likewise.
4827         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4828         non-NULL, then the index of the best matching method in this
4829         vector is returned.  Update all callers.
4830         (find_overload_match): Include xmethods while performing overload
4831         resolution.
4832
4833 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4834
4835         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4836         * extension-priv.h (struct extension_language_ops): Add the
4837         xmethod interface.
4838         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4839         get_matching_xmethod_workers, get_xmethod_argtypes,
4840         invoke_xmethod, free_xmethod_worker,
4841         free_xmethod_worker_vec): New functions.
4842         * extension.h: #include "common/vec.h".
4843         New function declarations.
4844         (struct xmethod_worker): New struct.
4845         (VEC (xmethod_worker_ptr)): New vector type.
4846         (xmethod_worker_ptr): New typedef.
4847         (xmethod_worker_vec): Likewise.
4848         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4849         builtin_type.
4850         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4851         (struct builtin_type): New field "xmethod".
4852         * valarith.c (value_ptradd): Assert that the value argument is not
4853         lval_xcallable.
4854         * valops.c (value_must_coerce_to_target): Return 0 for
4855         lval_xcallable values.
4856         * value.c (struct value): New field XM_WORKER in the field
4857         LOCATION.
4858         (value_address, value_raw_address): Return 0 for lval_xcallable
4859         values.
4860         (set_value_address): Assert that the value is not an
4861         lval_xcallable.
4862         (value_free): Free the associated xmethod worker when freeing
4863         lval_xcallable values.
4864         (set_value_component_location): Assert that the WHOLE value is not
4865         lval_xcallable.
4866         (value_of_xmethod, call_xmethod): New functions.
4867         * value.h: Declare "struct xmethod_worker".
4868         Declare new functions value_of_xmethod, call_xmethod.
4869
4870 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4871             Pedro Alves  <palves@redhat.com>
4872
4873         PR breakpoints/17000
4874         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4875         New function, extracted from software_breakpoint_inserted_here_p.
4876         (software_breakpoint_inserted_here_p): Replace factored out code
4877         by call to find_non_raw_software_breakpoint_inserted_here.
4878         (bp_target_info_copy_insertion_state): New function.
4879         (bkpt_insert_location): Handle the case of a single-step
4880         breakpoint already inserted at the same address.
4881         (bkpt_remove_location): Handle the case of a single-step
4882         breakpoint still inserted at the same address.
4883         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4884         breakpoint already inserted at the same address.
4885         (deprecated_remove_raw_breakpoint): Handle the case of a
4886         non-raw breakpoint still inserted at the same address.
4887         (find_single_step_breakpoint): New function, extracted from
4888         single_step_breakpoint_inserted_here_p.
4889         (find_single_step_breakpoint): New function,
4890         factored out from single_step_breakpoint_inserted_here_p.
4891         (single_step_breakpoint_inserted_here_p): Reimplement.
4892
4893 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4894
4895         Pushed by Joel Brobecker  <brobecker@adacore.com>
4896         * source.c (show_substitute_path_command): Fix display of matching
4897         substitution rules.
4898
4899 2014-06-03  Gary Benson  <gbenson@redhat.com>
4900
4901         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4902
4903 2014-06-02  Doug Evans  <xdje42@gmail.com>
4904
4905         Add parameter support for Guile.
4906         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4907         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4908         (scm-param.o): New rule.
4909         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4910         (gdbscm_misc_error): Declare.
4911         (gdbscm_canonicalize_command_name): Declare.
4912         (gdbscm_scm_to_host_string): Declare.
4913         (gdbscm_scm_from_host_string): Declare.
4914         (gdbscm_initialize_parameters): Declare.
4915         * guile/guile.c (initialize_gdb_module): Call
4916         gdbscm_initialize_parameters.
4917         * guile/lib/gdb.scm: Export parameter symbols.
4918         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4919         cmdscm_canonicalize_name and made public.  All callers updated.
4920         * guile/scm-exception.c (gdbscm_misc_error): New function.
4921         * guile/scm-param.c: New file.
4922         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4923         (gdbscm_scm_to_host_string): New function.
4924         (gdbscm_scm_from_host_string): New function.
4925         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4926
4927 2014-06-02  Doug Evans  <xdje42@gmail.com>
4928
4929         Add command support for Guile.
4930         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4931         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4932         (scm-cmd.o): New rule.
4933         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4934         (gdbscm_user_error_p): Declare.
4935         (gdbscm_parse_command_name): Declare.
4936         (gdbscm_valid_command_class_p): Declare.
4937         (gdbscm_initialize_commands): Declare.
4938         * guile/guile.c (initialize_gdb_module): Call
4939         gdbscm_initialize_commands.
4940         * guile/lib/gdb.scm: Export command symbols.
4941         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4942         (throw-user-error): New function.
4943         * guile/scm-cmd.c: New file.
4944         * guile/scm-exception.c (user_error_symbol): New static global.
4945         (gdbscm_user_error_p): New function.
4946         (gdbscm_initialize_exceptions): Set user_error_symbol.
4947         * scm-utils.c (gdbscm_gc_xstrdup): New function.
4948
4949 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
4950
4951         * top.c (command_loop): Handle comments here...
4952         (command_line_input): ... not here.
4953
4954 2014-06-02  Doug Evans  <xdje42@gmail.com>
4955
4956         Add progspace support for Guile.
4957         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4958         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4959         (scm-progspace.o): New rule.
4960         * guile/guile-internal.h (pspace_smob): New typedef.
4961         (psscm_pspace_smob_pretty_printers): Declare.
4962         (psscm_pspace_smob_from_pspace): Declare.
4963         (psscm_scm_from_pspace): Declare.
4964         * guile/guile.c (initialize_gdb_module): Call
4965         gdbscm_initialize_pspaces.
4966         * guile/lib/gdb.scm: Export progspace symbols.
4967         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4968         support.
4969         (append-pretty-printer!): Ditto.
4970         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4971         Implement.
4972         * guile/scm-progspace.c: New file.
4973
4974 2014-06-03  Alan Modra  <amodra@gmail.com>
4975
4976         * ppc64-tdep.c (ppc64_standard_linkage8): New.
4977         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4978
4979 2014-06-02  Doug Evans  <dje@google.com>
4980
4981         Add support for skeletonless type units.
4982         * dwarf2read.c (struct dwarf2_per_objfile): New member
4983         n_allocated_type_units.
4984         (struct dwarf2_per_objfile) <tu_stats>: New member
4985         nr_all_type_units_reallocs.
4986         (create_signatured_type_table_from_index): Initialize
4987         n_allocated_type_units
4988         (create_all_type_units): Ditto.
4989         (add_type_unit): Move up in file.  New arg slot.
4990         All callers updated.  Increase space for all_type_units more
4991         efficiently.
4992         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4993         (lookup_dwo_signatured_type): Handle skeletonless TUs.
4994         (lookup_dwp_signatured_type): Ditto.
4995         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4996         All callers updated.
4997         (build_type_psymtabs_1): Leave type_unit_groups as
4998         NULL if no TUs present.
4999         (print_tu_stats): New function.
5000         (process_skeletonless_type_unit): New function.
5001         (process_dwo_file_for_skeletonless_type_units): New
5002         function.
5003         (process_skeletonless_type_units): New function.
5004         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5005         Call print tu_stats if debugging enabled.
5006
5007 2014-06-02  Pedro Alves  <palves@redhat.com>
5008
5009         * breakpoint.c (build_target_command_list): Don't build a command
5010         list if we have any duplicate location that isn't a dprintf.
5011
5012 2014-06-02  Pedro Alves  <palves@redhat.com>
5013
5014         * breakpoint.c (dprintf_breakpoint_hit): New function.
5015         (initialize_breakpoint_ops): Install it as dprintf's
5016         breakpoint_hit method.
5017
5018 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5019
5020         * source.c (substitute_path_rule_matches): Simplify using
5021         filename_ncmp instead of FILENAME_CMP.
5022
5023 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5024
5025         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5026
5027 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5028
5029         * configure.ac: When Guile is available, check for the
5030         availability of 'scm_new_smob'.
5031         * configure, config.h.in: Regenerate.
5032         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5033         function.
5034
5035 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5036
5037         * frame.c (struct frame_info): Add stop_string field.
5038         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5039         (get_prev_frame_always): Old content moved into
5040         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5041         TRY_CATCH, handle MEMORY_ERROR exceptions.
5042         (frame_stop_reason_string): New function definition.
5043         * frame.h (unwind_stop_reason_to_string): Extend comment to
5044         mention frame_stop_reason_string.
5045         (frame_stop_reason_string): New function declaration.
5046         * stack.c (frame_info): Switch to frame_stop_reason_string.
5047         (backtrace_command_1): Switch to frame_stop_reason_string.
5048         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5049         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5050         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5051
5052 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5053
5054         * frame.c (frame_stop_reason_string): Rename to ...
5055         (unwind_stop_reason_to_string): this.
5056         * frame.h (frame_stop_reason_string): Rename to ...
5057         (unwind_stop_reason_to_string): this.
5058         * stack.c (frame_info): Update call to frame_stop_reason_string.
5059         (backtrace_command_1): Likewise.
5060         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5061         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5062
5063 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5064
5065         * frame.c (remove_prev_frame): New function.
5066         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5067         remove_prev_frame.
5068
5069 2014-05-29  Pedro Alves  <palves@redhat.com>
5070
5071         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5072         and make it const.  When a single-step decays to a continue,
5073         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5074         to step to user_visible_resume_ptid, not what we ask the
5075         target to do.
5076
5077 2014-05-29  Pedro Alves  <palves@redhat.com>
5078
5079         * infrun.c (process_event_stop_test, handle_step_into_function)
5080         (handle_step_into_function_backward): Adjust.
5081         Don't set the even thread's stop_step and call stop_waiting before
5082         calling end_stepping_range.  Instead do that ...
5083         (end_stepping_range): ... here.  Take an ecs pointer parameter.
5084
5085 2014-05-29  Pedro Alves  <palves@redhat.com>
5086
5087         * infrun.c (stop_stepping): Rename to ...
5088         (stop_waiting): ... this.
5089         (proceed): Update comment.
5090         (process_event_stop_test, handle_inferior_event)
5091         (handle_signal_stop, handle_step_into_function)
5092         (handle_step_into_function_backward): Update.
5093
5094 2014-05-29  Pedro Alves  <palves@redhat.com>
5095
5096         * infcall.c (run_inferior_call): Don't check whether the current
5097         thread is running after the proceed call.
5098
5099 2014-05-29  Pedro Alves  <palves@redhat.com>
5100             Tom Tromey  <tromey@redhat.com>
5101
5102         * NEWS: Mention "maint set target-async", "set mi-async", and that
5103         background execution commands are now always available.
5104         * target.h (target_async_permitted): Update comment.
5105         * target.c (target_async_permitted, target_async_permitted_1):
5106         Default to 1.
5107         (set_target_async_command): Rename to ...
5108         (maint_set_target_async_command): ... this.
5109         (show_target_async_command): Rename to ...
5110         (maint_show_target_async_command): ... this.
5111         (_initialize_target): Adjust.
5112         * infcmd.c (prepare_execution_command): Make extern.
5113         * inferior.h (prepare_execution_command): Declare.
5114         * infrun.c (set_observer_mode): Leave target async alone.
5115         * mi/mi-interp.c (mi_interpreter_init): Install
5116         mi_on_sync_execution_done as sync_execution_done observer.
5117         (mi_on_sync_execution_done): New function.
5118         (mi_execute_command_input_handler): Don't print the prompt if we
5119         just started a synchronous command with an async target.
5120         (mi_on_resume): Check sync_execution before printing prompt.
5121         * mi/mi-main.h (mi_async_p): Declare.
5122         * mi/mi-main.c: Include gdbcmd.h.
5123         (mi_async_p): New function.
5124         (mi_async, mi_async_1): New globals.
5125         (set_mi_async_command, show_mi_async_command, mi_async): New
5126         functions.
5127         (exec_continue): Call prepare_execution_command.
5128         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5129         (mi_execute_async_cli_command): Use mi_async_p.
5130         (_initialize_mi_main): Install "set mi-async".  Make
5131         "target-async" a deprecated alias.
5132
5133 2014-05-29  Pedro Alves  <palves@redhat.com>
5134
5135         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5136         (_initialize_cli_interp): Adjust.
5137         * event-loop.c: Include "observer.h".
5138         (start_event_loop): Notify 'command_error' observers instead of
5139         calling display_gdb_prompt.  Remove FIXME comment.
5140         * event-top.c (display_gdb_prompt): Remove call into the
5141         interpreters.
5142         * inf-loop.c: Include "observer.h".
5143         (inferior_event_handler): Notify 'command_error' observers instead
5144         of calling display_gdb_prompt.
5145         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5146         observers instead of calling display_gdb_prompt.
5147         * interps.c (interp_set): Don't call display_gdb_prompt.
5148         (current_interp_display_prompt_p): Delete.
5149         * interps.h (interp_prompt_p): Delete declaration.
5150         (interp_prompt_p_ftype): Delete.
5151         (struct interp_procs) <prompt_proc_p>: Delete field.
5152         (current_interp_display_prompt_p): Delete declaration.
5153         * mi-interp.c (mi_interpreter_prompt_p): Delete.
5154         (_initialize_mi_interp): Adjust.
5155         * tui-interp.c (tui_init): Install 'sync_execution_done' and
5156         'command_error' observers.
5157         (tui_on_sync_execution_done, tui_on_command_error): New
5158         functions.
5159         (tui_display_prompt_p): Delete.
5160         (_initialize_tui_interp): Adjust.
5161
5162 2014-05-29  Pedro Alves  <palves@redhat.com>
5163
5164         PR gdb/13860
5165         * cli/cli-interp.c: Include infrun.h and observer.h.
5166         (cli_uiout, cli_interp): New globals.
5167         (cli_on_signal_received, cli_on_end_stepping_range)
5168         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5169         functions.
5170         (cli_interpreter_init): Install them as 'end_stepping_range',
5171         'signal_received' 'signal_exited', 'exited' and 'no_history'
5172         observers.
5173         (_initialize_cli_interp): Remove cli_interp local.
5174         * infrun.c (handle_inferior_event): Call the several stop reason
5175         observers instead of printing the stop reason directly.
5176         (end_stepping_range): New function.
5177         (print_end_stepping_range_reason, print_signal_exited_reason)
5178         (print_exited_reason, print_signal_received_reason)
5179         (print_no_history_reason): Make static, and add an uiout
5180         parameter.  Print to that instead of to CURRENT_UIOUT.
5181         * infrun.h (print_end_stepping_range_reason)
5182         (print_signal_exited_reason, print_exited_reason)
5183         (print_signal_received_reason print_no_history_reason): New
5184         declarations.
5185         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5186         'mi_uiout'.
5187         <cli_uiout>: New field.
5188         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5189         uiout for CLI output.  Install 'signal_received',
5190         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5191         observers.
5192         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5193         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5194         (mi_on_no_history): New functions.
5195         (ui_out_free_cleanup): Delete function.
5196         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5197         instead use the one already stored in the MI interpreter data.
5198         (mi_ui_out): Adjust.
5199         * tui/tui-interp.c: Include infrun.h and observer.h.
5200         (tui_interp): New global.
5201         (tui_on_signal_received, tui_on_end_stepping_range)
5202         (tui_on_signal_exited, tui_on_exited)
5203         (tui_on_no_history): New functions.
5204         (tui_init): Install them as 'end_stepping_range',
5205         'signal_received' 'signal_exited', 'exited' and 'no_history'
5206         observers.
5207         (_initialize_tui_interp): Delete tui_interp local.
5208
5209 2014-05-29  Pedro Alves  <palves@redhat.com>
5210
5211         PR gdb/15713
5212         * linux-nat.c (linux_nat_resume_callback): Rename the second
5213         parameter to 'except'.  Skip LP if it points to EXCEPT.
5214         (linux_nat_resume): Don't mark the event lwp as not stopped
5215         before resuming sibling lwps.  Instead ask
5216         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5217         stopped after actually resuming it.
5218         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5219         resuming it.
5220         (wait_lwp): Mark the lwp as stopped here.
5221         (stop_wait_callback): Mark the lwp as not stopped right after
5222         resuming it.  Don't mark lwps as stopped here.
5223         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5224         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5225
5226 2014-05-29  Pedro Alves  <palves@redhat.com>
5227
5228         PR PR15693
5229         * infrun.c (resume): Determine how much to resume depending on
5230         whether the caller wanted a step, not whether we can hardware step
5231         the target.  Mark all threads that we intend to run as running,
5232         unless we're calling an inferior function.
5233         (normal_stop): If the thread is running an infcall, don't finish
5234         thread state.
5235         * target.c (target_resume): Don't mark threads as running here.
5236
5237 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5238
5239         * serial.c (_initialize_serial): Remove support for
5240         the "set remotebaud" and "show remotebaud" commands.
5241         * NEWS: Add entry documenting the removal of that command.
5242
5243 2014-05-28  Yao Qi  <yao@codesourcery.com>
5244
5245         * charset.c: Fix typo in comments.
5246
5247 2014-05-27  Gary Benson  <gbenson@redhat.com>
5248
5249         * utils.c (internal_vproblem): Prompt for a bug report.
5250
5251 2014-05-26  Andy Wingo  <wingo@igalia.com>
5252
5253         * guile/scm-arch.c (arscm_mark_arch_smob):
5254         * guile/scm-block.c (bkscm_mark_block_smob)
5255         (bkscm_mark_block_syms_progress_smob):
5256         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5257         * guile/scm-exception.c (exscm_mark_exception_smob):
5258         * guile/scm-frame.c (frscm_mark_frame_smob):
5259         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5260         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5261         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5262         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5263         (ppscm_mark_pretty_printer_worker_smob):
5264         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5265         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5266         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5267         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5268         mark functions.
5269         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5270         function.
5271
5272 2014-05-26  Andy Wingo  <wingo@igalia.com>
5273             Doug Evans  <xdje42@gmail.com>
5274
5275         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5276         empty_base_class.  All uses updated.
5277         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5278         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5279         Adapt all callers.
5280         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5281         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5282         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5283         (gdbscm_gsmob_has_property_p, add_property_name)
5284         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5285         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5286         (gdb-object-has-property?, gdb-object-properties): Remove.
5287         (gdb-object-kind): Renamed from gsmob-kind.
5288
5289 2014-05-26  Andy Wingo  <wingo@igalia.com>
5290
5291         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5292         * configure: Regenerate.
5293
5294 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5295
5296         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5297
5298 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5299
5300         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5301         (replay_memory_access_read_only, replay_memory_access_read_write)
5302         (replay_memory_access_types, replay_memory_access)
5303         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5304         (cmd_set_record_btrace, cmd_show_record_btrace)
5305         (cmd_show_replay_memory_access): New.
5306         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5307         (record_btrace_remove_breakpoint): Replace
5308         record_btrace_allow_memory_access with replay_memory_access.
5309         (_initialize_record_btrace): Add commands.
5310         * NEWS: Announce it.
5311
5312 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5313
5314         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5315
5316 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5317
5318         * MAINTAINERS (Write After Approval): Move self back from
5319         paper trail.
5320
5321 2014-05-22  Pedro Alves  <palves@redhat.com>
5322
5323         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5324         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5325         (disable_randomization, enum exec_direction_kind)
5326         (execution_direction, stop_registers, start_remote)
5327         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5328         (wait_for_inferior, normal_stop, get_last_target_status)
5329         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5330         (insert_step_resume_breakpoint_at_sal)
5331         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5332         (set_step_info, print_stop_event, signal_stop_state)
5333         (signal_print_state, signal_pass_state, signal_stop_update)
5334         (signal_print_update, signal_pass_update)
5335         (update_signals_program_target, clear_exit_convenience_vars)
5336         (displaced_step_dump_bytes, update_observer_mode)
5337         (signal_catch_update, gdb_signal_from_command): Move
5338         declarations ...
5339         * infrun.h: ... to this new file.
5340         * amd64-tdep.c: Include infrun.h.
5341         * annotate.c: Include infrun.h.
5342         * arch-utils.c: Include infrun.h.
5343         * arm-linux-tdep.c: Include infrun.h.
5344         * arm-tdep.c: Include infrun.h.
5345         * break-catch-sig.c: Include infrun.h.
5346         * breakpoint.c: Include infrun.h.
5347         * common/agent.c: Include infrun.h instead of inferior.h.
5348         * corelow.c: Include infrun.h.
5349         * event-top.c: Include infrun.h.
5350         * go32-nat.c: Include infrun.h.
5351         * i386-tdep.c: Include infrun.h.
5352         * inf-loop.c: Include infrun.h.
5353         * infcall.c: Include infrun.h.
5354         * infcmd.c: Include infrun.h.
5355         * infrun.c: Include infrun.h.
5356         * linux-fork.c: Include infrun.h.
5357         * linux-nat.c: Include infrun.h.
5358         * linux-thread-db.c: Include infrun.h.
5359         * monitor.c: Include infrun.h.
5360         * nto-tdep.c: Include infrun.h.
5361         * procfs.c: Include infrun.h.
5362         * record-btrace.c: Include infrun.h.
5363         * record-full.c: Include infrun.h.
5364         * remote-m32r-sdi.c: Include infrun.h.
5365         * remote-mips.c: Include infrun.h.
5366         * remote-notif.c: Include infrun.h.
5367         * remote-sim.c: Include infrun.h.
5368         * remote.c: Include infrun.h.
5369         * reverse.c: Include infrun.h.
5370         * rs6000-tdep.c: Include infrun.h.
5371         * s390-linux-tdep.c: Include infrun.h.
5372         * solib-irix.c: Include infrun.h.
5373         * solib-osf.c: Include infrun.h.
5374         * solib-svr4.c: Include infrun.h.
5375         * target.c: Include infrun.h.
5376         * top.c: Include infrun.h.
5377         * windows-nat.c: Include infrun.h.
5378         * mi/mi-interp.c: Include infrun.h.
5379         * mi/mi-main.c: Include infrun.h.
5380         * python/py-threadevent.c: Include infrun.h.
5381
5382 2014-05-22  Pedro Alves  <palves@redhat.com>
5383
5384         * infrun.c (handle_inferior_event): Store the exit code for
5385         --return-child-result here, instead of ...
5386         (print_exited_reason): ... here.
5387
5388 2014-05-21  Pedro Alves  <palves@redhat.com>
5389
5390         PR gdb/13860
5391         * gdbthread.h (struct thread_control_state): New field
5392         `command_interp'.
5393         * infrun.c (follow_fork): Copy the new thread control field to the
5394         child fork thread.
5395         (clear_proceed_status_thread): Clear the new thread control field.
5396         (proceed): Set the new thread control field.
5397         * interps.h (command_interp): Declare.
5398         * interps.c (command_interpreter): New global.
5399         (command_interp): New function.
5400         (interp_exec): Set `command_interpreter' while here.
5401         * cli-out.c (cli_uiout_dtor): New function.
5402         (cli_ui_out_impl): Install it.
5403         * mi/mi-interp.c: Include cli-out.h.
5404         (mi_cmd_interpreter_exec): Add comment.
5405         (restore_current_uiout_cleanup): New function.
5406         (ui_out_free_cleanup): New function.
5407         (mi_on_normal_stop): If finishing an execution command started by
5408         a CLI command, or any kind of breakpoint-like event triggered,
5409         print the stop event to the output (CLI) stream.
5410         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5411
5412 2014-05-21  Pedro Alves  <palves@redhat.com>
5413
5414         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5415         current source line having changed.
5416         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5417         * infrun.c (normal_stop): Adjust call to
5418         set_current_sal_from_frame.
5419         * source.c (clear_lines_listed_range): New function.
5420         (set_current_source_symtab_and_line, identify_source_line): Clear
5421         the lines listed range.
5422         (line_info): Handle the first "info line" after the current source
5423         line having changed.
5424         * stack.c (print_stack_frame): Remove center handling.
5425         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5426         center sal.line.
5427
5428 2014-05-21  Pedro Alves  <palves@redhat.com>
5429
5430         * inf-child.c (inf_child_mourn_inferior): New function.
5431         * inf-child.h (inf_child_mourn_inferior): New declaration.
5432         * darwin-nat.c (darwin_mourn_inferior): Use
5433         inf_child_mourn_inferior.
5434         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5435         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5436         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5437         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5438         * windows-nat.c (windows_mourn_inferior): Likewise.
5439
5440 2014-05-21  Doug Evans  <xdje42@gmail.com>
5441
5442         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5443
5444 2014-05-21  Doug Evans  <xdje42@gmail.com>
5445
5446         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5447         (gdbscm_out_of_range_error): Ditto.
5448         (gdbscm_memory_error): Ditto.
5449         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5450         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5451         (gdbscm_out_of_range_error): Update.
5452         (gdbscm_memory_error): Update.
5453         (gdbscm_scm_to_target_string_unsafe): Delete.
5454
5455 2014-05-21  Pedro Alves  <palves@redhat.com>
5456
5457         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5458         globals.
5459         (inf_child_open_target): New function.
5460         (inf_child_open): Use inf_child_open_target to push the target
5461         instead of erroring out.
5462         (inf_child_disconnect, inf_child_close)
5463         (inf_child_maybe_unpush_target): New functions.
5464         (inf_child_target): Install inf_child_disconnect and
5465         inf_child_close.  Store a pointer to the returned object.
5466         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5467         declarations.
5468         * target.c (auto_connect_native_target): New global.
5469         (show_default_run_target): New function.
5470         (find_default_run_target): Return NULL if automatically connecting
5471         to the native target is disabled.
5472         (_initialize_target): Install set/show auto-connect-native-target.
5473         * NEWS: Mention "set auto-connect-native-target", and "target
5474         native".
5475         * linux-nat.c (super_close): New global.
5476         (linux_nat_close): Call super_close.
5477         (linux_nat_add_target): Store a pointer to the base class's
5478         to_close method.
5479         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5480         inf_child_maybe_unpush.
5481         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5482         already pushed.
5483         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5484         the inferior.  Use inf_child_maybe_unpush_target.
5485         (inf_ttrace_attach): Don't push the target if it is already
5486         pushed.
5487         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5488         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5489         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5490         (darwin_attach_pid): Don't push the target if it is already
5491         pushed.
5492         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5493         mourning the inferior.  Use inf_child_maybe_unpush_target.
5494         (gnu_detach): Use inf_child_maybe_unpush_target.
5495         * go32-nat.c (go32_create_inferior): Don't push the target if it
5496         is already pushed.
5497         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5498         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5499         (procfs_open): Rename to ...
5500         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5501         comments.  Can target_preopen before changing node.  Call
5502         inf_child_open_target to push the target explicitly.
5503         (procfs_attach): Don't push the target if it is already pushed.
5504         (procfs_detach): Use inf_child_maybe_unpush_target.
5505         (procfs_create_inferior): Don't push the target if it is already
5506         pushed.
5507         (nto_native_ops): New global.
5508         (procfs_open): Reimplement.
5509         (procfs_native_open): New function.
5510         (init_procfs_targets): Install procfs_native_open as to_open of
5511         "target native".  Store a pointer to the "native" target in
5512         nto_native_ops.
5513         * procfs.c (procfs_attach): Don't push the target if it is already
5514         pushed.
5515         (procfs_detach): Use inf_child_maybe_unpush_target.
5516         (procfs_mourn_inferior): Only unpush the target after mourning the
5517         inferior.  Use inf_child_maybe_unpush_target.
5518         (procfs_init_inferior): Don't push the target if it is already
5519         pushed.
5520         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5521         if it is already pushed.
5522
5523 2014-05-21  Pedro Alves  <palves@redhat.com>
5524
5525         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5526         and "procfs" targets are now called "native" instead.
5527
5528 2014-05-21  Pedro Alves  <palves@redhat.com>
5529
5530         * go32-nat.c (go32_open): Delete.
5531         (go32_target): Don't override the to_open method.
5532
5533 2014-05-21  Pedro Alves  <palves@redhat.com>
5534
5535         * nto-procfs.c (procfs_can_run): New function.
5536         (nto_procfs_ops): New global.
5537         (init_procfs_targets): New, based on procfs_target.  Install
5538         "target native" in addition to "target procfs".
5539         (_initialize_procfs): Call init_procfs_targets instead of adding
5540         the target here.
5541
5542 2014-05-21  Pedro Alves  <palves@redhat.com>
5543
5544         * windows-nat.c (windows_target): Don't override to_shortname,
5545         to_longname or to_doc.
5546
5547 2014-05-21  Pedro Alves  <palves@redhat.com>
5548
5549         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5550         to_doc.
5551
5552 2014-05-21  Pedro Alves  <palves@redhat.com>
5553
5554         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5555         to_shortname, to_longname or to_doc.
5556
5557 2014-05-21  Pedro Alves  <palves@redhat.com>
5558
5559         * go32-nat.c (go32_target): Don't override to_shortname,
5560         to_longname or to_doc.
5561
5562 2014-05-21  Pedro Alves  <palves@redhat.com>
5563
5564         * inf-child.c (inf_child_open): Remove mention of "child".
5565         (inf_child_target): Rename target to "native" instead of "child".
5566
5567 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5568
5569         * Makefile.in (SFILES): Delete "regset.c".
5570         (COMMON_OBS): Delete "regset.o".
5571         * regset.c: Remove.
5572         * regset.h (regset_alloc): Delete prototype.
5573
5574 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5575
5576         * sparc-linux-tdep.c (sparc32_linux_gregset)
5577         (sparc32_linux_fpregset): New static regset structures.
5578         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5579         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5580         'fpregset' fields.
5581         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5582         (sparc64_linux_fpregset): New static regset structures.
5583         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5584         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5585         New static regset structures.
5586         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5587         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5588         New static regset structures.
5589         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5590         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5591         New static regset structures.
5592         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5593         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5594         New static regset structures.
5595         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5596
5597 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5598
5599         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5600         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5601         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5602         for all regmap types and variables.
5603         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5604         (sparc32_linux_supply_core_gregset)
5605         (sparc32_linux_collect_core_gregset)
5606         (sparc32_linux_supply_core_fpregset)
5607         (sparc32_linux_collect_core_fpregset): Likewise.
5608         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5609         (sparc_gregmap, sparc_fpregmap): ... these.
5610         (sparc_supply_gregset, sparc_collect_gregset)
5611         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5612         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5613         (_initialize_sparc_nat): Rename regmaps.
5614         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5615         (sparc_gregmap, sparc_fpregmap): ... these.
5616         (sparc_supply_gregset, sparc_collect_gregset)
5617         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5618         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5619         Rename macros to...
5620         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5621         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5622         Likewise.
5623         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5624         Rename to...
5625         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5626         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5627         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5628         regmaps.
5629         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5630         (sparc32_bsd_fpregset): Rename to...
5631         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5632         (sparc32_bsd_fpregmap): ... these.
5633         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5634         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5635         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5636         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5637         (struct sparc_gregmap, struct sparc_fpregmap)
5638         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5639         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5640         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5641         (sparc32_supply_regset, sparc32_collect_gregset)
5642         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5643         prototypes.
5644         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5645         (sparc64_linux_ptrace_gregmap): ... this.
5646         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5647         (_initialize_sparc64_linux_nat): Rename regmaps.
5648         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5649         (sparc64_linux_core_gregmap): ... this.
5650         (sparc64_linux_supply_core_gregset)
5651         (sparc64_linux_collect_core_gregset)
5652         (sparc64_linux_supply_core_fpregset)
5653         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5654         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5655         (sparc64_sol2_fpregset): Rename to...
5656         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5657         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5658         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5659         regmaps.
5660         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5661         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5662         (sparc64_bsd_fpregset): Rename to...
5663         (struct sparc_gregmap, sparc64_sol2_gregmap)
5664         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5665         (sparc64_bsd_fpregmap): ... these.
5666         (sparc64_supply_gregset, sparc64_collect_gregset)
5667         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5668         prototypes.
5669         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5670         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5671         (sparc64fbsd_gregmap): ... this.
5672         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5673         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5674         Rename regmaps.
5675         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5676         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5677         (sparc64nbsd_collect_fpregset): Likewise.
5678         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5679         (sparc64nbsd_gregmap): ... this.
5680         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5681         regmaps.
5682         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5683         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5684         (sparc64obsd_gregmap): ... this.
5685         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5686         regmaps.
5687         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5688         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5689         (sparc32nbsd_gregmap): ... this.
5690         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5691         regmaps.
5692
5693 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5694
5695         * score-tdep.c (score7_linux_gregset): New static regset
5696         structure.
5697         (score7_linux_regset_from_core_section): Remove dynamic regset
5698         allocation.
5699         (score_gdbarch_init): Drop allocation of tdep structure.
5700         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5701
5702 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5703
5704         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5705         regset structures.
5706         (am33_regset_from_core_section): Remove dynamic regset
5707         allocations.
5708
5709 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5710
5711         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5712         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5713         structures.
5714         (mips_linux_regset_from_core_section): Remove dynamic regset
5715         allocations.
5716         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5717         'gregset64', 'fpregset', and 'fpregset64'.
5718         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5719         deleted tdep fields.
5720
5721 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5722
5723         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5724         regset structures.
5725         (amd64_regset_from_core_section): Remove dynamic regset
5726         allocations.
5727         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5728         structure.
5729         (amd64obsd_regset_from_core_section): Remove dynamic regset
5730         allocation.
5731         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5732         Likewise.
5733         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5734         x86-common regset supply function.
5735         * i386-tdep.c (i386_collect_gregset): Make static.
5736         (i386_gregset): New global regset structure.
5737         (i386_fpregset, i386_xstateregset): New static regset structures.
5738         (i386_regset_from_core_section): Remove dynamic regset
5739         allocations.
5740         (i386_gdbarch_init): Remove initialization of tdep fields
5741         'gregset', 'fpregset', and 'xstateregset'.
5742         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5743         'fpregset', and 'xstateregset'.
5744         (i386_collect_gregset): Remove prototype.
5745         (i386_gregset): New declaration.
5746         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5747         structure.
5748         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5749         allocation.
5750
5751 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5752
5753         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5754         (arm_linux_vfpregset): New static regset structures.
5755         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5756         regset structures.
5757         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5758         and 'vfpregset' fields.
5759
5760 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5761
5762         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5763         (aarch64_linux_fpregset): New static regset structures.
5764         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5765         of regset structures.
5766         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5767         'fpregset' fields.
5768
5769 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5770
5771         * regset.h (struct regset): Remove gdbarch field.
5772         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5773         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5774         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5775         Likewise.
5776         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5777         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5778         (ppc32_linux_vsxregset): Likewise.
5779         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5780         via the regcache instead of the regset.
5781         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5782         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5783         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5784         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5785         Likewise.
5786
5787 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5788
5789         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5790         Constify structures.
5791         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5792         (alphanbsd_aout_gregset): Likewise.
5793         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5794         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5795         Likewise.
5796         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5797         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5798         Likewise.
5799         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5800         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5801         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5802         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5803         * m88k-tdep.c (m88k_gregset): Likewise.
5804         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5805         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5806         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5807         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5808         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5809         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5810         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5811         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5812         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5813         Likewise.
5814         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5815         * sh-tdep.h (sh_corefile_gregset): Likewise.
5816         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5817         * vax-tdep.c (vax_gregset): Likewise.
5818
5819 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5820
5821         Fix TLS access for -static -pthread.
5822         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5823         (try_thread_db_load_1): Initialize it.
5824         (thread_db_get_thread_local_address): Call it if LM is zero.
5825         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5826         * target.h (struct target_ops) (to_get_thread_local_address): Add
5827         load_module_addr comment.
5828
5829 2014-05-21  Pedro Alves  <palves@redhat.com>
5830
5831         * dcache.c (dcache_read_memory_partial): If reading the cache line
5832         fails, fallback to reading just the memory the caller wanted.
5833
5834 2014-05-20  Doug Evans  <dje@google.com>
5835
5836         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5837         instead of get_current_arch.
5838
5839 2014-05-20  Pedro Alves  <palves@redhat.com>
5840
5841         * NEWS: Mention that compare-sections now works with all targets.
5842
5843         * remote.c (PACKET_qCRC): New enum value.
5844         (remote_verify_memory): Don't send qCRC if the target has no
5845         execution.  Use packet_support/packet_ok.  If the target doesn't
5846         support the qCRC packet, fallback to a deep memory copy.
5847         (compare_sections_command): Say "target image" instead of "remote
5848         executable".
5849         (_initialize_remote): Add PACKET_qCRC to the list of config
5850         packets that have no associated command.  Extend comment.
5851         * target.c (simple_verify_memory, default_verify_memory): New
5852         function.
5853         * target.h (struct target_ops) <to_verify_memory>: Default to
5854         default_verify_memory.
5855         (simple_verify_memory): New declaration.
5856         * target-delegates.c: Regenerate.
5857
5858 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5859
5860         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5861
5862 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5863             Yao Qi  <yao@codesourcery.com>
5864
5865         PR backtrace/16558
5866         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5867         and change address of sp and pc.
5868
5869 2014-05-19  Tom Tromey  <tromey@redhat.com>
5870
5871         * gdbtypes.c (rank_function): Use XNEWVEC.
5872         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5873
5874 2014-05-19  Doug Evans  <dje@google.com>
5875
5876         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5877         build_type_unit_groups and moved closer to only caller.  Remove
5878         arguments.  All references updated.  Remove outdated .gdb_index
5879         comment.
5880         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5881         build_type_psymtabs_1.
5882
5883 2014-05-19  Doug Evans  <dje@google.com>
5884
5885         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5886         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5887         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5888         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5889         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5890         (add_type_unit_group_to_table): Delete.
5891
5892 2014-05-19  Doug Evans  <dje@google.com>
5893
5894         * eval.c (evaluate_subexp_standard): Add some comments.
5895
5896 2014-05-17  Doug Evans  <xdje42@gmail.com>
5897
5898         * progspace.c (remove_program_space): Delete, unused.
5899         * progspace.h (remove_program_space): Ditto.
5900
5901 2014-05-17  Doug Evans  <xdje42@gmail.com>
5902
5903         * inferior.c (prune_inferiors): Fix comment.
5904         (remove_inferior_command): Call prune_program_spaces.
5905
5906 2014-05-16  Doug Evans  <dje@google.com>
5907
5908         New command line option -D.
5909         * NEWS: Mention it.
5910         * main.c (set_gdb_data_directory): New function.
5911         (captured_main): Recognize -D.  Flag error for --data-directory "".
5912         Call set_gdb_data_directory.
5913         (print_gdb_help): Print --data-directory, -D.
5914         * main.h (set_gdb_data_directory): Declare.
5915         * top.c (staged_gdb_datadir): New static global.
5916         (set_gdb_datadir): Call set_gdb_data_directory
5917         (show_gdb_datadir): New function.
5918         (init_main): Update init of data-directory parameter.
5919
5920 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5921
5922         Import the "dirfd" gnulib module.
5923         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5924         * gnulib/aclocal.m4: Update.
5925         * gnulib/config.in: Update.
5926         * gnulib/configure: Update.
5927         * gnulib/import/Makefile.am: Update.
5928         * gnulib/import/Makefile.in: Update.
5929         * gnulib/import/dirfd.c: New.
5930         * gnulib/import/m4/dirfd.m4: New.
5931         * gnulib/import/m4/gnulib-cache.m4: Update.
5932         * gnulib/import/m4/gnulib-comp.m4: Update.
5933
5934 2014-05-16  Pierre Muller  <muller@sourceware.org>
5935             Yao Qi  <yao@codesourcery.com>
5936
5937         * valprint.c (print_wchar): Move the code on checking whether
5938         W is a printable wide char to the default branch of switch
5939         statement below.  Call wchar_printable instead of gdb_iswprint.
5940
5941 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
5942
5943         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5944         ldr.w and ldrd instructions.
5945
5946 2014-05-15  Doug Evans  <dje@google.com>
5947
5948         * dwarf2read.c (read_structure_type): Delete outdated comments.
5949
5950 2014-05-14  Tom Tromey  <tromey@redhat.com>
5951
5952         * macrocmd.c (print_macro_definition): Reindent.
5953
5954 2014-05-13  Doug Evans  <xdje42@gmail.com>
5955
5956         * python/py-cmd.c (cmdpy_completer): Add comment.
5957         (completers): Make const.
5958
5959 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
5960
5961         * infrun.c (resume): Remove should_resume (unused).  Move up
5962         declaration of resume_ptid.
5963
5964 2014-05-13  Tom Tromey  <tromey@redhat.com>
5965
5966         * language.h (unop_type_check): Remove.
5967         (binop_type_check): Don't declare.
5968
5969 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
5970
5971         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5972         call to regcache_raw_collect.
5973
5974 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5975
5976         * mi/mi-console.c (mi_console_raw_packet): Use the value from
5977         mi_console->quote as the quoting character.
5978
5979 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5980
5981         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5982
5983 2014-04-29  Tom Tromey  <tromey@redhat.com>
5984
5985         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5986         "show debug varobj".
5987
5988 2014-05-07  Kyle McMartin  <kyle@redhat.com>
5989
5990         Pushed by Joel Brobecker  <brobecker@adacore.com>.
5991         * aarch64-tdep.c (aarch64_software_single_step): New function.
5992         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5993         with aarch64_software_single_step.
5994
5995 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
5996
5997         GDB 7.7.1 released.
5998
5999 2014-05-05  Keith Seitz  <keiths@redhat.com>
6000
6001         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6002         variable or history value is successfully parsed.
6003
6004 2014-05-05  Yao Qi  <yao@codesourcery.com>
6005             Pedro Alves  <palves@redhat.com>
6006
6007         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6008         address of blocks that intersects the requested range.  Trim
6009         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6010         sections.
6011         * ctf.c (ctf_xfer_partial): Likewise.
6012
6013 2014-05-05  Yao Qi  <yao@codesourcery.com>
6014
6015         * printcmd.c (display_command): Remove the check to
6016         target_has_execution.
6017
6018 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6019
6020         * ppcobsd-nat.c: Include "obsd-nat.h".
6021         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6022         add_target.
6023         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6024
6025 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6026
6027         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6028         and 16-bit signed and unsigned arguments.  Update comment.
6029         (stap_parse_probe_arguments): Extend code to handle such
6030         arguments.  Use warning instead of complaint to notify about
6031         unrecognized bitness.
6032
6033 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6034
6035         PR breakpoints/16889
6036         * stap-probe.c (stap_parse_probe_arguments): Simplify
6037         check for non-prefixed probes (i.e., probes whose
6038         arguments do not start with "N@").  Always set the
6039         argument type to a sane value.
6040
6041 2014-05-01  David Taylor  <dtaylor@emc.com>
6042
6043         * remote.c (compare_sections_command): Add -r option to compare
6044         all loadable read-only sections.
6045
6046 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6047
6048         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6049         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6050         Update all callers.
6051         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6052         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6053         Remove unused CORE_ADDR argument.  Update all callers.
6054
6055 2014-04-29  Pedro Alves  <palves@redhat.com>
6056
6057         * remote.c (struct packet_config) <detect>: Extend comment.
6058         (add_packet_config_cmd): Don't set the config's detect or support
6059         fields here.
6060         (init_all_packet_configs): Also initialize the config's 'detect'
6061         field.
6062         (reset_all_packet_configs_support): New function.
6063         (remote_open_1): Call reset_all_packet_configs_support instead of
6064         init_all_packet_configs.
6065         (_initialize_remote): Initialize all packet configs.  Assert that
6066         all packets have an associated command, except a few known
6067         outliers.
6068
6069 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6070
6071         * dwarf2read.c (read_subrange_type): Handle dynamic
6072         DW_AT_lower_bound attributes.
6073
6074 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6075
6076         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6077         dynamic bounds before computing its upper bound.
6078         (ada_discrete_type_low_bound): Same as above with the lower bound.
6079
6080 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6081
6082         * dwarf2read.c (is_dynamic_type): Return true for dynamic
6083         range types.  Adjust the array handling implementation to
6084         take advantage of this change.
6085         (resolve_dynamic_range): New function, mostly extracted from
6086         resolve_dynamic_bounds.
6087         (resolve_dynamic_array): New function, mostly extracted from
6088         resolve_dynamic_bounds.
6089         (resolve_dynamic_bounds): Delete.
6090         (resolve_dynamic_type): Reimplement.  Add handling of
6091         TYPE_CODE_RANGE types.
6092
6093 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6094
6095         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6096         handling of parallel ___XA types.
6097
6098 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6099
6100         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6101         unnecessary second call to static_unwrap_type.
6102
6103 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6104
6105         * stack.c (print_frame_info): Call do_gdb_disassembly with
6106         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6107
6108 2014-04-26  Doug Evans  <xdje42@gmail.com>
6109
6110         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6111
6112 2014-04-25  Pedro Alves  <palves@redhat.com>
6113
6114         PR server/16255
6115         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6116         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
6117         and newline from built string.
6118         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6119         (linux_ptrace_attach_fail_reason): ... this.
6120         * linux-nat.c (linux_nat_attach): Adjust to use
6121         linux_ptrace_attach_fail_reason.
6122
6123 2014-04-25  Pedro Alves  <palves@redhat.com>
6124
6125         * remote.c (struct remote_state): Remove multi_process_aware,
6126         non_stop_aware, cond_tracepoints, cond_breakpoints,
6127         breakpoint_commands, fast_tracepoints, static_tracepoints,
6128         install_in_trace, disconnected_tracing,
6129         enable_disable_tracepoints, string_tracing, and
6130         augmented_libraries_svr4_read fields.
6131         (remote_multi_process_p): Move further below in the file.
6132         (struct packet_config): Add comments.
6133         (update_packet_config): Delete function.
6134         (show_packet_config_cmd): Use packet_config_support.
6135         (add_packet_config_cmd): Use NULL as set callback.
6136         (packet_ok): "set remote foo-packet"-style commands no longer
6137         change config->supported -- adjust.
6138         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6139         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6140         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6141         (PACKET_QNonStop, PACKET_multiprocess_feature)
6142         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6143         (PACKET_DisconnectedTracing_feature)
6144         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6145         (set_remote_protocol_packet_cmd): Delete function.
6146         (packet_config_support, packet_support): New functions.
6147         (set_remote_protocol_Z_packet_cmd): Don't call
6148         update_packet_config.
6149         (remote_query_attached, remote_pass_signals)
6150         (remote_program_signals, remote_threads_info)
6151         (remote_threads_extra_info, remote_start_remote): Use
6152         packet_support.
6153         (remote_start_remote): Use packet_config_support and
6154         packet_support.
6155         (init_all_packet_configs): Set all packets to unknown support,
6156         instead of calling update_packet_config.
6157         (remote_check_symbols): Use packet_support.
6158         (remote_supported_packet): Unconditionally set the packet config's
6159         support status.
6160         (remote_multi_process_feature, remote_non_stop_feature)
6161         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6162         (remote_breakpoint_commands_feature)
6163         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6164         (remote_install_in_trace_feature)
6165         (remote_disconnected_tracing_feature)
6166         (remote_enable_disable_tracepoint_feature)
6167         (remote_string_tracing_feature)
6168         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6169         (remote_protocol_features): Adjust to use remote_supported_packet
6170         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6171         "ConditionalTracepoints", "ConditionalBreakpoints",
6172         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6173         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6174         "EnableDisableTracepoints", and "tracenz".
6175         (remote_query_supported): Use packet_support.
6176         (remote_open_1): Adjust.
6177         (extended_remote_attach_1): Use packet_support.  Switch on the
6178         result of packet_ok instead of checking whether the packet ended
6179         up disabled.
6180         (remote_vcont_resume): Use packet_support.
6181         (remote_resume, remote_stop_ns, fetch_register_using_p)
6182         (remote_prepare_to_store, store_register_using_P)
6183         (check_binary_download, remote_write_bytes): Use packet_support.
6184         (remote_vkill): Use packet_support.  Switch on the result of
6185         packet_ok instead of checking whether the packet ended up
6186         disabled.
6187         (extended_remote_supports_disable_randomization): Use
6188         packet_support.
6189         (extended_remote_run): Switch on the result of packet_ok instead
6190         of checking whether the packet ended up disabled.
6191         (remote_insert_breakpoint, remote_remove_breakpoint)
6192         (remote_insert_watchpoint, remote_remove_watchpoint)
6193         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6194         packet_support.
6195         (remote_search_memory): Use packet_config_support.
6196         (remote_get_thread_local_address, remote_get_tib_address)
6197         (remote_hostio_send_command, remote_can_execute_reverse): Use
6198         packet_support.
6199         (remote_supports_cond_tracepoints)
6200         (remote_supports_cond_breakpoints)
6201         (remote_supports_fast_tracepoints)
6202         (remote_supports_static_tracepoints)
6203         (remote_supports_install_in_trace)
6204         (remote_supports_enable_disable_tracepoint)
6205         (remote_supports_string_tracing)
6206         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6207         the packet config says the feature is enabled or disabled.
6208         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6209         (remote_get_trace_status): Use packet_support.
6210         (remote_set_disconnected_tracing): Adjust to check whether the
6211         feature is enabled with packet_support.
6212         (remote_set_trace_buffer_size, remote_use_agent)
6213         (remote_can_use_agent, remote_supports_btrace): Use
6214         packet_support.
6215         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6216         Use packet_config_support.
6217         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6218         the packet config says the feature is enabled or disabled.
6219         (set_range_stepping): Use packet_support.
6220
6221 2014-04-25  Tom Tromey  <tromey@redhat.com>
6222
6223         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6224         argument.
6225
6226 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6227
6228         * NEWS: Mention support for C99 variable length arrays.
6229
6230 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6231
6232         * ada-lang.c (standard_exc): Expand introductory comment.
6233
6234 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6235             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6236
6237         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6238         AVX512 registers.
6239         (amd64_linux_read_description): Add code to handle AVX512 xstate
6240         mask and return respective tdesc.
6241         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6242         and features/i386/x32-avx512-linux.c.
6243         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6244         (amd64_linux_core_read_description): Add code to handle AVX512
6245         xstate mask and return respective tdesc.
6246         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6247         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6248         calculation.
6249         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6250         (tdesc_amd64_avx512_linux): New prototype.
6251         (tdesc_x32_avx512_linux): Likewise.
6252         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6253         features/i386/x32-avx512.c.
6254         (amd64_ymm_avx512_names): New register names for pseudo
6255         registers YMM16-31.
6256         (amd64_ymmh_avx512_names): New register names for raw registers
6257         YMMH16-31.
6258         (amd64_k_names): New register names for K registers.
6259         (amd64_zmmh_names): New register names for ZMM raw registers.
6260         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6261         (amd64_xmm_avx512_names): New register names for XMM16-31
6262         registers.
6263         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6264         registers.
6265         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6266         if feature is present.
6267         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6268         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6269         (AMD64_NUM_REGS): Adjust to new number of registers.
6270         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6271         registers supplied via XSTATE by AVX512 registers.
6272         (i386_linux_read_description): Add case for AVX512.
6273         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6274         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6275         (i386_linux_core_read_description): Add case for AVX512.
6276         (i386_linux_init_abi): Install supported register note section
6277         for AVX512.
6278         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6279         AVX512.
6280         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6281         registers to be number of zmm7h + 1.
6282         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6283         * i386-tdep.c: Include features/i386/i386-avx512.c.
6284         (i386_zmm_names): Add ZMM pseudo register names array.
6285         (i386_zmmh_names): Add ZMM raw register names array.
6286         (i386_k_names): Add K raw register names array.
6287         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6288         registers. AVX512 has 16 more ZMM registers than there are YMM
6289         registers.
6290         (i386_zmmh_regnum_p): Add function to look up register number of
6291         ZMM raw registers.
6292         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6293         (i386_k_regnum_p): Likewise for K raw registers.
6294         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6295         registers added by AVX512.
6296         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6297         registers added by AVX512.
6298         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6299         added by AVX512.
6300         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6301         (i386_pseudo_register_name): Add ZMM pseudo registers.
6302         (i386_zmm_type): Construct and return vector registers type for ZMM
6303         registers.
6304         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6305         ZMM0-31 pseudo registers and K registers.
6306         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6307         and YMM16-31 registers from register cache.
6308         (i386_pseudo_register_write): Add code to write  K, ZMM and
6309         YMM16-31 registers.
6310         (i386_register_reggroup_p): Add code to include/exclude AVX512
6311         registers in/from respective register groups.
6312         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6313         registers if feature is present in xcr0.
6314         (i386_gdbarch_init): Add code to initialize AVX512 feature
6315         variables in tdep structure, wire in pseudo registers and call
6316         initialize_tdesc_i386_avx512.
6317         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6318         variables.
6319         (i386_regnum): Add AVX512 registers.
6320         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6321         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6322         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6323         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6324         512 bits wide.
6325         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6326         (i386_ymm_avx512_regnum_p): Likewise.
6327         (i386_k_regnum_p): Likewise.
6328         (i386_zmm_regnum_p): Likewise.
6329         (i386_zmmh_regnum_p): Likewise.
6330         * i387-tdep.c : Update year in copyright notice.
6331         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6332         XSAVE buffer.
6333         (XSAVE_YMM_AVX512_ADDR): New macro.
6334         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6335         XSAVE buffer.
6336         (XSAVE_XMM_AVX512_ADDR): New macro.
6337         (xsave_avx512_k_offset): New table for K register offsets in
6338         XSAVE buffer.
6339         (XSAVE_AVX512_K_ADDR): New macro.
6340         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6341         in XSAVE buffer.
6342         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6343         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6344         buffer.
6345         (i387_collect_xsave): Add code to collect AVX512 registers from
6346         XSAVE buffer.
6347         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6348         of XMM16-31 registers.
6349         (I387_NUM_K_REGS): New define for number of K registers.
6350         (I387_K0_REGNUM): New define for K0 register number.
6351         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6352         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6353         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6354         registers.
6355         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6356         (I387_XMM16_REGNUM): New define for XMM16 register number.
6357         (I387_YMM0_REGNUM): New define for YMM0 register number.
6358         (I387_KEND_REGNUM): New define for last K register number.
6359         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6360         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6361         number.
6362         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6363         number.
6364         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6365         size.
6366         * features/Makefile: Add AVX512 related files.
6367         * features/i386/32bit-avx512.xml: New file.
6368         * features/i386/64bit-avx512.xml: Likewise.
6369         * features/i386/amd64-avx512-linux.c: Likewise.
6370         * features/i386/amd64-avx512-linux.xml: Likewise.
6371         * features/i386/amd64-avx512.c: Likewise.
6372         * features/i386/amd64-avx512.xml: Likewise.
6373         * features/i386/i386-avx512-linux.c: Likewise.
6374         * features/i386/i386-avx512-linux.xml: Likewise.
6375         * features/i386/i386-avx512.c: Likewise.
6376         * features/i386/i386-avx512.xml: Likewise.
6377         * features/i386/x32-avx512-linux.c: Likewise.
6378         * features/i386/x32-avx512-linux.xml: Likewise.
6379         * features/i386/x32-avx512.c: Likewise.
6380         * features/i386/x32-avx512.xml: Likewise.
6381         * regformats/i386/amd64-avx512-linux.dat: New file.
6382         * regformats/i386/amd64-avx512.dat: Likewise.
6383         * regformats/i386/i386-avx512-linux.dat: Likewise.
6384         * regformats/i386/i386-avx512.dat: Likewise.
6385         * regformats/i386/x32-avx512-linux.dat: Likewise.
6386         * regformats/i386/x32-avx512.dat: Likewise.
6387         * NEWS: Add note about new support for AVX512.
6388
6389
6390 2014-04-23  Pedro Alves  <palves@redhat.com>
6391
6392         * breakpoint.c (insert_bp_location): Tolerate errors if the
6393         breakpoint is set in a user-loaded objfile.
6394         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6395         location is marked shlib_disabled.  If the breakpoint is set in a
6396         user-loaded objfile is a GDB-side memory breakpoint, validate it
6397         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6398         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6399         flag.
6400         * mem-break.c (memory_validate_breakpoint): New function.
6401         * objfiles.c (userloaded_objfile_contains_address_p): New
6402         function.
6403         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6404         * target.h (memory_validate_breakpoint): New declaration.
6405
6406 2014-04-23  Pedro Alves  <palves@redhat.com>
6407
6408         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6409         the breakpoint is set in a shared library, only suppress
6410         errors for software breakpoints, not hardware breakpoints.
6411
6412 2014-04-22  Pedro Alves  <palves@redhat.com>
6413
6414         * infrun.c (schedlock_applies): New function, factored out from
6415         find_thread_needs_step_over.
6416         (find_thread_needs_step_over): Use it.
6417         (switch_back_to_stepped_thread): Always clear trap_expected if the
6418         step over is finished.  Return early if scheduler locking applies.
6419         Look for the stepping thread and a potential step-over thread with
6420         a single loop.
6421         (currently_stepping_or_nexting_callback): Delete.
6422
6423 2014-04-22  Nick Clifton  <nickc@redhat.com>
6424
6425         * NEWS: Mention that ARM sim now supports tracing.
6426
6427 2014-04-22  Yao Qi  <yao@codesourcery.com>
6428
6429         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6430         to ...
6431         * tracefile.c (tracefile_fetch_registers): ... it.  New
6432         function.
6433         * tracefile.h (tracefile_fetch_registers): Declare.
6434         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6435         tracefile_fetch_registers.
6436
6437 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6438
6439         PR gdb/14018
6440         * windows-nat.c (thread_rec): Don't display a warning when
6441         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6442         fails for any reason, set th->suspended to -1, so that we don't
6443         try to resume such a thread.  Also, don't return NULL in these
6444         cases, to avoid completely ruin the session due to "PC register is
6445         not available" error.
6446         (do_windows_fetch_inferior_registers): Check errors in
6447         GetThreadContext call.
6448         (windows_continue): Accept an additional argument KILLED; if not
6449         zero, ignore errors in the SetThreadContext call, since the
6450         inferior was killed and is shutting down.
6451         (windows_resume, get_windows_debug_event)
6452         (windows_create_inferior, windows_mourn_inferior)
6453         (windows_kill_inferior): All callers of windows_continue changed
6454         to adjust to its new calling sequence.
6455
6456 2014-04-19  Yao Qi  <yao@codesourcery.com>
6457
6458         * ctf.c (ctf_open): Call post_create_inferior.
6459
6460 2014-04-19  Yao Qi  <yao@codesourcery.com>
6461
6462         * ctf.c (handle_id): New static variable.
6463         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6464         value.  Get the declaration of event "register" and get length
6465         of field "contents".
6466
6467 2014-04-19  Yao Qi  <yao@codesourcery.com>
6468
6469         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6470
6471 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6472
6473         * valops.c (oload_method_static): Remove unnecessary argument
6474         METHOD.  Update all callers.
6475
6476 2014-04-18  Pedro alves  <palves@redhat.com>
6477             Tom Tromey  <tromey@redhat.com>
6478
6479         PR backtrace/15558
6480         * frame.c (get_prev_frame_1): Rename to ...
6481         (get_prev_frame_always): ... this, and make extern.  Adjust.
6482         (skip_artificial_frames): Use get_prev_frame_always.
6483         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6484         (get_frame_unwind_stop_reason): Adjust to rename.
6485         * frame.h (get_prev_frame_always): Declare.
6486         * inline-frame.c: Include frame.h.
6487         (inline_frame_this_id): Use get_prev_frame_always.
6488
6489 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6490
6491         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6492         code by using bfd_mach_o_get_base_address.
6493
6494 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6495
6496         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6497         (spu_ax_pseudo_register_collect): New function.
6498         (spu_ax_pseudo_register_push_stack): Likewise.
6499         (spu_dwarf_reg_to_regnum): Likewise.
6500         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6501
6502 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6503
6504         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6505         Replace FRAME argument with FRAME_ID.
6506         * gdbarch.c, gdbarch.h: Regenerate.
6507         * findvar.c (default_value_from_register): Add GDBARCH argument;
6508         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6509         (value_from_register): Update call to gdbarch_value_from_register.
6510         * value.h (default_value_from_register): Update prototype.
6511         * s390-linux-tdep.c (s390_value_from_register): Update interface
6512         and call to default_value_from_register.
6513         * spu-tdep.c (spu_value_from_register): Likewise.
6514
6515         * findvar.c (address_from_register): Remove TYPE argument.
6516         Do not call value_from_register; use gdbarch_value_from_register
6517         with null_frame_id instead.
6518         * value.h (address_from_register): Update prototype.
6519         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6520         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6521         address_from_register interface change.
6522
6523 2014-04-17  Yao Qi  <yao@codesourcery.com>
6524
6525         * gdbtypes.h: Update comments to link to types and macros'
6526         definitions.
6527
6528 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6529
6530         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6531
6532 2014-04-16  Keith Seitz  <keiths@redhat.com>
6533
6534         PR gdb/15827
6535         * dwarf2read.c (skip_one_die): Check that all relative-offset
6536         sibling DIEs fall within range of the current reader's buffer.
6537         (read_partial_die): Likewise.
6538
6539 2014-04-16  Keith Seitz  <keiths@redhat.com>
6540
6541         PR c++/16597
6542         * cp-namespace.c (lookup_symbol_file): If the type name of
6543         `this' is NULL, return immediately.
6544
6545 2014-04-14  Keith Seitz  <keiths@redhat.com>
6546
6547         PR c++/16253
6548         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6549         from symbol_matches_domain in symtab.c. All local callers
6550         of symbol_matches_domain updated.
6551         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6552         search STRUCT_DOMAIN.
6553         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6554         independently.  standard_lookup will do that automatically.
6555         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6556         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6557         (cp_lookup_symbol_in_namespace): Likewise.
6558         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6559         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6560         may return a STRUCT_DOMAIN match.
6561         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6562         * cp-support.c: Include language.h.
6563         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6564         VAR_DOMAIN.
6565         * psymtab.c (match_partial_symbol): Compare the requested
6566         domain with the symbol's domain directly.
6567         (lookup_partial_symbol): Likewise.
6568         * symtab.c (lookup_symbol_in_language): Explain when/why
6569         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6570         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6571         appropriate languages.
6572         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6573         and moved to ada-lang.c
6574         (lookup_block_symbol): Explain that this function only returns
6575         symbol matching the requested DOMAIN.
6576         Compare the requested domain with the symbol's domain directly.
6577         (iterate_over_symbols): Compare the requested domain with the
6578         symbol's domain directly.
6579         * symtab.h (symbol_matches_domain): Remove.
6580
6581 2014-04-14  Tom Tromey  <tromey@redhat.com>
6582
6583         PR c++/15246:
6584         * c-exp.y (type_aggregate_p): New function.
6585         (qualified_name, classify_inner_name): Use it.
6586         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6587         and TYPE_TARGET_TYPE of an enum type.
6588         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6589         an enum type.
6590         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6591         handle TYPE_DECLARED_CLASS.
6592         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6593         types.
6594         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6595         * valops.c (enum_constant_from_type): New function.
6596         (value_aggregate_elt): Use it.
6597         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6598         TYPE_CODE_ENUM.
6599
6600 2014-04-14  Tom Tromey  <tromey@redhat.com>
6601
6602         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6603         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6604         const.
6605         * value.h (value_aggregate_elt): Update.
6606
6607 2014-04-14  Tom Tromey  <tromey@redhat.com>
6608
6609         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6610
6611 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6612
6613         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6614         (evaluate_subexp_standard): Pass noside argument.
6615         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6616         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6617         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6618         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6619         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6620
6621 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6622
6623         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6624         points to a constant blob.
6625
6626 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6627
6628         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6629         property and store it as the high bound and flag the range accordingly.
6630         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6631         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6632         * gdbtypes.h (enum range_flags): New enum.
6633         (struct range_bounds): Add flags member.
6634
6635 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6636
6637         * c-typeprint.c (c_type_print_varspec_suffix): Added
6638         check for not yet resolved high bound. If unresolved, print
6639         "variable length" string to the console instead of random
6640         length.
6641
6642 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6643
6644         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6645         value.
6646         (ada_template_to_fixed_record_type_1): Likewise.
6647         (ada_to_fixed_type_1): Likewise.
6648         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6649         (cp_print_value): Likewise.
6650         * d-valprint.c (dynamic_array_type): Likewise.
6651         * findvar.c (address_of_variable): Likewise.
6652         * jv-valprint.c (java_value_print): Likewise.
6653         * valops.c (value_ind): Likewise.
6654         * value.c (coerce_ref): Likewise.
6655
6656 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6657
6658         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6659         value and retrieve the dynamic type size.
6660
6661 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6662
6663         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6664         passed to sizeof is dynamic evaluate the argument to compute the length.
6665
6666 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6667             Joel Brobecker  <brobecker@adacore.com>
6668
6669         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6670         (dwarf2_evaluate_property): New function.
6671         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6672         * dwarf2read.c (attr_to_dynamic_prop): New function.
6673         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6674         attribute.
6675         * gdbtypes.c: Include dwarf2loc.h.
6676         (is_dynamic_type): New function.
6677         (resolve_dynamic_type): New function.
6678         (resolve_dynamic_bounds): New function.
6679         (get_type_length): New function.
6680         (check_typedef): Use get_type_length to compute type length.
6681         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6682         (TYPE_LOW_BOUND_KIND): New macro.
6683         (is_dynamic_type): New function prototype.
6684         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6685         to resolve dynamic properties of the type. Update comment.
6686         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6687
6688 2014-04-14  Richard Henderson  <rth@redhat.com>
6689
6690         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6691
6692 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6693             Doug Evans  <xdje42@gmail.com>
6694
6695         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6696         dereference TYPE_CODE_REF values.
6697
6698 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6699
6700         Revert the following changes due to regressions:
6701
6702         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6703         (dwarf2_evaluate_property): New function.
6704         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6705         * dwarf2read.c (attr_to_dynamic_prop): New function.
6706         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6707         attribute.
6708         * gdbtypes.c: Include dwarf2loc.h.
6709         (is_dynamic_type): New function.
6710         (resolve_dynamic_type): New function.
6711         (resolve_dynamic_bounds): New function.
6712         (get_type_length): New function.
6713         (check_typedef): Use get_type_length to compute type length.
6714         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6715         (TYPE_LOW_BOUND_KIND): New macro.
6716         (is_dynamic_type): New function prototype.
6717         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6718         to resolve dynamic properties of the type. Update comment.
6719         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6720
6721         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6722         passed to sizeof is dynamic evaluate the argument to compute the length.
6723
6724         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6725         value and retrieve the dynamic type size.
6726
6727         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6728         (ada_template_to_fixed_record_type_1): Likewise.
6729         (ada_to_fixed_type_1): Likewise.
6730         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6731         (cp_print_value): Likewise.
6732         * d-valprint.c (dynamic_array_type): Likewise.
6733         * eval.c (evaluate_subexp_with_coercion): Likewise.
6734         * findvar.c (address_of_variable): Likewise.
6735         * jv-valprint.c (java_value_print): Likewise.
6736         * valops.c (value_ind): Likewise.
6737         * value.c (coerce_ref): Likewise.
6738
6739         * c-typeprint.c (c_type_print_varspec_suffix): Added
6740         check for not yet resolved high bound. If unresolved, print
6741         "variable length" string to the console instead of random
6742         length.
6743
6744         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6745         property and store it as the high bound and flag the range accordingly.
6746         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6747         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6748         * gdbtypes.h (enum range_flags): New enum.
6749         (struct range_bounds): Add flags member.
6750
6751         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6752         points to a constant blob.
6753
6754         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6755         (evaluate_subexp_standard): Pass noside argument.
6756         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6757         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6758         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6759         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6760         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6761
6762 2014-04-11  Keith Seitz  <keiths@redhat.com>
6763
6764         PR c++/16675
6765         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6766         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6767         reference types.
6768
6769 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6770
6771         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6772         (evaluate_subexp_standard): Pass noside argument.
6773         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6774         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6775         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6776         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6777         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6778
6779 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6780
6781         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6782         points to a constant blob.
6783
6784 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6785
6786         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6787         property and store it as the high bound and flag the range accordingly.
6788         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6789         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6790         * gdbtypes.h (enum range_flags): New enum.
6791         (struct range_bounds): Add flags member.
6792
6793 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6794
6795         * c-typeprint.c (c_type_print_varspec_suffix): Added
6796         check for not yet resolved high bound. If unresolved, print
6797         "variable length" string to the console instead of random
6798         length.
6799
6800 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6801
6802         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6803         (ada_template_to_fixed_record_type_1): Likewise.
6804         (ada_to_fixed_type_1): Likewise.
6805         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6806         (cp_print_value): Likewise.
6807         * d-valprint.c (dynamic_array_type): Likewise.
6808         * eval.c (evaluate_subexp_with_coercion): Likewise.
6809         * findvar.c (address_of_variable): Likewise.
6810         * jv-valprint.c (java_value_print): Likewise.
6811         * valops.c (value_ind): Likewise.
6812         * value.c (coerce_ref): Likewise.
6813
6814 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6815
6816         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6817         value and retrieve the dynamic type size.
6818
6819 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6820
6821         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6822         passed to sizeof is dynamic evaluate the argument to compute the length.
6823
6824 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6825
6826         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6827         (dwarf2_evaluate_property): New function.
6828         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6829         * dwarf2read.c (attr_to_dynamic_prop): New function.
6830         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6831         attribute.
6832         * gdbtypes.c: Include dwarf2loc.h.
6833         (is_dynamic_type): New function.
6834         (resolve_dynamic_type): New function.
6835         (resolve_dynamic_bounds): New function.
6836         (get_type_length): New function.
6837         (check_typedef): Use get_type_length to compute type length.
6838         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6839         (TYPE_LOW_BOUND_KIND): New macro.
6840         (is_dynamic_type): New function prototype.
6841         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6842         to resolve dynamic properties of the type. Update comment.
6843         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6844
6845 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6846
6847         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6848         declaring high/low bounds and change uses accordingly. Call
6849         create_range_type instead of create_static_range_type.
6850         * gdbtypes.c (create_range_type): New function.
6851         (create_range_type): Convert bounds into struct bound_prop and pass
6852         them to create_range_type.
6853         * gdbtypes.h (struct bound_prop): New struct.
6854         (create_range_type): New function prototype.
6855         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6856         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6857         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6858         part of the bound.
6859         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6860
6861 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6862
6863         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6864         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6865         * ada-lang.c: All uses of create_range_type updated.
6866         * coffread.c: All uses of create_range_type updated.
6867         * dwarf2read.c: All uses of create_range_type updated.
6868         * f-exp.y: All uses of create_range_type updated.
6869         * m2-valprint.c: All uses of create_range_type updated.
6870         * mdebugread.c: All uses of create_range_type updated.
6871         * stabsread.c: All uses of create_range_type updated.
6872         * valops.c: All uses of create_range_type updated.
6873         * valprint.c: All uses of create_range_type updated.
6874
6875 2014-04-10  Pedro Alves  <palves@redhat.com>
6876
6877         * breakpoint.c (single_step_breakpoints)
6878         (single_step_gdbarch): Move up in the file.
6879         (one_breakpoint_xfer_memory): New function, factored out from ...
6880         (breakpoint_xfer_memory): ... here.  Also process single-step
6881         breakpoints.
6882
6883 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6884
6885         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6886         comments.
6887         (darwin_decode_exception_message): Free port only after use.
6888
6889 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6890
6891         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6892         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6893         when setting the size of call_length.
6894
6895 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6896
6897         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6898         dereference TYPE_CODE_REF values.
6899
6900 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6901
6902         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6903         end of warning message.
6904
6905 2014-04-03  Doug Evans  <dje@google.com>
6906
6907         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6908         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6909
6910 2014-04-02  Alan Modra  <amodra@gmail.com>
6911
6912         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6913         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6914         (struct symbol_file_add_from_memory_args): Add size field.
6915         (find_vdso_size): New function.
6916         (add_vsyscall_page): Attempt to find vdso size.
6917
6918 2014-04-01  Doug Evans  <dje@google.com>
6919
6920         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6921
6922 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6923
6924         * darwin-nat.c (darwin_encode_reply): Add prototype.
6925         (darwin_decode_exception_message): Reply to unknown inferiors.
6926         (darwin_decode_message): Handle message by id.  Ignore message
6927         to unknown inferior.
6928         (darwin_wait): Discard unknown messages, add debug trace.
6929
6930 2014-03-31  Doug Evans  <dje@google.com>
6931
6932         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6933         comp_dir_string.
6934
6935 2014-03-31  Doug Evans  <dje@google.com>
6936
6937         New option "set print symbol-loading".
6938         * NEWS: Mention it.
6939         * solib.c (solib_read_symbols): Only print symbol loading messages
6940         if requested.
6941         (solib_add): If symbol loading is in "brief" mode, notify user
6942         symbols are being loaded.
6943         (reload_shared_libraries_1): Ditto.
6944         * symfile.c (print_symbol_loading_off): New static global.
6945         (print_symbol_loading_brief): New static global.
6946         (print_symbol_loading_full): New static global.
6947         (print_symbol_loading_enums): New static global.
6948         (print_symbol_loading): New static global.
6949         (print_symbol_loading_p): New function.
6950         (symbol_file_add_with_addrs): Only print symbol loading messages
6951         if requested.
6952         (_initialize_symfile): Register "print symbol-loading" set/show
6953         command.
6954         * symfile.h (print_symbol_loading_p): Declare.
6955
6956 2014-03-30  Doug Evans  <xdje42@gmail.com>
6957
6958         * infrun.c (set_last_target_status): New function.
6959         (handle_inferior_event): Call it.
6960
6961 2014-03-30  Doug Evans  <xdje42@gmail.com>
6962
6963         * inferior.h (enum stop_kind): Improve comment.
6964
6965 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
6966
6967         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6968         a reference, strip the reference layer before calling
6969         the lang_ops value_has_mutated callback.
6970
6971 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6972
6973         Remove some globals from our parser.
6974         * language.c (unk_lang_parser): Add "struct parser_state"
6975         argument.
6976         * language.h (struct language_defn) <la_parser>: Likewise.
6977         * parse.c (expout, expout_size, expout_ptr): Remove variables.
6978         (initialize_expout): Add "struct parser_state" argument.
6979         Rewrite function to use the parser state.
6980         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6981         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6982         write_exp_elt_longcst, write_exp_elt_dblcst,
6983         write_exp_elt_decfloatcst, write_exp_elt_type,
6984         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6985         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6986         write_dollar_variable): Likewise.
6987         (parse_exp_in_context_1): Use parser state.
6988         (insert_type_address_space): Add "struct parser_state" argument.
6989         Use parser state.
6990         (increase_expout_size): New function.
6991         * parser-defs.h: Forward declare "struct language_defn" and
6992         "struct parser_state".
6993         (expout, expout_size, expout_ptr): Remove extern declarations.
6994         (parse_gdbarch, parse_language): Rewrite macro declarations to
6995         accept the parser state.
6996         (struct parser_state): New struct.
6997         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6998         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6999         write_exp_elt_decfloatcst, write_exp_elt_type,
7000         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7001         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7002         write_exp_msymbol, write_dollar_variable,
7003         mark_struct_expression, insert_type_address_space): Add "struct
7004         parser_state" argument.
7005         (increase_expout_size): New function.
7006         * utils.c (do_clear_parser_state): New function.
7007         (make_cleanup_clear_parser_state): Likewise.
7008         * utils.h (make_cleanup_clear_parser_state): New function
7009         prototype.
7010         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7011         Update calls to write_exp* in order to pass the parser state.
7012         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7013         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7014         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7015         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7016         * stap-probe.c (stap_parse_register_operand): Likewise.
7017         (stap_parse_single_operand): Likewise.
7018         (stap_parse_argument_1): Likewise.
7019         (stap_parse_argument): Use parser state.
7020         * stap-probe.h: Include "parser-defs.h".
7021         (struct stap_parse_info) <pstate>: New field.
7022         * c-exp.y (parse_type): Rewrite to use parser state.
7023         (yyparse): Redefine to c_parse_internal.
7024         (pstate): New global variable.
7025         (parse_number): Add "struct parser_state" argument.
7026         (write_destructor_name): Likewise.
7027         (type_exp): Update calls to write_exp* and similars in order to
7028         use parser state.
7029         (exp1, exp, variable, qualified_name, space_identifier,
7030         typename, typebase): Likewise.
7031         (write_destructor_name, parse_number, lex_one_token,
7032         classify_name, classify_inner_name, c_parse): Add "struct
7033         parser_state" argument.  Update function to use parser state.
7034         * c-lang.h: Forward declare "struct parser_state".
7035         (c_parse): Add "struct parser_state" argument.
7036         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7037         (yyparse): Redefine macro to ada_parse_internal.
7038         (pstate): New variable.
7039         (write_int, write_object_renaming, write_var_or_type,
7040         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7041         type_int, type_long, type_long_long, type_float, type_double,
7042         type_long_double, type_char, type_boolean, type_system_address):
7043         Add "struct parser_state" argument.
7044         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7045         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7046         var_or_type, aggregate, aggregate_component_list,
7047         positional_list, others, component_group,
7048         component_associations): Update calls to write_exp* and similar
7049         functions in order to use parser state.
7050         (ada_parse, write_var_from_sym, write_int,
7051         write_exp_op_with_string, write_object_renaming,
7052         find_primitive_type, write_selectors, write_ambiguous_var,
7053         write_var_or_type, write_name_assoc, type_int, type_long,
7054         type_long_long, type_float, type_double, type_long_double,
7055         type_char, type_boolean, type_system_address): Add "struct
7056         parser_state" argument.  Adjust function to use parser state.
7057         * ada-lang.c (parse): Likewise.
7058         * ada-lang.h: Forward declare "struct parser_state".
7059         (ada_parse): Add "struct parser_state" argument.
7060         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7061         calls to both functions.
7062         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7063         parser state.
7064         (yyparse): Redefine macro to f_parse_internal.
7065         (pstate): New variable.
7066         (parse_number): Add "struct parser_state" argument.
7067         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7068         and similars in order to use parser state.
7069         (parse_number): Adjust code to use parser state.
7070         (yylex): Likewise.
7071         (f_parse): New function.
7072         * f-lang.h: Forward declare "struct parser_state".
7073         (f_parse): Add "struct parser_state" argument.
7074         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7075         parser state.
7076         (yyparse): Redefine macro for java_parse_internal.
7077         (pstate): New variable.
7078         (push_expression_name, push_expression_name, insert_exp): Add
7079         "struct parser_state" argument.
7080         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7081         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7082         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7083         PostIncrementExpression, PostDecrementExpression,
7084         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7085         UnaryExpressionNotPlusMinus, CastExpression,
7086         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7087         RelationalExpression, EqualityExpression, AndExpression,
7088         ExclusiveOrExpression, InclusiveOrExpression,
7089         ConditionalAndExpression, ConditionalOrExpression,
7090         ConditionalExpression, Assignment, LeftHandSide): Update
7091         calls to write_exp* and similars in order to use parser state.
7092         (parse_number): Ajust code to use parser state.
7093         (yylex): Likewise.
7094         (java_parse): New function.
7095         (push_variable): Add "struct parser_state" argument.  Adjust
7096         code to user parser state.
7097         (push_fieldnames, push_qualified_expression_name,
7098         push_expression_name, insert_exp): Likewise.
7099         * jv-lang.h: Forward declare "struct parser_state".
7100         (java_parse): Add "struct parser_state" argument.
7101         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7102         parser state.
7103         (yyparse): Redefine macro to m2_parse_internal.
7104         (pstate): New variable.
7105         (type_exp, exp, fblock, variable, type): Update calls to
7106         write_exp* and similars to use parser state.
7107         (yylex): Likewise.
7108         (m2_parse): New function.
7109         * m2-lang.h: Forward declare "struct parser_state".
7110         (m2_parse): Add "struct parser_state" argument.
7111         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7112         * objc-lang.h: Forward declare "struct parser_state".
7113         (end_msglist): Add "struct parser_state" argument.
7114         * p-exp.y (parse_type): Rewrite macro to use parser state.
7115         (yyparse): Redefine macro to pascal_parse_internal.
7116         (pstate): New variable.
7117         (parse_number): Add "struct parser_state" argument.
7118         (type_exp, exp1, exp, qualified_name, variable): Update calls to
7119         write_exp* and similars in order to use parser state.
7120         (parse_number, yylex): Adjust code to use parser state.
7121         (pascal_parse): New function.
7122         * p-lang.h: Forward declare "struct parser_state".
7123         (pascal_parse): Add "struct parser_state" argument.
7124         * go-exp.y (parse_type): Rewrite macro to use parser state.
7125         (yyparse): Redefine macro to go_parse_internal.
7126         (pstate): New variable.
7127         (parse_number): Add "struct parser_state" argument.
7128         (type_exp, exp1, exp, variable, type): Update calls to
7129         write_exp* and similars in order to use parser state.
7130         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7131         to use parser state.
7132         (go_parse): Likewise.
7133         * go-lang.h: Forward declare "struct parser_state".
7134         (go_parse): Add "struct parser_state" argument.
7135
7136 2014-03-27  Doug Evans  <dje@google.com>
7137
7138         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7139
7140 2014-03-27  Doug Evans  <dje@google.com>
7141
7142         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7143         Remove argument abbrev_section.  All callers updated.
7144
7145 2014-03-27  Doug Evans  <dje@google.com>
7146
7147         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7148         addr_base, ranges_base.
7149
7150 2014-03-26  Keith Seitz  <keiths@redhat.com>
7151
7152         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7153         types, not VAR_DOMAIN.
7154
7155 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
7156
7157         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7158         "ra" registers.
7159         * features/nios2-linux.c: Regenerated.
7160         * features/nios2.c: Regenerated.
7161
7162 2014-03-25  Pedro Alves  <palves@redhat.com>
7163
7164         * cli/cli-script.c (script_from_file): Force the interpreter to
7165         sync mode.
7166
7167 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7168
7169         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7170         small stack allocation.
7171
7172 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7173
7174         * darwin-nat.c (exc_server): Remove unused prototype.
7175         (darwin_dump_message): Correctly display data on x86_64.
7176         (darwin_encode_reply): Fix style.
7177         Add comments and fix indentation.
7178
7179 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7180
7181         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7182
7183 2014-03-22  Doug Evans  <xdje42@gmail.com>
7184
7185         * infcmd.c: Whitespace fixes.
7186         (interrupt_command): Merge two function comments into one.
7187
7188 2014-03-22  Doug Evans  <xdje42@gmail.com>
7189
7190         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7191         All uses updated.
7192
7193 2014-03-22  Yao Qi  <yao@codesourcery.com>
7194
7195         * remote.c (target_read_live_memory): Remove.
7196         (memory_xfer_live_readonly_partial): Rename it to
7197         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7198         All callers updated.  Call remote_read_bytes_1
7199         instead of target_read_live_memory.
7200         * tracepoint.c (set_traceframe_number): Remove.
7201         (make_cleanup_restore_traceframe_number): Likewise .
7202         * tracepoint.h (set_traceframe_number): Remove declaration.
7203         (make_cleanup_restore_traceframe_number): Likewise.
7204
7205 2014-03-22  Yao Qi  <yao@codesourcery.com>
7206
7207         * remote.c (remote_read_bytes): Move code on reading from the
7208         remote stub to ...
7209         (remote_read_bytes_1): ... here.  New function.
7210
7211 2014-03-22  Yao Qi  <yao@codesourcery.com>
7212
7213         * ctf.c (ctf_xfer_partial): Check the return value of
7214         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7215         return TARGET_XFER_UNAVAILABLE.
7216         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7217         * target.c (target_read_live_memory): Move it to remote.c.
7218         (memory_xfer_live_readonly_partial): Likewise.
7219         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7220         * remote.c (target_read_live_memory): Moved from target.c.
7221         (memory_xfer_live_readonly_partial): Likewise.
7222         (remote_read_bytes): Factored out from
7223         memory_xfer_partial_1.
7224
7225 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7226
7227         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7228         NULL pointer.
7229
7230 2014-03-21  Pedro Alves  <palves@redhat.com>
7231
7232         * infrun.c (normal_stop): Extend comment.
7233
7234 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7235             Pedro Alves  <palves@redhat.com>
7236
7237         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7238         static buffer.
7239         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7240         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7241         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7242
7243 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7244
7245         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7246         `z' formatted output modifier.
7247
7248 2014-03-20  Tom Tromey  <tromey@redhat.com>
7249             Sergio Durigan Junior  <sergiodj@redhat.com>
7250
7251         * probe.c (parse_probes): Turn assert into an ordinary error.
7252         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7253         exceptions when parsing probes.  Rearrange the code for clarity.
7254
7255 2014-03-20  Tom Tromey  <tromey@redhat.com>
7256
7257         PR gdb/14135
7258         * top.c (execute_command): Only dispatch events if the command
7259         started the target.
7260
7261 2014-03-20  Tom Tromey  <tromey@redhat.com>
7262
7263         PR cli/15718
7264         * infcall.c: Include event-top.h.
7265         (run_inferior_call): Call async_disable_stdin if needed.
7266
7267 2014-03-20  Pedro Alves  <palves@redhat.com>
7268
7269         * infrun.c (prepare_to_proceed): Delete.
7270         (thread_still_needs_step_over): New function.
7271         (find_thread_needs_step_over): New function.
7272         (proceed): If the current thread needs a step-over, set its
7273         steping_over_breakpoint flag.  Adjust to use
7274         find_thread_needs_step_over instead of prepare_to_proceed.
7275         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7276         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7277         breakpoint.
7278         (switch_back_to_stepped_thread): Step over breakpoints of all
7279         threads not the stepping thread, before switching back to the
7280         stepping thread.
7281
7282 2014-03-20  Pedro Alves  <palves@redhat.com>
7283
7284         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7285         extern.
7286         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7287         * infrun.c (saved_singlestep_ptid)
7288         (stepping_past_singlestep_breakpoint): Delete.
7289         (resume): Remove stepping_past_singlestep_breakpoint handling.
7290         (proceed): Store the prev_pc of the stepping thread too.
7291         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7292         singlestep_pc.
7293         (enum infwait_states): Delete infwait_thread_hop_state.
7294         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7295         field.
7296         (handle_inferior_event): Adjust.
7297         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7298         handling and the thread-hop code.  Before removing single-step
7299         breakpoints, check whether the thread hit a single-step breakpoint
7300         of another thread.  If it did, the trap is not a random signal.
7301         (switch_back_to_stepped_thread): If the event thread hit a
7302         single-step breakpoint, unblock it before switching to the
7303         stepping thread.  Handle the case of the stepped thread having
7304         advanced already.
7305         (keep_going): Handle the case of the current thread moving past a
7306         single-step breakpoint.
7307
7308 2014-03-20  Pedro Alves  <palves@redhat.com>
7309
7310         PR breakpoints/7143
7311         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7312         are being stepped over.
7313         (breakpoint_address_match): Make extern.
7314         * breakpoint.h (breakpoint_address_match): New declaration.
7315         * inferior.h (stepping_past_instruction_at): New declaration.
7316         * infrun.c (struct step_over_info): New type.
7317         (step_over_info): New global.
7318         (set_step_over_info, clear_step_over_info)
7319         (stepping_past_instruction_at): New functions.
7320         (handle_inferior_event): Clear the step-over info when
7321         trap_expected is cleared.
7322         (resume): Remove now stale comment.
7323         (clear_proceed_status): Clear step-over info.
7324         (proceed): Adjust step-over handling to set or clear the step-over
7325         info instead of removing all breakpoints.
7326         (handle_signal_stop): When setting up a thread-hop, don't remove
7327         breakpoints here.
7328         (stop_stepping): Clear step-over info.
7329         (keep_going): Adjust step-over handling to set or clear step-over
7330         info and then always inserting breakpoints, instead of removing
7331         all breakpoints when stepping over one.
7332
7333 2014-03-20  Pedro Alves  <palves@redhat.com>
7334
7335         * infrun.c (previous_inferior_ptid): Adjust comment.
7336         (deferred_step_ptid): Delete.
7337         (infrun_thread_ptid_changed, prepare_to_proceed)
7338         (init_wait_for_inferior): Adjust.
7339         (handle_signal_stop): Delete deferred_step_ptid handling.
7340
7341 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7342
7343         PR gdb/15358
7344         * defs.h (sync_quit_force_run): New declaration.
7345         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7346         * event-top.c (async_sigterm_handler): New declaration.
7347         (async_sigterm_token): New variable.
7348         (async_init_signals): Create also async_sigterm_token.
7349         (async_sigterm_handler): New function.
7350         (sync_quit_force_run): New variable.
7351         (handle_sigterm): Replace quit_force call by other calls.
7352         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7353
7354 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7355
7356         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7357         offset into SPE pseudo registers.
7358
7359 2014-03-18  Pedro Alves  <palves@redhat.com>
7360
7361         PR gdb/13860
7362         * inferior.h (print_stop_event): Declare.
7363         * infrun.c (print_stop_event): New, factored out from ...
7364         (normal_stop): ... this.
7365         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7366         of bpstat_print/print_stack_frame.
7367
7368 2014-03-17  Tom Tromey  <tromey@redhat.com>
7369
7370         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7371
7372 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7373
7374         * ada-lang.c (decode_constrained_packed_array): Perform a
7375         minimal coercion for reference with coerce_ref instead of
7376         ada_coerce_ref.
7377
7378 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7379
7380         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7381         (darwin_solib_create_inferior_hook): Emit a warning if version
7382         is unhandled.
7383
7384 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7385
7386         * python/py-value.c (get_field_flag): Cast flag_name argument to
7387         PyObject_GetAttrString to support Python 2.4.
7388
7389 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7390
7391         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7392         (Global Maintainers): Remove Jan Kratochvil.
7393
7394 2014-03-14  Pedro Alves  <palves@redhat.com>
7395
7396         * inferior.h (terminal_ours_for_output): Rename to ...
7397         (child_terminal_ours_for_output): ... this.
7398         (terminal_save_ours): Rename to ...
7399         (child_terminal_save_ours): ... this.
7400         (terminal_ours): Rename to ...
7401         (child_terminal_ours): ... this.
7402         (terminal_inferior): Rename to ...
7403         (child_terminal_inferior): ... this.
7404         (terminal_init_inferior): Rename to ...
7405         (child_terminal_init_inferior): ... this.
7406         (terminal_init_inferior_with_pgrp): Rename to ...
7407         (child_terminal_init_inferior_with_pgrp): ... this.
7408         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7409         (child_terminal_init_with_pgrp): ... this.
7410         (terminal_save_ours): Rename to ...
7411         (child_terminal_save_ours): ... this.
7412         (terminal_init_inferior): Rename to ...
7413         (child_terminal_init): ... this.  Adjust.
7414         (terminal_inferior): Rename to ...
7415         (child_terminal_inferior): ... this.
7416         (terminal_ours_for_output): Rename to ...
7417         (child_terminal_ours_for_output): ... this.  Adjust.
7418         (terminal_ours): Rename to ...
7419         (child_terminal_ours): ... this.
7420         (terminal_ours_1): Rename to ...
7421         (child_terminal_ours_1): ... this.  Adjust.
7422         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7423         * windows-nat.c (do_initial_windows_stuff): Adjust.
7424         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7425         (gnu_terminal_init): ... this.  Adjust.
7426         (gnu_target): Adjust.
7427         * inf-child.c (inf_child_target): Adjust.
7428
7429 2014-03-13  Doug Evans  <xdje42@gmail.com>
7430
7431         PR guile/16612
7432         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7433         new eq?-hashtab.
7434
7435 2014-03-13  Doug Evans  <xdje42@gmail.com>
7436
7437         * value.c (record_latest_value): Call release_value_or_incref
7438         instead of release_value.
7439
7440 2014-03-13  Pedro Alves  <palves@redhat.com>
7441
7442         * procfs.c (procfs_target): Don't override to_shortname,
7443         to_longname or to_doc.
7444
7445 2014-03-13  Pedro Alves  <palves@redhat.com>
7446
7447         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7448         Unix in user visible strings.
7449
7450 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7451
7452         * gdbtypes.h: Annotate comments for Doxygen, add a page
7453         block comment with some general info.
7454
7455 2014-03-12  Pedro Alves  <palves@redhat.com>
7456
7457         * infcmd.c (prepare_execution_command): New function, factored out
7458         from several execution commands.
7459         (run_command_1, continue_command, step_1, jump_command)
7460         (signal_command, until_command, advance_command, finish_command)
7461         (attach_command): Use prepare_execution_command.
7462
7463 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7464
7465         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7466         (MAX_BPTS): Define.
7467         (MAX_WPTS): Define.
7468         (struct arm_linux_thread_points): Removed.
7469         (struct arm_linux_process_info): New.
7470         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7471         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7472         (arm_linux_find_breakpoints_by_tid): Removed.
7473         (struct arch_lwp_info): New.
7474         (arm_linux_find_process_pid): New functions.
7475         (arm_linux_add_process): New functions.
7476         (arm_linux_process_info_get): New functions.
7477         (arm_linux_forget_process): New function.
7478         (arm_linux_get_debug_reg_state): New function.
7479         (struct update_registers_data): New.
7480         (update_registers_callback): New function.
7481         (arm_linux_insert_hw_breakpoint1): Updated.
7482         (arm_linux_remove_hw_breakpoint1): Updated.
7483         (arm_linux_insert_hw_breakpoint): Updated.
7484         (arm_linux_remove_hw_breakpoint): Updated.
7485         (arm_linux_insert_watchpoint): Updated.
7486         (arm_linux_remove_watchpoint): Updated.
7487         (arm_linux_new_thread): Updated.
7488         (arm_linux_prepare_to_resume): New function.
7489         (arm_linux_new_fork): New function.
7490         (_initialize_arm_linux_nat): Updated.
7491
7492 2014-03-12  Pedro Alves  <palves@redhat.com>
7493
7494         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7495
7496 2014-03-12  Tom Tromey  <tromey@redhat.com>
7497
7498         * inf-child.c (return_zero): New function.
7499         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7500         * aix-thread.c (aix_thread_inferior_created): New function.
7501         (aix_thread_attach): Remove.
7502         (init_aix_thread_ops): Don't set to_attach.
7503         (_initialize_aix_thread): Register inferior_created observer.
7504         * corelow.c (init_core_ops): Don't set to_attach or
7505         to_create_inferior.
7506         * exec.c (init_exec_ops): Don't set to_attach or
7507         to_create_inferior.
7508         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7509         target calls.
7510         (attach_command): Use find_attach_target.  Make direct target
7511         calls.
7512         * record-btrace.c (init_record_btrace_ops): Don't set
7513         to_create_inferior.
7514         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7515         Remove.
7516         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7517         set to_create_inferior.
7518         * target.c (complete_target_initialization): Add assertion.
7519         (target_create_inferior): Remove.
7520         (find_default_attach, find_default_create_inferior): Remove.
7521         (find_attach_target, find_run_target): New functions.
7522         (find_default_is_async_p, find_default_can_async_p)
7523         (target_supports_non_stop, target_attach): Remove.
7524         (init_dummy_target): Don't set to_create_inferior or
7525         to_supports_non_stop.
7526         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7527         TARGET_DEFAULT_FUNC.
7528         <to_create_inferior>: Add comment.
7529         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7530         TARGET_DEFAULT_RETURN.
7531         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7532         (find_attach_target, find_run_target): Declare.
7533         (target_create_inferior): Remove.
7534         (target_has_execution_1): Update comment.
7535         (target_supports_non_stop): Remove.
7536         * target-delegates.c: Rebuild.
7537
7538 2014-03-12  Pedro Alves  <palves@redhat.com>
7539
7540         * inf-child.h: Update comment to not mention Unix.
7541
7542 2014-03-12  Pedro Alves  <palves@redhat.com>
7543
7544         * inf-child.c: Update top comment to not mention Unix.  Add
7545         generic comment describing how this target is meant to be used.
7546         (inf_child_post_attach, inf_child_post_startup_inferior)
7547         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7548         Unix in comment.
7549
7550 2014-03-12  Pedro Alves  <palves@redhat.com>
7551
7552         * nto-procfs.c: Include inf-child.h.
7553         (procfs_ops): Delete global.
7554         (procfs_can_run): Delete method.
7555         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7556         target pointer instead of referencing procfs_ops.
7557         (procfs_prepare_to_store): Delete.
7558         (init_procfs_ops): Delete function.
7559         (procfs_target): New function, based on init_procfs_ops, but
7560         inherit inf_child_target.
7561         (_initialize_procfs): Use procfs_target.
7562
7563 2014-03-12  Pedro Alves  <palves@redhat.com>
7564
7565         * windows-nat.c: Include inf-child.h.
7566         (windows_ops): Delete global.
7567         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7568         methods.
7569         (init_windows_ops): Delete function.
7570         (windows_target): New function, based on init_windows_ops, but
7571         inherit inf_child_target.
7572         (_initialize_windows_nat): Use windows_target.  Install x86
7573         specific target methods here.
7574
7575 2014-03-10  Doug Evans  <xdje42@gmail.com>
7576
7577         * guile/guile.c (call_initialize_gdb_module): New function.
7578         (initialize_guile): Replace call to scm_init_guile with call to
7579         scm_with_guile.
7580
7581 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7582
7583         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7584         in call to TYPE_CODE macro.
7585
7586 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7587
7588         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7589         Resolve tagged types to full view.
7590
7591 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7592
7593         * target.h (target_insert_breakpoint): Remove "hardware" from its
7594         comments.
7595
7596 2014-03-07  Doug Evans  <dje@google.com>
7597
7598         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7599
7600 2014-03-07  Doug Evans  <dje@google.com>
7601
7602         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7603         Remove unused local comp_dir_attr.  Assert exactly one of
7604         stub_comp_unit_die, stub_comp_dir is non-NULL.
7605
7606 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7607
7608         * target.h (complete_target_initialization, add_target):
7609         Add comment.
7610
7611 2014-03-07  Pedro Alves  <palves@redhat.com>
7612
7613         * go32-nat.c: Include inf-child.h.
7614         (go32_ops): Delete global.
7615         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7616         Delete methods.
7617         (go32_create_inferior): Push the passed in target pointer instead
7618         of referencing go32_ops.
7619         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7620         (go32_target): New function, based on init_go32_ops, but inherit
7621         inf_child_target.
7622         (_initialize_go32_nat): Use go32_target.  Move parts of
7623         init_go32_ops here.
7624
7625 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7626
7627         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7628         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7629         SYMBOL_VALUE_ADDRESS.
7630         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7631
7632 2014-03-06  Yao Qi  <yao@codesourcery.com>
7633
7634         * breakpoint.c (get_tracepoint_by_number): Remove argument
7635         optional_p.  All callers updated.  Adjust comments.  Update
7636         output message.
7637         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7638
7639 2014-03-06  Yao Qi  <yao@codesourcery.com>
7640
7641         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7642         early if get_number returns zero.  Use 'p' instead of 'args'.
7643
7644 2014-03-06  Yao Qi  <yao@codesourcery.com>
7645
7646         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7647         message.
7648
7649 2014-03-06  Yao Qi  <yao@codesourcery.com>
7650
7651         PR breakpoints/16508
7652         * tracepoint.c (check_trace_running): New function.
7653         (trace_find_command): Move code to check_trace_running and
7654         call check_trace_running.
7655         (trace_find_pc_command): Likewise.
7656         (trace_find_tracepoint_command): Likewise.
7657         (trace_find_line_command): Likewise.
7658         (trace_find_range_command): Likewise.
7659         * tracepoint.h (check_trace_running): Likewise.
7660         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7661
7662 2014-03-06  Yao Qi  <yao@codesourcery.com>
7663
7664         * target.h (struct target_ops) <to_traceframe_info>: Use
7665         TARGET_DEFAULT_NORETURN (tcomplain ()).
7666         * target-delegates.c: Regenerated.
7667
7668 2014-03-05  Pedro Alves  <palves@redhat.com>
7669
7670         PR gdb/16575
7671         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7672         void.  Update comment.
7673         (dcache_xfer_memory): Delete.
7674         (dcache_read_memory_partial): New, based on the read bits of
7675         dcache_xfer_memory.
7676         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7677         adjust.  Discard cache lines if the reason for the update was
7678         error.
7679         * dcache.h (dcache_xfer_memory): Delete declaration.
7680         (dcache_read_memory_partial): New declaration.
7681         (dcache_update): Update prototype.
7682         * target.c (raw_memory_xfer_partial): Update the dcache here.
7683         (memory_xfer_partial_1): Don't handle dcache writes here.
7684
7685 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7686
7687         * remote-sim.c (gdbsim_load): Add const to prog.
7688
7689 2014-03-03  Tom Tromey  <tromey@redhat.com>
7690
7691         * elfread.c (probe_key): Change to bfd_data.
7692         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7693         now per-BFD, not per-objfile.
7694         * stap-probe.c (stap_probe_destroy): Update comment.
7695         (handle_stap_probe): Allocate on the per-BFD obstack.
7696
7697 2014-03-03  Tom Tromey  <tromey@redhat.com>
7698
7699         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7700         * breakpoint.c (create_longjmp_master_breakpoint): Use
7701         get_probe_address.
7702         (add_location_to_breakpoint, bkpt_probe_insert_location)
7703         (bkpt_probe_remove_location): Update.
7704         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7705         * elfread.c (elf_symfile_relocate_probe): Remove.
7706         (elf_probe_fns): Update.
7707         (insert_exception_resume_breakpoint): Change type of "probe"
7708         parameter to bound_probe.
7709         (check_exception_resume): Update.
7710         * objfiles.c (objfile_relocate1): Don't relocate probes.
7711         * probe.c (bound_probe_s): New typedef.
7712         (parse_probes): Use get_probe_address.  Set sal's objfile.
7713         (find_probe_by_pc): Return a bound_probe.
7714         (collect_probes): Return a VEC(bound_probe_s).
7715         (compare_probes): Update.
7716         (gen_ui_out_table_header_info): Change type of "probes"
7717         parameter.  Update.
7718         (info_probes_for_ops): Update.
7719         (get_probe_address): New function.
7720         (probe_safe_evaluate_at_pc): Update.
7721         * probe.h (struct probe_ops) <get_probe_address>: New field.
7722         <set_semaphore, clear_semaphore>: Add objfile parameter.
7723         (struct probe) <objfile>: Remove field.
7724         <arch>: New field.
7725         <address>: Update comment.
7726         (struct bound_probe): New.
7727         (find_probe_by_pc): Return a bound_probe.
7728         (get_probe_address): Declare.
7729         * solib-svr4.c (struct probe_and_action) <address>: New field.
7730         (hash_probe_and_action, equal_probe_and_action): Update.
7731         (register_solib_event_probe): Add address parameter.
7732         (solib_event_probe_at): Update.
7733         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7734         get_probe_address.
7735         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7736         (stap_get_probe_address): New function.
7737         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7738         (compile_probe_arg): Update.
7739         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7740         address.
7741         (handle_stap_probe): Don't relocate the probe.
7742         (stap_relocate): Remove.
7743         (stap_gen_info_probes_table_values): Update.
7744         (stap_probe_ops): Remove stap_relocate.
7745         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7746         (debug_sym_probe_fns): Update.
7747         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7748         * symtab.c (init_sal): Use memset.
7749         * symtab.h (struct symtab_and_line) <objfile>: New field.
7750         * tracepoint.c (start_tracing, stop_tracing): Update.
7751
7752 2014-03-03  Tom Tromey  <tromey@redhat.com>
7753
7754         * probe.h (parse_probes, find_probe_by_pc)
7755         (find_probes_in_objfile): Fix comments.
7756
7757 2014-03-02  Doug Evans  <xdje42@gmail.com>
7758
7759         * infrun.c (handle_signal_stop): Replace test for
7760         TARGET_WAITKIND_STOPPED with an assert.
7761
7762 2014-03-02  Doug Evans  <xdje42@gmail.com>
7763
7764         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7765
7766 2014-03-02  Doug Evans  <xdje42@gmail.com>
7767
7768         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7769
7770 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7771
7772         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7773
7774 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7775
7776         * i386obsd-nat.c: Include "obsd-nat.h".
7777         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7778         add_target.
7779         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7780
7781 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7782
7783         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7784
7785 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7786
7787         * mips64obsd-nat.c: Include "obsd-nath".
7788         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7789         add_target
7790         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7791
7792 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7793
7794         * amd64obsd-nat.c: Include "obsd-nat,h.
7795         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7796         add_target.
7797         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7798
7799 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7800
7801         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7802         (find_overload_match): Update call to find_oload_champ.
7803         (find_oload_champ_namespace_loop): Likewise
7804
7805 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7806
7807         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7808
7809         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7810         * config/sparc/obsd64.mh: New file.
7811         * sparc64obsd-nat.c: New file.
7812
7813         * obsd-nat.h: New file.
7814         * obsd-nat.c: New file.
7815         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7816         (ALLDEPFILES): Add obsd-nat.c.
7817
7818 2014-02-28  Tom Tromey  <tromey@redhat.com>
7819
7820         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7821         * cli-out.h (cli_ui_out_impl): Now const.
7822         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7823         * ui-out.c (struct ui_out) <impl>: Now const.
7824         (default_ui_out_impl): Now const.
7825         (ui_out_new): Make 'impl' parameter const.
7826         * ui-out.h (ui_out_new): Update.
7827
7828 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7829
7830         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7831
7832 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7833
7834         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7835
7836 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7837
7838         Additional PR 8882 fix.
7839         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7840
7841 2014-02-27  Pedro Alves  <palves@redhat.com>
7842
7843         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7844         isn't set.
7845
7846 2014-02-27  Pedro Alves  <palves@redhat.com>
7847
7848         PR 12702
7849         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7850         * nat/linux-waitpid.c: Include string.h.
7851         (status_to_str): Moved here and made extern.
7852         * nat/linux-waitpid.h (status_to_str): New declaration.
7853
7854 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7855
7856         PR 12702
7857         * infrun.c (ptid_match): Move ...
7858         * common/ptid.c (ptid_match): ... here.
7859         * inferior.h (ptid_match): Move ...
7860         * common/ptid.h (ptid_match): ... here.
7861
7862 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7863
7864         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7865         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7866         gdb_target_obs.
7867
7868 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7869
7870         * obsd-tdep.c (obsd_auxv_parse): New function.
7871         (obsd_init_abi): Set auxv_parse.
7872
7873         * gdbarch.sh (auxv_parse): New.
7874         * gdbarch.h: Regenerated.
7875         * gdbarch.c: Regenerated.
7876         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7877
7878 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7879
7880         * guile/scm-value.c (gdbscm_history_append_x): New function.
7881         (value_functions): Add it.
7882
7883 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7884
7885         * dwarf2read.c (attr_value_as_address): New function.
7886         (dwarf2_find_base_address, read_call_site_scope): Use
7887         attr_value_as_address in place of DW_ADDR.
7888         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7889         the low and high addresses.  Slight rework of the handling
7890         of the high pc being a constant form, and limit it to
7891         DWARF verson 4 or higher.
7892         (dwarf2_record_block_ranges): Likewise.
7893         (read_partial_die): Likewise.
7894         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7895
7896 2014-02-26  Tom Tromey  <tromey@redhat.com>
7897
7898         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7899
7900 2014-02-26  Tom Tromey  <tromey@redhat.com>
7901
7902         * elfread.c (elf_read_minimal_symbols): Return early if
7903         minimal symbols have already been read.  Add "ei" parameter.
7904         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7905         * minsyms.c (prim_record_minimal_symbol_full): Update.
7906         * objfiles.h (struct objstats) <n_minsyms>: Move...
7907         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7908         * symmisc.c (print_objfile_statistics): Update.
7909
7910 2014-02-26  Tom Tromey  <tromey@redhat.com>
7911
7912         * elfread.c (elf_read_minimal_symbols): New function, from
7913         elf_symfile_read.
7914         (elf_symfile_read): Call it.
7915
7916 2014-02-26  Tom Tromey  <tromey@redhat.com>
7917
7918         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7919         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7920         (lookup_minimal_symbol_solib_trampoline)
7921         (lookup_minimal_symbol_by_pc_section_1)
7922         (lookup_minimal_symbol_and_objfile): Update.
7923         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7924         Don't allocate a minimal symbol if minsyms have already been read.
7925         (build_minimal_symbol_hash_tables): Update.
7926         (install_minimal_symbols): Do nothing if minsyms already read.
7927         Use the per-BFD obstack.
7928         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7929         * objfiles.c (allocate_objfile): Call
7930         terminate_minimal_symbol_table later.
7931         (have_minimal_symbols): Update.
7932         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7933         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7934         Move from struct objfile.
7935         <minsyms_read>: New field.
7936         (struct objfile) <msymbols, minimal_symbol_count,
7937         msymbol_hash, msymbol_demangled_hash>: Move.
7938         (ALL_OBJFILE_MSYMBOLS): Update.
7939         * symfile.c (read_symbols): Set minsyms_read.
7940         (reread_symbols): Update.
7941         * symmisc.c (dump_objfile, dump_msymbols): Update.
7942
7943 2014-02-26  Tom Tromey  <tromey@redhat.com>
7944
7945         * minsyms.c (msymbols_sort): Remove.
7946         * minsyms.h (msymbols_sort): Remove.
7947         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7948         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7949         * elfread.c (elf_symtab_read): Don't add section offsets.
7950         * xcoffread.c (record_minimal_symbol): Don't add section offset
7951         to minimal symbol address.
7952         * somread.c (text_offset, data_offset): Remove.
7953         (som_symtab_read): Don't add section offsets to minimal symbol
7954         addresses.
7955         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7956         Don't add section offsets to minimal symbols.
7957         * coffread.c (coff_symtab_read): Don't add section offsets
7958         to minimal symbol addresses.
7959         * machoread.c (macho_symtab_add_minsym): Don't add section offset
7960         to minimal symbol addresses.
7961         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7962         section offset to minimal symbol addresses.
7963         * mdebugread.c (parse_partial_symbols): Don't add section
7964         offset to minimal symbol addresses.
7965         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7966         offset to minimal symbol addresses.
7967
7968 2014-02-26  Tom Tromey  <tromey@redhat.com>
7969
7970         * ada-lang.c (ada_main_name): Update.
7971         (ada_add_standard_exceptions): Update.
7972         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7973         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7974         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7975         * auxv.c (ld_so_xfer_auxv): Update.
7976         * avr-tdep.c (avr_scan_prologue): Update.
7977         * ax-gdb.c (gen_var_ref): Update.
7978         * blockframe.c (get_pc_function_start)
7979         (find_pc_partial_function_gnu_ifunc): Update.
7980         * breakpoint.c (create_overlay_event_breakpoint)
7981         (create_longjmp_master_breakpoint)
7982         (create_std_terminate_master_breakpoint)
7983         (create_exception_master_breakpoint): Update.
7984         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7985         * c-valprint.c (c_val_print): Update.
7986         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7987         * common/agent.c (agent_look_up_symbols): Update.
7988         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7989         * dwarf2loc.c (call_site_to_target_addr): Update.
7990         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7991         * elfread.c (elf_gnu_ifunc_record_cache)
7992         (elf_gnu_ifunc_resolve_by_got): Update.
7993         * findvar.c (default_read_var_value): Update.
7994         * frame.c (inside_main_func): Update.
7995         * frv-tdep.c (frv_frame_this_id): Update.
7996         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7997         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7998         Update.
7999         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8000         (hppa_hpux_find_dummy_bpaddr): Update.
8001         * hppa-tdep.c (hppa_symbol_address): Update.
8002         * infcmd.c (until_next_command): Update.
8003         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8004         Update.
8005         * linespec.c (minsym_found, add_minsym): Update.
8006         * linux-nat.c (get_signo): Update.
8007         * linux-thread-db.c (inferior_has_bug): Update.
8008         * m32c-tdep.c (m32c_return_value)
8009         (m32c_m16c_address_to_pointer): Update.
8010         * m32r-tdep.c (m32r_frame_this_id): Update.
8011         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8012         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8013         * maint.c (maintenance_translate_address): Update.
8014         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8015         (frob_address): New function.
8016         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8017         frob_address.  Rename parameter to "pc_in".
8018         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8019         addresses.
8020         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8021         Update.
8022         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8023         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8024         * objc-lang.c (find_objc_msgsend): Update.
8025         * objfiles.c (objfile_relocate1): Update.
8026         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8027         * p-valprint.c (pascal_val_print): Update.
8028         * parse.c (write_exp_msymbol): Update.
8029         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8030         (ppc_elfv2_skip_entrypoint): Update.
8031         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8032         * printcmd.c (build_address_symbolic, msym_info)
8033         (address_info): Update.
8034         * proc-service.c (ps_pglobal_lookup): Update.
8035         * psymtab.c (find_pc_sect_psymtab_closer)
8036         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8037         Change msymbol parameter to bound_minimal_symbol.
8038         * ravenscar-thread.c (get_running_thread_id): Update.
8039         * remote.c (remote_check_symbols): Update.
8040         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8041         address.
8042         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8043         * solib-dsbt.c (lm_base): Update.
8044         * solib-frv.c (lm_base, main_got): Update.
8045         * solib-irix.c (locate_base): Update.
8046         * solib-som.c (som_solib_create_inferior_hook)
8047         (link_map_start): Update.
8048         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8049         * solib-svr4.c (elf_locate_base, enable_break): Update.
8050         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8051         (flush_ea_cache): Update.
8052         * stabsread.c (define_symbol, scan_file_globals): Update.
8053         * stack.c (find_frame_funname): Update.
8054         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8055         (debug_qf_find_pc_sect_symtab): Update.
8056         * symfile.c (simple_read_overlay_table)
8057         (simple_overlay_update): Update.
8058         * symfile.h (struct quick_symbol_functions)
8059         <find_pc_sect_symtab>: Change type of msymbol to
8060         bound_minimal_symbol.
8061         * symmisc.c (dump_msymbols): Update.
8062         * symtab.c (find_pc_sect_symtab_via_partial)
8063         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8064         (search_symbols, print_msymbol_info): Update.
8065         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8066         (MSYMBOL_VALUE_ADDRESS): Redefine.
8067         (BMSYMBOL_VALUE_ADDRESS): New macro.
8068         * tracepoint.c (scope_info): Update.
8069         * tui/tui-disasm.c (tui_find_disassembly_address)
8070         (tui_get_begin_asm_address): Update.
8071         * valops.c (find_function_in_inferior): Update.
8072         * value.c (value_static_field, value_fn_field): Update.
8073
8074 2014-02-26  Tom Tromey  <tromey@redhat.com>
8075
8076         * ada-lang.c (ada_update_initial_language): Update.
8077         (ada_main_name, ada_has_this_exception_support): Update.
8078         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8079         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8080         * arm-tdep.c (arm_skip_stub): Update.
8081         * auxv.c (ld_so_xfer_auxv): Update.
8082         * avr-tdep.c (avr_scan_prologue): Update.
8083         * ax-gdb.c (gen_var_ref): Update.
8084         * breakpoint.c (struct breakpoint_objfile_data)
8085         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8086         type to bound_minimal_symbol.
8087         (create_overlay_event_breakpoint)
8088         (create_longjmp_master_breakpoint)
8089         (create_std_terminate_master_breakpoint)
8090         (create_exception_master_breakpoint): Update.
8091         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8092         * c-exp.y (classify_name): Update.
8093         * coffread.c (coff_symfile_read): Update.
8094         * common/agent.c (agent_look_up_symbols): Update.
8095         * d-lang.c (d_main_name): Update.
8096         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8097         * dec-thread.c (enable_dec_thread): Update.
8098         * dwarf2loc.c (call_site_to_target_addr): Update.
8099         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8100         * eval.c (evaluate_subexp_standard): Update.
8101         * findvar.c (struct minsym_lookup_data) <result>: Change type
8102         to bound_minimal_symbol.
8103         <objfile>: Remove.
8104         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8105         * frame.c (inside_main_func): Update.
8106         * frv-tdep.c (frv_frame_this_id): Update.
8107         * gcore.c (call_target_sbrk): Update.
8108         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8109         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8110         Update.
8111         * go-lang.c (go_main_name): Update.
8112         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8113         (hppa_hpux_find_import_stub_for_addr): Update.
8114         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8115         Update.  Change return type.
8116         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8117         type.
8118         * jit.c (jit_breakpoint_re_set_internal): Update.
8119         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8120         Update.
8121         * linux-nat.c (get_signo): Update.
8122         * linux-thread-db.c (inferior_has_bug): Update
8123         * m32c-tdep.c (m32c_return_value)
8124         (m32c_m16c_address_to_pointer): Update.
8125         * m32r-tdep.c (m32r_frame_this_id): Update.
8126         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8127         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8128         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8129         lookup_minimal_symbol.  Change return type.
8130         (lookup_minimal_symbol): Remove.
8131         (lookup_bound_minimal_symbol): Update.
8132         (lookup_minimal_symbol_text): Change return type.
8133         (lookup_minimal_symbol_solib_trampoline): Change return type.
8134         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8135         (lookup_minimal_symbol_solib_trampoline): Change return type.
8136         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8137         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8138         (value_nsstring, find_imps): Update.
8139         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8140         * p-lang.c (pascal_main_name): Update.
8141         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8142         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8143         * proc-service.c (ps_pglobal_lookup): Update.
8144         * ravenscar-thread.c (get_running_thread_msymbol): Change
8145         return type.
8146         (has_ravenscar_runtime, get_running_thread_id): Update.
8147         * remote.c (remote_check_symbols): Update.
8148         * sol-thread.c (ps_pglobal_lookup): Update.
8149         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8150         * solib-dsbt.c (lm_base): Update.
8151         * solib-frv.c (lm_base, frv_relocate_section_addresses):
8152         Update.
8153         * solib-irix.c (locate_base): Update.
8154         * solib-som.c (som_solib_create_inferior_hook)
8155         (som_solib_desire_dynamic_linker_symbols, link_map_start):
8156         Update.
8157         * solib-spu.c (spu_enable_break): Update.
8158         * solib-svr4.c (elf_locate_base, enable_break): Update.
8159         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8160         (flush_ea_cache): Update.
8161         * stabsread.c (define_symbol): Update.
8162         * symfile.c (simple_read_overlay_table): Update.
8163         * symtab.c (find_pc_sect_line): Update.
8164         * tracepoint.c (scope_info): Update.
8165         * tui-disasm.c (tui_get_begin_asm_address): Update.
8166         * value.c (value_static_field): Update.
8167
8168 2014-02-26  Tom Tromey  <tromey@redhat.com>
8169
8170         * minsyms.c (prim_record_minimal_symbol_full): Use
8171         SET_MSYMBOL_VALUE_ADDRESS.
8172         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8173         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8174         SET_MSYMBOL_VALUE_ADDRESS.
8175         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8176         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8177
8178 2014-02-26  Tom Tromey  <tromey@redhat.com>
8179
8180         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8181         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8182         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8183         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8184         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8185         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8186         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8187         * ada-lang.c (ada_main_name): Update.
8188         (ada_lookup_simple_minsym): Update.
8189         (ada_make_symbol_completion_list): Update.
8190         (ada_add_standard_exceptions): Update.
8191         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8192         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8193         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8194         * arm-tdep.c (skip_prologue_function): Update.
8195         (arm_skip_stack_protector, arm_skip_stub): Update.
8196         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8197         (arm_wince_skip_main_prologue): Update.
8198         * auxv.c (ld_so_xfer_auxv): Update.
8199         * avr-tdep.c (avr_scan_prologue): Update.
8200         * ax-gdb.c (gen_var_ref): Update.
8201         * block.c (call_site_for_pc): Update.
8202         * blockframe.c (get_pc_function_start): Update.
8203         (find_pc_partial_function_gnu_ifunc): Update.
8204         * breakpoint.c (create_overlay_event_breakpoint): Update.
8205         (create_longjmp_master_breakpoint): Update.
8206         (create_std_terminate_master_breakpoint): Update.
8207         (create_exception_master_breakpoint): Update.
8208         (resolve_sal_pc): Update.
8209         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8210         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8211         Update.
8212         * c-valprint.c (c_val_print): Update.
8213         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8214         * coffread.c (coff_symfile_read): Update.
8215         * common/agent.c (agent_look_up_symbols): Update.
8216         * dbxread.c (find_stab_function_addr): Update.
8217         (end_psymtab): Update.
8218         * dwarf2loc.c (call_site_to_target_addr): Update.
8219         (func_verify_no_selftailcall): Update.
8220         (tailcall_dump): Update.
8221         (call_site_find_chain_1): Update.
8222         (dwarf_expr_reg_to_entry_parameter): Update.
8223         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8224         (elf_gnu_ifunc_resolve_by_got): Update.
8225         * f-valprint.c (info_common_command): Update.
8226         * findvar.c (read_var_value): Update.
8227         * frame.c (get_prev_frame_1): Update.
8228         (inside_main_func): Update.
8229         * frv-tdep.c (frv_skip_main_prologue): Update.
8230         (frv_frame_this_id): Update.
8231         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8232         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8233         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8234         (gnuv3_skip_trampoline): Update.
8235         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8236         (hppa64_hpux_in_solib_call_trampoline): Update.
8237         (hppa_hpux_skip_trampoline_code): Update.
8238         (hppa64_hpux_search_dummy_call_sequence): Update.
8239         (hppa_hpux_find_import_stub_for_addr): Update.
8240         (hppa_hpux_find_dummy_bpaddr): Update.
8241         * hppa-tdep.c (hppa_symbol_address)
8242         (hppa_lookup_stub_minimal_symbol): Update.
8243         * i386-tdep.c (i386_skip_main_prologue): Update.
8244         (i386_pe_skip_trampoline_code): Update.
8245         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8246         * infcall.c (get_function_name): Update.
8247         * infcmd.c (until_next_command): Update.
8248         * jit.c (jit_breakpoint_re_set_internal): Update.
8249         (jit_inferior_init): Update.
8250         * linespec.c (minsym_found): Update.
8251         (add_minsym): Update.
8252         * linux-fork.c (info_checkpoints_command): Update.
8253         * linux-nat.c (get_signo): Update.
8254         * linux-thread-db.c (inferior_has_bug): Update.
8255         * m32c-tdep.c (m32c_return_value): Update.
8256         (m32c_m16c_address_to_pointer): Update.
8257         (m32c_m16c_pointer_to_address): Update.
8258         * m32r-tdep.c (m32r_frame_this_id): Update.
8259         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8260         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8261         * maint.c (maintenance_translate_address): Update.
8262         * minsyms.c (add_minsym_to_hash_table): Update.
8263         (add_minsym_to_demangled_hash_table): Update.
8264         (msymbol_objfile): Update.
8265         (lookup_minimal_symbol): Update.
8266         (iterate_over_minimal_symbols): Update.
8267         (lookup_minimal_symbol_text): Update.
8268         (lookup_minimal_symbol_by_pc_name): Update.
8269         (lookup_minimal_symbol_solib_trampoline): Update.
8270         (lookup_minimal_symbol_by_pc_section_1): Update.
8271         (lookup_minimal_symbol_and_objfile): Update.
8272         (prim_record_minimal_symbol_full): Update.
8273         (compare_minimal_symbols): Update.
8274         (compact_minimal_symbols): Update.
8275         (build_minimal_symbol_hash_tables): Update.
8276         (install_minimal_symbols): Update.
8277         (terminate_minimal_symbol_table): Update.
8278         (find_solib_trampoline_target): Update.
8279         (minimal_symbol_upper_bound): Update.
8280         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8281         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8282         (mips_skip_pic_trampoline_code): Update.
8283         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8284         * objc-lang.c (selectors_info): Update.
8285         (classes_info): Update.
8286         (find_methods): Update.
8287         (find_imps): Update.
8288         (find_objc_msgsend): Update.
8289         * objfiles.c (objfile_relocate1): Update.
8290         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8291         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8292         * p-valprint.c (pascal_val_print): Update.
8293         * parse.c (write_exp_msymbol): Update.
8294         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8295         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8296         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8297         * printcmd.c (build_address_symbolic): Update.
8298         (sym_info): Update.
8299         (address_info): Update.
8300         * proc-service.c (ps_pglobal_lookup): Update.
8301         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8302         (find_pc_sect_psymtab): Update.
8303         * python/py-framefilter.c (py_print_frame): Update.
8304         * ravenscar-thread.c (get_running_thread_id): Update.
8305         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8306         Update.
8307         * remote.c (remote_check_symbols): Update.
8308         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8309         (rs6000_skip_trampoline_code): Update.
8310         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8311         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8312         * solib-dsbt.c (lm_base): Update.
8313         * solib-frv.c (lm_base): Update.
8314         (main_got): Update.
8315         * solib-irix.c (locate_base): Update.
8316         * solib-som.c (som_solib_create_inferior_hook): Update.
8317         (som_solib_desire_dynamic_linker_symbols): Update.
8318         (link_map_start): Update.
8319         * solib-spu.c (spu_enable_break): Update.
8320         (ocl_enable_break): Update.
8321         * solib-svr4.c (elf_locate_base): Update.
8322         (enable_break): Update.
8323         * spu-tdep.c (spu_get_overlay_table): Update.
8324         (spu_catch_start): Update.
8325         (flush_ea_cache): Update.
8326         * stabsread.c (define_symbol): Update.
8327         (scan_file_globals): Update.
8328         * stack.c (find_frame_funname): Update.
8329         (frame_info): Update.
8330         * symfile.c (simple_read_overlay_table): Update.
8331         (simple_overlay_update): Update.
8332         * symmisc.c (dump_msymbols): Update.
8333         * symtab.c (fixup_section): Update.
8334         (find_pc_sect_line): Update.
8335         (skip_prologue_sal): Update.
8336         (search_symbols): Update.
8337         (print_msymbol_info): Update.
8338         (rbreak_command): Update.
8339         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8340         (completion_list_objc_symbol): Update.
8341         (default_make_symbol_completion_list_break_on): Update.
8342         * tracepoint.c (scope_info): Update.
8343         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8344         (tui_get_begin_asm_address): Update.
8345         * valops.c (find_function_in_inferior): Update.
8346         * value.c (value_static_field): Update.
8347         (value_fn_field): Update.
8348
8349 2014-02-26  Tom Tromey  <tromey@redhat.com>
8350
8351         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8352         bound minimal symbols.  Move code that knows about minsym
8353         table layout...
8354         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8355         function.
8356         * minsyms.h (minimal_symbol_upper_bound): Declare.
8357         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8358         minimal_symbol_upper_bound.
8359
8360 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8361
8362         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8363         Use the type's name if its basic type does not have a tag.
8364
8365 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8366
8367         * dwarf2read.c (read_subrange_type): Add comment.
8368
8369 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8370
8371         * dwarf2read.c (update_enumeration_type_from_children): New
8372         function, mostly extracted from process_structure_scope.
8373         (read_enumeration_type): Call update_enumeration_type_from_children.
8374         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8375         and flag_flag_enum fields.
8376
8377 2014-02-26  Pedro Alves  <palves@redhat.com>
8378
8379         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8380         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8381         to_xfer_partial method.
8382
8383 2014-02-26  Pedro Alves  <palves@redhat.com>
8384
8385         * target.c (complete_target_initialization): Don't install
8386         default_xfer_partial as to_xfer_partial hook.
8387         (nomemory): Delete.
8388         (update_current_target): Don't INHERIT nor de_fault
8389         deprecated_xfer_memory.  Delete de_fault macro.
8390         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8391         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8392         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8393         field.
8394
8395 2014-02-26  Pedro Alves  <palves@redhat.com>
8396
8397         * go32-nat.c (my_write_child): New function.
8398         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8399         (go32_xfer_partial): New function.
8400         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8401         Instead install a to_xfer_partial hook.
8402
8403 2014-02-26  Pedro Alves  <palves@redhat.com>
8404
8405         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8406         to_xfer_partial helper.  Rewrite.
8407         (procfs_xfer_partial): New function.
8408         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8409         Install a to_xfer_partial hook.
8410
8411 2014-02-26  Pedro Alves  <palves@redhat.com>
8412
8413         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8414         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8415         (m32r_xfer_partial): New function.
8416         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8417         Install a to_xfer_partial hook.
8418
8419 2014-02-26  Pedro Alves  <palves@redhat.com>
8420
8421         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8422         helper.
8423         (mips_xfer_partial): New function.
8424         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8425         hook.  Install a to_xfer_partial hook.
8426
8427 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8428
8429         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8430         * gdbtypes.c (create_array_type_with_stride): New function,
8431         renaming create_array_type, but with an added parameter
8432         called "bit_stride".
8433         (create_array_type): Re-implement using
8434         create_array_type_with_stride.
8435         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8436         and DW_AT_bit_stride attributes.
8437
8438 2014-02-26  Pedro Alves  <palves@redhat.com>
8439
8440         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8441         task-specific breakpoints.
8442
8443 2014-02-25  Pedro Alves  <palves@redhat.com>
8444
8445         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8446         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8447
8448 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8449
8450         * defs.h: Annotate comments for Doxygen.
8451
8452 2014-02-25  Tom Tromey  <tromey@redhat.com>
8453
8454         * target.h (target_ignore): Don't declare.
8455         * target.c (target_ignore): Remove.
8456
8457 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8458
8459         PR gdb/16626
8460         * auto-load.c (auto_load_objfile_script_1): Change filename to
8461         debugfile.
8462
8463 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8464
8465         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8466         documentation.  Adjust prototype to match the target_ops
8467         to_xfer_partial method.  Adjust implementation accordingly.
8468
8469 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8470
8471         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8472         to_traceframe_info.
8473
8474 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8475
8476         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8477         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8478         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8479         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8480         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8481         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8482         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8483         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8484         New constants.
8485         (rl78_register_type): Use a data pointer type for SP and
8486         new pseudo registers mentioned above.  Use a 16 bit integer
8487         type for all other register pairs.
8488         (rl78_register_name, rl78_g10_register_name): Update for
8489         new pseudo registers.
8490         (rl78_pseudo_register_read): Likewise.
8491         (rl78_pseudo_register_write): Likewise.
8492         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8493         to the newly added pseudo registers.
8494
8495 2014-02-24  Doug Evans  <dje@google.com>
8496
8497         * value.c (record_latest_value): Fix comment.
8498         * printcmd.c (print_command_1): Remove code to handle -1 return from
8499         record_latest_value.
8500
8501 2014-02-24  Pedro Alves  <palves@redhat.com>
8502
8503         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8504         deprecated_xfer_memory hook.
8505         (procfs_xfer_partial): Call procfs_xfer_memory instead
8506         of the deprecated_xfer_memory target hook.
8507         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8508         helper.
8509
8510 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8511
8512         * windows-nat.c (windows_xfer_shared_libraries): Return
8513         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8514         requested object is TARGET_OBJECT_LIBRARIES.
8515
8516 2014-02-24  Yao Qi  <yao@codesourcery.com>
8517
8518         * target.h (enum target_xfer_status)
8519         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8520         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8521         explicitly.  New.
8522         * corefile.c (memory_error_message): User updated.
8523         * exec.c (section_table_read_available_memory): Likewise.
8524         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8525         * target.c (target_xfer_status_to_string): Likewise.
8526         (raw_memory_xfer_partial): Likewise.
8527         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8528         * valops.c (read_value_memory): Likewise.
8529         * exec.h: Update comments.
8530
8531 2014-02-24  Yao Qi  <yao@codesourcery.com>
8532
8533         * target.c (target_xfer_status_to_string): Rename argument err
8534         to status.
8535         * target.h (target_xfer_status_to_string): Update declaration.
8536         Replace target_xfer_error_to_string with
8537         target_xfer_status_to_string in comment.
8538
8539 2014-02-24  Yao Qi  <yao@codesourcery.com>
8540
8541         * mips-linux-nat.c (super_close): Update its type.
8542         (mips_linux_close): Pass 'self' to super_close.
8543
8544 2014-02-24  Yao Qi  <yao@codesourcery.com>
8545
8546         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8547         * corefile.c (read_memory): Adjusted.
8548         * target.c (target_write_with_progress): Adjusted.
8549
8550 2014-02-23  Yao Qi  <yao@codesourcery.com>
8551
8552         Revert two patches:
8553
8554         2013-10-25  Yao Qi  <yao@codesourcery.com>
8555
8556         * remote.c (remote_traceframe_info): Return early if
8557         traceframe is not selected.
8558
8559         2013-07-19  Yao Qi  <yao@codesourcery.com>
8560
8561         * target.c (update_current_target): Change the default action
8562         of 'to_traceframe_info' from tcomplain to return_zero.
8563         * target.h (struct target_ops) <to_traceframe_info>: Add more
8564         comments.
8565
8566 2014-02-23  Yao Qi  <yao@codesourcery.com>
8567
8568         * valops.c (read_value_memory): Rewrite it.  Call
8569         target_xfer_partial in a loop.
8570         * exec.h (section_table_available_memory): Remove declaration.
8571         Move comments to ...
8572         * exec.c (section_table_available_memory): ... here.  Make it
8573         static.
8574
8575 2014-02-23  Yao Qi  <yao@codesourcery.com>
8576
8577         * exec.c (section_table_read_available_memory): New function.
8578         * exec.h (section_table_read_available_memory): Declare.
8579         * ctf.c (ctf_xfer_partial): Call
8580         section_table_read_available_memory.
8581         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8582
8583 2014-02-23  Yao Qi  <yao@codesourcery.com>
8584
8585         * ctf.c (ctf_xfer_partial): Move code to ...
8586         * exec.c (exec_read_partial_read_only): ... it.  New function.
8587         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8588         * tracefile.c: Include "exec.h".
8589         * exec.h (exec_read_partial_read_only): Declare.
8590
8591 2014-02-23  Yao Qi  <yao@codesourcery.com>
8592
8593         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8594         (tfile_has_memory): Remove.
8595         (init_tfile_ops): Don't set fields to_has_all_memory and
8596         to_has_memory of tfile_ops.
8597         * tracefile.c (tracefile_has_all_memory): New function.
8598         (tracefile_has_memory): New function.
8599         (init_tracefile_ops): Initialize fields to_has_all_memory and
8600         to_has_memory of 'ops'.
8601
8602 2014-02-23  Yao Qi  <yao@codesourcery.com>
8603
8604         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8605         (ctf_thread_alive, ctf_get_trace_status): Remove.
8606         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8607         init_tracefile_ops.
8608         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8609         (tfile_has_stack, tfile_has_registers): Remove.
8610         (tfile_thread_alive): Remove.
8611         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8612         init_tracefile_ops.
8613         * tracefile.c (tracefile_has_stack): New function.
8614         (tracefile_has_registers): New function.
8615         (tracefile_thread_alive): New function.
8616         (tracefile_get_trace_status): New function.
8617         (init_tracefile_ops): New function.
8618         * tracefile.h (init_tracefile_ops): Declare.
8619
8620 2014-02-23  Yao Qi  <yao@codesourcery.com>
8621
8622         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8623         (O_LARGEFILE): Likewise.
8624         (tfile_ops): Likewise.
8625         (TRACE_HEADER_SIZE): Likewise.
8626         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8627         (cur_data_size): Likewise.
8628         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8629         (tfile_close, tfile_files_info): Likewise.
8630         (tfile_get_trace_status): Likewise.
8631         (tfile_get_tracepoint_status): Likewise.
8632         (tfile_get_traceframe_address): Likewise.
8633         (tfile_trace_find, match_blocktype): Likewise.
8634         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8635         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8636         (tfile_get_trace_state_variable_value): Likewise.
8637         (tfile_has_all_memory, tfile_has_memory): Likewise.
8638         (tfile_has_stack, tfile_has_registers): Likewise.
8639         (tfile_thread_alive, build_traceframe_info): Likewise.
8640         (tfile_traceframe_info, init_tfile_ops): Likewise.
8641         (_initialize_tracepoint): Don't call init_tfile_ops
8642         and add_target_with_completer.
8643         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8644         exec.h, completer.h and filenames.h.
8645         (_initialize_tracefile_tfile): New function.
8646
8647 2014-02-23  Yao Qi  <yao@codesourcery.com>
8648
8649         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8650         tracefile-tfile.o.
8651         (HFILES_NO_SRCDIR): Add tracefile.h.
8652         * ctf.c: Include "tracefile.h".
8653         * tracefile.h: New file.
8654         * tracefile.c: New file
8655         * tracefile-tfile.c: New file.
8656         * tracepoint.c: Include "tracefile.h".
8657         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8658         (stop_reason_names): Add const.
8659         (trace_file_writer_xfree): Move it to tracefile.c.
8660         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8661         (trace_save_ctf): Likewise.
8662         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8663         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8664         (tfile_write_header, tfile_write_regblock_type): Likewise.
8665         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8666         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8667         (tfile_write_raw_data, tfile_end): Likewise.
8668         (tfile_trace_file_writer_new): Likewise.
8669         (free_uploaded_tp): Make it extern.
8670         (free_uploaded_tsv): Make it extern.
8671         (_initialize_tracepoint): Move code to register command 'tsave'
8672         to tracefile.c.
8673         * tracepoint.h (stop_reason_names): Declare.
8674         (struct trace_frame_write_ops): Move it to tracefile.h.
8675         (struct trace_file_write_ops): Likewise.
8676         (struct trace_file_writer): Likewise.
8677         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8678
8679 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8680
8681         PR gdb/16594
8682         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8683         process name.
8684         (get_cores_used_by_process): New parameter num_cores, use it.
8685         (linux_xfer_osdata_processes): Pass num_cores to it.
8686         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8687         process name.
8688
8689 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8690
8691         * target.c (memory_xfer_partial): Fix length arg in call to
8692         breakpoint_xfer_memory.
8693
8694 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8695
8696         PR tdep/16397
8697         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8698         number comes after the + or - signs.  Adjust length of register
8699         name to be extracted.
8700
8701 2014-02-20  Tom Tromey  <tromey@redhat.com>
8702
8703         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8704         (ada_varobj_ops): Mark "extern".
8705
8706 2014-02-20  Tom Tromey  <tromey@redhat.com>
8707
8708         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8709
8710 2014-02-20  Doug Evans  <xdje42@gmail.com>
8711
8712         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8713         All callers updated.
8714         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8715         All callers updated.
8716         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8717         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8718
8719 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8720             Joel Brobecker  <brobecker@adacore.com>
8721             Doug Evans  <xdje42@gmail.com>
8722
8723         PR symtab/16581
8724         * dwarf2read.c (struct die_info): New member in_process.
8725         (reset_die_in_process): New function.
8726         (process_die): Set it at the start, reset when returning.
8727         (inherit_abstract_dies): Only call process_die if origin_child_die
8728         not already being processed.
8729
8730 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8731
8732         * windows-nat.c (handle_unload_dll): Add function documentation.
8733         (do_initial_windows_stuff): Add comment explaining why we wait
8734         until after inferior initialization has finished before
8735         processing all DLLs.
8736
8737 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8738
8739         * windows-nat.c (get_module_name): Delete.
8740         (windows_get_exec_module_filename): New function, mostly
8741         inspired from get_module_name.
8742         (windows_pid_to_exec_file): Replace call to get_module_name
8743         by call to windows_get_exec_module_filename.
8744
8745 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8746
8747         * windows-nat.c (handle_load_dll): Rewrite this function's
8748         introductory comment.  Remove code using get_module_name
8749         to get the DLL's name.
8750
8751 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8752
8753         * windows-nat.c (get_windows_debug_event): Ignore
8754         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8755         if windows_initialization_done == 0.
8756         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8757         Adjust implementation to always load all DLLs.
8758         (do_initial_windows_stuff): Replace call to
8759         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8760
8761 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8762
8763         * windows-nat.c (_initialize_windows_nat): Deprecate the
8764         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8765         and "assf" aliases into commands, and deprecate them as well.
8766         * NEWS: Add entry explaining that "dll-symbols" and its two
8767         aliases are now deprecated.
8768
8769 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8770
8771         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8772         new-line in debug string.  Remove trailing spaces.
8773
8774 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8775
8776         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8777
8778 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8779
8780         * NEWS: Add entry for the new feature
8781         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8782         and class values.
8783
8784 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8785
8786         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8787
8788 2014-02-19  Pedro Alves  <palves@redhat.com>
8789
8790         * common/ptid.h (struct ptid): Mention that process_stratum
8791         targets should prefer ptid.lwp.
8792
8793 2014-02-19  Pedro Alves  <palves@redhat.com>
8794
8795         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8796         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8797         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8798         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8799         store remote thread ids rather than ptid.tid.
8800         (_initialize_remote): Adjust.
8801
8802 2014-02-19  Tom Tromey  <tromey@redhat.com>
8803
8804         * target.c (target_get_unwinder): Rewrite.
8805         (target_get_tailcall_unwinder): Rewrite.
8806         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8807         (record_btrace_to_get_tailcall_unwinder): New function.
8808         (init_record_btrace_ops): Update.
8809         * target.h (struct target_ops) <to_get_unwinder,
8810         to_get_tailcall_unwinder>: Now function pointers.  Use
8811         TARGET_DEFAULT_RETURN.
8812
8813 2014-02-19  Tom Tromey  <tromey@redhat.com>
8814
8815         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8816         argument.
8817         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8818
8819 2014-02-19  Tom Tromey  <tromey@redhat.com>
8820
8821         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8822         directly.
8823         * target-delegates.c: Rebuild.
8824         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8825         TARGET_DEFAULT_FUNC.
8826         * target.c (default_target_decr_pc_after_break): Rename from
8827         forward_target_decr_pc_after_break.  Simplify.
8828         (target_decr_pc_after_break): Rely on delegation.
8829
8830 2014-02-19  Tom Tromey  <tromey@redhat.com>
8831
8832         * target.c (update_current_target): Do not INHERIT to_doc or
8833         to_magic.  Do not de_fault to_open or to_close.
8834
8835 2014-02-19  Tom Tromey  <tromey@redhat.com>
8836
8837         * gcore.h (objfile_find_memory_regions): Declare.
8838         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8839         "self" argument.
8840         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8841         * exec.c: Include gcore.h.
8842         (exec_set_find_memory_regions): Remove.
8843         (exec_find_memory_regions): Remove.
8844         (exec_do_find_memory_regions): Remove.
8845         (init_exec_ops): Update.
8846         * defs.h (exec_set_find_memory_regions): Remove.
8847
8848 2014-02-19  Tom Tromey  <tromey@redhat.com>
8849
8850         * target-delegates.c: Rebuild.
8851         * target.h (struct target_ops) <to_extra_thread_info,
8852         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8853         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8854         not 0, in TARGET_DEFAULT_RETURN.
8855
8856 2014-02-19  Tom Tromey  <tromey@redhat.com>
8857
8858         * target.c (complete_target_initialization): Remove casts.  Use
8859         return_zero_has_execution.
8860         (return_zero): Add "ignore" argument.
8861         (return_zero_has_execution): New function.
8862         (init_dummy_target): Remove casts.  Use
8863         return_zero_has_execution.
8864
8865 2014-02-19  Tom Tromey  <tromey@redhat.com>
8866
8867         * target.c (update_current_target): Update comments.  Do not
8868         INHERIT to_stratum.
8869
8870 2014-02-19  Tom Tromey  <tromey@redhat.com>
8871
8872         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8873         needed.
8874         * corelow.c (core_read_description): Delegate when needed.
8875         * remote.c (remote_read_description): Delegate when needed.
8876         * target-delegates.c: Rebuild.
8877         * target.c (target_read_description): Rewrite.
8878         * target.h (struct target_ops) <to_read_description>: Update
8879         comment.  Use TARGET_DEFAULT_RETURN.
8880
8881 2014-02-19  Tom Tromey  <tromey@redhat.com>
8882
8883         * target-delegates.c: Rebuild.
8884         * target.c (update_current_target): Don't inherit or default
8885         to_can_run.
8886         (find_default_run_target): Check against delegate_can_run.
8887         * target.h (struct target_ops) <to_can_run>: Use
8888         TARGET_DEFAULT_RETURN.
8889
8890 2014-02-19  Tom Tromey  <tromey@redhat.com>
8891
8892         * target-delegates.c: Rebuild.
8893         * target.c (target_disconnect): Unconditionally delegate.
8894         * target.h (struct target_ops) <to_disconnect>: Use
8895         TARGET_DEFAULT_NORETURN.
8896
8897 2014-02-19  Tom Tromey  <tromey@redhat.com>
8898
8899         * record.c (record_stop): Unconditionally delegate.
8900         * target-delegates.c: Rebuild.
8901         * target.c (target_stop_recording): Unconditionally delegate.
8902         * target.h (struct target_ops) <to_stop_recording>: Use
8903         TARGET_DEFAULT_IGNORE.
8904
8905 2014-02-19  Tom Tromey  <tromey@redhat.com>
8906
8907         * target-delegates.c: Rebuild.
8908         * target.c (target_enable_btrace): Unconditionally delegate.
8909         * target.h (struct target_ops) <to_enable_btrace>: Use
8910         TARGET_DEFAULT_NORETURN.
8911
8912 2014-02-19  Tom Tromey  <tromey@redhat.com>
8913
8914         * target-delegates.c: Rebuild.
8915         * target.c (target_read_btrace): Unconditionally delegate.
8916         * target.h (struct target_ops) <to_read_btrace>: Use
8917         TARGET_DEFAULT_NORETURN.
8918
8919 2014-02-19  Tom Tromey  <tromey@redhat.com>
8920
8921         * target-delegates.c: Rebuild.
8922         * target.c (target_teardown_btrace): Unconditionally delegate.
8923         * target.h (struct target_ops) <to_teardown_btrace>: Use
8924         TARGET_DEFAULT_NORETURN.
8925
8926 2014-02-19  Tom Tromey  <tromey@redhat.com>
8927
8928         * target-delegates.c: Rebuild.
8929         * target.c (target_disable_btrace): Unconditionally delegate.
8930         * target.h (struct target_ops) <to_disable_btrace>: Use
8931         TARGET_DEFAULT_NORETURN.
8932
8933 2014-02-19  Tom Tromey  <tromey@redhat.com>
8934
8935         * target-delegates.c: Rebuild.
8936         * target.c (default_search_memory): New function.
8937         (simple_search_memory): Update comment.
8938         (target_search_memory): Unconditionally delegate.
8939         * target.h (struct target_ops) <to_search_memory>: Use
8940         TARGET_DEFAULT_FUNC.
8941
8942 2014-02-19  Tom Tromey  <tromey@redhat.com>
8943
8944         * auxv.c (default_auxv_parse): No longer static.
8945         (target_auxv_parse): Unconditionally delegate.
8946         * auxv.h (default_auxv_parse): Declare.
8947         * target-delegates.c: Rebuild.
8948         * target.c: Include auxv.h.
8949         * target.h (struct target_ops) <to_auxv_parse>: Use
8950         TARGET_DEFAULT_FUNC.
8951
8952 2014-02-19  Tom Tromey  <tromey@redhat.com>
8953
8954         * target-delegates.c: Rebuild.
8955         * target.c (target_memory_map): Unconditionally delegate.
8956         * target.h (struct target_ops) <to_memory_map>: Use
8957         TARGET_DEFAULT_RETURN.
8958
8959 2014-02-19  Tom Tromey  <tromey@redhat.com>
8960
8961         * target-delegates.c: Rebuild.
8962         * target.c (target_thread_alive): Unconditionally delegate.
8963         * target.h (struct target_ops) <to_thread_alive>: Use
8964         TARGET_DEFAULT_RETURN.
8965
8966 2014-02-19  Tom Tromey  <tromey@redhat.com>
8967
8968         * target-delegates.c: Rebuild.
8969         * target.c (target_save_record): Unconditionally delegate.
8970         * target.h (struct target_ops) <to_save_record>: 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_delete_record): Unconditionally delegate.
8977         * target.h (struct target_ops) <to_delete_record>: Use
8978         TARGET_DEFAULT_NORETURN.
8979
8980 2014-02-19  Tom Tromey  <tromey@redhat.com>
8981
8982         * target-delegates.c: Rebuild.
8983         * target.c (target_record_is_replaying): Unconditionally
8984         delegate.
8985         * target.h (struct target_ops) <to_record_is_replaying>: Use
8986         TARGET_DEFAULT_RETURN.
8987
8988 2014-02-19  Tom Tromey  <tromey@redhat.com>
8989
8990         * target-delegates.c: Rebuild.
8991         * target.c (target_goto_record_begin): Unconditionally delegate.
8992         * target.h (struct target_ops) <to_goto_record_begin>: Use
8993         TARGET_DEFAULT_NORETURN.
8994
8995 2014-02-19  Tom Tromey  <tromey@redhat.com>
8996
8997         * target-delegates.c: Rebuild.
8998         * target.c (target_goto_record_end): Unconditionally delegate.
8999         * target.h (struct target_ops) <to_goto_record_end>: Use
9000         TARGET_DEFAULT_NORETURN.
9001
9002 2014-02-19  Tom Tromey  <tromey@redhat.com>
9003
9004         * target-delegates.c: Rebuild.
9005         * target.c (target_goto_record): Unconditionally delegate.
9006         * target.h (struct target_ops) <to_goto_record>: Use
9007         TARGET_DEFAULT_NORETURN.
9008
9009 2014-02-19  Tom Tromey  <tromey@redhat.com>
9010
9011         * target-delegates.c: Rebuild.
9012         * target.c (target_insn_history): Unconditionally delegate.
9013         * target.h (struct target_ops) <to_insn_history>: Use
9014         TARGET_DEFAULT_NORETURN.
9015
9016 2014-02-19  Tom Tromey  <tromey@redhat.com>
9017
9018         * target-delegates.c: Rebuild.
9019         * target.c (target_insn_history_from): Unconditionally delegate.
9020         * target.h (struct target_ops) <to_insn_history_from>: Use
9021         TARGET_DEFAULT_NORETURN.
9022
9023 2014-02-19  Tom Tromey  <tromey@redhat.com>
9024
9025         * target-delegates.c: Rebuild.
9026         * target.c (target_insn_history_range): Unconditionally delegate.
9027         * target.h (struct target_ops) <to_insn_history_range>: Use
9028         TARGET_DEFAULT_NORETURN.
9029
9030 2014-02-19  Tom Tromey  <tromey@redhat.com>
9031
9032         * target-delegates.c: Rebuild.
9033         * target.c (target_call_history): Unconditionally delegate.
9034         * target.h (struct target_ops) <to_call_history>: Use
9035         TARGET_DEFAULT_NORETURN.
9036
9037 2014-02-19  Tom Tromey  <tromey@redhat.com>
9038
9039         * target-delegates.c: Rebuild.
9040         * target.c (target_call_history_from): Unconditionally delegate.
9041         * target.h (struct target_ops) <to_call_history_from>: Use
9042         TARGET_DEFAULT_NORETURN.
9043
9044 2014-02-19  Tom Tromey  <tromey@redhat.com>
9045
9046         * target-delegates.c: Rebuild.
9047         * target.c (target_call_history_range): Unconditionally delegate.
9048         * target.h (struct target_ops) <to_call_history_range>: Use
9049         TARGET_DEFAULT_NORETURN.
9050
9051 2014-02-19  Tom Tromey  <tromey@redhat.com>
9052
9053         * target-delegates.c: Rebuild.
9054         * target.c (target_verify_memory): Unconditionally delegate.
9055         * target.h (struct target_ops) <to_verify_memory>: Use
9056         TARGET_DEFAULT_NORETURN.
9057
9058 2014-02-19  Tom Tromey  <tromey@redhat.com>
9059
9060         * target-delegates.c: Rebuild.
9061         * target.c (target_core_of_thread): Unconditionally delegate.
9062         * target.h (struct target_ops) <to_core_of_thread>: Use
9063         TARGET_DEFAULT_RETURN.
9064
9065 2014-02-19  Tom Tromey  <tromey@redhat.com>
9066
9067         * target-delegates.c: Rebuild.
9068         * target.c (target_flash_done): Unconditionally delegate.
9069         * target.h (struct target_ops) <to_flash_done>: Use
9070         TARGET_DEFAULT_NORETURN.
9071
9072 2014-02-19  Tom Tromey  <tromey@redhat.com>
9073
9074         * target-delegates.c: Rebuild.
9075         * target.c (target_flash_erase): Unconditionally delegate.
9076         * target.h (struct target_ops) <to_flash_erase>: Use
9077         TARGET_DEFAULT_NORETURN.
9078
9079 2014-02-19  Tom Tromey  <tromey@redhat.com>
9080
9081         * target-delegates.c: Rebuild.
9082         * target.c (target_get_section_table): Unconditionally delegate.
9083         * target.h (struct target_ops) <to_get_section_table>: Use
9084         TARGET_DEFAULT_RETURN.
9085
9086 2014-02-19  Tom Tromey  <tromey@redhat.com>
9087
9088         * target-delegates.c: Rebuild.
9089         * target.c (target_pid_to_str): Unconditionally delegate.
9090         (init_dummy_target): Don't initialize to_pid_to_str.
9091         (default_pid_to_str): Rename from dummy_pid_to_str.
9092         * target.h (struct target_ops) <to_pid_to_str>: Use
9093         TARGET_DEFAULT_FUNC.
9094
9095 2014-02-19  Tom Tromey  <tromey@redhat.com>
9096
9097         * target-delegates.c: Rebuild.
9098         * target.c (target_find_new_threads): Unconditionally delegate.
9099         * target.h (struct target_ops) <to_find_new_threads>: Use
9100         TARGET_DEFAULT_RETURN.
9101
9102 2014-02-19  Tom Tromey  <tromey@redhat.com>
9103
9104         * target-delegates.c: Rebuild.
9105         * target.c (target_program_signals): Unconditionally delegate.
9106         * target.h (struct target_ops) <to_program_signals>: Use
9107         TARGET_DEFAULT_IGNORE.
9108
9109 2014-02-19  Tom Tromey  <tromey@redhat.com>
9110
9111         * target-delegates.c: Rebuild.
9112         * target.c (target_pass_signals): Unconditionally delegate.
9113         * target.h (struct target_ops) <to_pass_signals>: Use
9114         TARGET_DEFAULT_IGNORE.
9115
9116 2014-02-19  Tom Tromey  <tromey@redhat.com>
9117
9118         * target-delegates.c: Rebuild.
9119         * target.c (default_mourn_inferior): New function.
9120         (target_mourn_inferior): Unconditionally delegate.
9121         * target.h (struct target_ops) <to_mourn_inferior>: Use
9122         TARGET_DEFAULT_FUNC.
9123
9124 2014-02-19  Tom Tromey  <tromey@redhat.com>
9125
9126         * target-delegates.c: Rebuild.
9127         * target.c (default_follow_fork): New function.
9128         (target_follow_fork): Unconditionally delegate.
9129         * target.h (struct target_ops) <to_follow_fork>: Use
9130         TARGET_DEFAULT_FUNC.
9131
9132 2014-02-19  Tom Tromey  <tromey@redhat.com>
9133
9134         * target-delegates.c: Rebuild.
9135         * target.c (target_kill): Unconditionally delegate.
9136         * target.h (struct target_ops) <to_kill>: Use
9137         TARGET_DEFAULT_NORETURN.
9138
9139 2014-02-19  Tom Tromey  <tromey@redhat.com>
9140
9141         * target-delegates.c: Rebuild.
9142         * target.c (target_masked_watch_num_registers): Unconditionally
9143         delegate.
9144         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9145         Use TARGET_DEFAULT_RETURN.
9146
9147 2014-02-19  Tom Tromey  <tromey@redhat.com>
9148
9149         * target-delegates.c: Rebuild.
9150         * target.c (target_remove_mask_watchpoint): Unconditionally
9151         delegate.
9152         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9153         TARGET_DEFAULT_RETURN.
9154
9155 2014-02-19  Tom Tromey  <tromey@redhat.com>
9156
9157         * target-delegates.c: Rebuild.
9158         * target.c (target_insert_mask_watchpoint): Unconditionally
9159         delegate.
9160         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9161         TARGET_DEFAULT_RETURN.
9162
9163 2014-02-19  Tom Tromey  <tromey@redhat.com>
9164
9165         * target-delegates.c: Rebuild.
9166         * target.c (target_ranged_break_num_registers): Unconditionally
9167         delegate.
9168         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9169         Use TARGET_DEFAULT_RETURN.
9170
9171 2014-02-19  Tom Tromey  <tromey@redhat.com>
9172
9173         * target-delegates.c: Rebuild.
9174         * target.c (target_fetch_registers): Unconditionally delegate.
9175         * target.h (struct target_ops) <to_fetch_registers>: Use
9176         TARGET_DEFAULT_NORETURN.
9177
9178 2014-02-19  Tom Tromey  <tromey@redhat.com>
9179
9180         * target-delegates.c: Rebuild.
9181         * target.c (update_current_target): Don't inherit or default
9182         to_stop.
9183         * target.h (struct target_ops) <to_stop>: Use
9184         TARGET_DEFAULT_IGNORE.
9185
9186 2014-02-19  Tom Tromey  <tromey@redhat.com>
9187
9188         * target-delegates.c: Rebuild.
9189         * target.c (update_current_target): Don't inherit or default
9190         to_can_run_breakpoint_commands.
9191         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9192         Use TARGET_DEFAULT_RETURN.
9193
9194 2014-02-19  Tom Tromey  <tromey@redhat.com>
9195
9196         * target-delegates.c: Rebuild.
9197         * target.c (update_current_target): Don't inherit or default
9198         to_supports_evaluation_of_breakpoint_conditions.
9199         * target.h (struct target_ops)
9200         <to_supports_evaluation_of_breakpoint_conditions>: Use
9201         TARGET_DEFAULT_RETURN.
9202
9203 2014-02-19  Tom Tromey  <tromey@redhat.com>
9204
9205         * target-delegates.c: Rebuild.
9206         * target.c (update_current_target): Don't inherit or default
9207         to_augmented_libraries_svr4_read.
9208         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9209         Use TARGET_DEFAULT_RETURN.
9210
9211 2014-02-19  Tom Tromey  <tromey@redhat.com>
9212
9213         * target-delegates.c: Rebuild.
9214         * target.c (update_current_target): Don't inherit or default
9215         to_can_use_agent.
9216         * target.h (struct target_ops) <to_can_use_agent>: Use
9217         TARGET_DEFAULT_RETURN.
9218
9219 2014-02-19  Tom Tromey  <tromey@redhat.com>
9220
9221         * target-delegates.c: Rebuild.
9222         * target.c (update_current_target): Don't inherit or default
9223         to_use_agent.
9224         * target.h (struct target_ops) <to_use_agent>: Use
9225         TARGET_DEFAULT_NORETURN.
9226
9227 2014-02-19  Tom Tromey  <tromey@redhat.com>
9228
9229         * target-delegates.c: Rebuild.
9230         * target.c (update_current_target): Don't inherit or default
9231         to_traceframe_info.
9232         (return_null): Remove.
9233         * target.h (struct target_ops) <to_traceframe_info>: Use
9234         TARGET_DEFAULT_RETURN.
9235
9236 2014-02-19  Tom Tromey  <tromey@redhat.com>
9237
9238         * target-delegates.c: Rebuild.
9239         * target.c (update_current_target): Don't inherit or default
9240         to_static_tracepoint_markers_by_strid.
9241         * target.h (struct target_ops)
9242         <to_static_tracepoint_markers_by_strid>: Use
9243         TARGET_DEFAULT_NORETURN.
9244
9245 2014-02-19  Tom Tromey  <tromey@redhat.com>
9246
9247         * target-delegates.c: Rebuild.
9248         * target.c (update_current_target): Don't inherit or default
9249         to_static_tracepoint_marker_at.
9250         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9251         Use TARGET_DEFAULT_RETURN.
9252
9253 2014-02-19  Tom Tromey  <tromey@redhat.com>
9254
9255         * target-delegates.c: Rebuild.
9256         * target.c (update_current_target): Don't inherit or default
9257         to_set_permissions.
9258         * target.h (struct target_ops) <to_set_permissions>: Use
9259         TARGET_DEFAULT_IGNORE.
9260
9261 2014-02-19  Tom Tromey  <tromey@redhat.com>
9262
9263         * target-delegates.c: Rebuild.
9264         * target.c (update_current_target): Don't inherit or default
9265         to_get_tib_address.
9266         * target.h (struct target_ops) <to_get_tib_address>: Use
9267         TARGET_DEFAULT_NORETURN.
9268
9269 2014-02-19  Tom Tromey  <tromey@redhat.com>
9270
9271         * target-delegates.c: Rebuild.
9272         * target.c (update_current_target): Don't inherit or default
9273         to_set_trace_notes.
9274         * target.h (struct target_ops) <to_set_trace_notes>: Use
9275         TARGET_DEFAULT_RETURN.
9276
9277 2014-02-19  Tom Tromey  <tromey@redhat.com>
9278
9279         * target-delegates.c: Rebuild.
9280         * target.c (update_current_target): Don't initialize
9281         to_set_trace_buffer_size.
9282         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9283         TARGET_DEFAULT_IGNORE.
9284
9285 2014-02-19  Tom Tromey  <tromey@redhat.com>
9286
9287         * target-delegates.c: Rebuild.
9288         * target.c (update_current_target): Don't inherit or default
9289         to_set_circular_trace_buffer.
9290         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9291         TARGET_DEFAULT_IGNORE.
9292
9293 2014-02-19  Tom Tromey  <tromey@redhat.com>
9294
9295         * target-delegates.c: Rebuild.
9296         * target.c (update_current_target): Don't inherit or default
9297         to_set_disconnected_tracing.
9298         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9299         TARGET_DEFAULT_IGNORE.
9300
9301 2014-02-19  Tom Tromey  <tromey@redhat.com>
9302
9303         * target-delegates.c: Rebuild.
9304         * target.c (update_current_target): Don't inherit or default
9305         to_get_min_fast_tracepoint_insn_len.
9306         (return_minus_one): Remove.
9307         * target.h (struct target_ops)
9308         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9309
9310 2014-02-19  Tom Tromey  <tromey@redhat.com>
9311
9312         * target-delegates.c: Rebuild.
9313         * target.c (update_current_target): Don't inherit or default
9314         to_get_raw_trace_data.
9315         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9316         TARGET_DEFAULT_NORETURN.
9317
9318 2014-02-19  Tom Tromey  <tromey@redhat.com>
9319
9320         * target-delegates.c: Rebuild.
9321         * target.c (update_current_target): Don't inherit or default
9322         to_upload_trace_state_variables.
9323         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9324         Use TARGET_DEFAULT_RETURN.
9325
9326 2014-02-19  Tom Tromey  <tromey@redhat.com>
9327
9328         * target-delegates.c: Rebuild.
9329         * target.c (update_current_target): Don't inherit or default
9330         to_upload_tracepoints.
9331         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9332         TARGET_DEFAULT_RETURN.
9333
9334 2014-02-19  Tom Tromey  <tromey@redhat.com>
9335
9336         * target-delegates.c: Rebuild.
9337         * target.c (update_current_target): Don't inherit or default
9338         to_save_trace_data.
9339         * target.h (struct target_ops) <to_save_trace_data>: Use
9340         TARGET_DEFAULT_NORETURN.
9341
9342 2014-02-19  Tom Tromey  <tromey@redhat.com>
9343
9344         * target-delegates.c: Rebuild.
9345         * target.c (update_current_target): Don't inherit or default
9346         to_get_trace_state_variable_value.
9347         * target.h (struct target_ops)
9348         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9349
9350 2014-02-19  Tom Tromey  <tromey@redhat.com>
9351
9352         * target-delegates.c: Rebuild.
9353         * target.c (update_current_target): Don't inherit or default
9354         to_trace_find.
9355         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9356
9357 2014-02-19  Tom Tromey  <tromey@redhat.com>
9358
9359         * target-delegates.c: Rebuild.
9360         * target.c (update_current_target): Don't inherit or default
9361         to_trace_stop.
9362         * target.h (struct target_ops) <to_trace_stop>: Use
9363         TARGET_DEFAULT_NORETURN.
9364
9365 2014-02-19  Tom Tromey  <tromey@redhat.com>
9366
9367         * target-delegates.c: Rebuild.
9368         * target.c (update_current_target): Don't inherit or default
9369         to_get_tracepoint_status.
9370         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9371         TARGET_DEFAULT_NORETURN.
9372
9373 2014-02-19  Tom Tromey  <tromey@redhat.com>
9374
9375         * target-delegates.c: Rebuild.
9376         * target.c (update_current_target): Don't inherit or default
9377         to_get_trace_status.
9378         * target.h (struct target_ops) <to_get_trace_status>: Use
9379         TARGET_DEFAULT_RETURN.
9380
9381 2014-02-19  Tom Tromey  <tromey@redhat.com>
9382
9383         * target-delegates.c: Rebuild.
9384         * target.c (update_current_target): Don't inherit or default
9385         to_trace_start.
9386         * target.h (struct target_ops) <to_trace_start>: Use
9387         TARGET_DEFAULT_NORETURN.
9388
9389 2014-02-19  Tom Tromey  <tromey@redhat.com>
9390
9391         * target-delegates.c: Rebuild.
9392         * target.c (update_current_target): Don't inherit or default
9393         to_trace_set_readonly_regions.
9394         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9395         Use TARGET_DEFAULT_NORETURN.
9396
9397 2014-02-19  Tom Tromey  <tromey@redhat.com>
9398
9399         * target-delegates.c: Rebuild.
9400         * target.c (update_current_target): Don't inherit or default
9401         to_disable_tracepoint.
9402         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9403         TARGET_DEFAULT_NORETURN.
9404
9405 2014-02-19  Tom Tromey  <tromey@redhat.com>
9406
9407         * target-delegates.c: Rebuild.
9408         * target.c (update_current_target): Don't inherit or default
9409         to_enable_tracepoint.
9410         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9411         TARGET_DEFAULT_NORETURN.
9412
9413 2014-02-19  Tom Tromey  <tromey@redhat.com>
9414
9415         * target-delegates.c: Rebuild.
9416         * target.c (update_current_target): Don't inherit or default
9417         to_download_trace_state_variable.
9418         * target.h (struct target_ops) <to_download_trace_state_variable>:
9419         Use TARGET_DEFAULT_NORETURN.
9420
9421 2014-02-19  Tom Tromey  <tromey@redhat.com>
9422
9423         * target-delegates.c: Rebuild.
9424         * target.c (update_current_target): Don't inherit or default
9425         to_can_download_tracepoint.
9426         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9427         TARGET_DEFAULT_RETURN.
9428
9429 2014-02-19  Tom Tromey  <tromey@redhat.com>
9430
9431         * target-delegates.c: Rebuild.
9432         * target.c (update_current_target): Don't inherit or default
9433         to_download_tracepoint.
9434         * target.h (struct target_ops) <to_download_tracepoint>: Use
9435         TARGET_DEFAULT_NORETURN.
9436
9437 2014-02-19  Tom Tromey  <tromey@redhat.com>
9438
9439         * target-delegates.c: Rebuild.
9440         * target.c (update_current_target): Don't inherit or default
9441         to_trace_init.
9442         * target.h (struct target_ops) <to_trace_init>: Use
9443         TARGET_DEFAULT_RETURN.
9444
9445 2014-02-19  Tom Tromey  <tromey@redhat.com>
9446
9447         * target-delegates.c: Rebuild.
9448         * target.c (update_current_target): Don't inherit or default
9449         to_supports_string_tracing.
9450         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9451         TARGET_DEFAULT_RETURN.
9452
9453 2014-02-19  Tom Tromey  <tromey@redhat.com>
9454
9455         * target-delegates.c: Rebuild.
9456         * target.c (update_current_target): Don't inherit or default
9457         to_supports_enable_disable_tracepoint.
9458         * target.h (struct target_ops)
9459         <to_supports_enable_disable_tracepoint>: Use
9460         TARGET_DEFAULT_RETURN.
9461
9462 2014-02-19  Tom Tromey  <tromey@redhat.com>
9463
9464         * target-delegates.c: Rebuild.
9465         * target.c (update_current_target): Don't inherit or default
9466         to_supports_multi_process.
9467         * target.h (struct target_ops) <to_supports_multi_process>: Use
9468         TARGET_DEFAULT_RETURN.
9469
9470 2014-02-19  Tom Tromey  <tromey@redhat.com>
9471
9472         * target-delegates.c: Rebuild.
9473         * target.c (update_current_target): Don't inherit or default
9474         to_get_ada_task_ptid.
9475         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9476         TARGET_DEFAULT_FUNC.
9477
9478 2014-02-19  Tom Tromey  <tromey@redhat.com>
9479
9480         * target-delegates.c: Rebuild.
9481         * target.c (update_current_target): Don't inherit or default
9482         to_thread_architecture.
9483         * target.h (struct target_ops) <to_thread_architecture>: Use
9484         TARGET_DEFAULT_FUNC.
9485
9486 2014-02-19  Tom Tromey  <tromey@redhat.com>
9487
9488         * target-delegates.c: Rebuild.
9489         * target.c (update_current_target): Don't inherit or default
9490         to_execution_direction.
9491         * target.h (struct target_ops) <to_execution_direction>: Use
9492         TARGET_DEFAULT_FUNC.
9493
9494 2014-02-19  Tom Tromey  <tromey@redhat.com>
9495
9496         * target-delegates.c: Rebuild.
9497         * target.c (update_current_target): Don't inherit or default
9498         to_can_execute_reverse.
9499         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9500         TARGET_DEFAULT_RETURN.
9501         (target_can_execute_reverse): Unconditionally delegate.
9502
9503 2014-02-19  Tom Tromey  <tromey@redhat.com>
9504
9505         * target-delegates.c: Rebuild.
9506         * target.c (update_current_target): Don't inherit or default
9507         to_goto_bookmark.
9508         (dummy_goto_bookmark): Remove.
9509         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9510         * target.h (struct target_ops) <to_goto_bookmark>: Use
9511         TARGET_DEFAULT_NORETURN.
9512
9513 2014-02-19  Tom Tromey  <tromey@redhat.com>
9514
9515         * target-delegates.c: Rebuild.
9516         * target.c (update_current_target): Don't inherit or default
9517         to_get_bookmark.
9518         (dummy_get_bookmark): Remove.
9519         (init_dummy_target): Don't inherit or default to_get_bookmark.
9520         * target.h (struct target_ops) <to_get_bookmark>: Use
9521         TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
9528         (init_dummy_target): Don't initialize to_make_corefile_notes.
9529         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9530         TARGET_DEFAULT_FUNC.
9531
9532 2014-02-19  Tom Tromey  <tromey@redhat.com>
9533
9534         * target-delegates.c: Rebuild.
9535         * target.c (update_current_target): Don't inherit or default
9536         to_find_memory_regions.
9537         (init_dummy_target): Don't initialize to_find_memory_regions.
9538         * target.h (struct target_ops) <to_find_memory_regions>: Use
9539         TARGET_DEFAULT_FUNC.
9540
9541 2014-02-19  Tom Tromey  <tromey@redhat.com>
9542
9543         * target-delegates.c: Rebuild.
9544         * target.c (update_current_target): Don't inherit or default
9545         to_log_command.
9546         * target.h (struct target_ops) <to_log_command>: Use
9547         TARGET_DEFAULT_IGNORE.
9548         (target_log_command): Unconditionally delegate.
9549
9550 2014-02-19  Tom Tromey  <tromey@redhat.com>
9551
9552         * target-delegates.c: Rebuild.
9553         * target.c (update_current_target): Don't inherit or default
9554         to_pid_to_exec_file.
9555         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9556         TARGET_DEFAULT_RETURN.
9557
9558 2014-02-19  Tom Tromey  <tromey@redhat.com>
9559
9560         * target-delegates.c: Rebuild.
9561         * target.c (update_current_target): Don't inherit or default
9562         to_thread_name.
9563         (target_thread_name): Unconditionally delegate.
9564         * target.h (struct target_ops) <to_thread_name>: Use
9565         TARGET_DEFAULT_RETURN.
9566
9567 2014-02-19  Tom Tromey  <tromey@redhat.com>
9568
9569         * target-delegates.c: Rebuild.
9570         * target.c (update_current_target): Don't inherit or default
9571         to_extra_thread_info.
9572         * target.h (struct target_ops) <to_extra_thread_info>: Use
9573         TARGET_DEFAULT_RETURN.
9574
9575 2014-02-19  Tom Tromey  <tromey@redhat.com>
9576
9577         * target-delegates.c: Rebuild.
9578         * target.c (update_current_target): Don't inherit or default
9579         to_has_exited.
9580         * target.h (struct target_ops) <to_has_exited>: Use
9581         TARGET_DEFAULT_RETURN..
9582
9583 2014-02-19  Tom Tromey  <tromey@redhat.com>
9584
9585         * target-delegates.c: Rebuild.
9586         * target.c (update_current_target): Don't inherit or default
9587         to_set_syscall_catchpoint.
9588         (return_one): Remove.
9589         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9590         TARGET_DEFAULT_RETURN.
9591
9592 2014-02-19  Tom Tromey  <tromey@redhat.com>
9593
9594         * target-delegates.c: Rebuild.
9595         * target.c (update_current_target): Don't inherit or default
9596         to_insert_exec_catchpoint.
9597         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9598         TARGET_DEFAULT_RETURN.
9599
9600 2014-01-08  Tom Tromey  <tromey@redhat.com>
9601
9602         * target-delegates.c: Rebuild.
9603         * target.c (update_current_target): Don't inherit or default
9604         to_insert_exec_catchpoint.
9605         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9606         TARGET_DEFAULT_RETURN.
9607
9608 2014-02-19  Tom Tromey  <tromey@redhat.com>
9609
9610         * target-delegates.c: Rebuild.
9611         * target.c (update_current_target): Don't inherit or default
9612         to_remove_vfork_catchpoint.
9613         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9614         TARGET_DEFAULT_RETURN.
9615
9616 2014-02-19  Tom Tromey  <tromey@redhat.com>
9617
9618         * target-delegates.c: Rebuild.
9619         * target.c (update_current_target): Don't inherit or default
9620         to_insert_vfork_catchpoint.
9621         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9622         TARGET_DEFAULT_RETURN.
9623
9624 2014-02-19  Tom Tromey  <tromey@redhat.com>
9625
9626         * target-delegates.c: Rebuild.
9627         * target.c (update_current_target): Don't inherit or default
9628         to_remove_fork_catchpoint.
9629         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9630         TARGET_DEFAULT_RETURN.
9631
9632 2014-02-19  Tom Tromey  <tromey@redhat.com>
9633
9634         * target-delegates.c: Rebuild.
9635         * target.c (update_current_target): Don't inherit or default
9636         to_insert_fork_catchpoint.
9637         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9638         TARGET_DEFAULT_RETURN.
9639
9640 2014-02-19  Tom Tromey  <tromey@redhat.com>
9641
9642         * target-delegates.c: Rebuild.
9643         * target.c (update_current_target): Don't inherit or default
9644         to_post_startup_inferior.
9645         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9646         TARGET_DEFAULT_IGNORE.
9647
9648 2014-02-19  Tom Tromey  <tromey@redhat.com>
9649
9650         * target-delegates.c: Rebuild.
9651         * target.c (update_current_target): Don't inherit or default
9652         to_load.
9653         * target.h (struct target_ops) <to_load>: Use
9654         TARGET_DEFAULT_NORETURN.
9655
9656 2014-02-19  Tom Tromey  <tromey@redhat.com>
9657
9658         * target-delegates.c: Rebuild.
9659         * target.c (update_current_target): Don't inherit or default
9660         to_terminal_info.
9661         * target.h (struct target_ops) <to_terminal_info>: Use
9662         TARGET_DEFAULT_FUNC.
9663
9664 2014-02-19  Tom Tromey  <tromey@redhat.com>
9665
9666         * target-delegates.c: Rebuild.
9667         * target.c (update_current_target): Don't inherit or default
9668         to_terminal_save_ours.
9669         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9670         TARGET_DEFAULT_IGNORE.
9671
9672 2014-02-19  Tom Tromey  <tromey@redhat.com>
9673
9674         * target-delegates.c: Rebuild.
9675         * target.c (update_current_target): Don't inherit or default
9676         to_terminal_ours.
9677         * target.h (struct target_ops) <to_terminal_ours>: Use
9678         TARGET_DEFAULT_IGNORE.
9679
9680 2014-02-19  Tom Tromey  <tromey@redhat.com>
9681
9682         * target-delegates.c: Rebuild.
9683         * target.c (update_current_target): Don't inherit or default
9684         to_terminal_ours_for_output.
9685         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9686         TARGET_DEFAULT_IGNORE.
9687
9688 2014-02-19  Tom Tromey  <tromey@redhat.com>
9689
9690         * target-delegates.c: Rebuild.
9691         * target.c (update_current_target): Don't inherit or default
9692         to_terminal_inferior.
9693         * target.h (struct target_ops) <to_terminal_inferior>: Use
9694         TARGET_DEFAULT_IGNORE.
9695
9696 2014-02-19  Tom Tromey  <tromey@redhat.com>
9697
9698         * target-delegates.c: Rebuild.
9699         * target.c (update_current_target): Don't inherit or default
9700         to_terminal_init.
9701         * target.h (struct target_ops) <to_terminal_init>: Use
9702         TARGET_DEFAULT_IGNORE.
9703
9704 2014-02-19  Tom Tromey  <tromey@redhat.com>
9705
9706         * target-delegates.c: Rebuild.
9707         * target.c (update_current_target): Don't inherit or default
9708         to_can_accel_watchpoint_condition.
9709         * target.h (struct target_ops)
9710         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9711
9712 2014-02-19  Tom Tromey  <tromey@redhat.com>
9713
9714         * target-delegates.c: Rebuild.
9715         * target.c (update_current_target): Don't inherit or default
9716         to_region_ok_for_hw_watchpoint.
9717         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9718         Use TARGET_DEFAULT_FUNC.
9719
9720 2014-02-19  Tom Tromey  <tromey@redhat.com>
9721
9722         * target-delegates.c: Rebuild.
9723         * target.c (update_current_target): Don't inherit or default
9724         to_watchpoint_addr_within_range.
9725         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9726         Use TARGET_DEFAULT_FUNC.
9727
9728 2014-02-19  Tom Tromey  <tromey@redhat.com>
9729
9730         * target-delegates.c: Rebuild.
9731         * target.c (update_current_target): Don't inherit or default
9732         to_remove_watchpoint.
9733         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9734         TARGET_DEFAULT_NORETURN.
9735
9736 2014-02-19  Tom Tromey  <tromey@redhat.com>
9737
9738         * target-delegates.c: Rebuild.
9739         * target.c (update_current_target): Don't inherit or default
9740         to_insert_watchpoint.
9741         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9742         TARGET_DEFAULT_RETURN.
9743
9744 2014-02-19  Tom Tromey  <tromey@redhat.com>
9745
9746         * target-delegates.c: Rebuild.
9747         * target.c (update_current_target): Don't inherit or default
9748         to_remove_hw_breakpoint.
9749         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9750         TARGET_DEFAULT_RETURN.
9751
9752 2014-02-19  Tom Tromey  <tromey@redhat.com>
9753
9754         * target-delegates.c: Rebuild.
9755         * target.c (update_current_target): Don't inherit or default
9756         to_insert_hw_breakpoint.
9757         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9758         TARGET_DEFAULT_RETURN.
9759
9760 2014-02-19  Tom Tromey  <tromey@redhat.com>
9761
9762         * target-delegates.c: Rebuild.
9763         * target.c (update_current_target): Don't inherit or default
9764         to_can_use_hw_breakpoint.
9765         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9766         TARGET_DEFAULT_RETURN.
9767
9768 2014-02-19  Tom Tromey  <tromey@redhat.com>
9769
9770         * target-delegates.c: Rebuild.
9771         * target.c (update_current_target): Don't inherit or default
9772         to_files_info.
9773         * target.h (struct target_ops) <to_files_info>: Use
9774         TARGET_DEFAULT_IGNORE.
9775
9776 2014-02-19  Tom Tromey  <tromey@redhat.com>
9777
9778         * target-delegates.c: Rebuild.
9779         * target.c (update_current_target): Don't inherit or default
9780         to_store.
9781         * target.h (struct target_ops) <to_store>: Use
9782         TARGET_DEFAULT_NORETURN.
9783
9784 2014-02-19  Tom Tromey  <tromey@redhat.com>
9785
9786         * target-delegates.c: Rebuild.
9787         * target.c (update_current_target): Don't inherit or default
9788         to_post_attach.
9789         * target.h (struct target_ops) <to_post_attach>: Use
9790         TARGET_DEFAULT_IGNORE.
9791
9792 2014-02-19  Tom Tromey  <tromey@redhat.com>
9793
9794         * target-delegates.c: Rebuild.
9795         * target.c (update_current_target): Don't inherit or default
9796         to_rcmd.
9797         (default_rcmd): New function.
9798         (do_monitor_command): Unconditionally delegate.
9799         * target.h (struct target_ops) <to_rmcd>: Use
9800         TARGET_DEFAULT_FUNC.
9801
9802 2014-02-19  Tom Tromey  <tromey@redhat.com>
9803
9804         * target-delegates.c: Rebuild.
9805         * target.c (init_dummy_target): Don't initialize to_attach.
9806         (target_attach): Unconditionally delegate.
9807         * target.h (struct target_ops) <to_attach>: Use
9808         TARGET_DEFAULT_FUNC.
9809
9810 2014-02-19  Tom Tromey  <tromey@redhat.com>
9811
9812         * target-delegates.c: Rebuild.
9813         * target.c (target_detach): Unconditionally delegate.
9814         (init_dummy_target): Don't initialize to_detach.
9815         * target.h (struct target_ops) <to_detach>: Use
9816         TARGET_DEFAULT_IGNORE.
9817
9818 2014-02-19  Tom Tromey  <tromey@redhat.com>
9819
9820         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9821         Add argument.
9822         (target_augmented_libraries_svr4_read): Add argument.
9823         * target.c (update_current_target): Update.
9824         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9825         argument.
9826
9827 2014-02-19  Tom Tromey  <tromey@redhat.com>
9828
9829         * target.h (struct target_ops) <to_call_history_range>: Add
9830         argument.
9831         * target.c (target_call_history_range): Add argument.
9832         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9833         argument.
9834         (record_btrace_call_history_from): Update.
9835
9836 2014-02-19  Tom Tromey  <tromey@redhat.com>
9837
9838         * target.h (struct target_ops) <to_call_history_from>: Add
9839         argument.
9840         * target.c (target_call_history_from): Add argument.
9841         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9842         argument.
9843
9844 2014-02-19  Tom Tromey  <tromey@redhat.com>
9845
9846         * target.h (struct target_ops) <to_call_history>: Add argument.
9847         * target.c (target_call_history): Add argument.
9848         * record-btrace.c (record_btrace_call_history): Add 'self'
9849         argument.
9850
9851 2014-02-19  Tom Tromey  <tromey@redhat.com>
9852
9853         * target.h (struct target_ops) <to_insn_history_range>: Add
9854         argument.
9855         * target.c (target_insn_history_range): Add argument.
9856         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9857         argument.
9858         (record_btrace_insn_history_from): Update.
9859
9860 2014-02-19  Tom Tromey  <tromey@redhat.com>
9861
9862         * target.h (struct target_ops) <to_insn_history_from>: Add
9863         argument.
9864         * target.c (target_insn_history_from): Add argument.
9865         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9866         argument.
9867
9868 2014-02-19  Tom Tromey  <tromey@redhat.com>
9869
9870         * target.h (struct target_ops) <to_insn_history>: Add argument.
9871         * target.c (target_insn_history): Add argument.
9872         * record-btrace.c (record_btrace_insn_history): Add 'self'
9873         argument.
9874
9875 2014-02-19  Tom Tromey  <tromey@redhat.com>
9876
9877         * target.h (struct target_ops) <to_goto_record>: Add argument.
9878         * target.c (target_goto_record): Add argument.
9879         * record-full.c (record_full_goto): Add 'self' argument.
9880         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9881
9882 2014-02-19  Tom Tromey  <tromey@redhat.com>
9883
9884         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9885         * target.c (target_goto_record_end): Add argument.
9886         * record-full.c (record_full_goto_end): Add 'self' argument.
9887         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9888
9889 2014-02-19  Tom Tromey  <tromey@redhat.com>
9890
9891         * target.h (struct target_ops) <to_goto_record_begin>: Add
9892         argument.
9893         * target.c (target_goto_record_begin): Add argument.
9894         * record-full.c (record_full_goto_begin): Add 'self' argument.
9895         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9896         argument.
9897
9898 2014-02-19  Tom Tromey  <tromey@redhat.com>
9899
9900         * target.h (struct target_ops) <to_record_is_replaying>: Add
9901         argument.
9902         * target.c (target_record_is_replaying): Add argument.
9903         * record-full.c (record_full_is_replaying): Add 'self' argument.
9904         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9905         argument.
9906         (record_btrace_xfer_partial, record_btrace_store_registers)
9907         (record_btrace_prepare_to_store, record_btrace_resume)
9908         (record_btrace_wait, record_btrace_decr_pc_after_break)
9909         (record_btrace_find_new_threads, record_btrace_thread_alive):
9910         Update.
9911
9912 2014-02-19  Tom Tromey  <tromey@redhat.com>
9913
9914         * target.h (struct target_ops) <to_delete_record>: Add argument.
9915         * target.c (target_delete_record): Add argument.
9916         * record-full.c (record_full_delete): Add 'self' argument.
9917
9918 2014-02-19  Tom Tromey  <tromey@redhat.com>
9919
9920         * target.h (struct target_ops) <to_save_record>: Add argument.
9921         * target.c (target_save_record): Add argument.
9922         * record-full.c (record_full_save): Add 'self' argument.
9923         (record_full_save): Add 'self' argument.
9924
9925 2014-02-19  Tom Tromey  <tromey@redhat.com>
9926
9927         * target.h (struct target_ops) <to_info_record>: Add argument.
9928         * target.c (target_info_record): Add argument.
9929         * record.c (info_record_command): Add argument.
9930         * record-full.c (record_full_info): Add 'self' argument.
9931         * record-btrace.c (record_btrace_info): Add 'self' argument.
9932
9933 2014-02-19  Tom Tromey  <tromey@redhat.com>
9934
9935         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9936         * target.c (target_stop_recording): Add argument.
9937         * record.c (record_stop): Add argument.
9938         * record-btrace.c (record_btrace_stop_recording): Add 'self'
9939         argument.
9940
9941 2014-02-19  Tom Tromey  <tromey@redhat.com>
9942
9943         * target.h (struct target_ops) <to_read_btrace>: Add argument.
9944         * target.c (struct target_ops) <to_read_btrace>: Add argument.
9945         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9946         argument.
9947         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9948         (_initialize_amd64_linux_nat): Use it.
9949         * i386-linux-nat.c (i386_linux_read_btrace): New function.
9950         (_initialize_i386_linux_nat): Use it.
9951
9952 2014-02-19  Tom Tromey  <tromey@redhat.com>
9953
9954         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9955         * target.c (target_teardown_btrace): Add argument.
9956         * remote.c (remote_teardown_btrace): Add 'self' argument.
9957         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9958         argument.
9959         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9960         argument.
9961
9962 2014-02-19  Tom Tromey  <tromey@redhat.com>
9963
9964         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9965         * target.c (target_disable_btrace): Add argument.
9966         * remote.c (remote_disable_btrace): Add 'self' argument.
9967         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9968         argument.
9969         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9970         argument.
9971
9972 2014-02-19  Tom Tromey  <tromey@redhat.com>
9973
9974         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9975         * target.c (target_enable_btrace): Add argument.
9976         * remote.c (remote_enable_btrace): Add 'self' argument.
9977         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9978         argument.
9979         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9980         argument.
9981
9982 2014-02-19  Tom Tromey  <tromey@redhat.com>
9983
9984         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9985         (target_can_use_agent): Add argument.
9986         * target.c (update_current_target): Update.
9987         * remote.c (remote_can_use_agent): Add 'self' argument.
9988         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9989
9990 2014-02-19  Tom Tromey  <tromey@redhat.com>
9991
9992         * target.h (struct target_ops) <to_use_agent>: Add argument.
9993         (target_use_agent): Add argument.
9994         * target.c (update_current_target): Update.
9995         * remote.c (remote_use_agent): Add 'self' argument.
9996         * inf-child.c (inf_child_use_agent): Add 'self' argument.
9997
9998 2014-02-19  Tom Tromey  <tromey@redhat.com>
9999
10000         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10001         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10002         (target_traceframe_info): Add argument.
10003         * target.c (update_current_target): Update.
10004         * remote.c (remote_traceframe_info): Add 'self' argument.
10005         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10006
10007 2014-02-19  Tom Tromey  <tromey@redhat.com>
10008
10009         * target.h (target_static_tracepoint_markers_by_strid): Add
10010         argument.
10011         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10012         'self' argument.
10013         * target.c (update_current_target): Update.
10014         * remote.c (struct target_ops)
10015         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10016         * linux-nat.c (struct target_ops)
10017         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10018
10019 2014-02-19  Tom Tromey  <tromey@redhat.com>
10020
10021         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10022         Add argument.
10023         (target_static_tracepoint_marker_at): Add argument.
10024         * target.c (update_current_target): Update.
10025         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10026         argument.
10027
10028 2014-02-19  Tom Tromey  <tromey@redhat.com>
10029
10030         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10031         (target_set_permissions): Add argument.
10032         * target.c (update_current_target): Update.
10033         * remote.c (remote_set_permissions): Add 'self' argument.
10034         (remote_start_remote): Update.
10035
10036 2014-02-19  Tom Tromey  <tromey@redhat.com>
10037
10038         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10039         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10040         (target_get_tib_address): Add argument.
10041         * target.c (update_current_target): Update.
10042         * remote.c (remote_get_tib_address): Add 'self' argument.
10043
10044 2014-02-19  Tom Tromey  <tromey@redhat.com>
10045
10046         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10047         (target_set_trace_notes): Add argument.
10048         * target.c (update_current_target): Update.
10049         * remote.c (remote_set_trace_notes): Add 'self' argument.
10050
10051 2014-02-19  Tom Tromey  <tromey@redhat.com>
10052
10053         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10054         argument.
10055         (target_set_trace_buffer_size): Add argument.
10056         * target.c (update_current_target): Update.
10057         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10058
10059 2014-02-19  Tom Tromey  <tromey@redhat.com>
10060
10061         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10062         argument.
10063         (target_set_circular_trace_buffer): Add argument.
10064         * target.c (update_current_target): Update.
10065         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10066         argument.
10067
10068 2014-02-19  Tom Tromey  <tromey@redhat.com>
10069
10070         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10071         argument.
10072         (target_set_disconnected_tracing): Add argument.
10073         * target.c (update_current_target): Update.
10074         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10075
10076 2014-02-19  Tom Tromey  <tromey@redhat.com>
10077
10078         * target.h (struct target_ops)
10079         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10080         (target_get_min_fast_tracepoint_insn_len): Add argument.
10081         * target.c (update_current_target): Update.
10082         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10083         argument.
10084
10085 2014-02-19  Tom Tromey  <tromey@redhat.com>
10086
10087         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10088         argument.
10089         (target_get_raw_trace_data): Add argument.
10090         * target.c (update_current_target): Update.
10091         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10092
10093 2014-02-19  Tom Tromey  <tromey@redhat.com>
10094
10095         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10096         Add argument.
10097         (target_upload_trace_state_variables): Add argument.
10098         * target.c (update_current_target): Update.
10099         * remote.c (remote_upload_trace_state_variables): Add 'self'
10100         argument.
10101         (remote_start_remote): Update.
10102
10103 2014-02-19  Tom Tromey  <tromey@redhat.com>
10104
10105         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10106         argument.
10107         (target_upload_tracepoints): Add argument.
10108         * target.c (update_current_target): Update.
10109         * remote.c (remote_upload_tracepoints): Add 'self' argument.
10110         (remote_start_remote): Update.
10111
10112 2014-02-19  Tom Tromey  <tromey@redhat.com>
10113
10114         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10115         (target_save_trace_data): Add argument.
10116         * target.c (update_current_target): Update.
10117         * remote.c (remote_save_trace_data): Add 'self' argument.
10118
10119 2014-02-19  Tom Tromey  <tromey@redhat.com>
10120
10121         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10122         argument.
10123         * target.h (struct target_ops)
10124         <to_get_trace_state_variable_value>: Add argument.
10125         (target_get_trace_state_variable_value): Add argument.
10126         * target.c (update_current_target): Update.
10127         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10128         argument.
10129         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10130
10131 2014-02-19  Tom Tromey  <tromey@redhat.com>
10132
10133         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10134         * target.h (struct target_ops) <to_trace_find>: Add argument.
10135         (target_trace_find): Add argument.
10136         * target.c (update_current_target): Update.
10137         * remote.c (remote_trace_find): Add 'self' argument.
10138         * ctf.c (ctf_trace_find): Add 'self' argument.
10139
10140 2014-02-19  Tom Tromey  <tromey@redhat.com>
10141
10142         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10143         (target_trace_stop): Add argument.
10144         * target.c (update_current_target): Update.
10145         * remote.c (remote_trace_stop): Add 'self' argument.
10146
10147 2014-02-19  Tom Tromey  <tromey@redhat.com>
10148
10149         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10150         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10151         argument.
10152         (target_get_tracepoint_status): Add argument.
10153         * target.c (update_current_target): Update.
10154         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10155
10156 2014-02-19  Tom Tromey  <tromey@redhat.com>
10157
10158         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10159         * target.h (struct target_ops) <to_get_trace_status>: Add
10160         argument.
10161         (target_get_trace_status): Add argument.
10162         * target.c (update_current_target): Update.
10163         * remote.c (remote_get_trace_status): Add 'self' argument.
10164         (remote_start_remote, remote_can_download_tracepoint): Update.
10165         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10166
10167 2014-02-19  Tom Tromey  <tromey@redhat.com>
10168
10169         * target.h (struct target_ops) <to_trace_start>: Add argument.
10170         (target_trace_start): Add argument.
10171         * target.c (update_current_target): Update.
10172         * remote.c (remote_trace_start): Add 'self' argument.
10173
10174 2014-02-19  Tom Tromey  <tromey@redhat.com>
10175
10176         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10177         Add argument.
10178         (target_trace_set_readonly_regions): Add argument.
10179         * target.c (update_current_target): Update.
10180         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10181         argument.
10182
10183 2014-02-19  Tom Tromey  <tromey@redhat.com>
10184
10185         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10186         argument.
10187         (target_disable_tracepoint): Add argument.
10188         * target.c (update_current_target): Update.
10189         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10190
10191 2014-02-19  Tom Tromey  <tromey@redhat.com>
10192
10193         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10194         argument.
10195         (target_enable_tracepoint): Add argument.
10196         * target.c (update_current_target): Update.
10197         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10198
10199 2014-02-19  Tom Tromey  <tromey@redhat.com>
10200
10201         * target.h (struct target_ops) <to_download_trace_state_variable>:
10202         Add argument.
10203         (target_download_trace_state_variable): Add argument.
10204         * target.c (update_current_target): Update.
10205         * remote.c (remote_download_trace_state_variable): Add 'self'
10206         argument.
10207
10208 2014-02-19  Tom Tromey  <tromey@redhat.com>
10209
10210         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10211         argument.
10212         (target_can_download_tracepoint): Add argument.
10213         * target.c (update_current_target): Update.
10214         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10215
10216 2014-02-19  Tom Tromey  <tromey@redhat.com>
10217
10218         * target.h (struct target_ops) <to_download_tracepoint>: Add
10219         argument.
10220         (target_download_tracepoint): Add argument.
10221         * target.c (update_current_target): Update.
10222         * remote.c (remote_download_tracepoint): Add 'self' argument.
10223
10224 2014-02-19  Tom Tromey  <tromey@redhat.com>
10225
10226         * target.h (struct target_ops) <to_trace_init>: Add argument.
10227         (target_trace_init): Add argument.
10228         * target.c (update_current_target): Update.
10229         * remote.c (remote_trace_init): Add 'self' argument.
10230
10231 2014-02-19  Tom Tromey  <tromey@redhat.com>
10232
10233         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10234         * target.c (target_fileio_readlink): Add argument.
10235         * remote.c (remote_hostio_readlink): Add 'self' argument.
10236         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10237
10238 2014-02-19  Tom Tromey  <tromey@redhat.com>
10239
10240         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10241         * target.c (target_fileio_unlink): Add argument.
10242         * remote.c (remote_hostio_unlink): Add 'self' argument.
10243         (remote_file_delete): Update.
10244         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10245
10246 2014-02-19  Tom Tromey  <tromey@redhat.com>
10247
10248         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10249         * target.c (target_fileio_close): Add argument.
10250         * remote.c (remote_hostio_close): Add 'self' argument.
10251         (remote_hostio_close_cleanup): Update.
10252         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10253         Update.
10254         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10255
10256 2014-02-19  Tom Tromey  <tromey@redhat.com>
10257
10258         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10259         * target.c (target_fileio_pread): Add argument.
10260         * remote.c (remote_hostio_pread): Add 'self' argument.
10261         (remote_bfd_iovec_pread, remote_file_get): Update.
10262         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10263
10264 2014-02-19  Tom Tromey  <tromey@redhat.com>
10265
10266         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10267         * target.c (target_fileio_pwrite): Add argument.
10268         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10269         (remote_file_put): Update.
10270         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10271
10272 2014-02-19  Tom Tromey  <tromey@redhat.com>
10273
10274         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10275         * target.c (target_fileio_open): Add argument.
10276         * remote.c (remote_hostio_open): Add 'self' argument.
10277         (remote_bfd_iovec_open): Add 'self' argument.
10278         (remote_file_put): Add 'self' argument.
10279         (remote_file_get): Add 'self' argument.
10280         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10281
10282 2014-02-19  Tom Tromey  <tromey@redhat.com>
10283
10284         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10285         Add argument.
10286         (target_can_run_breakpoint_commands): Add argument.
10287         * target.c (update_current_target): Update.
10288         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10289         argument.
10290         (remote_insert_breakpoint): Add 'self' argument.
10291         (remote_insert_hw_breakpoint): Add 'self' argument.
10292         (remote_can_run_breakpoint_commands): Add 'self' argument.
10293
10294 2014-02-19  Tom Tromey  <tromey@redhat.com>
10295
10296         * target.h (struct target_ops)
10297         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10298         (target_supports_evaluation_of_breakpoint_conditions): Add
10299         argument.
10300         * target.c (update_current_target): Update.
10301         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10302         argument.
10303         (remote_insert_breakpoint): Add 'self' argument.
10304         (remote_insert_hw_breakpoint): Add 'self' argument.
10305         (remote_supports_cond_breakpoints): Add 'self' argument.
10306
10307 2014-02-19  Tom Tromey  <tromey@redhat.com>
10308
10309         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10310         argument.
10311         (target_supports_string_tracing): Add argument.
10312         * target.c (update_current_target): Update.
10313         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10314
10315 2014-02-19  Tom Tromey  <tromey@redhat.com>
10316
10317         * target.h (struct target_ops)
10318         <to_supports_disable_randomization>: Add argument.
10319         * target.c (find_default_supports_disable_randomization): Add
10320         argument.
10321         (target_supports_disable_randomization): Add argument.
10322         (find_default_supports_disable_randomization): Add 'self'
10323         argument.
10324         * remote.c (extended_remote_supports_disable_randomization): Add
10325         'self' argument.
10326         (remote_supports_disable_randomization): Add 'self' argument.
10327         (extended_remote_create_inferior): Update.
10328         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10329         'self' argument.
10330
10331 2014-02-19  Tom Tromey  <tromey@redhat.com>
10332
10333         * target.h (struct target_ops)
10334         <to_supports_enable_disable_tracepoint>: Add argument.
10335         (target_supports_enable_disable_tracepoint): Add argument.
10336         * target.c (update_current_target): Update.
10337         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10338         argument.
10339
10340 2014-02-19  Tom Tromey  <tromey@redhat.com>
10341
10342         * target.h (struct target_ops) <to_supports_multi_process>: Add
10343         argument.
10344         (target_supports_multi_process): Add argument.
10345         * target.c (update_current_target): Update.
10346         * remote.c (remote_supports_multi_process): Add 'self' argument.
10347         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10348         argument.
10349         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10350         argument.
10351
10352 2014-02-19  Tom Tromey  <tromey@redhat.com>
10353
10354         * target.h (struct target_ops) <to_execution_direction>: Add
10355         argument.
10356         (target_execution_direction): Add argument.
10357         * target.c (default_execution_direction): Add 'self' argument.
10358         * record-full.c (record_full_execution_direction): Add 'self'
10359         argument.
10360
10361 2014-02-19  Tom Tromey  <tromey@redhat.com>
10362
10363         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10364         argument.
10365         (target_can_execute_reverse): Add argument.
10366         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10367         * record-full.c (record_full_can_execute_reverse): Add 'self'
10368         argument.
10369         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10370         argument.
10371
10372 2014-02-19  Tom Tromey  <tromey@redhat.com>
10373
10374         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10375         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10376         argument.
10377         (target_get_ada_task_ptid): Add argument.
10378         * target.c (update_current_target): Update.
10379         (default_get_ada_task_ptid): Add 'self' argument.
10380         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10381         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10382         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10383         argument.
10384         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10385         argument.
10386         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10387         argument.
10388         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10389         argument.
10390         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10391         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10392         argument.
10393
10394 2014-02-19  Tom Tromey  <tromey@redhat.com>
10395
10396         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10397         (target_goto_bookmark): Add argument.
10398         * target.c (dummy_goto_bookmark): Add 'self' argument.
10399         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10400
10401 2014-02-19  Tom Tromey  <tromey@redhat.com>
10402
10403         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10404         (target_get_bookmark): Add argument.
10405         * target.c (dummy_get_bookmark): Add 'self' argument.
10406         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10407
10408 2014-02-19  Tom Tromey  <tromey@redhat.com>
10409
10410         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10411         argument.
10412         (target_make_corefile_notes): Add argument.
10413         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10414         * procfs.c (procfs_make_note_section): Add 'self' argument.
10415         (procfs_make_note_section): Add 'self' argument.
10416         (procfs_make_note_section): Add 'self' argument.
10417         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10418         argument.
10419         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10420         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10421         * exec.c (exec_make_note_section): Add 'self' argument.
10422         (exec_make_note_section): Add 'self' argument.
10423
10424 2014-02-19  Tom Tromey  <tromey@redhat.com>
10425
10426         * target.h (struct target_ops) <to_find_memory_regions>: Add
10427         argument.
10428         (target_find_memory_regions): Add argument.
10429         * target.c (dummy_find_memory_regions): Add 'self' argument.
10430         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10431         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10432         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10433         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10434         * exec. (exec_do_find_memory_regions): New global.
10435         (exec_set_find_memory_regions): Rewrite.
10436         (exec_find_memory_regions): New function.
10437         (init_exec_ops): Use exec_find_memory_regions.
10438
10439 2014-02-19  Tom Tromey  <tromey@redhat.com>
10440
10441         * target.h (struct target_ops) <to_supports_non_stop>: Add
10442         argument.
10443         * target.c (find_default_supports_non_stop): Add argument.
10444         (target_supports_non_stop): Add argument.
10445         (find_default_supports_non_stop): Add 'self' argument.
10446         * remote.c (remote_supports_non_stop): Add 'self' argument.
10447         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10448
10449 2014-02-19  Tom Tromey  <tromey@redhat.com>
10450
10451         * target.h (struct target_ops) <to_log_command>: Add argument.
10452         (target_log_command): Add argument.
10453         * serial.h (serial_log_command): Add 'self' argument.
10454         * serial.c (serial_log_command): Add 'self' argument.
10455
10456 2014-02-19  Tom Tromey  <tromey@redhat.com>
10457
10458         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10459         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10460         argument.
10461         (target_pid_to_exec_file): Add argument.
10462         * target.c (debug_to_pid_to_exec_file): Add argument.
10463         (update_current_target): Update.
10464         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10465         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10466         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10467         (linux_handle_extended_wait): Update.
10468         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10469         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10470         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10471         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10472
10473 2014-02-19  Tom Tromey  <tromey@redhat.com>
10474
10475         * target.h (struct target_ops) <to_rcmd>: Add argument.
10476         (target_rcmd): Add argument.
10477         * target.c (debug_to_rcmd): Add argument.
10478         (update_current_target, do_monitor_command): Update.
10479         * remote.c (remote_rcmd): Add 'self' argument.
10480         * monitor.c (monitor_rcmd): Add 'self' argument.
10481
10482 2014-02-19  Tom Tromey  <tromey@redhat.com>
10483
10484         * windows-nat.c (windows_stop): Add 'self' argument.
10485         * target.h (struct target_ops) <to_stop>: Add argument.
10486         * target.c (target_stop): Add argument.
10487         (debug_to_stop): Add argument.
10488         (update_current_target): Update.
10489         * remote.c (remote_stop): Add 'self' argument.
10490         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10491         (gdbsim_cntrl_c): Update.
10492         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10493         * procfs.c (procfs_stop): Add 'self' argument.
10494         * nto-procfs.c (procfs_stop): Add 'self' argument.
10495         * monitor.c (monitor_stop): Add 'self' argument.
10496         (monitor_open): Update.
10497         * linux-nat.c (linux_nat_stop): Add argument.
10498         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10499         * gnu-nat.c (gnu_stop): Add 'self' argument.
10500         * darwin-nat.c (darwin_stop): Add 'self' argument.
10501
10502 2014-02-19  Tom Tromey  <tromey@redhat.com>
10503
10504         * target.h (struct target_ops) <to_thread_name>: Add argument.
10505         * target.c (target_thread_name): Add argument.
10506         (update_current_target): Update.
10507         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10508
10509 2014-02-19  Tom Tromey  <tromey@redhat.com>
10510
10511         * target.h (struct target_ops) <to_extra_thread_info>: Add
10512         argument.
10513         (target_extra_thread_info): Add argument.
10514         * target.c (update_current_target): Update.
10515         * remote.c (remote_threads_extra_info): Add 'self' argument.
10516         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10517         argument.
10518         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10519         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10520         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10521         argument.
10522         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10523         argument.
10524         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10525         argument.
10526         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10527         argument.
10528
10529 2014-02-19  Tom Tromey  <tromey@redhat.com>
10530
10531         * target.h (struct target_ops) <to_program_signals>: Add argument.
10532         * target.c (target_program_signals): Add argument.
10533         * remote.c (remote_program_signals): Add 'self' argument.
10534
10535 2014-02-19  Tom Tromey  <tromey@redhat.com>
10536
10537         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10538         * target.c (target_pass_signals): Add argument.
10539         * remote.c (remote_pass_signals): Add 'self' argument.
10540         (remote_start_remote): Update.
10541         * procfs.c (procfs_pass_signals): Add 'self' argument.
10542         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10543         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10544         (linux_nat_create_inferior, linux_nat_attach): Update.
10545
10546 2014-02-19  Tom Tromey  <tromey@redhat.com>
10547
10548         * windows-nat.c (windows_can_run): Add 'self' argument.
10549         * target.h (struct target_ops) <to_can_run>: Add argument.
10550         (target_can_run): Add argument.
10551         * target.c (debug_to_can_run): Add argument.
10552         (update_current_target): Update.
10553         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10554         * inf-child.c (inf_child_can_run): Add 'self' argument.
10555         * go32-nat.c (go32_can_run): Add 'self' argument.
10556
10557 2014-02-19  Tom Tromey  <tromey@redhat.com>
10558
10559         * target.h (struct target_ops) <to_has_exited>: Add argument.
10560         (target_has_exited): Add argument.
10561         * target.c (debug_to_has_exited): Add argument.
10562         (update_current_target): Update.
10563
10564 2014-02-19  Tom Tromey  <tromey@redhat.com>
10565
10566         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10567         argument.
10568         (target_set_syscall_catchpoint): Add argument.
10569         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10570         argument.
10571         * target.c (update_current_target): Update.
10572
10573 2014-02-19  Tom Tromey  <tromey@redhat.com>
10574
10575         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10576         argument.
10577         (target_remove_exec_catchpoint): Add argument.
10578         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10579         (update_current_target): Update.
10580         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10581         argument.
10582
10583 2014-02-19  Tom Tromey  <tromey@redhat.com>
10584
10585         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10586         argument.
10587         (target_insert_exec_catchpoint): Add argument.
10588         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10589         (update_current_target): Update.
10590         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10591         argument.
10592
10593 2014-02-19  Tom Tromey  <tromey@redhat.com>
10594
10595         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10596         argument.
10597         (target_remove_vfork_catchpoint): Add argument.
10598         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10599         (update_current_target): Update.
10600         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10601         argument.
10602
10603 2014-02-19  Tom Tromey  <tromey@redhat.com>
10604
10605         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10606         argument.
10607         (target_insert_vfork_catchpoint): Add argument.
10608         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10609         (update_current_target): Update.
10610         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10611         argument.
10612
10613 2014-02-19  Tom Tromey  <tromey@redhat.com>
10614
10615         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10616         argument.
10617         (target_remove_fork_catchpoint): Add argument.
10618         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10619         (update_current_target): Update.
10620         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10621         argument.
10622
10623 2014-02-19  Tom Tromey  <tromey@redhat.com>
10624
10625         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10626         argument.
10627         (target_insert_fork_catchpoint): Add argument.
10628         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10629         (update_current_target): Update.
10630         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10631         argument.
10632
10633 2014-02-19  Tom Tromey  <tromey@redhat.com>
10634
10635         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10636         argument.
10637         (target_post_startup_inferior): Add argument.
10638         * target.c (debug_to_post_startup_inferior): Add argument.
10639         (update_current_target): Update.
10640         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10641         argument.
10642         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10643         argument.
10644         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10645         argument.
10646         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10647         argument.
10648         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10649         'self' argument.
10650         (super_post_startup_inferior): Likewise.
10651         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10652         'self' argument.
10653         (super_post_startup_inferior): Likewise.
10654         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10655         Add 'self' argument.
10656         (super_post_startup_inferior): Likewise.
10657
10658 2014-02-19  Tom Tromey  <tromey@redhat.com>
10659
10660         * target.h (struct target_ops) <to_load>: Add argument.
10661         * target.c (target_load): Add argument.
10662         (debug_to_load): Add argument.
10663         (update_current_target): Update.
10664         * remote.c (remote_load): Add 'self' argument.
10665         * remote-sim.c (gdbsim_load): Add 'self' argument.
10666         * remote-mips.c (mips_load): Add 'self' argument.
10667         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10668         * monitor.c (monitor_load): Add 'self' argument.
10669         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10670
10671 2014-02-19  Tom Tromey  <tromey@redhat.com>
10672
10673         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10674         (target_terminal_info): Add argument.
10675         * target.c (debug_to_terminal_info): Add argument.
10676         (default_terminal_info): Likewise.
10677         * inflow.c (child_terminal_info): Add 'self' argument.
10678         * inferior.h (child_terminal_info): Add 'self' argument.
10679         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10680
10681 2014-02-19  Tom Tromey  <tromey@redhat.com>
10682
10683         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10684         argument.
10685         (target_terminal_save_ours): Add argument.
10686         * target.c (debug_to_terminal_save_ours): Add argument.
10687         (update_current_target): Update.
10688         * inflow.c (terminal_save_ours): Add 'self' argument.
10689         * inferior.h (terminal_save_ours): Add 'self' argument.
10690
10691 2014-02-19  Tom Tromey  <tromey@redhat.com>
10692
10693         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10694         (target_terminal_ours): Add argument.
10695         * target.c (debug_to_terminal_ours): Add argument.
10696         (update_current_target): Update.
10697         * remote.c (remote_terminal_ours): Add 'self' argument.
10698         (remote_close): Update.
10699         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10700         * inflow.c (terminal_ours): Add 'self' argument.
10701         * inferior.h (terminal_ours): Add 'self' argument.
10702         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10703
10704 2014-02-19  Pedro Alves  <palves@redhat.com>
10705             Tom Tromey  <tromey@redhat.com>
10706
10707         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10708         argument.
10709         (target_terminal_ours_for_output): Add argument.
10710         * target.c (debug_to_terminal_ours_for_output): Add argument.
10711         (update_current_target): Update.
10712         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10713         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10714         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10715
10716 2014-02-19  Tom Tromey  <tromey@redhat.com>
10717
10718         * target.h (struct target_ops) <to_terminal_inferior>: Add
10719         argument.
10720         * target.c (target_terminal_inferior): Add argument.
10721         (update_current_target): Update.
10722         * remote.c (remote_terminal_inferior): Add 'self' argument.
10723         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10724         * inflow.c (terminal_inferior): Add 'self' argument.
10725         * inferior.h (terminal_inferior): Add 'self' argument.
10726         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10727         (go32_terminal_inferior): Add 'self' argument.
10728
10729 2014-02-19  Tom Tromey  <tromey@redhat.com>
10730
10731         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10732         (target_terminal_init): Add argument.
10733         * target.c (debug_to_terminal_init): Add argument.
10734         (update_current_target): Update.
10735         * inflow.c (terminal_init_inferior): Add 'self' argument.
10736         * inferior.h (terminal_init_inferior): Add 'self' argument.
10737         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10738         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10739
10740 2014-02-19  Tom Tromey  <tromey@redhat.com>
10741
10742         * target.h (struct target_ops)
10743         <to_can_accel_watchpoint_condition>: Add argument.
10744         (target_can_accel_watchpoint_condition): Add argument.
10745         * target.c (debug_to_can_accel_watchpoint_condition): Add
10746         argument.
10747         (update_current_target): Update.
10748         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10749         'self' argument.
10750
10751 2014-02-19  Tom Tromey  <tromey@redhat.com>
10752
10753         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10754         Add argument.
10755         (target_region_ok_for_hw_watchpoint): Add argument.
10756         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10757         (default_region_ok_for_hw_watchpoint): Add argument.
10758         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10759         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10760         argument.
10761         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10762         argument.
10763         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10764         argument.
10765         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10766         'self' argument.
10767         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10768         'self' argument.
10769         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10770         'self' argument.
10771         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10772         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10773         'self' argument.
10774         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10775         Add 'self' argument.
10776
10777 2014-02-19  Tom Tromey  <tromey@redhat.com>
10778
10779         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10780         argument.
10781         (target_insert_watchpoint): Add argument.
10782         * target.c (debug_to_insert_watchpoint): Add argument.
10783         (update_current_target): Update.
10784         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10785         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10786         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10787         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10788         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10789         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10790         argument.
10791         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10792         (procfs_insert_hw_watchpoint): Add 'self' argument.
10793         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10794         argument.
10795         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10796         argument.
10797         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10798         argument.
10799         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10800         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10801         argument.
10802         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10803         'self' argument.
10804
10805 2014-02-19  Tom Tromey  <tromey@redhat.com>
10806
10807         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10808         argument.
10809         (target_remove_watchpoint): Add argument.
10810         * target.c (debug_to_remove_watchpoint): Add argument.
10811         (update_current_target): Update.
10812         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10813         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10814         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10815         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10816         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10817         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10818         argument.
10819         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10820         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10821         argument.
10822         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10823         argument.
10824         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10825         argument.
10826         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10827         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10828         argument.
10829         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10830         'self' argument.
10831
10832 2014-02-19  Tom Tromey  <tromey@redhat.com>
10833
10834         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10835         argument.
10836         (target_remove_hw_breakpoint): Add argument.
10837         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10838         (update_current_target): Update.
10839         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10840         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10841         argument.
10842         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10843         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10844         argument.
10845         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10846         'self' argument.
10847
10848 2014-02-19  Tom Tromey  <tromey@redhat.com>
10849
10850         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10851         argument.
10852         (target_insert_hw_breakpoint): Add argument.
10853         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10854         (update_current_target): Update.
10855         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10856         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10857         argument.
10858         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10859         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10860         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10861         argument.
10862         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10863         'self' argument.
10864
10865 2014-02-19  Tom Tromey  <tromey@redhat.com>
10866
10867         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10868         argument.
10869         (target_can_use_hardware_watchpoint): Add argument.
10870         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10871         (update_current_target): Update.
10872         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10873         argument.
10874         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10875         argument.
10876         * remote.c (remote_check_watch_resources): Add 'self' argument.
10877         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10878         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10879         argument.
10880         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10881         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10882         argument.
10883         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10884         argument.
10885         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10886         argument.
10887         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10888         argument.
10889         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10890         argument.
10891         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10892         argument.
10893         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10894         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10895         argument.
10896         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10897         'self' argument.
10898
10899 2014-02-19  Tom Tromey  <tromey@redhat.com>
10900
10901         * target.h (struct target_ops) <to_post_attach>: Add argument.
10902         (target_post_attach): Add argument.
10903         * target.c (debug_to_post_attach): Add argument.
10904         (update_current_target): Update.
10905         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10906         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10907         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10908         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10909         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10910
10911 2014-02-19  Tom Tromey  <tromey@redhat.com>
10912
10913         * windows-nat.c (windows_close): Add 'self' argument.
10914         * tracepoint.c (tfile_close): Add 'self' argument.
10915         * target.h (struct target_ops) <to_close>: Add argument.
10916         * target.c (target_close): Add argument.
10917         (update_current_target): Update.
10918         * remote.c (remote_close): Add 'self' argument.
10919         * remote-sim.c (gdbsim_close): Add 'self' argument.
10920         * remote-mips.c (mips_close): Add 'self' argument.
10921         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10922         * record-full.c (record_full_close): Add 'self' argument.
10923         * record-btrace.c (record_btrace_close): Add 'self' argument.
10924         * monitor.h (monitor_close): Add 'self' argument.
10925         * monitor.c (monitor_close): Add 'self' argument.
10926         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10927         * linux-nat.c (linux_nat_close): Add argument.
10928         * go32-nat.c (go32_close): Add 'self' argument.
10929         * exec.c (exec_close_1): Add 'self' argument.
10930         * ctf.c (ctf_close): Add 'self' argument.
10931         * corelow.c (core_close): Add 'self' argument.
10932         (core_close_cleanup): Update.
10933         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10934         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10935
10936 2014-02-19  Tom Tromey  <tromey@redhat.com>
10937
10938         * remote.c (remote_load): New function.
10939         (init_remote_ops): Use it.
10940
10941 2014-02-19  Tom Tromey  <tromey@redhat.com>
10942
10943         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10944         argument.
10945         * common/linux-btrace.h (linux_supports_btrace): Update.
10946         * remote.c (remote_supports_btrace): Add "self" argument.
10947         * target-delegates.c: Rebuild.
10948         * target.c (target_supports_btrace): Remove.
10949         * target.h (struct target_ops) <to_supports_btrace>: Add
10950         target_ops argument.
10951         (target_supports_btrace): New define.
10952
10953 2014-02-19  Tom Tromey  <tromey@redhat.com>
10954
10955         * record-full.c (record_full_beneath_to_resume_ops)
10956         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10957         (record_full_beneath_to_wait)
10958         (record_full_beneath_to_store_registers_ops)
10959         (record_full_beneath_to_store_registers)
10960         (record_full_beneath_to_xfer_partial_ops)
10961         (record_full_beneath_to_xfer_partial)
10962         (record_full_beneath_to_insert_breakpoint_ops)
10963         (record_full_beneath_to_insert_breakpoint)
10964         (record_full_beneath_to_remove_breakpoint_ops)
10965         (record_full_beneath_to_remove_breakpoint)
10966         (record_full_beneath_to_stopped_by_watchpoint)
10967         (record_full_beneath_to_stopped_data_address)
10968         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10969         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10970         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10971         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10972         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10973         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10974         (tmp_to_stopped_data_address, tmp_to_async): Remove.
10975         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
10976         (record_full_resume, record_full_wait_1)
10977         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10978         (record_full_store_registers, record_full_xfer_partial)
10979         (record_full_insert_breakpoint, record_full_remove_breakpoint)
10980         (record_full_async, record_full_core_xfer_partial): Use target
10981         delegation.
10982         * target-delegates.c: Rebuild.
10983         * target.c (current_xfer_partial): Remove.
10984         (update_current_target): Do not INHERIT or de_fault
10985         to_insert_breakpoint, to_remove_breakpoint,
10986         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10987         to_is_async_p, to_async.  Do not set to_xfer_partial field.
10988         (default_xfer_partial): Simplify.
10989         (current_xfer_partial): Remove.
10990         (target_wait, target_resume): Simplify.
10991         (find_default_can_async_p, find_default_is_async_p): Update.
10992         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10993         to_xfer_partial, to_stopped_by_watchpoint,
10994         to_stopped_data_address.
10995         (target_store_registers): Simplify.
10996         (forward_target_remove_breakpoint)
10997         (forward_target_insert_breakpoint): Remove.
10998         (target_remove_breakpoint, target_insert_breakpoint)
10999         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11000         * target.h (struct target_ops) <to_resume, to_wait,
11001         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11002         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11003         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11004         markup.
11005         (forward_target_remove_breakpoint)
11006         (forward_target_insert_breakpoint): Remove.
11007         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11008         directly.
11009         (record_btrace_insert_breakpoint): Delegate directly.
11010
11011 2014-02-19  Tom Tromey  <tromey@redhat.com>
11012
11013         PR build/7701:
11014         * target-delegates.c: New file.
11015         * target.c: Include target-delegates.c.
11016         (init_dummy_target): Call install_dummy_methods.
11017         (complete_target_initialization): Call install_delegators.
11018         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11019         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11020         * make-target-delegates: New file.
11021
11022 2014-02-19  Tom Tromey  <tromey@redhat.com>
11023
11024         * record.c (find_record_target): Use find_target_at.
11025         * target.c (find_target_at): New function.
11026         * target.h (find_target_at): Declare.
11027
11028 2014-02-19  Tom Tromey  <tromey@redhat.com>
11029
11030         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11031         Add 'ops' argument.
11032         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11033         'ops' argument.
11034         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11035         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11036         'ops' argument.
11037         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11038         argument.
11039         * linux-nat.c (save_sigtrap): Update.
11040         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11041         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11042         (linux_nat_close): Update.
11043         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11044         argument.
11045         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11046         argument.
11047         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11048         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11049         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11050         (tmp_to_async): Add 'ops' argument.
11051         (record_full_stopped_by_watchpoint, record_full_async)
11052         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11053         argument.
11054         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11055         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11056         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11057         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11058         (remote_is_async_p, remote_async): Add 'ops' argument.
11059         (remote_stopped_data_address): Update.
11060         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11061         * target.c (update_current_target)
11062         (find_default_can_async_p, find_default_is_async_p): Update.
11063         (init_dummy_target): Update.
11064         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11065         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11066         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11067         (target_can_async_p, target_is_async_p, target_async)
11068         (target_stopped_by_watchpoint): Update.
11069
11070 2014-02-19  Yao Qi  <yao@codesourcery.com>
11071
11072         PR gdb/16220
11073         * gdbarch.sh: Remove startup_gdbarch.
11074         * gdbarch.c: Regenerated.
11075         * gdbarch.h: Likewise.
11076
11077 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11078
11079         * rl78-tdep.c (rl78_g10_register_name): New function.
11080         (rl78_return_value): Add g10 support.
11081         (rl78_gdbarch_init): Register rl78_g10_register_name for the
11082         g10.
11083
11084 2014-02-17  Doug Evans  <xdje42@gmail.com>
11085
11086         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11087         (SUBDIR_GUILE_SRCS): Ditto.
11088         (scm-gsmob.o): Ditto.
11089
11090 2014-02-17  Yao Qi  <yao@codesourcery.com>
11091
11092         * gnu-nat.c (ILL_RPC): Declare defined function.
11093
11094 2014-02-17  Yao Qi  <yao@codesourcery.com>
11095
11096         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11097         mach_msg_type_number_t.
11098         (gnu_write_inferior): Likewise.
11099
11100 2014-02-17  Yao Qi  <yao@codesourcery.com>
11101
11102         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11103         in format string.
11104         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11105         (inf_validate_procs, inf_signal): Likewise.
11106         (S_exception_raise_request): Likewise.
11107         (do_mach_notify_dead_name): Likewise.
11108         (steal_exc_port): Likewise.
11109         (gnu_read_inferior): Change 'copy_count''s type to
11110         mach_msg_type_number_t.
11111         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
11112         format string.
11113
11114 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
11115
11116         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11117         flag.  Adjust all users; in particular...
11118         (gnu_wait): ..., don't decrement its value in here...
11119         (gnu_create_inferior): ..., and instead set the flag in here,
11120         around the startup_inferior call, and call that one with
11121         START_INFERIOR_TRAPS_EXPECTED.
11122
11123         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11124         (ILL_RPC): ... new macro.
11125         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11126         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11127         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11128         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11129         functions with ILL_RPC macro.
11130         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11131         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11132         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11133         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11134         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11135         (S_proc_getlogin_reply, S_proc_getsid_reply)
11136         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11137         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11138         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11139         (S_proc_getnports_reply, S_proc_is_important_reply)
11140         (S_proc_get_code_reply): New stub functions, generated with
11141         ILL_RPC macro.
11142
11143         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11144         collected the type check structures.
11145
11146         * reply_mig_hack.awk: Don't expect to see the auto keyword.
11147
11148 2014-02-14  Doug Evans  <dje@google.com>
11149
11150         * target.c (target_write_partial): Fix result type.
11151
11152 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11153
11154         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11155         the proper offsets to access fpregset_t.
11156
11157 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
11158
11159         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11160         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11161         * h8300-tdep.c (setmachinelist): Remove global.
11162         * hppa-tdep.c (hppa_sigtramp): Remove global.
11163         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11164         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11165         * ravenscar-thread.c (update_target_observer): Remove global.
11166         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11167
11168 2014-02-12  Tom Tromey  <tromey@redhat.com>
11169
11170         * common/rsp-low.c: Update comments.
11171         * common/rsp-low.h: Update comments.
11172
11173 2014-02-12  Tom Tromey  <tromey@redhat.com>
11174
11175         * common/rsp-low.c (convert_ascii_to_int): Remove.
11176         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11177
11178 2014-02-12  Tom Tromey  <tromey@redhat.com>
11179
11180         * common/rsp-low.h (unhexify): Don't declare.
11181         * common/rsp-low.c (unhexify): Remove.
11182
11183 2014-02-12  Tom Tromey  <tromey@redhat.com>
11184
11185         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11186         * common/rsp-low.c (convert_int_to_ascii): Remove.
11187
11188 2014-02-12  Tom Tromey  <tromey@redhat.com>
11189
11190         * common/rsp-low.h (hexify): Don't declare.
11191         * common/rsp-low.c (hexify): Remove.
11192
11193 2014-02-12  Tom Tromey  <tromey@redhat.com>
11194
11195         * common/rsp-low.c (hexify): Never take strlen of argument.
11196
11197 2014-02-12  Tom Tromey  <tromey@redhat.com>
11198
11199         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11200         * remote.c (extended_remote_run, remote_rcmd)
11201         (remote_download_trace_state_variable, remote_save_trace_data)
11202         (remote_set_trace_notes): Update.
11203         * tracepoint.c (encode_source_string, tfile_write_status)
11204         (tfile_write_uploaded_tsv): Update.
11205
11206 2014-02-12  Tom Tromey  <tromey@redhat.com>
11207
11208         * tracepoint.c: Include rsp-low.h.
11209         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11210         * remote.c: Include rsp-low.h.
11211         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11212         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11213         (remote_unescape_input): Move to common/rsp-low.c.
11214         * common/rsp-low.h: New file.
11215         * common/rsp-low.c: New file.
11216         * Makefile.in (SFILES): Add common/rsp-low.c.
11217         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11218         (COMMON_OBS): Add rsp-low.o.
11219         (rsp-low.o): New target.
11220
11221 2014-02-12  Tom Tromey  <tromey@redhat.com>
11222
11223         * utils.h: Include print-utils.h.
11224         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11225         (int_string, core_addr_to_string, core_addr_to_string_nz)
11226         (hex_string, hex_string_custom): Don't declare.
11227         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11228         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11229         (hex_string_custom, int_string, core_addr_to_string)
11230         (core_addr_to_string_nz, host_address_to_string): Move to
11231         common/print-utils.c.
11232         * common/print-utils.h: New file.
11233         * common/print-utils.c: New file
11234         * Makefile.in (SFILES): Add common/print-utils.c.
11235         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11236         (COMMON_OBS): Add print-utils.o.
11237         (print-utils.o): New target.
11238
11239 2014-02-12  Tom Tromey  <tromey@redhat.com>
11240
11241         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11242
11243 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11244
11245         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11246
11247 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11248
11249         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11250         if a PT_IO ptrace request returns sucessfully but indicates that 0
11251         bytes were transferred.
11252
11253 2014-02-12  Pedro Alves  <palves@redhat.com>
11254             Kevin Buettner <kevinb@redhat.com>
11255
11256         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11257         TYPE_INSTANCE_FLAG_CODE_SPACE.
11258
11259 2014-02-12  Pedro Alves  <palves@redhat.com>
11260
11261         * h8300-tdep.c (pseudo_from_raw_register)
11262         (raw_from_pseudo_register): New functions.
11263         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11264         them.
11265
11266 2014-02-12  Pedro Alves  <palves@redhat.com>
11267
11268         * h8300-tdep.c (h8300_register_sim_regno): New function.
11269         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11270         gdbarch_register_sim_regno hook.
11271
11272 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11273
11274         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11275
11276 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11277
11278         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11279
11280 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11281
11282         * obsd-tdep.h (obsd_init_abi): New prototype.
11283         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11284         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11285         (obsd_init_abi): New functions.
11286         * i386obsd-tdep.c: Include "obsd-tdep.h".
11287         (i386obsd_init_abi): Call obsd_init_abi.
11288         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11289         (amd64obsd_init_abi): Call obsd_init_abi.
11290         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11291         obsd-tdep.c to gdb_target_obs.
11292
11293 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11294
11295         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11296         double float arguments to 16-byte in the argument slots.
11297
11298 2014-02-11  Doug Evans  <xdje42@gmail.com>
11299
11300         * configure.ac: Don't crash if pkg-config is not found and guile
11301         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11302         in guile checks.
11303         * configure: Regenerate.
11304
11305 2014-02-11  Yao Qi  <yao@codesourcery.com>
11306
11307         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11308         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11309         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11310         * gnu-nat.c (gnu_xfer_memory): Likewise.
11311         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11312         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11313         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11314         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11315
11316 2014-02-11  Yao Qi  <yao@codesourcery.com>
11317
11318         * target.h (enum target_xfer_error): Rename to ...
11319         (enum target_xfer_status): ... it.  New.  All users updated.
11320         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11321         New.
11322         (TARGET_XFER_STATUS_ERROR_P): New macro.
11323         (target_xfer_error_to_string): Remove declaration.
11324         (target_xfer_status_to_string): Declare.
11325         (target_xfer_partial_ftype): Adjust it.
11326         (struct target_ops) <to_xfer_partial>: Return
11327         target_xfer_status.  Add argument xfered_len.  Update
11328         comments.
11329         * target.c (target_xfer_error_to_string): Rename to ...
11330         (target_xfer_status_to_string): ... it.  New.  All callers
11331         updated.
11332         (target_read_live_memory): Likewise.  Call target_xfer_partial
11333         instead of target_read.
11334         (memory_xfer_live_readonly_partial): Return
11335         target_xfer_status.  Add argument xfered_len.
11336         (raw_memory_xfer_partial): Likewise.
11337         (memory_xfer_partial_1): Likewise.
11338         (memory_xfer_partial): Likewise.
11339         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11340         properly.  Update debug message.
11341         (default_xfer_partial, current_xfer_partial): Likewise.
11342         (target_write_partial): Likewise.
11343         (target_read_partial): Likewise.  All callers updated.
11344         (read_whatever_is_readable): Likewise.
11345         (target_write_with_progress): Likewise.
11346         (target_read_alloc_1): Likewise.
11347
11348         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11349         * auxv.c (procfs_xfer_auxv): Likewise.
11350         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11351         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11352         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11353         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11354         * corefile.c (read_memory): Adjust.
11355         * corelow.c (core_xfer_partial): Likewise.
11356         * ctf.c (ctf_xfer_partial): Likewise.
11357         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11358         updated.
11359         (darwin_xfer_partial): Likewise.
11360         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11361         callers updated.
11362         (exec_xfer_partial): Likewise.
11363         * exec.h (section_table_xfer_memory_partial): Update
11364         declaration.
11365         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11366         negative.
11367         (gnu_xfer_partial): Likewise.
11368         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11369         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11370         (ia64_hpux_xfer_solib_got): Likewise.
11371         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11372         type of 'partial_len' to ULONGEST.
11373         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11374         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11375         (linux_nat_xfer_partial): Likewise.
11376         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11377         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11378         * monitor.c (monitor_xfer_memory): Likewise.
11379         (monitor_xfer_partial): Likewise.
11380         * procfs.c (procfs_xfer_partial): Likewise.
11381         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11382         * record-full.c (record_full_xfer_partial): Likewise.
11383         (record_full_core_xfer_partial): Likewise.
11384         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11385         (gdbsim_xfer_partial): Likewise.
11386         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11387         updated.
11388         (remote_write_bytes, remote_read_bytes): Likewise.  All
11389         callers updated.
11390         (remote_flash_erase): Likewise.  All callers updated.
11391         (remote_write_qxfer): Likewise.  All callers updated.
11392         (remote_read_qxfer): Likewise.  All callers updated.
11393         (remote_xfer_partial): Likewise.
11394         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11395         (rs6000_xfer_shared_libraries): Likewise.
11396         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11397         (sol_thread_xfer_partial): Likewise.
11398         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11399         (sparc_xfer_partial): Likewise.
11400         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11401         updated.
11402         (spu_xfer_partial): Likewise.
11403         * spu-multiarch.c (spu_xfer_partial): Likewise.
11404         * tracepoint.c (tfile_xfer_partial): Likewise.
11405         * windows-nat.c (windows_xfer_memory): Likewise.
11406         (windows_xfer_shared_libraries): Likewise.
11407         (windows_xfer_partial): Likewise.
11408         * valprint.c: Replace 'target_xfer_error' with
11409         'target_xfer_status' in comments.
11410
11411 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11412
11413         Checked in by Joel Brobecker <brobecker@adacore.com>.
11414         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11415
11416 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11417
11418         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11419         function parameters.
11420
11421 2014-02-10  Will Newton  <will.newton@linaro.org>
11422
11423         * elfread.c (elf_rel_plt_read): Look for a .got section if
11424         looking up .got.plt fails.
11425         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11426         on address passed to elf_gnu_ifunc_record_cache.
11427         (elf_gnu_ifunc_resolve_addr): Likewise.
11428         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11429
11430 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11431
11432         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11433         (X_RETTURN): New macro.
11434         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11435
11436         * sparc64-tdep.c (sparc64_init_abi): Hook
11437         sparc_in_function_epilogue_p.
11438
11439 2014-02-10  Gary Benson  <gbenson@redhat.com>
11440
11441         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11442         Rename name_matcher to symbol_matcher.
11443
11444 2014-02-10  Gary Benson  <gbenson@redhat.com>
11445
11446         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11447         Use expand_symtabs_file_matcher_ftype and
11448         expand_symtabs_symbol_matcher_ftype.
11449
11450 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11451
11452         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11453         (struct ada_symbol_cache): New.
11454         (ada_free_symbol_cache): Forward declare.
11455         (struct ada_pspace_data): New.
11456         (ada_pspace_data_handle): New static global.
11457         (get_ada_pspace_data, ada_pspace_data_cleanup)
11458         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11459         (cache_space, cache): Delete, now folded inside struct
11460         ada_pspace_data.
11461         (ada_get_symbol_cache): New function.
11462         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11463         implementation.
11464         (_initialize_ada_language): Remove initialization of cache_space.
11465         Move call to observer_attach_inferior_exit up, grouping it
11466         with the other observer registrations inside this function.
11467         Rename command to be more general.  Add call to
11468         register_program_space_data_with_cleanup.
11469
11470 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11471
11472         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11473         ada_new_objfile_observer.
11474         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11475         (_initialize_tasks): Update uses of ada_new_objfile_observer
11476         and ada_tasks_normal_stop_observer.
11477
11478 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11479
11480         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11481         returned by the 'Length attribute to integer.
11482
11483 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11484
11485         * ada-lang.c (_initialize_ada_language): Initialize
11486         cache_space obstack.
11487
11488 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11489
11490         * ada-lang.c (HASH_SIZE): New macro.
11491         (struct cache_entry): New type.
11492         (cache_space, cache): New static globals.
11493         (ada_clear_symbol_cache, find_entry): New functions.
11494         (lookup_cached_symbol, cache_symbol): Implement.
11495         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11496         (_initialize_ada_language): Attach ada_new_objfile_observer
11497         and ada_free_objfile_observer.
11498
11499 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11500
11501         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11502         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11503         struct block * parameter.
11504         (ada_lookup_symbol_list_worker): Constify local variable "block".
11505         Remove cast which is no longer necessary.
11506
11507 2014-02-10  Doug Evans  <xdje42@gmail.com>
11508
11509         Add Guile as an extension language.
11510         * NEWS: Mention Guile scripting.
11511         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11512         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11513         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11514         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11515         (CLIBS): Add GUILE_LIBS.
11516         (install-guile): New rule.
11517         (guile.o): New rule.
11518         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11519         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11520         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11521         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11522         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11523         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11524         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11525         * configure.ac: New option --with-guile.
11526         * configure: Regenerate.
11527         * config.in: Regenerate.
11528         * auto-load.c: Remove #include "python/python.h".  Add #include
11529         "gdb/section-scripts.h".
11530         (source_section_scripts): Handle Guile scripts.
11531         (_initialize_auto_load): Add name of Guile objfile script to
11532         scripts-directory help text.
11533         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11534         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11535         (struct breakpoint): New member scm_bp_object.
11536         * defs.h (enum command_control_type): New value guile_control.
11537         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11538         "extension.h".
11539         (show_user): Update comment.
11540         (_initialize_cli_cmds): Update help text for "show user".  Update help
11541         text for max-user-call-depth.
11542         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11543         "extension.h".
11544         (multi_line_command_p): Add guile_control.
11545         (print_command_lines): Handle guile_control.
11546         (execute_control_command, recurse_read_control_structure): Ditto.
11547         (process_next_line): Recognize "guile" commands.
11548         * disasm.c (gdb_disassemble_info): Make non-static.
11549         * disasm.h: #include "dis-asm.h".
11550         (struct gdbarch): Add forward decl.
11551         (gdb_disassemble_info): Declare.
11552         * extension.c: #include "guile/guile.h".
11553         (extension_languages): Add guile.
11554         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11555         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11556         * gdbtypes.c (get_unsigned_type_max): New function.
11557         (get_signed_type_minmax): New function.
11558         * gdbtypes.h (get_unsigned_type_max): Declare.
11559         (get_signed_type_minmax): Declare.
11560         * guile/README: New file.
11561         * guile/guile-internal.h: New file.
11562         * guile/guile.c: New file.
11563         * guile/guile.h: New file.
11564         * guile/scm-arch.c: New file.
11565         * guile/scm-auto-load.c: New file.
11566         * guile/scm-block.c: New file.
11567         * guile/scm-breakpoint.c: New file.
11568         * guile/scm-disasm.c: New file.
11569         * guile/scm-exception.c: New file.
11570         * guile/scm-frame.c: New file.
11571         * guile/scm-gsmob.c: New file.
11572         * guile/scm-iterator.c: New file.
11573         * guile/scm-lazy-string.c: New file.
11574         * guile/scm-math.c: New file.
11575         * guile/scm-objfile.c: New file.
11576         * guile/scm-ports.c: New file.
11577         * guile/scm-pretty-print.c: New file.
11578         * guile/scm-safe-call.c: New file.
11579         * guile/scm-string.c: New file.
11580         * guile/scm-symbol.c: New file.
11581         * guile/scm-symtab.c: New file.
11582         * guile/scm-type.c: New file.
11583         * guile/scm-utils.c: New file.
11584         * guile/scm-value.c: New file.
11585         * guile/lib/gdb.scm: New file.
11586         * guile/lib/gdb/boot.scm: New file.
11587         * guile/lib/gdb/experimental.scm: New file.
11588         * guile/lib/gdb/init.scm: New file.
11589         * guile/lib/gdb/iterator.scm: New file.
11590         * guile/lib/gdb/printing.scm: New file.
11591         * guile/lib/gdb/types.scm: New file.
11592         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11593         (VPATH): Add $(GUILE_SRCDIR).
11594         (GUILE_DIR): New variable.
11595         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11596         (all): Add stamp-guile dependency.
11597         (stamp-guile): New rule.
11598         (clean-guile, install-guile, uninstall-guile): New rules.
11599         (install-only): Add install-guile dependency.
11600         (uninstall): Add uninstall-guile dependency.
11601         (clean): Add clean-guile dependency.
11602
11603 2014-02-09  Doug Evans  <xdje42@gmail.com>
11604
11605         Revert this patch (which I approved, mea culpa).
11606
11607         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11608
11609         * Makefile.in (all-lib): Remove.
11610         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11611
11612 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11613
11614         Fix Python stack corruption.
11615         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11616         gdb_py_longest.
11617
11618 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11619
11620         * Makefile.in (all-lib): Remove.
11621         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11622
11623 2014-02-07  Doug Evans  <dje@google.com>
11624
11625         * extension-priv.h (extension_language_script_ops): Add comment.
11626         (extension_language_ops): Add comment.
11627         (active_ext_lang_state): Fix typo in comment.
11628
11629 2014-02-07  Pedro Alves  <palves@redhat.com>
11630
11631         PR breakpoints/16292
11632         * infrun.c (handle_signal_stop) <signal arrives while stepping
11633         over a breakpoint>: Switch back to the stepping thread.
11634
11635 2014-02-07  Yao Qi  <yao@codesourcery.com>
11636
11637         * target.c (target_xfer_partial): Return zero if LEN is zero.
11638
11639 2014-02-07  Yao Qi  <yao@codesourcery.com>
11640
11641         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11642         (ld_so_xfer_auxv): Likewise.
11643         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11644         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11645         * corelow.c (core_xfer_partial): Likewise.
11646         * ctf.c (ctf_xfer_partial): Likewise.
11647         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11648         (darwin_xfer_partial): Likewise.
11649         * exec.c (exec_xfer_partial): Likewise.
11650         * gnu-nat.c (gnu_xfer_partial): Likewise.
11651         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11652         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11653         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11654         * linux-nat.c (linux_xfer_siginfo): Likewise.
11655         (linux_proc_xfer_spu): Likewise.
11656         * procfs.c (procfs_xfer_partial): Likewise.
11657         * record-full.c (record_full_xfer_partial): Likewise.
11658         (record_full_core_xfer_partial): Likewise.
11659         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11660         * remote.c (remote_write_qxfer): Likewise.
11661         (remote_write_qxfer, remote_read_qxfer): Likewise.
11662         (remote_xfer_partial): Likewise.
11663         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11664         (rs6000_xfer_shared_libraries): Likewise.
11665         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11666         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11667         (spu_xfer_partial): Likewise.
11668         * target.c (memory_xfer_partial_1): Likewise.
11669         * tracepoint.c (tfile_xfer_partial): Likewise.
11670         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11671         (windows_xfer_partial): Likewise.
11672
11673 2014-02-07  Yao Qi  <yao@codesourcery.com>
11674
11675         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11676         comments.
11677         (core_xfer_shared_libraries_aix): Likewise.
11678         * gdbarch.c, gdbarch.h: Regenerated.
11679         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11680         ULONGEST.  Change 'len_avail' type to ULONGEST.
11681         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11682         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11683         declaration.
11684         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11685
11686 2014-02-07  Yao Qi  <yao@codesourcery.com>
11687
11688         * corefile.c (memory_error): Get 'exception' from ERR and pass
11689         'exception' to throw_error.
11690
11691 2014-02-06  Doug Evans  <xdje42@gmail.com>
11692
11693         * configure.ac (libpython checking): Remove all but python.o from
11694         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11695         * configure: Regenerate.
11696
11697         * Makefile.in (SFILES): Add extension.c.
11698         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11699         (COMMON_OBS): Add extension.o.
11700         * extension.h: New file.
11701         * extension-priv.h: New file.
11702         * extension.c: New file.
11703
11704         * python/python-internal.h: #include "extension.h".
11705         (gdbpy_auto_load_enabled): Declare.
11706         (gdbpy_apply_val_pretty_printer): Declare.
11707         (gdbpy_apply_frame_filter): Declare.
11708         (gdbpy_preserve_values): Declare.
11709         (gdbpy_breakpoint_cond_says_stop): Declare.
11710         (gdbpy_breakpoint_has_cond): Declare.
11711         (void source_python_script_for_objfile): Delete.
11712         * python/python.c: #include "extension-priv.h".
11713         Delete inclusion of "observer.h".
11714         (extension_language_python): Moved here and renamed from
11715         script_language_python in py-auto-load.c.
11716         Redefined to be of type extension_language_defn.
11717         (python_extension_script_ops): New global.
11718         (python_extension_ops): New global.
11719         (struct python_env): New member previous_active.
11720         (restore_python_env): Call restore_active_ext_lang.
11721         (ensure_python_env): Call set_active_ext_lang.
11722         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11723         New arg extlang.
11724         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11725         New arg extlang.
11726         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11727         New arg extlang.
11728         (gdbpy_eval_from_control_command): Renamed from
11729         eval_python_from_control_command, made static.  New arg extlang.
11730         (gdbpy_source_script) Renamed from source_python_script, made static.
11731         New arg extlang.
11732         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11733         result to int.  New arg extlang.
11734         (gdbpy_source_objfile_script): Renamed from
11735         source_python_script_for_objfile, made static.  New arg extlang.
11736         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11737         static.  New args extlang, extlang_printers.  Change result type to
11738         "void".
11739         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11740         static.  New arg extlang.  Rename arg printers to extlang_printers
11741         and change type to ext_lang_type_printers *.
11742         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11743         static.  Replace argument arg with extlang, extlang_printers.
11744         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11745         (!HAVE_PYTHON, source_python_script): Delete.
11746         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11747         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11748         (!HAVE_PYTHON, start_type_printers): Delete.
11749         (!HAVE_PYTHON, apply_type_printers): Delete.
11750         (!HAVE_PYTHON, free_type_printers): Delete.
11751         (_initialize_python): Delete call to observer_attach_before_prompt.
11752         (finalize_python): Set/restore active extension language.
11753         (gdbpy_finish_initialization) Renamed from
11754         finish_python_initialization, made static.  New arg extlang.
11755         (gdbpy_initialized): New function.
11756         * python/python.h: #include "extension.h".  Delete #include
11757         "value.h", "mi/mi-cmds.h".
11758         (extension_language_python): Declare.
11759         (GDBPY_AUTO_FILE_NAME): Delete.
11760         (enum py_bt_status): Moved to extension.h and renamed to
11761         ext_lang_bt_status.
11762         (enum frame_filter_flags): Moved to extension.h.
11763         (enum py_frame_args): Moved to extension.h and renamed to
11764         ext_lang_frame_args.
11765         (finish_python_initialization): Delete.
11766         (eval_python_from_control_command): Delete.
11767         (source_python_script): Delete.
11768         (apply_val_pretty_printer): Delete.
11769         (apply_frame_filter): Delete.
11770         (preserve_python_values): Delete.
11771         (gdbpy_script_language_defn): Delete.
11772         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11773         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11774
11775         * auto-load.c: #include "extension.h".
11776         (GDB_AUTO_FILE_NAME): Delete.
11777         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11778         (script_language_gdb): Delete, moved to extension.c and renamed to
11779         extension_language_gdb.
11780         (source_gdb_script_for_objfile): Delete.
11781         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11782         (loaded_script): Change type of language member to
11783         struct extension_language_defn *.
11784         (init_loaded_scripts_info): Initialize
11785         unsupported_script_warning_printed.
11786         (maybe_add_script): Make static.  Change type of language arg to
11787         struct extension_language_defn *.
11788         (clear_section_scripts): Reset unsupported_script_warning_printed.
11789         (auto_load_objfile_script_1): Rewrite to use extension language API.
11790         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11791         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11792         (source_section_scripts): Rewrite to use extension language API.
11793         (load_auto_scripts_for_objfile): Rewrite to use
11794         auto_load_scripts_for_objfile.
11795         (collect_matching_scripts_data): Change type of language member to
11796         struct extension_language_defn *.
11797         (auto_load_info_scripts): Change type of language arg to
11798         struct extension_language_defn *.
11799         (unsupported_script_warning_print): New function.
11800         (script_not_found_warning_print): Make static.
11801         (_initialize_auto_load): Rewrite construction of scripts-directory
11802         help.
11803         * auto-load.h (struct objfile): Add forward decl.
11804         (struct script_language): Delete.
11805         (struct auto_load_pspace_info): Add forward decl.
11806         (struct extension_language_defn): Add forward decl.
11807         (maybe_add_script): Delete.
11808         (auto_load_objfile_script): Declare.
11809         (script_not_found_warning_print): Delete.
11810         (auto_load_info_scripts): Update prototype.
11811         (auto_load_gdb_scripts_enabled): Declare.
11812         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11813         auto_load_python_scripts_enabled and made public.
11814         (script_language_python): Delete, moved to python.c.
11815         (gdbpy_script_language_defn): Delete.
11816         (info_auto_load_python_scripts): Update to use
11817         extension_language_python.
11818
11819         * breakpoint.c (condition_command): Replace call to
11820         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11821         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11822         with call to breakpoint_ext_lang_cond_says_stop.
11823         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11824         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11825         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11826         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11827         New arg slang.
11828         (local_setattro): Print name of extension language with existing
11829         stop condition.
11830
11831         * valprint.c (val_print, value_print): Update to call
11832         apply_ext_lang_val_pretty_printer.
11833         * cp-valprint.c (cp_print_value): Update call to
11834         apply_ext_lang_val_pretty_printer.
11835         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11836         (gdbpy_apply_val_pretty_printer): Renamed from
11837         apply_val_pretty_printer.  New arg extlang.
11838         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11839
11840         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11841         extension language API.
11842         * cli/cli-script.c (execute_control_command): Update to call
11843         eval_ext_lang_from_control_command.
11844
11845         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11846         enum ext_lang_bt_status values.  Update call to
11847         apply_ext_lang_frame_filter.
11848         (mi_cmd_stack_list_locals): Ditto.
11849         (mi_cmd_stack_list_args): Ditto.
11850         (mi_cmd_stack_list_variables): Ditto.
11851         * mi/mi-main.c: Delete #include "python/python-internal.h".
11852         Add #include "extension.h".
11853         (mi_cmd_list_features): Replace reference to python internal variable
11854         gdb_python_initialized with call to ext_lang_initialized_p.
11855
11856         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11857         Update to use enum ext_lang_frame_args.  Update to call
11858         apply_ext_lang_frame_filter.
11859         * python/py-framefilter.c (extract_sym): Update to use enum
11860         ext_lang_bt_status.
11861         (extract_value, py_print_type, py_print_value): Ditto.
11862         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11863         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11864         (py_print_frame): Ditto.
11865         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11866         New arg extlang.  Update to use enum ext_lang_bt_status.
11867
11868         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11869         finish_python_initialization.  Replace with call to
11870         finish_ext_lang_initialization.
11871
11872         * typeprint.c (do_free_global_table): Update to call
11873         free_ext_lang_type_printers.
11874         (create_global_typedef_table): Update to call
11875         start_ext_lang_type_printers.
11876         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11877         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11878         (type_print_options): Change type of global_printers from "void *"
11879         to "struct ext_lang_type_printers *".
11880
11881         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11882         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11883         (gdbpy_preserve_values): Renamed from preserve_python_values.
11884         New arg extlang.
11885         (!HAVE_PYTHON, preserve_python_values): Delete.
11886
11887         * utils.c (quit_flag): Delete, moved to extension.c.
11888         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11889         extension.c.
11890
11891         * eval.c: Delete #include "python/python.h".
11892         * main.c: Delete #include "python/python.h".
11893
11894         * defs.h: Update comment.
11895
11896 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11897
11898         GDB 7.7 released.
11899
11900 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11901
11902         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11903         defined.
11904
11905 2014-02-05  Yao Qi  <yao@codesourcery.com>
11906
11907         * remote.c (remote_pass_signals): Remove local 'buf' and use
11908         rs->buf.
11909         (remote_program_signals): Likewise.
11910
11911 2014-02-05  Yao Qi  <yao@codesourcery.com>
11912
11913         * ctf.c: Include "inferior.h" and "gdbthread.h".
11914         (CTF_PID): A new macro.
11915         (ctf_open): Call inferior_appeared and add_thread_silent.
11916         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11917         (ctf_thread_alive): New function.
11918         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11919
11920 2014-02-05  Yao Qi  <yao@codesourcery.com>
11921
11922         Revert this patch:
11923
11924         2013-05-24  Yao Qi  <yao@codesourcery.com>
11925
11926         * tracepoint.c (TFILE_PID): Remove.
11927         (tfile_open): Don't add thread and inferior.
11928         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11929         exit_inferior_silent.
11930         (tfile_thread_alive): Remove.
11931         (init_tfile_ops): Don't set field 'to_thread_alive' of
11932         tfile_ops.
11933
11934 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11935
11936         * remote.c (remote_start_remote): Call remote_check_symbols even
11937         if only symbol-file (not file) has been given.
11938
11939 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11940
11941         * gdbarch.sh (skip_entrypoint): New callback.
11942         * gdbarch.c, gdbarch.h: Regenerate.
11943         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11944         * infrun.c (fill_in_stop_func): Likewise.
11945         * ppc-linux-tdep.c: Include "elf/ppc64.h".
11946         (ppc_elfv2_elf_make_msymbol_special): New function.
11947         (ppc_elfv2_skip_entrypoint): Likewise.
11948         (ppc_linux_init_abi): Install them for ELFv2.
11949
11950 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11951
11952         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11953         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11954         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11955         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
11956         structures returned in GPRs.
11957
11958 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11959
11960         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11961         offset to the stack parameter list for the ELFv2 ABI.
11962
11963 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11964
11965         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11966         set_gdbarch_convert_from_func_ptr_addr and
11967         set_gdbarch_elf_make_msymbol_special for ELFv1.
11968         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11969         function descriptors on ELFv1.
11970         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
11971         set up r12 at function entry.
11972
11973 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11974
11975         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11976         (struct gdbarch_tdep): New member elf_abi.
11977
11978         * rs6000-tdep.c: Include "elf/ppc64.h".
11979         (rs6000_gdbarch_init): Detect ELF ABI version.
11980
11981 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11982
11983         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11984         within a register pair holding a DFP 128-bit value on little-endian.
11985         (ppc64_sysv_abi_return_value_base): Likewise.
11986         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11987         (dfp_pseudo_register_write): Likewise.
11988
11989 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11990
11991         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11992         offset on little-endian when passing _Decimal32.
11993         (ppc64_sysv_abi_return_value_base): Likewise for return values.
11994
11995 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11996
11997         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11998         of the overlapped FP register within the VSX register on little-
11999         endian platforms.
12000         (efpr_pseudo_register_write): Likewise.
12001
12002 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12003
12004         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12005         offset on little-endian when passing small structures.
12006
12007 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12008
12009         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12010         (struct ppc64_sysv_argpos): New data structure.
12011         (ppc64_sysv_abi_push_float): Remove.
12012         (ppc64_sysv_abi_push_val): New function.
12013         (ppc64_sysv_abi_push_integer): Likewise.
12014         (ppc64_sysv_abi_push_freg): Likewise.
12015         (ppc64_sysv_abi_push_vreg): Likewise.
12016         (ppc64_sysv_abi_push_param): Likewise.
12017         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12018         (ppc64_sysv_abi_return_value_base): New function.
12019         (ppc64_sysv_abi_return_value): Refactor to use it.
12020
12021 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12022
12023         * NEWS: Document new target powerpc64le-*-linux*.
12024
12025 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12026
12027         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12028         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12029         core dumps.
12030         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12031         register set used in ELF core dumps.  Add floating-point register set.
12032
12033 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12034
12035         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12036         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12037         penultimate entry from number representing the PC register
12038         to symbolic constant representing the MDR register.  Add
12039         constant for the PC register to the end of the table.
12040
12041 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12042
12043         * bsd-kvm.c: Include <sys/param.h>
12044
12045 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12046
12047         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12048
12049 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12050
12051         * ada-lang.h (clear_ada_sym_cache): Delete.
12052
12053 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12054
12055         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12056
12057 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12058
12059         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12060           the sigreturn register save area only if the syscall is
12061           sigreturn.
12062
12063 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12064
12065         * valops.c (value_slice): Minor reformatting.
12066
12067 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12068
12069         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12070
12071 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12072
12073         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12074         New static globals.
12075         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12076         (ada_ignore_descriptive_types_p): New static global.
12077         (find_parallel_type_by_descriptive_type): Return immediately
12078         if ada_ignore_descriptive_types_p is set.
12079         (_initialize_ada_language): Register new commands "maintenance
12080         set ada", "maintenance show ada", "maintenance set ada
12081         ignore-descriptive-types" and "maintenance show ada
12082         ignore-descriptive-types".
12083         * NEWS: Add entry for new "maint ada set/show
12084         ignore-descriptive-types" commands.
12085
12086 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12087
12088         * record-btrace.c (record_btrace_close): Call btrace_teardown
12089         for all threads.
12090
12091 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12092
12093         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12094         "ui-out.h".
12095
12096 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12097
12098         * ada-typeprint (type_is_full_subrange_of_target_type):
12099         New function.
12100         (print_range): Add parameter bounds_prefered_p.  If not set,
12101         try printing range types using the name of their base type.
12102         (print_range_type): Add parameter bounds_prefered_p.
12103         Use it in call to print_range.
12104         (print_array_type, ada_print_type): Update calls to print_range
12105         and print_range_type.
12106
12107 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12108
12109         * ada-typeprint.c (print_array_type, print_choices, print_range)
12110         (print_range_bound, print_dynamic_range_bound, print_range_type):
12111         Remove declaration.
12112
12113 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12114
12115         * ada-typeprint.c (print_range): Add missing empty line
12116         after local declaration.
12117
12118 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12119
12120         * ada-valprint.c (print_optional_low_bound): Get index_type's
12121         target type for as long as it is a TYPE_CODE_RANGE.
12122
12123 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12124
12125         * procfs.c (procfs_make_note_section): Remove assertion and
12126         associated comment.
12127
12128 2014-01-24  Yao Qi  <yao@codesourcery.com>
12129
12130         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12131         * corelow.c (get_core_siginfo): Likewise.
12132
12133 2014-01-24  Yao Qi  <yao@codesourcery.com>
12134
12135         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12136         ULONGEST.  Don't check 'len' is negative.
12137         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12138
12139 2014-01-23  Tom Tromey  <tromey@redhat.com>
12140
12141         PR python/16485:
12142         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12143         Handle exception from frame.block.
12144         (FrameVars.fetch_frame_locals): Likewise.
12145
12146 2014-01-23  Tom Tromey  <tromey@redhat.com>
12147
12148         PR python/16487:
12149         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12150         on a NULL pointer.  Move "goto error" to correct place.
12151
12152 2014-01-23  Tom Tromey  <tromey@redhat.com>
12153
12154         PR python/16491:
12155         * python/py-framefilter.c (apply_frame_filter): Call
12156         ensure_python_env after computing gdbarch.
12157
12158 2014-01-23  Yao Qi  <yao@codesourcery.com>
12159
12160         * target.c (raw_memory_xfer_partial): Change argument type
12161         from void * to gdb_byte *.
12162         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12163
12164 2014-01-22  Doug Evans  <dje@google.com>
12165
12166         New gdbserver option --debug-format=timestamp.
12167         * NEWS: Mention it.
12168
12169 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12170
12171         * syscalls/s390x-linux.xml: New file.
12172         * syscalls/s390-linux.xml: New file.
12173         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12174         (XML_SYSCALL_FILENAME_S390X): Likewise.
12175         (op_svc): New enum value for SVC opcode.
12176         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12177         (s390_linux_get_syscall_number): New function.
12178         (s390_gdbarch_init): Register '*get_syscall_number' and the
12179         syscall xml file name.
12180         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12181         "s390-linux.xml" and "s390x-linux.xml".
12182         * NEWS: Announce new feature.
12183
12184 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12185
12186         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12187
12188 2014-01-22  Pedro Alves  <palves@redhat.com>
12189
12190         * xtensa-config.c: Include defs.h.
12191
12192 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12193
12194         * common/common-utils.h: Add "ARI:" comment beside __func__
12195         reference.
12196
12197 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12198
12199         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12200         documentation a bit.
12201
12202 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12203
12204         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12205         * configure: Regenerate.
12206         * aclocal.m4: Regenerate.
12207         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12208         New substituted variables.
12209         (install-strip): New target.
12210         (INSTALL_SCRIPT): New substituted variable.
12211         (FLAGS_TO_PASS): Add it.
12212         (install-only): Use $(INSTALL_SCRIPT) rather than
12213         $(INSTALL_PROGRAM) for gcore.
12214
12215 2014-01-20  Tom Tromey  <tromey@redhat.com>
12216
12217         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12218         together.
12219
12220 2014-01-20  Tom Tromey  <tromey@redhat.com>
12221
12222         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12223         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12224         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12225         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12226         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12227         (struct cmd_list_element) <flags>: Remove.
12228         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12229         doc_allocated>: New fields.
12230         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12231         bitfields.
12232         * maint.c (maintenance_do_deprecate): Update.
12233         * top.c (execute_command): Update.
12234
12235 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12236
12237         * xtensa-linux-nat.c: Include asm/ptrace.h.
12238
12239 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12240
12241         * Makefile.in (SFILES): Add d-support.c.
12242         (COMMON_OBS): Add d-support.o.
12243         * d-lang.h (d_parse_symbol): Add comment, now defined in
12244         d-support.c.
12245         * d-lang.c (parse_call_convention)
12246         (parse_attributes, parse_function_types)
12247         (parse_function_args, parse_type, parse_identifier)
12248         (call_convention_p, d_parse_symbol): Move functions to ...
12249         * d-support.c: ... New file.
12250
12251 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12252
12253         * d-lang.h (d_parse_symbol): Add declaration.
12254         * d-lang.c (extract_identifiers)
12255         (extract_type_info): Remove functions.
12256         (parse_call_convention, parse_attributes)
12257         (parse_function_types, parse_function_args)
12258         (parse_type, parse_identifier, call_convention_p)
12259         (d_parse_symbol): New functions.
12260         (d_demangle): Use d_parse_symbol to demangle D symbols.
12261
12262 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12263
12264         * d-lang.h (struct builtin_d_type): New data type.
12265         (builtin_d_type): Add declaration.
12266         * d-lang.c (d_language_arch_info, build_d_types)
12267         (builtin_d_type): New functions.
12268         (enum d_primitive_types): New data type.
12269         (d_language_defn): Change c_language_arch_info to
12270         d_language_arch_info.
12271         (d_type_data): New static variable.
12272         (_initialize_d_language): Initialize d_type_data.
12273
12274 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12275
12276         * d-lang.h (d_main_name): Add declaration.
12277         * d-lang.c (d_main_name): New function.
12278         * symtab.c (find_main_name): Add call to d_main_name.
12279
12280 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12281
12282         * d-lang.c (d_language_defn): Change macro_expansion_c to
12283         macro_expansion_no.
12284
12285 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12286
12287         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12288
12289 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12290
12291         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12292         gdb_exception" declaration.
12293         * remote.c (getpkt_or_notif_sane): Likewise.
12294
12295 2014-01-17  Doug Evans  <dje@google.com>
12296
12297         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12298         function, contents of dirnames_to_char_ptr_vec_append moved here.
12299         (delim_string_to_char_ptr_vec): New function.
12300         (dirnames_to_char_ptr_vec_append): Rewrite.
12301         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12302
12303 2014-01-17  Doug Evans  <dje@google.com>
12304
12305         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12306         and moved here ...
12307         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12308         #include "common-utils.h".
12309         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12310         * common/vec.h (VEC_ASSERT_PASS): Update.
12311         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12312         (MACH_CHECK_ERROR): Update.
12313
12314 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12315
12316         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12317         comments.
12318         * gdbarch.h: Regenerate.
12319
12320 2014-01-16  Tom Tromey  <tromey@redhat.com>
12321
12322         * value.c (struct value) <regnum>: Move earlier.
12323
12324 2014-01-16  Tom Tromey  <tromey@redhat.com>
12325
12326         * remote.c (extended_remote_create_inferior): Rename from
12327         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12328         old implementation.
12329
12330 2014-01-16  Pedro Alves  <palves@redhat.com>
12331
12332         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12333         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12334         the backchain.
12335
12336 2014-01-16  Doug Evans  <dje@google.com>
12337
12338         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12339
12340 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12341
12342         * btrace.h (btrace_thread_flag): New.
12343         (struct btrace_thread_info) <flags>: New.
12344         * record-btrace.c (record_btrace_resume_thread)
12345         (record_btrace_find_thread_to_move, btrace_step_no_history)
12346         (btrace_step_stopped, record_btrace_start_replaying)
12347         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12348         (record_btrace_find_resume_thread): New.
12349         (record_btrace_resume, record_btrace_wait): Extend.
12350         (record_btrace_can_execute_reverse): New.
12351         (record_btrace_open): Fail in non-stop mode.
12352         (record_btrace_set_replay): Split into this, ...
12353         (record_btrace_stop_replaying): ... this, ...
12354         (record_btrace_clear_histories): ... and this.
12355         (init_record_btrace_ops): Init to_can_execute_reverse.
12356         * NEWS: Announce it.
12357
12358 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12359
12360         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12361         (forward_target_decr_pc_after_break)
12362         (target_decr_pc_after_break): New.
12363         * target.c (forward_target_decr_pc_after_break)
12364         (target_decr_pc_after_break): New.
12365         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12366         instead of gdbarch_decr_pc_after_break.
12367         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12368         instead of gdbarch_decr_pc_after_break.
12369         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12370         instead of gdbarch_decr_pc_after_break.
12371         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12372         instead of gdbarch_decr_pc_after_break.
12373         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12374         instead of gdbarch_decr_pc_after_break.
12375         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12376         instead of gdbarch_decr_pc_after_break.
12377
12378 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12379
12380         * btrace.c: Include regcache.h.
12381         (btrace_add_pc): New.
12382         (btrace_enable): Call btrace_add_pc.
12383         (btrace_is_empty): New.
12384         * btrace.h (btrace_is_empty): New.
12385         * record-btrace.c (require_btrace, record_btrace_info): Call
12386         btrace_is_empty.
12387
12388 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12389
12390         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12391         Support delta reads.
12392         (linux_disable_btrace): Change return type.
12393         * common/linux-btrace.h (linux_read_btrace): Change parameters
12394         and return type to allow error reporting.  Update users.
12395         (linux_disable_btrace): Change return type.  Update users.
12396         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12397         New.
12398         (btrace_error): New.
12399         (btrace_block) <begin>: Comment on BEGIN == 0.
12400         * btrace.c (btrace_compute_ftrace): Start from the end of
12401         the current trace.
12402         (btrace_stitch_trace, btrace_clear_history): New.
12403         (btrace_fetch): Read delta trace, return if replaying.
12404         (btrace_clear): Move clear history code to btrace_clear_history.
12405         (parse_xml_btrace): Throw an error if parsing failed.
12406         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12407         and return type to allow error reporting.
12408         (target_read_btrace): Change parameters and return type to allow
12409         error reporting.
12410         * target.c (target_read_btrace): Update.
12411         * remote.c (remote_read_btrace): Support delta reads.  Pass
12412         errors on.
12413         * NEWS: Announce it.
12414
12415 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12416
12417         * record.h (record_btrace_frame_unwind)
12418         (record_btrace_tailcall_frame_unwind): New declarations.
12419         * dwarf2-frame: Include record.h
12420         (dwarf2_frame_cfa): Throw an error for btrace frames.
12421         * record-btrace.c: Include hashtab.h.
12422         (btrace_get_bfun_name): New.
12423         (btrace_call_history): Call btrace_get_bfun_name.
12424         (struct btrace_frame_cache): New.
12425         (bfcache): New.
12426         (bfcache_hash, bfcache_eq, bfcache_new): New.
12427         (btrace_get_frame_function): New.
12428         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12429         (record_btrace_frame_this_id): Compute own id.
12430         (record_btrace_frame_prev_register): Provide PC, throw_error
12431         for all other registers.
12432         (record_btrace_frame_sniffer): Detect btrace frames.
12433         (record_btrace_tailcall_frame_sniffer): New.
12434         (record_btrace_frame_dealloc_cache): New.
12435         (record_btrace_frame_unwind): Add new functions.
12436         (record_btrace_tailcall_frame_unwind): New.
12437         (_initialize_record_btrace): Allocate cache.
12438         * btrace.c (btrace_clear): Call reinit_frame_cache.
12439         * NEWS: Announce it.
12440
12441 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12442
12443         * record-btrace.c (record_btrace_set_replay)
12444         (record_btrace_goto_begin, record_btrace_goto_end)
12445         (record_btrace_goto): New.
12446         (init_record_btrace_ops): Initialize them.
12447         * NEWS: Announce it.
12448
12449 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12450
12451         * record-btrace.c (record_btrace_find_new_threads)
12452         (record_btrace_thread_alive): New.
12453         (init_record_btrace_ops): Initialize to_find_new_threads and
12454         to_thread_alive.
12455
12456 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12457
12458         * record-btrace.c (record_btrace_resume): New.
12459         (record_btrace_wait): New.
12460         (init_record_btrace_ops): Initialize to_wait and to_resume.
12461
12462 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12463
12464         * record-btrace.c (record_btrace_xfer_partial)
12465         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12466         (record_btrace_allow_memory_access): New.
12467         (init_record_btrace_ops): Initialize new methods.
12468         * target.c (raw_memory_xfer_partial): Bail out if target reports
12469         that this memory is not available.
12470
12471 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12472
12473         * target.h (target_ops) <to_insert_breakpoint>
12474         <to_remove_breakpoint>: Add target_ops parameter.
12475         (forward_target_insert_breakpoint): New.
12476         (forward_target_remove_breakpoint): New.
12477         (memory_remove_breakpoint, memory_insert_breakpoint):
12478         Add target_ops parameter.
12479         * target.c (target_insert_breakpoint): Split into this and ...
12480         (forward_target_insert_breakpoint): ... this.
12481         (target_remove_breakpoint): Split into this and ...
12482         (forward_target_remove_breakpoint): ... this.
12483         (debug_to_insert_breakpoint): Add target_ops parameter.
12484         Call forward_target_insert_breakpoint.
12485         (debug_to_remove_breakpoint): Add target_ops parameter.
12486         Call forward_target_remove_breakpoint.
12487         (update_current_target): Do not inherit or default to_insert_breakpoint
12488         and to_remove_breakpoint.
12489         * corelow.c (ignore): Add target_ops parameter.
12490         * exec.c (ignore): Add target_ops parameter.
12491         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12492         Add target_ops parameter.
12493         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12494         Add target_ops parameter.
12495         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12496         Add target_ops parameter.
12497         * record-full.c (record_full_beneath_to_insert_breakpoint)
12498         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12499         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12500         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12501         (record_full_core_remove_breakpoint): Add target_ops parameter.
12502         Update users.
12503         (record_full_beneath_to_insert_breakpoint_ops)
12504         (record_full_beneath_to_remove_breakpoint_ops)
12505         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12506         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12507         tmp_to_remove_breakpoint_ops,
12508         record_full_beneath_to_insert_breakpoint_ops, and
12509         record_full_beneath_to_remove_breakpoint_ops.
12510         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12511         (m32r_remove_breakpoint): Add target_ops parameter.
12512         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12513         Add target_ops parameter.
12514         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12515         Add target_ops parameter.
12516
12517 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12518             Markus Metzger  <markus.t.metzger@intel.com>
12519
12520         * record-btrace.c: Include frame-unwind.h.
12521         (record_btrace_frame_unwind_stop_reason)
12522         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12523         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12524         New.
12525         (init_record_btrace_ops): Install it.
12526
12527 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12528
12529         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12530         get_prev_frame_1.
12531
12532 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12533
12534         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12535         earlier.
12536
12537 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12538
12539         * frame-unwind.c: Include target.h.
12540         (frame_unwind_try_unwinder): New function with code from ...
12541         (frame_unwind_find_by_frame): ... here.  New variable
12542         unwinder_from_target, call also target_get_unwinder)
12543         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12544         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12545         * target.h (struct target_ops): New fields to_get_unwinder and
12546         to_get_tailcall_unwinder.
12547         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12548
12549 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12550
12551         * record-btrace.c (record_btrace_fetch_registers)
12552         (record_btrace_store_registers)
12553         (record_btrace_to_prepare_to_store): New.
12554         (init_record_btrace_ops): Add the above.
12555
12556 2014-01-16  Tom Tromey  <tromey@redhat.com>
12557
12558         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12559         * target.h (struct target_ops) <to_prepare_to_store>: Add
12560         argument.
12561         (target_prepare_to_store): Add argument.
12562         * target.c (debug_to_prepare_to_store): Add argument.
12563         (update_current_target): Update.
12564         * remote.c (remote_prepare_to_store): Add 'self' argument.
12565         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12566         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12567         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12568         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12569         argument.
12570         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12571         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12572         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12573         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12574         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12575
12576 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12577
12578         * btrace.h (replay) <replay>: New.
12579         (btrace_is_replaying): New.
12580         * btrace.c (btrace_clear): Free replay iterator.
12581         (btrace_is_replaying): New.
12582         * record-btrace.c (record_btrace_is_replaying): New.
12583         (record_btrace_info): Print insn number if replaying.
12584         (record_btrace_insn_history): Start at replay position.
12585         (record_btrace_call_history): Start at replay position.
12586         (init_record_btrace_ops): Init to_record_is_replaying.
12587
12588 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12589
12590         * record-btrace.c (record_btrace_insn_history_range): Include
12591         end.
12592         (record_btrace_insn_history_from): Adjust range.
12593         (record_btrace_call_history_range): Include
12594         end.
12595         (record_btrace_call_history_from): Adjust range.
12596         * NEWS: Announce changes.
12597
12598 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12599
12600         * record.h (enum record_print_flag)
12601         <record_print_indent_calls>: New.
12602         * record.c (get_call_history_modifiers): Recognize /c modifier.
12603         (_initialize_record): Document /c modifier.
12604         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12605         Reorder fields.  Optionally indent the function name.  Update
12606         all users.
12607         * NEWS: Announce changes.
12608
12609 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12610
12611         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12612
12613 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12614
12615         * btrace.c (ftrace_new_function): Start counting at one.
12616         * record-btrace.c (record_btrace_info): Adjust number of calls
12617         and insns.
12618         * NEWS: Announce it.
12619
12620 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12621
12622         * record-btrace.c (btrace_call_history_insn_range): Print
12623         insn range as [begin, end].
12624
12625 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12626
12627         * btrace.h (struct btrace_func_link): New.
12628         (enum btrace_function_flag): New.
12629         (struct btrace_inst): Rename to ...
12630         (struct btrace_insn): ...this. Update all users.
12631         (struct btrace_func) <ibegin, iend>: Remove.
12632         (struct btrace_func_link): New.
12633         (struct btrace_func): Rename to ...
12634         (struct btrace_function): ...this. Update all users.
12635         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12636         (number, level, flags>: New.
12637         (struct btrace_insn_iterator): Rename to ...
12638         (struct btrace_insn_history): ...this.
12639         Update all users.
12640         (struct btrace_insn_iterator, btrace_call_iterator): New.
12641         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12642         (struct btrace_target_info) <begin, end, level>
12643         <insn_history, call_history>: New.
12644         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12645         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12646         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12647         (btrace_call_number, btrace_call_begin, btrace_call_end)
12648         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12649         (btrace_find_function_by_number, btrace_set_insn_history)
12650         (btrace_set_call_history): New.
12651         * btrace.c (btrace_init_insn_iterator)
12652         (btrace_init_func_iterator, compute_itrace): Remove.
12653         (ftrace_print_function_name, ftrace_print_filename)
12654         (ftrace_skip_file): Change
12655         parameter to const.
12656         (ftrace_init_func): Remove.
12657         (ftrace_debug): Use new btrace_function fields.
12658         (ftrace_function_switched): Also consider gaining and
12659         losing symbol information).
12660         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12661         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12662         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12663         New.
12664         (ftrace_new_function): Move. Remove debug print.
12665         (ftrace_update_lines, ftrace_update_insns): New.
12666         (ftrace_update_function): Check for call, ret, and jump.
12667         (compute_ftrace): Renamed to ...
12668         (btrace_compute_ftrace): ...this. Rewritten to compute call
12669         stack.
12670         (btrace_fetch, btrace_clear): Updated.
12671         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12672         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12673         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12674         (btrace_call_number, btrace_call_begin, btrace_call_end)
12675         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12676         (btrace_find_function_by_number, btrace_set_insn_history)
12677         (btrace_set_call_history): New.
12678         * record-btrace.c (require_btrace): Use new btrace thread
12679         info fields.
12680         (record_btrace_info, btrace_insn_history)
12681         (record_btrace_insn_history, record_btrace_insn_history_range):
12682         Use new btrace thread info fields and new iterator.
12683         (btrace_func_history_src_line): Rename to ...
12684         (btrace_call_history_src_line): ...this. Use new btrace
12685         thread info fields.
12686         (btrace_func_history): Rename to ...
12687         (btrace_call_history): ...this. Use new btrace thread info
12688         fields and new iterator.
12689         (record_btrace_call_history, record_btrace_call_history_range):
12690         Use new btrace thread info fields and new iterator.
12691
12692 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12693
12694         * frame.h (frame_id_build_unavailable_stack_special): New.
12695         * frame.c (frame_id_build_unavailable_stack_special): New.
12696
12697 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12698
12699         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12700         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12701         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12702         to gdbarch.
12703         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12704         (i386_insn_is_jump, i386_jmp_p): New.
12705         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12706         insn_is_jump to gdbarch.
12707         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12708         * gdbarch.h: Regenerated.
12709         * gdbarch.c: Regenerated.
12710         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12711         (default_insn_is_jump): New.
12712         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12713         (default_insn_is_jump): New.
12714
12715 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12716
12717         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12718         Change to ...
12719         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12720         (btrace_read_type) <btrace_read_new>: Change to ...
12721         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12722
12723 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12724
12725         * common/linux-btrace.c (linux_read_btrace): Free trace from
12726         previous iteration.
12727
12728 2014-01-15  Doug Evans  <dje@google.com>
12729
12730         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12731         uint32_t.
12732
12733 2014-01-15  Tom Tromey  <tromey@redhat.com>
12734
12735         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12736         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12737         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12738         (set_objfile_main_name): New function.
12739         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12740         language_of_main>: New fields.
12741         (set_objfile_main_name): Declare.
12742         * symtab.c (find_main_name): Loop over objfiles to find the main
12743         name and language.
12744         (set_main_name): Now static.
12745         (get_main_info): Add comment.
12746         * symtab.h (set_main_name): Don't declare.
12747
12748 2014-01-15  Tom Tromey  <tromey@redhat.com>
12749
12750         * symtab.c (main_progspace_key): New global.
12751         (struct main_info): New.
12752         (name_of_main, language_of_main): Remove.
12753         (get_main_info, main_info_cleanup): New function.
12754         (set_main_name, main_name, main_language): Use get_main_info.
12755         (_initialize_symtab): Initialize main_progspace_key.
12756
12757 2014-01-15  Tom Tromey  <tromey@redhat.com>
12758
12759         * dbxread.c (process_one_symbol): Update.
12760         * dwarf2read.c (read_partial_die): Update.
12761         * symfile.c (set_initial_language): Call main_language.
12762         * symtab.c (language_of_main): Now static.
12763         (set_main_name): Add 'lang' parameter.
12764         (find_main_name): Update.
12765         (main_language): New function.
12766         (symtab_observer_executable_changed): Update.
12767         * symtab.h (set_main_name): Update.
12768         (language_of_main): Remove.
12769         (main_language): Declare.
12770
12771 2014-01-15  Tom Tromey  <tromey@redhat.com>
12772
12773         * symfile.c (init_entry_point_info): Use new "initialized" field.
12774         Update.
12775         * objfiles.h (struct entry_point) <initialized>: New field.
12776         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12777         (struct objfile) <ei>: ...here.  Remove.
12778         * objfiles.c (entry_point_address_query): Update.
12779
12780 2014-01-15  Tom Tromey  <tromey@redhat.com>
12781
12782         * objfiles.c (entry_point_address_query): Relocate entry point
12783         address.
12784         (objfile_relocate1): Do not relocate entry point address.
12785         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12786         <the_bfd_section_index>: New field.
12787         * symfile.c (init_entry_point_info): Find the entry point's
12788         section.
12789
12790 2014-01-15  Tom Tromey  <tromey@redhat.com>
12791
12792         * solib-frv.c (enable_break): Use entry_point_address_query.
12793
12794 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12795
12796         * NEWS: Add note on improved process record-replay on
12797         arm*-linux* targets.
12798
12799 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12800
12801         * arm-tdep.c (enum arm_record_result): New enum.
12802         (arm_record_unsupported_insn): New function.
12803         (arm_record_coproc_data_proc): Removed.
12804         (thumb2_record_ld_st_multiple): New function.
12805         (thumb2_record_ld_st_dual_ex_tbb): New function.
12806         (thumb2_record_data_proc_sreg_mimm): New function.
12807         (thumb2_record_ps_dest_generic): New function.
12808         (thumb2_record_branch_misc_cntrl): New function.
12809         (thumb2_record_str_single_data): New function.
12810         (thumb2_record_ld_mem_hints): New function.
12811         (thumb2_record_ld_word): New function.
12812         (thumb2_record_lmul_lmla_div): New function.
12813         (thumb2_record_decode_insn_handler): New function.
12814         (decode_insn): Add thumb32 instruction handlers.
12815
12816 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12817
12818         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12819         (struct arm_linux_record_tdep): Declare.
12820         (arm_canonicalize_syscall): New function.
12821         (arm_all_but_pc_registers_record): New function.
12822         (arm_linux_syscall_record): New function.
12823         (arm_linux_init_abi): Add syscall recording constructs.
12824         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12825         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12826         decoding.
12827         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12828         <arm_syscall_record>: New field.
12829         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12830         gdb_target_obs.
12831
12832 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12833
12834         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12835         register for push instruction recording.
12836
12837 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12838
12839         * arm-tdep.c (thumb_record_misc): Update to correct logical
12840         error while recording ldm, ldmia and pop instructions.
12841
12842 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12843
12844         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12845
12846 2014-01-15  Pedro Alves  <palves@redhat.com>
12847
12848         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12849         (go32_resume, go32_fetch_registers, store_register)
12850         (go32_store_registers, go32_prepare_to_store)
12851         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12852         (go32_create_inferior, go32_can_run, go32_terminal_init)
12853         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12854         declarations.
12855
12856 2014-01-15  Tom Tromey  <tromey@redhat.com>
12857
12858         * target.h (async_callback_ftype): New typedef.
12859         (struct target_ops) <to_async>: Use it.
12860
12861 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12862
12863         * python/py-value.c (get_field_type): Remove unnecessary curly
12864         braces for single-statement if block.
12865
12866 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12867
12868         * python/py-type.c (convert_field): Add missing empty line
12869         after declarations.
12870
12871 2014-01-14  Doug Evans  <dje@google.com>
12872
12873         * symfile.h (expand_symtabs_matching): Renamed from
12874         expand_partial_symbol_names.  Update prototype.
12875         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12876         * symfile.c (expand_symtabs_matching): Renamed from
12877         expand_partial_symbol_names.  New args file_matcher, kind.
12878         Rename arg fun to symbol_matcher.
12879         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12880         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12881         ada_expand_partial_symbol_name.
12882         (ada_make_symbol_completion_list): Update to call
12883         expand_symtabs_matching.
12884         (ada_add_global_exceptions): Call expand_symtabs_matching.
12885         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12886         call map_symbol_filenames.
12887         * symtab.c (sources_info): Update to call map_symbol_filenames.
12888         (search_symbols): Call expand_symtabs_matching.
12889         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12890         (default_make_symbol_completion_list_break_on): Update to call
12891         expand_symtabs_matching.
12892         (make_source_files_completion_list): Update to call
12893         map_symbol_filenames.
12894
12895 2014-01-14  Doug Evans  <dje@google.com>
12896
12897         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12898         (expand_symtabs_symbol_matcher_ftype): New typedef.
12899         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12900         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12901         * symfile.c (expand_partial_symbol_names): Update to use
12902         expand_symtabs_symbol_matcher_ftype.
12903         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12904         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12905         Arg name_matcher renamed to symbol_matcher.
12906         * psymtab.c (recursively_search_psymtabs): Update to use
12907         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12908         sym_matcher.
12909         (expand_symtabs_matching_via_partial): Update to use
12910         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12911         Arg name_matcher renamed to symbol_matcher.
12912
12913 2014-01-14  Doug Evans  <dje@google.com>
12914
12915         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12916         (map_partial_symbol_filenames): Ditto.
12917         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12918         (map_partial_symbol_filenames): Ditto.
12919         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12920         (map_partial_symbol_filenames): Ditto.
12921         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12922         (map_partial_symbol_filenames): Ditto.
12923         * symtab.c: Delete #include "psymtab.h".
12924
12925 2014-01-14  Pedro Alves  <palves@redhat.com>
12926             Tom Tromey  <tromey@redhat.com>
12927
12928         * infrun.c (use_displaced_stepping): Use find_record_target
12929         instead of RECORD_IS_USED.
12930         (adjust_pc_after_break): Use record_full_is_used instead of
12931         RECORD_IS_USED.
12932         * record-btrace.c (record_btrace_open): Call record_preopen
12933         instead of checking RECORD_IS_USED.
12934         * record-full.c (record_full_shortname)
12935         (record_full_core_shortname): New globals.
12936         (record_full_is_used): New function.
12937         (find_full_open): Call record_preopen instead of checking
12938         RECORD_IS_USED.
12939         (init_record_full_ops): Set the target's shortname to
12940         record_full_shortname.
12941         (init_record_full_core_ops): Set the target's shortname to
12942         record_full_core_shortname.
12943         * record-full.h (record_full_is_used): Declare.
12944         * record.c (find_record_target): Make extern.
12945         (record_preopen): New function.
12946         * record.h (RECORD_IS_USED): Delete macro.
12947         (find_record_target, record_preopen): Declare functions.
12948
12949 2014-01-14  Yao Qi  <yao@codesourcery.com>
12950
12951         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12952         'len''s type to ULONGEST.
12953         (core_xfer_shared_libraries_aix): Likewise.
12954         * gdbarch.c, gdbarch.h: Regenerated.
12955         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12956         Change type of 'len' to ULONGEST.
12957         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12958         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12959
12960 2014-01-14  Yao Qi  <yao@codesourcery.com>
12961
12962         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12963         type of 'len' to ULONGEST.
12964         (linux_xfer_osdata_processgroups): Likewise.
12965         (linux_xfer_osdata_threads): Likewise.
12966         (linux_xfer_osdata_fds): Likewise.
12967         (linux_xfer_osdata_isockets): Likewise.
12968         (linux_xfer_osdata_shm): Likewise.
12969         (linux_xfer_osdata_sem): Likewise.
12970         (linux_xfer_osdata_msg): Likewise.
12971         (linux_common_xfer_osdata): Likewise.
12972         (struct osdata_type) <getter>: Likewise.
12973         * common/linux-osdata.h (linux_common_xfer_osdata): Update
12974         the declaration.
12975
12976 2014-01-14  Yao Qi  <yao@codesourcery.com>
12977
12978         * target.h (target_xfer_partial_ftype): Update.
12979         (struct target_ops) <to_xfer_partial>: Change 'len' type to
12980         ULONGEST.
12981         * aix-thread.c (aix_thread_xfer_partial): Change type of
12982         argument 'len' to ULONGEST.
12983         * auxv.c (procfs_xfer_auxv): Likewise.
12984         (ld_so_xfer_auxv): Likewise.
12985         (memory_xfer_auxv): Likewise.
12986         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12987         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12988         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12989         * corelow.c (core_xfer_partial): Likewise.
12990         * ctf.c (ctf_xfer_partial): Likewise.
12991         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
12992         '%u'.
12993         (darwin_read_dyld_info): Likewise.
12994         (darwin_xfer_partial): Likewise.
12995         * exec.c (section_table_xfer_memory_partial): Likewise.
12996         (exec_xfer_partial): Likewise.
12997         * exec.h (section_table_xfer_memory_partial): Update
12998         declaration.
12999         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13000         instead of plongest.
13001         (gnu_xfer_partial): Likewise.
13002         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13003         (ia64_hpux_xfer_solib_got): Likewise.
13004         (ia64_hpux_xfer_partial): Likewise.
13005         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13006         * inf-ptrace.c (inf_ptrace_xfer_partial):
13007         * inf-ttrace.c (inf_ttrace_xfer_partial):
13008         * linux-nat.c (linux_xfer_siginfo): Likewise.
13009         (linux_nat_xfer_partial): Likewise.
13010         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13011         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13012         * monitor.c (monitor_xfer_memory): Likewise.
13013         (monitor_xfer_partial): Likewise.
13014         * procfs.c (procfs_xfer_partial): Likewise.
13015         * record-full.c (record_full_xfer_partial): Likewise.
13016         (record_full_core_xfer_partial): Likewise.
13017         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13018         instead of plongest.
13019         (gdbsim_xfer_partial): Likewise.
13020         * remote.c (remote_xfer_partial): Likewise.
13021         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13022         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13023         declaration.
13024         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13025         (rs6000_xfer_shared_libraries): Likewise.
13026         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13027         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13028         (sparc_xfer_partial): Likewise.
13029         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13030         (spu_xfer_partial): Likewise.
13031         * spu-multiarch.c (spu_xfer_partial): Likewise.
13032         * target.c (target_read_live_memory): Likewise.
13033         (memory_xfer_live_readonly_partial): Likewise.
13034         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13035         (target_xfer_partial, default_xfer_partial): Likewise.
13036         (current_xfer_partial): Likewise.
13037         * tracepoint.c (tfile_xfer_partial): Likewise.
13038         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13039         pulongest instead of plongest.
13040         (windows_xfer_partial): Likewise.
13041         (windows_xfer_shared_libraries): Likewise.
13042
13043 2014-01-14  Yao Qi  <yao@codesourcery.com>
13044
13045         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13046         target_xfer_partial_ftype.
13047
13048 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13049
13050         PR python/15464
13051         PR python/16113
13052         * valops.c (value_struct_elt_bitpos): New function
13053         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13054         object to 'None' if the field name is an empty string ("").
13055         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13056         attribute to look for a field when 'name' is 'None'.
13057         (get_field_type): New function
13058
13059 2014-01-13  Doug Evans  <dje@google.com>
13060
13061         PR symtab/16426
13062         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13063         (try_open_dwop_file): Ditto.
13064         * gdb_bfd.c: #include "vec.h".
13065         (bfdp): New typedef.
13066         (struct gdb_bfd_data): New member included_bfds.
13067         (gdb_bfd_unref): Unref all included bfds.
13068         (gdb_bfd_record_inclusion): New function.
13069         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13070
13071 2014-01-13  Tom Tromey  <tromey@redhat.com>
13072
13073         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13074
13075 2014-01-13  Tom Tromey  <tromey@redhat.com>
13076
13077         * defs.h (use_windows): Remove.
13078         * gdb.c (main): Update.
13079         * main.c (captured_main, gdb_main): Update.
13080         * main.h (struct captured_main_args) <use_windows>: Remove.
13081         * top.c (use_windows): Remove.
13082
13083 2014-01-13  Tom Tromey  <tromey@redhat.com>
13084
13085         * defs.h (deprecated_flush_hook): Remove.
13086
13087 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13088
13089         PR threads/16216
13090         * linux-thread-db.c (try_thread_db_load): Add parameter
13091         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13092         (try_thread_db_load_from_pdir_1): Move it there from here.
13093         (try_thread_db_load_from_sdir): Update caller.
13094         (try_thread_db_load_from_dir): Move it there from here.
13095
13096 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13097
13098         * regformats/regdat.sh: Always rewrite the register file.
13099
13100 2014-01-13  Pedro Alves  <palves@redhat.com>
13101
13102         * Makefile.in (CHECK_HEADERS): New variable.
13103         (check-headers:): New rule.
13104
13105 2014-01-13  Tom Tromey  <tromey@redhat.com>
13106
13107         * cli/cli-setshow.c (do_set_command): Update.
13108         * defs.h (deprecated_set_hook): Remove.
13109         * top.c (deprecated_set_hook): Remove.
13110
13111 2014-01-13  Pedro Alves  <palves@redhat.com>
13112
13113         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13114         the tracepoint if the PC is a pseudo-register.
13115
13116 2014-01-13  Tom Tromey  <tromey@redhat.com>
13117
13118         * defs.h (XCALLOC): Remove.
13119         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13120         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13121         * dwarf2loc.c (allocate_piece_closure): Likewise.
13122         * elfread.c (elf_symfile_segments): Likewise.
13123         (elf_symfile_segments): Likewise.
13124         * gdbtypes.c (copy_type_recursive): Likewise.
13125         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13126         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13127         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13128         XCALLOC.
13129         * mt-tdep.c (mt_gdbarch_init): Likewise.
13130         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13131         XCALLOC.
13132         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13133         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13134         * registry.c (registry_alloc_data): Likewise.
13135         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13136         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13137         * serial.c (serial_fdopen_ops): Likewise.
13138         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13139         XCALLOC.
13140         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13141         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13142         not XCALLOC.
13143
13144 2014-01-13  Tom Tromey  <tromey@redhat.com>
13145
13146         * defs.h (XMALLOC): Remove.
13147         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13148         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13149         * cli-out.c (struct ui_out *): Likewise.
13150         * cli/cli-dump.c (add_dump_command): Likewise.
13151         (add_dump_command): Likewise.
13152         * complaints.c (get_complaints): Likewise.
13153         (find_complaint): Likewise.
13154         * dwarf2-frame.c (execute_cfa_program): Likewise.
13155         * dwarf2read.c (abbrev_table_read_table): Likewise.
13156         * gdbarch.sh: Likewise.
13157         * gdbarch.c: Rebuild.
13158         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13159         * interps.c (interp_new): Likewise.
13160         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13161         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13162         * mi/mi-console.c (mi_console_file_new): Likewise.
13163         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13164         * mi/mi-out.c (mi_out_new): Likewise.
13165         * mi/mi-parse.c (mi_parse): Likewise.
13166         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13167         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13168         * observer.c (xalloc_observer_list_node): Likewise.
13169         * regcache.c (regcache_xmalloc_1): Likewise.
13170         * reggroups.c (reggroup_new): Likewise.
13171         (_initialize_reggroup): Likewise.
13172         * registry.c (register_data_with_cleanup): Likewise.
13173         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13174         * ser-base.c (serial_ttystate): Likewise.
13175         * ser-mingw.c (make_pipe_state): Likewise.
13176         * ser-pipe.c (pipe_open): Likewise.
13177         * serial.c (serial_open): Likewise.
13178         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13179         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13180         (tui_alloc_win_info): Likewise.
13181         (tui_add_content_elements): Likewise.
13182         * tui/tui-file.c (tui_file_new): Likewise.
13183         * tui/tui-out.c (tui_out_new): Likewise.
13184         * ui-file.c (mem_file_new): Likewise.
13185         * ui-out.c (push_level): Likewise.
13186         (make_cleanup_ui_out_end): Likewise.
13187         (append_header_to_list): Likewise.
13188         (ui_out_new): Likewise.
13189         * user-regs.c (user_reg_add_builtin): Likewise.
13190
13191 2014-01-13  Tom Tromey  <tromey@redhat.com>
13192
13193         * defs.h (XZALLOC): Remove.
13194         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13195         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13196         (get_ada_tasks_inferior_data): Likewise.
13197         * auto-load.c (get_auto_load_pspace_data): Likewise.
13198         * auxv.c (get_auxv_inferior_data): Likewise.
13199         * bfd-target.c (target_bfd_reopen): Likewise.
13200         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13201         (deprecated_insert_raw_breakpoint): Likewise.
13202         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13203         * corelow.c (core_open): Likewise.
13204         * darwin-nat.c (darwin_check_new_threads): Likewise.
13205         (darwin_attach_pid): Likewise.
13206         * dummy-frame.c (dummy_frame_push): Likewise.
13207         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13208         * dwarf2loc.c (allocate_piece_closure): Likewise.
13209         * elfread.c (elf_symfile_segments): Likewise.
13210         * eval.c (ptrmath_type_p): Likewise.
13211         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13212         * gdbtypes.c (alloc_type_arch): Likewise.
13213         (alloc_type_instance): Likewise.
13214         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13215         * inf-child.c (inf_child_can_use_agent): Likewise.
13216         * inflow.c (get_inflow_inferior_data): Likewise.
13217         * infrun.c (save_infcall_suspend_state): Likewise.
13218         * jit.c (jit_reader_load): Likewise.
13219         (get_jit_objfile_data): Likewise.
13220         (get_jit_program_space_data): Likewise.
13221         (jit_object_open_impl): Likewise.
13222         (jit_symtab_open_impl): Likewise.
13223         (jit_block_open_impl): Likewise.
13224         (jit_frame_sniffer): Likewise.
13225         * linux-fork.c (add_fork): Likewise.
13226         * maint.c (make_command_stats_cleanup): Likewise.
13227         * objfiles.c (get_objfile_pspace_data): Likewise.
13228         * opencl-lang.c (struct lval_closure): Likewise.
13229         * osdata.c (osdata_start_osdata): Likewise.
13230         * progspace.c (new_address_space): Likewise.
13231         (add_program_space): Likewise.
13232         * remote-sim.c (get_sim_inferior_data): Likewise.
13233         * sh-tdep.c (sh_gdbarch_init): Likewise.
13234         * skip.c (Ignore): Likewise.
13235         (skip_delete_command): Likewise.
13236         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13237         (library_list_start_library): Likewise.
13238         (solib_aix_current_sos): Likewise.
13239         * solib-darwin.c (get_darwin_info): Likewise.
13240         (darwin_current_sos): Likewise.
13241         * solib-dsbt.c (get_dsbt_info): Likewise.
13242         * solib-ia64-hpux.c (new_so_list): Likewise.
13243         (ia64_hpux_get_solib_linkage_addr): Likewise.
13244         * solib-spu.c (append_ocl_sos): Likewise.
13245         (spu_current_sos): Likewise.
13246         * solib-svr4.c (get_svr4_info): Likewise.
13247         (svr4_keep_data_in_core): Likewise.
13248         (library_list_start_library): Likewise.
13249         (svr4_default_sos): Likewise.
13250         (svr4_read_so_list): Likewise.
13251         * solib-target.c (library_list_start_library): Likewise.
13252         (solib_target_current_sos): Likewise.
13253         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13254         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13255         * symfile.c (default_symfile_segments): Likewise.
13256         * target-descriptions.c (tdesc_data_init): Likewise.
13257         (tdesc_create_reg): Likewise.
13258         (struct tdesc_type *): Likewise.
13259         (tdesc_create_vector): Likewise.
13260         (tdesc_set_struct_size): Likewise.
13261         (struct tdesc_type *): Likewise.
13262         (tdesc_free_feature): Likewise.
13263         (tdesc_create_feature): Likewise.
13264         * windows-nat.c (windows_add_thread): Likewise.
13265         (windows_make_so): Likewise.
13266         * xml-support.c (gdb_xml_body_text): Likewise.
13267         (gdb_xml_create_parser_and_cleanup): Likewise.
13268         (xml_process_xincludes): Likewise.
13269         * xml-syscall.c (allocate_syscalls_info): Likewise.
13270         (syscall_create_syscall_desc): Likewise.
13271
13272 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13273
13274         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13275         function, with code from i386_stap_parse_special_token.
13276         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13277         (i386_stap_parse_special_token): Move code to the two functions
13278         above; simplify it.
13279
13280 2014-01-09  Pedro Alves  <palves@redhat.com>
13281             Hui Zhu  <hui@codesourcery.com>
13282
13283         PR gdb/16101
13284         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13285         bp_err_string.  Don't mark the location shlib_disabled if the
13286         error thrown wasn't a generic or memory error.  Catch errors
13287         thrown while inserting breakpoints in overlayed code.  Output
13288         error message of software breakpoints.
13289         * remote.c (remote_insert_breakpoint): If this breakpoint has
13290         target-side commands but this stub doesn't support Z0 packets,
13291         throw NOT_SUPPORTED_ERROR error.
13292         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13293         * target.h (target_insert_breakpoint): Extend comment.
13294         (target_insert_hw_breakpoint): Add comment.
13295
13296 2014-01-08  Pedro Alves  <palves@redhat.com>
13297
13298         * remote.c (remote_add_thread): Add threads silently if starting
13299         up.
13300         (remote_notice_new_inferior): If in all-stop, and starting up,
13301         don't call notice_new_inferior.
13302         (get_current_thread): New function, factored out from ...
13303         (add_current_inferior_and_thread): ... this.  Adjust.
13304         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13305         found any thread, then select the remote's current thread as GDB's
13306         current thread too.
13307
13308 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13309
13310         * NEWS: Create a new section for the next release branch.
13311         Rename the section of the current branch, now that it has
13312         been cut.
13313
13314 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13315
13316         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13317         * version.in: Bump version to 7.7.50.DATE-cvs.
13318
13319 2014-01-08  Yao Qi  <yao@codesourcery.com>
13320
13321         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13322         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13323         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13324
13325 2014-01-08  Yao Qi  <yao@codesourcery.com>
13326
13327         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13328         return value of bfd_get_filename to symbol_file_add_from_bfd.
13329
13330 2014-01-08  Pierre Muller  <muller@sourceware.org>
13331
13332         Fix PR16201.
13333         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13334         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13335         to prim_record_mininal_symbol_and_info.
13336         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13337         in call to prim_record_minimal_symbol_and_info.
13338         (read_pe_exported_syms): Set index field of section_data.
13339
13340 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13341
13342         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13343         * features/aarch64.c: Regenerate.
13344
13345 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13346
13347         * target.c (return_null): Define.
13348         (update_current_target): Use it instead of return_zero for
13349         functions that return a pointer.
13350
13351 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13352
13353         * source.c (add_path): Fix check for duplicated paths in the previously
13354         included paths.
13355
13356 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13357
13358         * ada-lang.c: Remove duplicated include statements.
13359         * alphabsd-nat.c: Ditto.
13360         * amd64-darwin-tdep.c: Ditto.
13361         * amd64fbsd-nat.c: Ditto.
13362         * auto-load.c: Ditto.
13363         * ax-gdb.c: Ditto.
13364         * breakpoint.c: Ditto.
13365         * dbxread.c: Ditto.
13366         * fork-child.c: Ditto.
13367         * gdb_usleep.c: Ditto.
13368         * i386-darwin-tdep.c: Ditto.
13369         * i386fbsd-nat.c: Ditto.
13370         * infcmd.c: Ditto.
13371         * inferior.c: Ditto.
13372         * jv-lang.c: Ditto.
13373         * linux-nat.c: Ditto.
13374         * linux-tdep.c: Ditto.
13375         * m68kbsd-nat.c: Ditto.
13376         * m68klinux-nat.c: Ditto.
13377         * microblaze-tdep.c: Ditto.
13378         * mips-linux-tdep.c: Ditto.
13379         * mn10300-tdep.c: Ditto.
13380         * nto-tdep.c: Ditto.
13381         * opencl-lang.c: Ditto.
13382         * osdata.c: Ditto.
13383         * printcmd.c: Ditto.
13384         * regcache.c: Ditto.
13385         * remote-m32r-sdi.c: Ditto.
13386         * remote.c: Ditto.
13387         * symfile.c: Ditto.
13388         * symtab.c: Ditto.
13389         * tilegx-linux-nat.c: Ditto.
13390         * tilegx-tdep.c: Ditto.
13391         * tracepoint.c: Ditto.
13392         * valops.c: Ditto.
13393         * vaxbsd-nat.c: Ditto.
13394         * windows-nat.c: Ditto.
13395         * xtensa-tdep.c: Ditto.
13396
13397 2014-01-07  Yao Qi  <yao@codesourcery.com>
13398
13399         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13400
13401 2014-01-07  Yao Qi  <yao@codesourcery.com>
13402             Joel Brobecker  <brobecker@adacore.com>
13403
13404         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13405         (pdc_write_regs): Likewise.
13406         (fetch_regs_kernel_thread): Likewise.
13407         (store_regs_kernel_thread): Likewise.
13408
13409 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13410
13411         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13412         tagged type objects to their actual type.
13413
13414 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13415
13416         * ada-valprint.c (print_field_values): Add "language" parameter.
13417         Update calls to print_field_values and print_variant_part.
13418         Pass new parameter "language" in call to val_print instead
13419         of "current_language".  Replace call to ada_val_print by call
13420         to val_print.
13421         (print_variant_part): Add "language" parameter.
13422         (ada_val_print_struct_union): Update call to print_field_values.
13423
13424 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13425
13426         * ada-valprint.c (ui_memcpy): Delete.
13427         (ada_print_floating): Update documentation.  Add empty line
13428         between between function documentation and implementation.
13429         Delete variable "buffer".  Use ui_file_xstrdup in place of
13430         ui_file_put.  Minor adjustments following this change.
13431
13432 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13433
13434         * ada-valprint.c (ada_val_print_string): New function,
13435         extracted from ada_val_print_array.
13436         (ada_val_print_array): Replace extracted code by call
13437         to ada_val_print_string followed by a return.  Move
13438         "else" branch to the function's top block.
13439
13440 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13441
13442         * ada-valprint.c (ada_val_print_array): Move implementation
13443         down.  Rename parameter "offset" and "val" into "offset_aligned"
13444         and "original_value" respectively.  Add parameter "offset".
13445
13446 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13447
13448         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13449         re-organizing the code. Change the "???" message printed
13450         when target type is a TYPE_CODE_UNDEF into
13451         "<ref to undefined type>".
13452
13453 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13454
13455         * ada-valprint.c (print_record): Delete, implementation inlined...
13456         (ada_val_print_struct_union): ... here.  Remove call to
13457         ada_check_typedef in inlined implementation.
13458
13459 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13460
13461         * ada-valprint.c (ada_val_print_gnat_array): New function,
13462         extracted from ada_val_print_1;
13463         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13464         (ada_val_print_flt, ada_val_print_struct_union)
13465         (ada_val_print_ref): Likewise.
13466         (ada_val_print_1): Delete variables i and elttype.
13467         Replace extracted-out code by call to corresponding
13468         new functions.
13469
13470 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13471
13472         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13473
13474 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13475
13476         * ada-valprint.c (ada_val_print_1): Replace calls to
13477         ada_val_print_1 by calls to val_print.
13478
13479 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13480
13481         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13482         Update calls to self accordingly.  Replace calls to c_val_print
13483         by calls to val_print.
13484
13485 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13486
13487         * ada-valprint.c (print_record): Delete declaration.
13488         (adjust_type_signedness, ada_val_print_1): Likewise.
13489         (ada_val_print): Move function implementation down.
13490         (print_variant_part, print_field_values, print_record):
13491         Move function implementation up.
13492
13493 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13494
13495         * python/py-type.c (typy_get_name): New function.
13496         (type_object_getset): Add entry for attribute "name".
13497         * NEWS: Add entry mentioning this new attribute.
13498
13499 2014-01-07  Yao Qi  <yao@codesourcery.com>
13500
13501         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13502         statement.
13503
13504 2014-01-07  Yao Qi  <yao@codesourcery.com>
13505
13506         * gnu-nat.c (info_port_rights): Add qualifier const to
13507         argument args.
13508
13509 2014-01-07  Yao Qi  <yao@codesourcery.com>
13510
13511         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13512
13513 2014-01-07  Yao Qi  <yao@codesourcery.com>
13514
13515         * gnu-nat.c (make_inf) Update declaration.
13516         (make_inf): Make it static.
13517         (inf_set_traced): Likewise.
13518         (inf_port_to_thread, inf_task_died_status): Likewise.
13519
13520 2014-01-07  Yao Qi  <yao@codesourcery.com>
13521
13522         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13523
13524 2014-01-07  Yao Qi  <yao@codesourcery.com>
13525
13526         * gnu-nat.c (_initialize_gnu_nat): Declare.
13527
13528 2014-01-07  Yao Qi  <yao@codesourcery.com>
13529
13530         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13531         'enum bfd_endian'.
13532         (struct gdbarch_info) <byte_order>: Change type to
13533         'enum bfd_endian'.
13534         <byte_order_for_code>: Likewise.
13535         * gdbarch.c, gdbarch.h: Regenerated.
13536
13537 2014-01-06  Sasha Smundak  <asmundak@google.com>
13538
13539         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13540
13541 2014-01-06  Tom Tromey  <tromey@redhat.com>
13542
13543         * doublest.c (convert_doublest_to_floatformat): Use const, not
13544         CONST.
13545         * somread.c (som_symtab_read): Likewise.
13546
13547 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13548
13549         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13550         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13551         (gdb_bfd_fopen): Ditto.
13552         (gdb_bfd_openr): Ditto.
13553         (gdb_bfd_openw): Ditto.
13554         (gdb_bfd_openr_iovec): Ditto.
13555         (gdb_bfd_fdopenr): Ditto.
13556         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13557         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13558         with xstrdup.
13559         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13560         with xstrdup.
13561         * symfile-mem.c (symbol_file_add_from_memory): Removed
13562         gdb_bfd_stash_filename.
13563
13564 2014-01-03  Doug Evans  <dje@google.com>
13565
13566         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13567         output.
13568
13569 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13570
13571         Update year range in copyright notice of all files.
13572
13573 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13574
13575         * top.c (print_gdb_version): Set copyright year to 2014.
13576
13577 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13578
13579         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13580
13581 For older changes see ChangeLog-2013.
13582 \f
13583 Local Variables:
13584 mode: change-log
13585 left-margin: 8
13586 fill-column: 74
13587 version-control: never
13588 coding: utf-8
13589 End: