MIPS bit field failures in gdb.base/store.exp
[external/binutils.git] / gdb / ChangeLog
1 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2
3         * valops.c (value_assign): Check for bit field assignments
4         before calling architecture-specific register value
5         conversion functions.
6
7 2014-10-03  Pierre Muller  <muller@sourceware.org>
8
9         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
10
11 2014-10-02  Pedro Alves  <palves@redhat.com>
12
13         * breakpoint.c (breakpoints_should_be_inserted_now): Use
14         threads_are_executing.
15         * breakpoint.h (breakpoints_should_be_inserted_now): Add
16         describing comment.
17         * gdbthread.h (threads_are_executing): Declare.
18         (handle_signal_stop) <random signals>: Don't print about the
19         signal here if stopping.
20         (end_stepping_range): Don't notify observers here.
21         (normal_stop): Update the thread list.  If stopped by a random
22         signal or a stepping range ended, notify observers.
23         * thread.c (threads_executing): New global.
24         (init_thread_list): Clear 'threads_executing'.
25         (set_executing): Set or clear 'threads_executing'.
26         (threads_are_executing): New function.
27         (update_threads_executing): New function.
28         (update_thread_list): Use it.
29
30 2014-10-02  Pedro Alves  <palves@redhat.com>
31
32         PR breakpoints/17431
33         * breakpoint.c (update_breakpoints_after_exec): Don't create
34         overlay, longjmp, std terminate nor exception breakpoints here.
35
36 2014-10-02  Pedro Alves  <palves@redhat.com>
37
38         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
39         Adjust comments.
40         * inferior.c (find_inferior_for_program_space): Give preference to
41         the current inferior.
42         * inferior.h (find_inferior_for_program_space): Update comment.
43         * progspace.c (switch_to_program_space_and_thread): Prefer the
44         current inferior if it's bound to the program space requested.  If
45         the inferior found doesn't have a PID yet, don't bother looking up
46         a thread.
47         * progspace.h (switch_to_program_space_and_thread): Adjust
48         comment.
49         * thread.c (any_thread_of_process, any_live_thread_of_process):
50         Give preference to the current thread.
51
52 2014-10-01  Pedro Alves  <palves@redhat.com>
53
54         * breakpoint.c (insert_bp_location): Error out if inserting a
55         software breakpoint at a read-only address.
56         * target.c (memory_xfer_check_region): New function, factored out
57         from ...
58         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
59         ULONGEST.
60         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
61         against the memory region attributes.
62
63 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
64
65         * NEWS: Announce new exit-code field in -list-thread-groups
66         output.
67         * inferior.c (exit_inferior_1): Don't clear exit code.
68         (inferior_appeared): Clear exit code.
69         * mi/mi-main.c (print_one_inferior): Add printing of the exit
70         code.
71
72 2014-10-01  Pedro Alves  <palves@redhat.com>
73
74         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
75         GENERATED" along with emacs/vi read-only markers.
76         * regformats/aarch64.dat: Regenerate.
77         * regformats/arm-with-iwmmxt.dat: Regenerate.
78         * regformats/arm-with-neon.dat: Regenerate.
79         * regformats/arm-with-vfpv2.dat: Regenerate.
80         * regformats/arm-with-vfpv3.dat: Regenerate.
81         * regformats/i386/amd64-avx-linux.dat: Regenerate.
82         * regformats/i386/amd64-avx.dat: Regenerate.
83         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
84         * regformats/i386/amd64-avx512.dat: Regenerate.
85         * regformats/i386/amd64-linux.dat: Regenerate.
86         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
87         * regformats/i386/amd64-mpx.dat: Regenerate.
88         * regformats/i386/amd64.dat: Regenerate.
89         * regformats/i386/i386-avx-linux.dat: Regenerate.
90         * regformats/i386/i386-avx.dat: Regenerate.
91         * regformats/i386/i386-avx512-linux.dat: Regenerate.
92         * regformats/i386/i386-avx512.dat: Regenerate.
93         * regformats/i386/i386-linux.dat: Regenerate.
94         * regformats/i386/i386-mmx-linux.dat: Regenerate.
95         * regformats/i386/i386-mmx.dat: Regenerate.
96         * regformats/i386/i386-mpx-linux.dat: Regenerate.
97         * regformats/i386/i386-mpx.dat: Regenerate.
98         * regformats/i386/i386.dat: Regenerate.
99         * regformats/i386/x32-avx-linux.dat: Regenerate.
100         * regformats/i386/x32-avx.dat: Regenerate.
101         * regformats/i386/x32-avx512-linux.dat: Regenerate.
102         * regformats/i386/x32-avx512.dat: Regenerate.
103         * regformats/i386/x32-linux.dat: Regenerate.
104         * regformats/i386/x32.dat: Regenerate.
105         * regformats/microblaze-with-stack-protect.dat: Regenerate.
106         * regformats/mips-dsp-linux.dat: Regenerate.
107         * regformats/mips-linux.dat: Regenerate.
108         * regformats/mips64-dsp-linux.dat: Regenerate.
109         * regformats/mips64-linux.dat: Regenerate.
110         * regformats/nios2-linux.dat: Regenerate.
111         * regformats/rs6000/powerpc-32.dat: Regenerate.
112         * regformats/rs6000/powerpc-32l.dat: Regenerate.
113         * regformats/rs6000/powerpc-64l.dat: Regenerate.
114         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
115         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
116         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
117         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
118         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
119         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
120         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
121         * regformats/s390-linux32.dat: Regenerate.
122         * regformats/s390-linux32v1.dat: Regenerate.
123         * regformats/s390-linux32v2.dat: Regenerate.
124         * regformats/s390-linux64.dat: Regenerate.
125         * regformats/s390-linux64v1.dat: Regenerate.
126         * regformats/s390-linux64v2.dat: Regenerate.
127         * regformats/s390-te-linux64.dat: Regenerate.
128         * regformats/s390x-linux64.dat: Regenerate.
129         * regformats/s390x-linux64v1.dat: Regenerate.
130         * regformats/s390x-linux64v2.dat: Regenerate.
131         * regformats/s390x-te-linux64.dat: Regenerate.
132         * regformats/tic6x-c62x-linux.dat: Regenerate.
133         * regformats/tic6x-c62x.dat: Regenerate.
134         * regformats/tic6x-c64x-linux.dat: Regenerate.
135         * regformats/tic6x-c64x.dat: Regenerate.
136         * regformats/tic6x-c64xp-linux.dat: Regenerate.
137         * regformats/tic6x-c64xp.dat: Regenerate.
138
139 2014-10-01  Pedro Alves  <palves@redhat.com>
140
141         * features/Makefile: Update comments.
142         (XMLTOC): List all xml files we build C files from.
143         (clean-cfiles): New rule.
144
145 2014-10-01  Pedro Alves  <palves@redhat.com>
146
147         * features/i386/amd64-avx512-linux.c: Regenerate.
148         * features/i386/amd64-avx512.c: Regenerate.
149         * features/i386/x32-avx512-linux.c: Regenerate.
150         * features/i386/x32-avx512.c: Regenerate.
151
152 2014-10-01  Pedro Alves  <palves@redhat.com>
153
154         * features/Makefile (WHICH): Remove arm-with-m,
155         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
156
157 2014-10-01  Pedro Alves  <palves@redhat.com>
158
159         * features/Makefile (clean): New rule.
160
161 2014-10-01  Pedro Alves  <palves@redhat.com>
162
163         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
164         (zmm14h): Add missing end quotes.
165
166 2014-10-01  Pedro Alves  <palves@redhat.com>
167
168         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
169         * features/aarch64.c: Regenerate.
170
171 2014-09-30  Don Breazeal  <donb@codesourcery.com>
172
173         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
174         code so as to work with follow_fork_inferior.
175         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
176         (inf_ttrace_create_inferior): Remove reference to
177         inf_ttrace_vfork_ppid.
178         (inf_ttrace_attach): Ditto.
179         (inf_ttrace_detach): Ditto.
180         (inf_ttrace_kill): Use current_inferior instead of
181         inf_ttrace_vfork_ppid.
182         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
183         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
184         inferior away from the parent.
185         * infrun.c (follow_fork): Call follow_fork_inferior instead of
186         target_follow_fork.
187         (follow_fork_inferior): New function.
188         (follow_inferior_reset_breakpoints): Make function static.
189         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
190         * linux-nat.c (linux_child_follow_fork): Move target-independent
191         code to infrun.c:follow_fork_inferior.
192
193 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
194
195         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
196         * gdbarch.c: Regenerate.
197         * gdbarch.h: Likewise.
198         * corelow.c (sniff_core_bfd): Drop presence check for deleted
199         gdbarch method 'regset_from_core_section'.
200         (get_core_register_section): Remove handling for the case that
201         regset == NULL and regset_from_core_section is defined.
202         (get_core_registers): Drop check for deleted method.
203         * procfs.c (procfs_do_thread_registers): Adjust comment.
204
205 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
206
207         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
208         (linux_nat_make_corefile_notes): Remove.
209         (linux_target_install_ops): Do not set target method
210         'make_corefile_notes'.
211         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
212         Remove field.
213         (linux_corefile_thread_callback): Instead of args->collect, call
214         linux_collect_thread_registers.
215         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
216         NULL unless there is a regset iterator.
217         (linux_make_corefile_notes_1): Remove.
218         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
219         by linux_make_corefile_notes.
220         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
221
222 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
223
224         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
225         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
226         Remove.
227         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
228
229 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
230
231         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
232         (xtensa_iterate_over_regset_sections): New.
233         (xtensa_gdbarch_init): Adjust gdbarch initialization.
234
235 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
236
237         * vax-tdep.c (vax_regset_from_core_section): Remove.
238         (vax_iterate_over_regset_sections): New.
239         (vax_gdbarch_init): Adjust gdbarch initialization.
240
241 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
242
243         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
244         (tilegx_regset_from_core_section): Remove.
245         (tilegx_iterate_over_regset_sections): New.
246         (tilegx_linux_init_abi): Adjust gdbarch initialization.
247
248 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
249
250         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
251         (sparc_iterate_over_regset_sections): New.
252         (sparc32_gdbarch_init): Adjust gdbarch initialization.
253         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
254         targets.
255         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
256         (sparc64fbsd_init_abi): Call fbsd_init_abi.
257         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
258         target method 'make_corefile_notes'.
259
260 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
261
262         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
263         'sizeof_gregset' and 'sizeof_fpregset'.
264         * sh-tdep.c (sh_regset_from_core_section): Remove.
265         (sh_iterate_over_regset_sections): New.
266         (sh_gdbarch_init): Adjust gdbarch initialization.
267         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
268         sizeof_fpregset.
269         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
270         'sizeof_gregset'.
271
272 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
273
274         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
275         (score7_linux_iterate_over_regset_sections): New.
276         (score_gdbarch_init): Adjust gdbarch initialization.
277
278 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
279
280         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
281         FreeBSD targets.
282         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
283         method 'make_corefile_notes'.
284         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
285         (ppcfbsd_regset_from_core_section): Remove.
286         (ppcfbsd_iterate_over_regset_sections): New.
287         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
288         initialization.
289         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
290         (ppcnbsd_iterate_over_regset_sections): New.
291         (ppcnbsd_init_abi): Adjust.
292         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
293         (ppcobsd_iterate_over_regset_sections): New.
294         (ppcobsd_init_abi): Adjust.
295         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
296         (rs6000_aix_iterate_over_regset_sections): New.
297         (rs6000_aix_init_osabi): Adjust.
298
299 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
300
301         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
302         (nios2_regset_from_core_section): Remove.
303         (nios2_iterate_over_regset_sections): New.
304         (nios2_linux_init_abi): Adjust gdbarch initialization.
305
306 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
307
308         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
309         (am33_iterate_over_regset_sections): New.
310         (am33_linux_init_osabi): Adjust gdbarch initialization.
311
312 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
313
314         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
315         (mips_linux_iterate_over_regset_sections): New.
316         (mips_linux_init_abi): Adjust gdbarch initialization.
317         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
318         (mips64obsd_iterate_over_regset_sections): New.
319         (mips64obsd_init_abi): Adjust.
320         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
321         (mipsnbsd_iterate_over_regset_sections): New.
322         (mipsnbsd_init_abi): Adjust.
323
324 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
325
326         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
327         (m88k_iterate_over_regset_sections): New.
328         (m88k_gdbarch_init): Adjust gdbarch initialization.
329
330 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
331
332         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
333         (ia64_linux_iterate_over_regset_sections): New.
334         (ia64_linux_init_abi): Adjust gdbarch initialization.
335
336 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
337
338         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
339         (m68kbsd_iterate_over_regset_sections): New.
340         (m68kbsd_init_abi): Adjust gdbarch initialization.
341         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
342         (m68k_linux_iterate_over_regset_sections): New.
343         (m68k_linux_init_abi): Adjust gdbarch initialization.
344
345 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
346
347         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
348         (m32r_linux_regset_from_core_section): Remove.
349         (m32r_linux_iterate_over_regset_sections): New.
350         (m32r_linux_init_abi): Adjust gdbarch initialization.
351
352 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
353
354         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
355         (amd64obsd_iterate_over_regset_sections): New.
356         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
357         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
358         Remove.
359         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
360         regset_from_core_section initialization.
361         * i386-tdep.c (i386_regset_from_core_section): Remove.
362         (i386_iterate_over_regset_sections): New.
363         (i386_gdbarch_init): Adjust gdbarch initialization.
364         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
365         (i386_iterate_over_regset_sections): New prototype.
366         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
367         Remove.
368         (i386obsd_aout_iterate_over_regset_sections): New.
369         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
370         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
371         targets.
372         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
373         (amd64fbsd_init_abi): Call fbsd_init_abi.
374         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
375         (i386fbsd4_init_abi): Call fbsd_init_abi.
376         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
377         target method 'make_corefile_notes'.
378         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
379
380 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
381
382         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
383         (hppa_hpux_iterate_over_regset_sections): New.
384         (hppa_hpux_init_abi): Adjust gdbarch initialization.
385         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
386         (hppa_linux_iterate_over_regset_sections): New.
387         (hppa_linux_init_abi): Adjust.
388         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
389         (hppanbsd_iterate_over_regset_sections): New.
390         (hppanbsd_init_abi): Adjust.
391         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
392         (hppaobsd_iterate_over_regset_sections): New.
393         (hppaobsd_init_abi): Adjust.
394
395 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
396
397         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
398         (frv_linux_iterate_over_regset_sections): New.
399         (frv_linux_init_abi): Adjust gdbarch initialization.
400
401 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
402
403         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
404         (armbsd_iterate_over_regset_sections): New prototype.
405         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
406         (armbsd_iterate_over_regset_sections): New.
407         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
408         initialization.
409
410 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
411
412         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
413         (alpha_linux_iterate_over_regset_sections): New.
414         (alpha_linux_init_abi): Adjust gdbarch initialization.
415         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
416         prototype.
417         (alphanbsd_iterate_over_regset_sections): New prototype.
418
419 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
420
421         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
422         Remove.
423         (aarch64_linux_iterate_over_regset_sections): New.
424         (aarch64_linux_init_abi): Adjust gdbarch initialization.
425
426 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
427
428         * fbsd-tdep.c: New file.
429         * fbsd-tdep.h: New file.
430         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
431         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
432         (ALLDEPFILES): Add fbsd-tdep.c.
433
434 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
435
436         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
437         parameter.
438         * gdbarch.h: Regenerate.
439         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
440         iterator.
441         (get_core_register_section): Add parameter 'regset' and use it, if
442         set.  Add parameter 'min_size' and verify the bfd section size
443         against it.
444         (get_core_registers_cb): Add parameter 'regset' and pass it to
445         get_core_register section.  For the "standard" register sections
446         ".reg" and ".reg2", set an appropriate default for human_name.
447         (get_core_registers): Don't abort when the gdbarch has an iterator
448         but no regset_from_core_section.  Add NULL/0 for parameters
449         'regset'/'min_size' in calls to get_core_register_section.
450         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
451         'regset' and use it instead of calling the
452         regset_from_core_section gdbarch method.
453         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
454         * i386-tdep.c (i386_supply_xstateregset)
455         (i386_collect_xstateregset, i386_xstateregset): Moved to
456         i386-linux-tdep.c.
457         (i386_regset_from_core_section): Drop handling for .reg-xfp and
458         .reg-xstate.
459         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
460         core file support only if the regset iterator hasn't been set.
461         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
462         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
463         Moved from i386-tdep.c and renamed to *_linux*.
464         (i386_linux_iterate_over_regset_sections): Add regset parameter to
465         each callback invocation.  Allow any .reg-xstate size when reading
466         from a core file.
467         * amd64-tdep.c (amd64_supply_xstateregset)
468         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
469         amd64-linux-tdep.c.
470         (amd64_regset_from_core_section): Remove.
471         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
472         install an amd64-specific regset_from_core_section gdbarch method.
473         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
474         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
475         Moved from amd64-tdep.c and renamed to *_linux*.
476         (amd64_linux_iterate_over_regset_sections): Add regset parameter
477         to each callback invocation.  Allow any .reg-xstate size when
478         reading from a core file.
479         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
480         (arm_linux_iterate_over_regset_sections): Add regset parameter to
481         each callback invocation.
482         (arm_linux_init_abi): No longer set the regset_from_core_section
483         gdbarch method.
484         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
485         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
486         each callback invocation.
487         (ppc_linux_init_abi): No longer set the regset_from_core_section
488         gdbarch method.
489         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
490         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
491         (s390_regset_from_core_section): Remove.
492         (s390_iterate_over_regset_sections): Add regset parameter to each
493         callback invocation.
494         (s390_gdbarch_init): No longer set the regset_from_core_section
495         gdbarch method.  Drop initialization of deleted tdep fields.
496
497 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
498
499         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
500         (amd64_linux_iterate_over_regset_sections): New.
501         (amd64_linux_init_abi_common): Don't install the regset section
502         list, but the new iterator in gdbarch.
503         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
504         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
505         (arm_linux_iterate_over_regset_sections): ...here.  New function.
506         (arm_linux_init_abi): Set iterator instead of section list.
507         * corelow.c (get_core_registers_cb): New function, logic moved
508         from...
509         (get_core_registers): ...loop body here.  Use new iterator method
510         instead of walking through the regset section list.
511         * gdbarch.sh: Remove 'core_regset_sections'.  New method
512         'iterate_over_regset_sections'.  New typedef
513         'iterate_over_regset_sections_cb'.
514         * gdbarch.c: Regenerate.
515         * gdbarch.h: Likewise.
516         * i386-linux-tdep.c (i386_linux_regset_sections)
517         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
518         Remove.
519         (i386_linux_iterate_over_regset_sections): New.
520         (i386_linux_init_abi): Don't choose a regset section list, but
521         install new iterator in gdbarch.
522         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
523         (linux_collect_regset_section_cb): New function, logic moved
524         from...
525         (linux_collect_thread_registers): ...loop body here.  Use iterator
526         method instead of walking through list.
527         (linux_make_corefile_notes_1): Check for presence of iterator
528         method instead of regset section list.
529         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
530         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
531         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
532         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
533         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
534         (ppc_linux_init_abi): Don't choose from above regset section
535         lists, but install new iterator in gdbarch.
536         * regset.h (struct core_regset_section): Remove.
537         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
538         have_linux_v1, have_linux_v2, and have_tdb.
539         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
540         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
541         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
542         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
543         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
544         (s390_iterate_over_regset_sections): ...here.  New function.  Use
545         new tdep fields.
546         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
547         regset section lists, but install new iterator.
548
549 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
550
551         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
552
553 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
554
555         * progspace.c (print_program_space): Don't prune program spaces
556         before printing them.
557
558 2014-09-25  Pedro Alves  <palves@redhat.com>
559
560         * infrun.c (user_visible_resume_ptid): Don't check
561         singlestep_breakpoints_inserted_p.
562
563 2014-09-25  Pedro Alves  <palves@redhat.com>
564
565         * breakpoint.c (should_be_inserted): Add debug output.
566
567 2014-09-25  Pedro Alves  <palves@redhat.com>
568
569         * infrun.c (stepping_past_instruction_at)
570         (clear_exit_convenience_vars): Point at infrun.h instead of
571         inferior.h.
572         (handle_signal_stop): Fix typo.
573
574 2014-09-24  Yao Qi  <yao@codesourcery.com>
575
576         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
577         bitmask.
578
579 2014-09-22  Gary Benson  <gbenson@redhat.com>
580
581         * target.c (target_stop): Updated comment.
582
583 2014-09-22  Gary Benson  <gbenson@redhat.com>
584
585         * target/target.h (target_stop_ptid): Renamed as...
586         (target_stop_and_wait): New function.  Updated comment.
587         All uses updated.
588         (target_continue_ptid): Renamed as...
589         (target_continue_no_signal): New function.  Updated comment.
590         All uses updated.
591
592 2014-09-22  Pedro Alves  <palves@redhat.com>
593
594         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
595         and "auto" merged.
596         * breakpoint.c (enum ugll_insert_mode): New enum.
597         (always_inserted_mode): Now a plain boolean.
598         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
599         (breakpoints_always_inserted_mode): Delete.
600         (breakpoints_should_be_inserted_now): New function.
601         (insert_breakpoints): Pass UGLL_INSERT to
602         update_global_location_list instead of calling
603         insert_breakpoint_locations manually.
604         (create_solib_event_breakpoint_1): New, factored out from ...
605         (create_solib_event_breakpoint): ... this.
606         (create_and_insert_solib_event_breakpoint): Use
607         create_solib_event_breakpoint_1 instead of calling
608         insert_breakpoint_locations manually.
609         (update_global_location_list): Change parameter type from boolean
610         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
611         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
612         (update_global_location_list_nothrow): Change parameter type from
613         boolean to enum ugll_insert_mode.
614         (_initialize_breakpoint): "breakpoint always-inserted" option is
615         now a boolean command.  Update help text.
616         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
617         (breakpoints_should_be_inserted_now): New declaration.
618         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
619         Remove breakpoints_always_inserted_mode check.
620         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
621         * remote.c (remote_start_remote): Likewise.
622
623 2014-09-22  Pedro Alves  <palves@redhat.com>
624
625         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
626         (insert_breakpoints): Don't call insert_breakpoint_locations here.
627         Instead, pass UGLL_INSERT to update_global_location_list.
628         (update_global_location_list): Change parameter type from boolean
629         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
630         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
631         (create_solib_event_breakpoint_1): New, factored out from ...
632         (create_solib_event_breakpoint): ... this.
633         (create_and_insert_solib_event_breakpoint): Use
634         create_solib_event_breakpoint_1 instead of calling
635         insert_breakpoint_locations manually.
636         (update_global_location_list): Handle UGLL_INSERT.
637
638 2014-09-22  Pedro Alves  <palves@redhat.com>
639
640         * breakpoint.c (enum ugll_insert_mode): New enum.
641         (update_global_location_list)
642         (update_global_location_list_nothrow): Change parameter type from
643         boolean to enum ugll_insert_mode.  All callers adjusted.
644
645 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
646
647         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
648         SystemTap support in GDB.
649
650 2014-09-19  Don Breazeal  <donb@codesourcery.com>
651
652         * linux-nat.c (linux_handle_extended_wait): Call
653         linux_ptrace_get_extended_event.
654         (wait_lwp): Call linux_is_extended_waitstatus.
655         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
656         and linux_is_extended_waitstatus.
657         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
658         linux_ptrace_get_extended_event.
659         (linux_ptrace_get_extended_event): New function.
660         (linux_is_extended_waitstatus): New function.
661         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
662         (linux_is_extended_waitstatus): New declarations.
663
664 2014-09-19  Yao Qi  <yao@codesourcery.com>
665
666         * dwarf2read.c (dwarf_decode_lines): Update declaration.
667         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
668         comments.  Callers update.
669         (dwarf_decode_lines): Likewise.
670         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
671         comments.  Skip the line table if  'lowpc' is greater than
672         'address'.  Don't check
673         dwarf2_per_objfile->has_section_at_zero.
674
675 2014-09-18  Doug Evans  <dje@google.com>
676
677         * NEWS: Mention new "producer" attribute of gdb.Symtab.
678         * python/py-symtab.c (stpy_get_producer): New function.
679         (symtab_object_getset): Add "producer" attribute.
680
681 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
682
683         PR gdb/17384
684         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
685         (do_captured_read_memory_integer): Remove.
686         (safe_read_memory_integer): Use target_read_memory directly instead
687         of catching errors in do_captured_read_memory_integer.
688
689 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
690
691         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
692         not gdb/doc.
693
694 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
695
696         * objc-lang.c (find_implementation_from_class): Remove dead code.
697
698 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
699
700         PR cli/7233
701         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
702         "fprintf_unfiltered (gdb_stdlog...)".
703
704 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
705
706         PR breakpoints/12526
707         * breakpoint.h (struct watchpoint): New fields val_bitpos and
708         val_bitsize.
709         * breakpoint.c (watch_command_1): Use these fields to retain
710         bitfield information.
711         (extract_bitfield_from_watchpoint_value): New function.
712         (watchpoint_check): Use it.
713         (update_watchpoint): Use it.  Optimize the address and length of a
714         HW watchpoint pointing to a bitfield.
715         * value.h (unpack_value_bitfield): New prototype.
716         * value.c (unpack_value_bitfield): Make extern.
717
718 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
719
720         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
721         x86-dregs.o.
722         * gnu-nat.c (inf_threads): New function.
723         * gnu-nat.h (inf_threads_ftype): New typedef.
724         (inf_threads): New declaration.
725         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
726         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
727         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
728         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
729         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
730         (i386_gnu_dr_get_control): New functions.
731         (reg_addr): New structure.
732         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
733         i386 debugging register hooks.
734         * NEWS: Mention this.
735
736 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
737
738         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
739         vector data transfer instructions.
740         (arm_record_coproc_data_proc): Updated.
741
742 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
743
744         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
745         arm_record_exreg_ld_st_insn.
746         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
747         load/store insns.
748
749 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
750
751         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
752         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
753         processing instructions.
754
755 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
756
757         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
758         for advance SIMD struct ld/st insn.
759         (thumb2_record_decode_insn_handler): Replace stub handler with
760         thumb2_record_asimd_struct_ld_st.
761
762 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
763
764         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
765         for asimd, vfp and coprocessor insns.
766         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
767         and coprocessor insns.
768         (thumb2_record_coproc_insn): New function.
769         (thumb2_record_decode_insn_handler): Update coprocessor insns record
770         handlers.
771         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
772         opcode 110 insns.
773
774 2014-09-13  Doug Evans  <xdje42@gmail.com>
775
776         * NEWS: Mention new "queue-signal" command.
777         * infcmd.c (queue_signal_command): New function.
778         (_initialize_infcmd): Add new queue-signal command.
779
780 2014-09-13  Doug Evans  <xdje42@gmail.com>
781
782         * linux-nat.c (wait_lwp): Add debugging printf.
783         (linux_nat_wait_1): Ditto.
784
785 2014-09-12  Pedro Alves  <palves@redhat.com>
786
787         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
788         (create_and_insert_solib_event_breakpoint): New functions.
789         * breakpoint.h (create_and_insert_solib_event_breakpoint)
790         (remove_solib_event_breakpoints_at_next_stop): New declarations.
791         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
792         (remove_dbx_link_breakpoint): Delete function.
793         (insert_dbx_link_bpt_in_file): Use
794         create_and_insert_solib_event_breakpoint instead of
795         deprecated_insert_raw_breakpoint.
796         (procfs_wait): Don't check whether we hit __dbx_link here.
797         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
798         here.
799         * solib-irix.c (base_breakpoint): Delete global.
800         (disable_break): Delete function.
801         (enable_break): Use create_solib_event_breakpoint
802         instead of deprecated_insert_raw_breakpoint.
803         (irix_solib_handle_event): New function.
804         (irix_solib_create_inferior_hook): Don't run the target or disable
805         the mapping-complete breakpoint here.
806         (_initialize_irix_solib): Install irix_solib_handle_event as
807         so_ops->handle_event hook.
808
809 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
810             Ulrich Weigand  <uweigand@de.ibm.com>
811
812         PR tdep/17379
813         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
814         instead of read_memory_unsigned_integer.
815
816 2014-09-12  Gary Benson  <gbenson@redhat.com>
817
818         * nat/linux-waitpid.c: Include common-defs.h.
819         [GDBSERVER]: Add FIXME comment.
820         [!GDBSERVER]: Don't include defs.h or signal.h.
821         (linux_debug) [!GDBSERVER]: Remove empty block.
822
823 2014-09-12  Gary Benson  <gbenson@redhat.com>
824
825         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
826         Don't include defs.h or server.h.
827
828 2014-09-12  Gary Benson  <gbenson@redhat.com>
829
830         * nat/linux-btrace.c: Include common-defs.h.
831         Don't include defs.h, server.h or gdbthread.h.
832         * nat/linux-btrace.h (struct target_ops): New forward declaration.
833
834 2014-09-12  Gary Benson  <gbenson@redhat.com>
835
836         * common/agent.c: Include common-defs.h.
837         Don't include defs.h or server.h.
838         * common/buffer.c: Likewise.
839         * common/common-debug.c: Likewise.
840         * common/common-utils.c: Likewise.
841         * common/errors.c: Likewise.
842         * common/filestuff.c: Likewise.
843         * common/format.c: Likewise.
844         * common/gdb_vecs.c: Likewise.
845         * common/print-utils.c: Likewise.
846         * common/ptid.c: Likewise.
847         * common/rsp-low.c: Likewise.
848         * common/signals.c: Likewise.
849         * common/vec.c: Likewise.
850         * common/xml-utils.c: Likewise.
851         * nat/linux-osdata.c: Likewise.
852         * nat/linux-procfs.c: Likewise.
853         * nat/linux-ptrace.c: Likewise.
854         * nat/mips-linux-watch.c: Likewise.
855         * target/waitstatus.c: Likewise.
856
857 2014-09-12  Tom Tromey  <tromey@redhat.com>
858             Gary Benson  <gbenson@redhat.com>
859
860         * common/common-regcache.h: New file.
861         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
862         * regcache.h: Include common-regcache.h.
863         (regcache_read_pc): Don't declare.
864         * regcache.c (get_thread_regcache_for_ptid): New function.
865         * nat/linux-btrace.c: Don't include regcache.h.
866         Include common-regcache.h.
867         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
868
869 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
870
871         * regcache.h (struct regset): Declare.
872
873 2014-09-11  Pedro Alves  <palves@redhat.com>
874
875         PR gdb/17347
876         * main.c: Include "infrun.h".
877         (catch_command_errors, catch_command_errors_const): Wait for the
878         foreground command to complete.
879         * top.c (maybe_wait_sync_command_done): New function, factored out
880         from ...
881         (maybe_wait_sync_command_done): ... here.
882         * top.h (maybe_wait_sync_command_done): New declaration.
883
884 2014-09-11  Tom Tromey  <tromey@redhat.com>
885             Gary Benson  <gbenson@redhat.com>
886
887         * common/symbol.h: New file.
888         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
889         * minsyms.c (find_minimal_symbol_address): New function.
890         * common/agent.c: Include common/symbol.h.
891         [!GDBSERVER]: Don't include objfiles.h.
892         (agent_look_up_symbols): Use find_minimal_symbol_address.
893
894 2014-09-11  Gary Benson  <gbenson@redhat.com>
895
896         * target/target.h (target_stop_ptid, target_continue_ptid):
897         Declare.
898         * target.c (target_stop_ptid, target_continue_ptid): New
899         functions.
900         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
901         (agent_run_command): Always use target_stop_ptid and
902         target_continue_ptid.
903
904 2014-09-11  Tom Tromey  <tromey@redhat.com>
905             Gary Benson  <gbenson@redhat.com>
906
907         * target/target.h: New file.
908         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
909         * target.h: Include target/target.h.
910         (target_read_memory, target_write_memory): Don't declare.
911         * target.c (target_read_uint32): New function.
912         * common/agent.c: Include target/target.h.
913         [!GDBSERVER]: Don't include target.h.
914         (helper_thread_id): Type changed to uint32_t.
915         (agent_get_helper_thread_id): Use target_read_uint32.
916         (agent_run_command): Always use target_read_memory and
917         target_write_memory.
918         (agent_capability): Type changed to uint32_t.
919         (agent_capability_check): Use target_read_uint32.
920
921 2014-09-11  Gary Benson  <gbenson@redhat.com>
922
923         * common/common-debug.h (show_debug_regs): Declare.
924         * common/common-debug.c (show_debug_regs): Define.
925         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
926         all uses with show_debug_regs.  Replace all uses that considered
927         debug_hw_points as a multi-value integer with straight boolean
928         uses.
929         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
930         with show_debug_regs.
931         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
932         all uses with show_debug_regs.
933         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
934         uses with show_debug_regs.
935
936 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
937
938         * findvar.c (address_from_register): Handle targets requiring
939         a special conversion routine even for plain pointer types.
940
941 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
942
943         * rs6000-nat.c (exec_one_dummy_insn): Remove.
944         (store_register): Do not call exec_one_dummy_insn.
945
946 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
947
948         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
949         dereference it first.  Use value_enclosing_type instead of
950         value_type.
951         (ada_array_length): Likewise.
952
953 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
954
955         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
956         Adjust function implementation and documentation accordingly.
957         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
958         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
959         Update call to ada_value_ptr_subscript.
960
961 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
962
963         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
964         instead of VAL's type.
965
966 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
967
968         * amd64-linux-nat.c: Add <sys/uio.h> #include.
969
970 2014-09-09  Doug Evans  <xdje42@gmail.com>
971
972         PR guile/17367
973         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
974         last parameter to pkg-config, not first.
975         * configure.ac: Pass --with-guile provided pkg-config path to
976         GDB_GUILE_PROGRAM_NAMES.
977         * configure: Regenerate.
978
979 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
980
981         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
982         Bertazi".
983
984 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
985
986         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
987         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
988         the list of sections determining GDB_OSABI_IRIX.
989
990 2014-09-09  James Hogan  <james.hogan@imgtec.com>
991
992         * MAINTAINERS (Write After Approval): Add "James Hogan".
993
994 2014-09-09  James Hogan  <james.hogan@imgtec.com>
995
996         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
997
998 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
999
1000         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1001
1002 2014-09-08  Doug Evans  <xdje42@gmail.com>
1003
1004         PR 17247
1005         * guile.c: #include <signal.h>.
1006         (_initialize_guile): Block SIGCHLD while initializing Guile.
1007
1008         Replaces the following, which is reverted.
1009
1010         2014-07-26  Doug Evans  <xdje42@gmail.com>
1011
1012         PR 17185
1013         * configure.ac: Add check for header gc/gc.h.
1014         Add check for function setenv.
1015         * configure: Regenerate.
1016         * config.in: Regenerate.
1017         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1018
1019 2014-09-08  Doug Evans  <xdje42@gmail.com>
1020
1021         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1022         with named constant.  Fix style of pointer comparison.
1023         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1024
1025 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1026
1027         PR gdb/17035
1028         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1029         decide whether we display the command on "show user".
1030         * cli/cli-script.c (show_user_1): Only verify cmdlines after
1031         printing command name.
1032         * cli/cli-decode.h (cli_user_command_p): Declare new function.
1033         * cli/cli-decode.c (cli_user_command_p): Create helper function
1034         to verify whether cmd_list_element is a user-defined command.
1035
1036 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1037
1038         PR python/17355
1039         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1040         Fix goto out of TRY_CATCH.
1041
1042 2014-09-06  Doug Evans  <xdje42@gmail.com>
1043             Tom Tromey  <tromey@redhat.com>
1044
1045         PR 15276
1046         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1047         $_any_caller_matches.
1048         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1049         * python/lib/gdb/function/caller_is.py: New file.
1050
1051 2014-09-06  Doug Evans  <xdje42@gmail.com>
1052
1053         * infcmd.c (program_info): Fix typo.
1054
1055 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1056
1057         PR gdb/17235
1058         * stap-probe.c (stap_parse_single_operand): Delete unused variable
1059         'number'.  New variable 'has_digit'.  Rewrite code to deal with
1060         subexpressions on SDT probes.
1061
1062 2014-09-04  Pedro Alves  <palves@redhat.com>
1063
1064         * c-exp.y (parse_number): Skip handling base-switching prefixes if
1065         the input is only one character long.
1066
1067 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1068
1069         PR fortran/17237
1070         * f-valprint.c (f_val_print): Specify the correct print option to
1071         use when printing integer values.
1072
1073 2014-09-04  Gary Benson  <gbenson@redhat.com>
1074
1075         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1076         Remove code to cope with LWPs wrapped as PIDs.
1077         Add assertions to ensure no wrapped LWPs are passed.
1078
1079 2014-09-04  Pedro Alves  <palves@redhat.com>
1080
1081         * value.c (value_ranges_copy_adjusted): New function, factored out
1082         from ...
1083         (value_contents_copy_raw): ... here.
1084         (unpack_value_bits_as_long_1): Rename back to ...
1085         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1086         'result' parameters.  Change return type to LONGEST.
1087         (unpack_value_bits_as_long): Delete.
1088         (unpack_value_field_as_long_1): Delete.
1089         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1090         (unpack_value_bitfield): New function.
1091         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1092         (value_fetch_lazy): Use unpack_value_bitfield.
1093         * value.h (unpack_value_bits_as_long): Delete declaration.
1094
1095 2014-09-03  Sasha Smundak  <asmundak@google.com>
1096
1097         * python/py-frame.c (frapy_read_register): New function.
1098
1099 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1100
1101         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1102         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1103
1104 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1105
1106         PR python/16699
1107         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1108         function.
1109         (add_cmd): Set "completer_handle_brkchars" to NULL.
1110         * cli/cli-decode.h (struct cmd_list_element)
1111         <completer_handle_brkchars>: New field.
1112         * command.h (completer_ftype_void): New typedef.
1113         (set_cmd_completer_handle_brkchars): New prototype.
1114         * completer.c (set_gdb_completion_word_break_characters): New
1115         function.
1116         (complete_line_internal): Call "completer_handle_brkchars"
1117         callback from command.
1118         * completer.h: Include "command.h".
1119         (set_gdb_completion_word_break_characters): New prototype.
1120         * python/py-cmd.c (cmdpy_completer_helper): New function.
1121         (cmdpy_completer_handle_brkchars): New function.
1122         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1123         (cmdpy_init): Set completer_handle_brkchars to
1124         cmdpy_completer_handle_brkchars.
1125
1126 2014-09-03  Gary Benson  <gbenson@redhat.com>
1127
1128         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1129         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1130         Loop conditions changed to equivalent form.
1131         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1132         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1133         ALL_DEBUG_ADDRESS_REGISTERS.
1134
1135 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1136
1137         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1138         description fix.
1139
1140 2014-09-02  Doug Evans  <dje@google.com>
1141
1142         * typeprint.c (find_global_typedef): Fix comment.
1143
1144 2014-09-02  Gary Benson  <gbenson@redhat.com>
1145
1146         * i386-nat.h: Renamed as...
1147         * x86-nat.h: New file.  All type, function and variable name
1148         prefixes changed from "i386_" to "x86_".  All references updated.
1149         * i386-nat.c: Renamed as...
1150         * x86-nat.c: New file.  All type, function and variable name
1151         prefixes changed from "i386_" to "x86_".  All references updated.
1152         * common/i386-xstate.h: Renamed as...
1153         * common/x86-xstate.h: New file.  All type, function and variable
1154         name prefixes changed from "i386_" to "x86_".  All references
1155         updated.
1156         * nat/i386-cpuid.h: Renamed as...
1157         * nat/x86-cpuid.h: New file.  All type, function and variable name
1158         prefixes changed from "i386_" to "x86_".  All references updated.
1159         * nat/i386-gcc-cpuid.h: Renamed as...
1160         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1161         name prefixes changed from "i386_" to "x86_".  All references
1162         updated.
1163         * nat/i386-dregs.h: Renamed as...
1164         * nat/x86-dregs.h: New file.  All type, function and variable name
1165         prefixes changed from "i386_" to "x86_".  All references updated.
1166         * nat/i386-dregs.c: Renamed as...
1167         * nat/x86-dregs.c: New file.  All type, function and variable name
1168         prefixes changed from "i386_" to "x86_".  All references updated.
1169
1170 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1171
1172         * varobj.c (_initialize_varobj): Move to the end of file.
1173
1174 2014-08-29  Gary Benson  <gbenson@redhat.com>
1175
1176         * common/common-exceptions.h: New file.
1177         * common/common-exceptions.c: Likewise.
1178         * Makefile.in (SFILES): Add common/common-exceptions.c.
1179         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1180         (COMMON_OBS): Add common-exceptions.o.
1181         (common-exceptions.o): New rule.
1182         * exceptions.h (common-exceptions.h): Include.
1183         (gdb_setjmp.h): Do not include.
1184         (return_reason): Moved to common-exceptions.h.
1185         (enum return_reason): Likewise.
1186         (RETURN_MASK): Likewise.
1187         (typedef return_mask): Likewise.
1188         (enum errors): Likewise.
1189         (struct gdb_exception): Likewise.
1190         (exceptions_state_mc_init): Likewise.
1191         (exceptions_state_mc_action_iter): Likewise.
1192         (exceptions_state_mc_action_iter_1): Likewise.
1193         (TRY_CATCH): Likewise.
1194         (throw_exception): Likewise.
1195         (throw_verror): Likewise.
1196         (throw_vquit): Likewise.
1197         (throw_error): Likewise.
1198         (throw_quit): Likewise.
1199         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1200         (enum catcher_action): Likewise.
1201         (struct catcher): Likewise.
1202         (current_catcher): Likewise.
1203         (catcher_list_size): Likewise.
1204         (exceptions_state_mc_init): Likewise.
1205         (catcher_pop): Likewise.
1206         (exceptions_state_mc): Likewise.
1207         (exceptions_state_mc_action_iter): Likewise.
1208         (exceptions_state_mc_action_iter_1): Likewise.
1209         (throw_exception): Likewise.
1210         (exception_messages): Likewise.
1211         (exception_messages_size): Likewise.
1212         (throw_it): Likewise.
1213         (throw_verror): Likewise.
1214         (throw_vquit): Likewise.
1215         (throw_error): Likewise.
1216         (throw_quit): Likewise.
1217         (prepare_to_throw_exception): New function.
1218
1219 2014-08-29  Gary Benson  <gbenson@redhat.com>
1220
1221         * common/gdb_setjmp.h: New file.
1222         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1223         * configure.ac: Move sigsetjmp check...
1224         * common/common.m4: ...here.
1225         * configure: Regenerate.
1226         * cp-support.c (SIGJMP_BUF): Delete.
1227         (SIGSETJMP): Likewise.
1228         (SIGLONGJMP): Likewise.
1229         * exceptions.h (gdb_setjmp.h): Include.
1230         (setjmp.h): Do not include.
1231         (EXCEPTIONS_SIGJMP_BUF): Delete.
1232         (EXCEPTIONS_SIGSETJMP): Likewise.
1233         (EXCEPTIONS_SIGLONGJMP): Likewise.
1234         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1235         from gdb_setjmp.h.
1236         * exceptions.c: Likewise.
1237
1238 2014-08-29  Gary Benson  <gbenson@redhat.com>
1239
1240         * cleanups.h: Moved to...
1241         * common/cleanups.h: New file.
1242         * cleanups.c: Moved to...
1243         * common/cleanups.c: New file.  Include common-defs.h and
1244         cleanups.h.  Do not include defs.h.
1245         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1246         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1247         (cleanups.o): New rule.
1248
1249 2014-08-29  Gary Benson  <gbenson@redhat.com>
1250
1251         * common/errors.h (internal_warning): New declaration.
1252         (internal_vwarning): Likewise.
1253         * common/errors.c (internal_warning): New function.
1254         * utils.h (internal_warning): Don't declare.
1255         (internal_vwarning): Likewise.
1256         * utils.c (internal_warning): Removed.
1257
1258 2014-08-29  Gary Benson  <gbenson@redhat.com>
1259
1260         * main.c (captured_main): Use warning during startup.
1261         Prefix startup warning messages with command name.
1262
1263 2014-08-29  Gary Benson  <gbenson@redhat.com>
1264
1265         * main.c (captured_main): Handle usage errors with error.
1266
1267 2014-08-29  Gary Benson  <gbenson@redhat.com>
1268
1269         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1270         exit pair with a call to error.  Wrap the message with _().
1271
1272 2014-08-29  Gary Benson  <gbenson@redhat.com>
1273
1274         * main.c (captured_main): Replace a fprintf/exit
1275         pair with a call to error.  Wrap the message with _().
1276
1277 2014-08-29  Gary Benson  <gbenson@redhat.com>
1278
1279         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1280         pairs with calls to error.  Wrap the message with _().
1281
1282 2014-08-29  Gary Benson  <gbenson@redhat.com>
1283
1284         * utils.c (vwarning): Protect calls to target_terminal_ours
1285         and wrap_here.
1286
1287 2014-08-29  Gary Benson  <gbenson@redhat.com>
1288
1289         * exceptions.c (print_flush): Protect calls to
1290         target_terminal_ours and wrap_here.
1291
1292 2014-08-29  Gary Benson  <gbenson@redhat.com>
1293
1294         * utils.h (filtered_printing_initialized): New declaration.
1295         * utils.c (abort_with_message): New function.
1296         (internal_vproblem): Use abort_with_message for first level
1297         recursive internal problems, and if gdb_stderr is not set up.
1298         Protect calls to target_terminal_ours, begin_line and query.
1299
1300 2014-08-28  Doug Evans  <dje@google.com>
1301
1302         * symtab.c (in_prologue): Move definition to better spot.
1303         (skip_prologue_using_sal): Ditto.
1304
1305 2014-08-28  Doug Evans  <dje@google.com>
1306
1307         * symtab.c (find_function_start_sal): Move definition to better spot.
1308
1309 2014-08-28  Yao Qi  <yao@codesourcery.com>
1310
1311         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1312         found_stack_adjust in forward scan.  Remove condition check
1313         on found_stack_adjust which is always true.  Indent the code.
1314
1315 2014-08-28  Yao Qi  <yao@codesourcery.com>
1316
1317         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1318         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1319         (dwarf_decode_lines): Remove argument
1320         want_line_info.  Remove condition check on want_line_info.
1321         Callers update.
1322
1323 2014-08-27  Doug Evans  <dje@google.com>
1324
1325         * dwarf2read.c (dwarf_record_line): Fix typo.
1326
1327 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1328
1329         * target.h (struct target_ops::to_terminal_save_ours): Remove
1330         declaration.
1331         (target_terminal_save_ours): Remove macro.
1332         * target-delegates.c: Regenerate.
1333         * inf-child.c (inf_child_target): Don't set the nonexistent
1334         field to_terminal_save_ours.
1335         * inferior.h (child_terminal_save_ours): Remove declaration.
1336         * terminal.h (gdb_save_tty_state): New declaration.
1337         * inflow.c (child_terminal_save_ours): Rename to ...
1338         (gdb_save_tty_state): ... this.
1339         * tui/tui.c: Include terminal.h.
1340         (tui_enable): Use gdb_save_tty_state instead of
1341         target_terminal_save_ours.
1342         (tui_disable): Likewise.
1343
1344 2014-08-25  Doug Evans  <dje@google.com>
1345
1346         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1347         Pass NULL instead of 0 for context pointer.
1348
1349 2014-08-25  Yao Qi  <yao@codesourcery.com>
1350
1351         * dwarf2read.c: Fix grammatical error.
1352
1353 2014-08-24  Yao Qi  <yao@codesourcery.com>
1354
1355         * dwarf2read.c (scan_partial_symbols):  Update comments.
1356         Rename argument 'need_pc' with 'set_addrmap'.
1357         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1358         'set_addrmap'.
1359         (add_partial_module): Likewise.
1360         (add_partial_subprogram): Likewise.  Update comments.
1361         (dwarf2_name): Fix typo.
1362
1363 2014-08-22  Doug Evans  <dje@google.com>
1364
1365         PR 17276
1366         * dwarf2read.c (dwarf_record_line_p): New function.
1367         (dwarf_decode_lines_1): Ignore subsequent line number entries
1368         for the same line if any entry had a non-zero discriminator.
1369
1370 2014-08-22  Doug Evans  <dje@google.com>
1371
1372         * buildsym.h (record_line_ftype): New typedef.
1373         (record_line): Use it.
1374         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1375         (dwarf_decode_lines_1): Call them.
1376
1377 2014-08-22  Yao Qi  <yao@codesourcery.com>
1378
1379         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1380         (ctf_end): Remove code.
1381
1382 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1383
1384         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1385         (linux_make_corefile_notes): call update_thread_list, protected against
1386         exceptions.
1387
1388 2014-08-21  Pedro Alves  <palves@redhat.com>
1389
1390         * infcmd.c (attach_command): Remove comment.
1391
1392 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1393
1394         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1395         unsigned LONGEST to ULONGEST.
1396
1397 2014-08-20  Pedro Alves  <palves@redhat.com>
1398
1399         * Makefile.in (check-read1): New rule.
1400
1401 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1402
1403         * value.c (value_from_contents_and_address): Strip resolved_type's
1404         typedef layers before checking its TYPE_DATA_LOCATION.
1405
1406 2014-08-20  Pedro Alves  <palves@redhat.com>
1407
1408         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1409
1410 2014-08-20  Yao Qi  <yao@codesourcery.com>
1411
1412         * amd64-tdep.c (amd64_classify): Add a blank line after the
1413         example.  Move "*/" to a new line.
1414         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1415         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1416         * dwarf2read.c (psymtab_include_file_name): Likewise.
1417
1418 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1419             Pedro Alves  <palves@redhat.com>
1420
1421         PR symtab/14604
1422         PR symtab/14605
1423         * ada-lang.c (coerce_unspec_val_to_type): Use
1424         value_contents_copy_raw.
1425         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1426         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1427         * cp-valprint.c (cp_print_value_fields): Let the common printing
1428         code handle optimized out values.
1429         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1430         * d-valprint.c (dynamic_array_type): Use
1431         value_bits_any_optimized_out.
1432         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1433         check_any_valid fields.
1434         (check_pieced_value_bits): Delete and inline ...
1435         (check_pieced_synthetic_pointer): ... here.
1436         (check_pieced_value_validity): Delete.
1437         (check_pieced_value_invalid): Delete.
1438         (pieced_value_funcs): Remove check_validity and check_any_valid
1439         fields.
1440         (read_pieced_value): Use mark_value_bits_optimized_out.
1441         (write_pieced_value): Switch to use
1442         mark_value_bytes_optimized_out.
1443         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1444         of assuming the whole value is optimized out.
1445         * findvar.c (read_frame_register_value): Remove special handling
1446         of optimized out registers.
1447         (value_from_register): Use mark_value_bytes_optimized_out.
1448         * frame-unwind.c (frame_unwind_got_optimized): Use
1449         mark_value_bytes_optimized_out.
1450         * jv-valprint.c (java_value_print): Adjust.
1451         (java_print_value_fields): Let the common printing code handle
1452         optimized out values.
1453         * mips-tdep.c (mips_print_register): Remove special handling of
1454         optimized out registers.
1455         * opencl-lang.c (lval_func_check_validity): Delete.
1456         (lval_func_check_any_valid): Delete.
1457         (opencl_value_funcs): Remove check_validity and check_any_valid
1458         fields.
1459         * p-valprint.c (pascal_object_print_value_fields): Let the common
1460         printing code handle optimized out values.
1461         * stack.c (read_frame_arg): Remove special handling of optimized
1462         out values.  Fetch both VAL and ENTRYVAL before comparing
1463         contents.  Adjust to value_available_contents_eq rename.
1464         * valprint.c (valprint_check_validity)
1465         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1466         (val_print_array_elements): Adjust.
1467         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1468         (value_bits_any_optimized_out): New function.
1469         (value_entirely_covered_by_range_vector): New function, factored
1470         out from value_entirely_unavailable.
1471         (value_entirely_unavailable): Reimplement.
1472         (value_entirely_optimized_out): New function.
1473         (insert_into_bit_range_vector): New function, factored out from
1474         mark_value_bits_unavailable.
1475         (mark_value_bits_unavailable): Reimplement.
1476         (struct ranges_and_idx): New struct.
1477         (find_first_range_overlap_and_match): New function, factored out
1478         from value_available_contents_bits_eq.
1479         (value_available_contents_bits_eq): Rename to ...
1480         (value_contents_bits_eq): ... this.  Check both unavailable
1481         contents and optimized out contents.
1482         (value_available_contents_eq): Rename to ...
1483         (value_contents_eq): ... this.
1484         (allocate_value_lazy): Remove reference to the old optimized_out
1485         boolean.
1486         (allocate_optimized_out_value): Use
1487         mark_value_bytes_optimized_out.
1488         (require_not_optimized_out): Adjust to check whether the
1489         optimized_out vec is empty.
1490         (ranges_copy_adjusted): New function, factored out from
1491         value_contents_copy_raw.
1492         (value_contents_copy_raw): Also copy the optimized out ranges.
1493         Assert the destination ranges aren't optimized out.
1494         (value_contents_copy): Update comment, remove call to
1495         require_not_optimized_out.
1496         (value_contents_equal): Adjust to check whether the optimized_out
1497         vec is empty.
1498         (set_value_optimized_out, value_optimized_out_const): Delete.
1499         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1500         New functions.
1501         (value_entirely_optimized_out, value_bits_valid): Delete.
1502         (value_copy): Take a VEC copy of the 'optimized_out' field.
1503         (value_primitive_field): Remove special handling of optimized out.
1504         (value_fetch_lazy): Assert that lazy values have no unavailable
1505         regions.  Use value_bits_any_optimized_out.  Remove some special
1506         handling for optimized out values.
1507         * value.h: Add intro comment about <optimized out> and
1508         <unavailable>.
1509         (struct lval_funcs): Remove check_validity and check_any_valid
1510         fields.
1511         (set_value_optimized_out, value_optimized_out_const): Remove.
1512         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1513         New declarations.
1514         (value_bits_any_optimized_out): New declaration.
1515         (value_bits_valid): Delete declaration.
1516         (value_available_contents_eq): Rename to ...
1517         (value_contents_eq): ... this, and extend comments.
1518
1519 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1520
1521         Fix -fsanitize=address on unreadable inferior strings.
1522         * valprint.c (val_print_string): Fix access before BUFFER.
1523
1524 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1525
1526         * target.c (target_struct_size): Remove.
1527         (target_struct_allocsize): Remove.
1528         (DEFAULT_ALLOCSIZE): Remove.
1529         (target_ops_p): New typedef.
1530         (DEF_VEC_P (target_ops_p)): New vector type.
1531         (target_structs): Change type to VEC (target_ops_p).
1532         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1533         (find_default_run_target): Rewrite for loop following changes to
1534         target_structs.
1535
1536 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1537
1538         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1539         Adjust code accordingly.  Adjust function description comment.
1540
1541 2014-08-19  Yao Qi  <yao@codesourcery.com>
1542
1543         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1544         types.
1545
1546 2014-08-19  Alan Modra  <amodra@gmail.com>
1547
1548         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1549         * config.in: Regenerate.
1550         * configure: Regenerate.
1551
1552 2014-08-19  Tom Tromey  <tromey@redhat.com>
1553             Gary Benson  <gbenson@redhat.com>
1554
1555         * common/common-debug.h: New file.
1556         * common/common-debug.c: Likewise.
1557         * debug.c: Likewise.
1558         * Makefile.in (SFILES): Add common/common-debug.c.
1559         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1560         (COMMON_OBS): Add common-debug.o and debug.o.
1561         (common-debug.o): New rule.
1562         * common/common-defs.h: Include common-debug.h.
1563         * common/agent.c (debug_agent_printf): New function.
1564         (DEBUG_AGENT): Redefine.
1565         * nat/i386-dregs.c (debug_printf): Undefine.
1566
1567 2014-08-19  Gary Benson  <gbenson@redhat.com>
1568
1569         * common/common-defs.h: Include print-utils.h.
1570         * utils.h: Do not include print-utils.h.
1571
1572 2014-08-19  Tom Tromey  <tromey@redhat.com>
1573             Gary Benson  <gbenson@redhat.com>
1574
1575         * common/common-types.h: New file.
1576         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1577         * common/common-defs.h: Include common-types.h.
1578         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1579         (ULONGEST): Remove.
1580
1581 2014-08-19  Tom Tromey  <tromey@redhat.com>
1582             Gary Benson  <gbenson@redhat.com>
1583
1584         * common/errors.h: New file.
1585         * common/errors.c: Likewise.
1586         * Makefile.in (SFILES): Add common/errors.c.
1587         (HFILES_NO_SRCDIR): Add common/errors.h.
1588         (COMMON_OBS): Add errors.o.
1589         (errors.o): New rule.
1590         * common/common-defs.h: Include errors.h.
1591         * utils.h (perror_with_name, error, verror, warning, vwarning):
1592         Don't declare.
1593         * common/common-utils.h: (malloc_failure, internal_error):
1594         Likewise.
1595
1596 2014-08-19  Gary Benson  <gbenson@redhat.com>
1597
1598         * utils.c (internal_vproblem): Always print the message.
1599
1600 2014-08-18  Doug Evans  <dje@google.com>
1601
1602         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1603
1604 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1605
1606         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1607         Return 0 if TYPE is dynamic.
1608         (print_range): Add handling of dynamic ranges.
1609
1610 2014-08-18  Keven Boell  <keven.boell@intel.com>
1611             Joel Brobecker  <brobecker@adacore.com>
1612
1613         * gdbtypes.h (struct main_type): Add field "data_location".
1614         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1615         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1616         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1617         a dynamic data location.
1618         (resolve_dynamic_type): Add DW_AT_data_location handling.
1619         (copy_recursive, copy_type): Copy the data_location information
1620         when present.
1621         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1622         * value.c (value_from_contents_and_address): Add
1623         DW_AT_data_location handling.
1624
1625 2014-08-18  Keven Boell  <keven.boell@intel.com>
1626             Joel Brobecker  <brobecker@adacore.com>
1627
1628         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1629         field "get_object_address".
1630         * dwarf2expr.c (execute_stack_op): Add handling for
1631         DW_OP_push_object_address.
1632         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1633         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1634         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1635         (dwarf_expr_get_obj_addr): New function.
1636         (dwarf_expr_ctx_funcs): Add get_object_address field.
1637         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1638         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1639         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1640         (needs_get_obj_addr): New function.
1641         (needs_frame_ctx_funcs): Add get_object_address field.
1642         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1643         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1644         (resolve_dynamic_array): Likewise.
1645
1646 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1647
1648         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1649         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1650         fixed value for records and unions for which some GNAT encodings
1651         are present.
1652
1653 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1654
1655         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1656         rewrite to avoid "else if" and "else" constructs.  Should be
1657         a no-op in practice.
1658
1659 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1660
1661         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1662         of lexical block.
1663
1664 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1665
1666         PR c++/17132
1667         * eval.c: Update all calls to find_overload_match.
1668         * valarith.c: Likewise.
1669         (value_user_defined_cpp_op, value_user_defined_op): New
1670         argument NOSIDE.  Update all callers.
1671         * valops.c (find_overload_match): New argument NOSIDE.
1672         * value.h (find_overload_match): Update signature.
1673
1674 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1675
1676         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1677         'items' methods instead of 'iteritems' method on dictionaries.
1678
1679 2014-08-15  Doug Evans  <dje@google.com>
1680
1681         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1682         closer to use.
1683
1684 2014-08-15  Doug Evans  <dje@google.com>
1685
1686         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1687
1688 2014-08-15  Doug Evans  <dje@google.com>
1689
1690         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1691
1692 2014-08-15  Doug Evans  <dje@google.com>
1693
1694         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1695         unused.
1696
1697 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1698
1699         * dcache.h: Include target.h, to avoid compile time warnings.
1700
1701 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1702
1703         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1704         frame_info" partial declaration.
1705         * gdbarch.h: Regenerate.
1706
1707 2014-08-15  Yao Qi  <yao@codesourcery.com>
1708
1709         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1710         Add parameter 'decode_for_pst_p'.  Callers update.
1711
1712 2014-08-13  Yao Qi  <yao@codesourcery.com>
1713
1714         PR build/17104
1715         * configure.ac: Use local variable 'pos'.
1716         * configure: Regenerated.
1717
1718 2014-08-11  Doug Evans  <dje@google.com>
1719
1720         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1721         message, it is redundant with "Reading symbols from ..." message.
1722
1723 2014-08-10  Doug Evans  <xdje42@gmail.com>
1724
1725         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1726
1727 2014-08-09  Yao Qi  <yao@codesourcery.com>
1728
1729         PR remote/9053
1730         * remote.c (remote_xfer_partial): Remove dead code.
1731
1732 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1733
1734         * ia64-linux-tdep.c: Include "regset.h".
1735         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1736         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1737         (ia64_linux_supply_fpregset): New function.
1738         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1739         (ia64_linux_regset_from_core_section): New function.
1740         (ia64_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         * m68klinux-tdep.c: Include "regset.h".
1746         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1747         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1748         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1749         (m68k_linux_regset_from_core_section): New function.
1750         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1751         method.
1752
1753 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1754
1755         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1756         function.  Move logic to...
1757         (tilegx_linux_regmap): ... this new register map.
1758         (tilegx_linux_regset): Refer to register map, replace supply
1759         method by regcache_supply_regset, and add collect method.
1760         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1761         TILEGX_FIRST_EASY_REGNUM.
1762
1763 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1764
1765         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1766         that calls regcache_supply_regset and handles the EPC register
1767         separately.  Move main logic to...
1768         (score7_linux_gregmap): ... this new register map.
1769         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1770         (score7_linux_gregset): Refer to register map.  Add collect method.
1771         (score7_linux_regset_from_core_section): Replace
1772         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1773         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1774         (struct regset): Delete unused forward declaraction.
1775         (struct pt_regs): Delete structure definition.
1776         (elf_gregset_t): Delete typedef.
1777
1778 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1779
1780         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1781         (nios2_core_regset): Add collect method.
1782
1783 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1784
1785         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1786         platform-independent and don't write to read-only input buffer.
1787         (m32r_linux_collect_gregset): New function.
1788         (m32r_linux_gregset): Add collect method.
1789
1790 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1791
1792         * hppa-linux-tdep.c (greg_map): Rename to...
1793         (hppa_linux_gregmap): ... this.  Also convert to
1794         regcache_map_entry format.
1795         (hppa_linux_supply_regset): Delete function.
1796         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1797         (hppa_linux_fpregmap): ... this new register map.
1798         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1799         register map, replace supply method by regcache_supply_regset, and
1800         add collect method regcache_collect_regset.
1801
1802 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1803
1804         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1805         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1806         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1807         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1808         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1809         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1810         (frv_linux_supply_gregset): Replace main logic by call to
1811         regcache_supply_regset, but keep clearing gr32-gr63.
1812         (frv_linux_supply_fpregset): Delete function.
1813         (frv_linux_gregset): Refer to appropriate register map and add
1814         regcache_collect_regset as the collect method.
1815         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1816         by regcache_supply_regset.
1817
1818 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1819
1820         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1821         by call to alpha_supply_int_regs.
1822         (alpha_linux_collect_gregset): New function.
1823         (alpha_linux_supply_fpregset): Replace logic by call to
1824         alpha_supply_fp_regs.
1825         (alpha_linux_collect_fpregset): New function.
1826         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1827
1828 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1829
1830         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1831         by call to regcache_collect_regset.
1832         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1833         instead of aarch64_linux_supply_gregset/_fpregset.
1834         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1835         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1836         header file instead.
1837         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1838         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1839         functions.  Move logic to ...
1840         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1841         register maps.
1842         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1843         refer to new register maps, replace *_regset_from_core by
1844         regcache_supply_regset, and also use regcache_collect_regset.
1845         * aarch64-linux-tdep.h: Include "regset.h".
1846         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1847         Delete prototypes.
1848         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1849         macros, moved from C source file.
1850         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1851         variable declarations.
1852
1853 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1854
1855         * s390-linux-nat.c: Include "regset.h".
1856         (regmap_gregset): Delete macro.
1857         (s390_64_regmap_gregset): New register map for
1858         regcache_supply/_collect_regset.
1859         (s390_64_gregset): New regset.
1860         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1861         (regmap_fpregset): Delete macro.
1862         (s390_native_supply, s390_native_collect): Delete functions.
1863         (supply_gregset, fill_gregset): Replace s390-specific regmap
1864         handling by a call to regcache_supply/_collect_regset.
1865         (supply_fpregset, fill_fpregset): Call regcache_supply/
1866         _collect_regset instead of s390_native_supply/_collect.
1867         (fetch_regset, store_regset): Likewise.  Also change the last
1868         parameter to a regset instead of a regmap.
1869         (s390_linux_fetch_inferior_registers)
1870         (390_linux_store_inferior_registers): Adjust last parameter in
1871         calls to fetch_regset and store_regset.
1872         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1873         (s390_gregmap): ... this.  Also make static const and convert to
1874         regcache_map_entry format.
1875         (s390x_regmap_gregset): Delete.
1876         (s390_regmap_fpregset): Rename to...
1877         (s390_fpregmap): ... this.  Make static const and convert to
1878         regcache_map_entry format.
1879         (s390_regmap_upper, s390_regmap_last_break)
1880         (s390x_regmap_last_break, s390_regmap_system_call)
1881         (s390_regmap_tdb): Likewise.
1882         (s390_supply_regset, s390_collect_regset): Remove functions.
1883         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1884         s390_supply_regset.
1885         (s390_gregset, s390_fpregset, s390_upper_regset)
1886         (s390_last_break_regset, s390x_last_break_regset)
1887         (s390_system_call_regset, s390_tdb_regset): Make global and
1888         replace s390_supply/_collect_regset by regcache_supply/
1889         _collect_regset.
1890         (s390x_gregset): Delete.
1891         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1892         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1893         (s390_regmap_fpregset, s390_regmap_last_break)
1894         (s390x_regmap_last_break, s390_regmap_system_call)
1895         (s390_regmap_tdb): Delete global variable declarations.
1896         (s390_gregset, s390_fpregset, s390_last_break_regset)
1897         (s390x_last_break_regset, s390_system_call_regset)
1898         (s390_tdb_regset): New global variable declarations.
1899
1900 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1901
1902         * regcache.c: Include "regset.h".
1903         (regcache_transfer_regset): New local function.
1904         (regcache_supply_regset, regcache_collect_regset): New functions.
1905         * regcache.h (struct regcache_map_entry): New structure.
1906         (REGCACHE_MAP_SKIP): New enum value.
1907         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1908
1909 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1910
1911         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1912         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1913         (ppc_linux_collect_gregset ): Likewise.
1914         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1915         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1916         (ppc_collect_vrregset): Likewise.
1917         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1918         Likewise.
1919
1920 2014-08-07  Yao Qi  <yao@codesourcery.com>
1921
1922         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1923         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1924         * remote.c (remote_read_bytes): Likewise.
1925
1926 2014-08-07  Yao Qi  <yao@codesourcery.com>
1927
1928         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1929
1930 2014-08-07  Yao Qi  <yao@codesourcery.com>
1931
1932         PR remote/17230
1933         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1934         TARGET_XFER_OK instead of 0.
1935
1936 2014-08-07  Gary Benson  <gbenson@redhat.com>
1937
1938         * common/common-defs.h: Include errno.h.
1939         * defs.h: Do not include errno.h.
1940         * ada-typeprint.c: Likewise.
1941         * c-typeprint.c: Likewise.
1942         * core-regset.c: Likewise.
1943         * corefile.c: Likewise.
1944         * corelow.c: Likewise.
1945         * event-loop.c: Likewise.
1946         * f-typeprint.c: Likewise.
1947         * gnu-nat.c: Likewise.
1948         * go32-nat.c: Likewise.
1949         * i386gnu-nat.c: Likewise.
1950         * m2-typeprint.c: Likewise.
1951         * nat/linux-btrace.c: Likewise.
1952         * p-typeprint.c: Likewise.
1953         * procfs.c: Likewise.
1954         * remote-sim.c: Likewise.
1955         * rs6000-nat.c: Likewise.
1956         * target.c: Likewise.
1957         * typeprint.c: Likewise.
1958         * ui-file.c: Likewise.
1959         * valops.c: Likewise.
1960         * valprint.c: Likewise.
1961
1962 2014-08-07  Gary Benson  <gbenson@redhat.com>
1963
1964         * common/common-defs.h: Include string.h.
1965         * aarch64-tdep.c: Do not include string.h.
1966         * ada-exp.y: Likewise.
1967         * ada-lang.c: Likewise.
1968         * ada-lex.l: Likewise.
1969         * ada-typeprint.c: Likewise.
1970         * ada-valprint.c: Likewise.
1971         * aix-thread.c: Likewise.
1972         * alpha-linux-tdep.c: Likewise.
1973         * alpha-mdebug-tdep.c: Likewise.
1974         * alpha-nat.c: Likewise.
1975         * alpha-osf1-tdep.c: Likewise.
1976         * alpha-tdep.c: Likewise.
1977         * alphanbsd-tdep.c: Likewise.
1978         * amd64-dicos-tdep.c: Likewise.
1979         * amd64-linux-tdep.c: Likewise.
1980         * amd64-nat.c: Likewise.
1981         * amd64-sol2-tdep.c: Likewise.
1982         * amd64fbsd-tdep.c: Likewise.
1983         * amd64obsd-tdep.c: Likewise.
1984         * arch-utils.c: Likewise.
1985         * arm-linux-nat.c: Likewise.
1986         * arm-linux-tdep.c: Likewise.
1987         * arm-tdep.c: Likewise.
1988         * arm-wince-tdep.c: Likewise.
1989         * armbsd-tdep.c: Likewise.
1990         * armnbsd-nat.c: Likewise.
1991         * armnbsd-tdep.c: Likewise.
1992         * armobsd-tdep.c: Likewise.
1993         * avr-tdep.c: Likewise.
1994         * ax-gdb.c: Likewise.
1995         * ax-general.c: Likewise.
1996         * bcache.c: Likewise.
1997         * bfin-tdep.c: Likewise.
1998         * breakpoint.c: Likewise.
1999         * build-id.c: Likewise.
2000         * buildsym.c: Likewise.
2001         * c-exp.y: Likewise.
2002         * c-lang.c: Likewise.
2003         * c-typeprint.c: Likewise.
2004         * c-valprint.c: Likewise.
2005         * charset.c: Likewise.
2006         * cli-out.c: Likewise.
2007         * cli/cli-cmds.c: Likewise.
2008         * cli/cli-decode.c: Likewise.
2009         * cli/cli-dump.c: Likewise.
2010         * cli/cli-interp.c: Likewise.
2011         * cli/cli-logging.c: Likewise.
2012         * cli/cli-script.c: Likewise.
2013         * cli/cli-setshow.c: Likewise.
2014         * cli/cli-utils.c: Likewise.
2015         * coffread.c: Likewise.
2016         * common/agent.c: Likewise.
2017         * common/buffer.c: Likewise.
2018         * common/buffer.h: Likewise.
2019         * common/common-utils.c: Likewise.
2020         * common/filestuff.c: Likewise.
2021         * common/filestuff.c: Likewise.
2022         * common/format.c: Likewise.
2023         * common/print-utils.c: Likewise.
2024         * common/rsp-low.c: Likewise.
2025         * common/signals.c: Likewise.
2026         * common/vec.h: Likewise.
2027         * common/xml-utils.c: Likewise.
2028         * core-regset.c: Likewise.
2029         * corefile.c: Likewise.
2030         * corelow.c: Likewise.
2031         * cp-abi.c: Likewise.
2032         * cp-name-parser.y: Likewise.
2033         * cp-support.c: Likewise.
2034         * cp-valprint.c: Likewise.
2035         * cris-tdep.c: Likewise.
2036         * d-exp.y: Likewise.
2037         * darwin-nat.c: Likewise.
2038         * dbxread.c: Likewise.
2039         * dcache.c: Likewise.
2040         * demangle.c: Likewise.
2041         * dicos-tdep.c: Likewise.
2042         * disasm.c: Likewise.
2043         * doublest.c: Likewise.
2044         * dsrec.c: Likewise.
2045         * dummy-frame.c: Likewise.
2046         * dwarf2-frame.c: Likewise.
2047         * dwarf2loc.c: Likewise.
2048         * dwarf2read.c: Likewise.
2049         * elfread.c: Likewise.
2050         * environ.c: Likewise.
2051         * eval.c: Likewise.
2052         * event-loop.c: Likewise.
2053         * exceptions.c: Likewise.
2054         * exec.c: Likewise.
2055         * expprint.c: Likewise.
2056         * f-exp.y: Likewise.
2057         * f-lang.c: Likewise.
2058         * f-typeprint.c: Likewise.
2059         * f-valprint.c: Likewise.
2060         * fbsd-nat.c: Likewise.
2061         * findcmd.c: Likewise.
2062         * findvar.c: Likewise.
2063         * fork-child.c: Likewise.
2064         * frame.c: Likewise.
2065         * frv-linux-tdep.c: Likewise.
2066         * frv-tdep.c: Likewise.
2067         * gdb.c: Likewise.
2068         * gdb_bfd.c: Likewise.
2069         * gdbarch.c: Likewise.
2070         * gdbarch.sh: Likewise.
2071         * gdbtypes.c: Likewise.
2072         * gnu-nat.c: Likewise.
2073         * gnu-v2-abi.c: Likewise.
2074         * gnu-v3-abi.c: Likewise.
2075         * go-exp.y: Likewise.
2076         * go-lang.c: Likewise.
2077         * go32-nat.c: Likewise.
2078         * guile/guile.c: Likewise.
2079         * guile/scm-auto-load.c: Likewise.
2080         * hppa-hpux-tdep.c: Likewise.
2081         * hppa-linux-nat.c: Likewise.
2082         * hppanbsd-tdep.c: Likewise.
2083         * hppaobsd-tdep.c: Likewise.
2084         * i386-cygwin-tdep.c: Likewise.
2085         * i386-dicos-tdep.c: Likewise.
2086         * i386-linux-tdep.c: Likewise.
2087         * i386-nto-tdep.c: Likewise.
2088         * i386-sol2-tdep.c: Likewise.
2089         * i386-tdep.c: Likewise.
2090         * i386bsd-tdep.c: Likewise.
2091         * i386gnu-nat.c: Likewise.
2092         * i386nbsd-tdep.c: Likewise.
2093         * i386obsd-tdep.c: Likewise.
2094         * i387-tdep.c: Likewise.
2095         * ia64-libunwind-tdep.c: Likewise.
2096         * ia64-linux-nat.c: Likewise.
2097         * inf-child.c: Likewise.
2098         * inf-ptrace.c: Likewise.
2099         * inf-ttrace.c: Likewise.
2100         * infcall.c: Likewise.
2101         * infcmd.c: Likewise.
2102         * inflow.c: Likewise.
2103         * infrun.c: Likewise.
2104         * interps.c: Likewise.
2105         * iq2000-tdep.c: Likewise.
2106         * irix5-nat.c: Likewise.
2107         * jv-exp.y: Likewise.
2108         * jv-lang.c: Likewise.
2109         * jv-typeprint.c: Likewise.
2110         * jv-valprint.c: Likewise.
2111         * language.c: Likewise.
2112         * linux-fork.c: Likewise.
2113         * linux-nat.c: Likewise.
2114         * lm32-tdep.c: Likewise.
2115         * m2-exp.y: Likewise.
2116         * m2-typeprint.c: Likewise.
2117         * m32c-tdep.c: Likewise.
2118         * m32r-linux-nat.c: Likewise.
2119         * m32r-linux-tdep.c: Likewise.
2120         * m32r-rom.c: Likewise.
2121         * m32r-tdep.c: Likewise.
2122         * m68hc11-tdep.c: Likewise.
2123         * m68k-tdep.c: Likewise.
2124         * m68kbsd-tdep.c: Likewise.
2125         * m68klinux-nat.c: Likewise.
2126         * m68klinux-tdep.c: Likewise.
2127         * m88k-tdep.c: Likewise.
2128         * machoread.c: Likewise.
2129         * macrocmd.c: Likewise.
2130         * main.c: Likewise.
2131         * mdebugread.c: Likewise.
2132         * mem-break.c: Likewise.
2133         * memattr.c: Likewise.
2134         * memory-map.c: Likewise.
2135         * mep-tdep.c: Likewise.
2136         * mi/mi-cmd-break.c: Likewise.
2137         * mi/mi-cmd-disas.c: Likewise.
2138         * mi/mi-cmd-env.c: Likewise.
2139         * mi/mi-cmd-stack.c: Likewise.
2140         * mi/mi-cmd-var.c: Likewise.
2141         * mi/mi-cmds.c: Likewise.
2142         * mi/mi-console.c: Likewise.
2143         * mi/mi-getopt.c: Likewise.
2144         * mi/mi-interp.c: Likewise.
2145         * mi/mi-main.c: Likewise.
2146         * mi/mi-parse.c: Likewise.
2147         * microblaze-rom.c: Likewise.
2148         * microblaze-tdep.c: Likewise.
2149         * mingw-hdep.c: Likewise.
2150         * minidebug.c: Likewise.
2151         * minsyms.c: Likewise.
2152         * mips-irix-tdep.c: Likewise.
2153         * mips-linux-tdep.c: Likewise.
2154         * mips-tdep.c: Likewise.
2155         * mips64obsd-tdep.c: Likewise.
2156         * mipsnbsd-tdep.c: Likewise.
2157         * mipsread.c: Likewise.
2158         * mn10300-linux-tdep.c: Likewise.
2159         * mn10300-tdep.c: Likewise.
2160         * monitor.c: Likewise.
2161         * moxie-tdep.c: Likewise.
2162         * mt-tdep.c: Likewise.
2163         * nat/linux-btrace.c: Likewise.
2164         * nat/linux-osdata.c: Likewise.
2165         * nat/linux-procfs.c: Likewise.
2166         * nat/linux-ptrace.c: Likewise.
2167         * nat/linux-waitpid.c: Likewise.
2168         * nbsd-tdep.c: Likewise.
2169         * nios2-linux-tdep.c: Likewise.
2170         * nto-procfs.c: Likewise.
2171         * nto-tdep.c: Likewise.
2172         * objc-lang.c: Likewise.
2173         * objfiles.c: Likewise.
2174         * opencl-lang.c: Likewise.
2175         * osabi.c: Likewise.
2176         * osdata.c: Likewise.
2177         * p-exp.y: Likewise.
2178         * p-lang.c: Likewise.
2179         * p-typeprint.c: Likewise.
2180         * parse.c: Likewise.
2181         * posix-hdep.c: Likewise.
2182         * ppc-linux-nat.c: Likewise.
2183         * ppc-sysv-tdep.c: Likewise.
2184         * ppcfbsd-tdep.c: Likewise.
2185         * ppcnbsd-tdep.c: Likewise.
2186         * ppcobsd-tdep.c: Likewise.
2187         * printcmd.c: Likewise.
2188         * procfs.c: Likewise.
2189         * prologue-value.c: Likewise.
2190         * python/py-auto-load.c: Likewise.
2191         * python/py-gdb-readline.c: Likewise.
2192         * ravenscar-thread.c: Likewise.
2193         * regcache.c: Likewise.
2194         * registry.c: Likewise.
2195         * remote-fileio.c: Likewise.
2196         * remote-m32r-sdi.c: Likewise.
2197         * remote-mips.c: Likewise.
2198         * remote-notif.c: Likewise.
2199         * remote-sim.c: Likewise.
2200         * remote.c: Likewise.
2201         * reverse.c: Likewise.
2202         * rs6000-aix-tdep.c: Likewise.
2203         * ser-base.c: Likewise.
2204         * ser-go32.c: Likewise.
2205         * ser-mingw.c: Likewise.
2206         * ser-pipe.c: Likewise.
2207         * ser-tcp.c: Likewise.
2208         * ser-unix.c: Likewise.
2209         * serial.c: Likewise.
2210         * sh-tdep.c: Likewise.
2211         * sh64-tdep.c: Likewise.
2212         * shnbsd-tdep.c: Likewise.
2213         * skip.c: Likewise.
2214         * sol-thread.c: Likewise.
2215         * solib-dsbt.c: Likewise.
2216         * solib-frv.c: Likewise.
2217         * solib-osf.c: Likewise.
2218         * solib-som.c: Likewise.
2219         * solib-spu.c: Likewise.
2220         * solib-target.c: Likewise.
2221         * solib.c: Likewise.
2222         * somread.c: Likewise.
2223         * source.c: Likewise.
2224         * sparc-nat.c: Likewise.
2225         * sparc-sol2-tdep.c: Likewise.
2226         * sparc-tdep.c: Likewise.
2227         * sparc64-tdep.c: Likewise.
2228         * sparc64fbsd-tdep.c: Likewise.
2229         * sparc64nbsd-tdep.c: Likewise.
2230         * sparcnbsd-tdep.c: Likewise.
2231         * spu-linux-nat.c: Likewise.
2232         * spu-multiarch.c: Likewise.
2233         * spu-tdep.c: Likewise.
2234         * stabsread.c: Likewise.
2235         * stack.c: Likewise.
2236         * std-regs.c: Likewise.
2237         * symfile.c: Likewise.
2238         * symmisc.c: Likewise.
2239         * symtab.c: Likewise.
2240         * target.c: Likewise.
2241         * thread.c: Likewise.
2242         * tilegx-linux-nat.c: Likewise.
2243         * tilegx-tdep.c: Likewise.
2244         * top.c: Likewise.
2245         * tracepoint.c: Likewise.
2246         * tui/tui-command.c: Likewise.
2247         * tui/tui-data.c: Likewise.
2248         * tui/tui-disasm.c: Likewise.
2249         * tui/tui-file.c: Likewise.
2250         * tui/tui-layout.c: Likewise.
2251         * tui/tui-out.c: Likewise.
2252         * tui/tui-regs.c: Likewise.
2253         * tui/tui-source.c: Likewise.
2254         * tui/tui-stack.c: Likewise.
2255         * tui/tui-win.c: Likewise.
2256         * tui/tui-windata.c: Likewise.
2257         * tui/tui-winsource.c: Likewise.
2258         * typeprint.c: Likewise.
2259         * ui-file.c: Likewise.
2260         * ui-out.c: Likewise.
2261         * user-regs.c: Likewise.
2262         * utils.c: Likewise.
2263         * v850-tdep.c: Likewise.
2264         * valarith.c: Likewise.
2265         * valops.c: Likewise.
2266         * valprint.c: Likewise.
2267         * value.c: Likewise.
2268         * varobj.c: Likewise.
2269         * vax-tdep.c: Likewise.
2270         * vaxnbsd-tdep.c: Likewise.
2271         * vaxobsd-tdep.c: Likewise.
2272         * windows-nat.c: Likewise.
2273         * xcoffread.c: Likewise.
2274         * xml-support.c: Likewise.
2275         * xstormy16-tdep.c: Likewise.
2276         * xtensa-linux-nat.c: Likewise.
2277
2278 2014-08-07  Gary Benson  <gbenson@redhat.com>
2279
2280         * common/common-defs.h: Include gdb_assert.h.
2281         * aarch64-tdep.c: Do not include gdb_assert.h.
2282         * addrmap.c: Likewise.
2283         * aix-thread.c: Likewise.
2284         * alpha-linux-tdep.c: Likewise.
2285         * alpha-mdebug-tdep.c: Likewise.
2286         * alphanbsd-tdep.c: Likewise.
2287         * amd64-nat.c: Likewise.
2288         * amd64-tdep.c: Likewise.
2289         * amd64bsd-nat.c: Likewise.
2290         * amd64fbsd-nat.c: Likewise.
2291         * amd64fbsd-tdep.c: Likewise.
2292         * amd64nbsd-nat.c: Likewise.
2293         * amd64nbsd-tdep.c: Likewise.
2294         * amd64obsd-nat.c: Likewise.
2295         * amd64obsd-tdep.c: Likewise.
2296         * arch-utils.c: Likewise.
2297         * arm-tdep.c: Likewise.
2298         * armbsd-tdep.c: Likewise.
2299         * auxv.c: Likewise.
2300         * bcache.c: Likewise.
2301         * bfin-tdep.c: Likewise.
2302         * blockframe.c: Likewise.
2303         * breakpoint.c: Likewise.
2304         * bsd-kvm.c: Likewise.
2305         * bsd-uthread.c: Likewise.
2306         * buildsym.c: Likewise.
2307         * c-exp.y: Likewise.
2308         * c-lang.c: Likewise.
2309         * charset.c: Likewise.
2310         * cleanups.c: Likewise.
2311         * cli-out.c: Likewise.
2312         * cli/cli-decode.c: Likewise.
2313         * cli/cli-dump.c: Likewise.
2314         * cli/cli-logging.c: Likewise.
2315         * cli/cli-script.c: Likewise.
2316         * cli/cli-utils.c: Likewise.
2317         * coffread.c: Likewise.
2318         * common/common-utils.c: Likewise.
2319         * common/queue.h: Likewise.
2320         * common/signals.c: Likewise.
2321         * common/vec.h: Likewise.
2322         * complaints.c: Likewise.
2323         * completer.c: Likewise.
2324         * corelow.c: Likewise.
2325         * cp-abi.c: Likewise.
2326         * cp-name-parser.y: Likewise.
2327         * cp-namespace.c: Likewise.
2328         * cp-support.c: Likewise.
2329         * cris-tdep.c: Likewise.
2330         * dbxread.c: Likewise.
2331         * dictionary.c: Likewise.
2332         * doublest.c: Likewise.
2333         * dsrec.c: Likewise.
2334         * dummy-frame.c: Likewise.
2335         * dwarf2-frame-tailcall.c: Likewise.
2336         * dwarf2-frame.c: Likewise.
2337         * dwarf2expr.c: Likewise.
2338         * dwarf2loc.c: Likewise.
2339         * dwarf2read.c: Likewise.
2340         * eval.c: Likewise.
2341         * event-loop.c: Likewise.
2342         * exceptions.c: Likewise.
2343         * expprint.c: Likewise.
2344         * f-valprint.c: Likewise.
2345         * fbsd-nat.c: Likewise.
2346         * findvar.c: Likewise.
2347         * frame-unwind.c: Likewise.
2348         * frame.c: Likewise.
2349         * frv-tdep.c: Likewise.
2350         * gcore.c: Likewise.
2351         * gdb-dlfcn.c: Likewise.
2352         * gdb_bfd.c: Likewise.
2353         * gdbarch.c: Likewise.
2354         * gdbarch.sh: Likewise.
2355         * gdbtypes.c: Likewise.
2356         * gnu-nat.c: Likewise.
2357         * gnu-v3-abi.c: Likewise.
2358         * go-lang.c: Likewise.
2359         * guile/scm-exception.c: Likewise.
2360         * guile/scm-gsmob.c: Likewise.
2361         * guile/scm-lazy-string.c: Likewise.
2362         * guile/scm-math.c: Likewise.
2363         * guile/scm-pretty-print.c: Likewise.
2364         * guile/scm-safe-call.c: Likewise.
2365         * guile/scm-utils.c: Likewise.
2366         * guile/scm-value.c: Likewise.
2367         * h8300-tdep.c: Likewise.
2368         * hppa-hpux-nat.c: Likewise.
2369         * hppa-tdep.c: Likewise.
2370         * hppanbsd-tdep.c: Likewise.
2371         * hppaobsd-tdep.c: Likewise.
2372         * i386-darwin-nat.c: Likewise.
2373         * i386-darwin-tdep.c: Likewise.
2374         * i386-nto-tdep.c: Likewise.
2375         * i386-tdep.c: Likewise.
2376         * i386bsd-nat.c: Likewise.
2377         * i386fbsd-tdep.c: Likewise.
2378         * i386gnu-nat.c: Likewise.
2379         * i386nbsd-tdep.c: Likewise.
2380         * i386obsd-tdep.c: Likewise.
2381         * i387-tdep.c: Likewise.
2382         * ia64-libunwind-tdep.c: Likewise.
2383         * ia64-tdep.c: Likewise.
2384         * inf-ptrace.c: Likewise.
2385         * inf-ttrace.c: Likewise.
2386         * infcall.c: Likewise.
2387         * infcmd.c: Likewise.
2388         * infrun.c: Likewise.
2389         * inline-frame.c: Likewise.
2390         * interps.c: Likewise.
2391         * jv-lang.c: Likewise.
2392         * jv-typeprint.c: Likewise.
2393         * linux-fork.c: Likewise.
2394         * linux-nat.c: Likewise.
2395         * linux-thread-db.c: Likewise.
2396         * m32c-tdep.c: Likewise.
2397         * m32r-linux-nat.c: Likewise.
2398         * m32r-tdep.c: Likewise.
2399         * m68k-tdep.c: Likewise.
2400         * m68kbsd-nat.c: Likewise.
2401         * m68kbsd-tdep.c: Likewise.
2402         * m88k-tdep.c: Likewise.
2403         * machoread.c: Likewise.
2404         * macroexp.c: Likewise.
2405         * macrotab.c: Likewise.
2406         * maint.c: Likewise.
2407         * mdebugread.c: Likewise.
2408         * memory-map.c: Likewise.
2409         * mep-tdep.c: Likewise.
2410         * mi/mi-common.c: Likewise.
2411         * microblaze-tdep.c: Likewise.
2412         * mingw-hdep.c: Likewise.
2413         * mips-linux-nat.c: Likewise.
2414         * mips-linux-tdep.c: Likewise.
2415         * mips-tdep.c: Likewise.
2416         * mips64obsd-tdep.c: Likewise.
2417         * mipsnbsd-tdep.c: Likewise.
2418         * mn10300-linux-tdep.c: Likewise.
2419         * mn10300-tdep.c: Likewise.
2420         * moxie-tdep.c: Likewise.
2421         * mt-tdep.c: Likewise.
2422         * nat/linux-btrace.c: Likewise.
2423         * nat/linux-osdata.c: Likewise.
2424         * nat/linux-ptrace.c: Likewise.
2425         * nat/mips-linux-watch.c: Likewise.
2426         * nios2-linux-tdep.c: Likewise.
2427         * nios2-tdep.c: Likewise.
2428         * objc-lang.c: Likewise.
2429         * objfiles.c: Likewise.
2430         * obsd-nat.c: Likewise.
2431         * opencl-lang.c: Likewise.
2432         * osabi.c: Likewise.
2433         * parse.c: Likewise.
2434         * ppc-linux-nat.c: Likewise.
2435         * ppc-sysv-tdep.c: Likewise.
2436         * ppcfbsd-nat.c: Likewise.
2437         * ppcfbsd-tdep.c: Likewise.
2438         * ppcnbsd-nat.c: Likewise.
2439         * ppcnbsd-tdep.c: Likewise.
2440         * ppcobsd-nat.c: Likewise.
2441         * ppcobsd-tdep.c: Likewise.
2442         * printcmd.c: Likewise.
2443         * procfs.c: Likewise.
2444         * prologue-value.c: Likewise.
2445         * psymtab.c: Likewise.
2446         * python/py-lazy-string.c: Likewise.
2447         * python/py-value.c: Likewise.
2448         * regcache.c: Likewise.
2449         * reggroups.c: Likewise.
2450         * registry.c: Likewise.
2451         * remote-sim.c: Likewise.
2452         * remote.c: Likewise.
2453         * rs6000-aix-tdep.c: Likewise.
2454         * rs6000-tdep.c: Likewise.
2455         * s390-linux-tdep.c: Likewise.
2456         * score-tdep.c: Likewise.
2457         * ser-base.c: Likewise.
2458         * ser-mingw.c: Likewise.
2459         * sh-tdep.c: Likewise.
2460         * sh64-tdep.c: Likewise.
2461         * solib-darwin.c: Likewise.
2462         * solib-spu.c: Likewise.
2463         * solib-svr4.c: Likewise.
2464         * source.c: Likewise.
2465         * sparc-nat.c: Likewise.
2466         * sparc-sol2-tdep.c: Likewise.
2467         * sparc-tdep.c: Likewise.
2468         * sparc64-sol2-tdep.c: Likewise.
2469         * sparc64-tdep.c: Likewise.
2470         * sparc64fbsd-tdep.c: Likewise.
2471         * sparc64nbsd-tdep.c: Likewise.
2472         * sparc64obsd-tdep.c: Likewise.
2473         * sparcnbsd-tdep.c: Likewise.
2474         * sparcobsd-tdep.c: Likewise.
2475         * spu-multiarch.c: Likewise.
2476         * spu-tdep.c: Likewise.
2477         * stabsread.c: Likewise.
2478         * stack.c: Likewise.
2479         * symfile.c: Likewise.
2480         * symtab.c: Likewise.
2481         * target-descriptions.c: Likewise.
2482         * target-memory.c: Likewise.
2483         * target.c: Likewise.
2484         * tic6x-linux-tdep.c: Likewise.
2485         * tic6x-tdep.c: Likewise.
2486         * tilegx-linux-nat.c: Likewise.
2487         * tilegx-tdep.c: Likewise.
2488         * top.c: Likewise.
2489         * tramp-frame.c: Likewise.
2490         * tui/tui-out.c: Likewise.
2491         * tui/tui-winsource.c: Likewise.
2492         * ui-out.c: Likewise.
2493         * user-regs.c: Likewise.
2494         * utils.c: Likewise.
2495         * v850-tdep.c: Likewise.
2496         * valops.c: Likewise.
2497         * value.c: Likewise.
2498         * varobj.c: Likewise.
2499         * vax-nat.c: Likewise.
2500         * xml-syscall.c: Likewise.
2501         * xml-tdesc.c: Likewise.
2502         * xstormy16-tdep.c: Likewise.
2503         * xtensa-linux-nat.c: Likewise.
2504         * xtensa-tdep.c: Likewise.
2505
2506 2014-08-07  Gary Benson  <gbenson@redhat.com>
2507
2508         * common/common-defs.h: Include common-utils.h.
2509         * defs.h: Do not include common-utils.h.
2510         * common/gdb_assert.h: Likewise.
2511         * darwin-nat.h: Likewise.
2512         * nat/linux-btrace.c: Likewise.
2513         * target/waitstatus.h: Likewise.
2514
2515 2014-08-07  Gary Benson  <gbenson@redhat.com>
2516
2517         * common/common-defs.h: Include ptid.h.
2518         * defs.h: Do not include ptid.h.
2519         * inferior.h: Likewise.
2520         * infrun.h: Likewise.
2521         * nat/linux-btrace.h: Likewise.
2522         * nat/linux-osdata.h: Likewise.
2523         * target/waitstatus.h: Likewise.
2524
2525 2014-08-07  Gary Benson  <gbenson@redhat.com>
2526
2527         * common/common-defs.h: Include gdb_locale.h.
2528         * defs.h: Do not include gdb_locale.h.
2529
2530 2014-08-07  Gary Benson  <gbenson@redhat.com>
2531
2532         * common/common-defs.h: Include gdb/signals.h.
2533         * defs.h: Do not include gdb/signals.h.
2534
2535 2014-08-07  Gary Benson  <gbenson@redhat.com>
2536
2537         * common/common-defs.h: Include pathmax.h.
2538         * defs.h: Do not include pathmax.h.
2539
2540 2014-08-07  Gary Benson  <gbenson@redhat.com>
2541
2542         * common/common-defs.h: Include libiberty.h.
2543         * defs.h: Do not include libiberty.h.
2544         * common/queue.h: Likewise.
2545         * cp-name-parser.y: Likewise.
2546         * mi/mi-cmd-catch.c: Likewise.
2547         * python/python.c: Likewise.
2548
2549 2014-08-07  Gary Benson  <gbenson@redhat.com>
2550
2551         * common/common-defs.h: Include ansidecl.h.
2552         * defs.h: Do not include ansidecl.h.
2553         * common/buffer.h: Likewise.
2554         * common/common-utils.h: Likewise.
2555
2556 2014-08-07  Gary Benson  <gbenson@redhat.com>
2557
2558         * common/common-defs.h: Include stddef.h.
2559         * defs.h: Do not include stddef.h.
2560         * common/common-utils.h: Likewise.
2561         * amd64fbsd-nat.c: Likewise.
2562         * bcache.c: Likewise.
2563         * charset.c: Likewise.
2564         * common/buffer.h: Likewise.
2565         * common/vec.h: Likewise.
2566         * i386bsd-nat.c: Likewise.
2567         * nat/linux-btrace.h: Likewise.
2568         * ppcfbsd-nat.c: Likewise.
2569         * ppcnbsd-tdep.h: Likewise.
2570         * ppcobsd-nat.c: Likewise.
2571         * ppcobsd-tdep.h: Likewise.
2572         * python/py-gdb-readline.c: Likewise.
2573
2574 2014-08-07  Gary Benson  <gbenson@redhat.com>
2575
2576         * common/common-defs.h: Include stdarg.h.
2577         * defs.h: Do not include stdarg.h.
2578         * ada-lang.c: Likewise.
2579         * common/common-utils.h: Likewise.
2580         * guile/scm-string.c: Likewise.
2581         * guile/scm-utils.c: Likewise.
2582         * m32c-tdep.c: Likewise.
2583
2584 2014-08-07  Gary Benson  <gbenson@redhat.com>
2585
2586         * common/common-defs.h: Include stdlib.h.
2587         * defs.h: Do not include stdlib.h.
2588         * addrmap.c: Likewise.
2589         * bcache.c: Likewise.
2590         * common/buffer.c: Likewise.
2591         * common/common-utils.c: Likewise.
2592         * cp-name-parser.y: Likewise.
2593         * go32-nat.c: Likewise.
2594         * mn10300-linux-tdep.c: Likewise.
2595         * nat/linux-osdata.c: Likewise.
2596         * tui/tui.c: Likewise.
2597         * windows-nat.c: Likewise.
2598
2599 2014-08-07  Gary Benson  <gbenson@redhat.com>
2600
2601         * common/common-defs.h: Include stdio.h.
2602         * defs.h: Do not include stdio.h.
2603         * ada-lang.c: Likewise.
2604         * common/buffer.c: Likewise.
2605         * common/common-utils.c: Likewise.
2606         * cp-name-parser.y: Likewise.
2607         * gnu-nat.c: Likewise.
2608         * go32-nat.c: Likewise.
2609         * i386gnu-nat.c: Likewise.
2610         * proc-api.c: Likewise.
2611         * proc-events.c: Likewise.
2612         * proc-flags.c: Likewise.
2613         * proc-why.c: Likewise.
2614         * python/python-internal.h: Likewise.
2615         * target-memory.c: Likewise.
2616         * tui/tui-io.c: Likewise.
2617         * tui/tui.c: Likewise.
2618
2619 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2620
2621         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2622         (scan_dyntag_auxv): Same.
2623
2624 2014-08-06  Yao Qi  <yao@codesourcery.com>
2625
2626         * amd64-linux-nat.c: Remove duplicated include
2627         "x86-linux-nat.h".
2628         * i386-linux-nat.c: Likewise.
2629
2630 2014-08-06  Yao Qi  <yao@codesourcery.com>
2631
2632         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2633         operand" with "Special opcode" in comments.
2634
2635 2014-08-05  Gary Benson  <gbenson@redhat.com>
2636
2637         * interps.c (initialize_interps): Remove prototype.
2638         (interpreter_initialized): Remove static global.
2639         (interp_add): Do not call initialize_interps.
2640         (initialize_interps): Remove function.
2641
2642 2014-08-05  Gary Benson  <gbenson@redhat.com>
2643
2644         * utils.c (vwarning): Remove spurious va_end.
2645
2646 2014-08-05  Alan Modra  <amodra@gmail.com>
2647
2648         * charset.c (convert_between_encodings): Cast result of obstack_base.
2649         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2650         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2651         (read_unwind_info): Use size_t for some locals.
2652         * jit.c (finalize_symtab): Likewise.
2653         * utils.c (hashtab_obstack_allocate): Likewise.
2654         * symmisc.c (print_objfile_statistics): Update format strings.
2655
2656 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2657
2658         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2659         (Changes in GDB 7.8): ... here.
2660
2661 2014-08-04  Tom Tromey  <tromey@redhat.com>
2662
2663         * target.c (set_targetdebug): New function.
2664         (initialize_targets): Pass set_targetdebug when creating "set
2665         debug target".
2666
2667 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2668
2669         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2670         if detecting a variable-sized field that is not the last field.
2671         Fix struct type length computation.
2672
2673 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2674
2675         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2676         Add debug trace.
2677
2678 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2679
2680         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2681         Remove "+ 8" offset in computation of CHAIN_VMA.
2682
2683 2014-07-31  Doug Evans  <dje@google.com>
2684
2685         * inflow.c (child_terminal_inferior): Add comment.
2686         (child_terminal_ours_for_output): Add comment.
2687         (child_terminal_ours): Add comment.
2688         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2689         (linux_nat_terminal_ours): Add comment.
2690
2691 2014-07-31  Gary Benson  <gbenson@redhat.com>
2692
2693         * common/btrace-common.h: Do not include defs.h or server.h.
2694         * nat/mips-linux-watch.h: Likewise.
2695         * gdb-dlfcn.h: Do not include defs.h.
2696         * tracefile.h: Likewise.
2697
2698 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2699
2700         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2701
2702 2014-07-30  Tom Tromey  <tromey@redhat.com>
2703
2704         * bsd-kvm.c (bsd_kvm_open): Constify.
2705         * corelow.c (core_open): Constify.
2706         * ctf.c (ctf_open): Constify.
2707         * dbug-rom.c (dbug_open): Constify.
2708         * exec.c (exec_open): Constify.
2709         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2710         * microblaze-rom.c (picobug_open): Constify.
2711         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2712         Constify.
2713         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2714         * record-btrace.c (record_btrace_open): Constify.
2715         * record-full.c (record_full_core_open_1, record_full_open_1)
2716         (record_full_open): Constify.
2717         * remote-m32r-sdi.c (m32r_open): Constify.
2718         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2719         (rockhopper_open, lsi_open): Constify.
2720         * remote-sim.c (gdbsim_open): Constify.
2721         * remote.c (remote_open, extended_remote_open, remote_open_1):
2722         Constify.
2723         * target.h (struct target_ops) <to_open>: Make "arg" const.
2724         * tracefile-tfile.c (tfile_open): Constify.
2725
2726 2014-07-30  Tom Tromey  <tromey@redhat.com>
2727
2728         * breakpoint.c (map_breakpoint_numbers): Update.
2729         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2730         (get_number_const): New function.
2731         (get_number): Rewrite using get_number_const.
2732         (init_number_or_range): Make "string" const.
2733         (number_is_in_list): Make "list" const.
2734         * cli/cli-utils.h (get_number_const): Declare.
2735         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2736         (init_number_or_range, number_is_in_list): Update.
2737         * printcmd.c (map_display_numbers): Update.
2738         * value.c (value_from_history_ref): Constify.
2739         * value.h (value_from_history_ref): Update.
2740
2741 2014-07-30  Tom Tromey  <tromey@redhat.com>
2742
2743         * corefile.c (hook_type, call_extra_exec_file_hooks)
2744         (specify_exec_file_hook): Constify.
2745         * exec.c (exec_file_attach): Make "filename" const.
2746         * gdbcore.h (deprecated_exec_file_display_hook)
2747         (specify_exec_file_hook, exec_file_attach): Constify.
2748         * main.c (captured_main): Use catch_command_errors_const.
2749
2750 2014-07-30  Tom Tromey  <tromey@redhat.com>
2751
2752         * target.c (open_target): New function.
2753         (add_target_with_completer, add_deprecated_target_alias): Use
2754         set_cmd_sfunc, set_cmd_context.
2755         (debug_to_open): Remove.
2756         (setup_target_debug): Update.
2757
2758 2014-07-30  Yao Qi  <yao@codesourcery.com>
2759
2760         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2761         comments.
2762         * parse.c (exp_iterate): Update comments.
2763
2764 2014-07-30  Gary Benson  <gbenson@redhat.com>
2765
2766         * common/common-defs.h: New file.
2767         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2768         * defs.h: Include common-defs.h.
2769         Do not include config.h or build-gnulib/config.h.
2770
2771 2014-07-30  Gary Benson  <gbenson@redhat.com>
2772
2773         * common/common-utils.h: Do not include config.h.
2774         * nat/linux-btrace.h: Likewise.
2775
2776 2014-07-30  Gary Benson  <gbenson@redhat.com>
2777
2778         * btrace.c: Include defs.h.
2779         * common/ptid.c: Include defs.h or server.h as appropriate.
2780         * nat/mips-linux-watch.c: Likewise.
2781
2782 2014-07-29  Tom Tromey  <tromey@redhat.com>
2783
2784         * target.c (target_is_pushed): Simplify.
2785
2786 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2787
2788         GDB 7.8 released.
2789
2790 2014-07-29  Yao Qi  <yao@codesourcery.com>
2791
2792         PR gdb/17206
2793         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2794
2795 2014-07-28  Doug Evans  <xdje42@gmail.com>
2796
2797         PR guile/17203
2798         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2799         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2800         parameters.
2801
2802 2014-07-28  Will Newton  <will.newton@linaro.org>
2803
2804         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2805         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2806         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2807         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2808         (THUMB2_EABI_SYSCALL): Likewise.
2809         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2810         struct tramp_frame.
2811         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2812         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2813
2814 2014-07-27  Doug Evans  <xdje42@gmail.com>
2815
2816         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2817
2818 2014-07-27  Doug Evans  <xdje42@gmail.com>
2819
2820         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2821
2822 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2823             Doug Evans  <xdje42@gmail.com>
2824
2825         PR guile/17146
2826         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2827         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2828         * configure.ac: Try to use guild to compile an scm file, if it fails
2829         then disable guile support.
2830         * configure: Regenerate.
2831         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2832         GUILE_FILE_LIST.
2833         (GUILE_COMPILED_FILES): New variable.
2834         (GUILE_FILES) Update.
2835         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2836         (stamp-guile): Compile scm files.
2837         * guile/guile.c (boot_guile_support): New function.
2838         (standard_throw_args_p): New function.
2839         (print_standard_throw_error, print_throw_error): New functions.
2840         (handle_boot_error): New function.
2841         (initialize_scheme_side): Rewrite to call boot_guile_support.
2842         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2843         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2844
2845 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2846             Doug Evans  <xdje42@gmail.com>
2847
2848         PR guile/17146
2849         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2850         * guile/lib/gdb/support.scm: New file.
2851         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2852         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2853         All uses updated.
2854         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2855         All uses updated.
2856         (%assert-type): Ditto, and renamed to assert-type.
2857         (%exception-print-style): Delete.
2858
2859 2014-07-26  Doug Evans  <xdje42@gmail.com>
2860
2861         PR build/17105
2862         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2863         * configure: Regenerate.
2864         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2865         PYTHON_FILES.
2866         (PYTHON_FILES): New variable.
2867         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2868         (GUILE_FILES): New variable.
2869         (stamp-python, install-python, uninstall-python): Handle empty
2870         file list.
2871         (stamp-guile, install-guile, uninstall-guile): Ditto.
2872
2873 2014-07-26  Doug Evans  <xdje42@gmail.com>
2874
2875         PR guile/17177
2876         * guile/lib/gdb.scm (pretty-printers): Export.
2877         (set-pretty-printers!): Export.
2878         * guile/lib/gdb/printing.scm (gdb module): Update.
2879         (prepend-pretty-printer!, append-pretty-printer!): Update.
2880         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2881         (pretty_printer_list_var): Delete.
2882         (pretty_printer_list): New static global.
2883         (gdbscm_pretty_printers): New function.
2884         (gdbscm_set_pretty_printers_x): New function.
2885         (ppscm_find_pretty_printer_from_gdb): Update.
2886         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2887         (gdbscm_initialize_pretty_printers): Update.
2888
2889 2014-07-26  Doug Evans  <xdje42@gmail.com>
2890
2891         PR 17185
2892         * configure.ac: Add check for header gc/gc.h.
2893         Add check for function setenv.
2894         * configure: Regenerate.
2895         * config.in: Regenerate.
2896         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2897
2898 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2899
2900         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2901         variation in gdbarch matching.
2902
2903 2014-07-25  Tom Tromey  <tromey@redhat.com>
2904
2905         * exec.c (using_exec_ops): Remove.
2906         (exec_close_1): Update.  Remove extraneous block, reindent.
2907         (add_target_sections): Use target_is_pushed.
2908
2909 2014-07-25  Pedro Alves  <palves@redhat.com>
2910
2911         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2912         * monitor.c (monitor_create_inferior): Likewise.
2913         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2914         * remote-sim.c (gdbsim_create_inferior): Likewise.
2915         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2916         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2917         * windows-nat.c (do_initial_windows_stuff): Likewise.
2918
2919 2014-07-25  Pedro Alves  <palves@redhat.com>
2920
2921         * NEWS: Mention signal passing and "signal" command changes.
2922         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2923         comment.
2924         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2925         call.
2926         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2927         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2928         (jump_command): Adjust clear_proceed_status call.
2929         (signal_command): Warn if other thread that are resumed have
2930         signals that will be delivered.  Adjust clear_proceed_status call.
2931         (until_next_command, finish_command)
2932         (proceed_after_attach_callback, attach_command_post_wait)
2933         (attach_command): Adjust clear_proceed_status call.
2934         * infrun.c (proceed_after_vfork_done): Likewise.
2935         (proceed_after_attach_callback): Adjust comment.
2936         (clear_proceed_status_thread): Clear stop_signal if not in pass
2937         state.
2938         (clear_proceed_status_callback): Delete.
2939         (clear_proceed_status): New 'step' parameter.  Only clear the
2940         proceed status of threads the command being prepared is about to
2941         resume.
2942         (proceed): If passed in an explicit signal, override stop_signal
2943         with it.  Don't pass the last stop signal to the thread we're
2944         resuming.
2945         (init_wait_for_inferior): Adjust clear_proceed_status call.
2946         (switch_back_to_stepped_thread): Clear the signal if it should not
2947         be passed.
2948         * infrun.h (clear_proceed_status): New 'step' parameter.
2949         (user_visible_resume_ptid): Add comment.
2950         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2951         signal is in pass state.
2952         * remote.c (append_pending_thread_resumptions): Likewise.
2953         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2954
2955 2014-07-25  Tom Tromey  <tromey@redhat.com>
2956
2957         * target.h (target_stopped_data_address)
2958         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2959         parentheses.
2960
2961 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2962
2963         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2964         comments.
2965         (avr_pointer_to_address): Likewise.
2966
2967 2014-07-24  Tom Tromey  <tromey@redhat.com>
2968
2969         * monitor.c (compile_pattern): Update.
2970         * target.h (struct target_ops) <to_shortname, to_longname,
2971         to_doc>: Now const.
2972
2973 2014-07-24  Tom Tromey  <tromey@redhat.com>
2974
2975         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2976         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2977         (add_info_alias, add_com): Make "doc" const.
2978         (print_doc_line): Make "str" const.
2979         (delete_cmd): Update.
2980         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2981         (print_doc_line): Update.
2982         * cli/cli-script.c (document_command): Update.
2983         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2984         (add_com, add_info, add_info_alias): Update.
2985         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2986         * python/py-cmd.c (cmdpy_destroyer): Update.
2987
2988 2014-07-24  Tom Tromey  <tromey@redhat.com>
2989
2990         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2991         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2992         (help_cmd_list): Constify.
2993         (lookup_cmd): Update.
2994         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2995         const.
2996         (help_cmd_list, apropos_cmd): Update.
2997         * cli/cli-script.c (show_user): Update.
2998         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2999         * cli/cli-setshow.h (cmd_show_list): Update.
3000         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3001         (cmd_show_list): Update.
3002         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3003         * python/py-cmd.c (cmdpy_destroyer): Update.
3004
3005 2014-07-24  Tom Tromey  <tromey@redhat.com>
3006
3007         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3008         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3009         const.
3010         * command.h (deprecate_cmd): Update.
3011         * maint.c (maintenance_do_deprecate): Add casts.
3012
3013 2014-07-24  Tom Tromey  <tromey@redhat.com>
3014
3015         * cli/cli-decode.c (help_cmd): Make parameter "const".
3016         * cli/cli-decode.h (help_cmd): Update.
3017
3018 2014-07-24  Tom Tromey  <tromey@redhat.com>
3019
3020         * stack.c (up_silently_base, down_silently_base): Make argument
3021         const.
3022
3023 2014-07-24  Tom Tromey  <tromey@redhat.com>
3024
3025         * solib.c (solib_add): Make "pattern" const.
3026         * solib.h (solib_add): Update.
3027
3028 2014-07-24  Tom Tromey  <tromey@redhat.com>
3029
3030         * remote.c (remote_serial_open, print_packet, putpkt)
3031         (putpkt_binary): Constify.
3032         * remote.h (putpkt): Update.
3033
3034 2014-07-24  Tom Tromey  <tromey@redhat.com>
3035
3036         * monitor.c (monitor_open): Make "args" const.
3037         * monitor.h (monitor_open): Update.
3038
3039 2014-07-24  Tom Tromey  <tromey@redhat.com>
3040
3041         * maint.c (match_bfd_flags): Make "string" const.
3042         (print_bfd_section_info): Remove casts.
3043         (print_objfile_section_info): Make "string" const.
3044
3045 2014-07-24  Tom Tromey  <tromey@redhat.com>
3046
3047         * inf-child.c (inf_child_open_target): Make "arg" const.
3048         * inf-child.h (inf_child_open_target): Update.
3049
3050 2014-07-24  Tom Tromey  <tromey@redhat.com>
3051
3052         * environ.c (unset_in_environ): Make "var" const.
3053         * environ.h (unset_in_environ): Update.
3054
3055 2014-07-24  Tom Tromey  <tromey@redhat.com>
3056
3057         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3058         Make "cmd" const.
3059         (scan_filename_with_cleanup): Likewise.
3060         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3061         Make arguments const.
3062         (restore_command): Update.
3063
3064 2014-07-24  Pedro Alves  <palves@redhat.com>
3065
3066         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3067
3068 2014-07-24  Tom Tromey  <tromey@redhat.com>
3069             Gary Benson  <gbenson@redhat.com>
3070
3071         * nat/linux-ptrace.c (additional_flags): New global.
3072         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3073         additional_flags; don't check GDBSERVER.
3074         (linux_ptrace_set_additional_flags): New function.
3075         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3076         Declare.
3077         * linux-nat.c (_initialize_linux_nat): Call
3078         linux_ptrace_set_additional_flags.
3079
3080 2014-07-24  Tom Tromey  <tromey@redhat.com>
3081
3082         * make-target-delegates (munge_type, write_debugmethod): New
3083         functions.
3084         (debug_names): New global.
3085         ($TARGET_DEBUG_PRINTER): New global.
3086         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3087         name.
3088         Write debug methods.  Generate init_debug_target.
3089         * target-debug.h: New file.
3090         * target-delegates.c: Rebuild.
3091         * target.c: Include target-debug.h.
3092         (debug_target): Hoist definition.
3093         (target_kill, target_get_section_table, target_memory_map)
3094         (target_flash_erase, target_flash_done, target_detach)
3095         (target_disconnect, target_wait, target_resume)
3096         (target_pass_signals, target_program_signals, target_follow_fork)
3097         (target_mourn_inferior, target_search_memory)
3098         (target_thread_address_space, target_close)
3099         (target_find_new_threads, target_core_of_thread)
3100         (target_verify_memory, target_insert_mask_watchpoint)
3101         (target_remove_mask_watchpoint): Remove targetdebug code.
3102         (debug_to_post_attach, debug_to_prepare_to_store)
3103         (debug_to_files_info, debug_to_insert_breakpoint)
3104         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3105         (debug_to_region_ok_for_hw_watchpoint)
3106         (debug_to_can_accel_watchpoint_condition)
3107         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3108         (debug_to_watchpoint_addr_within_range)
3109         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3110         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3111         (debug_to_terminal_init, debug_to_terminal_inferior)
3112         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3113         (debug_to_terminal_save_ours, debug_to_terminal_info)
3114         (debug_to_load, debug_to_post_startup_inferior)
3115         (debug_to_insert_fork_catchpoint)
3116         (debug_to_remove_fork_catchpoint)
3117         (debug_to_insert_vfork_catchpoint)
3118         (debug_to_remove_vfork_catchpoint)
3119         (debug_to_insert_exec_catchpoint)
3120         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3121         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3122         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3123         (setup_target_debug): Call init_debug_target.
3124         * target.h (TARGET_DEBUG_PRINTER): New macro.
3125         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3126         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3127
3128 2014-07-24  Gary Benson  <gbenson@redhat.com>
3129
3130         * exceptions.h (throw_vfatal): Renamed to...
3131         (throw_vquit): New declaration.
3132         (throw_quit): Likewise.
3133         * exceptions.c (throw_vfatal): Renamed to...
3134         (throw_vquit): New function.
3135         (throw_quit): Likewise.
3136         (throw_error): Call throw_verror rather than throw_it.
3137         * utils.h (vfatal): Removed.
3138         (fatal): Likewise.
3139         * utils.c (vfatal): Removed.
3140         (fatal): Likewise.
3141         (internal_verror): Replaced call to fatal with call to throw_quit.
3142         (quit): Replaced calls to fatal with calls to throw_quit.
3143
3144 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3145
3146         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3147         target_read_code.
3148
3149 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3150
3151         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3152         less than zero in conditional expression.
3153
3154 2014-07-23  Tom Tromey  <tromey@redhat.com>
3155
3156         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3157         ($INTRO_PART): Don't match whitespace.
3158         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3159         argument matching.
3160         ($METHOD): Add $METHOD_TRAILER.
3161         (trim): Rewrite.
3162         (scan_target_h): New sub.
3163         Change main loop not to collect state.
3164         * target-delegates.c: Rebuild.
3165
3166 2014-07-23  Gary Benson  <gbenson@redhat.com>
3167
3168         * cp-support.c (gdb_demangle): Fix build on systems without
3169         sigaltstack.
3170
3171 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3172
3173         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3174         for reference entry value target data value.
3175
3176 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3177
3178         * stack.c (read_frame_arg): Verify value_optimized_out before calling
3179         value_available_contents_eq.
3180
3181 2014-07-22  Pedro Alves  <palves@redhat.com>
3182
3183         * value.c (allocate_optimized_out_value): Don't mark value as
3184         non-lazy.
3185
3186 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
3187
3188         * MAINTAINERS (Write After Approval): Update my email address.
3189
3190 2014-07-20  Doug Evans  <dje@google.com>
3191
3192         PR server/17147
3193         * remote.c (putpkt_binary): Add text to error message.
3194
3195 2014-07-20  Yao Qi  <yao@codesourcery.com>
3196
3197         * eval.c: Remove "Chill" from comments.
3198         * gdbtypes.h: Likewise.
3199         * symtab.h: Likewise.
3200
3201 2014-07-20  Yao Qi  <yao@codesourcery.com>
3202
3203         * std-operator.def: Update comments to TERNOP_SLICE.
3204
3205 2014-07-20  Yao Qi  <yao@codesourcery.com>
3206
3207         * std-operator.def: Remove BINOP_RANGE.
3208         * breakpoint.c (watchpoint_exp_is_const): Update.
3209         * expprint.c (dump_subexp_body_standard): Likewise.
3210         * eval.c (init_array_element): Remove dead code.
3211         (evaluate_subexp_standard): Likewise.
3212
3213 2014-07-20  Yao Qi  <yao@codesourcery.com>
3214
3215         * std-operator.def: Remove BINOP_IN.
3216         * breakpoint.c (watchpoint_exp_is_const): Update.
3217         * eval.c (evaluate_subexp_standard): Likewise.
3218         * expprint.c (dump_subexp_body_standard): Likewise.
3219
3220 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
3221
3222         * microblaze-tdep.c (microblaze_register_names): Add
3223         the rshr and rslr register names.
3224         (microblaze_gdbarch_init): Use of tdesc_has_registers.
3225         Use of tdesc_find_feature. Use of tdesc_data_alloc.
3226         Use of tdesc_numbered_register. Use of
3227         microblaze_register_g_packet_guesses. Use of
3228         tdesc_use_registers. Use of set_gdbarch_register_type.
3229         (microblaze_register_g_packet_guesses): New.
3230         * microblaze-tdep.h (microblaze_reg_num): Add
3231         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3232         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3233         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3234         * features/microblaze-core.xml: New file.
3235         * features/microblaze-stack-protect.xml: New file.
3236         * features/microblaze-with-stack-protect.c: New file.
3237         * features/microblaze-with-stack-protect.xml: New file.
3238         * features/microblaze.xml: New file.
3239         * features/microblaze.c: New file.
3240         * features/Makefile (microblaze-with-stack-protect): Add
3241         microblaze-with-stack-protect microblaze and microblaze-expedite.
3242         * regformats/microblaze-with-stack-protect.dat: New file.
3243         * regformats/microblaze.dat: New file.
3244         * doc/gdb.texinfo (MicroBlaze Features): Added.
3245
3246 2014-07-18  Tom Tromey  <tromey@redhat.com>
3247
3248         * exec.c (exec_ops): Now static.
3249         * exec.h (exec_ops): Don't declare.
3250
3251 2014-07-18  Tom Tromey  <tromey@redhat.com>
3252
3253         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3254         to find_target_beneath.
3255         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3256         find_target_beneath.
3257         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3258
3259 2014-07-18  Tom Tromey  <tromey@redhat.com>
3260
3261         PR gdb/17130:
3262         * utils.c (quit): Use target_supports_terminal_ours.
3263         * target.h (target_supports_terminal_ours): Declare.
3264         * target.c (target_supports_delete_record): Don't check
3265         to_delete_record against NULL.
3266         (target_supports_terminal_ours): New function.
3267
3268 2014-07-18  Tom Tromey  <tromey@redhat.com>
3269
3270         PR gdb/17130:
3271         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3272         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3273         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3274         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3275         * windows-nat.c (windows_xfer_partial): Always delegate.
3276         * record-btrace.c (record_btrace_xfer_partial): Simplify
3277         delegation.
3278         (record_btrace_fetch_registers, record_btrace_store_registers)
3279         (record_btrace_prepare_to_store, record_btrace_resume)
3280         (record_btrace_wait, record_btrace_find_new_threads)
3281         (record_btrace_thread_alive): Likewise.
3282         * procfs.c (procfs_xfer_partial): Always delegate.
3283         * corelow.c (core_xfer_partial): Always delegate.
3284         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3285
3286 2014-07-18  Tom Tromey  <tromey@redhat.com>
3287
3288         * exec.c (exec_make_note_section): Move earlier.
3289
3290 2014-07-17  Doug Evans  <dje@google.com>
3291
3292         PR gdb/17170
3293         * maint.c (count_symtabs_and_blocks): Handle NULL
3294         current_program_space.
3295         (report_command_stats): Check global enabled flag in addition to
3296         recorded enabled flag.
3297         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3298
3299 2014-07-16  Pedro Alves  <palves@redhat.com>
3300
3301         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3302
3303 2014-07-16  Tom Tromey  <tromey@redhat.com>
3304
3305         * target.h (struct target_ops) <to_delete_record>: Reformat
3306         comment.
3307
3308 2014-07-16  Tom Tromey  <tromey@redhat.com>
3309
3310         * target-delegates.c: Rebuild.
3311
3312 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3313
3314         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3315         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3316         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3317         (avr_pointer_to_address): Likewise.
3318         (avr_address_class_type_flags): New function.
3319         (avr_address_class_type_flags_to_name): Likewise.
3320         (avr_address_class_name_to_type_flags): Likewise.
3321         (avr_gdbarch_init): Set address_class_type_flags,
3322         address_class_type_flags_to_name and
3323         address_class_name_to_type_flags.
3324
3325 2014-07-15  Pedro Alves  <palves@redhat.com>
3326
3327         * linux-nat.c (kill_callback): Save errno and work with saved
3328         copy.
3329
3330 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3331
3332         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3333
3334 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3335
3336         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3337         breakpoint support correctly.
3338
3339 2014-07-14  Pedro Alves  <palves@redhat.com>
3340
3341         * utils.c (prompt_for_continue): Call target_terminal_ours.
3342
3343 2014-07-14  Pedro Alves  <palves@redhat.com>
3344
3345         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3346         catch_errors.  Don't re-enable stdin or notify observers where,
3347         and rethrow error.
3348         (fetch_inferior_event_wrapper): Delete.
3349
3350 2014-07-14  Pedro Alves  <palves@redhat.com>
3351
3352         PR gdb/17072
3353         * top.c: Include "inf-loop.h".
3354         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3355         field.
3356         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3357         was async before.
3358         (gdb_readline_wrapper): Store whether the target is async, and
3359         make it sync.
3360
3361 2014-07-14  Pedro Alves  <palves@redhat.com>
3362
3363         PR gdb/17072
3364         * top.c (gdb_readline_wrapper_line): Tweak comment.
3365         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3366         the input handler callback.
3367
3368 2014-07-14  Pedro Alves  <palves@redhat.com>
3369
3370         PR gdb/17072
3371         * main.c: Include event-top.h.
3372         (handle_command_errors): New function.
3373         (catch_command_errors, catch_command_errors_const): Use it.
3374
3375 2014-07-14  Pedro Alves  <palves@redhat.com>
3376
3377         * exceptions.c (catch_command_errors, catch_command_errors_const):
3378         Moved to main.c.
3379         * exceptions.h (catch_command_errors_ftype)
3380         (catch_command_errors_const_ftype): Moved to main.c.
3381         (catch_command_errors, catch_command_errors_const): Delete
3382         declarations.
3383         * main.c (catch_command_errors_ftype)
3384         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3385         (catch_command_errors, catch_command_errors_const)): Moved here
3386         from exceptions.c and make static.
3387
3388 2014-07-14  Pedro Alves  <palves@redhat.com>
3389
3390         * exceptions.c (print_any_exception): Delete.
3391         (catch_exceptions_with_msg): Use exception_print instead of
3392         print_any_exception.
3393         (catch_errors): Use exception_fprintf instead of
3394         print_any_exception.
3395         (catch_command_errors, catch_command_errors_const): Use
3396         exception_print instead of print_any_exception.
3397
3398 2014-07-14  Pedro Alves  <palves@redhat.com>
3399
3400         * infcall.c (run_inferior_call): Set 'sync_execution' while
3401         running the inferior call.
3402
3403 2014-07-14  Pedro Alves  <palves@redhat.com>
3404
3405         * value.c (value_contents_equal): Delete function.
3406         * value.h (value_contents_equal): Delete declaration.
3407
3408 2014-07-14  Tom Tromey  <tromey@redhat.com>
3409
3410         PR exp/17106:
3411         * gdbtypes.c (is_dynamic_type_internal): New function, from
3412         is_dynamic_type.
3413         (is_dynamic_type): Rewrite.
3414         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3415         (resolve_dynamic_struct): Likewise.
3416         (resolve_dynamic_type_internal): New function, from
3417         resolve_dynamic_type.
3418         (resolve_dynamic_type): Rewrite.
3419
3420 2014-07-14  Tom Tromey  <tromey@redhat.com>
3421
3422         * target.c (target_require_runnable): Also check record_stratum.
3423         Update comment.
3424
3425 2014-07-11  Yao Qi  <yao@codesourcery.com>
3426
3427         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3428         thumb_instruction_restores_sp return true.
3429
3430 2014-07-11  Yao Qi  <yao@codesourcery.com>
3431
3432         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3433         (thumb_in_function_epilogue_p): Call
3434         thumb_instruction_restores_sp.
3435
3436 2014-07-11  Yao Qi  <yao@codesourcery.com>
3437
3438         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3439         'add sp, #imm'.
3440         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3441
3442 2014-07-11  Gary Benson  <gbenson@redhat.com>
3443
3444         * amd64-linux-nat.c (gdbcore.h): Remove include.
3445         (regset.h): Likewise.
3446         (nat/linux-btrace.h): Likewise.
3447         (btrace.h): Likewise.
3448         (gdb_assert.h): Likewise.
3449         (string.h): Likewise.
3450         (sys/uio.h): Likewise.
3451         (sys/debugreg.h): Likewise.
3452         (sys/syscall.h): Likewise.
3453         (sys/procfs.h): Likewise.
3454         (sys/user.h): Likewise.
3455         (asm/ptrace.h): Likewise.
3456         (i386-nat.h): Likewise.
3457         * i386-linux-nat.c (i386-nat.h): Likewise.
3458         (regset.h): Likewise.
3459         (target.h): Likewise.
3460         (linux-nat.h): Likewise.
3461         (nat/linux-btrace.h): Likewise.
3462         (btrace.h): Likewise.
3463         (gdb_assert.h): Likewise.
3464         (string.h): Likewise.
3465         (sys/uio.h): Likewise.
3466         (sys/user.h): Likewise.
3467         (sys/procfs.h): Likewise.
3468         (sys/reg.h): Likewise.
3469         (sys/debugreg.h): Likewise.
3470         (ORIG_EAX): Remove definition.
3471
3472 2014-07-11  Gary Benson  <gbenson@redhat.com>
3473
3474         * i386-linux-nat.h: New file.
3475         * x86-linux-nat.h: Likewise.
3476         * x86-linux-nat.c: Likewise.
3477         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3478         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3479         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3480         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3481         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3482         (PTRACE_SETREGSET): Likewise.
3483         (arch_lwp_info): Now in x86-linux-nat.c.
3484         (have_ptrace_getregset): Now in x86-linux-nat.h.
3485         (x86_linux_dr_get): Now in x86-linux-nat.c.
3486         (x86_linux_dr_set): Likewise.
3487         (x86_linux_dr_get_addr): Likewise.
3488         (x86_linux_dr_get_control): Likewise.
3489         (x86_linux_dr_get_status): Likewise.
3490         (update_debug_registers_callback): Likewise.
3491         (x86_linux_dr_set_control): Likewise.
3492         (x86_linux_dr_set_addr): Likewise.
3493         (x86_linux_prepare_to_resume): Likewise.
3494         (x86_linux_new_thread): Likewise.
3495         (x86_linux_new_fork): Likewise.
3496         (x86_linux_get_thread_area): Likewise.
3497         (super_post_startup_inferior): Likewise.
3498         (x86_linux_child_post_startup_inferior): Likewise.
3499         (AMD64_LINUX_USER64_CS): Likewise.
3500         (AMD64_LINUX_X32_DS): Likewise.
3501         (x86_linux_read_description): Likewise.
3502         (x86_linux_enable_btrace): Likewise.
3503         (x86_linux_disable_btrace): Likewise.
3504         (x86_linux_teardown_btrace): Likewise.
3505         (x86_linux_read_btrace): Likewise.
3506         (x86_linux_create_target): Likewise.
3507         (x86_linux_add_target): Likewise.
3508         * i386-linux-nat.c (x86-linux-nat.h): New include.
3509         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3510         (PTRACE_SETREGSET): Likewise.
3511         (arch_lwp_info): Now in x86-linux-nat.c.
3512         (have_ptrace_getregset): Now in x86-linux-nat.h.
3513         (x86_linux_dr_get): Now in x86-linux-nat.c.
3514         (x86_linux_dr_set): Likewise.
3515         (x86_linux_dr_get_addr): Likewise.
3516         (x86_linux_dr_get_control): Likewise.
3517         (x86_linux_dr_get_status): Likewise.
3518         (update_debug_registers_callback): Likewise.
3519         (x86_linux_dr_set_control): Likewise.
3520         (x86_linux_dr_set_addr): Likewise.
3521         (x86_linux_prepare_to_resume): Likewise.
3522         (x86_linux_new_thread): Likewise.
3523         (x86_linux_new_fork): Likewise.
3524         (x86_linux_get_thread_area): Likewise.
3525         (super_post_startup_inferior): Likewise.
3526         (x86_linux_child_post_startup_inferior): Likewise.
3527         (AMD64_LINUX_USER64_CS): Likewise.
3528         (AMD64_LINUX_X32_DS): Likewise.
3529         (x86_linux_read_description): Likewise.
3530         (x86_linux_enable_btrace): Likewise.
3531         (x86_linux_disable_btrace): Likewise.
3532         (x86_linux_teardown_btrace): Likewise.
3533         (x86_linux_read_btrace): Likewise.
3534         (x86_linux_create_target): Likewise.
3535         (x86_linux_add_target): Likewise.
3536
3537 2014-07-11  Gary Benson  <gbenson@redhat.com>
3538
3539         * amd64-linux-nat.c: Comment and whitespace changes.
3540         * i386-linux-nat.c: Comment and whitespace changes.
3541
3542 2014-07-11  Gary Benson  <gbenson@redhat.com>
3543
3544         * amd64-linux-nat.c (x86_linux_create_target): New function.
3545         (x86_linux_add_target): Likewise.
3546         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3547         * i386-linux-nat.c (x86_linux_create_target): New function.
3548         (x86_linux_add_target): Likewise.
3549         (_initialize_i386_linux_nat): Delegate to the above new functions.
3550
3551 2014-07-11  Gary Benson  <gbenson@redhat.com>
3552
3553         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3554         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3555         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3556         (ps_get_thread_area): Delegate to the above.
3557
3558 2014-07-11  Gary Benson  <gbenson@redhat.com>
3559
3560         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3561         x86_linux_read_description.  All uses updated.  amd64-specific
3562         code conditionalized.  Conditionalized i386-specific code added.
3563         Redundant cast removed.
3564         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3565         x86_linux_read_description.  All uses updated.  i386-specific
3566         code conditionalized.  Conditionalized amd64-specific code added.
3567         One sizeof replaced with the actual type it is describing.
3568
3569 2014-07-11  Gary Benson  <gbenson@redhat.com>
3570
3571         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3572         x86_linux_dr_get.  All uses updated.
3573         (amd64_linux_dr_set): Renamed to
3574         x86_linux_dr_set.  All uses updated.
3575         (amd64_linux_dr_get_addr): Renamed to
3576         x86_linux_dr_get_addr.  All uses updated.
3577         (amd64_linux_dr_get_control): Renamed to
3578         x86_linux_dr_get_control.  All uses updated.
3579         (amd64_linux_dr_get_status): Renamed to
3580         x86_linux_dr_get_status.  All uses updated.
3581         (amd64_linux_dr_set_control): Renamed to
3582         x86_linux_dr_set_control.  All uses updated.
3583         (amd64_linux_dr_set_addr): Renamed to
3584         x86_linux_dr_set_addr.  All uses updated.
3585         (amd64_linux_prepare_to_resume): Renamed to
3586         x86_linux_prepare_to_resume.  All uses updated.
3587         (amd64_linux_new_thread): Renamed to
3588         x86_linux_new_thread.  All uses updated.
3589         (amd64_linux_new_fork): Renamed to
3590         x86_linux_new_fork.  All uses updated.
3591         (amd64_linux_child_post_startup_inferior): Renamed to
3592         x86_linux_child_post_startup_inferior.  All uses updated.
3593         (amd64_linux_enable_btrace): Renamed to
3594         x86_linux_enable_btrace.  All uses updated.
3595         (amd64_linux_disable_btrace): Renamed to
3596         x86_linux_disable_btrace.  All uses updated.
3597         (amd64_linux_teardown_btrace): Renamed to
3598         x86_linux_teardown_btrace.  All uses updated.
3599         (amd64_linux_read_btrace): Renamed to
3600         x86_linux_read_btrace.  All uses updated.
3601         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3602         x86_linux_dr_get.  All uses updated.
3603         (i386_linux_dr_set): Renamed to
3604         x86_linux_dr_set.  All uses updated.
3605         (i386_linux_dr_get_addr): Renamed to
3606         x86_linux_dr_get_addr.  All uses updated.
3607         (i386_linux_dr_get_control): Renamed to
3608         x86_linux_dr_get_control.  All uses updated.
3609         (i386_linux_dr_get_status): Renamed to
3610         x86_linux_dr_get_status.  All uses updated.
3611         (i386_linux_dr_set_control): Renamed to
3612         x86_linux_dr_set_control.  All uses updated.
3613         (i386_linux_dr_set_addr): Renamed to
3614         x86_linux_dr_set_addr.  All uses updated.
3615         (i386_linux_prepare_to_resume): Renamed to
3616         x86_linux_prepare_to_resume.  All uses updated.
3617         (i386_linux_new_thread): Renamed to
3618         x86_linux_new_thread.  All uses updated.
3619         (i386_linux_new_fork): Renamed to
3620         x86_linux_new_fork.  All uses updated.
3621         (i386_linux_child_post_startup_inferior): Renamed to
3622         x86_linux_child_post_startup_inferior.  All uses updated.
3623         (i386_linux_enable_btrace): Renamed to
3624         x86_linux_enable_btrace.  All uses updated.
3625         (i386_linux_disable_btrace): Renamed to
3626         x86_linux_disable_btrace.  All uses updated.
3627         (i386_linux_teardown_btrace): Renamed to
3628         x86_linux_teardown_btrace.  All uses updated.
3629         (i386_linux_read_btrace): Renamed to
3630         x86_linux_read_btrace.  All uses updated.
3631
3632 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3633
3634         * remote.c (extended_remote_post_attach): New function.
3635         (init_extended_remote_ops): Install it as to_post_attach method.
3636
3637 2014-07-09  Pedro Alves  <palves@redhat.com>
3638
3639         * infcmd.c (attach_command_post_wait): Don't call
3640         target_terminal_inferior here.
3641         (attach_command): Call it here instead.
3642
3643 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3644
3645         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3646         field.
3647         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3648         from varobj.c, with additional checks.
3649         (c_varobj_ops): Fill in is_path_expr_parent field.
3650         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3651         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3652         field.
3653         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3654         ops method.
3655         (varobj_default_is_path_expr_parent): New function.
3656         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3657         (varobj_default_is_path_expr_parent): Declare new function.
3658
3659 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3660
3661         * infcmd.c (finish_backward): Turn internal error into normal error.
3662
3663 2014-07-07  Pedro Alves  <palves@redhat.com>
3664
3665         PR gdb/17096
3666         * remote.c (async_handle_remote_sigint)
3667         (async_handle_remote_sigint_twice): Call
3668         gdb_call_async_signal_handler instead of
3669         mark_async_signal_handler.
3670
3671 2014-07-07  Tom Tromey  <tromey@redhat.com>
3672
3673         * target-delegates.c: Rebuild.
3674         * target.c (target_info_record): Remove.
3675         * record.c (info_record_command): Unconditionally call
3676         to_info_record.
3677         * target.h (struct target_ops) <to_info_record>: Use
3678         TARGET_DEFAULT_IGNORE.
3679         (target_info_record): Remove.
3680
3681 2014-07-07  Tom Tromey  <tromey@redhat.com>
3682
3683         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3684         TARGET_DEFAULT_NORETURN.
3685         * target.c (generic_tls_error): New function.
3686         (target_translate_tls_address): Don't search target stack.
3687         * target-delegates.c: Rebuild.
3688         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3689         stack.
3690         * linux-thread-db.c (thread_db_get_thread_local_address):
3691         Unconditionally call beneath target.
3692
3693 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3694
3695         * cli/cli-logging.c (pop_output_files): Assign targerr to
3696         gdb_stdtargerr.
3697
3698 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3699
3700         * MAINTAINERS (Write After Approval): Update my email address.
3701
3702 2014-07-02  Gary Benson  <gbenson@redhat.com>
3703
3704         * proc-service.c (ps_xfer_memory): Update comment.
3705         (ps_pstop): Remove unused function.
3706         (ps_pcontinue): Likewise.
3707         (ps_lstop): Likewise.
3708         (ps_lcontinue): Likewise.
3709         (ps_lgetxregsize): Likewise.
3710         (ps_lgetxregs): Likewise.
3711         (ps_lsetxregs): Likewise.
3712         (ps_plog): Likewise.
3713         (ps_ptread): Likewise.
3714         (ps_ptwrite): Likewise.
3715
3716 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3717
3718         * dwarf2read.c (add_array_cv_type): New function.
3719         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3720         (read_tag_volatile_type): Likewise.
3721
3722 2014-07-01  Tom Tromey  <tromey@redhat.com>
3723
3724         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3725         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3726         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3727         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3728         * command.h (cmd_cfunc_ftype): Move earlier.
3729         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3730         (add_com, add_info): Use cmd_cfunc_ftype.
3731
3732 2014-06-30  Tom Tromey  <tromey@redhat.com>
3733
3734         * symtab.c (operator_chars): Make parameters and return type
3735         const.
3736         (file_matches): Make "files" const.
3737         (struct search_symbols_data) <files>: Now const.
3738         (search_symbols): Make "regexp" and "files" parameters const.
3739         Update.
3740         (symtab_symbol_info): Remove cast.
3741         (rbreak_command): Update.
3742         * symtab.h (search_symbols): Update.
3743
3744 2014-06-27  Yao Qi  <yao@codesourcery.com>
3745
3746         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3747         Change parameter type to 'struct thread_info *'.  Caller
3748         updated.
3749         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3750         Update declaration.
3751         * dummy-frame.c (struct dummy_frame_id): New.
3752         (dummy_frame_id_eq): New function.
3753         (struct dummy_frame) <id>: Change its type to 'struct
3754         dummy_frame_id'.
3755         (dummy_frame_push): Add parameter ptid and save it in
3756         dummy_frame_id.
3757         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3758         inferior_ptid.
3759         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3760         to inferior_ptid.
3761         (lookup_dummy_frame): Change parameter type to 'struct
3762         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3763         instead of frame_id_eq.
3764         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3765         Update comments.  Compose dummy_frame_id and pass it to
3766         lookup_dummy_frame.
3767         (dummy_frame_discard): Add parameter ptid.
3768         (dummy_frame_sniffer): Compose dummy_frame_id and call
3769         dummy_frame_id_eq instead of frame_id_eq.
3770         (fprint_dummy_frames): Print ptid.
3771         * dummy-frame.h: Remove comments.
3772         (dummy_frame_push): Add ptid in declaration.
3773         (dummy_frame_pop, dummy_frame_discard): Likewise.
3774
3775 2014-06-26  Tom Tromey  <tromey@redhat.com>
3776
3777         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3778         * command.h (error_no_arg): Update.
3779
3780 2014-06-26  Tom Tromey  <tromey@redhat.com>
3781
3782         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3783         (do_show_command): Make "arg" const.
3784         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3785
3786 2014-06-26  Tom Tromey  <tromey@redhat.com>
3787
3788         * record-full.c (record_full_get_bookmark): Make "args" const.
3789         (record_full_goto_bookmark): Make "raw_bookmark" const.
3790         * record.c (record_goto): New function.
3791         (cmd_record_goto): Use it.  Now static.
3792         * record.h (record_goto): Declare.
3793         (cmd_record_goto): Remove declaration.
3794         * target-delegates.c: Rebuild.
3795         * target.h (struct target_ops) <to_get_bookmark,
3796         to_goto_bookmark>: Make parameter const.
3797
3798 2014-06-26  Tom Tromey  <tromey@redhat.com>
3799
3800         * defs.h (generic_load): Update.
3801         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3802         * monitor.c (monitor_load): Make "args" const.
3803         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3804         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3805         const.
3806         (mips_load): Make "file" const.
3807         * remote-sim.c (gdbsim_load): Make "args" const.
3808         * remote.c (remote_load): Make "name" const.
3809         * symfile.c (generic_load): Make "args" const.
3810         * target-delegates.c: Rebuild.
3811         * target.c (target_load): Make "arg" const.
3812         (debug_to_load): Make "args" const.
3813         * target.h (struct target_ops) <to_load>: Make parameter const.
3814         (target_load): Update.
3815
3816 2014-06-26  Tom Tromey  <tromey@redhat.com>
3817
3818         PR symtab/16902:
3819         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3820         (dwarf2_physname, read_partial_die)
3821         (guess_partial_die_structure_name, fixup_partial_die)
3822         (guess_full_die_structure_name, anonymous_struct_prefix)
3823         (dwarf2_name): Use per-BFD obstack.
3824
3825 2014-06-26  Yao Qi  <yao@codesourcery.com>
3826
3827         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3828         dummyframe and this_id into inner block below.
3829
3830 2014-06-26  Yao Qi  <yao@codesourcery.com>
3831
3832         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3833         with "signal_pass[0]" in the initialization of signal_pass.
3834
3835 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3836
3837         * record-btrace.c (record_btrace_generating_corefile)
3838         (record_btrace_prepare_to_generate_core)
3839         (record_btrace_done_generating_core): New.
3840         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3841         (record_btrace_store_registers, record_btrace_prepare_to_store):
3842         Forward request when generating a core file.
3843         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3844         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3845         to_done_generating_core.
3846
3847 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3848
3849         * target.h (target_ops) <to_prepare_to_generate_core>
3850         <to_done_generating_core>: New.
3851         (target_prepare_to_generate_core, target_done_generating_core): New.
3852         * target.c (target_prepare_to_generate_core)
3853         (target_done_generating_core): New.
3854         * target-delegates.c: Regenerate.
3855         * gcore.c: (write_gcore_file): Rename to ...
3856         (write_gcore_file_1): ...this.
3857         (write_gcore_file): Call target_prepare_to_generate_core
3858         and target_done_generating_core.
3859
3860 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3861
3862         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3863         * gcore.c (write_gcore_file): Free memory returned from
3864         make_corefile_notes.
3865         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3866         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3867
3868 2014-06-24  Yao Qi  <yao@codesourcery.com>
3869
3870         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3871         (arm_linux_init_abi): Set skip_trampoline_code with
3872         gdbarch_skip_trampoline_code instead of
3873         find_solib_trampoline_target.
3874
3875 2014-06-24  Yao Qi  <yao@codesourcery.com>
3876
3877         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3878         arm_skip_bx_reg returns non-zero.
3879
3880 2014-06-24  Yao Qi  <yao@codesourcery.com>
3881
3882         * arm-tdep.c (arm_skip_bx_reg): New function.
3883         (arm_skip_stub): Call arm_skip_bx_reg.
3884
3885 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3886
3887         * MAINTAINERS: Add myself as write-after-approval maintainer.
3888
3889 2014-06-23  Pedro Alves  <palves@redhat.com>
3890
3891         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3892         DR_CONTROL before setting DR0..DR3.
3893         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3894         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3895         bits of DR_CONTROL related to the debug register slot being
3896         disabled.  If all slots are vacant, clear local slowdown as well,
3897         and assert DR_CONTROL is 0.
3898
3899 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3900
3901         * python/lib/gdb/command/xmethods.py
3902         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3903         current progspace only if the string "progspace" matches LOCUS_RE.
3904
3905 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3906
3907         Fix --with-system-readline with readline-6.3 patch 5.
3908         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3909         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3910         types.
3911
3912 2014-06-20  Tom Tromey  <tromey@redhat.com>
3913
3914         * dwarf2read.c (dw2_get_real_path): Use correct type in
3915         OBSTACK_CALLOC.
3916         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3917
3918 2014-06-20  Gary Benson  <gbenson@redhat.com>
3919
3920         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3921         * common/glibc_thread_db.h: Likewise.
3922         * common/i386-cpuid.h: Likewise.
3923         * common/i386-gcc-cpuid.h: Likewise.
3924         * common/linux-btrace.h: Likewise.
3925         * common/linux-osdata.h: Likewise.
3926         * common/linux-procfs.h: Likewise.
3927         * common/linux-ptrace.h: Likewise.
3928         * common/mips-linux-watch.h: Likewise.
3929         * common/linux-btrace.c: Moved to nat.
3930         * common/linux-osdata.c: Likewise.
3931         * common/linux-procfs.c: Likewise.
3932         * common/linux-ptrace.c: Likewise.
3933         * common/mips-linux-watch.c: Likewise.
3934         * nat/gdb_thread_db.h: Moved from common.
3935         * nat/glibc_thread_db.h: Likewise.
3936         * nat/i386-cpuid.h: Likewise.
3937         * nat/i386-gcc-cpuid.h: Likewise.
3938         * nat/linux-btrace.c: Likewise.
3939         * nat/linux-btrace.h: Likewise.
3940         * nat/linux-osdata.c: Likewise.
3941         * nat/linux-osdata.h: Likewise.
3942         * nat/linux-procfs.c: Likewise.
3943         * nat/linux-procfs.h: Likewise.
3944         * nat/linux-ptrace.c: Likewise.
3945         * nat/linux-ptrace.h: Likewise.
3946         * nat/mips-linux-watch.c: Likewise.
3947         * nat/mips-linux-watch.h: Likewise.
3948         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3949         (object file files): Reordered.
3950         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3951         of glibc_thread_db.h.
3952
3953 2014-06-20  Gary Benson  <gbenson@redhat.com>
3954
3955         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3956         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3957         (i386_dr_low): Likewise.
3958         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3959         (i386_dr_low_set_addr): Likewise.
3960         (i386_dr_low_get_addr): Likewise.
3961         (i386_dr_low_can_set_control): Likewise.
3962         (i386_dr_low_set_control): Likewise.
3963         (i386_dr_low_get_control): Likewise.
3964         (i386_dr_low_get_status): Likewise.
3965         (i386_get_debug_register_length): Likewise.
3966         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3967         (i386_dr_low): Likewise.
3968         * nat/i386-dregs.c (i386-low.h): Remove include.
3969         (i386-nat.h): Likewise.
3970         (nat/i386-dregs.h): New include.
3971         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3972         (i386_dr_low_set_addr): Likewise.
3973         (i386_dr_low_get_addr): Likewise.
3974         (i386_dr_low_can_set_control): Likewise.
3975         (i386_dr_low_set_control): Likewise.
3976         (i386_dr_low_get_control): Likewise.
3977         (i386_dr_low_get_status): Likewise.
3978         (i386_get_debug_register_length): Likewise.
3979         (debug_hw_points): Likewise.
3980
3981 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3982
3983         * Makefile.in (SFILES): Add d-exp.y.
3984         (YYFILES): Add d-exp.c.
3985         (YYOBJ): Add d-exp.o.
3986         (local-maintainer-clean): Delete d-exp.c.
3987         * d-exp.y: New file.
3988         * d-lang.h (d_parse): New declaration.
3989         (d_error): New declaration.
3990         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3991         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3992         PREC_ORDER operators.
3993         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3994
3995 2014-06-19  Yao Qi  <yao@codesourcery.com>
3996
3997         * gdbthread.h (any_running): Remove the declaration.
3998         * thread.c (any_running): Remove.
3999
4000 2014-06-19  Yao Qi  <yao@codesourcery.com>
4001
4002         * gdbthread.h (struct thread_info) <state>: Change its type to
4003         'enum thread_state'.  Update comments.
4004
4005 2014-06-19  Pedro Alves  <palves@redhat.com>
4006
4007         * gdbthread.h (ALL_THREADS): Delete.
4008         (ALL_NON_EXITED_THREADS): New macro.
4009         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4010         instead of ALL_THREADS.
4011         * infrun.c (find_thread_needs_step_over)
4012         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4013         instead of ALL_THREADS.
4014         * record-btrace.c (record_btrace_open)
4015         (record_btrace_stop_recording, record_btrace_close)
4016         (record_btrace_is_replaying, record_btrace_resume)
4017         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4018         * remote.c (append_pending_thread_resumptions): Likewise.
4019         * thread.c (thread_apply_all_command): Likewise.
4020
4021 2014-06-19  Gary Benson  <gbenson@redhat.com>
4022
4023         * i386-nat.c (i386_stopped_by_watchpoint):
4024         Use i386_dr_stopped_by_watchpoint.
4025         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4026         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4027
4028 2014-06-19  Gary Benson  <gbenson@redhat.com>
4029
4030         * nat/i386-dregs.c: New file.
4031         * Makefile.in (i386-dregs.o): New rule.
4032         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4033         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4034         * config/i386/darwin.mh (NATDEPFILES): Likewise.
4035         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4036         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4037         * config/i386/go32.mh (NATDEPFILES): Likewise.
4038         * config/i386/linux.mh (NATDEPFILES): Likewise.
4039         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4040         * config/i386/mingw.mh (NATDEPFILES): Likewise.
4041         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4042         * i386-nat.h (debug_hw_points): New declaration.
4043         * i386-nat.c (breakpoint.h): Remove include.
4044         (command.h): Likewise.
4045         (target.h): Likewise.
4046         (gdb_assert.h): Likewise.
4047         (debug_hw_points): Made nonstatic.
4048         (debug_printf): Now in i386-dregs.c.
4049         (TARGET_HAS_DR_LEN_8): Likewise.
4050         (DR_CONTROL_SHIFT): Likewise.
4051         (DR_CONTROL_SIZE): Likewise.
4052         (DR_RW_EXECUTE): Likewise.
4053         (DR_RW_WRITE): Likewise.
4054         (DR_RW_READ): Likewise.
4055         (DR_RW_IORW): Likewise.
4056         (DR_LEN_1): Likewise.
4057         (DR_LEN_2): Likewise.
4058         (DR_LEN_4): Likewise.
4059         (DR_LEN_8): Likewise.
4060         (DR_LOCAL_ENABLE_SHIFT): Likewise.
4061         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4062         (DR_ENABLE_SIZE): Likewise.
4063         (DR_LOCAL_SLOWDOWN): Likewise.
4064         (DR_GLOBAL_SLOWDOWN): Likewise.
4065         (DR_CONTROL_RESERVED): Likewise.
4066         (I386_DR_CONTROL_MASK): Likewise.
4067         (I386_DR_VACANT): Likewise.
4068         (I386_DR_LOCAL_ENABLE): Likewise.
4069         (I386_DR_GLOBAL_ENABLE): Likewise.
4070         (I386_DR_DISABLE): Likewise.
4071         (I386_DR_SET_RW_LEN): Likewise.
4072         (I386_DR_GET_RW_LEN): Likewise.
4073         (I386_DR_WATCH_HIT): Likewise.
4074         (i386_wp_op_t): Likewise.
4075         (i386_show_dr): Likewise.
4076         (i386_length_and_rw_bits): Likewise.
4077         (i386_insert_aligned_watchpoint): Likewise.
4078         (i386_remove_aligned_watchpoint): Likewise.
4079         (i386_handle_nonaligned_watchpoint): Likewise.
4080         (i386_update_inferior_debug_regs): Likewise.
4081         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4082         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4083         (i386_region_ok_for_watchpoint):
4084         Use i386_dr_region_ok_for_watchpoint.
4085         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4086
4087 2014-06-19  Gary Benson  <gbenson@redhat.com>
4088
4089         * i386-nat.c (i386_insert_hw_breakpoint): Use
4090         i386_insert_watchpoint.
4091         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4092
4093 2014-06-19  Gary Benson  <gbenson@redhat.com>
4094
4095         * i386-nat.c (i386_dr_show): Renamed to
4096         i386_show_dr and made static.  All uses updated.
4097         (i386_dr_length_and_rw_bits): Renamed to
4098         i386_length_and_rw_bits and made static.
4099         All uses updated.
4100         (i386_dr_insert_aligned_watchpoint): Renamed to
4101         i386_insert_aligned_watchpoint and made static.
4102         All uses updated.
4103         (i386_dr_remove_aligned_watchpoint): Renamed to
4104         i386_remove_aligned_watchpoint and made static.
4105         All uses updated.
4106         (i386_dr_update_inferior_debug_regs): Renamed to
4107         i386_update_inferior_debug_regs and made static.
4108         All uses updated.
4109         * nat/i386-dregs.h (i386_dr_show): Removed.
4110         (i386_dr_length_and_rw_bits): Likewise.
4111         (i386_dr_insert_aligned_watchpoint): Likewise.
4112         (i386_dr_remove_aligned_watchpoint): Likewise.
4113         (i386_dr_update_inferior_debug_regs): Likewise.
4114
4115 2014-06-19  Gary Benson  <gbenson@redhat.com>
4116
4117         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4118         * configure: Regenerate.
4119         * config.in: Likewise.
4120         * main.c (signal.h): New include.
4121         (setup_alternate_signal_stack): New function.
4122         (captured_main): Call the above.
4123         * cp-support.c (signal.h): New include.
4124         (catch_demangler_crashes): New flag.
4125         (SIGJMP_BUF): New define.
4126         (SIGSETJMP): Likewise.
4127         (SIGLONGJMP): Likewise.
4128         (gdb_demangle_jmp_buf): New static global.
4129         (gdb_demangle_attempt_core_dump): Likewise.
4130         (gdb_demangle_signal_handler): New function.
4131         (gdb_demangle): If catch_demangler_crashes is set, install the
4132         above signal handler before calling bfd_demangle, and restore
4133         the original signal handler afterwards.  Display the offending
4134         symbol and call demangler_warning the first time a segmentation
4135         fault is caught.
4136         (_initialize_cp_support): New maint set/show command.
4137
4138 2014-06-19  Gary Benson  <gbenson@redhat.com>
4139
4140         * utils.h (resource_limit_kind): New enum.
4141         (can_dump_core): New declaration.
4142         (warn_cant_dump_core): Likewise.
4143         (dump_core): Likewise.
4144         * utils.c (dump_core): Made nonstatic.  Added new
4145         parameter "limit_kind".
4146         (can_dump_core): Made nonstatic. Moved printing code to...
4147         (warn_cant_dump_core): New function.
4148         (can_dump_core_warn): Likewise.
4149         (internal_vproblem): Replace calls to can_dump_core with
4150         calls to can_dump_core_warn.  Supply new argument to each.
4151
4152 2014-06-19  Gary Benson  <gbenson@redhat.com>
4153
4154         * utils.h (demangler_vwarning): New declaration.
4155         (demangler_warning): Likewise.
4156         * utils.c (struct internal_problem)
4157         <user_settable_should_quit>: New field.
4158         <user_settable_should_dump_core>: Likewise
4159         (internal_error_problem): Add values for above new fields.
4160         (internal_warning_problem): Likewise.
4161         (demangler_warning_problem): New static global.
4162         (demangler_vwarning): New function.
4163         (demangler_warning): Likewise.
4164         (add_internal_problem_command): Selectively add commands.
4165         (_initialize_utils): New internal problem command.
4166         * maint.c (maintenance_demangler_warning): New function.
4167         (_initialize_maint_cmds): New command.
4168
4169 2014-06-18  Tom Tromey  <tromey@redhat.com>
4170
4171         * f-valprint.c (info_common_command_for_block): Update.
4172         * symtab.h (struct general_symbol_info) <common_block>: Now
4173         const.
4174
4175 2014-06-18  Tom Tromey  <tromey@redhat.com>
4176
4177         * symtab.h (struct symtab) <blockvector>: Now const.
4178         * ada-lang.c (ada_add_global_exceptions): Update.
4179         * buildsym.c (augment_type_symtab): Update.
4180         * dwarf2read.c (dw2_lookup_symbol): Update.
4181         * jit.c (finalize_symtab): Update.
4182         * jv-lang.c (add_class_symtab_symbol): Update.
4183         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4184         Update.
4185         * objfiles.c (objfile_relocate1): Update.
4186         * psymtab.c (lookup_symbol_aux_psymtabs)
4187         (maintenance_check_psymtabs): Update.
4188         * python/py-symtab.c (stpy_global_block, stpy_static_block):
4189         Update.
4190         * spu-tdep.c (spu_catch_start): Update.
4191         * symmisc.c (dump_symtab_1): Update.
4192         * symtab.c (lookup_global_symbol_from_objfile)
4193         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4194         (basic_lookup_transparent_type_quick)
4195         (basic_lookup_transparent_type, find_pc_sect_symtab)
4196         (find_pc_sect_line, search_symbols): Update.
4197         * block.c (find_block_in_blockvector): Make "bl" const.
4198         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4199         const.
4200         (blockvector_contains_pc): Make "bv" const.
4201         (block_for_pc_sect): Update.
4202         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4203         (blockvector_contains_pc): Update.
4204         * breakpoint.c (resolve_sal_pc): Update.
4205         * inline-frame.c (block_starting_point_at): Update.
4206
4207 2014-06-18  Tom Tromey  <tromey@redhat.com>
4208
4209         * completer.c (complete_line): Make "line_buffer" const.
4210         * completer.h (complete_line): Update.
4211
4212 2014-06-18  Tom Tromey  <tromey@redhat.com>
4213
4214         * symtab.c (add_macro_name): Remove unneeded cast.
4215
4216 2014-06-18  Tom Tromey  <tromey@redhat.com>
4217
4218         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4219         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4220
4221 2014-06-18  Tom Tromey  <tromey@redhat.com>
4222
4223         * probe.c (info_probes_for_ops): Make "arg" const.
4224         * probe.h (info_probes_for_ops): Update.
4225
4226 2014-06-18  Tom Tromey  <tromey@redhat.com>
4227
4228         * varobj.c (varobj_create): Update.
4229         * valops.c (value_of_this): Update.
4230         * tracepoint.c (add_local_symbols, scope_info): Update.
4231         * symtab.h (struct general_symbol_info) <block>: Now const.
4232         * symtab.c (skip_prologue_sal)
4233         (default_make_symbol_completion_list_break_on)
4234         (skip_prologue_using_sal): Update.
4235         * stack.h (iterate_over_block_locals)
4236         (iterate_over_block_local_vars): Update.
4237         * stack.c (print_frame_args): Update.
4238         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4239         parameter const.
4240         (get_selected_block): Make return type const.
4241         * python/py-frame.c (frapy_block): Update.
4242         * python/py-block.c (gdbpy_block_for_pc): Update.
4243         * p-exp.y (%union) <bval>: Now const.
4244         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4245         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4246         * m2-exp.y (%union) <bval>: Now const.
4247         * linespec.c (get_current_search_block): Make return type const.
4248         (create_sals_line_offset, find_label_symbols): Update.
4249         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4250         Update.
4251         (block_starting_point_at): Make "block" const.
4252         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4253         (check_exception_resume): Update.
4254         * guile/scm-frame.c (gdbscm_frame_block): Update.
4255         * guile/scm-block.c (gdbscm_lookup_block): Update.
4256         * frame.h (get_frame_block): Update.
4257         (get_selected_block): Make return type const.
4258         * frame.c (frame_id_inner): Update.
4259         * f-valprint.c (info_common_command_for_block)
4260         (info_common_command): Update.
4261         * dwarf2loc.c (dwarf2_find_location_expression)
4262         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4263         (locexpr_describe_location_piece): Update.
4264         * c-exp.y (%union) <bval>: Now const.
4265         * breakpoint.c (resolve_sal_pc): Update.
4266         * blockframe.c (get_frame_block):Make return type const.
4267         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4268         (block_innermost_frame): Update.
4269         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4270         (block_for_pc, block_for_pc_sect): Update.
4271         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4272         'pblock' const.
4273         (block_for_pc_sect, block_for_pc): Make return type const.
4274         * ax-gdb.c (gen_expr): Update.
4275         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4276         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4277         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4278         (ada_read_var_value): Update.
4279         * ada-exp.y (struct name_info) <block>: Now const.
4280         (%union): Likewise.
4281         (block_lookup): Constify.
4282
4283 2014-06-18  Gary Benson  <gbenson@redhat.com>
4284
4285         * nat/i386-dregs.h: New file.
4286         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4287         * i386-nat.h (i386-dregs.h): New include.
4288         (DR_FIRSTADDR): Now in i386-dregs.h.
4289         (DR_LASTADDR): Likewise.
4290         (DR_NADDR): Likewise.
4291         (DR_STATUS): Likewise.
4292         (DR_CONTROL): Likewise.
4293         (i386_debug_reg_state): Likewise.
4294         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4295
4296 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4297
4298         * breakpoint.c (set_longjmp_breakpoint): Call
4299         momentary_breakpoint_from_master with additional argument.
4300         (set_longjmp_breakpoint_for_call_dummy): Call
4301         momentary_breakpoint_from_master with additional argument.
4302         (set_std_terminate_breakpoint): Call
4303         momentary_breakpoint_from_master with additional argument.
4304         (momentary_breakpoint_from_master): Add argument to function
4305         definition and use it to initialize structure member flag.
4306         (clone_momentary_breakpoint): Call
4307         momentary_breakpoint_from_master with additional argument.
4308         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4309         member flags set in momentary_breakpoint_from_master.
4310
4311 2014-06-18  Gary Benson  <gbenson@redhat.com>
4312
4313         * i386-nat.c (i386_show_dr): Renamed to
4314         i386_dr_show and made nonstatic.  All uses updated.
4315         (i386_length_and_rw_bits): Renamed to
4316         i386_dr_length_and_rw_bits and made nonstatic.
4317         All uses updated.
4318         (i386_insert_aligned_watchpoint): Renamed to
4319         i386_dr_insert_aligned_watchpoint and made nonstatic.
4320         All uses updated.
4321         (i386_remove_aligned_watchpoint): Renamed to
4322         i386_dr_remove_aligned_watchpoint and made nonstatic.
4323         All uses updated.
4324         (i386_update_inferior_debug_regs): Renamed to
4325         i386_dr_update_inferior_debug_regs and made nonstatic.
4326         All uses updated.
4327
4328 2014-06-18  Gary Benson  <gbenson@redhat.com>
4329
4330         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4331         (i386_dr_low_can_set_control): Likewise.
4332         (i386_dr_low_set_addr): Likewise.
4333         (i386_dr_low_set_control): Likewise.
4334         (i386_dr_low_get_addr): Likewise.
4335         (i386_dr_low_get_status): Likewise.
4336         (i386_dr_low_get_control): Likewise.
4337         (i386_insert_aligned_watchpoint): Use new macros.
4338         (i386_update_inferior_debug_regs): Likewise.
4339         (i386_stopped_data_address): Likewise.
4340
4341 2014-06-18  Gary Benson  <gbenson@redhat.com>
4342
4343         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4344         New parameter.  All uses updated.
4345
4346 2014-06-18  Gary Benson  <gbenson@redhat.com>
4347
4348         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4349         All uses updated.
4350
4351 2014-06-18  Gary Benson  <gbenson@redhat.com>
4352
4353         * i386-nat.c (debug_printf): New macro.
4354         (i386_get_debug_register_length): Likewise.
4355         (TARGET_HAS_DR_LEN_8): Use above macro.
4356         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4357         and printf_unfiltered.  Use phex to format values.
4358
4359 2014-06-18  Gary Benson  <gbenson@redhat.com>
4360
4361         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4362         Make const.
4363
4364 2014-06-18  Gary Benson  <gbenson@redhat.com>
4365
4366         * i386-nat.c: Comment changes.
4367
4368 2014-06-18  Gary Benson  <gbenson@redhat.com>
4369
4370         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4371
4372 2014-06-18  Gary Benson  <gbenson@redhat.com>
4373
4374         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4375         (i386_insert_aligned_watchpoint): Likewise.
4376         (i386_remove_aligned_watchpoint): Likewise.
4377         (i386_handle_nonaligned_watchpoint): Likewise.
4378
4379 2014-06-18  Gary Benson  <gbenson@redhat.com>
4380
4381         * i386-nat.c: Whitespace changes.
4382
4383 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4384
4385         * MAINTAINERS: Update Roland McGrath's email address.
4386         Thanks to Sergio Durigan Junior for pointing out that he left
4387         Red Hat a while ago, and giving me a current address.
4388
4389 2014-06-17  Tom Tromey  <tromey@redhat.com>
4390
4391         * utils.h (savestring): Remove declaration.
4392
4393 2014-06-17  Tom Tromey  <tromey@redhat.com>
4394
4395         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4396
4397 2014-06-16  Keith Seitz  <keiths@redhat.com>
4398
4399         PR mi/15863
4400         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4401         to update the varobj if inferior_ptid is null_ptid.
4402
4403 2014-06-16  Tom Tromey  <tromey@redhat.com>
4404
4405         * target.h (struct target_ops) <to_info_proc>: Make parameter
4406         const.
4407         (target_info_proc): Update.
4408         * target.c (target_info_proc): Make "args" const.
4409         * procfs.c (procfs_info_proc): Update.
4410         * linux-tdep.c (linux_info_proc): Update.
4411         (linux_core_info_proc_mappings): Make "args" const.
4412         (linux_core_info_proc): Update.
4413         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4414         * gdbarch.c: Rebuild.
4415         * gdbarch.h: Rebuild.
4416         * corelow.c (core_info_proc): Update.
4417
4418 2014-06-16  Tom Tromey  <tromey@redhat.com>
4419
4420         * target.h (struct target_ops) <to_disconnect>: Make parameter
4421         const.
4422         (target_disconnect): Update.
4423         * target.c (target_disconnect): Make "args" const.
4424         * target-delegates.c: Rebuild.
4425         * remote.c (remote_disconnect): Update.
4426         * record.h (record_disconnect): Update.
4427         * record.c (record_disconnect): Update.
4428         * inf-child.c (inf_child_disconnect): Update.
4429
4430 2014-06-16  Tom Tromey  <tromey@redhat.com>
4431
4432         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4433         * target.c (debug_to_rcmd, default_rcmd): Update.
4434         * target-delegates.c: Rebuild.
4435         * remote.c (remote_rcmd): Update.
4436         * monitor.c (monitor_rcmd): Update.
4437
4438 2014-06-16  Pedro Alves  <palves@redhat.com>
4439
4440         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4441         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4442         have OBJF_SHARED set.
4443         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4444         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4445         instead of OBJF_USERLOADED.
4446         * objfiles.h (OBJF_SHARED): Update comment.
4447         (userloaded_objfile_contains_address_p): Rename to ...
4448         (shared_objfile_contains_address_p): ... this, and update
4449         comments.
4450         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4451         new objfile.
4452         (remove_symbol_file_command): Skip objfiles that don't have
4453         OBJF_SHARED set.
4454
4455 2014-06-16  Tom Tromey  <tromey@redhat.com>
4456
4457         * minsyms.h (prim_record_minimal_symbol)
4458         (prim_record_minimal_symbol_and_info): Update comments.
4459
4460 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4461
4462         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4463         or --without-guile, according to how GDB was built.
4464
4465 2014-06-13  Tom Tromey  <tromey@redhat.com>
4466
4467         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4468         to help_list.
4469         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4470         to help_list.
4471         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4472         help_list.
4473         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4474         help_list.Pass all_commands, not -1, to help_list.
4475         * cli/cli-dump.c (dump_command, append_command)
4476         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4477         (binary_dump_command, binary_append_command): Pass all_commands,
4478         not -1, to help_list.
4479         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4480         -1, to help_list.
4481         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4482         -1, to help_list.
4483         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4484         help_list.
4485         * top.c (set_history): Pass all_commands, not -1, to help_list.
4486         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4487         all_commands, not -1, to help_list.
4488         * symfile.c (overlay_command): Pass all_commands, not -1, to
4489         help_list.
4490         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4491         help_list.
4492         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4493         help_list.
4494         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4495         -1, to help_list.
4496         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4497         not -1, to help_list.
4498         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4499         not -1, to help_list.
4500         * maint.c (maintenance_command, maintenance_info_command)
4501         (maintenance_print_command, maintenance_set_cmd): Pass
4502         all_commands, not -1, to help_list.
4503         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4504         help_list.
4505         * language.c (set_check): Pass all_commands, not -1, to help_list.
4506         * infcmd.c (unset_command): Pass all_commands, not -1, to
4507         help_list.
4508         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4509         help_list.
4510         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4511         help_list.
4512         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4513         help_list.
4514         * breakpoint.c (save_command): Pass all_commands, not -1, to
4515         help_list.
4516         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4517         all_commands, not -1, to help_list.
4518
4519 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4520
4521         * regcache.c (struct register_to_invalidate): New structure.
4522         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4523         functions.
4524         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4525
4526 2014-06-12  Yao Qi  <yao@codesourcery.com>
4527
4528         * varobj.c (varobj_get_num_children): Call
4529         varobj_is_dynamic_p.
4530         (varobj_list_children): Likewise.
4531         (varobj_update): Likewise.  Update comments.
4532
4533 2014-06-12  Yao Qi  <yao@codesourcery.com>
4534
4535         * varobj.c (varobj_pretty_printed_p): Rename to ...
4536         (varobj_is_dynamic_p): ... this.  New function.
4537         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4538         (varobj_is_dynamic_p): Declare.
4539         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4540         (mi_print_value_p, varobj_update_one): Likewise.
4541
4542 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4543             Yao Qi  <yao@codesourcery.com>
4544
4545         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4546         (varobj_get_iterator): Wrap up code for pretty-printer by
4547         "#if HAVE_PYTHON" and "#endif".
4548         (update_dynamic_varobj_children): Likewise.
4549
4550 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4551             Yao Qi  <yao@codesourcery.com>
4552
4553         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4554         gdb_python_initialized is false.  Move some code from varobj.c.
4555         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4556         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4557         (struct varobj_item): Moved to varobj-iter.h".
4558         (varobj_clear_saved_item): New function.
4559         (update_dynamic_varobj_children): Move python-related code to
4560         py-varobj.c.
4561         (free_variable): Call varobj_clear_saved_item and
4562         varobj_iter_delete.
4563
4564 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4565             Yao Qi  <yao@codesourcery.com>
4566
4567         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4568         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4569         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4570         (py-varobj.o): New rule.
4571         * python/py-varobj.c: New file.
4572         * python/python-internal.h (py_varobj_get_iterator): Declare.
4573         * varobj-iter.h: New file.
4574         * varobj.c: Include "varobj-iter.h"
4575         (struct varobj) <child_iter>: Change its type from "PyObject *"
4576         to "struct varobj_iter *".
4577         <saved_item>: Likewise.
4578         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4579         [HAVE_PYTHON] (varobj_get_iterator): New function.
4580         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4581         python-specific code to python/py-varobj.c.
4582         (install_visualizer): Call varobj_iter_delete instead of
4583         Py_XDECREF.
4584         * varobj.h (varobj_ensure_python_env): Declare.
4585
4586 2014-06-12  Yao Qi  <yao@codesourcery.com>
4587
4588         * varobj.c (struct varobj_item): New structure.
4589         (create_child_with_value): Update declaration.
4590         (varobj_add_child): Replace arguments 'name' and 'value' with
4591         'item'.  All callers updated.
4592         (install_dynamic_child): Likewise.
4593         (update_dynamic_varobj_children): Likewise.
4594         (varobj_add_child): Likewise.
4595         (create_child_with_value): Likewise.
4596
4597 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4598
4599         * NEWS: Create a new section for the next release branch.
4600         Rename the section of the current branch, now that it has
4601         been cut.
4602
4603 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4604
4605         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4606         * version.in: Bump version to 7.8.50.DATE-cvs.
4607
4608 2014-06-11  Pedro Alves  <palves@redhat.com>
4609
4610         PR remote/17028
4611         * ser-mingw.c (net_windows_socket_check_pending): New function.
4612         (net_windows_select_thread): Ignore spurious wakeups.  Use
4613         net_windows_socket_check_pending.
4614         (net_windows_wait_handle): Check for pending events with
4615         ioctlsocket, through net_windows_socket_check_pending, instead of
4616         checking the socket's event.
4617
4618 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4619
4620         * python/python-internal.h (gdb_PyObject_GetAttrString)
4621         (gdb_PyObject_HasAttrString): New inline function definitions.
4622         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4623         char * of the second argument to PyObject_GetAttrString.
4624
4625 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4626
4627         * serial.c (serial_write): Fix index of character to be printed
4628         in call to serial_logchar when serial debug traces are enabled.
4629
4630 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4631
4632         * gdbtypes (resolve_dynamic_range): Add function description.
4633
4634 2014-06-09  Pedro Alves  <palves@redhat.com>
4635
4636         * linux-nat.c (linux_child_follow_fork): Initialize status with
4637         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4638         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4639         state.
4640
4641 2014-06-09  Gary Benson  <gbenson@redhat.com>
4642
4643         * common/signals.c (gdb_signal_from_host): Reorder to separate
4644         the always-available ANSI-standard signals from the signals that
4645         require checking.
4646         (do_gdb_signal_to_host): Likewise.
4647         * proc-events.c (signal_table): Likewise.
4648
4649 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4650
4651         * common/linux-ptrace.c (linux_disable_event_reporting): New
4652         function.
4653         * common/linux-ptrace.h (linux_disable_event_reporting): New
4654         declaration.
4655         * linux-nat.c (linux_child_follow_fork): Do a single step before
4656         detach.
4657
4658 2014-06-07  Keith Seitz  <keiths@redhat.com>
4659
4660         Revert:
4661         PR c++/16253
4662         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4663         from symbol_matches_domain in symtab.c. All local callers
4664         of symbol_matches_domain updated.
4665         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4666         search STRUCT_DOMAIN.
4667         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4668         independently.  standard_lookup will do that automatically.
4669         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4670         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4671         (cp_lookup_symbol_in_namespace): Likewise.
4672         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4673         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4674         may return a STRUCT_DOMAIN match.
4675         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4676         * cp-support.c: Include language.h.
4677         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4678         VAR_DOMAIN.
4679         * psymtab.c (match_partial_symbol): Compare the requested
4680         domain with the symbol's domain directly.
4681         (lookup_partial_symbol): Likewise.
4682         * symtab.c (lookup_symbol_in_language): Explain when/why
4683         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4684         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4685         appropriate languages.
4686         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4687         and moved to ada-lang.c
4688         (lookup_block_symbol): Explain that this function only returns
4689         symbol matching the requested DOMAIN.
4690         Compare the requested domain with the symbol's domain directly.
4691         (iterate_over_symbols): Compare the requested domain with the
4692         symbol's domain directly.
4693         * symtab.h (symbol_matches_domain): Remove.
4694
4695 2014-06-06  Doug Evans  <xdje42@gmail.com>
4696
4697         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4698         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4699         (gdbscm_guile_version_is_at_least): Declare.
4700         (gdbscm_scm_string_to_int): Declare.
4701         * guile/guile.c (gdbscm_guile_major_version): New global.
4702         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4703         (guile_datadir): New static global.
4704         (gdbscm_guile_data_directory): New function.
4705         (initialize_scheme_side): Update.
4706         (misc_guile_functions): Add guile-data-directory.
4707         (initialize_gdb_module): Fetch guile version number.
4708         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4709         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4710         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4711         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4712         comments.
4713         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4714         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4715         * guile/scm-value.c (gdbscm_value_to_string): Only call
4716         scm_port_conversion_strategy if Guile version >= 2.0.6.
4717
4718 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4719
4720         * main.c (print_gdb_help): Add -q and --silent.
4721
4722 2014-06-06  Gary Benson  <gbenson@redhat.com>
4723
4724         * common/signals.c: Remove preprocessor conditionals for
4725         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4726         SIGSEGV and SIGTERM.
4727         * proc-events.c: Likewise.
4728
4729 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4730
4731         * symfile.c (symfile_free_objfile): Remove restriction to
4732         OBJF_USERLOADED.
4733         * symfile-mem.c (symbol_file_add_from_memory): Call
4734         add_target_sections_of_objfile.
4735
4736 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4737
4738         * guile/scm-value.c (gdbscm_history_append_x): Use
4739         'vlscm_get_value_smob_arg_unsafe' instead of
4740         'vlscm_scm_to_value'.
4741
4742 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4743
4744         PR mi/15806
4745         * utils.c (printchar): Don't escape at all if quoter is NUL.
4746         Update function documentation to clarify effect of parameter
4747         QUOTER.
4748         * remote.c (escape_buffer): Pass '\\' as the quoter to
4749         fputstrn_unfiltered.
4750         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4751         generate the output.
4752         (mi_solib_unloaded): Same.
4753
4754 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4755
4756         * development.sh: Delete.
4757         * Makefile.in (config.status): Adjust dependency on development.sh.
4758         * configure.ac: Adjust development.sh source call.
4759         * configure: Regenerate.
4760
4761 2014-06-04  Doug Evans  <xdje42@gmail.com>
4762
4763         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4764         is_scheme_bkpt, spec.
4765         (bpscm_make_breakpoint_smob): Initialize new members.
4766         (gdbscm_create_breakpoint_x): Split into two ...
4767         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4768         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4769         (scheme_function breakpoint_functions): Update.
4770         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4771         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4772         register-breakpoint!.
4773
4774 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4775
4776         PR server/17023
4777         * mem-break.c (z_type_supported): Return zero if
4778         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4779
4780 2014-06-04  Tom Tromey  <tromey@redhat.com>
4781
4782         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4783         value_from_contents_and_address_unresolved.
4784         (ada_template_to_fixed_record_type_1): Likewise.
4785         (ada_which_variant_applies): Likewise.
4786         * value.h (value_from_contents_and_address_unresolved): Declare.
4787         * value.c (value_from_contents_and_address_unresolved): New
4788         function.
4789         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4790         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4791         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4792
4793 2014-06-04  Tom Tromey  <tromey@redhat.com>
4794
4795         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4796
4797 2014-06-04  Tom Tromey  <tromey@redhat.com>
4798
4799         * procfs.c (procfs_attach): Make "args" const.
4800         * windows-nat.c (windows_attach): Make "args" const.
4801         * nto-procfs.c (procfs_attach): Make "args" const.
4802         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4803         * go32-nat.c (go32_attach): Make "args" const.
4804         * gnu-nat.c (gnu_attach): Make "args" const.
4805         * darwin-nat.c (darwin_attach): Make "args" const.
4806         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4807         * linux-nat.c (linux_nat_attach): Make "args" const.
4808         * remote.c (extended_remote_attach_1, extended_remote_attach):
4809         Make "args" const.
4810         * target.h (struct target_ops) <to_attach>: Make "args" const.
4811         (find_default_attach): Likewise.
4812         * utils.c (parse_pid_to_attach): Make "args" const.
4813         * utils.h (parse_pid_to_attach): Update.
4814
4815 2014-06-04  Tom Tromey  <tromey@redhat.com>
4816
4817         * target-delegates.c: Rebuild.
4818         * target.c (default_thread_address_space): New function.
4819         (target_thread_address_space): Simplify.
4820         * target.h (struct target_ops) <to_thread_address_space>: Add
4821         TARGET_DEFAULT_FUNC.
4822
4823 2014-06-04  Doug Evans  <xdje42@gmail.com>
4824
4825         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4826
4827 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4828
4829         * record-btrace.c: Include event-loop.h and inf-loop.h.
4830         (record_btrace_resume_exec_dir)
4831         (record_btrace_async_inferior_event_handler)
4832         (record_btrace_handle_async_inferior_event): New.
4833         (record_btrace_open): Create async event handler.
4834         (record_btrace_close): Delete async event handler.
4835         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4836         Mark async event handler.
4837         (record_btrace_execution_direction): New.
4838         (init_record_btrace_ops): Initialize to_execution_direction.
4839
4840 2014-06-03  Doug Evans  <xdje42@gmail.com>
4841
4842         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4843         (gdbscm_make_parameter): Ditto.
4844
4845 2014-06-03  Doug Evans  <dje@google.com>
4846
4847         * exec.c (exec_close_1): Call clear_section_table instead of
4848         resize_section_table.
4849         (clear_section_table): New function.
4850         (resize_section_table): Make static.  Rename arg num_added to
4851         adjustment.
4852         * exec.h (clear_section_table): Declare.
4853         (resize_section_table): Delete.
4854         * progspace.c (release_program_space): Call clear_section_table
4855         instead of resize_section_table.
4856
4857 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4858
4859         * NEWS (Python Scripting): Add entry about the new xmethods
4860         feature.
4861
4862 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4863
4864         * python/py-xmethods.c: New file.
4865         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4866         (objfpy_dealloc): XDECREF on the new xmethods field.
4867         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4868         field.
4869         (objfpy_get_xmethods): New function.
4870         (objfile_getset): New entry 'xmethods'.
4871         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4872         (pspy_dealloc): XDECREF on the new xmethods field.
4873         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4874         field.
4875         (pspy_get_xmethods): New function.
4876         (pspace_getset): New entry 'xmethods'.
4877         * python/python-internal.h: Add declarations for new functions.
4878         * python/python.c (_initialize_python): Invoke
4879         gdbpy_initialize_xmethods.
4880         * python/lib/gdb/__init__.py (xmethods): New
4881         attribute.
4882         * python/lib/gdb/xmethod.py: New file.
4883         * python/lib/gdb/command/xmethods.py: New file.
4884
4885 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4886
4887         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4888         best match method returned by find_overload_match is an xmethod.
4889         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4890         the best matching operator returned by find_overload_match is an
4891         xmethod.
4892         * valops.c: #include "extension.h".
4893         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4894         Return void.  The list of matching source methods is returned in
4895         "fn_list" and a vector of matching debug method workers is
4896         returned in "xm_worker_vec".  Update all callers.
4897         (value_find_oload_method_list): Likewise.
4898         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4899         non-NULL, then the index of the best matching method in this
4900         vector is returned.  Update all callers.
4901         (find_overload_match): Include xmethods while performing overload
4902         resolution.
4903
4904 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4905
4906         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4907         * extension-priv.h (struct extension_language_ops): Add the
4908         xmethod interface.
4909         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4910         get_matching_xmethod_workers, get_xmethod_argtypes,
4911         invoke_xmethod, free_xmethod_worker,
4912         free_xmethod_worker_vec): New functions.
4913         * extension.h: #include "common/vec.h".
4914         New function declarations.
4915         (struct xmethod_worker): New struct.
4916         (VEC (xmethod_worker_ptr)): New vector type.
4917         (xmethod_worker_ptr): New typedef.
4918         (xmethod_worker_vec): Likewise.
4919         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4920         builtin_type.
4921         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4922         (struct builtin_type): New field "xmethod".
4923         * valarith.c (value_ptradd): Assert that the value argument is not
4924         lval_xcallable.
4925         * valops.c (value_must_coerce_to_target): Return 0 for
4926         lval_xcallable values.
4927         * value.c (struct value): New field XM_WORKER in the field
4928         LOCATION.
4929         (value_address, value_raw_address): Return 0 for lval_xcallable
4930         values.
4931         (set_value_address): Assert that the value is not an
4932         lval_xcallable.
4933         (value_free): Free the associated xmethod worker when freeing
4934         lval_xcallable values.
4935         (set_value_component_location): Assert that the WHOLE value is not
4936         lval_xcallable.
4937         (value_of_xmethod, call_xmethod): New functions.
4938         * value.h: Declare "struct xmethod_worker".
4939         Declare new functions value_of_xmethod, call_xmethod.
4940
4941 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4942             Pedro Alves  <palves@redhat.com>
4943
4944         PR breakpoints/17000
4945         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4946         New function, extracted from software_breakpoint_inserted_here_p.
4947         (software_breakpoint_inserted_here_p): Replace factored out code
4948         by call to find_non_raw_software_breakpoint_inserted_here.
4949         (bp_target_info_copy_insertion_state): New function.
4950         (bkpt_insert_location): Handle the case of a single-step
4951         breakpoint already inserted at the same address.
4952         (bkpt_remove_location): Handle the case of a single-step
4953         breakpoint still inserted at the same address.
4954         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4955         breakpoint already inserted at the same address.
4956         (deprecated_remove_raw_breakpoint): Handle the case of a
4957         non-raw breakpoint still inserted at the same address.
4958         (find_single_step_breakpoint): New function, extracted from
4959         single_step_breakpoint_inserted_here_p.
4960         (find_single_step_breakpoint): New function,
4961         factored out from single_step_breakpoint_inserted_here_p.
4962         (single_step_breakpoint_inserted_here_p): Reimplement.
4963
4964 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4965
4966         Pushed by Joel Brobecker  <brobecker@adacore.com>
4967         * source.c (show_substitute_path_command): Fix display of matching
4968         substitution rules.
4969
4970 2014-06-03  Gary Benson  <gbenson@redhat.com>
4971
4972         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4973
4974 2014-06-02  Doug Evans  <xdje42@gmail.com>
4975
4976         Add parameter support for Guile.
4977         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4978         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4979         (scm-param.o): New rule.
4980         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4981         (gdbscm_misc_error): Declare.
4982         (gdbscm_canonicalize_command_name): Declare.
4983         (gdbscm_scm_to_host_string): Declare.
4984         (gdbscm_scm_from_host_string): Declare.
4985         (gdbscm_initialize_parameters): Declare.
4986         * guile/guile.c (initialize_gdb_module): Call
4987         gdbscm_initialize_parameters.
4988         * guile/lib/gdb.scm: Export parameter symbols.
4989         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4990         cmdscm_canonicalize_name and made public.  All callers updated.
4991         * guile/scm-exception.c (gdbscm_misc_error): New function.
4992         * guile/scm-param.c: New file.
4993         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4994         (gdbscm_scm_to_host_string): New function.
4995         (gdbscm_scm_from_host_string): New function.
4996         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4997
4998 2014-06-02  Doug Evans  <xdje42@gmail.com>
4999
5000         Add command support for Guile.
5001         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5002         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5003         (scm-cmd.o): New rule.
5004         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5005         (gdbscm_user_error_p): Declare.
5006         (gdbscm_parse_command_name): Declare.
5007         (gdbscm_valid_command_class_p): Declare.
5008         (gdbscm_initialize_commands): Declare.
5009         * guile/guile.c (initialize_gdb_module): Call
5010         gdbscm_initialize_commands.
5011         * guile/lib/gdb.scm: Export command symbols.
5012         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5013         (throw-user-error): New function.
5014         * guile/scm-cmd.c: New file.
5015         * guile/scm-exception.c (user_error_symbol): New static global.
5016         (gdbscm_user_error_p): New function.
5017         (gdbscm_initialize_exceptions): Set user_error_symbol.
5018         * scm-utils.c (gdbscm_gc_xstrdup): New function.
5019
5020 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
5021
5022         * top.c (command_loop): Handle comments here...
5023         (command_line_input): ... not here.
5024
5025 2014-06-02  Doug Evans  <xdje42@gmail.com>
5026
5027         Add progspace support for Guile.
5028         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5029         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5030         (scm-progspace.o): New rule.
5031         * guile/guile-internal.h (pspace_smob): New typedef.
5032         (psscm_pspace_smob_pretty_printers): Declare.
5033         (psscm_pspace_smob_from_pspace): Declare.
5034         (psscm_scm_from_pspace): Declare.
5035         * guile/guile.c (initialize_gdb_module): Call
5036         gdbscm_initialize_pspaces.
5037         * guile/lib/gdb.scm: Export progspace symbols.
5038         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5039         support.
5040         (append-pretty-printer!): Ditto.
5041         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5042         Implement.
5043         * guile/scm-progspace.c: New file.
5044
5045 2014-06-03  Alan Modra  <amodra@gmail.com>
5046
5047         * ppc64-tdep.c (ppc64_standard_linkage8): New.
5048         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5049
5050 2014-06-02  Doug Evans  <dje@google.com>
5051
5052         Add support for skeletonless type units.
5053         * dwarf2read.c (struct dwarf2_per_objfile): New member
5054         n_allocated_type_units.
5055         (struct dwarf2_per_objfile) <tu_stats>: New member
5056         nr_all_type_units_reallocs.
5057         (create_signatured_type_table_from_index): Initialize
5058         n_allocated_type_units
5059         (create_all_type_units): Ditto.
5060         (add_type_unit): Move up in file.  New arg slot.
5061         All callers updated.  Increase space for all_type_units more
5062         efficiently.
5063         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5064         (lookup_dwo_signatured_type): Handle skeletonless TUs.
5065         (lookup_dwp_signatured_type): Ditto.
5066         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5067         All callers updated.
5068         (build_type_psymtabs_1): Leave type_unit_groups as
5069         NULL if no TUs present.
5070         (print_tu_stats): New function.
5071         (process_skeletonless_type_unit): New function.
5072         (process_dwo_file_for_skeletonless_type_units): New
5073         function.
5074         (process_skeletonless_type_units): New function.
5075         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5076         Call print tu_stats if debugging enabled.
5077
5078 2014-06-02  Pedro Alves  <palves@redhat.com>
5079
5080         * breakpoint.c (build_target_command_list): Don't build a command
5081         list if we have any duplicate location that isn't a dprintf.
5082
5083 2014-06-02  Pedro Alves  <palves@redhat.com>
5084
5085         * breakpoint.c (dprintf_breakpoint_hit): New function.
5086         (initialize_breakpoint_ops): Install it as dprintf's
5087         breakpoint_hit method.
5088
5089 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5090
5091         * source.c (substitute_path_rule_matches): Simplify using
5092         filename_ncmp instead of FILENAME_CMP.
5093
5094 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5095
5096         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5097
5098 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5099
5100         * configure.ac: When Guile is available, check for the
5101         availability of 'scm_new_smob'.
5102         * configure, config.h.in: Regenerate.
5103         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5104         function.
5105
5106 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5107
5108         * frame.c (struct frame_info): Add stop_string field.
5109         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5110         (get_prev_frame_always): Old content moved into
5111         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5112         TRY_CATCH, handle MEMORY_ERROR exceptions.
5113         (frame_stop_reason_string): New function definition.
5114         * frame.h (unwind_stop_reason_to_string): Extend comment to
5115         mention frame_stop_reason_string.
5116         (frame_stop_reason_string): New function declaration.
5117         * stack.c (frame_info): Switch to frame_stop_reason_string.
5118         (backtrace_command_1): Switch to frame_stop_reason_string.
5119         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5120         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5121         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5122
5123 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5124
5125         * frame.c (frame_stop_reason_string): Rename to ...
5126         (unwind_stop_reason_to_string): this.
5127         * frame.h (frame_stop_reason_string): Rename to ...
5128         (unwind_stop_reason_to_string): this.
5129         * stack.c (frame_info): Update call to frame_stop_reason_string.
5130         (backtrace_command_1): Likewise.
5131         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5132         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5133
5134 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5135
5136         * frame.c (remove_prev_frame): New function.
5137         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5138         remove_prev_frame.
5139
5140 2014-05-29  Pedro Alves  <palves@redhat.com>
5141
5142         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5143         and make it const.  When a single-step decays to a continue,
5144         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5145         to step to user_visible_resume_ptid, not what we ask the
5146         target to do.
5147
5148 2014-05-29  Pedro Alves  <palves@redhat.com>
5149
5150         * infrun.c (process_event_stop_test, handle_step_into_function)
5151         (handle_step_into_function_backward): Adjust.
5152         Don't set the even thread's stop_step and call stop_waiting before
5153         calling end_stepping_range.  Instead do that ...
5154         (end_stepping_range): ... here.  Take an ecs pointer parameter.
5155
5156 2014-05-29  Pedro Alves  <palves@redhat.com>
5157
5158         * infrun.c (stop_stepping): Rename to ...
5159         (stop_waiting): ... this.
5160         (proceed): Update comment.
5161         (process_event_stop_test, handle_inferior_event)
5162         (handle_signal_stop, handle_step_into_function)
5163         (handle_step_into_function_backward): Update.
5164
5165 2014-05-29  Pedro Alves  <palves@redhat.com>
5166
5167         * infcall.c (run_inferior_call): Don't check whether the current
5168         thread is running after the proceed call.
5169
5170 2014-05-29  Pedro Alves  <palves@redhat.com>
5171             Tom Tromey  <tromey@redhat.com>
5172
5173         * NEWS: Mention "maint set target-async", "set mi-async", and that
5174         background execution commands are now always available.
5175         * target.h (target_async_permitted): Update comment.
5176         * target.c (target_async_permitted, target_async_permitted_1):
5177         Default to 1.
5178         (set_target_async_command): Rename to ...
5179         (maint_set_target_async_command): ... this.
5180         (show_target_async_command): Rename to ...
5181         (maint_show_target_async_command): ... this.
5182         (_initialize_target): Adjust.
5183         * infcmd.c (prepare_execution_command): Make extern.
5184         * inferior.h (prepare_execution_command): Declare.
5185         * infrun.c (set_observer_mode): Leave target async alone.
5186         * mi/mi-interp.c (mi_interpreter_init): Install
5187         mi_on_sync_execution_done as sync_execution_done observer.
5188         (mi_on_sync_execution_done): New function.
5189         (mi_execute_command_input_handler): Don't print the prompt if we
5190         just started a synchronous command with an async target.
5191         (mi_on_resume): Check sync_execution before printing prompt.
5192         * mi/mi-main.h (mi_async_p): Declare.
5193         * mi/mi-main.c: Include gdbcmd.h.
5194         (mi_async_p): New function.
5195         (mi_async, mi_async_1): New globals.
5196         (set_mi_async_command, show_mi_async_command, mi_async): New
5197         functions.
5198         (exec_continue): Call prepare_execution_command.
5199         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5200         (mi_execute_async_cli_command): Use mi_async_p.
5201         (_initialize_mi_main): Install "set mi-async".  Make
5202         "target-async" a deprecated alias.
5203
5204 2014-05-29  Pedro Alves  <palves@redhat.com>
5205
5206         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5207         (_initialize_cli_interp): Adjust.
5208         * event-loop.c: Include "observer.h".
5209         (start_event_loop): Notify 'command_error' observers instead of
5210         calling display_gdb_prompt.  Remove FIXME comment.
5211         * event-top.c (display_gdb_prompt): Remove call into the
5212         interpreters.
5213         * inf-loop.c: Include "observer.h".
5214         (inferior_event_handler): Notify 'command_error' observers instead
5215         of calling display_gdb_prompt.
5216         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5217         observers instead of calling display_gdb_prompt.
5218         * interps.c (interp_set): Don't call display_gdb_prompt.
5219         (current_interp_display_prompt_p): Delete.
5220         * interps.h (interp_prompt_p): Delete declaration.
5221         (interp_prompt_p_ftype): Delete.
5222         (struct interp_procs) <prompt_proc_p>: Delete field.
5223         (current_interp_display_prompt_p): Delete declaration.
5224         * mi-interp.c (mi_interpreter_prompt_p): Delete.
5225         (_initialize_mi_interp): Adjust.
5226         * tui-interp.c (tui_init): Install 'sync_execution_done' and
5227         'command_error' observers.
5228         (tui_on_sync_execution_done, tui_on_command_error): New
5229         functions.
5230         (tui_display_prompt_p): Delete.
5231         (_initialize_tui_interp): Adjust.
5232
5233 2014-05-29  Pedro Alves  <palves@redhat.com>
5234
5235         PR gdb/13860
5236         * cli/cli-interp.c: Include infrun.h and observer.h.
5237         (cli_uiout, cli_interp): New globals.
5238         (cli_on_signal_received, cli_on_end_stepping_range)
5239         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5240         functions.
5241         (cli_interpreter_init): Install them as 'end_stepping_range',
5242         'signal_received' 'signal_exited', 'exited' and 'no_history'
5243         observers.
5244         (_initialize_cli_interp): Remove cli_interp local.
5245         * infrun.c (handle_inferior_event): Call the several stop reason
5246         observers instead of printing the stop reason directly.
5247         (end_stepping_range): New function.
5248         (print_end_stepping_range_reason, print_signal_exited_reason)
5249         (print_exited_reason, print_signal_received_reason)
5250         (print_no_history_reason): Make static, and add an uiout
5251         parameter.  Print to that instead of to CURRENT_UIOUT.
5252         * infrun.h (print_end_stepping_range_reason)
5253         (print_signal_exited_reason, print_exited_reason)
5254         (print_signal_received_reason print_no_history_reason): New
5255         declarations.
5256         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5257         'mi_uiout'.
5258         <cli_uiout>: New field.
5259         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5260         uiout for CLI output.  Install 'signal_received',
5261         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5262         observers.
5263         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5264         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5265         (mi_on_no_history): New functions.
5266         (ui_out_free_cleanup): Delete function.
5267         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5268         instead use the one already stored in the MI interpreter data.
5269         (mi_ui_out): Adjust.
5270         * tui/tui-interp.c: Include infrun.h and observer.h.
5271         (tui_interp): New global.
5272         (tui_on_signal_received, tui_on_end_stepping_range)
5273         (tui_on_signal_exited, tui_on_exited)
5274         (tui_on_no_history): New functions.
5275         (tui_init): Install them as 'end_stepping_range',
5276         'signal_received' 'signal_exited', 'exited' and 'no_history'
5277         observers.
5278         (_initialize_tui_interp): Delete tui_interp local.
5279
5280 2014-05-29  Pedro Alves  <palves@redhat.com>
5281
5282         PR gdb/15713
5283         * linux-nat.c (linux_nat_resume_callback): Rename the second
5284         parameter to 'except'.  Skip LP if it points to EXCEPT.
5285         (linux_nat_resume): Don't mark the event lwp as not stopped
5286         before resuming sibling lwps.  Instead ask
5287         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5288         stopped after actually resuming it.
5289         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5290         resuming it.
5291         (wait_lwp): Mark the lwp as stopped here.
5292         (stop_wait_callback): Mark the lwp as not stopped right after
5293         resuming it.  Don't mark lwps as stopped here.
5294         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5295         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5296
5297 2014-05-29  Pedro Alves  <palves@redhat.com>
5298
5299         PR PR15693
5300         * infrun.c (resume): Determine how much to resume depending on
5301         whether the caller wanted a step, not whether we can hardware step
5302         the target.  Mark all threads that we intend to run as running,
5303         unless we're calling an inferior function.
5304         (normal_stop): If the thread is running an infcall, don't finish
5305         thread state.
5306         * target.c (target_resume): Don't mark threads as running here.
5307
5308 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5309
5310         * serial.c (_initialize_serial): Remove support for
5311         the "set remotebaud" and "show remotebaud" commands.
5312         * NEWS: Add entry documenting the removal of that command.
5313
5314 2014-05-28  Yao Qi  <yao@codesourcery.com>
5315
5316         * charset.c: Fix typo in comments.
5317
5318 2014-05-27  Gary Benson  <gbenson@redhat.com>
5319
5320         * utils.c (internal_vproblem): Prompt for a bug report.
5321
5322 2014-05-26  Andy Wingo  <wingo@igalia.com>
5323
5324         * guile/scm-arch.c (arscm_mark_arch_smob):
5325         * guile/scm-block.c (bkscm_mark_block_smob)
5326         (bkscm_mark_block_syms_progress_smob):
5327         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5328         * guile/scm-exception.c (exscm_mark_exception_smob):
5329         * guile/scm-frame.c (frscm_mark_frame_smob):
5330         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5331         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5332         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5333         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5334         (ppscm_mark_pretty_printer_worker_smob):
5335         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5336         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5337         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5338         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5339         mark functions.
5340         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5341         function.
5342
5343 2014-05-26  Andy Wingo  <wingo@igalia.com>
5344             Doug Evans  <xdje42@gmail.com>
5345
5346         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5347         empty_base_class.  All uses updated.
5348         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5349         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5350         Adapt all callers.
5351         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5352         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5353         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5354         (gdbscm_gsmob_has_property_p, add_property_name)
5355         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5356         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5357         (gdb-object-has-property?, gdb-object-properties): Remove.
5358         (gdb-object-kind): Renamed from gsmob-kind.
5359
5360 2014-05-26  Andy Wingo  <wingo@igalia.com>
5361
5362         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5363         * configure: Regenerate.
5364
5365 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5366
5367         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5368
5369 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5370
5371         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5372         (replay_memory_access_read_only, replay_memory_access_read_write)
5373         (replay_memory_access_types, replay_memory_access)
5374         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5375         (cmd_set_record_btrace, cmd_show_record_btrace)
5376         (cmd_show_replay_memory_access): New.
5377         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5378         (record_btrace_remove_breakpoint): Replace
5379         record_btrace_allow_memory_access with replay_memory_access.
5380         (_initialize_record_btrace): Add commands.
5381         * NEWS: Announce it.
5382
5383 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5384
5385         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5386
5387 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5388
5389         * MAINTAINERS (Write After Approval): Move self back from
5390         paper trail.
5391
5392 2014-05-22  Pedro Alves  <palves@redhat.com>
5393
5394         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5395         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5396         (disable_randomization, enum exec_direction_kind)
5397         (execution_direction, stop_registers, start_remote)
5398         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5399         (wait_for_inferior, normal_stop, get_last_target_status)
5400         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5401         (insert_step_resume_breakpoint_at_sal)
5402         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5403         (set_step_info, print_stop_event, signal_stop_state)
5404         (signal_print_state, signal_pass_state, signal_stop_update)
5405         (signal_print_update, signal_pass_update)
5406         (update_signals_program_target, clear_exit_convenience_vars)
5407         (displaced_step_dump_bytes, update_observer_mode)
5408         (signal_catch_update, gdb_signal_from_command): Move
5409         declarations ...
5410         * infrun.h: ... to this new file.
5411         * amd64-tdep.c: Include infrun.h.
5412         * annotate.c: Include infrun.h.
5413         * arch-utils.c: Include infrun.h.
5414         * arm-linux-tdep.c: Include infrun.h.
5415         * arm-tdep.c: Include infrun.h.
5416         * break-catch-sig.c: Include infrun.h.
5417         * breakpoint.c: Include infrun.h.
5418         * common/agent.c: Include infrun.h instead of inferior.h.
5419         * corelow.c: Include infrun.h.
5420         * event-top.c: Include infrun.h.
5421         * go32-nat.c: Include infrun.h.
5422         * i386-tdep.c: Include infrun.h.
5423         * inf-loop.c: Include infrun.h.
5424         * infcall.c: Include infrun.h.
5425         * infcmd.c: Include infrun.h.
5426         * infrun.c: Include infrun.h.
5427         * linux-fork.c: Include infrun.h.
5428         * linux-nat.c: Include infrun.h.
5429         * linux-thread-db.c: Include infrun.h.
5430         * monitor.c: Include infrun.h.
5431         * nto-tdep.c: Include infrun.h.
5432         * procfs.c: Include infrun.h.
5433         * record-btrace.c: Include infrun.h.
5434         * record-full.c: Include infrun.h.
5435         * remote-m32r-sdi.c: Include infrun.h.
5436         * remote-mips.c: Include infrun.h.
5437         * remote-notif.c: Include infrun.h.
5438         * remote-sim.c: Include infrun.h.
5439         * remote.c: Include infrun.h.
5440         * reverse.c: Include infrun.h.
5441         * rs6000-tdep.c: Include infrun.h.
5442         * s390-linux-tdep.c: Include infrun.h.
5443         * solib-irix.c: Include infrun.h.
5444         * solib-osf.c: Include infrun.h.
5445         * solib-svr4.c: Include infrun.h.
5446         * target.c: Include infrun.h.
5447         * top.c: Include infrun.h.
5448         * windows-nat.c: Include infrun.h.
5449         * mi/mi-interp.c: Include infrun.h.
5450         * mi/mi-main.c: Include infrun.h.
5451         * python/py-threadevent.c: Include infrun.h.
5452
5453 2014-05-22  Pedro Alves  <palves@redhat.com>
5454
5455         * infrun.c (handle_inferior_event): Store the exit code for
5456         --return-child-result here, instead of ...
5457         (print_exited_reason): ... here.
5458
5459 2014-05-21  Pedro Alves  <palves@redhat.com>
5460
5461         PR gdb/13860
5462         * gdbthread.h (struct thread_control_state): New field
5463         `command_interp'.
5464         * infrun.c (follow_fork): Copy the new thread control field to the
5465         child fork thread.
5466         (clear_proceed_status_thread): Clear the new thread control field.
5467         (proceed): Set the new thread control field.
5468         * interps.h (command_interp): Declare.
5469         * interps.c (command_interpreter): New global.
5470         (command_interp): New function.
5471         (interp_exec): Set `command_interpreter' while here.
5472         * cli-out.c (cli_uiout_dtor): New function.
5473         (cli_ui_out_impl): Install it.
5474         * mi/mi-interp.c: Include cli-out.h.
5475         (mi_cmd_interpreter_exec): Add comment.
5476         (restore_current_uiout_cleanup): New function.
5477         (ui_out_free_cleanup): New function.
5478         (mi_on_normal_stop): If finishing an execution command started by
5479         a CLI command, or any kind of breakpoint-like event triggered,
5480         print the stop event to the output (CLI) stream.
5481         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5482
5483 2014-05-21  Pedro Alves  <palves@redhat.com>
5484
5485         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5486         current source line having changed.
5487         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5488         * infrun.c (normal_stop): Adjust call to
5489         set_current_sal_from_frame.
5490         * source.c (clear_lines_listed_range): New function.
5491         (set_current_source_symtab_and_line, identify_source_line): Clear
5492         the lines listed range.
5493         (line_info): Handle the first "info line" after the current source
5494         line having changed.
5495         * stack.c (print_stack_frame): Remove center handling.
5496         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5497         center sal.line.
5498
5499 2014-05-21  Pedro Alves  <palves@redhat.com>
5500
5501         * inf-child.c (inf_child_mourn_inferior): New function.
5502         * inf-child.h (inf_child_mourn_inferior): New declaration.
5503         * darwin-nat.c (darwin_mourn_inferior): Use
5504         inf_child_mourn_inferior.
5505         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5506         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5507         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5508         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5509         * windows-nat.c (windows_mourn_inferior): Likewise.
5510
5511 2014-05-21  Doug Evans  <xdje42@gmail.com>
5512
5513         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5514
5515 2014-05-21  Doug Evans  <xdje42@gmail.com>
5516
5517         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5518         (gdbscm_out_of_range_error): Ditto.
5519         (gdbscm_memory_error): Ditto.
5520         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5521         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5522         (gdbscm_out_of_range_error): Update.
5523         (gdbscm_memory_error): Update.
5524         (gdbscm_scm_to_target_string_unsafe): Delete.
5525
5526 2014-05-21  Pedro Alves  <palves@redhat.com>
5527
5528         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5529         globals.
5530         (inf_child_open_target): New function.
5531         (inf_child_open): Use inf_child_open_target to push the target
5532         instead of erroring out.
5533         (inf_child_disconnect, inf_child_close)
5534         (inf_child_maybe_unpush_target): New functions.
5535         (inf_child_target): Install inf_child_disconnect and
5536         inf_child_close.  Store a pointer to the returned object.
5537         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5538         declarations.
5539         * target.c (auto_connect_native_target): New global.
5540         (show_default_run_target): New function.
5541         (find_default_run_target): Return NULL if automatically connecting
5542         to the native target is disabled.
5543         (_initialize_target): Install set/show auto-connect-native-target.
5544         * NEWS: Mention "set auto-connect-native-target", and "target
5545         native".
5546         * linux-nat.c (super_close): New global.
5547         (linux_nat_close): Call super_close.
5548         (linux_nat_add_target): Store a pointer to the base class's
5549         to_close method.
5550         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5551         inf_child_maybe_unpush.
5552         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5553         already pushed.
5554         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5555         the inferior.  Use inf_child_maybe_unpush_target.
5556         (inf_ttrace_attach): Don't push the target if it is already
5557         pushed.
5558         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5559         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5560         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5561         (darwin_attach_pid): Don't push the target if it is already
5562         pushed.
5563         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5564         mourning the inferior.  Use inf_child_maybe_unpush_target.
5565         (gnu_detach): Use inf_child_maybe_unpush_target.
5566         * go32-nat.c (go32_create_inferior): Don't push the target if it
5567         is already pushed.
5568         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5569         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5570         (procfs_open): Rename to ...
5571         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5572         comments.  Can target_preopen before changing node.  Call
5573         inf_child_open_target to push the target explicitly.
5574         (procfs_attach): Don't push the target if it is already pushed.
5575         (procfs_detach): Use inf_child_maybe_unpush_target.
5576         (procfs_create_inferior): Don't push the target if it is already
5577         pushed.
5578         (nto_native_ops): New global.
5579         (procfs_open): Reimplement.
5580         (procfs_native_open): New function.
5581         (init_procfs_targets): Install procfs_native_open as to_open of
5582         "target native".  Store a pointer to the "native" target in
5583         nto_native_ops.
5584         * procfs.c (procfs_attach): Don't push the target if it is already
5585         pushed.
5586         (procfs_detach): Use inf_child_maybe_unpush_target.
5587         (procfs_mourn_inferior): Only unpush the target after mourning the
5588         inferior.  Use inf_child_maybe_unpush_target.
5589         (procfs_init_inferior): Don't push the target if it is already
5590         pushed.
5591         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5592         if it is already pushed.
5593
5594 2014-05-21  Pedro Alves  <palves@redhat.com>
5595
5596         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5597         and "procfs" targets are now called "native" instead.
5598
5599 2014-05-21  Pedro Alves  <palves@redhat.com>
5600
5601         * go32-nat.c (go32_open): Delete.
5602         (go32_target): Don't override the to_open method.
5603
5604 2014-05-21  Pedro Alves  <palves@redhat.com>
5605
5606         * nto-procfs.c (procfs_can_run): New function.
5607         (nto_procfs_ops): New global.
5608         (init_procfs_targets): New, based on procfs_target.  Install
5609         "target native" in addition to "target procfs".
5610         (_initialize_procfs): Call init_procfs_targets instead of adding
5611         the target here.
5612
5613 2014-05-21  Pedro Alves  <palves@redhat.com>
5614
5615         * windows-nat.c (windows_target): Don't override to_shortname,
5616         to_longname or to_doc.
5617
5618 2014-05-21  Pedro Alves  <palves@redhat.com>
5619
5620         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5621         to_doc.
5622
5623 2014-05-21  Pedro Alves  <palves@redhat.com>
5624
5625         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5626         to_shortname, to_longname or to_doc.
5627
5628 2014-05-21  Pedro Alves  <palves@redhat.com>
5629
5630         * go32-nat.c (go32_target): Don't override to_shortname,
5631         to_longname or to_doc.
5632
5633 2014-05-21  Pedro Alves  <palves@redhat.com>
5634
5635         * inf-child.c (inf_child_open): Remove mention of "child".
5636         (inf_child_target): Rename target to "native" instead of "child".
5637
5638 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5639
5640         * Makefile.in (SFILES): Delete "regset.c".
5641         (COMMON_OBS): Delete "regset.o".
5642         * regset.c: Remove.
5643         * regset.h (regset_alloc): Delete prototype.
5644
5645 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5646
5647         * sparc-linux-tdep.c (sparc32_linux_gregset)
5648         (sparc32_linux_fpregset): New static regset structures.
5649         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5650         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5651         'fpregset' fields.
5652         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5653         (sparc64_linux_fpregset): New static regset structures.
5654         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5655         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5656         New static regset structures.
5657         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5658         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5659         New static regset structures.
5660         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5661         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5662         New static regset structures.
5663         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5664         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5665         New static regset structures.
5666         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5667
5668 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5669
5670         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5671         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5672         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5673         for all regmap types and variables.
5674         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5675         (sparc32_linux_supply_core_gregset)
5676         (sparc32_linux_collect_core_gregset)
5677         (sparc32_linux_supply_core_fpregset)
5678         (sparc32_linux_collect_core_fpregset): Likewise.
5679         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5680         (sparc_gregmap, sparc_fpregmap): ... these.
5681         (sparc_supply_gregset, sparc_collect_gregset)
5682         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5683         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5684         (_initialize_sparc_nat): Rename regmaps.
5685         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5686         (sparc_gregmap, sparc_fpregmap): ... these.
5687         (sparc_supply_gregset, sparc_collect_gregset)
5688         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5689         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5690         Rename macros to...
5691         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5692         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5693         Likewise.
5694         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5695         Rename to...
5696         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5697         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5698         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5699         regmaps.
5700         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5701         (sparc32_bsd_fpregset): Rename to...
5702         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5703         (sparc32_bsd_fpregmap): ... these.
5704         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5705         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5706         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5707         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5708         (struct sparc_gregmap, struct sparc_fpregmap)
5709         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5710         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5711         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5712         (sparc32_supply_regset, sparc32_collect_gregset)
5713         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5714         prototypes.
5715         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5716         (sparc64_linux_ptrace_gregmap): ... this.
5717         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5718         (_initialize_sparc64_linux_nat): Rename regmaps.
5719         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5720         (sparc64_linux_core_gregmap): ... this.
5721         (sparc64_linux_supply_core_gregset)
5722         (sparc64_linux_collect_core_gregset)
5723         (sparc64_linux_supply_core_fpregset)
5724         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5725         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5726         (sparc64_sol2_fpregset): Rename to...
5727         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5728         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5729         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5730         regmaps.
5731         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5732         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5733         (sparc64_bsd_fpregset): Rename to...
5734         (struct sparc_gregmap, sparc64_sol2_gregmap)
5735         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5736         (sparc64_bsd_fpregmap): ... these.
5737         (sparc64_supply_gregset, sparc64_collect_gregset)
5738         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5739         prototypes.
5740         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5741         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5742         (sparc64fbsd_gregmap): ... this.
5743         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5744         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5745         Rename regmaps.
5746         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5747         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5748         (sparc64nbsd_collect_fpregset): Likewise.
5749         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5750         (sparc64nbsd_gregmap): ... this.
5751         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5752         regmaps.
5753         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5754         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5755         (sparc64obsd_gregmap): ... this.
5756         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5757         regmaps.
5758         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5759         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5760         (sparc32nbsd_gregmap): ... this.
5761         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5762         regmaps.
5763
5764 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5765
5766         * score-tdep.c (score7_linux_gregset): New static regset
5767         structure.
5768         (score7_linux_regset_from_core_section): Remove dynamic regset
5769         allocation.
5770         (score_gdbarch_init): Drop allocation of tdep structure.
5771         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5772
5773 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5774
5775         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5776         regset structures.
5777         (am33_regset_from_core_section): Remove dynamic regset
5778         allocations.
5779
5780 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5781
5782         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5783         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5784         structures.
5785         (mips_linux_regset_from_core_section): Remove dynamic regset
5786         allocations.
5787         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5788         'gregset64', 'fpregset', and 'fpregset64'.
5789         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5790         deleted tdep fields.
5791
5792 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5793
5794         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5795         regset structures.
5796         (amd64_regset_from_core_section): Remove dynamic regset
5797         allocations.
5798         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5799         structure.
5800         (amd64obsd_regset_from_core_section): Remove dynamic regset
5801         allocation.
5802         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5803         Likewise.
5804         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5805         x86-common regset supply function.
5806         * i386-tdep.c (i386_collect_gregset): Make static.
5807         (i386_gregset): New global regset structure.
5808         (i386_fpregset, i386_xstateregset): New static regset structures.
5809         (i386_regset_from_core_section): Remove dynamic regset
5810         allocations.
5811         (i386_gdbarch_init): Remove initialization of tdep fields
5812         'gregset', 'fpregset', and 'xstateregset'.
5813         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5814         'fpregset', and 'xstateregset'.
5815         (i386_collect_gregset): Remove prototype.
5816         (i386_gregset): New declaration.
5817         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5818         structure.
5819         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5820         allocation.
5821
5822 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5823
5824         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5825         (arm_linux_vfpregset): New static regset structures.
5826         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5827         regset structures.
5828         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5829         and 'vfpregset' fields.
5830
5831 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5832
5833         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5834         (aarch64_linux_fpregset): New static regset structures.
5835         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5836         of regset structures.
5837         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5838         'fpregset' fields.
5839
5840 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5841
5842         * regset.h (struct regset): Remove gdbarch field.
5843         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5844         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5845         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5846         Likewise.
5847         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5848         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5849         (ppc32_linux_vsxregset): Likewise.
5850         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5851         via the regcache instead of the regset.
5852         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5853         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5854         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5855         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5856         Likewise.
5857
5858 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5859
5860         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5861         Constify structures.
5862         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5863         (alphanbsd_aout_gregset): Likewise.
5864         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5865         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5866         Likewise.
5867         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5868         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5869         Likewise.
5870         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5871         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5872         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5873         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5874         * m88k-tdep.c (m88k_gregset): Likewise.
5875         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5876         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5877         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5878         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5879         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5880         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5881         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5882         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5883         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5884         Likewise.
5885         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5886         * sh-tdep.h (sh_corefile_gregset): Likewise.
5887         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5888         * vax-tdep.c (vax_gregset): Likewise.
5889
5890 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5891
5892         Fix TLS access for -static -pthread.
5893         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5894         (try_thread_db_load_1): Initialize it.
5895         (thread_db_get_thread_local_address): Call it if LM is zero.
5896         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5897         * target.h (struct target_ops) (to_get_thread_local_address): Add
5898         load_module_addr comment.
5899
5900 2014-05-21  Pedro Alves  <palves@redhat.com>
5901
5902         * dcache.c (dcache_read_memory_partial): If reading the cache line
5903         fails, fallback to reading just the memory the caller wanted.
5904
5905 2014-05-20  Doug Evans  <dje@google.com>
5906
5907         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5908         instead of get_current_arch.
5909
5910 2014-05-20  Pedro Alves  <palves@redhat.com>
5911
5912         * NEWS: Mention that compare-sections now works with all targets.
5913
5914         * remote.c (PACKET_qCRC): New enum value.
5915         (remote_verify_memory): Don't send qCRC if the target has no
5916         execution.  Use packet_support/packet_ok.  If the target doesn't
5917         support the qCRC packet, fallback to a deep memory copy.
5918         (compare_sections_command): Say "target image" instead of "remote
5919         executable".
5920         (_initialize_remote): Add PACKET_qCRC to the list of config
5921         packets that have no associated command.  Extend comment.
5922         * target.c (simple_verify_memory, default_verify_memory): New
5923         function.
5924         * target.h (struct target_ops) <to_verify_memory>: Default to
5925         default_verify_memory.
5926         (simple_verify_memory): New declaration.
5927         * target-delegates.c: Regenerate.
5928
5929 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5930
5931         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5932
5933 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5934             Yao Qi  <yao@codesourcery.com>
5935
5936         PR backtrace/16558
5937         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5938         and change address of sp and pc.
5939
5940 2014-05-19  Tom Tromey  <tromey@redhat.com>
5941
5942         * gdbtypes.c (rank_function): Use XNEWVEC.
5943         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5944
5945 2014-05-19  Doug Evans  <dje@google.com>
5946
5947         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5948         build_type_unit_groups and moved closer to only caller.  Remove
5949         arguments.  All references updated.  Remove outdated .gdb_index
5950         comment.
5951         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5952         build_type_psymtabs_1.
5953
5954 2014-05-19  Doug Evans  <dje@google.com>
5955
5956         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5957         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5958         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5959         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5960         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5961         (add_type_unit_group_to_table): Delete.
5962
5963 2014-05-19  Doug Evans  <dje@google.com>
5964
5965         * eval.c (evaluate_subexp_standard): Add some comments.
5966
5967 2014-05-17  Doug Evans  <xdje42@gmail.com>
5968
5969         * progspace.c (remove_program_space): Delete, unused.
5970         * progspace.h (remove_program_space): Ditto.
5971
5972 2014-05-17  Doug Evans  <xdje42@gmail.com>
5973
5974         * inferior.c (prune_inferiors): Fix comment.
5975         (remove_inferior_command): Call prune_program_spaces.
5976
5977 2014-05-16  Doug Evans  <dje@google.com>
5978
5979         New command line option -D.
5980         * NEWS: Mention it.
5981         * main.c (set_gdb_data_directory): New function.
5982         (captured_main): Recognize -D.  Flag error for --data-directory "".
5983         Call set_gdb_data_directory.
5984         (print_gdb_help): Print --data-directory, -D.
5985         * main.h (set_gdb_data_directory): Declare.
5986         * top.c (staged_gdb_datadir): New static global.
5987         (set_gdb_datadir): Call set_gdb_data_directory
5988         (show_gdb_datadir): New function.
5989         (init_main): Update init of data-directory parameter.
5990
5991 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5992
5993         Import the "dirfd" gnulib module.
5994         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5995         * gnulib/aclocal.m4: Update.
5996         * gnulib/config.in: Update.
5997         * gnulib/configure: Update.
5998         * gnulib/import/Makefile.am: Update.
5999         * gnulib/import/Makefile.in: Update.
6000         * gnulib/import/dirfd.c: New.
6001         * gnulib/import/m4/dirfd.m4: New.
6002         * gnulib/import/m4/gnulib-cache.m4: Update.
6003         * gnulib/import/m4/gnulib-comp.m4: Update.
6004
6005 2014-05-16  Pierre Muller  <muller@sourceware.org>
6006             Yao Qi  <yao@codesourcery.com>
6007
6008         * valprint.c (print_wchar): Move the code on checking whether
6009         W is a printable wide char to the default branch of switch
6010         statement below.  Call wchar_printable instead of gdb_iswprint.
6011
6012 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
6013
6014         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6015         ldr.w and ldrd instructions.
6016
6017 2014-05-15  Doug Evans  <dje@google.com>
6018
6019         * dwarf2read.c (read_structure_type): Delete outdated comments.
6020
6021 2014-05-14  Tom Tromey  <tromey@redhat.com>
6022
6023         * macrocmd.c (print_macro_definition): Reindent.
6024
6025 2014-05-13  Doug Evans  <xdje42@gmail.com>
6026
6027         * python/py-cmd.c (cmdpy_completer): Add comment.
6028         (completers): Make const.
6029
6030 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
6031
6032         * infrun.c (resume): Remove should_resume (unused).  Move up
6033         declaration of resume_ptid.
6034
6035 2014-05-13  Tom Tromey  <tromey@redhat.com>
6036
6037         * language.h (unop_type_check): Remove.
6038         (binop_type_check): Don't declare.
6039
6040 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6041
6042         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6043         call to regcache_raw_collect.
6044
6045 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6046
6047         * mi/mi-console.c (mi_console_raw_packet): Use the value from
6048         mi_console->quote as the quoting character.
6049
6050 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6051
6052         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6053
6054 2014-04-29  Tom Tromey  <tromey@redhat.com>
6055
6056         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6057         "show debug varobj".
6058
6059 2014-05-07  Kyle McMartin  <kyle@redhat.com>
6060
6061         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6062         * aarch64-tdep.c (aarch64_software_single_step): New function.
6063         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6064         with aarch64_software_single_step.
6065
6066 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
6067
6068         GDB 7.7.1 released.
6069
6070 2014-05-05  Keith Seitz  <keiths@redhat.com>
6071
6072         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6073         variable or history value is successfully parsed.
6074
6075 2014-05-05  Yao Qi  <yao@codesourcery.com>
6076             Pedro Alves  <palves@redhat.com>
6077
6078         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6079         address of blocks that intersects the requested range.  Trim
6080         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6081         sections.
6082         * ctf.c (ctf_xfer_partial): Likewise.
6083
6084 2014-05-05  Yao Qi  <yao@codesourcery.com>
6085
6086         * printcmd.c (display_command): Remove the check to
6087         target_has_execution.
6088
6089 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6090
6091         * ppcobsd-nat.c: Include "obsd-nat.h".
6092         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6093         add_target.
6094         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6095
6096 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6097
6098         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6099         and 16-bit signed and unsigned arguments.  Update comment.
6100         (stap_parse_probe_arguments): Extend code to handle such
6101         arguments.  Use warning instead of complaint to notify about
6102         unrecognized bitness.
6103
6104 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6105
6106         PR breakpoints/16889
6107         * stap-probe.c (stap_parse_probe_arguments): Simplify
6108         check for non-prefixed probes (i.e., probes whose
6109         arguments do not start with "N@").  Always set the
6110         argument type to a sane value.
6111
6112 2014-05-01  David Taylor  <dtaylor@emc.com>
6113
6114         * remote.c (compare_sections_command): Add -r option to compare
6115         all loadable read-only sections.
6116
6117 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6118
6119         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6120         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6121         Update all callers.
6122         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6123         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6124         Remove unused CORE_ADDR argument.  Update all callers.
6125
6126 2014-04-29  Pedro Alves  <palves@redhat.com>
6127
6128         * remote.c (struct packet_config) <detect>: Extend comment.
6129         (add_packet_config_cmd): Don't set the config's detect or support
6130         fields here.
6131         (init_all_packet_configs): Also initialize the config's 'detect'
6132         field.
6133         (reset_all_packet_configs_support): New function.
6134         (remote_open_1): Call reset_all_packet_configs_support instead of
6135         init_all_packet_configs.
6136         (_initialize_remote): Initialize all packet configs.  Assert that
6137         all packets have an associated command, except a few known
6138         outliers.
6139
6140 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6141
6142         * dwarf2read.c (read_subrange_type): Handle dynamic
6143         DW_AT_lower_bound attributes.
6144
6145 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6146
6147         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6148         dynamic bounds before computing its upper bound.
6149         (ada_discrete_type_low_bound): Same as above with the lower bound.
6150
6151 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6152
6153         * dwarf2read.c (is_dynamic_type): Return true for dynamic
6154         range types.  Adjust the array handling implementation to
6155         take advantage of this change.
6156         (resolve_dynamic_range): New function, mostly extracted from
6157         resolve_dynamic_bounds.
6158         (resolve_dynamic_array): New function, mostly extracted from
6159         resolve_dynamic_bounds.
6160         (resolve_dynamic_bounds): Delete.
6161         (resolve_dynamic_type): Reimplement.  Add handling of
6162         TYPE_CODE_RANGE types.
6163
6164 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6165
6166         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6167         handling of parallel ___XA types.
6168
6169 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6170
6171         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6172         unnecessary second call to static_unwrap_type.
6173
6174 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6175
6176         * stack.c (print_frame_info): Call do_gdb_disassembly with
6177         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6178
6179 2014-04-26  Doug Evans  <xdje42@gmail.com>
6180
6181         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6182
6183 2014-04-25  Pedro Alves  <palves@redhat.com>
6184
6185         PR server/16255
6186         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6187         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
6188         and newline from built string.
6189         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6190         (linux_ptrace_attach_fail_reason): ... this.
6191         * linux-nat.c (linux_nat_attach): Adjust to use
6192         linux_ptrace_attach_fail_reason.
6193
6194 2014-04-25  Pedro Alves  <palves@redhat.com>
6195
6196         * remote.c (struct remote_state): Remove multi_process_aware,
6197         non_stop_aware, cond_tracepoints, cond_breakpoints,
6198         breakpoint_commands, fast_tracepoints, static_tracepoints,
6199         install_in_trace, disconnected_tracing,
6200         enable_disable_tracepoints, string_tracing, and
6201         augmented_libraries_svr4_read fields.
6202         (remote_multi_process_p): Move further below in the file.
6203         (struct packet_config): Add comments.
6204         (update_packet_config): Delete function.
6205         (show_packet_config_cmd): Use packet_config_support.
6206         (add_packet_config_cmd): Use NULL as set callback.
6207         (packet_ok): "set remote foo-packet"-style commands no longer
6208         change config->supported -- adjust.
6209         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6210         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6211         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6212         (PACKET_QNonStop, PACKET_multiprocess_feature)
6213         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6214         (PACKET_DisconnectedTracing_feature)
6215         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6216         (set_remote_protocol_packet_cmd): Delete function.
6217         (packet_config_support, packet_support): New functions.
6218         (set_remote_protocol_Z_packet_cmd): Don't call
6219         update_packet_config.
6220         (remote_query_attached, remote_pass_signals)
6221         (remote_program_signals, remote_threads_info)
6222         (remote_threads_extra_info, remote_start_remote): Use
6223         packet_support.
6224         (remote_start_remote): Use packet_config_support and
6225         packet_support.
6226         (init_all_packet_configs): Set all packets to unknown support,
6227         instead of calling update_packet_config.
6228         (remote_check_symbols): Use packet_support.
6229         (remote_supported_packet): Unconditionally set the packet config's
6230         support status.
6231         (remote_multi_process_feature, remote_non_stop_feature)
6232         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6233         (remote_breakpoint_commands_feature)
6234         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6235         (remote_install_in_trace_feature)
6236         (remote_disconnected_tracing_feature)
6237         (remote_enable_disable_tracepoint_feature)
6238         (remote_string_tracing_feature)
6239         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6240         (remote_protocol_features): Adjust to use remote_supported_packet
6241         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6242         "ConditionalTracepoints", "ConditionalBreakpoints",
6243         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6244         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6245         "EnableDisableTracepoints", and "tracenz".
6246         (remote_query_supported): Use packet_support.
6247         (remote_open_1): Adjust.
6248         (extended_remote_attach_1): Use packet_support.  Switch on the
6249         result of packet_ok instead of checking whether the packet ended
6250         up disabled.
6251         (remote_vcont_resume): Use packet_support.
6252         (remote_resume, remote_stop_ns, fetch_register_using_p)
6253         (remote_prepare_to_store, store_register_using_P)
6254         (check_binary_download, remote_write_bytes): Use packet_support.
6255         (remote_vkill): Use packet_support.  Switch on the result of
6256         packet_ok instead of checking whether the packet ended up
6257         disabled.
6258         (extended_remote_supports_disable_randomization): Use
6259         packet_support.
6260         (extended_remote_run): Switch on the result of packet_ok instead
6261         of checking whether the packet ended up disabled.
6262         (remote_insert_breakpoint, remote_remove_breakpoint)
6263         (remote_insert_watchpoint, remote_remove_watchpoint)
6264         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6265         packet_support.
6266         (remote_search_memory): Use packet_config_support.
6267         (remote_get_thread_local_address, remote_get_tib_address)
6268         (remote_hostio_send_command, remote_can_execute_reverse): Use
6269         packet_support.
6270         (remote_supports_cond_tracepoints)
6271         (remote_supports_cond_breakpoints)
6272         (remote_supports_fast_tracepoints)
6273         (remote_supports_static_tracepoints)
6274         (remote_supports_install_in_trace)
6275         (remote_supports_enable_disable_tracepoint)
6276         (remote_supports_string_tracing)
6277         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6278         the packet config says the feature is enabled or disabled.
6279         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6280         (remote_get_trace_status): Use packet_support.
6281         (remote_set_disconnected_tracing): Adjust to check whether the
6282         feature is enabled with packet_support.
6283         (remote_set_trace_buffer_size, remote_use_agent)
6284         (remote_can_use_agent, remote_supports_btrace): Use
6285         packet_support.
6286         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6287         Use packet_config_support.
6288         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6289         the packet config says the feature is enabled or disabled.
6290         (set_range_stepping): Use packet_support.
6291
6292 2014-04-25  Tom Tromey  <tromey@redhat.com>
6293
6294         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6295         argument.
6296
6297 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6298
6299         * NEWS: Mention support for C99 variable length arrays.
6300
6301 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6302
6303         * ada-lang.c (standard_exc): Expand introductory comment.
6304
6305 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6306             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6307
6308         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6309         AVX512 registers.
6310         (amd64_linux_read_description): Add code to handle AVX512 xstate
6311         mask and return respective tdesc.
6312         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6313         and features/i386/x32-avx512-linux.c.
6314         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6315         (amd64_linux_core_read_description): Add code to handle AVX512
6316         xstate mask and return respective tdesc.
6317         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6318         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6319         calculation.
6320         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6321         (tdesc_amd64_avx512_linux): New prototype.
6322         (tdesc_x32_avx512_linux): Likewise.
6323         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6324         features/i386/x32-avx512.c.
6325         (amd64_ymm_avx512_names): New register names for pseudo
6326         registers YMM16-31.
6327         (amd64_ymmh_avx512_names): New register names for raw registers
6328         YMMH16-31.
6329         (amd64_k_names): New register names for K registers.
6330         (amd64_zmmh_names): New register names for ZMM raw registers.
6331         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6332         (amd64_xmm_avx512_names): New register names for XMM16-31
6333         registers.
6334         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6335         registers.
6336         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6337         if feature is present.
6338         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6339         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6340         (AMD64_NUM_REGS): Adjust to new number of registers.
6341         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6342         registers supplied via XSTATE by AVX512 registers.
6343         (i386_linux_read_description): Add case for AVX512.
6344         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6345         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6346         (i386_linux_core_read_description): Add case for AVX512.
6347         (i386_linux_init_abi): Install supported register note section
6348         for AVX512.
6349         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6350         AVX512.
6351         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6352         registers to be number of zmm7h + 1.
6353         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6354         * i386-tdep.c: Include features/i386/i386-avx512.c.
6355         (i386_zmm_names): Add ZMM pseudo register names array.
6356         (i386_zmmh_names): Add ZMM raw register names array.
6357         (i386_k_names): Add K raw register names array.
6358         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6359         registers. AVX512 has 16 more ZMM registers than there are YMM
6360         registers.
6361         (i386_zmmh_regnum_p): Add function to look up register number of
6362         ZMM raw registers.
6363         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6364         (i386_k_regnum_p): Likewise for K raw registers.
6365         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6366         registers added by AVX512.
6367         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6368         registers added by AVX512.
6369         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6370         added by AVX512.
6371         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6372         (i386_pseudo_register_name): Add ZMM pseudo registers.
6373         (i386_zmm_type): Construct and return vector registers type for ZMM
6374         registers.
6375         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6376         ZMM0-31 pseudo registers and K registers.
6377         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6378         and YMM16-31 registers from register cache.
6379         (i386_pseudo_register_write): Add code to write  K, ZMM and
6380         YMM16-31 registers.
6381         (i386_register_reggroup_p): Add code to include/exclude AVX512
6382         registers in/from respective register groups.
6383         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6384         registers if feature is present in xcr0.
6385         (i386_gdbarch_init): Add code to initialize AVX512 feature
6386         variables in tdep structure, wire in pseudo registers and call
6387         initialize_tdesc_i386_avx512.
6388         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6389         variables.
6390         (i386_regnum): Add AVX512 registers.
6391         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6392         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6393         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6394         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6395         512 bits wide.
6396         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6397         (i386_ymm_avx512_regnum_p): Likewise.
6398         (i386_k_regnum_p): Likewise.
6399         (i386_zmm_regnum_p): Likewise.
6400         (i386_zmmh_regnum_p): Likewise.
6401         * i387-tdep.c : Update year in copyright notice.
6402         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6403         XSAVE buffer.
6404         (XSAVE_YMM_AVX512_ADDR): New macro.
6405         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6406         XSAVE buffer.
6407         (XSAVE_XMM_AVX512_ADDR): New macro.
6408         (xsave_avx512_k_offset): New table for K register offsets in
6409         XSAVE buffer.
6410         (XSAVE_AVX512_K_ADDR): New macro.
6411         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6412         in XSAVE buffer.
6413         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6414         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6415         buffer.
6416         (i387_collect_xsave): Add code to collect AVX512 registers from
6417         XSAVE buffer.
6418         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6419         of XMM16-31 registers.
6420         (I387_NUM_K_REGS): New define for number of K registers.
6421         (I387_K0_REGNUM): New define for K0 register number.
6422         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6423         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6424         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6425         registers.
6426         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6427         (I387_XMM16_REGNUM): New define for XMM16 register number.
6428         (I387_YMM0_REGNUM): New define for YMM0 register number.
6429         (I387_KEND_REGNUM): New define for last K register number.
6430         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6431         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6432         number.
6433         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6434         number.
6435         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6436         size.
6437         * features/Makefile: Add AVX512 related files.
6438         * features/i386/32bit-avx512.xml: New file.
6439         * features/i386/64bit-avx512.xml: Likewise.
6440         * features/i386/amd64-avx512-linux.c: Likewise.
6441         * features/i386/amd64-avx512-linux.xml: Likewise.
6442         * features/i386/amd64-avx512.c: Likewise.
6443         * features/i386/amd64-avx512.xml: Likewise.
6444         * features/i386/i386-avx512-linux.c: Likewise.
6445         * features/i386/i386-avx512-linux.xml: Likewise.
6446         * features/i386/i386-avx512.c: Likewise.
6447         * features/i386/i386-avx512.xml: Likewise.
6448         * features/i386/x32-avx512-linux.c: Likewise.
6449         * features/i386/x32-avx512-linux.xml: Likewise.
6450         * features/i386/x32-avx512.c: Likewise.
6451         * features/i386/x32-avx512.xml: Likewise.
6452         * regformats/i386/amd64-avx512-linux.dat: New file.
6453         * regformats/i386/amd64-avx512.dat: Likewise.
6454         * regformats/i386/i386-avx512-linux.dat: Likewise.
6455         * regformats/i386/i386-avx512.dat: Likewise.
6456         * regformats/i386/x32-avx512-linux.dat: Likewise.
6457         * regformats/i386/x32-avx512.dat: Likewise.
6458         * NEWS: Add note about new support for AVX512.
6459
6460
6461 2014-04-23  Pedro Alves  <palves@redhat.com>
6462
6463         * breakpoint.c (insert_bp_location): Tolerate errors if the
6464         breakpoint is set in a user-loaded objfile.
6465         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6466         location is marked shlib_disabled.  If the breakpoint is set in a
6467         user-loaded objfile is a GDB-side memory breakpoint, validate it
6468         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6469         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6470         flag.
6471         * mem-break.c (memory_validate_breakpoint): New function.
6472         * objfiles.c (userloaded_objfile_contains_address_p): New
6473         function.
6474         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6475         * target.h (memory_validate_breakpoint): New declaration.
6476
6477 2014-04-23  Pedro Alves  <palves@redhat.com>
6478
6479         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6480         the breakpoint is set in a shared library, only suppress
6481         errors for software breakpoints, not hardware breakpoints.
6482
6483 2014-04-22  Pedro Alves  <palves@redhat.com>
6484
6485         * infrun.c (schedlock_applies): New function, factored out from
6486         find_thread_needs_step_over.
6487         (find_thread_needs_step_over): Use it.
6488         (switch_back_to_stepped_thread): Always clear trap_expected if the
6489         step over is finished.  Return early if scheduler locking applies.
6490         Look for the stepping thread and a potential step-over thread with
6491         a single loop.
6492         (currently_stepping_or_nexting_callback): Delete.
6493
6494 2014-04-22  Nick Clifton  <nickc@redhat.com>
6495
6496         * NEWS: Mention that ARM sim now supports tracing.
6497
6498 2014-04-22  Yao Qi  <yao@codesourcery.com>
6499
6500         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6501         to ...
6502         * tracefile.c (tracefile_fetch_registers): ... it.  New
6503         function.
6504         * tracefile.h (tracefile_fetch_registers): Declare.
6505         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6506         tracefile_fetch_registers.
6507
6508 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6509
6510         PR gdb/14018
6511         * windows-nat.c (thread_rec): Don't display a warning when
6512         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6513         fails for any reason, set th->suspended to -1, so that we don't
6514         try to resume such a thread.  Also, don't return NULL in these
6515         cases, to avoid completely ruin the session due to "PC register is
6516         not available" error.
6517         (do_windows_fetch_inferior_registers): Check errors in
6518         GetThreadContext call.
6519         (windows_continue): Accept an additional argument KILLED; if not
6520         zero, ignore errors in the SetThreadContext call, since the
6521         inferior was killed and is shutting down.
6522         (windows_resume, get_windows_debug_event)
6523         (windows_create_inferior, windows_mourn_inferior)
6524         (windows_kill_inferior): All callers of windows_continue changed
6525         to adjust to its new calling sequence.
6526
6527 2014-04-19  Yao Qi  <yao@codesourcery.com>
6528
6529         * ctf.c (ctf_open): Call post_create_inferior.
6530
6531 2014-04-19  Yao Qi  <yao@codesourcery.com>
6532
6533         * ctf.c (handle_id): New static variable.
6534         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6535         value.  Get the declaration of event "register" and get length
6536         of field "contents".
6537
6538 2014-04-19  Yao Qi  <yao@codesourcery.com>
6539
6540         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6541
6542 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6543
6544         * valops.c (oload_method_static): Remove unnecessary argument
6545         METHOD.  Update all callers.
6546
6547 2014-04-18  Pedro alves  <palves@redhat.com>
6548             Tom Tromey  <tromey@redhat.com>
6549
6550         PR backtrace/15558
6551         * frame.c (get_prev_frame_1): Rename to ...
6552         (get_prev_frame_always): ... this, and make extern.  Adjust.
6553         (skip_artificial_frames): Use get_prev_frame_always.
6554         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6555         (get_frame_unwind_stop_reason): Adjust to rename.
6556         * frame.h (get_prev_frame_always): Declare.
6557         * inline-frame.c: Include frame.h.
6558         (inline_frame_this_id): Use get_prev_frame_always.
6559
6560 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6561
6562         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6563         code by using bfd_mach_o_get_base_address.
6564
6565 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6566
6567         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6568         (spu_ax_pseudo_register_collect): New function.
6569         (spu_ax_pseudo_register_push_stack): Likewise.
6570         (spu_dwarf_reg_to_regnum): Likewise.
6571         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6572
6573 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6574
6575         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6576         Replace FRAME argument with FRAME_ID.
6577         * gdbarch.c, gdbarch.h: Regenerate.
6578         * findvar.c (default_value_from_register): Add GDBARCH argument;
6579         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6580         (value_from_register): Update call to gdbarch_value_from_register.
6581         * value.h (default_value_from_register): Update prototype.
6582         * s390-linux-tdep.c (s390_value_from_register): Update interface
6583         and call to default_value_from_register.
6584         * spu-tdep.c (spu_value_from_register): Likewise.
6585
6586         * findvar.c (address_from_register): Remove TYPE argument.
6587         Do not call value_from_register; use gdbarch_value_from_register
6588         with null_frame_id instead.
6589         * value.h (address_from_register): Update prototype.
6590         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6591         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6592         address_from_register interface change.
6593
6594 2014-04-17  Yao Qi  <yao@codesourcery.com>
6595
6596         * gdbtypes.h: Update comments to link to types and macros'
6597         definitions.
6598
6599 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6600
6601         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6602
6603 2014-04-16  Keith Seitz  <keiths@redhat.com>
6604
6605         PR gdb/15827
6606         * dwarf2read.c (skip_one_die): Check that all relative-offset
6607         sibling DIEs fall within range of the current reader's buffer.
6608         (read_partial_die): Likewise.
6609
6610 2014-04-16  Keith Seitz  <keiths@redhat.com>
6611
6612         PR c++/16597
6613         * cp-namespace.c (lookup_symbol_file): If the type name of
6614         `this' is NULL, return immediately.
6615
6616 2014-04-14  Keith Seitz  <keiths@redhat.com>
6617
6618         PR c++/16253
6619         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6620         from symbol_matches_domain in symtab.c. All local callers
6621         of symbol_matches_domain updated.
6622         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6623         search STRUCT_DOMAIN.
6624         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6625         independently.  standard_lookup will do that automatically.
6626         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6627         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6628         (cp_lookup_symbol_in_namespace): Likewise.
6629         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6630         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6631         may return a STRUCT_DOMAIN match.
6632         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6633         * cp-support.c: Include language.h.
6634         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6635         VAR_DOMAIN.
6636         * psymtab.c (match_partial_symbol): Compare the requested
6637         domain with the symbol's domain directly.
6638         (lookup_partial_symbol): Likewise.
6639         * symtab.c (lookup_symbol_in_language): Explain when/why
6640         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6641         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6642         appropriate languages.
6643         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6644         and moved to ada-lang.c
6645         (lookup_block_symbol): Explain that this function only returns
6646         symbol matching the requested DOMAIN.
6647         Compare the requested domain with the symbol's domain directly.
6648         (iterate_over_symbols): Compare the requested domain with the
6649         symbol's domain directly.
6650         * symtab.h (symbol_matches_domain): Remove.
6651
6652 2014-04-14  Tom Tromey  <tromey@redhat.com>
6653
6654         PR c++/15246:
6655         * c-exp.y (type_aggregate_p): New function.
6656         (qualified_name, classify_inner_name): Use it.
6657         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6658         and TYPE_TARGET_TYPE of an enum type.
6659         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6660         an enum type.
6661         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6662         handle TYPE_DECLARED_CLASS.
6663         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6664         types.
6665         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6666         * valops.c (enum_constant_from_type): New function.
6667         (value_aggregate_elt): Use it.
6668         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6669         TYPE_CODE_ENUM.
6670
6671 2014-04-14  Tom Tromey  <tromey@redhat.com>
6672
6673         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6674         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6675         const.
6676         * value.h (value_aggregate_elt): Update.
6677
6678 2014-04-14  Tom Tromey  <tromey@redhat.com>
6679
6680         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6681
6682 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6683
6684         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6685         (evaluate_subexp_standard): Pass noside argument.
6686         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6687         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6688         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6689         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6690         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6691
6692 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6693
6694         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6695         points to a constant blob.
6696
6697 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6698
6699         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6700         property and store it as the high bound and flag the range accordingly.
6701         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6702         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6703         * gdbtypes.h (enum range_flags): New enum.
6704         (struct range_bounds): Add flags member.
6705
6706 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6707
6708         * c-typeprint.c (c_type_print_varspec_suffix): Added
6709         check for not yet resolved high bound. If unresolved, print
6710         "variable length" string to the console instead of random
6711         length.
6712
6713 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6714
6715         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6716         value.
6717         (ada_template_to_fixed_record_type_1): Likewise.
6718         (ada_to_fixed_type_1): Likewise.
6719         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6720         (cp_print_value): Likewise.
6721         * d-valprint.c (dynamic_array_type): Likewise.
6722         * findvar.c (address_of_variable): Likewise.
6723         * jv-valprint.c (java_value_print): Likewise.
6724         * valops.c (value_ind): Likewise.
6725         * value.c (coerce_ref): Likewise.
6726
6727 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6728
6729         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6730         value and retrieve the dynamic type size.
6731
6732 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6733
6734         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6735         passed to sizeof is dynamic evaluate the argument to compute the length.
6736
6737 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6738             Joel Brobecker  <brobecker@adacore.com>
6739
6740         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6741         (dwarf2_evaluate_property): New function.
6742         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6743         * dwarf2read.c (attr_to_dynamic_prop): New function.
6744         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6745         attribute.
6746         * gdbtypes.c: Include dwarf2loc.h.
6747         (is_dynamic_type): New function.
6748         (resolve_dynamic_type): New function.
6749         (resolve_dynamic_bounds): New function.
6750         (get_type_length): New function.
6751         (check_typedef): Use get_type_length to compute type length.
6752         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6753         (TYPE_LOW_BOUND_KIND): New macro.
6754         (is_dynamic_type): New function prototype.
6755         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6756         to resolve dynamic properties of the type. Update comment.
6757         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6758
6759 2014-04-14  Richard Henderson  <rth@redhat.com>
6760
6761         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6762
6763 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6764             Doug Evans  <xdje42@gmail.com>
6765
6766         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6767         dereference TYPE_CODE_REF values.
6768
6769 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6770
6771         Revert the following changes due to regressions:
6772
6773         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6774         (dwarf2_evaluate_property): New function.
6775         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6776         * dwarf2read.c (attr_to_dynamic_prop): New function.
6777         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6778         attribute.
6779         * gdbtypes.c: Include dwarf2loc.h.
6780         (is_dynamic_type): New function.
6781         (resolve_dynamic_type): New function.
6782         (resolve_dynamic_bounds): New function.
6783         (get_type_length): New function.
6784         (check_typedef): Use get_type_length to compute type length.
6785         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6786         (TYPE_LOW_BOUND_KIND): New macro.
6787         (is_dynamic_type): New function prototype.
6788         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6789         to resolve dynamic properties of the type. Update comment.
6790         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6791
6792         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6793         passed to sizeof is dynamic evaluate the argument to compute the length.
6794
6795         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6796         value and retrieve the dynamic type size.
6797
6798         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6799         (ada_template_to_fixed_record_type_1): Likewise.
6800         (ada_to_fixed_type_1): Likewise.
6801         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6802         (cp_print_value): Likewise.
6803         * d-valprint.c (dynamic_array_type): Likewise.
6804         * eval.c (evaluate_subexp_with_coercion): Likewise.
6805         * findvar.c (address_of_variable): Likewise.
6806         * jv-valprint.c (java_value_print): Likewise.
6807         * valops.c (value_ind): Likewise.
6808         * value.c (coerce_ref): Likewise.
6809
6810         * c-typeprint.c (c_type_print_varspec_suffix): Added
6811         check for not yet resolved high bound. If unresolved, print
6812         "variable length" string to the console instead of random
6813         length.
6814
6815         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6816         property and store it as the high bound and flag the range accordingly.
6817         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6818         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6819         * gdbtypes.h (enum range_flags): New enum.
6820         (struct range_bounds): Add flags member.
6821
6822         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6823         points to a constant blob.
6824
6825         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6826         (evaluate_subexp_standard): Pass noside argument.
6827         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6828         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6829         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6830         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6831         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6832
6833 2014-04-11  Keith Seitz  <keiths@redhat.com>
6834
6835         PR c++/16675
6836         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6837         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6838         reference types.
6839
6840 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6841
6842         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6843         (evaluate_subexp_standard): Pass noside argument.
6844         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6845         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6846         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6847         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6848         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6849
6850 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6851
6852         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6853         points to a constant blob.
6854
6855 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6856
6857         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6858         property and store it as the high bound and flag the range accordingly.
6859         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6860         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6861         * gdbtypes.h (enum range_flags): New enum.
6862         (struct range_bounds): Add flags member.
6863
6864 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6865
6866         * c-typeprint.c (c_type_print_varspec_suffix): Added
6867         check for not yet resolved high bound. If unresolved, print
6868         "variable length" string to the console instead of random
6869         length.
6870
6871 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6872
6873         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6874         (ada_template_to_fixed_record_type_1): Likewise.
6875         (ada_to_fixed_type_1): Likewise.
6876         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6877         (cp_print_value): Likewise.
6878         * d-valprint.c (dynamic_array_type): Likewise.
6879         * eval.c (evaluate_subexp_with_coercion): Likewise.
6880         * findvar.c (address_of_variable): Likewise.
6881         * jv-valprint.c (java_value_print): Likewise.
6882         * valops.c (value_ind): Likewise.
6883         * value.c (coerce_ref): Likewise.
6884
6885 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6886
6887         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6888         value and retrieve the dynamic type size.
6889
6890 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6891
6892         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6893         passed to sizeof is dynamic evaluate the argument to compute the length.
6894
6895 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6896
6897         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6898         (dwarf2_evaluate_property): New function.
6899         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6900         * dwarf2read.c (attr_to_dynamic_prop): New function.
6901         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6902         attribute.
6903         * gdbtypes.c: Include dwarf2loc.h.
6904         (is_dynamic_type): New function.
6905         (resolve_dynamic_type): New function.
6906         (resolve_dynamic_bounds): New function.
6907         (get_type_length): New function.
6908         (check_typedef): Use get_type_length to compute type length.
6909         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6910         (TYPE_LOW_BOUND_KIND): New macro.
6911         (is_dynamic_type): New function prototype.
6912         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6913         to resolve dynamic properties of the type. Update comment.
6914         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6915
6916 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6917
6918         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6919         declaring high/low bounds and change uses accordingly. Call
6920         create_range_type instead of create_static_range_type.
6921         * gdbtypes.c (create_range_type): New function.
6922         (create_range_type): Convert bounds into struct bound_prop and pass
6923         them to create_range_type.
6924         * gdbtypes.h (struct bound_prop): New struct.
6925         (create_range_type): New function prototype.
6926         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6927         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6928         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6929         part of the bound.
6930         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6931
6932 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6933
6934         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6935         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6936         * ada-lang.c: All uses of create_range_type updated.
6937         * coffread.c: All uses of create_range_type updated.
6938         * dwarf2read.c: All uses of create_range_type updated.
6939         * f-exp.y: All uses of create_range_type updated.
6940         * m2-valprint.c: All uses of create_range_type updated.
6941         * mdebugread.c: All uses of create_range_type updated.
6942         * stabsread.c: All uses of create_range_type updated.
6943         * valops.c: All uses of create_range_type updated.
6944         * valprint.c: All uses of create_range_type updated.
6945
6946 2014-04-10  Pedro Alves  <palves@redhat.com>
6947
6948         * breakpoint.c (single_step_breakpoints)
6949         (single_step_gdbarch): Move up in the file.
6950         (one_breakpoint_xfer_memory): New function, factored out from ...
6951         (breakpoint_xfer_memory): ... here.  Also process single-step
6952         breakpoints.
6953
6954 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6955
6956         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6957         comments.
6958         (darwin_decode_exception_message): Free port only after use.
6959
6960 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6961
6962         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6963         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6964         when setting the size of call_length.
6965
6966 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6967
6968         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6969         dereference TYPE_CODE_REF values.
6970
6971 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6972
6973         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6974         end of warning message.
6975
6976 2014-04-03  Doug Evans  <dje@google.com>
6977
6978         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6979         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6980
6981 2014-04-02  Alan Modra  <amodra@gmail.com>
6982
6983         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6984         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6985         (struct symbol_file_add_from_memory_args): Add size field.
6986         (find_vdso_size): New function.
6987         (add_vsyscall_page): Attempt to find vdso size.
6988
6989 2014-04-01  Doug Evans  <dje@google.com>
6990
6991         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6992
6993 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6994
6995         * darwin-nat.c (darwin_encode_reply): Add prototype.
6996         (darwin_decode_exception_message): Reply to unknown inferiors.
6997         (darwin_decode_message): Handle message by id.  Ignore message
6998         to unknown inferior.
6999         (darwin_wait): Discard unknown messages, add debug trace.
7000
7001 2014-03-31  Doug Evans  <dje@google.com>
7002
7003         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7004         comp_dir_string.
7005
7006 2014-03-31  Doug Evans  <dje@google.com>
7007
7008         New option "set print symbol-loading".
7009         * NEWS: Mention it.
7010         * solib.c (solib_read_symbols): Only print symbol loading messages
7011         if requested.
7012         (solib_add): If symbol loading is in "brief" mode, notify user
7013         symbols are being loaded.
7014         (reload_shared_libraries_1): Ditto.
7015         * symfile.c (print_symbol_loading_off): New static global.
7016         (print_symbol_loading_brief): New static global.
7017         (print_symbol_loading_full): New static global.
7018         (print_symbol_loading_enums): New static global.
7019         (print_symbol_loading): New static global.
7020         (print_symbol_loading_p): New function.
7021         (symbol_file_add_with_addrs): Only print symbol loading messages
7022         if requested.
7023         (_initialize_symfile): Register "print symbol-loading" set/show
7024         command.
7025         * symfile.h (print_symbol_loading_p): Declare.
7026
7027 2014-03-30  Doug Evans  <xdje42@gmail.com>
7028
7029         * infrun.c (set_last_target_status): New function.
7030         (handle_inferior_event): Call it.
7031
7032 2014-03-30  Doug Evans  <xdje42@gmail.com>
7033
7034         * inferior.h (enum stop_kind): Improve comment.
7035
7036 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
7037
7038         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7039         a reference, strip the reference layer before calling
7040         the lang_ops value_has_mutated callback.
7041
7042 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7043
7044         Remove some globals from our parser.
7045         * language.c (unk_lang_parser): Add "struct parser_state"
7046         argument.
7047         * language.h (struct language_defn) <la_parser>: Likewise.
7048         * parse.c (expout, expout_size, expout_ptr): Remove variables.
7049         (initialize_expout): Add "struct parser_state" argument.
7050         Rewrite function to use the parser state.
7051         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7052         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7053         write_exp_elt_longcst, write_exp_elt_dblcst,
7054         write_exp_elt_decfloatcst, write_exp_elt_type,
7055         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7056         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7057         write_dollar_variable): Likewise.
7058         (parse_exp_in_context_1): Use parser state.
7059         (insert_type_address_space): Add "struct parser_state" argument.
7060         Use parser state.
7061         (increase_expout_size): New function.
7062         * parser-defs.h: Forward declare "struct language_defn" and
7063         "struct parser_state".
7064         (expout, expout_size, expout_ptr): Remove extern declarations.
7065         (parse_gdbarch, parse_language): Rewrite macro declarations to
7066         accept the parser state.
7067         (struct parser_state): New struct.
7068         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7069         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7070         write_exp_elt_decfloatcst, write_exp_elt_type,
7071         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7072         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7073         write_exp_msymbol, write_dollar_variable,
7074         mark_struct_expression, insert_type_address_space): Add "struct
7075         parser_state" argument.
7076         (increase_expout_size): New function.
7077         * utils.c (do_clear_parser_state): New function.
7078         (make_cleanup_clear_parser_state): Likewise.
7079         * utils.h (make_cleanup_clear_parser_state): New function
7080         prototype.
7081         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7082         Update calls to write_exp* in order to pass the parser state.
7083         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7084         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7085         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7086         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7087         * stap-probe.c (stap_parse_register_operand): Likewise.
7088         (stap_parse_single_operand): Likewise.
7089         (stap_parse_argument_1): Likewise.
7090         (stap_parse_argument): Use parser state.
7091         * stap-probe.h: Include "parser-defs.h".
7092         (struct stap_parse_info) <pstate>: New field.
7093         * c-exp.y (parse_type): Rewrite to use parser state.
7094         (yyparse): Redefine to c_parse_internal.
7095         (pstate): New global variable.
7096         (parse_number): Add "struct parser_state" argument.
7097         (write_destructor_name): Likewise.
7098         (type_exp): Update calls to write_exp* and similars in order to
7099         use parser state.
7100         (exp1, exp, variable, qualified_name, space_identifier,
7101         typename, typebase): Likewise.
7102         (write_destructor_name, parse_number, lex_one_token,
7103         classify_name, classify_inner_name, c_parse): Add "struct
7104         parser_state" argument.  Update function to use parser state.
7105         * c-lang.h: Forward declare "struct parser_state".
7106         (c_parse): Add "struct parser_state" argument.
7107         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7108         (yyparse): Redefine macro to ada_parse_internal.
7109         (pstate): New variable.
7110         (write_int, write_object_renaming, write_var_or_type,
7111         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7112         type_int, type_long, type_long_long, type_float, type_double,
7113         type_long_double, type_char, type_boolean, type_system_address):
7114         Add "struct parser_state" argument.
7115         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7116         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7117         var_or_type, aggregate, aggregate_component_list,
7118         positional_list, others, component_group,
7119         component_associations): Update calls to write_exp* and similar
7120         functions in order to use parser state.
7121         (ada_parse, write_var_from_sym, write_int,
7122         write_exp_op_with_string, write_object_renaming,
7123         find_primitive_type, write_selectors, write_ambiguous_var,
7124         write_var_or_type, write_name_assoc, type_int, type_long,
7125         type_long_long, type_float, type_double, type_long_double,
7126         type_char, type_boolean, type_system_address): Add "struct
7127         parser_state" argument.  Adjust function to use parser state.
7128         * ada-lang.c (parse): Likewise.
7129         * ada-lang.h: Forward declare "struct parser_state".
7130         (ada_parse): Add "struct parser_state" argument.
7131         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7132         calls to both functions.
7133         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7134         parser state.
7135         (yyparse): Redefine macro to f_parse_internal.
7136         (pstate): New variable.
7137         (parse_number): Add "struct parser_state" argument.
7138         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7139         and similars in order to use parser state.
7140         (parse_number): Adjust code to use parser state.
7141         (yylex): Likewise.
7142         (f_parse): New function.
7143         * f-lang.h: Forward declare "struct parser_state".
7144         (f_parse): Add "struct parser_state" argument.
7145         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7146         parser state.
7147         (yyparse): Redefine macro for java_parse_internal.
7148         (pstate): New variable.
7149         (push_expression_name, push_expression_name, insert_exp): Add
7150         "struct parser_state" argument.
7151         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7152         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7153         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7154         PostIncrementExpression, PostDecrementExpression,
7155         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7156         UnaryExpressionNotPlusMinus, CastExpression,
7157         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7158         RelationalExpression, EqualityExpression, AndExpression,
7159         ExclusiveOrExpression, InclusiveOrExpression,
7160         ConditionalAndExpression, ConditionalOrExpression,
7161         ConditionalExpression, Assignment, LeftHandSide): Update
7162         calls to write_exp* and similars in order to use parser state.
7163         (parse_number): Ajust code to use parser state.
7164         (yylex): Likewise.
7165         (java_parse): New function.
7166         (push_variable): Add "struct parser_state" argument.  Adjust
7167         code to user parser state.
7168         (push_fieldnames, push_qualified_expression_name,
7169         push_expression_name, insert_exp): Likewise.
7170         * jv-lang.h: Forward declare "struct parser_state".
7171         (java_parse): Add "struct parser_state" argument.
7172         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7173         parser state.
7174         (yyparse): Redefine macro to m2_parse_internal.
7175         (pstate): New variable.
7176         (type_exp, exp, fblock, variable, type): Update calls to
7177         write_exp* and similars to use parser state.
7178         (yylex): Likewise.
7179         (m2_parse): New function.
7180         * m2-lang.h: Forward declare "struct parser_state".
7181         (m2_parse): Add "struct parser_state" argument.
7182         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7183         * objc-lang.h: Forward declare "struct parser_state".
7184         (end_msglist): Add "struct parser_state" argument.
7185         * p-exp.y (parse_type): Rewrite macro to use parser state.
7186         (yyparse): Redefine macro to pascal_parse_internal.
7187         (pstate): New variable.
7188         (parse_number): Add "struct parser_state" argument.
7189         (type_exp, exp1, exp, qualified_name, variable): Update calls to
7190         write_exp* and similars in order to use parser state.
7191         (parse_number, yylex): Adjust code to use parser state.
7192         (pascal_parse): New function.
7193         * p-lang.h: Forward declare "struct parser_state".
7194         (pascal_parse): Add "struct parser_state" argument.
7195         * go-exp.y (parse_type): Rewrite macro to use parser state.
7196         (yyparse): Redefine macro to go_parse_internal.
7197         (pstate): New variable.
7198         (parse_number): Add "struct parser_state" argument.
7199         (type_exp, exp1, exp, variable, type): Update calls to
7200         write_exp* and similars in order to use parser state.
7201         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7202         to use parser state.
7203         (go_parse): Likewise.
7204         * go-lang.h: Forward declare "struct parser_state".
7205         (go_parse): Add "struct parser_state" argument.
7206
7207 2014-03-27  Doug Evans  <dje@google.com>
7208
7209         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7210
7211 2014-03-27  Doug Evans  <dje@google.com>
7212
7213         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7214         Remove argument abbrev_section.  All callers updated.
7215
7216 2014-03-27  Doug Evans  <dje@google.com>
7217
7218         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7219         addr_base, ranges_base.
7220
7221 2014-03-26  Keith Seitz  <keiths@redhat.com>
7222
7223         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7224         types, not VAR_DOMAIN.
7225
7226 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
7227
7228         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7229         "ra" registers.
7230         * features/nios2-linux.c: Regenerated.
7231         * features/nios2.c: Regenerated.
7232
7233 2014-03-25  Pedro Alves  <palves@redhat.com>
7234
7235         * cli/cli-script.c (script_from_file): Force the interpreter to
7236         sync mode.
7237
7238 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7239
7240         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7241         small stack allocation.
7242
7243 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7244
7245         * darwin-nat.c (exc_server): Remove unused prototype.
7246         (darwin_dump_message): Correctly display data on x86_64.
7247         (darwin_encode_reply): Fix style.
7248         Add comments and fix indentation.
7249
7250 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7251
7252         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7253
7254 2014-03-22  Doug Evans  <xdje42@gmail.com>
7255
7256         * infcmd.c: Whitespace fixes.
7257         (interrupt_command): Merge two function comments into one.
7258
7259 2014-03-22  Doug Evans  <xdje42@gmail.com>
7260
7261         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7262         All uses updated.
7263
7264 2014-03-22  Yao Qi  <yao@codesourcery.com>
7265
7266         * remote.c (target_read_live_memory): Remove.
7267         (memory_xfer_live_readonly_partial): Rename it to
7268         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7269         All callers updated.  Call remote_read_bytes_1
7270         instead of target_read_live_memory.
7271         * tracepoint.c (set_traceframe_number): Remove.
7272         (make_cleanup_restore_traceframe_number): Likewise .
7273         * tracepoint.h (set_traceframe_number): Remove declaration.
7274         (make_cleanup_restore_traceframe_number): Likewise.
7275
7276 2014-03-22  Yao Qi  <yao@codesourcery.com>
7277
7278         * remote.c (remote_read_bytes): Move code on reading from the
7279         remote stub to ...
7280         (remote_read_bytes_1): ... here.  New function.
7281
7282 2014-03-22  Yao Qi  <yao@codesourcery.com>
7283
7284         * ctf.c (ctf_xfer_partial): Check the return value of
7285         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7286         return TARGET_XFER_UNAVAILABLE.
7287         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7288         * target.c (target_read_live_memory): Move it to remote.c.
7289         (memory_xfer_live_readonly_partial): Likewise.
7290         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7291         * remote.c (target_read_live_memory): Moved from target.c.
7292         (memory_xfer_live_readonly_partial): Likewise.
7293         (remote_read_bytes): Factored out from
7294         memory_xfer_partial_1.
7295
7296 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7297
7298         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7299         NULL pointer.
7300
7301 2014-03-21  Pedro Alves  <palves@redhat.com>
7302
7303         * infrun.c (normal_stop): Extend comment.
7304
7305 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7306             Pedro Alves  <palves@redhat.com>
7307
7308         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7309         static buffer.
7310         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7311         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7312         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7313
7314 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7315
7316         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7317         `z' formatted output modifier.
7318
7319 2014-03-20  Tom Tromey  <tromey@redhat.com>
7320             Sergio Durigan Junior  <sergiodj@redhat.com>
7321
7322         * probe.c (parse_probes): Turn assert into an ordinary error.
7323         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7324         exceptions when parsing probes.  Rearrange the code for clarity.
7325
7326 2014-03-20  Tom Tromey  <tromey@redhat.com>
7327
7328         PR gdb/14135
7329         * top.c (execute_command): Only dispatch events if the command
7330         started the target.
7331
7332 2014-03-20  Tom Tromey  <tromey@redhat.com>
7333
7334         PR cli/15718
7335         * infcall.c: Include event-top.h.
7336         (run_inferior_call): Call async_disable_stdin if needed.
7337
7338 2014-03-20  Pedro Alves  <palves@redhat.com>
7339
7340         * infrun.c (prepare_to_proceed): Delete.
7341         (thread_still_needs_step_over): New function.
7342         (find_thread_needs_step_over): New function.
7343         (proceed): If the current thread needs a step-over, set its
7344         steping_over_breakpoint flag.  Adjust to use
7345         find_thread_needs_step_over instead of prepare_to_proceed.
7346         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7347         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7348         breakpoint.
7349         (switch_back_to_stepped_thread): Step over breakpoints of all
7350         threads not the stepping thread, before switching back to the
7351         stepping thread.
7352
7353 2014-03-20  Pedro Alves  <palves@redhat.com>
7354
7355         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7356         extern.
7357         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7358         * infrun.c (saved_singlestep_ptid)
7359         (stepping_past_singlestep_breakpoint): Delete.
7360         (resume): Remove stepping_past_singlestep_breakpoint handling.
7361         (proceed): Store the prev_pc of the stepping thread too.
7362         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7363         singlestep_pc.
7364         (enum infwait_states): Delete infwait_thread_hop_state.
7365         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7366         field.
7367         (handle_inferior_event): Adjust.
7368         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7369         handling and the thread-hop code.  Before removing single-step
7370         breakpoints, check whether the thread hit a single-step breakpoint
7371         of another thread.  If it did, the trap is not a random signal.
7372         (switch_back_to_stepped_thread): If the event thread hit a
7373         single-step breakpoint, unblock it before switching to the
7374         stepping thread.  Handle the case of the stepped thread having
7375         advanced already.
7376         (keep_going): Handle the case of the current thread moving past a
7377         single-step breakpoint.
7378
7379 2014-03-20  Pedro Alves  <palves@redhat.com>
7380
7381         PR breakpoints/7143
7382         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7383         are being stepped over.
7384         (breakpoint_address_match): Make extern.
7385         * breakpoint.h (breakpoint_address_match): New declaration.
7386         * inferior.h (stepping_past_instruction_at): New declaration.
7387         * infrun.c (struct step_over_info): New type.
7388         (step_over_info): New global.
7389         (set_step_over_info, clear_step_over_info)
7390         (stepping_past_instruction_at): New functions.
7391         (handle_inferior_event): Clear the step-over info when
7392         trap_expected is cleared.
7393         (resume): Remove now stale comment.
7394         (clear_proceed_status): Clear step-over info.
7395         (proceed): Adjust step-over handling to set or clear the step-over
7396         info instead of removing all breakpoints.
7397         (handle_signal_stop): When setting up a thread-hop, don't remove
7398         breakpoints here.
7399         (stop_stepping): Clear step-over info.
7400         (keep_going): Adjust step-over handling to set or clear step-over
7401         info and then always inserting breakpoints, instead of removing
7402         all breakpoints when stepping over one.
7403
7404 2014-03-20  Pedro Alves  <palves@redhat.com>
7405
7406         * infrun.c (previous_inferior_ptid): Adjust comment.
7407         (deferred_step_ptid): Delete.
7408         (infrun_thread_ptid_changed, prepare_to_proceed)
7409         (init_wait_for_inferior): Adjust.
7410         (handle_signal_stop): Delete deferred_step_ptid handling.
7411
7412 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7413
7414         PR gdb/15358
7415         * defs.h (sync_quit_force_run): New declaration.
7416         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7417         * event-top.c (async_sigterm_handler): New declaration.
7418         (async_sigterm_token): New variable.
7419         (async_init_signals): Create also async_sigterm_token.
7420         (async_sigterm_handler): New function.
7421         (sync_quit_force_run): New variable.
7422         (handle_sigterm): Replace quit_force call by other calls.
7423         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7424
7425 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7426
7427         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7428         offset into SPE pseudo registers.
7429
7430 2014-03-18  Pedro Alves  <palves@redhat.com>
7431
7432         PR gdb/13860
7433         * inferior.h (print_stop_event): Declare.
7434         * infrun.c (print_stop_event): New, factored out from ...
7435         (normal_stop): ... this.
7436         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7437         of bpstat_print/print_stack_frame.
7438
7439 2014-03-17  Tom Tromey  <tromey@redhat.com>
7440
7441         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7442
7443 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7444
7445         * ada-lang.c (decode_constrained_packed_array): Perform a
7446         minimal coercion for reference with coerce_ref instead of
7447         ada_coerce_ref.
7448
7449 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7450
7451         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7452         (darwin_solib_create_inferior_hook): Emit a warning if version
7453         is unhandled.
7454
7455 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7456
7457         * python/py-value.c (get_field_flag): Cast flag_name argument to
7458         PyObject_GetAttrString to support Python 2.4.
7459
7460 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7461
7462         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7463         (Global Maintainers): Remove Jan Kratochvil.
7464
7465 2014-03-14  Pedro Alves  <palves@redhat.com>
7466
7467         * inferior.h (terminal_ours_for_output): Rename to ...
7468         (child_terminal_ours_for_output): ... this.
7469         (terminal_save_ours): Rename to ...
7470         (child_terminal_save_ours): ... this.
7471         (terminal_ours): Rename to ...
7472         (child_terminal_ours): ... this.
7473         (terminal_inferior): Rename to ...
7474         (child_terminal_inferior): ... this.
7475         (terminal_init_inferior): Rename to ...
7476         (child_terminal_init_inferior): ... this.
7477         (terminal_init_inferior_with_pgrp): Rename to ...
7478         (child_terminal_init_inferior_with_pgrp): ... this.
7479         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7480         (child_terminal_init_with_pgrp): ... this.
7481         (terminal_save_ours): Rename to ...
7482         (child_terminal_save_ours): ... this.
7483         (terminal_init_inferior): Rename to ...
7484         (child_terminal_init): ... this.  Adjust.
7485         (terminal_inferior): Rename to ...
7486         (child_terminal_inferior): ... this.
7487         (terminal_ours_for_output): Rename to ...
7488         (child_terminal_ours_for_output): ... this.  Adjust.
7489         (terminal_ours): Rename to ...
7490         (child_terminal_ours): ... this.
7491         (terminal_ours_1): Rename to ...
7492         (child_terminal_ours_1): ... this.  Adjust.
7493         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7494         * windows-nat.c (do_initial_windows_stuff): Adjust.
7495         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7496         (gnu_terminal_init): ... this.  Adjust.
7497         (gnu_target): Adjust.
7498         * inf-child.c (inf_child_target): Adjust.
7499
7500 2014-03-13  Doug Evans  <xdje42@gmail.com>
7501
7502         PR guile/16612
7503         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7504         new eq?-hashtab.
7505
7506 2014-03-13  Doug Evans  <xdje42@gmail.com>
7507
7508         * value.c (record_latest_value): Call release_value_or_incref
7509         instead of release_value.
7510
7511 2014-03-13  Pedro Alves  <palves@redhat.com>
7512
7513         * procfs.c (procfs_target): Don't override to_shortname,
7514         to_longname or to_doc.
7515
7516 2014-03-13  Pedro Alves  <palves@redhat.com>
7517
7518         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7519         Unix in user visible strings.
7520
7521 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7522
7523         * gdbtypes.h: Annotate comments for Doxygen, add a page
7524         block comment with some general info.
7525
7526 2014-03-12  Pedro Alves  <palves@redhat.com>
7527
7528         * infcmd.c (prepare_execution_command): New function, factored out
7529         from several execution commands.
7530         (run_command_1, continue_command, step_1, jump_command)
7531         (signal_command, until_command, advance_command, finish_command)
7532         (attach_command): Use prepare_execution_command.
7533
7534 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7535
7536         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7537         (MAX_BPTS): Define.
7538         (MAX_WPTS): Define.
7539         (struct arm_linux_thread_points): Removed.
7540         (struct arm_linux_process_info): New.
7541         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7542         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7543         (arm_linux_find_breakpoints_by_tid): Removed.
7544         (struct arch_lwp_info): New.
7545         (arm_linux_find_process_pid): New functions.
7546         (arm_linux_add_process): New functions.
7547         (arm_linux_process_info_get): New functions.
7548         (arm_linux_forget_process): New function.
7549         (arm_linux_get_debug_reg_state): New function.
7550         (struct update_registers_data): New.
7551         (update_registers_callback): New function.
7552         (arm_linux_insert_hw_breakpoint1): Updated.
7553         (arm_linux_remove_hw_breakpoint1): Updated.
7554         (arm_linux_insert_hw_breakpoint): Updated.
7555         (arm_linux_remove_hw_breakpoint): Updated.
7556         (arm_linux_insert_watchpoint): Updated.
7557         (arm_linux_remove_watchpoint): Updated.
7558         (arm_linux_new_thread): Updated.
7559         (arm_linux_prepare_to_resume): New function.
7560         (arm_linux_new_fork): New function.
7561         (_initialize_arm_linux_nat): Updated.
7562
7563 2014-03-12  Pedro Alves  <palves@redhat.com>
7564
7565         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7566
7567 2014-03-12  Tom Tromey  <tromey@redhat.com>
7568
7569         * inf-child.c (return_zero): New function.
7570         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7571         * aix-thread.c (aix_thread_inferior_created): New function.
7572         (aix_thread_attach): Remove.
7573         (init_aix_thread_ops): Don't set to_attach.
7574         (_initialize_aix_thread): Register inferior_created observer.
7575         * corelow.c (init_core_ops): Don't set to_attach or
7576         to_create_inferior.
7577         * exec.c (init_exec_ops): Don't set to_attach or
7578         to_create_inferior.
7579         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7580         target calls.
7581         (attach_command): Use find_attach_target.  Make direct target
7582         calls.
7583         * record-btrace.c (init_record_btrace_ops): Don't set
7584         to_create_inferior.
7585         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7586         Remove.
7587         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7588         set to_create_inferior.
7589         * target.c (complete_target_initialization): Add assertion.
7590         (target_create_inferior): Remove.
7591         (find_default_attach, find_default_create_inferior): Remove.
7592         (find_attach_target, find_run_target): New functions.
7593         (find_default_is_async_p, find_default_can_async_p)
7594         (target_supports_non_stop, target_attach): Remove.
7595         (init_dummy_target): Don't set to_create_inferior or
7596         to_supports_non_stop.
7597         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7598         TARGET_DEFAULT_FUNC.
7599         <to_create_inferior>: Add comment.
7600         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7601         TARGET_DEFAULT_RETURN.
7602         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7603         (find_attach_target, find_run_target): Declare.
7604         (target_create_inferior): Remove.
7605         (target_has_execution_1): Update comment.
7606         (target_supports_non_stop): Remove.
7607         * target-delegates.c: Rebuild.
7608
7609 2014-03-12  Pedro Alves  <palves@redhat.com>
7610
7611         * inf-child.h: Update comment to not mention Unix.
7612
7613 2014-03-12  Pedro Alves  <palves@redhat.com>
7614
7615         * inf-child.c: Update top comment to not mention Unix.  Add
7616         generic comment describing how this target is meant to be used.
7617         (inf_child_post_attach, inf_child_post_startup_inferior)
7618         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7619         Unix in comment.
7620
7621 2014-03-12  Pedro Alves  <palves@redhat.com>
7622
7623         * nto-procfs.c: Include inf-child.h.
7624         (procfs_ops): Delete global.
7625         (procfs_can_run): Delete method.
7626         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7627         target pointer instead of referencing procfs_ops.
7628         (procfs_prepare_to_store): Delete.
7629         (init_procfs_ops): Delete function.
7630         (procfs_target): New function, based on init_procfs_ops, but
7631         inherit inf_child_target.
7632         (_initialize_procfs): Use procfs_target.
7633
7634 2014-03-12  Pedro Alves  <palves@redhat.com>
7635
7636         * windows-nat.c: Include inf-child.h.
7637         (windows_ops): Delete global.
7638         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7639         methods.
7640         (init_windows_ops): Delete function.
7641         (windows_target): New function, based on init_windows_ops, but
7642         inherit inf_child_target.
7643         (_initialize_windows_nat): Use windows_target.  Install x86
7644         specific target methods here.
7645
7646 2014-03-10  Doug Evans  <xdje42@gmail.com>
7647
7648         * guile/guile.c (call_initialize_gdb_module): New function.
7649         (initialize_guile): Replace call to scm_init_guile with call to
7650         scm_with_guile.
7651
7652 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7653
7654         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7655         in call to TYPE_CODE macro.
7656
7657 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7658
7659         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7660         Resolve tagged types to full view.
7661
7662 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7663
7664         * target.h (target_insert_breakpoint): Remove "hardware" from its
7665         comments.
7666
7667 2014-03-07  Doug Evans  <dje@google.com>
7668
7669         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7670
7671 2014-03-07  Doug Evans  <dje@google.com>
7672
7673         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7674         Remove unused local comp_dir_attr.  Assert exactly one of
7675         stub_comp_unit_die, stub_comp_dir is non-NULL.
7676
7677 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7678
7679         * target.h (complete_target_initialization, add_target):
7680         Add comment.
7681
7682 2014-03-07  Pedro Alves  <palves@redhat.com>
7683
7684         * go32-nat.c: Include inf-child.h.
7685         (go32_ops): Delete global.
7686         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7687         Delete methods.
7688         (go32_create_inferior): Push the passed in target pointer instead
7689         of referencing go32_ops.
7690         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7691         (go32_target): New function, based on init_go32_ops, but inherit
7692         inf_child_target.
7693         (_initialize_go32_nat): Use go32_target.  Move parts of
7694         init_go32_ops here.
7695
7696 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7697
7698         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7699         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7700         SYMBOL_VALUE_ADDRESS.
7701         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7702
7703 2014-03-06  Yao Qi  <yao@codesourcery.com>
7704
7705         * breakpoint.c (get_tracepoint_by_number): Remove argument
7706         optional_p.  All callers updated.  Adjust comments.  Update
7707         output message.
7708         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7709
7710 2014-03-06  Yao Qi  <yao@codesourcery.com>
7711
7712         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7713         early if get_number returns zero.  Use 'p' instead of 'args'.
7714
7715 2014-03-06  Yao Qi  <yao@codesourcery.com>
7716
7717         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7718         message.
7719
7720 2014-03-06  Yao Qi  <yao@codesourcery.com>
7721
7722         PR breakpoints/16508
7723         * tracepoint.c (check_trace_running): New function.
7724         (trace_find_command): Move code to check_trace_running and
7725         call check_trace_running.
7726         (trace_find_pc_command): Likewise.
7727         (trace_find_tracepoint_command): Likewise.
7728         (trace_find_line_command): Likewise.
7729         (trace_find_range_command): Likewise.
7730         * tracepoint.h (check_trace_running): Likewise.
7731         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7732
7733 2014-03-06  Yao Qi  <yao@codesourcery.com>
7734
7735         * target.h (struct target_ops) <to_traceframe_info>: Use
7736         TARGET_DEFAULT_NORETURN (tcomplain ()).
7737         * target-delegates.c: Regenerated.
7738
7739 2014-03-05  Pedro Alves  <palves@redhat.com>
7740
7741         PR gdb/16575
7742         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7743         void.  Update comment.
7744         (dcache_xfer_memory): Delete.
7745         (dcache_read_memory_partial): New, based on the read bits of
7746         dcache_xfer_memory.
7747         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7748         adjust.  Discard cache lines if the reason for the update was
7749         error.
7750         * dcache.h (dcache_xfer_memory): Delete declaration.
7751         (dcache_read_memory_partial): New declaration.
7752         (dcache_update): Update prototype.
7753         * target.c (raw_memory_xfer_partial): Update the dcache here.
7754         (memory_xfer_partial_1): Don't handle dcache writes here.
7755
7756 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7757
7758         * remote-sim.c (gdbsim_load): Add const to prog.
7759
7760 2014-03-03  Tom Tromey  <tromey@redhat.com>
7761
7762         * elfread.c (probe_key): Change to bfd_data.
7763         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7764         now per-BFD, not per-objfile.
7765         * stap-probe.c (stap_probe_destroy): Update comment.
7766         (handle_stap_probe): Allocate on the per-BFD obstack.
7767
7768 2014-03-03  Tom Tromey  <tromey@redhat.com>
7769
7770         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7771         * breakpoint.c (create_longjmp_master_breakpoint): Use
7772         get_probe_address.
7773         (add_location_to_breakpoint, bkpt_probe_insert_location)
7774         (bkpt_probe_remove_location): Update.
7775         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7776         * elfread.c (elf_symfile_relocate_probe): Remove.
7777         (elf_probe_fns): Update.
7778         (insert_exception_resume_breakpoint): Change type of "probe"
7779         parameter to bound_probe.
7780         (check_exception_resume): Update.
7781         * objfiles.c (objfile_relocate1): Don't relocate probes.
7782         * probe.c (bound_probe_s): New typedef.
7783         (parse_probes): Use get_probe_address.  Set sal's objfile.
7784         (find_probe_by_pc): Return a bound_probe.
7785         (collect_probes): Return a VEC(bound_probe_s).
7786         (compare_probes): Update.
7787         (gen_ui_out_table_header_info): Change type of "probes"
7788         parameter.  Update.
7789         (info_probes_for_ops): Update.
7790         (get_probe_address): New function.
7791         (probe_safe_evaluate_at_pc): Update.
7792         * probe.h (struct probe_ops) <get_probe_address>: New field.
7793         <set_semaphore, clear_semaphore>: Add objfile parameter.
7794         (struct probe) <objfile>: Remove field.
7795         <arch>: New field.
7796         <address>: Update comment.
7797         (struct bound_probe): New.
7798         (find_probe_by_pc): Return a bound_probe.
7799         (get_probe_address): Declare.
7800         * solib-svr4.c (struct probe_and_action) <address>: New field.
7801         (hash_probe_and_action, equal_probe_and_action): Update.
7802         (register_solib_event_probe): Add address parameter.
7803         (solib_event_probe_at): Update.
7804         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7805         get_probe_address.
7806         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7807         (stap_get_probe_address): New function.
7808         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7809         (compile_probe_arg): Update.
7810         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7811         address.
7812         (handle_stap_probe): Don't relocate the probe.
7813         (stap_relocate): Remove.
7814         (stap_gen_info_probes_table_values): Update.
7815         (stap_probe_ops): Remove stap_relocate.
7816         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7817         (debug_sym_probe_fns): Update.
7818         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7819         * symtab.c (init_sal): Use memset.
7820         * symtab.h (struct symtab_and_line) <objfile>: New field.
7821         * tracepoint.c (start_tracing, stop_tracing): Update.
7822
7823 2014-03-03  Tom Tromey  <tromey@redhat.com>
7824
7825         * probe.h (parse_probes, find_probe_by_pc)
7826         (find_probes_in_objfile): Fix comments.
7827
7828 2014-03-02  Doug Evans  <xdje42@gmail.com>
7829
7830         * infrun.c (handle_signal_stop): Replace test for
7831         TARGET_WAITKIND_STOPPED with an assert.
7832
7833 2014-03-02  Doug Evans  <xdje42@gmail.com>
7834
7835         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7836
7837 2014-03-02  Doug Evans  <xdje42@gmail.com>
7838
7839         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7840
7841 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7842
7843         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7844
7845 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7846
7847         * i386obsd-nat.c: Include "obsd-nat.h".
7848         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7849         add_target.
7850         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7851
7852 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7853
7854         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7855
7856 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7857
7858         * mips64obsd-nat.c: Include "obsd-nath".
7859         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7860         add_target
7861         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7862
7863 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7864
7865         * amd64obsd-nat.c: Include "obsd-nat,h.
7866         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7867         add_target.
7868         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7869
7870 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7871
7872         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7873         (find_overload_match): Update call to find_oload_champ.
7874         (find_oload_champ_namespace_loop): Likewise
7875
7876 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7877
7878         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7879
7880         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7881         * config/sparc/obsd64.mh: New file.
7882         * sparc64obsd-nat.c: New file.
7883
7884         * obsd-nat.h: New file.
7885         * obsd-nat.c: New file.
7886         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7887         (ALLDEPFILES): Add obsd-nat.c.
7888
7889 2014-02-28  Tom Tromey  <tromey@redhat.com>
7890
7891         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7892         * cli-out.h (cli_ui_out_impl): Now const.
7893         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7894         * ui-out.c (struct ui_out) <impl>: Now const.
7895         (default_ui_out_impl): Now const.
7896         (ui_out_new): Make 'impl' parameter const.
7897         * ui-out.h (ui_out_new): Update.
7898
7899 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7900
7901         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7902
7903 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7904
7905         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7906
7907 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7908
7909         Additional PR 8882 fix.
7910         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7911
7912 2014-02-27  Pedro Alves  <palves@redhat.com>
7913
7914         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7915         isn't set.
7916
7917 2014-02-27  Pedro Alves  <palves@redhat.com>
7918
7919         PR 12702
7920         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7921         * nat/linux-waitpid.c: Include string.h.
7922         (status_to_str): Moved here and made extern.
7923         * nat/linux-waitpid.h (status_to_str): New declaration.
7924
7925 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7926
7927         PR 12702
7928         * infrun.c (ptid_match): Move ...
7929         * common/ptid.c (ptid_match): ... here.
7930         * inferior.h (ptid_match): Move ...
7931         * common/ptid.h (ptid_match): ... here.
7932
7933 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7934
7935         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7936         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7937         gdb_target_obs.
7938
7939 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7940
7941         * obsd-tdep.c (obsd_auxv_parse): New function.
7942         (obsd_init_abi): Set auxv_parse.
7943
7944         * gdbarch.sh (auxv_parse): New.
7945         * gdbarch.h: Regenerated.
7946         * gdbarch.c: Regenerated.
7947         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7948
7949 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7950
7951         * guile/scm-value.c (gdbscm_history_append_x): New function.
7952         (value_functions): Add it.
7953
7954 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7955
7956         * dwarf2read.c (attr_value_as_address): New function.
7957         (dwarf2_find_base_address, read_call_site_scope): Use
7958         attr_value_as_address in place of DW_ADDR.
7959         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7960         the low and high addresses.  Slight rework of the handling
7961         of the high pc being a constant form, and limit it to
7962         DWARF verson 4 or higher.
7963         (dwarf2_record_block_ranges): Likewise.
7964         (read_partial_die): Likewise.
7965         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7966
7967 2014-02-26  Tom Tromey  <tromey@redhat.com>
7968
7969         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7970
7971 2014-02-26  Tom Tromey  <tromey@redhat.com>
7972
7973         * elfread.c (elf_read_minimal_symbols): Return early if
7974         minimal symbols have already been read.  Add "ei" parameter.
7975         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7976         * minsyms.c (prim_record_minimal_symbol_full): Update.
7977         * objfiles.h (struct objstats) <n_minsyms>: Move...
7978         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7979         * symmisc.c (print_objfile_statistics): Update.
7980
7981 2014-02-26  Tom Tromey  <tromey@redhat.com>
7982
7983         * elfread.c (elf_read_minimal_symbols): New function, from
7984         elf_symfile_read.
7985         (elf_symfile_read): Call it.
7986
7987 2014-02-26  Tom Tromey  <tromey@redhat.com>
7988
7989         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7990         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7991         (lookup_minimal_symbol_solib_trampoline)
7992         (lookup_minimal_symbol_by_pc_section_1)
7993         (lookup_minimal_symbol_and_objfile): Update.
7994         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7995         Don't allocate a minimal symbol if minsyms have already been read.
7996         (build_minimal_symbol_hash_tables): Update.
7997         (install_minimal_symbols): Do nothing if minsyms already read.
7998         Use the per-BFD obstack.
7999         (terminate_minimal_symbol_table): Use the per-BFD obstack.
8000         * objfiles.c (allocate_objfile): Call
8001         terminate_minimal_symbol_table later.
8002         (have_minimal_symbols): Update.
8003         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8004         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8005         Move from struct objfile.
8006         <minsyms_read>: New field.
8007         (struct objfile) <msymbols, minimal_symbol_count,
8008         msymbol_hash, msymbol_demangled_hash>: Move.
8009         (ALL_OBJFILE_MSYMBOLS): Update.
8010         * symfile.c (read_symbols): Set minsyms_read.
8011         (reread_symbols): Update.
8012         * symmisc.c (dump_objfile, dump_msymbols): Update.
8013
8014 2014-02-26  Tom Tromey  <tromey@redhat.com>
8015
8016         * minsyms.c (msymbols_sort): Remove.
8017         * minsyms.h (msymbols_sort): Remove.
8018         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8019         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8020         * elfread.c (elf_symtab_read): Don't add section offsets.
8021         * xcoffread.c (record_minimal_symbol): Don't add section offset
8022         to minimal symbol address.
8023         * somread.c (text_offset, data_offset): Remove.
8024         (som_symtab_read): Don't add section offsets to minimal symbol
8025         addresses.
8026         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8027         Don't add section offsets to minimal symbols.
8028         * coffread.c (coff_symtab_read): Don't add section offsets
8029         to minimal symbol addresses.
8030         * machoread.c (macho_symtab_add_minsym): Don't add section offset
8031         to minimal symbol addresses.
8032         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8033         section offset to minimal symbol addresses.
8034         * mdebugread.c (parse_partial_symbols): Don't add section
8035         offset to minimal symbol addresses.
8036         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8037         offset to minimal symbol addresses.
8038
8039 2014-02-26  Tom Tromey  <tromey@redhat.com>
8040
8041         * ada-lang.c (ada_main_name): Update.
8042         (ada_add_standard_exceptions): Update.
8043         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8044         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8045         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8046         * auxv.c (ld_so_xfer_auxv): Update.
8047         * avr-tdep.c (avr_scan_prologue): Update.
8048         * ax-gdb.c (gen_var_ref): Update.
8049         * blockframe.c (get_pc_function_start)
8050         (find_pc_partial_function_gnu_ifunc): Update.
8051         * breakpoint.c (create_overlay_event_breakpoint)
8052         (create_longjmp_master_breakpoint)
8053         (create_std_terminate_master_breakpoint)
8054         (create_exception_master_breakpoint): Update.
8055         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8056         * c-valprint.c (c_val_print): Update.
8057         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8058         * common/agent.c (agent_look_up_symbols): Update.
8059         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8060         * dwarf2loc.c (call_site_to_target_addr): Update.
8061         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8062         * elfread.c (elf_gnu_ifunc_record_cache)
8063         (elf_gnu_ifunc_resolve_by_got): Update.
8064         * findvar.c (default_read_var_value): Update.
8065         * frame.c (inside_main_func): Update.
8066         * frv-tdep.c (frv_frame_this_id): Update.
8067         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8068         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8069         Update.
8070         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8071         (hppa_hpux_find_dummy_bpaddr): Update.
8072         * hppa-tdep.c (hppa_symbol_address): Update.
8073         * infcmd.c (until_next_command): Update.
8074         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8075         Update.
8076         * linespec.c (minsym_found, add_minsym): Update.
8077         * linux-nat.c (get_signo): Update.
8078         * linux-thread-db.c (inferior_has_bug): Update.
8079         * m32c-tdep.c (m32c_return_value)
8080         (m32c_m16c_address_to_pointer): Update.
8081         * m32r-tdep.c (m32r_frame_this_id): Update.
8082         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8083         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8084         * maint.c (maintenance_translate_address): Update.
8085         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8086         (frob_address): New function.
8087         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8088         frob_address.  Rename parameter to "pc_in".
8089         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8090         addresses.
8091         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8092         Update.
8093         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8094         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8095         * objc-lang.c (find_objc_msgsend): Update.
8096         * objfiles.c (objfile_relocate1): Update.
8097         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8098         * p-valprint.c (pascal_val_print): Update.
8099         * parse.c (write_exp_msymbol): Update.
8100         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8101         (ppc_elfv2_skip_entrypoint): Update.
8102         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8103         * printcmd.c (build_address_symbolic, msym_info)
8104         (address_info): Update.
8105         * proc-service.c (ps_pglobal_lookup): Update.
8106         * psymtab.c (find_pc_sect_psymtab_closer)
8107         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8108         Change msymbol parameter to bound_minimal_symbol.
8109         * ravenscar-thread.c (get_running_thread_id): Update.
8110         * remote.c (remote_check_symbols): Update.
8111         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8112         address.
8113         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8114         * solib-dsbt.c (lm_base): Update.
8115         * solib-frv.c (lm_base, main_got): Update.
8116         * solib-irix.c (locate_base): Update.
8117         * solib-som.c (som_solib_create_inferior_hook)
8118         (link_map_start): Update.
8119         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8120         * solib-svr4.c (elf_locate_base, enable_break): Update.
8121         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8122         (flush_ea_cache): Update.
8123         * stabsread.c (define_symbol, scan_file_globals): Update.
8124         * stack.c (find_frame_funname): Update.
8125         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8126         (debug_qf_find_pc_sect_symtab): Update.
8127         * symfile.c (simple_read_overlay_table)
8128         (simple_overlay_update): Update.
8129         * symfile.h (struct quick_symbol_functions)
8130         <find_pc_sect_symtab>: Change type of msymbol to
8131         bound_minimal_symbol.
8132         * symmisc.c (dump_msymbols): Update.
8133         * symtab.c (find_pc_sect_symtab_via_partial)
8134         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8135         (search_symbols, print_msymbol_info): Update.
8136         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8137         (MSYMBOL_VALUE_ADDRESS): Redefine.
8138         (BMSYMBOL_VALUE_ADDRESS): New macro.
8139         * tracepoint.c (scope_info): Update.
8140         * tui/tui-disasm.c (tui_find_disassembly_address)
8141         (tui_get_begin_asm_address): Update.
8142         * valops.c (find_function_in_inferior): Update.
8143         * value.c (value_static_field, value_fn_field): Update.
8144
8145 2014-02-26  Tom Tromey  <tromey@redhat.com>
8146
8147         * ada-lang.c (ada_update_initial_language): Update.
8148         (ada_main_name, ada_has_this_exception_support): Update.
8149         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8150         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8151         * arm-tdep.c (arm_skip_stub): Update.
8152         * auxv.c (ld_so_xfer_auxv): Update.
8153         * avr-tdep.c (avr_scan_prologue): Update.
8154         * ax-gdb.c (gen_var_ref): Update.
8155         * breakpoint.c (struct breakpoint_objfile_data)
8156         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8157         type to bound_minimal_symbol.
8158         (create_overlay_event_breakpoint)
8159         (create_longjmp_master_breakpoint)
8160         (create_std_terminate_master_breakpoint)
8161         (create_exception_master_breakpoint): Update.
8162         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8163         * c-exp.y (classify_name): Update.
8164         * coffread.c (coff_symfile_read): Update.
8165         * common/agent.c (agent_look_up_symbols): Update.
8166         * d-lang.c (d_main_name): Update.
8167         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8168         * dec-thread.c (enable_dec_thread): Update.
8169         * dwarf2loc.c (call_site_to_target_addr): Update.
8170         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8171         * eval.c (evaluate_subexp_standard): Update.
8172         * findvar.c (struct minsym_lookup_data) <result>: Change type
8173         to bound_minimal_symbol.
8174         <objfile>: Remove.
8175         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8176         * frame.c (inside_main_func): Update.
8177         * frv-tdep.c (frv_frame_this_id): Update.
8178         * gcore.c (call_target_sbrk): Update.
8179         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8180         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8181         Update.
8182         * go-lang.c (go_main_name): Update.
8183         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8184         (hppa_hpux_find_import_stub_for_addr): Update.
8185         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8186         Update.  Change return type.
8187         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8188         type.
8189         * jit.c (jit_breakpoint_re_set_internal): Update.
8190         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8191         Update.
8192         * linux-nat.c (get_signo): Update.
8193         * linux-thread-db.c (inferior_has_bug): Update
8194         * m32c-tdep.c (m32c_return_value)
8195         (m32c_m16c_address_to_pointer): Update.
8196         * m32r-tdep.c (m32r_frame_this_id): Update.
8197         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8198         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8199         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8200         lookup_minimal_symbol.  Change return type.
8201         (lookup_minimal_symbol): Remove.
8202         (lookup_bound_minimal_symbol): Update.
8203         (lookup_minimal_symbol_text): Change return type.
8204         (lookup_minimal_symbol_solib_trampoline): Change return type.
8205         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8206         (lookup_minimal_symbol_solib_trampoline): Change return type.
8207         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8208         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8209         (value_nsstring, find_imps): Update.
8210         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8211         * p-lang.c (pascal_main_name): Update.
8212         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8213         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8214         * proc-service.c (ps_pglobal_lookup): Update.
8215         * ravenscar-thread.c (get_running_thread_msymbol): Change
8216         return type.
8217         (has_ravenscar_runtime, get_running_thread_id): Update.
8218         * remote.c (remote_check_symbols): Update.
8219         * sol-thread.c (ps_pglobal_lookup): Update.
8220         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8221         * solib-dsbt.c (lm_base): Update.
8222         * solib-frv.c (lm_base, frv_relocate_section_addresses):
8223         Update.
8224         * solib-irix.c (locate_base): Update.
8225         * solib-som.c (som_solib_create_inferior_hook)
8226         (som_solib_desire_dynamic_linker_symbols, link_map_start):
8227         Update.
8228         * solib-spu.c (spu_enable_break): Update.
8229         * solib-svr4.c (elf_locate_base, enable_break): Update.
8230         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8231         (flush_ea_cache): Update.
8232         * stabsread.c (define_symbol): Update.
8233         * symfile.c (simple_read_overlay_table): Update.
8234         * symtab.c (find_pc_sect_line): Update.
8235         * tracepoint.c (scope_info): Update.
8236         * tui-disasm.c (tui_get_begin_asm_address): Update.
8237         * value.c (value_static_field): Update.
8238
8239 2014-02-26  Tom Tromey  <tromey@redhat.com>
8240
8241         * minsyms.c (prim_record_minimal_symbol_full): Use
8242         SET_MSYMBOL_VALUE_ADDRESS.
8243         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8244         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8245         SET_MSYMBOL_VALUE_ADDRESS.
8246         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8247         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8248
8249 2014-02-26  Tom Tromey  <tromey@redhat.com>
8250
8251         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8252         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8253         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8254         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8255         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8256         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8257         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8258         * ada-lang.c (ada_main_name): Update.
8259         (ada_lookup_simple_minsym): Update.
8260         (ada_make_symbol_completion_list): Update.
8261         (ada_add_standard_exceptions): Update.
8262         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8263         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8264         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8265         * arm-tdep.c (skip_prologue_function): Update.
8266         (arm_skip_stack_protector, arm_skip_stub): Update.
8267         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8268         (arm_wince_skip_main_prologue): Update.
8269         * auxv.c (ld_so_xfer_auxv): Update.
8270         * avr-tdep.c (avr_scan_prologue): Update.
8271         * ax-gdb.c (gen_var_ref): Update.
8272         * block.c (call_site_for_pc): Update.
8273         * blockframe.c (get_pc_function_start): Update.
8274         (find_pc_partial_function_gnu_ifunc): Update.
8275         * breakpoint.c (create_overlay_event_breakpoint): Update.
8276         (create_longjmp_master_breakpoint): Update.
8277         (create_std_terminate_master_breakpoint): Update.
8278         (create_exception_master_breakpoint): Update.
8279         (resolve_sal_pc): Update.
8280         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8281         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8282         Update.
8283         * c-valprint.c (c_val_print): Update.
8284         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8285         * coffread.c (coff_symfile_read): Update.
8286         * common/agent.c (agent_look_up_symbols): Update.
8287         * dbxread.c (find_stab_function_addr): Update.
8288         (end_psymtab): Update.
8289         * dwarf2loc.c (call_site_to_target_addr): Update.
8290         (func_verify_no_selftailcall): Update.
8291         (tailcall_dump): Update.
8292         (call_site_find_chain_1): Update.
8293         (dwarf_expr_reg_to_entry_parameter): Update.
8294         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8295         (elf_gnu_ifunc_resolve_by_got): Update.
8296         * f-valprint.c (info_common_command): Update.
8297         * findvar.c (read_var_value): Update.
8298         * frame.c (get_prev_frame_1): Update.
8299         (inside_main_func): Update.
8300         * frv-tdep.c (frv_skip_main_prologue): Update.
8301         (frv_frame_this_id): Update.
8302         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8303         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8304         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8305         (gnuv3_skip_trampoline): Update.
8306         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8307         (hppa64_hpux_in_solib_call_trampoline): Update.
8308         (hppa_hpux_skip_trampoline_code): Update.
8309         (hppa64_hpux_search_dummy_call_sequence): Update.
8310         (hppa_hpux_find_import_stub_for_addr): Update.
8311         (hppa_hpux_find_dummy_bpaddr): Update.
8312         * hppa-tdep.c (hppa_symbol_address)
8313         (hppa_lookup_stub_minimal_symbol): Update.
8314         * i386-tdep.c (i386_skip_main_prologue): Update.
8315         (i386_pe_skip_trampoline_code): Update.
8316         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8317         * infcall.c (get_function_name): Update.
8318         * infcmd.c (until_next_command): Update.
8319         * jit.c (jit_breakpoint_re_set_internal): Update.
8320         (jit_inferior_init): Update.
8321         * linespec.c (minsym_found): Update.
8322         (add_minsym): Update.
8323         * linux-fork.c (info_checkpoints_command): Update.
8324         * linux-nat.c (get_signo): Update.
8325         * linux-thread-db.c (inferior_has_bug): Update.
8326         * m32c-tdep.c (m32c_return_value): Update.
8327         (m32c_m16c_address_to_pointer): Update.
8328         (m32c_m16c_pointer_to_address): Update.
8329         * m32r-tdep.c (m32r_frame_this_id): Update.
8330         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8331         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8332         * maint.c (maintenance_translate_address): Update.
8333         * minsyms.c (add_minsym_to_hash_table): Update.
8334         (add_minsym_to_demangled_hash_table): Update.
8335         (msymbol_objfile): Update.
8336         (lookup_minimal_symbol): Update.
8337         (iterate_over_minimal_symbols): Update.
8338         (lookup_minimal_symbol_text): Update.
8339         (lookup_minimal_symbol_by_pc_name): Update.
8340         (lookup_minimal_symbol_solib_trampoline): Update.
8341         (lookup_minimal_symbol_by_pc_section_1): Update.
8342         (lookup_minimal_symbol_and_objfile): Update.
8343         (prim_record_minimal_symbol_full): Update.
8344         (compare_minimal_symbols): Update.
8345         (compact_minimal_symbols): Update.
8346         (build_minimal_symbol_hash_tables): Update.
8347         (install_minimal_symbols): Update.
8348         (terminate_minimal_symbol_table): Update.
8349         (find_solib_trampoline_target): Update.
8350         (minimal_symbol_upper_bound): Update.
8351         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8352         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8353         (mips_skip_pic_trampoline_code): Update.
8354         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8355         * objc-lang.c (selectors_info): Update.
8356         (classes_info): Update.
8357         (find_methods): Update.
8358         (find_imps): Update.
8359         (find_objc_msgsend): Update.
8360         * objfiles.c (objfile_relocate1): Update.
8361         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8362         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8363         * p-valprint.c (pascal_val_print): Update.
8364         * parse.c (write_exp_msymbol): Update.
8365         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8366         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8367         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8368         * printcmd.c (build_address_symbolic): Update.
8369         (sym_info): Update.
8370         (address_info): Update.
8371         * proc-service.c (ps_pglobal_lookup): Update.
8372         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8373         (find_pc_sect_psymtab): Update.
8374         * python/py-framefilter.c (py_print_frame): Update.
8375         * ravenscar-thread.c (get_running_thread_id): Update.
8376         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8377         Update.
8378         * remote.c (remote_check_symbols): Update.
8379         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8380         (rs6000_skip_trampoline_code): Update.
8381         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8382         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8383         * solib-dsbt.c (lm_base): Update.
8384         * solib-frv.c (lm_base): Update.
8385         (main_got): Update.
8386         * solib-irix.c (locate_base): Update.
8387         * solib-som.c (som_solib_create_inferior_hook): Update.
8388         (som_solib_desire_dynamic_linker_symbols): Update.
8389         (link_map_start): Update.
8390         * solib-spu.c (spu_enable_break): Update.
8391         (ocl_enable_break): Update.
8392         * solib-svr4.c (elf_locate_base): Update.
8393         (enable_break): Update.
8394         * spu-tdep.c (spu_get_overlay_table): Update.
8395         (spu_catch_start): Update.
8396         (flush_ea_cache): Update.
8397         * stabsread.c (define_symbol): Update.
8398         (scan_file_globals): Update.
8399         * stack.c (find_frame_funname): Update.
8400         (frame_info): Update.
8401         * symfile.c (simple_read_overlay_table): Update.
8402         (simple_overlay_update): Update.
8403         * symmisc.c (dump_msymbols): Update.
8404         * symtab.c (fixup_section): Update.
8405         (find_pc_sect_line): Update.
8406         (skip_prologue_sal): Update.
8407         (search_symbols): Update.
8408         (print_msymbol_info): Update.
8409         (rbreak_command): Update.
8410         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8411         (completion_list_objc_symbol): Update.
8412         (default_make_symbol_completion_list_break_on): Update.
8413         * tracepoint.c (scope_info): Update.
8414         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8415         (tui_get_begin_asm_address): Update.
8416         * valops.c (find_function_in_inferior): Update.
8417         * value.c (value_static_field): Update.
8418         (value_fn_field): Update.
8419
8420 2014-02-26  Tom Tromey  <tromey@redhat.com>
8421
8422         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8423         bound minimal symbols.  Move code that knows about minsym
8424         table layout...
8425         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8426         function.
8427         * minsyms.h (minimal_symbol_upper_bound): Declare.
8428         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8429         minimal_symbol_upper_bound.
8430
8431 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8432
8433         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8434         Use the type's name if its basic type does not have a tag.
8435
8436 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8437
8438         * dwarf2read.c (read_subrange_type): Add comment.
8439
8440 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8441
8442         * dwarf2read.c (update_enumeration_type_from_children): New
8443         function, mostly extracted from process_structure_scope.
8444         (read_enumeration_type): Call update_enumeration_type_from_children.
8445         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8446         and flag_flag_enum fields.
8447
8448 2014-02-26  Pedro Alves  <palves@redhat.com>
8449
8450         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8451         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8452         to_xfer_partial method.
8453
8454 2014-02-26  Pedro Alves  <palves@redhat.com>
8455
8456         * target.c (complete_target_initialization): Don't install
8457         default_xfer_partial as to_xfer_partial hook.
8458         (nomemory): Delete.
8459         (update_current_target): Don't INHERIT nor de_fault
8460         deprecated_xfer_memory.  Delete de_fault macro.
8461         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8462         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8463         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8464         field.
8465
8466 2014-02-26  Pedro Alves  <palves@redhat.com>
8467
8468         * go32-nat.c (my_write_child): New function.
8469         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8470         (go32_xfer_partial): New function.
8471         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8472         Instead install a to_xfer_partial hook.
8473
8474 2014-02-26  Pedro Alves  <palves@redhat.com>
8475
8476         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8477         to_xfer_partial helper.  Rewrite.
8478         (procfs_xfer_partial): New function.
8479         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8480         Install a to_xfer_partial hook.
8481
8482 2014-02-26  Pedro Alves  <palves@redhat.com>
8483
8484         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8485         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8486         (m32r_xfer_partial): New function.
8487         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8488         Install a to_xfer_partial hook.
8489
8490 2014-02-26  Pedro Alves  <palves@redhat.com>
8491
8492         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8493         helper.
8494         (mips_xfer_partial): New function.
8495         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8496         hook.  Install a to_xfer_partial hook.
8497
8498 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8499
8500         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8501         * gdbtypes.c (create_array_type_with_stride): New function,
8502         renaming create_array_type, but with an added parameter
8503         called "bit_stride".
8504         (create_array_type): Re-implement using
8505         create_array_type_with_stride.
8506         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8507         and DW_AT_bit_stride attributes.
8508
8509 2014-02-26  Pedro Alves  <palves@redhat.com>
8510
8511         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8512         task-specific breakpoints.
8513
8514 2014-02-25  Pedro Alves  <palves@redhat.com>
8515
8516         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8517         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8518
8519 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8520
8521         * defs.h: Annotate comments for Doxygen.
8522
8523 2014-02-25  Tom Tromey  <tromey@redhat.com>
8524
8525         * target.h (target_ignore): Don't declare.
8526         * target.c (target_ignore): Remove.
8527
8528 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8529
8530         PR gdb/16626
8531         * auto-load.c (auto_load_objfile_script_1): Change filename to
8532         debugfile.
8533
8534 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8535
8536         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8537         documentation.  Adjust prototype to match the target_ops
8538         to_xfer_partial method.  Adjust implementation accordingly.
8539
8540 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8541
8542         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8543         to_traceframe_info.
8544
8545 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8546
8547         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8548         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8549         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8550         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8551         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8552         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8553         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8554         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8555         New constants.
8556         (rl78_register_type): Use a data pointer type for SP and
8557         new pseudo registers mentioned above.  Use a 16 bit integer
8558         type for all other register pairs.
8559         (rl78_register_name, rl78_g10_register_name): Update for
8560         new pseudo registers.
8561         (rl78_pseudo_register_read): Likewise.
8562         (rl78_pseudo_register_write): Likewise.
8563         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8564         to the newly added pseudo registers.
8565
8566 2014-02-24  Doug Evans  <dje@google.com>
8567
8568         * value.c (record_latest_value): Fix comment.
8569         * printcmd.c (print_command_1): Remove code to handle -1 return from
8570         record_latest_value.
8571
8572 2014-02-24  Pedro Alves  <palves@redhat.com>
8573
8574         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8575         deprecated_xfer_memory hook.
8576         (procfs_xfer_partial): Call procfs_xfer_memory instead
8577         of the deprecated_xfer_memory target hook.
8578         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8579         helper.
8580
8581 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8582
8583         * windows-nat.c (windows_xfer_shared_libraries): Return
8584         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8585         requested object is TARGET_OBJECT_LIBRARIES.
8586
8587 2014-02-24  Yao Qi  <yao@codesourcery.com>
8588
8589         * target.h (enum target_xfer_status)
8590         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8591         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8592         explicitly.  New.
8593         * corefile.c (memory_error_message): User updated.
8594         * exec.c (section_table_read_available_memory): Likewise.
8595         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8596         * target.c (target_xfer_status_to_string): Likewise.
8597         (raw_memory_xfer_partial): Likewise.
8598         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8599         * valops.c (read_value_memory): Likewise.
8600         * exec.h: Update comments.
8601
8602 2014-02-24  Yao Qi  <yao@codesourcery.com>
8603
8604         * target.c (target_xfer_status_to_string): Rename argument err
8605         to status.
8606         * target.h (target_xfer_status_to_string): Update declaration.
8607         Replace target_xfer_error_to_string with
8608         target_xfer_status_to_string in comment.
8609
8610 2014-02-24  Yao Qi  <yao@codesourcery.com>
8611
8612         * mips-linux-nat.c (super_close): Update its type.
8613         (mips_linux_close): Pass 'self' to super_close.
8614
8615 2014-02-24  Yao Qi  <yao@codesourcery.com>
8616
8617         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8618         * corefile.c (read_memory): Adjusted.
8619         * target.c (target_write_with_progress): Adjusted.
8620
8621 2014-02-23  Yao Qi  <yao@codesourcery.com>
8622
8623         Revert two patches:
8624
8625         2013-10-25  Yao Qi  <yao@codesourcery.com>
8626
8627         * remote.c (remote_traceframe_info): Return early if
8628         traceframe is not selected.
8629
8630         2013-07-19  Yao Qi  <yao@codesourcery.com>
8631
8632         * target.c (update_current_target): Change the default action
8633         of 'to_traceframe_info' from tcomplain to return_zero.
8634         * target.h (struct target_ops) <to_traceframe_info>: Add more
8635         comments.
8636
8637 2014-02-23  Yao Qi  <yao@codesourcery.com>
8638
8639         * valops.c (read_value_memory): Rewrite it.  Call
8640         target_xfer_partial in a loop.
8641         * exec.h (section_table_available_memory): Remove declaration.
8642         Move comments to ...
8643         * exec.c (section_table_available_memory): ... here.  Make it
8644         static.
8645
8646 2014-02-23  Yao Qi  <yao@codesourcery.com>
8647
8648         * exec.c (section_table_read_available_memory): New function.
8649         * exec.h (section_table_read_available_memory): Declare.
8650         * ctf.c (ctf_xfer_partial): Call
8651         section_table_read_available_memory.
8652         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8653
8654 2014-02-23  Yao Qi  <yao@codesourcery.com>
8655
8656         * ctf.c (ctf_xfer_partial): Move code to ...
8657         * exec.c (exec_read_partial_read_only): ... it.  New function.
8658         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8659         * tracefile.c: Include "exec.h".
8660         * exec.h (exec_read_partial_read_only): Declare.
8661
8662 2014-02-23  Yao Qi  <yao@codesourcery.com>
8663
8664         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8665         (tfile_has_memory): Remove.
8666         (init_tfile_ops): Don't set fields to_has_all_memory and
8667         to_has_memory of tfile_ops.
8668         * tracefile.c (tracefile_has_all_memory): New function.
8669         (tracefile_has_memory): New function.
8670         (init_tracefile_ops): Initialize fields to_has_all_memory and
8671         to_has_memory of 'ops'.
8672
8673 2014-02-23  Yao Qi  <yao@codesourcery.com>
8674
8675         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8676         (ctf_thread_alive, ctf_get_trace_status): Remove.
8677         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8678         init_tracefile_ops.
8679         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8680         (tfile_has_stack, tfile_has_registers): Remove.
8681         (tfile_thread_alive): Remove.
8682         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8683         init_tracefile_ops.
8684         * tracefile.c (tracefile_has_stack): New function.
8685         (tracefile_has_registers): New function.
8686         (tracefile_thread_alive): New function.
8687         (tracefile_get_trace_status): New function.
8688         (init_tracefile_ops): New function.
8689         * tracefile.h (init_tracefile_ops): Declare.
8690
8691 2014-02-23  Yao Qi  <yao@codesourcery.com>
8692
8693         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8694         (O_LARGEFILE): Likewise.
8695         (tfile_ops): Likewise.
8696         (TRACE_HEADER_SIZE): Likewise.
8697         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8698         (cur_data_size): Likewise.
8699         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8700         (tfile_close, tfile_files_info): Likewise.
8701         (tfile_get_trace_status): Likewise.
8702         (tfile_get_tracepoint_status): Likewise.
8703         (tfile_get_traceframe_address): Likewise.
8704         (tfile_trace_find, match_blocktype): Likewise.
8705         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8706         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8707         (tfile_get_trace_state_variable_value): Likewise.
8708         (tfile_has_all_memory, tfile_has_memory): Likewise.
8709         (tfile_has_stack, tfile_has_registers): Likewise.
8710         (tfile_thread_alive, build_traceframe_info): Likewise.
8711         (tfile_traceframe_info, init_tfile_ops): Likewise.
8712         (_initialize_tracepoint): Don't call init_tfile_ops
8713         and add_target_with_completer.
8714         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8715         exec.h, completer.h and filenames.h.
8716         (_initialize_tracefile_tfile): New function.
8717
8718 2014-02-23  Yao Qi  <yao@codesourcery.com>
8719
8720         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8721         tracefile-tfile.o.
8722         (HFILES_NO_SRCDIR): Add tracefile.h.
8723         * ctf.c: Include "tracefile.h".
8724         * tracefile.h: New file.
8725         * tracefile.c: New file
8726         * tracefile-tfile.c: New file.
8727         * tracepoint.c: Include "tracefile.h".
8728         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8729         (stop_reason_names): Add const.
8730         (trace_file_writer_xfree): Move it to tracefile.c.
8731         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8732         (trace_save_ctf): Likewise.
8733         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8734         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8735         (tfile_write_header, tfile_write_regblock_type): Likewise.
8736         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8737         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8738         (tfile_write_raw_data, tfile_end): Likewise.
8739         (tfile_trace_file_writer_new): Likewise.
8740         (free_uploaded_tp): Make it extern.
8741         (free_uploaded_tsv): Make it extern.
8742         (_initialize_tracepoint): Move code to register command 'tsave'
8743         to tracefile.c.
8744         * tracepoint.h (stop_reason_names): Declare.
8745         (struct trace_frame_write_ops): Move it to tracefile.h.
8746         (struct trace_file_write_ops): Likewise.
8747         (struct trace_file_writer): Likewise.
8748         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8749
8750 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8751
8752         PR gdb/16594
8753         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8754         process name.
8755         (get_cores_used_by_process): New parameter num_cores, use it.
8756         (linux_xfer_osdata_processes): Pass num_cores to it.
8757         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8758         process name.
8759
8760 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8761
8762         * target.c (memory_xfer_partial): Fix length arg in call to
8763         breakpoint_xfer_memory.
8764
8765 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8766
8767         PR tdep/16397
8768         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8769         number comes after the + or - signs.  Adjust length of register
8770         name to be extracted.
8771
8772 2014-02-20  Tom Tromey  <tromey@redhat.com>
8773
8774         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8775         (ada_varobj_ops): Mark "extern".
8776
8777 2014-02-20  Tom Tromey  <tromey@redhat.com>
8778
8779         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8780
8781 2014-02-20  Doug Evans  <xdje42@gmail.com>
8782
8783         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8784         All callers updated.
8785         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8786         All callers updated.
8787         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8788         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8789
8790 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8791             Joel Brobecker  <brobecker@adacore.com>
8792             Doug Evans  <xdje42@gmail.com>
8793
8794         PR symtab/16581
8795         * dwarf2read.c (struct die_info): New member in_process.
8796         (reset_die_in_process): New function.
8797         (process_die): Set it at the start, reset when returning.
8798         (inherit_abstract_dies): Only call process_die if origin_child_die
8799         not already being processed.
8800
8801 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8802
8803         * windows-nat.c (handle_unload_dll): Add function documentation.
8804         (do_initial_windows_stuff): Add comment explaining why we wait
8805         until after inferior initialization has finished before
8806         processing all DLLs.
8807
8808 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8809
8810         * windows-nat.c (get_module_name): Delete.
8811         (windows_get_exec_module_filename): New function, mostly
8812         inspired from get_module_name.
8813         (windows_pid_to_exec_file): Replace call to get_module_name
8814         by call to windows_get_exec_module_filename.
8815
8816 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8817
8818         * windows-nat.c (handle_load_dll): Rewrite this function's
8819         introductory comment.  Remove code using get_module_name
8820         to get the DLL's name.
8821
8822 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8823
8824         * windows-nat.c (get_windows_debug_event): Ignore
8825         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8826         if windows_initialization_done == 0.
8827         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8828         Adjust implementation to always load all DLLs.
8829         (do_initial_windows_stuff): Replace call to
8830         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8831
8832 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8833
8834         * windows-nat.c (_initialize_windows_nat): Deprecate the
8835         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8836         and "assf" aliases into commands, and deprecate them as well.
8837         * NEWS: Add entry explaining that "dll-symbols" and its two
8838         aliases are now deprecated.
8839
8840 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8841
8842         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8843         new-line in debug string.  Remove trailing spaces.
8844
8845 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8846
8847         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8848
8849 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8850
8851         * NEWS: Add entry for the new feature
8852         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8853         and class values.
8854
8855 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8856
8857         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8858
8859 2014-02-19  Pedro Alves  <palves@redhat.com>
8860
8861         * common/ptid.h (struct ptid): Mention that process_stratum
8862         targets should prefer ptid.lwp.
8863
8864 2014-02-19  Pedro Alves  <palves@redhat.com>
8865
8866         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8867         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8868         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8869         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8870         store remote thread ids rather than ptid.tid.
8871         (_initialize_remote): Adjust.
8872
8873 2014-02-19  Tom Tromey  <tromey@redhat.com>
8874
8875         * target.c (target_get_unwinder): Rewrite.
8876         (target_get_tailcall_unwinder): Rewrite.
8877         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8878         (record_btrace_to_get_tailcall_unwinder): New function.
8879         (init_record_btrace_ops): Update.
8880         * target.h (struct target_ops) <to_get_unwinder,
8881         to_get_tailcall_unwinder>: Now function pointers.  Use
8882         TARGET_DEFAULT_RETURN.
8883
8884 2014-02-19  Tom Tromey  <tromey@redhat.com>
8885
8886         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8887         argument.
8888         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8889
8890 2014-02-19  Tom Tromey  <tromey@redhat.com>
8891
8892         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8893         directly.
8894         * target-delegates.c: Rebuild.
8895         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8896         TARGET_DEFAULT_FUNC.
8897         * target.c (default_target_decr_pc_after_break): Rename from
8898         forward_target_decr_pc_after_break.  Simplify.
8899         (target_decr_pc_after_break): Rely on delegation.
8900
8901 2014-02-19  Tom Tromey  <tromey@redhat.com>
8902
8903         * target.c (update_current_target): Do not INHERIT to_doc or
8904         to_magic.  Do not de_fault to_open or to_close.
8905
8906 2014-02-19  Tom Tromey  <tromey@redhat.com>
8907
8908         * gcore.h (objfile_find_memory_regions): Declare.
8909         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8910         "self" argument.
8911         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8912         * exec.c: Include gcore.h.
8913         (exec_set_find_memory_regions): Remove.
8914         (exec_find_memory_regions): Remove.
8915         (exec_do_find_memory_regions): Remove.
8916         (init_exec_ops): Update.
8917         * defs.h (exec_set_find_memory_regions): Remove.
8918
8919 2014-02-19  Tom Tromey  <tromey@redhat.com>
8920
8921         * target-delegates.c: Rebuild.
8922         * target.h (struct target_ops) <to_extra_thread_info,
8923         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8924         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8925         not 0, in TARGET_DEFAULT_RETURN.
8926
8927 2014-02-19  Tom Tromey  <tromey@redhat.com>
8928
8929         * target.c (complete_target_initialization): Remove casts.  Use
8930         return_zero_has_execution.
8931         (return_zero): Add "ignore" argument.
8932         (return_zero_has_execution): New function.
8933         (init_dummy_target): Remove casts.  Use
8934         return_zero_has_execution.
8935
8936 2014-02-19  Tom Tromey  <tromey@redhat.com>
8937
8938         * target.c (update_current_target): Update comments.  Do not
8939         INHERIT to_stratum.
8940
8941 2014-02-19  Tom Tromey  <tromey@redhat.com>
8942
8943         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8944         needed.
8945         * corelow.c (core_read_description): Delegate when needed.
8946         * remote.c (remote_read_description): Delegate when needed.
8947         * target-delegates.c: Rebuild.
8948         * target.c (target_read_description): Rewrite.
8949         * target.h (struct target_ops) <to_read_description>: Update
8950         comment.  Use TARGET_DEFAULT_RETURN.
8951
8952 2014-02-19  Tom Tromey  <tromey@redhat.com>
8953
8954         * target-delegates.c: Rebuild.
8955         * target.c (update_current_target): Don't inherit or default
8956         to_can_run.
8957         (find_default_run_target): Check against delegate_can_run.
8958         * target.h (struct target_ops) <to_can_run>: Use
8959         TARGET_DEFAULT_RETURN.
8960
8961 2014-02-19  Tom Tromey  <tromey@redhat.com>
8962
8963         * target-delegates.c: Rebuild.
8964         * target.c (target_disconnect): Unconditionally delegate.
8965         * target.h (struct target_ops) <to_disconnect>: Use
8966         TARGET_DEFAULT_NORETURN.
8967
8968 2014-02-19  Tom Tromey  <tromey@redhat.com>
8969
8970         * record.c (record_stop): Unconditionally delegate.
8971         * target-delegates.c: Rebuild.
8972         * target.c (target_stop_recording): Unconditionally delegate.
8973         * target.h (struct target_ops) <to_stop_recording>: Use
8974         TARGET_DEFAULT_IGNORE.
8975
8976 2014-02-19  Tom Tromey  <tromey@redhat.com>
8977
8978         * target-delegates.c: Rebuild.
8979         * target.c (target_enable_btrace): Unconditionally delegate.
8980         * target.h (struct target_ops) <to_enable_btrace>: Use
8981         TARGET_DEFAULT_NORETURN.
8982
8983 2014-02-19  Tom Tromey  <tromey@redhat.com>
8984
8985         * target-delegates.c: Rebuild.
8986         * target.c (target_read_btrace): Unconditionally delegate.
8987         * target.h (struct target_ops) <to_read_btrace>: Use
8988         TARGET_DEFAULT_NORETURN.
8989
8990 2014-02-19  Tom Tromey  <tromey@redhat.com>
8991
8992         * target-delegates.c: Rebuild.
8993         * target.c (target_teardown_btrace): Unconditionally delegate.
8994         * target.h (struct target_ops) <to_teardown_btrace>: Use
8995         TARGET_DEFAULT_NORETURN.
8996
8997 2014-02-19  Tom Tromey  <tromey@redhat.com>
8998
8999         * target-delegates.c: Rebuild.
9000         * target.c (target_disable_btrace): Unconditionally delegate.
9001         * target.h (struct target_ops) <to_disable_btrace>: Use
9002         TARGET_DEFAULT_NORETURN.
9003
9004 2014-02-19  Tom Tromey  <tromey@redhat.com>
9005
9006         * target-delegates.c: Rebuild.
9007         * target.c (default_search_memory): New function.
9008         (simple_search_memory): Update comment.
9009         (target_search_memory): Unconditionally delegate.
9010         * target.h (struct target_ops) <to_search_memory>: Use
9011         TARGET_DEFAULT_FUNC.
9012
9013 2014-02-19  Tom Tromey  <tromey@redhat.com>
9014
9015         * auxv.c (default_auxv_parse): No longer static.
9016         (target_auxv_parse): Unconditionally delegate.
9017         * auxv.h (default_auxv_parse): Declare.
9018         * target-delegates.c: Rebuild.
9019         * target.c: Include auxv.h.
9020         * target.h (struct target_ops) <to_auxv_parse>: Use
9021         TARGET_DEFAULT_FUNC.
9022
9023 2014-02-19  Tom Tromey  <tromey@redhat.com>
9024
9025         * target-delegates.c: Rebuild.
9026         * target.c (target_memory_map): Unconditionally delegate.
9027         * target.h (struct target_ops) <to_memory_map>: Use
9028         TARGET_DEFAULT_RETURN.
9029
9030 2014-02-19  Tom Tromey  <tromey@redhat.com>
9031
9032         * target-delegates.c: Rebuild.
9033         * target.c (target_thread_alive): Unconditionally delegate.
9034         * target.h (struct target_ops) <to_thread_alive>: Use
9035         TARGET_DEFAULT_RETURN.
9036
9037 2014-02-19  Tom Tromey  <tromey@redhat.com>
9038
9039         * target-delegates.c: Rebuild.
9040         * target.c (target_save_record): Unconditionally delegate.
9041         * target.h (struct target_ops) <to_save_record>: Use
9042         TARGET_DEFAULT_NORETURN.
9043
9044 2014-02-19  Tom Tromey  <tromey@redhat.com>
9045
9046         * target-delegates.c: Rebuild.
9047         * target.c (target_delete_record): Unconditionally delegate.
9048         * target.h (struct target_ops) <to_delete_record>: Use
9049         TARGET_DEFAULT_NORETURN.
9050
9051 2014-02-19  Tom Tromey  <tromey@redhat.com>
9052
9053         * target-delegates.c: Rebuild.
9054         * target.c (target_record_is_replaying): Unconditionally
9055         delegate.
9056         * target.h (struct target_ops) <to_record_is_replaying>: Use
9057         TARGET_DEFAULT_RETURN.
9058
9059 2014-02-19  Tom Tromey  <tromey@redhat.com>
9060
9061         * target-delegates.c: Rebuild.
9062         * target.c (target_goto_record_begin): Unconditionally delegate.
9063         * target.h (struct target_ops) <to_goto_record_begin>: Use
9064         TARGET_DEFAULT_NORETURN.
9065
9066 2014-02-19  Tom Tromey  <tromey@redhat.com>
9067
9068         * target-delegates.c: Rebuild.
9069         * target.c (target_goto_record_end): Unconditionally delegate.
9070         * target.h (struct target_ops) <to_goto_record_end>: Use
9071         TARGET_DEFAULT_NORETURN.
9072
9073 2014-02-19  Tom Tromey  <tromey@redhat.com>
9074
9075         * target-delegates.c: Rebuild.
9076         * target.c (target_goto_record): Unconditionally delegate.
9077         * target.h (struct target_ops) <to_goto_record>: Use
9078         TARGET_DEFAULT_NORETURN.
9079
9080 2014-02-19  Tom Tromey  <tromey@redhat.com>
9081
9082         * target-delegates.c: Rebuild.
9083         * target.c (target_insn_history): Unconditionally delegate.
9084         * target.h (struct target_ops) <to_insn_history>: Use
9085         TARGET_DEFAULT_NORETURN.
9086
9087 2014-02-19  Tom Tromey  <tromey@redhat.com>
9088
9089         * target-delegates.c: Rebuild.
9090         * target.c (target_insn_history_from): Unconditionally delegate.
9091         * target.h (struct target_ops) <to_insn_history_from>: Use
9092         TARGET_DEFAULT_NORETURN.
9093
9094 2014-02-19  Tom Tromey  <tromey@redhat.com>
9095
9096         * target-delegates.c: Rebuild.
9097         * target.c (target_insn_history_range): Unconditionally delegate.
9098         * target.h (struct target_ops) <to_insn_history_range>: Use
9099         TARGET_DEFAULT_NORETURN.
9100
9101 2014-02-19  Tom Tromey  <tromey@redhat.com>
9102
9103         * target-delegates.c: Rebuild.
9104         * target.c (target_call_history): Unconditionally delegate.
9105         * target.h (struct target_ops) <to_call_history>: Use
9106         TARGET_DEFAULT_NORETURN.
9107
9108 2014-02-19  Tom Tromey  <tromey@redhat.com>
9109
9110         * target-delegates.c: Rebuild.
9111         * target.c (target_call_history_from): Unconditionally delegate.
9112         * target.h (struct target_ops) <to_call_history_from>: Use
9113         TARGET_DEFAULT_NORETURN.
9114
9115 2014-02-19  Tom Tromey  <tromey@redhat.com>
9116
9117         * target-delegates.c: Rebuild.
9118         * target.c (target_call_history_range): Unconditionally delegate.
9119         * target.h (struct target_ops) <to_call_history_range>: Use
9120         TARGET_DEFAULT_NORETURN.
9121
9122 2014-02-19  Tom Tromey  <tromey@redhat.com>
9123
9124         * target-delegates.c: Rebuild.
9125         * target.c (target_verify_memory): Unconditionally delegate.
9126         * target.h (struct target_ops) <to_verify_memory>: Use
9127         TARGET_DEFAULT_NORETURN.
9128
9129 2014-02-19  Tom Tromey  <tromey@redhat.com>
9130
9131         * target-delegates.c: Rebuild.
9132         * target.c (target_core_of_thread): Unconditionally delegate.
9133         * target.h (struct target_ops) <to_core_of_thread>: Use
9134         TARGET_DEFAULT_RETURN.
9135
9136 2014-02-19  Tom Tromey  <tromey@redhat.com>
9137
9138         * target-delegates.c: Rebuild.
9139         * target.c (target_flash_done): Unconditionally delegate.
9140         * target.h (struct target_ops) <to_flash_done>: Use
9141         TARGET_DEFAULT_NORETURN.
9142
9143 2014-02-19  Tom Tromey  <tromey@redhat.com>
9144
9145         * target-delegates.c: Rebuild.
9146         * target.c (target_flash_erase): Unconditionally delegate.
9147         * target.h (struct target_ops) <to_flash_erase>: Use
9148         TARGET_DEFAULT_NORETURN.
9149
9150 2014-02-19  Tom Tromey  <tromey@redhat.com>
9151
9152         * target-delegates.c: Rebuild.
9153         * target.c (target_get_section_table): Unconditionally delegate.
9154         * target.h (struct target_ops) <to_get_section_table>: Use
9155         TARGET_DEFAULT_RETURN.
9156
9157 2014-02-19  Tom Tromey  <tromey@redhat.com>
9158
9159         * target-delegates.c: Rebuild.
9160         * target.c (target_pid_to_str): Unconditionally delegate.
9161         (init_dummy_target): Don't initialize to_pid_to_str.
9162         (default_pid_to_str): Rename from dummy_pid_to_str.
9163         * target.h (struct target_ops) <to_pid_to_str>: Use
9164         TARGET_DEFAULT_FUNC.
9165
9166 2014-02-19  Tom Tromey  <tromey@redhat.com>
9167
9168         * target-delegates.c: Rebuild.
9169         * target.c (target_find_new_threads): Unconditionally delegate.
9170         * target.h (struct target_ops) <to_find_new_threads>: Use
9171         TARGET_DEFAULT_RETURN.
9172
9173 2014-02-19  Tom Tromey  <tromey@redhat.com>
9174
9175         * target-delegates.c: Rebuild.
9176         * target.c (target_program_signals): Unconditionally delegate.
9177         * target.h (struct target_ops) <to_program_signals>: Use
9178         TARGET_DEFAULT_IGNORE.
9179
9180 2014-02-19  Tom Tromey  <tromey@redhat.com>
9181
9182         * target-delegates.c: Rebuild.
9183         * target.c (target_pass_signals): Unconditionally delegate.
9184         * target.h (struct target_ops) <to_pass_signals>: Use
9185         TARGET_DEFAULT_IGNORE.
9186
9187 2014-02-19  Tom Tromey  <tromey@redhat.com>
9188
9189         * target-delegates.c: Rebuild.
9190         * target.c (default_mourn_inferior): New function.
9191         (target_mourn_inferior): Unconditionally delegate.
9192         * target.h (struct target_ops) <to_mourn_inferior>: Use
9193         TARGET_DEFAULT_FUNC.
9194
9195 2014-02-19  Tom Tromey  <tromey@redhat.com>
9196
9197         * target-delegates.c: Rebuild.
9198         * target.c (default_follow_fork): New function.
9199         (target_follow_fork): Unconditionally delegate.
9200         * target.h (struct target_ops) <to_follow_fork>: Use
9201         TARGET_DEFAULT_FUNC.
9202
9203 2014-02-19  Tom Tromey  <tromey@redhat.com>
9204
9205         * target-delegates.c: Rebuild.
9206         * target.c (target_kill): Unconditionally delegate.
9207         * target.h (struct target_ops) <to_kill>: Use
9208         TARGET_DEFAULT_NORETURN.
9209
9210 2014-02-19  Tom Tromey  <tromey@redhat.com>
9211
9212         * target-delegates.c: Rebuild.
9213         * target.c (target_masked_watch_num_registers): Unconditionally
9214         delegate.
9215         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9216         Use TARGET_DEFAULT_RETURN.
9217
9218 2014-02-19  Tom Tromey  <tromey@redhat.com>
9219
9220         * target-delegates.c: Rebuild.
9221         * target.c (target_remove_mask_watchpoint): Unconditionally
9222         delegate.
9223         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9224         TARGET_DEFAULT_RETURN.
9225
9226 2014-02-19  Tom Tromey  <tromey@redhat.com>
9227
9228         * target-delegates.c: Rebuild.
9229         * target.c (target_insert_mask_watchpoint): Unconditionally
9230         delegate.
9231         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9232         TARGET_DEFAULT_RETURN.
9233
9234 2014-02-19  Tom Tromey  <tromey@redhat.com>
9235
9236         * target-delegates.c: Rebuild.
9237         * target.c (target_ranged_break_num_registers): Unconditionally
9238         delegate.
9239         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9240         Use TARGET_DEFAULT_RETURN.
9241
9242 2014-02-19  Tom Tromey  <tromey@redhat.com>
9243
9244         * target-delegates.c: Rebuild.
9245         * target.c (target_fetch_registers): Unconditionally delegate.
9246         * target.h (struct target_ops) <to_fetch_registers>: Use
9247         TARGET_DEFAULT_NORETURN.
9248
9249 2014-02-19  Tom Tromey  <tromey@redhat.com>
9250
9251         * target-delegates.c: Rebuild.
9252         * target.c (update_current_target): Don't inherit or default
9253         to_stop.
9254         * target.h (struct target_ops) <to_stop>: Use
9255         TARGET_DEFAULT_IGNORE.
9256
9257 2014-02-19  Tom Tromey  <tromey@redhat.com>
9258
9259         * target-delegates.c: Rebuild.
9260         * target.c (update_current_target): Don't inherit or default
9261         to_can_run_breakpoint_commands.
9262         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9263         Use TARGET_DEFAULT_RETURN.
9264
9265 2014-02-19  Tom Tromey  <tromey@redhat.com>
9266
9267         * target-delegates.c: Rebuild.
9268         * target.c (update_current_target): Don't inherit or default
9269         to_supports_evaluation_of_breakpoint_conditions.
9270         * target.h (struct target_ops)
9271         <to_supports_evaluation_of_breakpoint_conditions>: Use
9272         TARGET_DEFAULT_RETURN.
9273
9274 2014-02-19  Tom Tromey  <tromey@redhat.com>
9275
9276         * target-delegates.c: Rebuild.
9277         * target.c (update_current_target): Don't inherit or default
9278         to_augmented_libraries_svr4_read.
9279         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9280         Use TARGET_DEFAULT_RETURN.
9281
9282 2014-02-19  Tom Tromey  <tromey@redhat.com>
9283
9284         * target-delegates.c: Rebuild.
9285         * target.c (update_current_target): Don't inherit or default
9286         to_can_use_agent.
9287         * target.h (struct target_ops) <to_can_use_agent>: Use
9288         TARGET_DEFAULT_RETURN.
9289
9290 2014-02-19  Tom Tromey  <tromey@redhat.com>
9291
9292         * target-delegates.c: Rebuild.
9293         * target.c (update_current_target): Don't inherit or default
9294         to_use_agent.
9295         * target.h (struct target_ops) <to_use_agent>: Use
9296         TARGET_DEFAULT_NORETURN.
9297
9298 2014-02-19  Tom Tromey  <tromey@redhat.com>
9299
9300         * target-delegates.c: Rebuild.
9301         * target.c (update_current_target): Don't inherit or default
9302         to_traceframe_info.
9303         (return_null): Remove.
9304         * target.h (struct target_ops) <to_traceframe_info>: Use
9305         TARGET_DEFAULT_RETURN.
9306
9307 2014-02-19  Tom Tromey  <tromey@redhat.com>
9308
9309         * target-delegates.c: Rebuild.
9310         * target.c (update_current_target): Don't inherit or default
9311         to_static_tracepoint_markers_by_strid.
9312         * target.h (struct target_ops)
9313         <to_static_tracepoint_markers_by_strid>: Use
9314         TARGET_DEFAULT_NORETURN.
9315
9316 2014-02-19  Tom Tromey  <tromey@redhat.com>
9317
9318         * target-delegates.c: Rebuild.
9319         * target.c (update_current_target): Don't inherit or default
9320         to_static_tracepoint_marker_at.
9321         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9322         Use TARGET_DEFAULT_RETURN.
9323
9324 2014-02-19  Tom Tromey  <tromey@redhat.com>
9325
9326         * target-delegates.c: Rebuild.
9327         * target.c (update_current_target): Don't inherit or default
9328         to_set_permissions.
9329         * target.h (struct target_ops) <to_set_permissions>: Use
9330         TARGET_DEFAULT_IGNORE.
9331
9332 2014-02-19  Tom Tromey  <tromey@redhat.com>
9333
9334         * target-delegates.c: Rebuild.
9335         * target.c (update_current_target): Don't inherit or default
9336         to_get_tib_address.
9337         * target.h (struct target_ops) <to_get_tib_address>: Use
9338         TARGET_DEFAULT_NORETURN.
9339
9340 2014-02-19  Tom Tromey  <tromey@redhat.com>
9341
9342         * target-delegates.c: Rebuild.
9343         * target.c (update_current_target): Don't inherit or default
9344         to_set_trace_notes.
9345         * target.h (struct target_ops) <to_set_trace_notes>: Use
9346         TARGET_DEFAULT_RETURN.
9347
9348 2014-02-19  Tom Tromey  <tromey@redhat.com>
9349
9350         * target-delegates.c: Rebuild.
9351         * target.c (update_current_target): Don't initialize
9352         to_set_trace_buffer_size.
9353         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9354         TARGET_DEFAULT_IGNORE.
9355
9356 2014-02-19  Tom Tromey  <tromey@redhat.com>
9357
9358         * target-delegates.c: Rebuild.
9359         * target.c (update_current_target): Don't inherit or default
9360         to_set_circular_trace_buffer.
9361         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9362         TARGET_DEFAULT_IGNORE.
9363
9364 2014-02-19  Tom Tromey  <tromey@redhat.com>
9365
9366         * target-delegates.c: Rebuild.
9367         * target.c (update_current_target): Don't inherit or default
9368         to_set_disconnected_tracing.
9369         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9370         TARGET_DEFAULT_IGNORE.
9371
9372 2014-02-19  Tom Tromey  <tromey@redhat.com>
9373
9374         * target-delegates.c: Rebuild.
9375         * target.c (update_current_target): Don't inherit or default
9376         to_get_min_fast_tracepoint_insn_len.
9377         (return_minus_one): Remove.
9378         * target.h (struct target_ops)
9379         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9380
9381 2014-02-19  Tom Tromey  <tromey@redhat.com>
9382
9383         * target-delegates.c: Rebuild.
9384         * target.c (update_current_target): Don't inherit or default
9385         to_get_raw_trace_data.
9386         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9387         TARGET_DEFAULT_NORETURN.
9388
9389 2014-02-19  Tom Tromey  <tromey@redhat.com>
9390
9391         * target-delegates.c: Rebuild.
9392         * target.c (update_current_target): Don't inherit or default
9393         to_upload_trace_state_variables.
9394         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9395         Use TARGET_DEFAULT_RETURN.
9396
9397 2014-02-19  Tom Tromey  <tromey@redhat.com>
9398
9399         * target-delegates.c: Rebuild.
9400         * target.c (update_current_target): Don't inherit or default
9401         to_upload_tracepoints.
9402         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9403         TARGET_DEFAULT_RETURN.
9404
9405 2014-02-19  Tom Tromey  <tromey@redhat.com>
9406
9407         * target-delegates.c: Rebuild.
9408         * target.c (update_current_target): Don't inherit or default
9409         to_save_trace_data.
9410         * target.h (struct target_ops) <to_save_trace_data>: Use
9411         TARGET_DEFAULT_NORETURN.
9412
9413 2014-02-19  Tom Tromey  <tromey@redhat.com>
9414
9415         * target-delegates.c: Rebuild.
9416         * target.c (update_current_target): Don't inherit or default
9417         to_get_trace_state_variable_value.
9418         * target.h (struct target_ops)
9419         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9420
9421 2014-02-19  Tom Tromey  <tromey@redhat.com>
9422
9423         * target-delegates.c: Rebuild.
9424         * target.c (update_current_target): Don't inherit or default
9425         to_trace_find.
9426         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9427
9428 2014-02-19  Tom Tromey  <tromey@redhat.com>
9429
9430         * target-delegates.c: Rebuild.
9431         * target.c (update_current_target): Don't inherit or default
9432         to_trace_stop.
9433         * target.h (struct target_ops) <to_trace_stop>: Use
9434         TARGET_DEFAULT_NORETURN.
9435
9436 2014-02-19  Tom Tromey  <tromey@redhat.com>
9437
9438         * target-delegates.c: Rebuild.
9439         * target.c (update_current_target): Don't inherit or default
9440         to_get_tracepoint_status.
9441         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9442         TARGET_DEFAULT_NORETURN.
9443
9444 2014-02-19  Tom Tromey  <tromey@redhat.com>
9445
9446         * target-delegates.c: Rebuild.
9447         * target.c (update_current_target): Don't inherit or default
9448         to_get_trace_status.
9449         * target.h (struct target_ops) <to_get_trace_status>: Use
9450         TARGET_DEFAULT_RETURN.
9451
9452 2014-02-19  Tom Tromey  <tromey@redhat.com>
9453
9454         * target-delegates.c: Rebuild.
9455         * target.c (update_current_target): Don't inherit or default
9456         to_trace_start.
9457         * target.h (struct target_ops) <to_trace_start>: Use
9458         TARGET_DEFAULT_NORETURN.
9459
9460 2014-02-19  Tom Tromey  <tromey@redhat.com>
9461
9462         * target-delegates.c: Rebuild.
9463         * target.c (update_current_target): Don't inherit or default
9464         to_trace_set_readonly_regions.
9465         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9466         Use TARGET_DEFAULT_NORETURN.
9467
9468 2014-02-19  Tom Tromey  <tromey@redhat.com>
9469
9470         * target-delegates.c: Rebuild.
9471         * target.c (update_current_target): Don't inherit or default
9472         to_disable_tracepoint.
9473         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9474         TARGET_DEFAULT_NORETURN.
9475
9476 2014-02-19  Tom Tromey  <tromey@redhat.com>
9477
9478         * target-delegates.c: Rebuild.
9479         * target.c (update_current_target): Don't inherit or default
9480         to_enable_tracepoint.
9481         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9482         TARGET_DEFAULT_NORETURN.
9483
9484 2014-02-19  Tom Tromey  <tromey@redhat.com>
9485
9486         * target-delegates.c: Rebuild.
9487         * target.c (update_current_target): Don't inherit or default
9488         to_download_trace_state_variable.
9489         * target.h (struct target_ops) <to_download_trace_state_variable>:
9490         Use TARGET_DEFAULT_NORETURN.
9491
9492 2014-02-19  Tom Tromey  <tromey@redhat.com>
9493
9494         * target-delegates.c: Rebuild.
9495         * target.c (update_current_target): Don't inherit or default
9496         to_can_download_tracepoint.
9497         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9498         TARGET_DEFAULT_RETURN.
9499
9500 2014-02-19  Tom Tromey  <tromey@redhat.com>
9501
9502         * target-delegates.c: Rebuild.
9503         * target.c (update_current_target): Don't inherit or default
9504         to_download_tracepoint.
9505         * target.h (struct target_ops) <to_download_tracepoint>: Use
9506         TARGET_DEFAULT_NORETURN.
9507
9508 2014-02-19  Tom Tromey  <tromey@redhat.com>
9509
9510         * target-delegates.c: Rebuild.
9511         * target.c (update_current_target): Don't inherit or default
9512         to_trace_init.
9513         * target.h (struct target_ops) <to_trace_init>: Use
9514         TARGET_DEFAULT_RETURN.
9515
9516 2014-02-19  Tom Tromey  <tromey@redhat.com>
9517
9518         * target-delegates.c: Rebuild.
9519         * target.c (update_current_target): Don't inherit or default
9520         to_supports_string_tracing.
9521         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9522         TARGET_DEFAULT_RETURN.
9523
9524 2014-02-19  Tom Tromey  <tromey@redhat.com>
9525
9526         * target-delegates.c: Rebuild.
9527         * target.c (update_current_target): Don't inherit or default
9528         to_supports_enable_disable_tracepoint.
9529         * target.h (struct target_ops)
9530         <to_supports_enable_disable_tracepoint>: Use
9531         TARGET_DEFAULT_RETURN.
9532
9533 2014-02-19  Tom Tromey  <tromey@redhat.com>
9534
9535         * target-delegates.c: Rebuild.
9536         * target.c (update_current_target): Don't inherit or default
9537         to_supports_multi_process.
9538         * target.h (struct target_ops) <to_supports_multi_process>: Use
9539         TARGET_DEFAULT_RETURN.
9540
9541 2014-02-19  Tom Tromey  <tromey@redhat.com>
9542
9543         * target-delegates.c: Rebuild.
9544         * target.c (update_current_target): Don't inherit or default
9545         to_get_ada_task_ptid.
9546         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9547         TARGET_DEFAULT_FUNC.
9548
9549 2014-02-19  Tom Tromey  <tromey@redhat.com>
9550
9551         * target-delegates.c: Rebuild.
9552         * target.c (update_current_target): Don't inherit or default
9553         to_thread_architecture.
9554         * target.h (struct target_ops) <to_thread_architecture>: Use
9555         TARGET_DEFAULT_FUNC.
9556
9557 2014-02-19  Tom Tromey  <tromey@redhat.com>
9558
9559         * target-delegates.c: Rebuild.
9560         * target.c (update_current_target): Don't inherit or default
9561         to_execution_direction.
9562         * target.h (struct target_ops) <to_execution_direction>: Use
9563         TARGET_DEFAULT_FUNC.
9564
9565 2014-02-19  Tom Tromey  <tromey@redhat.com>
9566
9567         * target-delegates.c: Rebuild.
9568         * target.c (update_current_target): Don't inherit or default
9569         to_can_execute_reverse.
9570         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9571         TARGET_DEFAULT_RETURN.
9572         (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark.
9579         (dummy_goto_bookmark): Remove.
9580         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9581         * target.h (struct target_ops) <to_goto_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_get_bookmark.
9589         (dummy_get_bookmark): Remove.
9590         (init_dummy_target): Don't inherit or default to_get_bookmark.
9591         * target.h (struct target_ops) <to_get_bookmark>: Use
9592         TARGET_DEFAULT_NORETURN
9593
9594 2014-02-19  Tom Tromey  <tromey@redhat.com>
9595
9596         * target-delegates.c: Rebuild.
9597         * target.c (update_current_target): Don't inherit or default
9598         to_make_corefile_notes.
9599         (init_dummy_target): Don't initialize to_make_corefile_notes.
9600         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9601         TARGET_DEFAULT_FUNC.
9602
9603 2014-02-19  Tom Tromey  <tromey@redhat.com>
9604
9605         * target-delegates.c: Rebuild.
9606         * target.c (update_current_target): Don't inherit or default
9607         to_find_memory_regions.
9608         (init_dummy_target): Don't initialize to_find_memory_regions.
9609         * target.h (struct target_ops) <to_find_memory_regions>: Use
9610         TARGET_DEFAULT_FUNC.
9611
9612 2014-02-19  Tom Tromey  <tromey@redhat.com>
9613
9614         * target-delegates.c: Rebuild.
9615         * target.c (update_current_target): Don't inherit or default
9616         to_log_command.
9617         * target.h (struct target_ops) <to_log_command>: Use
9618         TARGET_DEFAULT_IGNORE.
9619         (target_log_command): Unconditionally delegate.
9620
9621 2014-02-19  Tom Tromey  <tromey@redhat.com>
9622
9623         * target-delegates.c: Rebuild.
9624         * target.c (update_current_target): Don't inherit or default
9625         to_pid_to_exec_file.
9626         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9627         TARGET_DEFAULT_RETURN.
9628
9629 2014-02-19  Tom Tromey  <tromey@redhat.com>
9630
9631         * target-delegates.c: Rebuild.
9632         * target.c (update_current_target): Don't inherit or default
9633         to_thread_name.
9634         (target_thread_name): Unconditionally delegate.
9635         * target.h (struct target_ops) <to_thread_name>: Use
9636         TARGET_DEFAULT_RETURN.
9637
9638 2014-02-19  Tom Tromey  <tromey@redhat.com>
9639
9640         * target-delegates.c: Rebuild.
9641         * target.c (update_current_target): Don't inherit or default
9642         to_extra_thread_info.
9643         * target.h (struct target_ops) <to_extra_thread_info>: Use
9644         TARGET_DEFAULT_RETURN.
9645
9646 2014-02-19  Tom Tromey  <tromey@redhat.com>
9647
9648         * target-delegates.c: Rebuild.
9649         * target.c (update_current_target): Don't inherit or default
9650         to_has_exited.
9651         * target.h (struct target_ops) <to_has_exited>: Use
9652         TARGET_DEFAULT_RETURN..
9653
9654 2014-02-19  Tom Tromey  <tromey@redhat.com>
9655
9656         * target-delegates.c: Rebuild.
9657         * target.c (update_current_target): Don't inherit or default
9658         to_set_syscall_catchpoint.
9659         (return_one): Remove.
9660         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9661         TARGET_DEFAULT_RETURN.
9662
9663 2014-02-19  Tom Tromey  <tromey@redhat.com>
9664
9665         * target-delegates.c: Rebuild.
9666         * target.c (update_current_target): Don't inherit or default
9667         to_insert_exec_catchpoint.
9668         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9669         TARGET_DEFAULT_RETURN.
9670
9671 2014-01-08  Tom Tromey  <tromey@redhat.com>
9672
9673         * target-delegates.c: Rebuild.
9674         * target.c (update_current_target): Don't inherit or default
9675         to_insert_exec_catchpoint.
9676         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9677         TARGET_DEFAULT_RETURN.
9678
9679 2014-02-19  Tom Tromey  <tromey@redhat.com>
9680
9681         * target-delegates.c: Rebuild.
9682         * target.c (update_current_target): Don't inherit or default
9683         to_remove_vfork_catchpoint.
9684         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9685         TARGET_DEFAULT_RETURN.
9686
9687 2014-02-19  Tom Tromey  <tromey@redhat.com>
9688
9689         * target-delegates.c: Rebuild.
9690         * target.c (update_current_target): Don't inherit or default
9691         to_insert_vfork_catchpoint.
9692         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9693         TARGET_DEFAULT_RETURN.
9694
9695 2014-02-19  Tom Tromey  <tromey@redhat.com>
9696
9697         * target-delegates.c: Rebuild.
9698         * target.c (update_current_target): Don't inherit or default
9699         to_remove_fork_catchpoint.
9700         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9701         TARGET_DEFAULT_RETURN.
9702
9703 2014-02-19  Tom Tromey  <tromey@redhat.com>
9704
9705         * target-delegates.c: Rebuild.
9706         * target.c (update_current_target): Don't inherit or default
9707         to_insert_fork_catchpoint.
9708         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9709         TARGET_DEFAULT_RETURN.
9710
9711 2014-02-19  Tom Tromey  <tromey@redhat.com>
9712
9713         * target-delegates.c: Rebuild.
9714         * target.c (update_current_target): Don't inherit or default
9715         to_post_startup_inferior.
9716         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9717         TARGET_DEFAULT_IGNORE.
9718
9719 2014-02-19  Tom Tromey  <tromey@redhat.com>
9720
9721         * target-delegates.c: Rebuild.
9722         * target.c (update_current_target): Don't inherit or default
9723         to_load.
9724         * target.h (struct target_ops) <to_load>: Use
9725         TARGET_DEFAULT_NORETURN.
9726
9727 2014-02-19  Tom Tromey  <tromey@redhat.com>
9728
9729         * target-delegates.c: Rebuild.
9730         * target.c (update_current_target): Don't inherit or default
9731         to_terminal_info.
9732         * target.h (struct target_ops) <to_terminal_info>: Use
9733         TARGET_DEFAULT_FUNC.
9734
9735 2014-02-19  Tom Tromey  <tromey@redhat.com>
9736
9737         * target-delegates.c: Rebuild.
9738         * target.c (update_current_target): Don't inherit or default
9739         to_terminal_save_ours.
9740         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9741         TARGET_DEFAULT_IGNORE.
9742
9743 2014-02-19  Tom Tromey  <tromey@redhat.com>
9744
9745         * target-delegates.c: Rebuild.
9746         * target.c (update_current_target): Don't inherit or default
9747         to_terminal_ours.
9748         * target.h (struct target_ops) <to_terminal_ours>: Use
9749         TARGET_DEFAULT_IGNORE.
9750
9751 2014-02-19  Tom Tromey  <tromey@redhat.com>
9752
9753         * target-delegates.c: Rebuild.
9754         * target.c (update_current_target): Don't inherit or default
9755         to_terminal_ours_for_output.
9756         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9757         TARGET_DEFAULT_IGNORE.
9758
9759 2014-02-19  Tom Tromey  <tromey@redhat.com>
9760
9761         * target-delegates.c: Rebuild.
9762         * target.c (update_current_target): Don't inherit or default
9763         to_terminal_inferior.
9764         * target.h (struct target_ops) <to_terminal_inferior>: Use
9765         TARGET_DEFAULT_IGNORE.
9766
9767 2014-02-19  Tom Tromey  <tromey@redhat.com>
9768
9769         * target-delegates.c: Rebuild.
9770         * target.c (update_current_target): Don't inherit or default
9771         to_terminal_init.
9772         * target.h (struct target_ops) <to_terminal_init>: Use
9773         TARGET_DEFAULT_IGNORE.
9774
9775 2014-02-19  Tom Tromey  <tromey@redhat.com>
9776
9777         * target-delegates.c: Rebuild.
9778         * target.c (update_current_target): Don't inherit or default
9779         to_can_accel_watchpoint_condition.
9780         * target.h (struct target_ops)
9781         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9782
9783 2014-02-19  Tom Tromey  <tromey@redhat.com>
9784
9785         * target-delegates.c: Rebuild.
9786         * target.c (update_current_target): Don't inherit or default
9787         to_region_ok_for_hw_watchpoint.
9788         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9789         Use TARGET_DEFAULT_FUNC.
9790
9791 2014-02-19  Tom Tromey  <tromey@redhat.com>
9792
9793         * target-delegates.c: Rebuild.
9794         * target.c (update_current_target): Don't inherit or default
9795         to_watchpoint_addr_within_range.
9796         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9797         Use TARGET_DEFAULT_FUNC.
9798
9799 2014-02-19  Tom Tromey  <tromey@redhat.com>
9800
9801         * target-delegates.c: Rebuild.
9802         * target.c (update_current_target): Don't inherit or default
9803         to_remove_watchpoint.
9804         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9805         TARGET_DEFAULT_NORETURN.
9806
9807 2014-02-19  Tom Tromey  <tromey@redhat.com>
9808
9809         * target-delegates.c: Rebuild.
9810         * target.c (update_current_target): Don't inherit or default
9811         to_insert_watchpoint.
9812         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9813         TARGET_DEFAULT_RETURN.
9814
9815 2014-02-19  Tom Tromey  <tromey@redhat.com>
9816
9817         * target-delegates.c: Rebuild.
9818         * target.c (update_current_target): Don't inherit or default
9819         to_remove_hw_breakpoint.
9820         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9821         TARGET_DEFAULT_RETURN.
9822
9823 2014-02-19  Tom Tromey  <tromey@redhat.com>
9824
9825         * target-delegates.c: Rebuild.
9826         * target.c (update_current_target): Don't inherit or default
9827         to_insert_hw_breakpoint.
9828         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9829         TARGET_DEFAULT_RETURN.
9830
9831 2014-02-19  Tom Tromey  <tromey@redhat.com>
9832
9833         * target-delegates.c: Rebuild.
9834         * target.c (update_current_target): Don't inherit or default
9835         to_can_use_hw_breakpoint.
9836         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9837         TARGET_DEFAULT_RETURN.
9838
9839 2014-02-19  Tom Tromey  <tromey@redhat.com>
9840
9841         * target-delegates.c: Rebuild.
9842         * target.c (update_current_target): Don't inherit or default
9843         to_files_info.
9844         * target.h (struct target_ops) <to_files_info>: Use
9845         TARGET_DEFAULT_IGNORE.
9846
9847 2014-02-19  Tom Tromey  <tromey@redhat.com>
9848
9849         * target-delegates.c: Rebuild.
9850         * target.c (update_current_target): Don't inherit or default
9851         to_store.
9852         * target.h (struct target_ops) <to_store>: Use
9853         TARGET_DEFAULT_NORETURN.
9854
9855 2014-02-19  Tom Tromey  <tromey@redhat.com>
9856
9857         * target-delegates.c: Rebuild.
9858         * target.c (update_current_target): Don't inherit or default
9859         to_post_attach.
9860         * target.h (struct target_ops) <to_post_attach>: Use
9861         TARGET_DEFAULT_IGNORE.
9862
9863 2014-02-19  Tom Tromey  <tromey@redhat.com>
9864
9865         * target-delegates.c: Rebuild.
9866         * target.c (update_current_target): Don't inherit or default
9867         to_rcmd.
9868         (default_rcmd): New function.
9869         (do_monitor_command): Unconditionally delegate.
9870         * target.h (struct target_ops) <to_rmcd>: Use
9871         TARGET_DEFAULT_FUNC.
9872
9873 2014-02-19  Tom Tromey  <tromey@redhat.com>
9874
9875         * target-delegates.c: Rebuild.
9876         * target.c (init_dummy_target): Don't initialize to_attach.
9877         (target_attach): Unconditionally delegate.
9878         * target.h (struct target_ops) <to_attach>: Use
9879         TARGET_DEFAULT_FUNC.
9880
9881 2014-02-19  Tom Tromey  <tromey@redhat.com>
9882
9883         * target-delegates.c: Rebuild.
9884         * target.c (target_detach): Unconditionally delegate.
9885         (init_dummy_target): Don't initialize to_detach.
9886         * target.h (struct target_ops) <to_detach>: Use
9887         TARGET_DEFAULT_IGNORE.
9888
9889 2014-02-19  Tom Tromey  <tromey@redhat.com>
9890
9891         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9892         Add argument.
9893         (target_augmented_libraries_svr4_read): Add argument.
9894         * target.c (update_current_target): Update.
9895         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9896         argument.
9897
9898 2014-02-19  Tom Tromey  <tromey@redhat.com>
9899
9900         * target.h (struct target_ops) <to_call_history_range>: Add
9901         argument.
9902         * target.c (target_call_history_range): Add argument.
9903         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9904         argument.
9905         (record_btrace_call_history_from): Update.
9906
9907 2014-02-19  Tom Tromey  <tromey@redhat.com>
9908
9909         * target.h (struct target_ops) <to_call_history_from>: Add
9910         argument.
9911         * target.c (target_call_history_from): Add argument.
9912         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9913         argument.
9914
9915 2014-02-19  Tom Tromey  <tromey@redhat.com>
9916
9917         * target.h (struct target_ops) <to_call_history>: Add argument.
9918         * target.c (target_call_history): Add argument.
9919         * record-btrace.c (record_btrace_call_history): Add 'self'
9920         argument.
9921
9922 2014-02-19  Tom Tromey  <tromey@redhat.com>
9923
9924         * target.h (struct target_ops) <to_insn_history_range>: Add
9925         argument.
9926         * target.c (target_insn_history_range): Add argument.
9927         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9928         argument.
9929         (record_btrace_insn_history_from): Update.
9930
9931 2014-02-19  Tom Tromey  <tromey@redhat.com>
9932
9933         * target.h (struct target_ops) <to_insn_history_from>: Add
9934         argument.
9935         * target.c (target_insn_history_from): Add argument.
9936         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9937         argument.
9938
9939 2014-02-19  Tom Tromey  <tromey@redhat.com>
9940
9941         * target.h (struct target_ops) <to_insn_history>: Add argument.
9942         * target.c (target_insn_history): Add argument.
9943         * record-btrace.c (record_btrace_insn_history): Add 'self'
9944         argument.
9945
9946 2014-02-19  Tom Tromey  <tromey@redhat.com>
9947
9948         * target.h (struct target_ops) <to_goto_record>: Add argument.
9949         * target.c (target_goto_record): Add argument.
9950         * record-full.c (record_full_goto): Add 'self' argument.
9951         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9952
9953 2014-02-19  Tom Tromey  <tromey@redhat.com>
9954
9955         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9956         * target.c (target_goto_record_end): Add argument.
9957         * record-full.c (record_full_goto_end): Add 'self' argument.
9958         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9959
9960 2014-02-19  Tom Tromey  <tromey@redhat.com>
9961
9962         * target.h (struct target_ops) <to_goto_record_begin>: Add
9963         argument.
9964         * target.c (target_goto_record_begin): Add argument.
9965         * record-full.c (record_full_goto_begin): Add 'self' argument.
9966         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9967         argument.
9968
9969 2014-02-19  Tom Tromey  <tromey@redhat.com>
9970
9971         * target.h (struct target_ops) <to_record_is_replaying>: Add
9972         argument.
9973         * target.c (target_record_is_replaying): Add argument.
9974         * record-full.c (record_full_is_replaying): Add 'self' argument.
9975         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9976         argument.
9977         (record_btrace_xfer_partial, record_btrace_store_registers)
9978         (record_btrace_prepare_to_store, record_btrace_resume)
9979         (record_btrace_wait, record_btrace_decr_pc_after_break)
9980         (record_btrace_find_new_threads, record_btrace_thread_alive):
9981         Update.
9982
9983 2014-02-19  Tom Tromey  <tromey@redhat.com>
9984
9985         * target.h (struct target_ops) <to_delete_record>: Add argument.
9986         * target.c (target_delete_record): Add argument.
9987         * record-full.c (record_full_delete): Add 'self' argument.
9988
9989 2014-02-19  Tom Tromey  <tromey@redhat.com>
9990
9991         * target.h (struct target_ops) <to_save_record>: Add argument.
9992         * target.c (target_save_record): Add argument.
9993         * record-full.c (record_full_save): Add 'self' argument.
9994         (record_full_save): Add 'self' argument.
9995
9996 2014-02-19  Tom Tromey  <tromey@redhat.com>
9997
9998         * target.h (struct target_ops) <to_info_record>: Add argument.
9999         * target.c (target_info_record): Add argument.
10000         * record.c (info_record_command): Add argument.
10001         * record-full.c (record_full_info): Add 'self' argument.
10002         * record-btrace.c (record_btrace_info): Add 'self' argument.
10003
10004 2014-02-19  Tom Tromey  <tromey@redhat.com>
10005
10006         * target.h (struct target_ops) <to_stop_recording>: Add argument.
10007         * target.c (target_stop_recording): Add argument.
10008         * record.c (record_stop): Add argument.
10009         * record-btrace.c (record_btrace_stop_recording): Add 'self'
10010         argument.
10011
10012 2014-02-19  Tom Tromey  <tromey@redhat.com>
10013
10014         * target.h (struct target_ops) <to_read_btrace>: Add argument.
10015         * target.c (struct target_ops) <to_read_btrace>: Add argument.
10016         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10017         argument.
10018         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10019         (_initialize_amd64_linux_nat): Use it.
10020         * i386-linux-nat.c (i386_linux_read_btrace): New function.
10021         (_initialize_i386_linux_nat): Use it.
10022
10023 2014-02-19  Tom Tromey  <tromey@redhat.com>
10024
10025         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10026         * target.c (target_teardown_btrace): Add argument.
10027         * remote.c (remote_teardown_btrace): Add 'self' argument.
10028         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10029         argument.
10030         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10031         argument.
10032
10033 2014-02-19  Tom Tromey  <tromey@redhat.com>
10034
10035         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10036         * target.c (target_disable_btrace): Add argument.
10037         * remote.c (remote_disable_btrace): Add 'self' argument.
10038         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10039         argument.
10040         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10041         argument.
10042
10043 2014-02-19  Tom Tromey  <tromey@redhat.com>
10044
10045         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10046         * target.c (target_enable_btrace): Add argument.
10047         * remote.c (remote_enable_btrace): Add 'self' argument.
10048         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10049         argument.
10050         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10051         argument.
10052
10053 2014-02-19  Tom Tromey  <tromey@redhat.com>
10054
10055         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10056         (target_can_use_agent): Add argument.
10057         * target.c (update_current_target): Update.
10058         * remote.c (remote_can_use_agent): Add 'self' argument.
10059         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10060
10061 2014-02-19  Tom Tromey  <tromey@redhat.com>
10062
10063         * target.h (struct target_ops) <to_use_agent>: Add argument.
10064         (target_use_agent): Add argument.
10065         * target.c (update_current_target): Update.
10066         * remote.c (remote_use_agent): Add 'self' argument.
10067         * inf-child.c (inf_child_use_agent): Add 'self' argument.
10068
10069 2014-02-19  Tom Tromey  <tromey@redhat.com>
10070
10071         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10072         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10073         (target_traceframe_info): Add argument.
10074         * target.c (update_current_target): Update.
10075         * remote.c (remote_traceframe_info): Add 'self' argument.
10076         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10077
10078 2014-02-19  Tom Tromey  <tromey@redhat.com>
10079
10080         * target.h (target_static_tracepoint_markers_by_strid): Add
10081         argument.
10082         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10083         'self' argument.
10084         * target.c (update_current_target): Update.
10085         * remote.c (struct target_ops)
10086         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10087         * linux-nat.c (struct target_ops)
10088         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10089
10090 2014-02-19  Tom Tromey  <tromey@redhat.com>
10091
10092         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10093         Add argument.
10094         (target_static_tracepoint_marker_at): Add argument.
10095         * target.c (update_current_target): Update.
10096         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10097         argument.
10098
10099 2014-02-19  Tom Tromey  <tromey@redhat.com>
10100
10101         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10102         (target_set_permissions): Add argument.
10103         * target.c (update_current_target): Update.
10104         * remote.c (remote_set_permissions): Add 'self' argument.
10105         (remote_start_remote): Update.
10106
10107 2014-02-19  Tom Tromey  <tromey@redhat.com>
10108
10109         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10110         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10111         (target_get_tib_address): Add argument.
10112         * target.c (update_current_target): Update.
10113         * remote.c (remote_get_tib_address): Add 'self' argument.
10114
10115 2014-02-19  Tom Tromey  <tromey@redhat.com>
10116
10117         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10118         (target_set_trace_notes): Add argument.
10119         * target.c (update_current_target): Update.
10120         * remote.c (remote_set_trace_notes): Add 'self' argument.
10121
10122 2014-02-19  Tom Tromey  <tromey@redhat.com>
10123
10124         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10125         argument.
10126         (target_set_trace_buffer_size): Add argument.
10127         * target.c (update_current_target): Update.
10128         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10129
10130 2014-02-19  Tom Tromey  <tromey@redhat.com>
10131
10132         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10133         argument.
10134         (target_set_circular_trace_buffer): Add argument.
10135         * target.c (update_current_target): Update.
10136         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10137         argument.
10138
10139 2014-02-19  Tom Tromey  <tromey@redhat.com>
10140
10141         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10142         argument.
10143         (target_set_disconnected_tracing): Add argument.
10144         * target.c (update_current_target): Update.
10145         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10146
10147 2014-02-19  Tom Tromey  <tromey@redhat.com>
10148
10149         * target.h (struct target_ops)
10150         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10151         (target_get_min_fast_tracepoint_insn_len): Add argument.
10152         * target.c (update_current_target): Update.
10153         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10154         argument.
10155
10156 2014-02-19  Tom Tromey  <tromey@redhat.com>
10157
10158         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10159         argument.
10160         (target_get_raw_trace_data): Add argument.
10161         * target.c (update_current_target): Update.
10162         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10163
10164 2014-02-19  Tom Tromey  <tromey@redhat.com>
10165
10166         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10167         Add argument.
10168         (target_upload_trace_state_variables): Add argument.
10169         * target.c (update_current_target): Update.
10170         * remote.c (remote_upload_trace_state_variables): Add 'self'
10171         argument.
10172         (remote_start_remote): Update.
10173
10174 2014-02-19  Tom Tromey  <tromey@redhat.com>
10175
10176         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10177         argument.
10178         (target_upload_tracepoints): Add argument.
10179         * target.c (update_current_target): Update.
10180         * remote.c (remote_upload_tracepoints): Add 'self' argument.
10181         (remote_start_remote): Update.
10182
10183 2014-02-19  Tom Tromey  <tromey@redhat.com>
10184
10185         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10186         (target_save_trace_data): Add argument.
10187         * target.c (update_current_target): Update.
10188         * remote.c (remote_save_trace_data): Add 'self' argument.
10189
10190 2014-02-19  Tom Tromey  <tromey@redhat.com>
10191
10192         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10193         argument.
10194         * target.h (struct target_ops)
10195         <to_get_trace_state_variable_value>: Add argument.
10196         (target_get_trace_state_variable_value): Add argument.
10197         * target.c (update_current_target): Update.
10198         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10199         argument.
10200         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10201
10202 2014-02-19  Tom Tromey  <tromey@redhat.com>
10203
10204         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10205         * target.h (struct target_ops) <to_trace_find>: Add argument.
10206         (target_trace_find): Add argument.
10207         * target.c (update_current_target): Update.
10208         * remote.c (remote_trace_find): Add 'self' argument.
10209         * ctf.c (ctf_trace_find): Add 'self' argument.
10210
10211 2014-02-19  Tom Tromey  <tromey@redhat.com>
10212
10213         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10214         (target_trace_stop): Add argument.
10215         * target.c (update_current_target): Update.
10216         * remote.c (remote_trace_stop): Add 'self' argument.
10217
10218 2014-02-19  Tom Tromey  <tromey@redhat.com>
10219
10220         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10221         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10222         argument.
10223         (target_get_tracepoint_status): Add argument.
10224         * target.c (update_current_target): Update.
10225         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10226
10227 2014-02-19  Tom Tromey  <tromey@redhat.com>
10228
10229         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10230         * target.h (struct target_ops) <to_get_trace_status>: Add
10231         argument.
10232         (target_get_trace_status): Add argument.
10233         * target.c (update_current_target): Update.
10234         * remote.c (remote_get_trace_status): Add 'self' argument.
10235         (remote_start_remote, remote_can_download_tracepoint): Update.
10236         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10237
10238 2014-02-19  Tom Tromey  <tromey@redhat.com>
10239
10240         * target.h (struct target_ops) <to_trace_start>: Add argument.
10241         (target_trace_start): Add argument.
10242         * target.c (update_current_target): Update.
10243         * remote.c (remote_trace_start): Add 'self' argument.
10244
10245 2014-02-19  Tom Tromey  <tromey@redhat.com>
10246
10247         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10248         Add argument.
10249         (target_trace_set_readonly_regions): Add argument.
10250         * target.c (update_current_target): Update.
10251         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10252         argument.
10253
10254 2014-02-19  Tom Tromey  <tromey@redhat.com>
10255
10256         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10257         argument.
10258         (target_disable_tracepoint): Add argument.
10259         * target.c (update_current_target): Update.
10260         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10261
10262 2014-02-19  Tom Tromey  <tromey@redhat.com>
10263
10264         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10265         argument.
10266         (target_enable_tracepoint): Add argument.
10267         * target.c (update_current_target): Update.
10268         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10269
10270 2014-02-19  Tom Tromey  <tromey@redhat.com>
10271
10272         * target.h (struct target_ops) <to_download_trace_state_variable>:
10273         Add argument.
10274         (target_download_trace_state_variable): Add argument.
10275         * target.c (update_current_target): Update.
10276         * remote.c (remote_download_trace_state_variable): Add 'self'
10277         argument.
10278
10279 2014-02-19  Tom Tromey  <tromey@redhat.com>
10280
10281         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10282         argument.
10283         (target_can_download_tracepoint): Add argument.
10284         * target.c (update_current_target): Update.
10285         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10286
10287 2014-02-19  Tom Tromey  <tromey@redhat.com>
10288
10289         * target.h (struct target_ops) <to_download_tracepoint>: Add
10290         argument.
10291         (target_download_tracepoint): Add argument.
10292         * target.c (update_current_target): Update.
10293         * remote.c (remote_download_tracepoint): Add 'self' argument.
10294
10295 2014-02-19  Tom Tromey  <tromey@redhat.com>
10296
10297         * target.h (struct target_ops) <to_trace_init>: Add argument.
10298         (target_trace_init): Add argument.
10299         * target.c (update_current_target): Update.
10300         * remote.c (remote_trace_init): Add 'self' argument.
10301
10302 2014-02-19  Tom Tromey  <tromey@redhat.com>
10303
10304         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10305         * target.c (target_fileio_readlink): Add argument.
10306         * remote.c (remote_hostio_readlink): Add 'self' argument.
10307         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10308
10309 2014-02-19  Tom Tromey  <tromey@redhat.com>
10310
10311         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10312         * target.c (target_fileio_unlink): Add argument.
10313         * remote.c (remote_hostio_unlink): Add 'self' argument.
10314         (remote_file_delete): Update.
10315         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10316
10317 2014-02-19  Tom Tromey  <tromey@redhat.com>
10318
10319         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10320         * target.c (target_fileio_close): Add argument.
10321         * remote.c (remote_hostio_close): Add 'self' argument.
10322         (remote_hostio_close_cleanup): Update.
10323         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10324         Update.
10325         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10326
10327 2014-02-19  Tom Tromey  <tromey@redhat.com>
10328
10329         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10330         * target.c (target_fileio_pread): Add argument.
10331         * remote.c (remote_hostio_pread): Add 'self' argument.
10332         (remote_bfd_iovec_pread, remote_file_get): Update.
10333         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10334
10335 2014-02-19  Tom Tromey  <tromey@redhat.com>
10336
10337         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10338         * target.c (target_fileio_pwrite): Add argument.
10339         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10340         (remote_file_put): Update.
10341         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10342
10343 2014-02-19  Tom Tromey  <tromey@redhat.com>
10344
10345         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10346         * target.c (target_fileio_open): Add argument.
10347         * remote.c (remote_hostio_open): Add 'self' argument.
10348         (remote_bfd_iovec_open): Add 'self' argument.
10349         (remote_file_put): Add 'self' argument.
10350         (remote_file_get): Add 'self' argument.
10351         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10352
10353 2014-02-19  Tom Tromey  <tromey@redhat.com>
10354
10355         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10356         Add argument.
10357         (target_can_run_breakpoint_commands): Add argument.
10358         * target.c (update_current_target): Update.
10359         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10360         argument.
10361         (remote_insert_breakpoint): Add 'self' argument.
10362         (remote_insert_hw_breakpoint): Add 'self' argument.
10363         (remote_can_run_breakpoint_commands): Add 'self' argument.
10364
10365 2014-02-19  Tom Tromey  <tromey@redhat.com>
10366
10367         * target.h (struct target_ops)
10368         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10369         (target_supports_evaluation_of_breakpoint_conditions): Add
10370         argument.
10371         * target.c (update_current_target): Update.
10372         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10373         argument.
10374         (remote_insert_breakpoint): Add 'self' argument.
10375         (remote_insert_hw_breakpoint): Add 'self' argument.
10376         (remote_supports_cond_breakpoints): Add 'self' argument.
10377
10378 2014-02-19  Tom Tromey  <tromey@redhat.com>
10379
10380         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10381         argument.
10382         (target_supports_string_tracing): Add argument.
10383         * target.c (update_current_target): Update.
10384         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10385
10386 2014-02-19  Tom Tromey  <tromey@redhat.com>
10387
10388         * target.h (struct target_ops)
10389         <to_supports_disable_randomization>: Add argument.
10390         * target.c (find_default_supports_disable_randomization): Add
10391         argument.
10392         (target_supports_disable_randomization): Add argument.
10393         (find_default_supports_disable_randomization): Add 'self'
10394         argument.
10395         * remote.c (extended_remote_supports_disable_randomization): Add
10396         'self' argument.
10397         (remote_supports_disable_randomization): Add 'self' argument.
10398         (extended_remote_create_inferior): Update.
10399         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10400         'self' argument.
10401
10402 2014-02-19  Tom Tromey  <tromey@redhat.com>
10403
10404         * target.h (struct target_ops)
10405         <to_supports_enable_disable_tracepoint>: Add argument.
10406         (target_supports_enable_disable_tracepoint): Add argument.
10407         * target.c (update_current_target): Update.
10408         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10409         argument.
10410
10411 2014-02-19  Tom Tromey  <tromey@redhat.com>
10412
10413         * target.h (struct target_ops) <to_supports_multi_process>: Add
10414         argument.
10415         (target_supports_multi_process): Add argument.
10416         * target.c (update_current_target): Update.
10417         * remote.c (remote_supports_multi_process): Add 'self' argument.
10418         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10419         argument.
10420         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10421         argument.
10422
10423 2014-02-19  Tom Tromey  <tromey@redhat.com>
10424
10425         * target.h (struct target_ops) <to_execution_direction>: Add
10426         argument.
10427         (target_execution_direction): Add argument.
10428         * target.c (default_execution_direction): Add 'self' argument.
10429         * record-full.c (record_full_execution_direction): Add 'self'
10430         argument.
10431
10432 2014-02-19  Tom Tromey  <tromey@redhat.com>
10433
10434         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10435         argument.
10436         (target_can_execute_reverse): Add argument.
10437         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10438         * record-full.c (record_full_can_execute_reverse): Add 'self'
10439         argument.
10440         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10441         argument.
10442
10443 2014-02-19  Tom Tromey  <tromey@redhat.com>
10444
10445         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10446         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10447         argument.
10448         (target_get_ada_task_ptid): Add argument.
10449         * target.c (update_current_target): Update.
10450         (default_get_ada_task_ptid): Add 'self' argument.
10451         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10452         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10453         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10454         argument.
10455         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10456         argument.
10457         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10458         argument.
10459         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10460         argument.
10461         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10462         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10463         argument.
10464
10465 2014-02-19  Tom Tromey  <tromey@redhat.com>
10466
10467         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10468         (target_goto_bookmark): Add argument.
10469         * target.c (dummy_goto_bookmark): Add 'self' argument.
10470         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10471
10472 2014-02-19  Tom Tromey  <tromey@redhat.com>
10473
10474         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10475         (target_get_bookmark): Add argument.
10476         * target.c (dummy_get_bookmark): Add 'self' argument.
10477         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10478
10479 2014-02-19  Tom Tromey  <tromey@redhat.com>
10480
10481         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10482         argument.
10483         (target_make_corefile_notes): Add argument.
10484         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10485         * procfs.c (procfs_make_note_section): Add 'self' argument.
10486         (procfs_make_note_section): Add 'self' argument.
10487         (procfs_make_note_section): Add 'self' argument.
10488         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10489         argument.
10490         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10491         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10492         * exec.c (exec_make_note_section): Add 'self' argument.
10493         (exec_make_note_section): Add 'self' argument.
10494
10495 2014-02-19  Tom Tromey  <tromey@redhat.com>
10496
10497         * target.h (struct target_ops) <to_find_memory_regions>: Add
10498         argument.
10499         (target_find_memory_regions): Add argument.
10500         * target.c (dummy_find_memory_regions): Add 'self' argument.
10501         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10502         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10503         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10504         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10505         * exec. (exec_do_find_memory_regions): New global.
10506         (exec_set_find_memory_regions): Rewrite.
10507         (exec_find_memory_regions): New function.
10508         (init_exec_ops): Use exec_find_memory_regions.
10509
10510 2014-02-19  Tom Tromey  <tromey@redhat.com>
10511
10512         * target.h (struct target_ops) <to_supports_non_stop>: Add
10513         argument.
10514         * target.c (find_default_supports_non_stop): Add argument.
10515         (target_supports_non_stop): Add argument.
10516         (find_default_supports_non_stop): Add 'self' argument.
10517         * remote.c (remote_supports_non_stop): Add 'self' argument.
10518         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10519
10520 2014-02-19  Tom Tromey  <tromey@redhat.com>
10521
10522         * target.h (struct target_ops) <to_log_command>: Add argument.
10523         (target_log_command): Add argument.
10524         * serial.h (serial_log_command): Add 'self' argument.
10525         * serial.c (serial_log_command): Add 'self' argument.
10526
10527 2014-02-19  Tom Tromey  <tromey@redhat.com>
10528
10529         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10530         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10531         argument.
10532         (target_pid_to_exec_file): Add argument.
10533         * target.c (debug_to_pid_to_exec_file): Add argument.
10534         (update_current_target): Update.
10535         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10536         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10537         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10538         (linux_handle_extended_wait): Update.
10539         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10540         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10541         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10542         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10543
10544 2014-02-19  Tom Tromey  <tromey@redhat.com>
10545
10546         * target.h (struct target_ops) <to_rcmd>: Add argument.
10547         (target_rcmd): Add argument.
10548         * target.c (debug_to_rcmd): Add argument.
10549         (update_current_target, do_monitor_command): Update.
10550         * remote.c (remote_rcmd): Add 'self' argument.
10551         * monitor.c (monitor_rcmd): Add 'self' argument.
10552
10553 2014-02-19  Tom Tromey  <tromey@redhat.com>
10554
10555         * windows-nat.c (windows_stop): Add 'self' argument.
10556         * target.h (struct target_ops) <to_stop>: Add argument.
10557         * target.c (target_stop): Add argument.
10558         (debug_to_stop): Add argument.
10559         (update_current_target): Update.
10560         * remote.c (remote_stop): Add 'self' argument.
10561         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10562         (gdbsim_cntrl_c): Update.
10563         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10564         * procfs.c (procfs_stop): Add 'self' argument.
10565         * nto-procfs.c (procfs_stop): Add 'self' argument.
10566         * monitor.c (monitor_stop): Add 'self' argument.
10567         (monitor_open): Update.
10568         * linux-nat.c (linux_nat_stop): Add argument.
10569         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10570         * gnu-nat.c (gnu_stop): Add 'self' argument.
10571         * darwin-nat.c (darwin_stop): Add 'self' argument.
10572
10573 2014-02-19  Tom Tromey  <tromey@redhat.com>
10574
10575         * target.h (struct target_ops) <to_thread_name>: Add argument.
10576         * target.c (target_thread_name): Add argument.
10577         (update_current_target): Update.
10578         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10579
10580 2014-02-19  Tom Tromey  <tromey@redhat.com>
10581
10582         * target.h (struct target_ops) <to_extra_thread_info>: Add
10583         argument.
10584         (target_extra_thread_info): Add argument.
10585         * target.c (update_current_target): Update.
10586         * remote.c (remote_threads_extra_info): Add 'self' argument.
10587         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10588         argument.
10589         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10590         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10591         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10592         argument.
10593         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10594         argument.
10595         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10596         argument.
10597         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10598         argument.
10599
10600 2014-02-19  Tom Tromey  <tromey@redhat.com>
10601
10602         * target.h (struct target_ops) <to_program_signals>: Add argument.
10603         * target.c (target_program_signals): Add argument.
10604         * remote.c (remote_program_signals): Add 'self' argument.
10605
10606 2014-02-19  Tom Tromey  <tromey@redhat.com>
10607
10608         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10609         * target.c (target_pass_signals): Add argument.
10610         * remote.c (remote_pass_signals): Add 'self' argument.
10611         (remote_start_remote): Update.
10612         * procfs.c (procfs_pass_signals): Add 'self' argument.
10613         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10614         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10615         (linux_nat_create_inferior, linux_nat_attach): Update.
10616
10617 2014-02-19  Tom Tromey  <tromey@redhat.com>
10618
10619         * windows-nat.c (windows_can_run): Add 'self' argument.
10620         * target.h (struct target_ops) <to_can_run>: Add argument.
10621         (target_can_run): Add argument.
10622         * target.c (debug_to_can_run): Add argument.
10623         (update_current_target): Update.
10624         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10625         * inf-child.c (inf_child_can_run): Add 'self' argument.
10626         * go32-nat.c (go32_can_run): Add 'self' argument.
10627
10628 2014-02-19  Tom Tromey  <tromey@redhat.com>
10629
10630         * target.h (struct target_ops) <to_has_exited>: Add argument.
10631         (target_has_exited): Add argument.
10632         * target.c (debug_to_has_exited): Add argument.
10633         (update_current_target): Update.
10634
10635 2014-02-19  Tom Tromey  <tromey@redhat.com>
10636
10637         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10638         argument.
10639         (target_set_syscall_catchpoint): Add argument.
10640         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10641         argument.
10642         * target.c (update_current_target): Update.
10643
10644 2014-02-19  Tom Tromey  <tromey@redhat.com>
10645
10646         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10647         argument.
10648         (target_remove_exec_catchpoint): Add argument.
10649         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10650         (update_current_target): Update.
10651         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10652         argument.
10653
10654 2014-02-19  Tom Tromey  <tromey@redhat.com>
10655
10656         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10657         argument.
10658         (target_insert_exec_catchpoint): Add argument.
10659         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10660         (update_current_target): Update.
10661         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10662         argument.
10663
10664 2014-02-19  Tom Tromey  <tromey@redhat.com>
10665
10666         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10667         argument.
10668         (target_remove_vfork_catchpoint): Add argument.
10669         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10670         (update_current_target): Update.
10671         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10672         argument.
10673
10674 2014-02-19  Tom Tromey  <tromey@redhat.com>
10675
10676         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10677         argument.
10678         (target_insert_vfork_catchpoint): Add argument.
10679         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10680         (update_current_target): Update.
10681         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10682         argument.
10683
10684 2014-02-19  Tom Tromey  <tromey@redhat.com>
10685
10686         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10687         argument.
10688         (target_remove_fork_catchpoint): Add argument.
10689         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10690         (update_current_target): Update.
10691         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10692         argument.
10693
10694 2014-02-19  Tom Tromey  <tromey@redhat.com>
10695
10696         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10697         argument.
10698         (target_insert_fork_catchpoint): Add argument.
10699         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10700         (update_current_target): Update.
10701         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10702         argument.
10703
10704 2014-02-19  Tom Tromey  <tromey@redhat.com>
10705
10706         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10707         argument.
10708         (target_post_startup_inferior): Add argument.
10709         * target.c (debug_to_post_startup_inferior): Add argument.
10710         (update_current_target): Update.
10711         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10712         argument.
10713         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10714         argument.
10715         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10716         argument.
10717         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10718         argument.
10719         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10720         'self' argument.
10721         (super_post_startup_inferior): Likewise.
10722         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10723         'self' argument.
10724         (super_post_startup_inferior): Likewise.
10725         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10726         Add 'self' argument.
10727         (super_post_startup_inferior): Likewise.
10728
10729 2014-02-19  Tom Tromey  <tromey@redhat.com>
10730
10731         * target.h (struct target_ops) <to_load>: Add argument.
10732         * target.c (target_load): Add argument.
10733         (debug_to_load): Add argument.
10734         (update_current_target): Update.
10735         * remote.c (remote_load): Add 'self' argument.
10736         * remote-sim.c (gdbsim_load): Add 'self' argument.
10737         * remote-mips.c (mips_load): Add 'self' argument.
10738         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10739         * monitor.c (monitor_load): Add 'self' argument.
10740         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10741
10742 2014-02-19  Tom Tromey  <tromey@redhat.com>
10743
10744         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10745         (target_terminal_info): Add argument.
10746         * target.c (debug_to_terminal_info): Add argument.
10747         (default_terminal_info): Likewise.
10748         * inflow.c (child_terminal_info): Add 'self' argument.
10749         * inferior.h (child_terminal_info): Add 'self' argument.
10750         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10751
10752 2014-02-19  Tom Tromey  <tromey@redhat.com>
10753
10754         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10755         argument.
10756         (target_terminal_save_ours): Add argument.
10757         * target.c (debug_to_terminal_save_ours): Add argument.
10758         (update_current_target): Update.
10759         * inflow.c (terminal_save_ours): Add 'self' argument.
10760         * inferior.h (terminal_save_ours): Add 'self' argument.
10761
10762 2014-02-19  Tom Tromey  <tromey@redhat.com>
10763
10764         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10765         (target_terminal_ours): Add argument.
10766         * target.c (debug_to_terminal_ours): Add argument.
10767         (update_current_target): Update.
10768         * remote.c (remote_terminal_ours): Add 'self' argument.
10769         (remote_close): Update.
10770         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10771         * inflow.c (terminal_ours): Add 'self' argument.
10772         * inferior.h (terminal_ours): Add 'self' argument.
10773         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10774
10775 2014-02-19  Pedro Alves  <palves@redhat.com>
10776             Tom Tromey  <tromey@redhat.com>
10777
10778         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10779         argument.
10780         (target_terminal_ours_for_output): Add argument.
10781         * target.c (debug_to_terminal_ours_for_output): Add argument.
10782         (update_current_target): Update.
10783         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10784         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10785         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10786
10787 2014-02-19  Tom Tromey  <tromey@redhat.com>
10788
10789         * target.h (struct target_ops) <to_terminal_inferior>: Add
10790         argument.
10791         * target.c (target_terminal_inferior): Add argument.
10792         (update_current_target): Update.
10793         * remote.c (remote_terminal_inferior): Add 'self' argument.
10794         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10795         * inflow.c (terminal_inferior): Add 'self' argument.
10796         * inferior.h (terminal_inferior): Add 'self' argument.
10797         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10798         (go32_terminal_inferior): Add 'self' argument.
10799
10800 2014-02-19  Tom Tromey  <tromey@redhat.com>
10801
10802         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10803         (target_terminal_init): Add argument.
10804         * target.c (debug_to_terminal_init): Add argument.
10805         (update_current_target): Update.
10806         * inflow.c (terminal_init_inferior): Add 'self' argument.
10807         * inferior.h (terminal_init_inferior): Add 'self' argument.
10808         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10809         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10810
10811 2014-02-19  Tom Tromey  <tromey@redhat.com>
10812
10813         * target.h (struct target_ops)
10814         <to_can_accel_watchpoint_condition>: Add argument.
10815         (target_can_accel_watchpoint_condition): Add argument.
10816         * target.c (debug_to_can_accel_watchpoint_condition): Add
10817         argument.
10818         (update_current_target): Update.
10819         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10820         'self' argument.
10821
10822 2014-02-19  Tom Tromey  <tromey@redhat.com>
10823
10824         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10825         Add argument.
10826         (target_region_ok_for_hw_watchpoint): Add argument.
10827         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10828         (default_region_ok_for_hw_watchpoint): Add argument.
10829         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10830         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10831         argument.
10832         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10833         argument.
10834         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10835         argument.
10836         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10837         'self' argument.
10838         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10839         'self' argument.
10840         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10841         'self' argument.
10842         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10843         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10844         'self' argument.
10845         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10846         Add 'self' argument.
10847
10848 2014-02-19  Tom Tromey  <tromey@redhat.com>
10849
10850         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10851         argument.
10852         (target_insert_watchpoint): Add argument.
10853         * target.c (debug_to_insert_watchpoint): Add argument.
10854         (update_current_target): Update.
10855         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10856         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10857         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10858         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10859         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10860         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10861         argument.
10862         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10863         (procfs_insert_hw_watchpoint): Add 'self' argument.
10864         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10865         argument.
10866         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10867         argument.
10868         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10869         argument.
10870         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10871         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10872         argument.
10873         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10874         'self' argument.
10875
10876 2014-02-19  Tom Tromey  <tromey@redhat.com>
10877
10878         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10879         argument.
10880         (target_remove_watchpoint): Add argument.
10881         * target.c (debug_to_remove_watchpoint): Add argument.
10882         (update_current_target): Update.
10883         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10884         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10885         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10886         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10887         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10888         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10889         argument.
10890         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10891         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10892         argument.
10893         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10894         argument.
10895         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10896         argument.
10897         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10898         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10899         argument.
10900         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10901         'self' argument.
10902
10903 2014-02-19  Tom Tromey  <tromey@redhat.com>
10904
10905         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10906         argument.
10907         (target_remove_hw_breakpoint): Add argument.
10908         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10909         (update_current_target): Update.
10910         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10911         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10912         argument.
10913         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10914         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10915         argument.
10916         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10917         'self' argument.
10918
10919 2014-02-19  Tom Tromey  <tromey@redhat.com>
10920
10921         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10922         argument.
10923         (target_insert_hw_breakpoint): Add argument.
10924         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10925         (update_current_target): Update.
10926         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10927         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10928         argument.
10929         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10930         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10931         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10932         argument.
10933         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10934         'self' argument.
10935
10936 2014-02-19  Tom Tromey  <tromey@redhat.com>
10937
10938         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10939         argument.
10940         (target_can_use_hardware_watchpoint): Add argument.
10941         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10942         (update_current_target): Update.
10943         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10944         argument.
10945         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10946         argument.
10947         * remote.c (remote_check_watch_resources): Add 'self' argument.
10948         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10949         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10950         argument.
10951         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10952         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10953         argument.
10954         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10955         argument.
10956         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10957         argument.
10958         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10959         argument.
10960         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10961         argument.
10962         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10963         argument.
10964         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10965         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10966         argument.
10967         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10968         'self' argument.
10969
10970 2014-02-19  Tom Tromey  <tromey@redhat.com>
10971
10972         * target.h (struct target_ops) <to_post_attach>: Add argument.
10973         (target_post_attach): Add argument.
10974         * target.c (debug_to_post_attach): Add argument.
10975         (update_current_target): Update.
10976         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10977         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10978         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10979         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10980         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10981
10982 2014-02-19  Tom Tromey  <tromey@redhat.com>
10983
10984         * windows-nat.c (windows_close): Add 'self' argument.
10985         * tracepoint.c (tfile_close): Add 'self' argument.
10986         * target.h (struct target_ops) <to_close>: Add argument.
10987         * target.c (target_close): Add argument.
10988         (update_current_target): Update.
10989         * remote.c (remote_close): Add 'self' argument.
10990         * remote-sim.c (gdbsim_close): Add 'self' argument.
10991         * remote-mips.c (mips_close): Add 'self' argument.
10992         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10993         * record-full.c (record_full_close): Add 'self' argument.
10994         * record-btrace.c (record_btrace_close): Add 'self' argument.
10995         * monitor.h (monitor_close): Add 'self' argument.
10996         * monitor.c (monitor_close): Add 'self' argument.
10997         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10998         * linux-nat.c (linux_nat_close): Add argument.
10999         * go32-nat.c (go32_close): Add 'self' argument.
11000         * exec.c (exec_close_1): Add 'self' argument.
11001         * ctf.c (ctf_close): Add 'self' argument.
11002         * corelow.c (core_close): Add 'self' argument.
11003         (core_close_cleanup): Update.
11004         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11005         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11006
11007 2014-02-19  Tom Tromey  <tromey@redhat.com>
11008
11009         * remote.c (remote_load): New function.
11010         (init_remote_ops): Use it.
11011
11012 2014-02-19  Tom Tromey  <tromey@redhat.com>
11013
11014         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11015         argument.
11016         * common/linux-btrace.h (linux_supports_btrace): Update.
11017         * remote.c (remote_supports_btrace): Add "self" argument.
11018         * target-delegates.c: Rebuild.
11019         * target.c (target_supports_btrace): Remove.
11020         * target.h (struct target_ops) <to_supports_btrace>: Add
11021         target_ops argument.
11022         (target_supports_btrace): New define.
11023
11024 2014-02-19  Tom Tromey  <tromey@redhat.com>
11025
11026         * record-full.c (record_full_beneath_to_resume_ops)
11027         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11028         (record_full_beneath_to_wait)
11029         (record_full_beneath_to_store_registers_ops)
11030         (record_full_beneath_to_store_registers)
11031         (record_full_beneath_to_xfer_partial_ops)
11032         (record_full_beneath_to_xfer_partial)
11033         (record_full_beneath_to_insert_breakpoint_ops)
11034         (record_full_beneath_to_insert_breakpoint)
11035         (record_full_beneath_to_remove_breakpoint_ops)
11036         (record_full_beneath_to_remove_breakpoint)
11037         (record_full_beneath_to_stopped_by_watchpoint)
11038         (record_full_beneath_to_stopped_data_address)
11039         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11040         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11041         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11042         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11043         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11044         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11045         (tmp_to_stopped_data_address, tmp_to_async): Remove.
11046         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
11047         (record_full_resume, record_full_wait_1)
11048         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11049         (record_full_store_registers, record_full_xfer_partial)
11050         (record_full_insert_breakpoint, record_full_remove_breakpoint)
11051         (record_full_async, record_full_core_xfer_partial): Use target
11052         delegation.
11053         * target-delegates.c: Rebuild.
11054         * target.c (current_xfer_partial): Remove.
11055         (update_current_target): Do not INHERIT or de_fault
11056         to_insert_breakpoint, to_remove_breakpoint,
11057         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11058         to_is_async_p, to_async.  Do not set to_xfer_partial field.
11059         (default_xfer_partial): Simplify.
11060         (current_xfer_partial): Remove.
11061         (target_wait, target_resume): Simplify.
11062         (find_default_can_async_p, find_default_is_async_p): Update.
11063         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11064         to_xfer_partial, to_stopped_by_watchpoint,
11065         to_stopped_data_address.
11066         (target_store_registers): Simplify.
11067         (forward_target_remove_breakpoint)
11068         (forward_target_insert_breakpoint): Remove.
11069         (target_remove_breakpoint, target_insert_breakpoint)
11070         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11071         * target.h (struct target_ops) <to_resume, to_wait,
11072         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11073         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11074         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11075         markup.
11076         (forward_target_remove_breakpoint)
11077         (forward_target_insert_breakpoint): Remove.
11078         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11079         directly.
11080         (record_btrace_insert_breakpoint): Delegate directly.
11081
11082 2014-02-19  Tom Tromey  <tromey@redhat.com>
11083
11084         PR build/7701:
11085         * target-delegates.c: New file.
11086         * target.c: Include target-delegates.c.
11087         (init_dummy_target): Call install_dummy_methods.
11088         (complete_target_initialization): Call install_delegators.
11089         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11090         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11091         * make-target-delegates: New file.
11092
11093 2014-02-19  Tom Tromey  <tromey@redhat.com>
11094
11095         * record.c (find_record_target): Use find_target_at.
11096         * target.c (find_target_at): New function.
11097         * target.h (find_target_at): Declare.
11098
11099 2014-02-19  Tom Tromey  <tromey@redhat.com>
11100
11101         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11102         Add 'ops' argument.
11103         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11104         'ops' argument.
11105         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11106         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11107         'ops' argument.
11108         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11109         argument.
11110         * linux-nat.c (save_sigtrap): Update.
11111         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11112         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11113         (linux_nat_close): Update.
11114         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11115         argument.
11116         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11117         argument.
11118         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11119         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11120         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11121         (tmp_to_async): Add 'ops' argument.
11122         (record_full_stopped_by_watchpoint, record_full_async)
11123         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11124         argument.
11125         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11126         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11127         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11128         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11129         (remote_is_async_p, remote_async): Add 'ops' argument.
11130         (remote_stopped_data_address): Update.
11131         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11132         * target.c (update_current_target)
11133         (find_default_can_async_p, find_default_is_async_p): Update.
11134         (init_dummy_target): Update.
11135         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11136         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11137         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11138         (target_can_async_p, target_is_async_p, target_async)
11139         (target_stopped_by_watchpoint): Update.
11140
11141 2014-02-19  Yao Qi  <yao@codesourcery.com>
11142
11143         PR gdb/16220
11144         * gdbarch.sh: Remove startup_gdbarch.
11145         * gdbarch.c: Regenerated.
11146         * gdbarch.h: Likewise.
11147
11148 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11149
11150         * rl78-tdep.c (rl78_g10_register_name): New function.
11151         (rl78_return_value): Add g10 support.
11152         (rl78_gdbarch_init): Register rl78_g10_register_name for the
11153         g10.
11154
11155 2014-02-17  Doug Evans  <xdje42@gmail.com>
11156
11157         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11158         (SUBDIR_GUILE_SRCS): Ditto.
11159         (scm-gsmob.o): Ditto.
11160
11161 2014-02-17  Yao Qi  <yao@codesourcery.com>
11162
11163         * gnu-nat.c (ILL_RPC): Declare defined function.
11164
11165 2014-02-17  Yao Qi  <yao@codesourcery.com>
11166
11167         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11168         mach_msg_type_number_t.
11169         (gnu_write_inferior): Likewise.
11170
11171 2014-02-17  Yao Qi  <yao@codesourcery.com>
11172
11173         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11174         in format string.
11175         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11176         (inf_validate_procs, inf_signal): Likewise.
11177         (S_exception_raise_request): Likewise.
11178         (do_mach_notify_dead_name): Likewise.
11179         (steal_exc_port): Likewise.
11180         (gnu_read_inferior): Change 'copy_count''s type to
11181         mach_msg_type_number_t.
11182         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
11183         format string.
11184
11185 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
11186
11187         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11188         flag.  Adjust all users; in particular...
11189         (gnu_wait): ..., don't decrement its value in here...
11190         (gnu_create_inferior): ..., and instead set the flag in here,
11191         around the startup_inferior call, and call that one with
11192         START_INFERIOR_TRAPS_EXPECTED.
11193
11194         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11195         (ILL_RPC): ... new macro.
11196         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11197         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11198         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11199         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11200         functions with ILL_RPC macro.
11201         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11202         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11203         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11204         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11205         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11206         (S_proc_getlogin_reply, S_proc_getsid_reply)
11207         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11208         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11209         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11210         (S_proc_getnports_reply, S_proc_is_important_reply)
11211         (S_proc_get_code_reply): New stub functions, generated with
11212         ILL_RPC macro.
11213
11214         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11215         collected the type check structures.
11216
11217         * reply_mig_hack.awk: Don't expect to see the auto keyword.
11218
11219 2014-02-14  Doug Evans  <dje@google.com>
11220
11221         * target.c (target_write_partial): Fix result type.
11222
11223 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11224
11225         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11226         the proper offsets to access fpregset_t.
11227
11228 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
11229
11230         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11231         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11232         * h8300-tdep.c (setmachinelist): Remove global.
11233         * hppa-tdep.c (hppa_sigtramp): Remove global.
11234         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11235         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11236         * ravenscar-thread.c (update_target_observer): Remove global.
11237         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11238
11239 2014-02-12  Tom Tromey  <tromey@redhat.com>
11240
11241         * common/rsp-low.c: Update comments.
11242         * common/rsp-low.h: Update comments.
11243
11244 2014-02-12  Tom Tromey  <tromey@redhat.com>
11245
11246         * common/rsp-low.c (convert_ascii_to_int): Remove.
11247         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11248
11249 2014-02-12  Tom Tromey  <tromey@redhat.com>
11250
11251         * common/rsp-low.h (unhexify): Don't declare.
11252         * common/rsp-low.c (unhexify): Remove.
11253
11254 2014-02-12  Tom Tromey  <tromey@redhat.com>
11255
11256         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11257         * common/rsp-low.c (convert_int_to_ascii): Remove.
11258
11259 2014-02-12  Tom Tromey  <tromey@redhat.com>
11260
11261         * common/rsp-low.h (hexify): Don't declare.
11262         * common/rsp-low.c (hexify): Remove.
11263
11264 2014-02-12  Tom Tromey  <tromey@redhat.com>
11265
11266         * common/rsp-low.c (hexify): Never take strlen of argument.
11267
11268 2014-02-12  Tom Tromey  <tromey@redhat.com>
11269
11270         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11271         * remote.c (extended_remote_run, remote_rcmd)
11272         (remote_download_trace_state_variable, remote_save_trace_data)
11273         (remote_set_trace_notes): Update.
11274         * tracepoint.c (encode_source_string, tfile_write_status)
11275         (tfile_write_uploaded_tsv): Update.
11276
11277 2014-02-12  Tom Tromey  <tromey@redhat.com>
11278
11279         * tracepoint.c: Include rsp-low.h.
11280         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11281         * remote.c: Include rsp-low.h.
11282         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11283         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11284         (remote_unescape_input): Move to common/rsp-low.c.
11285         * common/rsp-low.h: New file.
11286         * common/rsp-low.c: New file.
11287         * Makefile.in (SFILES): Add common/rsp-low.c.
11288         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11289         (COMMON_OBS): Add rsp-low.o.
11290         (rsp-low.o): New target.
11291
11292 2014-02-12  Tom Tromey  <tromey@redhat.com>
11293
11294         * utils.h: Include print-utils.h.
11295         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11296         (int_string, core_addr_to_string, core_addr_to_string_nz)
11297         (hex_string, hex_string_custom): Don't declare.
11298         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11299         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11300         (hex_string_custom, int_string, core_addr_to_string)
11301         (core_addr_to_string_nz, host_address_to_string): Move to
11302         common/print-utils.c.
11303         * common/print-utils.h: New file.
11304         * common/print-utils.c: New file
11305         * Makefile.in (SFILES): Add common/print-utils.c.
11306         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11307         (COMMON_OBS): Add print-utils.o.
11308         (print-utils.o): New target.
11309
11310 2014-02-12  Tom Tromey  <tromey@redhat.com>
11311
11312         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11313
11314 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11315
11316         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11317
11318 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11319
11320         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11321         if a PT_IO ptrace request returns sucessfully but indicates that 0
11322         bytes were transferred.
11323
11324 2014-02-12  Pedro Alves  <palves@redhat.com>
11325             Kevin Buettner <kevinb@redhat.com>
11326
11327         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11328         TYPE_INSTANCE_FLAG_CODE_SPACE.
11329
11330 2014-02-12  Pedro Alves  <palves@redhat.com>
11331
11332         * h8300-tdep.c (pseudo_from_raw_register)
11333         (raw_from_pseudo_register): New functions.
11334         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11335         them.
11336
11337 2014-02-12  Pedro Alves  <palves@redhat.com>
11338
11339         * h8300-tdep.c (h8300_register_sim_regno): New function.
11340         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11341         gdbarch_register_sim_regno hook.
11342
11343 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11344
11345         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11346
11347 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11348
11349         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11350
11351 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11352
11353         * obsd-tdep.h (obsd_init_abi): New prototype.
11354         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11355         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11356         (obsd_init_abi): New functions.
11357         * i386obsd-tdep.c: Include "obsd-tdep.h".
11358         (i386obsd_init_abi): Call obsd_init_abi.
11359         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11360         (amd64obsd_init_abi): Call obsd_init_abi.
11361         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11362         obsd-tdep.c to gdb_target_obs.
11363
11364 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11365
11366         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11367         double float arguments to 16-byte in the argument slots.
11368
11369 2014-02-11  Doug Evans  <xdje42@gmail.com>
11370
11371         * configure.ac: Don't crash if pkg-config is not found and guile
11372         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11373         in guile checks.
11374         * configure: Regenerate.
11375
11376 2014-02-11  Yao Qi  <yao@codesourcery.com>
11377
11378         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11379         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11380         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11381         * gnu-nat.c (gnu_xfer_memory): Likewise.
11382         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11383         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11384         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11385         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11386
11387 2014-02-11  Yao Qi  <yao@codesourcery.com>
11388
11389         * target.h (enum target_xfer_error): Rename to ...
11390         (enum target_xfer_status): ... it.  New.  All users updated.
11391         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11392         New.
11393         (TARGET_XFER_STATUS_ERROR_P): New macro.
11394         (target_xfer_error_to_string): Remove declaration.
11395         (target_xfer_status_to_string): Declare.
11396         (target_xfer_partial_ftype): Adjust it.
11397         (struct target_ops) <to_xfer_partial>: Return
11398         target_xfer_status.  Add argument xfered_len.  Update
11399         comments.
11400         * target.c (target_xfer_error_to_string): Rename to ...
11401         (target_xfer_status_to_string): ... it.  New.  All callers
11402         updated.
11403         (target_read_live_memory): Likewise.  Call target_xfer_partial
11404         instead of target_read.
11405         (memory_xfer_live_readonly_partial): Return
11406         target_xfer_status.  Add argument xfered_len.
11407         (raw_memory_xfer_partial): Likewise.
11408         (memory_xfer_partial_1): Likewise.
11409         (memory_xfer_partial): Likewise.
11410         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11411         properly.  Update debug message.
11412         (default_xfer_partial, current_xfer_partial): Likewise.
11413         (target_write_partial): Likewise.
11414         (target_read_partial): Likewise.  All callers updated.
11415         (read_whatever_is_readable): Likewise.
11416         (target_write_with_progress): Likewise.
11417         (target_read_alloc_1): Likewise.
11418
11419         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11420         * auxv.c (procfs_xfer_auxv): Likewise.
11421         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11422         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11423         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11424         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11425         * corefile.c (read_memory): Adjust.
11426         * corelow.c (core_xfer_partial): Likewise.
11427         * ctf.c (ctf_xfer_partial): Likewise.
11428         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11429         updated.
11430         (darwin_xfer_partial): Likewise.
11431         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11432         callers updated.
11433         (exec_xfer_partial): Likewise.
11434         * exec.h (section_table_xfer_memory_partial): Update
11435         declaration.
11436         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11437         negative.
11438         (gnu_xfer_partial): Likewise.
11439         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11440         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11441         (ia64_hpux_xfer_solib_got): Likewise.
11442         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11443         type of 'partial_len' to ULONGEST.
11444         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11445         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11446         (linux_nat_xfer_partial): Likewise.
11447         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11448         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11449         * monitor.c (monitor_xfer_memory): Likewise.
11450         (monitor_xfer_partial): Likewise.
11451         * procfs.c (procfs_xfer_partial): Likewise.
11452         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11453         * record-full.c (record_full_xfer_partial): Likewise.
11454         (record_full_core_xfer_partial): Likewise.
11455         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11456         (gdbsim_xfer_partial): Likewise.
11457         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11458         updated.
11459         (remote_write_bytes, remote_read_bytes): Likewise.  All
11460         callers updated.
11461         (remote_flash_erase): Likewise.  All callers updated.
11462         (remote_write_qxfer): Likewise.  All callers updated.
11463         (remote_read_qxfer): Likewise.  All callers updated.
11464         (remote_xfer_partial): Likewise.
11465         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11466         (rs6000_xfer_shared_libraries): Likewise.
11467         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11468         (sol_thread_xfer_partial): Likewise.
11469         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11470         (sparc_xfer_partial): Likewise.
11471         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11472         updated.
11473         (spu_xfer_partial): Likewise.
11474         * spu-multiarch.c (spu_xfer_partial): Likewise.
11475         * tracepoint.c (tfile_xfer_partial): Likewise.
11476         * windows-nat.c (windows_xfer_memory): Likewise.
11477         (windows_xfer_shared_libraries): Likewise.
11478         (windows_xfer_partial): Likewise.
11479         * valprint.c: Replace 'target_xfer_error' with
11480         'target_xfer_status' in comments.
11481
11482 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11483
11484         Checked in by Joel Brobecker <brobecker@adacore.com>.
11485         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11486
11487 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11488
11489         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11490         function parameters.
11491
11492 2014-02-10  Will Newton  <will.newton@linaro.org>
11493
11494         * elfread.c (elf_rel_plt_read): Look for a .got section if
11495         looking up .got.plt fails.
11496         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11497         on address passed to elf_gnu_ifunc_record_cache.
11498         (elf_gnu_ifunc_resolve_addr): Likewise.
11499         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11500
11501 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11502
11503         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11504         (X_RETTURN): New macro.
11505         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11506
11507         * sparc64-tdep.c (sparc64_init_abi): Hook
11508         sparc_in_function_epilogue_p.
11509
11510 2014-02-10  Gary Benson  <gbenson@redhat.com>
11511
11512         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11513         Rename name_matcher to symbol_matcher.
11514
11515 2014-02-10  Gary Benson  <gbenson@redhat.com>
11516
11517         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11518         Use expand_symtabs_file_matcher_ftype and
11519         expand_symtabs_symbol_matcher_ftype.
11520
11521 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11522
11523         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11524         (struct ada_symbol_cache): New.
11525         (ada_free_symbol_cache): Forward declare.
11526         (struct ada_pspace_data): New.
11527         (ada_pspace_data_handle): New static global.
11528         (get_ada_pspace_data, ada_pspace_data_cleanup)
11529         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11530         (cache_space, cache): Delete, now folded inside struct
11531         ada_pspace_data.
11532         (ada_get_symbol_cache): New function.
11533         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11534         implementation.
11535         (_initialize_ada_language): Remove initialization of cache_space.
11536         Move call to observer_attach_inferior_exit up, grouping it
11537         with the other observer registrations inside this function.
11538         Rename command to be more general.  Add call to
11539         register_program_space_data_with_cleanup.
11540
11541 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11542
11543         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11544         ada_new_objfile_observer.
11545         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11546         (_initialize_tasks): Update uses of ada_new_objfile_observer
11547         and ada_tasks_normal_stop_observer.
11548
11549 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11550
11551         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11552         returned by the 'Length attribute to integer.
11553
11554 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11555
11556         * ada-lang.c (_initialize_ada_language): Initialize
11557         cache_space obstack.
11558
11559 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11560
11561         * ada-lang.c (HASH_SIZE): New macro.
11562         (struct cache_entry): New type.
11563         (cache_space, cache): New static globals.
11564         (ada_clear_symbol_cache, find_entry): New functions.
11565         (lookup_cached_symbol, cache_symbol): Implement.
11566         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11567         (_initialize_ada_language): Attach ada_new_objfile_observer
11568         and ada_free_objfile_observer.
11569
11570 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11571
11572         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11573         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11574         struct block * parameter.
11575         (ada_lookup_symbol_list_worker): Constify local variable "block".
11576         Remove cast which is no longer necessary.
11577
11578 2014-02-10  Doug Evans  <xdje42@gmail.com>
11579
11580         Add Guile as an extension language.
11581         * NEWS: Mention Guile scripting.
11582         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11583         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11584         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11585         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11586         (CLIBS): Add GUILE_LIBS.
11587         (install-guile): New rule.
11588         (guile.o): New rule.
11589         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11590         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11591         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11592         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11593         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11594         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11595         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11596         * configure.ac: New option --with-guile.
11597         * configure: Regenerate.
11598         * config.in: Regenerate.
11599         * auto-load.c: Remove #include "python/python.h".  Add #include
11600         "gdb/section-scripts.h".
11601         (source_section_scripts): Handle Guile scripts.
11602         (_initialize_auto_load): Add name of Guile objfile script to
11603         scripts-directory help text.
11604         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11605         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11606         (struct breakpoint): New member scm_bp_object.
11607         * defs.h (enum command_control_type): New value guile_control.
11608         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11609         "extension.h".
11610         (show_user): Update comment.
11611         (_initialize_cli_cmds): Update help text for "show user".  Update help
11612         text for max-user-call-depth.
11613         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11614         "extension.h".
11615         (multi_line_command_p): Add guile_control.
11616         (print_command_lines): Handle guile_control.
11617         (execute_control_command, recurse_read_control_structure): Ditto.
11618         (process_next_line): Recognize "guile" commands.
11619         * disasm.c (gdb_disassemble_info): Make non-static.
11620         * disasm.h: #include "dis-asm.h".
11621         (struct gdbarch): Add forward decl.
11622         (gdb_disassemble_info): Declare.
11623         * extension.c: #include "guile/guile.h".
11624         (extension_languages): Add guile.
11625         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11626         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11627         * gdbtypes.c (get_unsigned_type_max): New function.
11628         (get_signed_type_minmax): New function.
11629         * gdbtypes.h (get_unsigned_type_max): Declare.
11630         (get_signed_type_minmax): Declare.
11631         * guile/README: New file.
11632         * guile/guile-internal.h: New file.
11633         * guile/guile.c: New file.
11634         * guile/guile.h: New file.
11635         * guile/scm-arch.c: New file.
11636         * guile/scm-auto-load.c: New file.
11637         * guile/scm-block.c: New file.
11638         * guile/scm-breakpoint.c: New file.
11639         * guile/scm-disasm.c: New file.
11640         * guile/scm-exception.c: New file.
11641         * guile/scm-frame.c: New file.
11642         * guile/scm-gsmob.c: New file.
11643         * guile/scm-iterator.c: New file.
11644         * guile/scm-lazy-string.c: New file.
11645         * guile/scm-math.c: New file.
11646         * guile/scm-objfile.c: New file.
11647         * guile/scm-ports.c: New file.
11648         * guile/scm-pretty-print.c: New file.
11649         * guile/scm-safe-call.c: New file.
11650         * guile/scm-string.c: New file.
11651         * guile/scm-symbol.c: New file.
11652         * guile/scm-symtab.c: New file.
11653         * guile/scm-type.c: New file.
11654         * guile/scm-utils.c: New file.
11655         * guile/scm-value.c: New file.
11656         * guile/lib/gdb.scm: New file.
11657         * guile/lib/gdb/boot.scm: New file.
11658         * guile/lib/gdb/experimental.scm: New file.
11659         * guile/lib/gdb/init.scm: New file.
11660         * guile/lib/gdb/iterator.scm: New file.
11661         * guile/lib/gdb/printing.scm: New file.
11662         * guile/lib/gdb/types.scm: New file.
11663         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11664         (VPATH): Add $(GUILE_SRCDIR).
11665         (GUILE_DIR): New variable.
11666         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11667         (all): Add stamp-guile dependency.
11668         (stamp-guile): New rule.
11669         (clean-guile, install-guile, uninstall-guile): New rules.
11670         (install-only): Add install-guile dependency.
11671         (uninstall): Add uninstall-guile dependency.
11672         (clean): Add clean-guile dependency.
11673
11674 2014-02-09  Doug Evans  <xdje42@gmail.com>
11675
11676         Revert this patch (which I approved, mea culpa).
11677
11678         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11679
11680         * Makefile.in (all-lib): Remove.
11681         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11682
11683 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11684
11685         Fix Python stack corruption.
11686         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11687         gdb_py_longest.
11688
11689 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11690
11691         * Makefile.in (all-lib): Remove.
11692         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11693
11694 2014-02-07  Doug Evans  <dje@google.com>
11695
11696         * extension-priv.h (extension_language_script_ops): Add comment.
11697         (extension_language_ops): Add comment.
11698         (active_ext_lang_state): Fix typo in comment.
11699
11700 2014-02-07  Pedro Alves  <palves@redhat.com>
11701
11702         PR breakpoints/16292
11703         * infrun.c (handle_signal_stop) <signal arrives while stepping
11704         over a breakpoint>: Switch back to the stepping thread.
11705
11706 2014-02-07  Yao Qi  <yao@codesourcery.com>
11707
11708         * target.c (target_xfer_partial): Return zero if LEN is zero.
11709
11710 2014-02-07  Yao Qi  <yao@codesourcery.com>
11711
11712         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11713         (ld_so_xfer_auxv): Likewise.
11714         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11715         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11716         * corelow.c (core_xfer_partial): Likewise.
11717         * ctf.c (ctf_xfer_partial): Likewise.
11718         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11719         (darwin_xfer_partial): Likewise.
11720         * exec.c (exec_xfer_partial): Likewise.
11721         * gnu-nat.c (gnu_xfer_partial): Likewise.
11722         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11723         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11724         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11725         * linux-nat.c (linux_xfer_siginfo): Likewise.
11726         (linux_proc_xfer_spu): Likewise.
11727         * procfs.c (procfs_xfer_partial): Likewise.
11728         * record-full.c (record_full_xfer_partial): Likewise.
11729         (record_full_core_xfer_partial): Likewise.
11730         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11731         * remote.c (remote_write_qxfer): Likewise.
11732         (remote_write_qxfer, remote_read_qxfer): Likewise.
11733         (remote_xfer_partial): Likewise.
11734         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11735         (rs6000_xfer_shared_libraries): Likewise.
11736         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11737         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11738         (spu_xfer_partial): Likewise.
11739         * target.c (memory_xfer_partial_1): Likewise.
11740         * tracepoint.c (tfile_xfer_partial): Likewise.
11741         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11742         (windows_xfer_partial): Likewise.
11743
11744 2014-02-07  Yao Qi  <yao@codesourcery.com>
11745
11746         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11747         comments.
11748         (core_xfer_shared_libraries_aix): Likewise.
11749         * gdbarch.c, gdbarch.h: Regenerated.
11750         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11751         ULONGEST.  Change 'len_avail' type to ULONGEST.
11752         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11753         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11754         declaration.
11755         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11756
11757 2014-02-07  Yao Qi  <yao@codesourcery.com>
11758
11759         * corefile.c (memory_error): Get 'exception' from ERR and pass
11760         'exception' to throw_error.
11761
11762 2014-02-06  Doug Evans  <xdje42@gmail.com>
11763
11764         * configure.ac (libpython checking): Remove all but python.o from
11765         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11766         * configure: Regenerate.
11767
11768         * Makefile.in (SFILES): Add extension.c.
11769         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11770         (COMMON_OBS): Add extension.o.
11771         * extension.h: New file.
11772         * extension-priv.h: New file.
11773         * extension.c: New file.
11774
11775         * python/python-internal.h: #include "extension.h".
11776         (gdbpy_auto_load_enabled): Declare.
11777         (gdbpy_apply_val_pretty_printer): Declare.
11778         (gdbpy_apply_frame_filter): Declare.
11779         (gdbpy_preserve_values): Declare.
11780         (gdbpy_breakpoint_cond_says_stop): Declare.
11781         (gdbpy_breakpoint_has_cond): Declare.
11782         (void source_python_script_for_objfile): Delete.
11783         * python/python.c: #include "extension-priv.h".
11784         Delete inclusion of "observer.h".
11785         (extension_language_python): Moved here and renamed from
11786         script_language_python in py-auto-load.c.
11787         Redefined to be of type extension_language_defn.
11788         (python_extension_script_ops): New global.
11789         (python_extension_ops): New global.
11790         (struct python_env): New member previous_active.
11791         (restore_python_env): Call restore_active_ext_lang.
11792         (ensure_python_env): Call set_active_ext_lang.
11793         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11794         New arg extlang.
11795         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11796         New arg extlang.
11797         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11798         New arg extlang.
11799         (gdbpy_eval_from_control_command): Renamed from
11800         eval_python_from_control_command, made static.  New arg extlang.
11801         (gdbpy_source_script) Renamed from source_python_script, made static.
11802         New arg extlang.
11803         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11804         result to int.  New arg extlang.
11805         (gdbpy_source_objfile_script): Renamed from
11806         source_python_script_for_objfile, made static.  New arg extlang.
11807         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11808         static.  New args extlang, extlang_printers.  Change result type to
11809         "void".
11810         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11811         static.  New arg extlang.  Rename arg printers to extlang_printers
11812         and change type to ext_lang_type_printers *.
11813         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11814         static.  Replace argument arg with extlang, extlang_printers.
11815         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11816         (!HAVE_PYTHON, source_python_script): Delete.
11817         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11818         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11819         (!HAVE_PYTHON, start_type_printers): Delete.
11820         (!HAVE_PYTHON, apply_type_printers): Delete.
11821         (!HAVE_PYTHON, free_type_printers): Delete.
11822         (_initialize_python): Delete call to observer_attach_before_prompt.
11823         (finalize_python): Set/restore active extension language.
11824         (gdbpy_finish_initialization) Renamed from
11825         finish_python_initialization, made static.  New arg extlang.
11826         (gdbpy_initialized): New function.
11827         * python/python.h: #include "extension.h".  Delete #include
11828         "value.h", "mi/mi-cmds.h".
11829         (extension_language_python): Declare.
11830         (GDBPY_AUTO_FILE_NAME): Delete.
11831         (enum py_bt_status): Moved to extension.h and renamed to
11832         ext_lang_bt_status.
11833         (enum frame_filter_flags): Moved to extension.h.
11834         (enum py_frame_args): Moved to extension.h and renamed to
11835         ext_lang_frame_args.
11836         (finish_python_initialization): Delete.
11837         (eval_python_from_control_command): Delete.
11838         (source_python_script): Delete.
11839         (apply_val_pretty_printer): Delete.
11840         (apply_frame_filter): Delete.
11841         (preserve_python_values): Delete.
11842         (gdbpy_script_language_defn): Delete.
11843         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11844         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11845
11846         * auto-load.c: #include "extension.h".
11847         (GDB_AUTO_FILE_NAME): Delete.
11848         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11849         (script_language_gdb): Delete, moved to extension.c and renamed to
11850         extension_language_gdb.
11851         (source_gdb_script_for_objfile): Delete.
11852         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11853         (loaded_script): Change type of language member to
11854         struct extension_language_defn *.
11855         (init_loaded_scripts_info): Initialize
11856         unsupported_script_warning_printed.
11857         (maybe_add_script): Make static.  Change type of language arg to
11858         struct extension_language_defn *.
11859         (clear_section_scripts): Reset unsupported_script_warning_printed.
11860         (auto_load_objfile_script_1): Rewrite to use extension language API.
11861         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11862         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11863         (source_section_scripts): Rewrite to use extension language API.
11864         (load_auto_scripts_for_objfile): Rewrite to use
11865         auto_load_scripts_for_objfile.
11866         (collect_matching_scripts_data): Change type of language member to
11867         struct extension_language_defn *.
11868         (auto_load_info_scripts): Change type of language arg to
11869         struct extension_language_defn *.
11870         (unsupported_script_warning_print): New function.
11871         (script_not_found_warning_print): Make static.
11872         (_initialize_auto_load): Rewrite construction of scripts-directory
11873         help.
11874         * auto-load.h (struct objfile): Add forward decl.
11875         (struct script_language): Delete.
11876         (struct auto_load_pspace_info): Add forward decl.
11877         (struct extension_language_defn): Add forward decl.
11878         (maybe_add_script): Delete.
11879         (auto_load_objfile_script): Declare.
11880         (script_not_found_warning_print): Delete.
11881         (auto_load_info_scripts): Update prototype.
11882         (auto_load_gdb_scripts_enabled): Declare.
11883         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11884         auto_load_python_scripts_enabled and made public.
11885         (script_language_python): Delete, moved to python.c.
11886         (gdbpy_script_language_defn): Delete.
11887         (info_auto_load_python_scripts): Update to use
11888         extension_language_python.
11889
11890         * breakpoint.c (condition_command): Replace call to
11891         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11892         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11893         with call to breakpoint_ext_lang_cond_says_stop.
11894         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11895         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11896         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11897         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11898         New arg slang.
11899         (local_setattro): Print name of extension language with existing
11900         stop condition.
11901
11902         * valprint.c (val_print, value_print): Update to call
11903         apply_ext_lang_val_pretty_printer.
11904         * cp-valprint.c (cp_print_value): Update call to
11905         apply_ext_lang_val_pretty_printer.
11906         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11907         (gdbpy_apply_val_pretty_printer): Renamed from
11908         apply_val_pretty_printer.  New arg extlang.
11909         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11910
11911         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11912         extension language API.
11913         * cli/cli-script.c (execute_control_command): Update to call
11914         eval_ext_lang_from_control_command.
11915
11916         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11917         enum ext_lang_bt_status values.  Update call to
11918         apply_ext_lang_frame_filter.
11919         (mi_cmd_stack_list_locals): Ditto.
11920         (mi_cmd_stack_list_args): Ditto.
11921         (mi_cmd_stack_list_variables): Ditto.
11922         * mi/mi-main.c: Delete #include "python/python-internal.h".
11923         Add #include "extension.h".
11924         (mi_cmd_list_features): Replace reference to python internal variable
11925         gdb_python_initialized with call to ext_lang_initialized_p.
11926
11927         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11928         Update to use enum ext_lang_frame_args.  Update to call
11929         apply_ext_lang_frame_filter.
11930         * python/py-framefilter.c (extract_sym): Update to use enum
11931         ext_lang_bt_status.
11932         (extract_value, py_print_type, py_print_value): Ditto.
11933         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11934         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11935         (py_print_frame): Ditto.
11936         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11937         New arg extlang.  Update to use enum ext_lang_bt_status.
11938
11939         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11940         finish_python_initialization.  Replace with call to
11941         finish_ext_lang_initialization.
11942
11943         * typeprint.c (do_free_global_table): Update to call
11944         free_ext_lang_type_printers.
11945         (create_global_typedef_table): Update to call
11946         start_ext_lang_type_printers.
11947         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11948         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11949         (type_print_options): Change type of global_printers from "void *"
11950         to "struct ext_lang_type_printers *".
11951
11952         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11953         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11954         (gdbpy_preserve_values): Renamed from preserve_python_values.
11955         New arg extlang.
11956         (!HAVE_PYTHON, preserve_python_values): Delete.
11957
11958         * utils.c (quit_flag): Delete, moved to extension.c.
11959         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11960         extension.c.
11961
11962         * eval.c: Delete #include "python/python.h".
11963         * main.c: Delete #include "python/python.h".
11964
11965         * defs.h: Update comment.
11966
11967 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11968
11969         GDB 7.7 released.
11970
11971 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11972
11973         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11974         defined.
11975
11976 2014-02-05  Yao Qi  <yao@codesourcery.com>
11977
11978         * remote.c (remote_pass_signals): Remove local 'buf' and use
11979         rs->buf.
11980         (remote_program_signals): Likewise.
11981
11982 2014-02-05  Yao Qi  <yao@codesourcery.com>
11983
11984         * ctf.c: Include "inferior.h" and "gdbthread.h".
11985         (CTF_PID): A new macro.
11986         (ctf_open): Call inferior_appeared and add_thread_silent.
11987         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11988         (ctf_thread_alive): New function.
11989         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11990
11991 2014-02-05  Yao Qi  <yao@codesourcery.com>
11992
11993         Revert this patch:
11994
11995         2013-05-24  Yao Qi  <yao@codesourcery.com>
11996
11997         * tracepoint.c (TFILE_PID): Remove.
11998         (tfile_open): Don't add thread and inferior.
11999         (tfile_close): Don't set 'inferior_ptid'.  Don't call
12000         exit_inferior_silent.
12001         (tfile_thread_alive): Remove.
12002         (init_tfile_ops): Don't set field 'to_thread_alive' of
12003         tfile_ops.
12004
12005 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
12006
12007         * remote.c (remote_start_remote): Call remote_check_symbols even
12008         if only symbol-file (not file) has been given.
12009
12010 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12011
12012         * gdbarch.sh (skip_entrypoint): New callback.
12013         * gdbarch.c, gdbarch.h: Regenerate.
12014         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12015         * infrun.c (fill_in_stop_func): Likewise.
12016         * ppc-linux-tdep.c: Include "elf/ppc64.h".
12017         (ppc_elfv2_elf_make_msymbol_special): New function.
12018         (ppc_elfv2_skip_entrypoint): Likewise.
12019         (ppc_linux_init_abi): Install them for ELFv2.
12020
12021 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12022
12023         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12024         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12025         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12026         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
12027         structures returned in GPRs.
12028
12029 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12030
12031         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12032         offset to the stack parameter list for the ELFv2 ABI.
12033
12034 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12035
12036         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12037         set_gdbarch_convert_from_func_ptr_addr and
12038         set_gdbarch_elf_make_msymbol_special for ELFv1.
12039         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12040         function descriptors on ELFv1.
12041         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
12042         set up r12 at function entry.
12043
12044 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12045
12046         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12047         (struct gdbarch_tdep): New member elf_abi.
12048
12049         * rs6000-tdep.c: Include "elf/ppc64.h".
12050         (rs6000_gdbarch_init): Detect ELF ABI version.
12051
12052 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12053
12054         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12055         within a register pair holding a DFP 128-bit value on little-endian.
12056         (ppc64_sysv_abi_return_value_base): Likewise.
12057         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12058         (dfp_pseudo_register_write): Likewise.
12059
12060 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12061
12062         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12063         offset on little-endian when passing _Decimal32.
12064         (ppc64_sysv_abi_return_value_base): Likewise for return values.
12065
12066 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12067
12068         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12069         of the overlapped FP register within the VSX register on little-
12070         endian platforms.
12071         (efpr_pseudo_register_write): Likewise.
12072
12073 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12074
12075         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12076         offset on little-endian when passing small structures.
12077
12078 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12079
12080         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12081         (struct ppc64_sysv_argpos): New data structure.
12082         (ppc64_sysv_abi_push_float): Remove.
12083         (ppc64_sysv_abi_push_val): New function.
12084         (ppc64_sysv_abi_push_integer): Likewise.
12085         (ppc64_sysv_abi_push_freg): Likewise.
12086         (ppc64_sysv_abi_push_vreg): Likewise.
12087         (ppc64_sysv_abi_push_param): Likewise.
12088         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12089         (ppc64_sysv_abi_return_value_base): New function.
12090         (ppc64_sysv_abi_return_value): Refactor to use it.
12091
12092 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12093
12094         * NEWS: Document new target powerpc64le-*-linux*.
12095
12096 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12097
12098         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12099         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12100         core dumps.
12101         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12102         register set used in ELF core dumps.  Add floating-point register set.
12103
12104 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12105
12106         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12107         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12108         penultimate entry from number representing the PC register
12109         to symbolic constant representing the MDR register.  Add
12110         constant for the PC register to the end of the table.
12111
12112 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12113
12114         * bsd-kvm.c: Include <sys/param.h>
12115
12116 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12117
12118         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12119
12120 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12121
12122         * ada-lang.h (clear_ada_sym_cache): Delete.
12123
12124 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12125
12126         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12127
12128 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12129
12130         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12131           the sigreturn register save area only if the syscall is
12132           sigreturn.
12133
12134 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12135
12136         * valops.c (value_slice): Minor reformatting.
12137
12138 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12139
12140         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12141
12142 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12143
12144         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12145         New static globals.
12146         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12147         (ada_ignore_descriptive_types_p): New static global.
12148         (find_parallel_type_by_descriptive_type): Return immediately
12149         if ada_ignore_descriptive_types_p is set.
12150         (_initialize_ada_language): Register new commands "maintenance
12151         set ada", "maintenance show ada", "maintenance set ada
12152         ignore-descriptive-types" and "maintenance show ada
12153         ignore-descriptive-types".
12154         * NEWS: Add entry for new "maint ada set/show
12155         ignore-descriptive-types" commands.
12156
12157 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12158
12159         * record-btrace.c (record_btrace_close): Call btrace_teardown
12160         for all threads.
12161
12162 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12163
12164         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12165         "ui-out.h".
12166
12167 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12168
12169         * ada-typeprint (type_is_full_subrange_of_target_type):
12170         New function.
12171         (print_range): Add parameter bounds_prefered_p.  If not set,
12172         try printing range types using the name of their base type.
12173         (print_range_type): Add parameter bounds_prefered_p.
12174         Use it in call to print_range.
12175         (print_array_type, ada_print_type): Update calls to print_range
12176         and print_range_type.
12177
12178 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12179
12180         * ada-typeprint.c (print_array_type, print_choices, print_range)
12181         (print_range_bound, print_dynamic_range_bound, print_range_type):
12182         Remove declaration.
12183
12184 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12185
12186         * ada-typeprint.c (print_range): Add missing empty line
12187         after local declaration.
12188
12189 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12190
12191         * ada-valprint.c (print_optional_low_bound): Get index_type's
12192         target type for as long as it is a TYPE_CODE_RANGE.
12193
12194 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12195
12196         * procfs.c (procfs_make_note_section): Remove assertion and
12197         associated comment.
12198
12199 2014-01-24  Yao Qi  <yao@codesourcery.com>
12200
12201         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12202         * corelow.c (get_core_siginfo): Likewise.
12203
12204 2014-01-24  Yao Qi  <yao@codesourcery.com>
12205
12206         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12207         ULONGEST.  Don't check 'len' is negative.
12208         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12209
12210 2014-01-23  Tom Tromey  <tromey@redhat.com>
12211
12212         PR python/16485:
12213         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12214         Handle exception from frame.block.
12215         (FrameVars.fetch_frame_locals): Likewise.
12216
12217 2014-01-23  Tom Tromey  <tromey@redhat.com>
12218
12219         PR python/16487:
12220         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12221         on a NULL pointer.  Move "goto error" to correct place.
12222
12223 2014-01-23  Tom Tromey  <tromey@redhat.com>
12224
12225         PR python/16491:
12226         * python/py-framefilter.c (apply_frame_filter): Call
12227         ensure_python_env after computing gdbarch.
12228
12229 2014-01-23  Yao Qi  <yao@codesourcery.com>
12230
12231         * target.c (raw_memory_xfer_partial): Change argument type
12232         from void * to gdb_byte *.
12233         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12234
12235 2014-01-22  Doug Evans  <dje@google.com>
12236
12237         New gdbserver option --debug-format=timestamp.
12238         * NEWS: Mention it.
12239
12240 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12241
12242         * syscalls/s390x-linux.xml: New file.
12243         * syscalls/s390-linux.xml: New file.
12244         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12245         (XML_SYSCALL_FILENAME_S390X): Likewise.
12246         (op_svc): New enum value for SVC opcode.
12247         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12248         (s390_linux_get_syscall_number): New function.
12249         (s390_gdbarch_init): Register '*get_syscall_number' and the
12250         syscall xml file name.
12251         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12252         "s390-linux.xml" and "s390x-linux.xml".
12253         * NEWS: Announce new feature.
12254
12255 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12256
12257         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12258
12259 2014-01-22  Pedro Alves  <palves@redhat.com>
12260
12261         * xtensa-config.c: Include defs.h.
12262
12263 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12264
12265         * common/common-utils.h: Add "ARI:" comment beside __func__
12266         reference.
12267
12268 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12269
12270         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12271         documentation a bit.
12272
12273 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12274
12275         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12276         * configure: Regenerate.
12277         * aclocal.m4: Regenerate.
12278         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12279         New substituted variables.
12280         (install-strip): New target.
12281         (INSTALL_SCRIPT): New substituted variable.
12282         (FLAGS_TO_PASS): Add it.
12283         (install-only): Use $(INSTALL_SCRIPT) rather than
12284         $(INSTALL_PROGRAM) for gcore.
12285
12286 2014-01-20  Tom Tromey  <tromey@redhat.com>
12287
12288         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12289         together.
12290
12291 2014-01-20  Tom Tromey  <tromey@redhat.com>
12292
12293         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12294         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12295         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12296         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12297         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12298         (struct cmd_list_element) <flags>: Remove.
12299         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12300         doc_allocated>: New fields.
12301         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12302         bitfields.
12303         * maint.c (maintenance_do_deprecate): Update.
12304         * top.c (execute_command): Update.
12305
12306 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12307
12308         * xtensa-linux-nat.c: Include asm/ptrace.h.
12309
12310 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12311
12312         * Makefile.in (SFILES): Add d-support.c.
12313         (COMMON_OBS): Add d-support.o.
12314         * d-lang.h (d_parse_symbol): Add comment, now defined in
12315         d-support.c.
12316         * d-lang.c (parse_call_convention)
12317         (parse_attributes, parse_function_types)
12318         (parse_function_args, parse_type, parse_identifier)
12319         (call_convention_p, d_parse_symbol): Move functions to ...
12320         * d-support.c: ... New file.
12321
12322 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12323
12324         * d-lang.h (d_parse_symbol): Add declaration.
12325         * d-lang.c (extract_identifiers)
12326         (extract_type_info): Remove functions.
12327         (parse_call_convention, parse_attributes)
12328         (parse_function_types, parse_function_args)
12329         (parse_type, parse_identifier, call_convention_p)
12330         (d_parse_symbol): New functions.
12331         (d_demangle): Use d_parse_symbol to demangle D symbols.
12332
12333 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12334
12335         * d-lang.h (struct builtin_d_type): New data type.
12336         (builtin_d_type): Add declaration.
12337         * d-lang.c (d_language_arch_info, build_d_types)
12338         (builtin_d_type): New functions.
12339         (enum d_primitive_types): New data type.
12340         (d_language_defn): Change c_language_arch_info to
12341         d_language_arch_info.
12342         (d_type_data): New static variable.
12343         (_initialize_d_language): Initialize d_type_data.
12344
12345 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12346
12347         * d-lang.h (d_main_name): Add declaration.
12348         * d-lang.c (d_main_name): New function.
12349         * symtab.c (find_main_name): Add call to d_main_name.
12350
12351 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12352
12353         * d-lang.c (d_language_defn): Change macro_expansion_c to
12354         macro_expansion_no.
12355
12356 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12357
12358         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12359
12360 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12361
12362         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12363         gdb_exception" declaration.
12364         * remote.c (getpkt_or_notif_sane): Likewise.
12365
12366 2014-01-17  Doug Evans  <dje@google.com>
12367
12368         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12369         function, contents of dirnames_to_char_ptr_vec_append moved here.
12370         (delim_string_to_char_ptr_vec): New function.
12371         (dirnames_to_char_ptr_vec_append): Rewrite.
12372         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12373
12374 2014-01-17  Doug Evans  <dje@google.com>
12375
12376         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12377         and moved here ...
12378         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12379         #include "common-utils.h".
12380         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12381         * common/vec.h (VEC_ASSERT_PASS): Update.
12382         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12383         (MACH_CHECK_ERROR): Update.
12384
12385 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12386
12387         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12388         comments.
12389         * gdbarch.h: Regenerate.
12390
12391 2014-01-16  Tom Tromey  <tromey@redhat.com>
12392
12393         * value.c (struct value) <regnum>: Move earlier.
12394
12395 2014-01-16  Tom Tromey  <tromey@redhat.com>
12396
12397         * remote.c (extended_remote_create_inferior): Rename from
12398         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12399         old implementation.
12400
12401 2014-01-16  Pedro Alves  <palves@redhat.com>
12402
12403         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12404         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12405         the backchain.
12406
12407 2014-01-16  Doug Evans  <dje@google.com>
12408
12409         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12410
12411 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12412
12413         * btrace.h (btrace_thread_flag): New.
12414         (struct btrace_thread_info) <flags>: New.
12415         * record-btrace.c (record_btrace_resume_thread)
12416         (record_btrace_find_thread_to_move, btrace_step_no_history)
12417         (btrace_step_stopped, record_btrace_start_replaying)
12418         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12419         (record_btrace_find_resume_thread): New.
12420         (record_btrace_resume, record_btrace_wait): Extend.
12421         (record_btrace_can_execute_reverse): New.
12422         (record_btrace_open): Fail in non-stop mode.
12423         (record_btrace_set_replay): Split into this, ...
12424         (record_btrace_stop_replaying): ... this, ...
12425         (record_btrace_clear_histories): ... and this.
12426         (init_record_btrace_ops): Init to_can_execute_reverse.
12427         * NEWS: Announce it.
12428
12429 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12430
12431         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12432         (forward_target_decr_pc_after_break)
12433         (target_decr_pc_after_break): New.
12434         * target.c (forward_target_decr_pc_after_break)
12435         (target_decr_pc_after_break): New.
12436         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12437         instead of gdbarch_decr_pc_after_break.
12438         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12439         instead of gdbarch_decr_pc_after_break.
12440         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12441         instead of gdbarch_decr_pc_after_break.
12442         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12443         instead of gdbarch_decr_pc_after_break.
12444         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12445         instead of gdbarch_decr_pc_after_break.
12446         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12447         instead of gdbarch_decr_pc_after_break.
12448
12449 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12450
12451         * btrace.c: Include regcache.h.
12452         (btrace_add_pc): New.
12453         (btrace_enable): Call btrace_add_pc.
12454         (btrace_is_empty): New.
12455         * btrace.h (btrace_is_empty): New.
12456         * record-btrace.c (require_btrace, record_btrace_info): Call
12457         btrace_is_empty.
12458
12459 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12460
12461         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12462         Support delta reads.
12463         (linux_disable_btrace): Change return type.
12464         * common/linux-btrace.h (linux_read_btrace): Change parameters
12465         and return type to allow error reporting.  Update users.
12466         (linux_disable_btrace): Change return type.  Update users.
12467         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12468         New.
12469         (btrace_error): New.
12470         (btrace_block) <begin>: Comment on BEGIN == 0.
12471         * btrace.c (btrace_compute_ftrace): Start from the end of
12472         the current trace.
12473         (btrace_stitch_trace, btrace_clear_history): New.
12474         (btrace_fetch): Read delta trace, return if replaying.
12475         (btrace_clear): Move clear history code to btrace_clear_history.
12476         (parse_xml_btrace): Throw an error if parsing failed.
12477         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12478         and return type to allow error reporting.
12479         (target_read_btrace): Change parameters and return type to allow
12480         error reporting.
12481         * target.c (target_read_btrace): Update.
12482         * remote.c (remote_read_btrace): Support delta reads.  Pass
12483         errors on.
12484         * NEWS: Announce it.
12485
12486 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12487
12488         * record.h (record_btrace_frame_unwind)
12489         (record_btrace_tailcall_frame_unwind): New declarations.
12490         * dwarf2-frame: Include record.h
12491         (dwarf2_frame_cfa): Throw an error for btrace frames.
12492         * record-btrace.c: Include hashtab.h.
12493         (btrace_get_bfun_name): New.
12494         (btrace_call_history): Call btrace_get_bfun_name.
12495         (struct btrace_frame_cache): New.
12496         (bfcache): New.
12497         (bfcache_hash, bfcache_eq, bfcache_new): New.
12498         (btrace_get_frame_function): New.
12499         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12500         (record_btrace_frame_this_id): Compute own id.
12501         (record_btrace_frame_prev_register): Provide PC, throw_error
12502         for all other registers.
12503         (record_btrace_frame_sniffer): Detect btrace frames.
12504         (record_btrace_tailcall_frame_sniffer): New.
12505         (record_btrace_frame_dealloc_cache): New.
12506         (record_btrace_frame_unwind): Add new functions.
12507         (record_btrace_tailcall_frame_unwind): New.
12508         (_initialize_record_btrace): Allocate cache.
12509         * btrace.c (btrace_clear): Call reinit_frame_cache.
12510         * NEWS: Announce it.
12511
12512 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12513
12514         * record-btrace.c (record_btrace_set_replay)
12515         (record_btrace_goto_begin, record_btrace_goto_end)
12516         (record_btrace_goto): New.
12517         (init_record_btrace_ops): Initialize them.
12518         * NEWS: Announce it.
12519
12520 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12521
12522         * record-btrace.c (record_btrace_find_new_threads)
12523         (record_btrace_thread_alive): New.
12524         (init_record_btrace_ops): Initialize to_find_new_threads and
12525         to_thread_alive.
12526
12527 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12528
12529         * record-btrace.c (record_btrace_resume): New.
12530         (record_btrace_wait): New.
12531         (init_record_btrace_ops): Initialize to_wait and to_resume.
12532
12533 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12534
12535         * record-btrace.c (record_btrace_xfer_partial)
12536         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12537         (record_btrace_allow_memory_access): New.
12538         (init_record_btrace_ops): Initialize new methods.
12539         * target.c (raw_memory_xfer_partial): Bail out if target reports
12540         that this memory is not available.
12541
12542 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12543
12544         * target.h (target_ops) <to_insert_breakpoint>
12545         <to_remove_breakpoint>: Add target_ops parameter.
12546         (forward_target_insert_breakpoint): New.
12547         (forward_target_remove_breakpoint): New.
12548         (memory_remove_breakpoint, memory_insert_breakpoint):
12549         Add target_ops parameter.
12550         * target.c (target_insert_breakpoint): Split into this and ...
12551         (forward_target_insert_breakpoint): ... this.
12552         (target_remove_breakpoint): Split into this and ...
12553         (forward_target_remove_breakpoint): ... this.
12554         (debug_to_insert_breakpoint): Add target_ops parameter.
12555         Call forward_target_insert_breakpoint.
12556         (debug_to_remove_breakpoint): Add target_ops parameter.
12557         Call forward_target_remove_breakpoint.
12558         (update_current_target): Do not inherit or default to_insert_breakpoint
12559         and to_remove_breakpoint.
12560         * corelow.c (ignore): Add target_ops parameter.
12561         * exec.c (ignore): Add target_ops parameter.
12562         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12563         Add target_ops parameter.
12564         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12565         Add target_ops parameter.
12566         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12567         Add target_ops parameter.
12568         * record-full.c (record_full_beneath_to_insert_breakpoint)
12569         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12570         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12571         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12572         (record_full_core_remove_breakpoint): Add target_ops parameter.
12573         Update users.
12574         (record_full_beneath_to_insert_breakpoint_ops)
12575         (record_full_beneath_to_remove_breakpoint_ops)
12576         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12577         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12578         tmp_to_remove_breakpoint_ops,
12579         record_full_beneath_to_insert_breakpoint_ops, and
12580         record_full_beneath_to_remove_breakpoint_ops.
12581         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12582         (m32r_remove_breakpoint): Add target_ops parameter.
12583         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12584         Add target_ops parameter.
12585         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12586         Add target_ops parameter.
12587
12588 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12589             Markus Metzger  <markus.t.metzger@intel.com>
12590
12591         * record-btrace.c: Include frame-unwind.h.
12592         (record_btrace_frame_unwind_stop_reason)
12593         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12594         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12595         New.
12596         (init_record_btrace_ops): Install it.
12597
12598 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12599
12600         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12601         get_prev_frame_1.
12602
12603 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12604
12605         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12606         earlier.
12607
12608 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12609
12610         * frame-unwind.c: Include target.h.
12611         (frame_unwind_try_unwinder): New function with code from ...
12612         (frame_unwind_find_by_frame): ... here.  New variable
12613         unwinder_from_target, call also target_get_unwinder)
12614         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12615         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12616         * target.h (struct target_ops): New fields to_get_unwinder and
12617         to_get_tailcall_unwinder.
12618         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12619
12620 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12621
12622         * record-btrace.c (record_btrace_fetch_registers)
12623         (record_btrace_store_registers)
12624         (record_btrace_to_prepare_to_store): New.
12625         (init_record_btrace_ops): Add the above.
12626
12627 2014-01-16  Tom Tromey  <tromey@redhat.com>
12628
12629         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12630         * target.h (struct target_ops) <to_prepare_to_store>: Add
12631         argument.
12632         (target_prepare_to_store): Add argument.
12633         * target.c (debug_to_prepare_to_store): Add argument.
12634         (update_current_target): Update.
12635         * remote.c (remote_prepare_to_store): Add 'self' argument.
12636         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12637         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12638         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12639         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12640         argument.
12641         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12642         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12643         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12644         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12645         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12646
12647 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12648
12649         * btrace.h (replay) <replay>: New.
12650         (btrace_is_replaying): New.
12651         * btrace.c (btrace_clear): Free replay iterator.
12652         (btrace_is_replaying): New.
12653         * record-btrace.c (record_btrace_is_replaying): New.
12654         (record_btrace_info): Print insn number if replaying.
12655         (record_btrace_insn_history): Start at replay position.
12656         (record_btrace_call_history): Start at replay position.
12657         (init_record_btrace_ops): Init to_record_is_replaying.
12658
12659 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12660
12661         * record-btrace.c (record_btrace_insn_history_range): Include
12662         end.
12663         (record_btrace_insn_history_from): Adjust range.
12664         (record_btrace_call_history_range): Include
12665         end.
12666         (record_btrace_call_history_from): Adjust range.
12667         * NEWS: Announce changes.
12668
12669 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12670
12671         * record.h (enum record_print_flag)
12672         <record_print_indent_calls>: New.
12673         * record.c (get_call_history_modifiers): Recognize /c modifier.
12674         (_initialize_record): Document /c modifier.
12675         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12676         Reorder fields.  Optionally indent the function name.  Update
12677         all users.
12678         * NEWS: Announce changes.
12679
12680 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12681
12682         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12683
12684 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12685
12686         * btrace.c (ftrace_new_function): Start counting at one.
12687         * record-btrace.c (record_btrace_info): Adjust number of calls
12688         and insns.
12689         * NEWS: Announce it.
12690
12691 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12692
12693         * record-btrace.c (btrace_call_history_insn_range): Print
12694         insn range as [begin, end].
12695
12696 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12697
12698         * btrace.h (struct btrace_func_link): New.
12699         (enum btrace_function_flag): New.
12700         (struct btrace_inst): Rename to ...
12701         (struct btrace_insn): ...this. Update all users.
12702         (struct btrace_func) <ibegin, iend>: Remove.
12703         (struct btrace_func_link): New.
12704         (struct btrace_func): Rename to ...
12705         (struct btrace_function): ...this. Update all users.
12706         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12707         (number, level, flags>: New.
12708         (struct btrace_insn_iterator): Rename to ...
12709         (struct btrace_insn_history): ...this.
12710         Update all users.
12711         (struct btrace_insn_iterator, btrace_call_iterator): New.
12712         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12713         (struct btrace_target_info) <begin, end, level>
12714         <insn_history, call_history>: New.
12715         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12716         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12717         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12718         (btrace_call_number, btrace_call_begin, btrace_call_end)
12719         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12720         (btrace_find_function_by_number, btrace_set_insn_history)
12721         (btrace_set_call_history): New.
12722         * btrace.c (btrace_init_insn_iterator)
12723         (btrace_init_func_iterator, compute_itrace): Remove.
12724         (ftrace_print_function_name, ftrace_print_filename)
12725         (ftrace_skip_file): Change
12726         parameter to const.
12727         (ftrace_init_func): Remove.
12728         (ftrace_debug): Use new btrace_function fields.
12729         (ftrace_function_switched): Also consider gaining and
12730         losing symbol information).
12731         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12732         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12733         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12734         New.
12735         (ftrace_new_function): Move. Remove debug print.
12736         (ftrace_update_lines, ftrace_update_insns): New.
12737         (ftrace_update_function): Check for call, ret, and jump.
12738         (compute_ftrace): Renamed to ...
12739         (btrace_compute_ftrace): ...this. Rewritten to compute call
12740         stack.
12741         (btrace_fetch, btrace_clear): Updated.
12742         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12743         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12744         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12745         (btrace_call_number, btrace_call_begin, btrace_call_end)
12746         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12747         (btrace_find_function_by_number, btrace_set_insn_history)
12748         (btrace_set_call_history): New.
12749         * record-btrace.c (require_btrace): Use new btrace thread
12750         info fields.
12751         (record_btrace_info, btrace_insn_history)
12752         (record_btrace_insn_history, record_btrace_insn_history_range):
12753         Use new btrace thread info fields and new iterator.
12754         (btrace_func_history_src_line): Rename to ...
12755         (btrace_call_history_src_line): ...this. Use new btrace
12756         thread info fields.
12757         (btrace_func_history): Rename to ...
12758         (btrace_call_history): ...this. Use new btrace thread info
12759         fields and new iterator.
12760         (record_btrace_call_history, record_btrace_call_history_range):
12761         Use new btrace thread info fields and new iterator.
12762
12763 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12764
12765         * frame.h (frame_id_build_unavailable_stack_special): New.
12766         * frame.c (frame_id_build_unavailable_stack_special): New.
12767
12768 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12769
12770         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12771         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12772         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12773         to gdbarch.
12774         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12775         (i386_insn_is_jump, i386_jmp_p): New.
12776         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12777         insn_is_jump to gdbarch.
12778         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12779         * gdbarch.h: Regenerated.
12780         * gdbarch.c: Regenerated.
12781         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12782         (default_insn_is_jump): New.
12783         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12784         (default_insn_is_jump): New.
12785
12786 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12787
12788         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12789         Change to ...
12790         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12791         (btrace_read_type) <btrace_read_new>: Change to ...
12792         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12793
12794 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12795
12796         * common/linux-btrace.c (linux_read_btrace): Free trace from
12797         previous iteration.
12798
12799 2014-01-15  Doug Evans  <dje@google.com>
12800
12801         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12802         uint32_t.
12803
12804 2014-01-15  Tom Tromey  <tromey@redhat.com>
12805
12806         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12807         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12808         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12809         (set_objfile_main_name): New function.
12810         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12811         language_of_main>: New fields.
12812         (set_objfile_main_name): Declare.
12813         * symtab.c (find_main_name): Loop over objfiles to find the main
12814         name and language.
12815         (set_main_name): Now static.
12816         (get_main_info): Add comment.
12817         * symtab.h (set_main_name): Don't declare.
12818
12819 2014-01-15  Tom Tromey  <tromey@redhat.com>
12820
12821         * symtab.c (main_progspace_key): New global.
12822         (struct main_info): New.
12823         (name_of_main, language_of_main): Remove.
12824         (get_main_info, main_info_cleanup): New function.
12825         (set_main_name, main_name, main_language): Use get_main_info.
12826         (_initialize_symtab): Initialize main_progspace_key.
12827
12828 2014-01-15  Tom Tromey  <tromey@redhat.com>
12829
12830         * dbxread.c (process_one_symbol): Update.
12831         * dwarf2read.c (read_partial_die): Update.
12832         * symfile.c (set_initial_language): Call main_language.
12833         * symtab.c (language_of_main): Now static.
12834         (set_main_name): Add 'lang' parameter.
12835         (find_main_name): Update.
12836         (main_language): New function.
12837         (symtab_observer_executable_changed): Update.
12838         * symtab.h (set_main_name): Update.
12839         (language_of_main): Remove.
12840         (main_language): Declare.
12841
12842 2014-01-15  Tom Tromey  <tromey@redhat.com>
12843
12844         * symfile.c (init_entry_point_info): Use new "initialized" field.
12845         Update.
12846         * objfiles.h (struct entry_point) <initialized>: New field.
12847         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12848         (struct objfile) <ei>: ...here.  Remove.
12849         * objfiles.c (entry_point_address_query): Update.
12850
12851 2014-01-15  Tom Tromey  <tromey@redhat.com>
12852
12853         * objfiles.c (entry_point_address_query): Relocate entry point
12854         address.
12855         (objfile_relocate1): Do not relocate entry point address.
12856         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12857         <the_bfd_section_index>: New field.
12858         * symfile.c (init_entry_point_info): Find the entry point's
12859         section.
12860
12861 2014-01-15  Tom Tromey  <tromey@redhat.com>
12862
12863         * solib-frv.c (enable_break): Use entry_point_address_query.
12864
12865 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12866
12867         * NEWS: Add note on improved process record-replay on
12868         arm*-linux* targets.
12869
12870 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12871
12872         * arm-tdep.c (enum arm_record_result): New enum.
12873         (arm_record_unsupported_insn): New function.
12874         (arm_record_coproc_data_proc): Removed.
12875         (thumb2_record_ld_st_multiple): New function.
12876         (thumb2_record_ld_st_dual_ex_tbb): New function.
12877         (thumb2_record_data_proc_sreg_mimm): New function.
12878         (thumb2_record_ps_dest_generic): New function.
12879         (thumb2_record_branch_misc_cntrl): New function.
12880         (thumb2_record_str_single_data): New function.
12881         (thumb2_record_ld_mem_hints): New function.
12882         (thumb2_record_ld_word): New function.
12883         (thumb2_record_lmul_lmla_div): New function.
12884         (thumb2_record_decode_insn_handler): New function.
12885         (decode_insn): Add thumb32 instruction handlers.
12886
12887 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12888
12889         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12890         (struct arm_linux_record_tdep): Declare.
12891         (arm_canonicalize_syscall): New function.
12892         (arm_all_but_pc_registers_record): New function.
12893         (arm_linux_syscall_record): New function.
12894         (arm_linux_init_abi): Add syscall recording constructs.
12895         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12896         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12897         decoding.
12898         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12899         <arm_syscall_record>: New field.
12900         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12901         gdb_target_obs.
12902
12903 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12904
12905         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12906         register for push instruction recording.
12907
12908 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12909
12910         * arm-tdep.c (thumb_record_misc): Update to correct logical
12911         error while recording ldm, ldmia and pop instructions.
12912
12913 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12914
12915         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12916
12917 2014-01-15  Pedro Alves  <palves@redhat.com>
12918
12919         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12920         (go32_resume, go32_fetch_registers, store_register)
12921         (go32_store_registers, go32_prepare_to_store)
12922         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12923         (go32_create_inferior, go32_can_run, go32_terminal_init)
12924         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12925         declarations.
12926
12927 2014-01-15  Tom Tromey  <tromey@redhat.com>
12928
12929         * target.h (async_callback_ftype): New typedef.
12930         (struct target_ops) <to_async>: Use it.
12931
12932 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12933
12934         * python/py-value.c (get_field_type): Remove unnecessary curly
12935         braces for single-statement if block.
12936
12937 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12938
12939         * python/py-type.c (convert_field): Add missing empty line
12940         after declarations.
12941
12942 2014-01-14  Doug Evans  <dje@google.com>
12943
12944         * symfile.h (expand_symtabs_matching): Renamed from
12945         expand_partial_symbol_names.  Update prototype.
12946         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12947         * symfile.c (expand_symtabs_matching): Renamed from
12948         expand_partial_symbol_names.  New args file_matcher, kind.
12949         Rename arg fun to symbol_matcher.
12950         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12951         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12952         ada_expand_partial_symbol_name.
12953         (ada_make_symbol_completion_list): Update to call
12954         expand_symtabs_matching.
12955         (ada_add_global_exceptions): Call expand_symtabs_matching.
12956         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12957         call map_symbol_filenames.
12958         * symtab.c (sources_info): Update to call map_symbol_filenames.
12959         (search_symbols): Call expand_symtabs_matching.
12960         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12961         (default_make_symbol_completion_list_break_on): Update to call
12962         expand_symtabs_matching.
12963         (make_source_files_completion_list): Update to call
12964         map_symbol_filenames.
12965
12966 2014-01-14  Doug Evans  <dje@google.com>
12967
12968         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12969         (expand_symtabs_symbol_matcher_ftype): New typedef.
12970         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12971         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12972         * symfile.c (expand_partial_symbol_names): Update to use
12973         expand_symtabs_symbol_matcher_ftype.
12974         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12975         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12976         Arg name_matcher renamed to symbol_matcher.
12977         * psymtab.c (recursively_search_psymtabs): Update to use
12978         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12979         sym_matcher.
12980         (expand_symtabs_matching_via_partial): Update to use
12981         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12982         Arg name_matcher renamed to symbol_matcher.
12983
12984 2014-01-14  Doug Evans  <dje@google.com>
12985
12986         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12987         (map_partial_symbol_filenames): Ditto.
12988         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12989         (map_partial_symbol_filenames): Ditto.
12990         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12991         (map_partial_symbol_filenames): Ditto.
12992         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12993         (map_partial_symbol_filenames): Ditto.
12994         * symtab.c: Delete #include "psymtab.h".
12995
12996 2014-01-14  Pedro Alves  <palves@redhat.com>
12997             Tom Tromey  <tromey@redhat.com>
12998
12999         * infrun.c (use_displaced_stepping): Use find_record_target
13000         instead of RECORD_IS_USED.
13001         (adjust_pc_after_break): Use record_full_is_used instead of
13002         RECORD_IS_USED.
13003         * record-btrace.c (record_btrace_open): Call record_preopen
13004         instead of checking RECORD_IS_USED.
13005         * record-full.c (record_full_shortname)
13006         (record_full_core_shortname): New globals.
13007         (record_full_is_used): New function.
13008         (find_full_open): Call record_preopen instead of checking
13009         RECORD_IS_USED.
13010         (init_record_full_ops): Set the target's shortname to
13011         record_full_shortname.
13012         (init_record_full_core_ops): Set the target's shortname to
13013         record_full_core_shortname.
13014         * record-full.h (record_full_is_used): Declare.
13015         * record.c (find_record_target): Make extern.
13016         (record_preopen): New function.
13017         * record.h (RECORD_IS_USED): Delete macro.
13018         (find_record_target, record_preopen): Declare functions.
13019
13020 2014-01-14  Yao Qi  <yao@codesourcery.com>
13021
13022         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13023         'len''s type to ULONGEST.
13024         (core_xfer_shared_libraries_aix): Likewise.
13025         * gdbarch.c, gdbarch.h: Regenerated.
13026         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13027         Change type of 'len' to ULONGEST.
13028         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13029         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13030
13031 2014-01-14  Yao Qi  <yao@codesourcery.com>
13032
13033         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13034         type of 'len' to ULONGEST.
13035         (linux_xfer_osdata_processgroups): Likewise.
13036         (linux_xfer_osdata_threads): Likewise.
13037         (linux_xfer_osdata_fds): Likewise.
13038         (linux_xfer_osdata_isockets): Likewise.
13039         (linux_xfer_osdata_shm): Likewise.
13040         (linux_xfer_osdata_sem): Likewise.
13041         (linux_xfer_osdata_msg): Likewise.
13042         (linux_common_xfer_osdata): Likewise.
13043         (struct osdata_type) <getter>: Likewise.
13044         * common/linux-osdata.h (linux_common_xfer_osdata): Update
13045         the declaration.
13046
13047 2014-01-14  Yao Qi  <yao@codesourcery.com>
13048
13049         * target.h (target_xfer_partial_ftype): Update.
13050         (struct target_ops) <to_xfer_partial>: Change 'len' type to
13051         ULONGEST.
13052         * aix-thread.c (aix_thread_xfer_partial): Change type of
13053         argument 'len' to ULONGEST.
13054         * auxv.c (procfs_xfer_auxv): Likewise.
13055         (ld_so_xfer_auxv): Likewise.
13056         (memory_xfer_auxv): Likewise.
13057         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13058         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13059         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13060         * corelow.c (core_xfer_partial): Likewise.
13061         * ctf.c (ctf_xfer_partial): Likewise.
13062         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
13063         '%u'.
13064         (darwin_read_dyld_info): Likewise.
13065         (darwin_xfer_partial): Likewise.
13066         * exec.c (section_table_xfer_memory_partial): Likewise.
13067         (exec_xfer_partial): Likewise.
13068         * exec.h (section_table_xfer_memory_partial): Update
13069         declaration.
13070         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13071         instead of plongest.
13072         (gnu_xfer_partial): Likewise.
13073         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13074         (ia64_hpux_xfer_solib_got): Likewise.
13075         (ia64_hpux_xfer_partial): Likewise.
13076         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13077         * inf-ptrace.c (inf_ptrace_xfer_partial):
13078         * inf-ttrace.c (inf_ttrace_xfer_partial):
13079         * linux-nat.c (linux_xfer_siginfo): Likewise.
13080         (linux_nat_xfer_partial): Likewise.
13081         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13082         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13083         * monitor.c (monitor_xfer_memory): Likewise.
13084         (monitor_xfer_partial): Likewise.
13085         * procfs.c (procfs_xfer_partial): Likewise.
13086         * record-full.c (record_full_xfer_partial): Likewise.
13087         (record_full_core_xfer_partial): Likewise.
13088         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13089         instead of plongest.
13090         (gdbsim_xfer_partial): Likewise.
13091         * remote.c (remote_xfer_partial): Likewise.
13092         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13093         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13094         declaration.
13095         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13096         (rs6000_xfer_shared_libraries): Likewise.
13097         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13098         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13099         (sparc_xfer_partial): Likewise.
13100         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13101         (spu_xfer_partial): Likewise.
13102         * spu-multiarch.c (spu_xfer_partial): Likewise.
13103         * target.c (target_read_live_memory): Likewise.
13104         (memory_xfer_live_readonly_partial): Likewise.
13105         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13106         (target_xfer_partial, default_xfer_partial): Likewise.
13107         (current_xfer_partial): Likewise.
13108         * tracepoint.c (tfile_xfer_partial): Likewise.
13109         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13110         pulongest instead of plongest.
13111         (windows_xfer_partial): Likewise.
13112         (windows_xfer_shared_libraries): Likewise.
13113
13114 2014-01-14  Yao Qi  <yao@codesourcery.com>
13115
13116         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13117         target_xfer_partial_ftype.
13118
13119 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13120
13121         PR python/15464
13122         PR python/16113
13123         * valops.c (value_struct_elt_bitpos): New function
13124         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13125         object to 'None' if the field name is an empty string ("").
13126         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13127         attribute to look for a field when 'name' is 'None'.
13128         (get_field_type): New function
13129
13130 2014-01-13  Doug Evans  <dje@google.com>
13131
13132         PR symtab/16426
13133         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13134         (try_open_dwop_file): Ditto.
13135         * gdb_bfd.c: #include "vec.h".
13136         (bfdp): New typedef.
13137         (struct gdb_bfd_data): New member included_bfds.
13138         (gdb_bfd_unref): Unref all included bfds.
13139         (gdb_bfd_record_inclusion): New function.
13140         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13141
13142 2014-01-13  Tom Tromey  <tromey@redhat.com>
13143
13144         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13145
13146 2014-01-13  Tom Tromey  <tromey@redhat.com>
13147
13148         * defs.h (use_windows): Remove.
13149         * gdb.c (main): Update.
13150         * main.c (captured_main, gdb_main): Update.
13151         * main.h (struct captured_main_args) <use_windows>: Remove.
13152         * top.c (use_windows): Remove.
13153
13154 2014-01-13  Tom Tromey  <tromey@redhat.com>
13155
13156         * defs.h (deprecated_flush_hook): Remove.
13157
13158 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13159
13160         PR threads/16216
13161         * linux-thread-db.c (try_thread_db_load): Add parameter
13162         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13163         (try_thread_db_load_from_pdir_1): Move it there from here.
13164         (try_thread_db_load_from_sdir): Update caller.
13165         (try_thread_db_load_from_dir): Move it there from here.
13166
13167 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13168
13169         * regformats/regdat.sh: Always rewrite the register file.
13170
13171 2014-01-13  Pedro Alves  <palves@redhat.com>
13172
13173         * Makefile.in (CHECK_HEADERS): New variable.
13174         (check-headers:): New rule.
13175
13176 2014-01-13  Tom Tromey  <tromey@redhat.com>
13177
13178         * cli/cli-setshow.c (do_set_command): Update.
13179         * defs.h (deprecated_set_hook): Remove.
13180         * top.c (deprecated_set_hook): Remove.
13181
13182 2014-01-13  Pedro Alves  <palves@redhat.com>
13183
13184         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13185         the tracepoint if the PC is a pseudo-register.
13186
13187 2014-01-13  Tom Tromey  <tromey@redhat.com>
13188
13189         * defs.h (XCALLOC): Remove.
13190         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13191         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13192         * dwarf2loc.c (allocate_piece_closure): Likewise.
13193         * elfread.c (elf_symfile_segments): Likewise.
13194         (elf_symfile_segments): Likewise.
13195         * gdbtypes.c (copy_type_recursive): Likewise.
13196         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13197         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13198         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13199         XCALLOC.
13200         * mt-tdep.c (mt_gdbarch_init): Likewise.
13201         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13202         XCALLOC.
13203         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13204         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13205         * registry.c (registry_alloc_data): Likewise.
13206         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13207         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13208         * serial.c (serial_fdopen_ops): Likewise.
13209         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13210         XCALLOC.
13211         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13212         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13213         not XCALLOC.
13214
13215 2014-01-13  Tom Tromey  <tromey@redhat.com>
13216
13217         * defs.h (XMALLOC): Remove.
13218         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13219         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13220         * cli-out.c (struct ui_out *): Likewise.
13221         * cli/cli-dump.c (add_dump_command): Likewise.
13222         (add_dump_command): Likewise.
13223         * complaints.c (get_complaints): Likewise.
13224         (find_complaint): Likewise.
13225         * dwarf2-frame.c (execute_cfa_program): Likewise.
13226         * dwarf2read.c (abbrev_table_read_table): Likewise.
13227         * gdbarch.sh: Likewise.
13228         * gdbarch.c: Rebuild.
13229         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13230         * interps.c (interp_new): Likewise.
13231         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13232         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13233         * mi/mi-console.c (mi_console_file_new): Likewise.
13234         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13235         * mi/mi-out.c (mi_out_new): Likewise.
13236         * mi/mi-parse.c (mi_parse): Likewise.
13237         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13238         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13239         * observer.c (xalloc_observer_list_node): Likewise.
13240         * regcache.c (regcache_xmalloc_1): Likewise.
13241         * reggroups.c (reggroup_new): Likewise.
13242         (_initialize_reggroup): Likewise.
13243         * registry.c (register_data_with_cleanup): Likewise.
13244         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13245         * ser-base.c (serial_ttystate): Likewise.
13246         * ser-mingw.c (make_pipe_state): Likewise.
13247         * ser-pipe.c (pipe_open): Likewise.
13248         * serial.c (serial_open): Likewise.
13249         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13250         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13251         (tui_alloc_win_info): Likewise.
13252         (tui_add_content_elements): Likewise.
13253         * tui/tui-file.c (tui_file_new): Likewise.
13254         * tui/tui-out.c (tui_out_new): Likewise.
13255         * ui-file.c (mem_file_new): Likewise.
13256         * ui-out.c (push_level): Likewise.
13257         (make_cleanup_ui_out_end): Likewise.
13258         (append_header_to_list): Likewise.
13259         (ui_out_new): Likewise.
13260         * user-regs.c (user_reg_add_builtin): Likewise.
13261
13262 2014-01-13  Tom Tromey  <tromey@redhat.com>
13263
13264         * defs.h (XZALLOC): Remove.
13265         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13266         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13267         (get_ada_tasks_inferior_data): Likewise.
13268         * auto-load.c (get_auto_load_pspace_data): Likewise.
13269         * auxv.c (get_auxv_inferior_data): Likewise.
13270         * bfd-target.c (target_bfd_reopen): Likewise.
13271         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13272         (deprecated_insert_raw_breakpoint): Likewise.
13273         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13274         * corelow.c (core_open): Likewise.
13275         * darwin-nat.c (darwin_check_new_threads): Likewise.
13276         (darwin_attach_pid): Likewise.
13277         * dummy-frame.c (dummy_frame_push): Likewise.
13278         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13279         * dwarf2loc.c (allocate_piece_closure): Likewise.
13280         * elfread.c (elf_symfile_segments): Likewise.
13281         * eval.c (ptrmath_type_p): Likewise.
13282         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13283         * gdbtypes.c (alloc_type_arch): Likewise.
13284         (alloc_type_instance): Likewise.
13285         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13286         * inf-child.c (inf_child_can_use_agent): Likewise.
13287         * inflow.c (get_inflow_inferior_data): Likewise.
13288         * infrun.c (save_infcall_suspend_state): Likewise.
13289         * jit.c (jit_reader_load): Likewise.
13290         (get_jit_objfile_data): Likewise.
13291         (get_jit_program_space_data): Likewise.
13292         (jit_object_open_impl): Likewise.
13293         (jit_symtab_open_impl): Likewise.
13294         (jit_block_open_impl): Likewise.
13295         (jit_frame_sniffer): Likewise.
13296         * linux-fork.c (add_fork): Likewise.
13297         * maint.c (make_command_stats_cleanup): Likewise.
13298         * objfiles.c (get_objfile_pspace_data): Likewise.
13299         * opencl-lang.c (struct lval_closure): Likewise.
13300         * osdata.c (osdata_start_osdata): Likewise.
13301         * progspace.c (new_address_space): Likewise.
13302         (add_program_space): Likewise.
13303         * remote-sim.c (get_sim_inferior_data): Likewise.
13304         * sh-tdep.c (sh_gdbarch_init): Likewise.
13305         * skip.c (Ignore): Likewise.
13306         (skip_delete_command): Likewise.
13307         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13308         (library_list_start_library): Likewise.
13309         (solib_aix_current_sos): Likewise.
13310         * solib-darwin.c (get_darwin_info): Likewise.
13311         (darwin_current_sos): Likewise.
13312         * solib-dsbt.c (get_dsbt_info): Likewise.
13313         * solib-ia64-hpux.c (new_so_list): Likewise.
13314         (ia64_hpux_get_solib_linkage_addr): Likewise.
13315         * solib-spu.c (append_ocl_sos): Likewise.
13316         (spu_current_sos): Likewise.
13317         * solib-svr4.c (get_svr4_info): Likewise.
13318         (svr4_keep_data_in_core): Likewise.
13319         (library_list_start_library): Likewise.
13320         (svr4_default_sos): Likewise.
13321         (svr4_read_so_list): Likewise.
13322         * solib-target.c (library_list_start_library): Likewise.
13323         (solib_target_current_sos): Likewise.
13324         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13325         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13326         * symfile.c (default_symfile_segments): Likewise.
13327         * target-descriptions.c (tdesc_data_init): Likewise.
13328         (tdesc_create_reg): Likewise.
13329         (struct tdesc_type *): Likewise.
13330         (tdesc_create_vector): Likewise.
13331         (tdesc_set_struct_size): Likewise.
13332         (struct tdesc_type *): Likewise.
13333         (tdesc_free_feature): Likewise.
13334         (tdesc_create_feature): Likewise.
13335         * windows-nat.c (windows_add_thread): Likewise.
13336         (windows_make_so): Likewise.
13337         * xml-support.c (gdb_xml_body_text): Likewise.
13338         (gdb_xml_create_parser_and_cleanup): Likewise.
13339         (xml_process_xincludes): Likewise.
13340         * xml-syscall.c (allocate_syscalls_info): Likewise.
13341         (syscall_create_syscall_desc): Likewise.
13342
13343 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13344
13345         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13346         function, with code from i386_stap_parse_special_token.
13347         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13348         (i386_stap_parse_special_token): Move code to the two functions
13349         above; simplify it.
13350
13351 2014-01-09  Pedro Alves  <palves@redhat.com>
13352             Hui Zhu  <hui@codesourcery.com>
13353
13354         PR gdb/16101
13355         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13356         bp_err_string.  Don't mark the location shlib_disabled if the
13357         error thrown wasn't a generic or memory error.  Catch errors
13358         thrown while inserting breakpoints in overlayed code.  Output
13359         error message of software breakpoints.
13360         * remote.c (remote_insert_breakpoint): If this breakpoint has
13361         target-side commands but this stub doesn't support Z0 packets,
13362         throw NOT_SUPPORTED_ERROR error.
13363         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13364         * target.h (target_insert_breakpoint): Extend comment.
13365         (target_insert_hw_breakpoint): Add comment.
13366
13367 2014-01-08  Pedro Alves  <palves@redhat.com>
13368
13369         * remote.c (remote_add_thread): Add threads silently if starting
13370         up.
13371         (remote_notice_new_inferior): If in all-stop, and starting up,
13372         don't call notice_new_inferior.
13373         (get_current_thread): New function, factored out from ...
13374         (add_current_inferior_and_thread): ... this.  Adjust.
13375         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13376         found any thread, then select the remote's current thread as GDB's
13377         current thread too.
13378
13379 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13380
13381         * NEWS: Create a new section for the next release branch.
13382         Rename the section of the current branch, now that it has
13383         been cut.
13384
13385 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13386
13387         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13388         * version.in: Bump version to 7.7.50.DATE-cvs.
13389
13390 2014-01-08  Yao Qi  <yao@codesourcery.com>
13391
13392         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13393         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13394         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13395
13396 2014-01-08  Yao Qi  <yao@codesourcery.com>
13397
13398         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13399         return value of bfd_get_filename to symbol_file_add_from_bfd.
13400
13401 2014-01-08  Pierre Muller  <muller@sourceware.org>
13402
13403         Fix PR16201.
13404         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13405         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13406         to prim_record_mininal_symbol_and_info.
13407         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13408         in call to prim_record_minimal_symbol_and_info.
13409         (read_pe_exported_syms): Set index field of section_data.
13410
13411 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13412
13413         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13414         * features/aarch64.c: Regenerate.
13415
13416 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13417
13418         * target.c (return_null): Define.
13419         (update_current_target): Use it instead of return_zero for
13420         functions that return a pointer.
13421
13422 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13423
13424         * source.c (add_path): Fix check for duplicated paths in the previously
13425         included paths.
13426
13427 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13428
13429         * ada-lang.c: Remove duplicated include statements.
13430         * alphabsd-nat.c: Ditto.
13431         * amd64-darwin-tdep.c: Ditto.
13432         * amd64fbsd-nat.c: Ditto.
13433         * auto-load.c: Ditto.
13434         * ax-gdb.c: Ditto.
13435         * breakpoint.c: Ditto.
13436         * dbxread.c: Ditto.
13437         * fork-child.c: Ditto.
13438         * gdb_usleep.c: Ditto.
13439         * i386-darwin-tdep.c: Ditto.
13440         * i386fbsd-nat.c: Ditto.
13441         * infcmd.c: Ditto.
13442         * inferior.c: Ditto.
13443         * jv-lang.c: Ditto.
13444         * linux-nat.c: Ditto.
13445         * linux-tdep.c: Ditto.
13446         * m68kbsd-nat.c: Ditto.
13447         * m68klinux-nat.c: Ditto.
13448         * microblaze-tdep.c: Ditto.
13449         * mips-linux-tdep.c: Ditto.
13450         * mn10300-tdep.c: Ditto.
13451         * nto-tdep.c: Ditto.
13452         * opencl-lang.c: Ditto.
13453         * osdata.c: Ditto.
13454         * printcmd.c: Ditto.
13455         * regcache.c: Ditto.
13456         * remote-m32r-sdi.c: Ditto.
13457         * remote.c: Ditto.
13458         * symfile.c: Ditto.
13459         * symtab.c: Ditto.
13460         * tilegx-linux-nat.c: Ditto.
13461         * tilegx-tdep.c: Ditto.
13462         * tracepoint.c: Ditto.
13463         * valops.c: Ditto.
13464         * vaxbsd-nat.c: Ditto.
13465         * windows-nat.c: Ditto.
13466         * xtensa-tdep.c: Ditto.
13467
13468 2014-01-07  Yao Qi  <yao@codesourcery.com>
13469
13470         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13471
13472 2014-01-07  Yao Qi  <yao@codesourcery.com>
13473             Joel Brobecker  <brobecker@adacore.com>
13474
13475         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13476         (pdc_write_regs): Likewise.
13477         (fetch_regs_kernel_thread): Likewise.
13478         (store_regs_kernel_thread): Likewise.
13479
13480 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13481
13482         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13483         tagged type objects to their actual type.
13484
13485 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13486
13487         * ada-valprint.c (print_field_values): Add "language" parameter.
13488         Update calls to print_field_values and print_variant_part.
13489         Pass new parameter "language" in call to val_print instead
13490         of "current_language".  Replace call to ada_val_print by call
13491         to val_print.
13492         (print_variant_part): Add "language" parameter.
13493         (ada_val_print_struct_union): Update call to print_field_values.
13494
13495 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13496
13497         * ada-valprint.c (ui_memcpy): Delete.
13498         (ada_print_floating): Update documentation.  Add empty line
13499         between between function documentation and implementation.
13500         Delete variable "buffer".  Use ui_file_xstrdup in place of
13501         ui_file_put.  Minor adjustments following this change.
13502
13503 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13504
13505         * ada-valprint.c (ada_val_print_string): New function,
13506         extracted from ada_val_print_array.
13507         (ada_val_print_array): Replace extracted code by call
13508         to ada_val_print_string followed by a return.  Move
13509         "else" branch to the function's top block.
13510
13511 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13512
13513         * ada-valprint.c (ada_val_print_array): Move implementation
13514         down.  Rename parameter "offset" and "val" into "offset_aligned"
13515         and "original_value" respectively.  Add parameter "offset".
13516
13517 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13518
13519         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13520         re-organizing the code. Change the "???" message printed
13521         when target type is a TYPE_CODE_UNDEF into
13522         "<ref to undefined type>".
13523
13524 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13525
13526         * ada-valprint.c (print_record): Delete, implementation inlined...
13527         (ada_val_print_struct_union): ... here.  Remove call to
13528         ada_check_typedef in inlined implementation.
13529
13530 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13531
13532         * ada-valprint.c (ada_val_print_gnat_array): New function,
13533         extracted from ada_val_print_1;
13534         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13535         (ada_val_print_flt, ada_val_print_struct_union)
13536         (ada_val_print_ref): Likewise.
13537         (ada_val_print_1): Delete variables i and elttype.
13538         Replace extracted-out code by call to corresponding
13539         new functions.
13540
13541 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13542
13543         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13544
13545 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13546
13547         * ada-valprint.c (ada_val_print_1): Replace calls to
13548         ada_val_print_1 by calls to val_print.
13549
13550 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13551
13552         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13553         Update calls to self accordingly.  Replace calls to c_val_print
13554         by calls to val_print.
13555
13556 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13557
13558         * ada-valprint.c (print_record): Delete declaration.
13559         (adjust_type_signedness, ada_val_print_1): Likewise.
13560         (ada_val_print): Move function implementation down.
13561         (print_variant_part, print_field_values, print_record):
13562         Move function implementation up.
13563
13564 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13565
13566         * python/py-type.c (typy_get_name): New function.
13567         (type_object_getset): Add entry for attribute "name".
13568         * NEWS: Add entry mentioning this new attribute.
13569
13570 2014-01-07  Yao Qi  <yao@codesourcery.com>
13571
13572         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13573         statement.
13574
13575 2014-01-07  Yao Qi  <yao@codesourcery.com>
13576
13577         * gnu-nat.c (info_port_rights): Add qualifier const to
13578         argument args.
13579
13580 2014-01-07  Yao Qi  <yao@codesourcery.com>
13581
13582         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13583
13584 2014-01-07  Yao Qi  <yao@codesourcery.com>
13585
13586         * gnu-nat.c (make_inf) Update declaration.
13587         (make_inf): Make it static.
13588         (inf_set_traced): Likewise.
13589         (inf_port_to_thread, inf_task_died_status): Likewise.
13590
13591 2014-01-07  Yao Qi  <yao@codesourcery.com>
13592
13593         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13594
13595 2014-01-07  Yao Qi  <yao@codesourcery.com>
13596
13597         * gnu-nat.c (_initialize_gnu_nat): Declare.
13598
13599 2014-01-07  Yao Qi  <yao@codesourcery.com>
13600
13601         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13602         'enum bfd_endian'.
13603         (struct gdbarch_info) <byte_order>: Change type to
13604         'enum bfd_endian'.
13605         <byte_order_for_code>: Likewise.
13606         * gdbarch.c, gdbarch.h: Regenerated.
13607
13608 2014-01-06  Sasha Smundak  <asmundak@google.com>
13609
13610         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13611
13612 2014-01-06  Tom Tromey  <tromey@redhat.com>
13613
13614         * doublest.c (convert_doublest_to_floatformat): Use const, not
13615         CONST.
13616         * somread.c (som_symtab_read): Likewise.
13617
13618 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13619
13620         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13621         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13622         (gdb_bfd_fopen): Ditto.
13623         (gdb_bfd_openr): Ditto.
13624         (gdb_bfd_openw): Ditto.
13625         (gdb_bfd_openr_iovec): Ditto.
13626         (gdb_bfd_fdopenr): Ditto.
13627         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13628         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13629         with xstrdup.
13630         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13631         with xstrdup.
13632         * symfile-mem.c (symbol_file_add_from_memory): Removed
13633         gdb_bfd_stash_filename.
13634
13635 2014-01-03  Doug Evans  <dje@google.com>
13636
13637         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13638         output.
13639
13640 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13641
13642         Update year range in copyright notice of all files.
13643
13644 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13645
13646         * top.c (print_gdb_version): Set copyright year to 2014.
13647
13648 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13649
13650         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13651
13652 For older changes see ChangeLog-2013.
13653 \f
13654 Local Variables:
13655 mode: change-log
13656 left-margin: 8
13657 fill-column: 74
13658 version-control: never
13659 coding: utf-8
13660 End: