748d61dc5db797780c2809b3d0697572efd864c4
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2014-10-02  Pedro Alves  <palves@redhat.com>
2
3         * breakpoint.c (breakpoints_should_be_inserted_now): Use
4         threads_are_executing.
5         * breakpoint.h (breakpoints_should_be_inserted_now): Add
6         describing comment.
7         * gdbthread.h (threads_are_executing): Declare.
8         (handle_signal_stop) <random signals>: Don't print about the
9         signal here if stopping.
10         (end_stepping_range): Don't notify observers here.
11         (normal_stop): Update the thread list.  If stopped by a random
12         signal or a stepping range ended, notify observers.
13         * thread.c (threads_executing): New global.
14         (init_thread_list): Clear 'threads_executing'.
15         (set_executing): Set or clear 'threads_executing'.
16         (threads_are_executing): New function.
17         (update_threads_executing): New function.
18         (update_thread_list): Use it.
19
20 2014-10-02  Pedro Alves  <palves@redhat.com>
21
22         PR breakpoints/17431
23         * breakpoint.c (update_breakpoints_after_exec): Don't create
24         overlay, longjmp, std terminate nor exception breakpoints here.
25
26 2014-10-02  Pedro Alves  <palves@redhat.com>
27
28         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
29         Adjust comments.
30         * inferior.c (find_inferior_for_program_space): Give preference to
31         the current inferior.
32         * inferior.h (find_inferior_for_program_space): Update comment.
33         * progspace.c (switch_to_program_space_and_thread): Prefer the
34         current inferior if it's bound to the program space requested.  If
35         the inferior found doesn't have a PID yet, don't bother looking up
36         a thread.
37         * progspace.h (switch_to_program_space_and_thread): Adjust
38         comment.
39         * thread.c (any_thread_of_process, any_live_thread_of_process):
40         Give preference to the current thread.
41
42 2014-10-01  Pedro Alves  <palves@redhat.com>
43
44         * breakpoint.c (insert_bp_location): Error out if inserting a
45         software breakpoint at a read-only address.
46         * target.c (memory_xfer_check_region): New function, factored out
47         from ...
48         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
49         ULONGEST.
50         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
51         against the memory region attributes.
52
53 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
54
55         * NEWS: Announce new exit-code field in -list-thread-groups
56         output.
57         * inferior.c (exit_inferior_1): Don't clear exit code.
58         (inferior_appeared): Clear exit code.
59         * mi/mi-main.c (print_one_inferior): Add printing of the exit
60         code.
61
62 2014-10-01  Pedro Alves  <palves@redhat.com>
63
64         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
65         GENERATED" along with emacs/vi read-only markers.
66         * regformats/aarch64.dat: Regenerate.
67         * regformats/arm-with-iwmmxt.dat: Regenerate.
68         * regformats/arm-with-neon.dat: Regenerate.
69         * regformats/arm-with-vfpv2.dat: Regenerate.
70         * regformats/arm-with-vfpv3.dat: Regenerate.
71         * regformats/i386/amd64-avx-linux.dat: Regenerate.
72         * regformats/i386/amd64-avx.dat: Regenerate.
73         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
74         * regformats/i386/amd64-avx512.dat: Regenerate.
75         * regformats/i386/amd64-linux.dat: Regenerate.
76         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
77         * regformats/i386/amd64-mpx.dat: Regenerate.
78         * regformats/i386/amd64.dat: Regenerate.
79         * regformats/i386/i386-avx-linux.dat: Regenerate.
80         * regformats/i386/i386-avx.dat: Regenerate.
81         * regformats/i386/i386-avx512-linux.dat: Regenerate.
82         * regformats/i386/i386-avx512.dat: Regenerate.
83         * regformats/i386/i386-linux.dat: Regenerate.
84         * regformats/i386/i386-mmx-linux.dat: Regenerate.
85         * regformats/i386/i386-mmx.dat: Regenerate.
86         * regformats/i386/i386-mpx-linux.dat: Regenerate.
87         * regformats/i386/i386-mpx.dat: Regenerate.
88         * regformats/i386/i386.dat: Regenerate.
89         * regformats/i386/x32-avx-linux.dat: Regenerate.
90         * regformats/i386/x32-avx.dat: Regenerate.
91         * regformats/i386/x32-avx512-linux.dat: Regenerate.
92         * regformats/i386/x32-avx512.dat: Regenerate.
93         * regformats/i386/x32-linux.dat: Regenerate.
94         * regformats/i386/x32.dat: Regenerate.
95         * regformats/microblaze-with-stack-protect.dat: Regenerate.
96         * regformats/mips-dsp-linux.dat: Regenerate.
97         * regformats/mips-linux.dat: Regenerate.
98         * regformats/mips64-dsp-linux.dat: Regenerate.
99         * regformats/mips64-linux.dat: Regenerate.
100         * regformats/nios2-linux.dat: Regenerate.
101         * regformats/rs6000/powerpc-32.dat: Regenerate.
102         * regformats/rs6000/powerpc-32l.dat: Regenerate.
103         * regformats/rs6000/powerpc-64l.dat: Regenerate.
104         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
105         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
106         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
107         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
108         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
109         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
110         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
111         * regformats/s390-linux32.dat: Regenerate.
112         * regformats/s390-linux32v1.dat: Regenerate.
113         * regformats/s390-linux32v2.dat: Regenerate.
114         * regformats/s390-linux64.dat: Regenerate.
115         * regformats/s390-linux64v1.dat: Regenerate.
116         * regformats/s390-linux64v2.dat: Regenerate.
117         * regformats/s390-te-linux64.dat: Regenerate.
118         * regformats/s390x-linux64.dat: Regenerate.
119         * regformats/s390x-linux64v1.dat: Regenerate.
120         * regformats/s390x-linux64v2.dat: Regenerate.
121         * regformats/s390x-te-linux64.dat: Regenerate.
122         * regformats/tic6x-c62x-linux.dat: Regenerate.
123         * regformats/tic6x-c62x.dat: Regenerate.
124         * regformats/tic6x-c64x-linux.dat: Regenerate.
125         * regformats/tic6x-c64x.dat: Regenerate.
126         * regformats/tic6x-c64xp-linux.dat: Regenerate.
127         * regformats/tic6x-c64xp.dat: Regenerate.
128
129 2014-10-01  Pedro Alves  <palves@redhat.com>
130
131         * features/Makefile: Update comments.
132         (XMLTOC): List all xml files we build C files from.
133         (clean-cfiles): New rule.
134
135 2014-10-01  Pedro Alves  <palves@redhat.com>
136
137         * features/i386/amd64-avx512-linux.c: Regenerate.
138         * features/i386/amd64-avx512.c: Regenerate.
139         * features/i386/x32-avx512-linux.c: Regenerate.
140         * features/i386/x32-avx512.c: Regenerate.
141
142 2014-10-01  Pedro Alves  <palves@redhat.com>
143
144         * features/Makefile (WHICH): Remove arm-with-m,
145         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
146
147 2014-10-01  Pedro Alves  <palves@redhat.com>
148
149         * features/Makefile (clean): New rule.
150
151 2014-10-01  Pedro Alves  <palves@redhat.com>
152
153         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
154         (zmm14h): Add missing end quotes.
155
156 2014-10-01  Pedro Alves  <palves@redhat.com>
157
158         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
159         * features/aarch64.c: Regenerate.
160
161 2014-09-30  Don Breazeal  <donb@codesourcery.com>
162
163         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
164         code so as to work with follow_fork_inferior.
165         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
166         (inf_ttrace_create_inferior): Remove reference to
167         inf_ttrace_vfork_ppid.
168         (inf_ttrace_attach): Ditto.
169         (inf_ttrace_detach): Ditto.
170         (inf_ttrace_kill): Use current_inferior instead of
171         inf_ttrace_vfork_ppid.
172         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
173         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
174         inferior away from the parent.
175         * infrun.c (follow_fork): Call follow_fork_inferior instead of
176         target_follow_fork.
177         (follow_fork_inferior): New function.
178         (follow_inferior_reset_breakpoints): Make function static.
179         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
180         * linux-nat.c (linux_child_follow_fork): Move target-independent
181         code to infrun.c:follow_fork_inferior.
182
183 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
184
185         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
186         * gdbarch.c: Regenerate.
187         * gdbarch.h: Likewise.
188         * corelow.c (sniff_core_bfd): Drop presence check for deleted
189         gdbarch method 'regset_from_core_section'.
190         (get_core_register_section): Remove handling for the case that
191         regset == NULL and regset_from_core_section is defined.
192         (get_core_registers): Drop check for deleted method.
193         * procfs.c (procfs_do_thread_registers): Adjust comment.
194
195 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
196
197         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
198         (linux_nat_make_corefile_notes): Remove.
199         (linux_target_install_ops): Do not set target method
200         'make_corefile_notes'.
201         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
202         Remove field.
203         (linux_corefile_thread_callback): Instead of args->collect, call
204         linux_collect_thread_registers.
205         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
206         NULL unless there is a regset iterator.
207         (linux_make_corefile_notes_1): Remove.
208         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
209         by linux_make_corefile_notes.
210         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
211
212 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
213
214         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
215         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
216         Remove.
217         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
218
219 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
220
221         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
222         (xtensa_iterate_over_regset_sections): New.
223         (xtensa_gdbarch_init): Adjust gdbarch initialization.
224
225 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
226
227         * vax-tdep.c (vax_regset_from_core_section): Remove.
228         (vax_iterate_over_regset_sections): New.
229         (vax_gdbarch_init): Adjust gdbarch initialization.
230
231 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
232
233         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
234         (tilegx_regset_from_core_section): Remove.
235         (tilegx_iterate_over_regset_sections): New.
236         (tilegx_linux_init_abi): Adjust gdbarch initialization.
237
238 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
239
240         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
241         (sparc_iterate_over_regset_sections): New.
242         (sparc32_gdbarch_init): Adjust gdbarch initialization.
243         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
244         targets.
245         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
246         (sparc64fbsd_init_abi): Call fbsd_init_abi.
247         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
248         target method 'make_corefile_notes'.
249
250 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
251
252         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
253         'sizeof_gregset' and 'sizeof_fpregset'.
254         * sh-tdep.c (sh_regset_from_core_section): Remove.
255         (sh_iterate_over_regset_sections): New.
256         (sh_gdbarch_init): Adjust gdbarch initialization.
257         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
258         sizeof_fpregset.
259         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
260         'sizeof_gregset'.
261
262 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
263
264         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
265         (score7_linux_iterate_over_regset_sections): New.
266         (score_gdbarch_init): Adjust gdbarch initialization.
267
268 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
269
270         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
271         FreeBSD targets.
272         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
273         method 'make_corefile_notes'.
274         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
275         (ppcfbsd_regset_from_core_section): Remove.
276         (ppcfbsd_iterate_over_regset_sections): New.
277         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
278         initialization.
279         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
280         (ppcnbsd_iterate_over_regset_sections): New.
281         (ppcnbsd_init_abi): Adjust.
282         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
283         (ppcobsd_iterate_over_regset_sections): New.
284         (ppcobsd_init_abi): Adjust.
285         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
286         (rs6000_aix_iterate_over_regset_sections): New.
287         (rs6000_aix_init_osabi): Adjust.
288
289 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
290
291         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
292         (nios2_regset_from_core_section): Remove.
293         (nios2_iterate_over_regset_sections): New.
294         (nios2_linux_init_abi): Adjust gdbarch initialization.
295
296 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
297
298         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
299         (am33_iterate_over_regset_sections): New.
300         (am33_linux_init_osabi): Adjust gdbarch initialization.
301
302 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
303
304         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
305         (mips_linux_iterate_over_regset_sections): New.
306         (mips_linux_init_abi): Adjust gdbarch initialization.
307         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
308         (mips64obsd_iterate_over_regset_sections): New.
309         (mips64obsd_init_abi): Adjust.
310         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
311         (mipsnbsd_iterate_over_regset_sections): New.
312         (mipsnbsd_init_abi): Adjust.
313
314 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
315
316         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
317         (m88k_iterate_over_regset_sections): New.
318         (m88k_gdbarch_init): Adjust gdbarch initialization.
319
320 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
321
322         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
323         (ia64_linux_iterate_over_regset_sections): New.
324         (ia64_linux_init_abi): Adjust gdbarch initialization.
325
326 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
327
328         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
329         (m68kbsd_iterate_over_regset_sections): New.
330         (m68kbsd_init_abi): Adjust gdbarch initialization.
331         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
332         (m68k_linux_iterate_over_regset_sections): New.
333         (m68k_linux_init_abi): Adjust gdbarch initialization.
334
335 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
336
337         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
338         (m32r_linux_regset_from_core_section): Remove.
339         (m32r_linux_iterate_over_regset_sections): New.
340         (m32r_linux_init_abi): Adjust gdbarch initialization.
341
342 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
343
344         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
345         (amd64obsd_iterate_over_regset_sections): New.
346         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
347         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
348         Remove.
349         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
350         regset_from_core_section initialization.
351         * i386-tdep.c (i386_regset_from_core_section): Remove.
352         (i386_iterate_over_regset_sections): New.
353         (i386_gdbarch_init): Adjust gdbarch initialization.
354         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
355         (i386_iterate_over_regset_sections): New prototype.
356         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
357         Remove.
358         (i386obsd_aout_iterate_over_regset_sections): New.
359         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
360         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
361         targets.
362         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
363         (amd64fbsd_init_abi): Call fbsd_init_abi.
364         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
365         (i386fbsd4_init_abi): Call fbsd_init_abi.
366         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
367         target method 'make_corefile_notes'.
368         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
369
370 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
371
372         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
373         (hppa_hpux_iterate_over_regset_sections): New.
374         (hppa_hpux_init_abi): Adjust gdbarch initialization.
375         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
376         (hppa_linux_iterate_over_regset_sections): New.
377         (hppa_linux_init_abi): Adjust.
378         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
379         (hppanbsd_iterate_over_regset_sections): New.
380         (hppanbsd_init_abi): Adjust.
381         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
382         (hppaobsd_iterate_over_regset_sections): New.
383         (hppaobsd_init_abi): Adjust.
384
385 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
386
387         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
388         (frv_linux_iterate_over_regset_sections): New.
389         (frv_linux_init_abi): Adjust gdbarch initialization.
390
391 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
392
393         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
394         (armbsd_iterate_over_regset_sections): New prototype.
395         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
396         (armbsd_iterate_over_regset_sections): New.
397         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
398         initialization.
399
400 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
401
402         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
403         (alpha_linux_iterate_over_regset_sections): New.
404         (alpha_linux_init_abi): Adjust gdbarch initialization.
405         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
406         prototype.
407         (alphanbsd_iterate_over_regset_sections): New prototype.
408
409 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
410
411         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
412         Remove.
413         (aarch64_linux_iterate_over_regset_sections): New.
414         (aarch64_linux_init_abi): Adjust gdbarch initialization.
415
416 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
417
418         * fbsd-tdep.c: New file.
419         * fbsd-tdep.h: New file.
420         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
421         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
422         (ALLDEPFILES): Add fbsd-tdep.c.
423
424 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
425
426         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
427         parameter.
428         * gdbarch.h: Regenerate.
429         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
430         iterator.
431         (get_core_register_section): Add parameter 'regset' and use it, if
432         set.  Add parameter 'min_size' and verify the bfd section size
433         against it.
434         (get_core_registers_cb): Add parameter 'regset' and pass it to
435         get_core_register section.  For the "standard" register sections
436         ".reg" and ".reg2", set an appropriate default for human_name.
437         (get_core_registers): Don't abort when the gdbarch has an iterator
438         but no regset_from_core_section.  Add NULL/0 for parameters
439         'regset'/'min_size' in calls to get_core_register_section.
440         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
441         'regset' and use it instead of calling the
442         regset_from_core_section gdbarch method.
443         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
444         * i386-tdep.c (i386_supply_xstateregset)
445         (i386_collect_xstateregset, i386_xstateregset): Moved to
446         i386-linux-tdep.c.
447         (i386_regset_from_core_section): Drop handling for .reg-xfp and
448         .reg-xstate.
449         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
450         core file support only if the regset iterator hasn't been set.
451         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
452         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
453         Moved from i386-tdep.c and renamed to *_linux*.
454         (i386_linux_iterate_over_regset_sections): Add regset parameter to
455         each callback invocation.  Allow any .reg-xstate size when reading
456         from a core file.
457         * amd64-tdep.c (amd64_supply_xstateregset)
458         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
459         amd64-linux-tdep.c.
460         (amd64_regset_from_core_section): Remove.
461         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
462         install an amd64-specific regset_from_core_section gdbarch method.
463         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
464         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
465         Moved from amd64-tdep.c and renamed to *_linux*.
466         (amd64_linux_iterate_over_regset_sections): Add regset parameter
467         to each callback invocation.  Allow any .reg-xstate size when
468         reading from a core file.
469         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
470         (arm_linux_iterate_over_regset_sections): Add regset parameter to
471         each callback invocation.
472         (arm_linux_init_abi): No longer set the regset_from_core_section
473         gdbarch method.
474         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
475         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
476         each callback invocation.
477         (ppc_linux_init_abi): No longer set the regset_from_core_section
478         gdbarch method.
479         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
480         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
481         (s390_regset_from_core_section): Remove.
482         (s390_iterate_over_regset_sections): Add regset parameter to each
483         callback invocation.
484         (s390_gdbarch_init): No longer set the regset_from_core_section
485         gdbarch method.  Drop initialization of deleted tdep fields.
486
487 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
488
489         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
490         (amd64_linux_iterate_over_regset_sections): New.
491         (amd64_linux_init_abi_common): Don't install the regset section
492         list, but the new iterator in gdbarch.
493         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
494         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
495         (arm_linux_iterate_over_regset_sections): ...here.  New function.
496         (arm_linux_init_abi): Set iterator instead of section list.
497         * corelow.c (get_core_registers_cb): New function, logic moved
498         from...
499         (get_core_registers): ...loop body here.  Use new iterator method
500         instead of walking through the regset section list.
501         * gdbarch.sh: Remove 'core_regset_sections'.  New method
502         'iterate_over_regset_sections'.  New typedef
503         'iterate_over_regset_sections_cb'.
504         * gdbarch.c: Regenerate.
505         * gdbarch.h: Likewise.
506         * i386-linux-tdep.c (i386_linux_regset_sections)
507         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
508         Remove.
509         (i386_linux_iterate_over_regset_sections): New.
510         (i386_linux_init_abi): Don't choose a regset section list, but
511         install new iterator in gdbarch.
512         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
513         (linux_collect_regset_section_cb): New function, logic moved
514         from...
515         (linux_collect_thread_registers): ...loop body here.  Use iterator
516         method instead of walking through list.
517         (linux_make_corefile_notes_1): Check for presence of iterator
518         method instead of regset section list.
519         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
520         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
521         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
522         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
523         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
524         (ppc_linux_init_abi): Don't choose from above regset section
525         lists, but install new iterator in gdbarch.
526         * regset.h (struct core_regset_section): Remove.
527         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
528         have_linux_v1, have_linux_v2, and have_tdb.
529         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
530         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
531         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
532         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
533         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
534         (s390_iterate_over_regset_sections): ...here.  New function.  Use
535         new tdep fields.
536         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
537         regset section lists, but install new iterator.
538
539 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
540
541         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
542
543 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
544
545         * progspace.c (print_program_space): Don't prune program spaces
546         before printing them.
547
548 2014-09-25  Pedro Alves  <palves@redhat.com>
549
550         * infrun.c (user_visible_resume_ptid): Don't check
551         singlestep_breakpoints_inserted_p.
552
553 2014-09-25  Pedro Alves  <palves@redhat.com>
554
555         * breakpoint.c (should_be_inserted): Add debug output.
556
557 2014-09-25  Pedro Alves  <palves@redhat.com>
558
559         * infrun.c (stepping_past_instruction_at)
560         (clear_exit_convenience_vars): Point at infrun.h instead of
561         inferior.h.
562         (handle_signal_stop): Fix typo.
563
564 2014-09-24  Yao Qi  <yao@codesourcery.com>
565
566         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
567         bitmask.
568
569 2014-09-22  Gary Benson  <gbenson@redhat.com>
570
571         * target.c (target_stop): Updated comment.
572
573 2014-09-22  Gary Benson  <gbenson@redhat.com>
574
575         * target/target.h (target_stop_ptid): Renamed as...
576         (target_stop_and_wait): New function.  Updated comment.
577         All uses updated.
578         (target_continue_ptid): Renamed as...
579         (target_continue_no_signal): New function.  Updated comment.
580         All uses updated.
581
582 2014-09-22  Pedro Alves  <palves@redhat.com>
583
584         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
585         and "auto" merged.
586         * breakpoint.c (enum ugll_insert_mode): New enum.
587         (always_inserted_mode): Now a plain boolean.
588         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
589         (breakpoints_always_inserted_mode): Delete.
590         (breakpoints_should_be_inserted_now): New function.
591         (insert_breakpoints): Pass UGLL_INSERT to
592         update_global_location_list instead of calling
593         insert_breakpoint_locations manually.
594         (create_solib_event_breakpoint_1): New, factored out from ...
595         (create_solib_event_breakpoint): ... this.
596         (create_and_insert_solib_event_breakpoint): Use
597         create_solib_event_breakpoint_1 instead of calling
598         insert_breakpoint_locations manually.
599         (update_global_location_list): Change parameter type from boolean
600         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
601         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
602         (update_global_location_list_nothrow): Change parameter type from
603         boolean to enum ugll_insert_mode.
604         (_initialize_breakpoint): "breakpoint always-inserted" option is
605         now a boolean command.  Update help text.
606         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
607         (breakpoints_should_be_inserted_now): New declaration.
608         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
609         Remove breakpoints_always_inserted_mode check.
610         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
611         * remote.c (remote_start_remote): Likewise.
612
613 2014-09-22  Pedro Alves  <palves@redhat.com>
614
615         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
616         (insert_breakpoints): Don't call insert_breakpoint_locations here.
617         Instead, pass UGLL_INSERT to update_global_location_list.
618         (update_global_location_list): Change parameter type from boolean
619         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
620         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
621         (create_solib_event_breakpoint_1): New, factored out from ...
622         (create_solib_event_breakpoint): ... this.
623         (create_and_insert_solib_event_breakpoint): Use
624         create_solib_event_breakpoint_1 instead of calling
625         insert_breakpoint_locations manually.
626         (update_global_location_list): Handle UGLL_INSERT.
627
628 2014-09-22  Pedro Alves  <palves@redhat.com>
629
630         * breakpoint.c (enum ugll_insert_mode): New enum.
631         (update_global_location_list)
632         (update_global_location_list_nothrow): Change parameter type from
633         boolean to enum ugll_insert_mode.  All callers adjusted.
634
635 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
636
637         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
638         SystemTap support in GDB.
639
640 2014-09-19  Don Breazeal  <donb@codesourcery.com>
641
642         * linux-nat.c (linux_handle_extended_wait): Call
643         linux_ptrace_get_extended_event.
644         (wait_lwp): Call linux_is_extended_waitstatus.
645         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
646         and linux_is_extended_waitstatus.
647         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
648         linux_ptrace_get_extended_event.
649         (linux_ptrace_get_extended_event): New function.
650         (linux_is_extended_waitstatus): New function.
651         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
652         (linux_is_extended_waitstatus): New declarations.
653
654 2014-09-19  Yao Qi  <yao@codesourcery.com>
655
656         * dwarf2read.c (dwarf_decode_lines): Update declaration.
657         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
658         comments.  Callers update.
659         (dwarf_decode_lines): Likewise.
660         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
661         comments.  Skip the line table if  'lowpc' is greater than
662         'address'.  Don't check
663         dwarf2_per_objfile->has_section_at_zero.
664
665 2014-09-18  Doug Evans  <dje@google.com>
666
667         * NEWS: Mention new "producer" attribute of gdb.Symtab.
668         * python/py-symtab.c (stpy_get_producer): New function.
669         (symtab_object_getset): Add "producer" attribute.
670
671 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
672
673         PR gdb/17384
674         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
675         (do_captured_read_memory_integer): Remove.
676         (safe_read_memory_integer): Use target_read_memory directly instead
677         of catching errors in do_captured_read_memory_integer.
678
679 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
680
681         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
682         not gdb/doc.
683
684 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
685
686         * objc-lang.c (find_implementation_from_class): Remove dead code.
687
688 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
689
690         PR cli/7233
691         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
692         "fprintf_unfiltered (gdb_stdlog...)".
693
694 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
695
696         PR breakpoints/12526
697         * breakpoint.h (struct watchpoint): New fields val_bitpos and
698         val_bitsize.
699         * breakpoint.c (watch_command_1): Use these fields to retain
700         bitfield information.
701         (extract_bitfield_from_watchpoint_value): New function.
702         (watchpoint_check): Use it.
703         (update_watchpoint): Use it.  Optimize the address and length of a
704         HW watchpoint pointing to a bitfield.
705         * value.h (unpack_value_bitfield): New prototype.
706         * value.c (unpack_value_bitfield): Make extern.
707
708 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
709
710         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
711         x86-dregs.o.
712         * gnu-nat.c (inf_threads): New function.
713         * gnu-nat.h (inf_threads_ftype): New typedef.
714         (inf_threads): New declaration.
715         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
716         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
717         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
718         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
719         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
720         (i386_gnu_dr_get_control): New functions.
721         (reg_addr): New structure.
722         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
723         i386 debugging register hooks.
724         * NEWS: Mention this.
725
726 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
727
728         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
729         vector data transfer instructions.
730         (arm_record_coproc_data_proc): Updated.
731
732 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
733
734         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
735         arm_record_exreg_ld_st_insn.
736         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
737         load/store insns.
738
739 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
740
741         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
742         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
743         processing instructions.
744
745 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
746
747         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
748         for advance SIMD struct ld/st insn.
749         (thumb2_record_decode_insn_handler): Replace stub handler with
750         thumb2_record_asimd_struct_ld_st.
751
752 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
753
754         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
755         for asimd, vfp and coprocessor insns.
756         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
757         and coprocessor insns.
758         (thumb2_record_coproc_insn): New function.
759         (thumb2_record_decode_insn_handler): Update coprocessor insns record
760         handlers.
761         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
762         opcode 110 insns.
763
764 2014-09-13  Doug Evans  <xdje42@gmail.com>
765
766         * NEWS: Mention new "queue-signal" command.
767         * infcmd.c (queue_signal_command): New function.
768         (_initialize_infcmd): Add new queue-signal command.
769
770 2014-09-13  Doug Evans  <xdje42@gmail.com>
771
772         * linux-nat.c (wait_lwp): Add debugging printf.
773         (linux_nat_wait_1): Ditto.
774
775 2014-09-12  Pedro Alves  <palves@redhat.com>
776
777         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
778         (create_and_insert_solib_event_breakpoint): New functions.
779         * breakpoint.h (create_and_insert_solib_event_breakpoint)
780         (remove_solib_event_breakpoints_at_next_stop): New declarations.
781         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
782         (remove_dbx_link_breakpoint): Delete function.
783         (insert_dbx_link_bpt_in_file): Use
784         create_and_insert_solib_event_breakpoint instead of
785         deprecated_insert_raw_breakpoint.
786         (procfs_wait): Don't check whether we hit __dbx_link here.
787         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
788         here.
789         * solib-irix.c (base_breakpoint): Delete global.
790         (disable_break): Delete function.
791         (enable_break): Use create_solib_event_breakpoint
792         instead of deprecated_insert_raw_breakpoint.
793         (irix_solib_handle_event): New function.
794         (irix_solib_create_inferior_hook): Don't run the target or disable
795         the mapping-complete breakpoint here.
796         (_initialize_irix_solib): Install irix_solib_handle_event as
797         so_ops->handle_event hook.
798
799 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
800             Ulrich Weigand  <uweigand@de.ibm.com>
801
802         PR tdep/17379
803         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
804         instead of read_memory_unsigned_integer.
805
806 2014-09-12  Gary Benson  <gbenson@redhat.com>
807
808         * nat/linux-waitpid.c: Include common-defs.h.
809         [GDBSERVER]: Add FIXME comment.
810         [!GDBSERVER]: Don't include defs.h or signal.h.
811         (linux_debug) [!GDBSERVER]: Remove empty block.
812
813 2014-09-12  Gary Benson  <gbenson@redhat.com>
814
815         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
816         Don't include defs.h or server.h.
817
818 2014-09-12  Gary Benson  <gbenson@redhat.com>
819
820         * nat/linux-btrace.c: Include common-defs.h.
821         Don't include defs.h, server.h or gdbthread.h.
822         * nat/linux-btrace.h (struct target_ops): New forward declaration.
823
824 2014-09-12  Gary Benson  <gbenson@redhat.com>
825
826         * common/agent.c: Include common-defs.h.
827         Don't include defs.h or server.h.
828         * common/buffer.c: Likewise.
829         * common/common-debug.c: Likewise.
830         * common/common-utils.c: Likewise.
831         * common/errors.c: Likewise.
832         * common/filestuff.c: Likewise.
833         * common/format.c: Likewise.
834         * common/gdb_vecs.c: Likewise.
835         * common/print-utils.c: Likewise.
836         * common/ptid.c: Likewise.
837         * common/rsp-low.c: Likewise.
838         * common/signals.c: Likewise.
839         * common/vec.c: Likewise.
840         * common/xml-utils.c: Likewise.
841         * nat/linux-osdata.c: Likewise.
842         * nat/linux-procfs.c: Likewise.
843         * nat/linux-ptrace.c: Likewise.
844         * nat/mips-linux-watch.c: Likewise.
845         * target/waitstatus.c: Likewise.
846
847 2014-09-12  Tom Tromey  <tromey@redhat.com>
848             Gary Benson  <gbenson@redhat.com>
849
850         * common/common-regcache.h: New file.
851         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
852         * regcache.h: Include common-regcache.h.
853         (regcache_read_pc): Don't declare.
854         * regcache.c (get_thread_regcache_for_ptid): New function.
855         * nat/linux-btrace.c: Don't include regcache.h.
856         Include common-regcache.h.
857         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
858
859 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
860
861         * regcache.h (struct regset): Declare.
862
863 2014-09-11  Pedro Alves  <palves@redhat.com>
864
865         PR gdb/17347
866         * main.c: Include "infrun.h".
867         (catch_command_errors, catch_command_errors_const): Wait for the
868         foreground command to complete.
869         * top.c (maybe_wait_sync_command_done): New function, factored out
870         from ...
871         (maybe_wait_sync_command_done): ... here.
872         * top.h (maybe_wait_sync_command_done): New declaration.
873
874 2014-09-11  Tom Tromey  <tromey@redhat.com>
875             Gary Benson  <gbenson@redhat.com>
876
877         * common/symbol.h: New file.
878         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
879         * minsyms.c (find_minimal_symbol_address): New function.
880         * common/agent.c: Include common/symbol.h.
881         [!GDBSERVER]: Don't include objfiles.h.
882         (agent_look_up_symbols): Use find_minimal_symbol_address.
883
884 2014-09-11  Gary Benson  <gbenson@redhat.com>
885
886         * target/target.h (target_stop_ptid, target_continue_ptid):
887         Declare.
888         * target.c (target_stop_ptid, target_continue_ptid): New
889         functions.
890         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
891         (agent_run_command): Always use target_stop_ptid and
892         target_continue_ptid.
893
894 2014-09-11  Tom Tromey  <tromey@redhat.com>
895             Gary Benson  <gbenson@redhat.com>
896
897         * target/target.h: New file.
898         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
899         * target.h: Include target/target.h.
900         (target_read_memory, target_write_memory): Don't declare.
901         * target.c (target_read_uint32): New function.
902         * common/agent.c: Include target/target.h.
903         [!GDBSERVER]: Don't include target.h.
904         (helper_thread_id): Type changed to uint32_t.
905         (agent_get_helper_thread_id): Use target_read_uint32.
906         (agent_run_command): Always use target_read_memory and
907         target_write_memory.
908         (agent_capability): Type changed to uint32_t.
909         (agent_capability_check): Use target_read_uint32.
910
911 2014-09-11  Gary Benson  <gbenson@redhat.com>
912
913         * common/common-debug.h (show_debug_regs): Declare.
914         * common/common-debug.c (show_debug_regs): Define.
915         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
916         all uses with show_debug_regs.  Replace all uses that considered
917         debug_hw_points as a multi-value integer with straight boolean
918         uses.
919         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
920         with show_debug_regs.
921         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
922         all uses with show_debug_regs.
923         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
924         uses with show_debug_regs.
925
926 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
927
928         * findvar.c (address_from_register): Handle targets requiring
929         a special conversion routine even for plain pointer types.
930
931 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
932
933         * rs6000-nat.c (exec_one_dummy_insn): Remove.
934         (store_register): Do not call exec_one_dummy_insn.
935
936 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
937
938         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
939         dereference it first.  Use value_enclosing_type instead of
940         value_type.
941         (ada_array_length): Likewise.
942
943 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
944
945         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
946         Adjust function implementation and documentation accordingly.
947         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
948         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
949         Update call to ada_value_ptr_subscript.
950
951 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
952
953         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
954         instead of VAL's type.
955
956 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
957
958         * amd64-linux-nat.c: Add <sys/uio.h> #include.
959
960 2014-09-09  Doug Evans  <xdje42@gmail.com>
961
962         PR guile/17367
963         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
964         last parameter to pkg-config, not first.
965         * configure.ac: Pass --with-guile provided pkg-config path to
966         GDB_GUILE_PROGRAM_NAMES.
967         * configure: Regenerate.
968
969 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
970
971         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
972         Bertazi".
973
974 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
975
976         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
977         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
978         the list of sections determining GDB_OSABI_IRIX.
979
980 2014-09-09  James Hogan  <james.hogan@imgtec.com>
981
982         * MAINTAINERS (Write After Approval): Add "James Hogan".
983
984 2014-09-09  James Hogan  <james.hogan@imgtec.com>
985
986         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
987
988 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
989
990         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
991
992 2014-09-08  Doug Evans  <xdje42@gmail.com>
993
994         PR 17247
995         * guile.c: #include <signal.h>.
996         (_initialize_guile): Block SIGCHLD while initializing Guile.
997
998         Replaces the following, which is reverted.
999
1000         2014-07-26  Doug Evans  <xdje42@gmail.com>
1001
1002         PR 17185
1003         * configure.ac: Add check for header gc/gc.h.
1004         Add check for function setenv.
1005         * configure: Regenerate.
1006         * config.in: Regenerate.
1007         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1008
1009 2014-09-08  Doug Evans  <xdje42@gmail.com>
1010
1011         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1012         with named constant.  Fix style of pointer comparison.
1013         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1014
1015 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1016
1017         PR gdb/17035
1018         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1019         decide whether we display the command on "show user".
1020         * cli/cli-script.c (show_user_1): Only verify cmdlines after
1021         printing command name.
1022         * cli/cli-decode.h (cli_user_command_p): Declare new function.
1023         * cli/cli-decode.c (cli_user_command_p): Create helper function
1024         to verify whether cmd_list_element is a user-defined command.
1025
1026 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1027
1028         PR python/17355
1029         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1030         Fix goto out of TRY_CATCH.
1031
1032 2014-09-06  Doug Evans  <xdje42@gmail.com>
1033             Tom Tromey  <tromey@redhat.com>
1034
1035         PR 15276
1036         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1037         $_any_caller_matches.
1038         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1039         * python/lib/gdb/function/caller_is.py: New file.
1040
1041 2014-09-06  Doug Evans  <xdje42@gmail.com>
1042
1043         * infcmd.c (program_info): Fix typo.
1044
1045 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1046
1047         PR gdb/17235
1048         * stap-probe.c (stap_parse_single_operand): Delete unused variable
1049         'number'.  New variable 'has_digit'.  Rewrite code to deal with
1050         subexpressions on SDT probes.
1051
1052 2014-09-04  Pedro Alves  <palves@redhat.com>
1053
1054         * c-exp.y (parse_number): Skip handling base-switching prefixes if
1055         the input is only one character long.
1056
1057 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1058
1059         PR fortran/17237
1060         * f-valprint.c (f_val_print): Specify the correct print option to
1061         use when printing integer values.
1062
1063 2014-09-04  Gary Benson  <gbenson@redhat.com>
1064
1065         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1066         Remove code to cope with LWPs wrapped as PIDs.
1067         Add assertions to ensure no wrapped LWPs are passed.
1068
1069 2014-09-04  Pedro Alves  <palves@redhat.com>
1070
1071         * value.c (value_ranges_copy_adjusted): New function, factored out
1072         from ...
1073         (value_contents_copy_raw): ... here.
1074         (unpack_value_bits_as_long_1): Rename back to ...
1075         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1076         'result' parameters.  Change return type to LONGEST.
1077         (unpack_value_bits_as_long): Delete.
1078         (unpack_value_field_as_long_1): Delete.
1079         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1080         (unpack_value_bitfield): New function.
1081         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1082         (value_fetch_lazy): Use unpack_value_bitfield.
1083         * value.h (unpack_value_bits_as_long): Delete declaration.
1084
1085 2014-09-03  Sasha Smundak  <asmundak@google.com>
1086
1087         * python/py-frame.c (frapy_read_register): New function.
1088
1089 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1090
1091         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1092         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1093
1094 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1095
1096         PR python/16699
1097         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1098         function.
1099         (add_cmd): Set "completer_handle_brkchars" to NULL.
1100         * cli/cli-decode.h (struct cmd_list_element)
1101         <completer_handle_brkchars>: New field.
1102         * command.h (completer_ftype_void): New typedef.
1103         (set_cmd_completer_handle_brkchars): New prototype.
1104         * completer.c (set_gdb_completion_word_break_characters): New
1105         function.
1106         (complete_line_internal): Call "completer_handle_brkchars"
1107         callback from command.
1108         * completer.h: Include "command.h".
1109         (set_gdb_completion_word_break_characters): New prototype.
1110         * python/py-cmd.c (cmdpy_completer_helper): New function.
1111         (cmdpy_completer_handle_brkchars): New function.
1112         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1113         (cmdpy_init): Set completer_handle_brkchars to
1114         cmdpy_completer_handle_brkchars.
1115
1116 2014-09-03  Gary Benson  <gbenson@redhat.com>
1117
1118         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1119         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1120         Loop conditions changed to equivalent form.
1121         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1122         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1123         ALL_DEBUG_ADDRESS_REGISTERS.
1124
1125 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1126
1127         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1128         description fix.
1129
1130 2014-09-02  Doug Evans  <dje@google.com>
1131
1132         * typeprint.c (find_global_typedef): Fix comment.
1133
1134 2014-09-02  Gary Benson  <gbenson@redhat.com>
1135
1136         * i386-nat.h: Renamed as...
1137         * x86-nat.h: New file.  All type, function and variable name
1138         prefixes changed from "i386_" to "x86_".  All references updated.
1139         * i386-nat.c: Renamed as...
1140         * x86-nat.c: New file.  All type, function and variable name
1141         prefixes changed from "i386_" to "x86_".  All references updated.
1142         * common/i386-xstate.h: Renamed as...
1143         * common/x86-xstate.h: New file.  All type, function and variable
1144         name prefixes changed from "i386_" to "x86_".  All references
1145         updated.
1146         * nat/i386-cpuid.h: Renamed as...
1147         * nat/x86-cpuid.h: New file.  All type, function and variable name
1148         prefixes changed from "i386_" to "x86_".  All references updated.
1149         * nat/i386-gcc-cpuid.h: Renamed as...
1150         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1151         name prefixes changed from "i386_" to "x86_".  All references
1152         updated.
1153         * nat/i386-dregs.h: Renamed as...
1154         * nat/x86-dregs.h: New file.  All type, function and variable name
1155         prefixes changed from "i386_" to "x86_".  All references updated.
1156         * nat/i386-dregs.c: Renamed as...
1157         * nat/x86-dregs.c: New file.  All type, function and variable name
1158         prefixes changed from "i386_" to "x86_".  All references updated.
1159
1160 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1161
1162         * varobj.c (_initialize_varobj): Move to the end of file.
1163
1164 2014-08-29  Gary Benson  <gbenson@redhat.com>
1165
1166         * common/common-exceptions.h: New file.
1167         * common/common-exceptions.c: Likewise.
1168         * Makefile.in (SFILES): Add common/common-exceptions.c.
1169         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1170         (COMMON_OBS): Add common-exceptions.o.
1171         (common-exceptions.o): New rule.
1172         * exceptions.h (common-exceptions.h): Include.
1173         (gdb_setjmp.h): Do not include.
1174         (return_reason): Moved to common-exceptions.h.
1175         (enum return_reason): Likewise.
1176         (RETURN_MASK): Likewise.
1177         (typedef return_mask): Likewise.
1178         (enum errors): Likewise.
1179         (struct gdb_exception): Likewise.
1180         (exceptions_state_mc_init): Likewise.
1181         (exceptions_state_mc_action_iter): Likewise.
1182         (exceptions_state_mc_action_iter_1): Likewise.
1183         (TRY_CATCH): Likewise.
1184         (throw_exception): Likewise.
1185         (throw_verror): Likewise.
1186         (throw_vquit): Likewise.
1187         (throw_error): Likewise.
1188         (throw_quit): Likewise.
1189         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1190         (enum catcher_action): Likewise.
1191         (struct catcher): Likewise.
1192         (current_catcher): Likewise.
1193         (catcher_list_size): Likewise.
1194         (exceptions_state_mc_init): Likewise.
1195         (catcher_pop): Likewise.
1196         (exceptions_state_mc): Likewise.
1197         (exceptions_state_mc_action_iter): Likewise.
1198         (exceptions_state_mc_action_iter_1): Likewise.
1199         (throw_exception): Likewise.
1200         (exception_messages): Likewise.
1201         (exception_messages_size): Likewise.
1202         (throw_it): Likewise.
1203         (throw_verror): Likewise.
1204         (throw_vquit): Likewise.
1205         (throw_error): Likewise.
1206         (throw_quit): Likewise.
1207         (prepare_to_throw_exception): New function.
1208
1209 2014-08-29  Gary Benson  <gbenson@redhat.com>
1210
1211         * common/gdb_setjmp.h: New file.
1212         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1213         * configure.ac: Move sigsetjmp check...
1214         * common/common.m4: ...here.
1215         * configure: Regenerate.
1216         * cp-support.c (SIGJMP_BUF): Delete.
1217         (SIGSETJMP): Likewise.
1218         (SIGLONGJMP): Likewise.
1219         * exceptions.h (gdb_setjmp.h): Include.
1220         (setjmp.h): Do not include.
1221         (EXCEPTIONS_SIGJMP_BUF): Delete.
1222         (EXCEPTIONS_SIGSETJMP): Likewise.
1223         (EXCEPTIONS_SIGLONGJMP): Likewise.
1224         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1225         from gdb_setjmp.h.
1226         * exceptions.c: Likewise.
1227
1228 2014-08-29  Gary Benson  <gbenson@redhat.com>
1229
1230         * cleanups.h: Moved to...
1231         * common/cleanups.h: New file.
1232         * cleanups.c: Moved to...
1233         * common/cleanups.c: New file.  Include common-defs.h and
1234         cleanups.h.  Do not include defs.h.
1235         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1236         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1237         (cleanups.o): New rule.
1238
1239 2014-08-29  Gary Benson  <gbenson@redhat.com>
1240
1241         * common/errors.h (internal_warning): New declaration.
1242         (internal_vwarning): Likewise.
1243         * common/errors.c (internal_warning): New function.
1244         * utils.h (internal_warning): Don't declare.
1245         (internal_vwarning): Likewise.
1246         * utils.c (internal_warning): Removed.
1247
1248 2014-08-29  Gary Benson  <gbenson@redhat.com>
1249
1250         * main.c (captured_main): Use warning during startup.
1251         Prefix startup warning messages with command name.
1252
1253 2014-08-29  Gary Benson  <gbenson@redhat.com>
1254
1255         * main.c (captured_main): Handle usage errors with error.
1256
1257 2014-08-29  Gary Benson  <gbenson@redhat.com>
1258
1259         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1260         exit pair with a call to error.  Wrap the message with _().
1261
1262 2014-08-29  Gary Benson  <gbenson@redhat.com>
1263
1264         * main.c (captured_main): Replace a fprintf/exit
1265         pair with a call to error.  Wrap the message with _().
1266
1267 2014-08-29  Gary Benson  <gbenson@redhat.com>
1268
1269         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1270         pairs with calls to error.  Wrap the message with _().
1271
1272 2014-08-29  Gary Benson  <gbenson@redhat.com>
1273
1274         * utils.c (vwarning): Protect calls to target_terminal_ours
1275         and wrap_here.
1276
1277 2014-08-29  Gary Benson  <gbenson@redhat.com>
1278
1279         * exceptions.c (print_flush): Protect calls to
1280         target_terminal_ours and wrap_here.
1281
1282 2014-08-29  Gary Benson  <gbenson@redhat.com>
1283
1284         * utils.h (filtered_printing_initialized): New declaration.
1285         * utils.c (abort_with_message): New function.
1286         (internal_vproblem): Use abort_with_message for first level
1287         recursive internal problems, and if gdb_stderr is not set up.
1288         Protect calls to target_terminal_ours, begin_line and query.
1289
1290 2014-08-28  Doug Evans  <dje@google.com>
1291
1292         * symtab.c (in_prologue): Move definition to better spot.
1293         (skip_prologue_using_sal): Ditto.
1294
1295 2014-08-28  Doug Evans  <dje@google.com>
1296
1297         * symtab.c (find_function_start_sal): Move definition to better spot.
1298
1299 2014-08-28  Yao Qi  <yao@codesourcery.com>
1300
1301         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1302         found_stack_adjust in forward scan.  Remove condition check
1303         on found_stack_adjust which is always true.  Indent the code.
1304
1305 2014-08-28  Yao Qi  <yao@codesourcery.com>
1306
1307         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1308         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1309         (dwarf_decode_lines): Remove argument
1310         want_line_info.  Remove condition check on want_line_info.
1311         Callers update.
1312
1313 2014-08-27  Doug Evans  <dje@google.com>
1314
1315         * dwarf2read.c (dwarf_record_line): Fix typo.
1316
1317 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1318
1319         * target.h (struct target_ops::to_terminal_save_ours): Remove
1320         declaration.
1321         (target_terminal_save_ours): Remove macro.
1322         * target-delegates.c: Regenerate.
1323         * inf-child.c (inf_child_target): Don't set the nonexistent
1324         field to_terminal_save_ours.
1325         * inferior.h (child_terminal_save_ours): Remove declaration.
1326         * terminal.h (gdb_save_tty_state): New declaration.
1327         * inflow.c (child_terminal_save_ours): Rename to ...
1328         (gdb_save_tty_state): ... this.
1329         * tui/tui.c: Include terminal.h.
1330         (tui_enable): Use gdb_save_tty_state instead of
1331         target_terminal_save_ours.
1332         (tui_disable): Likewise.
1333
1334 2014-08-25  Doug Evans  <dje@google.com>
1335
1336         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1337         Pass NULL instead of 0 for context pointer.
1338
1339 2014-08-25  Yao Qi  <yao@codesourcery.com>
1340
1341         * dwarf2read.c: Fix grammatical error.
1342
1343 2014-08-24  Yao Qi  <yao@codesourcery.com>
1344
1345         * dwarf2read.c (scan_partial_symbols):  Update comments.
1346         Rename argument 'need_pc' with 'set_addrmap'.
1347         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1348         'set_addrmap'.
1349         (add_partial_module): Likewise.
1350         (add_partial_subprogram): Likewise.  Update comments.
1351         (dwarf2_name): Fix typo.
1352
1353 2014-08-22  Doug Evans  <dje@google.com>
1354
1355         PR 17276
1356         * dwarf2read.c (dwarf_record_line_p): New function.
1357         (dwarf_decode_lines_1): Ignore subsequent line number entries
1358         for the same line if any entry had a non-zero discriminator.
1359
1360 2014-08-22  Doug Evans  <dje@google.com>
1361
1362         * buildsym.h (record_line_ftype): New typedef.
1363         (record_line): Use it.
1364         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1365         (dwarf_decode_lines_1): Call them.
1366
1367 2014-08-22  Yao Qi  <yao@codesourcery.com>
1368
1369         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1370         (ctf_end): Remove code.
1371
1372 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1373
1374         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1375         (linux_make_corefile_notes): call update_thread_list, protected against
1376         exceptions.
1377
1378 2014-08-21  Pedro Alves  <palves@redhat.com>
1379
1380         * infcmd.c (attach_command): Remove comment.
1381
1382 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1383
1384         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1385         unsigned LONGEST to ULONGEST.
1386
1387 2014-08-20  Pedro Alves  <palves@redhat.com>
1388
1389         * Makefile.in (check-read1): New rule.
1390
1391 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1392
1393         * value.c (value_from_contents_and_address): Strip resolved_type's
1394         typedef layers before checking its TYPE_DATA_LOCATION.
1395
1396 2014-08-20  Pedro Alves  <palves@redhat.com>
1397
1398         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1399
1400 2014-08-20  Yao Qi  <yao@codesourcery.com>
1401
1402         * amd64-tdep.c (amd64_classify): Add a blank line after the
1403         example.  Move "*/" to a new line.
1404         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1405         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1406         * dwarf2read.c (psymtab_include_file_name): Likewise.
1407
1408 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1409             Pedro Alves  <palves@redhat.com>
1410
1411         PR symtab/14604
1412         PR symtab/14605
1413         * ada-lang.c (coerce_unspec_val_to_type): Use
1414         value_contents_copy_raw.
1415         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1416         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1417         * cp-valprint.c (cp_print_value_fields): Let the common printing
1418         code handle optimized out values.
1419         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1420         * d-valprint.c (dynamic_array_type): Use
1421         value_bits_any_optimized_out.
1422         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1423         check_any_valid fields.
1424         (check_pieced_value_bits): Delete and inline ...
1425         (check_pieced_synthetic_pointer): ... here.
1426         (check_pieced_value_validity): Delete.
1427         (check_pieced_value_invalid): Delete.
1428         (pieced_value_funcs): Remove check_validity and check_any_valid
1429         fields.
1430         (read_pieced_value): Use mark_value_bits_optimized_out.
1431         (write_pieced_value): Switch to use
1432         mark_value_bytes_optimized_out.
1433         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1434         of assuming the whole value is optimized out.
1435         * findvar.c (read_frame_register_value): Remove special handling
1436         of optimized out registers.
1437         (value_from_register): Use mark_value_bytes_optimized_out.
1438         * frame-unwind.c (frame_unwind_got_optimized): Use
1439         mark_value_bytes_optimized_out.
1440         * jv-valprint.c (java_value_print): Adjust.
1441         (java_print_value_fields): Let the common printing code handle
1442         optimized out values.
1443         * mips-tdep.c (mips_print_register): Remove special handling of
1444         optimized out registers.
1445         * opencl-lang.c (lval_func_check_validity): Delete.
1446         (lval_func_check_any_valid): Delete.
1447         (opencl_value_funcs): Remove check_validity and check_any_valid
1448         fields.
1449         * p-valprint.c (pascal_object_print_value_fields): Let the common
1450         printing code handle optimized out values.
1451         * stack.c (read_frame_arg): Remove special handling of optimized
1452         out values.  Fetch both VAL and ENTRYVAL before comparing
1453         contents.  Adjust to value_available_contents_eq rename.
1454         * valprint.c (valprint_check_validity)
1455         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1456         (val_print_array_elements): Adjust.
1457         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1458         (value_bits_any_optimized_out): New function.
1459         (value_entirely_covered_by_range_vector): New function, factored
1460         out from value_entirely_unavailable.
1461         (value_entirely_unavailable): Reimplement.
1462         (value_entirely_optimized_out): New function.
1463         (insert_into_bit_range_vector): New function, factored out from
1464         mark_value_bits_unavailable.
1465         (mark_value_bits_unavailable): Reimplement.
1466         (struct ranges_and_idx): New struct.
1467         (find_first_range_overlap_and_match): New function, factored out
1468         from value_available_contents_bits_eq.
1469         (value_available_contents_bits_eq): Rename to ...
1470         (value_contents_bits_eq): ... this.  Check both unavailable
1471         contents and optimized out contents.
1472         (value_available_contents_eq): Rename to ...
1473         (value_contents_eq): ... this.
1474         (allocate_value_lazy): Remove reference to the old optimized_out
1475         boolean.
1476         (allocate_optimized_out_value): Use
1477         mark_value_bytes_optimized_out.
1478         (require_not_optimized_out): Adjust to check whether the
1479         optimized_out vec is empty.
1480         (ranges_copy_adjusted): New function, factored out from
1481         value_contents_copy_raw.
1482         (value_contents_copy_raw): Also copy the optimized out ranges.
1483         Assert the destination ranges aren't optimized out.
1484         (value_contents_copy): Update comment, remove call to
1485         require_not_optimized_out.
1486         (value_contents_equal): Adjust to check whether the optimized_out
1487         vec is empty.
1488         (set_value_optimized_out, value_optimized_out_const): Delete.
1489         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1490         New functions.
1491         (value_entirely_optimized_out, value_bits_valid): Delete.
1492         (value_copy): Take a VEC copy of the 'optimized_out' field.
1493         (value_primitive_field): Remove special handling of optimized out.
1494         (value_fetch_lazy): Assert that lazy values have no unavailable
1495         regions.  Use value_bits_any_optimized_out.  Remove some special
1496         handling for optimized out values.
1497         * value.h: Add intro comment about <optimized out> and
1498         <unavailable>.
1499         (struct lval_funcs): Remove check_validity and check_any_valid
1500         fields.
1501         (set_value_optimized_out, value_optimized_out_const): Remove.
1502         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1503         New declarations.
1504         (value_bits_any_optimized_out): New declaration.
1505         (value_bits_valid): Delete declaration.
1506         (value_available_contents_eq): Rename to ...
1507         (value_contents_eq): ... this, and extend comments.
1508
1509 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1510
1511         Fix -fsanitize=address on unreadable inferior strings.
1512         * valprint.c (val_print_string): Fix access before BUFFER.
1513
1514 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1515
1516         * target.c (target_struct_size): Remove.
1517         (target_struct_allocsize): Remove.
1518         (DEFAULT_ALLOCSIZE): Remove.
1519         (target_ops_p): New typedef.
1520         (DEF_VEC_P (target_ops_p)): New vector type.
1521         (target_structs): Change type to VEC (target_ops_p).
1522         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1523         (find_default_run_target): Rewrite for loop following changes to
1524         target_structs.
1525
1526 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1527
1528         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1529         Adjust code accordingly.  Adjust function description comment.
1530
1531 2014-08-19  Yao Qi  <yao@codesourcery.com>
1532
1533         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1534         types.
1535
1536 2014-08-19  Alan Modra  <amodra@gmail.com>
1537
1538         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1539         * config.in: Regenerate.
1540         * configure: Regenerate.
1541
1542 2014-08-19  Tom Tromey  <tromey@redhat.com>
1543             Gary Benson  <gbenson@redhat.com>
1544
1545         * common/common-debug.h: New file.
1546         * common/common-debug.c: Likewise.
1547         * debug.c: Likewise.
1548         * Makefile.in (SFILES): Add common/common-debug.c.
1549         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1550         (COMMON_OBS): Add common-debug.o and debug.o.
1551         (common-debug.o): New rule.
1552         * common/common-defs.h: Include common-debug.h.
1553         * common/agent.c (debug_agent_printf): New function.
1554         (DEBUG_AGENT): Redefine.
1555         * nat/i386-dregs.c (debug_printf): Undefine.
1556
1557 2014-08-19  Gary Benson  <gbenson@redhat.com>
1558
1559         * common/common-defs.h: Include print-utils.h.
1560         * utils.h: Do not include print-utils.h.
1561
1562 2014-08-19  Tom Tromey  <tromey@redhat.com>
1563             Gary Benson  <gbenson@redhat.com>
1564
1565         * common/common-types.h: New file.
1566         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1567         * common/common-defs.h: Include common-types.h.
1568         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1569         (ULONGEST): Remove.
1570
1571 2014-08-19  Tom Tromey  <tromey@redhat.com>
1572             Gary Benson  <gbenson@redhat.com>
1573
1574         * common/errors.h: New file.
1575         * common/errors.c: Likewise.
1576         * Makefile.in (SFILES): Add common/errors.c.
1577         (HFILES_NO_SRCDIR): Add common/errors.h.
1578         (COMMON_OBS): Add errors.o.
1579         (errors.o): New rule.
1580         * common/common-defs.h: Include errors.h.
1581         * utils.h (perror_with_name, error, verror, warning, vwarning):
1582         Don't declare.
1583         * common/common-utils.h: (malloc_failure, internal_error):
1584         Likewise.
1585
1586 2014-08-19  Gary Benson  <gbenson@redhat.com>
1587
1588         * utils.c (internal_vproblem): Always print the message.
1589
1590 2014-08-18  Doug Evans  <dje@google.com>
1591
1592         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1593
1594 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1595
1596         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1597         Return 0 if TYPE is dynamic.
1598         (print_range): Add handling of dynamic ranges.
1599
1600 2014-08-18  Keven Boell  <keven.boell@intel.com>
1601             Joel Brobecker  <brobecker@adacore.com>
1602
1603         * gdbtypes.h (struct main_type): Add field "data_location".
1604         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1605         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1606         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1607         a dynamic data location.
1608         (resolve_dynamic_type): Add DW_AT_data_location handling.
1609         (copy_recursive, copy_type): Copy the data_location information
1610         when present.
1611         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1612         * value.c (value_from_contents_and_address): Add
1613         DW_AT_data_location handling.
1614
1615 2014-08-18  Keven Boell  <keven.boell@intel.com>
1616             Joel Brobecker  <brobecker@adacore.com>
1617
1618         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1619         field "get_object_address".
1620         * dwarf2expr.c (execute_stack_op): Add handling for
1621         DW_OP_push_object_address.
1622         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1623         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1624         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1625         (dwarf_expr_get_obj_addr): New function.
1626         (dwarf_expr_ctx_funcs): Add get_object_address field.
1627         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1628         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1629         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1630         (needs_get_obj_addr): New function.
1631         (needs_frame_ctx_funcs): Add get_object_address field.
1632         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1633         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1634         (resolve_dynamic_array): Likewise.
1635
1636 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1637
1638         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1639         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1640         fixed value for records and unions for which some GNAT encodings
1641         are present.
1642
1643 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1644
1645         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1646         rewrite to avoid "else if" and "else" constructs.  Should be
1647         a no-op in practice.
1648
1649 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1650
1651         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1652         of lexical block.
1653
1654 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1655
1656         PR c++/17132
1657         * eval.c: Update all calls to find_overload_match.
1658         * valarith.c: Likewise.
1659         (value_user_defined_cpp_op, value_user_defined_op): New
1660         argument NOSIDE.  Update all callers.
1661         * valops.c (find_overload_match): New argument NOSIDE.
1662         * value.h (find_overload_match): Update signature.
1663
1664 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1665
1666         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1667         'items' methods instead of 'iteritems' method on dictionaries.
1668
1669 2014-08-15  Doug Evans  <dje@google.com>
1670
1671         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1672         closer to use.
1673
1674 2014-08-15  Doug Evans  <dje@google.com>
1675
1676         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1677
1678 2014-08-15  Doug Evans  <dje@google.com>
1679
1680         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1681
1682 2014-08-15  Doug Evans  <dje@google.com>
1683
1684         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1685         unused.
1686
1687 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1688
1689         * dcache.h: Include target.h, to avoid compile time warnings.
1690
1691 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1692
1693         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1694         frame_info" partial declaration.
1695         * gdbarch.h: Regenerate.
1696
1697 2014-08-15  Yao Qi  <yao@codesourcery.com>
1698
1699         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1700         Add parameter 'decode_for_pst_p'.  Callers update.
1701
1702 2014-08-13  Yao Qi  <yao@codesourcery.com>
1703
1704         PR build/17104
1705         * configure.ac: Use local variable 'pos'.
1706         * configure: Regenerated.
1707
1708 2014-08-11  Doug Evans  <dje@google.com>
1709
1710         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1711         message, it is redundant with "Reading symbols from ..." message.
1712
1713 2014-08-10  Doug Evans  <xdje42@gmail.com>
1714
1715         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1716
1717 2014-08-09  Yao Qi  <yao@codesourcery.com>
1718
1719         PR remote/9053
1720         * remote.c (remote_xfer_partial): Remove dead code.
1721
1722 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1723
1724         * ia64-linux-tdep.c: Include "regset.h".
1725         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1726         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1727         (ia64_linux_supply_fpregset): New function.
1728         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1729         (ia64_linux_regset_from_core_section): New function.
1730         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1731         method.
1732
1733 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1734
1735         * m68klinux-tdep.c: Include "regset.h".
1736         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1737         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1738         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1739         (m68k_linux_regset_from_core_section): New function.
1740         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1741         method.
1742
1743 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1744
1745         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1746         function.  Move logic to...
1747         (tilegx_linux_regmap): ... this new register map.
1748         (tilegx_linux_regset): Refer to register map, replace supply
1749         method by regcache_supply_regset, and add collect method.
1750         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1751         TILEGX_FIRST_EASY_REGNUM.
1752
1753 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1754
1755         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1756         that calls regcache_supply_regset and handles the EPC register
1757         separately.  Move main logic to...
1758         (score7_linux_gregmap): ... this new register map.
1759         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1760         (score7_linux_gregset): Refer to register map.  Add collect method.
1761         (score7_linux_regset_from_core_section): Replace
1762         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1763         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1764         (struct regset): Delete unused forward declaraction.
1765         (struct pt_regs): Delete structure definition.
1766         (elf_gregset_t): Delete typedef.
1767
1768 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1769
1770         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1771         (nios2_core_regset): Add collect method.
1772
1773 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1774
1775         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1776         platform-independent and don't write to read-only input buffer.
1777         (m32r_linux_collect_gregset): New function.
1778         (m32r_linux_gregset): Add collect method.
1779
1780 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1781
1782         * hppa-linux-tdep.c (greg_map): Rename to...
1783         (hppa_linux_gregmap): ... this.  Also convert to
1784         regcache_map_entry format.
1785         (hppa_linux_supply_regset): Delete function.
1786         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1787         (hppa_linux_fpregmap): ... this new register map.
1788         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1789         register map, replace supply method by regcache_supply_regset, and
1790         add collect method regcache_collect_regset.
1791
1792 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1793
1794         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1795         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1796         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1797         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1798         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1799         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1800         (frv_linux_supply_gregset): Replace main logic by call to
1801         regcache_supply_regset, but keep clearing gr32-gr63.
1802         (frv_linux_supply_fpregset): Delete function.
1803         (frv_linux_gregset): Refer to appropriate register map and add
1804         regcache_collect_regset as the collect method.
1805         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1806         by regcache_supply_regset.
1807
1808 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1809
1810         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1811         by call to alpha_supply_int_regs.
1812         (alpha_linux_collect_gregset): New function.
1813         (alpha_linux_supply_fpregset): Replace logic by call to
1814         alpha_supply_fp_regs.
1815         (alpha_linux_collect_fpregset): New function.
1816         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1817
1818 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1819
1820         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1821         by call to regcache_collect_regset.
1822         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1823         instead of aarch64_linux_supply_gregset/_fpregset.
1824         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1825         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1826         header file instead.
1827         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1828         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1829         functions.  Move logic to ...
1830         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1831         register maps.
1832         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1833         refer to new register maps, replace *_regset_from_core by
1834         regcache_supply_regset, and also use regcache_collect_regset.
1835         * aarch64-linux-tdep.h: Include "regset.h".
1836         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1837         Delete prototypes.
1838         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1839         macros, moved from C source file.
1840         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1841         variable declarations.
1842
1843 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1844
1845         * s390-linux-nat.c: Include "regset.h".
1846         (regmap_gregset): Delete macro.
1847         (s390_64_regmap_gregset): New register map for
1848         regcache_supply/_collect_regset.
1849         (s390_64_gregset): New regset.
1850         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1851         (regmap_fpregset): Delete macro.
1852         (s390_native_supply, s390_native_collect): Delete functions.
1853         (supply_gregset, fill_gregset): Replace s390-specific regmap
1854         handling by a call to regcache_supply/_collect_regset.
1855         (supply_fpregset, fill_fpregset): Call regcache_supply/
1856         _collect_regset instead of s390_native_supply/_collect.
1857         (fetch_regset, store_regset): Likewise.  Also change the last
1858         parameter to a regset instead of a regmap.
1859         (s390_linux_fetch_inferior_registers)
1860         (390_linux_store_inferior_registers): Adjust last parameter in
1861         calls to fetch_regset and store_regset.
1862         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1863         (s390_gregmap): ... this.  Also make static const and convert to
1864         regcache_map_entry format.
1865         (s390x_regmap_gregset): Delete.
1866         (s390_regmap_fpregset): Rename to...
1867         (s390_fpregmap): ... this.  Make static const and convert to
1868         regcache_map_entry format.
1869         (s390_regmap_upper, s390_regmap_last_break)
1870         (s390x_regmap_last_break, s390_regmap_system_call)
1871         (s390_regmap_tdb): Likewise.
1872         (s390_supply_regset, s390_collect_regset): Remove functions.
1873         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1874         s390_supply_regset.
1875         (s390_gregset, s390_fpregset, s390_upper_regset)
1876         (s390_last_break_regset, s390x_last_break_regset)
1877         (s390_system_call_regset, s390_tdb_regset): Make global and
1878         replace s390_supply/_collect_regset by regcache_supply/
1879         _collect_regset.
1880         (s390x_gregset): Delete.
1881         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1882         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1883         (s390_regmap_fpregset, s390_regmap_last_break)
1884         (s390x_regmap_last_break, s390_regmap_system_call)
1885         (s390_regmap_tdb): Delete global variable declarations.
1886         (s390_gregset, s390_fpregset, s390_last_break_regset)
1887         (s390x_last_break_regset, s390_system_call_regset)
1888         (s390_tdb_regset): New global variable declarations.
1889
1890 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1891
1892         * regcache.c: Include "regset.h".
1893         (regcache_transfer_regset): New local function.
1894         (regcache_supply_regset, regcache_collect_regset): New functions.
1895         * regcache.h (struct regcache_map_entry): New structure.
1896         (REGCACHE_MAP_SKIP): New enum value.
1897         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1898
1899 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1900
1901         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1902         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1903         (ppc_linux_collect_gregset ): Likewise.
1904         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1905         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1906         (ppc_collect_vrregset): Likewise.
1907         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1908         Likewise.
1909
1910 2014-08-07  Yao Qi  <yao@codesourcery.com>
1911
1912         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1913         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1914         * remote.c (remote_read_bytes): Likewise.
1915
1916 2014-08-07  Yao Qi  <yao@codesourcery.com>
1917
1918         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1919
1920 2014-08-07  Yao Qi  <yao@codesourcery.com>
1921
1922         PR remote/17230
1923         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1924         TARGET_XFER_OK instead of 0.
1925
1926 2014-08-07  Gary Benson  <gbenson@redhat.com>
1927
1928         * common/common-defs.h: Include errno.h.
1929         * defs.h: Do not include errno.h.
1930         * ada-typeprint.c: Likewise.
1931         * c-typeprint.c: Likewise.
1932         * core-regset.c: Likewise.
1933         * corefile.c: Likewise.
1934         * corelow.c: Likewise.
1935         * event-loop.c: Likewise.
1936         * f-typeprint.c: Likewise.
1937         * gnu-nat.c: Likewise.
1938         * go32-nat.c: Likewise.
1939         * i386gnu-nat.c: Likewise.
1940         * m2-typeprint.c: Likewise.
1941         * nat/linux-btrace.c: Likewise.
1942         * p-typeprint.c: Likewise.
1943         * procfs.c: Likewise.
1944         * remote-sim.c: Likewise.
1945         * rs6000-nat.c: Likewise.
1946         * target.c: Likewise.
1947         * typeprint.c: Likewise.
1948         * ui-file.c: Likewise.
1949         * valops.c: Likewise.
1950         * valprint.c: Likewise.
1951
1952 2014-08-07  Gary Benson  <gbenson@redhat.com>
1953
1954         * common/common-defs.h: Include string.h.
1955         * aarch64-tdep.c: Do not include string.h.
1956         * ada-exp.y: Likewise.
1957         * ada-lang.c: Likewise.
1958         * ada-lex.l: Likewise.
1959         * ada-typeprint.c: Likewise.
1960         * ada-valprint.c: Likewise.
1961         * aix-thread.c: Likewise.
1962         * alpha-linux-tdep.c: Likewise.
1963         * alpha-mdebug-tdep.c: Likewise.
1964         * alpha-nat.c: Likewise.
1965         * alpha-osf1-tdep.c: Likewise.
1966         * alpha-tdep.c: Likewise.
1967         * alphanbsd-tdep.c: Likewise.
1968         * amd64-dicos-tdep.c: Likewise.
1969         * amd64-linux-tdep.c: Likewise.
1970         * amd64-nat.c: Likewise.
1971         * amd64-sol2-tdep.c: Likewise.
1972         * amd64fbsd-tdep.c: Likewise.
1973         * amd64obsd-tdep.c: Likewise.
1974         * arch-utils.c: Likewise.
1975         * arm-linux-nat.c: Likewise.
1976         * arm-linux-tdep.c: Likewise.
1977         * arm-tdep.c: Likewise.
1978         * arm-wince-tdep.c: Likewise.
1979         * armbsd-tdep.c: Likewise.
1980         * armnbsd-nat.c: Likewise.
1981         * armnbsd-tdep.c: Likewise.
1982         * armobsd-tdep.c: Likewise.
1983         * avr-tdep.c: Likewise.
1984         * ax-gdb.c: Likewise.
1985         * ax-general.c: Likewise.
1986         * bcache.c: Likewise.
1987         * bfin-tdep.c: Likewise.
1988         * breakpoint.c: Likewise.
1989         * build-id.c: Likewise.
1990         * buildsym.c: Likewise.
1991         * c-exp.y: Likewise.
1992         * c-lang.c: Likewise.
1993         * c-typeprint.c: Likewise.
1994         * c-valprint.c: Likewise.
1995         * charset.c: Likewise.
1996         * cli-out.c: Likewise.
1997         * cli/cli-cmds.c: Likewise.
1998         * cli/cli-decode.c: Likewise.
1999         * cli/cli-dump.c: Likewise.
2000         * cli/cli-interp.c: Likewise.
2001         * cli/cli-logging.c: Likewise.
2002         * cli/cli-script.c: Likewise.
2003         * cli/cli-setshow.c: Likewise.
2004         * cli/cli-utils.c: Likewise.
2005         * coffread.c: Likewise.
2006         * common/agent.c: Likewise.
2007         * common/buffer.c: Likewise.
2008         * common/buffer.h: Likewise.
2009         * common/common-utils.c: Likewise.
2010         * common/filestuff.c: Likewise.
2011         * common/filestuff.c: Likewise.
2012         * common/format.c: Likewise.
2013         * common/print-utils.c: Likewise.
2014         * common/rsp-low.c: Likewise.
2015         * common/signals.c: Likewise.
2016         * common/vec.h: Likewise.
2017         * common/xml-utils.c: Likewise.
2018         * core-regset.c: Likewise.
2019         * corefile.c: Likewise.
2020         * corelow.c: Likewise.
2021         * cp-abi.c: Likewise.
2022         * cp-name-parser.y: Likewise.
2023         * cp-support.c: Likewise.
2024         * cp-valprint.c: Likewise.
2025         * cris-tdep.c: Likewise.
2026         * d-exp.y: Likewise.
2027         * darwin-nat.c: Likewise.
2028         * dbxread.c: Likewise.
2029         * dcache.c: Likewise.
2030         * demangle.c: Likewise.
2031         * dicos-tdep.c: Likewise.
2032         * disasm.c: Likewise.
2033         * doublest.c: Likewise.
2034         * dsrec.c: Likewise.
2035         * dummy-frame.c: Likewise.
2036         * dwarf2-frame.c: Likewise.
2037         * dwarf2loc.c: Likewise.
2038         * dwarf2read.c: Likewise.
2039         * elfread.c: Likewise.
2040         * environ.c: Likewise.
2041         * eval.c: Likewise.
2042         * event-loop.c: Likewise.
2043         * exceptions.c: Likewise.
2044         * exec.c: Likewise.
2045         * expprint.c: Likewise.
2046         * f-exp.y: Likewise.
2047         * f-lang.c: Likewise.
2048         * f-typeprint.c: Likewise.
2049         * f-valprint.c: Likewise.
2050         * fbsd-nat.c: Likewise.
2051         * findcmd.c: Likewise.
2052         * findvar.c: Likewise.
2053         * fork-child.c: Likewise.
2054         * frame.c: Likewise.
2055         * frv-linux-tdep.c: Likewise.
2056         * frv-tdep.c: Likewise.
2057         * gdb.c: Likewise.
2058         * gdb_bfd.c: Likewise.
2059         * gdbarch.c: Likewise.
2060         * gdbarch.sh: Likewise.
2061         * gdbtypes.c: Likewise.
2062         * gnu-nat.c: Likewise.
2063         * gnu-v2-abi.c: Likewise.
2064         * gnu-v3-abi.c: Likewise.
2065         * go-exp.y: Likewise.
2066         * go-lang.c: Likewise.
2067         * go32-nat.c: Likewise.
2068         * guile/guile.c: Likewise.
2069         * guile/scm-auto-load.c: Likewise.
2070         * hppa-hpux-tdep.c: Likewise.
2071         * hppa-linux-nat.c: Likewise.
2072         * hppanbsd-tdep.c: Likewise.
2073         * hppaobsd-tdep.c: Likewise.
2074         * i386-cygwin-tdep.c: Likewise.
2075         * i386-dicos-tdep.c: Likewise.
2076         * i386-linux-tdep.c: Likewise.
2077         * i386-nto-tdep.c: Likewise.
2078         * i386-sol2-tdep.c: Likewise.
2079         * i386-tdep.c: Likewise.
2080         * i386bsd-tdep.c: Likewise.
2081         * i386gnu-nat.c: Likewise.
2082         * i386nbsd-tdep.c: Likewise.
2083         * i386obsd-tdep.c: Likewise.
2084         * i387-tdep.c: Likewise.
2085         * ia64-libunwind-tdep.c: Likewise.
2086         * ia64-linux-nat.c: Likewise.
2087         * inf-child.c: Likewise.
2088         * inf-ptrace.c: Likewise.
2089         * inf-ttrace.c: Likewise.
2090         * infcall.c: Likewise.
2091         * infcmd.c: Likewise.
2092         * inflow.c: Likewise.
2093         * infrun.c: Likewise.
2094         * interps.c: Likewise.
2095         * iq2000-tdep.c: Likewise.
2096         * irix5-nat.c: Likewise.
2097         * jv-exp.y: Likewise.
2098         * jv-lang.c: Likewise.
2099         * jv-typeprint.c: Likewise.
2100         * jv-valprint.c: Likewise.
2101         * language.c: Likewise.
2102         * linux-fork.c: Likewise.
2103         * linux-nat.c: Likewise.
2104         * lm32-tdep.c: Likewise.
2105         * m2-exp.y: Likewise.
2106         * m2-typeprint.c: Likewise.
2107         * m32c-tdep.c: Likewise.
2108         * m32r-linux-nat.c: Likewise.
2109         * m32r-linux-tdep.c: Likewise.
2110         * m32r-rom.c: Likewise.
2111         * m32r-tdep.c: Likewise.
2112         * m68hc11-tdep.c: Likewise.
2113         * m68k-tdep.c: Likewise.
2114         * m68kbsd-tdep.c: Likewise.
2115         * m68klinux-nat.c: Likewise.
2116         * m68klinux-tdep.c: Likewise.
2117         * m88k-tdep.c: Likewise.
2118         * machoread.c: Likewise.
2119         * macrocmd.c: Likewise.
2120         * main.c: Likewise.
2121         * mdebugread.c: Likewise.
2122         * mem-break.c: Likewise.
2123         * memattr.c: Likewise.
2124         * memory-map.c: Likewise.
2125         * mep-tdep.c: Likewise.
2126         * mi/mi-cmd-break.c: Likewise.
2127         * mi/mi-cmd-disas.c: Likewise.
2128         * mi/mi-cmd-env.c: Likewise.
2129         * mi/mi-cmd-stack.c: Likewise.
2130         * mi/mi-cmd-var.c: Likewise.
2131         * mi/mi-cmds.c: Likewise.
2132         * mi/mi-console.c: Likewise.
2133         * mi/mi-getopt.c: Likewise.
2134         * mi/mi-interp.c: Likewise.
2135         * mi/mi-main.c: Likewise.
2136         * mi/mi-parse.c: Likewise.
2137         * microblaze-rom.c: Likewise.
2138         * microblaze-tdep.c: Likewise.
2139         * mingw-hdep.c: Likewise.
2140         * minidebug.c: Likewise.
2141         * minsyms.c: Likewise.
2142         * mips-irix-tdep.c: Likewise.
2143         * mips-linux-tdep.c: Likewise.
2144         * mips-tdep.c: Likewise.
2145         * mips64obsd-tdep.c: Likewise.
2146         * mipsnbsd-tdep.c: Likewise.
2147         * mipsread.c: Likewise.
2148         * mn10300-linux-tdep.c: Likewise.
2149         * mn10300-tdep.c: Likewise.
2150         * monitor.c: Likewise.
2151         * moxie-tdep.c: Likewise.
2152         * mt-tdep.c: Likewise.
2153         * nat/linux-btrace.c: Likewise.
2154         * nat/linux-osdata.c: Likewise.
2155         * nat/linux-procfs.c: Likewise.
2156         * nat/linux-ptrace.c: Likewise.
2157         * nat/linux-waitpid.c: Likewise.
2158         * nbsd-tdep.c: Likewise.
2159         * nios2-linux-tdep.c: Likewise.
2160         * nto-procfs.c: Likewise.
2161         * nto-tdep.c: Likewise.
2162         * objc-lang.c: Likewise.
2163         * objfiles.c: Likewise.
2164         * opencl-lang.c: Likewise.
2165         * osabi.c: Likewise.
2166         * osdata.c: Likewise.
2167         * p-exp.y: Likewise.
2168         * p-lang.c: Likewise.
2169         * p-typeprint.c: Likewise.
2170         * parse.c: Likewise.
2171         * posix-hdep.c: Likewise.
2172         * ppc-linux-nat.c: Likewise.
2173         * ppc-sysv-tdep.c: Likewise.
2174         * ppcfbsd-tdep.c: Likewise.
2175         * ppcnbsd-tdep.c: Likewise.
2176         * ppcobsd-tdep.c: Likewise.
2177         * printcmd.c: Likewise.
2178         * procfs.c: Likewise.
2179         * prologue-value.c: Likewise.
2180         * python/py-auto-load.c: Likewise.
2181         * python/py-gdb-readline.c: Likewise.
2182         * ravenscar-thread.c: Likewise.
2183         * regcache.c: Likewise.
2184         * registry.c: Likewise.
2185         * remote-fileio.c: Likewise.
2186         * remote-m32r-sdi.c: Likewise.
2187         * remote-mips.c: Likewise.
2188         * remote-notif.c: Likewise.
2189         * remote-sim.c: Likewise.
2190         * remote.c: Likewise.
2191         * reverse.c: Likewise.
2192         * rs6000-aix-tdep.c: Likewise.
2193         * ser-base.c: Likewise.
2194         * ser-go32.c: Likewise.
2195         * ser-mingw.c: Likewise.
2196         * ser-pipe.c: Likewise.
2197         * ser-tcp.c: Likewise.
2198         * ser-unix.c: Likewise.
2199         * serial.c: Likewise.
2200         * sh-tdep.c: Likewise.
2201         * sh64-tdep.c: Likewise.
2202         * shnbsd-tdep.c: Likewise.
2203         * skip.c: Likewise.
2204         * sol-thread.c: Likewise.
2205         * solib-dsbt.c: Likewise.
2206         * solib-frv.c: Likewise.
2207         * solib-osf.c: Likewise.
2208         * solib-som.c: Likewise.
2209         * solib-spu.c: Likewise.
2210         * solib-target.c: Likewise.
2211         * solib.c: Likewise.
2212         * somread.c: Likewise.
2213         * source.c: Likewise.
2214         * sparc-nat.c: Likewise.
2215         * sparc-sol2-tdep.c: Likewise.
2216         * sparc-tdep.c: Likewise.
2217         * sparc64-tdep.c: Likewise.
2218         * sparc64fbsd-tdep.c: Likewise.
2219         * sparc64nbsd-tdep.c: Likewise.
2220         * sparcnbsd-tdep.c: Likewise.
2221         * spu-linux-nat.c: Likewise.
2222         * spu-multiarch.c: Likewise.
2223         * spu-tdep.c: Likewise.
2224         * stabsread.c: Likewise.
2225         * stack.c: Likewise.
2226         * std-regs.c: Likewise.
2227         * symfile.c: Likewise.
2228         * symmisc.c: Likewise.
2229         * symtab.c: Likewise.
2230         * target.c: Likewise.
2231         * thread.c: Likewise.
2232         * tilegx-linux-nat.c: Likewise.
2233         * tilegx-tdep.c: Likewise.
2234         * top.c: Likewise.
2235         * tracepoint.c: Likewise.
2236         * tui/tui-command.c: Likewise.
2237         * tui/tui-data.c: Likewise.
2238         * tui/tui-disasm.c: Likewise.
2239         * tui/tui-file.c: Likewise.
2240         * tui/tui-layout.c: Likewise.
2241         * tui/tui-out.c: Likewise.
2242         * tui/tui-regs.c: Likewise.
2243         * tui/tui-source.c: Likewise.
2244         * tui/tui-stack.c: Likewise.
2245         * tui/tui-win.c: Likewise.
2246         * tui/tui-windata.c: Likewise.
2247         * tui/tui-winsource.c: Likewise.
2248         * typeprint.c: Likewise.
2249         * ui-file.c: Likewise.
2250         * ui-out.c: Likewise.
2251         * user-regs.c: Likewise.
2252         * utils.c: Likewise.
2253         * v850-tdep.c: Likewise.
2254         * valarith.c: Likewise.
2255         * valops.c: Likewise.
2256         * valprint.c: Likewise.
2257         * value.c: Likewise.
2258         * varobj.c: Likewise.
2259         * vax-tdep.c: Likewise.
2260         * vaxnbsd-tdep.c: Likewise.
2261         * vaxobsd-tdep.c: Likewise.
2262         * windows-nat.c: Likewise.
2263         * xcoffread.c: Likewise.
2264         * xml-support.c: Likewise.
2265         * xstormy16-tdep.c: Likewise.
2266         * xtensa-linux-nat.c: Likewise.
2267
2268 2014-08-07  Gary Benson  <gbenson@redhat.com>
2269
2270         * common/common-defs.h: Include gdb_assert.h.
2271         * aarch64-tdep.c: Do not include gdb_assert.h.
2272         * addrmap.c: Likewise.
2273         * aix-thread.c: Likewise.
2274         * alpha-linux-tdep.c: Likewise.
2275         * alpha-mdebug-tdep.c: Likewise.
2276         * alphanbsd-tdep.c: Likewise.
2277         * amd64-nat.c: Likewise.
2278         * amd64-tdep.c: Likewise.
2279         * amd64bsd-nat.c: Likewise.
2280         * amd64fbsd-nat.c: Likewise.
2281         * amd64fbsd-tdep.c: Likewise.
2282         * amd64nbsd-nat.c: Likewise.
2283         * amd64nbsd-tdep.c: Likewise.
2284         * amd64obsd-nat.c: Likewise.
2285         * amd64obsd-tdep.c: Likewise.
2286         * arch-utils.c: Likewise.
2287         * arm-tdep.c: Likewise.
2288         * armbsd-tdep.c: Likewise.
2289         * auxv.c: Likewise.
2290         * bcache.c: Likewise.
2291         * bfin-tdep.c: Likewise.
2292         * blockframe.c: Likewise.
2293         * breakpoint.c: Likewise.
2294         * bsd-kvm.c: Likewise.
2295         * bsd-uthread.c: Likewise.
2296         * buildsym.c: Likewise.
2297         * c-exp.y: Likewise.
2298         * c-lang.c: Likewise.
2299         * charset.c: Likewise.
2300         * cleanups.c: Likewise.
2301         * cli-out.c: Likewise.
2302         * cli/cli-decode.c: Likewise.
2303         * cli/cli-dump.c: Likewise.
2304         * cli/cli-logging.c: Likewise.
2305         * cli/cli-script.c: Likewise.
2306         * cli/cli-utils.c: Likewise.
2307         * coffread.c: Likewise.
2308         * common/common-utils.c: Likewise.
2309         * common/queue.h: Likewise.
2310         * common/signals.c: Likewise.
2311         * common/vec.h: Likewise.
2312         * complaints.c: Likewise.
2313         * completer.c: Likewise.
2314         * corelow.c: Likewise.
2315         * cp-abi.c: Likewise.
2316         * cp-name-parser.y: Likewise.
2317         * cp-namespace.c: Likewise.
2318         * cp-support.c: Likewise.
2319         * cris-tdep.c: Likewise.
2320         * dbxread.c: Likewise.
2321         * dictionary.c: Likewise.
2322         * doublest.c: Likewise.
2323         * dsrec.c: Likewise.
2324         * dummy-frame.c: Likewise.
2325         * dwarf2-frame-tailcall.c: Likewise.
2326         * dwarf2-frame.c: Likewise.
2327         * dwarf2expr.c: Likewise.
2328         * dwarf2loc.c: Likewise.
2329         * dwarf2read.c: Likewise.
2330         * eval.c: Likewise.
2331         * event-loop.c: Likewise.
2332         * exceptions.c: Likewise.
2333         * expprint.c: Likewise.
2334         * f-valprint.c: Likewise.
2335         * fbsd-nat.c: Likewise.
2336         * findvar.c: Likewise.
2337         * frame-unwind.c: Likewise.
2338         * frame.c: Likewise.
2339         * frv-tdep.c: Likewise.
2340         * gcore.c: Likewise.
2341         * gdb-dlfcn.c: Likewise.
2342         * gdb_bfd.c: Likewise.
2343         * gdbarch.c: Likewise.
2344         * gdbarch.sh: Likewise.
2345         * gdbtypes.c: Likewise.
2346         * gnu-nat.c: Likewise.
2347         * gnu-v3-abi.c: Likewise.
2348         * go-lang.c: Likewise.
2349         * guile/scm-exception.c: Likewise.
2350         * guile/scm-gsmob.c: Likewise.
2351         * guile/scm-lazy-string.c: Likewise.
2352         * guile/scm-math.c: Likewise.
2353         * guile/scm-pretty-print.c: Likewise.
2354         * guile/scm-safe-call.c: Likewise.
2355         * guile/scm-utils.c: Likewise.
2356         * guile/scm-value.c: Likewise.
2357         * h8300-tdep.c: Likewise.
2358         * hppa-hpux-nat.c: Likewise.
2359         * hppa-tdep.c: Likewise.
2360         * hppanbsd-tdep.c: Likewise.
2361         * hppaobsd-tdep.c: Likewise.
2362         * i386-darwin-nat.c: Likewise.
2363         * i386-darwin-tdep.c: Likewise.
2364         * i386-nto-tdep.c: Likewise.
2365         * i386-tdep.c: Likewise.
2366         * i386bsd-nat.c: Likewise.
2367         * i386fbsd-tdep.c: Likewise.
2368         * i386gnu-nat.c: Likewise.
2369         * i386nbsd-tdep.c: Likewise.
2370         * i386obsd-tdep.c: Likewise.
2371         * i387-tdep.c: Likewise.
2372         * ia64-libunwind-tdep.c: Likewise.
2373         * ia64-tdep.c: Likewise.
2374         * inf-ptrace.c: Likewise.
2375         * inf-ttrace.c: Likewise.
2376         * infcall.c: Likewise.
2377         * infcmd.c: Likewise.
2378         * infrun.c: Likewise.
2379         * inline-frame.c: Likewise.
2380         * interps.c: Likewise.
2381         * jv-lang.c: Likewise.
2382         * jv-typeprint.c: Likewise.
2383         * linux-fork.c: Likewise.
2384         * linux-nat.c: Likewise.
2385         * linux-thread-db.c: Likewise.
2386         * m32c-tdep.c: Likewise.
2387         * m32r-linux-nat.c: Likewise.
2388         * m32r-tdep.c: Likewise.
2389         * m68k-tdep.c: Likewise.
2390         * m68kbsd-nat.c: Likewise.
2391         * m68kbsd-tdep.c: Likewise.
2392         * m88k-tdep.c: Likewise.
2393         * machoread.c: Likewise.
2394         * macroexp.c: Likewise.
2395         * macrotab.c: Likewise.
2396         * maint.c: Likewise.
2397         * mdebugread.c: Likewise.
2398         * memory-map.c: Likewise.
2399         * mep-tdep.c: Likewise.
2400         * mi/mi-common.c: Likewise.
2401         * microblaze-tdep.c: Likewise.
2402         * mingw-hdep.c: Likewise.
2403         * mips-linux-nat.c: Likewise.
2404         * mips-linux-tdep.c: Likewise.
2405         * mips-tdep.c: Likewise.
2406         * mips64obsd-tdep.c: Likewise.
2407         * mipsnbsd-tdep.c: Likewise.
2408         * mn10300-linux-tdep.c: Likewise.
2409         * mn10300-tdep.c: Likewise.
2410         * moxie-tdep.c: Likewise.
2411         * mt-tdep.c: Likewise.
2412         * nat/linux-btrace.c: Likewise.
2413         * nat/linux-osdata.c: Likewise.
2414         * nat/linux-ptrace.c: Likewise.
2415         * nat/mips-linux-watch.c: Likewise.
2416         * nios2-linux-tdep.c: Likewise.
2417         * nios2-tdep.c: Likewise.
2418         * objc-lang.c: Likewise.
2419         * objfiles.c: Likewise.
2420         * obsd-nat.c: Likewise.
2421         * opencl-lang.c: Likewise.
2422         * osabi.c: Likewise.
2423         * parse.c: Likewise.
2424         * ppc-linux-nat.c: Likewise.
2425         * ppc-sysv-tdep.c: Likewise.
2426         * ppcfbsd-nat.c: Likewise.
2427         * ppcfbsd-tdep.c: Likewise.
2428         * ppcnbsd-nat.c: Likewise.
2429         * ppcnbsd-tdep.c: Likewise.
2430         * ppcobsd-nat.c: Likewise.
2431         * ppcobsd-tdep.c: Likewise.
2432         * printcmd.c: Likewise.
2433         * procfs.c: Likewise.
2434         * prologue-value.c: Likewise.
2435         * psymtab.c: Likewise.
2436         * python/py-lazy-string.c: Likewise.
2437         * python/py-value.c: Likewise.
2438         * regcache.c: Likewise.
2439         * reggroups.c: Likewise.
2440         * registry.c: Likewise.
2441         * remote-sim.c: Likewise.
2442         * remote.c: Likewise.
2443         * rs6000-aix-tdep.c: Likewise.
2444         * rs6000-tdep.c: Likewise.
2445         * s390-linux-tdep.c: Likewise.
2446         * score-tdep.c: Likewise.
2447         * ser-base.c: Likewise.
2448         * ser-mingw.c: Likewise.
2449         * sh-tdep.c: Likewise.
2450         * sh64-tdep.c: Likewise.
2451         * solib-darwin.c: Likewise.
2452         * solib-spu.c: Likewise.
2453         * solib-svr4.c: Likewise.
2454         * source.c: Likewise.
2455         * sparc-nat.c: Likewise.
2456         * sparc-sol2-tdep.c: Likewise.
2457         * sparc-tdep.c: Likewise.
2458         * sparc64-sol2-tdep.c: Likewise.
2459         * sparc64-tdep.c: Likewise.
2460         * sparc64fbsd-tdep.c: Likewise.
2461         * sparc64nbsd-tdep.c: Likewise.
2462         * sparc64obsd-tdep.c: Likewise.
2463         * sparcnbsd-tdep.c: Likewise.
2464         * sparcobsd-tdep.c: Likewise.
2465         * spu-multiarch.c: Likewise.
2466         * spu-tdep.c: Likewise.
2467         * stabsread.c: Likewise.
2468         * stack.c: Likewise.
2469         * symfile.c: Likewise.
2470         * symtab.c: Likewise.
2471         * target-descriptions.c: Likewise.
2472         * target-memory.c: Likewise.
2473         * target.c: Likewise.
2474         * tic6x-linux-tdep.c: Likewise.
2475         * tic6x-tdep.c: Likewise.
2476         * tilegx-linux-nat.c: Likewise.
2477         * tilegx-tdep.c: Likewise.
2478         * top.c: Likewise.
2479         * tramp-frame.c: Likewise.
2480         * tui/tui-out.c: Likewise.
2481         * tui/tui-winsource.c: Likewise.
2482         * ui-out.c: Likewise.
2483         * user-regs.c: Likewise.
2484         * utils.c: Likewise.
2485         * v850-tdep.c: Likewise.
2486         * valops.c: Likewise.
2487         * value.c: Likewise.
2488         * varobj.c: Likewise.
2489         * vax-nat.c: Likewise.
2490         * xml-syscall.c: Likewise.
2491         * xml-tdesc.c: Likewise.
2492         * xstormy16-tdep.c: Likewise.
2493         * xtensa-linux-nat.c: Likewise.
2494         * xtensa-tdep.c: Likewise.
2495
2496 2014-08-07  Gary Benson  <gbenson@redhat.com>
2497
2498         * common/common-defs.h: Include common-utils.h.
2499         * defs.h: Do not include common-utils.h.
2500         * common/gdb_assert.h: Likewise.
2501         * darwin-nat.h: Likewise.
2502         * nat/linux-btrace.c: Likewise.
2503         * target/waitstatus.h: Likewise.
2504
2505 2014-08-07  Gary Benson  <gbenson@redhat.com>
2506
2507         * common/common-defs.h: Include ptid.h.
2508         * defs.h: Do not include ptid.h.
2509         * inferior.h: Likewise.
2510         * infrun.h: Likewise.
2511         * nat/linux-btrace.h: Likewise.
2512         * nat/linux-osdata.h: Likewise.
2513         * target/waitstatus.h: Likewise.
2514
2515 2014-08-07  Gary Benson  <gbenson@redhat.com>
2516
2517         * common/common-defs.h: Include gdb_locale.h.
2518         * defs.h: Do not include gdb_locale.h.
2519
2520 2014-08-07  Gary Benson  <gbenson@redhat.com>
2521
2522         * common/common-defs.h: Include gdb/signals.h.
2523         * defs.h: Do not include gdb/signals.h.
2524
2525 2014-08-07  Gary Benson  <gbenson@redhat.com>
2526
2527         * common/common-defs.h: Include pathmax.h.
2528         * defs.h: Do not include pathmax.h.
2529
2530 2014-08-07  Gary Benson  <gbenson@redhat.com>
2531
2532         * common/common-defs.h: Include libiberty.h.
2533         * defs.h: Do not include libiberty.h.
2534         * common/queue.h: Likewise.
2535         * cp-name-parser.y: Likewise.
2536         * mi/mi-cmd-catch.c: Likewise.
2537         * python/python.c: Likewise.
2538
2539 2014-08-07  Gary Benson  <gbenson@redhat.com>
2540
2541         * common/common-defs.h: Include ansidecl.h.
2542         * defs.h: Do not include ansidecl.h.
2543         * common/buffer.h: Likewise.
2544         * common/common-utils.h: Likewise.
2545
2546 2014-08-07  Gary Benson  <gbenson@redhat.com>
2547
2548         * common/common-defs.h: Include stddef.h.
2549         * defs.h: Do not include stddef.h.
2550         * common/common-utils.h: Likewise.
2551         * amd64fbsd-nat.c: Likewise.
2552         * bcache.c: Likewise.
2553         * charset.c: Likewise.
2554         * common/buffer.h: Likewise.
2555         * common/vec.h: Likewise.
2556         * i386bsd-nat.c: Likewise.
2557         * nat/linux-btrace.h: Likewise.
2558         * ppcfbsd-nat.c: Likewise.
2559         * ppcnbsd-tdep.h: Likewise.
2560         * ppcobsd-nat.c: Likewise.
2561         * ppcobsd-tdep.h: Likewise.
2562         * python/py-gdb-readline.c: Likewise.
2563
2564 2014-08-07  Gary Benson  <gbenson@redhat.com>
2565
2566         * common/common-defs.h: Include stdarg.h.
2567         * defs.h: Do not include stdarg.h.
2568         * ada-lang.c: Likewise.
2569         * common/common-utils.h: Likewise.
2570         * guile/scm-string.c: Likewise.
2571         * guile/scm-utils.c: Likewise.
2572         * m32c-tdep.c: Likewise.
2573
2574 2014-08-07  Gary Benson  <gbenson@redhat.com>
2575
2576         * common/common-defs.h: Include stdlib.h.
2577         * defs.h: Do not include stdlib.h.
2578         * addrmap.c: Likewise.
2579         * bcache.c: Likewise.
2580         * common/buffer.c: Likewise.
2581         * common/common-utils.c: Likewise.
2582         * cp-name-parser.y: Likewise.
2583         * go32-nat.c: Likewise.
2584         * mn10300-linux-tdep.c: Likewise.
2585         * nat/linux-osdata.c: Likewise.
2586         * tui/tui.c: Likewise.
2587         * windows-nat.c: Likewise.
2588
2589 2014-08-07  Gary Benson  <gbenson@redhat.com>
2590
2591         * common/common-defs.h: Include stdio.h.
2592         * defs.h: Do not include stdio.h.
2593         * ada-lang.c: Likewise.
2594         * common/buffer.c: Likewise.
2595         * common/common-utils.c: Likewise.
2596         * cp-name-parser.y: Likewise.
2597         * gnu-nat.c: Likewise.
2598         * go32-nat.c: Likewise.
2599         * i386gnu-nat.c: Likewise.
2600         * proc-api.c: Likewise.
2601         * proc-events.c: Likewise.
2602         * proc-flags.c: Likewise.
2603         * proc-why.c: Likewise.
2604         * python/python-internal.h: Likewise.
2605         * target-memory.c: Likewise.
2606         * tui/tui-io.c: Likewise.
2607         * tui/tui.c: Likewise.
2608
2609 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2610
2611         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2612         (scan_dyntag_auxv): Same.
2613
2614 2014-08-06  Yao Qi  <yao@codesourcery.com>
2615
2616         * amd64-linux-nat.c: Remove duplicated include
2617         "x86-linux-nat.h".
2618         * i386-linux-nat.c: Likewise.
2619
2620 2014-08-06  Yao Qi  <yao@codesourcery.com>
2621
2622         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2623         operand" with "Special opcode" in comments.
2624
2625 2014-08-05  Gary Benson  <gbenson@redhat.com>
2626
2627         * interps.c (initialize_interps): Remove prototype.
2628         (interpreter_initialized): Remove static global.
2629         (interp_add): Do not call initialize_interps.
2630         (initialize_interps): Remove function.
2631
2632 2014-08-05  Gary Benson  <gbenson@redhat.com>
2633
2634         * utils.c (vwarning): Remove spurious va_end.
2635
2636 2014-08-05  Alan Modra  <amodra@gmail.com>
2637
2638         * charset.c (convert_between_encodings): Cast result of obstack_base.
2639         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2640         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2641         (read_unwind_info): Use size_t for some locals.
2642         * jit.c (finalize_symtab): Likewise.
2643         * utils.c (hashtab_obstack_allocate): Likewise.
2644         * symmisc.c (print_objfile_statistics): Update format strings.
2645
2646 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2647
2648         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2649         (Changes in GDB 7.8): ... here.
2650
2651 2014-08-04  Tom Tromey  <tromey@redhat.com>
2652
2653         * target.c (set_targetdebug): New function.
2654         (initialize_targets): Pass set_targetdebug when creating "set
2655         debug target".
2656
2657 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2658
2659         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2660         if detecting a variable-sized field that is not the last field.
2661         Fix struct type length computation.
2662
2663 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2664
2665         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2666         Add debug trace.
2667
2668 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2669
2670         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2671         Remove "+ 8" offset in computation of CHAIN_VMA.
2672
2673 2014-07-31  Doug Evans  <dje@google.com>
2674
2675         * inflow.c (child_terminal_inferior): Add comment.
2676         (child_terminal_ours_for_output): Add comment.
2677         (child_terminal_ours): Add comment.
2678         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2679         (linux_nat_terminal_ours): Add comment.
2680
2681 2014-07-31  Gary Benson  <gbenson@redhat.com>
2682
2683         * common/btrace-common.h: Do not include defs.h or server.h.
2684         * nat/mips-linux-watch.h: Likewise.
2685         * gdb-dlfcn.h: Do not include defs.h.
2686         * tracefile.h: Likewise.
2687
2688 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2689
2690         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2691
2692 2014-07-30  Tom Tromey  <tromey@redhat.com>
2693
2694         * bsd-kvm.c (bsd_kvm_open): Constify.
2695         * corelow.c (core_open): Constify.
2696         * ctf.c (ctf_open): Constify.
2697         * dbug-rom.c (dbug_open): Constify.
2698         * exec.c (exec_open): Constify.
2699         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2700         * microblaze-rom.c (picobug_open): Constify.
2701         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2702         Constify.
2703         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2704         * record-btrace.c (record_btrace_open): Constify.
2705         * record-full.c (record_full_core_open_1, record_full_open_1)
2706         (record_full_open): Constify.
2707         * remote-m32r-sdi.c (m32r_open): Constify.
2708         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2709         (rockhopper_open, lsi_open): Constify.
2710         * remote-sim.c (gdbsim_open): Constify.
2711         * remote.c (remote_open, extended_remote_open, remote_open_1):
2712         Constify.
2713         * target.h (struct target_ops) <to_open>: Make "arg" const.
2714         * tracefile-tfile.c (tfile_open): Constify.
2715
2716 2014-07-30  Tom Tromey  <tromey@redhat.com>
2717
2718         * breakpoint.c (map_breakpoint_numbers): Update.
2719         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2720         (get_number_const): New function.
2721         (get_number): Rewrite using get_number_const.
2722         (init_number_or_range): Make "string" const.
2723         (number_is_in_list): Make "list" const.
2724         * cli/cli-utils.h (get_number_const): Declare.
2725         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2726         (init_number_or_range, number_is_in_list): Update.
2727         * printcmd.c (map_display_numbers): Update.
2728         * value.c (value_from_history_ref): Constify.
2729         * value.h (value_from_history_ref): Update.
2730
2731 2014-07-30  Tom Tromey  <tromey@redhat.com>
2732
2733         * corefile.c (hook_type, call_extra_exec_file_hooks)
2734         (specify_exec_file_hook): Constify.
2735         * exec.c (exec_file_attach): Make "filename" const.
2736         * gdbcore.h (deprecated_exec_file_display_hook)
2737         (specify_exec_file_hook, exec_file_attach): Constify.
2738         * main.c (captured_main): Use catch_command_errors_const.
2739
2740 2014-07-30  Tom Tromey  <tromey@redhat.com>
2741
2742         * target.c (open_target): New function.
2743         (add_target_with_completer, add_deprecated_target_alias): Use
2744         set_cmd_sfunc, set_cmd_context.
2745         (debug_to_open): Remove.
2746         (setup_target_debug): Update.
2747
2748 2014-07-30  Yao Qi  <yao@codesourcery.com>
2749
2750         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2751         comments.
2752         * parse.c (exp_iterate): Update comments.
2753
2754 2014-07-30  Gary Benson  <gbenson@redhat.com>
2755
2756         * common/common-defs.h: New file.
2757         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2758         * defs.h: Include common-defs.h.
2759         Do not include config.h or build-gnulib/config.h.
2760
2761 2014-07-30  Gary Benson  <gbenson@redhat.com>
2762
2763         * common/common-utils.h: Do not include config.h.
2764         * nat/linux-btrace.h: Likewise.
2765
2766 2014-07-30  Gary Benson  <gbenson@redhat.com>
2767
2768         * btrace.c: Include defs.h.
2769         * common/ptid.c: Include defs.h or server.h as appropriate.
2770         * nat/mips-linux-watch.c: Likewise.
2771
2772 2014-07-29  Tom Tromey  <tromey@redhat.com>
2773
2774         * target.c (target_is_pushed): Simplify.
2775
2776 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2777
2778         GDB 7.8 released.
2779
2780 2014-07-29  Yao Qi  <yao@codesourcery.com>
2781
2782         PR gdb/17206
2783         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2784
2785 2014-07-28  Doug Evans  <xdje42@gmail.com>
2786
2787         PR guile/17203
2788         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2789         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2790         parameters.
2791
2792 2014-07-28  Will Newton  <will.newton@linaro.org>
2793
2794         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2795         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2796         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2797         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2798         (THUMB2_EABI_SYSCALL): Likewise.
2799         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2800         struct tramp_frame.
2801         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2802         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2803
2804 2014-07-27  Doug Evans  <xdje42@gmail.com>
2805
2806         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2807
2808 2014-07-27  Doug Evans  <xdje42@gmail.com>
2809
2810         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2811
2812 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2813             Doug Evans  <xdje42@gmail.com>
2814
2815         PR guile/17146
2816         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2817         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2818         * configure.ac: Try to use guild to compile an scm file, if it fails
2819         then disable guile support.
2820         * configure: Regenerate.
2821         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2822         GUILE_FILE_LIST.
2823         (GUILE_COMPILED_FILES): New variable.
2824         (GUILE_FILES) Update.
2825         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2826         (stamp-guile): Compile scm files.
2827         * guile/guile.c (boot_guile_support): New function.
2828         (standard_throw_args_p): New function.
2829         (print_standard_throw_error, print_throw_error): New functions.
2830         (handle_boot_error): New function.
2831         (initialize_scheme_side): Rewrite to call boot_guile_support.
2832         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2833         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2834
2835 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2836             Doug Evans  <xdje42@gmail.com>
2837
2838         PR guile/17146
2839         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2840         * guile/lib/gdb/support.scm: New file.
2841         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2842         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2843         All uses updated.
2844         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2845         All uses updated.
2846         (%assert-type): Ditto, and renamed to assert-type.
2847         (%exception-print-style): Delete.
2848
2849 2014-07-26  Doug Evans  <xdje42@gmail.com>
2850
2851         PR build/17105
2852         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2853         * configure: Regenerate.
2854         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2855         PYTHON_FILES.
2856         (PYTHON_FILES): New variable.
2857         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2858         (GUILE_FILES): New variable.
2859         (stamp-python, install-python, uninstall-python): Handle empty
2860         file list.
2861         (stamp-guile, install-guile, uninstall-guile): Ditto.
2862
2863 2014-07-26  Doug Evans  <xdje42@gmail.com>
2864
2865         PR guile/17177
2866         * guile/lib/gdb.scm (pretty-printers): Export.
2867         (set-pretty-printers!): Export.
2868         * guile/lib/gdb/printing.scm (gdb module): Update.
2869         (prepend-pretty-printer!, append-pretty-printer!): Update.
2870         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2871         (pretty_printer_list_var): Delete.
2872         (pretty_printer_list): New static global.
2873         (gdbscm_pretty_printers): New function.
2874         (gdbscm_set_pretty_printers_x): New function.
2875         (ppscm_find_pretty_printer_from_gdb): Update.
2876         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2877         (gdbscm_initialize_pretty_printers): Update.
2878
2879 2014-07-26  Doug Evans  <xdje42@gmail.com>
2880
2881         PR 17185
2882         * configure.ac: Add check for header gc/gc.h.
2883         Add check for function setenv.
2884         * configure: Regenerate.
2885         * config.in: Regenerate.
2886         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2887
2888 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2889
2890         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2891         variation in gdbarch matching.
2892
2893 2014-07-25  Tom Tromey  <tromey@redhat.com>
2894
2895         * exec.c (using_exec_ops): Remove.
2896         (exec_close_1): Update.  Remove extraneous block, reindent.
2897         (add_target_sections): Use target_is_pushed.
2898
2899 2014-07-25  Pedro Alves  <palves@redhat.com>
2900
2901         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2902         * monitor.c (monitor_create_inferior): Likewise.
2903         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2904         * remote-sim.c (gdbsim_create_inferior): Likewise.
2905         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2906         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2907         * windows-nat.c (do_initial_windows_stuff): Likewise.
2908
2909 2014-07-25  Pedro Alves  <palves@redhat.com>
2910
2911         * NEWS: Mention signal passing and "signal" command changes.
2912         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2913         comment.
2914         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2915         call.
2916         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2917         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2918         (jump_command): Adjust clear_proceed_status call.
2919         (signal_command): Warn if other thread that are resumed have
2920         signals that will be delivered.  Adjust clear_proceed_status call.
2921         (until_next_command, finish_command)
2922         (proceed_after_attach_callback, attach_command_post_wait)
2923         (attach_command): Adjust clear_proceed_status call.
2924         * infrun.c (proceed_after_vfork_done): Likewise.
2925         (proceed_after_attach_callback): Adjust comment.
2926         (clear_proceed_status_thread): Clear stop_signal if not in pass
2927         state.
2928         (clear_proceed_status_callback): Delete.
2929         (clear_proceed_status): New 'step' parameter.  Only clear the
2930         proceed status of threads the command being prepared is about to
2931         resume.
2932         (proceed): If passed in an explicit signal, override stop_signal
2933         with it.  Don't pass the last stop signal to the thread we're
2934         resuming.
2935         (init_wait_for_inferior): Adjust clear_proceed_status call.
2936         (switch_back_to_stepped_thread): Clear the signal if it should not
2937         be passed.
2938         * infrun.h (clear_proceed_status): New 'step' parameter.
2939         (user_visible_resume_ptid): Add comment.
2940         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2941         signal is in pass state.
2942         * remote.c (append_pending_thread_resumptions): Likewise.
2943         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2944
2945 2014-07-25  Tom Tromey  <tromey@redhat.com>
2946
2947         * target.h (target_stopped_data_address)
2948         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2949         parentheses.
2950
2951 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2952
2953         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2954         comments.
2955         (avr_pointer_to_address): Likewise.
2956
2957 2014-07-24  Tom Tromey  <tromey@redhat.com>
2958
2959         * monitor.c (compile_pattern): Update.
2960         * target.h (struct target_ops) <to_shortname, to_longname,
2961         to_doc>: Now const.
2962
2963 2014-07-24  Tom Tromey  <tromey@redhat.com>
2964
2965         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2966         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2967         (add_info_alias, add_com): Make "doc" const.
2968         (print_doc_line): Make "str" const.
2969         (delete_cmd): Update.
2970         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2971         (print_doc_line): Update.
2972         * cli/cli-script.c (document_command): Update.
2973         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2974         (add_com, add_info, add_info_alias): Update.
2975         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2976         * python/py-cmd.c (cmdpy_destroyer): Update.
2977
2978 2014-07-24  Tom Tromey  <tromey@redhat.com>
2979
2980         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2981         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2982         (help_cmd_list): Constify.
2983         (lookup_cmd): Update.
2984         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2985         const.
2986         (help_cmd_list, apropos_cmd): Update.
2987         * cli/cli-script.c (show_user): Update.
2988         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2989         * cli/cli-setshow.h (cmd_show_list): Update.
2990         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2991         (cmd_show_list): Update.
2992         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2993         * python/py-cmd.c (cmdpy_destroyer): Update.
2994
2995 2014-07-24  Tom Tromey  <tromey@redhat.com>
2996
2997         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2998         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2999         const.
3000         * command.h (deprecate_cmd): Update.
3001         * maint.c (maintenance_do_deprecate): Add casts.
3002
3003 2014-07-24  Tom Tromey  <tromey@redhat.com>
3004
3005         * cli/cli-decode.c (help_cmd): Make parameter "const".
3006         * cli/cli-decode.h (help_cmd): Update.
3007
3008 2014-07-24  Tom Tromey  <tromey@redhat.com>
3009
3010         * stack.c (up_silently_base, down_silently_base): Make argument
3011         const.
3012
3013 2014-07-24  Tom Tromey  <tromey@redhat.com>
3014
3015         * solib.c (solib_add): Make "pattern" const.
3016         * solib.h (solib_add): Update.
3017
3018 2014-07-24  Tom Tromey  <tromey@redhat.com>
3019
3020         * remote.c (remote_serial_open, print_packet, putpkt)
3021         (putpkt_binary): Constify.
3022         * remote.h (putpkt): Update.
3023
3024 2014-07-24  Tom Tromey  <tromey@redhat.com>
3025
3026         * monitor.c (monitor_open): Make "args" const.
3027         * monitor.h (monitor_open): Update.
3028
3029 2014-07-24  Tom Tromey  <tromey@redhat.com>
3030
3031         * maint.c (match_bfd_flags): Make "string" const.
3032         (print_bfd_section_info): Remove casts.
3033         (print_objfile_section_info): Make "string" const.
3034
3035 2014-07-24  Tom Tromey  <tromey@redhat.com>
3036
3037         * inf-child.c (inf_child_open_target): Make "arg" const.
3038         * inf-child.h (inf_child_open_target): Update.
3039
3040 2014-07-24  Tom Tromey  <tromey@redhat.com>
3041
3042         * environ.c (unset_in_environ): Make "var" const.
3043         * environ.h (unset_in_environ): Update.
3044
3045 2014-07-24  Tom Tromey  <tromey@redhat.com>
3046
3047         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3048         Make "cmd" const.
3049         (scan_filename_with_cleanup): Likewise.
3050         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3051         Make arguments const.
3052         (restore_command): Update.
3053
3054 2014-07-24  Pedro Alves  <palves@redhat.com>
3055
3056         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3057
3058 2014-07-24  Tom Tromey  <tromey@redhat.com>
3059             Gary Benson  <gbenson@redhat.com>
3060
3061         * nat/linux-ptrace.c (additional_flags): New global.
3062         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3063         additional_flags; don't check GDBSERVER.
3064         (linux_ptrace_set_additional_flags): New function.
3065         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3066         Declare.
3067         * linux-nat.c (_initialize_linux_nat): Call
3068         linux_ptrace_set_additional_flags.
3069
3070 2014-07-24  Tom Tromey  <tromey@redhat.com>
3071
3072         * make-target-delegates (munge_type, write_debugmethod): New
3073         functions.
3074         (debug_names): New global.
3075         ($TARGET_DEBUG_PRINTER): New global.
3076         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3077         name.
3078         Write debug methods.  Generate init_debug_target.
3079         * target-debug.h: New file.
3080         * target-delegates.c: Rebuild.
3081         * target.c: Include target-debug.h.
3082         (debug_target): Hoist definition.
3083         (target_kill, target_get_section_table, target_memory_map)
3084         (target_flash_erase, target_flash_done, target_detach)
3085         (target_disconnect, target_wait, target_resume)
3086         (target_pass_signals, target_program_signals, target_follow_fork)
3087         (target_mourn_inferior, target_search_memory)
3088         (target_thread_address_space, target_close)
3089         (target_find_new_threads, target_core_of_thread)
3090         (target_verify_memory, target_insert_mask_watchpoint)
3091         (target_remove_mask_watchpoint): Remove targetdebug code.
3092         (debug_to_post_attach, debug_to_prepare_to_store)
3093         (debug_to_files_info, debug_to_insert_breakpoint)
3094         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3095         (debug_to_region_ok_for_hw_watchpoint)
3096         (debug_to_can_accel_watchpoint_condition)
3097         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3098         (debug_to_watchpoint_addr_within_range)
3099         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3100         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3101         (debug_to_terminal_init, debug_to_terminal_inferior)
3102         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3103         (debug_to_terminal_save_ours, debug_to_terminal_info)
3104         (debug_to_load, debug_to_post_startup_inferior)
3105         (debug_to_insert_fork_catchpoint)
3106         (debug_to_remove_fork_catchpoint)
3107         (debug_to_insert_vfork_catchpoint)
3108         (debug_to_remove_vfork_catchpoint)
3109         (debug_to_insert_exec_catchpoint)
3110         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3111         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3112         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3113         (setup_target_debug): Call init_debug_target.
3114         * target.h (TARGET_DEBUG_PRINTER): New macro.
3115         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3116         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3117
3118 2014-07-24  Gary Benson  <gbenson@redhat.com>
3119
3120         * exceptions.h (throw_vfatal): Renamed to...
3121         (throw_vquit): New declaration.
3122         (throw_quit): Likewise.
3123         * exceptions.c (throw_vfatal): Renamed to...
3124         (throw_vquit): New function.
3125         (throw_quit): Likewise.
3126         (throw_error): Call throw_verror rather than throw_it.
3127         * utils.h (vfatal): Removed.
3128         (fatal): Likewise.
3129         * utils.c (vfatal): Removed.
3130         (fatal): Likewise.
3131         (internal_verror): Replaced call to fatal with call to throw_quit.
3132         (quit): Replaced calls to fatal with calls to throw_quit.
3133
3134 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3135
3136         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3137         target_read_code.
3138
3139 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3140
3141         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3142         less than zero in conditional expression.
3143
3144 2014-07-23  Tom Tromey  <tromey@redhat.com>
3145
3146         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3147         ($INTRO_PART): Don't match whitespace.
3148         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3149         argument matching.
3150         ($METHOD): Add $METHOD_TRAILER.
3151         (trim): Rewrite.
3152         (scan_target_h): New sub.
3153         Change main loop not to collect state.
3154         * target-delegates.c: Rebuild.
3155
3156 2014-07-23  Gary Benson  <gbenson@redhat.com>
3157
3158         * cp-support.c (gdb_demangle): Fix build on systems without
3159         sigaltstack.
3160
3161 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3162
3163         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3164         for reference entry value target data value.
3165
3166 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3167
3168         * stack.c (read_frame_arg): Verify value_optimized_out before calling
3169         value_available_contents_eq.
3170
3171 2014-07-22  Pedro Alves  <palves@redhat.com>
3172
3173         * value.c (allocate_optimized_out_value): Don't mark value as
3174         non-lazy.
3175
3176 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
3177
3178         * MAINTAINERS (Write After Approval): Update my email address.
3179
3180 2014-07-20  Doug Evans  <dje@google.com>
3181
3182         PR server/17147
3183         * remote.c (putpkt_binary): Add text to error message.
3184
3185 2014-07-20  Yao Qi  <yao@codesourcery.com>
3186
3187         * eval.c: Remove "Chill" from comments.
3188         * gdbtypes.h: Likewise.
3189         * symtab.h: Likewise.
3190
3191 2014-07-20  Yao Qi  <yao@codesourcery.com>
3192
3193         * std-operator.def: Update comments to TERNOP_SLICE.
3194
3195 2014-07-20  Yao Qi  <yao@codesourcery.com>
3196
3197         * std-operator.def: Remove BINOP_RANGE.
3198         * breakpoint.c (watchpoint_exp_is_const): Update.
3199         * expprint.c (dump_subexp_body_standard): Likewise.
3200         * eval.c (init_array_element): Remove dead code.
3201         (evaluate_subexp_standard): Likewise.
3202
3203 2014-07-20  Yao Qi  <yao@codesourcery.com>
3204
3205         * std-operator.def: Remove BINOP_IN.
3206         * breakpoint.c (watchpoint_exp_is_const): Update.
3207         * eval.c (evaluate_subexp_standard): Likewise.
3208         * expprint.c (dump_subexp_body_standard): Likewise.
3209
3210 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
3211
3212         * microblaze-tdep.c (microblaze_register_names): Add
3213         the rshr and rslr register names.
3214         (microblaze_gdbarch_init): Use of tdesc_has_registers.
3215         Use of tdesc_find_feature. Use of tdesc_data_alloc.
3216         Use of tdesc_numbered_register. Use of
3217         microblaze_register_g_packet_guesses. Use of
3218         tdesc_use_registers. Use of set_gdbarch_register_type.
3219         (microblaze_register_g_packet_guesses): New.
3220         * microblaze-tdep.h (microblaze_reg_num): Add
3221         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3222         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3223         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3224         * features/microblaze-core.xml: New file.
3225         * features/microblaze-stack-protect.xml: New file.
3226         * features/microblaze-with-stack-protect.c: New file.
3227         * features/microblaze-with-stack-protect.xml: New file.
3228         * features/microblaze.xml: New file.
3229         * features/microblaze.c: New file.
3230         * features/Makefile (microblaze-with-stack-protect): Add
3231         microblaze-with-stack-protect microblaze and microblaze-expedite.
3232         * regformats/microblaze-with-stack-protect.dat: New file.
3233         * regformats/microblaze.dat: New file.
3234         * doc/gdb.texinfo (MicroBlaze Features): Added.
3235
3236 2014-07-18  Tom Tromey  <tromey@redhat.com>
3237
3238         * exec.c (exec_ops): Now static.
3239         * exec.h (exec_ops): Don't declare.
3240
3241 2014-07-18  Tom Tromey  <tromey@redhat.com>
3242
3243         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3244         to find_target_beneath.
3245         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3246         find_target_beneath.
3247         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3248
3249 2014-07-18  Tom Tromey  <tromey@redhat.com>
3250
3251         PR gdb/17130:
3252         * utils.c (quit): Use target_supports_terminal_ours.
3253         * target.h (target_supports_terminal_ours): Declare.
3254         * target.c (target_supports_delete_record): Don't check
3255         to_delete_record against NULL.
3256         (target_supports_terminal_ours): New function.
3257
3258 2014-07-18  Tom Tromey  <tromey@redhat.com>
3259
3260         PR gdb/17130:
3261         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3262         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3263         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3264         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3265         * windows-nat.c (windows_xfer_partial): Always delegate.
3266         * record-btrace.c (record_btrace_xfer_partial): Simplify
3267         delegation.
3268         (record_btrace_fetch_registers, record_btrace_store_registers)
3269         (record_btrace_prepare_to_store, record_btrace_resume)
3270         (record_btrace_wait, record_btrace_find_new_threads)
3271         (record_btrace_thread_alive): Likewise.
3272         * procfs.c (procfs_xfer_partial): Always delegate.
3273         * corelow.c (core_xfer_partial): Always delegate.
3274         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3275
3276 2014-07-18  Tom Tromey  <tromey@redhat.com>
3277
3278         * exec.c (exec_make_note_section): Move earlier.
3279
3280 2014-07-17  Doug Evans  <dje@google.com>
3281
3282         PR gdb/17170
3283         * maint.c (count_symtabs_and_blocks): Handle NULL
3284         current_program_space.
3285         (report_command_stats): Check global enabled flag in addition to
3286         recorded enabled flag.
3287         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3288
3289 2014-07-16  Pedro Alves  <palves@redhat.com>
3290
3291         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3292
3293 2014-07-16  Tom Tromey  <tromey@redhat.com>
3294
3295         * target.h (struct target_ops) <to_delete_record>: Reformat
3296         comment.
3297
3298 2014-07-16  Tom Tromey  <tromey@redhat.com>
3299
3300         * target-delegates.c: Rebuild.
3301
3302 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3303
3304         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3305         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3306         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3307         (avr_pointer_to_address): Likewise.
3308         (avr_address_class_type_flags): New function.
3309         (avr_address_class_type_flags_to_name): Likewise.
3310         (avr_address_class_name_to_type_flags): Likewise.
3311         (avr_gdbarch_init): Set address_class_type_flags,
3312         address_class_type_flags_to_name and
3313         address_class_name_to_type_flags.
3314
3315 2014-07-15  Pedro Alves  <palves@redhat.com>
3316
3317         * linux-nat.c (kill_callback): Save errno and work with saved
3318         copy.
3319
3320 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3321
3322         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3323
3324 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3325
3326         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3327         breakpoint support correctly.
3328
3329 2014-07-14  Pedro Alves  <palves@redhat.com>
3330
3331         * utils.c (prompt_for_continue): Call target_terminal_ours.
3332
3333 2014-07-14  Pedro Alves  <palves@redhat.com>
3334
3335         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3336         catch_errors.  Don't re-enable stdin or notify observers where,
3337         and rethrow error.
3338         (fetch_inferior_event_wrapper): Delete.
3339
3340 2014-07-14  Pedro Alves  <palves@redhat.com>
3341
3342         PR gdb/17072
3343         * top.c: Include "inf-loop.h".
3344         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3345         field.
3346         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3347         was async before.
3348         (gdb_readline_wrapper): Store whether the target is async, and
3349         make it sync.
3350
3351 2014-07-14  Pedro Alves  <palves@redhat.com>
3352
3353         PR gdb/17072
3354         * top.c (gdb_readline_wrapper_line): Tweak comment.
3355         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3356         the input handler callback.
3357
3358 2014-07-14  Pedro Alves  <palves@redhat.com>
3359
3360         PR gdb/17072
3361         * main.c: Include event-top.h.
3362         (handle_command_errors): New function.
3363         (catch_command_errors, catch_command_errors_const): Use it.
3364
3365 2014-07-14  Pedro Alves  <palves@redhat.com>
3366
3367         * exceptions.c (catch_command_errors, catch_command_errors_const):
3368         Moved to main.c.
3369         * exceptions.h (catch_command_errors_ftype)
3370         (catch_command_errors_const_ftype): Moved to main.c.
3371         (catch_command_errors, catch_command_errors_const): Delete
3372         declarations.
3373         * main.c (catch_command_errors_ftype)
3374         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3375         (catch_command_errors, catch_command_errors_const)): Moved here
3376         from exceptions.c and make static.
3377
3378 2014-07-14  Pedro Alves  <palves@redhat.com>
3379
3380         * exceptions.c (print_any_exception): Delete.
3381         (catch_exceptions_with_msg): Use exception_print instead of
3382         print_any_exception.
3383         (catch_errors): Use exception_fprintf instead of
3384         print_any_exception.
3385         (catch_command_errors, catch_command_errors_const): Use
3386         exception_print instead of print_any_exception.
3387
3388 2014-07-14  Pedro Alves  <palves@redhat.com>
3389
3390         * infcall.c (run_inferior_call): Set 'sync_execution' while
3391         running the inferior call.
3392
3393 2014-07-14  Pedro Alves  <palves@redhat.com>
3394
3395         * value.c (value_contents_equal): Delete function.
3396         * value.h (value_contents_equal): Delete declaration.
3397
3398 2014-07-14  Tom Tromey  <tromey@redhat.com>
3399
3400         PR exp/17106:
3401         * gdbtypes.c (is_dynamic_type_internal): New function, from
3402         is_dynamic_type.
3403         (is_dynamic_type): Rewrite.
3404         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3405         (resolve_dynamic_struct): Likewise.
3406         (resolve_dynamic_type_internal): New function, from
3407         resolve_dynamic_type.
3408         (resolve_dynamic_type): Rewrite.
3409
3410 2014-07-14  Tom Tromey  <tromey@redhat.com>
3411
3412         * target.c (target_require_runnable): Also check record_stratum.
3413         Update comment.
3414
3415 2014-07-11  Yao Qi  <yao@codesourcery.com>
3416
3417         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3418         thumb_instruction_restores_sp return true.
3419
3420 2014-07-11  Yao Qi  <yao@codesourcery.com>
3421
3422         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3423         (thumb_in_function_epilogue_p): Call
3424         thumb_instruction_restores_sp.
3425
3426 2014-07-11  Yao Qi  <yao@codesourcery.com>
3427
3428         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3429         'add sp, #imm'.
3430         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3431
3432 2014-07-11  Gary Benson  <gbenson@redhat.com>
3433
3434         * amd64-linux-nat.c (gdbcore.h): Remove include.
3435         (regset.h): Likewise.
3436         (nat/linux-btrace.h): Likewise.
3437         (btrace.h): Likewise.
3438         (gdb_assert.h): Likewise.
3439         (string.h): Likewise.
3440         (sys/uio.h): Likewise.
3441         (sys/debugreg.h): Likewise.
3442         (sys/syscall.h): Likewise.
3443         (sys/procfs.h): Likewise.
3444         (sys/user.h): Likewise.
3445         (asm/ptrace.h): Likewise.
3446         (i386-nat.h): Likewise.
3447         * i386-linux-nat.c (i386-nat.h): Likewise.
3448         (regset.h): Likewise.
3449         (target.h): Likewise.
3450         (linux-nat.h): Likewise.
3451         (nat/linux-btrace.h): Likewise.
3452         (btrace.h): Likewise.
3453         (gdb_assert.h): Likewise.
3454         (string.h): Likewise.
3455         (sys/uio.h): Likewise.
3456         (sys/user.h): Likewise.
3457         (sys/procfs.h): Likewise.
3458         (sys/reg.h): Likewise.
3459         (sys/debugreg.h): Likewise.
3460         (ORIG_EAX): Remove definition.
3461
3462 2014-07-11  Gary Benson  <gbenson@redhat.com>
3463
3464         * i386-linux-nat.h: New file.
3465         * x86-linux-nat.h: Likewise.
3466         * x86-linux-nat.c: Likewise.
3467         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3468         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3469         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3470         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3471         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3472         (PTRACE_SETREGSET): Likewise.
3473         (arch_lwp_info): Now in x86-linux-nat.c.
3474         (have_ptrace_getregset): Now in x86-linux-nat.h.
3475         (x86_linux_dr_get): Now in x86-linux-nat.c.
3476         (x86_linux_dr_set): Likewise.
3477         (x86_linux_dr_get_addr): Likewise.
3478         (x86_linux_dr_get_control): Likewise.
3479         (x86_linux_dr_get_status): Likewise.
3480         (update_debug_registers_callback): Likewise.
3481         (x86_linux_dr_set_control): Likewise.
3482         (x86_linux_dr_set_addr): Likewise.
3483         (x86_linux_prepare_to_resume): Likewise.
3484         (x86_linux_new_thread): Likewise.
3485         (x86_linux_new_fork): Likewise.
3486         (x86_linux_get_thread_area): Likewise.
3487         (super_post_startup_inferior): Likewise.
3488         (x86_linux_child_post_startup_inferior): Likewise.
3489         (AMD64_LINUX_USER64_CS): Likewise.
3490         (AMD64_LINUX_X32_DS): Likewise.
3491         (x86_linux_read_description): Likewise.
3492         (x86_linux_enable_btrace): Likewise.
3493         (x86_linux_disable_btrace): Likewise.
3494         (x86_linux_teardown_btrace): Likewise.
3495         (x86_linux_read_btrace): Likewise.
3496         (x86_linux_create_target): Likewise.
3497         (x86_linux_add_target): Likewise.
3498         * i386-linux-nat.c (x86-linux-nat.h): New include.
3499         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3500         (PTRACE_SETREGSET): Likewise.
3501         (arch_lwp_info): Now in x86-linux-nat.c.
3502         (have_ptrace_getregset): Now in x86-linux-nat.h.
3503         (x86_linux_dr_get): Now in x86-linux-nat.c.
3504         (x86_linux_dr_set): Likewise.
3505         (x86_linux_dr_get_addr): Likewise.
3506         (x86_linux_dr_get_control): Likewise.
3507         (x86_linux_dr_get_status): Likewise.
3508         (update_debug_registers_callback): Likewise.
3509         (x86_linux_dr_set_control): Likewise.
3510         (x86_linux_dr_set_addr): Likewise.
3511         (x86_linux_prepare_to_resume): Likewise.
3512         (x86_linux_new_thread): Likewise.
3513         (x86_linux_new_fork): Likewise.
3514         (x86_linux_get_thread_area): Likewise.
3515         (super_post_startup_inferior): Likewise.
3516         (x86_linux_child_post_startup_inferior): Likewise.
3517         (AMD64_LINUX_USER64_CS): Likewise.
3518         (AMD64_LINUX_X32_DS): Likewise.
3519         (x86_linux_read_description): Likewise.
3520         (x86_linux_enable_btrace): Likewise.
3521         (x86_linux_disable_btrace): Likewise.
3522         (x86_linux_teardown_btrace): Likewise.
3523         (x86_linux_read_btrace): Likewise.
3524         (x86_linux_create_target): Likewise.
3525         (x86_linux_add_target): Likewise.
3526
3527 2014-07-11  Gary Benson  <gbenson@redhat.com>
3528
3529         * amd64-linux-nat.c: Comment and whitespace changes.
3530         * i386-linux-nat.c: Comment and whitespace changes.
3531
3532 2014-07-11  Gary Benson  <gbenson@redhat.com>
3533
3534         * amd64-linux-nat.c (x86_linux_create_target): New function.
3535         (x86_linux_add_target): Likewise.
3536         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3537         * i386-linux-nat.c (x86_linux_create_target): New function.
3538         (x86_linux_add_target): Likewise.
3539         (_initialize_i386_linux_nat): Delegate to the above new functions.
3540
3541 2014-07-11  Gary Benson  <gbenson@redhat.com>
3542
3543         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3544         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3545         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3546         (ps_get_thread_area): Delegate to the above.
3547
3548 2014-07-11  Gary Benson  <gbenson@redhat.com>
3549
3550         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3551         x86_linux_read_description.  All uses updated.  amd64-specific
3552         code conditionalized.  Conditionalized i386-specific code added.
3553         Redundant cast removed.
3554         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3555         x86_linux_read_description.  All uses updated.  i386-specific
3556         code conditionalized.  Conditionalized amd64-specific code added.
3557         One sizeof replaced with the actual type it is describing.
3558
3559 2014-07-11  Gary Benson  <gbenson@redhat.com>
3560
3561         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3562         x86_linux_dr_get.  All uses updated.
3563         (amd64_linux_dr_set): Renamed to
3564         x86_linux_dr_set.  All uses updated.
3565         (amd64_linux_dr_get_addr): Renamed to
3566         x86_linux_dr_get_addr.  All uses updated.
3567         (amd64_linux_dr_get_control): Renamed to
3568         x86_linux_dr_get_control.  All uses updated.
3569         (amd64_linux_dr_get_status): Renamed to
3570         x86_linux_dr_get_status.  All uses updated.
3571         (amd64_linux_dr_set_control): Renamed to
3572         x86_linux_dr_set_control.  All uses updated.
3573         (amd64_linux_dr_set_addr): Renamed to
3574         x86_linux_dr_set_addr.  All uses updated.
3575         (amd64_linux_prepare_to_resume): Renamed to
3576         x86_linux_prepare_to_resume.  All uses updated.
3577         (amd64_linux_new_thread): Renamed to
3578         x86_linux_new_thread.  All uses updated.
3579         (amd64_linux_new_fork): Renamed to
3580         x86_linux_new_fork.  All uses updated.
3581         (amd64_linux_child_post_startup_inferior): Renamed to
3582         x86_linux_child_post_startup_inferior.  All uses updated.
3583         (amd64_linux_enable_btrace): Renamed to
3584         x86_linux_enable_btrace.  All uses updated.
3585         (amd64_linux_disable_btrace): Renamed to
3586         x86_linux_disable_btrace.  All uses updated.
3587         (amd64_linux_teardown_btrace): Renamed to
3588         x86_linux_teardown_btrace.  All uses updated.
3589         (amd64_linux_read_btrace): Renamed to
3590         x86_linux_read_btrace.  All uses updated.
3591         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3592         x86_linux_dr_get.  All uses updated.
3593         (i386_linux_dr_set): Renamed to
3594         x86_linux_dr_set.  All uses updated.
3595         (i386_linux_dr_get_addr): Renamed to
3596         x86_linux_dr_get_addr.  All uses updated.
3597         (i386_linux_dr_get_control): Renamed to
3598         x86_linux_dr_get_control.  All uses updated.
3599         (i386_linux_dr_get_status): Renamed to
3600         x86_linux_dr_get_status.  All uses updated.
3601         (i386_linux_dr_set_control): Renamed to
3602         x86_linux_dr_set_control.  All uses updated.
3603         (i386_linux_dr_set_addr): Renamed to
3604         x86_linux_dr_set_addr.  All uses updated.
3605         (i386_linux_prepare_to_resume): Renamed to
3606         x86_linux_prepare_to_resume.  All uses updated.
3607         (i386_linux_new_thread): Renamed to
3608         x86_linux_new_thread.  All uses updated.
3609         (i386_linux_new_fork): Renamed to
3610         x86_linux_new_fork.  All uses updated.
3611         (i386_linux_child_post_startup_inferior): Renamed to
3612         x86_linux_child_post_startup_inferior.  All uses updated.
3613         (i386_linux_enable_btrace): Renamed to
3614         x86_linux_enable_btrace.  All uses updated.
3615         (i386_linux_disable_btrace): Renamed to
3616         x86_linux_disable_btrace.  All uses updated.
3617         (i386_linux_teardown_btrace): Renamed to
3618         x86_linux_teardown_btrace.  All uses updated.
3619         (i386_linux_read_btrace): Renamed to
3620         x86_linux_read_btrace.  All uses updated.
3621
3622 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3623
3624         * remote.c (extended_remote_post_attach): New function.
3625         (init_extended_remote_ops): Install it as to_post_attach method.
3626
3627 2014-07-09  Pedro Alves  <palves@redhat.com>
3628
3629         * infcmd.c (attach_command_post_wait): Don't call
3630         target_terminal_inferior here.
3631         (attach_command): Call it here instead.
3632
3633 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3634
3635         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3636         field.
3637         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3638         from varobj.c, with additional checks.
3639         (c_varobj_ops): Fill in is_path_expr_parent field.
3640         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3641         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3642         field.
3643         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3644         ops method.
3645         (varobj_default_is_path_expr_parent): New function.
3646         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3647         (varobj_default_is_path_expr_parent): Declare new function.
3648
3649 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3650
3651         * infcmd.c (finish_backward): Turn internal error into normal error.
3652
3653 2014-07-07  Pedro Alves  <palves@redhat.com>
3654
3655         PR gdb/17096
3656         * remote.c (async_handle_remote_sigint)
3657         (async_handle_remote_sigint_twice): Call
3658         gdb_call_async_signal_handler instead of
3659         mark_async_signal_handler.
3660
3661 2014-07-07  Tom Tromey  <tromey@redhat.com>
3662
3663         * target-delegates.c: Rebuild.
3664         * target.c (target_info_record): Remove.
3665         * record.c (info_record_command): Unconditionally call
3666         to_info_record.
3667         * target.h (struct target_ops) <to_info_record>: Use
3668         TARGET_DEFAULT_IGNORE.
3669         (target_info_record): Remove.
3670
3671 2014-07-07  Tom Tromey  <tromey@redhat.com>
3672
3673         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3674         TARGET_DEFAULT_NORETURN.
3675         * target.c (generic_tls_error): New function.
3676         (target_translate_tls_address): Don't search target stack.
3677         * target-delegates.c: Rebuild.
3678         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3679         stack.
3680         * linux-thread-db.c (thread_db_get_thread_local_address):
3681         Unconditionally call beneath target.
3682
3683 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3684
3685         * cli/cli-logging.c (pop_output_files): Assign targerr to
3686         gdb_stdtargerr.
3687
3688 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3689
3690         * MAINTAINERS (Write After Approval): Update my email address.
3691
3692 2014-07-02  Gary Benson  <gbenson@redhat.com>
3693
3694         * proc-service.c (ps_xfer_memory): Update comment.
3695         (ps_pstop): Remove unused function.
3696         (ps_pcontinue): Likewise.
3697         (ps_lstop): Likewise.
3698         (ps_lcontinue): Likewise.
3699         (ps_lgetxregsize): Likewise.
3700         (ps_lgetxregs): Likewise.
3701         (ps_lsetxregs): Likewise.
3702         (ps_plog): Likewise.
3703         (ps_ptread): Likewise.
3704         (ps_ptwrite): Likewise.
3705
3706 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3707
3708         * dwarf2read.c (add_array_cv_type): New function.
3709         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3710         (read_tag_volatile_type): Likewise.
3711
3712 2014-07-01  Tom Tromey  <tromey@redhat.com>
3713
3714         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3715         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3716         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3717         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3718         * command.h (cmd_cfunc_ftype): Move earlier.
3719         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3720         (add_com, add_info): Use cmd_cfunc_ftype.
3721
3722 2014-06-30  Tom Tromey  <tromey@redhat.com>
3723
3724         * symtab.c (operator_chars): Make parameters and return type
3725         const.
3726         (file_matches): Make "files" const.
3727         (struct search_symbols_data) <files>: Now const.
3728         (search_symbols): Make "regexp" and "files" parameters const.
3729         Update.
3730         (symtab_symbol_info): Remove cast.
3731         (rbreak_command): Update.
3732         * symtab.h (search_symbols): Update.
3733
3734 2014-06-27  Yao Qi  <yao@codesourcery.com>
3735
3736         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3737         Change parameter type to 'struct thread_info *'.  Caller
3738         updated.
3739         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3740         Update declaration.
3741         * dummy-frame.c (struct dummy_frame_id): New.
3742         (dummy_frame_id_eq): New function.
3743         (struct dummy_frame) <id>: Change its type to 'struct
3744         dummy_frame_id'.
3745         (dummy_frame_push): Add parameter ptid and save it in
3746         dummy_frame_id.
3747         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3748         inferior_ptid.
3749         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3750         to inferior_ptid.
3751         (lookup_dummy_frame): Change parameter type to 'struct
3752         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3753         instead of frame_id_eq.
3754         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3755         Update comments.  Compose dummy_frame_id and pass it to
3756         lookup_dummy_frame.
3757         (dummy_frame_discard): Add parameter ptid.
3758         (dummy_frame_sniffer): Compose dummy_frame_id and call
3759         dummy_frame_id_eq instead of frame_id_eq.
3760         (fprint_dummy_frames): Print ptid.
3761         * dummy-frame.h: Remove comments.
3762         (dummy_frame_push): Add ptid in declaration.
3763         (dummy_frame_pop, dummy_frame_discard): Likewise.
3764
3765 2014-06-26  Tom Tromey  <tromey@redhat.com>
3766
3767         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3768         * command.h (error_no_arg): Update.
3769
3770 2014-06-26  Tom Tromey  <tromey@redhat.com>
3771
3772         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3773         (do_show_command): Make "arg" const.
3774         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3775
3776 2014-06-26  Tom Tromey  <tromey@redhat.com>
3777
3778         * record-full.c (record_full_get_bookmark): Make "args" const.
3779         (record_full_goto_bookmark): Make "raw_bookmark" const.
3780         * record.c (record_goto): New function.
3781         (cmd_record_goto): Use it.  Now static.
3782         * record.h (record_goto): Declare.
3783         (cmd_record_goto): Remove declaration.
3784         * target-delegates.c: Rebuild.
3785         * target.h (struct target_ops) <to_get_bookmark,
3786         to_goto_bookmark>: Make parameter const.
3787
3788 2014-06-26  Tom Tromey  <tromey@redhat.com>
3789
3790         * defs.h (generic_load): Update.
3791         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3792         * monitor.c (monitor_load): Make "args" const.
3793         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3794         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3795         const.
3796         (mips_load): Make "file" const.
3797         * remote-sim.c (gdbsim_load): Make "args" const.
3798         * remote.c (remote_load): Make "name" const.
3799         * symfile.c (generic_load): Make "args" const.
3800         * target-delegates.c: Rebuild.
3801         * target.c (target_load): Make "arg" const.
3802         (debug_to_load): Make "args" const.
3803         * target.h (struct target_ops) <to_load>: Make parameter const.
3804         (target_load): Update.
3805
3806 2014-06-26  Tom Tromey  <tromey@redhat.com>
3807
3808         PR symtab/16902:
3809         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3810         (dwarf2_physname, read_partial_die)
3811         (guess_partial_die_structure_name, fixup_partial_die)
3812         (guess_full_die_structure_name, anonymous_struct_prefix)
3813         (dwarf2_name): Use per-BFD obstack.
3814
3815 2014-06-26  Yao Qi  <yao@codesourcery.com>
3816
3817         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3818         dummyframe and this_id into inner block below.
3819
3820 2014-06-26  Yao Qi  <yao@codesourcery.com>
3821
3822         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3823         with "signal_pass[0]" in the initialization of signal_pass.
3824
3825 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3826
3827         * record-btrace.c (record_btrace_generating_corefile)
3828         (record_btrace_prepare_to_generate_core)
3829         (record_btrace_done_generating_core): New.
3830         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3831         (record_btrace_store_registers, record_btrace_prepare_to_store):
3832         Forward request when generating a core file.
3833         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3834         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3835         to_done_generating_core.
3836
3837 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3838
3839         * target.h (target_ops) <to_prepare_to_generate_core>
3840         <to_done_generating_core>: New.
3841         (target_prepare_to_generate_core, target_done_generating_core): New.
3842         * target.c (target_prepare_to_generate_core)
3843         (target_done_generating_core): New.
3844         * target-delegates.c: Regenerate.
3845         * gcore.c: (write_gcore_file): Rename to ...
3846         (write_gcore_file_1): ...this.
3847         (write_gcore_file): Call target_prepare_to_generate_core
3848         and target_done_generating_core.
3849
3850 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3851
3852         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3853         * gcore.c (write_gcore_file): Free memory returned from
3854         make_corefile_notes.
3855         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3856         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3857
3858 2014-06-24  Yao Qi  <yao@codesourcery.com>
3859
3860         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3861         (arm_linux_init_abi): Set skip_trampoline_code with
3862         gdbarch_skip_trampoline_code instead of
3863         find_solib_trampoline_target.
3864
3865 2014-06-24  Yao Qi  <yao@codesourcery.com>
3866
3867         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3868         arm_skip_bx_reg returns non-zero.
3869
3870 2014-06-24  Yao Qi  <yao@codesourcery.com>
3871
3872         * arm-tdep.c (arm_skip_bx_reg): New function.
3873         (arm_skip_stub): Call arm_skip_bx_reg.
3874
3875 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3876
3877         * MAINTAINERS: Add myself as write-after-approval maintainer.
3878
3879 2014-06-23  Pedro Alves  <palves@redhat.com>
3880
3881         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3882         DR_CONTROL before setting DR0..DR3.
3883         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3884         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3885         bits of DR_CONTROL related to the debug register slot being
3886         disabled.  If all slots are vacant, clear local slowdown as well,
3887         and assert DR_CONTROL is 0.
3888
3889 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3890
3891         * python/lib/gdb/command/xmethods.py
3892         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3893         current progspace only if the string "progspace" matches LOCUS_RE.
3894
3895 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3896
3897         Fix --with-system-readline with readline-6.3 patch 5.
3898         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3899         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3900         types.
3901
3902 2014-06-20  Tom Tromey  <tromey@redhat.com>
3903
3904         * dwarf2read.c (dw2_get_real_path): Use correct type in
3905         OBSTACK_CALLOC.
3906         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3907
3908 2014-06-20  Gary Benson  <gbenson@redhat.com>
3909
3910         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3911         * common/glibc_thread_db.h: Likewise.
3912         * common/i386-cpuid.h: Likewise.
3913         * common/i386-gcc-cpuid.h: Likewise.
3914         * common/linux-btrace.h: Likewise.
3915         * common/linux-osdata.h: Likewise.
3916         * common/linux-procfs.h: Likewise.
3917         * common/linux-ptrace.h: Likewise.
3918         * common/mips-linux-watch.h: Likewise.
3919         * common/linux-btrace.c: Moved to nat.
3920         * common/linux-osdata.c: Likewise.
3921         * common/linux-procfs.c: Likewise.
3922         * common/linux-ptrace.c: Likewise.
3923         * common/mips-linux-watch.c: Likewise.
3924         * nat/gdb_thread_db.h: Moved from common.
3925         * nat/glibc_thread_db.h: Likewise.
3926         * nat/i386-cpuid.h: Likewise.
3927         * nat/i386-gcc-cpuid.h: Likewise.
3928         * nat/linux-btrace.c: Likewise.
3929         * nat/linux-btrace.h: Likewise.
3930         * nat/linux-osdata.c: Likewise.
3931         * nat/linux-osdata.h: Likewise.
3932         * nat/linux-procfs.c: Likewise.
3933         * nat/linux-procfs.h: Likewise.
3934         * nat/linux-ptrace.c: Likewise.
3935         * nat/linux-ptrace.h: Likewise.
3936         * nat/mips-linux-watch.c: Likewise.
3937         * nat/mips-linux-watch.h: Likewise.
3938         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3939         (object file files): Reordered.
3940         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3941         of glibc_thread_db.h.
3942
3943 2014-06-20  Gary Benson  <gbenson@redhat.com>
3944
3945         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3946         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3947         (i386_dr_low): Likewise.
3948         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3949         (i386_dr_low_set_addr): Likewise.
3950         (i386_dr_low_get_addr): Likewise.
3951         (i386_dr_low_can_set_control): Likewise.
3952         (i386_dr_low_set_control): Likewise.
3953         (i386_dr_low_get_control): Likewise.
3954         (i386_dr_low_get_status): Likewise.
3955         (i386_get_debug_register_length): Likewise.
3956         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3957         (i386_dr_low): Likewise.
3958         * nat/i386-dregs.c (i386-low.h): Remove include.
3959         (i386-nat.h): Likewise.
3960         (nat/i386-dregs.h): New include.
3961         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3962         (i386_dr_low_set_addr): Likewise.
3963         (i386_dr_low_get_addr): Likewise.
3964         (i386_dr_low_can_set_control): Likewise.
3965         (i386_dr_low_set_control): Likewise.
3966         (i386_dr_low_get_control): Likewise.
3967         (i386_dr_low_get_status): Likewise.
3968         (i386_get_debug_register_length): Likewise.
3969         (debug_hw_points): Likewise.
3970
3971 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3972
3973         * Makefile.in (SFILES): Add d-exp.y.
3974         (YYFILES): Add d-exp.c.
3975         (YYOBJ): Add d-exp.o.
3976         (local-maintainer-clean): Delete d-exp.c.
3977         * d-exp.y: New file.
3978         * d-lang.h (d_parse): New declaration.
3979         (d_error): New declaration.
3980         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3981         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3982         PREC_ORDER operators.
3983         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3984
3985 2014-06-19  Yao Qi  <yao@codesourcery.com>
3986
3987         * gdbthread.h (any_running): Remove the declaration.
3988         * thread.c (any_running): Remove.
3989
3990 2014-06-19  Yao Qi  <yao@codesourcery.com>
3991
3992         * gdbthread.h (struct thread_info) <state>: Change its type to
3993         'enum thread_state'.  Update comments.
3994
3995 2014-06-19  Pedro Alves  <palves@redhat.com>
3996
3997         * gdbthread.h (ALL_THREADS): Delete.
3998         (ALL_NON_EXITED_THREADS): New macro.
3999         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4000         instead of ALL_THREADS.
4001         * infrun.c (find_thread_needs_step_over)
4002         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4003         instead of ALL_THREADS.
4004         * record-btrace.c (record_btrace_open)
4005         (record_btrace_stop_recording, record_btrace_close)
4006         (record_btrace_is_replaying, record_btrace_resume)
4007         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4008         * remote.c (append_pending_thread_resumptions): Likewise.
4009         * thread.c (thread_apply_all_command): Likewise.
4010
4011 2014-06-19  Gary Benson  <gbenson@redhat.com>
4012
4013         * i386-nat.c (i386_stopped_by_watchpoint):
4014         Use i386_dr_stopped_by_watchpoint.
4015         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4016         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4017
4018 2014-06-19  Gary Benson  <gbenson@redhat.com>
4019
4020         * nat/i386-dregs.c: New file.
4021         * Makefile.in (i386-dregs.o): New rule.
4022         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4023         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4024         * config/i386/darwin.mh (NATDEPFILES): Likewise.
4025         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4026         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4027         * config/i386/go32.mh (NATDEPFILES): Likewise.
4028         * config/i386/linux.mh (NATDEPFILES): Likewise.
4029         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4030         * config/i386/mingw.mh (NATDEPFILES): Likewise.
4031         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4032         * i386-nat.h (debug_hw_points): New declaration.
4033         * i386-nat.c (breakpoint.h): Remove include.
4034         (command.h): Likewise.
4035         (target.h): Likewise.
4036         (gdb_assert.h): Likewise.
4037         (debug_hw_points): Made nonstatic.
4038         (debug_printf): Now in i386-dregs.c.
4039         (TARGET_HAS_DR_LEN_8): Likewise.
4040         (DR_CONTROL_SHIFT): Likewise.
4041         (DR_CONTROL_SIZE): Likewise.
4042         (DR_RW_EXECUTE): Likewise.
4043         (DR_RW_WRITE): Likewise.
4044         (DR_RW_READ): Likewise.
4045         (DR_RW_IORW): Likewise.
4046         (DR_LEN_1): Likewise.
4047         (DR_LEN_2): Likewise.
4048         (DR_LEN_4): Likewise.
4049         (DR_LEN_8): Likewise.
4050         (DR_LOCAL_ENABLE_SHIFT): Likewise.
4051         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4052         (DR_ENABLE_SIZE): Likewise.
4053         (DR_LOCAL_SLOWDOWN): Likewise.
4054         (DR_GLOBAL_SLOWDOWN): Likewise.
4055         (DR_CONTROL_RESERVED): Likewise.
4056         (I386_DR_CONTROL_MASK): Likewise.
4057         (I386_DR_VACANT): Likewise.
4058         (I386_DR_LOCAL_ENABLE): Likewise.
4059         (I386_DR_GLOBAL_ENABLE): Likewise.
4060         (I386_DR_DISABLE): Likewise.
4061         (I386_DR_SET_RW_LEN): Likewise.
4062         (I386_DR_GET_RW_LEN): Likewise.
4063         (I386_DR_WATCH_HIT): Likewise.
4064         (i386_wp_op_t): Likewise.
4065         (i386_show_dr): Likewise.
4066         (i386_length_and_rw_bits): Likewise.
4067         (i386_insert_aligned_watchpoint): Likewise.
4068         (i386_remove_aligned_watchpoint): Likewise.
4069         (i386_handle_nonaligned_watchpoint): Likewise.
4070         (i386_update_inferior_debug_regs): Likewise.
4071         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4072         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4073         (i386_region_ok_for_watchpoint):
4074         Use i386_dr_region_ok_for_watchpoint.
4075         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4076
4077 2014-06-19  Gary Benson  <gbenson@redhat.com>
4078
4079         * i386-nat.c (i386_insert_hw_breakpoint): Use
4080         i386_insert_watchpoint.
4081         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4082
4083 2014-06-19  Gary Benson  <gbenson@redhat.com>
4084
4085         * i386-nat.c (i386_dr_show): Renamed to
4086         i386_show_dr and made static.  All uses updated.
4087         (i386_dr_length_and_rw_bits): Renamed to
4088         i386_length_and_rw_bits and made static.
4089         All uses updated.
4090         (i386_dr_insert_aligned_watchpoint): Renamed to
4091         i386_insert_aligned_watchpoint and made static.
4092         All uses updated.
4093         (i386_dr_remove_aligned_watchpoint): Renamed to
4094         i386_remove_aligned_watchpoint and made static.
4095         All uses updated.
4096         (i386_dr_update_inferior_debug_regs): Renamed to
4097         i386_update_inferior_debug_regs and made static.
4098         All uses updated.
4099         * nat/i386-dregs.h (i386_dr_show): Removed.
4100         (i386_dr_length_and_rw_bits): Likewise.
4101         (i386_dr_insert_aligned_watchpoint): Likewise.
4102         (i386_dr_remove_aligned_watchpoint): Likewise.
4103         (i386_dr_update_inferior_debug_regs): Likewise.
4104
4105 2014-06-19  Gary Benson  <gbenson@redhat.com>
4106
4107         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4108         * configure: Regenerate.
4109         * config.in: Likewise.
4110         * main.c (signal.h): New include.
4111         (setup_alternate_signal_stack): New function.
4112         (captured_main): Call the above.
4113         * cp-support.c (signal.h): New include.
4114         (catch_demangler_crashes): New flag.
4115         (SIGJMP_BUF): New define.
4116         (SIGSETJMP): Likewise.
4117         (SIGLONGJMP): Likewise.
4118         (gdb_demangle_jmp_buf): New static global.
4119         (gdb_demangle_attempt_core_dump): Likewise.
4120         (gdb_demangle_signal_handler): New function.
4121         (gdb_demangle): If catch_demangler_crashes is set, install the
4122         above signal handler before calling bfd_demangle, and restore
4123         the original signal handler afterwards.  Display the offending
4124         symbol and call demangler_warning the first time a segmentation
4125         fault is caught.
4126         (_initialize_cp_support): New maint set/show command.
4127
4128 2014-06-19  Gary Benson  <gbenson@redhat.com>
4129
4130         * utils.h (resource_limit_kind): New enum.
4131         (can_dump_core): New declaration.
4132         (warn_cant_dump_core): Likewise.
4133         (dump_core): Likewise.
4134         * utils.c (dump_core): Made nonstatic.  Added new
4135         parameter "limit_kind".
4136         (can_dump_core): Made nonstatic. Moved printing code to...
4137         (warn_cant_dump_core): New function.
4138         (can_dump_core_warn): Likewise.
4139         (internal_vproblem): Replace calls to can_dump_core with
4140         calls to can_dump_core_warn.  Supply new argument to each.
4141
4142 2014-06-19  Gary Benson  <gbenson@redhat.com>
4143
4144         * utils.h (demangler_vwarning): New declaration.
4145         (demangler_warning): Likewise.
4146         * utils.c (struct internal_problem)
4147         <user_settable_should_quit>: New field.
4148         <user_settable_should_dump_core>: Likewise
4149         (internal_error_problem): Add values for above new fields.
4150         (internal_warning_problem): Likewise.
4151         (demangler_warning_problem): New static global.
4152         (demangler_vwarning): New function.
4153         (demangler_warning): Likewise.
4154         (add_internal_problem_command): Selectively add commands.
4155         (_initialize_utils): New internal problem command.
4156         * maint.c (maintenance_demangler_warning): New function.
4157         (_initialize_maint_cmds): New command.
4158
4159 2014-06-18  Tom Tromey  <tromey@redhat.com>
4160
4161         * f-valprint.c (info_common_command_for_block): Update.
4162         * symtab.h (struct general_symbol_info) <common_block>: Now
4163         const.
4164
4165 2014-06-18  Tom Tromey  <tromey@redhat.com>
4166
4167         * symtab.h (struct symtab) <blockvector>: Now const.
4168         * ada-lang.c (ada_add_global_exceptions): Update.
4169         * buildsym.c (augment_type_symtab): Update.
4170         * dwarf2read.c (dw2_lookup_symbol): Update.
4171         * jit.c (finalize_symtab): Update.
4172         * jv-lang.c (add_class_symtab_symbol): Update.
4173         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4174         Update.
4175         * objfiles.c (objfile_relocate1): Update.
4176         * psymtab.c (lookup_symbol_aux_psymtabs)
4177         (maintenance_check_psymtabs): Update.
4178         * python/py-symtab.c (stpy_global_block, stpy_static_block):
4179         Update.
4180         * spu-tdep.c (spu_catch_start): Update.
4181         * symmisc.c (dump_symtab_1): Update.
4182         * symtab.c (lookup_global_symbol_from_objfile)
4183         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4184         (basic_lookup_transparent_type_quick)
4185         (basic_lookup_transparent_type, find_pc_sect_symtab)
4186         (find_pc_sect_line, search_symbols): Update.
4187         * block.c (find_block_in_blockvector): Make "bl" const.
4188         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4189         const.
4190         (blockvector_contains_pc): Make "bv" const.
4191         (block_for_pc_sect): Update.
4192         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4193         (blockvector_contains_pc): Update.
4194         * breakpoint.c (resolve_sal_pc): Update.
4195         * inline-frame.c (block_starting_point_at): Update.
4196
4197 2014-06-18  Tom Tromey  <tromey@redhat.com>
4198
4199         * completer.c (complete_line): Make "line_buffer" const.
4200         * completer.h (complete_line): Update.
4201
4202 2014-06-18  Tom Tromey  <tromey@redhat.com>
4203
4204         * symtab.c (add_macro_name): Remove unneeded cast.
4205
4206 2014-06-18  Tom Tromey  <tromey@redhat.com>
4207
4208         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4209         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4210
4211 2014-06-18  Tom Tromey  <tromey@redhat.com>
4212
4213         * probe.c (info_probes_for_ops): Make "arg" const.
4214         * probe.h (info_probes_for_ops): Update.
4215
4216 2014-06-18  Tom Tromey  <tromey@redhat.com>
4217
4218         * varobj.c (varobj_create): Update.
4219         * valops.c (value_of_this): Update.
4220         * tracepoint.c (add_local_symbols, scope_info): Update.
4221         * symtab.h (struct general_symbol_info) <block>: Now const.
4222         * symtab.c (skip_prologue_sal)
4223         (default_make_symbol_completion_list_break_on)
4224         (skip_prologue_using_sal): Update.
4225         * stack.h (iterate_over_block_locals)
4226         (iterate_over_block_local_vars): Update.
4227         * stack.c (print_frame_args): Update.
4228         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4229         parameter const.
4230         (get_selected_block): Make return type const.
4231         * python/py-frame.c (frapy_block): Update.
4232         * python/py-block.c (gdbpy_block_for_pc): Update.
4233         * p-exp.y (%union) <bval>: Now const.
4234         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4235         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4236         * m2-exp.y (%union) <bval>: Now const.
4237         * linespec.c (get_current_search_block): Make return type const.
4238         (create_sals_line_offset, find_label_symbols): Update.
4239         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4240         Update.
4241         (block_starting_point_at): Make "block" const.
4242         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4243         (check_exception_resume): Update.
4244         * guile/scm-frame.c (gdbscm_frame_block): Update.
4245         * guile/scm-block.c (gdbscm_lookup_block): Update.
4246         * frame.h (get_frame_block): Update.
4247         (get_selected_block): Make return type const.
4248         * frame.c (frame_id_inner): Update.
4249         * f-valprint.c (info_common_command_for_block)
4250         (info_common_command): Update.
4251         * dwarf2loc.c (dwarf2_find_location_expression)
4252         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4253         (locexpr_describe_location_piece): Update.
4254         * c-exp.y (%union) <bval>: Now const.
4255         * breakpoint.c (resolve_sal_pc): Update.
4256         * blockframe.c (get_frame_block):Make return type const.
4257         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4258         (block_innermost_frame): Update.
4259         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4260         (block_for_pc, block_for_pc_sect): Update.
4261         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4262         'pblock' const.
4263         (block_for_pc_sect, block_for_pc): Make return type const.
4264         * ax-gdb.c (gen_expr): Update.
4265         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4266         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4267         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4268         (ada_read_var_value): Update.
4269         * ada-exp.y (struct name_info) <block>: Now const.
4270         (%union): Likewise.
4271         (block_lookup): Constify.
4272
4273 2014-06-18  Gary Benson  <gbenson@redhat.com>
4274
4275         * nat/i386-dregs.h: New file.
4276         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4277         * i386-nat.h (i386-dregs.h): New include.
4278         (DR_FIRSTADDR): Now in i386-dregs.h.
4279         (DR_LASTADDR): Likewise.
4280         (DR_NADDR): Likewise.
4281         (DR_STATUS): Likewise.
4282         (DR_CONTROL): Likewise.
4283         (i386_debug_reg_state): Likewise.
4284         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4285
4286 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4287
4288         * breakpoint.c (set_longjmp_breakpoint): Call
4289         momentary_breakpoint_from_master with additional argument.
4290         (set_longjmp_breakpoint_for_call_dummy): Call
4291         momentary_breakpoint_from_master with additional argument.
4292         (set_std_terminate_breakpoint): Call
4293         momentary_breakpoint_from_master with additional argument.
4294         (momentary_breakpoint_from_master): Add argument to function
4295         definition and use it to initialize structure member flag.
4296         (clone_momentary_breakpoint): Call
4297         momentary_breakpoint_from_master with additional argument.
4298         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4299         member flags set in momentary_breakpoint_from_master.
4300
4301 2014-06-18  Gary Benson  <gbenson@redhat.com>
4302
4303         * i386-nat.c (i386_show_dr): Renamed to
4304         i386_dr_show and made nonstatic.  All uses updated.
4305         (i386_length_and_rw_bits): Renamed to
4306         i386_dr_length_and_rw_bits and made nonstatic.
4307         All uses updated.
4308         (i386_insert_aligned_watchpoint): Renamed to
4309         i386_dr_insert_aligned_watchpoint and made nonstatic.
4310         All uses updated.
4311         (i386_remove_aligned_watchpoint): Renamed to
4312         i386_dr_remove_aligned_watchpoint and made nonstatic.
4313         All uses updated.
4314         (i386_update_inferior_debug_regs): Renamed to
4315         i386_dr_update_inferior_debug_regs and made nonstatic.
4316         All uses updated.
4317
4318 2014-06-18  Gary Benson  <gbenson@redhat.com>
4319
4320         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4321         (i386_dr_low_can_set_control): Likewise.
4322         (i386_dr_low_set_addr): Likewise.
4323         (i386_dr_low_set_control): Likewise.
4324         (i386_dr_low_get_addr): Likewise.
4325         (i386_dr_low_get_status): Likewise.
4326         (i386_dr_low_get_control): Likewise.
4327         (i386_insert_aligned_watchpoint): Use new macros.
4328         (i386_update_inferior_debug_regs): Likewise.
4329         (i386_stopped_data_address): Likewise.
4330
4331 2014-06-18  Gary Benson  <gbenson@redhat.com>
4332
4333         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4334         New parameter.  All uses updated.
4335
4336 2014-06-18  Gary Benson  <gbenson@redhat.com>
4337
4338         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4339         All uses updated.
4340
4341 2014-06-18  Gary Benson  <gbenson@redhat.com>
4342
4343         * i386-nat.c (debug_printf): New macro.
4344         (i386_get_debug_register_length): Likewise.
4345         (TARGET_HAS_DR_LEN_8): Use above macro.
4346         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4347         and printf_unfiltered.  Use phex to format values.
4348
4349 2014-06-18  Gary Benson  <gbenson@redhat.com>
4350
4351         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4352         Make const.
4353
4354 2014-06-18  Gary Benson  <gbenson@redhat.com>
4355
4356         * i386-nat.c: Comment changes.
4357
4358 2014-06-18  Gary Benson  <gbenson@redhat.com>
4359
4360         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4361
4362 2014-06-18  Gary Benson  <gbenson@redhat.com>
4363
4364         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4365         (i386_insert_aligned_watchpoint): Likewise.
4366         (i386_remove_aligned_watchpoint): Likewise.
4367         (i386_handle_nonaligned_watchpoint): Likewise.
4368
4369 2014-06-18  Gary Benson  <gbenson@redhat.com>
4370
4371         * i386-nat.c: Whitespace changes.
4372
4373 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4374
4375         * MAINTAINERS: Update Roland McGrath's email address.
4376         Thanks to Sergio Durigan Junior for pointing out that he left
4377         Red Hat a while ago, and giving me a current address.
4378
4379 2014-06-17  Tom Tromey  <tromey@redhat.com>
4380
4381         * utils.h (savestring): Remove declaration.
4382
4383 2014-06-17  Tom Tromey  <tromey@redhat.com>
4384
4385         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4386
4387 2014-06-16  Keith Seitz  <keiths@redhat.com>
4388
4389         PR mi/15863
4390         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4391         to update the varobj if inferior_ptid is null_ptid.
4392
4393 2014-06-16  Tom Tromey  <tromey@redhat.com>
4394
4395         * target.h (struct target_ops) <to_info_proc>: Make parameter
4396         const.
4397         (target_info_proc): Update.
4398         * target.c (target_info_proc): Make "args" const.
4399         * procfs.c (procfs_info_proc): Update.
4400         * linux-tdep.c (linux_info_proc): Update.
4401         (linux_core_info_proc_mappings): Make "args" const.
4402         (linux_core_info_proc): Update.
4403         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4404         * gdbarch.c: Rebuild.
4405         * gdbarch.h: Rebuild.
4406         * corelow.c (core_info_proc): Update.
4407
4408 2014-06-16  Tom Tromey  <tromey@redhat.com>
4409
4410         * target.h (struct target_ops) <to_disconnect>: Make parameter
4411         const.
4412         (target_disconnect): Update.
4413         * target.c (target_disconnect): Make "args" const.
4414         * target-delegates.c: Rebuild.
4415         * remote.c (remote_disconnect): Update.
4416         * record.h (record_disconnect): Update.
4417         * record.c (record_disconnect): Update.
4418         * inf-child.c (inf_child_disconnect): Update.
4419
4420 2014-06-16  Tom Tromey  <tromey@redhat.com>
4421
4422         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4423         * target.c (debug_to_rcmd, default_rcmd): Update.
4424         * target-delegates.c: Rebuild.
4425         * remote.c (remote_rcmd): Update.
4426         * monitor.c (monitor_rcmd): Update.
4427
4428 2014-06-16  Pedro Alves  <palves@redhat.com>
4429
4430         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4431         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4432         have OBJF_SHARED set.
4433         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4434         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4435         instead of OBJF_USERLOADED.
4436         * objfiles.h (OBJF_SHARED): Update comment.
4437         (userloaded_objfile_contains_address_p): Rename to ...
4438         (shared_objfile_contains_address_p): ... this, and update
4439         comments.
4440         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4441         new objfile.
4442         (remove_symbol_file_command): Skip objfiles that don't have
4443         OBJF_SHARED set.
4444
4445 2014-06-16  Tom Tromey  <tromey@redhat.com>
4446
4447         * minsyms.h (prim_record_minimal_symbol)
4448         (prim_record_minimal_symbol_and_info): Update comments.
4449
4450 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4451
4452         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4453         or --without-guile, according to how GDB was built.
4454
4455 2014-06-13  Tom Tromey  <tromey@redhat.com>
4456
4457         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4458         to help_list.
4459         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4460         to help_list.
4461         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4462         help_list.
4463         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4464         help_list.Pass all_commands, not -1, to help_list.
4465         * cli/cli-dump.c (dump_command, append_command)
4466         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4467         (binary_dump_command, binary_append_command): Pass all_commands,
4468         not -1, to help_list.
4469         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4470         -1, to help_list.
4471         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4472         -1, to help_list.
4473         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4474         help_list.
4475         * top.c (set_history): Pass all_commands, not -1, to help_list.
4476         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4477         all_commands, not -1, to help_list.
4478         * symfile.c (overlay_command): Pass all_commands, not -1, to
4479         help_list.
4480         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4481         help_list.
4482         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4483         help_list.
4484         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4485         -1, to help_list.
4486         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4487         not -1, to help_list.
4488         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4489         not -1, to help_list.
4490         * maint.c (maintenance_command, maintenance_info_command)
4491         (maintenance_print_command, maintenance_set_cmd): Pass
4492         all_commands, not -1, to help_list.
4493         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4494         help_list.
4495         * language.c (set_check): Pass all_commands, not -1, to help_list.
4496         * infcmd.c (unset_command): Pass all_commands, not -1, to
4497         help_list.
4498         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4499         help_list.
4500         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4501         help_list.
4502         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4503         help_list.
4504         * breakpoint.c (save_command): Pass all_commands, not -1, to
4505         help_list.
4506         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4507         all_commands, not -1, to help_list.
4508
4509 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4510
4511         * regcache.c (struct register_to_invalidate): New structure.
4512         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4513         functions.
4514         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4515
4516 2014-06-12  Yao Qi  <yao@codesourcery.com>
4517
4518         * varobj.c (varobj_get_num_children): Call
4519         varobj_is_dynamic_p.
4520         (varobj_list_children): Likewise.
4521         (varobj_update): Likewise.  Update comments.
4522
4523 2014-06-12  Yao Qi  <yao@codesourcery.com>
4524
4525         * varobj.c (varobj_pretty_printed_p): Rename to ...
4526         (varobj_is_dynamic_p): ... this.  New function.
4527         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4528         (varobj_is_dynamic_p): Declare.
4529         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4530         (mi_print_value_p, varobj_update_one): Likewise.
4531
4532 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4533             Yao Qi  <yao@codesourcery.com>
4534
4535         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4536         (varobj_get_iterator): Wrap up code for pretty-printer by
4537         "#if HAVE_PYTHON" and "#endif".
4538         (update_dynamic_varobj_children): Likewise.
4539
4540 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4541             Yao Qi  <yao@codesourcery.com>
4542
4543         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4544         gdb_python_initialized is false.  Move some code from varobj.c.
4545         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4546         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4547         (struct varobj_item): Moved to varobj-iter.h".
4548         (varobj_clear_saved_item): New function.
4549         (update_dynamic_varobj_children): Move python-related code to
4550         py-varobj.c.
4551         (free_variable): Call varobj_clear_saved_item and
4552         varobj_iter_delete.
4553
4554 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4555             Yao Qi  <yao@codesourcery.com>
4556
4557         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4558         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4559         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4560         (py-varobj.o): New rule.
4561         * python/py-varobj.c: New file.
4562         * python/python-internal.h (py_varobj_get_iterator): Declare.
4563         * varobj-iter.h: New file.
4564         * varobj.c: Include "varobj-iter.h"
4565         (struct varobj) <child_iter>: Change its type from "PyObject *"
4566         to "struct varobj_iter *".
4567         <saved_item>: Likewise.
4568         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4569         [HAVE_PYTHON] (varobj_get_iterator): New function.
4570         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4571         python-specific code to python/py-varobj.c.
4572         (install_visualizer): Call varobj_iter_delete instead of
4573         Py_XDECREF.
4574         * varobj.h (varobj_ensure_python_env): Declare.
4575
4576 2014-06-12  Yao Qi  <yao@codesourcery.com>
4577
4578         * varobj.c (struct varobj_item): New structure.
4579         (create_child_with_value): Update declaration.
4580         (varobj_add_child): Replace arguments 'name' and 'value' with
4581         'item'.  All callers updated.
4582         (install_dynamic_child): Likewise.
4583         (update_dynamic_varobj_children): Likewise.
4584         (varobj_add_child): Likewise.
4585         (create_child_with_value): Likewise.
4586
4587 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4588
4589         * NEWS: Create a new section for the next release branch.
4590         Rename the section of the current branch, now that it has
4591         been cut.
4592
4593 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4594
4595         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4596         * version.in: Bump version to 7.8.50.DATE-cvs.
4597
4598 2014-06-11  Pedro Alves  <palves@redhat.com>
4599
4600         PR remote/17028
4601         * ser-mingw.c (net_windows_socket_check_pending): New function.
4602         (net_windows_select_thread): Ignore spurious wakeups.  Use
4603         net_windows_socket_check_pending.
4604         (net_windows_wait_handle): Check for pending events with
4605         ioctlsocket, through net_windows_socket_check_pending, instead of
4606         checking the socket's event.
4607
4608 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4609
4610         * python/python-internal.h (gdb_PyObject_GetAttrString)
4611         (gdb_PyObject_HasAttrString): New inline function definitions.
4612         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4613         char * of the second argument to PyObject_GetAttrString.
4614
4615 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4616
4617         * serial.c (serial_write): Fix index of character to be printed
4618         in call to serial_logchar when serial debug traces are enabled.
4619
4620 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4621
4622         * gdbtypes (resolve_dynamic_range): Add function description.
4623
4624 2014-06-09  Pedro Alves  <palves@redhat.com>
4625
4626         * linux-nat.c (linux_child_follow_fork): Initialize status with
4627         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4628         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4629         state.
4630
4631 2014-06-09  Gary Benson  <gbenson@redhat.com>
4632
4633         * common/signals.c (gdb_signal_from_host): Reorder to separate
4634         the always-available ANSI-standard signals from the signals that
4635         require checking.
4636         (do_gdb_signal_to_host): Likewise.
4637         * proc-events.c (signal_table): Likewise.
4638
4639 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4640
4641         * common/linux-ptrace.c (linux_disable_event_reporting): New
4642         function.
4643         * common/linux-ptrace.h (linux_disable_event_reporting): New
4644         declaration.
4645         * linux-nat.c (linux_child_follow_fork): Do a single step before
4646         detach.
4647
4648 2014-06-07  Keith Seitz  <keiths@redhat.com>
4649
4650         Revert:
4651         PR c++/16253
4652         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4653         from symbol_matches_domain in symtab.c. All local callers
4654         of symbol_matches_domain updated.
4655         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4656         search STRUCT_DOMAIN.
4657         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4658         independently.  standard_lookup will do that automatically.
4659         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4660         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4661         (cp_lookup_symbol_in_namespace): Likewise.
4662         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4663         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4664         may return a STRUCT_DOMAIN match.
4665         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4666         * cp-support.c: Include language.h.
4667         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4668         VAR_DOMAIN.
4669         * psymtab.c (match_partial_symbol): Compare the requested
4670         domain with the symbol's domain directly.
4671         (lookup_partial_symbol): Likewise.
4672         * symtab.c (lookup_symbol_in_language): Explain when/why
4673         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4674         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4675         appropriate languages.
4676         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4677         and moved to ada-lang.c
4678         (lookup_block_symbol): Explain that this function only returns
4679         symbol matching the requested DOMAIN.
4680         Compare the requested domain with the symbol's domain directly.
4681         (iterate_over_symbols): Compare the requested domain with the
4682         symbol's domain directly.
4683         * symtab.h (symbol_matches_domain): Remove.
4684
4685 2014-06-06  Doug Evans  <xdje42@gmail.com>
4686
4687         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4688         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4689         (gdbscm_guile_version_is_at_least): Declare.
4690         (gdbscm_scm_string_to_int): Declare.
4691         * guile/guile.c (gdbscm_guile_major_version): New global.
4692         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4693         (guile_datadir): New static global.
4694         (gdbscm_guile_data_directory): New function.
4695         (initialize_scheme_side): Update.
4696         (misc_guile_functions): Add guile-data-directory.
4697         (initialize_gdb_module): Fetch guile version number.
4698         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4699         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4700         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4701         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4702         comments.
4703         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4704         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4705         * guile/scm-value.c (gdbscm_value_to_string): Only call
4706         scm_port_conversion_strategy if Guile version >= 2.0.6.
4707
4708 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4709
4710         * main.c (print_gdb_help): Add -q and --silent.
4711
4712 2014-06-06  Gary Benson  <gbenson@redhat.com>
4713
4714         * common/signals.c: Remove preprocessor conditionals for
4715         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4716         SIGSEGV and SIGTERM.
4717         * proc-events.c: Likewise.
4718
4719 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4720
4721         * symfile.c (symfile_free_objfile): Remove restriction to
4722         OBJF_USERLOADED.
4723         * symfile-mem.c (symbol_file_add_from_memory): Call
4724         add_target_sections_of_objfile.
4725
4726 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4727
4728         * guile/scm-value.c (gdbscm_history_append_x): Use
4729         'vlscm_get_value_smob_arg_unsafe' instead of
4730         'vlscm_scm_to_value'.
4731
4732 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4733
4734         PR mi/15806
4735         * utils.c (printchar): Don't escape at all if quoter is NUL.
4736         Update function documentation to clarify effect of parameter
4737         QUOTER.
4738         * remote.c (escape_buffer): Pass '\\' as the quoter to
4739         fputstrn_unfiltered.
4740         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4741         generate the output.
4742         (mi_solib_unloaded): Same.
4743
4744 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4745
4746         * development.sh: Delete.
4747         * Makefile.in (config.status): Adjust dependency on development.sh.
4748         * configure.ac: Adjust development.sh source call.
4749         * configure: Regenerate.
4750
4751 2014-06-04  Doug Evans  <xdje42@gmail.com>
4752
4753         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4754         is_scheme_bkpt, spec.
4755         (bpscm_make_breakpoint_smob): Initialize new members.
4756         (gdbscm_create_breakpoint_x): Split into two ...
4757         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4758         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4759         (scheme_function breakpoint_functions): Update.
4760         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4761         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4762         register-breakpoint!.
4763
4764 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4765
4766         PR server/17023
4767         * mem-break.c (z_type_supported): Return zero if
4768         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4769
4770 2014-06-04  Tom Tromey  <tromey@redhat.com>
4771
4772         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4773         value_from_contents_and_address_unresolved.
4774         (ada_template_to_fixed_record_type_1): Likewise.
4775         (ada_which_variant_applies): Likewise.
4776         * value.h (value_from_contents_and_address_unresolved): Declare.
4777         * value.c (value_from_contents_and_address_unresolved): New
4778         function.
4779         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4780         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4781         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4782
4783 2014-06-04  Tom Tromey  <tromey@redhat.com>
4784
4785         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4786
4787 2014-06-04  Tom Tromey  <tromey@redhat.com>
4788
4789         * procfs.c (procfs_attach): Make "args" const.
4790         * windows-nat.c (windows_attach): Make "args" const.
4791         * nto-procfs.c (procfs_attach): Make "args" const.
4792         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4793         * go32-nat.c (go32_attach): Make "args" const.
4794         * gnu-nat.c (gnu_attach): Make "args" const.
4795         * darwin-nat.c (darwin_attach): Make "args" const.
4796         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4797         * linux-nat.c (linux_nat_attach): Make "args" const.
4798         * remote.c (extended_remote_attach_1, extended_remote_attach):
4799         Make "args" const.
4800         * target.h (struct target_ops) <to_attach>: Make "args" const.
4801         (find_default_attach): Likewise.
4802         * utils.c (parse_pid_to_attach): Make "args" const.
4803         * utils.h (parse_pid_to_attach): Update.
4804
4805 2014-06-04  Tom Tromey  <tromey@redhat.com>
4806
4807         * target-delegates.c: Rebuild.
4808         * target.c (default_thread_address_space): New function.
4809         (target_thread_address_space): Simplify.
4810         * target.h (struct target_ops) <to_thread_address_space>: Add
4811         TARGET_DEFAULT_FUNC.
4812
4813 2014-06-04  Doug Evans  <xdje42@gmail.com>
4814
4815         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4816
4817 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4818
4819         * record-btrace.c: Include event-loop.h and inf-loop.h.
4820         (record_btrace_resume_exec_dir)
4821         (record_btrace_async_inferior_event_handler)
4822         (record_btrace_handle_async_inferior_event): New.
4823         (record_btrace_open): Create async event handler.
4824         (record_btrace_close): Delete async event handler.
4825         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4826         Mark async event handler.
4827         (record_btrace_execution_direction): New.
4828         (init_record_btrace_ops): Initialize to_execution_direction.
4829
4830 2014-06-03  Doug Evans  <xdje42@gmail.com>
4831
4832         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4833         (gdbscm_make_parameter): Ditto.
4834
4835 2014-06-03  Doug Evans  <dje@google.com>
4836
4837         * exec.c (exec_close_1): Call clear_section_table instead of
4838         resize_section_table.
4839         (clear_section_table): New function.
4840         (resize_section_table): Make static.  Rename arg num_added to
4841         adjustment.
4842         * exec.h (clear_section_table): Declare.
4843         (resize_section_table): Delete.
4844         * progspace.c (release_program_space): Call clear_section_table
4845         instead of resize_section_table.
4846
4847 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4848
4849         * NEWS (Python Scripting): Add entry about the new xmethods
4850         feature.
4851
4852 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4853
4854         * python/py-xmethods.c: New file.
4855         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4856         (objfpy_dealloc): XDECREF on the new xmethods field.
4857         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4858         field.
4859         (objfpy_get_xmethods): New function.
4860         (objfile_getset): New entry 'xmethods'.
4861         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4862         (pspy_dealloc): XDECREF on the new xmethods field.
4863         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4864         field.
4865         (pspy_get_xmethods): New function.
4866         (pspace_getset): New entry 'xmethods'.
4867         * python/python-internal.h: Add declarations for new functions.
4868         * python/python.c (_initialize_python): Invoke
4869         gdbpy_initialize_xmethods.
4870         * python/lib/gdb/__init__.py (xmethods): New
4871         attribute.
4872         * python/lib/gdb/xmethod.py: New file.
4873         * python/lib/gdb/command/xmethods.py: New file.
4874
4875 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4876
4877         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4878         best match method returned by find_overload_match is an xmethod.
4879         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4880         the best matching operator returned by find_overload_match is an
4881         xmethod.
4882         * valops.c: #include "extension.h".
4883         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4884         Return void.  The list of matching source methods is returned in
4885         "fn_list" and a vector of matching debug method workers is
4886         returned in "xm_worker_vec".  Update all callers.
4887         (value_find_oload_method_list): Likewise.
4888         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4889         non-NULL, then the index of the best matching method in this
4890         vector is returned.  Update all callers.
4891         (find_overload_match): Include xmethods while performing overload
4892         resolution.
4893
4894 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4895
4896         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4897         * extension-priv.h (struct extension_language_ops): Add the
4898         xmethod interface.
4899         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4900         get_matching_xmethod_workers, get_xmethod_argtypes,
4901         invoke_xmethod, free_xmethod_worker,
4902         free_xmethod_worker_vec): New functions.
4903         * extension.h: #include "common/vec.h".
4904         New function declarations.
4905         (struct xmethod_worker): New struct.
4906         (VEC (xmethod_worker_ptr)): New vector type.
4907         (xmethod_worker_ptr): New typedef.
4908         (xmethod_worker_vec): Likewise.
4909         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4910         builtin_type.
4911         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4912         (struct builtin_type): New field "xmethod".
4913         * valarith.c (value_ptradd): Assert that the value argument is not
4914         lval_xcallable.
4915         * valops.c (value_must_coerce_to_target): Return 0 for
4916         lval_xcallable values.
4917         * value.c (struct value): New field XM_WORKER in the field
4918         LOCATION.
4919         (value_address, value_raw_address): Return 0 for lval_xcallable
4920         values.
4921         (set_value_address): Assert that the value is not an
4922         lval_xcallable.
4923         (value_free): Free the associated xmethod worker when freeing
4924         lval_xcallable values.
4925         (set_value_component_location): Assert that the WHOLE value is not
4926         lval_xcallable.
4927         (value_of_xmethod, call_xmethod): New functions.
4928         * value.h: Declare "struct xmethod_worker".
4929         Declare new functions value_of_xmethod, call_xmethod.
4930
4931 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4932             Pedro Alves  <palves@redhat.com>
4933
4934         PR breakpoints/17000
4935         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4936         New function, extracted from software_breakpoint_inserted_here_p.
4937         (software_breakpoint_inserted_here_p): Replace factored out code
4938         by call to find_non_raw_software_breakpoint_inserted_here.
4939         (bp_target_info_copy_insertion_state): New function.
4940         (bkpt_insert_location): Handle the case of a single-step
4941         breakpoint already inserted at the same address.
4942         (bkpt_remove_location): Handle the case of a single-step
4943         breakpoint still inserted at the same address.
4944         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4945         breakpoint already inserted at the same address.
4946         (deprecated_remove_raw_breakpoint): Handle the case of a
4947         non-raw breakpoint still inserted at the same address.
4948         (find_single_step_breakpoint): New function, extracted from
4949         single_step_breakpoint_inserted_here_p.
4950         (find_single_step_breakpoint): New function,
4951         factored out from single_step_breakpoint_inserted_here_p.
4952         (single_step_breakpoint_inserted_here_p): Reimplement.
4953
4954 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4955
4956         Pushed by Joel Brobecker  <brobecker@adacore.com>
4957         * source.c (show_substitute_path_command): Fix display of matching
4958         substitution rules.
4959
4960 2014-06-03  Gary Benson  <gbenson@redhat.com>
4961
4962         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4963
4964 2014-06-02  Doug Evans  <xdje42@gmail.com>
4965
4966         Add parameter support for Guile.
4967         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4968         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4969         (scm-param.o): New rule.
4970         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4971         (gdbscm_misc_error): Declare.
4972         (gdbscm_canonicalize_command_name): Declare.
4973         (gdbscm_scm_to_host_string): Declare.
4974         (gdbscm_scm_from_host_string): Declare.
4975         (gdbscm_initialize_parameters): Declare.
4976         * guile/guile.c (initialize_gdb_module): Call
4977         gdbscm_initialize_parameters.
4978         * guile/lib/gdb.scm: Export parameter symbols.
4979         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4980         cmdscm_canonicalize_name and made public.  All callers updated.
4981         * guile/scm-exception.c (gdbscm_misc_error): New function.
4982         * guile/scm-param.c: New file.
4983         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4984         (gdbscm_scm_to_host_string): New function.
4985         (gdbscm_scm_from_host_string): New function.
4986         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4987
4988 2014-06-02  Doug Evans  <xdje42@gmail.com>
4989
4990         Add command support for Guile.
4991         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4992         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4993         (scm-cmd.o): New rule.
4994         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4995         (gdbscm_user_error_p): Declare.
4996         (gdbscm_parse_command_name): Declare.
4997         (gdbscm_valid_command_class_p): Declare.
4998         (gdbscm_initialize_commands): Declare.
4999         * guile/guile.c (initialize_gdb_module): Call
5000         gdbscm_initialize_commands.
5001         * guile/lib/gdb.scm: Export command symbols.
5002         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5003         (throw-user-error): New function.
5004         * guile/scm-cmd.c: New file.
5005         * guile/scm-exception.c (user_error_symbol): New static global.
5006         (gdbscm_user_error_p): New function.
5007         (gdbscm_initialize_exceptions): Set user_error_symbol.
5008         * scm-utils.c (gdbscm_gc_xstrdup): New function.
5009
5010 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
5011
5012         * top.c (command_loop): Handle comments here...
5013         (command_line_input): ... not here.
5014
5015 2014-06-02  Doug Evans  <xdje42@gmail.com>
5016
5017         Add progspace support for Guile.
5018         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5019         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5020         (scm-progspace.o): New rule.
5021         * guile/guile-internal.h (pspace_smob): New typedef.
5022         (psscm_pspace_smob_pretty_printers): Declare.
5023         (psscm_pspace_smob_from_pspace): Declare.
5024         (psscm_scm_from_pspace): Declare.
5025         * guile/guile.c (initialize_gdb_module): Call
5026         gdbscm_initialize_pspaces.
5027         * guile/lib/gdb.scm: Export progspace symbols.
5028         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5029         support.
5030         (append-pretty-printer!): Ditto.
5031         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5032         Implement.
5033         * guile/scm-progspace.c: New file.
5034
5035 2014-06-03  Alan Modra  <amodra@gmail.com>
5036
5037         * ppc64-tdep.c (ppc64_standard_linkage8): New.
5038         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5039
5040 2014-06-02  Doug Evans  <dje@google.com>
5041
5042         Add support for skeletonless type units.
5043         * dwarf2read.c (struct dwarf2_per_objfile): New member
5044         n_allocated_type_units.
5045         (struct dwarf2_per_objfile) <tu_stats>: New member
5046         nr_all_type_units_reallocs.
5047         (create_signatured_type_table_from_index): Initialize
5048         n_allocated_type_units
5049         (create_all_type_units): Ditto.
5050         (add_type_unit): Move up in file.  New arg slot.
5051         All callers updated.  Increase space for all_type_units more
5052         efficiently.
5053         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5054         (lookup_dwo_signatured_type): Handle skeletonless TUs.
5055         (lookup_dwp_signatured_type): Ditto.
5056         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5057         All callers updated.
5058         (build_type_psymtabs_1): Leave type_unit_groups as
5059         NULL if no TUs present.
5060         (print_tu_stats): New function.
5061         (process_skeletonless_type_unit): New function.
5062         (process_dwo_file_for_skeletonless_type_units): New
5063         function.
5064         (process_skeletonless_type_units): New function.
5065         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5066         Call print tu_stats if debugging enabled.
5067
5068 2014-06-02  Pedro Alves  <palves@redhat.com>
5069
5070         * breakpoint.c (build_target_command_list): Don't build a command
5071         list if we have any duplicate location that isn't a dprintf.
5072
5073 2014-06-02  Pedro Alves  <palves@redhat.com>
5074
5075         * breakpoint.c (dprintf_breakpoint_hit): New function.
5076         (initialize_breakpoint_ops): Install it as dprintf's
5077         breakpoint_hit method.
5078
5079 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5080
5081         * source.c (substitute_path_rule_matches): Simplify using
5082         filename_ncmp instead of FILENAME_CMP.
5083
5084 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5085
5086         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5087
5088 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5089
5090         * configure.ac: When Guile is available, check for the
5091         availability of 'scm_new_smob'.
5092         * configure, config.h.in: Regenerate.
5093         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5094         function.
5095
5096 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5097
5098         * frame.c (struct frame_info): Add stop_string field.
5099         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5100         (get_prev_frame_always): Old content moved into
5101         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5102         TRY_CATCH, handle MEMORY_ERROR exceptions.
5103         (frame_stop_reason_string): New function definition.
5104         * frame.h (unwind_stop_reason_to_string): Extend comment to
5105         mention frame_stop_reason_string.
5106         (frame_stop_reason_string): New function declaration.
5107         * stack.c (frame_info): Switch to frame_stop_reason_string.
5108         (backtrace_command_1): Switch to frame_stop_reason_string.
5109         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5110         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5111         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5112
5113 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5114
5115         * frame.c (frame_stop_reason_string): Rename to ...
5116         (unwind_stop_reason_to_string): this.
5117         * frame.h (frame_stop_reason_string): Rename to ...
5118         (unwind_stop_reason_to_string): this.
5119         * stack.c (frame_info): Update call to frame_stop_reason_string.
5120         (backtrace_command_1): Likewise.
5121         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5122         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5123
5124 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5125
5126         * frame.c (remove_prev_frame): New function.
5127         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5128         remove_prev_frame.
5129
5130 2014-05-29  Pedro Alves  <palves@redhat.com>
5131
5132         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5133         and make it const.  When a single-step decays to a continue,
5134         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5135         to step to user_visible_resume_ptid, not what we ask the
5136         target to do.
5137
5138 2014-05-29  Pedro Alves  <palves@redhat.com>
5139
5140         * infrun.c (process_event_stop_test, handle_step_into_function)
5141         (handle_step_into_function_backward): Adjust.
5142         Don't set the even thread's stop_step and call stop_waiting before
5143         calling end_stepping_range.  Instead do that ...
5144         (end_stepping_range): ... here.  Take an ecs pointer parameter.
5145
5146 2014-05-29  Pedro Alves  <palves@redhat.com>
5147
5148         * infrun.c (stop_stepping): Rename to ...
5149         (stop_waiting): ... this.
5150         (proceed): Update comment.
5151         (process_event_stop_test, handle_inferior_event)
5152         (handle_signal_stop, handle_step_into_function)
5153         (handle_step_into_function_backward): Update.
5154
5155 2014-05-29  Pedro Alves  <palves@redhat.com>
5156
5157         * infcall.c (run_inferior_call): Don't check whether the current
5158         thread is running after the proceed call.
5159
5160 2014-05-29  Pedro Alves  <palves@redhat.com>
5161             Tom Tromey  <tromey@redhat.com>
5162
5163         * NEWS: Mention "maint set target-async", "set mi-async", and that
5164         background execution commands are now always available.
5165         * target.h (target_async_permitted): Update comment.
5166         * target.c (target_async_permitted, target_async_permitted_1):
5167         Default to 1.
5168         (set_target_async_command): Rename to ...
5169         (maint_set_target_async_command): ... this.
5170         (show_target_async_command): Rename to ...
5171         (maint_show_target_async_command): ... this.
5172         (_initialize_target): Adjust.
5173         * infcmd.c (prepare_execution_command): Make extern.
5174         * inferior.h (prepare_execution_command): Declare.
5175         * infrun.c (set_observer_mode): Leave target async alone.
5176         * mi/mi-interp.c (mi_interpreter_init): Install
5177         mi_on_sync_execution_done as sync_execution_done observer.
5178         (mi_on_sync_execution_done): New function.
5179         (mi_execute_command_input_handler): Don't print the prompt if we
5180         just started a synchronous command with an async target.
5181         (mi_on_resume): Check sync_execution before printing prompt.
5182         * mi/mi-main.h (mi_async_p): Declare.
5183         * mi/mi-main.c: Include gdbcmd.h.
5184         (mi_async_p): New function.
5185         (mi_async, mi_async_1): New globals.
5186         (set_mi_async_command, show_mi_async_command, mi_async): New
5187         functions.
5188         (exec_continue): Call prepare_execution_command.
5189         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5190         (mi_execute_async_cli_command): Use mi_async_p.
5191         (_initialize_mi_main): Install "set mi-async".  Make
5192         "target-async" a deprecated alias.
5193
5194 2014-05-29  Pedro Alves  <palves@redhat.com>
5195
5196         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5197         (_initialize_cli_interp): Adjust.
5198         * event-loop.c: Include "observer.h".
5199         (start_event_loop): Notify 'command_error' observers instead of
5200         calling display_gdb_prompt.  Remove FIXME comment.
5201         * event-top.c (display_gdb_prompt): Remove call into the
5202         interpreters.
5203         * inf-loop.c: Include "observer.h".
5204         (inferior_event_handler): Notify 'command_error' observers instead
5205         of calling display_gdb_prompt.
5206         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5207         observers instead of calling display_gdb_prompt.
5208         * interps.c (interp_set): Don't call display_gdb_prompt.
5209         (current_interp_display_prompt_p): Delete.
5210         * interps.h (interp_prompt_p): Delete declaration.
5211         (interp_prompt_p_ftype): Delete.
5212         (struct interp_procs) <prompt_proc_p>: Delete field.
5213         (current_interp_display_prompt_p): Delete declaration.
5214         * mi-interp.c (mi_interpreter_prompt_p): Delete.
5215         (_initialize_mi_interp): Adjust.
5216         * tui-interp.c (tui_init): Install 'sync_execution_done' and
5217         'command_error' observers.
5218         (tui_on_sync_execution_done, tui_on_command_error): New
5219         functions.
5220         (tui_display_prompt_p): Delete.
5221         (_initialize_tui_interp): Adjust.
5222
5223 2014-05-29  Pedro Alves  <palves@redhat.com>
5224
5225         PR gdb/13860
5226         * cli/cli-interp.c: Include infrun.h and observer.h.
5227         (cli_uiout, cli_interp): New globals.
5228         (cli_on_signal_received, cli_on_end_stepping_range)
5229         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5230         functions.
5231         (cli_interpreter_init): Install them as 'end_stepping_range',
5232         'signal_received' 'signal_exited', 'exited' and 'no_history'
5233         observers.
5234         (_initialize_cli_interp): Remove cli_interp local.
5235         * infrun.c (handle_inferior_event): Call the several stop reason
5236         observers instead of printing the stop reason directly.
5237         (end_stepping_range): New function.
5238         (print_end_stepping_range_reason, print_signal_exited_reason)
5239         (print_exited_reason, print_signal_received_reason)
5240         (print_no_history_reason): Make static, and add an uiout
5241         parameter.  Print to that instead of to CURRENT_UIOUT.
5242         * infrun.h (print_end_stepping_range_reason)
5243         (print_signal_exited_reason, print_exited_reason)
5244         (print_signal_received_reason print_no_history_reason): New
5245         declarations.
5246         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5247         'mi_uiout'.
5248         <cli_uiout>: New field.
5249         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5250         uiout for CLI output.  Install 'signal_received',
5251         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5252         observers.
5253         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5254         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5255         (mi_on_no_history): New functions.
5256         (ui_out_free_cleanup): Delete function.
5257         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5258         instead use the one already stored in the MI interpreter data.
5259         (mi_ui_out): Adjust.
5260         * tui/tui-interp.c: Include infrun.h and observer.h.
5261         (tui_interp): New global.
5262         (tui_on_signal_received, tui_on_end_stepping_range)
5263         (tui_on_signal_exited, tui_on_exited)
5264         (tui_on_no_history): New functions.
5265         (tui_init): Install them as 'end_stepping_range',
5266         'signal_received' 'signal_exited', 'exited' and 'no_history'
5267         observers.
5268         (_initialize_tui_interp): Delete tui_interp local.
5269
5270 2014-05-29  Pedro Alves  <palves@redhat.com>
5271
5272         PR gdb/15713
5273         * linux-nat.c (linux_nat_resume_callback): Rename the second
5274         parameter to 'except'.  Skip LP if it points to EXCEPT.
5275         (linux_nat_resume): Don't mark the event lwp as not stopped
5276         before resuming sibling lwps.  Instead ask
5277         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5278         stopped after actually resuming it.
5279         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5280         resuming it.
5281         (wait_lwp): Mark the lwp as stopped here.
5282         (stop_wait_callback): Mark the lwp as not stopped right after
5283         resuming it.  Don't mark lwps as stopped here.
5284         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5285         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5286
5287 2014-05-29  Pedro Alves  <palves@redhat.com>
5288
5289         PR PR15693
5290         * infrun.c (resume): Determine how much to resume depending on
5291         whether the caller wanted a step, not whether we can hardware step
5292         the target.  Mark all threads that we intend to run as running,
5293         unless we're calling an inferior function.
5294         (normal_stop): If the thread is running an infcall, don't finish
5295         thread state.
5296         * target.c (target_resume): Don't mark threads as running here.
5297
5298 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5299
5300         * serial.c (_initialize_serial): Remove support for
5301         the "set remotebaud" and "show remotebaud" commands.
5302         * NEWS: Add entry documenting the removal of that command.
5303
5304 2014-05-28  Yao Qi  <yao@codesourcery.com>
5305
5306         * charset.c: Fix typo in comments.
5307
5308 2014-05-27  Gary Benson  <gbenson@redhat.com>
5309
5310         * utils.c (internal_vproblem): Prompt for a bug report.
5311
5312 2014-05-26  Andy Wingo  <wingo@igalia.com>
5313
5314         * guile/scm-arch.c (arscm_mark_arch_smob):
5315         * guile/scm-block.c (bkscm_mark_block_smob)
5316         (bkscm_mark_block_syms_progress_smob):
5317         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5318         * guile/scm-exception.c (exscm_mark_exception_smob):
5319         * guile/scm-frame.c (frscm_mark_frame_smob):
5320         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5321         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5322         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5323         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5324         (ppscm_mark_pretty_printer_worker_smob):
5325         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5326         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5327         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5328         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5329         mark functions.
5330         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5331         function.
5332
5333 2014-05-26  Andy Wingo  <wingo@igalia.com>
5334             Doug Evans  <xdje42@gmail.com>
5335
5336         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5337         empty_base_class.  All uses updated.
5338         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5339         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5340         Adapt all callers.
5341         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5342         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5343         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5344         (gdbscm_gsmob_has_property_p, add_property_name)
5345         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5346         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5347         (gdb-object-has-property?, gdb-object-properties): Remove.
5348         (gdb-object-kind): Renamed from gsmob-kind.
5349
5350 2014-05-26  Andy Wingo  <wingo@igalia.com>
5351
5352         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5353         * configure: Regenerate.
5354
5355 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5356
5357         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5358
5359 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5360
5361         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5362         (replay_memory_access_read_only, replay_memory_access_read_write)
5363         (replay_memory_access_types, replay_memory_access)
5364         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5365         (cmd_set_record_btrace, cmd_show_record_btrace)
5366         (cmd_show_replay_memory_access): New.
5367         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5368         (record_btrace_remove_breakpoint): Replace
5369         record_btrace_allow_memory_access with replay_memory_access.
5370         (_initialize_record_btrace): Add commands.
5371         * NEWS: Announce it.
5372
5373 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5374
5375         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5376
5377 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5378
5379         * MAINTAINERS (Write After Approval): Move self back from
5380         paper trail.
5381
5382 2014-05-22  Pedro Alves  <palves@redhat.com>
5383
5384         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5385         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5386         (disable_randomization, enum exec_direction_kind)
5387         (execution_direction, stop_registers, start_remote)
5388         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5389         (wait_for_inferior, normal_stop, get_last_target_status)
5390         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5391         (insert_step_resume_breakpoint_at_sal)
5392         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5393         (set_step_info, print_stop_event, signal_stop_state)
5394         (signal_print_state, signal_pass_state, signal_stop_update)
5395         (signal_print_update, signal_pass_update)
5396         (update_signals_program_target, clear_exit_convenience_vars)
5397         (displaced_step_dump_bytes, update_observer_mode)
5398         (signal_catch_update, gdb_signal_from_command): Move
5399         declarations ...
5400         * infrun.h: ... to this new file.
5401         * amd64-tdep.c: Include infrun.h.
5402         * annotate.c: Include infrun.h.
5403         * arch-utils.c: Include infrun.h.
5404         * arm-linux-tdep.c: Include infrun.h.
5405         * arm-tdep.c: Include infrun.h.
5406         * break-catch-sig.c: Include infrun.h.
5407         * breakpoint.c: Include infrun.h.
5408         * common/agent.c: Include infrun.h instead of inferior.h.
5409         * corelow.c: Include infrun.h.
5410         * event-top.c: Include infrun.h.
5411         * go32-nat.c: Include infrun.h.
5412         * i386-tdep.c: Include infrun.h.
5413         * inf-loop.c: Include infrun.h.
5414         * infcall.c: Include infrun.h.
5415         * infcmd.c: Include infrun.h.
5416         * infrun.c: Include infrun.h.
5417         * linux-fork.c: Include infrun.h.
5418         * linux-nat.c: Include infrun.h.
5419         * linux-thread-db.c: Include infrun.h.
5420         * monitor.c: Include infrun.h.
5421         * nto-tdep.c: Include infrun.h.
5422         * procfs.c: Include infrun.h.
5423         * record-btrace.c: Include infrun.h.
5424         * record-full.c: Include infrun.h.
5425         * remote-m32r-sdi.c: Include infrun.h.
5426         * remote-mips.c: Include infrun.h.
5427         * remote-notif.c: Include infrun.h.
5428         * remote-sim.c: Include infrun.h.
5429         * remote.c: Include infrun.h.
5430         * reverse.c: Include infrun.h.
5431         * rs6000-tdep.c: Include infrun.h.
5432         * s390-linux-tdep.c: Include infrun.h.
5433         * solib-irix.c: Include infrun.h.
5434         * solib-osf.c: Include infrun.h.
5435         * solib-svr4.c: Include infrun.h.
5436         * target.c: Include infrun.h.
5437         * top.c: Include infrun.h.
5438         * windows-nat.c: Include infrun.h.
5439         * mi/mi-interp.c: Include infrun.h.
5440         * mi/mi-main.c: Include infrun.h.
5441         * python/py-threadevent.c: Include infrun.h.
5442
5443 2014-05-22  Pedro Alves  <palves@redhat.com>
5444
5445         * infrun.c (handle_inferior_event): Store the exit code for
5446         --return-child-result here, instead of ...
5447         (print_exited_reason): ... here.
5448
5449 2014-05-21  Pedro Alves  <palves@redhat.com>
5450
5451         PR gdb/13860
5452         * gdbthread.h (struct thread_control_state): New field
5453         `command_interp'.
5454         * infrun.c (follow_fork): Copy the new thread control field to the
5455         child fork thread.
5456         (clear_proceed_status_thread): Clear the new thread control field.
5457         (proceed): Set the new thread control field.
5458         * interps.h (command_interp): Declare.
5459         * interps.c (command_interpreter): New global.
5460         (command_interp): New function.
5461         (interp_exec): Set `command_interpreter' while here.
5462         * cli-out.c (cli_uiout_dtor): New function.
5463         (cli_ui_out_impl): Install it.
5464         * mi/mi-interp.c: Include cli-out.h.
5465         (mi_cmd_interpreter_exec): Add comment.
5466         (restore_current_uiout_cleanup): New function.
5467         (ui_out_free_cleanup): New function.
5468         (mi_on_normal_stop): If finishing an execution command started by
5469         a CLI command, or any kind of breakpoint-like event triggered,
5470         print the stop event to the output (CLI) stream.
5471         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5472
5473 2014-05-21  Pedro Alves  <palves@redhat.com>
5474
5475         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5476         current source line having changed.
5477         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5478         * infrun.c (normal_stop): Adjust call to
5479         set_current_sal_from_frame.
5480         * source.c (clear_lines_listed_range): New function.
5481         (set_current_source_symtab_and_line, identify_source_line): Clear
5482         the lines listed range.
5483         (line_info): Handle the first "info line" after the current source
5484         line having changed.
5485         * stack.c (print_stack_frame): Remove center handling.
5486         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5487         center sal.line.
5488
5489 2014-05-21  Pedro Alves  <palves@redhat.com>
5490
5491         * inf-child.c (inf_child_mourn_inferior): New function.
5492         * inf-child.h (inf_child_mourn_inferior): New declaration.
5493         * darwin-nat.c (darwin_mourn_inferior): Use
5494         inf_child_mourn_inferior.
5495         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5496         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5497         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5498         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5499         * windows-nat.c (windows_mourn_inferior): Likewise.
5500
5501 2014-05-21  Doug Evans  <xdje42@gmail.com>
5502
5503         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5504
5505 2014-05-21  Doug Evans  <xdje42@gmail.com>
5506
5507         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5508         (gdbscm_out_of_range_error): Ditto.
5509         (gdbscm_memory_error): Ditto.
5510         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5511         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5512         (gdbscm_out_of_range_error): Update.
5513         (gdbscm_memory_error): Update.
5514         (gdbscm_scm_to_target_string_unsafe): Delete.
5515
5516 2014-05-21  Pedro Alves  <palves@redhat.com>
5517
5518         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5519         globals.
5520         (inf_child_open_target): New function.
5521         (inf_child_open): Use inf_child_open_target to push the target
5522         instead of erroring out.
5523         (inf_child_disconnect, inf_child_close)
5524         (inf_child_maybe_unpush_target): New functions.
5525         (inf_child_target): Install inf_child_disconnect and
5526         inf_child_close.  Store a pointer to the returned object.
5527         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5528         declarations.
5529         * target.c (auto_connect_native_target): New global.
5530         (show_default_run_target): New function.
5531         (find_default_run_target): Return NULL if automatically connecting
5532         to the native target is disabled.
5533         (_initialize_target): Install set/show auto-connect-native-target.
5534         * NEWS: Mention "set auto-connect-native-target", and "target
5535         native".
5536         * linux-nat.c (super_close): New global.
5537         (linux_nat_close): Call super_close.
5538         (linux_nat_add_target): Store a pointer to the base class's
5539         to_close method.
5540         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5541         inf_child_maybe_unpush.
5542         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5543         already pushed.
5544         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5545         the inferior.  Use inf_child_maybe_unpush_target.
5546         (inf_ttrace_attach): Don't push the target if it is already
5547         pushed.
5548         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5549         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5550         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5551         (darwin_attach_pid): Don't push the target if it is already
5552         pushed.
5553         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5554         mourning the inferior.  Use inf_child_maybe_unpush_target.
5555         (gnu_detach): Use inf_child_maybe_unpush_target.
5556         * go32-nat.c (go32_create_inferior): Don't push the target if it
5557         is already pushed.
5558         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5559         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5560         (procfs_open): Rename to ...
5561         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5562         comments.  Can target_preopen before changing node.  Call
5563         inf_child_open_target to push the target explicitly.
5564         (procfs_attach): Don't push the target if it is already pushed.
5565         (procfs_detach): Use inf_child_maybe_unpush_target.
5566         (procfs_create_inferior): Don't push the target if it is already
5567         pushed.
5568         (nto_native_ops): New global.
5569         (procfs_open): Reimplement.
5570         (procfs_native_open): New function.
5571         (init_procfs_targets): Install procfs_native_open as to_open of
5572         "target native".  Store a pointer to the "native" target in
5573         nto_native_ops.
5574         * procfs.c (procfs_attach): Don't push the target if it is already
5575         pushed.
5576         (procfs_detach): Use inf_child_maybe_unpush_target.
5577         (procfs_mourn_inferior): Only unpush the target after mourning the
5578         inferior.  Use inf_child_maybe_unpush_target.
5579         (procfs_init_inferior): Don't push the target if it is already
5580         pushed.
5581         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5582         if it is already pushed.
5583
5584 2014-05-21  Pedro Alves  <palves@redhat.com>
5585
5586         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5587         and "procfs" targets are now called "native" instead.
5588
5589 2014-05-21  Pedro Alves  <palves@redhat.com>
5590
5591         * go32-nat.c (go32_open): Delete.
5592         (go32_target): Don't override the to_open method.
5593
5594 2014-05-21  Pedro Alves  <palves@redhat.com>
5595
5596         * nto-procfs.c (procfs_can_run): New function.
5597         (nto_procfs_ops): New global.
5598         (init_procfs_targets): New, based on procfs_target.  Install
5599         "target native" in addition to "target procfs".
5600         (_initialize_procfs): Call init_procfs_targets instead of adding
5601         the target here.
5602
5603 2014-05-21  Pedro Alves  <palves@redhat.com>
5604
5605         * windows-nat.c (windows_target): Don't override to_shortname,
5606         to_longname or to_doc.
5607
5608 2014-05-21  Pedro Alves  <palves@redhat.com>
5609
5610         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5611         to_doc.
5612
5613 2014-05-21  Pedro Alves  <palves@redhat.com>
5614
5615         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5616         to_shortname, to_longname or to_doc.
5617
5618 2014-05-21  Pedro Alves  <palves@redhat.com>
5619
5620         * go32-nat.c (go32_target): Don't override to_shortname,
5621         to_longname or to_doc.
5622
5623 2014-05-21  Pedro Alves  <palves@redhat.com>
5624
5625         * inf-child.c (inf_child_open): Remove mention of "child".
5626         (inf_child_target): Rename target to "native" instead of "child".
5627
5628 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5629
5630         * Makefile.in (SFILES): Delete "regset.c".
5631         (COMMON_OBS): Delete "regset.o".
5632         * regset.c: Remove.
5633         * regset.h (regset_alloc): Delete prototype.
5634
5635 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5636
5637         * sparc-linux-tdep.c (sparc32_linux_gregset)
5638         (sparc32_linux_fpregset): New static regset structures.
5639         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5640         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5641         'fpregset' fields.
5642         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5643         (sparc64_linux_fpregset): New static regset structures.
5644         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5645         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5646         New static regset structures.
5647         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5648         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5649         New static regset structures.
5650         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5651         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5652         New static regset structures.
5653         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5654         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5655         New static regset structures.
5656         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5657
5658 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5659
5660         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5661         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5662         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5663         for all regmap types and variables.
5664         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5665         (sparc32_linux_supply_core_gregset)
5666         (sparc32_linux_collect_core_gregset)
5667         (sparc32_linux_supply_core_fpregset)
5668         (sparc32_linux_collect_core_fpregset): Likewise.
5669         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5670         (sparc_gregmap, sparc_fpregmap): ... these.
5671         (sparc_supply_gregset, sparc_collect_gregset)
5672         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5673         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5674         (_initialize_sparc_nat): Rename regmaps.
5675         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5676         (sparc_gregmap, sparc_fpregmap): ... these.
5677         (sparc_supply_gregset, sparc_collect_gregset)
5678         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5679         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5680         Rename macros to...
5681         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5682         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5683         Likewise.
5684         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5685         Rename to...
5686         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5687         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5688         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5689         regmaps.
5690         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5691         (sparc32_bsd_fpregset): Rename to...
5692         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5693         (sparc32_bsd_fpregmap): ... these.
5694         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5695         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5696         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5697         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5698         (struct sparc_gregmap, struct sparc_fpregmap)
5699         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5700         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5701         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5702         (sparc32_supply_regset, sparc32_collect_gregset)
5703         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5704         prototypes.
5705         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5706         (sparc64_linux_ptrace_gregmap): ... this.
5707         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5708         (_initialize_sparc64_linux_nat): Rename regmaps.
5709         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5710         (sparc64_linux_core_gregmap): ... this.
5711         (sparc64_linux_supply_core_gregset)
5712         (sparc64_linux_collect_core_gregset)
5713         (sparc64_linux_supply_core_fpregset)
5714         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5715         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5716         (sparc64_sol2_fpregset): Rename to...
5717         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5718         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5719         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5720         regmaps.
5721         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5722         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5723         (sparc64_bsd_fpregset): Rename to...
5724         (struct sparc_gregmap, sparc64_sol2_gregmap)
5725         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5726         (sparc64_bsd_fpregmap): ... these.
5727         (sparc64_supply_gregset, sparc64_collect_gregset)
5728         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5729         prototypes.
5730         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5731         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5732         (sparc64fbsd_gregmap): ... this.
5733         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5734         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5735         Rename regmaps.
5736         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5737         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5738         (sparc64nbsd_collect_fpregset): Likewise.
5739         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5740         (sparc64nbsd_gregmap): ... this.
5741         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5742         regmaps.
5743         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5744         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5745         (sparc64obsd_gregmap): ... this.
5746         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5747         regmaps.
5748         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5749         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5750         (sparc32nbsd_gregmap): ... this.
5751         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5752         regmaps.
5753
5754 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5755
5756         * score-tdep.c (score7_linux_gregset): New static regset
5757         structure.
5758         (score7_linux_regset_from_core_section): Remove dynamic regset
5759         allocation.
5760         (score_gdbarch_init): Drop allocation of tdep structure.
5761         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5762
5763 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5764
5765         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5766         regset structures.
5767         (am33_regset_from_core_section): Remove dynamic regset
5768         allocations.
5769
5770 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5771
5772         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5773         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5774         structures.
5775         (mips_linux_regset_from_core_section): Remove dynamic regset
5776         allocations.
5777         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5778         'gregset64', 'fpregset', and 'fpregset64'.
5779         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5780         deleted tdep fields.
5781
5782 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5783
5784         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5785         regset structures.
5786         (amd64_regset_from_core_section): Remove dynamic regset
5787         allocations.
5788         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5789         structure.
5790         (amd64obsd_regset_from_core_section): Remove dynamic regset
5791         allocation.
5792         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5793         Likewise.
5794         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5795         x86-common regset supply function.
5796         * i386-tdep.c (i386_collect_gregset): Make static.
5797         (i386_gregset): New global regset structure.
5798         (i386_fpregset, i386_xstateregset): New static regset structures.
5799         (i386_regset_from_core_section): Remove dynamic regset
5800         allocations.
5801         (i386_gdbarch_init): Remove initialization of tdep fields
5802         'gregset', 'fpregset', and 'xstateregset'.
5803         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5804         'fpregset', and 'xstateregset'.
5805         (i386_collect_gregset): Remove prototype.
5806         (i386_gregset): New declaration.
5807         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5808         structure.
5809         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5810         allocation.
5811
5812 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5813
5814         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5815         (arm_linux_vfpregset): New static regset structures.
5816         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5817         regset structures.
5818         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5819         and 'vfpregset' fields.
5820
5821 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5822
5823         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5824         (aarch64_linux_fpregset): New static regset structures.
5825         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5826         of regset structures.
5827         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5828         'fpregset' fields.
5829
5830 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5831
5832         * regset.h (struct regset): Remove gdbarch field.
5833         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5834         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5835         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5836         Likewise.
5837         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5838         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5839         (ppc32_linux_vsxregset): Likewise.
5840         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5841         via the regcache instead of the regset.
5842         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5843         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5844         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5845         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5846         Likewise.
5847
5848 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5849
5850         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5851         Constify structures.
5852         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5853         (alphanbsd_aout_gregset): Likewise.
5854         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5855         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5856         Likewise.
5857         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5858         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5859         Likewise.
5860         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5861         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5862         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5863         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5864         * m88k-tdep.c (m88k_gregset): Likewise.
5865         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5866         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5867         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5868         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5869         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5870         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5871         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5872         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5873         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5874         Likewise.
5875         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5876         * sh-tdep.h (sh_corefile_gregset): Likewise.
5877         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5878         * vax-tdep.c (vax_gregset): Likewise.
5879
5880 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5881
5882         Fix TLS access for -static -pthread.
5883         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5884         (try_thread_db_load_1): Initialize it.
5885         (thread_db_get_thread_local_address): Call it if LM is zero.
5886         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5887         * target.h (struct target_ops) (to_get_thread_local_address): Add
5888         load_module_addr comment.
5889
5890 2014-05-21  Pedro Alves  <palves@redhat.com>
5891
5892         * dcache.c (dcache_read_memory_partial): If reading the cache line
5893         fails, fallback to reading just the memory the caller wanted.
5894
5895 2014-05-20  Doug Evans  <dje@google.com>
5896
5897         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5898         instead of get_current_arch.
5899
5900 2014-05-20  Pedro Alves  <palves@redhat.com>
5901
5902         * NEWS: Mention that compare-sections now works with all targets.
5903
5904         * remote.c (PACKET_qCRC): New enum value.
5905         (remote_verify_memory): Don't send qCRC if the target has no
5906         execution.  Use packet_support/packet_ok.  If the target doesn't
5907         support the qCRC packet, fallback to a deep memory copy.
5908         (compare_sections_command): Say "target image" instead of "remote
5909         executable".
5910         (_initialize_remote): Add PACKET_qCRC to the list of config
5911         packets that have no associated command.  Extend comment.
5912         * target.c (simple_verify_memory, default_verify_memory): New
5913         function.
5914         * target.h (struct target_ops) <to_verify_memory>: Default to
5915         default_verify_memory.
5916         (simple_verify_memory): New declaration.
5917         * target-delegates.c: Regenerate.
5918
5919 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5920
5921         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5922
5923 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5924             Yao Qi  <yao@codesourcery.com>
5925
5926         PR backtrace/16558
5927         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5928         and change address of sp and pc.
5929
5930 2014-05-19  Tom Tromey  <tromey@redhat.com>
5931
5932         * gdbtypes.c (rank_function): Use XNEWVEC.
5933         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5934
5935 2014-05-19  Doug Evans  <dje@google.com>
5936
5937         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5938         build_type_unit_groups and moved closer to only caller.  Remove
5939         arguments.  All references updated.  Remove outdated .gdb_index
5940         comment.
5941         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5942         build_type_psymtabs_1.
5943
5944 2014-05-19  Doug Evans  <dje@google.com>
5945
5946         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5947         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5948         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5949         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5950         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5951         (add_type_unit_group_to_table): Delete.
5952
5953 2014-05-19  Doug Evans  <dje@google.com>
5954
5955         * eval.c (evaluate_subexp_standard): Add some comments.
5956
5957 2014-05-17  Doug Evans  <xdje42@gmail.com>
5958
5959         * progspace.c (remove_program_space): Delete, unused.
5960         * progspace.h (remove_program_space): Ditto.
5961
5962 2014-05-17  Doug Evans  <xdje42@gmail.com>
5963
5964         * inferior.c (prune_inferiors): Fix comment.
5965         (remove_inferior_command): Call prune_program_spaces.
5966
5967 2014-05-16  Doug Evans  <dje@google.com>
5968
5969         New command line option -D.
5970         * NEWS: Mention it.
5971         * main.c (set_gdb_data_directory): New function.
5972         (captured_main): Recognize -D.  Flag error for --data-directory "".
5973         Call set_gdb_data_directory.
5974         (print_gdb_help): Print --data-directory, -D.
5975         * main.h (set_gdb_data_directory): Declare.
5976         * top.c (staged_gdb_datadir): New static global.
5977         (set_gdb_datadir): Call set_gdb_data_directory
5978         (show_gdb_datadir): New function.
5979         (init_main): Update init of data-directory parameter.
5980
5981 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5982
5983         Import the "dirfd" gnulib module.
5984         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5985         * gnulib/aclocal.m4: Update.
5986         * gnulib/config.in: Update.
5987         * gnulib/configure: Update.
5988         * gnulib/import/Makefile.am: Update.
5989         * gnulib/import/Makefile.in: Update.
5990         * gnulib/import/dirfd.c: New.
5991         * gnulib/import/m4/dirfd.m4: New.
5992         * gnulib/import/m4/gnulib-cache.m4: Update.
5993         * gnulib/import/m4/gnulib-comp.m4: Update.
5994
5995 2014-05-16  Pierre Muller  <muller@sourceware.org>
5996             Yao Qi  <yao@codesourcery.com>
5997
5998         * valprint.c (print_wchar): Move the code on checking whether
5999         W is a printable wide char to the default branch of switch
6000         statement below.  Call wchar_printable instead of gdb_iswprint.
6001
6002 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
6003
6004         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6005         ldr.w and ldrd instructions.
6006
6007 2014-05-15  Doug Evans  <dje@google.com>
6008
6009         * dwarf2read.c (read_structure_type): Delete outdated comments.
6010
6011 2014-05-14  Tom Tromey  <tromey@redhat.com>
6012
6013         * macrocmd.c (print_macro_definition): Reindent.
6014
6015 2014-05-13  Doug Evans  <xdje42@gmail.com>
6016
6017         * python/py-cmd.c (cmdpy_completer): Add comment.
6018         (completers): Make const.
6019
6020 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
6021
6022         * infrun.c (resume): Remove should_resume (unused).  Move up
6023         declaration of resume_ptid.
6024
6025 2014-05-13  Tom Tromey  <tromey@redhat.com>
6026
6027         * language.h (unop_type_check): Remove.
6028         (binop_type_check): Don't declare.
6029
6030 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6031
6032         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6033         call to regcache_raw_collect.
6034
6035 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6036
6037         * mi/mi-console.c (mi_console_raw_packet): Use the value from
6038         mi_console->quote as the quoting character.
6039
6040 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6041
6042         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6043
6044 2014-04-29  Tom Tromey  <tromey@redhat.com>
6045
6046         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6047         "show debug varobj".
6048
6049 2014-05-07  Kyle McMartin  <kyle@redhat.com>
6050
6051         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6052         * aarch64-tdep.c (aarch64_software_single_step): New function.
6053         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6054         with aarch64_software_single_step.
6055
6056 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
6057
6058         GDB 7.7.1 released.
6059
6060 2014-05-05  Keith Seitz  <keiths@redhat.com>
6061
6062         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6063         variable or history value is successfully parsed.
6064
6065 2014-05-05  Yao Qi  <yao@codesourcery.com>
6066             Pedro Alves  <palves@redhat.com>
6067
6068         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6069         address of blocks that intersects the requested range.  Trim
6070         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6071         sections.
6072         * ctf.c (ctf_xfer_partial): Likewise.
6073
6074 2014-05-05  Yao Qi  <yao@codesourcery.com>
6075
6076         * printcmd.c (display_command): Remove the check to
6077         target_has_execution.
6078
6079 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6080
6081         * ppcobsd-nat.c: Include "obsd-nat.h".
6082         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6083         add_target.
6084         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6085
6086 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6087
6088         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6089         and 16-bit signed and unsigned arguments.  Update comment.
6090         (stap_parse_probe_arguments): Extend code to handle such
6091         arguments.  Use warning instead of complaint to notify about
6092         unrecognized bitness.
6093
6094 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6095
6096         PR breakpoints/16889
6097         * stap-probe.c (stap_parse_probe_arguments): Simplify
6098         check for non-prefixed probes (i.e., probes whose
6099         arguments do not start with "N@").  Always set the
6100         argument type to a sane value.
6101
6102 2014-05-01  David Taylor  <dtaylor@emc.com>
6103
6104         * remote.c (compare_sections_command): Add -r option to compare
6105         all loadable read-only sections.
6106
6107 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6108
6109         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6110         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6111         Update all callers.
6112         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6113         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6114         Remove unused CORE_ADDR argument.  Update all callers.
6115
6116 2014-04-29  Pedro Alves  <palves@redhat.com>
6117
6118         * remote.c (struct packet_config) <detect>: Extend comment.
6119         (add_packet_config_cmd): Don't set the config's detect or support
6120         fields here.
6121         (init_all_packet_configs): Also initialize the config's 'detect'
6122         field.
6123         (reset_all_packet_configs_support): New function.
6124         (remote_open_1): Call reset_all_packet_configs_support instead of
6125         init_all_packet_configs.
6126         (_initialize_remote): Initialize all packet configs.  Assert that
6127         all packets have an associated command, except a few known
6128         outliers.
6129
6130 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6131
6132         * dwarf2read.c (read_subrange_type): Handle dynamic
6133         DW_AT_lower_bound attributes.
6134
6135 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6136
6137         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6138         dynamic bounds before computing its upper bound.
6139         (ada_discrete_type_low_bound): Same as above with the lower bound.
6140
6141 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6142
6143         * dwarf2read.c (is_dynamic_type): Return true for dynamic
6144         range types.  Adjust the array handling implementation to
6145         take advantage of this change.
6146         (resolve_dynamic_range): New function, mostly extracted from
6147         resolve_dynamic_bounds.
6148         (resolve_dynamic_array): New function, mostly extracted from
6149         resolve_dynamic_bounds.
6150         (resolve_dynamic_bounds): Delete.
6151         (resolve_dynamic_type): Reimplement.  Add handling of
6152         TYPE_CODE_RANGE types.
6153
6154 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6155
6156         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6157         handling of parallel ___XA types.
6158
6159 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6160
6161         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6162         unnecessary second call to static_unwrap_type.
6163
6164 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6165
6166         * stack.c (print_frame_info): Call do_gdb_disassembly with
6167         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6168
6169 2014-04-26  Doug Evans  <xdje42@gmail.com>
6170
6171         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6172
6173 2014-04-25  Pedro Alves  <palves@redhat.com>
6174
6175         PR server/16255
6176         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6177         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
6178         and newline from built string.
6179         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6180         (linux_ptrace_attach_fail_reason): ... this.
6181         * linux-nat.c (linux_nat_attach): Adjust to use
6182         linux_ptrace_attach_fail_reason.
6183
6184 2014-04-25  Pedro Alves  <palves@redhat.com>
6185
6186         * remote.c (struct remote_state): Remove multi_process_aware,
6187         non_stop_aware, cond_tracepoints, cond_breakpoints,
6188         breakpoint_commands, fast_tracepoints, static_tracepoints,
6189         install_in_trace, disconnected_tracing,
6190         enable_disable_tracepoints, string_tracing, and
6191         augmented_libraries_svr4_read fields.
6192         (remote_multi_process_p): Move further below in the file.
6193         (struct packet_config): Add comments.
6194         (update_packet_config): Delete function.
6195         (show_packet_config_cmd): Use packet_config_support.
6196         (add_packet_config_cmd): Use NULL as set callback.
6197         (packet_ok): "set remote foo-packet"-style commands no longer
6198         change config->supported -- adjust.
6199         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6200         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6201         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6202         (PACKET_QNonStop, PACKET_multiprocess_feature)
6203         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6204         (PACKET_DisconnectedTracing_feature)
6205         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6206         (set_remote_protocol_packet_cmd): Delete function.
6207         (packet_config_support, packet_support): New functions.
6208         (set_remote_protocol_Z_packet_cmd): Don't call
6209         update_packet_config.
6210         (remote_query_attached, remote_pass_signals)
6211         (remote_program_signals, remote_threads_info)
6212         (remote_threads_extra_info, remote_start_remote): Use
6213         packet_support.
6214         (remote_start_remote): Use packet_config_support and
6215         packet_support.
6216         (init_all_packet_configs): Set all packets to unknown support,
6217         instead of calling update_packet_config.
6218         (remote_check_symbols): Use packet_support.
6219         (remote_supported_packet): Unconditionally set the packet config's
6220         support status.
6221         (remote_multi_process_feature, remote_non_stop_feature)
6222         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6223         (remote_breakpoint_commands_feature)
6224         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6225         (remote_install_in_trace_feature)
6226         (remote_disconnected_tracing_feature)
6227         (remote_enable_disable_tracepoint_feature)
6228         (remote_string_tracing_feature)
6229         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6230         (remote_protocol_features): Adjust to use remote_supported_packet
6231         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6232         "ConditionalTracepoints", "ConditionalBreakpoints",
6233         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6234         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6235         "EnableDisableTracepoints", and "tracenz".
6236         (remote_query_supported): Use packet_support.
6237         (remote_open_1): Adjust.
6238         (extended_remote_attach_1): Use packet_support.  Switch on the
6239         result of packet_ok instead of checking whether the packet ended
6240         up disabled.
6241         (remote_vcont_resume): Use packet_support.
6242         (remote_resume, remote_stop_ns, fetch_register_using_p)
6243         (remote_prepare_to_store, store_register_using_P)
6244         (check_binary_download, remote_write_bytes): Use packet_support.
6245         (remote_vkill): Use packet_support.  Switch on the result of
6246         packet_ok instead of checking whether the packet ended up
6247         disabled.
6248         (extended_remote_supports_disable_randomization): Use
6249         packet_support.
6250         (extended_remote_run): Switch on the result of packet_ok instead
6251         of checking whether the packet ended up disabled.
6252         (remote_insert_breakpoint, remote_remove_breakpoint)
6253         (remote_insert_watchpoint, remote_remove_watchpoint)
6254         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6255         packet_support.
6256         (remote_search_memory): Use packet_config_support.
6257         (remote_get_thread_local_address, remote_get_tib_address)
6258         (remote_hostio_send_command, remote_can_execute_reverse): Use
6259         packet_support.
6260         (remote_supports_cond_tracepoints)
6261         (remote_supports_cond_breakpoints)
6262         (remote_supports_fast_tracepoints)
6263         (remote_supports_static_tracepoints)
6264         (remote_supports_install_in_trace)
6265         (remote_supports_enable_disable_tracepoint)
6266         (remote_supports_string_tracing)
6267         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6268         the packet config says the feature is enabled or disabled.
6269         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6270         (remote_get_trace_status): Use packet_support.
6271         (remote_set_disconnected_tracing): Adjust to check whether the
6272         feature is enabled with packet_support.
6273         (remote_set_trace_buffer_size, remote_use_agent)
6274         (remote_can_use_agent, remote_supports_btrace): Use
6275         packet_support.
6276         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6277         Use packet_config_support.
6278         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6279         the packet config says the feature is enabled or disabled.
6280         (set_range_stepping): Use packet_support.
6281
6282 2014-04-25  Tom Tromey  <tromey@redhat.com>
6283
6284         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6285         argument.
6286
6287 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6288
6289         * NEWS: Mention support for C99 variable length arrays.
6290
6291 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6292
6293         * ada-lang.c (standard_exc): Expand introductory comment.
6294
6295 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6296             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6297
6298         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6299         AVX512 registers.
6300         (amd64_linux_read_description): Add code to handle AVX512 xstate
6301         mask and return respective tdesc.
6302         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6303         and features/i386/x32-avx512-linux.c.
6304         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6305         (amd64_linux_core_read_description): Add code to handle AVX512
6306         xstate mask and return respective tdesc.
6307         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6308         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6309         calculation.
6310         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6311         (tdesc_amd64_avx512_linux): New prototype.
6312         (tdesc_x32_avx512_linux): Likewise.
6313         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6314         features/i386/x32-avx512.c.
6315         (amd64_ymm_avx512_names): New register names for pseudo
6316         registers YMM16-31.
6317         (amd64_ymmh_avx512_names): New register names for raw registers
6318         YMMH16-31.
6319         (amd64_k_names): New register names for K registers.
6320         (amd64_zmmh_names): New register names for ZMM raw registers.
6321         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6322         (amd64_xmm_avx512_names): New register names for XMM16-31
6323         registers.
6324         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6325         registers.
6326         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6327         if feature is present.
6328         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6329         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6330         (AMD64_NUM_REGS): Adjust to new number of registers.
6331         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6332         registers supplied via XSTATE by AVX512 registers.
6333         (i386_linux_read_description): Add case for AVX512.
6334         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6335         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6336         (i386_linux_core_read_description): Add case for AVX512.
6337         (i386_linux_init_abi): Install supported register note section
6338         for AVX512.
6339         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6340         AVX512.
6341         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6342         registers to be number of zmm7h + 1.
6343         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6344         * i386-tdep.c: Include features/i386/i386-avx512.c.
6345         (i386_zmm_names): Add ZMM pseudo register names array.
6346         (i386_zmmh_names): Add ZMM raw register names array.
6347         (i386_k_names): Add K raw register names array.
6348         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6349         registers. AVX512 has 16 more ZMM registers than there are YMM
6350         registers.
6351         (i386_zmmh_regnum_p): Add function to look up register number of
6352         ZMM raw registers.
6353         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6354         (i386_k_regnum_p): Likewise for K raw registers.
6355         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6356         registers added by AVX512.
6357         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6358         registers added by AVX512.
6359         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6360         added by AVX512.
6361         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6362         (i386_pseudo_register_name): Add ZMM pseudo registers.
6363         (i386_zmm_type): Construct and return vector registers type for ZMM
6364         registers.
6365         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6366         ZMM0-31 pseudo registers and K registers.
6367         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6368         and YMM16-31 registers from register cache.
6369         (i386_pseudo_register_write): Add code to write  K, ZMM and
6370         YMM16-31 registers.
6371         (i386_register_reggroup_p): Add code to include/exclude AVX512
6372         registers in/from respective register groups.
6373         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6374         registers if feature is present in xcr0.
6375         (i386_gdbarch_init): Add code to initialize AVX512 feature
6376         variables in tdep structure, wire in pseudo registers and call
6377         initialize_tdesc_i386_avx512.
6378         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6379         variables.
6380         (i386_regnum): Add AVX512 registers.
6381         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6382         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6383         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6384         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6385         512 bits wide.
6386         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6387         (i386_ymm_avx512_regnum_p): Likewise.
6388         (i386_k_regnum_p): Likewise.
6389         (i386_zmm_regnum_p): Likewise.
6390         (i386_zmmh_regnum_p): Likewise.
6391         * i387-tdep.c : Update year in copyright notice.
6392         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6393         XSAVE buffer.
6394         (XSAVE_YMM_AVX512_ADDR): New macro.
6395         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6396         XSAVE buffer.
6397         (XSAVE_XMM_AVX512_ADDR): New macro.
6398         (xsave_avx512_k_offset): New table for K register offsets in
6399         XSAVE buffer.
6400         (XSAVE_AVX512_K_ADDR): New macro.
6401         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6402         in XSAVE buffer.
6403         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6404         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6405         buffer.
6406         (i387_collect_xsave): Add code to collect AVX512 registers from
6407         XSAVE buffer.
6408         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6409         of XMM16-31 registers.
6410         (I387_NUM_K_REGS): New define for number of K registers.
6411         (I387_K0_REGNUM): New define for K0 register number.
6412         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6413         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6414         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6415         registers.
6416         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6417         (I387_XMM16_REGNUM): New define for XMM16 register number.
6418         (I387_YMM0_REGNUM): New define for YMM0 register number.
6419         (I387_KEND_REGNUM): New define for last K register number.
6420         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6421         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6422         number.
6423         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6424         number.
6425         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6426         size.
6427         * features/Makefile: Add AVX512 related files.
6428         * features/i386/32bit-avx512.xml: New file.
6429         * features/i386/64bit-avx512.xml: Likewise.
6430         * features/i386/amd64-avx512-linux.c: Likewise.
6431         * features/i386/amd64-avx512-linux.xml: Likewise.
6432         * features/i386/amd64-avx512.c: Likewise.
6433         * features/i386/amd64-avx512.xml: Likewise.
6434         * features/i386/i386-avx512-linux.c: Likewise.
6435         * features/i386/i386-avx512-linux.xml: Likewise.
6436         * features/i386/i386-avx512.c: Likewise.
6437         * features/i386/i386-avx512.xml: Likewise.
6438         * features/i386/x32-avx512-linux.c: Likewise.
6439         * features/i386/x32-avx512-linux.xml: Likewise.
6440         * features/i386/x32-avx512.c: Likewise.
6441         * features/i386/x32-avx512.xml: Likewise.
6442         * regformats/i386/amd64-avx512-linux.dat: New file.
6443         * regformats/i386/amd64-avx512.dat: Likewise.
6444         * regformats/i386/i386-avx512-linux.dat: Likewise.
6445         * regformats/i386/i386-avx512.dat: Likewise.
6446         * regformats/i386/x32-avx512-linux.dat: Likewise.
6447         * regformats/i386/x32-avx512.dat: Likewise.
6448         * NEWS: Add note about new support for AVX512.
6449
6450
6451 2014-04-23  Pedro Alves  <palves@redhat.com>
6452
6453         * breakpoint.c (insert_bp_location): Tolerate errors if the
6454         breakpoint is set in a user-loaded objfile.
6455         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6456         location is marked shlib_disabled.  If the breakpoint is set in a
6457         user-loaded objfile is a GDB-side memory breakpoint, validate it
6458         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6459         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6460         flag.
6461         * mem-break.c (memory_validate_breakpoint): New function.
6462         * objfiles.c (userloaded_objfile_contains_address_p): New
6463         function.
6464         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6465         * target.h (memory_validate_breakpoint): New declaration.
6466
6467 2014-04-23  Pedro Alves  <palves@redhat.com>
6468
6469         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6470         the breakpoint is set in a shared library, only suppress
6471         errors for software breakpoints, not hardware breakpoints.
6472
6473 2014-04-22  Pedro Alves  <palves@redhat.com>
6474
6475         * infrun.c (schedlock_applies): New function, factored out from
6476         find_thread_needs_step_over.
6477         (find_thread_needs_step_over): Use it.
6478         (switch_back_to_stepped_thread): Always clear trap_expected if the
6479         step over is finished.  Return early if scheduler locking applies.
6480         Look for the stepping thread and a potential step-over thread with
6481         a single loop.
6482         (currently_stepping_or_nexting_callback): Delete.
6483
6484 2014-04-22  Nick Clifton  <nickc@redhat.com>
6485
6486         * NEWS: Mention that ARM sim now supports tracing.
6487
6488 2014-04-22  Yao Qi  <yao@codesourcery.com>
6489
6490         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6491         to ...
6492         * tracefile.c (tracefile_fetch_registers): ... it.  New
6493         function.
6494         * tracefile.h (tracefile_fetch_registers): Declare.
6495         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6496         tracefile_fetch_registers.
6497
6498 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6499
6500         PR gdb/14018
6501         * windows-nat.c (thread_rec): Don't display a warning when
6502         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6503         fails for any reason, set th->suspended to -1, so that we don't
6504         try to resume such a thread.  Also, don't return NULL in these
6505         cases, to avoid completely ruin the session due to "PC register is
6506         not available" error.
6507         (do_windows_fetch_inferior_registers): Check errors in
6508         GetThreadContext call.
6509         (windows_continue): Accept an additional argument KILLED; if not
6510         zero, ignore errors in the SetThreadContext call, since the
6511         inferior was killed and is shutting down.
6512         (windows_resume, get_windows_debug_event)
6513         (windows_create_inferior, windows_mourn_inferior)
6514         (windows_kill_inferior): All callers of windows_continue changed
6515         to adjust to its new calling sequence.
6516
6517 2014-04-19  Yao Qi  <yao@codesourcery.com>
6518
6519         * ctf.c (ctf_open): Call post_create_inferior.
6520
6521 2014-04-19  Yao Qi  <yao@codesourcery.com>
6522
6523         * ctf.c (handle_id): New static variable.
6524         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6525         value.  Get the declaration of event "register" and get length
6526         of field "contents".
6527
6528 2014-04-19  Yao Qi  <yao@codesourcery.com>
6529
6530         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6531
6532 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6533
6534         * valops.c (oload_method_static): Remove unnecessary argument
6535         METHOD.  Update all callers.
6536
6537 2014-04-18  Pedro alves  <palves@redhat.com>
6538             Tom Tromey  <tromey@redhat.com>
6539
6540         PR backtrace/15558
6541         * frame.c (get_prev_frame_1): Rename to ...
6542         (get_prev_frame_always): ... this, and make extern.  Adjust.
6543         (skip_artificial_frames): Use get_prev_frame_always.
6544         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6545         (get_frame_unwind_stop_reason): Adjust to rename.
6546         * frame.h (get_prev_frame_always): Declare.
6547         * inline-frame.c: Include frame.h.
6548         (inline_frame_this_id): Use get_prev_frame_always.
6549
6550 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6551
6552         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6553         code by using bfd_mach_o_get_base_address.
6554
6555 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6556
6557         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6558         (spu_ax_pseudo_register_collect): New function.
6559         (spu_ax_pseudo_register_push_stack): Likewise.
6560         (spu_dwarf_reg_to_regnum): Likewise.
6561         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6562
6563 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6564
6565         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6566         Replace FRAME argument with FRAME_ID.
6567         * gdbarch.c, gdbarch.h: Regenerate.
6568         * findvar.c (default_value_from_register): Add GDBARCH argument;
6569         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6570         (value_from_register): Update call to gdbarch_value_from_register.
6571         * value.h (default_value_from_register): Update prototype.
6572         * s390-linux-tdep.c (s390_value_from_register): Update interface
6573         and call to default_value_from_register.
6574         * spu-tdep.c (spu_value_from_register): Likewise.
6575
6576         * findvar.c (address_from_register): Remove TYPE argument.
6577         Do not call value_from_register; use gdbarch_value_from_register
6578         with null_frame_id instead.
6579         * value.h (address_from_register): Update prototype.
6580         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6581         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6582         address_from_register interface change.
6583
6584 2014-04-17  Yao Qi  <yao@codesourcery.com>
6585
6586         * gdbtypes.h: Update comments to link to types and macros'
6587         definitions.
6588
6589 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6590
6591         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6592
6593 2014-04-16  Keith Seitz  <keiths@redhat.com>
6594
6595         PR gdb/15827
6596         * dwarf2read.c (skip_one_die): Check that all relative-offset
6597         sibling DIEs fall within range of the current reader's buffer.
6598         (read_partial_die): Likewise.
6599
6600 2014-04-16  Keith Seitz  <keiths@redhat.com>
6601
6602         PR c++/16597
6603         * cp-namespace.c (lookup_symbol_file): If the type name of
6604         `this' is NULL, return immediately.
6605
6606 2014-04-14  Keith Seitz  <keiths@redhat.com>
6607
6608         PR c++/16253
6609         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6610         from symbol_matches_domain in symtab.c. All local callers
6611         of symbol_matches_domain updated.
6612         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6613         search STRUCT_DOMAIN.
6614         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6615         independently.  standard_lookup will do that automatically.
6616         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6617         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6618         (cp_lookup_symbol_in_namespace): Likewise.
6619         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6620         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6621         may return a STRUCT_DOMAIN match.
6622         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6623         * cp-support.c: Include language.h.
6624         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6625         VAR_DOMAIN.
6626         * psymtab.c (match_partial_symbol): Compare the requested
6627         domain with the symbol's domain directly.
6628         (lookup_partial_symbol): Likewise.
6629         * symtab.c (lookup_symbol_in_language): Explain when/why
6630         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6631         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6632         appropriate languages.
6633         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6634         and moved to ada-lang.c
6635         (lookup_block_symbol): Explain that this function only returns
6636         symbol matching the requested DOMAIN.
6637         Compare the requested domain with the symbol's domain directly.
6638         (iterate_over_symbols): Compare the requested domain with the
6639         symbol's domain directly.
6640         * symtab.h (symbol_matches_domain): Remove.
6641
6642 2014-04-14  Tom Tromey  <tromey@redhat.com>
6643
6644         PR c++/15246:
6645         * c-exp.y (type_aggregate_p): New function.
6646         (qualified_name, classify_inner_name): Use it.
6647         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6648         and TYPE_TARGET_TYPE of an enum type.
6649         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6650         an enum type.
6651         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6652         handle TYPE_DECLARED_CLASS.
6653         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6654         types.
6655         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6656         * valops.c (enum_constant_from_type): New function.
6657         (value_aggregate_elt): Use it.
6658         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6659         TYPE_CODE_ENUM.
6660
6661 2014-04-14  Tom Tromey  <tromey@redhat.com>
6662
6663         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6664         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6665         const.
6666         * value.h (value_aggregate_elt): Update.
6667
6668 2014-04-14  Tom Tromey  <tromey@redhat.com>
6669
6670         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6671
6672 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6673
6674         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6675         (evaluate_subexp_standard): Pass noside argument.
6676         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6677         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6678         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6679         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6680         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6681
6682 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6683
6684         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6685         points to a constant blob.
6686
6687 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6688
6689         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6690         property and store it as the high bound and flag the range accordingly.
6691         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6692         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6693         * gdbtypes.h (enum range_flags): New enum.
6694         (struct range_bounds): Add flags member.
6695
6696 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6697
6698         * c-typeprint.c (c_type_print_varspec_suffix): Added
6699         check for not yet resolved high bound. If unresolved, print
6700         "variable length" string to the console instead of random
6701         length.
6702
6703 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6704
6705         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6706         value.
6707         (ada_template_to_fixed_record_type_1): Likewise.
6708         (ada_to_fixed_type_1): Likewise.
6709         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6710         (cp_print_value): Likewise.
6711         * d-valprint.c (dynamic_array_type): Likewise.
6712         * findvar.c (address_of_variable): Likewise.
6713         * jv-valprint.c (java_value_print): Likewise.
6714         * valops.c (value_ind): Likewise.
6715         * value.c (coerce_ref): Likewise.
6716
6717 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6718
6719         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6720         value and retrieve the dynamic type size.
6721
6722 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6723
6724         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6725         passed to sizeof is dynamic evaluate the argument to compute the length.
6726
6727 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6728             Joel Brobecker  <brobecker@adacore.com>
6729
6730         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6731         (dwarf2_evaluate_property): New function.
6732         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6733         * dwarf2read.c (attr_to_dynamic_prop): New function.
6734         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6735         attribute.
6736         * gdbtypes.c: Include dwarf2loc.h.
6737         (is_dynamic_type): New function.
6738         (resolve_dynamic_type): New function.
6739         (resolve_dynamic_bounds): New function.
6740         (get_type_length): New function.
6741         (check_typedef): Use get_type_length to compute type length.
6742         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6743         (TYPE_LOW_BOUND_KIND): New macro.
6744         (is_dynamic_type): New function prototype.
6745         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6746         to resolve dynamic properties of the type. Update comment.
6747         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6748
6749 2014-04-14  Richard Henderson  <rth@redhat.com>
6750
6751         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6752
6753 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6754             Doug Evans  <xdje42@gmail.com>
6755
6756         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6757         dereference TYPE_CODE_REF values.
6758
6759 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6760
6761         Revert the following changes due to regressions:
6762
6763         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6764         (dwarf2_evaluate_property): New function.
6765         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6766         * dwarf2read.c (attr_to_dynamic_prop): New function.
6767         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6768         attribute.
6769         * gdbtypes.c: Include dwarf2loc.h.
6770         (is_dynamic_type): New function.
6771         (resolve_dynamic_type): New function.
6772         (resolve_dynamic_bounds): New function.
6773         (get_type_length): New function.
6774         (check_typedef): Use get_type_length to compute type length.
6775         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6776         (TYPE_LOW_BOUND_KIND): New macro.
6777         (is_dynamic_type): New function prototype.
6778         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6779         to resolve dynamic properties of the type. Update comment.
6780         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6781
6782         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6783         passed to sizeof is dynamic evaluate the argument to compute the length.
6784
6785         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6786         value and retrieve the dynamic type size.
6787
6788         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6789         (ada_template_to_fixed_record_type_1): Likewise.
6790         (ada_to_fixed_type_1): Likewise.
6791         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6792         (cp_print_value): Likewise.
6793         * d-valprint.c (dynamic_array_type): Likewise.
6794         * eval.c (evaluate_subexp_with_coercion): Likewise.
6795         * findvar.c (address_of_variable): Likewise.
6796         * jv-valprint.c (java_value_print): Likewise.
6797         * valops.c (value_ind): Likewise.
6798         * value.c (coerce_ref): Likewise.
6799
6800         * c-typeprint.c (c_type_print_varspec_suffix): Added
6801         check for not yet resolved high bound. If unresolved, print
6802         "variable length" string to the console instead of random
6803         length.
6804
6805         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6806         property and store it as the high bound and flag the range accordingly.
6807         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6808         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6809         * gdbtypes.h (enum range_flags): New enum.
6810         (struct range_bounds): Add flags member.
6811
6812         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6813         points to a constant blob.
6814
6815         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6816         (evaluate_subexp_standard): Pass noside argument.
6817         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6818         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6819         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6820         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6821         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6822
6823 2014-04-11  Keith Seitz  <keiths@redhat.com>
6824
6825         PR c++/16675
6826         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6827         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6828         reference types.
6829
6830 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6831
6832         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6833         (evaluate_subexp_standard): Pass noside argument.
6834         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6835         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6836         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6837         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6838         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6839
6840 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6841
6842         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6843         points to a constant blob.
6844
6845 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6846
6847         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6848         property and store it as the high bound and flag the range accordingly.
6849         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6850         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6851         * gdbtypes.h (enum range_flags): New enum.
6852         (struct range_bounds): Add flags member.
6853
6854 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6855
6856         * c-typeprint.c (c_type_print_varspec_suffix): Added
6857         check for not yet resolved high bound. If unresolved, print
6858         "variable length" string to the console instead of random
6859         length.
6860
6861 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6862
6863         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6864         (ada_template_to_fixed_record_type_1): Likewise.
6865         (ada_to_fixed_type_1): Likewise.
6866         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6867         (cp_print_value): Likewise.
6868         * d-valprint.c (dynamic_array_type): Likewise.
6869         * eval.c (evaluate_subexp_with_coercion): Likewise.
6870         * findvar.c (address_of_variable): Likewise.
6871         * jv-valprint.c (java_value_print): Likewise.
6872         * valops.c (value_ind): Likewise.
6873         * value.c (coerce_ref): Likewise.
6874
6875 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6876
6877         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6878         value and retrieve the dynamic type size.
6879
6880 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6881
6882         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6883         passed to sizeof is dynamic evaluate the argument to compute the length.
6884
6885 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6886
6887         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6888         (dwarf2_evaluate_property): New function.
6889         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6890         * dwarf2read.c (attr_to_dynamic_prop): New function.
6891         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6892         attribute.
6893         * gdbtypes.c: Include dwarf2loc.h.
6894         (is_dynamic_type): New function.
6895         (resolve_dynamic_type): New function.
6896         (resolve_dynamic_bounds): New function.
6897         (get_type_length): New function.
6898         (check_typedef): Use get_type_length to compute type length.
6899         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6900         (TYPE_LOW_BOUND_KIND): New macro.
6901         (is_dynamic_type): New function prototype.
6902         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6903         to resolve dynamic properties of the type. Update comment.
6904         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6905
6906 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6907
6908         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6909         declaring high/low bounds and change uses accordingly. Call
6910         create_range_type instead of create_static_range_type.
6911         * gdbtypes.c (create_range_type): New function.
6912         (create_range_type): Convert bounds into struct bound_prop and pass
6913         them to create_range_type.
6914         * gdbtypes.h (struct bound_prop): New struct.
6915         (create_range_type): New function prototype.
6916         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6917         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6918         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6919         part of the bound.
6920         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6921
6922 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6923
6924         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6925         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6926         * ada-lang.c: All uses of create_range_type updated.
6927         * coffread.c: All uses of create_range_type updated.
6928         * dwarf2read.c: All uses of create_range_type updated.
6929         * f-exp.y: All uses of create_range_type updated.
6930         * m2-valprint.c: All uses of create_range_type updated.
6931         * mdebugread.c: All uses of create_range_type updated.
6932         * stabsread.c: All uses of create_range_type updated.
6933         * valops.c: All uses of create_range_type updated.
6934         * valprint.c: All uses of create_range_type updated.
6935
6936 2014-04-10  Pedro Alves  <palves@redhat.com>
6937
6938         * breakpoint.c (single_step_breakpoints)
6939         (single_step_gdbarch): Move up in the file.
6940         (one_breakpoint_xfer_memory): New function, factored out from ...
6941         (breakpoint_xfer_memory): ... here.  Also process single-step
6942         breakpoints.
6943
6944 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6945
6946         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6947         comments.
6948         (darwin_decode_exception_message): Free port only after use.
6949
6950 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6951
6952         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6953         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6954         when setting the size of call_length.
6955
6956 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6957
6958         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6959         dereference TYPE_CODE_REF values.
6960
6961 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6962
6963         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6964         end of warning message.
6965
6966 2014-04-03  Doug Evans  <dje@google.com>
6967
6968         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6969         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6970
6971 2014-04-02  Alan Modra  <amodra@gmail.com>
6972
6973         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6974         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6975         (struct symbol_file_add_from_memory_args): Add size field.
6976         (find_vdso_size): New function.
6977         (add_vsyscall_page): Attempt to find vdso size.
6978
6979 2014-04-01  Doug Evans  <dje@google.com>
6980
6981         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6982
6983 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6984
6985         * darwin-nat.c (darwin_encode_reply): Add prototype.
6986         (darwin_decode_exception_message): Reply to unknown inferiors.
6987         (darwin_decode_message): Handle message by id.  Ignore message
6988         to unknown inferior.
6989         (darwin_wait): Discard unknown messages, add debug trace.
6990
6991 2014-03-31  Doug Evans  <dje@google.com>
6992
6993         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6994         comp_dir_string.
6995
6996 2014-03-31  Doug Evans  <dje@google.com>
6997
6998         New option "set print symbol-loading".
6999         * NEWS: Mention it.
7000         * solib.c (solib_read_symbols): Only print symbol loading messages
7001         if requested.
7002         (solib_add): If symbol loading is in "brief" mode, notify user
7003         symbols are being loaded.
7004         (reload_shared_libraries_1): Ditto.
7005         * symfile.c (print_symbol_loading_off): New static global.
7006         (print_symbol_loading_brief): New static global.
7007         (print_symbol_loading_full): New static global.
7008         (print_symbol_loading_enums): New static global.
7009         (print_symbol_loading): New static global.
7010         (print_symbol_loading_p): New function.
7011         (symbol_file_add_with_addrs): Only print symbol loading messages
7012         if requested.
7013         (_initialize_symfile): Register "print symbol-loading" set/show
7014         command.
7015         * symfile.h (print_symbol_loading_p): Declare.
7016
7017 2014-03-30  Doug Evans  <xdje42@gmail.com>
7018
7019         * infrun.c (set_last_target_status): New function.
7020         (handle_inferior_event): Call it.
7021
7022 2014-03-30  Doug Evans  <xdje42@gmail.com>
7023
7024         * inferior.h (enum stop_kind): Improve comment.
7025
7026 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
7027
7028         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7029         a reference, strip the reference layer before calling
7030         the lang_ops value_has_mutated callback.
7031
7032 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7033
7034         Remove some globals from our parser.
7035         * language.c (unk_lang_parser): Add "struct parser_state"
7036         argument.
7037         * language.h (struct language_defn) <la_parser>: Likewise.
7038         * parse.c (expout, expout_size, expout_ptr): Remove variables.
7039         (initialize_expout): Add "struct parser_state" argument.
7040         Rewrite function to use the parser state.
7041         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7042         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7043         write_exp_elt_longcst, write_exp_elt_dblcst,
7044         write_exp_elt_decfloatcst, write_exp_elt_type,
7045         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7046         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7047         write_dollar_variable): Likewise.
7048         (parse_exp_in_context_1): Use parser state.
7049         (insert_type_address_space): Add "struct parser_state" argument.
7050         Use parser state.
7051         (increase_expout_size): New function.
7052         * parser-defs.h: Forward declare "struct language_defn" and
7053         "struct parser_state".
7054         (expout, expout_size, expout_ptr): Remove extern declarations.
7055         (parse_gdbarch, parse_language): Rewrite macro declarations to
7056         accept the parser state.
7057         (struct parser_state): New struct.
7058         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7059         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7060         write_exp_elt_decfloatcst, write_exp_elt_type,
7061         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7062         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7063         write_exp_msymbol, write_dollar_variable,
7064         mark_struct_expression, insert_type_address_space): Add "struct
7065         parser_state" argument.
7066         (increase_expout_size): New function.
7067         * utils.c (do_clear_parser_state): New function.
7068         (make_cleanup_clear_parser_state): Likewise.
7069         * utils.h (make_cleanup_clear_parser_state): New function
7070         prototype.
7071         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7072         Update calls to write_exp* in order to pass the parser state.
7073         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7074         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7075         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7076         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7077         * stap-probe.c (stap_parse_register_operand): Likewise.
7078         (stap_parse_single_operand): Likewise.
7079         (stap_parse_argument_1): Likewise.
7080         (stap_parse_argument): Use parser state.
7081         * stap-probe.h: Include "parser-defs.h".
7082         (struct stap_parse_info) <pstate>: New field.
7083         * c-exp.y (parse_type): Rewrite to use parser state.
7084         (yyparse): Redefine to c_parse_internal.
7085         (pstate): New global variable.
7086         (parse_number): Add "struct parser_state" argument.
7087         (write_destructor_name): Likewise.
7088         (type_exp): Update calls to write_exp* and similars in order to
7089         use parser state.
7090         (exp1, exp, variable, qualified_name, space_identifier,
7091         typename, typebase): Likewise.
7092         (write_destructor_name, parse_number, lex_one_token,
7093         classify_name, classify_inner_name, c_parse): Add "struct
7094         parser_state" argument.  Update function to use parser state.
7095         * c-lang.h: Forward declare "struct parser_state".
7096         (c_parse): Add "struct parser_state" argument.
7097         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7098         (yyparse): Redefine macro to ada_parse_internal.
7099         (pstate): New variable.
7100         (write_int, write_object_renaming, write_var_or_type,
7101         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7102         type_int, type_long, type_long_long, type_float, type_double,
7103         type_long_double, type_char, type_boolean, type_system_address):
7104         Add "struct parser_state" argument.
7105         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7106         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7107         var_or_type, aggregate, aggregate_component_list,
7108         positional_list, others, component_group,
7109         component_associations): Update calls to write_exp* and similar
7110         functions in order to use parser state.
7111         (ada_parse, write_var_from_sym, write_int,
7112         write_exp_op_with_string, write_object_renaming,
7113         find_primitive_type, write_selectors, write_ambiguous_var,
7114         write_var_or_type, write_name_assoc, type_int, type_long,
7115         type_long_long, type_float, type_double, type_long_double,
7116         type_char, type_boolean, type_system_address): Add "struct
7117         parser_state" argument.  Adjust function to use parser state.
7118         * ada-lang.c (parse): Likewise.
7119         * ada-lang.h: Forward declare "struct parser_state".
7120         (ada_parse): Add "struct parser_state" argument.
7121         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7122         calls to both functions.
7123         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7124         parser state.
7125         (yyparse): Redefine macro to f_parse_internal.
7126         (pstate): New variable.
7127         (parse_number): Add "struct parser_state" argument.
7128         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7129         and similars in order to use parser state.
7130         (parse_number): Adjust code to use parser state.
7131         (yylex): Likewise.
7132         (f_parse): New function.
7133         * f-lang.h: Forward declare "struct parser_state".
7134         (f_parse): Add "struct parser_state" argument.
7135         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7136         parser state.
7137         (yyparse): Redefine macro for java_parse_internal.
7138         (pstate): New variable.
7139         (push_expression_name, push_expression_name, insert_exp): Add
7140         "struct parser_state" argument.
7141         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7142         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7143         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7144         PostIncrementExpression, PostDecrementExpression,
7145         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7146         UnaryExpressionNotPlusMinus, CastExpression,
7147         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7148         RelationalExpression, EqualityExpression, AndExpression,
7149         ExclusiveOrExpression, InclusiveOrExpression,
7150         ConditionalAndExpression, ConditionalOrExpression,
7151         ConditionalExpression, Assignment, LeftHandSide): Update
7152         calls to write_exp* and similars in order to use parser state.
7153         (parse_number): Ajust code to use parser state.
7154         (yylex): Likewise.
7155         (java_parse): New function.
7156         (push_variable): Add "struct parser_state" argument.  Adjust
7157         code to user parser state.
7158         (push_fieldnames, push_qualified_expression_name,
7159         push_expression_name, insert_exp): Likewise.
7160         * jv-lang.h: Forward declare "struct parser_state".
7161         (java_parse): Add "struct parser_state" argument.
7162         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7163         parser state.
7164         (yyparse): Redefine macro to m2_parse_internal.
7165         (pstate): New variable.
7166         (type_exp, exp, fblock, variable, type): Update calls to
7167         write_exp* and similars to use parser state.
7168         (yylex): Likewise.
7169         (m2_parse): New function.
7170         * m2-lang.h: Forward declare "struct parser_state".
7171         (m2_parse): Add "struct parser_state" argument.
7172         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7173         * objc-lang.h: Forward declare "struct parser_state".
7174         (end_msglist): Add "struct parser_state" argument.
7175         * p-exp.y (parse_type): Rewrite macro to use parser state.
7176         (yyparse): Redefine macro to pascal_parse_internal.
7177         (pstate): New variable.
7178         (parse_number): Add "struct parser_state" argument.
7179         (type_exp, exp1, exp, qualified_name, variable): Update calls to
7180         write_exp* and similars in order to use parser state.
7181         (parse_number, yylex): Adjust code to use parser state.
7182         (pascal_parse): New function.
7183         * p-lang.h: Forward declare "struct parser_state".
7184         (pascal_parse): Add "struct parser_state" argument.
7185         * go-exp.y (parse_type): Rewrite macro to use parser state.
7186         (yyparse): Redefine macro to go_parse_internal.
7187         (pstate): New variable.
7188         (parse_number): Add "struct parser_state" argument.
7189         (type_exp, exp1, exp, variable, type): Update calls to
7190         write_exp* and similars in order to use parser state.
7191         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7192         to use parser state.
7193         (go_parse): Likewise.
7194         * go-lang.h: Forward declare "struct parser_state".
7195         (go_parse): Add "struct parser_state" argument.
7196
7197 2014-03-27  Doug Evans  <dje@google.com>
7198
7199         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7200
7201 2014-03-27  Doug Evans  <dje@google.com>
7202
7203         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7204         Remove argument abbrev_section.  All callers updated.
7205
7206 2014-03-27  Doug Evans  <dje@google.com>
7207
7208         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7209         addr_base, ranges_base.
7210
7211 2014-03-26  Keith Seitz  <keiths@redhat.com>
7212
7213         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7214         types, not VAR_DOMAIN.
7215
7216 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
7217
7218         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7219         "ra" registers.
7220         * features/nios2-linux.c: Regenerated.
7221         * features/nios2.c: Regenerated.
7222
7223 2014-03-25  Pedro Alves  <palves@redhat.com>
7224
7225         * cli/cli-script.c (script_from_file): Force the interpreter to
7226         sync mode.
7227
7228 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7229
7230         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7231         small stack allocation.
7232
7233 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7234
7235         * darwin-nat.c (exc_server): Remove unused prototype.
7236         (darwin_dump_message): Correctly display data on x86_64.
7237         (darwin_encode_reply): Fix style.
7238         Add comments and fix indentation.
7239
7240 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7241
7242         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7243
7244 2014-03-22  Doug Evans  <xdje42@gmail.com>
7245
7246         * infcmd.c: Whitespace fixes.
7247         (interrupt_command): Merge two function comments into one.
7248
7249 2014-03-22  Doug Evans  <xdje42@gmail.com>
7250
7251         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7252         All uses updated.
7253
7254 2014-03-22  Yao Qi  <yao@codesourcery.com>
7255
7256         * remote.c (target_read_live_memory): Remove.
7257         (memory_xfer_live_readonly_partial): Rename it to
7258         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7259         All callers updated.  Call remote_read_bytes_1
7260         instead of target_read_live_memory.
7261         * tracepoint.c (set_traceframe_number): Remove.
7262         (make_cleanup_restore_traceframe_number): Likewise .
7263         * tracepoint.h (set_traceframe_number): Remove declaration.
7264         (make_cleanup_restore_traceframe_number): Likewise.
7265
7266 2014-03-22  Yao Qi  <yao@codesourcery.com>
7267
7268         * remote.c (remote_read_bytes): Move code on reading from the
7269         remote stub to ...
7270         (remote_read_bytes_1): ... here.  New function.
7271
7272 2014-03-22  Yao Qi  <yao@codesourcery.com>
7273
7274         * ctf.c (ctf_xfer_partial): Check the return value of
7275         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7276         return TARGET_XFER_UNAVAILABLE.
7277         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7278         * target.c (target_read_live_memory): Move it to remote.c.
7279         (memory_xfer_live_readonly_partial): Likewise.
7280         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7281         * remote.c (target_read_live_memory): Moved from target.c.
7282         (memory_xfer_live_readonly_partial): Likewise.
7283         (remote_read_bytes): Factored out from
7284         memory_xfer_partial_1.
7285
7286 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7287
7288         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7289         NULL pointer.
7290
7291 2014-03-21  Pedro Alves  <palves@redhat.com>
7292
7293         * infrun.c (normal_stop): Extend comment.
7294
7295 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7296             Pedro Alves  <palves@redhat.com>
7297
7298         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7299         static buffer.
7300         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7301         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7302         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7303
7304 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7305
7306         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7307         `z' formatted output modifier.
7308
7309 2014-03-20  Tom Tromey  <tromey@redhat.com>
7310             Sergio Durigan Junior  <sergiodj@redhat.com>
7311
7312         * probe.c (parse_probes): Turn assert into an ordinary error.
7313         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7314         exceptions when parsing probes.  Rearrange the code for clarity.
7315
7316 2014-03-20  Tom Tromey  <tromey@redhat.com>
7317
7318         PR gdb/14135
7319         * top.c (execute_command): Only dispatch events if the command
7320         started the target.
7321
7322 2014-03-20  Tom Tromey  <tromey@redhat.com>
7323
7324         PR cli/15718
7325         * infcall.c: Include event-top.h.
7326         (run_inferior_call): Call async_disable_stdin if needed.
7327
7328 2014-03-20  Pedro Alves  <palves@redhat.com>
7329
7330         * infrun.c (prepare_to_proceed): Delete.
7331         (thread_still_needs_step_over): New function.
7332         (find_thread_needs_step_over): New function.
7333         (proceed): If the current thread needs a step-over, set its
7334         steping_over_breakpoint flag.  Adjust to use
7335         find_thread_needs_step_over instead of prepare_to_proceed.
7336         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7337         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7338         breakpoint.
7339         (switch_back_to_stepped_thread): Step over breakpoints of all
7340         threads not the stepping thread, before switching back to the
7341         stepping thread.
7342
7343 2014-03-20  Pedro Alves  <palves@redhat.com>
7344
7345         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7346         extern.
7347         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7348         * infrun.c (saved_singlestep_ptid)
7349         (stepping_past_singlestep_breakpoint): Delete.
7350         (resume): Remove stepping_past_singlestep_breakpoint handling.
7351         (proceed): Store the prev_pc of the stepping thread too.
7352         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7353         singlestep_pc.
7354         (enum infwait_states): Delete infwait_thread_hop_state.
7355         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7356         field.
7357         (handle_inferior_event): Adjust.
7358         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7359         handling and the thread-hop code.  Before removing single-step
7360         breakpoints, check whether the thread hit a single-step breakpoint
7361         of another thread.  If it did, the trap is not a random signal.
7362         (switch_back_to_stepped_thread): If the event thread hit a
7363         single-step breakpoint, unblock it before switching to the
7364         stepping thread.  Handle the case of the stepped thread having
7365         advanced already.
7366         (keep_going): Handle the case of the current thread moving past a
7367         single-step breakpoint.
7368
7369 2014-03-20  Pedro Alves  <palves@redhat.com>
7370
7371         PR breakpoints/7143
7372         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7373         are being stepped over.
7374         (breakpoint_address_match): Make extern.
7375         * breakpoint.h (breakpoint_address_match): New declaration.
7376         * inferior.h (stepping_past_instruction_at): New declaration.
7377         * infrun.c (struct step_over_info): New type.
7378         (step_over_info): New global.
7379         (set_step_over_info, clear_step_over_info)
7380         (stepping_past_instruction_at): New functions.
7381         (handle_inferior_event): Clear the step-over info when
7382         trap_expected is cleared.
7383         (resume): Remove now stale comment.
7384         (clear_proceed_status): Clear step-over info.
7385         (proceed): Adjust step-over handling to set or clear the step-over
7386         info instead of removing all breakpoints.
7387         (handle_signal_stop): When setting up a thread-hop, don't remove
7388         breakpoints here.
7389         (stop_stepping): Clear step-over info.
7390         (keep_going): Adjust step-over handling to set or clear step-over
7391         info and then always inserting breakpoints, instead of removing
7392         all breakpoints when stepping over one.
7393
7394 2014-03-20  Pedro Alves  <palves@redhat.com>
7395
7396         * infrun.c (previous_inferior_ptid): Adjust comment.
7397         (deferred_step_ptid): Delete.
7398         (infrun_thread_ptid_changed, prepare_to_proceed)
7399         (init_wait_for_inferior): Adjust.
7400         (handle_signal_stop): Delete deferred_step_ptid handling.
7401
7402 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7403
7404         PR gdb/15358
7405         * defs.h (sync_quit_force_run): New declaration.
7406         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7407         * event-top.c (async_sigterm_handler): New declaration.
7408         (async_sigterm_token): New variable.
7409         (async_init_signals): Create also async_sigterm_token.
7410         (async_sigterm_handler): New function.
7411         (sync_quit_force_run): New variable.
7412         (handle_sigterm): Replace quit_force call by other calls.
7413         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7414
7415 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7416
7417         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7418         offset into SPE pseudo registers.
7419
7420 2014-03-18  Pedro Alves  <palves@redhat.com>
7421
7422         PR gdb/13860
7423         * inferior.h (print_stop_event): Declare.
7424         * infrun.c (print_stop_event): New, factored out from ...
7425         (normal_stop): ... this.
7426         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7427         of bpstat_print/print_stack_frame.
7428
7429 2014-03-17  Tom Tromey  <tromey@redhat.com>
7430
7431         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7432
7433 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7434
7435         * ada-lang.c (decode_constrained_packed_array): Perform a
7436         minimal coercion for reference with coerce_ref instead of
7437         ada_coerce_ref.
7438
7439 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7440
7441         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7442         (darwin_solib_create_inferior_hook): Emit a warning if version
7443         is unhandled.
7444
7445 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7446
7447         * python/py-value.c (get_field_flag): Cast flag_name argument to
7448         PyObject_GetAttrString to support Python 2.4.
7449
7450 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7451
7452         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7453         (Global Maintainers): Remove Jan Kratochvil.
7454
7455 2014-03-14  Pedro Alves  <palves@redhat.com>
7456
7457         * inferior.h (terminal_ours_for_output): Rename to ...
7458         (child_terminal_ours_for_output): ... this.
7459         (terminal_save_ours): Rename to ...
7460         (child_terminal_save_ours): ... this.
7461         (terminal_ours): Rename to ...
7462         (child_terminal_ours): ... this.
7463         (terminal_inferior): Rename to ...
7464         (child_terminal_inferior): ... this.
7465         (terminal_init_inferior): Rename to ...
7466         (child_terminal_init_inferior): ... this.
7467         (terminal_init_inferior_with_pgrp): Rename to ...
7468         (child_terminal_init_inferior_with_pgrp): ... this.
7469         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7470         (child_terminal_init_with_pgrp): ... this.
7471         (terminal_save_ours): Rename to ...
7472         (child_terminal_save_ours): ... this.
7473         (terminal_init_inferior): Rename to ...
7474         (child_terminal_init): ... this.  Adjust.
7475         (terminal_inferior): Rename to ...
7476         (child_terminal_inferior): ... this.
7477         (terminal_ours_for_output): Rename to ...
7478         (child_terminal_ours_for_output): ... this.  Adjust.
7479         (terminal_ours): Rename to ...
7480         (child_terminal_ours): ... this.
7481         (terminal_ours_1): Rename to ...
7482         (child_terminal_ours_1): ... this.  Adjust.
7483         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7484         * windows-nat.c (do_initial_windows_stuff): Adjust.
7485         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7486         (gnu_terminal_init): ... this.  Adjust.
7487         (gnu_target): Adjust.
7488         * inf-child.c (inf_child_target): Adjust.
7489
7490 2014-03-13  Doug Evans  <xdje42@gmail.com>
7491
7492         PR guile/16612
7493         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7494         new eq?-hashtab.
7495
7496 2014-03-13  Doug Evans  <xdje42@gmail.com>
7497
7498         * value.c (record_latest_value): Call release_value_or_incref
7499         instead of release_value.
7500
7501 2014-03-13  Pedro Alves  <palves@redhat.com>
7502
7503         * procfs.c (procfs_target): Don't override to_shortname,
7504         to_longname or to_doc.
7505
7506 2014-03-13  Pedro Alves  <palves@redhat.com>
7507
7508         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7509         Unix in user visible strings.
7510
7511 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7512
7513         * gdbtypes.h: Annotate comments for Doxygen, add a page
7514         block comment with some general info.
7515
7516 2014-03-12  Pedro Alves  <palves@redhat.com>
7517
7518         * infcmd.c (prepare_execution_command): New function, factored out
7519         from several execution commands.
7520         (run_command_1, continue_command, step_1, jump_command)
7521         (signal_command, until_command, advance_command, finish_command)
7522         (attach_command): Use prepare_execution_command.
7523
7524 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7525
7526         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7527         (MAX_BPTS): Define.
7528         (MAX_WPTS): Define.
7529         (struct arm_linux_thread_points): Removed.
7530         (struct arm_linux_process_info): New.
7531         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7532         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7533         (arm_linux_find_breakpoints_by_tid): Removed.
7534         (struct arch_lwp_info): New.
7535         (arm_linux_find_process_pid): New functions.
7536         (arm_linux_add_process): New functions.
7537         (arm_linux_process_info_get): New functions.
7538         (arm_linux_forget_process): New function.
7539         (arm_linux_get_debug_reg_state): New function.
7540         (struct update_registers_data): New.
7541         (update_registers_callback): New function.
7542         (arm_linux_insert_hw_breakpoint1): Updated.
7543         (arm_linux_remove_hw_breakpoint1): Updated.
7544         (arm_linux_insert_hw_breakpoint): Updated.
7545         (arm_linux_remove_hw_breakpoint): Updated.
7546         (arm_linux_insert_watchpoint): Updated.
7547         (arm_linux_remove_watchpoint): Updated.
7548         (arm_linux_new_thread): Updated.
7549         (arm_linux_prepare_to_resume): New function.
7550         (arm_linux_new_fork): New function.
7551         (_initialize_arm_linux_nat): Updated.
7552
7553 2014-03-12  Pedro Alves  <palves@redhat.com>
7554
7555         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7556
7557 2014-03-12  Tom Tromey  <tromey@redhat.com>
7558
7559         * inf-child.c (return_zero): New function.
7560         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7561         * aix-thread.c (aix_thread_inferior_created): New function.
7562         (aix_thread_attach): Remove.
7563         (init_aix_thread_ops): Don't set to_attach.
7564         (_initialize_aix_thread): Register inferior_created observer.
7565         * corelow.c (init_core_ops): Don't set to_attach or
7566         to_create_inferior.
7567         * exec.c (init_exec_ops): Don't set to_attach or
7568         to_create_inferior.
7569         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7570         target calls.
7571         (attach_command): Use find_attach_target.  Make direct target
7572         calls.
7573         * record-btrace.c (init_record_btrace_ops): Don't set
7574         to_create_inferior.
7575         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7576         Remove.
7577         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7578         set to_create_inferior.
7579         * target.c (complete_target_initialization): Add assertion.
7580         (target_create_inferior): Remove.
7581         (find_default_attach, find_default_create_inferior): Remove.
7582         (find_attach_target, find_run_target): New functions.
7583         (find_default_is_async_p, find_default_can_async_p)
7584         (target_supports_non_stop, target_attach): Remove.
7585         (init_dummy_target): Don't set to_create_inferior or
7586         to_supports_non_stop.
7587         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7588         TARGET_DEFAULT_FUNC.
7589         <to_create_inferior>: Add comment.
7590         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7591         TARGET_DEFAULT_RETURN.
7592         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7593         (find_attach_target, find_run_target): Declare.
7594         (target_create_inferior): Remove.
7595         (target_has_execution_1): Update comment.
7596         (target_supports_non_stop): Remove.
7597         * target-delegates.c: Rebuild.
7598
7599 2014-03-12  Pedro Alves  <palves@redhat.com>
7600
7601         * inf-child.h: Update comment to not mention Unix.
7602
7603 2014-03-12  Pedro Alves  <palves@redhat.com>
7604
7605         * inf-child.c: Update top comment to not mention Unix.  Add
7606         generic comment describing how this target is meant to be used.
7607         (inf_child_post_attach, inf_child_post_startup_inferior)
7608         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7609         Unix in comment.
7610
7611 2014-03-12  Pedro Alves  <palves@redhat.com>
7612
7613         * nto-procfs.c: Include inf-child.h.
7614         (procfs_ops): Delete global.
7615         (procfs_can_run): Delete method.
7616         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7617         target pointer instead of referencing procfs_ops.
7618         (procfs_prepare_to_store): Delete.
7619         (init_procfs_ops): Delete function.
7620         (procfs_target): New function, based on init_procfs_ops, but
7621         inherit inf_child_target.
7622         (_initialize_procfs): Use procfs_target.
7623
7624 2014-03-12  Pedro Alves  <palves@redhat.com>
7625
7626         * windows-nat.c: Include inf-child.h.
7627         (windows_ops): Delete global.
7628         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7629         methods.
7630         (init_windows_ops): Delete function.
7631         (windows_target): New function, based on init_windows_ops, but
7632         inherit inf_child_target.
7633         (_initialize_windows_nat): Use windows_target.  Install x86
7634         specific target methods here.
7635
7636 2014-03-10  Doug Evans  <xdje42@gmail.com>
7637
7638         * guile/guile.c (call_initialize_gdb_module): New function.
7639         (initialize_guile): Replace call to scm_init_guile with call to
7640         scm_with_guile.
7641
7642 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7643
7644         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7645         in call to TYPE_CODE macro.
7646
7647 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7648
7649         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7650         Resolve tagged types to full view.
7651
7652 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7653
7654         * target.h (target_insert_breakpoint): Remove "hardware" from its
7655         comments.
7656
7657 2014-03-07  Doug Evans  <dje@google.com>
7658
7659         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7660
7661 2014-03-07  Doug Evans  <dje@google.com>
7662
7663         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7664         Remove unused local comp_dir_attr.  Assert exactly one of
7665         stub_comp_unit_die, stub_comp_dir is non-NULL.
7666
7667 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7668
7669         * target.h (complete_target_initialization, add_target):
7670         Add comment.
7671
7672 2014-03-07  Pedro Alves  <palves@redhat.com>
7673
7674         * go32-nat.c: Include inf-child.h.
7675         (go32_ops): Delete global.
7676         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7677         Delete methods.
7678         (go32_create_inferior): Push the passed in target pointer instead
7679         of referencing go32_ops.
7680         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7681         (go32_target): New function, based on init_go32_ops, but inherit
7682         inf_child_target.
7683         (_initialize_go32_nat): Use go32_target.  Move parts of
7684         init_go32_ops here.
7685
7686 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7687
7688         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7689         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7690         SYMBOL_VALUE_ADDRESS.
7691         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7692
7693 2014-03-06  Yao Qi  <yao@codesourcery.com>
7694
7695         * breakpoint.c (get_tracepoint_by_number): Remove argument
7696         optional_p.  All callers updated.  Adjust comments.  Update
7697         output message.
7698         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7699
7700 2014-03-06  Yao Qi  <yao@codesourcery.com>
7701
7702         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7703         early if get_number returns zero.  Use 'p' instead of 'args'.
7704
7705 2014-03-06  Yao Qi  <yao@codesourcery.com>
7706
7707         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7708         message.
7709
7710 2014-03-06  Yao Qi  <yao@codesourcery.com>
7711
7712         PR breakpoints/16508
7713         * tracepoint.c (check_trace_running): New function.
7714         (trace_find_command): Move code to check_trace_running and
7715         call check_trace_running.
7716         (trace_find_pc_command): Likewise.
7717         (trace_find_tracepoint_command): Likewise.
7718         (trace_find_line_command): Likewise.
7719         (trace_find_range_command): Likewise.
7720         * tracepoint.h (check_trace_running): Likewise.
7721         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7722
7723 2014-03-06  Yao Qi  <yao@codesourcery.com>
7724
7725         * target.h (struct target_ops) <to_traceframe_info>: Use
7726         TARGET_DEFAULT_NORETURN (tcomplain ()).
7727         * target-delegates.c: Regenerated.
7728
7729 2014-03-05  Pedro Alves  <palves@redhat.com>
7730
7731         PR gdb/16575
7732         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7733         void.  Update comment.
7734         (dcache_xfer_memory): Delete.
7735         (dcache_read_memory_partial): New, based on the read bits of
7736         dcache_xfer_memory.
7737         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7738         adjust.  Discard cache lines if the reason for the update was
7739         error.
7740         * dcache.h (dcache_xfer_memory): Delete declaration.
7741         (dcache_read_memory_partial): New declaration.
7742         (dcache_update): Update prototype.
7743         * target.c (raw_memory_xfer_partial): Update the dcache here.
7744         (memory_xfer_partial_1): Don't handle dcache writes here.
7745
7746 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7747
7748         * remote-sim.c (gdbsim_load): Add const to prog.
7749
7750 2014-03-03  Tom Tromey  <tromey@redhat.com>
7751
7752         * elfread.c (probe_key): Change to bfd_data.
7753         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7754         now per-BFD, not per-objfile.
7755         * stap-probe.c (stap_probe_destroy): Update comment.
7756         (handle_stap_probe): Allocate on the per-BFD obstack.
7757
7758 2014-03-03  Tom Tromey  <tromey@redhat.com>
7759
7760         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7761         * breakpoint.c (create_longjmp_master_breakpoint): Use
7762         get_probe_address.
7763         (add_location_to_breakpoint, bkpt_probe_insert_location)
7764         (bkpt_probe_remove_location): Update.
7765         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7766         * elfread.c (elf_symfile_relocate_probe): Remove.
7767         (elf_probe_fns): Update.
7768         (insert_exception_resume_breakpoint): Change type of "probe"
7769         parameter to bound_probe.
7770         (check_exception_resume): Update.
7771         * objfiles.c (objfile_relocate1): Don't relocate probes.
7772         * probe.c (bound_probe_s): New typedef.
7773         (parse_probes): Use get_probe_address.  Set sal's objfile.
7774         (find_probe_by_pc): Return a bound_probe.
7775         (collect_probes): Return a VEC(bound_probe_s).
7776         (compare_probes): Update.
7777         (gen_ui_out_table_header_info): Change type of "probes"
7778         parameter.  Update.
7779         (info_probes_for_ops): Update.
7780         (get_probe_address): New function.
7781         (probe_safe_evaluate_at_pc): Update.
7782         * probe.h (struct probe_ops) <get_probe_address>: New field.
7783         <set_semaphore, clear_semaphore>: Add objfile parameter.
7784         (struct probe) <objfile>: Remove field.
7785         <arch>: New field.
7786         <address>: Update comment.
7787         (struct bound_probe): New.
7788         (find_probe_by_pc): Return a bound_probe.
7789         (get_probe_address): Declare.
7790         * solib-svr4.c (struct probe_and_action) <address>: New field.
7791         (hash_probe_and_action, equal_probe_and_action): Update.
7792         (register_solib_event_probe): Add address parameter.
7793         (solib_event_probe_at): Update.
7794         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7795         get_probe_address.
7796         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7797         (stap_get_probe_address): New function.
7798         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7799         (compile_probe_arg): Update.
7800         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7801         address.
7802         (handle_stap_probe): Don't relocate the probe.
7803         (stap_relocate): Remove.
7804         (stap_gen_info_probes_table_values): Update.
7805         (stap_probe_ops): Remove stap_relocate.
7806         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7807         (debug_sym_probe_fns): Update.
7808         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7809         * symtab.c (init_sal): Use memset.
7810         * symtab.h (struct symtab_and_line) <objfile>: New field.
7811         * tracepoint.c (start_tracing, stop_tracing): Update.
7812
7813 2014-03-03  Tom Tromey  <tromey@redhat.com>
7814
7815         * probe.h (parse_probes, find_probe_by_pc)
7816         (find_probes_in_objfile): Fix comments.
7817
7818 2014-03-02  Doug Evans  <xdje42@gmail.com>
7819
7820         * infrun.c (handle_signal_stop): Replace test for
7821         TARGET_WAITKIND_STOPPED with an assert.
7822
7823 2014-03-02  Doug Evans  <xdje42@gmail.com>
7824
7825         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7826
7827 2014-03-02  Doug Evans  <xdje42@gmail.com>
7828
7829         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7830
7831 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7832
7833         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7834
7835 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7836
7837         * i386obsd-nat.c: Include "obsd-nat.h".
7838         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7839         add_target.
7840         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7841
7842 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7843
7844         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7845
7846 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7847
7848         * mips64obsd-nat.c: Include "obsd-nath".
7849         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7850         add_target
7851         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7852
7853 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7854
7855         * amd64obsd-nat.c: Include "obsd-nat,h.
7856         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7857         add_target.
7858         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7859
7860 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7861
7862         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7863         (find_overload_match): Update call to find_oload_champ.
7864         (find_oload_champ_namespace_loop): Likewise
7865
7866 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7867
7868         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7869
7870         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7871         * config/sparc/obsd64.mh: New file.
7872         * sparc64obsd-nat.c: New file.
7873
7874         * obsd-nat.h: New file.
7875         * obsd-nat.c: New file.
7876         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7877         (ALLDEPFILES): Add obsd-nat.c.
7878
7879 2014-02-28  Tom Tromey  <tromey@redhat.com>
7880
7881         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7882         * cli-out.h (cli_ui_out_impl): Now const.
7883         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7884         * ui-out.c (struct ui_out) <impl>: Now const.
7885         (default_ui_out_impl): Now const.
7886         (ui_out_new): Make 'impl' parameter const.
7887         * ui-out.h (ui_out_new): Update.
7888
7889 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7890
7891         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7892
7893 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7894
7895         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7896
7897 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7898
7899         Additional PR 8882 fix.
7900         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7901
7902 2014-02-27  Pedro Alves  <palves@redhat.com>
7903
7904         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7905         isn't set.
7906
7907 2014-02-27  Pedro Alves  <palves@redhat.com>
7908
7909         PR 12702
7910         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7911         * nat/linux-waitpid.c: Include string.h.
7912         (status_to_str): Moved here and made extern.
7913         * nat/linux-waitpid.h (status_to_str): New declaration.
7914
7915 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7916
7917         PR 12702
7918         * infrun.c (ptid_match): Move ...
7919         * common/ptid.c (ptid_match): ... here.
7920         * inferior.h (ptid_match): Move ...
7921         * common/ptid.h (ptid_match): ... here.
7922
7923 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7924
7925         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7926         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7927         gdb_target_obs.
7928
7929 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7930
7931         * obsd-tdep.c (obsd_auxv_parse): New function.
7932         (obsd_init_abi): Set auxv_parse.
7933
7934         * gdbarch.sh (auxv_parse): New.
7935         * gdbarch.h: Regenerated.
7936         * gdbarch.c: Regenerated.
7937         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7938
7939 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7940
7941         * guile/scm-value.c (gdbscm_history_append_x): New function.
7942         (value_functions): Add it.
7943
7944 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7945
7946         * dwarf2read.c (attr_value_as_address): New function.
7947         (dwarf2_find_base_address, read_call_site_scope): Use
7948         attr_value_as_address in place of DW_ADDR.
7949         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7950         the low and high addresses.  Slight rework of the handling
7951         of the high pc being a constant form, and limit it to
7952         DWARF verson 4 or higher.
7953         (dwarf2_record_block_ranges): Likewise.
7954         (read_partial_die): Likewise.
7955         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7956
7957 2014-02-26  Tom Tromey  <tromey@redhat.com>
7958
7959         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7960
7961 2014-02-26  Tom Tromey  <tromey@redhat.com>
7962
7963         * elfread.c (elf_read_minimal_symbols): Return early if
7964         minimal symbols have already been read.  Add "ei" parameter.
7965         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7966         * minsyms.c (prim_record_minimal_symbol_full): Update.
7967         * objfiles.h (struct objstats) <n_minsyms>: Move...
7968         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7969         * symmisc.c (print_objfile_statistics): Update.
7970
7971 2014-02-26  Tom Tromey  <tromey@redhat.com>
7972
7973         * elfread.c (elf_read_minimal_symbols): New function, from
7974         elf_symfile_read.
7975         (elf_symfile_read): Call it.
7976
7977 2014-02-26  Tom Tromey  <tromey@redhat.com>
7978
7979         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7980         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7981         (lookup_minimal_symbol_solib_trampoline)
7982         (lookup_minimal_symbol_by_pc_section_1)
7983         (lookup_minimal_symbol_and_objfile): Update.
7984         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7985         Don't allocate a minimal symbol if minsyms have already been read.
7986         (build_minimal_symbol_hash_tables): Update.
7987         (install_minimal_symbols): Do nothing if minsyms already read.
7988         Use the per-BFD obstack.
7989         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7990         * objfiles.c (allocate_objfile): Call
7991         terminate_minimal_symbol_table later.
7992         (have_minimal_symbols): Update.
7993         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7994         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7995         Move from struct objfile.
7996         <minsyms_read>: New field.
7997         (struct objfile) <msymbols, minimal_symbol_count,
7998         msymbol_hash, msymbol_demangled_hash>: Move.
7999         (ALL_OBJFILE_MSYMBOLS): Update.
8000         * symfile.c (read_symbols): Set minsyms_read.
8001         (reread_symbols): Update.
8002         * symmisc.c (dump_objfile, dump_msymbols): Update.
8003
8004 2014-02-26  Tom Tromey  <tromey@redhat.com>
8005
8006         * minsyms.c (msymbols_sort): Remove.
8007         * minsyms.h (msymbols_sort): Remove.
8008         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8009         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8010         * elfread.c (elf_symtab_read): Don't add section offsets.
8011         * xcoffread.c (record_minimal_symbol): Don't add section offset
8012         to minimal symbol address.
8013         * somread.c (text_offset, data_offset): Remove.
8014         (som_symtab_read): Don't add section offsets to minimal symbol
8015         addresses.
8016         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8017         Don't add section offsets to minimal symbols.
8018         * coffread.c (coff_symtab_read): Don't add section offsets
8019         to minimal symbol addresses.
8020         * machoread.c (macho_symtab_add_minsym): Don't add section offset
8021         to minimal symbol addresses.
8022         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8023         section offset to minimal symbol addresses.
8024         * mdebugread.c (parse_partial_symbols): Don't add section
8025         offset to minimal symbol addresses.
8026         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8027         offset to minimal symbol addresses.
8028
8029 2014-02-26  Tom Tromey  <tromey@redhat.com>
8030
8031         * ada-lang.c (ada_main_name): Update.
8032         (ada_add_standard_exceptions): Update.
8033         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8034         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8035         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8036         * auxv.c (ld_so_xfer_auxv): Update.
8037         * avr-tdep.c (avr_scan_prologue): Update.
8038         * ax-gdb.c (gen_var_ref): Update.
8039         * blockframe.c (get_pc_function_start)
8040         (find_pc_partial_function_gnu_ifunc): Update.
8041         * breakpoint.c (create_overlay_event_breakpoint)
8042         (create_longjmp_master_breakpoint)
8043         (create_std_terminate_master_breakpoint)
8044         (create_exception_master_breakpoint): Update.
8045         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8046         * c-valprint.c (c_val_print): Update.
8047         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8048         * common/agent.c (agent_look_up_symbols): Update.
8049         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8050         * dwarf2loc.c (call_site_to_target_addr): Update.
8051         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8052         * elfread.c (elf_gnu_ifunc_record_cache)
8053         (elf_gnu_ifunc_resolve_by_got): Update.
8054         * findvar.c (default_read_var_value): Update.
8055         * frame.c (inside_main_func): Update.
8056         * frv-tdep.c (frv_frame_this_id): Update.
8057         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8058         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8059         Update.
8060         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8061         (hppa_hpux_find_dummy_bpaddr): Update.
8062         * hppa-tdep.c (hppa_symbol_address): Update.
8063         * infcmd.c (until_next_command): Update.
8064         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8065         Update.
8066         * linespec.c (minsym_found, add_minsym): Update.
8067         * linux-nat.c (get_signo): Update.
8068         * linux-thread-db.c (inferior_has_bug): Update.
8069         * m32c-tdep.c (m32c_return_value)
8070         (m32c_m16c_address_to_pointer): Update.
8071         * m32r-tdep.c (m32r_frame_this_id): Update.
8072         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8073         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8074         * maint.c (maintenance_translate_address): Update.
8075         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8076         (frob_address): New function.
8077         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8078         frob_address.  Rename parameter to "pc_in".
8079         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8080         addresses.
8081         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8082         Update.
8083         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8084         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8085         * objc-lang.c (find_objc_msgsend): Update.
8086         * objfiles.c (objfile_relocate1): Update.
8087         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8088         * p-valprint.c (pascal_val_print): Update.
8089         * parse.c (write_exp_msymbol): Update.
8090         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8091         (ppc_elfv2_skip_entrypoint): Update.
8092         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8093         * printcmd.c (build_address_symbolic, msym_info)
8094         (address_info): Update.
8095         * proc-service.c (ps_pglobal_lookup): Update.
8096         * psymtab.c (find_pc_sect_psymtab_closer)
8097         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8098         Change msymbol parameter to bound_minimal_symbol.
8099         * ravenscar-thread.c (get_running_thread_id): Update.
8100         * remote.c (remote_check_symbols): Update.
8101         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8102         address.
8103         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8104         * solib-dsbt.c (lm_base): Update.
8105         * solib-frv.c (lm_base, main_got): Update.
8106         * solib-irix.c (locate_base): Update.
8107         * solib-som.c (som_solib_create_inferior_hook)
8108         (link_map_start): Update.
8109         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8110         * solib-svr4.c (elf_locate_base, enable_break): Update.
8111         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8112         (flush_ea_cache): Update.
8113         * stabsread.c (define_symbol, scan_file_globals): Update.
8114         * stack.c (find_frame_funname): Update.
8115         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8116         (debug_qf_find_pc_sect_symtab): Update.
8117         * symfile.c (simple_read_overlay_table)
8118         (simple_overlay_update): Update.
8119         * symfile.h (struct quick_symbol_functions)
8120         <find_pc_sect_symtab>: Change type of msymbol to
8121         bound_minimal_symbol.
8122         * symmisc.c (dump_msymbols): Update.
8123         * symtab.c (find_pc_sect_symtab_via_partial)
8124         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8125         (search_symbols, print_msymbol_info): Update.
8126         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8127         (MSYMBOL_VALUE_ADDRESS): Redefine.
8128         (BMSYMBOL_VALUE_ADDRESS): New macro.
8129         * tracepoint.c (scope_info): Update.
8130         * tui/tui-disasm.c (tui_find_disassembly_address)
8131         (tui_get_begin_asm_address): Update.
8132         * valops.c (find_function_in_inferior): Update.
8133         * value.c (value_static_field, value_fn_field): Update.
8134
8135 2014-02-26  Tom Tromey  <tromey@redhat.com>
8136
8137         * ada-lang.c (ada_update_initial_language): Update.
8138         (ada_main_name, ada_has_this_exception_support): Update.
8139         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8140         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8141         * arm-tdep.c (arm_skip_stub): Update.
8142         * auxv.c (ld_so_xfer_auxv): Update.
8143         * avr-tdep.c (avr_scan_prologue): Update.
8144         * ax-gdb.c (gen_var_ref): Update.
8145         * breakpoint.c (struct breakpoint_objfile_data)
8146         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8147         type to bound_minimal_symbol.
8148         (create_overlay_event_breakpoint)
8149         (create_longjmp_master_breakpoint)
8150         (create_std_terminate_master_breakpoint)
8151         (create_exception_master_breakpoint): Update.
8152         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8153         * c-exp.y (classify_name): Update.
8154         * coffread.c (coff_symfile_read): Update.
8155         * common/agent.c (agent_look_up_symbols): Update.
8156         * d-lang.c (d_main_name): Update.
8157         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8158         * dec-thread.c (enable_dec_thread): Update.
8159         * dwarf2loc.c (call_site_to_target_addr): Update.
8160         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8161         * eval.c (evaluate_subexp_standard): Update.
8162         * findvar.c (struct minsym_lookup_data) <result>: Change type
8163         to bound_minimal_symbol.
8164         <objfile>: Remove.
8165         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8166         * frame.c (inside_main_func): Update.
8167         * frv-tdep.c (frv_frame_this_id): Update.
8168         * gcore.c (call_target_sbrk): Update.
8169         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8170         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8171         Update.
8172         * go-lang.c (go_main_name): Update.
8173         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8174         (hppa_hpux_find_import_stub_for_addr): Update.
8175         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8176         Update.  Change return type.
8177         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8178         type.
8179         * jit.c (jit_breakpoint_re_set_internal): Update.
8180         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8181         Update.
8182         * linux-nat.c (get_signo): Update.
8183         * linux-thread-db.c (inferior_has_bug): Update
8184         * m32c-tdep.c (m32c_return_value)
8185         (m32c_m16c_address_to_pointer): Update.
8186         * m32r-tdep.c (m32r_frame_this_id): Update.
8187         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8188         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8189         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8190         lookup_minimal_symbol.  Change return type.
8191         (lookup_minimal_symbol): Remove.
8192         (lookup_bound_minimal_symbol): Update.
8193         (lookup_minimal_symbol_text): Change return type.
8194         (lookup_minimal_symbol_solib_trampoline): Change return type.
8195         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8196         (lookup_minimal_symbol_solib_trampoline): Change return type.
8197         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8198         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8199         (value_nsstring, find_imps): Update.
8200         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8201         * p-lang.c (pascal_main_name): Update.
8202         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8203         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8204         * proc-service.c (ps_pglobal_lookup): Update.
8205         * ravenscar-thread.c (get_running_thread_msymbol): Change
8206         return type.
8207         (has_ravenscar_runtime, get_running_thread_id): Update.
8208         * remote.c (remote_check_symbols): Update.
8209         * sol-thread.c (ps_pglobal_lookup): Update.
8210         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8211         * solib-dsbt.c (lm_base): Update.
8212         * solib-frv.c (lm_base, frv_relocate_section_addresses):
8213         Update.
8214         * solib-irix.c (locate_base): Update.
8215         * solib-som.c (som_solib_create_inferior_hook)
8216         (som_solib_desire_dynamic_linker_symbols, link_map_start):
8217         Update.
8218         * solib-spu.c (spu_enable_break): Update.
8219         * solib-svr4.c (elf_locate_base, enable_break): Update.
8220         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8221         (flush_ea_cache): Update.
8222         * stabsread.c (define_symbol): Update.
8223         * symfile.c (simple_read_overlay_table): Update.
8224         * symtab.c (find_pc_sect_line): Update.
8225         * tracepoint.c (scope_info): Update.
8226         * tui-disasm.c (tui_get_begin_asm_address): Update.
8227         * value.c (value_static_field): Update.
8228
8229 2014-02-26  Tom Tromey  <tromey@redhat.com>
8230
8231         * minsyms.c (prim_record_minimal_symbol_full): Use
8232         SET_MSYMBOL_VALUE_ADDRESS.
8233         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8234         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8235         SET_MSYMBOL_VALUE_ADDRESS.
8236         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8237         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8238
8239 2014-02-26  Tom Tromey  <tromey@redhat.com>
8240
8241         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8242         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8243         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8244         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8245         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8246         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8247         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8248         * ada-lang.c (ada_main_name): Update.
8249         (ada_lookup_simple_minsym): Update.
8250         (ada_make_symbol_completion_list): Update.
8251         (ada_add_standard_exceptions): Update.
8252         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8253         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8254         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8255         * arm-tdep.c (skip_prologue_function): Update.
8256         (arm_skip_stack_protector, arm_skip_stub): Update.
8257         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8258         (arm_wince_skip_main_prologue): Update.
8259         * auxv.c (ld_so_xfer_auxv): Update.
8260         * avr-tdep.c (avr_scan_prologue): Update.
8261         * ax-gdb.c (gen_var_ref): Update.
8262         * block.c (call_site_for_pc): Update.
8263         * blockframe.c (get_pc_function_start): Update.
8264         (find_pc_partial_function_gnu_ifunc): Update.
8265         * breakpoint.c (create_overlay_event_breakpoint): Update.
8266         (create_longjmp_master_breakpoint): Update.
8267         (create_std_terminate_master_breakpoint): Update.
8268         (create_exception_master_breakpoint): Update.
8269         (resolve_sal_pc): Update.
8270         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8271         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8272         Update.
8273         * c-valprint.c (c_val_print): Update.
8274         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8275         * coffread.c (coff_symfile_read): Update.
8276         * common/agent.c (agent_look_up_symbols): Update.
8277         * dbxread.c (find_stab_function_addr): Update.
8278         (end_psymtab): Update.
8279         * dwarf2loc.c (call_site_to_target_addr): Update.
8280         (func_verify_no_selftailcall): Update.
8281         (tailcall_dump): Update.
8282         (call_site_find_chain_1): Update.
8283         (dwarf_expr_reg_to_entry_parameter): Update.
8284         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8285         (elf_gnu_ifunc_resolve_by_got): Update.
8286         * f-valprint.c (info_common_command): Update.
8287         * findvar.c (read_var_value): Update.
8288         * frame.c (get_prev_frame_1): Update.
8289         (inside_main_func): Update.
8290         * frv-tdep.c (frv_skip_main_prologue): Update.
8291         (frv_frame_this_id): Update.
8292         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8293         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8294         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8295         (gnuv3_skip_trampoline): Update.
8296         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8297         (hppa64_hpux_in_solib_call_trampoline): Update.
8298         (hppa_hpux_skip_trampoline_code): Update.
8299         (hppa64_hpux_search_dummy_call_sequence): Update.
8300         (hppa_hpux_find_import_stub_for_addr): Update.
8301         (hppa_hpux_find_dummy_bpaddr): Update.
8302         * hppa-tdep.c (hppa_symbol_address)
8303         (hppa_lookup_stub_minimal_symbol): Update.
8304         * i386-tdep.c (i386_skip_main_prologue): Update.
8305         (i386_pe_skip_trampoline_code): Update.
8306         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8307         * infcall.c (get_function_name): Update.
8308         * infcmd.c (until_next_command): Update.
8309         * jit.c (jit_breakpoint_re_set_internal): Update.
8310         (jit_inferior_init): Update.
8311         * linespec.c (minsym_found): Update.
8312         (add_minsym): Update.
8313         * linux-fork.c (info_checkpoints_command): Update.
8314         * linux-nat.c (get_signo): Update.
8315         * linux-thread-db.c (inferior_has_bug): Update.
8316         * m32c-tdep.c (m32c_return_value): Update.
8317         (m32c_m16c_address_to_pointer): Update.
8318         (m32c_m16c_pointer_to_address): Update.
8319         * m32r-tdep.c (m32r_frame_this_id): Update.
8320         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8321         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8322         * maint.c (maintenance_translate_address): Update.
8323         * minsyms.c (add_minsym_to_hash_table): Update.
8324         (add_minsym_to_demangled_hash_table): Update.
8325         (msymbol_objfile): Update.
8326         (lookup_minimal_symbol): Update.
8327         (iterate_over_minimal_symbols): Update.
8328         (lookup_minimal_symbol_text): Update.
8329         (lookup_minimal_symbol_by_pc_name): Update.
8330         (lookup_minimal_symbol_solib_trampoline): Update.
8331         (lookup_minimal_symbol_by_pc_section_1): Update.
8332         (lookup_minimal_symbol_and_objfile): Update.
8333         (prim_record_minimal_symbol_full): Update.
8334         (compare_minimal_symbols): Update.
8335         (compact_minimal_symbols): Update.
8336         (build_minimal_symbol_hash_tables): Update.
8337         (install_minimal_symbols): Update.
8338         (terminate_minimal_symbol_table): Update.
8339         (find_solib_trampoline_target): Update.
8340         (minimal_symbol_upper_bound): Update.
8341         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8342         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8343         (mips_skip_pic_trampoline_code): Update.
8344         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8345         * objc-lang.c (selectors_info): Update.
8346         (classes_info): Update.
8347         (find_methods): Update.
8348         (find_imps): Update.
8349         (find_objc_msgsend): Update.
8350         * objfiles.c (objfile_relocate1): Update.
8351         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8352         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8353         * p-valprint.c (pascal_val_print): Update.
8354         * parse.c (write_exp_msymbol): Update.
8355         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8356         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8357         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8358         * printcmd.c (build_address_symbolic): Update.
8359         (sym_info): Update.
8360         (address_info): Update.
8361         * proc-service.c (ps_pglobal_lookup): Update.
8362         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8363         (find_pc_sect_psymtab): Update.
8364         * python/py-framefilter.c (py_print_frame): Update.
8365         * ravenscar-thread.c (get_running_thread_id): Update.
8366         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8367         Update.
8368         * remote.c (remote_check_symbols): Update.
8369         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8370         (rs6000_skip_trampoline_code): Update.
8371         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8372         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8373         * solib-dsbt.c (lm_base): Update.
8374         * solib-frv.c (lm_base): Update.
8375         (main_got): Update.
8376         * solib-irix.c (locate_base): Update.
8377         * solib-som.c (som_solib_create_inferior_hook): Update.
8378         (som_solib_desire_dynamic_linker_symbols): Update.
8379         (link_map_start): Update.
8380         * solib-spu.c (spu_enable_break): Update.
8381         (ocl_enable_break): Update.
8382         * solib-svr4.c (elf_locate_base): Update.
8383         (enable_break): Update.
8384         * spu-tdep.c (spu_get_overlay_table): Update.
8385         (spu_catch_start): Update.
8386         (flush_ea_cache): Update.
8387         * stabsread.c (define_symbol): Update.
8388         (scan_file_globals): Update.
8389         * stack.c (find_frame_funname): Update.
8390         (frame_info): Update.
8391         * symfile.c (simple_read_overlay_table): Update.
8392         (simple_overlay_update): Update.
8393         * symmisc.c (dump_msymbols): Update.
8394         * symtab.c (fixup_section): Update.
8395         (find_pc_sect_line): Update.
8396         (skip_prologue_sal): Update.
8397         (search_symbols): Update.
8398         (print_msymbol_info): Update.
8399         (rbreak_command): Update.
8400         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8401         (completion_list_objc_symbol): Update.
8402         (default_make_symbol_completion_list_break_on): Update.
8403         * tracepoint.c (scope_info): Update.
8404         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8405         (tui_get_begin_asm_address): Update.
8406         * valops.c (find_function_in_inferior): Update.
8407         * value.c (value_static_field): Update.
8408         (value_fn_field): Update.
8409
8410 2014-02-26  Tom Tromey  <tromey@redhat.com>
8411
8412         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8413         bound minimal symbols.  Move code that knows about minsym
8414         table layout...
8415         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8416         function.
8417         * minsyms.h (minimal_symbol_upper_bound): Declare.
8418         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8419         minimal_symbol_upper_bound.
8420
8421 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8422
8423         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8424         Use the type's name if its basic type does not have a tag.
8425
8426 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8427
8428         * dwarf2read.c (read_subrange_type): Add comment.
8429
8430 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8431
8432         * dwarf2read.c (update_enumeration_type_from_children): New
8433         function, mostly extracted from process_structure_scope.
8434         (read_enumeration_type): Call update_enumeration_type_from_children.
8435         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8436         and flag_flag_enum fields.
8437
8438 2014-02-26  Pedro Alves  <palves@redhat.com>
8439
8440         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8441         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8442         to_xfer_partial method.
8443
8444 2014-02-26  Pedro Alves  <palves@redhat.com>
8445
8446         * target.c (complete_target_initialization): Don't install
8447         default_xfer_partial as to_xfer_partial hook.
8448         (nomemory): Delete.
8449         (update_current_target): Don't INHERIT nor de_fault
8450         deprecated_xfer_memory.  Delete de_fault macro.
8451         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8452         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8453         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8454         field.
8455
8456 2014-02-26  Pedro Alves  <palves@redhat.com>
8457
8458         * go32-nat.c (my_write_child): New function.
8459         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8460         (go32_xfer_partial): New function.
8461         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8462         Instead install a to_xfer_partial hook.
8463
8464 2014-02-26  Pedro Alves  <palves@redhat.com>
8465
8466         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8467         to_xfer_partial helper.  Rewrite.
8468         (procfs_xfer_partial): New function.
8469         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8470         Install a to_xfer_partial hook.
8471
8472 2014-02-26  Pedro Alves  <palves@redhat.com>
8473
8474         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8475         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8476         (m32r_xfer_partial): New function.
8477         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8478         Install a to_xfer_partial hook.
8479
8480 2014-02-26  Pedro Alves  <palves@redhat.com>
8481
8482         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8483         helper.
8484         (mips_xfer_partial): New function.
8485         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8486         hook.  Install a to_xfer_partial hook.
8487
8488 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8489
8490         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8491         * gdbtypes.c (create_array_type_with_stride): New function,
8492         renaming create_array_type, but with an added parameter
8493         called "bit_stride".
8494         (create_array_type): Re-implement using
8495         create_array_type_with_stride.
8496         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8497         and DW_AT_bit_stride attributes.
8498
8499 2014-02-26  Pedro Alves  <palves@redhat.com>
8500
8501         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8502         task-specific breakpoints.
8503
8504 2014-02-25  Pedro Alves  <palves@redhat.com>
8505
8506         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8507         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8508
8509 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8510
8511         * defs.h: Annotate comments for Doxygen.
8512
8513 2014-02-25  Tom Tromey  <tromey@redhat.com>
8514
8515         * target.h (target_ignore): Don't declare.
8516         * target.c (target_ignore): Remove.
8517
8518 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8519
8520         PR gdb/16626
8521         * auto-load.c (auto_load_objfile_script_1): Change filename to
8522         debugfile.
8523
8524 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8525
8526         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8527         documentation.  Adjust prototype to match the target_ops
8528         to_xfer_partial method.  Adjust implementation accordingly.
8529
8530 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8531
8532         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8533         to_traceframe_info.
8534
8535 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8536
8537         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8538         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8539         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8540         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8541         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8542         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8543         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8544         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8545         New constants.
8546         (rl78_register_type): Use a data pointer type for SP and
8547         new pseudo registers mentioned above.  Use a 16 bit integer
8548         type for all other register pairs.
8549         (rl78_register_name, rl78_g10_register_name): Update for
8550         new pseudo registers.
8551         (rl78_pseudo_register_read): Likewise.
8552         (rl78_pseudo_register_write): Likewise.
8553         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8554         to the newly added pseudo registers.
8555
8556 2014-02-24  Doug Evans  <dje@google.com>
8557
8558         * value.c (record_latest_value): Fix comment.
8559         * printcmd.c (print_command_1): Remove code to handle -1 return from
8560         record_latest_value.
8561
8562 2014-02-24  Pedro Alves  <palves@redhat.com>
8563
8564         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8565         deprecated_xfer_memory hook.
8566         (procfs_xfer_partial): Call procfs_xfer_memory instead
8567         of the deprecated_xfer_memory target hook.
8568         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8569         helper.
8570
8571 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8572
8573         * windows-nat.c (windows_xfer_shared_libraries): Return
8574         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8575         requested object is TARGET_OBJECT_LIBRARIES.
8576
8577 2014-02-24  Yao Qi  <yao@codesourcery.com>
8578
8579         * target.h (enum target_xfer_status)
8580         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8581         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8582         explicitly.  New.
8583         * corefile.c (memory_error_message): User updated.
8584         * exec.c (section_table_read_available_memory): Likewise.
8585         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8586         * target.c (target_xfer_status_to_string): Likewise.
8587         (raw_memory_xfer_partial): Likewise.
8588         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8589         * valops.c (read_value_memory): Likewise.
8590         * exec.h: Update comments.
8591
8592 2014-02-24  Yao Qi  <yao@codesourcery.com>
8593
8594         * target.c (target_xfer_status_to_string): Rename argument err
8595         to status.
8596         * target.h (target_xfer_status_to_string): Update declaration.
8597         Replace target_xfer_error_to_string with
8598         target_xfer_status_to_string in comment.
8599
8600 2014-02-24  Yao Qi  <yao@codesourcery.com>
8601
8602         * mips-linux-nat.c (super_close): Update its type.
8603         (mips_linux_close): Pass 'self' to super_close.
8604
8605 2014-02-24  Yao Qi  <yao@codesourcery.com>
8606
8607         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8608         * corefile.c (read_memory): Adjusted.
8609         * target.c (target_write_with_progress): Adjusted.
8610
8611 2014-02-23  Yao Qi  <yao@codesourcery.com>
8612
8613         Revert two patches:
8614
8615         2013-10-25  Yao Qi  <yao@codesourcery.com>
8616
8617         * remote.c (remote_traceframe_info): Return early if
8618         traceframe is not selected.
8619
8620         2013-07-19  Yao Qi  <yao@codesourcery.com>
8621
8622         * target.c (update_current_target): Change the default action
8623         of 'to_traceframe_info' from tcomplain to return_zero.
8624         * target.h (struct target_ops) <to_traceframe_info>: Add more
8625         comments.
8626
8627 2014-02-23  Yao Qi  <yao@codesourcery.com>
8628
8629         * valops.c (read_value_memory): Rewrite it.  Call
8630         target_xfer_partial in a loop.
8631         * exec.h (section_table_available_memory): Remove declaration.
8632         Move comments to ...
8633         * exec.c (section_table_available_memory): ... here.  Make it
8634         static.
8635
8636 2014-02-23  Yao Qi  <yao@codesourcery.com>
8637
8638         * exec.c (section_table_read_available_memory): New function.
8639         * exec.h (section_table_read_available_memory): Declare.
8640         * ctf.c (ctf_xfer_partial): Call
8641         section_table_read_available_memory.
8642         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8643
8644 2014-02-23  Yao Qi  <yao@codesourcery.com>
8645
8646         * ctf.c (ctf_xfer_partial): Move code to ...
8647         * exec.c (exec_read_partial_read_only): ... it.  New function.
8648         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8649         * tracefile.c: Include "exec.h".
8650         * exec.h (exec_read_partial_read_only): Declare.
8651
8652 2014-02-23  Yao Qi  <yao@codesourcery.com>
8653
8654         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8655         (tfile_has_memory): Remove.
8656         (init_tfile_ops): Don't set fields to_has_all_memory and
8657         to_has_memory of tfile_ops.
8658         * tracefile.c (tracefile_has_all_memory): New function.
8659         (tracefile_has_memory): New function.
8660         (init_tracefile_ops): Initialize fields to_has_all_memory and
8661         to_has_memory of 'ops'.
8662
8663 2014-02-23  Yao Qi  <yao@codesourcery.com>
8664
8665         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8666         (ctf_thread_alive, ctf_get_trace_status): Remove.
8667         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8668         init_tracefile_ops.
8669         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8670         (tfile_has_stack, tfile_has_registers): Remove.
8671         (tfile_thread_alive): Remove.
8672         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8673         init_tracefile_ops.
8674         * tracefile.c (tracefile_has_stack): New function.
8675         (tracefile_has_registers): New function.
8676         (tracefile_thread_alive): New function.
8677         (tracefile_get_trace_status): New function.
8678         (init_tracefile_ops): New function.
8679         * tracefile.h (init_tracefile_ops): Declare.
8680
8681 2014-02-23  Yao Qi  <yao@codesourcery.com>
8682
8683         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8684         (O_LARGEFILE): Likewise.
8685         (tfile_ops): Likewise.
8686         (TRACE_HEADER_SIZE): Likewise.
8687         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8688         (cur_data_size): Likewise.
8689         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8690         (tfile_close, tfile_files_info): Likewise.
8691         (tfile_get_trace_status): Likewise.
8692         (tfile_get_tracepoint_status): Likewise.
8693         (tfile_get_traceframe_address): Likewise.
8694         (tfile_trace_find, match_blocktype): Likewise.
8695         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8696         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8697         (tfile_get_trace_state_variable_value): Likewise.
8698         (tfile_has_all_memory, tfile_has_memory): Likewise.
8699         (tfile_has_stack, tfile_has_registers): Likewise.
8700         (tfile_thread_alive, build_traceframe_info): Likewise.
8701         (tfile_traceframe_info, init_tfile_ops): Likewise.
8702         (_initialize_tracepoint): Don't call init_tfile_ops
8703         and add_target_with_completer.
8704         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8705         exec.h, completer.h and filenames.h.
8706         (_initialize_tracefile_tfile): New function.
8707
8708 2014-02-23  Yao Qi  <yao@codesourcery.com>
8709
8710         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8711         tracefile-tfile.o.
8712         (HFILES_NO_SRCDIR): Add tracefile.h.
8713         * ctf.c: Include "tracefile.h".
8714         * tracefile.h: New file.
8715         * tracefile.c: New file
8716         * tracefile-tfile.c: New file.
8717         * tracepoint.c: Include "tracefile.h".
8718         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8719         (stop_reason_names): Add const.
8720         (trace_file_writer_xfree): Move it to tracefile.c.
8721         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8722         (trace_save_ctf): Likewise.
8723         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8724         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8725         (tfile_write_header, tfile_write_regblock_type): Likewise.
8726         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8727         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8728         (tfile_write_raw_data, tfile_end): Likewise.
8729         (tfile_trace_file_writer_new): Likewise.
8730         (free_uploaded_tp): Make it extern.
8731         (free_uploaded_tsv): Make it extern.
8732         (_initialize_tracepoint): Move code to register command 'tsave'
8733         to tracefile.c.
8734         * tracepoint.h (stop_reason_names): Declare.
8735         (struct trace_frame_write_ops): Move it to tracefile.h.
8736         (struct trace_file_write_ops): Likewise.
8737         (struct trace_file_writer): Likewise.
8738         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8739
8740 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8741
8742         PR gdb/16594
8743         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8744         process name.
8745         (get_cores_used_by_process): New parameter num_cores, use it.
8746         (linux_xfer_osdata_processes): Pass num_cores to it.
8747         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8748         process name.
8749
8750 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8751
8752         * target.c (memory_xfer_partial): Fix length arg in call to
8753         breakpoint_xfer_memory.
8754
8755 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8756
8757         PR tdep/16397
8758         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8759         number comes after the + or - signs.  Adjust length of register
8760         name to be extracted.
8761
8762 2014-02-20  Tom Tromey  <tromey@redhat.com>
8763
8764         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8765         (ada_varobj_ops): Mark "extern".
8766
8767 2014-02-20  Tom Tromey  <tromey@redhat.com>
8768
8769         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8770
8771 2014-02-20  Doug Evans  <xdje42@gmail.com>
8772
8773         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8774         All callers updated.
8775         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8776         All callers updated.
8777         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8778         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8779
8780 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8781             Joel Brobecker  <brobecker@adacore.com>
8782             Doug Evans  <xdje42@gmail.com>
8783
8784         PR symtab/16581
8785         * dwarf2read.c (struct die_info): New member in_process.
8786         (reset_die_in_process): New function.
8787         (process_die): Set it at the start, reset when returning.
8788         (inherit_abstract_dies): Only call process_die if origin_child_die
8789         not already being processed.
8790
8791 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8792
8793         * windows-nat.c (handle_unload_dll): Add function documentation.
8794         (do_initial_windows_stuff): Add comment explaining why we wait
8795         until after inferior initialization has finished before
8796         processing all DLLs.
8797
8798 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8799
8800         * windows-nat.c (get_module_name): Delete.
8801         (windows_get_exec_module_filename): New function, mostly
8802         inspired from get_module_name.
8803         (windows_pid_to_exec_file): Replace call to get_module_name
8804         by call to windows_get_exec_module_filename.
8805
8806 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8807
8808         * windows-nat.c (handle_load_dll): Rewrite this function's
8809         introductory comment.  Remove code using get_module_name
8810         to get the DLL's name.
8811
8812 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8813
8814         * windows-nat.c (get_windows_debug_event): Ignore
8815         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8816         if windows_initialization_done == 0.
8817         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8818         Adjust implementation to always load all DLLs.
8819         (do_initial_windows_stuff): Replace call to
8820         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8821
8822 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8823
8824         * windows-nat.c (_initialize_windows_nat): Deprecate the
8825         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8826         and "assf" aliases into commands, and deprecate them as well.
8827         * NEWS: Add entry explaining that "dll-symbols" and its two
8828         aliases are now deprecated.
8829
8830 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8831
8832         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8833         new-line in debug string.  Remove trailing spaces.
8834
8835 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8836
8837         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8838
8839 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8840
8841         * NEWS: Add entry for the new feature
8842         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8843         and class values.
8844
8845 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8846
8847         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8848
8849 2014-02-19  Pedro Alves  <palves@redhat.com>
8850
8851         * common/ptid.h (struct ptid): Mention that process_stratum
8852         targets should prefer ptid.lwp.
8853
8854 2014-02-19  Pedro Alves  <palves@redhat.com>
8855
8856         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8857         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8858         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8859         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8860         store remote thread ids rather than ptid.tid.
8861         (_initialize_remote): Adjust.
8862
8863 2014-02-19  Tom Tromey  <tromey@redhat.com>
8864
8865         * target.c (target_get_unwinder): Rewrite.
8866         (target_get_tailcall_unwinder): Rewrite.
8867         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8868         (record_btrace_to_get_tailcall_unwinder): New function.
8869         (init_record_btrace_ops): Update.
8870         * target.h (struct target_ops) <to_get_unwinder,
8871         to_get_tailcall_unwinder>: Now function pointers.  Use
8872         TARGET_DEFAULT_RETURN.
8873
8874 2014-02-19  Tom Tromey  <tromey@redhat.com>
8875
8876         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8877         argument.
8878         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8879
8880 2014-02-19  Tom Tromey  <tromey@redhat.com>
8881
8882         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8883         directly.
8884         * target-delegates.c: Rebuild.
8885         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8886         TARGET_DEFAULT_FUNC.
8887         * target.c (default_target_decr_pc_after_break): Rename from
8888         forward_target_decr_pc_after_break.  Simplify.
8889         (target_decr_pc_after_break): Rely on delegation.
8890
8891 2014-02-19  Tom Tromey  <tromey@redhat.com>
8892
8893         * target.c (update_current_target): Do not INHERIT to_doc or
8894         to_magic.  Do not de_fault to_open or to_close.
8895
8896 2014-02-19  Tom Tromey  <tromey@redhat.com>
8897
8898         * gcore.h (objfile_find_memory_regions): Declare.
8899         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8900         "self" argument.
8901         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8902         * exec.c: Include gcore.h.
8903         (exec_set_find_memory_regions): Remove.
8904         (exec_find_memory_regions): Remove.
8905         (exec_do_find_memory_regions): Remove.
8906         (init_exec_ops): Update.
8907         * defs.h (exec_set_find_memory_regions): Remove.
8908
8909 2014-02-19  Tom Tromey  <tromey@redhat.com>
8910
8911         * target-delegates.c: Rebuild.
8912         * target.h (struct target_ops) <to_extra_thread_info,
8913         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8914         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8915         not 0, in TARGET_DEFAULT_RETURN.
8916
8917 2014-02-19  Tom Tromey  <tromey@redhat.com>
8918
8919         * target.c (complete_target_initialization): Remove casts.  Use
8920         return_zero_has_execution.
8921         (return_zero): Add "ignore" argument.
8922         (return_zero_has_execution): New function.
8923         (init_dummy_target): Remove casts.  Use
8924         return_zero_has_execution.
8925
8926 2014-02-19  Tom Tromey  <tromey@redhat.com>
8927
8928         * target.c (update_current_target): Update comments.  Do not
8929         INHERIT to_stratum.
8930
8931 2014-02-19  Tom Tromey  <tromey@redhat.com>
8932
8933         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8934         needed.
8935         * corelow.c (core_read_description): Delegate when needed.
8936         * remote.c (remote_read_description): Delegate when needed.
8937         * target-delegates.c: Rebuild.
8938         * target.c (target_read_description): Rewrite.
8939         * target.h (struct target_ops) <to_read_description>: Update
8940         comment.  Use TARGET_DEFAULT_RETURN.
8941
8942 2014-02-19  Tom Tromey  <tromey@redhat.com>
8943
8944         * target-delegates.c: Rebuild.
8945         * target.c (update_current_target): Don't inherit or default
8946         to_can_run.
8947         (find_default_run_target): Check against delegate_can_run.
8948         * target.h (struct target_ops) <to_can_run>: Use
8949         TARGET_DEFAULT_RETURN.
8950
8951 2014-02-19  Tom Tromey  <tromey@redhat.com>
8952
8953         * target-delegates.c: Rebuild.
8954         * target.c (target_disconnect): Unconditionally delegate.
8955         * target.h (struct target_ops) <to_disconnect>: Use
8956         TARGET_DEFAULT_NORETURN.
8957
8958 2014-02-19  Tom Tromey  <tromey@redhat.com>
8959
8960         * record.c (record_stop): Unconditionally delegate.
8961         * target-delegates.c: Rebuild.
8962         * target.c (target_stop_recording): Unconditionally delegate.
8963         * target.h (struct target_ops) <to_stop_recording>: Use
8964         TARGET_DEFAULT_IGNORE.
8965
8966 2014-02-19  Tom Tromey  <tromey@redhat.com>
8967
8968         * target-delegates.c: Rebuild.
8969         * target.c (target_enable_btrace): Unconditionally delegate.
8970         * target.h (struct target_ops) <to_enable_btrace>: 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_read_btrace): Unconditionally delegate.
8977         * target.h (struct target_ops) <to_read_btrace>: 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_teardown_btrace): Unconditionally delegate.
8984         * target.h (struct target_ops) <to_teardown_btrace>: Use
8985         TARGET_DEFAULT_NORETURN.
8986
8987 2014-02-19  Tom Tromey  <tromey@redhat.com>
8988
8989         * target-delegates.c: Rebuild.
8990         * target.c (target_disable_btrace): Unconditionally delegate.
8991         * target.h (struct target_ops) <to_disable_btrace>: Use
8992         TARGET_DEFAULT_NORETURN.
8993
8994 2014-02-19  Tom Tromey  <tromey@redhat.com>
8995
8996         * target-delegates.c: Rebuild.
8997         * target.c (default_search_memory): New function.
8998         (simple_search_memory): Update comment.
8999         (target_search_memory): Unconditionally delegate.
9000         * target.h (struct target_ops) <to_search_memory>: Use
9001         TARGET_DEFAULT_FUNC.
9002
9003 2014-02-19  Tom Tromey  <tromey@redhat.com>
9004
9005         * auxv.c (default_auxv_parse): No longer static.
9006         (target_auxv_parse): Unconditionally delegate.
9007         * auxv.h (default_auxv_parse): Declare.
9008         * target-delegates.c: Rebuild.
9009         * target.c: Include auxv.h.
9010         * target.h (struct target_ops) <to_auxv_parse>: Use
9011         TARGET_DEFAULT_FUNC.
9012
9013 2014-02-19  Tom Tromey  <tromey@redhat.com>
9014
9015         * target-delegates.c: Rebuild.
9016         * target.c (target_memory_map): Unconditionally delegate.
9017         * target.h (struct target_ops) <to_memory_map>: Use
9018         TARGET_DEFAULT_RETURN.
9019
9020 2014-02-19  Tom Tromey  <tromey@redhat.com>
9021
9022         * target-delegates.c: Rebuild.
9023         * target.c (target_thread_alive): Unconditionally delegate.
9024         * target.h (struct target_ops) <to_thread_alive>: Use
9025         TARGET_DEFAULT_RETURN.
9026
9027 2014-02-19  Tom Tromey  <tromey@redhat.com>
9028
9029         * target-delegates.c: Rebuild.
9030         * target.c (target_save_record): Unconditionally delegate.
9031         * target.h (struct target_ops) <to_save_record>: Use
9032         TARGET_DEFAULT_NORETURN.
9033
9034 2014-02-19  Tom Tromey  <tromey@redhat.com>
9035
9036         * target-delegates.c: Rebuild.
9037         * target.c (target_delete_record): Unconditionally delegate.
9038         * target.h (struct target_ops) <to_delete_record>: Use
9039         TARGET_DEFAULT_NORETURN.
9040
9041 2014-02-19  Tom Tromey  <tromey@redhat.com>
9042
9043         * target-delegates.c: Rebuild.
9044         * target.c (target_record_is_replaying): Unconditionally
9045         delegate.
9046         * target.h (struct target_ops) <to_record_is_replaying>: Use
9047         TARGET_DEFAULT_RETURN.
9048
9049 2014-02-19  Tom Tromey  <tromey@redhat.com>
9050
9051         * target-delegates.c: Rebuild.
9052         * target.c (target_goto_record_begin): Unconditionally delegate.
9053         * target.h (struct target_ops) <to_goto_record_begin>: Use
9054         TARGET_DEFAULT_NORETURN.
9055
9056 2014-02-19  Tom Tromey  <tromey@redhat.com>
9057
9058         * target-delegates.c: Rebuild.
9059         * target.c (target_goto_record_end): Unconditionally delegate.
9060         * target.h (struct target_ops) <to_goto_record_end>: Use
9061         TARGET_DEFAULT_NORETURN.
9062
9063 2014-02-19  Tom Tromey  <tromey@redhat.com>
9064
9065         * target-delegates.c: Rebuild.
9066         * target.c (target_goto_record): Unconditionally delegate.
9067         * target.h (struct target_ops) <to_goto_record>: Use
9068         TARGET_DEFAULT_NORETURN.
9069
9070 2014-02-19  Tom Tromey  <tromey@redhat.com>
9071
9072         * target-delegates.c: Rebuild.
9073         * target.c (target_insn_history): Unconditionally delegate.
9074         * target.h (struct target_ops) <to_insn_history>: Use
9075         TARGET_DEFAULT_NORETURN.
9076
9077 2014-02-19  Tom Tromey  <tromey@redhat.com>
9078
9079         * target-delegates.c: Rebuild.
9080         * target.c (target_insn_history_from): Unconditionally delegate.
9081         * target.h (struct target_ops) <to_insn_history_from>: Use
9082         TARGET_DEFAULT_NORETURN.
9083
9084 2014-02-19  Tom Tromey  <tromey@redhat.com>
9085
9086         * target-delegates.c: Rebuild.
9087         * target.c (target_insn_history_range): Unconditionally delegate.
9088         * target.h (struct target_ops) <to_insn_history_range>: Use
9089         TARGET_DEFAULT_NORETURN.
9090
9091 2014-02-19  Tom Tromey  <tromey@redhat.com>
9092
9093         * target-delegates.c: Rebuild.
9094         * target.c (target_call_history): Unconditionally delegate.
9095         * target.h (struct target_ops) <to_call_history>: Use
9096         TARGET_DEFAULT_NORETURN.
9097
9098 2014-02-19  Tom Tromey  <tromey@redhat.com>
9099
9100         * target-delegates.c: Rebuild.
9101         * target.c (target_call_history_from): Unconditionally delegate.
9102         * target.h (struct target_ops) <to_call_history_from>: Use
9103         TARGET_DEFAULT_NORETURN.
9104
9105 2014-02-19  Tom Tromey  <tromey@redhat.com>
9106
9107         * target-delegates.c: Rebuild.
9108         * target.c (target_call_history_range): Unconditionally delegate.
9109         * target.h (struct target_ops) <to_call_history_range>: Use
9110         TARGET_DEFAULT_NORETURN.
9111
9112 2014-02-19  Tom Tromey  <tromey@redhat.com>
9113
9114         * target-delegates.c: Rebuild.
9115         * target.c (target_verify_memory): Unconditionally delegate.
9116         * target.h (struct target_ops) <to_verify_memory>: Use
9117         TARGET_DEFAULT_NORETURN.
9118
9119 2014-02-19  Tom Tromey  <tromey@redhat.com>
9120
9121         * target-delegates.c: Rebuild.
9122         * target.c (target_core_of_thread): Unconditionally delegate.
9123         * target.h (struct target_ops) <to_core_of_thread>: Use
9124         TARGET_DEFAULT_RETURN.
9125
9126 2014-02-19  Tom Tromey  <tromey@redhat.com>
9127
9128         * target-delegates.c: Rebuild.
9129         * target.c (target_flash_done): Unconditionally delegate.
9130         * target.h (struct target_ops) <to_flash_done>: Use
9131         TARGET_DEFAULT_NORETURN.
9132
9133 2014-02-19  Tom Tromey  <tromey@redhat.com>
9134
9135         * target-delegates.c: Rebuild.
9136         * target.c (target_flash_erase): Unconditionally delegate.
9137         * target.h (struct target_ops) <to_flash_erase>: Use
9138         TARGET_DEFAULT_NORETURN.
9139
9140 2014-02-19  Tom Tromey  <tromey@redhat.com>
9141
9142         * target-delegates.c: Rebuild.
9143         * target.c (target_get_section_table): Unconditionally delegate.
9144         * target.h (struct target_ops) <to_get_section_table>: Use
9145         TARGET_DEFAULT_RETURN.
9146
9147 2014-02-19  Tom Tromey  <tromey@redhat.com>
9148
9149         * target-delegates.c: Rebuild.
9150         * target.c (target_pid_to_str): Unconditionally delegate.
9151         (init_dummy_target): Don't initialize to_pid_to_str.
9152         (default_pid_to_str): Rename from dummy_pid_to_str.
9153         * target.h (struct target_ops) <to_pid_to_str>: Use
9154         TARGET_DEFAULT_FUNC.
9155
9156 2014-02-19  Tom Tromey  <tromey@redhat.com>
9157
9158         * target-delegates.c: Rebuild.
9159         * target.c (target_find_new_threads): Unconditionally delegate.
9160         * target.h (struct target_ops) <to_find_new_threads>: 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_program_signals): Unconditionally delegate.
9167         * target.h (struct target_ops) <to_program_signals>: Use
9168         TARGET_DEFAULT_IGNORE.
9169
9170 2014-02-19  Tom Tromey  <tromey@redhat.com>
9171
9172         * target-delegates.c: Rebuild.
9173         * target.c (target_pass_signals): Unconditionally delegate.
9174         * target.h (struct target_ops) <to_pass_signals>: Use
9175         TARGET_DEFAULT_IGNORE.
9176
9177 2014-02-19  Tom Tromey  <tromey@redhat.com>
9178
9179         * target-delegates.c: Rebuild.
9180         * target.c (default_mourn_inferior): New function.
9181         (target_mourn_inferior): Unconditionally delegate.
9182         * target.h (struct target_ops) <to_mourn_inferior>: Use
9183         TARGET_DEFAULT_FUNC.
9184
9185 2014-02-19  Tom Tromey  <tromey@redhat.com>
9186
9187         * target-delegates.c: Rebuild.
9188         * target.c (default_follow_fork): New function.
9189         (target_follow_fork): Unconditionally delegate.
9190         * target.h (struct target_ops) <to_follow_fork>: Use
9191         TARGET_DEFAULT_FUNC.
9192
9193 2014-02-19  Tom Tromey  <tromey@redhat.com>
9194
9195         * target-delegates.c: Rebuild.
9196         * target.c (target_kill): Unconditionally delegate.
9197         * target.h (struct target_ops) <to_kill>: Use
9198         TARGET_DEFAULT_NORETURN.
9199
9200 2014-02-19  Tom Tromey  <tromey@redhat.com>
9201
9202         * target-delegates.c: Rebuild.
9203         * target.c (target_masked_watch_num_registers): Unconditionally
9204         delegate.
9205         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9206         Use TARGET_DEFAULT_RETURN.
9207
9208 2014-02-19  Tom Tromey  <tromey@redhat.com>
9209
9210         * target-delegates.c: Rebuild.
9211         * target.c (target_remove_mask_watchpoint): Unconditionally
9212         delegate.
9213         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9214         TARGET_DEFAULT_RETURN.
9215
9216 2014-02-19  Tom Tromey  <tromey@redhat.com>
9217
9218         * target-delegates.c: Rebuild.
9219         * target.c (target_insert_mask_watchpoint): Unconditionally
9220         delegate.
9221         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9222         TARGET_DEFAULT_RETURN.
9223
9224 2014-02-19  Tom Tromey  <tromey@redhat.com>
9225
9226         * target-delegates.c: Rebuild.
9227         * target.c (target_ranged_break_num_registers): Unconditionally
9228         delegate.
9229         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9230         Use TARGET_DEFAULT_RETURN.
9231
9232 2014-02-19  Tom Tromey  <tromey@redhat.com>
9233
9234         * target-delegates.c: Rebuild.
9235         * target.c (target_fetch_registers): Unconditionally delegate.
9236         * target.h (struct target_ops) <to_fetch_registers>: Use
9237         TARGET_DEFAULT_NORETURN.
9238
9239 2014-02-19  Tom Tromey  <tromey@redhat.com>
9240
9241         * target-delegates.c: Rebuild.
9242         * target.c (update_current_target): Don't inherit or default
9243         to_stop.
9244         * target.h (struct target_ops) <to_stop>: Use
9245         TARGET_DEFAULT_IGNORE.
9246
9247 2014-02-19  Tom Tromey  <tromey@redhat.com>
9248
9249         * target-delegates.c: Rebuild.
9250         * target.c (update_current_target): Don't inherit or default
9251         to_can_run_breakpoint_commands.
9252         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9253         Use TARGET_DEFAULT_RETURN.
9254
9255 2014-02-19  Tom Tromey  <tromey@redhat.com>
9256
9257         * target-delegates.c: Rebuild.
9258         * target.c (update_current_target): Don't inherit or default
9259         to_supports_evaluation_of_breakpoint_conditions.
9260         * target.h (struct target_ops)
9261         <to_supports_evaluation_of_breakpoint_conditions>: Use
9262         TARGET_DEFAULT_RETURN.
9263
9264 2014-02-19  Tom Tromey  <tromey@redhat.com>
9265
9266         * target-delegates.c: Rebuild.
9267         * target.c (update_current_target): Don't inherit or default
9268         to_augmented_libraries_svr4_read.
9269         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9270         Use TARGET_DEFAULT_RETURN.
9271
9272 2014-02-19  Tom Tromey  <tromey@redhat.com>
9273
9274         * target-delegates.c: Rebuild.
9275         * target.c (update_current_target): Don't inherit or default
9276         to_can_use_agent.
9277         * target.h (struct target_ops) <to_can_use_agent>: Use
9278         TARGET_DEFAULT_RETURN.
9279
9280 2014-02-19  Tom Tromey  <tromey@redhat.com>
9281
9282         * target-delegates.c: Rebuild.
9283         * target.c (update_current_target): Don't inherit or default
9284         to_use_agent.
9285         * target.h (struct target_ops) <to_use_agent>: Use
9286         TARGET_DEFAULT_NORETURN.
9287
9288 2014-02-19  Tom Tromey  <tromey@redhat.com>
9289
9290         * target-delegates.c: Rebuild.
9291         * target.c (update_current_target): Don't inherit or default
9292         to_traceframe_info.
9293         (return_null): Remove.
9294         * target.h (struct target_ops) <to_traceframe_info>: Use
9295         TARGET_DEFAULT_RETURN.
9296
9297 2014-02-19  Tom Tromey  <tromey@redhat.com>
9298
9299         * target-delegates.c: Rebuild.
9300         * target.c (update_current_target): Don't inherit or default
9301         to_static_tracepoint_markers_by_strid.
9302         * target.h (struct target_ops)
9303         <to_static_tracepoint_markers_by_strid>: Use
9304         TARGET_DEFAULT_NORETURN.
9305
9306 2014-02-19  Tom Tromey  <tromey@redhat.com>
9307
9308         * target-delegates.c: Rebuild.
9309         * target.c (update_current_target): Don't inherit or default
9310         to_static_tracepoint_marker_at.
9311         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9312         Use TARGET_DEFAULT_RETURN.
9313
9314 2014-02-19  Tom Tromey  <tromey@redhat.com>
9315
9316         * target-delegates.c: Rebuild.
9317         * target.c (update_current_target): Don't inherit or default
9318         to_set_permissions.
9319         * target.h (struct target_ops) <to_set_permissions>: Use
9320         TARGET_DEFAULT_IGNORE.
9321
9322 2014-02-19  Tom Tromey  <tromey@redhat.com>
9323
9324         * target-delegates.c: Rebuild.
9325         * target.c (update_current_target): Don't inherit or default
9326         to_get_tib_address.
9327         * target.h (struct target_ops) <to_get_tib_address>: Use
9328         TARGET_DEFAULT_NORETURN.
9329
9330 2014-02-19  Tom Tromey  <tromey@redhat.com>
9331
9332         * target-delegates.c: Rebuild.
9333         * target.c (update_current_target): Don't inherit or default
9334         to_set_trace_notes.
9335         * target.h (struct target_ops) <to_set_trace_notes>: Use
9336         TARGET_DEFAULT_RETURN.
9337
9338 2014-02-19  Tom Tromey  <tromey@redhat.com>
9339
9340         * target-delegates.c: Rebuild.
9341         * target.c (update_current_target): Don't initialize
9342         to_set_trace_buffer_size.
9343         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9344         TARGET_DEFAULT_IGNORE.
9345
9346 2014-02-19  Tom Tromey  <tromey@redhat.com>
9347
9348         * target-delegates.c: Rebuild.
9349         * target.c (update_current_target): Don't inherit or default
9350         to_set_circular_trace_buffer.
9351         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9352         TARGET_DEFAULT_IGNORE.
9353
9354 2014-02-19  Tom Tromey  <tromey@redhat.com>
9355
9356         * target-delegates.c: Rebuild.
9357         * target.c (update_current_target): Don't inherit or default
9358         to_set_disconnected_tracing.
9359         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9360         TARGET_DEFAULT_IGNORE.
9361
9362 2014-02-19  Tom Tromey  <tromey@redhat.com>
9363
9364         * target-delegates.c: Rebuild.
9365         * target.c (update_current_target): Don't inherit or default
9366         to_get_min_fast_tracepoint_insn_len.
9367         (return_minus_one): Remove.
9368         * target.h (struct target_ops)
9369         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9370
9371 2014-02-19  Tom Tromey  <tromey@redhat.com>
9372
9373         * target-delegates.c: Rebuild.
9374         * target.c (update_current_target): Don't inherit or default
9375         to_get_raw_trace_data.
9376         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9377         TARGET_DEFAULT_NORETURN.
9378
9379 2014-02-19  Tom Tromey  <tromey@redhat.com>
9380
9381         * target-delegates.c: Rebuild.
9382         * target.c (update_current_target): Don't inherit or default
9383         to_upload_trace_state_variables.
9384         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9385         Use TARGET_DEFAULT_RETURN.
9386
9387 2014-02-19  Tom Tromey  <tromey@redhat.com>
9388
9389         * target-delegates.c: Rebuild.
9390         * target.c (update_current_target): Don't inherit or default
9391         to_upload_tracepoints.
9392         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9393         TARGET_DEFAULT_RETURN.
9394
9395 2014-02-19  Tom Tromey  <tromey@redhat.com>
9396
9397         * target-delegates.c: Rebuild.
9398         * target.c (update_current_target): Don't inherit or default
9399         to_save_trace_data.
9400         * target.h (struct target_ops) <to_save_trace_data>: Use
9401         TARGET_DEFAULT_NORETURN.
9402
9403 2014-02-19  Tom Tromey  <tromey@redhat.com>
9404
9405         * target-delegates.c: Rebuild.
9406         * target.c (update_current_target): Don't inherit or default
9407         to_get_trace_state_variable_value.
9408         * target.h (struct target_ops)
9409         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9410
9411 2014-02-19  Tom Tromey  <tromey@redhat.com>
9412
9413         * target-delegates.c: Rebuild.
9414         * target.c (update_current_target): Don't inherit or default
9415         to_trace_find.
9416         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9417
9418 2014-02-19  Tom Tromey  <tromey@redhat.com>
9419
9420         * target-delegates.c: Rebuild.
9421         * target.c (update_current_target): Don't inherit or default
9422         to_trace_stop.
9423         * target.h (struct target_ops) <to_trace_stop>: Use
9424         TARGET_DEFAULT_NORETURN.
9425
9426 2014-02-19  Tom Tromey  <tromey@redhat.com>
9427
9428         * target-delegates.c: Rebuild.
9429         * target.c (update_current_target): Don't inherit or default
9430         to_get_tracepoint_status.
9431         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9432         TARGET_DEFAULT_NORETURN.
9433
9434 2014-02-19  Tom Tromey  <tromey@redhat.com>
9435
9436         * target-delegates.c: Rebuild.
9437         * target.c (update_current_target): Don't inherit or default
9438         to_get_trace_status.
9439         * target.h (struct target_ops) <to_get_trace_status>: Use
9440         TARGET_DEFAULT_RETURN.
9441
9442 2014-02-19  Tom Tromey  <tromey@redhat.com>
9443
9444         * target-delegates.c: Rebuild.
9445         * target.c (update_current_target): Don't inherit or default
9446         to_trace_start.
9447         * target.h (struct target_ops) <to_trace_start>: Use
9448         TARGET_DEFAULT_NORETURN.
9449
9450 2014-02-19  Tom Tromey  <tromey@redhat.com>
9451
9452         * target-delegates.c: Rebuild.
9453         * target.c (update_current_target): Don't inherit or default
9454         to_trace_set_readonly_regions.
9455         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9456         Use TARGET_DEFAULT_NORETURN.
9457
9458 2014-02-19  Tom Tromey  <tromey@redhat.com>
9459
9460         * target-delegates.c: Rebuild.
9461         * target.c (update_current_target): Don't inherit or default
9462         to_disable_tracepoint.
9463         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9464         TARGET_DEFAULT_NORETURN.
9465
9466 2014-02-19  Tom Tromey  <tromey@redhat.com>
9467
9468         * target-delegates.c: Rebuild.
9469         * target.c (update_current_target): Don't inherit or default
9470         to_enable_tracepoint.
9471         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9472         TARGET_DEFAULT_NORETURN.
9473
9474 2014-02-19  Tom Tromey  <tromey@redhat.com>
9475
9476         * target-delegates.c: Rebuild.
9477         * target.c (update_current_target): Don't inherit or default
9478         to_download_trace_state_variable.
9479         * target.h (struct target_ops) <to_download_trace_state_variable>:
9480         Use TARGET_DEFAULT_NORETURN.
9481
9482 2014-02-19  Tom Tromey  <tromey@redhat.com>
9483
9484         * target-delegates.c: Rebuild.
9485         * target.c (update_current_target): Don't inherit or default
9486         to_can_download_tracepoint.
9487         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9488         TARGET_DEFAULT_RETURN.
9489
9490 2014-02-19  Tom Tromey  <tromey@redhat.com>
9491
9492         * target-delegates.c: Rebuild.
9493         * target.c (update_current_target): Don't inherit or default
9494         to_download_tracepoint.
9495         * target.h (struct target_ops) <to_download_tracepoint>: Use
9496         TARGET_DEFAULT_NORETURN.
9497
9498 2014-02-19  Tom Tromey  <tromey@redhat.com>
9499
9500         * target-delegates.c: Rebuild.
9501         * target.c (update_current_target): Don't inherit or default
9502         to_trace_init.
9503         * target.h (struct target_ops) <to_trace_init>: Use
9504         TARGET_DEFAULT_RETURN.
9505
9506 2014-02-19  Tom Tromey  <tromey@redhat.com>
9507
9508         * target-delegates.c: Rebuild.
9509         * target.c (update_current_target): Don't inherit or default
9510         to_supports_string_tracing.
9511         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9512         TARGET_DEFAULT_RETURN.
9513
9514 2014-02-19  Tom Tromey  <tromey@redhat.com>
9515
9516         * target-delegates.c: Rebuild.
9517         * target.c (update_current_target): Don't inherit or default
9518         to_supports_enable_disable_tracepoint.
9519         * target.h (struct target_ops)
9520         <to_supports_enable_disable_tracepoint>: Use
9521         TARGET_DEFAULT_RETURN.
9522
9523 2014-02-19  Tom Tromey  <tromey@redhat.com>
9524
9525         * target-delegates.c: Rebuild.
9526         * target.c (update_current_target): Don't inherit or default
9527         to_supports_multi_process.
9528         * target.h (struct target_ops) <to_supports_multi_process>: Use
9529         TARGET_DEFAULT_RETURN.
9530
9531 2014-02-19  Tom Tromey  <tromey@redhat.com>
9532
9533         * target-delegates.c: Rebuild.
9534         * target.c (update_current_target): Don't inherit or default
9535         to_get_ada_task_ptid.
9536         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9537         TARGET_DEFAULT_FUNC.
9538
9539 2014-02-19  Tom Tromey  <tromey@redhat.com>
9540
9541         * target-delegates.c: Rebuild.
9542         * target.c (update_current_target): Don't inherit or default
9543         to_thread_architecture.
9544         * target.h (struct target_ops) <to_thread_architecture>: Use
9545         TARGET_DEFAULT_FUNC.
9546
9547 2014-02-19  Tom Tromey  <tromey@redhat.com>
9548
9549         * target-delegates.c: Rebuild.
9550         * target.c (update_current_target): Don't inherit or default
9551         to_execution_direction.
9552         * target.h (struct target_ops) <to_execution_direction>: Use
9553         TARGET_DEFAULT_FUNC.
9554
9555 2014-02-19  Tom Tromey  <tromey@redhat.com>
9556
9557         * target-delegates.c: Rebuild.
9558         * target.c (update_current_target): Don't inherit or default
9559         to_can_execute_reverse.
9560         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9561         TARGET_DEFAULT_RETURN.
9562         (target_can_execute_reverse): Unconditionally delegate.
9563
9564 2014-02-19  Tom Tromey  <tromey@redhat.com>
9565
9566         * target-delegates.c: Rebuild.
9567         * target.c (update_current_target): Don't inherit or default
9568         to_goto_bookmark.
9569         (dummy_goto_bookmark): Remove.
9570         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9571         * target.h (struct target_ops) <to_goto_bookmark>: Use
9572         TARGET_DEFAULT_NORETURN.
9573
9574 2014-02-19  Tom Tromey  <tromey@redhat.com>
9575
9576         * target-delegates.c: Rebuild.
9577         * target.c (update_current_target): Don't inherit or default
9578         to_get_bookmark.
9579         (dummy_get_bookmark): Remove.
9580         (init_dummy_target): Don't inherit or default to_get_bookmark.
9581         * target.h (struct target_ops) <to_get_bookmark>: Use
9582         TARGET_DEFAULT_NORETURN
9583
9584 2014-02-19  Tom Tromey  <tromey@redhat.com>
9585
9586         * target-delegates.c: Rebuild.
9587         * target.c (update_current_target): Don't inherit or default
9588         to_make_corefile_notes.
9589         (init_dummy_target): Don't initialize to_make_corefile_notes.
9590         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9591         TARGET_DEFAULT_FUNC.
9592
9593 2014-02-19  Tom Tromey  <tromey@redhat.com>
9594
9595         * target-delegates.c: Rebuild.
9596         * target.c (update_current_target): Don't inherit or default
9597         to_find_memory_regions.
9598         (init_dummy_target): Don't initialize to_find_memory_regions.
9599         * target.h (struct target_ops) <to_find_memory_regions>: Use
9600         TARGET_DEFAULT_FUNC.
9601
9602 2014-02-19  Tom Tromey  <tromey@redhat.com>
9603
9604         * target-delegates.c: Rebuild.
9605         * target.c (update_current_target): Don't inherit or default
9606         to_log_command.
9607         * target.h (struct target_ops) <to_log_command>: Use
9608         TARGET_DEFAULT_IGNORE.
9609         (target_log_command): Unconditionally delegate.
9610
9611 2014-02-19  Tom Tromey  <tromey@redhat.com>
9612
9613         * target-delegates.c: Rebuild.
9614         * target.c (update_current_target): Don't inherit or default
9615         to_pid_to_exec_file.
9616         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9617         TARGET_DEFAULT_RETURN.
9618
9619 2014-02-19  Tom Tromey  <tromey@redhat.com>
9620
9621         * target-delegates.c: Rebuild.
9622         * target.c (update_current_target): Don't inherit or default
9623         to_thread_name.
9624         (target_thread_name): Unconditionally delegate.
9625         * target.h (struct target_ops) <to_thread_name>: Use
9626         TARGET_DEFAULT_RETURN.
9627
9628 2014-02-19  Tom Tromey  <tromey@redhat.com>
9629
9630         * target-delegates.c: Rebuild.
9631         * target.c (update_current_target): Don't inherit or default
9632         to_extra_thread_info.
9633         * target.h (struct target_ops) <to_extra_thread_info>: Use
9634         TARGET_DEFAULT_RETURN.
9635
9636 2014-02-19  Tom Tromey  <tromey@redhat.com>
9637
9638         * target-delegates.c: Rebuild.
9639         * target.c (update_current_target): Don't inherit or default
9640         to_has_exited.
9641         * target.h (struct target_ops) <to_has_exited>: Use
9642         TARGET_DEFAULT_RETURN..
9643
9644 2014-02-19  Tom Tromey  <tromey@redhat.com>
9645
9646         * target-delegates.c: Rebuild.
9647         * target.c (update_current_target): Don't inherit or default
9648         to_set_syscall_catchpoint.
9649         (return_one): Remove.
9650         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9651         TARGET_DEFAULT_RETURN.
9652
9653 2014-02-19  Tom Tromey  <tromey@redhat.com>
9654
9655         * target-delegates.c: Rebuild.
9656         * target.c (update_current_target): Don't inherit or default
9657         to_insert_exec_catchpoint.
9658         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9659         TARGET_DEFAULT_RETURN.
9660
9661 2014-01-08  Tom Tromey  <tromey@redhat.com>
9662
9663         * target-delegates.c: Rebuild.
9664         * target.c (update_current_target): Don't inherit or default
9665         to_insert_exec_catchpoint.
9666         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9667         TARGET_DEFAULT_RETURN.
9668
9669 2014-02-19  Tom Tromey  <tromey@redhat.com>
9670
9671         * target-delegates.c: Rebuild.
9672         * target.c (update_current_target): Don't inherit or default
9673         to_remove_vfork_catchpoint.
9674         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9675         TARGET_DEFAULT_RETURN.
9676
9677 2014-02-19  Tom Tromey  <tromey@redhat.com>
9678
9679         * target-delegates.c: Rebuild.
9680         * target.c (update_current_target): Don't inherit or default
9681         to_insert_vfork_catchpoint.
9682         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9683         TARGET_DEFAULT_RETURN.
9684
9685 2014-02-19  Tom Tromey  <tromey@redhat.com>
9686
9687         * target-delegates.c: Rebuild.
9688         * target.c (update_current_target): Don't inherit or default
9689         to_remove_fork_catchpoint.
9690         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9691         TARGET_DEFAULT_RETURN.
9692
9693 2014-02-19  Tom Tromey  <tromey@redhat.com>
9694
9695         * target-delegates.c: Rebuild.
9696         * target.c (update_current_target): Don't inherit or default
9697         to_insert_fork_catchpoint.
9698         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9699         TARGET_DEFAULT_RETURN.
9700
9701 2014-02-19  Tom Tromey  <tromey@redhat.com>
9702
9703         * target-delegates.c: Rebuild.
9704         * target.c (update_current_target): Don't inherit or default
9705         to_post_startup_inferior.
9706         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9707         TARGET_DEFAULT_IGNORE.
9708
9709 2014-02-19  Tom Tromey  <tromey@redhat.com>
9710
9711         * target-delegates.c: Rebuild.
9712         * target.c (update_current_target): Don't inherit or default
9713         to_load.
9714         * target.h (struct target_ops) <to_load>: Use
9715         TARGET_DEFAULT_NORETURN.
9716
9717 2014-02-19  Tom Tromey  <tromey@redhat.com>
9718
9719         * target-delegates.c: Rebuild.
9720         * target.c (update_current_target): Don't inherit or default
9721         to_terminal_info.
9722         * target.h (struct target_ops) <to_terminal_info>: Use
9723         TARGET_DEFAULT_FUNC.
9724
9725 2014-02-19  Tom Tromey  <tromey@redhat.com>
9726
9727         * target-delegates.c: Rebuild.
9728         * target.c (update_current_target): Don't inherit or default
9729         to_terminal_save_ours.
9730         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9731         TARGET_DEFAULT_IGNORE.
9732
9733 2014-02-19  Tom Tromey  <tromey@redhat.com>
9734
9735         * target-delegates.c: Rebuild.
9736         * target.c (update_current_target): Don't inherit or default
9737         to_terminal_ours.
9738         * target.h (struct target_ops) <to_terminal_ours>: Use
9739         TARGET_DEFAULT_IGNORE.
9740
9741 2014-02-19  Tom Tromey  <tromey@redhat.com>
9742
9743         * target-delegates.c: Rebuild.
9744         * target.c (update_current_target): Don't inherit or default
9745         to_terminal_ours_for_output.
9746         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9747         TARGET_DEFAULT_IGNORE.
9748
9749 2014-02-19  Tom Tromey  <tromey@redhat.com>
9750
9751         * target-delegates.c: Rebuild.
9752         * target.c (update_current_target): Don't inherit or default
9753         to_terminal_inferior.
9754         * target.h (struct target_ops) <to_terminal_inferior>: Use
9755         TARGET_DEFAULT_IGNORE.
9756
9757 2014-02-19  Tom Tromey  <tromey@redhat.com>
9758
9759         * target-delegates.c: Rebuild.
9760         * target.c (update_current_target): Don't inherit or default
9761         to_terminal_init.
9762         * target.h (struct target_ops) <to_terminal_init>: Use
9763         TARGET_DEFAULT_IGNORE.
9764
9765 2014-02-19  Tom Tromey  <tromey@redhat.com>
9766
9767         * target-delegates.c: Rebuild.
9768         * target.c (update_current_target): Don't inherit or default
9769         to_can_accel_watchpoint_condition.
9770         * target.h (struct target_ops)
9771         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9772
9773 2014-02-19  Tom Tromey  <tromey@redhat.com>
9774
9775         * target-delegates.c: Rebuild.
9776         * target.c (update_current_target): Don't inherit or default
9777         to_region_ok_for_hw_watchpoint.
9778         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9779         Use TARGET_DEFAULT_FUNC.
9780
9781 2014-02-19  Tom Tromey  <tromey@redhat.com>
9782
9783         * target-delegates.c: Rebuild.
9784         * target.c (update_current_target): Don't inherit or default
9785         to_watchpoint_addr_within_range.
9786         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9787         Use TARGET_DEFAULT_FUNC.
9788
9789 2014-02-19  Tom Tromey  <tromey@redhat.com>
9790
9791         * target-delegates.c: Rebuild.
9792         * target.c (update_current_target): Don't inherit or default
9793         to_remove_watchpoint.
9794         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9795         TARGET_DEFAULT_NORETURN.
9796
9797 2014-02-19  Tom Tromey  <tromey@redhat.com>
9798
9799         * target-delegates.c: Rebuild.
9800         * target.c (update_current_target): Don't inherit or default
9801         to_insert_watchpoint.
9802         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9803         TARGET_DEFAULT_RETURN.
9804
9805 2014-02-19  Tom Tromey  <tromey@redhat.com>
9806
9807         * target-delegates.c: Rebuild.
9808         * target.c (update_current_target): Don't inherit or default
9809         to_remove_hw_breakpoint.
9810         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9811         TARGET_DEFAULT_RETURN.
9812
9813 2014-02-19  Tom Tromey  <tromey@redhat.com>
9814
9815         * target-delegates.c: Rebuild.
9816         * target.c (update_current_target): Don't inherit or default
9817         to_insert_hw_breakpoint.
9818         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9819         TARGET_DEFAULT_RETURN.
9820
9821 2014-02-19  Tom Tromey  <tromey@redhat.com>
9822
9823         * target-delegates.c: Rebuild.
9824         * target.c (update_current_target): Don't inherit or default
9825         to_can_use_hw_breakpoint.
9826         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9827         TARGET_DEFAULT_RETURN.
9828
9829 2014-02-19  Tom Tromey  <tromey@redhat.com>
9830
9831         * target-delegates.c: Rebuild.
9832         * target.c (update_current_target): Don't inherit or default
9833         to_files_info.
9834         * target.h (struct target_ops) <to_files_info>: Use
9835         TARGET_DEFAULT_IGNORE.
9836
9837 2014-02-19  Tom Tromey  <tromey@redhat.com>
9838
9839         * target-delegates.c: Rebuild.
9840         * target.c (update_current_target): Don't inherit or default
9841         to_store.
9842         * target.h (struct target_ops) <to_store>: Use
9843         TARGET_DEFAULT_NORETURN.
9844
9845 2014-02-19  Tom Tromey  <tromey@redhat.com>
9846
9847         * target-delegates.c: Rebuild.
9848         * target.c (update_current_target): Don't inherit or default
9849         to_post_attach.
9850         * target.h (struct target_ops) <to_post_attach>: Use
9851         TARGET_DEFAULT_IGNORE.
9852
9853 2014-02-19  Tom Tromey  <tromey@redhat.com>
9854
9855         * target-delegates.c: Rebuild.
9856         * target.c (update_current_target): Don't inherit or default
9857         to_rcmd.
9858         (default_rcmd): New function.
9859         (do_monitor_command): Unconditionally delegate.
9860         * target.h (struct target_ops) <to_rmcd>: Use
9861         TARGET_DEFAULT_FUNC.
9862
9863 2014-02-19  Tom Tromey  <tromey@redhat.com>
9864
9865         * target-delegates.c: Rebuild.
9866         * target.c (init_dummy_target): Don't initialize to_attach.
9867         (target_attach): Unconditionally delegate.
9868         * target.h (struct target_ops) <to_attach>: Use
9869         TARGET_DEFAULT_FUNC.
9870
9871 2014-02-19  Tom Tromey  <tromey@redhat.com>
9872
9873         * target-delegates.c: Rebuild.
9874         * target.c (target_detach): Unconditionally delegate.
9875         (init_dummy_target): Don't initialize to_detach.
9876         * target.h (struct target_ops) <to_detach>: Use
9877         TARGET_DEFAULT_IGNORE.
9878
9879 2014-02-19  Tom Tromey  <tromey@redhat.com>
9880
9881         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9882         Add argument.
9883         (target_augmented_libraries_svr4_read): Add argument.
9884         * target.c (update_current_target): Update.
9885         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9886         argument.
9887
9888 2014-02-19  Tom Tromey  <tromey@redhat.com>
9889
9890         * target.h (struct target_ops) <to_call_history_range>: Add
9891         argument.
9892         * target.c (target_call_history_range): Add argument.
9893         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9894         argument.
9895         (record_btrace_call_history_from): Update.
9896
9897 2014-02-19  Tom Tromey  <tromey@redhat.com>
9898
9899         * target.h (struct target_ops) <to_call_history_from>: Add
9900         argument.
9901         * target.c (target_call_history_from): Add argument.
9902         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9903         argument.
9904
9905 2014-02-19  Tom Tromey  <tromey@redhat.com>
9906
9907         * target.h (struct target_ops) <to_call_history>: Add argument.
9908         * target.c (target_call_history): Add argument.
9909         * record-btrace.c (record_btrace_call_history): Add 'self'
9910         argument.
9911
9912 2014-02-19  Tom Tromey  <tromey@redhat.com>
9913
9914         * target.h (struct target_ops) <to_insn_history_range>: Add
9915         argument.
9916         * target.c (target_insn_history_range): Add argument.
9917         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9918         argument.
9919         (record_btrace_insn_history_from): Update.
9920
9921 2014-02-19  Tom Tromey  <tromey@redhat.com>
9922
9923         * target.h (struct target_ops) <to_insn_history_from>: Add
9924         argument.
9925         * target.c (target_insn_history_from): Add argument.
9926         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9927         argument.
9928
9929 2014-02-19  Tom Tromey  <tromey@redhat.com>
9930
9931         * target.h (struct target_ops) <to_insn_history>: Add argument.
9932         * target.c (target_insn_history): Add argument.
9933         * record-btrace.c (record_btrace_insn_history): Add 'self'
9934         argument.
9935
9936 2014-02-19  Tom Tromey  <tromey@redhat.com>
9937
9938         * target.h (struct target_ops) <to_goto_record>: Add argument.
9939         * target.c (target_goto_record): Add argument.
9940         * record-full.c (record_full_goto): Add 'self' argument.
9941         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9942
9943 2014-02-19  Tom Tromey  <tromey@redhat.com>
9944
9945         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9946         * target.c (target_goto_record_end): Add argument.
9947         * record-full.c (record_full_goto_end): Add 'self' argument.
9948         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9949
9950 2014-02-19  Tom Tromey  <tromey@redhat.com>
9951
9952         * target.h (struct target_ops) <to_goto_record_begin>: Add
9953         argument.
9954         * target.c (target_goto_record_begin): Add argument.
9955         * record-full.c (record_full_goto_begin): Add 'self' argument.
9956         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9957         argument.
9958
9959 2014-02-19  Tom Tromey  <tromey@redhat.com>
9960
9961         * target.h (struct target_ops) <to_record_is_replaying>: Add
9962         argument.
9963         * target.c (target_record_is_replaying): Add argument.
9964         * record-full.c (record_full_is_replaying): Add 'self' argument.
9965         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9966         argument.
9967         (record_btrace_xfer_partial, record_btrace_store_registers)
9968         (record_btrace_prepare_to_store, record_btrace_resume)
9969         (record_btrace_wait, record_btrace_decr_pc_after_break)
9970         (record_btrace_find_new_threads, record_btrace_thread_alive):
9971         Update.
9972
9973 2014-02-19  Tom Tromey  <tromey@redhat.com>
9974
9975         * target.h (struct target_ops) <to_delete_record>: Add argument.
9976         * target.c (target_delete_record): Add argument.
9977         * record-full.c (record_full_delete): Add 'self' argument.
9978
9979 2014-02-19  Tom Tromey  <tromey@redhat.com>
9980
9981         * target.h (struct target_ops) <to_save_record>: Add argument.
9982         * target.c (target_save_record): Add argument.
9983         * record-full.c (record_full_save): Add 'self' argument.
9984         (record_full_save): Add 'self' argument.
9985
9986 2014-02-19  Tom Tromey  <tromey@redhat.com>
9987
9988         * target.h (struct target_ops) <to_info_record>: Add argument.
9989         * target.c (target_info_record): Add argument.
9990         * record.c (info_record_command): Add argument.
9991         * record-full.c (record_full_info): Add 'self' argument.
9992         * record-btrace.c (record_btrace_info): Add 'self' argument.
9993
9994 2014-02-19  Tom Tromey  <tromey@redhat.com>
9995
9996         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9997         * target.c (target_stop_recording): Add argument.
9998         * record.c (record_stop): Add argument.
9999         * record-btrace.c (record_btrace_stop_recording): Add 'self'
10000         argument.
10001
10002 2014-02-19  Tom Tromey  <tromey@redhat.com>
10003
10004         * target.h (struct target_ops) <to_read_btrace>: Add argument.
10005         * target.c (struct target_ops) <to_read_btrace>: Add argument.
10006         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10007         argument.
10008         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10009         (_initialize_amd64_linux_nat): Use it.
10010         * i386-linux-nat.c (i386_linux_read_btrace): New function.
10011         (_initialize_i386_linux_nat): Use it.
10012
10013 2014-02-19  Tom Tromey  <tromey@redhat.com>
10014
10015         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10016         * target.c (target_teardown_btrace): Add argument.
10017         * remote.c (remote_teardown_btrace): Add 'self' argument.
10018         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10019         argument.
10020         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10021         argument.
10022
10023 2014-02-19  Tom Tromey  <tromey@redhat.com>
10024
10025         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10026         * target.c (target_disable_btrace): Add argument.
10027         * remote.c (remote_disable_btrace): Add 'self' argument.
10028         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10029         argument.
10030         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10031         argument.
10032
10033 2014-02-19  Tom Tromey  <tromey@redhat.com>
10034
10035         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10036         * target.c (target_enable_btrace): Add argument.
10037         * remote.c (remote_enable_btrace): Add 'self' argument.
10038         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10039         argument.
10040         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10041         argument.
10042
10043 2014-02-19  Tom Tromey  <tromey@redhat.com>
10044
10045         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10046         (target_can_use_agent): Add argument.
10047         * target.c (update_current_target): Update.
10048         * remote.c (remote_can_use_agent): Add 'self' argument.
10049         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10050
10051 2014-02-19  Tom Tromey  <tromey@redhat.com>
10052
10053         * target.h (struct target_ops) <to_use_agent>: Add argument.
10054         (target_use_agent): Add argument.
10055         * target.c (update_current_target): Update.
10056         * remote.c (remote_use_agent): Add 'self' argument.
10057         * inf-child.c (inf_child_use_agent): Add 'self' argument.
10058
10059 2014-02-19  Tom Tromey  <tromey@redhat.com>
10060
10061         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10062         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10063         (target_traceframe_info): Add argument.
10064         * target.c (update_current_target): Update.
10065         * remote.c (remote_traceframe_info): Add 'self' argument.
10066         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10067
10068 2014-02-19  Tom Tromey  <tromey@redhat.com>
10069
10070         * target.h (target_static_tracepoint_markers_by_strid): Add
10071         argument.
10072         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10073         'self' argument.
10074         * target.c (update_current_target): Update.
10075         * remote.c (struct target_ops)
10076         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10077         * linux-nat.c (struct target_ops)
10078         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10079
10080 2014-02-19  Tom Tromey  <tromey@redhat.com>
10081
10082         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10083         Add argument.
10084         (target_static_tracepoint_marker_at): Add argument.
10085         * target.c (update_current_target): Update.
10086         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10087         argument.
10088
10089 2014-02-19  Tom Tromey  <tromey@redhat.com>
10090
10091         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10092         (target_set_permissions): Add argument.
10093         * target.c (update_current_target): Update.
10094         * remote.c (remote_set_permissions): Add 'self' argument.
10095         (remote_start_remote): Update.
10096
10097 2014-02-19  Tom Tromey  <tromey@redhat.com>
10098
10099         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10100         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10101         (target_get_tib_address): Add argument.
10102         * target.c (update_current_target): Update.
10103         * remote.c (remote_get_tib_address): Add 'self' argument.
10104
10105 2014-02-19  Tom Tromey  <tromey@redhat.com>
10106
10107         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10108         (target_set_trace_notes): Add argument.
10109         * target.c (update_current_target): Update.
10110         * remote.c (remote_set_trace_notes): Add 'self' argument.
10111
10112 2014-02-19  Tom Tromey  <tromey@redhat.com>
10113
10114         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10115         argument.
10116         (target_set_trace_buffer_size): Add argument.
10117         * target.c (update_current_target): Update.
10118         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10119
10120 2014-02-19  Tom Tromey  <tromey@redhat.com>
10121
10122         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10123         argument.
10124         (target_set_circular_trace_buffer): Add argument.
10125         * target.c (update_current_target): Update.
10126         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10127         argument.
10128
10129 2014-02-19  Tom Tromey  <tromey@redhat.com>
10130
10131         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10132         argument.
10133         (target_set_disconnected_tracing): Add argument.
10134         * target.c (update_current_target): Update.
10135         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10136
10137 2014-02-19  Tom Tromey  <tromey@redhat.com>
10138
10139         * target.h (struct target_ops)
10140         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10141         (target_get_min_fast_tracepoint_insn_len): Add argument.
10142         * target.c (update_current_target): Update.
10143         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10144         argument.
10145
10146 2014-02-19  Tom Tromey  <tromey@redhat.com>
10147
10148         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10149         argument.
10150         (target_get_raw_trace_data): Add argument.
10151         * target.c (update_current_target): Update.
10152         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10153
10154 2014-02-19  Tom Tromey  <tromey@redhat.com>
10155
10156         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10157         Add argument.
10158         (target_upload_trace_state_variables): Add argument.
10159         * target.c (update_current_target): Update.
10160         * remote.c (remote_upload_trace_state_variables): Add 'self'
10161         argument.
10162         (remote_start_remote): Update.
10163
10164 2014-02-19  Tom Tromey  <tromey@redhat.com>
10165
10166         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10167         argument.
10168         (target_upload_tracepoints): Add argument.
10169         * target.c (update_current_target): Update.
10170         * remote.c (remote_upload_tracepoints): Add 'self' argument.
10171         (remote_start_remote): Update.
10172
10173 2014-02-19  Tom Tromey  <tromey@redhat.com>
10174
10175         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10176         (target_save_trace_data): Add argument.
10177         * target.c (update_current_target): Update.
10178         * remote.c (remote_save_trace_data): Add 'self' argument.
10179
10180 2014-02-19  Tom Tromey  <tromey@redhat.com>
10181
10182         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10183         argument.
10184         * target.h (struct target_ops)
10185         <to_get_trace_state_variable_value>: Add argument.
10186         (target_get_trace_state_variable_value): Add argument.
10187         * target.c (update_current_target): Update.
10188         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10189         argument.
10190         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10191
10192 2014-02-19  Tom Tromey  <tromey@redhat.com>
10193
10194         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10195         * target.h (struct target_ops) <to_trace_find>: Add argument.
10196         (target_trace_find): Add argument.
10197         * target.c (update_current_target): Update.
10198         * remote.c (remote_trace_find): Add 'self' argument.
10199         * ctf.c (ctf_trace_find): Add 'self' argument.
10200
10201 2014-02-19  Tom Tromey  <tromey@redhat.com>
10202
10203         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10204         (target_trace_stop): Add argument.
10205         * target.c (update_current_target): Update.
10206         * remote.c (remote_trace_stop): Add 'self' argument.
10207
10208 2014-02-19  Tom Tromey  <tromey@redhat.com>
10209
10210         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10211         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10212         argument.
10213         (target_get_tracepoint_status): Add argument.
10214         * target.c (update_current_target): Update.
10215         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10216
10217 2014-02-19  Tom Tromey  <tromey@redhat.com>
10218
10219         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10220         * target.h (struct target_ops) <to_get_trace_status>: Add
10221         argument.
10222         (target_get_trace_status): Add argument.
10223         * target.c (update_current_target): Update.
10224         * remote.c (remote_get_trace_status): Add 'self' argument.
10225         (remote_start_remote, remote_can_download_tracepoint): Update.
10226         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10227
10228 2014-02-19  Tom Tromey  <tromey@redhat.com>
10229
10230         * target.h (struct target_ops) <to_trace_start>: Add argument.
10231         (target_trace_start): Add argument.
10232         * target.c (update_current_target): Update.
10233         * remote.c (remote_trace_start): Add 'self' argument.
10234
10235 2014-02-19  Tom Tromey  <tromey@redhat.com>
10236
10237         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10238         Add argument.
10239         (target_trace_set_readonly_regions): Add argument.
10240         * target.c (update_current_target): Update.
10241         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10242         argument.
10243
10244 2014-02-19  Tom Tromey  <tromey@redhat.com>
10245
10246         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10247         argument.
10248         (target_disable_tracepoint): Add argument.
10249         * target.c (update_current_target): Update.
10250         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10251
10252 2014-02-19  Tom Tromey  <tromey@redhat.com>
10253
10254         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10255         argument.
10256         (target_enable_tracepoint): Add argument.
10257         * target.c (update_current_target): Update.
10258         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10259
10260 2014-02-19  Tom Tromey  <tromey@redhat.com>
10261
10262         * target.h (struct target_ops) <to_download_trace_state_variable>:
10263         Add argument.
10264         (target_download_trace_state_variable): Add argument.
10265         * target.c (update_current_target): Update.
10266         * remote.c (remote_download_trace_state_variable): Add 'self'
10267         argument.
10268
10269 2014-02-19  Tom Tromey  <tromey@redhat.com>
10270
10271         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10272         argument.
10273         (target_can_download_tracepoint): Add argument.
10274         * target.c (update_current_target): Update.
10275         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10276
10277 2014-02-19  Tom Tromey  <tromey@redhat.com>
10278
10279         * target.h (struct target_ops) <to_download_tracepoint>: Add
10280         argument.
10281         (target_download_tracepoint): Add argument.
10282         * target.c (update_current_target): Update.
10283         * remote.c (remote_download_tracepoint): Add 'self' argument.
10284
10285 2014-02-19  Tom Tromey  <tromey@redhat.com>
10286
10287         * target.h (struct target_ops) <to_trace_init>: Add argument.
10288         (target_trace_init): Add argument.
10289         * target.c (update_current_target): Update.
10290         * remote.c (remote_trace_init): Add 'self' argument.
10291
10292 2014-02-19  Tom Tromey  <tromey@redhat.com>
10293
10294         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10295         * target.c (target_fileio_readlink): Add argument.
10296         * remote.c (remote_hostio_readlink): Add 'self' argument.
10297         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10298
10299 2014-02-19  Tom Tromey  <tromey@redhat.com>
10300
10301         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10302         * target.c (target_fileio_unlink): Add argument.
10303         * remote.c (remote_hostio_unlink): Add 'self' argument.
10304         (remote_file_delete): Update.
10305         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10306
10307 2014-02-19  Tom Tromey  <tromey@redhat.com>
10308
10309         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10310         * target.c (target_fileio_close): Add argument.
10311         * remote.c (remote_hostio_close): Add 'self' argument.
10312         (remote_hostio_close_cleanup): Update.
10313         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10314         Update.
10315         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10316
10317 2014-02-19  Tom Tromey  <tromey@redhat.com>
10318
10319         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10320         * target.c (target_fileio_pread): Add argument.
10321         * remote.c (remote_hostio_pread): Add 'self' argument.
10322         (remote_bfd_iovec_pread, remote_file_get): Update.
10323         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10324
10325 2014-02-19  Tom Tromey  <tromey@redhat.com>
10326
10327         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10328         * target.c (target_fileio_pwrite): Add argument.
10329         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10330         (remote_file_put): Update.
10331         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10332
10333 2014-02-19  Tom Tromey  <tromey@redhat.com>
10334
10335         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10336         * target.c (target_fileio_open): Add argument.
10337         * remote.c (remote_hostio_open): Add 'self' argument.
10338         (remote_bfd_iovec_open): Add 'self' argument.
10339         (remote_file_put): Add 'self' argument.
10340         (remote_file_get): Add 'self' argument.
10341         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10342
10343 2014-02-19  Tom Tromey  <tromey@redhat.com>
10344
10345         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10346         Add argument.
10347         (target_can_run_breakpoint_commands): Add argument.
10348         * target.c (update_current_target): Update.
10349         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10350         argument.
10351         (remote_insert_breakpoint): Add 'self' argument.
10352         (remote_insert_hw_breakpoint): Add 'self' argument.
10353         (remote_can_run_breakpoint_commands): Add 'self' argument.
10354
10355 2014-02-19  Tom Tromey  <tromey@redhat.com>
10356
10357         * target.h (struct target_ops)
10358         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10359         (target_supports_evaluation_of_breakpoint_conditions): Add
10360         argument.
10361         * target.c (update_current_target): Update.
10362         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10363         argument.
10364         (remote_insert_breakpoint): Add 'self' argument.
10365         (remote_insert_hw_breakpoint): Add 'self' argument.
10366         (remote_supports_cond_breakpoints): Add 'self' argument.
10367
10368 2014-02-19  Tom Tromey  <tromey@redhat.com>
10369
10370         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10371         argument.
10372         (target_supports_string_tracing): Add argument.
10373         * target.c (update_current_target): Update.
10374         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10375
10376 2014-02-19  Tom Tromey  <tromey@redhat.com>
10377
10378         * target.h (struct target_ops)
10379         <to_supports_disable_randomization>: Add argument.
10380         * target.c (find_default_supports_disable_randomization): Add
10381         argument.
10382         (target_supports_disable_randomization): Add argument.
10383         (find_default_supports_disable_randomization): Add 'self'
10384         argument.
10385         * remote.c (extended_remote_supports_disable_randomization): Add
10386         'self' argument.
10387         (remote_supports_disable_randomization): Add 'self' argument.
10388         (extended_remote_create_inferior): Update.
10389         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10390         'self' argument.
10391
10392 2014-02-19  Tom Tromey  <tromey@redhat.com>
10393
10394         * target.h (struct target_ops)
10395         <to_supports_enable_disable_tracepoint>: Add argument.
10396         (target_supports_enable_disable_tracepoint): Add argument.
10397         * target.c (update_current_target): Update.
10398         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10399         argument.
10400
10401 2014-02-19  Tom Tromey  <tromey@redhat.com>
10402
10403         * target.h (struct target_ops) <to_supports_multi_process>: Add
10404         argument.
10405         (target_supports_multi_process): Add argument.
10406         * target.c (update_current_target): Update.
10407         * remote.c (remote_supports_multi_process): Add 'self' argument.
10408         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10409         argument.
10410         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10411         argument.
10412
10413 2014-02-19  Tom Tromey  <tromey@redhat.com>
10414
10415         * target.h (struct target_ops) <to_execution_direction>: Add
10416         argument.
10417         (target_execution_direction): Add argument.
10418         * target.c (default_execution_direction): Add 'self' argument.
10419         * record-full.c (record_full_execution_direction): Add 'self'
10420         argument.
10421
10422 2014-02-19  Tom Tromey  <tromey@redhat.com>
10423
10424         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10425         argument.
10426         (target_can_execute_reverse): Add argument.
10427         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10428         * record-full.c (record_full_can_execute_reverse): Add 'self'
10429         argument.
10430         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10431         argument.
10432
10433 2014-02-19  Tom Tromey  <tromey@redhat.com>
10434
10435         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10436         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10437         argument.
10438         (target_get_ada_task_ptid): Add argument.
10439         * target.c (update_current_target): Update.
10440         (default_get_ada_task_ptid): Add 'self' argument.
10441         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10442         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10443         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10444         argument.
10445         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10446         argument.
10447         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10448         argument.
10449         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10450         argument.
10451         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10452         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10453         argument.
10454
10455 2014-02-19  Tom Tromey  <tromey@redhat.com>
10456
10457         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10458         (target_goto_bookmark): Add argument.
10459         * target.c (dummy_goto_bookmark): Add 'self' argument.
10460         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10461
10462 2014-02-19  Tom Tromey  <tromey@redhat.com>
10463
10464         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10465         (target_get_bookmark): Add argument.
10466         * target.c (dummy_get_bookmark): Add 'self' argument.
10467         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10468
10469 2014-02-19  Tom Tromey  <tromey@redhat.com>
10470
10471         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10472         argument.
10473         (target_make_corefile_notes): Add argument.
10474         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10475         * procfs.c (procfs_make_note_section): Add 'self' argument.
10476         (procfs_make_note_section): Add 'self' argument.
10477         (procfs_make_note_section): Add 'self' argument.
10478         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10479         argument.
10480         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10481         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10482         * exec.c (exec_make_note_section): Add 'self' argument.
10483         (exec_make_note_section): Add 'self' argument.
10484
10485 2014-02-19  Tom Tromey  <tromey@redhat.com>
10486
10487         * target.h (struct target_ops) <to_find_memory_regions>: Add
10488         argument.
10489         (target_find_memory_regions): Add argument.
10490         * target.c (dummy_find_memory_regions): Add 'self' argument.
10491         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10492         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10493         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10494         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10495         * exec. (exec_do_find_memory_regions): New global.
10496         (exec_set_find_memory_regions): Rewrite.
10497         (exec_find_memory_regions): New function.
10498         (init_exec_ops): Use exec_find_memory_regions.
10499
10500 2014-02-19  Tom Tromey  <tromey@redhat.com>
10501
10502         * target.h (struct target_ops) <to_supports_non_stop>: Add
10503         argument.
10504         * target.c (find_default_supports_non_stop): Add argument.
10505         (target_supports_non_stop): Add argument.
10506         (find_default_supports_non_stop): Add 'self' argument.
10507         * remote.c (remote_supports_non_stop): Add 'self' argument.
10508         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10509
10510 2014-02-19  Tom Tromey  <tromey@redhat.com>
10511
10512         * target.h (struct target_ops) <to_log_command>: Add argument.
10513         (target_log_command): Add argument.
10514         * serial.h (serial_log_command): Add 'self' argument.
10515         * serial.c (serial_log_command): Add 'self' argument.
10516
10517 2014-02-19  Tom Tromey  <tromey@redhat.com>
10518
10519         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10520         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10521         argument.
10522         (target_pid_to_exec_file): Add argument.
10523         * target.c (debug_to_pid_to_exec_file): Add argument.
10524         (update_current_target): Update.
10525         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10526         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10527         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10528         (linux_handle_extended_wait): Update.
10529         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10530         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10531         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10532         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10533
10534 2014-02-19  Tom Tromey  <tromey@redhat.com>
10535
10536         * target.h (struct target_ops) <to_rcmd>: Add argument.
10537         (target_rcmd): Add argument.
10538         * target.c (debug_to_rcmd): Add argument.
10539         (update_current_target, do_monitor_command): Update.
10540         * remote.c (remote_rcmd): Add 'self' argument.
10541         * monitor.c (monitor_rcmd): Add 'self' argument.
10542
10543 2014-02-19  Tom Tromey  <tromey@redhat.com>
10544
10545         * windows-nat.c (windows_stop): Add 'self' argument.
10546         * target.h (struct target_ops) <to_stop>: Add argument.
10547         * target.c (target_stop): Add argument.
10548         (debug_to_stop): Add argument.
10549         (update_current_target): Update.
10550         * remote.c (remote_stop): Add 'self' argument.
10551         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10552         (gdbsim_cntrl_c): Update.
10553         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10554         * procfs.c (procfs_stop): Add 'self' argument.
10555         * nto-procfs.c (procfs_stop): Add 'self' argument.
10556         * monitor.c (monitor_stop): Add 'self' argument.
10557         (monitor_open): Update.
10558         * linux-nat.c (linux_nat_stop): Add argument.
10559         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10560         * gnu-nat.c (gnu_stop): Add 'self' argument.
10561         * darwin-nat.c (darwin_stop): Add 'self' argument.
10562
10563 2014-02-19  Tom Tromey  <tromey@redhat.com>
10564
10565         * target.h (struct target_ops) <to_thread_name>: Add argument.
10566         * target.c (target_thread_name): Add argument.
10567         (update_current_target): Update.
10568         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10569
10570 2014-02-19  Tom Tromey  <tromey@redhat.com>
10571
10572         * target.h (struct target_ops) <to_extra_thread_info>: Add
10573         argument.
10574         (target_extra_thread_info): Add argument.
10575         * target.c (update_current_target): Update.
10576         * remote.c (remote_threads_extra_info): Add 'self' argument.
10577         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10578         argument.
10579         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10580         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10581         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10582         argument.
10583         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10584         argument.
10585         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10586         argument.
10587         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10588         argument.
10589
10590 2014-02-19  Tom Tromey  <tromey@redhat.com>
10591
10592         * target.h (struct target_ops) <to_program_signals>: Add argument.
10593         * target.c (target_program_signals): Add argument.
10594         * remote.c (remote_program_signals): Add 'self' argument.
10595
10596 2014-02-19  Tom Tromey  <tromey@redhat.com>
10597
10598         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10599         * target.c (target_pass_signals): Add argument.
10600         * remote.c (remote_pass_signals): Add 'self' argument.
10601         (remote_start_remote): Update.
10602         * procfs.c (procfs_pass_signals): Add 'self' argument.
10603         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10604         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10605         (linux_nat_create_inferior, linux_nat_attach): Update.
10606
10607 2014-02-19  Tom Tromey  <tromey@redhat.com>
10608
10609         * windows-nat.c (windows_can_run): Add 'self' argument.
10610         * target.h (struct target_ops) <to_can_run>: Add argument.
10611         (target_can_run): Add argument.
10612         * target.c (debug_to_can_run): Add argument.
10613         (update_current_target): Update.
10614         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10615         * inf-child.c (inf_child_can_run): Add 'self' argument.
10616         * go32-nat.c (go32_can_run): Add 'self' argument.
10617
10618 2014-02-19  Tom Tromey  <tromey@redhat.com>
10619
10620         * target.h (struct target_ops) <to_has_exited>: Add argument.
10621         (target_has_exited): Add argument.
10622         * target.c (debug_to_has_exited): Add argument.
10623         (update_current_target): Update.
10624
10625 2014-02-19  Tom Tromey  <tromey@redhat.com>
10626
10627         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10628         argument.
10629         (target_set_syscall_catchpoint): Add argument.
10630         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10631         argument.
10632         * target.c (update_current_target): Update.
10633
10634 2014-02-19  Tom Tromey  <tromey@redhat.com>
10635
10636         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10637         argument.
10638         (target_remove_exec_catchpoint): Add argument.
10639         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10640         (update_current_target): Update.
10641         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10642         argument.
10643
10644 2014-02-19  Tom Tromey  <tromey@redhat.com>
10645
10646         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10647         argument.
10648         (target_insert_exec_catchpoint): Add argument.
10649         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10650         (update_current_target): Update.
10651         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10652         argument.
10653
10654 2014-02-19  Tom Tromey  <tromey@redhat.com>
10655
10656         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10657         argument.
10658         (target_remove_vfork_catchpoint): Add argument.
10659         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10660         (update_current_target): Update.
10661         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10662         argument.
10663
10664 2014-02-19  Tom Tromey  <tromey@redhat.com>
10665
10666         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10667         argument.
10668         (target_insert_vfork_catchpoint): Add argument.
10669         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10670         (update_current_target): Update.
10671         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10672         argument.
10673
10674 2014-02-19  Tom Tromey  <tromey@redhat.com>
10675
10676         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10677         argument.
10678         (target_remove_fork_catchpoint): Add argument.
10679         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10680         (update_current_target): Update.
10681         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10682         argument.
10683
10684 2014-02-19  Tom Tromey  <tromey@redhat.com>
10685
10686         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10687         argument.
10688         (target_insert_fork_catchpoint): Add argument.
10689         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10690         (update_current_target): Update.
10691         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10692         argument.
10693
10694 2014-02-19  Tom Tromey  <tromey@redhat.com>
10695
10696         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10697         argument.
10698         (target_post_startup_inferior): Add argument.
10699         * target.c (debug_to_post_startup_inferior): Add argument.
10700         (update_current_target): Update.
10701         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10702         argument.
10703         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10704         argument.
10705         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10706         argument.
10707         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10708         argument.
10709         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10710         'self' argument.
10711         (super_post_startup_inferior): Likewise.
10712         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10713         'self' argument.
10714         (super_post_startup_inferior): Likewise.
10715         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10716         Add 'self' argument.
10717         (super_post_startup_inferior): Likewise.
10718
10719 2014-02-19  Tom Tromey  <tromey@redhat.com>
10720
10721         * target.h (struct target_ops) <to_load>: Add argument.
10722         * target.c (target_load): Add argument.
10723         (debug_to_load): Add argument.
10724         (update_current_target): Update.
10725         * remote.c (remote_load): Add 'self' argument.
10726         * remote-sim.c (gdbsim_load): Add 'self' argument.
10727         * remote-mips.c (mips_load): Add 'self' argument.
10728         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10729         * monitor.c (monitor_load): Add 'self' argument.
10730         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10731
10732 2014-02-19  Tom Tromey  <tromey@redhat.com>
10733
10734         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10735         (target_terminal_info): Add argument.
10736         * target.c (debug_to_terminal_info): Add argument.
10737         (default_terminal_info): Likewise.
10738         * inflow.c (child_terminal_info): Add 'self' argument.
10739         * inferior.h (child_terminal_info): Add 'self' argument.
10740         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10741
10742 2014-02-19  Tom Tromey  <tromey@redhat.com>
10743
10744         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10745         argument.
10746         (target_terminal_save_ours): Add argument.
10747         * target.c (debug_to_terminal_save_ours): Add argument.
10748         (update_current_target): Update.
10749         * inflow.c (terminal_save_ours): Add 'self' argument.
10750         * inferior.h (terminal_save_ours): Add 'self' argument.
10751
10752 2014-02-19  Tom Tromey  <tromey@redhat.com>
10753
10754         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10755         (target_terminal_ours): Add argument.
10756         * target.c (debug_to_terminal_ours): Add argument.
10757         (update_current_target): Update.
10758         * remote.c (remote_terminal_ours): Add 'self' argument.
10759         (remote_close): Update.
10760         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10761         * inflow.c (terminal_ours): Add 'self' argument.
10762         * inferior.h (terminal_ours): Add 'self' argument.
10763         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10764
10765 2014-02-19  Pedro Alves  <palves@redhat.com>
10766             Tom Tromey  <tromey@redhat.com>
10767
10768         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10769         argument.
10770         (target_terminal_ours_for_output): Add argument.
10771         * target.c (debug_to_terminal_ours_for_output): Add argument.
10772         (update_current_target): Update.
10773         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10774         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10775         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10776
10777 2014-02-19  Tom Tromey  <tromey@redhat.com>
10778
10779         * target.h (struct target_ops) <to_terminal_inferior>: Add
10780         argument.
10781         * target.c (target_terminal_inferior): Add argument.
10782         (update_current_target): Update.
10783         * remote.c (remote_terminal_inferior): Add 'self' argument.
10784         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10785         * inflow.c (terminal_inferior): Add 'self' argument.
10786         * inferior.h (terminal_inferior): Add 'self' argument.
10787         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10788         (go32_terminal_inferior): Add 'self' argument.
10789
10790 2014-02-19  Tom Tromey  <tromey@redhat.com>
10791
10792         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10793         (target_terminal_init): Add argument.
10794         * target.c (debug_to_terminal_init): Add argument.
10795         (update_current_target): Update.
10796         * inflow.c (terminal_init_inferior): Add 'self' argument.
10797         * inferior.h (terminal_init_inferior): Add 'self' argument.
10798         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10799         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10800
10801 2014-02-19  Tom Tromey  <tromey@redhat.com>
10802
10803         * target.h (struct target_ops)
10804         <to_can_accel_watchpoint_condition>: Add argument.
10805         (target_can_accel_watchpoint_condition): Add argument.
10806         * target.c (debug_to_can_accel_watchpoint_condition): Add
10807         argument.
10808         (update_current_target): Update.
10809         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10810         'self' argument.
10811
10812 2014-02-19  Tom Tromey  <tromey@redhat.com>
10813
10814         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10815         Add argument.
10816         (target_region_ok_for_hw_watchpoint): Add argument.
10817         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10818         (default_region_ok_for_hw_watchpoint): Add argument.
10819         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10820         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10821         argument.
10822         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10823         argument.
10824         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10825         argument.
10826         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10827         'self' argument.
10828         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10829         'self' argument.
10830         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10831         'self' argument.
10832         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10833         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10834         'self' argument.
10835         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10836         Add 'self' argument.
10837
10838 2014-02-19  Tom Tromey  <tromey@redhat.com>
10839
10840         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10841         argument.
10842         (target_insert_watchpoint): Add argument.
10843         * target.c (debug_to_insert_watchpoint): Add argument.
10844         (update_current_target): Update.
10845         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10846         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10847         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10848         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10849         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10850         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10851         argument.
10852         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10853         (procfs_insert_hw_watchpoint): Add 'self' argument.
10854         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10855         argument.
10856         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10857         argument.
10858         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10859         argument.
10860         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10861         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10862         argument.
10863         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10864         'self' argument.
10865
10866 2014-02-19  Tom Tromey  <tromey@redhat.com>
10867
10868         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10869         argument.
10870         (target_remove_watchpoint): Add argument.
10871         * target.c (debug_to_remove_watchpoint): Add argument.
10872         (update_current_target): Update.
10873         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10874         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10875         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10876         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10877         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10878         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10879         argument.
10880         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10881         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10882         argument.
10883         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10884         argument.
10885         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10886         argument.
10887         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10888         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10889         argument.
10890         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10891         'self' argument.
10892
10893 2014-02-19  Tom Tromey  <tromey@redhat.com>
10894
10895         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10896         argument.
10897         (target_remove_hw_breakpoint): Add argument.
10898         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10899         (update_current_target): Update.
10900         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10901         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10902         argument.
10903         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10904         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10905         argument.
10906         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10907         'self' argument.
10908
10909 2014-02-19  Tom Tromey  <tromey@redhat.com>
10910
10911         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10912         argument.
10913         (target_insert_hw_breakpoint): Add argument.
10914         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10915         (update_current_target): Update.
10916         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10917         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10918         argument.
10919         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10920         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10921         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10922         argument.
10923         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10924         'self' argument.
10925
10926 2014-02-19  Tom Tromey  <tromey@redhat.com>
10927
10928         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10929         argument.
10930         (target_can_use_hardware_watchpoint): Add argument.
10931         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10932         (update_current_target): Update.
10933         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10934         argument.
10935         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10936         argument.
10937         * remote.c (remote_check_watch_resources): Add 'self' argument.
10938         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10939         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10940         argument.
10941         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10942         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10943         argument.
10944         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10945         argument.
10946         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10947         argument.
10948         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10949         argument.
10950         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10951         argument.
10952         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10953         argument.
10954         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10955         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10956         argument.
10957         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10958         'self' argument.
10959
10960 2014-02-19  Tom Tromey  <tromey@redhat.com>
10961
10962         * target.h (struct target_ops) <to_post_attach>: Add argument.
10963         (target_post_attach): Add argument.
10964         * target.c (debug_to_post_attach): Add argument.
10965         (update_current_target): Update.
10966         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10967         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10968         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10969         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10970         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10971
10972 2014-02-19  Tom Tromey  <tromey@redhat.com>
10973
10974         * windows-nat.c (windows_close): Add 'self' argument.
10975         * tracepoint.c (tfile_close): Add 'self' argument.
10976         * target.h (struct target_ops) <to_close>: Add argument.
10977         * target.c (target_close): Add argument.
10978         (update_current_target): Update.
10979         * remote.c (remote_close): Add 'self' argument.
10980         * remote-sim.c (gdbsim_close): Add 'self' argument.
10981         * remote-mips.c (mips_close): Add 'self' argument.
10982         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10983         * record-full.c (record_full_close): Add 'self' argument.
10984         * record-btrace.c (record_btrace_close): Add 'self' argument.
10985         * monitor.h (monitor_close): Add 'self' argument.
10986         * monitor.c (monitor_close): Add 'self' argument.
10987         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10988         * linux-nat.c (linux_nat_close): Add argument.
10989         * go32-nat.c (go32_close): Add 'self' argument.
10990         * exec.c (exec_close_1): Add 'self' argument.
10991         * ctf.c (ctf_close): Add 'self' argument.
10992         * corelow.c (core_close): Add 'self' argument.
10993         (core_close_cleanup): Update.
10994         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10995         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10996
10997 2014-02-19  Tom Tromey  <tromey@redhat.com>
10998
10999         * remote.c (remote_load): New function.
11000         (init_remote_ops): Use it.
11001
11002 2014-02-19  Tom Tromey  <tromey@redhat.com>
11003
11004         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11005         argument.
11006         * common/linux-btrace.h (linux_supports_btrace): Update.
11007         * remote.c (remote_supports_btrace): Add "self" argument.
11008         * target-delegates.c: Rebuild.
11009         * target.c (target_supports_btrace): Remove.
11010         * target.h (struct target_ops) <to_supports_btrace>: Add
11011         target_ops argument.
11012         (target_supports_btrace): New define.
11013
11014 2014-02-19  Tom Tromey  <tromey@redhat.com>
11015
11016         * record-full.c (record_full_beneath_to_resume_ops)
11017         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11018         (record_full_beneath_to_wait)
11019         (record_full_beneath_to_store_registers_ops)
11020         (record_full_beneath_to_store_registers)
11021         (record_full_beneath_to_xfer_partial_ops)
11022         (record_full_beneath_to_xfer_partial)
11023         (record_full_beneath_to_insert_breakpoint_ops)
11024         (record_full_beneath_to_insert_breakpoint)
11025         (record_full_beneath_to_remove_breakpoint_ops)
11026         (record_full_beneath_to_remove_breakpoint)
11027         (record_full_beneath_to_stopped_by_watchpoint)
11028         (record_full_beneath_to_stopped_data_address)
11029         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11030         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11031         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11032         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11033         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11034         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11035         (tmp_to_stopped_data_address, tmp_to_async): Remove.
11036         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
11037         (record_full_resume, record_full_wait_1)
11038         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11039         (record_full_store_registers, record_full_xfer_partial)
11040         (record_full_insert_breakpoint, record_full_remove_breakpoint)
11041         (record_full_async, record_full_core_xfer_partial): Use target
11042         delegation.
11043         * target-delegates.c: Rebuild.
11044         * target.c (current_xfer_partial): Remove.
11045         (update_current_target): Do not INHERIT or de_fault
11046         to_insert_breakpoint, to_remove_breakpoint,
11047         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11048         to_is_async_p, to_async.  Do not set to_xfer_partial field.
11049         (default_xfer_partial): Simplify.
11050         (current_xfer_partial): Remove.
11051         (target_wait, target_resume): Simplify.
11052         (find_default_can_async_p, find_default_is_async_p): Update.
11053         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11054         to_xfer_partial, to_stopped_by_watchpoint,
11055         to_stopped_data_address.
11056         (target_store_registers): Simplify.
11057         (forward_target_remove_breakpoint)
11058         (forward_target_insert_breakpoint): Remove.
11059         (target_remove_breakpoint, target_insert_breakpoint)
11060         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11061         * target.h (struct target_ops) <to_resume, to_wait,
11062         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11063         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11064         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11065         markup.
11066         (forward_target_remove_breakpoint)
11067         (forward_target_insert_breakpoint): Remove.
11068         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11069         directly.
11070         (record_btrace_insert_breakpoint): Delegate directly.
11071
11072 2014-02-19  Tom Tromey  <tromey@redhat.com>
11073
11074         PR build/7701:
11075         * target-delegates.c: New file.
11076         * target.c: Include target-delegates.c.
11077         (init_dummy_target): Call install_dummy_methods.
11078         (complete_target_initialization): Call install_delegators.
11079         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11080         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11081         * make-target-delegates: New file.
11082
11083 2014-02-19  Tom Tromey  <tromey@redhat.com>
11084
11085         * record.c (find_record_target): Use find_target_at.
11086         * target.c (find_target_at): New function.
11087         * target.h (find_target_at): Declare.
11088
11089 2014-02-19  Tom Tromey  <tromey@redhat.com>
11090
11091         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11092         Add 'ops' argument.
11093         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11094         'ops' argument.
11095         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11096         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11097         'ops' argument.
11098         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11099         argument.
11100         * linux-nat.c (save_sigtrap): Update.
11101         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11102         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11103         (linux_nat_close): Update.
11104         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11105         argument.
11106         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11107         argument.
11108         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11109         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11110         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11111         (tmp_to_async): Add 'ops' argument.
11112         (record_full_stopped_by_watchpoint, record_full_async)
11113         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11114         argument.
11115         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11116         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11117         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11118         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11119         (remote_is_async_p, remote_async): Add 'ops' argument.
11120         (remote_stopped_data_address): Update.
11121         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11122         * target.c (update_current_target)
11123         (find_default_can_async_p, find_default_is_async_p): Update.
11124         (init_dummy_target): Update.
11125         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11126         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11127         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11128         (target_can_async_p, target_is_async_p, target_async)
11129         (target_stopped_by_watchpoint): Update.
11130
11131 2014-02-19  Yao Qi  <yao@codesourcery.com>
11132
11133         PR gdb/16220
11134         * gdbarch.sh: Remove startup_gdbarch.
11135         * gdbarch.c: Regenerated.
11136         * gdbarch.h: Likewise.
11137
11138 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11139
11140         * rl78-tdep.c (rl78_g10_register_name): New function.
11141         (rl78_return_value): Add g10 support.
11142         (rl78_gdbarch_init): Register rl78_g10_register_name for the
11143         g10.
11144
11145 2014-02-17  Doug Evans  <xdje42@gmail.com>
11146
11147         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11148         (SUBDIR_GUILE_SRCS): Ditto.
11149         (scm-gsmob.o): Ditto.
11150
11151 2014-02-17  Yao Qi  <yao@codesourcery.com>
11152
11153         * gnu-nat.c (ILL_RPC): Declare defined function.
11154
11155 2014-02-17  Yao Qi  <yao@codesourcery.com>
11156
11157         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11158         mach_msg_type_number_t.
11159         (gnu_write_inferior): Likewise.
11160
11161 2014-02-17  Yao Qi  <yao@codesourcery.com>
11162
11163         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11164         in format string.
11165         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11166         (inf_validate_procs, inf_signal): Likewise.
11167         (S_exception_raise_request): Likewise.
11168         (do_mach_notify_dead_name): Likewise.
11169         (steal_exc_port): Likewise.
11170         (gnu_read_inferior): Change 'copy_count''s type to
11171         mach_msg_type_number_t.
11172         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
11173         format string.
11174
11175 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
11176
11177         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11178         flag.  Adjust all users; in particular...
11179         (gnu_wait): ..., don't decrement its value in here...
11180         (gnu_create_inferior): ..., and instead set the flag in here,
11181         around the startup_inferior call, and call that one with
11182         START_INFERIOR_TRAPS_EXPECTED.
11183
11184         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11185         (ILL_RPC): ... new macro.
11186         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11187         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11188         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11189         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11190         functions with ILL_RPC macro.
11191         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11192         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11193         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11194         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11195         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11196         (S_proc_getlogin_reply, S_proc_getsid_reply)
11197         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11198         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11199         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11200         (S_proc_getnports_reply, S_proc_is_important_reply)
11201         (S_proc_get_code_reply): New stub functions, generated with
11202         ILL_RPC macro.
11203
11204         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11205         collected the type check structures.
11206
11207         * reply_mig_hack.awk: Don't expect to see the auto keyword.
11208
11209 2014-02-14  Doug Evans  <dje@google.com>
11210
11211         * target.c (target_write_partial): Fix result type.
11212
11213 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11214
11215         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11216         the proper offsets to access fpregset_t.
11217
11218 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
11219
11220         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11221         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11222         * h8300-tdep.c (setmachinelist): Remove global.
11223         * hppa-tdep.c (hppa_sigtramp): Remove global.
11224         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11225         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11226         * ravenscar-thread.c (update_target_observer): Remove global.
11227         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11228
11229 2014-02-12  Tom Tromey  <tromey@redhat.com>
11230
11231         * common/rsp-low.c: Update comments.
11232         * common/rsp-low.h: Update comments.
11233
11234 2014-02-12  Tom Tromey  <tromey@redhat.com>
11235
11236         * common/rsp-low.c (convert_ascii_to_int): Remove.
11237         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11238
11239 2014-02-12  Tom Tromey  <tromey@redhat.com>
11240
11241         * common/rsp-low.h (unhexify): Don't declare.
11242         * common/rsp-low.c (unhexify): Remove.
11243
11244 2014-02-12  Tom Tromey  <tromey@redhat.com>
11245
11246         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11247         * common/rsp-low.c (convert_int_to_ascii): Remove.
11248
11249 2014-02-12  Tom Tromey  <tromey@redhat.com>
11250
11251         * common/rsp-low.h (hexify): Don't declare.
11252         * common/rsp-low.c (hexify): Remove.
11253
11254 2014-02-12  Tom Tromey  <tromey@redhat.com>
11255
11256         * common/rsp-low.c (hexify): Never take strlen of argument.
11257
11258 2014-02-12  Tom Tromey  <tromey@redhat.com>
11259
11260         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11261         * remote.c (extended_remote_run, remote_rcmd)
11262         (remote_download_trace_state_variable, remote_save_trace_data)
11263         (remote_set_trace_notes): Update.
11264         * tracepoint.c (encode_source_string, tfile_write_status)
11265         (tfile_write_uploaded_tsv): Update.
11266
11267 2014-02-12  Tom Tromey  <tromey@redhat.com>
11268
11269         * tracepoint.c: Include rsp-low.h.
11270         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11271         * remote.c: Include rsp-low.h.
11272         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11273         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11274         (remote_unescape_input): Move to common/rsp-low.c.
11275         * common/rsp-low.h: New file.
11276         * common/rsp-low.c: New file.
11277         * Makefile.in (SFILES): Add common/rsp-low.c.
11278         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11279         (COMMON_OBS): Add rsp-low.o.
11280         (rsp-low.o): New target.
11281
11282 2014-02-12  Tom Tromey  <tromey@redhat.com>
11283
11284         * utils.h: Include print-utils.h.
11285         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11286         (int_string, core_addr_to_string, core_addr_to_string_nz)
11287         (hex_string, hex_string_custom): Don't declare.
11288         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11289         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11290         (hex_string_custom, int_string, core_addr_to_string)
11291         (core_addr_to_string_nz, host_address_to_string): Move to
11292         common/print-utils.c.
11293         * common/print-utils.h: New file.
11294         * common/print-utils.c: New file
11295         * Makefile.in (SFILES): Add common/print-utils.c.
11296         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11297         (COMMON_OBS): Add print-utils.o.
11298         (print-utils.o): New target.
11299
11300 2014-02-12  Tom Tromey  <tromey@redhat.com>
11301
11302         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11303
11304 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11305
11306         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11307
11308 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11309
11310         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11311         if a PT_IO ptrace request returns sucessfully but indicates that 0
11312         bytes were transferred.
11313
11314 2014-02-12  Pedro Alves  <palves@redhat.com>
11315             Kevin Buettner <kevinb@redhat.com>
11316
11317         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11318         TYPE_INSTANCE_FLAG_CODE_SPACE.
11319
11320 2014-02-12  Pedro Alves  <palves@redhat.com>
11321
11322         * h8300-tdep.c (pseudo_from_raw_register)
11323         (raw_from_pseudo_register): New functions.
11324         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11325         them.
11326
11327 2014-02-12  Pedro Alves  <palves@redhat.com>
11328
11329         * h8300-tdep.c (h8300_register_sim_regno): New function.
11330         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11331         gdbarch_register_sim_regno hook.
11332
11333 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11334
11335         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11336
11337 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11338
11339         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11340
11341 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11342
11343         * obsd-tdep.h (obsd_init_abi): New prototype.
11344         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11345         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11346         (obsd_init_abi): New functions.
11347         * i386obsd-tdep.c: Include "obsd-tdep.h".
11348         (i386obsd_init_abi): Call obsd_init_abi.
11349         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11350         (amd64obsd_init_abi): Call obsd_init_abi.
11351         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11352         obsd-tdep.c to gdb_target_obs.
11353
11354 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11355
11356         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11357         double float arguments to 16-byte in the argument slots.
11358
11359 2014-02-11  Doug Evans  <xdje42@gmail.com>
11360
11361         * configure.ac: Don't crash if pkg-config is not found and guile
11362         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11363         in guile checks.
11364         * configure: Regenerate.
11365
11366 2014-02-11  Yao Qi  <yao@codesourcery.com>
11367
11368         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11369         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11370         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11371         * gnu-nat.c (gnu_xfer_memory): Likewise.
11372         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11373         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11374         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11375         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11376
11377 2014-02-11  Yao Qi  <yao@codesourcery.com>
11378
11379         * target.h (enum target_xfer_error): Rename to ...
11380         (enum target_xfer_status): ... it.  New.  All users updated.
11381         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11382         New.
11383         (TARGET_XFER_STATUS_ERROR_P): New macro.
11384         (target_xfer_error_to_string): Remove declaration.
11385         (target_xfer_status_to_string): Declare.
11386         (target_xfer_partial_ftype): Adjust it.
11387         (struct target_ops) <to_xfer_partial>: Return
11388         target_xfer_status.  Add argument xfered_len.  Update
11389         comments.
11390         * target.c (target_xfer_error_to_string): Rename to ...
11391         (target_xfer_status_to_string): ... it.  New.  All callers
11392         updated.
11393         (target_read_live_memory): Likewise.  Call target_xfer_partial
11394         instead of target_read.
11395         (memory_xfer_live_readonly_partial): Return
11396         target_xfer_status.  Add argument xfered_len.
11397         (raw_memory_xfer_partial): Likewise.
11398         (memory_xfer_partial_1): Likewise.
11399         (memory_xfer_partial): Likewise.
11400         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11401         properly.  Update debug message.
11402         (default_xfer_partial, current_xfer_partial): Likewise.
11403         (target_write_partial): Likewise.
11404         (target_read_partial): Likewise.  All callers updated.
11405         (read_whatever_is_readable): Likewise.
11406         (target_write_with_progress): Likewise.
11407         (target_read_alloc_1): Likewise.
11408
11409         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11410         * auxv.c (procfs_xfer_auxv): Likewise.
11411         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11412         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11413         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11414         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11415         * corefile.c (read_memory): Adjust.
11416         * corelow.c (core_xfer_partial): Likewise.
11417         * ctf.c (ctf_xfer_partial): Likewise.
11418         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11419         updated.
11420         (darwin_xfer_partial): Likewise.
11421         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11422         callers updated.
11423         (exec_xfer_partial): Likewise.
11424         * exec.h (section_table_xfer_memory_partial): Update
11425         declaration.
11426         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11427         negative.
11428         (gnu_xfer_partial): Likewise.
11429         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11430         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11431         (ia64_hpux_xfer_solib_got): Likewise.
11432         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11433         type of 'partial_len' to ULONGEST.
11434         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11435         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11436         (linux_nat_xfer_partial): Likewise.
11437         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11438         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11439         * monitor.c (monitor_xfer_memory): Likewise.
11440         (monitor_xfer_partial): Likewise.
11441         * procfs.c (procfs_xfer_partial): Likewise.
11442         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11443         * record-full.c (record_full_xfer_partial): Likewise.
11444         (record_full_core_xfer_partial): Likewise.
11445         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11446         (gdbsim_xfer_partial): Likewise.
11447         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11448         updated.
11449         (remote_write_bytes, remote_read_bytes): Likewise.  All
11450         callers updated.
11451         (remote_flash_erase): Likewise.  All callers updated.
11452         (remote_write_qxfer): Likewise.  All callers updated.
11453         (remote_read_qxfer): Likewise.  All callers updated.
11454         (remote_xfer_partial): Likewise.
11455         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11456         (rs6000_xfer_shared_libraries): Likewise.
11457         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11458         (sol_thread_xfer_partial): Likewise.
11459         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11460         (sparc_xfer_partial): Likewise.
11461         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11462         updated.
11463         (spu_xfer_partial): Likewise.
11464         * spu-multiarch.c (spu_xfer_partial): Likewise.
11465         * tracepoint.c (tfile_xfer_partial): Likewise.
11466         * windows-nat.c (windows_xfer_memory): Likewise.
11467         (windows_xfer_shared_libraries): Likewise.
11468         (windows_xfer_partial): Likewise.
11469         * valprint.c: Replace 'target_xfer_error' with
11470         'target_xfer_status' in comments.
11471
11472 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11473
11474         Checked in by Joel Brobecker <brobecker@adacore.com>.
11475         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11476
11477 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11478
11479         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11480         function parameters.
11481
11482 2014-02-10  Will Newton  <will.newton@linaro.org>
11483
11484         * elfread.c (elf_rel_plt_read): Look for a .got section if
11485         looking up .got.plt fails.
11486         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11487         on address passed to elf_gnu_ifunc_record_cache.
11488         (elf_gnu_ifunc_resolve_addr): Likewise.
11489         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11490
11491 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11492
11493         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11494         (X_RETTURN): New macro.
11495         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11496
11497         * sparc64-tdep.c (sparc64_init_abi): Hook
11498         sparc_in_function_epilogue_p.
11499
11500 2014-02-10  Gary Benson  <gbenson@redhat.com>
11501
11502         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11503         Rename name_matcher to symbol_matcher.
11504
11505 2014-02-10  Gary Benson  <gbenson@redhat.com>
11506
11507         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11508         Use expand_symtabs_file_matcher_ftype and
11509         expand_symtabs_symbol_matcher_ftype.
11510
11511 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11512
11513         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11514         (struct ada_symbol_cache): New.
11515         (ada_free_symbol_cache): Forward declare.
11516         (struct ada_pspace_data): New.
11517         (ada_pspace_data_handle): New static global.
11518         (get_ada_pspace_data, ada_pspace_data_cleanup)
11519         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11520         (cache_space, cache): Delete, now folded inside struct
11521         ada_pspace_data.
11522         (ada_get_symbol_cache): New function.
11523         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11524         implementation.
11525         (_initialize_ada_language): Remove initialization of cache_space.
11526         Move call to observer_attach_inferior_exit up, grouping it
11527         with the other observer registrations inside this function.
11528         Rename command to be more general.  Add call to
11529         register_program_space_data_with_cleanup.
11530
11531 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11532
11533         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11534         ada_new_objfile_observer.
11535         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11536         (_initialize_tasks): Update uses of ada_new_objfile_observer
11537         and ada_tasks_normal_stop_observer.
11538
11539 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11540
11541         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11542         returned by the 'Length attribute to integer.
11543
11544 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11545
11546         * ada-lang.c (_initialize_ada_language): Initialize
11547         cache_space obstack.
11548
11549 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11550
11551         * ada-lang.c (HASH_SIZE): New macro.
11552         (struct cache_entry): New type.
11553         (cache_space, cache): New static globals.
11554         (ada_clear_symbol_cache, find_entry): New functions.
11555         (lookup_cached_symbol, cache_symbol): Implement.
11556         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11557         (_initialize_ada_language): Attach ada_new_objfile_observer
11558         and ada_free_objfile_observer.
11559
11560 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11561
11562         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11563         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11564         struct block * parameter.
11565         (ada_lookup_symbol_list_worker): Constify local variable "block".
11566         Remove cast which is no longer necessary.
11567
11568 2014-02-10  Doug Evans  <xdje42@gmail.com>
11569
11570         Add Guile as an extension language.
11571         * NEWS: Mention Guile scripting.
11572         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11573         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11574         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11575         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11576         (CLIBS): Add GUILE_LIBS.
11577         (install-guile): New rule.
11578         (guile.o): New rule.
11579         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11580         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11581         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11582         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11583         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11584         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11585         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11586         * configure.ac: New option --with-guile.
11587         * configure: Regenerate.
11588         * config.in: Regenerate.
11589         * auto-load.c: Remove #include "python/python.h".  Add #include
11590         "gdb/section-scripts.h".
11591         (source_section_scripts): Handle Guile scripts.
11592         (_initialize_auto_load): Add name of Guile objfile script to
11593         scripts-directory help text.
11594         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11595         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11596         (struct breakpoint): New member scm_bp_object.
11597         * defs.h (enum command_control_type): New value guile_control.
11598         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11599         "extension.h".
11600         (show_user): Update comment.
11601         (_initialize_cli_cmds): Update help text for "show user".  Update help
11602         text for max-user-call-depth.
11603         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11604         "extension.h".
11605         (multi_line_command_p): Add guile_control.
11606         (print_command_lines): Handle guile_control.
11607         (execute_control_command, recurse_read_control_structure): Ditto.
11608         (process_next_line): Recognize "guile" commands.
11609         * disasm.c (gdb_disassemble_info): Make non-static.
11610         * disasm.h: #include "dis-asm.h".
11611         (struct gdbarch): Add forward decl.
11612         (gdb_disassemble_info): Declare.
11613         * extension.c: #include "guile/guile.h".
11614         (extension_languages): Add guile.
11615         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11616         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11617         * gdbtypes.c (get_unsigned_type_max): New function.
11618         (get_signed_type_minmax): New function.
11619         * gdbtypes.h (get_unsigned_type_max): Declare.
11620         (get_signed_type_minmax): Declare.
11621         * guile/README: New file.
11622         * guile/guile-internal.h: New file.
11623         * guile/guile.c: New file.
11624         * guile/guile.h: New file.
11625         * guile/scm-arch.c: New file.
11626         * guile/scm-auto-load.c: New file.
11627         * guile/scm-block.c: New file.
11628         * guile/scm-breakpoint.c: New file.
11629         * guile/scm-disasm.c: New file.
11630         * guile/scm-exception.c: New file.
11631         * guile/scm-frame.c: New file.
11632         * guile/scm-gsmob.c: New file.
11633         * guile/scm-iterator.c: New file.
11634         * guile/scm-lazy-string.c: New file.
11635         * guile/scm-math.c: New file.
11636         * guile/scm-objfile.c: New file.
11637         * guile/scm-ports.c: New file.
11638         * guile/scm-pretty-print.c: New file.
11639         * guile/scm-safe-call.c: New file.
11640         * guile/scm-string.c: New file.
11641         * guile/scm-symbol.c: New file.
11642         * guile/scm-symtab.c: New file.
11643         * guile/scm-type.c: New file.
11644         * guile/scm-utils.c: New file.
11645         * guile/scm-value.c: New file.
11646         * guile/lib/gdb.scm: New file.
11647         * guile/lib/gdb/boot.scm: New file.
11648         * guile/lib/gdb/experimental.scm: New file.
11649         * guile/lib/gdb/init.scm: New file.
11650         * guile/lib/gdb/iterator.scm: New file.
11651         * guile/lib/gdb/printing.scm: New file.
11652         * guile/lib/gdb/types.scm: New file.
11653         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11654         (VPATH): Add $(GUILE_SRCDIR).
11655         (GUILE_DIR): New variable.
11656         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11657         (all): Add stamp-guile dependency.
11658         (stamp-guile): New rule.
11659         (clean-guile, install-guile, uninstall-guile): New rules.
11660         (install-only): Add install-guile dependency.
11661         (uninstall): Add uninstall-guile dependency.
11662         (clean): Add clean-guile dependency.
11663
11664 2014-02-09  Doug Evans  <xdje42@gmail.com>
11665
11666         Revert this patch (which I approved, mea culpa).
11667
11668         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11669
11670         * Makefile.in (all-lib): Remove.
11671         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11672
11673 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11674
11675         Fix Python stack corruption.
11676         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11677         gdb_py_longest.
11678
11679 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11680
11681         * Makefile.in (all-lib): Remove.
11682         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11683
11684 2014-02-07  Doug Evans  <dje@google.com>
11685
11686         * extension-priv.h (extension_language_script_ops): Add comment.
11687         (extension_language_ops): Add comment.
11688         (active_ext_lang_state): Fix typo in comment.
11689
11690 2014-02-07  Pedro Alves  <palves@redhat.com>
11691
11692         PR breakpoints/16292
11693         * infrun.c (handle_signal_stop) <signal arrives while stepping
11694         over a breakpoint>: Switch back to the stepping thread.
11695
11696 2014-02-07  Yao Qi  <yao@codesourcery.com>
11697
11698         * target.c (target_xfer_partial): Return zero if LEN is zero.
11699
11700 2014-02-07  Yao Qi  <yao@codesourcery.com>
11701
11702         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11703         (ld_so_xfer_auxv): Likewise.
11704         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11705         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11706         * corelow.c (core_xfer_partial): Likewise.
11707         * ctf.c (ctf_xfer_partial): Likewise.
11708         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11709         (darwin_xfer_partial): Likewise.
11710         * exec.c (exec_xfer_partial): Likewise.
11711         * gnu-nat.c (gnu_xfer_partial): Likewise.
11712         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11713         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11714         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11715         * linux-nat.c (linux_xfer_siginfo): Likewise.
11716         (linux_proc_xfer_spu): Likewise.
11717         * procfs.c (procfs_xfer_partial): Likewise.
11718         * record-full.c (record_full_xfer_partial): Likewise.
11719         (record_full_core_xfer_partial): Likewise.
11720         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11721         * remote.c (remote_write_qxfer): Likewise.
11722         (remote_write_qxfer, remote_read_qxfer): Likewise.
11723         (remote_xfer_partial): Likewise.
11724         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11725         (rs6000_xfer_shared_libraries): Likewise.
11726         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11727         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11728         (spu_xfer_partial): Likewise.
11729         * target.c (memory_xfer_partial_1): Likewise.
11730         * tracepoint.c (tfile_xfer_partial): Likewise.
11731         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11732         (windows_xfer_partial): Likewise.
11733
11734 2014-02-07  Yao Qi  <yao@codesourcery.com>
11735
11736         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11737         comments.
11738         (core_xfer_shared_libraries_aix): Likewise.
11739         * gdbarch.c, gdbarch.h: Regenerated.
11740         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11741         ULONGEST.  Change 'len_avail' type to ULONGEST.
11742         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11743         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11744         declaration.
11745         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11746
11747 2014-02-07  Yao Qi  <yao@codesourcery.com>
11748
11749         * corefile.c (memory_error): Get 'exception' from ERR and pass
11750         'exception' to throw_error.
11751
11752 2014-02-06  Doug Evans  <xdje42@gmail.com>
11753
11754         * configure.ac (libpython checking): Remove all but python.o from
11755         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11756         * configure: Regenerate.
11757
11758         * Makefile.in (SFILES): Add extension.c.
11759         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11760         (COMMON_OBS): Add extension.o.
11761         * extension.h: New file.
11762         * extension-priv.h: New file.
11763         * extension.c: New file.
11764
11765         * python/python-internal.h: #include "extension.h".
11766         (gdbpy_auto_load_enabled): Declare.
11767         (gdbpy_apply_val_pretty_printer): Declare.
11768         (gdbpy_apply_frame_filter): Declare.
11769         (gdbpy_preserve_values): Declare.
11770         (gdbpy_breakpoint_cond_says_stop): Declare.
11771         (gdbpy_breakpoint_has_cond): Declare.
11772         (void source_python_script_for_objfile): Delete.
11773         * python/python.c: #include "extension-priv.h".
11774         Delete inclusion of "observer.h".
11775         (extension_language_python): Moved here and renamed from
11776         script_language_python in py-auto-load.c.
11777         Redefined to be of type extension_language_defn.
11778         (python_extension_script_ops): New global.
11779         (python_extension_ops): New global.
11780         (struct python_env): New member previous_active.
11781         (restore_python_env): Call restore_active_ext_lang.
11782         (ensure_python_env): Call set_active_ext_lang.
11783         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11784         New arg extlang.
11785         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11786         New arg extlang.
11787         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11788         New arg extlang.
11789         (gdbpy_eval_from_control_command): Renamed from
11790         eval_python_from_control_command, made static.  New arg extlang.
11791         (gdbpy_source_script) Renamed from source_python_script, made static.
11792         New arg extlang.
11793         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11794         result to int.  New arg extlang.
11795         (gdbpy_source_objfile_script): Renamed from
11796         source_python_script_for_objfile, made static.  New arg extlang.
11797         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11798         static.  New args extlang, extlang_printers.  Change result type to
11799         "void".
11800         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11801         static.  New arg extlang.  Rename arg printers to extlang_printers
11802         and change type to ext_lang_type_printers *.
11803         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11804         static.  Replace argument arg with extlang, extlang_printers.
11805         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11806         (!HAVE_PYTHON, source_python_script): Delete.
11807         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11808         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11809         (!HAVE_PYTHON, start_type_printers): Delete.
11810         (!HAVE_PYTHON, apply_type_printers): Delete.
11811         (!HAVE_PYTHON, free_type_printers): Delete.
11812         (_initialize_python): Delete call to observer_attach_before_prompt.
11813         (finalize_python): Set/restore active extension language.
11814         (gdbpy_finish_initialization) Renamed from
11815         finish_python_initialization, made static.  New arg extlang.
11816         (gdbpy_initialized): New function.
11817         * python/python.h: #include "extension.h".  Delete #include
11818         "value.h", "mi/mi-cmds.h".
11819         (extension_language_python): Declare.
11820         (GDBPY_AUTO_FILE_NAME): Delete.
11821         (enum py_bt_status): Moved to extension.h and renamed to
11822         ext_lang_bt_status.
11823         (enum frame_filter_flags): Moved to extension.h.
11824         (enum py_frame_args): Moved to extension.h and renamed to
11825         ext_lang_frame_args.
11826         (finish_python_initialization): Delete.
11827         (eval_python_from_control_command): Delete.
11828         (source_python_script): Delete.
11829         (apply_val_pretty_printer): Delete.
11830         (apply_frame_filter): Delete.
11831         (preserve_python_values): Delete.
11832         (gdbpy_script_language_defn): Delete.
11833         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11834         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11835
11836         * auto-load.c: #include "extension.h".
11837         (GDB_AUTO_FILE_NAME): Delete.
11838         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11839         (script_language_gdb): Delete, moved to extension.c and renamed to
11840         extension_language_gdb.
11841         (source_gdb_script_for_objfile): Delete.
11842         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11843         (loaded_script): Change type of language member to
11844         struct extension_language_defn *.
11845         (init_loaded_scripts_info): Initialize
11846         unsupported_script_warning_printed.
11847         (maybe_add_script): Make static.  Change type of language arg to
11848         struct extension_language_defn *.
11849         (clear_section_scripts): Reset unsupported_script_warning_printed.
11850         (auto_load_objfile_script_1): Rewrite to use extension language API.
11851         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11852         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11853         (source_section_scripts): Rewrite to use extension language API.
11854         (load_auto_scripts_for_objfile): Rewrite to use
11855         auto_load_scripts_for_objfile.
11856         (collect_matching_scripts_data): Change type of language member to
11857         struct extension_language_defn *.
11858         (auto_load_info_scripts): Change type of language arg to
11859         struct extension_language_defn *.
11860         (unsupported_script_warning_print): New function.
11861         (script_not_found_warning_print): Make static.
11862         (_initialize_auto_load): Rewrite construction of scripts-directory
11863         help.
11864         * auto-load.h (struct objfile): Add forward decl.
11865         (struct script_language): Delete.
11866         (struct auto_load_pspace_info): Add forward decl.
11867         (struct extension_language_defn): Add forward decl.
11868         (maybe_add_script): Delete.
11869         (auto_load_objfile_script): Declare.
11870         (script_not_found_warning_print): Delete.
11871         (auto_load_info_scripts): Update prototype.
11872         (auto_load_gdb_scripts_enabled): Declare.
11873         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11874         auto_load_python_scripts_enabled and made public.
11875         (script_language_python): Delete, moved to python.c.
11876         (gdbpy_script_language_defn): Delete.
11877         (info_auto_load_python_scripts): Update to use
11878         extension_language_python.
11879
11880         * breakpoint.c (condition_command): Replace call to
11881         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11882         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11883         with call to breakpoint_ext_lang_cond_says_stop.
11884         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11885         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11886         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11887         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11888         New arg slang.
11889         (local_setattro): Print name of extension language with existing
11890         stop condition.
11891
11892         * valprint.c (val_print, value_print): Update to call
11893         apply_ext_lang_val_pretty_printer.
11894         * cp-valprint.c (cp_print_value): Update call to
11895         apply_ext_lang_val_pretty_printer.
11896         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11897         (gdbpy_apply_val_pretty_printer): Renamed from
11898         apply_val_pretty_printer.  New arg extlang.
11899         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11900
11901         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11902         extension language API.
11903         * cli/cli-script.c (execute_control_command): Update to call
11904         eval_ext_lang_from_control_command.
11905
11906         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11907         enum ext_lang_bt_status values.  Update call to
11908         apply_ext_lang_frame_filter.
11909         (mi_cmd_stack_list_locals): Ditto.
11910         (mi_cmd_stack_list_args): Ditto.
11911         (mi_cmd_stack_list_variables): Ditto.
11912         * mi/mi-main.c: Delete #include "python/python-internal.h".
11913         Add #include "extension.h".
11914         (mi_cmd_list_features): Replace reference to python internal variable
11915         gdb_python_initialized with call to ext_lang_initialized_p.
11916
11917         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11918         Update to use enum ext_lang_frame_args.  Update to call
11919         apply_ext_lang_frame_filter.
11920         * python/py-framefilter.c (extract_sym): Update to use enum
11921         ext_lang_bt_status.
11922         (extract_value, py_print_type, py_print_value): Ditto.
11923         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11924         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11925         (py_print_frame): Ditto.
11926         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11927         New arg extlang.  Update to use enum ext_lang_bt_status.
11928
11929         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11930         finish_python_initialization.  Replace with call to
11931         finish_ext_lang_initialization.
11932
11933         * typeprint.c (do_free_global_table): Update to call
11934         free_ext_lang_type_printers.
11935         (create_global_typedef_table): Update to call
11936         start_ext_lang_type_printers.
11937         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11938         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11939         (type_print_options): Change type of global_printers from "void *"
11940         to "struct ext_lang_type_printers *".
11941
11942         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11943         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11944         (gdbpy_preserve_values): Renamed from preserve_python_values.
11945         New arg extlang.
11946         (!HAVE_PYTHON, preserve_python_values): Delete.
11947
11948         * utils.c (quit_flag): Delete, moved to extension.c.
11949         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11950         extension.c.
11951
11952         * eval.c: Delete #include "python/python.h".
11953         * main.c: Delete #include "python/python.h".
11954
11955         * defs.h: Update comment.
11956
11957 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11958
11959         GDB 7.7 released.
11960
11961 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11962
11963         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11964         defined.
11965
11966 2014-02-05  Yao Qi  <yao@codesourcery.com>
11967
11968         * remote.c (remote_pass_signals): Remove local 'buf' and use
11969         rs->buf.
11970         (remote_program_signals): Likewise.
11971
11972 2014-02-05  Yao Qi  <yao@codesourcery.com>
11973
11974         * ctf.c: Include "inferior.h" and "gdbthread.h".
11975         (CTF_PID): A new macro.
11976         (ctf_open): Call inferior_appeared and add_thread_silent.
11977         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11978         (ctf_thread_alive): New function.
11979         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11980
11981 2014-02-05  Yao Qi  <yao@codesourcery.com>
11982
11983         Revert this patch:
11984
11985         2013-05-24  Yao Qi  <yao@codesourcery.com>
11986
11987         * tracepoint.c (TFILE_PID): Remove.
11988         (tfile_open): Don't add thread and inferior.
11989         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11990         exit_inferior_silent.
11991         (tfile_thread_alive): Remove.
11992         (init_tfile_ops): Don't set field 'to_thread_alive' of
11993         tfile_ops.
11994
11995 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11996
11997         * remote.c (remote_start_remote): Call remote_check_symbols even
11998         if only symbol-file (not file) has been given.
11999
12000 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12001
12002         * gdbarch.sh (skip_entrypoint): New callback.
12003         * gdbarch.c, gdbarch.h: Regenerate.
12004         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12005         * infrun.c (fill_in_stop_func): Likewise.
12006         * ppc-linux-tdep.c: Include "elf/ppc64.h".
12007         (ppc_elfv2_elf_make_msymbol_special): New function.
12008         (ppc_elfv2_skip_entrypoint): Likewise.
12009         (ppc_linux_init_abi): Install them for ELFv2.
12010
12011 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12012
12013         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12014         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12015         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12016         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
12017         structures returned in GPRs.
12018
12019 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12020
12021         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12022         offset to the stack parameter list for the ELFv2 ABI.
12023
12024 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12025
12026         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12027         set_gdbarch_convert_from_func_ptr_addr and
12028         set_gdbarch_elf_make_msymbol_special for ELFv1.
12029         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12030         function descriptors on ELFv1.
12031         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
12032         set up r12 at function entry.
12033
12034 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12035
12036         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12037         (struct gdbarch_tdep): New member elf_abi.
12038
12039         * rs6000-tdep.c: Include "elf/ppc64.h".
12040         (rs6000_gdbarch_init): Detect ELF ABI version.
12041
12042 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12043
12044         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12045         within a register pair holding a DFP 128-bit value on little-endian.
12046         (ppc64_sysv_abi_return_value_base): Likewise.
12047         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12048         (dfp_pseudo_register_write): Likewise.
12049
12050 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12051
12052         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12053         offset on little-endian when passing _Decimal32.
12054         (ppc64_sysv_abi_return_value_base): Likewise for return values.
12055
12056 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12057
12058         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12059         of the overlapped FP register within the VSX register on little-
12060         endian platforms.
12061         (efpr_pseudo_register_write): Likewise.
12062
12063 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12064
12065         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12066         offset on little-endian when passing small structures.
12067
12068 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12069
12070         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12071         (struct ppc64_sysv_argpos): New data structure.
12072         (ppc64_sysv_abi_push_float): Remove.
12073         (ppc64_sysv_abi_push_val): New function.
12074         (ppc64_sysv_abi_push_integer): Likewise.
12075         (ppc64_sysv_abi_push_freg): Likewise.
12076         (ppc64_sysv_abi_push_vreg): Likewise.
12077         (ppc64_sysv_abi_push_param): Likewise.
12078         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12079         (ppc64_sysv_abi_return_value_base): New function.
12080         (ppc64_sysv_abi_return_value): Refactor to use it.
12081
12082 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12083
12084         * NEWS: Document new target powerpc64le-*-linux*.
12085
12086 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12087
12088         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12089         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12090         core dumps.
12091         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12092         register set used in ELF core dumps.  Add floating-point register set.
12093
12094 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12095
12096         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12097         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12098         penultimate entry from number representing the PC register
12099         to symbolic constant representing the MDR register.  Add
12100         constant for the PC register to the end of the table.
12101
12102 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12103
12104         * bsd-kvm.c: Include <sys/param.h>
12105
12106 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12107
12108         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12109
12110 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12111
12112         * ada-lang.h (clear_ada_sym_cache): Delete.
12113
12114 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12115
12116         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12117
12118 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12119
12120         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12121           the sigreturn register save area only if the syscall is
12122           sigreturn.
12123
12124 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12125
12126         * valops.c (value_slice): Minor reformatting.
12127
12128 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12129
12130         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12131
12132 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12133
12134         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12135         New static globals.
12136         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12137         (ada_ignore_descriptive_types_p): New static global.
12138         (find_parallel_type_by_descriptive_type): Return immediately
12139         if ada_ignore_descriptive_types_p is set.
12140         (_initialize_ada_language): Register new commands "maintenance
12141         set ada", "maintenance show ada", "maintenance set ada
12142         ignore-descriptive-types" and "maintenance show ada
12143         ignore-descriptive-types".
12144         * NEWS: Add entry for new "maint ada set/show
12145         ignore-descriptive-types" commands.
12146
12147 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12148
12149         * record-btrace.c (record_btrace_close): Call btrace_teardown
12150         for all threads.
12151
12152 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12153
12154         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12155         "ui-out.h".
12156
12157 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12158
12159         * ada-typeprint (type_is_full_subrange_of_target_type):
12160         New function.
12161         (print_range): Add parameter bounds_prefered_p.  If not set,
12162         try printing range types using the name of their base type.
12163         (print_range_type): Add parameter bounds_prefered_p.
12164         Use it in call to print_range.
12165         (print_array_type, ada_print_type): Update calls to print_range
12166         and print_range_type.
12167
12168 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12169
12170         * ada-typeprint.c (print_array_type, print_choices, print_range)
12171         (print_range_bound, print_dynamic_range_bound, print_range_type):
12172         Remove declaration.
12173
12174 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12175
12176         * ada-typeprint.c (print_range): Add missing empty line
12177         after local declaration.
12178
12179 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12180
12181         * ada-valprint.c (print_optional_low_bound): Get index_type's
12182         target type for as long as it is a TYPE_CODE_RANGE.
12183
12184 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12185
12186         * procfs.c (procfs_make_note_section): Remove assertion and
12187         associated comment.
12188
12189 2014-01-24  Yao Qi  <yao@codesourcery.com>
12190
12191         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12192         * corelow.c (get_core_siginfo): Likewise.
12193
12194 2014-01-24  Yao Qi  <yao@codesourcery.com>
12195
12196         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12197         ULONGEST.  Don't check 'len' is negative.
12198         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12199
12200 2014-01-23  Tom Tromey  <tromey@redhat.com>
12201
12202         PR python/16485:
12203         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12204         Handle exception from frame.block.
12205         (FrameVars.fetch_frame_locals): Likewise.
12206
12207 2014-01-23  Tom Tromey  <tromey@redhat.com>
12208
12209         PR python/16487:
12210         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12211         on a NULL pointer.  Move "goto error" to correct place.
12212
12213 2014-01-23  Tom Tromey  <tromey@redhat.com>
12214
12215         PR python/16491:
12216         * python/py-framefilter.c (apply_frame_filter): Call
12217         ensure_python_env after computing gdbarch.
12218
12219 2014-01-23  Yao Qi  <yao@codesourcery.com>
12220
12221         * target.c (raw_memory_xfer_partial): Change argument type
12222         from void * to gdb_byte *.
12223         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12224
12225 2014-01-22  Doug Evans  <dje@google.com>
12226
12227         New gdbserver option --debug-format=timestamp.
12228         * NEWS: Mention it.
12229
12230 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12231
12232         * syscalls/s390x-linux.xml: New file.
12233         * syscalls/s390-linux.xml: New file.
12234         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12235         (XML_SYSCALL_FILENAME_S390X): Likewise.
12236         (op_svc): New enum value for SVC opcode.
12237         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12238         (s390_linux_get_syscall_number): New function.
12239         (s390_gdbarch_init): Register '*get_syscall_number' and the
12240         syscall xml file name.
12241         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12242         "s390-linux.xml" and "s390x-linux.xml".
12243         * NEWS: Announce new feature.
12244
12245 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12246
12247         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12248
12249 2014-01-22  Pedro Alves  <palves@redhat.com>
12250
12251         * xtensa-config.c: Include defs.h.
12252
12253 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12254
12255         * common/common-utils.h: Add "ARI:" comment beside __func__
12256         reference.
12257
12258 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12259
12260         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12261         documentation a bit.
12262
12263 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12264
12265         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12266         * configure: Regenerate.
12267         * aclocal.m4: Regenerate.
12268         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12269         New substituted variables.
12270         (install-strip): New target.
12271         (INSTALL_SCRIPT): New substituted variable.
12272         (FLAGS_TO_PASS): Add it.
12273         (install-only): Use $(INSTALL_SCRIPT) rather than
12274         $(INSTALL_PROGRAM) for gcore.
12275
12276 2014-01-20  Tom Tromey  <tromey@redhat.com>
12277
12278         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12279         together.
12280
12281 2014-01-20  Tom Tromey  <tromey@redhat.com>
12282
12283         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12284         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12285         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12286         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12287         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12288         (struct cmd_list_element) <flags>: Remove.
12289         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12290         doc_allocated>: New fields.
12291         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12292         bitfields.
12293         * maint.c (maintenance_do_deprecate): Update.
12294         * top.c (execute_command): Update.
12295
12296 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12297
12298         * xtensa-linux-nat.c: Include asm/ptrace.h.
12299
12300 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12301
12302         * Makefile.in (SFILES): Add d-support.c.
12303         (COMMON_OBS): Add d-support.o.
12304         * d-lang.h (d_parse_symbol): Add comment, now defined in
12305         d-support.c.
12306         * d-lang.c (parse_call_convention)
12307         (parse_attributes, parse_function_types)
12308         (parse_function_args, parse_type, parse_identifier)
12309         (call_convention_p, d_parse_symbol): Move functions to ...
12310         * d-support.c: ... New file.
12311
12312 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12313
12314         * d-lang.h (d_parse_symbol): Add declaration.
12315         * d-lang.c (extract_identifiers)
12316         (extract_type_info): Remove functions.
12317         (parse_call_convention, parse_attributes)
12318         (parse_function_types, parse_function_args)
12319         (parse_type, parse_identifier, call_convention_p)
12320         (d_parse_symbol): New functions.
12321         (d_demangle): Use d_parse_symbol to demangle D symbols.
12322
12323 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12324
12325         * d-lang.h (struct builtin_d_type): New data type.
12326         (builtin_d_type): Add declaration.
12327         * d-lang.c (d_language_arch_info, build_d_types)
12328         (builtin_d_type): New functions.
12329         (enum d_primitive_types): New data type.
12330         (d_language_defn): Change c_language_arch_info to
12331         d_language_arch_info.
12332         (d_type_data): New static variable.
12333         (_initialize_d_language): Initialize d_type_data.
12334
12335 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12336
12337         * d-lang.h (d_main_name): Add declaration.
12338         * d-lang.c (d_main_name): New function.
12339         * symtab.c (find_main_name): Add call to d_main_name.
12340
12341 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12342
12343         * d-lang.c (d_language_defn): Change macro_expansion_c to
12344         macro_expansion_no.
12345
12346 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12347
12348         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12349
12350 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12351
12352         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12353         gdb_exception" declaration.
12354         * remote.c (getpkt_or_notif_sane): Likewise.
12355
12356 2014-01-17  Doug Evans  <dje@google.com>
12357
12358         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12359         function, contents of dirnames_to_char_ptr_vec_append moved here.
12360         (delim_string_to_char_ptr_vec): New function.
12361         (dirnames_to_char_ptr_vec_append): Rewrite.
12362         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12363
12364 2014-01-17  Doug Evans  <dje@google.com>
12365
12366         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12367         and moved here ...
12368         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12369         #include "common-utils.h".
12370         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12371         * common/vec.h (VEC_ASSERT_PASS): Update.
12372         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12373         (MACH_CHECK_ERROR): Update.
12374
12375 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12376
12377         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12378         comments.
12379         * gdbarch.h: Regenerate.
12380
12381 2014-01-16  Tom Tromey  <tromey@redhat.com>
12382
12383         * value.c (struct value) <regnum>: Move earlier.
12384
12385 2014-01-16  Tom Tromey  <tromey@redhat.com>
12386
12387         * remote.c (extended_remote_create_inferior): Rename from
12388         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12389         old implementation.
12390
12391 2014-01-16  Pedro Alves  <palves@redhat.com>
12392
12393         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12394         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12395         the backchain.
12396
12397 2014-01-16  Doug Evans  <dje@google.com>
12398
12399         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12400
12401 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12402
12403         * btrace.h (btrace_thread_flag): New.
12404         (struct btrace_thread_info) <flags>: New.
12405         * record-btrace.c (record_btrace_resume_thread)
12406         (record_btrace_find_thread_to_move, btrace_step_no_history)
12407         (btrace_step_stopped, record_btrace_start_replaying)
12408         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12409         (record_btrace_find_resume_thread): New.
12410         (record_btrace_resume, record_btrace_wait): Extend.
12411         (record_btrace_can_execute_reverse): New.
12412         (record_btrace_open): Fail in non-stop mode.
12413         (record_btrace_set_replay): Split into this, ...
12414         (record_btrace_stop_replaying): ... this, ...
12415         (record_btrace_clear_histories): ... and this.
12416         (init_record_btrace_ops): Init to_can_execute_reverse.
12417         * NEWS: Announce it.
12418
12419 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12420
12421         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12422         (forward_target_decr_pc_after_break)
12423         (target_decr_pc_after_break): New.
12424         * target.c (forward_target_decr_pc_after_break)
12425         (target_decr_pc_after_break): New.
12426         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12427         instead of gdbarch_decr_pc_after_break.
12428         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12429         instead of gdbarch_decr_pc_after_break.
12430         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12431         instead of gdbarch_decr_pc_after_break.
12432         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12433         instead of gdbarch_decr_pc_after_break.
12434         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12435         instead of gdbarch_decr_pc_after_break.
12436         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12437         instead of gdbarch_decr_pc_after_break.
12438
12439 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12440
12441         * btrace.c: Include regcache.h.
12442         (btrace_add_pc): New.
12443         (btrace_enable): Call btrace_add_pc.
12444         (btrace_is_empty): New.
12445         * btrace.h (btrace_is_empty): New.
12446         * record-btrace.c (require_btrace, record_btrace_info): Call
12447         btrace_is_empty.
12448
12449 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12450
12451         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12452         Support delta reads.
12453         (linux_disable_btrace): Change return type.
12454         * common/linux-btrace.h (linux_read_btrace): Change parameters
12455         and return type to allow error reporting.  Update users.
12456         (linux_disable_btrace): Change return type.  Update users.
12457         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12458         New.
12459         (btrace_error): New.
12460         (btrace_block) <begin>: Comment on BEGIN == 0.
12461         * btrace.c (btrace_compute_ftrace): Start from the end of
12462         the current trace.
12463         (btrace_stitch_trace, btrace_clear_history): New.
12464         (btrace_fetch): Read delta trace, return if replaying.
12465         (btrace_clear): Move clear history code to btrace_clear_history.
12466         (parse_xml_btrace): Throw an error if parsing failed.
12467         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12468         and return type to allow error reporting.
12469         (target_read_btrace): Change parameters and return type to allow
12470         error reporting.
12471         * target.c (target_read_btrace): Update.
12472         * remote.c (remote_read_btrace): Support delta reads.  Pass
12473         errors on.
12474         * NEWS: Announce it.
12475
12476 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12477
12478         * record.h (record_btrace_frame_unwind)
12479         (record_btrace_tailcall_frame_unwind): New declarations.
12480         * dwarf2-frame: Include record.h
12481         (dwarf2_frame_cfa): Throw an error for btrace frames.
12482         * record-btrace.c: Include hashtab.h.
12483         (btrace_get_bfun_name): New.
12484         (btrace_call_history): Call btrace_get_bfun_name.
12485         (struct btrace_frame_cache): New.
12486         (bfcache): New.
12487         (bfcache_hash, bfcache_eq, bfcache_new): New.
12488         (btrace_get_frame_function): New.
12489         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12490         (record_btrace_frame_this_id): Compute own id.
12491         (record_btrace_frame_prev_register): Provide PC, throw_error
12492         for all other registers.
12493         (record_btrace_frame_sniffer): Detect btrace frames.
12494         (record_btrace_tailcall_frame_sniffer): New.
12495         (record_btrace_frame_dealloc_cache): New.
12496         (record_btrace_frame_unwind): Add new functions.
12497         (record_btrace_tailcall_frame_unwind): New.
12498         (_initialize_record_btrace): Allocate cache.
12499         * btrace.c (btrace_clear): Call reinit_frame_cache.
12500         * NEWS: Announce it.
12501
12502 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12503
12504         * record-btrace.c (record_btrace_set_replay)
12505         (record_btrace_goto_begin, record_btrace_goto_end)
12506         (record_btrace_goto): New.
12507         (init_record_btrace_ops): Initialize them.
12508         * NEWS: Announce it.
12509
12510 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12511
12512         * record-btrace.c (record_btrace_find_new_threads)
12513         (record_btrace_thread_alive): New.
12514         (init_record_btrace_ops): Initialize to_find_new_threads and
12515         to_thread_alive.
12516
12517 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12518
12519         * record-btrace.c (record_btrace_resume): New.
12520         (record_btrace_wait): New.
12521         (init_record_btrace_ops): Initialize to_wait and to_resume.
12522
12523 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12524
12525         * record-btrace.c (record_btrace_xfer_partial)
12526         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12527         (record_btrace_allow_memory_access): New.
12528         (init_record_btrace_ops): Initialize new methods.
12529         * target.c (raw_memory_xfer_partial): Bail out if target reports
12530         that this memory is not available.
12531
12532 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12533
12534         * target.h (target_ops) <to_insert_breakpoint>
12535         <to_remove_breakpoint>: Add target_ops parameter.
12536         (forward_target_insert_breakpoint): New.
12537         (forward_target_remove_breakpoint): New.
12538         (memory_remove_breakpoint, memory_insert_breakpoint):
12539         Add target_ops parameter.
12540         * target.c (target_insert_breakpoint): Split into this and ...
12541         (forward_target_insert_breakpoint): ... this.
12542         (target_remove_breakpoint): Split into this and ...
12543         (forward_target_remove_breakpoint): ... this.
12544         (debug_to_insert_breakpoint): Add target_ops parameter.
12545         Call forward_target_insert_breakpoint.
12546         (debug_to_remove_breakpoint): Add target_ops parameter.
12547         Call forward_target_remove_breakpoint.
12548         (update_current_target): Do not inherit or default to_insert_breakpoint
12549         and to_remove_breakpoint.
12550         * corelow.c (ignore): Add target_ops parameter.
12551         * exec.c (ignore): Add target_ops parameter.
12552         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12553         Add target_ops parameter.
12554         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12555         Add target_ops parameter.
12556         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12557         Add target_ops parameter.
12558         * record-full.c (record_full_beneath_to_insert_breakpoint)
12559         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12560         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12561         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12562         (record_full_core_remove_breakpoint): Add target_ops parameter.
12563         Update users.
12564         (record_full_beneath_to_insert_breakpoint_ops)
12565         (record_full_beneath_to_remove_breakpoint_ops)
12566         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12567         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12568         tmp_to_remove_breakpoint_ops,
12569         record_full_beneath_to_insert_breakpoint_ops, and
12570         record_full_beneath_to_remove_breakpoint_ops.
12571         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12572         (m32r_remove_breakpoint): Add target_ops parameter.
12573         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12574         Add target_ops parameter.
12575         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12576         Add target_ops parameter.
12577
12578 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12579             Markus Metzger  <markus.t.metzger@intel.com>
12580
12581         * record-btrace.c: Include frame-unwind.h.
12582         (record_btrace_frame_unwind_stop_reason)
12583         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12584         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12585         New.
12586         (init_record_btrace_ops): Install it.
12587
12588 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12589
12590         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12591         get_prev_frame_1.
12592
12593 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12594
12595         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12596         earlier.
12597
12598 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12599
12600         * frame-unwind.c: Include target.h.
12601         (frame_unwind_try_unwinder): New function with code from ...
12602         (frame_unwind_find_by_frame): ... here.  New variable
12603         unwinder_from_target, call also target_get_unwinder)
12604         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12605         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12606         * target.h (struct target_ops): New fields to_get_unwinder and
12607         to_get_tailcall_unwinder.
12608         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12609
12610 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12611
12612         * record-btrace.c (record_btrace_fetch_registers)
12613         (record_btrace_store_registers)
12614         (record_btrace_to_prepare_to_store): New.
12615         (init_record_btrace_ops): Add the above.
12616
12617 2014-01-16  Tom Tromey  <tromey@redhat.com>
12618
12619         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12620         * target.h (struct target_ops) <to_prepare_to_store>: Add
12621         argument.
12622         (target_prepare_to_store): Add argument.
12623         * target.c (debug_to_prepare_to_store): Add argument.
12624         (update_current_target): Update.
12625         * remote.c (remote_prepare_to_store): Add 'self' argument.
12626         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12627         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12628         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12629         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12630         argument.
12631         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12632         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12633         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12634         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12635         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12636
12637 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12638
12639         * btrace.h (replay) <replay>: New.
12640         (btrace_is_replaying): New.
12641         * btrace.c (btrace_clear): Free replay iterator.
12642         (btrace_is_replaying): New.
12643         * record-btrace.c (record_btrace_is_replaying): New.
12644         (record_btrace_info): Print insn number if replaying.
12645         (record_btrace_insn_history): Start at replay position.
12646         (record_btrace_call_history): Start at replay position.
12647         (init_record_btrace_ops): Init to_record_is_replaying.
12648
12649 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12650
12651         * record-btrace.c (record_btrace_insn_history_range): Include
12652         end.
12653         (record_btrace_insn_history_from): Adjust range.
12654         (record_btrace_call_history_range): Include
12655         end.
12656         (record_btrace_call_history_from): Adjust range.
12657         * NEWS: Announce changes.
12658
12659 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12660
12661         * record.h (enum record_print_flag)
12662         <record_print_indent_calls>: New.
12663         * record.c (get_call_history_modifiers): Recognize /c modifier.
12664         (_initialize_record): Document /c modifier.
12665         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12666         Reorder fields.  Optionally indent the function name.  Update
12667         all users.
12668         * NEWS: Announce changes.
12669
12670 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12671
12672         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12673
12674 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12675
12676         * btrace.c (ftrace_new_function): Start counting at one.
12677         * record-btrace.c (record_btrace_info): Adjust number of calls
12678         and insns.
12679         * NEWS: Announce it.
12680
12681 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12682
12683         * record-btrace.c (btrace_call_history_insn_range): Print
12684         insn range as [begin, end].
12685
12686 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12687
12688         * btrace.h (struct btrace_func_link): New.
12689         (enum btrace_function_flag): New.
12690         (struct btrace_inst): Rename to ...
12691         (struct btrace_insn): ...this. Update all users.
12692         (struct btrace_func) <ibegin, iend>: Remove.
12693         (struct btrace_func_link): New.
12694         (struct btrace_func): Rename to ...
12695         (struct btrace_function): ...this. Update all users.
12696         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12697         (number, level, flags>: New.
12698         (struct btrace_insn_iterator): Rename to ...
12699         (struct btrace_insn_history): ...this.
12700         Update all users.
12701         (struct btrace_insn_iterator, btrace_call_iterator): New.
12702         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12703         (struct btrace_target_info) <begin, end, level>
12704         <insn_history, call_history>: New.
12705         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12706         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12707         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12708         (btrace_call_number, btrace_call_begin, btrace_call_end)
12709         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12710         (btrace_find_function_by_number, btrace_set_insn_history)
12711         (btrace_set_call_history): New.
12712         * btrace.c (btrace_init_insn_iterator)
12713         (btrace_init_func_iterator, compute_itrace): Remove.
12714         (ftrace_print_function_name, ftrace_print_filename)
12715         (ftrace_skip_file): Change
12716         parameter to const.
12717         (ftrace_init_func): Remove.
12718         (ftrace_debug): Use new btrace_function fields.
12719         (ftrace_function_switched): Also consider gaining and
12720         losing symbol information).
12721         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12722         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12723         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12724         New.
12725         (ftrace_new_function): Move. Remove debug print.
12726         (ftrace_update_lines, ftrace_update_insns): New.
12727         (ftrace_update_function): Check for call, ret, and jump.
12728         (compute_ftrace): Renamed to ...
12729         (btrace_compute_ftrace): ...this. Rewritten to compute call
12730         stack.
12731         (btrace_fetch, btrace_clear): Updated.
12732         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12733         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12734         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12735         (btrace_call_number, btrace_call_begin, btrace_call_end)
12736         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12737         (btrace_find_function_by_number, btrace_set_insn_history)
12738         (btrace_set_call_history): New.
12739         * record-btrace.c (require_btrace): Use new btrace thread
12740         info fields.
12741         (record_btrace_info, btrace_insn_history)
12742         (record_btrace_insn_history, record_btrace_insn_history_range):
12743         Use new btrace thread info fields and new iterator.
12744         (btrace_func_history_src_line): Rename to ...
12745         (btrace_call_history_src_line): ...this. Use new btrace
12746         thread info fields.
12747         (btrace_func_history): Rename to ...
12748         (btrace_call_history): ...this. Use new btrace thread info
12749         fields and new iterator.
12750         (record_btrace_call_history, record_btrace_call_history_range):
12751         Use new btrace thread info fields and new iterator.
12752
12753 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12754
12755         * frame.h (frame_id_build_unavailable_stack_special): New.
12756         * frame.c (frame_id_build_unavailable_stack_special): New.
12757
12758 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12759
12760         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12761         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12762         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12763         to gdbarch.
12764         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12765         (i386_insn_is_jump, i386_jmp_p): New.
12766         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12767         insn_is_jump to gdbarch.
12768         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12769         * gdbarch.h: Regenerated.
12770         * gdbarch.c: Regenerated.
12771         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12772         (default_insn_is_jump): New.
12773         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12774         (default_insn_is_jump): New.
12775
12776 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12777
12778         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12779         Change to ...
12780         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12781         (btrace_read_type) <btrace_read_new>: Change to ...
12782         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12783
12784 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12785
12786         * common/linux-btrace.c (linux_read_btrace): Free trace from
12787         previous iteration.
12788
12789 2014-01-15  Doug Evans  <dje@google.com>
12790
12791         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12792         uint32_t.
12793
12794 2014-01-15  Tom Tromey  <tromey@redhat.com>
12795
12796         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12797         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12798         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12799         (set_objfile_main_name): New function.
12800         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12801         language_of_main>: New fields.
12802         (set_objfile_main_name): Declare.
12803         * symtab.c (find_main_name): Loop over objfiles to find the main
12804         name and language.
12805         (set_main_name): Now static.
12806         (get_main_info): Add comment.
12807         * symtab.h (set_main_name): Don't declare.
12808
12809 2014-01-15  Tom Tromey  <tromey@redhat.com>
12810
12811         * symtab.c (main_progspace_key): New global.
12812         (struct main_info): New.
12813         (name_of_main, language_of_main): Remove.
12814         (get_main_info, main_info_cleanup): New function.
12815         (set_main_name, main_name, main_language): Use get_main_info.
12816         (_initialize_symtab): Initialize main_progspace_key.
12817
12818 2014-01-15  Tom Tromey  <tromey@redhat.com>
12819
12820         * dbxread.c (process_one_symbol): Update.
12821         * dwarf2read.c (read_partial_die): Update.
12822         * symfile.c (set_initial_language): Call main_language.
12823         * symtab.c (language_of_main): Now static.
12824         (set_main_name): Add 'lang' parameter.
12825         (find_main_name): Update.
12826         (main_language): New function.
12827         (symtab_observer_executable_changed): Update.
12828         * symtab.h (set_main_name): Update.
12829         (language_of_main): Remove.
12830         (main_language): Declare.
12831
12832 2014-01-15  Tom Tromey  <tromey@redhat.com>
12833
12834         * symfile.c (init_entry_point_info): Use new "initialized" field.
12835         Update.
12836         * objfiles.h (struct entry_point) <initialized>: New field.
12837         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12838         (struct objfile) <ei>: ...here.  Remove.
12839         * objfiles.c (entry_point_address_query): Update.
12840
12841 2014-01-15  Tom Tromey  <tromey@redhat.com>
12842
12843         * objfiles.c (entry_point_address_query): Relocate entry point
12844         address.
12845         (objfile_relocate1): Do not relocate entry point address.
12846         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12847         <the_bfd_section_index>: New field.
12848         * symfile.c (init_entry_point_info): Find the entry point's
12849         section.
12850
12851 2014-01-15  Tom Tromey  <tromey@redhat.com>
12852
12853         * solib-frv.c (enable_break): Use entry_point_address_query.
12854
12855 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12856
12857         * NEWS: Add note on improved process record-replay on
12858         arm*-linux* targets.
12859
12860 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12861
12862         * arm-tdep.c (enum arm_record_result): New enum.
12863         (arm_record_unsupported_insn): New function.
12864         (arm_record_coproc_data_proc): Removed.
12865         (thumb2_record_ld_st_multiple): New function.
12866         (thumb2_record_ld_st_dual_ex_tbb): New function.
12867         (thumb2_record_data_proc_sreg_mimm): New function.
12868         (thumb2_record_ps_dest_generic): New function.
12869         (thumb2_record_branch_misc_cntrl): New function.
12870         (thumb2_record_str_single_data): New function.
12871         (thumb2_record_ld_mem_hints): New function.
12872         (thumb2_record_ld_word): New function.
12873         (thumb2_record_lmul_lmla_div): New function.
12874         (thumb2_record_decode_insn_handler): New function.
12875         (decode_insn): Add thumb32 instruction handlers.
12876
12877 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12878
12879         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12880         (struct arm_linux_record_tdep): Declare.
12881         (arm_canonicalize_syscall): New function.
12882         (arm_all_but_pc_registers_record): New function.
12883         (arm_linux_syscall_record): New function.
12884         (arm_linux_init_abi): Add syscall recording constructs.
12885         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12886         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12887         decoding.
12888         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12889         <arm_syscall_record>: New field.
12890         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12891         gdb_target_obs.
12892
12893 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12894
12895         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12896         register for push instruction recording.
12897
12898 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12899
12900         * arm-tdep.c (thumb_record_misc): Update to correct logical
12901         error while recording ldm, ldmia and pop instructions.
12902
12903 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12904
12905         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12906
12907 2014-01-15  Pedro Alves  <palves@redhat.com>
12908
12909         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12910         (go32_resume, go32_fetch_registers, store_register)
12911         (go32_store_registers, go32_prepare_to_store)
12912         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12913         (go32_create_inferior, go32_can_run, go32_terminal_init)
12914         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12915         declarations.
12916
12917 2014-01-15  Tom Tromey  <tromey@redhat.com>
12918
12919         * target.h (async_callback_ftype): New typedef.
12920         (struct target_ops) <to_async>: Use it.
12921
12922 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12923
12924         * python/py-value.c (get_field_type): Remove unnecessary curly
12925         braces for single-statement if block.
12926
12927 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12928
12929         * python/py-type.c (convert_field): Add missing empty line
12930         after declarations.
12931
12932 2014-01-14  Doug Evans  <dje@google.com>
12933
12934         * symfile.h (expand_symtabs_matching): Renamed from
12935         expand_partial_symbol_names.  Update prototype.
12936         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12937         * symfile.c (expand_symtabs_matching): Renamed from
12938         expand_partial_symbol_names.  New args file_matcher, kind.
12939         Rename arg fun to symbol_matcher.
12940         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12941         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12942         ada_expand_partial_symbol_name.
12943         (ada_make_symbol_completion_list): Update to call
12944         expand_symtabs_matching.
12945         (ada_add_global_exceptions): Call expand_symtabs_matching.
12946         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12947         call map_symbol_filenames.
12948         * symtab.c (sources_info): Update to call map_symbol_filenames.
12949         (search_symbols): Call expand_symtabs_matching.
12950         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12951         (default_make_symbol_completion_list_break_on): Update to call
12952         expand_symtabs_matching.
12953         (make_source_files_completion_list): Update to call
12954         map_symbol_filenames.
12955
12956 2014-01-14  Doug Evans  <dje@google.com>
12957
12958         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12959         (expand_symtabs_symbol_matcher_ftype): New typedef.
12960         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12961         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12962         * symfile.c (expand_partial_symbol_names): Update to use
12963         expand_symtabs_symbol_matcher_ftype.
12964         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12965         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12966         Arg name_matcher renamed to symbol_matcher.
12967         * psymtab.c (recursively_search_psymtabs): Update to use
12968         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12969         sym_matcher.
12970         (expand_symtabs_matching_via_partial): Update to use
12971         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12972         Arg name_matcher renamed to symbol_matcher.
12973
12974 2014-01-14  Doug Evans  <dje@google.com>
12975
12976         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12977         (map_partial_symbol_filenames): Ditto.
12978         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12979         (map_partial_symbol_filenames): Ditto.
12980         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12981         (map_partial_symbol_filenames): Ditto.
12982         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12983         (map_partial_symbol_filenames): Ditto.
12984         * symtab.c: Delete #include "psymtab.h".
12985
12986 2014-01-14  Pedro Alves  <palves@redhat.com>
12987             Tom Tromey  <tromey@redhat.com>
12988
12989         * infrun.c (use_displaced_stepping): Use find_record_target
12990         instead of RECORD_IS_USED.
12991         (adjust_pc_after_break): Use record_full_is_used instead of
12992         RECORD_IS_USED.
12993         * record-btrace.c (record_btrace_open): Call record_preopen
12994         instead of checking RECORD_IS_USED.
12995         * record-full.c (record_full_shortname)
12996         (record_full_core_shortname): New globals.
12997         (record_full_is_used): New function.
12998         (find_full_open): Call record_preopen instead of checking
12999         RECORD_IS_USED.
13000         (init_record_full_ops): Set the target's shortname to
13001         record_full_shortname.
13002         (init_record_full_core_ops): Set the target's shortname to
13003         record_full_core_shortname.
13004         * record-full.h (record_full_is_used): Declare.
13005         * record.c (find_record_target): Make extern.
13006         (record_preopen): New function.
13007         * record.h (RECORD_IS_USED): Delete macro.
13008         (find_record_target, record_preopen): Declare functions.
13009
13010 2014-01-14  Yao Qi  <yao@codesourcery.com>
13011
13012         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13013         'len''s type to ULONGEST.
13014         (core_xfer_shared_libraries_aix): Likewise.
13015         * gdbarch.c, gdbarch.h: Regenerated.
13016         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13017         Change type of 'len' to ULONGEST.
13018         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13019         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13020
13021 2014-01-14  Yao Qi  <yao@codesourcery.com>
13022
13023         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13024         type of 'len' to ULONGEST.
13025         (linux_xfer_osdata_processgroups): Likewise.
13026         (linux_xfer_osdata_threads): Likewise.
13027         (linux_xfer_osdata_fds): Likewise.
13028         (linux_xfer_osdata_isockets): Likewise.
13029         (linux_xfer_osdata_shm): Likewise.
13030         (linux_xfer_osdata_sem): Likewise.
13031         (linux_xfer_osdata_msg): Likewise.
13032         (linux_common_xfer_osdata): Likewise.
13033         (struct osdata_type) <getter>: Likewise.
13034         * common/linux-osdata.h (linux_common_xfer_osdata): Update
13035         the declaration.
13036
13037 2014-01-14  Yao Qi  <yao@codesourcery.com>
13038
13039         * target.h (target_xfer_partial_ftype): Update.
13040         (struct target_ops) <to_xfer_partial>: Change 'len' type to
13041         ULONGEST.
13042         * aix-thread.c (aix_thread_xfer_partial): Change type of
13043         argument 'len' to ULONGEST.
13044         * auxv.c (procfs_xfer_auxv): Likewise.
13045         (ld_so_xfer_auxv): Likewise.
13046         (memory_xfer_auxv): Likewise.
13047         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13048         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13049         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13050         * corelow.c (core_xfer_partial): Likewise.
13051         * ctf.c (ctf_xfer_partial): Likewise.
13052         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
13053         '%u'.
13054         (darwin_read_dyld_info): Likewise.
13055         (darwin_xfer_partial): Likewise.
13056         * exec.c (section_table_xfer_memory_partial): Likewise.
13057         (exec_xfer_partial): Likewise.
13058         * exec.h (section_table_xfer_memory_partial): Update
13059         declaration.
13060         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13061         instead of plongest.
13062         (gnu_xfer_partial): Likewise.
13063         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13064         (ia64_hpux_xfer_solib_got): Likewise.
13065         (ia64_hpux_xfer_partial): Likewise.
13066         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13067         * inf-ptrace.c (inf_ptrace_xfer_partial):
13068         * inf-ttrace.c (inf_ttrace_xfer_partial):
13069         * linux-nat.c (linux_xfer_siginfo): Likewise.
13070         (linux_nat_xfer_partial): Likewise.
13071         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13072         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13073         * monitor.c (monitor_xfer_memory): Likewise.
13074         (monitor_xfer_partial): Likewise.
13075         * procfs.c (procfs_xfer_partial): Likewise.
13076         * record-full.c (record_full_xfer_partial): Likewise.
13077         (record_full_core_xfer_partial): Likewise.
13078         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13079         instead of plongest.
13080         (gdbsim_xfer_partial): Likewise.
13081         * remote.c (remote_xfer_partial): Likewise.
13082         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13083         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13084         declaration.
13085         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13086         (rs6000_xfer_shared_libraries): Likewise.
13087         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13088         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13089         (sparc_xfer_partial): Likewise.
13090         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13091         (spu_xfer_partial): Likewise.
13092         * spu-multiarch.c (spu_xfer_partial): Likewise.
13093         * target.c (target_read_live_memory): Likewise.
13094         (memory_xfer_live_readonly_partial): Likewise.
13095         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13096         (target_xfer_partial, default_xfer_partial): Likewise.
13097         (current_xfer_partial): Likewise.
13098         * tracepoint.c (tfile_xfer_partial): Likewise.
13099         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13100         pulongest instead of plongest.
13101         (windows_xfer_partial): Likewise.
13102         (windows_xfer_shared_libraries): Likewise.
13103
13104 2014-01-14  Yao Qi  <yao@codesourcery.com>
13105
13106         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13107         target_xfer_partial_ftype.
13108
13109 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13110
13111         PR python/15464
13112         PR python/16113
13113         * valops.c (value_struct_elt_bitpos): New function
13114         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13115         object to 'None' if the field name is an empty string ("").
13116         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13117         attribute to look for a field when 'name' is 'None'.
13118         (get_field_type): New function
13119
13120 2014-01-13  Doug Evans  <dje@google.com>
13121
13122         PR symtab/16426
13123         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13124         (try_open_dwop_file): Ditto.
13125         * gdb_bfd.c: #include "vec.h".
13126         (bfdp): New typedef.
13127         (struct gdb_bfd_data): New member included_bfds.
13128         (gdb_bfd_unref): Unref all included bfds.
13129         (gdb_bfd_record_inclusion): New function.
13130         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13131
13132 2014-01-13  Tom Tromey  <tromey@redhat.com>
13133
13134         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13135
13136 2014-01-13  Tom Tromey  <tromey@redhat.com>
13137
13138         * defs.h (use_windows): Remove.
13139         * gdb.c (main): Update.
13140         * main.c (captured_main, gdb_main): Update.
13141         * main.h (struct captured_main_args) <use_windows>: Remove.
13142         * top.c (use_windows): Remove.
13143
13144 2014-01-13  Tom Tromey  <tromey@redhat.com>
13145
13146         * defs.h (deprecated_flush_hook): Remove.
13147
13148 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13149
13150         PR threads/16216
13151         * linux-thread-db.c (try_thread_db_load): Add parameter
13152         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13153         (try_thread_db_load_from_pdir_1): Move it there from here.
13154         (try_thread_db_load_from_sdir): Update caller.
13155         (try_thread_db_load_from_dir): Move it there from here.
13156
13157 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13158
13159         * regformats/regdat.sh: Always rewrite the register file.
13160
13161 2014-01-13  Pedro Alves  <palves@redhat.com>
13162
13163         * Makefile.in (CHECK_HEADERS): New variable.
13164         (check-headers:): New rule.
13165
13166 2014-01-13  Tom Tromey  <tromey@redhat.com>
13167
13168         * cli/cli-setshow.c (do_set_command): Update.
13169         * defs.h (deprecated_set_hook): Remove.
13170         * top.c (deprecated_set_hook): Remove.
13171
13172 2014-01-13  Pedro Alves  <palves@redhat.com>
13173
13174         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13175         the tracepoint if the PC is a pseudo-register.
13176
13177 2014-01-13  Tom Tromey  <tromey@redhat.com>
13178
13179         * defs.h (XCALLOC): Remove.
13180         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13181         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13182         * dwarf2loc.c (allocate_piece_closure): Likewise.
13183         * elfread.c (elf_symfile_segments): Likewise.
13184         (elf_symfile_segments): Likewise.
13185         * gdbtypes.c (copy_type_recursive): Likewise.
13186         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13187         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13188         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13189         XCALLOC.
13190         * mt-tdep.c (mt_gdbarch_init): Likewise.
13191         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13192         XCALLOC.
13193         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13194         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13195         * registry.c (registry_alloc_data): Likewise.
13196         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13197         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13198         * serial.c (serial_fdopen_ops): Likewise.
13199         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13200         XCALLOC.
13201         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13202         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13203         not XCALLOC.
13204
13205 2014-01-13  Tom Tromey  <tromey@redhat.com>
13206
13207         * defs.h (XMALLOC): Remove.
13208         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13209         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13210         * cli-out.c (struct ui_out *): Likewise.
13211         * cli/cli-dump.c (add_dump_command): Likewise.
13212         (add_dump_command): Likewise.
13213         * complaints.c (get_complaints): Likewise.
13214         (find_complaint): Likewise.
13215         * dwarf2-frame.c (execute_cfa_program): Likewise.
13216         * dwarf2read.c (abbrev_table_read_table): Likewise.
13217         * gdbarch.sh: Likewise.
13218         * gdbarch.c: Rebuild.
13219         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13220         * interps.c (interp_new): Likewise.
13221         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13222         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13223         * mi/mi-console.c (mi_console_file_new): Likewise.
13224         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13225         * mi/mi-out.c (mi_out_new): Likewise.
13226         * mi/mi-parse.c (mi_parse): Likewise.
13227         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13228         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13229         * observer.c (xalloc_observer_list_node): Likewise.
13230         * regcache.c (regcache_xmalloc_1): Likewise.
13231         * reggroups.c (reggroup_new): Likewise.
13232         (_initialize_reggroup): Likewise.
13233         * registry.c (register_data_with_cleanup): Likewise.
13234         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13235         * ser-base.c (serial_ttystate): Likewise.
13236         * ser-mingw.c (make_pipe_state): Likewise.
13237         * ser-pipe.c (pipe_open): Likewise.
13238         * serial.c (serial_open): Likewise.
13239         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13240         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13241         (tui_alloc_win_info): Likewise.
13242         (tui_add_content_elements): Likewise.
13243         * tui/tui-file.c (tui_file_new): Likewise.
13244         * tui/tui-out.c (tui_out_new): Likewise.
13245         * ui-file.c (mem_file_new): Likewise.
13246         * ui-out.c (push_level): Likewise.
13247         (make_cleanup_ui_out_end): Likewise.
13248         (append_header_to_list): Likewise.
13249         (ui_out_new): Likewise.
13250         * user-regs.c (user_reg_add_builtin): Likewise.
13251
13252 2014-01-13  Tom Tromey  <tromey@redhat.com>
13253
13254         * defs.h (XZALLOC): Remove.
13255         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13256         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13257         (get_ada_tasks_inferior_data): Likewise.
13258         * auto-load.c (get_auto_load_pspace_data): Likewise.
13259         * auxv.c (get_auxv_inferior_data): Likewise.
13260         * bfd-target.c (target_bfd_reopen): Likewise.
13261         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13262         (deprecated_insert_raw_breakpoint): Likewise.
13263         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13264         * corelow.c (core_open): Likewise.
13265         * darwin-nat.c (darwin_check_new_threads): Likewise.
13266         (darwin_attach_pid): Likewise.
13267         * dummy-frame.c (dummy_frame_push): Likewise.
13268         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13269         * dwarf2loc.c (allocate_piece_closure): Likewise.
13270         * elfread.c (elf_symfile_segments): Likewise.
13271         * eval.c (ptrmath_type_p): Likewise.
13272         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13273         * gdbtypes.c (alloc_type_arch): Likewise.
13274         (alloc_type_instance): Likewise.
13275         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13276         * inf-child.c (inf_child_can_use_agent): Likewise.
13277         * inflow.c (get_inflow_inferior_data): Likewise.
13278         * infrun.c (save_infcall_suspend_state): Likewise.
13279         * jit.c (jit_reader_load): Likewise.
13280         (get_jit_objfile_data): Likewise.
13281         (get_jit_program_space_data): Likewise.
13282         (jit_object_open_impl): Likewise.
13283         (jit_symtab_open_impl): Likewise.
13284         (jit_block_open_impl): Likewise.
13285         (jit_frame_sniffer): Likewise.
13286         * linux-fork.c (add_fork): Likewise.
13287         * maint.c (make_command_stats_cleanup): Likewise.
13288         * objfiles.c (get_objfile_pspace_data): Likewise.
13289         * opencl-lang.c (struct lval_closure): Likewise.
13290         * osdata.c (osdata_start_osdata): Likewise.
13291         * progspace.c (new_address_space): Likewise.
13292         (add_program_space): Likewise.
13293         * remote-sim.c (get_sim_inferior_data): Likewise.
13294         * sh-tdep.c (sh_gdbarch_init): Likewise.
13295         * skip.c (Ignore): Likewise.
13296         (skip_delete_command): Likewise.
13297         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13298         (library_list_start_library): Likewise.
13299         (solib_aix_current_sos): Likewise.
13300         * solib-darwin.c (get_darwin_info): Likewise.
13301         (darwin_current_sos): Likewise.
13302         * solib-dsbt.c (get_dsbt_info): Likewise.
13303         * solib-ia64-hpux.c (new_so_list): Likewise.
13304         (ia64_hpux_get_solib_linkage_addr): Likewise.
13305         * solib-spu.c (append_ocl_sos): Likewise.
13306         (spu_current_sos): Likewise.
13307         * solib-svr4.c (get_svr4_info): Likewise.
13308         (svr4_keep_data_in_core): Likewise.
13309         (library_list_start_library): Likewise.
13310         (svr4_default_sos): Likewise.
13311         (svr4_read_so_list): Likewise.
13312         * solib-target.c (library_list_start_library): Likewise.
13313         (solib_target_current_sos): Likewise.
13314         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13315         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13316         * symfile.c (default_symfile_segments): Likewise.
13317         * target-descriptions.c (tdesc_data_init): Likewise.
13318         (tdesc_create_reg): Likewise.
13319         (struct tdesc_type *): Likewise.
13320         (tdesc_create_vector): Likewise.
13321         (tdesc_set_struct_size): Likewise.
13322         (struct tdesc_type *): Likewise.
13323         (tdesc_free_feature): Likewise.
13324         (tdesc_create_feature): Likewise.
13325         * windows-nat.c (windows_add_thread): Likewise.
13326         (windows_make_so): Likewise.
13327         * xml-support.c (gdb_xml_body_text): Likewise.
13328         (gdb_xml_create_parser_and_cleanup): Likewise.
13329         (xml_process_xincludes): Likewise.
13330         * xml-syscall.c (allocate_syscalls_info): Likewise.
13331         (syscall_create_syscall_desc): Likewise.
13332
13333 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13334
13335         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13336         function, with code from i386_stap_parse_special_token.
13337         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13338         (i386_stap_parse_special_token): Move code to the two functions
13339         above; simplify it.
13340
13341 2014-01-09  Pedro Alves  <palves@redhat.com>
13342             Hui Zhu  <hui@codesourcery.com>
13343
13344         PR gdb/16101
13345         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13346         bp_err_string.  Don't mark the location shlib_disabled if the
13347         error thrown wasn't a generic or memory error.  Catch errors
13348         thrown while inserting breakpoints in overlayed code.  Output
13349         error message of software breakpoints.
13350         * remote.c (remote_insert_breakpoint): If this breakpoint has
13351         target-side commands but this stub doesn't support Z0 packets,
13352         throw NOT_SUPPORTED_ERROR error.
13353         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13354         * target.h (target_insert_breakpoint): Extend comment.
13355         (target_insert_hw_breakpoint): Add comment.
13356
13357 2014-01-08  Pedro Alves  <palves@redhat.com>
13358
13359         * remote.c (remote_add_thread): Add threads silently if starting
13360         up.
13361         (remote_notice_new_inferior): If in all-stop, and starting up,
13362         don't call notice_new_inferior.
13363         (get_current_thread): New function, factored out from ...
13364         (add_current_inferior_and_thread): ... this.  Adjust.
13365         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13366         found any thread, then select the remote's current thread as GDB's
13367         current thread too.
13368
13369 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13370
13371         * NEWS: Create a new section for the next release branch.
13372         Rename the section of the current branch, now that it has
13373         been cut.
13374
13375 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13376
13377         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13378         * version.in: Bump version to 7.7.50.DATE-cvs.
13379
13380 2014-01-08  Yao Qi  <yao@codesourcery.com>
13381
13382         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13383         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13384         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13385
13386 2014-01-08  Yao Qi  <yao@codesourcery.com>
13387
13388         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13389         return value of bfd_get_filename to symbol_file_add_from_bfd.
13390
13391 2014-01-08  Pierre Muller  <muller@sourceware.org>
13392
13393         Fix PR16201.
13394         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13395         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13396         to prim_record_mininal_symbol_and_info.
13397         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13398         in call to prim_record_minimal_symbol_and_info.
13399         (read_pe_exported_syms): Set index field of section_data.
13400
13401 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13402
13403         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13404         * features/aarch64.c: Regenerate.
13405
13406 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13407
13408         * target.c (return_null): Define.
13409         (update_current_target): Use it instead of return_zero for
13410         functions that return a pointer.
13411
13412 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13413
13414         * source.c (add_path): Fix check for duplicated paths in the previously
13415         included paths.
13416
13417 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13418
13419         * ada-lang.c: Remove duplicated include statements.
13420         * alphabsd-nat.c: Ditto.
13421         * amd64-darwin-tdep.c: Ditto.
13422         * amd64fbsd-nat.c: Ditto.
13423         * auto-load.c: Ditto.
13424         * ax-gdb.c: Ditto.
13425         * breakpoint.c: Ditto.
13426         * dbxread.c: Ditto.
13427         * fork-child.c: Ditto.
13428         * gdb_usleep.c: Ditto.
13429         * i386-darwin-tdep.c: Ditto.
13430         * i386fbsd-nat.c: Ditto.
13431         * infcmd.c: Ditto.
13432         * inferior.c: Ditto.
13433         * jv-lang.c: Ditto.
13434         * linux-nat.c: Ditto.
13435         * linux-tdep.c: Ditto.
13436         * m68kbsd-nat.c: Ditto.
13437         * m68klinux-nat.c: Ditto.
13438         * microblaze-tdep.c: Ditto.
13439         * mips-linux-tdep.c: Ditto.
13440         * mn10300-tdep.c: Ditto.
13441         * nto-tdep.c: Ditto.
13442         * opencl-lang.c: Ditto.
13443         * osdata.c: Ditto.
13444         * printcmd.c: Ditto.
13445         * regcache.c: Ditto.
13446         * remote-m32r-sdi.c: Ditto.
13447         * remote.c: Ditto.
13448         * symfile.c: Ditto.
13449         * symtab.c: Ditto.
13450         * tilegx-linux-nat.c: Ditto.
13451         * tilegx-tdep.c: Ditto.
13452         * tracepoint.c: Ditto.
13453         * valops.c: Ditto.
13454         * vaxbsd-nat.c: Ditto.
13455         * windows-nat.c: Ditto.
13456         * xtensa-tdep.c: Ditto.
13457
13458 2014-01-07  Yao Qi  <yao@codesourcery.com>
13459
13460         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13461
13462 2014-01-07  Yao Qi  <yao@codesourcery.com>
13463             Joel Brobecker  <brobecker@adacore.com>
13464
13465         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13466         (pdc_write_regs): Likewise.
13467         (fetch_regs_kernel_thread): Likewise.
13468         (store_regs_kernel_thread): Likewise.
13469
13470 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13471
13472         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13473         tagged type objects to their actual type.
13474
13475 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13476
13477         * ada-valprint.c (print_field_values): Add "language" parameter.
13478         Update calls to print_field_values and print_variant_part.
13479         Pass new parameter "language" in call to val_print instead
13480         of "current_language".  Replace call to ada_val_print by call
13481         to val_print.
13482         (print_variant_part): Add "language" parameter.
13483         (ada_val_print_struct_union): Update call to print_field_values.
13484
13485 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13486
13487         * ada-valprint.c (ui_memcpy): Delete.
13488         (ada_print_floating): Update documentation.  Add empty line
13489         between between function documentation and implementation.
13490         Delete variable "buffer".  Use ui_file_xstrdup in place of
13491         ui_file_put.  Minor adjustments following this change.
13492
13493 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13494
13495         * ada-valprint.c (ada_val_print_string): New function,
13496         extracted from ada_val_print_array.
13497         (ada_val_print_array): Replace extracted code by call
13498         to ada_val_print_string followed by a return.  Move
13499         "else" branch to the function's top block.
13500
13501 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13502
13503         * ada-valprint.c (ada_val_print_array): Move implementation
13504         down.  Rename parameter "offset" and "val" into "offset_aligned"
13505         and "original_value" respectively.  Add parameter "offset".
13506
13507 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13508
13509         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13510         re-organizing the code. Change the "???" message printed
13511         when target type is a TYPE_CODE_UNDEF into
13512         "<ref to undefined type>".
13513
13514 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13515
13516         * ada-valprint.c (print_record): Delete, implementation inlined...
13517         (ada_val_print_struct_union): ... here.  Remove call to
13518         ada_check_typedef in inlined implementation.
13519
13520 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13521
13522         * ada-valprint.c (ada_val_print_gnat_array): New function,
13523         extracted from ada_val_print_1;
13524         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13525         (ada_val_print_flt, ada_val_print_struct_union)
13526         (ada_val_print_ref): Likewise.
13527         (ada_val_print_1): Delete variables i and elttype.
13528         Replace extracted-out code by call to corresponding
13529         new functions.
13530
13531 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13532
13533         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13534
13535 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13536
13537         * ada-valprint.c (ada_val_print_1): Replace calls to
13538         ada_val_print_1 by calls to val_print.
13539
13540 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13541
13542         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13543         Update calls to self accordingly.  Replace calls to c_val_print
13544         by calls to val_print.
13545
13546 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13547
13548         * ada-valprint.c (print_record): Delete declaration.
13549         (adjust_type_signedness, ada_val_print_1): Likewise.
13550         (ada_val_print): Move function implementation down.
13551         (print_variant_part, print_field_values, print_record):
13552         Move function implementation up.
13553
13554 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13555
13556         * python/py-type.c (typy_get_name): New function.
13557         (type_object_getset): Add entry for attribute "name".
13558         * NEWS: Add entry mentioning this new attribute.
13559
13560 2014-01-07  Yao Qi  <yao@codesourcery.com>
13561
13562         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13563         statement.
13564
13565 2014-01-07  Yao Qi  <yao@codesourcery.com>
13566
13567         * gnu-nat.c (info_port_rights): Add qualifier const to
13568         argument args.
13569
13570 2014-01-07  Yao Qi  <yao@codesourcery.com>
13571
13572         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13573
13574 2014-01-07  Yao Qi  <yao@codesourcery.com>
13575
13576         * gnu-nat.c (make_inf) Update declaration.
13577         (make_inf): Make it static.
13578         (inf_set_traced): Likewise.
13579         (inf_port_to_thread, inf_task_died_status): Likewise.
13580
13581 2014-01-07  Yao Qi  <yao@codesourcery.com>
13582
13583         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13584
13585 2014-01-07  Yao Qi  <yao@codesourcery.com>
13586
13587         * gnu-nat.c (_initialize_gnu_nat): Declare.
13588
13589 2014-01-07  Yao Qi  <yao@codesourcery.com>
13590
13591         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13592         'enum bfd_endian'.
13593         (struct gdbarch_info) <byte_order>: Change type to
13594         'enum bfd_endian'.
13595         <byte_order_for_code>: Likewise.
13596         * gdbarch.c, gdbarch.h: Regenerated.
13597
13598 2014-01-06  Sasha Smundak  <asmundak@google.com>
13599
13600         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13601
13602 2014-01-06  Tom Tromey  <tromey@redhat.com>
13603
13604         * doublest.c (convert_doublest_to_floatformat): Use const, not
13605         CONST.
13606         * somread.c (som_symtab_read): Likewise.
13607
13608 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13609
13610         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13611         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13612         (gdb_bfd_fopen): Ditto.
13613         (gdb_bfd_openr): Ditto.
13614         (gdb_bfd_openw): Ditto.
13615         (gdb_bfd_openr_iovec): Ditto.
13616         (gdb_bfd_fdopenr): Ditto.
13617         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13618         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13619         with xstrdup.
13620         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13621         with xstrdup.
13622         * symfile-mem.c (symbol_file_add_from_memory): Removed
13623         gdb_bfd_stash_filename.
13624
13625 2014-01-03  Doug Evans  <dje@google.com>
13626
13627         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13628         output.
13629
13630 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13631
13632         Update year range in copyright notice of all files.
13633
13634 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13635
13636         * top.c (print_gdb_version): Set copyright year to 2014.
13637
13638 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13639
13640         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13641
13642 For older changes see ChangeLog-2013.
13643 \f
13644 Local Variables:
13645 mode: change-log
13646 left-margin: 8
13647 fill-column: 74
13648 version-control: never
13649 coding: utf-8
13650 End: