1 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3 * NEWS: Announce new exit-code field in -list-thread-groups
5 * inferior.c (exit_inferior_1): Don't clear exit code.
6 (inferior_appeared): Clear exit code.
7 * mi/mi-main.c (print_one_inferior): Add printing of the exit
10 2014-10-01 Pedro Alves <palves@redhat.com>
12 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
13 GENERATED" along with emacs/vi read-only markers.
14 * regformats/aarch64.dat: Regenerate.
15 * regformats/arm-with-iwmmxt.dat: Regenerate.
16 * regformats/arm-with-neon.dat: Regenerate.
17 * regformats/arm-with-vfpv2.dat: Regenerate.
18 * regformats/arm-with-vfpv3.dat: Regenerate.
19 * regformats/i386/amd64-avx-linux.dat: Regenerate.
20 * regformats/i386/amd64-avx.dat: Regenerate.
21 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
22 * regformats/i386/amd64-avx512.dat: Regenerate.
23 * regformats/i386/amd64-linux.dat: Regenerate.
24 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
25 * regformats/i386/amd64-mpx.dat: Regenerate.
26 * regformats/i386/amd64.dat: Regenerate.
27 * regformats/i386/i386-avx-linux.dat: Regenerate.
28 * regformats/i386/i386-avx.dat: Regenerate.
29 * regformats/i386/i386-avx512-linux.dat: Regenerate.
30 * regformats/i386/i386-avx512.dat: Regenerate.
31 * regformats/i386/i386-linux.dat: Regenerate.
32 * regformats/i386/i386-mmx-linux.dat: Regenerate.
33 * regformats/i386/i386-mmx.dat: Regenerate.
34 * regformats/i386/i386-mpx-linux.dat: Regenerate.
35 * regformats/i386/i386-mpx.dat: Regenerate.
36 * regformats/i386/i386.dat: Regenerate.
37 * regformats/i386/x32-avx-linux.dat: Regenerate.
38 * regformats/i386/x32-avx.dat: Regenerate.
39 * regformats/i386/x32-avx512-linux.dat: Regenerate.
40 * regformats/i386/x32-avx512.dat: Regenerate.
41 * regformats/i386/x32-linux.dat: Regenerate.
42 * regformats/i386/x32.dat: Regenerate.
43 * regformats/microblaze-with-stack-protect.dat: Regenerate.
44 * regformats/mips-dsp-linux.dat: Regenerate.
45 * regformats/mips-linux.dat: Regenerate.
46 * regformats/mips64-dsp-linux.dat: Regenerate.
47 * regformats/mips64-linux.dat: Regenerate.
48 * regformats/nios2-linux.dat: Regenerate.
49 * regformats/rs6000/powerpc-32.dat: Regenerate.
50 * regformats/rs6000/powerpc-32l.dat: Regenerate.
51 * regformats/rs6000/powerpc-64l.dat: Regenerate.
52 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
53 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
54 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
55 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
56 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
57 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
58 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
59 * regformats/s390-linux32.dat: Regenerate.
60 * regformats/s390-linux32v1.dat: Regenerate.
61 * regformats/s390-linux32v2.dat: Regenerate.
62 * regformats/s390-linux64.dat: Regenerate.
63 * regformats/s390-linux64v1.dat: Regenerate.
64 * regformats/s390-linux64v2.dat: Regenerate.
65 * regformats/s390-te-linux64.dat: Regenerate.
66 * regformats/s390x-linux64.dat: Regenerate.
67 * regformats/s390x-linux64v1.dat: Regenerate.
68 * regformats/s390x-linux64v2.dat: Regenerate.
69 * regformats/s390x-te-linux64.dat: Regenerate.
70 * regformats/tic6x-c62x-linux.dat: Regenerate.
71 * regformats/tic6x-c62x.dat: Regenerate.
72 * regformats/tic6x-c64x-linux.dat: Regenerate.
73 * regformats/tic6x-c64x.dat: Regenerate.
74 * regformats/tic6x-c64xp-linux.dat: Regenerate.
75 * regformats/tic6x-c64xp.dat: Regenerate.
77 2014-10-01 Pedro Alves <palves@redhat.com>
79 * features/Makefile: Update comments.
80 (XMLTOC): List all xml files we build C files from.
81 (clean-cfiles): New rule.
83 2014-10-01 Pedro Alves <palves@redhat.com>
85 * features/i386/amd64-avx512-linux.c: Regenerate.
86 * features/i386/amd64-avx512.c: Regenerate.
87 * features/i386/x32-avx512-linux.c: Regenerate.
88 * features/i386/x32-avx512.c: Regenerate.
90 2014-10-01 Pedro Alves <palves@redhat.com>
92 * features/Makefile (WHICH): Remove arm-with-m,
93 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
95 2014-10-01 Pedro Alves <palves@redhat.com>
97 * features/Makefile (clean): New rule.
99 2014-10-01 Pedro Alves <palves@redhat.com>
101 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
102 (zmm14h): Add missing end quotes.
104 2014-10-01 Pedro Alves <palves@redhat.com>
106 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
107 * features/aarch64.c: Regenerate.
109 2014-09-30 Don Breazeal <donb@codesourcery.com>
111 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
112 code so as to work with follow_fork_inferior.
113 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
114 (inf_ttrace_create_inferior): Remove reference to
115 inf_ttrace_vfork_ppid.
116 (inf_ttrace_attach): Ditto.
117 (inf_ttrace_detach): Ditto.
118 (inf_ttrace_kill): Use current_inferior instead of
119 inf_ttrace_vfork_ppid.
120 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
121 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
122 inferior away from the parent.
123 * infrun.c (follow_fork): Call follow_fork_inferior instead of
125 (follow_fork_inferior): New function.
126 (follow_inferior_reset_breakpoints): Make function static.
127 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
128 * linux-nat.c (linux_child_follow_fork): Move target-independent
129 code to infrun.c:follow_fork_inferior.
131 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
133 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
134 * gdbarch.c: Regenerate.
135 * gdbarch.h: Likewise.
136 * corelow.c (sniff_core_bfd): Drop presence check for deleted
137 gdbarch method 'regset_from_core_section'.
138 (get_core_register_section): Remove handling for the case that
139 regset == NULL and regset_from_core_section is defined.
140 (get_core_registers): Drop check for deleted method.
141 * procfs.c (procfs_do_thread_registers): Adjust comment.
143 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
145 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
146 (linux_nat_make_corefile_notes): Remove.
147 (linux_target_install_ops): Do not set target method
148 'make_corefile_notes'.
149 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
151 (linux_corefile_thread_callback): Instead of args->collect, call
152 linux_collect_thread_registers.
153 (linux_make_corefile_notes): Remove 'collect' parameter. Return
154 NULL unless there is a regset iterator.
155 (linux_make_corefile_notes_1): Remove.
156 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
157 by linux_make_corefile_notes.
158 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
160 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
162 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
163 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
165 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
167 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
169 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
170 (xtensa_iterate_over_regset_sections): New.
171 (xtensa_gdbarch_init): Adjust gdbarch initialization.
173 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
175 * vax-tdep.c (vax_regset_from_core_section): Remove.
176 (vax_iterate_over_regset_sections): New.
177 (vax_gdbarch_init): Adjust gdbarch initialization.
179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
181 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
182 (tilegx_regset_from_core_section): Remove.
183 (tilegx_iterate_over_regset_sections): New.
184 (tilegx_linux_init_abi): Adjust gdbarch initialization.
186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
188 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
189 (sparc_iterate_over_regset_sections): New.
190 (sparc32_gdbarch_init): Adjust gdbarch initialization.
191 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
193 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
194 (sparc64fbsd_init_abi): Call fbsd_init_abi.
195 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
196 target method 'make_corefile_notes'.
198 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
200 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
201 'sizeof_gregset' and 'sizeof_fpregset'.
202 * sh-tdep.c (sh_regset_from_core_section): Remove.
203 (sh_iterate_over_regset_sections): New.
204 (sh_gdbarch_init): Adjust gdbarch initialization.
205 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
207 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
210 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
212 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
213 (score7_linux_iterate_over_regset_sections): New.
214 (score_gdbarch_init): Adjust gdbarch initialization.
216 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
218 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
220 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
221 method 'make_corefile_notes'.
222 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
223 (ppcfbsd_regset_from_core_section): Remove.
224 (ppcfbsd_iterate_over_regset_sections): New.
225 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
227 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
228 (ppcnbsd_iterate_over_regset_sections): New.
229 (ppcnbsd_init_abi): Adjust.
230 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
231 (ppcobsd_iterate_over_regset_sections): New.
232 (ppcobsd_init_abi): Adjust.
233 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
234 (rs6000_aix_iterate_over_regset_sections): New.
235 (rs6000_aix_init_osabi): Adjust.
237 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
239 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
240 (nios2_regset_from_core_section): Remove.
241 (nios2_iterate_over_regset_sections): New.
242 (nios2_linux_init_abi): Adjust gdbarch initialization.
244 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
246 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
247 (am33_iterate_over_regset_sections): New.
248 (am33_linux_init_osabi): Adjust gdbarch initialization.
250 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
252 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
253 (mips_linux_iterate_over_regset_sections): New.
254 (mips_linux_init_abi): Adjust gdbarch initialization.
255 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
256 (mips64obsd_iterate_over_regset_sections): New.
257 (mips64obsd_init_abi): Adjust.
258 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
259 (mipsnbsd_iterate_over_regset_sections): New.
260 (mipsnbsd_init_abi): Adjust.
262 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
264 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
265 (m88k_iterate_over_regset_sections): New.
266 (m88k_gdbarch_init): Adjust gdbarch initialization.
268 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
270 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
271 (ia64_linux_iterate_over_regset_sections): New.
272 (ia64_linux_init_abi): Adjust gdbarch initialization.
274 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
276 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
277 (m68kbsd_iterate_over_regset_sections): New.
278 (m68kbsd_init_abi): Adjust gdbarch initialization.
279 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
280 (m68k_linux_iterate_over_regset_sections): New.
281 (m68k_linux_init_abi): Adjust gdbarch initialization.
283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
285 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
286 (m32r_linux_regset_from_core_section): Remove.
287 (m32r_linux_iterate_over_regset_sections): New.
288 (m32r_linux_init_abi): Adjust gdbarch initialization.
290 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
292 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
293 (amd64obsd_iterate_over_regset_sections): New.
294 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
295 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
297 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
298 regset_from_core_section initialization.
299 * i386-tdep.c (i386_regset_from_core_section): Remove.
300 (i386_iterate_over_regset_sections): New.
301 (i386_gdbarch_init): Adjust gdbarch initialization.
302 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
303 (i386_iterate_over_regset_sections): New prototype.
304 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
306 (i386obsd_aout_iterate_over_regset_sections): New.
307 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
308 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
310 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
311 (amd64fbsd_init_abi): Call fbsd_init_abi.
312 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
313 (i386fbsd4_init_abi): Call fbsd_init_abi.
314 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
315 target method 'make_corefile_notes'.
316 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
318 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
320 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
321 (hppa_hpux_iterate_over_regset_sections): New.
322 (hppa_hpux_init_abi): Adjust gdbarch initialization.
323 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
324 (hppa_linux_iterate_over_regset_sections): New.
325 (hppa_linux_init_abi): Adjust.
326 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
327 (hppanbsd_iterate_over_regset_sections): New.
328 (hppanbsd_init_abi): Adjust.
329 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
330 (hppaobsd_iterate_over_regset_sections): New.
331 (hppaobsd_init_abi): Adjust.
333 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
335 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
336 (frv_linux_iterate_over_regset_sections): New.
337 (frv_linux_init_abi): Adjust gdbarch initialization.
339 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
341 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
342 (armbsd_iterate_over_regset_sections): New prototype.
343 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
344 (armbsd_iterate_over_regset_sections): New.
345 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
348 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
350 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
351 (alpha_linux_iterate_over_regset_sections): New.
352 (alpha_linux_init_abi): Adjust gdbarch initialization.
353 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
355 (alphanbsd_iterate_over_regset_sections): New prototype.
357 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
359 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
361 (aarch64_linux_iterate_over_regset_sections): New.
362 (aarch64_linux_init_abi): Adjust gdbarch initialization.
364 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
366 * fbsd-tdep.c: New file.
367 * fbsd-tdep.h: New file.
368 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
369 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
370 (ALLDEPFILES): Add fbsd-tdep.c.
372 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
374 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
376 * gdbarch.h: Regenerate.
377 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
379 (get_core_register_section): Add parameter 'regset' and use it, if
380 set. Add parameter 'min_size' and verify the bfd section size
382 (get_core_registers_cb): Add parameter 'regset' and pass it to
383 get_core_register section. For the "standard" register sections
384 ".reg" and ".reg2", set an appropriate default for human_name.
385 (get_core_registers): Don't abort when the gdbarch has an iterator
386 but no regset_from_core_section. Add NULL/0 for parameters
387 'regset'/'min_size' in calls to get_core_register_section.
388 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
389 'regset' and use it instead of calling the
390 regset_from_core_section gdbarch method.
391 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
392 * i386-tdep.c (i386_supply_xstateregset)
393 (i386_collect_xstateregset, i386_xstateregset): Moved to
395 (i386_regset_from_core_section): Drop handling for .reg-xfp and
397 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
398 core file support only if the regset iterator hasn't been set.
399 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
400 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
401 Moved from i386-tdep.c and renamed to *_linux*.
402 (i386_linux_iterate_over_regset_sections): Add regset parameter to
403 each callback invocation. Allow any .reg-xstate size when reading
405 * amd64-tdep.c (amd64_supply_xstateregset)
406 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
408 (amd64_regset_from_core_section): Remove.
409 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
410 install an amd64-specific regset_from_core_section gdbarch method.
411 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
412 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
413 Moved from amd64-tdep.c and renamed to *_linux*.
414 (amd64_linux_iterate_over_regset_sections): Add regset parameter
415 to each callback invocation. Allow any .reg-xstate size when
416 reading from a core file.
417 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
418 (arm_linux_iterate_over_regset_sections): Add regset parameter to
419 each callback invocation.
420 (arm_linux_init_abi): No longer set the regset_from_core_section
422 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
423 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
424 each callback invocation.
425 (ppc_linux_init_abi): No longer set the regset_from_core_section
427 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
428 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
429 (s390_regset_from_core_section): Remove.
430 (s390_iterate_over_regset_sections): Add regset parameter to each
432 (s390_gdbarch_init): No longer set the regset_from_core_section
433 gdbarch method. Drop initialization of deleted tdep fields.
435 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
437 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
438 (amd64_linux_iterate_over_regset_sections): New.
439 (amd64_linux_init_abi_common): Don't install the regset section
440 list, but the new iterator in gdbarch.
441 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
442 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
443 (arm_linux_iterate_over_regset_sections): ...here. New function.
444 (arm_linux_init_abi): Set iterator instead of section list.
445 * corelow.c (get_core_registers_cb): New function, logic moved
447 (get_core_registers): ...loop body here. Use new iterator method
448 instead of walking through the regset section list.
449 * gdbarch.sh: Remove 'core_regset_sections'. New method
450 'iterate_over_regset_sections'. New typedef
451 'iterate_over_regset_sections_cb'.
452 * gdbarch.c: Regenerate.
453 * gdbarch.h: Likewise.
454 * i386-linux-tdep.c (i386_linux_regset_sections)
455 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
457 (i386_linux_iterate_over_regset_sections): New.
458 (i386_linux_init_abi): Don't choose a regset section list, but
459 install new iterator in gdbarch.
460 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
461 (linux_collect_regset_section_cb): New function, logic moved
463 (linux_collect_thread_registers): ...loop body here. Use iterator
464 method instead of walking through list.
465 (linux_make_corefile_notes_1): Check for presence of iterator
466 method instead of regset section list.
467 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
468 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
469 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
470 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
471 (ppc_linux_iterate_over_regset_sections): ...here. New function.
472 (ppc_linux_init_abi): Don't choose from above regset section
473 lists, but install new iterator in gdbarch.
474 * regset.h (struct core_regset_section): Remove.
475 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
476 have_linux_v1, have_linux_v2, and have_tdb.
477 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
478 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
479 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
480 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
481 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
482 (s390_iterate_over_regset_sections): ...here. New function. Use
484 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
485 regset section lists, but install new iterator.
487 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
489 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
491 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
493 * progspace.c (print_program_space): Don't prune program spaces
494 before printing them.
496 2014-09-25 Pedro Alves <palves@redhat.com>
498 * infrun.c (user_visible_resume_ptid): Don't check
499 singlestep_breakpoints_inserted_p.
501 2014-09-25 Pedro Alves <palves@redhat.com>
503 * breakpoint.c (should_be_inserted): Add debug output.
505 2014-09-25 Pedro Alves <palves@redhat.com>
507 * infrun.c (stepping_past_instruction_at)
508 (clear_exit_convenience_vars): Point at infrun.h instead of
510 (handle_signal_stop): Fix typo.
512 2014-09-24 Yao Qi <yao@codesourcery.com>
514 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
517 2014-09-22 Gary Benson <gbenson@redhat.com>
519 * target.c (target_stop): Updated comment.
521 2014-09-22 Gary Benson <gbenson@redhat.com>
523 * target/target.h (target_stop_ptid): Renamed as...
524 (target_stop_and_wait): New function. Updated comment.
526 (target_continue_ptid): Renamed as...
527 (target_continue_no_signal): New function. Updated comment.
530 2014-09-22 Pedro Alves <palves@redhat.com>
532 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
534 * breakpoint.c (enum ugll_insert_mode): New enum.
535 (always_inserted_mode): Now a plain boolean.
536 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
537 (breakpoints_always_inserted_mode): Delete.
538 (breakpoints_should_be_inserted_now): New function.
539 (insert_breakpoints): Pass UGLL_INSERT to
540 update_global_location_list instead of calling
541 insert_breakpoint_locations manually.
542 (create_solib_event_breakpoint_1): New, factored out from ...
543 (create_solib_event_breakpoint): ... this.
544 (create_and_insert_solib_event_breakpoint): Use
545 create_solib_event_breakpoint_1 instead of calling
546 insert_breakpoint_locations manually.
547 (update_global_location_list): Change parameter type from boolean
548 to enum ugll_insert_mode. All callers adjusted. Adjust to use
549 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
550 (update_global_location_list_nothrow): Change parameter type from
551 boolean to enum ugll_insert_mode.
552 (_initialize_breakpoint): "breakpoint always-inserted" option is
553 now a boolean command. Update help text.
554 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
555 (breakpoints_should_be_inserted_now): New declaration.
556 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
557 Remove breakpoints_always_inserted_mode check.
558 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
559 * remote.c (remote_start_remote): Likewise.
561 2014-09-22 Pedro Alves <palves@redhat.com>
563 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
564 (insert_breakpoints): Don't call insert_breakpoint_locations here.
565 Instead, pass UGLL_INSERT to update_global_location_list.
566 (update_global_location_list): Change parameter type from boolean
567 to enum ugll_insert_mode. All callers adjusted. Adjust to use
568 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
569 (create_solib_event_breakpoint_1): New, factored out from ...
570 (create_solib_event_breakpoint): ... this.
571 (create_and_insert_solib_event_breakpoint): Use
572 create_solib_event_breakpoint_1 instead of calling
573 insert_breakpoint_locations manually.
574 (update_global_location_list): Handle UGLL_INSERT.
576 2014-09-22 Pedro Alves <palves@redhat.com>
578 * breakpoint.c (enum ugll_insert_mode): New enum.
579 (update_global_location_list)
580 (update_global_location_list_nothrow): Change parameter type from
581 boolean to enum ugll_insert_mode. All callers adjusted.
583 2014-09-19 Joel Brobecker <brobecker@adacore.com>
585 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
586 SystemTap support in GDB.
588 2014-09-19 Don Breazeal <donb@codesourcery.com>
590 * linux-nat.c (linux_handle_extended_wait): Call
591 linux_ptrace_get_extended_event.
592 (wait_lwp): Call linux_is_extended_waitstatus.
593 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
594 and linux_is_extended_waitstatus.
595 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
596 linux_ptrace_get_extended_event.
597 (linux_ptrace_get_extended_event): New function.
598 (linux_is_extended_waitstatus): New function.
599 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
600 (linux_is_extended_waitstatus): New declarations.
602 2014-09-19 Yao Qi <yao@codesourcery.com>
604 * dwarf2read.c (dwarf_decode_lines): Update declaration.
605 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
606 comments. Callers update.
607 (dwarf_decode_lines): Likewise.
608 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
609 comments. Skip the line table if 'lowpc' is greater than
610 'address'. Don't check
611 dwarf2_per_objfile->has_section_at_zero.
613 2014-09-18 Doug Evans <dje@google.com>
615 * NEWS: Mention new "producer" attribute of gdb.Symtab.
616 * python/py-symtab.c (stpy_get_producer): New function.
617 (symtab_object_getset): Add "producer" attribute.
619 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
622 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
623 (do_captured_read_memory_integer): Remove.
624 (safe_read_memory_integer): Use target_read_memory directly instead
625 of catching errors in do_captured_read_memory_integer.
627 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
629 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
632 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
634 * objc-lang.c (find_implementation_from_class): Remove dead code.
636 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
639 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
640 "fprintf_unfiltered (gdb_stdlog...)".
642 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
645 * breakpoint.h (struct watchpoint): New fields val_bitpos and
647 * breakpoint.c (watch_command_1): Use these fields to retain
648 bitfield information.
649 (extract_bitfield_from_watchpoint_value): New function.
650 (watchpoint_check): Use it.
651 (update_watchpoint): Use it. Optimize the address and length of a
652 HW watchpoint pointing to a bitfield.
653 * value.h (unpack_value_bitfield): New prototype.
654 * value.c (unpack_value_bitfield): Make extern.
656 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
658 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
660 * gnu-nat.c (inf_threads): New function.
661 * gnu-nat.h (inf_threads_ftype): New typedef.
662 (inf_threads): New declaration.
663 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
664 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
665 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
666 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
667 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
668 (i386_gnu_dr_get_control): New functions.
669 (reg_addr): New structure.
670 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
671 i386 debugging register hooks.
672 * NEWS: Mention this.
674 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
676 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
677 vector data transfer instructions.
678 (arm_record_coproc_data_proc): Updated.
680 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
682 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
683 arm_record_exreg_ld_st_insn.
684 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
687 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
689 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
690 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
691 processing instructions.
693 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
695 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
696 for advance SIMD struct ld/st insn.
697 (thumb2_record_decode_insn_handler): Replace stub handler with
698 thumb2_record_asimd_struct_ld_st.
700 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
702 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
703 for asimd, vfp and coprocessor insns.
704 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
705 and coprocessor insns.
706 (thumb2_record_coproc_insn): New function.
707 (thumb2_record_decode_insn_handler): Update coprocessor insns record
709 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
712 2014-09-13 Doug Evans <xdje42@gmail.com>
714 * NEWS: Mention new "queue-signal" command.
715 * infcmd.c (queue_signal_command): New function.
716 (_initialize_infcmd): Add new queue-signal command.
718 2014-09-13 Doug Evans <xdje42@gmail.com>
720 * linux-nat.c (wait_lwp): Add debugging printf.
721 (linux_nat_wait_1): Ditto.
723 2014-09-12 Pedro Alves <palves@redhat.com>
725 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
726 (create_and_insert_solib_event_breakpoint): New functions.
727 * breakpoint.h (create_and_insert_solib_event_breakpoint)
728 (remove_solib_event_breakpoints_at_next_stop): New declarations.
729 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
730 (remove_dbx_link_breakpoint): Delete function.
731 (insert_dbx_link_bpt_in_file): Use
732 create_and_insert_solib_event_breakpoint instead of
733 deprecated_insert_raw_breakpoint.
734 (procfs_wait): Don't check whether we hit __dbx_link here.
735 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
737 * solib-irix.c (base_breakpoint): Delete global.
738 (disable_break): Delete function.
739 (enable_break): Use create_solib_event_breakpoint
740 instead of deprecated_insert_raw_breakpoint.
741 (irix_solib_handle_event): New function.
742 (irix_solib_create_inferior_hook): Don't run the target or disable
743 the mapping-complete breakpoint here.
744 (_initialize_irix_solib): Install irix_solib_handle_event as
745 so_ops->handle_event hook.
747 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
748 Ulrich Weigand <uweigand@de.ibm.com>
751 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
752 instead of read_memory_unsigned_integer.
754 2014-09-12 Gary Benson <gbenson@redhat.com>
756 * nat/linux-waitpid.c: Include common-defs.h.
757 [GDBSERVER]: Add FIXME comment.
758 [!GDBSERVER]: Don't include defs.h or signal.h.
759 (linux_debug) [!GDBSERVER]: Remove empty block.
761 2014-09-12 Gary Benson <gbenson@redhat.com>
763 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
764 Don't include defs.h or server.h.
766 2014-09-12 Gary Benson <gbenson@redhat.com>
768 * nat/linux-btrace.c: Include common-defs.h.
769 Don't include defs.h, server.h or gdbthread.h.
770 * nat/linux-btrace.h (struct target_ops): New forward declaration.
772 2014-09-12 Gary Benson <gbenson@redhat.com>
774 * common/agent.c: Include common-defs.h.
775 Don't include defs.h or server.h.
776 * common/buffer.c: Likewise.
777 * common/common-debug.c: Likewise.
778 * common/common-utils.c: Likewise.
779 * common/errors.c: Likewise.
780 * common/filestuff.c: Likewise.
781 * common/format.c: Likewise.
782 * common/gdb_vecs.c: Likewise.
783 * common/print-utils.c: Likewise.
784 * common/ptid.c: Likewise.
785 * common/rsp-low.c: Likewise.
786 * common/signals.c: Likewise.
787 * common/vec.c: Likewise.
788 * common/xml-utils.c: Likewise.
789 * nat/linux-osdata.c: Likewise.
790 * nat/linux-procfs.c: Likewise.
791 * nat/linux-ptrace.c: Likewise.
792 * nat/mips-linux-watch.c: Likewise.
793 * target/waitstatus.c: Likewise.
795 2014-09-12 Tom Tromey <tromey@redhat.com>
796 Gary Benson <gbenson@redhat.com>
798 * common/common-regcache.h: New file.
799 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
800 * regcache.h: Include common-regcache.h.
801 (regcache_read_pc): Don't declare.
802 * regcache.c (get_thread_regcache_for_ptid): New function.
803 * nat/linux-btrace.c: Don't include regcache.h.
804 Include common-regcache.h.
805 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
807 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
809 * regcache.h (struct regset): Declare.
811 2014-09-11 Pedro Alves <palves@redhat.com>
814 * main.c: Include "infrun.h".
815 (catch_command_errors, catch_command_errors_const): Wait for the
816 foreground command to complete.
817 * top.c (maybe_wait_sync_command_done): New function, factored out
819 (maybe_wait_sync_command_done): ... here.
820 * top.h (maybe_wait_sync_command_done): New declaration.
822 2014-09-11 Tom Tromey <tromey@redhat.com>
823 Gary Benson <gbenson@redhat.com>
825 * common/symbol.h: New file.
826 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
827 * minsyms.c (find_minimal_symbol_address): New function.
828 * common/agent.c: Include common/symbol.h.
829 [!GDBSERVER]: Don't include objfiles.h.
830 (agent_look_up_symbols): Use find_minimal_symbol_address.
832 2014-09-11 Gary Benson <gbenson@redhat.com>
834 * target/target.h (target_stop_ptid, target_continue_ptid):
836 * target.c (target_stop_ptid, target_continue_ptid): New
838 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
839 (agent_run_command): Always use target_stop_ptid and
840 target_continue_ptid.
842 2014-09-11 Tom Tromey <tromey@redhat.com>
843 Gary Benson <gbenson@redhat.com>
845 * target/target.h: New file.
846 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
847 * target.h: Include target/target.h.
848 (target_read_memory, target_write_memory): Don't declare.
849 * target.c (target_read_uint32): New function.
850 * common/agent.c: Include target/target.h.
851 [!GDBSERVER]: Don't include target.h.
852 (helper_thread_id): Type changed to uint32_t.
853 (agent_get_helper_thread_id): Use target_read_uint32.
854 (agent_run_command): Always use target_read_memory and
856 (agent_capability): Type changed to uint32_t.
857 (agent_capability_check): Use target_read_uint32.
859 2014-09-11 Gary Benson <gbenson@redhat.com>
861 * common/common-debug.h (show_debug_regs): Declare.
862 * common/common-debug.c (show_debug_regs): Define.
863 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
864 all uses with show_debug_regs. Replace all uses that considered
865 debug_hw_points as a multi-value integer with straight boolean
867 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
868 with show_debug_regs.
869 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
870 all uses with show_debug_regs.
871 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
872 uses with show_debug_regs.
874 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
876 * findvar.c (address_from_register): Handle targets requiring
877 a special conversion routine even for plain pointer types.
879 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
881 * rs6000-nat.c (exec_one_dummy_insn): Remove.
882 (store_register): Do not call exec_one_dummy_insn.
884 2014-09-10 Joel Brobecker <brobecker@adacore.com>
886 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
887 dereference it first. Use value_enclosing_type instead of
889 (ada_array_length): Likewise.
891 2014-09-10 Joel Brobecker <brobecker@adacore.com>
893 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
894 Adjust function implementation and documentation accordingly.
895 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
896 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
897 Update call to ada_value_ptr_subscript.
899 2014-09-10 Joel Brobecker <brobecker@adacore.com>
901 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
902 instead of VAL's type.
904 2014-09-10 Joel Brobecker <brobecker@adacore.com>
906 * amd64-linux-nat.c: Add <sys/uio.h> #include.
908 2014-09-09 Doug Evans <xdje42@gmail.com>
911 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
912 last parameter to pkg-config, not first.
913 * configure.ac: Pass --with-guile provided pkg-config path to
914 GDB_GUILE_PROGRAM_NAMES.
915 * configure: Regenerate.
917 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
919 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
922 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
924 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
925 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
926 the list of sections determining GDB_OSABI_IRIX.
928 2014-09-09 James Hogan <james.hogan@imgtec.com>
930 * MAINTAINERS (Write After Approval): Add "James Hogan".
932 2014-09-09 James Hogan <james.hogan@imgtec.com>
934 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
936 2014-09-09 Joel Brobecker <brobecker@adacore.com>
938 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
940 2014-09-08 Doug Evans <xdje42@gmail.com>
943 * guile.c: #include <signal.h>.
944 (_initialize_guile): Block SIGCHLD while initializing Guile.
946 Replaces the following, which is reverted.
948 2014-07-26 Doug Evans <xdje42@gmail.com>
951 * configure.ac: Add check for header gc/gc.h.
952 Add check for function setenv.
953 * configure: Regenerate.
954 * config.in: Regenerate.
955 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
957 2014-09-08 Doug Evans <xdje42@gmail.com>
959 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
960 with named constant. Fix style of pointer comparison.
961 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
963 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
966 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
967 decide whether we display the command on "show user".
968 * cli/cli-script.c (show_user_1): Only verify cmdlines after
969 printing command name.
970 * cli/cli-decode.h (cli_user_command_p): Declare new function.
971 * cli/cli-decode.c (cli_user_command_p): Create helper function
972 to verify whether cmd_list_element is a user-defined command.
974 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
977 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
978 Fix goto out of TRY_CATCH.
980 2014-09-06 Doug Evans <xdje42@gmail.com>
981 Tom Tromey <tromey@redhat.com>
984 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
985 $_any_caller_matches.
986 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
987 * python/lib/gdb/function/caller_is.py: New file.
989 2014-09-06 Doug Evans <xdje42@gmail.com>
991 * infcmd.c (program_info): Fix typo.
993 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
996 * stap-probe.c (stap_parse_single_operand): Delete unused variable
997 'number'. New variable 'has_digit'. Rewrite code to deal with
998 subexpressions on SDT probes.
1000 2014-09-04 Pedro Alves <palves@redhat.com>
1002 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1003 the input is only one character long.
1005 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1008 * f-valprint.c (f_val_print): Specify the correct print option to
1009 use when printing integer values.
1011 2014-09-04 Gary Benson <gbenson@redhat.com>
1013 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1014 Remove code to cope with LWPs wrapped as PIDs.
1015 Add assertions to ensure no wrapped LWPs are passed.
1017 2014-09-04 Pedro Alves <palves@redhat.com>
1019 * value.c (value_ranges_copy_adjusted): New function, factored out
1021 (value_contents_copy_raw): ... here.
1022 (unpack_value_bits_as_long_1): Rename back to ...
1023 (unpack_bits_as_long): ... this. Remove 'original_value' and
1024 'result' parameters. Change return type to LONGEST.
1025 (unpack_value_bits_as_long): Delete.
1026 (unpack_value_field_as_long_1): Delete.
1027 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1028 (unpack_value_bitfield): New function.
1029 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1030 (value_fetch_lazy): Use unpack_value_bitfield.
1031 * value.h (unpack_value_bits_as_long): Delete declaration.
1033 2014-09-03 Sasha Smundak <asmundak@google.com>
1035 * python/py-frame.c (frapy_read_register): New function.
1037 2014-09-03 James Hogan <james.hogan@imgtec.com>
1039 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1040 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1042 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1045 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1047 (add_cmd): Set "completer_handle_brkchars" to NULL.
1048 * cli/cli-decode.h (struct cmd_list_element)
1049 <completer_handle_brkchars>: New field.
1050 * command.h (completer_ftype_void): New typedef.
1051 (set_cmd_completer_handle_brkchars): New prototype.
1052 * completer.c (set_gdb_completion_word_break_characters): New
1054 (complete_line_internal): Call "completer_handle_brkchars"
1055 callback from command.
1056 * completer.h: Include "command.h".
1057 (set_gdb_completion_word_break_characters): New prototype.
1058 * python/py-cmd.c (cmdpy_completer_helper): New function.
1059 (cmdpy_completer_handle_brkchars): New function.
1060 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1061 (cmdpy_init): Set completer_handle_brkchars to
1062 cmdpy_completer_handle_brkchars.
1064 2014-09-03 Gary Benson <gbenson@redhat.com>
1066 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1067 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1068 Loop conditions changed to equivalent form.
1069 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1070 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1071 ALL_DEBUG_ADDRESS_REGISTERS.
1073 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1075 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1078 2014-09-02 Doug Evans <dje@google.com>
1080 * typeprint.c (find_global_typedef): Fix comment.
1082 2014-09-02 Gary Benson <gbenson@redhat.com>
1084 * i386-nat.h: Renamed as...
1085 * x86-nat.h: New file. All type, function and variable name
1086 prefixes changed from "i386_" to "x86_". All references updated.
1087 * i386-nat.c: Renamed as...
1088 * x86-nat.c: New file. All type, function and variable name
1089 prefixes changed from "i386_" to "x86_". All references updated.
1090 * common/i386-xstate.h: Renamed as...
1091 * common/x86-xstate.h: New file. All type, function and variable
1092 name prefixes changed from "i386_" to "x86_". All references
1094 * nat/i386-cpuid.h: Renamed as...
1095 * nat/x86-cpuid.h: New file. All type, function and variable name
1096 prefixes changed from "i386_" to "x86_". All references updated.
1097 * nat/i386-gcc-cpuid.h: Renamed as...
1098 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1099 name prefixes changed from "i386_" to "x86_". All references
1101 * nat/i386-dregs.h: Renamed as...
1102 * nat/x86-dregs.h: New file. All type, function and variable name
1103 prefixes changed from "i386_" to "x86_". All references updated.
1104 * nat/i386-dregs.c: Renamed as...
1105 * nat/x86-dregs.c: New file. All type, function and variable name
1106 prefixes changed from "i386_" to "x86_". All references updated.
1108 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1110 * varobj.c (_initialize_varobj): Move to the end of file.
1112 2014-08-29 Gary Benson <gbenson@redhat.com>
1114 * common/common-exceptions.h: New file.
1115 * common/common-exceptions.c: Likewise.
1116 * Makefile.in (SFILES): Add common/common-exceptions.c.
1117 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1118 (COMMON_OBS): Add common-exceptions.o.
1119 (common-exceptions.o): New rule.
1120 * exceptions.h (common-exceptions.h): Include.
1121 (gdb_setjmp.h): Do not include.
1122 (return_reason): Moved to common-exceptions.h.
1123 (enum return_reason): Likewise.
1124 (RETURN_MASK): Likewise.
1125 (typedef return_mask): Likewise.
1126 (enum errors): Likewise.
1127 (struct gdb_exception): Likewise.
1128 (exceptions_state_mc_init): Likewise.
1129 (exceptions_state_mc_action_iter): Likewise.
1130 (exceptions_state_mc_action_iter_1): Likewise.
1131 (TRY_CATCH): Likewise.
1132 (throw_exception): Likewise.
1133 (throw_verror): Likewise.
1134 (throw_vquit): Likewise.
1135 (throw_error): Likewise.
1136 (throw_quit): Likewise.
1137 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1138 (enum catcher_action): Likewise.
1139 (struct catcher): Likewise.
1140 (current_catcher): Likewise.
1141 (catcher_list_size): Likewise.
1142 (exceptions_state_mc_init): Likewise.
1143 (catcher_pop): Likewise.
1144 (exceptions_state_mc): Likewise.
1145 (exceptions_state_mc_action_iter): Likewise.
1146 (exceptions_state_mc_action_iter_1): Likewise.
1147 (throw_exception): Likewise.
1148 (exception_messages): Likewise.
1149 (exception_messages_size): Likewise.
1150 (throw_it): Likewise.
1151 (throw_verror): Likewise.
1152 (throw_vquit): Likewise.
1153 (throw_error): Likewise.
1154 (throw_quit): Likewise.
1155 (prepare_to_throw_exception): New function.
1157 2014-08-29 Gary Benson <gbenson@redhat.com>
1159 * common/gdb_setjmp.h: New file.
1160 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1161 * configure.ac: Move sigsetjmp check...
1162 * common/common.m4: ...here.
1163 * configure: Regenerate.
1164 * cp-support.c (SIGJMP_BUF): Delete.
1165 (SIGSETJMP): Likewise.
1166 (SIGLONGJMP): Likewise.
1167 * exceptions.h (gdb_setjmp.h): Include.
1168 (setjmp.h): Do not include.
1169 (EXCEPTIONS_SIGJMP_BUF): Delete.
1170 (EXCEPTIONS_SIGSETJMP): Likewise.
1171 (EXCEPTIONS_SIGLONGJMP): Likewise.
1172 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1174 * exceptions.c: Likewise.
1176 2014-08-29 Gary Benson <gbenson@redhat.com>
1178 * cleanups.h: Moved to...
1179 * common/cleanups.h: New file.
1180 * cleanups.c: Moved to...
1181 * common/cleanups.c: New file. Include common-defs.h and
1182 cleanups.h. Do not include defs.h.
1183 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1184 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1185 (cleanups.o): New rule.
1187 2014-08-29 Gary Benson <gbenson@redhat.com>
1189 * common/errors.h (internal_warning): New declaration.
1190 (internal_vwarning): Likewise.
1191 * common/errors.c (internal_warning): New function.
1192 * utils.h (internal_warning): Don't declare.
1193 (internal_vwarning): Likewise.
1194 * utils.c (internal_warning): Removed.
1196 2014-08-29 Gary Benson <gbenson@redhat.com>
1198 * main.c (captured_main): Use warning during startup.
1199 Prefix startup warning messages with command name.
1201 2014-08-29 Gary Benson <gbenson@redhat.com>
1203 * main.c (captured_main): Handle usage errors with error.
1205 2014-08-29 Gary Benson <gbenson@redhat.com>
1207 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1208 exit pair with a call to error. Wrap the message with _().
1210 2014-08-29 Gary Benson <gbenson@redhat.com>
1212 * main.c (captured_main): Replace a fprintf/exit
1213 pair with a call to error. Wrap the message with _().
1215 2014-08-29 Gary Benson <gbenson@redhat.com>
1217 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1218 pairs with calls to error. Wrap the message with _().
1220 2014-08-29 Gary Benson <gbenson@redhat.com>
1222 * utils.c (vwarning): Protect calls to target_terminal_ours
1225 2014-08-29 Gary Benson <gbenson@redhat.com>
1227 * exceptions.c (print_flush): Protect calls to
1228 target_terminal_ours and wrap_here.
1230 2014-08-29 Gary Benson <gbenson@redhat.com>
1232 * utils.h (filtered_printing_initialized): New declaration.
1233 * utils.c (abort_with_message): New function.
1234 (internal_vproblem): Use abort_with_message for first level
1235 recursive internal problems, and if gdb_stderr is not set up.
1236 Protect calls to target_terminal_ours, begin_line and query.
1238 2014-08-28 Doug Evans <dje@google.com>
1240 * symtab.c (in_prologue): Move definition to better spot.
1241 (skip_prologue_using_sal): Ditto.
1243 2014-08-28 Doug Evans <dje@google.com>
1245 * symtab.c (find_function_start_sal): Move definition to better spot.
1247 2014-08-28 Yao Qi <yao@codesourcery.com>
1249 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1250 found_stack_adjust in forward scan. Remove condition check
1251 on found_stack_adjust which is always true. Indent the code.
1253 2014-08-28 Yao Qi <yao@codesourcery.com>
1255 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1256 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1257 (dwarf_decode_lines): Remove argument
1258 want_line_info. Remove condition check on want_line_info.
1261 2014-08-27 Doug Evans <dje@google.com>
1263 * dwarf2read.c (dwarf_record_line): Fix typo.
1265 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1267 * target.h (struct target_ops::to_terminal_save_ours): Remove
1269 (target_terminal_save_ours): Remove macro.
1270 * target-delegates.c: Regenerate.
1271 * inf-child.c (inf_child_target): Don't set the nonexistent
1272 field to_terminal_save_ours.
1273 * inferior.h (child_terminal_save_ours): Remove declaration.
1274 * terminal.h (gdb_save_tty_state): New declaration.
1275 * inflow.c (child_terminal_save_ours): Rename to ...
1276 (gdb_save_tty_state): ... this.
1277 * tui/tui.c: Include terminal.h.
1278 (tui_enable): Use gdb_save_tty_state instead of
1279 target_terminal_save_ours.
1280 (tui_disable): Likewise.
1282 2014-08-25 Doug Evans <dje@google.com>
1284 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1285 Pass NULL instead of 0 for context pointer.
1287 2014-08-25 Yao Qi <yao@codesourcery.com>
1289 * dwarf2read.c: Fix grammatical error.
1291 2014-08-24 Yao Qi <yao@codesourcery.com>
1293 * dwarf2read.c (scan_partial_symbols): Update comments.
1294 Rename argument 'need_pc' with 'set_addrmap'.
1295 (add_partial_namespace): Rename argument 'need_pc' with
1297 (add_partial_module): Likewise.
1298 (add_partial_subprogram): Likewise. Update comments.
1299 (dwarf2_name): Fix typo.
1301 2014-08-22 Doug Evans <dje@google.com>
1304 * dwarf2read.c (dwarf_record_line_p): New function.
1305 (dwarf_decode_lines_1): Ignore subsequent line number entries
1306 for the same line if any entry had a non-zero discriminator.
1308 2014-08-22 Doug Evans <dje@google.com>
1310 * buildsym.h (record_line_ftype): New typedef.
1311 (record_line): Use it.
1312 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1313 (dwarf_decode_lines_1): Call them.
1315 2014-08-22 Yao Qi <yao@codesourcery.com>
1317 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1318 (ctf_end): Remove code.
1320 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1322 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1323 (linux_make_corefile_notes): call update_thread_list, protected against
1326 2014-08-21 Pedro Alves <palves@redhat.com>
1328 * infcmd.c (attach_command): Remove comment.
1330 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1332 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1333 unsigned LONGEST to ULONGEST.
1335 2014-08-20 Pedro Alves <palves@redhat.com>
1337 * Makefile.in (check-read1): New rule.
1339 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1341 * value.c (value_from_contents_and_address): Strip resolved_type's
1342 typedef layers before checking its TYPE_DATA_LOCATION.
1344 2014-08-20 Pedro Alves <palves@redhat.com>
1346 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1348 2014-08-20 Yao Qi <yao@codesourcery.com>
1350 * amd64-tdep.c (amd64_classify): Add a blank line after the
1351 example. Move "*/" to a new line.
1352 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1353 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1354 * dwarf2read.c (psymtab_include_file_name): Likewise.
1356 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1357 Pedro Alves <palves@redhat.com>
1361 * ada-lang.c (coerce_unspec_val_to_type): Use
1362 value_contents_copy_raw.
1363 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1364 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1365 * cp-valprint.c (cp_print_value_fields): Let the common printing
1366 code handle optimized out values.
1367 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1368 * d-valprint.c (dynamic_array_type): Use
1369 value_bits_any_optimized_out.
1370 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1371 check_any_valid fields.
1372 (check_pieced_value_bits): Delete and inline ...
1373 (check_pieced_synthetic_pointer): ... here.
1374 (check_pieced_value_validity): Delete.
1375 (check_pieced_value_invalid): Delete.
1376 (pieced_value_funcs): Remove check_validity and check_any_valid
1378 (read_pieced_value): Use mark_value_bits_optimized_out.
1379 (write_pieced_value): Switch to use
1380 mark_value_bytes_optimized_out.
1381 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1382 of assuming the whole value is optimized out.
1383 * findvar.c (read_frame_register_value): Remove special handling
1384 of optimized out registers.
1385 (value_from_register): Use mark_value_bytes_optimized_out.
1386 * frame-unwind.c (frame_unwind_got_optimized): Use
1387 mark_value_bytes_optimized_out.
1388 * jv-valprint.c (java_value_print): Adjust.
1389 (java_print_value_fields): Let the common printing code handle
1390 optimized out values.
1391 * mips-tdep.c (mips_print_register): Remove special handling of
1392 optimized out registers.
1393 * opencl-lang.c (lval_func_check_validity): Delete.
1394 (lval_func_check_any_valid): Delete.
1395 (opencl_value_funcs): Remove check_validity and check_any_valid
1397 * p-valprint.c (pascal_object_print_value_fields): Let the common
1398 printing code handle optimized out values.
1399 * stack.c (read_frame_arg): Remove special handling of optimized
1400 out values. Fetch both VAL and ENTRYVAL before comparing
1401 contents. Adjust to value_available_contents_eq rename.
1402 * valprint.c (valprint_check_validity)
1403 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1404 (val_print_array_elements): Adjust.
1405 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1406 (value_bits_any_optimized_out): New function.
1407 (value_entirely_covered_by_range_vector): New function, factored
1408 out from value_entirely_unavailable.
1409 (value_entirely_unavailable): Reimplement.
1410 (value_entirely_optimized_out): New function.
1411 (insert_into_bit_range_vector): New function, factored out from
1412 mark_value_bits_unavailable.
1413 (mark_value_bits_unavailable): Reimplement.
1414 (struct ranges_and_idx): New struct.
1415 (find_first_range_overlap_and_match): New function, factored out
1416 from value_available_contents_bits_eq.
1417 (value_available_contents_bits_eq): Rename to ...
1418 (value_contents_bits_eq): ... this. Check both unavailable
1419 contents and optimized out contents.
1420 (value_available_contents_eq): Rename to ...
1421 (value_contents_eq): ... this.
1422 (allocate_value_lazy): Remove reference to the old optimized_out
1424 (allocate_optimized_out_value): Use
1425 mark_value_bytes_optimized_out.
1426 (require_not_optimized_out): Adjust to check whether the
1427 optimized_out vec is empty.
1428 (ranges_copy_adjusted): New function, factored out from
1429 value_contents_copy_raw.
1430 (value_contents_copy_raw): Also copy the optimized out ranges.
1431 Assert the destination ranges aren't optimized out.
1432 (value_contents_copy): Update comment, remove call to
1433 require_not_optimized_out.
1434 (value_contents_equal): Adjust to check whether the optimized_out
1436 (set_value_optimized_out, value_optimized_out_const): Delete.
1437 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1439 (value_entirely_optimized_out, value_bits_valid): Delete.
1440 (value_copy): Take a VEC copy of the 'optimized_out' field.
1441 (value_primitive_field): Remove special handling of optimized out.
1442 (value_fetch_lazy): Assert that lazy values have no unavailable
1443 regions. Use value_bits_any_optimized_out. Remove some special
1444 handling for optimized out values.
1445 * value.h: Add intro comment about <optimized out> and
1447 (struct lval_funcs): Remove check_validity and check_any_valid
1449 (set_value_optimized_out, value_optimized_out_const): Remove.
1450 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1452 (value_bits_any_optimized_out): New declaration.
1453 (value_bits_valid): Delete declaration.
1454 (value_available_contents_eq): Rename to ...
1455 (value_contents_eq): ... this, and extend comments.
1457 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1459 Fix -fsanitize=address on unreadable inferior strings.
1460 * valprint.c (val_print_string): Fix access before BUFFER.
1462 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1464 * target.c (target_struct_size): Remove.
1465 (target_struct_allocsize): Remove.
1466 (DEFAULT_ALLOCSIZE): Remove.
1467 (target_ops_p): New typedef.
1468 (DEF_VEC_P (target_ops_p)): New vector type.
1469 (target_structs): Change type to VEC (target_ops_p).
1470 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1471 (find_default_run_target): Rewrite for loop following changes to
1474 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1476 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1477 Adjust code accordingly. Adjust function description comment.
1479 2014-08-19 Yao Qi <yao@codesourcery.com>
1481 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1484 2014-08-19 Alan Modra <amodra@gmail.com>
1486 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1487 * config.in: Regenerate.
1488 * configure: Regenerate.
1490 2014-08-19 Tom Tromey <tromey@redhat.com>
1491 Gary Benson <gbenson@redhat.com>
1493 * common/common-debug.h: New file.
1494 * common/common-debug.c: Likewise.
1495 * debug.c: Likewise.
1496 * Makefile.in (SFILES): Add common/common-debug.c.
1497 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1498 (COMMON_OBS): Add common-debug.o and debug.o.
1499 (common-debug.o): New rule.
1500 * common/common-defs.h: Include common-debug.h.
1501 * common/agent.c (debug_agent_printf): New function.
1502 (DEBUG_AGENT): Redefine.
1503 * nat/i386-dregs.c (debug_printf): Undefine.
1505 2014-08-19 Gary Benson <gbenson@redhat.com>
1507 * common/common-defs.h: Include print-utils.h.
1508 * utils.h: Do not include print-utils.h.
1510 2014-08-19 Tom Tromey <tromey@redhat.com>
1511 Gary Benson <gbenson@redhat.com>
1513 * common/common-types.h: New file.
1514 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1515 * common/common-defs.h: Include common-types.h.
1516 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1519 2014-08-19 Tom Tromey <tromey@redhat.com>
1520 Gary Benson <gbenson@redhat.com>
1522 * common/errors.h: New file.
1523 * common/errors.c: Likewise.
1524 * Makefile.in (SFILES): Add common/errors.c.
1525 (HFILES_NO_SRCDIR): Add common/errors.h.
1526 (COMMON_OBS): Add errors.o.
1527 (errors.o): New rule.
1528 * common/common-defs.h: Include errors.h.
1529 * utils.h (perror_with_name, error, verror, warning, vwarning):
1531 * common/common-utils.h: (malloc_failure, internal_error):
1534 2014-08-19 Gary Benson <gbenson@redhat.com>
1536 * utils.c (internal_vproblem): Always print the message.
1538 2014-08-18 Doug Evans <dje@google.com>
1540 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1542 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1544 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1545 Return 0 if TYPE is dynamic.
1546 (print_range): Add handling of dynamic ranges.
1548 2014-08-18 Keven Boell <keven.boell@intel.com>
1549 Joel Brobecker <brobecker@adacore.com>
1551 * gdbtypes.h (struct main_type): Add field "data_location".
1552 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1553 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1554 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1555 a dynamic data location.
1556 (resolve_dynamic_type): Add DW_AT_data_location handling.
1557 (copy_recursive, copy_type): Copy the data_location information
1559 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1560 * value.c (value_from_contents_and_address): Add
1561 DW_AT_data_location handling.
1563 2014-08-18 Keven Boell <keven.boell@intel.com>
1564 Joel Brobecker <brobecker@adacore.com>
1566 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1567 field "get_object_address".
1568 * dwarf2expr.c (execute_stack_op): Add handling for
1569 DW_OP_push_object_address.
1570 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1571 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1572 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1573 (dwarf_expr_get_obj_addr): New function.
1574 (dwarf_expr_ctx_funcs): Add get_object_address field.
1575 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1576 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1577 (dwarf2_evaluate_property): Add parameter "address". Use it.
1578 (needs_get_obj_addr): New function.
1579 (needs_frame_ctx_funcs): Add get_object_address field.
1580 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1581 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1582 (resolve_dynamic_array): Likewise.
1584 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1586 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1587 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1588 fixed value for records and unions for which some GNAT encodings
1591 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1593 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1594 rewrite to avoid "else if" and "else" constructs. Should be
1595 a no-op in practice.
1597 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1599 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1602 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1605 * eval.c: Update all calls to find_overload_match.
1606 * valarith.c: Likewise.
1607 (value_user_defined_cpp_op, value_user_defined_op): New
1608 argument NOSIDE. Update all callers.
1609 * valops.c (find_overload_match): New argument NOSIDE.
1610 * value.h (find_overload_match): Update signature.
1612 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1614 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1615 'items' methods instead of 'iteritems' method on dictionaries.
1617 2014-08-15 Doug Evans <dje@google.com>
1619 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1622 2014-08-15 Doug Evans <dje@google.com>
1624 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1626 2014-08-15 Doug Evans <dje@google.com>
1628 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1630 2014-08-15 Doug Evans <dje@google.com>
1632 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1635 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1637 * dcache.h: Include target.h, to avoid compile time warnings.
1639 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1641 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1642 frame_info" partial declaration.
1643 * gdbarch.h: Regenerate.
1645 2014-08-15 Yao Qi <yao@codesourcery.com>
1647 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1648 Add parameter 'decode_for_pst_p'. Callers update.
1650 2014-08-13 Yao Qi <yao@codesourcery.com>
1653 * configure.ac: Use local variable 'pos'.
1654 * configure: Regenerated.
1656 2014-08-11 Doug Evans <dje@google.com>
1658 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1659 message, it is redundant with "Reading symbols from ..." message.
1661 2014-08-10 Doug Evans <xdje42@gmail.com>
1663 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1665 2014-08-09 Yao Qi <yao@codesourcery.com>
1668 * remote.c (remote_xfer_partial): Remove dead code.
1670 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1672 * ia64-linux-tdep.c: Include "regset.h".
1673 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1674 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1675 (ia64_linux_supply_fpregset): New function.
1676 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1677 (ia64_linux_regset_from_core_section): New function.
1678 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1681 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1683 * m68klinux-tdep.c: Include "regset.h".
1684 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1685 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1686 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1687 (m68k_linux_regset_from_core_section): New function.
1688 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1691 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1693 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1694 function. Move logic to...
1695 (tilegx_linux_regmap): ... this new register map.
1696 (tilegx_linux_regset): Refer to register map, replace supply
1697 method by regcache_supply_regset, and add collect method.
1698 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1699 TILEGX_FIRST_EASY_REGNUM.
1701 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1703 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1704 that calls regcache_supply_regset and handles the EPC register
1705 separately. Move main logic to...
1706 (score7_linux_gregmap): ... this new register map.
1707 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1708 (score7_linux_gregset): Refer to register map. Add collect method.
1709 (score7_linux_regset_from_core_section): Replace
1710 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1711 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1712 (struct regset): Delete unused forward declaraction.
1713 (struct pt_regs): Delete structure definition.
1714 (elf_gregset_t): Delete typedef.
1716 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1718 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1719 (nios2_core_regset): Add collect method.
1721 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1723 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1724 platform-independent and don't write to read-only input buffer.
1725 (m32r_linux_collect_gregset): New function.
1726 (m32r_linux_gregset): Add collect method.
1728 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1730 * hppa-linux-tdep.c (greg_map): Rename to...
1731 (hppa_linux_gregmap): ... this. Also convert to
1732 regcache_map_entry format.
1733 (hppa_linux_supply_regset): Delete function.
1734 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1735 (hppa_linux_fpregmap): ... this new register map.
1736 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1737 register map, replace supply method by regcache_supply_regset, and
1738 add collect method regcache_collect_regset.
1740 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1742 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1743 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1744 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1745 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1746 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1747 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1748 (frv_linux_supply_gregset): Replace main logic by call to
1749 regcache_supply_regset, but keep clearing gr32-gr63.
1750 (frv_linux_supply_fpregset): Delete function.
1751 (frv_linux_gregset): Refer to appropriate register map and add
1752 regcache_collect_regset as the collect method.
1753 (frv_linux_fpregset): Likewise. Also exchange the supply method
1754 by regcache_supply_regset.
1756 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1758 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1759 by call to alpha_supply_int_regs.
1760 (alpha_linux_collect_gregset): New function.
1761 (alpha_linux_supply_fpregset): Replace logic by call to
1762 alpha_supply_fp_regs.
1763 (alpha_linux_collect_fpregset): New function.
1764 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1766 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1768 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1769 by call to regcache_collect_regset.
1770 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1771 instead of aarch64_linux_supply_gregset/_fpregset.
1772 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1773 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1774 header file instead.
1775 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1776 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1777 functions. Move logic to ...
1778 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1780 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1781 refer to new register maps, replace *_regset_from_core by
1782 regcache_supply_regset, and also use regcache_collect_regset.
1783 * aarch64-linux-tdep.h: Include "regset.h".
1784 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1786 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1787 macros, moved from C source file.
1788 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1789 variable declarations.
1791 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1793 * s390-linux-nat.c: Include "regset.h".
1794 (regmap_gregset): Delete macro.
1795 (s390_64_regmap_gregset): New register map for
1796 regcache_supply/_collect_regset.
1797 (s390_64_gregset): New regset.
1798 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1799 (regmap_fpregset): Delete macro.
1800 (s390_native_supply, s390_native_collect): Delete functions.
1801 (supply_gregset, fill_gregset): Replace s390-specific regmap
1802 handling by a call to regcache_supply/_collect_regset.
1803 (supply_fpregset, fill_fpregset): Call regcache_supply/
1804 _collect_regset instead of s390_native_supply/_collect.
1805 (fetch_regset, store_regset): Likewise. Also change the last
1806 parameter to a regset instead of a regmap.
1807 (s390_linux_fetch_inferior_registers)
1808 (390_linux_store_inferior_registers): Adjust last parameter in
1809 calls to fetch_regset and store_regset.
1810 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1811 (s390_gregmap): ... this. Also make static const and convert to
1812 regcache_map_entry format.
1813 (s390x_regmap_gregset): Delete.
1814 (s390_regmap_fpregset): Rename to...
1815 (s390_fpregmap): ... this. Make static const and convert to
1816 regcache_map_entry format.
1817 (s390_regmap_upper, s390_regmap_last_break)
1818 (s390x_regmap_last_break, s390_regmap_system_call)
1819 (s390_regmap_tdb): Likewise.
1820 (s390_supply_regset, s390_collect_regset): Remove functions.
1821 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1823 (s390_gregset, s390_fpregset, s390_upper_regset)
1824 (s390_last_break_regset, s390x_last_break_regset)
1825 (s390_system_call_regset, s390_tdb_regset): Make global and
1826 replace s390_supply/_collect_regset by regcache_supply/
1828 (s390x_gregset): Delete.
1829 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1830 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1831 (s390_regmap_fpregset, s390_regmap_last_break)
1832 (s390x_regmap_last_break, s390_regmap_system_call)
1833 (s390_regmap_tdb): Delete global variable declarations.
1834 (s390_gregset, s390_fpregset, s390_last_break_regset)
1835 (s390x_last_break_regset, s390_system_call_regset)
1836 (s390_tdb_regset): New global variable declarations.
1838 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1840 * regcache.c: Include "regset.h".
1841 (regcache_transfer_regset): New local function.
1842 (regcache_supply_regset, regcache_collect_regset): New functions.
1843 * regcache.h (struct regcache_map_entry): New structure.
1844 (REGCACHE_MAP_SKIP): New enum value.
1845 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1847 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1849 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1850 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1851 (ppc_linux_collect_gregset ): Likewise.
1852 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1853 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1854 (ppc_collect_vrregset): Likewise.
1855 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1858 2014-08-07 Yao Qi <yao@codesourcery.com>
1860 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1861 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1862 * remote.c (remote_read_bytes): Likewise.
1864 2014-08-07 Yao Qi <yao@codesourcery.com>
1866 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1868 2014-08-07 Yao Qi <yao@codesourcery.com>
1871 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1872 TARGET_XFER_OK instead of 0.
1874 2014-08-07 Gary Benson <gbenson@redhat.com>
1876 * common/common-defs.h: Include errno.h.
1877 * defs.h: Do not include errno.h.
1878 * ada-typeprint.c: Likewise.
1879 * c-typeprint.c: Likewise.
1880 * core-regset.c: Likewise.
1881 * corefile.c: Likewise.
1882 * corelow.c: Likewise.
1883 * event-loop.c: Likewise.
1884 * f-typeprint.c: Likewise.
1885 * gnu-nat.c: Likewise.
1886 * go32-nat.c: Likewise.
1887 * i386gnu-nat.c: Likewise.
1888 * m2-typeprint.c: Likewise.
1889 * nat/linux-btrace.c: Likewise.
1890 * p-typeprint.c: Likewise.
1891 * procfs.c: Likewise.
1892 * remote-sim.c: Likewise.
1893 * rs6000-nat.c: Likewise.
1894 * target.c: Likewise.
1895 * typeprint.c: Likewise.
1896 * ui-file.c: Likewise.
1897 * valops.c: Likewise.
1898 * valprint.c: Likewise.
1900 2014-08-07 Gary Benson <gbenson@redhat.com>
1902 * common/common-defs.h: Include string.h.
1903 * aarch64-tdep.c: Do not include string.h.
1904 * ada-exp.y: Likewise.
1905 * ada-lang.c: Likewise.
1906 * ada-lex.l: Likewise.
1907 * ada-typeprint.c: Likewise.
1908 * ada-valprint.c: Likewise.
1909 * aix-thread.c: Likewise.
1910 * alpha-linux-tdep.c: Likewise.
1911 * alpha-mdebug-tdep.c: Likewise.
1912 * alpha-nat.c: Likewise.
1913 * alpha-osf1-tdep.c: Likewise.
1914 * alpha-tdep.c: Likewise.
1915 * alphanbsd-tdep.c: Likewise.
1916 * amd64-dicos-tdep.c: Likewise.
1917 * amd64-linux-tdep.c: Likewise.
1918 * amd64-nat.c: Likewise.
1919 * amd64-sol2-tdep.c: Likewise.
1920 * amd64fbsd-tdep.c: Likewise.
1921 * amd64obsd-tdep.c: Likewise.
1922 * arch-utils.c: Likewise.
1923 * arm-linux-nat.c: Likewise.
1924 * arm-linux-tdep.c: Likewise.
1925 * arm-tdep.c: Likewise.
1926 * arm-wince-tdep.c: Likewise.
1927 * armbsd-tdep.c: Likewise.
1928 * armnbsd-nat.c: Likewise.
1929 * armnbsd-tdep.c: Likewise.
1930 * armobsd-tdep.c: Likewise.
1931 * avr-tdep.c: Likewise.
1932 * ax-gdb.c: Likewise.
1933 * ax-general.c: Likewise.
1934 * bcache.c: Likewise.
1935 * bfin-tdep.c: Likewise.
1936 * breakpoint.c: Likewise.
1937 * build-id.c: Likewise.
1938 * buildsym.c: Likewise.
1939 * c-exp.y: Likewise.
1940 * c-lang.c: Likewise.
1941 * c-typeprint.c: Likewise.
1942 * c-valprint.c: Likewise.
1943 * charset.c: Likewise.
1944 * cli-out.c: Likewise.
1945 * cli/cli-cmds.c: Likewise.
1946 * cli/cli-decode.c: Likewise.
1947 * cli/cli-dump.c: Likewise.
1948 * cli/cli-interp.c: Likewise.
1949 * cli/cli-logging.c: Likewise.
1950 * cli/cli-script.c: Likewise.
1951 * cli/cli-setshow.c: Likewise.
1952 * cli/cli-utils.c: Likewise.
1953 * coffread.c: Likewise.
1954 * common/agent.c: Likewise.
1955 * common/buffer.c: Likewise.
1956 * common/buffer.h: Likewise.
1957 * common/common-utils.c: Likewise.
1958 * common/filestuff.c: Likewise.
1959 * common/filestuff.c: Likewise.
1960 * common/format.c: Likewise.
1961 * common/print-utils.c: Likewise.
1962 * common/rsp-low.c: Likewise.
1963 * common/signals.c: Likewise.
1964 * common/vec.h: Likewise.
1965 * common/xml-utils.c: Likewise.
1966 * core-regset.c: Likewise.
1967 * corefile.c: Likewise.
1968 * corelow.c: Likewise.
1969 * cp-abi.c: Likewise.
1970 * cp-name-parser.y: Likewise.
1971 * cp-support.c: Likewise.
1972 * cp-valprint.c: Likewise.
1973 * cris-tdep.c: Likewise.
1974 * d-exp.y: Likewise.
1975 * darwin-nat.c: Likewise.
1976 * dbxread.c: Likewise.
1977 * dcache.c: Likewise.
1978 * demangle.c: Likewise.
1979 * dicos-tdep.c: Likewise.
1980 * disasm.c: Likewise.
1981 * doublest.c: Likewise.
1982 * dsrec.c: Likewise.
1983 * dummy-frame.c: Likewise.
1984 * dwarf2-frame.c: Likewise.
1985 * dwarf2loc.c: Likewise.
1986 * dwarf2read.c: Likewise.
1987 * elfread.c: Likewise.
1988 * environ.c: Likewise.
1990 * event-loop.c: Likewise.
1991 * exceptions.c: Likewise.
1993 * expprint.c: Likewise.
1994 * f-exp.y: Likewise.
1995 * f-lang.c: Likewise.
1996 * f-typeprint.c: Likewise.
1997 * f-valprint.c: Likewise.
1998 * fbsd-nat.c: Likewise.
1999 * findcmd.c: Likewise.
2000 * findvar.c: Likewise.
2001 * fork-child.c: Likewise.
2002 * frame.c: Likewise.
2003 * frv-linux-tdep.c: Likewise.
2004 * frv-tdep.c: Likewise.
2006 * gdb_bfd.c: Likewise.
2007 * gdbarch.c: Likewise.
2008 * gdbarch.sh: Likewise.
2009 * gdbtypes.c: Likewise.
2010 * gnu-nat.c: Likewise.
2011 * gnu-v2-abi.c: Likewise.
2012 * gnu-v3-abi.c: Likewise.
2013 * go-exp.y: Likewise.
2014 * go-lang.c: Likewise.
2015 * go32-nat.c: Likewise.
2016 * guile/guile.c: Likewise.
2017 * guile/scm-auto-load.c: Likewise.
2018 * hppa-hpux-tdep.c: Likewise.
2019 * hppa-linux-nat.c: Likewise.
2020 * hppanbsd-tdep.c: Likewise.
2021 * hppaobsd-tdep.c: Likewise.
2022 * i386-cygwin-tdep.c: Likewise.
2023 * i386-dicos-tdep.c: Likewise.
2024 * i386-linux-tdep.c: Likewise.
2025 * i386-nto-tdep.c: Likewise.
2026 * i386-sol2-tdep.c: Likewise.
2027 * i386-tdep.c: Likewise.
2028 * i386bsd-tdep.c: Likewise.
2029 * i386gnu-nat.c: Likewise.
2030 * i386nbsd-tdep.c: Likewise.
2031 * i386obsd-tdep.c: Likewise.
2032 * i387-tdep.c: Likewise.
2033 * ia64-libunwind-tdep.c: Likewise.
2034 * ia64-linux-nat.c: Likewise.
2035 * inf-child.c: Likewise.
2036 * inf-ptrace.c: Likewise.
2037 * inf-ttrace.c: Likewise.
2038 * infcall.c: Likewise.
2039 * infcmd.c: Likewise.
2040 * inflow.c: Likewise.
2041 * infrun.c: Likewise.
2042 * interps.c: Likewise.
2043 * iq2000-tdep.c: Likewise.
2044 * irix5-nat.c: Likewise.
2045 * jv-exp.y: Likewise.
2046 * jv-lang.c: Likewise.
2047 * jv-typeprint.c: Likewise.
2048 * jv-valprint.c: Likewise.
2049 * language.c: Likewise.
2050 * linux-fork.c: Likewise.
2051 * linux-nat.c: Likewise.
2052 * lm32-tdep.c: Likewise.
2053 * m2-exp.y: Likewise.
2054 * m2-typeprint.c: Likewise.
2055 * m32c-tdep.c: Likewise.
2056 * m32r-linux-nat.c: Likewise.
2057 * m32r-linux-tdep.c: Likewise.
2058 * m32r-rom.c: Likewise.
2059 * m32r-tdep.c: Likewise.
2060 * m68hc11-tdep.c: Likewise.
2061 * m68k-tdep.c: Likewise.
2062 * m68kbsd-tdep.c: Likewise.
2063 * m68klinux-nat.c: Likewise.
2064 * m68klinux-tdep.c: Likewise.
2065 * m88k-tdep.c: Likewise.
2066 * machoread.c: Likewise.
2067 * macrocmd.c: Likewise.
2069 * mdebugread.c: Likewise.
2070 * mem-break.c: Likewise.
2071 * memattr.c: Likewise.
2072 * memory-map.c: Likewise.
2073 * mep-tdep.c: Likewise.
2074 * mi/mi-cmd-break.c: Likewise.
2075 * mi/mi-cmd-disas.c: Likewise.
2076 * mi/mi-cmd-env.c: Likewise.
2077 * mi/mi-cmd-stack.c: Likewise.
2078 * mi/mi-cmd-var.c: Likewise.
2079 * mi/mi-cmds.c: Likewise.
2080 * mi/mi-console.c: Likewise.
2081 * mi/mi-getopt.c: Likewise.
2082 * mi/mi-interp.c: Likewise.
2083 * mi/mi-main.c: Likewise.
2084 * mi/mi-parse.c: Likewise.
2085 * microblaze-rom.c: Likewise.
2086 * microblaze-tdep.c: Likewise.
2087 * mingw-hdep.c: Likewise.
2088 * minidebug.c: Likewise.
2089 * minsyms.c: Likewise.
2090 * mips-irix-tdep.c: Likewise.
2091 * mips-linux-tdep.c: Likewise.
2092 * mips-tdep.c: Likewise.
2093 * mips64obsd-tdep.c: Likewise.
2094 * mipsnbsd-tdep.c: Likewise.
2095 * mipsread.c: Likewise.
2096 * mn10300-linux-tdep.c: Likewise.
2097 * mn10300-tdep.c: Likewise.
2098 * monitor.c: Likewise.
2099 * moxie-tdep.c: Likewise.
2100 * mt-tdep.c: Likewise.
2101 * nat/linux-btrace.c: Likewise.
2102 * nat/linux-osdata.c: Likewise.
2103 * nat/linux-procfs.c: Likewise.
2104 * nat/linux-ptrace.c: Likewise.
2105 * nat/linux-waitpid.c: Likewise.
2106 * nbsd-tdep.c: Likewise.
2107 * nios2-linux-tdep.c: Likewise.
2108 * nto-procfs.c: Likewise.
2109 * nto-tdep.c: Likewise.
2110 * objc-lang.c: Likewise.
2111 * objfiles.c: Likewise.
2112 * opencl-lang.c: Likewise.
2113 * osabi.c: Likewise.
2114 * osdata.c: Likewise.
2115 * p-exp.y: Likewise.
2116 * p-lang.c: Likewise.
2117 * p-typeprint.c: Likewise.
2118 * parse.c: Likewise.
2119 * posix-hdep.c: Likewise.
2120 * ppc-linux-nat.c: Likewise.
2121 * ppc-sysv-tdep.c: Likewise.
2122 * ppcfbsd-tdep.c: Likewise.
2123 * ppcnbsd-tdep.c: Likewise.
2124 * ppcobsd-tdep.c: Likewise.
2125 * printcmd.c: Likewise.
2126 * procfs.c: Likewise.
2127 * prologue-value.c: Likewise.
2128 * python/py-auto-load.c: Likewise.
2129 * python/py-gdb-readline.c: Likewise.
2130 * ravenscar-thread.c: Likewise.
2131 * regcache.c: Likewise.
2132 * registry.c: Likewise.
2133 * remote-fileio.c: Likewise.
2134 * remote-m32r-sdi.c: Likewise.
2135 * remote-mips.c: Likewise.
2136 * remote-notif.c: Likewise.
2137 * remote-sim.c: Likewise.
2138 * remote.c: Likewise.
2139 * reverse.c: Likewise.
2140 * rs6000-aix-tdep.c: Likewise.
2141 * ser-base.c: Likewise.
2142 * ser-go32.c: Likewise.
2143 * ser-mingw.c: Likewise.
2144 * ser-pipe.c: Likewise.
2145 * ser-tcp.c: Likewise.
2146 * ser-unix.c: Likewise.
2147 * serial.c: Likewise.
2148 * sh-tdep.c: Likewise.
2149 * sh64-tdep.c: Likewise.
2150 * shnbsd-tdep.c: Likewise.
2152 * sol-thread.c: Likewise.
2153 * solib-dsbt.c: Likewise.
2154 * solib-frv.c: Likewise.
2155 * solib-osf.c: Likewise.
2156 * solib-som.c: Likewise.
2157 * solib-spu.c: Likewise.
2158 * solib-target.c: Likewise.
2159 * solib.c: Likewise.
2160 * somread.c: Likewise.
2161 * source.c: Likewise.
2162 * sparc-nat.c: Likewise.
2163 * sparc-sol2-tdep.c: Likewise.
2164 * sparc-tdep.c: Likewise.
2165 * sparc64-tdep.c: Likewise.
2166 * sparc64fbsd-tdep.c: Likewise.
2167 * sparc64nbsd-tdep.c: Likewise.
2168 * sparcnbsd-tdep.c: Likewise.
2169 * spu-linux-nat.c: Likewise.
2170 * spu-multiarch.c: Likewise.
2171 * spu-tdep.c: Likewise.
2172 * stabsread.c: Likewise.
2173 * stack.c: Likewise.
2174 * std-regs.c: Likewise.
2175 * symfile.c: Likewise.
2176 * symmisc.c: Likewise.
2177 * symtab.c: Likewise.
2178 * target.c: Likewise.
2179 * thread.c: Likewise.
2180 * tilegx-linux-nat.c: Likewise.
2181 * tilegx-tdep.c: Likewise.
2183 * tracepoint.c: Likewise.
2184 * tui/tui-command.c: Likewise.
2185 * tui/tui-data.c: Likewise.
2186 * tui/tui-disasm.c: Likewise.
2187 * tui/tui-file.c: Likewise.
2188 * tui/tui-layout.c: Likewise.
2189 * tui/tui-out.c: Likewise.
2190 * tui/tui-regs.c: Likewise.
2191 * tui/tui-source.c: Likewise.
2192 * tui/tui-stack.c: Likewise.
2193 * tui/tui-win.c: Likewise.
2194 * tui/tui-windata.c: Likewise.
2195 * tui/tui-winsource.c: Likewise.
2196 * typeprint.c: Likewise.
2197 * ui-file.c: Likewise.
2198 * ui-out.c: Likewise.
2199 * user-regs.c: Likewise.
2200 * utils.c: Likewise.
2201 * v850-tdep.c: Likewise.
2202 * valarith.c: Likewise.
2203 * valops.c: Likewise.
2204 * valprint.c: Likewise.
2205 * value.c: Likewise.
2206 * varobj.c: Likewise.
2207 * vax-tdep.c: Likewise.
2208 * vaxnbsd-tdep.c: Likewise.
2209 * vaxobsd-tdep.c: Likewise.
2210 * windows-nat.c: Likewise.
2211 * xcoffread.c: Likewise.
2212 * xml-support.c: Likewise.
2213 * xstormy16-tdep.c: Likewise.
2214 * xtensa-linux-nat.c: Likewise.
2216 2014-08-07 Gary Benson <gbenson@redhat.com>
2218 * common/common-defs.h: Include gdb_assert.h.
2219 * aarch64-tdep.c: Do not include gdb_assert.h.
2220 * addrmap.c: Likewise.
2221 * aix-thread.c: Likewise.
2222 * alpha-linux-tdep.c: Likewise.
2223 * alpha-mdebug-tdep.c: Likewise.
2224 * alphanbsd-tdep.c: Likewise.
2225 * amd64-nat.c: Likewise.
2226 * amd64-tdep.c: Likewise.
2227 * amd64bsd-nat.c: Likewise.
2228 * amd64fbsd-nat.c: Likewise.
2229 * amd64fbsd-tdep.c: Likewise.
2230 * amd64nbsd-nat.c: Likewise.
2231 * amd64nbsd-tdep.c: Likewise.
2232 * amd64obsd-nat.c: Likewise.
2233 * amd64obsd-tdep.c: Likewise.
2234 * arch-utils.c: Likewise.
2235 * arm-tdep.c: Likewise.
2236 * armbsd-tdep.c: Likewise.
2238 * bcache.c: Likewise.
2239 * bfin-tdep.c: Likewise.
2240 * blockframe.c: Likewise.
2241 * breakpoint.c: Likewise.
2242 * bsd-kvm.c: Likewise.
2243 * bsd-uthread.c: Likewise.
2244 * buildsym.c: Likewise.
2245 * c-exp.y: Likewise.
2246 * c-lang.c: Likewise.
2247 * charset.c: Likewise.
2248 * cleanups.c: Likewise.
2249 * cli-out.c: Likewise.
2250 * cli/cli-decode.c: Likewise.
2251 * cli/cli-dump.c: Likewise.
2252 * cli/cli-logging.c: Likewise.
2253 * cli/cli-script.c: Likewise.
2254 * cli/cli-utils.c: Likewise.
2255 * coffread.c: Likewise.
2256 * common/common-utils.c: Likewise.
2257 * common/queue.h: Likewise.
2258 * common/signals.c: Likewise.
2259 * common/vec.h: Likewise.
2260 * complaints.c: Likewise.
2261 * completer.c: Likewise.
2262 * corelow.c: Likewise.
2263 * cp-abi.c: Likewise.
2264 * cp-name-parser.y: Likewise.
2265 * cp-namespace.c: Likewise.
2266 * cp-support.c: Likewise.
2267 * cris-tdep.c: Likewise.
2268 * dbxread.c: Likewise.
2269 * dictionary.c: Likewise.
2270 * doublest.c: Likewise.
2271 * dsrec.c: Likewise.
2272 * dummy-frame.c: Likewise.
2273 * dwarf2-frame-tailcall.c: Likewise.
2274 * dwarf2-frame.c: Likewise.
2275 * dwarf2expr.c: Likewise.
2276 * dwarf2loc.c: Likewise.
2277 * dwarf2read.c: Likewise.
2279 * event-loop.c: Likewise.
2280 * exceptions.c: Likewise.
2281 * expprint.c: Likewise.
2282 * f-valprint.c: Likewise.
2283 * fbsd-nat.c: Likewise.
2284 * findvar.c: Likewise.
2285 * frame-unwind.c: Likewise.
2286 * frame.c: Likewise.
2287 * frv-tdep.c: Likewise.
2288 * gcore.c: Likewise.
2289 * gdb-dlfcn.c: Likewise.
2290 * gdb_bfd.c: Likewise.
2291 * gdbarch.c: Likewise.
2292 * gdbarch.sh: Likewise.
2293 * gdbtypes.c: Likewise.
2294 * gnu-nat.c: Likewise.
2295 * gnu-v3-abi.c: Likewise.
2296 * go-lang.c: Likewise.
2297 * guile/scm-exception.c: Likewise.
2298 * guile/scm-gsmob.c: Likewise.
2299 * guile/scm-lazy-string.c: Likewise.
2300 * guile/scm-math.c: Likewise.
2301 * guile/scm-pretty-print.c: Likewise.
2302 * guile/scm-safe-call.c: Likewise.
2303 * guile/scm-utils.c: Likewise.
2304 * guile/scm-value.c: Likewise.
2305 * h8300-tdep.c: Likewise.
2306 * hppa-hpux-nat.c: Likewise.
2307 * hppa-tdep.c: Likewise.
2308 * hppanbsd-tdep.c: Likewise.
2309 * hppaobsd-tdep.c: Likewise.
2310 * i386-darwin-nat.c: Likewise.
2311 * i386-darwin-tdep.c: Likewise.
2312 * i386-nto-tdep.c: Likewise.
2313 * i386-tdep.c: Likewise.
2314 * i386bsd-nat.c: Likewise.
2315 * i386fbsd-tdep.c: Likewise.
2316 * i386gnu-nat.c: Likewise.
2317 * i386nbsd-tdep.c: Likewise.
2318 * i386obsd-tdep.c: Likewise.
2319 * i387-tdep.c: Likewise.
2320 * ia64-libunwind-tdep.c: Likewise.
2321 * ia64-tdep.c: Likewise.
2322 * inf-ptrace.c: Likewise.
2323 * inf-ttrace.c: Likewise.
2324 * infcall.c: Likewise.
2325 * infcmd.c: Likewise.
2326 * infrun.c: Likewise.
2327 * inline-frame.c: Likewise.
2328 * interps.c: Likewise.
2329 * jv-lang.c: Likewise.
2330 * jv-typeprint.c: Likewise.
2331 * linux-fork.c: Likewise.
2332 * linux-nat.c: Likewise.
2333 * linux-thread-db.c: Likewise.
2334 * m32c-tdep.c: Likewise.
2335 * m32r-linux-nat.c: Likewise.
2336 * m32r-tdep.c: Likewise.
2337 * m68k-tdep.c: Likewise.
2338 * m68kbsd-nat.c: Likewise.
2339 * m68kbsd-tdep.c: Likewise.
2340 * m88k-tdep.c: Likewise.
2341 * machoread.c: Likewise.
2342 * macroexp.c: Likewise.
2343 * macrotab.c: Likewise.
2344 * maint.c: Likewise.
2345 * mdebugread.c: Likewise.
2346 * memory-map.c: Likewise.
2347 * mep-tdep.c: Likewise.
2348 * mi/mi-common.c: Likewise.
2349 * microblaze-tdep.c: Likewise.
2350 * mingw-hdep.c: Likewise.
2351 * mips-linux-nat.c: Likewise.
2352 * mips-linux-tdep.c: Likewise.
2353 * mips-tdep.c: Likewise.
2354 * mips64obsd-tdep.c: Likewise.
2355 * mipsnbsd-tdep.c: Likewise.
2356 * mn10300-linux-tdep.c: Likewise.
2357 * mn10300-tdep.c: Likewise.
2358 * moxie-tdep.c: Likewise.
2359 * mt-tdep.c: Likewise.
2360 * nat/linux-btrace.c: Likewise.
2361 * nat/linux-osdata.c: Likewise.
2362 * nat/linux-ptrace.c: Likewise.
2363 * nat/mips-linux-watch.c: Likewise.
2364 * nios2-linux-tdep.c: Likewise.
2365 * nios2-tdep.c: Likewise.
2366 * objc-lang.c: Likewise.
2367 * objfiles.c: Likewise.
2368 * obsd-nat.c: Likewise.
2369 * opencl-lang.c: Likewise.
2370 * osabi.c: Likewise.
2371 * parse.c: Likewise.
2372 * ppc-linux-nat.c: Likewise.
2373 * ppc-sysv-tdep.c: Likewise.
2374 * ppcfbsd-nat.c: Likewise.
2375 * ppcfbsd-tdep.c: Likewise.
2376 * ppcnbsd-nat.c: Likewise.
2377 * ppcnbsd-tdep.c: Likewise.
2378 * ppcobsd-nat.c: Likewise.
2379 * ppcobsd-tdep.c: Likewise.
2380 * printcmd.c: Likewise.
2381 * procfs.c: Likewise.
2382 * prologue-value.c: Likewise.
2383 * psymtab.c: Likewise.
2384 * python/py-lazy-string.c: Likewise.
2385 * python/py-value.c: Likewise.
2386 * regcache.c: Likewise.
2387 * reggroups.c: Likewise.
2388 * registry.c: Likewise.
2389 * remote-sim.c: Likewise.
2390 * remote.c: Likewise.
2391 * rs6000-aix-tdep.c: Likewise.
2392 * rs6000-tdep.c: Likewise.
2393 * s390-linux-tdep.c: Likewise.
2394 * score-tdep.c: Likewise.
2395 * ser-base.c: Likewise.
2396 * ser-mingw.c: Likewise.
2397 * sh-tdep.c: Likewise.
2398 * sh64-tdep.c: Likewise.
2399 * solib-darwin.c: Likewise.
2400 * solib-spu.c: Likewise.
2401 * solib-svr4.c: Likewise.
2402 * source.c: Likewise.
2403 * sparc-nat.c: Likewise.
2404 * sparc-sol2-tdep.c: Likewise.
2405 * sparc-tdep.c: Likewise.
2406 * sparc64-sol2-tdep.c: Likewise.
2407 * sparc64-tdep.c: Likewise.
2408 * sparc64fbsd-tdep.c: Likewise.
2409 * sparc64nbsd-tdep.c: Likewise.
2410 * sparc64obsd-tdep.c: Likewise.
2411 * sparcnbsd-tdep.c: Likewise.
2412 * sparcobsd-tdep.c: Likewise.
2413 * spu-multiarch.c: Likewise.
2414 * spu-tdep.c: Likewise.
2415 * stabsread.c: Likewise.
2416 * stack.c: Likewise.
2417 * symfile.c: Likewise.
2418 * symtab.c: Likewise.
2419 * target-descriptions.c: Likewise.
2420 * target-memory.c: Likewise.
2421 * target.c: Likewise.
2422 * tic6x-linux-tdep.c: Likewise.
2423 * tic6x-tdep.c: Likewise.
2424 * tilegx-linux-nat.c: Likewise.
2425 * tilegx-tdep.c: Likewise.
2427 * tramp-frame.c: Likewise.
2428 * tui/tui-out.c: Likewise.
2429 * tui/tui-winsource.c: Likewise.
2430 * ui-out.c: Likewise.
2431 * user-regs.c: Likewise.
2432 * utils.c: Likewise.
2433 * v850-tdep.c: Likewise.
2434 * valops.c: Likewise.
2435 * value.c: Likewise.
2436 * varobj.c: Likewise.
2437 * vax-nat.c: Likewise.
2438 * xml-syscall.c: Likewise.
2439 * xml-tdesc.c: Likewise.
2440 * xstormy16-tdep.c: Likewise.
2441 * xtensa-linux-nat.c: Likewise.
2442 * xtensa-tdep.c: Likewise.
2444 2014-08-07 Gary Benson <gbenson@redhat.com>
2446 * common/common-defs.h: Include common-utils.h.
2447 * defs.h: Do not include common-utils.h.
2448 * common/gdb_assert.h: Likewise.
2449 * darwin-nat.h: Likewise.
2450 * nat/linux-btrace.c: Likewise.
2451 * target/waitstatus.h: Likewise.
2453 2014-08-07 Gary Benson <gbenson@redhat.com>
2455 * common/common-defs.h: Include ptid.h.
2456 * defs.h: Do not include ptid.h.
2457 * inferior.h: Likewise.
2458 * infrun.h: Likewise.
2459 * nat/linux-btrace.h: Likewise.
2460 * nat/linux-osdata.h: Likewise.
2461 * target/waitstatus.h: Likewise.
2463 2014-08-07 Gary Benson <gbenson@redhat.com>
2465 * common/common-defs.h: Include gdb_locale.h.
2466 * defs.h: Do not include gdb_locale.h.
2468 2014-08-07 Gary Benson <gbenson@redhat.com>
2470 * common/common-defs.h: Include gdb/signals.h.
2471 * defs.h: Do not include gdb/signals.h.
2473 2014-08-07 Gary Benson <gbenson@redhat.com>
2475 * common/common-defs.h: Include pathmax.h.
2476 * defs.h: Do not include pathmax.h.
2478 2014-08-07 Gary Benson <gbenson@redhat.com>
2480 * common/common-defs.h: Include libiberty.h.
2481 * defs.h: Do not include libiberty.h.
2482 * common/queue.h: Likewise.
2483 * cp-name-parser.y: Likewise.
2484 * mi/mi-cmd-catch.c: Likewise.
2485 * python/python.c: Likewise.
2487 2014-08-07 Gary Benson <gbenson@redhat.com>
2489 * common/common-defs.h: Include ansidecl.h.
2490 * defs.h: Do not include ansidecl.h.
2491 * common/buffer.h: Likewise.
2492 * common/common-utils.h: Likewise.
2494 2014-08-07 Gary Benson <gbenson@redhat.com>
2496 * common/common-defs.h: Include stddef.h.
2497 * defs.h: Do not include stddef.h.
2498 * common/common-utils.h: Likewise.
2499 * amd64fbsd-nat.c: Likewise.
2500 * bcache.c: Likewise.
2501 * charset.c: Likewise.
2502 * common/buffer.h: Likewise.
2503 * common/vec.h: Likewise.
2504 * i386bsd-nat.c: Likewise.
2505 * nat/linux-btrace.h: Likewise.
2506 * ppcfbsd-nat.c: Likewise.
2507 * ppcnbsd-tdep.h: Likewise.
2508 * ppcobsd-nat.c: Likewise.
2509 * ppcobsd-tdep.h: Likewise.
2510 * python/py-gdb-readline.c: Likewise.
2512 2014-08-07 Gary Benson <gbenson@redhat.com>
2514 * common/common-defs.h: Include stdarg.h.
2515 * defs.h: Do not include stdarg.h.
2516 * ada-lang.c: Likewise.
2517 * common/common-utils.h: Likewise.
2518 * guile/scm-string.c: Likewise.
2519 * guile/scm-utils.c: Likewise.
2520 * m32c-tdep.c: Likewise.
2522 2014-08-07 Gary Benson <gbenson@redhat.com>
2524 * common/common-defs.h: Include stdlib.h.
2525 * defs.h: Do not include stdlib.h.
2526 * addrmap.c: Likewise.
2527 * bcache.c: Likewise.
2528 * common/buffer.c: Likewise.
2529 * common/common-utils.c: Likewise.
2530 * cp-name-parser.y: Likewise.
2531 * go32-nat.c: Likewise.
2532 * mn10300-linux-tdep.c: Likewise.
2533 * nat/linux-osdata.c: Likewise.
2534 * tui/tui.c: Likewise.
2535 * windows-nat.c: Likewise.
2537 2014-08-07 Gary Benson <gbenson@redhat.com>
2539 * common/common-defs.h: Include stdio.h.
2540 * defs.h: Do not include stdio.h.
2541 * ada-lang.c: Likewise.
2542 * common/buffer.c: Likewise.
2543 * common/common-utils.c: Likewise.
2544 * cp-name-parser.y: Likewise.
2545 * gnu-nat.c: Likewise.
2546 * go32-nat.c: Likewise.
2547 * i386gnu-nat.c: Likewise.
2548 * proc-api.c: Likewise.
2549 * proc-events.c: Likewise.
2550 * proc-flags.c: Likewise.
2551 * proc-why.c: Likewise.
2552 * python/python-internal.h: Likewise.
2553 * target-memory.c: Likewise.
2554 * tui/tui-io.c: Likewise.
2555 * tui/tui.c: Likewise.
2557 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2559 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2560 (scan_dyntag_auxv): Same.
2562 2014-08-06 Yao Qi <yao@codesourcery.com>
2564 * amd64-linux-nat.c: Remove duplicated include
2566 * i386-linux-nat.c: Likewise.
2568 2014-08-06 Yao Qi <yao@codesourcery.com>
2570 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2571 operand" with "Special opcode" in comments.
2573 2014-08-05 Gary Benson <gbenson@redhat.com>
2575 * interps.c (initialize_interps): Remove prototype.
2576 (interpreter_initialized): Remove static global.
2577 (interp_add): Do not call initialize_interps.
2578 (initialize_interps): Remove function.
2580 2014-08-05 Gary Benson <gbenson@redhat.com>
2582 * utils.c (vwarning): Remove spurious va_end.
2584 2014-08-05 Alan Modra <amodra@gmail.com>
2586 * charset.c (convert_between_encodings): Cast result of obstack_base.
2587 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2588 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2589 (read_unwind_info): Use size_t for some locals.
2590 * jit.c (finalize_symtab): Likewise.
2591 * utils.c (hashtab_obstack_allocate): Likewise.
2592 * symmisc.c (print_objfile_statistics): Update format strings.
2594 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2596 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2597 (Changes in GDB 7.8): ... here.
2599 2014-08-04 Tom Tromey <tromey@redhat.com>
2601 * target.c (set_targetdebug): New function.
2602 (initialize_targets): Pass set_targetdebug when creating "set
2605 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2607 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2608 if detecting a variable-sized field that is not the last field.
2609 Fix struct type length computation.
2611 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2613 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2616 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2618 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2619 Remove "+ 8" offset in computation of CHAIN_VMA.
2621 2014-07-31 Doug Evans <dje@google.com>
2623 * inflow.c (child_terminal_inferior): Add comment.
2624 (child_terminal_ours_for_output): Add comment.
2625 (child_terminal_ours): Add comment.
2626 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2627 (linux_nat_terminal_ours): Add comment.
2629 2014-07-31 Gary Benson <gbenson@redhat.com>
2631 * common/btrace-common.h: Do not include defs.h or server.h.
2632 * nat/mips-linux-watch.h: Likewise.
2633 * gdb-dlfcn.h: Do not include defs.h.
2634 * tracefile.h: Likewise.
2636 2014-07-30 Roland McGrath <mcgrathr@google.com>
2638 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2640 2014-07-30 Tom Tromey <tromey@redhat.com>
2642 * bsd-kvm.c (bsd_kvm_open): Constify.
2643 * corelow.c (core_open): Constify.
2644 * ctf.c (ctf_open): Constify.
2645 * dbug-rom.c (dbug_open): Constify.
2646 * exec.c (exec_open): Constify.
2647 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2648 * microblaze-rom.c (picobug_open): Constify.
2649 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2651 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2652 * record-btrace.c (record_btrace_open): Constify.
2653 * record-full.c (record_full_core_open_1, record_full_open_1)
2654 (record_full_open): Constify.
2655 * remote-m32r-sdi.c (m32r_open): Constify.
2656 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2657 (rockhopper_open, lsi_open): Constify.
2658 * remote-sim.c (gdbsim_open): Constify.
2659 * remote.c (remote_open, extended_remote_open, remote_open_1):
2661 * target.h (struct target_ops) <to_open>: Make "arg" const.
2662 * tracefile-tfile.c (tfile_open): Constify.
2664 2014-07-30 Tom Tromey <tromey@redhat.com>
2666 * breakpoint.c (map_breakpoint_numbers): Update.
2667 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2668 (get_number_const): New function.
2669 (get_number): Rewrite using get_number_const.
2670 (init_number_or_range): Make "string" const.
2671 (number_is_in_list): Make "list" const.
2672 * cli/cli-utils.h (get_number_const): Declare.
2673 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2674 (init_number_or_range, number_is_in_list): Update.
2675 * printcmd.c (map_display_numbers): Update.
2676 * value.c (value_from_history_ref): Constify.
2677 * value.h (value_from_history_ref): Update.
2679 2014-07-30 Tom Tromey <tromey@redhat.com>
2681 * corefile.c (hook_type, call_extra_exec_file_hooks)
2682 (specify_exec_file_hook): Constify.
2683 * exec.c (exec_file_attach): Make "filename" const.
2684 * gdbcore.h (deprecated_exec_file_display_hook)
2685 (specify_exec_file_hook, exec_file_attach): Constify.
2686 * main.c (captured_main): Use catch_command_errors_const.
2688 2014-07-30 Tom Tromey <tromey@redhat.com>
2690 * target.c (open_target): New function.
2691 (add_target_with_completer, add_deprecated_target_alias): Use
2692 set_cmd_sfunc, set_cmd_context.
2693 (debug_to_open): Remove.
2694 (setup_target_debug): Update.
2696 2014-07-30 Yao Qi <yao@codesourcery.com>
2698 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2700 * parse.c (exp_iterate): Update comments.
2702 2014-07-30 Gary Benson <gbenson@redhat.com>
2704 * common/common-defs.h: New file.
2705 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2706 * defs.h: Include common-defs.h.
2707 Do not include config.h or build-gnulib/config.h.
2709 2014-07-30 Gary Benson <gbenson@redhat.com>
2711 * common/common-utils.h: Do not include config.h.
2712 * nat/linux-btrace.h: Likewise.
2714 2014-07-30 Gary Benson <gbenson@redhat.com>
2716 * btrace.c: Include defs.h.
2717 * common/ptid.c: Include defs.h or server.h as appropriate.
2718 * nat/mips-linux-watch.c: Likewise.
2720 2014-07-29 Tom Tromey <tromey@redhat.com>
2722 * target.c (target_is_pushed): Simplify.
2724 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2728 2014-07-29 Yao Qi <yao@codesourcery.com>
2731 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2733 2014-07-28 Doug Evans <xdje42@gmail.com>
2736 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2737 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2740 2014-07-28 Will Newton <will.newton@linaro.org>
2742 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2743 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2744 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2745 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2746 (THUMB2_EABI_SYSCALL): Likewise.
2747 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2749 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2750 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2752 2014-07-27 Doug Evans <xdje42@gmail.com>
2754 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2756 2014-07-27 Doug Evans <xdje42@gmail.com>
2758 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2760 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2761 Doug Evans <xdje42@gmail.com>
2764 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2765 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2766 * configure.ac: Try to use guild to compile an scm file, if it fails
2767 then disable guile support.
2768 * configure: Regenerate.
2769 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2771 (GUILE_COMPILED_FILES): New variable.
2772 (GUILE_FILES) Update.
2773 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2774 (stamp-guile): Compile scm files.
2775 * guile/guile.c (boot_guile_support): New function.
2776 (standard_throw_args_p): New function.
2777 (print_standard_throw_error, print_throw_error): New functions.
2778 (handle_boot_error): New function.
2779 (initialize_scheme_side): Rewrite to call boot_guile_support.
2780 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2781 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2783 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2784 Doug Evans <xdje42@gmail.com>
2787 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2788 * guile/lib/gdb/support.scm: New file.
2789 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2790 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2792 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2794 (%assert-type): Ditto, and renamed to assert-type.
2795 (%exception-print-style): Delete.
2797 2014-07-26 Doug Evans <xdje42@gmail.com>
2800 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2801 * configure: Regenerate.
2802 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2804 (PYTHON_FILES): New variable.
2805 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2806 (GUILE_FILES): New variable.
2807 (stamp-python, install-python, uninstall-python): Handle empty
2809 (stamp-guile, install-guile, uninstall-guile): Ditto.
2811 2014-07-26 Doug Evans <xdje42@gmail.com>
2814 * guile/lib/gdb.scm (pretty-printers): Export.
2815 (set-pretty-printers!): Export.
2816 * guile/lib/gdb/printing.scm (gdb module): Update.
2817 (prepend-pretty-printer!, append-pretty-printer!): Update.
2818 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2819 (pretty_printer_list_var): Delete.
2820 (pretty_printer_list): New static global.
2821 (gdbscm_pretty_printers): New function.
2822 (gdbscm_set_pretty_printers_x): New function.
2823 (ppscm_find_pretty_printer_from_gdb): Update.
2824 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2825 (gdbscm_initialize_pretty_printers): Update.
2827 2014-07-26 Doug Evans <xdje42@gmail.com>
2830 * configure.ac: Add check for header gc/gc.h.
2831 Add check for function setenv.
2832 * configure: Regenerate.
2833 * config.in: Regenerate.
2834 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2836 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2838 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2839 variation in gdbarch matching.
2841 2014-07-25 Tom Tromey <tromey@redhat.com>
2843 * exec.c (using_exec_ops): Remove.
2844 (exec_close_1): Update. Remove extraneous block, reindent.
2845 (add_target_sections): Use target_is_pushed.
2847 2014-07-25 Pedro Alves <palves@redhat.com>
2849 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2850 * monitor.c (monitor_create_inferior): Likewise.
2851 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2852 * remote-sim.c (gdbsim_create_inferior): Likewise.
2853 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2854 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2855 * windows-nat.c (do_initial_windows_stuff): Likewise.
2857 2014-07-25 Pedro Alves <palves@redhat.com>
2859 * NEWS: Mention signal passing and "signal" command changes.
2860 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2862 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2864 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2865 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2866 (jump_command): Adjust clear_proceed_status call.
2867 (signal_command): Warn if other thread that are resumed have
2868 signals that will be delivered. Adjust clear_proceed_status call.
2869 (until_next_command, finish_command)
2870 (proceed_after_attach_callback, attach_command_post_wait)
2871 (attach_command): Adjust clear_proceed_status call.
2872 * infrun.c (proceed_after_vfork_done): Likewise.
2873 (proceed_after_attach_callback): Adjust comment.
2874 (clear_proceed_status_thread): Clear stop_signal if not in pass
2876 (clear_proceed_status_callback): Delete.
2877 (clear_proceed_status): New 'step' parameter. Only clear the
2878 proceed status of threads the command being prepared is about to
2880 (proceed): If passed in an explicit signal, override stop_signal
2881 with it. Don't pass the last stop signal to the thread we're
2883 (init_wait_for_inferior): Adjust clear_proceed_status call.
2884 (switch_back_to_stepped_thread): Clear the signal if it should not
2886 * infrun.h (clear_proceed_status): New 'step' parameter.
2887 (user_visible_resume_ptid): Add comment.
2888 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2889 signal is in pass state.
2890 * remote.c (append_pending_thread_resumptions): Likewise.
2891 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2893 2014-07-25 Tom Tromey <tromey@redhat.com>
2895 * target.h (target_stopped_data_address)
2896 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2899 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2901 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2903 (avr_pointer_to_address): Likewise.
2905 2014-07-24 Tom Tromey <tromey@redhat.com>
2907 * monitor.c (compile_pattern): Update.
2908 * target.h (struct target_ops) <to_shortname, to_longname,
2911 2014-07-24 Tom Tromey <tromey@redhat.com>
2913 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2914 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2915 (add_info_alias, add_com): Make "doc" const.
2916 (print_doc_line): Make "str" const.
2917 (delete_cmd): Update.
2918 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2919 (print_doc_line): Update.
2920 * cli/cli-script.c (document_command): Update.
2921 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2922 (add_com, add_info, add_info_alias): Update.
2923 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2924 * python/py-cmd.c (cmdpy_destroyer): Update.
2926 2014-07-24 Tom Tromey <tromey@redhat.com>
2928 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2929 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2930 (help_cmd_list): Constify.
2931 (lookup_cmd): Update.
2932 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2934 (help_cmd_list, apropos_cmd): Update.
2935 * cli/cli-script.c (show_user): Update.
2936 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2937 * cli/cli-setshow.h (cmd_show_list): Update.
2938 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2939 (cmd_show_list): Update.
2940 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2941 * python/py-cmd.c (cmdpy_destroyer): Update.
2943 2014-07-24 Tom Tromey <tromey@redhat.com>
2945 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2946 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2948 * command.h (deprecate_cmd): Update.
2949 * maint.c (maintenance_do_deprecate): Add casts.
2951 2014-07-24 Tom Tromey <tromey@redhat.com>
2953 * cli/cli-decode.c (help_cmd): Make parameter "const".
2954 * cli/cli-decode.h (help_cmd): Update.
2956 2014-07-24 Tom Tromey <tromey@redhat.com>
2958 * stack.c (up_silently_base, down_silently_base): Make argument
2961 2014-07-24 Tom Tromey <tromey@redhat.com>
2963 * solib.c (solib_add): Make "pattern" const.
2964 * solib.h (solib_add): Update.
2966 2014-07-24 Tom Tromey <tromey@redhat.com>
2968 * remote.c (remote_serial_open, print_packet, putpkt)
2969 (putpkt_binary): Constify.
2970 * remote.h (putpkt): Update.
2972 2014-07-24 Tom Tromey <tromey@redhat.com>
2974 * monitor.c (monitor_open): Make "args" const.
2975 * monitor.h (monitor_open): Update.
2977 2014-07-24 Tom Tromey <tromey@redhat.com>
2979 * maint.c (match_bfd_flags): Make "string" const.
2980 (print_bfd_section_info): Remove casts.
2981 (print_objfile_section_info): Make "string" const.
2983 2014-07-24 Tom Tromey <tromey@redhat.com>
2985 * inf-child.c (inf_child_open_target): Make "arg" const.
2986 * inf-child.h (inf_child_open_target): Update.
2988 2014-07-24 Tom Tromey <tromey@redhat.com>
2990 * environ.c (unset_in_environ): Make "var" const.
2991 * environ.h (unset_in_environ): Update.
2993 2014-07-24 Tom Tromey <tromey@redhat.com>
2995 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2997 (scan_filename_with_cleanup): Likewise.
2998 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2999 Make arguments const.
3000 (restore_command): Update.
3002 2014-07-24 Pedro Alves <palves@redhat.com>
3004 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3006 2014-07-24 Tom Tromey <tromey@redhat.com>
3007 Gary Benson <gbenson@redhat.com>
3009 * nat/linux-ptrace.c (additional_flags): New global.
3010 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3011 additional_flags; don't check GDBSERVER.
3012 (linux_ptrace_set_additional_flags): New function.
3013 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3015 * linux-nat.c (_initialize_linux_nat): Call
3016 linux_ptrace_set_additional_flags.
3018 2014-07-24 Tom Tromey <tromey@redhat.com>
3020 * make-target-delegates (munge_type, write_debugmethod): New
3022 (debug_names): New global.
3023 ($TARGET_DEBUG_PRINTER): New global.
3024 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3026 Write debug methods. Generate init_debug_target.
3027 * target-debug.h: New file.
3028 * target-delegates.c: Rebuild.
3029 * target.c: Include target-debug.h.
3030 (debug_target): Hoist definition.
3031 (target_kill, target_get_section_table, target_memory_map)
3032 (target_flash_erase, target_flash_done, target_detach)
3033 (target_disconnect, target_wait, target_resume)
3034 (target_pass_signals, target_program_signals, target_follow_fork)
3035 (target_mourn_inferior, target_search_memory)
3036 (target_thread_address_space, target_close)
3037 (target_find_new_threads, target_core_of_thread)
3038 (target_verify_memory, target_insert_mask_watchpoint)
3039 (target_remove_mask_watchpoint): Remove targetdebug code.
3040 (debug_to_post_attach, debug_to_prepare_to_store)
3041 (debug_to_files_info, debug_to_insert_breakpoint)
3042 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3043 (debug_to_region_ok_for_hw_watchpoint)
3044 (debug_to_can_accel_watchpoint_condition)
3045 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3046 (debug_to_watchpoint_addr_within_range)
3047 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3048 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3049 (debug_to_terminal_init, debug_to_terminal_inferior)
3050 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3051 (debug_to_terminal_save_ours, debug_to_terminal_info)
3052 (debug_to_load, debug_to_post_startup_inferior)
3053 (debug_to_insert_fork_catchpoint)
3054 (debug_to_remove_fork_catchpoint)
3055 (debug_to_insert_vfork_catchpoint)
3056 (debug_to_remove_vfork_catchpoint)
3057 (debug_to_insert_exec_catchpoint)
3058 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3059 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3060 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3061 (setup_target_debug): Call init_debug_target.
3062 * target.h (TARGET_DEBUG_PRINTER): New macro.
3063 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3064 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3066 2014-07-24 Gary Benson <gbenson@redhat.com>
3068 * exceptions.h (throw_vfatal): Renamed to...
3069 (throw_vquit): New declaration.
3070 (throw_quit): Likewise.
3071 * exceptions.c (throw_vfatal): Renamed to...
3072 (throw_vquit): New function.
3073 (throw_quit): Likewise.
3074 (throw_error): Call throw_verror rather than throw_it.
3075 * utils.h (vfatal): Removed.
3077 * utils.c (vfatal): Removed.
3079 (internal_verror): Replaced call to fatal with call to throw_quit.
3080 (quit): Replaced calls to fatal with calls to throw_quit.
3082 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3084 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3087 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3089 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3090 less than zero in conditional expression.
3092 2014-07-23 Tom Tromey <tromey@redhat.com>
3094 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3095 ($INTRO_PART): Don't match whitespace.
3096 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3098 ($METHOD): Add $METHOD_TRAILER.
3100 (scan_target_h): New sub.
3101 Change main loop not to collect state.
3102 * target-delegates.c: Rebuild.
3104 2014-07-23 Gary Benson <gbenson@redhat.com>
3106 * cp-support.c (gdb_demangle): Fix build on systems without
3109 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3111 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3112 for reference entry value target data value.
3114 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3116 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3117 value_available_contents_eq.
3119 2014-07-22 Pedro Alves <palves@redhat.com>
3121 * value.c (allocate_optimized_out_value): Don't mark value as
3124 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3126 * MAINTAINERS (Write After Approval): Update my email address.
3128 2014-07-20 Doug Evans <dje@google.com>
3131 * remote.c (putpkt_binary): Add text to error message.
3133 2014-07-20 Yao Qi <yao@codesourcery.com>
3135 * eval.c: Remove "Chill" from comments.
3136 * gdbtypes.h: Likewise.
3137 * symtab.h: Likewise.
3139 2014-07-20 Yao Qi <yao@codesourcery.com>
3141 * std-operator.def: Update comments to TERNOP_SLICE.
3143 2014-07-20 Yao Qi <yao@codesourcery.com>
3145 * std-operator.def: Remove BINOP_RANGE.
3146 * breakpoint.c (watchpoint_exp_is_const): Update.
3147 * expprint.c (dump_subexp_body_standard): Likewise.
3148 * eval.c (init_array_element): Remove dead code.
3149 (evaluate_subexp_standard): Likewise.
3151 2014-07-20 Yao Qi <yao@codesourcery.com>
3153 * std-operator.def: Remove BINOP_IN.
3154 * breakpoint.c (watchpoint_exp_is_const): Update.
3155 * eval.c (evaluate_subexp_standard): Likewise.
3156 * expprint.c (dump_subexp_body_standard): Likewise.
3158 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3160 * microblaze-tdep.c (microblaze_register_names): Add
3161 the rshr and rslr register names.
3162 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3163 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3164 Use of tdesc_numbered_register. Use of
3165 microblaze_register_g_packet_guesses. Use of
3166 tdesc_use_registers. Use of set_gdbarch_register_type.
3167 (microblaze_register_g_packet_guesses): New.
3168 * microblaze-tdep.h (microblaze_reg_num): Add
3169 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3170 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3171 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3172 * features/microblaze-core.xml: New file.
3173 * features/microblaze-stack-protect.xml: New file.
3174 * features/microblaze-with-stack-protect.c: New file.
3175 * features/microblaze-with-stack-protect.xml: New file.
3176 * features/microblaze.xml: New file.
3177 * features/microblaze.c: New file.
3178 * features/Makefile (microblaze-with-stack-protect): Add
3179 microblaze-with-stack-protect microblaze and microblaze-expedite.
3180 * regformats/microblaze-with-stack-protect.dat: New file.
3181 * regformats/microblaze.dat: New file.
3182 * doc/gdb.texinfo (MicroBlaze Features): Added.
3184 2014-07-18 Tom Tromey <tromey@redhat.com>
3186 * exec.c (exec_ops): Now static.
3187 * exec.h (exec_ops): Don't declare.
3189 2014-07-18 Tom Tromey <tromey@redhat.com>
3191 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3192 to find_target_beneath.
3193 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3194 find_target_beneath.
3195 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3197 2014-07-18 Tom Tromey <tromey@redhat.com>
3200 * utils.c (quit): Use target_supports_terminal_ours.
3201 * target.h (target_supports_terminal_ours): Declare.
3202 * target.c (target_supports_delete_record): Don't check
3203 to_delete_record against NULL.
3204 (target_supports_terminal_ours): New function.
3206 2014-07-18 Tom Tromey <tromey@redhat.com>
3209 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3210 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3211 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3212 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3213 * windows-nat.c (windows_xfer_partial): Always delegate.
3214 * record-btrace.c (record_btrace_xfer_partial): Simplify
3216 (record_btrace_fetch_registers, record_btrace_store_registers)
3217 (record_btrace_prepare_to_store, record_btrace_resume)
3218 (record_btrace_wait, record_btrace_find_new_threads)
3219 (record_btrace_thread_alive): Likewise.
3220 * procfs.c (procfs_xfer_partial): Always delegate.
3221 * corelow.c (core_xfer_partial): Always delegate.
3222 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3224 2014-07-18 Tom Tromey <tromey@redhat.com>
3226 * exec.c (exec_make_note_section): Move earlier.
3228 2014-07-17 Doug Evans <dje@google.com>
3231 * maint.c (count_symtabs_and_blocks): Handle NULL
3232 current_program_space.
3233 (report_command_stats): Check global enabled flag in addition to
3234 recorded enabled flag.
3235 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3237 2014-07-16 Pedro Alves <palves@redhat.com>
3239 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3241 2014-07-16 Tom Tromey <tromey@redhat.com>
3243 * target.h (struct target_ops) <to_delete_record>: Reformat
3246 2014-07-16 Tom Tromey <tromey@redhat.com>
3248 * target-delegates.c: Rebuild.
3250 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3252 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3253 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3254 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3255 (avr_pointer_to_address): Likewise.
3256 (avr_address_class_type_flags): New function.
3257 (avr_address_class_type_flags_to_name): Likewise.
3258 (avr_address_class_name_to_type_flags): Likewise.
3259 (avr_gdbarch_init): Set address_class_type_flags,
3260 address_class_type_flags_to_name and
3261 address_class_name_to_type_flags.
3263 2014-07-15 Pedro Alves <palves@redhat.com>
3265 * linux-nat.c (kill_callback): Save errno and work with saved
3268 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3270 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3272 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3274 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3275 breakpoint support correctly.
3277 2014-07-14 Pedro Alves <palves@redhat.com>
3279 * utils.c (prompt_for_continue): Call target_terminal_ours.
3281 2014-07-14 Pedro Alves <palves@redhat.com>
3283 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3284 catch_errors. Don't re-enable stdin or notify observers where,
3286 (fetch_inferior_event_wrapper): Delete.
3288 2014-07-14 Pedro Alves <palves@redhat.com>
3291 * top.c: Include "inf-loop.h".
3292 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3294 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3296 (gdb_readline_wrapper): Store whether the target is async, and
3299 2014-07-14 Pedro Alves <palves@redhat.com>
3302 * top.c (gdb_readline_wrapper_line): Tweak comment.
3303 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3304 the input handler callback.
3306 2014-07-14 Pedro Alves <palves@redhat.com>
3309 * main.c: Include event-top.h.
3310 (handle_command_errors): New function.
3311 (catch_command_errors, catch_command_errors_const): Use it.
3313 2014-07-14 Pedro Alves <palves@redhat.com>
3315 * exceptions.c (catch_command_errors, catch_command_errors_const):
3317 * exceptions.h (catch_command_errors_ftype)
3318 (catch_command_errors_const_ftype): Moved to main.c.
3319 (catch_command_errors, catch_command_errors_const): Delete
3321 * main.c (catch_command_errors_ftype)
3322 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3323 (catch_command_errors, catch_command_errors_const)): Moved here
3324 from exceptions.c and make static.
3326 2014-07-14 Pedro Alves <palves@redhat.com>
3328 * exceptions.c (print_any_exception): Delete.
3329 (catch_exceptions_with_msg): Use exception_print instead of
3330 print_any_exception.
3331 (catch_errors): Use exception_fprintf instead of
3332 print_any_exception.
3333 (catch_command_errors, catch_command_errors_const): Use
3334 exception_print instead of print_any_exception.
3336 2014-07-14 Pedro Alves <palves@redhat.com>
3338 * infcall.c (run_inferior_call): Set 'sync_execution' while
3339 running the inferior call.
3341 2014-07-14 Pedro Alves <palves@redhat.com>
3343 * value.c (value_contents_equal): Delete function.
3344 * value.h (value_contents_equal): Delete declaration.
3346 2014-07-14 Tom Tromey <tromey@redhat.com>
3349 * gdbtypes.c (is_dynamic_type_internal): New function, from
3351 (is_dynamic_type): Rewrite.
3352 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3353 (resolve_dynamic_struct): Likewise.
3354 (resolve_dynamic_type_internal): New function, from
3355 resolve_dynamic_type.
3356 (resolve_dynamic_type): Rewrite.
3358 2014-07-14 Tom Tromey <tromey@redhat.com>
3360 * target.c (target_require_runnable): Also check record_stratum.
3363 2014-07-11 Yao Qi <yao@codesourcery.com>
3365 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3366 thumb_instruction_restores_sp return true.
3368 2014-07-11 Yao Qi <yao@codesourcery.com>
3370 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3371 (thumb_in_function_epilogue_p): Call
3372 thumb_instruction_restores_sp.
3374 2014-07-11 Yao Qi <yao@codesourcery.com>
3376 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3378 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3380 2014-07-11 Gary Benson <gbenson@redhat.com>
3382 * amd64-linux-nat.c (gdbcore.h): Remove include.
3383 (regset.h): Likewise.
3384 (nat/linux-btrace.h): Likewise.
3385 (btrace.h): Likewise.
3386 (gdb_assert.h): Likewise.
3387 (string.h): Likewise.
3388 (sys/uio.h): Likewise.
3389 (sys/debugreg.h): Likewise.
3390 (sys/syscall.h): Likewise.
3391 (sys/procfs.h): Likewise.
3392 (sys/user.h): Likewise.
3393 (asm/ptrace.h): Likewise.
3394 (i386-nat.h): Likewise.
3395 * i386-linux-nat.c (i386-nat.h): Likewise.
3396 (regset.h): Likewise.
3397 (target.h): Likewise.
3398 (linux-nat.h): Likewise.
3399 (nat/linux-btrace.h): Likewise.
3400 (btrace.h): Likewise.
3401 (gdb_assert.h): Likewise.
3402 (string.h): Likewise.
3403 (sys/uio.h): Likewise.
3404 (sys/user.h): Likewise.
3405 (sys/procfs.h): Likewise.
3406 (sys/reg.h): Likewise.
3407 (sys/debugreg.h): Likewise.
3408 (ORIG_EAX): Remove definition.
3410 2014-07-11 Gary Benson <gbenson@redhat.com>
3412 * i386-linux-nat.h: New file.
3413 * x86-linux-nat.h: Likewise.
3414 * x86-linux-nat.c: Likewise.
3415 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3416 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3417 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3418 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3419 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3420 (PTRACE_SETREGSET): Likewise.
3421 (arch_lwp_info): Now in x86-linux-nat.c.
3422 (have_ptrace_getregset): Now in x86-linux-nat.h.
3423 (x86_linux_dr_get): Now in x86-linux-nat.c.
3424 (x86_linux_dr_set): Likewise.
3425 (x86_linux_dr_get_addr): Likewise.
3426 (x86_linux_dr_get_control): Likewise.
3427 (x86_linux_dr_get_status): Likewise.
3428 (update_debug_registers_callback): Likewise.
3429 (x86_linux_dr_set_control): Likewise.
3430 (x86_linux_dr_set_addr): Likewise.
3431 (x86_linux_prepare_to_resume): Likewise.
3432 (x86_linux_new_thread): Likewise.
3433 (x86_linux_new_fork): Likewise.
3434 (x86_linux_get_thread_area): Likewise.
3435 (super_post_startup_inferior): Likewise.
3436 (x86_linux_child_post_startup_inferior): Likewise.
3437 (AMD64_LINUX_USER64_CS): Likewise.
3438 (AMD64_LINUX_X32_DS): Likewise.
3439 (x86_linux_read_description): Likewise.
3440 (x86_linux_enable_btrace): Likewise.
3441 (x86_linux_disable_btrace): Likewise.
3442 (x86_linux_teardown_btrace): Likewise.
3443 (x86_linux_read_btrace): Likewise.
3444 (x86_linux_create_target): Likewise.
3445 (x86_linux_add_target): Likewise.
3446 * i386-linux-nat.c (x86-linux-nat.h): New include.
3447 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3448 (PTRACE_SETREGSET): Likewise.
3449 (arch_lwp_info): Now in x86-linux-nat.c.
3450 (have_ptrace_getregset): Now in x86-linux-nat.h.
3451 (x86_linux_dr_get): Now in x86-linux-nat.c.
3452 (x86_linux_dr_set): Likewise.
3453 (x86_linux_dr_get_addr): Likewise.
3454 (x86_linux_dr_get_control): Likewise.
3455 (x86_linux_dr_get_status): Likewise.
3456 (update_debug_registers_callback): Likewise.
3457 (x86_linux_dr_set_control): Likewise.
3458 (x86_linux_dr_set_addr): Likewise.
3459 (x86_linux_prepare_to_resume): Likewise.
3460 (x86_linux_new_thread): Likewise.
3461 (x86_linux_new_fork): Likewise.
3462 (x86_linux_get_thread_area): Likewise.
3463 (super_post_startup_inferior): Likewise.
3464 (x86_linux_child_post_startup_inferior): Likewise.
3465 (AMD64_LINUX_USER64_CS): Likewise.
3466 (AMD64_LINUX_X32_DS): Likewise.
3467 (x86_linux_read_description): Likewise.
3468 (x86_linux_enable_btrace): Likewise.
3469 (x86_linux_disable_btrace): Likewise.
3470 (x86_linux_teardown_btrace): Likewise.
3471 (x86_linux_read_btrace): Likewise.
3472 (x86_linux_create_target): Likewise.
3473 (x86_linux_add_target): Likewise.
3475 2014-07-11 Gary Benson <gbenson@redhat.com>
3477 * amd64-linux-nat.c: Comment and whitespace changes.
3478 * i386-linux-nat.c: Comment and whitespace changes.
3480 2014-07-11 Gary Benson <gbenson@redhat.com>
3482 * amd64-linux-nat.c (x86_linux_create_target): New function.
3483 (x86_linux_add_target): Likewise.
3484 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3485 * i386-linux-nat.c (x86_linux_create_target): New function.
3486 (x86_linux_add_target): Likewise.
3487 (_initialize_i386_linux_nat): Delegate to the above new functions.
3489 2014-07-11 Gary Benson <gbenson@redhat.com>
3491 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3492 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3493 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3494 (ps_get_thread_area): Delegate to the above.
3496 2014-07-11 Gary Benson <gbenson@redhat.com>
3498 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3499 x86_linux_read_description. All uses updated. amd64-specific
3500 code conditionalized. Conditionalized i386-specific code added.
3501 Redundant cast removed.
3502 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3503 x86_linux_read_description. All uses updated. i386-specific
3504 code conditionalized. Conditionalized amd64-specific code added.
3505 One sizeof replaced with the actual type it is describing.
3507 2014-07-11 Gary Benson <gbenson@redhat.com>
3509 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3510 x86_linux_dr_get. All uses updated.
3511 (amd64_linux_dr_set): Renamed to
3512 x86_linux_dr_set. All uses updated.
3513 (amd64_linux_dr_get_addr): Renamed to
3514 x86_linux_dr_get_addr. All uses updated.
3515 (amd64_linux_dr_get_control): Renamed to
3516 x86_linux_dr_get_control. All uses updated.
3517 (amd64_linux_dr_get_status): Renamed to
3518 x86_linux_dr_get_status. All uses updated.
3519 (amd64_linux_dr_set_control): Renamed to
3520 x86_linux_dr_set_control. All uses updated.
3521 (amd64_linux_dr_set_addr): Renamed to
3522 x86_linux_dr_set_addr. All uses updated.
3523 (amd64_linux_prepare_to_resume): Renamed to
3524 x86_linux_prepare_to_resume. All uses updated.
3525 (amd64_linux_new_thread): Renamed to
3526 x86_linux_new_thread. All uses updated.
3527 (amd64_linux_new_fork): Renamed to
3528 x86_linux_new_fork. All uses updated.
3529 (amd64_linux_child_post_startup_inferior): Renamed to
3530 x86_linux_child_post_startup_inferior. All uses updated.
3531 (amd64_linux_enable_btrace): Renamed to
3532 x86_linux_enable_btrace. All uses updated.
3533 (amd64_linux_disable_btrace): Renamed to
3534 x86_linux_disable_btrace. All uses updated.
3535 (amd64_linux_teardown_btrace): Renamed to
3536 x86_linux_teardown_btrace. All uses updated.
3537 (amd64_linux_read_btrace): Renamed to
3538 x86_linux_read_btrace. All uses updated.
3539 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3540 x86_linux_dr_get. All uses updated.
3541 (i386_linux_dr_set): Renamed to
3542 x86_linux_dr_set. All uses updated.
3543 (i386_linux_dr_get_addr): Renamed to
3544 x86_linux_dr_get_addr. All uses updated.
3545 (i386_linux_dr_get_control): Renamed to
3546 x86_linux_dr_get_control. All uses updated.
3547 (i386_linux_dr_get_status): Renamed to
3548 x86_linux_dr_get_status. All uses updated.
3549 (i386_linux_dr_set_control): Renamed to
3550 x86_linux_dr_set_control. All uses updated.
3551 (i386_linux_dr_set_addr): Renamed to
3552 x86_linux_dr_set_addr. All uses updated.
3553 (i386_linux_prepare_to_resume): Renamed to
3554 x86_linux_prepare_to_resume. All uses updated.
3555 (i386_linux_new_thread): Renamed to
3556 x86_linux_new_thread. All uses updated.
3557 (i386_linux_new_fork): Renamed to
3558 x86_linux_new_fork. All uses updated.
3559 (i386_linux_child_post_startup_inferior): Renamed to
3560 x86_linux_child_post_startup_inferior. All uses updated.
3561 (i386_linux_enable_btrace): Renamed to
3562 x86_linux_enable_btrace. All uses updated.
3563 (i386_linux_disable_btrace): Renamed to
3564 x86_linux_disable_btrace. All uses updated.
3565 (i386_linux_teardown_btrace): Renamed to
3566 x86_linux_teardown_btrace. All uses updated.
3567 (i386_linux_read_btrace): Renamed to
3568 x86_linux_read_btrace. All uses updated.
3570 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3572 * remote.c (extended_remote_post_attach): New function.
3573 (init_extended_remote_ops): Install it as to_post_attach method.
3575 2014-07-09 Pedro Alves <palves@redhat.com>
3577 * infcmd.c (attach_command_post_wait): Don't call
3578 target_terminal_inferior here.
3579 (attach_command): Call it here instead.
3581 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3583 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3585 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3586 from varobj.c, with additional checks.
3587 (c_varobj_ops): Fill in is_path_expr_parent field.
3588 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3589 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3591 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3593 (varobj_default_is_path_expr_parent): New function.
3594 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3595 (varobj_default_is_path_expr_parent): Declare new function.
3597 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3599 * infcmd.c (finish_backward): Turn internal error into normal error.
3601 2014-07-07 Pedro Alves <palves@redhat.com>
3604 * remote.c (async_handle_remote_sigint)
3605 (async_handle_remote_sigint_twice): Call
3606 gdb_call_async_signal_handler instead of
3607 mark_async_signal_handler.
3609 2014-07-07 Tom Tromey <tromey@redhat.com>
3611 * target-delegates.c: Rebuild.
3612 * target.c (target_info_record): Remove.
3613 * record.c (info_record_command): Unconditionally call
3615 * target.h (struct target_ops) <to_info_record>: Use
3616 TARGET_DEFAULT_IGNORE.
3617 (target_info_record): Remove.
3619 2014-07-07 Tom Tromey <tromey@redhat.com>
3621 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3622 TARGET_DEFAULT_NORETURN.
3623 * target.c (generic_tls_error): New function.
3624 (target_translate_tls_address): Don't search target stack.
3625 * target-delegates.c: Rebuild.
3626 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3628 * linux-thread-db.c (thread_db_get_thread_local_address):
3629 Unconditionally call beneath target.
3631 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3633 * cli/cli-logging.c (pop_output_files): Assign targerr to
3636 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3638 * MAINTAINERS (Write After Approval): Update my email address.
3640 2014-07-02 Gary Benson <gbenson@redhat.com>
3642 * proc-service.c (ps_xfer_memory): Update comment.
3643 (ps_pstop): Remove unused function.
3644 (ps_pcontinue): Likewise.
3645 (ps_lstop): Likewise.
3646 (ps_lcontinue): Likewise.
3647 (ps_lgetxregsize): Likewise.
3648 (ps_lgetxregs): Likewise.
3649 (ps_lsetxregs): Likewise.
3650 (ps_plog): Likewise.
3651 (ps_ptread): Likewise.
3652 (ps_ptwrite): Likewise.
3654 2014-07-01 Mark Wielaard <mjw@redhat.com>
3656 * dwarf2read.c (add_array_cv_type): New function.
3657 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3658 (read_tag_volatile_type): Likewise.
3660 2014-07-01 Tom Tromey <tromey@redhat.com>
3662 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3663 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3664 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3665 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3666 * command.h (cmd_cfunc_ftype): Move earlier.
3667 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3668 (add_com, add_info): Use cmd_cfunc_ftype.
3670 2014-06-30 Tom Tromey <tromey@redhat.com>
3672 * symtab.c (operator_chars): Make parameters and return type
3674 (file_matches): Make "files" const.
3675 (struct search_symbols_data) <files>: Now const.
3676 (search_symbols): Make "regexp" and "files" parameters const.
3678 (symtab_symbol_info): Remove cast.
3679 (rbreak_command): Update.
3680 * symtab.h (search_symbols): Update.
3682 2014-06-27 Yao Qi <yao@codesourcery.com>
3684 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3685 Change parameter type to 'struct thread_info *'. Caller
3687 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3689 * dummy-frame.c (struct dummy_frame_id): New.
3690 (dummy_frame_id_eq): New function.
3691 (struct dummy_frame) <id>: Change its type to 'struct
3693 (dummy_frame_push): Add parameter ptid and save it in
3695 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3697 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3699 (lookup_dummy_frame): Change parameter type to 'struct
3700 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3701 instead of frame_id_eq.
3702 (dummy_frame_pop): Add parameter ptid. Callers updated.
3703 Update comments. Compose dummy_frame_id and pass it to
3705 (dummy_frame_discard): Add parameter ptid.
3706 (dummy_frame_sniffer): Compose dummy_frame_id and call
3707 dummy_frame_id_eq instead of frame_id_eq.
3708 (fprint_dummy_frames): Print ptid.
3709 * dummy-frame.h: Remove comments.
3710 (dummy_frame_push): Add ptid in declaration.
3711 (dummy_frame_pop, dummy_frame_discard): Likewise.
3713 2014-06-26 Tom Tromey <tromey@redhat.com>
3715 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3716 * command.h (error_no_arg): Update.
3718 2014-06-26 Tom Tromey <tromey@redhat.com>
3720 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3721 (do_show_command): Make "arg" const.
3722 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3724 2014-06-26 Tom Tromey <tromey@redhat.com>
3726 * record-full.c (record_full_get_bookmark): Make "args" const.
3727 (record_full_goto_bookmark): Make "raw_bookmark" const.
3728 * record.c (record_goto): New function.
3729 (cmd_record_goto): Use it. Now static.
3730 * record.h (record_goto): Declare.
3731 (cmd_record_goto): Remove declaration.
3732 * target-delegates.c: Rebuild.
3733 * target.h (struct target_ops) <to_get_bookmark,
3734 to_goto_bookmark>: Make parameter const.
3736 2014-06-26 Tom Tromey <tromey@redhat.com>
3738 * defs.h (generic_load): Update.
3739 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3740 * monitor.c (monitor_load): Make "args" const.
3741 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3742 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3744 (mips_load): Make "file" const.
3745 * remote-sim.c (gdbsim_load): Make "args" const.
3746 * remote.c (remote_load): Make "name" const.
3747 * symfile.c (generic_load): Make "args" const.
3748 * target-delegates.c: Rebuild.
3749 * target.c (target_load): Make "arg" const.
3750 (debug_to_load): Make "args" const.
3751 * target.h (struct target_ops) <to_load>: Make parameter const.
3752 (target_load): Update.
3754 2014-06-26 Tom Tromey <tromey@redhat.com>
3757 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3758 (dwarf2_physname, read_partial_die)
3759 (guess_partial_die_structure_name, fixup_partial_die)
3760 (guess_full_die_structure_name, anonymous_struct_prefix)
3761 (dwarf2_name): Use per-BFD obstack.
3763 2014-06-26 Yao Qi <yao@codesourcery.com>
3765 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3766 dummyframe and this_id into inner block below.
3768 2014-06-26 Yao Qi <yao@codesourcery.com>
3770 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3771 with "signal_pass[0]" in the initialization of signal_pass.
3773 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3775 * record-btrace.c (record_btrace_generating_corefile)
3776 (record_btrace_prepare_to_generate_core)
3777 (record_btrace_done_generating_core): New.
3778 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3779 (record_btrace_store_registers, record_btrace_prepare_to_store):
3780 Forward request when generating a core file.
3781 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3782 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3783 to_done_generating_core.
3785 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3787 * target.h (target_ops) <to_prepare_to_generate_core>
3788 <to_done_generating_core>: New.
3789 (target_prepare_to_generate_core, target_done_generating_core): New.
3790 * target.c (target_prepare_to_generate_core)
3791 (target_done_generating_core): New.
3792 * target-delegates.c: Regenerate.
3793 * gcore.c: (write_gcore_file): Rename to ...
3794 (write_gcore_file_1): ...this.
3795 (write_gcore_file): Call target_prepare_to_generate_core
3796 and target_done_generating_core.
3798 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3800 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3801 * gcore.c (write_gcore_file): Free memory returned from
3802 make_corefile_notes.
3803 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3804 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3806 2014-06-24 Yao Qi <yao@codesourcery.com>
3808 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3809 (arm_linux_init_abi): Set skip_trampoline_code with
3810 gdbarch_skip_trampoline_code instead of
3811 find_solib_trampoline_target.
3813 2014-06-24 Yao Qi <yao@codesourcery.com>
3815 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3816 arm_skip_bx_reg returns non-zero.
3818 2014-06-24 Yao Qi <yao@codesourcery.com>
3820 * arm-tdep.c (arm_skip_bx_reg): New function.
3821 (arm_skip_stub): Call arm_skip_bx_reg.
3823 2014-06-23 Don Breazeal <donb@codesourcery.com>
3825 * MAINTAINERS: Add myself as write-after-approval maintainer.
3827 2014-06-23 Pedro Alves <palves@redhat.com>
3829 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3830 DR_CONTROL before setting DR0..DR3.
3831 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3832 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3833 bits of DR_CONTROL related to the debug register slot being
3834 disabled. If all slots are vacant, clear local slowdown as well,
3835 and assert DR_CONTROL is 0.
3837 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3839 * python/lib/gdb/command/xmethods.py
3840 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3841 current progspace only if the string "progspace" matches LOCUS_RE.
3843 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3845 Fix --with-system-readline with readline-6.3 patch 5.
3846 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3847 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3850 2014-06-20 Tom Tromey <tromey@redhat.com>
3852 * dwarf2read.c (dw2_get_real_path): Use correct type in
3854 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3856 2014-06-20 Gary Benson <gbenson@redhat.com>
3858 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3859 * common/glibc_thread_db.h: Likewise.
3860 * common/i386-cpuid.h: Likewise.
3861 * common/i386-gcc-cpuid.h: Likewise.
3862 * common/linux-btrace.h: Likewise.
3863 * common/linux-osdata.h: Likewise.
3864 * common/linux-procfs.h: Likewise.
3865 * common/linux-ptrace.h: Likewise.
3866 * common/mips-linux-watch.h: Likewise.
3867 * common/linux-btrace.c: Moved to nat.
3868 * common/linux-osdata.c: Likewise.
3869 * common/linux-procfs.c: Likewise.
3870 * common/linux-ptrace.c: Likewise.
3871 * common/mips-linux-watch.c: Likewise.
3872 * nat/gdb_thread_db.h: Moved from common.
3873 * nat/glibc_thread_db.h: Likewise.
3874 * nat/i386-cpuid.h: Likewise.
3875 * nat/i386-gcc-cpuid.h: Likewise.
3876 * nat/linux-btrace.c: Likewise.
3877 * nat/linux-btrace.h: Likewise.
3878 * nat/linux-osdata.c: Likewise.
3879 * nat/linux-osdata.h: Likewise.
3880 * nat/linux-procfs.c: Likewise.
3881 * nat/linux-procfs.h: Likewise.
3882 * nat/linux-ptrace.c: Likewise.
3883 * nat/linux-ptrace.h: Likewise.
3884 * nat/mips-linux-watch.c: Likewise.
3885 * nat/mips-linux-watch.h: Likewise.
3886 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3887 (object file files): Reordered.
3888 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3889 of glibc_thread_db.h.
3891 2014-06-20 Gary Benson <gbenson@redhat.com>
3893 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3894 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3895 (i386_dr_low): Likewise.
3896 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3897 (i386_dr_low_set_addr): Likewise.
3898 (i386_dr_low_get_addr): Likewise.
3899 (i386_dr_low_can_set_control): Likewise.
3900 (i386_dr_low_set_control): Likewise.
3901 (i386_dr_low_get_control): Likewise.
3902 (i386_dr_low_get_status): Likewise.
3903 (i386_get_debug_register_length): Likewise.
3904 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3905 (i386_dr_low): Likewise.
3906 * nat/i386-dregs.c (i386-low.h): Remove include.
3907 (i386-nat.h): Likewise.
3908 (nat/i386-dregs.h): New include.
3909 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3910 (i386_dr_low_set_addr): Likewise.
3911 (i386_dr_low_get_addr): Likewise.
3912 (i386_dr_low_can_set_control): Likewise.
3913 (i386_dr_low_set_control): Likewise.
3914 (i386_dr_low_get_control): Likewise.
3915 (i386_dr_low_get_status): Likewise.
3916 (i386_get_debug_register_length): Likewise.
3917 (debug_hw_points): Likewise.
3919 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3921 * Makefile.in (SFILES): Add d-exp.y.
3922 (YYFILES): Add d-exp.c.
3923 (YYOBJ): Add d-exp.o.
3924 (local-maintainer-clean): Delete d-exp.c.
3925 * d-exp.y: New file.
3926 * d-lang.h (d_parse): New declaration.
3927 (d_error): New declaration.
3928 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3929 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3930 PREC_ORDER operators.
3931 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3933 2014-06-19 Yao Qi <yao@codesourcery.com>
3935 * gdbthread.h (any_running): Remove the declaration.
3936 * thread.c (any_running): Remove.
3938 2014-06-19 Yao Qi <yao@codesourcery.com>
3940 * gdbthread.h (struct thread_info) <state>: Change its type to
3941 'enum thread_state'. Update comments.
3943 2014-06-19 Pedro Alves <palves@redhat.com>
3945 * gdbthread.h (ALL_THREADS): Delete.
3946 (ALL_NON_EXITED_THREADS): New macro.
3947 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3948 instead of ALL_THREADS.
3949 * infrun.c (find_thread_needs_step_over)
3950 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3951 instead of ALL_THREADS.
3952 * record-btrace.c (record_btrace_open)
3953 (record_btrace_stop_recording, record_btrace_close)
3954 (record_btrace_is_replaying, record_btrace_resume)
3955 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3956 * remote.c (append_pending_thread_resumptions): Likewise.
3957 * thread.c (thread_apply_all_command): Likewise.
3959 2014-06-19 Gary Benson <gbenson@redhat.com>
3961 * i386-nat.c (i386_stopped_by_watchpoint):
3962 Use i386_dr_stopped_by_watchpoint.
3963 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3964 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3966 2014-06-19 Gary Benson <gbenson@redhat.com>
3968 * nat/i386-dregs.c: New file.
3969 * Makefile.in (i386-dregs.o): New rule.
3970 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3971 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3972 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3973 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3974 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3975 * config/i386/go32.mh (NATDEPFILES): Likewise.
3976 * config/i386/linux.mh (NATDEPFILES): Likewise.
3977 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3978 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3979 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3980 * i386-nat.h (debug_hw_points): New declaration.
3981 * i386-nat.c (breakpoint.h): Remove include.
3982 (command.h): Likewise.
3983 (target.h): Likewise.
3984 (gdb_assert.h): Likewise.
3985 (debug_hw_points): Made nonstatic.
3986 (debug_printf): Now in i386-dregs.c.
3987 (TARGET_HAS_DR_LEN_8): Likewise.
3988 (DR_CONTROL_SHIFT): Likewise.
3989 (DR_CONTROL_SIZE): Likewise.
3990 (DR_RW_EXECUTE): Likewise.
3991 (DR_RW_WRITE): Likewise.
3992 (DR_RW_READ): Likewise.
3993 (DR_RW_IORW): Likewise.
3994 (DR_LEN_1): Likewise.
3995 (DR_LEN_2): Likewise.
3996 (DR_LEN_4): Likewise.
3997 (DR_LEN_8): Likewise.
3998 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3999 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4000 (DR_ENABLE_SIZE): Likewise.
4001 (DR_LOCAL_SLOWDOWN): Likewise.
4002 (DR_GLOBAL_SLOWDOWN): Likewise.
4003 (DR_CONTROL_RESERVED): Likewise.
4004 (I386_DR_CONTROL_MASK): Likewise.
4005 (I386_DR_VACANT): Likewise.
4006 (I386_DR_LOCAL_ENABLE): Likewise.
4007 (I386_DR_GLOBAL_ENABLE): Likewise.
4008 (I386_DR_DISABLE): Likewise.
4009 (I386_DR_SET_RW_LEN): Likewise.
4010 (I386_DR_GET_RW_LEN): Likewise.
4011 (I386_DR_WATCH_HIT): Likewise.
4012 (i386_wp_op_t): Likewise.
4013 (i386_show_dr): Likewise.
4014 (i386_length_and_rw_bits): Likewise.
4015 (i386_insert_aligned_watchpoint): Likewise.
4016 (i386_remove_aligned_watchpoint): Likewise.
4017 (i386_handle_nonaligned_watchpoint): Likewise.
4018 (i386_update_inferior_debug_regs): Likewise.
4019 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4020 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4021 (i386_region_ok_for_watchpoint):
4022 Use i386_dr_region_ok_for_watchpoint.
4023 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4025 2014-06-19 Gary Benson <gbenson@redhat.com>
4027 * i386-nat.c (i386_insert_hw_breakpoint): Use
4028 i386_insert_watchpoint.
4029 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4031 2014-06-19 Gary Benson <gbenson@redhat.com>
4033 * i386-nat.c (i386_dr_show): Renamed to
4034 i386_show_dr and made static. All uses updated.
4035 (i386_dr_length_and_rw_bits): Renamed to
4036 i386_length_and_rw_bits and made static.
4038 (i386_dr_insert_aligned_watchpoint): Renamed to
4039 i386_insert_aligned_watchpoint and made static.
4041 (i386_dr_remove_aligned_watchpoint): Renamed to
4042 i386_remove_aligned_watchpoint and made static.
4044 (i386_dr_update_inferior_debug_regs): Renamed to
4045 i386_update_inferior_debug_regs and made static.
4047 * nat/i386-dregs.h (i386_dr_show): Removed.
4048 (i386_dr_length_and_rw_bits): Likewise.
4049 (i386_dr_insert_aligned_watchpoint): Likewise.
4050 (i386_dr_remove_aligned_watchpoint): Likewise.
4051 (i386_dr_update_inferior_debug_regs): Likewise.
4053 2014-06-19 Gary Benson <gbenson@redhat.com>
4055 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4056 * configure: Regenerate.
4057 * config.in: Likewise.
4058 * main.c (signal.h): New include.
4059 (setup_alternate_signal_stack): New function.
4060 (captured_main): Call the above.
4061 * cp-support.c (signal.h): New include.
4062 (catch_demangler_crashes): New flag.
4063 (SIGJMP_BUF): New define.
4064 (SIGSETJMP): Likewise.
4065 (SIGLONGJMP): Likewise.
4066 (gdb_demangle_jmp_buf): New static global.
4067 (gdb_demangle_attempt_core_dump): Likewise.
4068 (gdb_demangle_signal_handler): New function.
4069 (gdb_demangle): If catch_demangler_crashes is set, install the
4070 above signal handler before calling bfd_demangle, and restore
4071 the original signal handler afterwards. Display the offending
4072 symbol and call demangler_warning the first time a segmentation
4074 (_initialize_cp_support): New maint set/show command.
4076 2014-06-19 Gary Benson <gbenson@redhat.com>
4078 * utils.h (resource_limit_kind): New enum.
4079 (can_dump_core): New declaration.
4080 (warn_cant_dump_core): Likewise.
4081 (dump_core): Likewise.
4082 * utils.c (dump_core): Made nonstatic. Added new
4083 parameter "limit_kind".
4084 (can_dump_core): Made nonstatic. Moved printing code to...
4085 (warn_cant_dump_core): New function.
4086 (can_dump_core_warn): Likewise.
4087 (internal_vproblem): Replace calls to can_dump_core with
4088 calls to can_dump_core_warn. Supply new argument to each.
4090 2014-06-19 Gary Benson <gbenson@redhat.com>
4092 * utils.h (demangler_vwarning): New declaration.
4093 (demangler_warning): Likewise.
4094 * utils.c (struct internal_problem)
4095 <user_settable_should_quit>: New field.
4096 <user_settable_should_dump_core>: Likewise
4097 (internal_error_problem): Add values for above new fields.
4098 (internal_warning_problem): Likewise.
4099 (demangler_warning_problem): New static global.
4100 (demangler_vwarning): New function.
4101 (demangler_warning): Likewise.
4102 (add_internal_problem_command): Selectively add commands.
4103 (_initialize_utils): New internal problem command.
4104 * maint.c (maintenance_demangler_warning): New function.
4105 (_initialize_maint_cmds): New command.
4107 2014-06-18 Tom Tromey <tromey@redhat.com>
4109 * f-valprint.c (info_common_command_for_block): Update.
4110 * symtab.h (struct general_symbol_info) <common_block>: Now
4113 2014-06-18 Tom Tromey <tromey@redhat.com>
4115 * symtab.h (struct symtab) <blockvector>: Now const.
4116 * ada-lang.c (ada_add_global_exceptions): Update.
4117 * buildsym.c (augment_type_symtab): Update.
4118 * dwarf2read.c (dw2_lookup_symbol): Update.
4119 * jit.c (finalize_symtab): Update.
4120 * jv-lang.c (add_class_symtab_symbol): Update.
4121 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4123 * objfiles.c (objfile_relocate1): Update.
4124 * psymtab.c (lookup_symbol_aux_psymtabs)
4125 (maintenance_check_psymtabs): Update.
4126 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4128 * spu-tdep.c (spu_catch_start): Update.
4129 * symmisc.c (dump_symtab_1): Update.
4130 * symtab.c (lookup_global_symbol_from_objfile)
4131 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4132 (basic_lookup_transparent_type_quick)
4133 (basic_lookup_transparent_type, find_pc_sect_symtab)
4134 (find_pc_sect_line, search_symbols): Update.
4135 * block.c (find_block_in_blockvector): Make "bl" const.
4136 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4138 (blockvector_contains_pc): Make "bv" const.
4139 (block_for_pc_sect): Update.
4140 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4141 (blockvector_contains_pc): Update.
4142 * breakpoint.c (resolve_sal_pc): Update.
4143 * inline-frame.c (block_starting_point_at): Update.
4145 2014-06-18 Tom Tromey <tromey@redhat.com>
4147 * completer.c (complete_line): Make "line_buffer" const.
4148 * completer.h (complete_line): Update.
4150 2014-06-18 Tom Tromey <tromey@redhat.com>
4152 * symtab.c (add_macro_name): Remove unneeded cast.
4154 2014-06-18 Tom Tromey <tromey@redhat.com>
4156 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4157 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4159 2014-06-18 Tom Tromey <tromey@redhat.com>
4161 * probe.c (info_probes_for_ops): Make "arg" const.
4162 * probe.h (info_probes_for_ops): Update.
4164 2014-06-18 Tom Tromey <tromey@redhat.com>
4166 * varobj.c (varobj_create): Update.
4167 * valops.c (value_of_this): Update.
4168 * tracepoint.c (add_local_symbols, scope_info): Update.
4169 * symtab.h (struct general_symbol_info) <block>: Now const.
4170 * symtab.c (skip_prologue_sal)
4171 (default_make_symbol_completion_list_break_on)
4172 (skip_prologue_using_sal): Update.
4173 * stack.h (iterate_over_block_locals)
4174 (iterate_over_block_local_vars): Update.
4175 * stack.c (print_frame_args): Update.
4176 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4178 (get_selected_block): Make return type const.
4179 * python/py-frame.c (frapy_block): Update.
4180 * python/py-block.c (gdbpy_block_for_pc): Update.
4181 * p-exp.y (%union) <bval>: Now const.
4182 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4183 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4184 * m2-exp.y (%union) <bval>: Now const.
4185 * linespec.c (get_current_search_block): Make return type const.
4186 (create_sals_line_offset, find_label_symbols): Update.
4187 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4189 (block_starting_point_at): Make "block" const.
4190 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4191 (check_exception_resume): Update.
4192 * guile/scm-frame.c (gdbscm_frame_block): Update.
4193 * guile/scm-block.c (gdbscm_lookup_block): Update.
4194 * frame.h (get_frame_block): Update.
4195 (get_selected_block): Make return type const.
4196 * frame.c (frame_id_inner): Update.
4197 * f-valprint.c (info_common_command_for_block)
4198 (info_common_command): Update.
4199 * dwarf2loc.c (dwarf2_find_location_expression)
4200 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4201 (locexpr_describe_location_piece): Update.
4202 * c-exp.y (%union) <bval>: Now const.
4203 * breakpoint.c (resolve_sal_pc): Update.
4204 * blockframe.c (get_frame_block):Make return type const.
4205 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4206 (block_innermost_frame): Update.
4207 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4208 (block_for_pc, block_for_pc_sect): Update.
4209 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4211 (block_for_pc_sect, block_for_pc): Make return type const.
4212 * ax-gdb.c (gen_expr): Update.
4213 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4214 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4215 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4216 (ada_read_var_value): Update.
4217 * ada-exp.y (struct name_info) <block>: Now const.
4219 (block_lookup): Constify.
4221 2014-06-18 Gary Benson <gbenson@redhat.com>
4223 * nat/i386-dregs.h: New file.
4224 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4225 * i386-nat.h (i386-dregs.h): New include.
4226 (DR_FIRSTADDR): Now in i386-dregs.h.
4227 (DR_LASTADDR): Likewise.
4228 (DR_NADDR): Likewise.
4229 (DR_STATUS): Likewise.
4230 (DR_CONTROL): Likewise.
4231 (i386_debug_reg_state): Likewise.
4232 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4234 2014-06-18 Don Breazeal <donb@codesourcery.com>
4236 * breakpoint.c (set_longjmp_breakpoint): Call
4237 momentary_breakpoint_from_master with additional argument.
4238 (set_longjmp_breakpoint_for_call_dummy): Call
4239 momentary_breakpoint_from_master with additional argument.
4240 (set_std_terminate_breakpoint): Call
4241 momentary_breakpoint_from_master with additional argument.
4242 (momentary_breakpoint_from_master): Add argument to function
4243 definition and use it to initialize structure member flag.
4244 (clone_momentary_breakpoint): Call
4245 momentary_breakpoint_from_master with additional argument.
4246 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4247 member flags set in momentary_breakpoint_from_master.
4249 2014-06-18 Gary Benson <gbenson@redhat.com>
4251 * i386-nat.c (i386_show_dr): Renamed to
4252 i386_dr_show and made nonstatic. All uses updated.
4253 (i386_length_and_rw_bits): Renamed to
4254 i386_dr_length_and_rw_bits and made nonstatic.
4256 (i386_insert_aligned_watchpoint): Renamed to
4257 i386_dr_insert_aligned_watchpoint and made nonstatic.
4259 (i386_remove_aligned_watchpoint): Renamed to
4260 i386_dr_remove_aligned_watchpoint and made nonstatic.
4262 (i386_update_inferior_debug_regs): Renamed to
4263 i386_dr_update_inferior_debug_regs and made nonstatic.
4266 2014-06-18 Gary Benson <gbenson@redhat.com>
4268 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4269 (i386_dr_low_can_set_control): Likewise.
4270 (i386_dr_low_set_addr): Likewise.
4271 (i386_dr_low_set_control): Likewise.
4272 (i386_dr_low_get_addr): Likewise.
4273 (i386_dr_low_get_status): Likewise.
4274 (i386_dr_low_get_control): Likewise.
4275 (i386_insert_aligned_watchpoint): Use new macros.
4276 (i386_update_inferior_debug_regs): Likewise.
4277 (i386_stopped_data_address): Likewise.
4279 2014-06-18 Gary Benson <gbenson@redhat.com>
4281 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4282 New parameter. All uses updated.
4284 2014-06-18 Gary Benson <gbenson@redhat.com>
4286 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4289 2014-06-18 Gary Benson <gbenson@redhat.com>
4291 * i386-nat.c (debug_printf): New macro.
4292 (i386_get_debug_register_length): Likewise.
4293 (TARGET_HAS_DR_LEN_8): Use above macro.
4294 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4295 and printf_unfiltered. Use phex to format values.
4297 2014-06-18 Gary Benson <gbenson@redhat.com>
4299 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4302 2014-06-18 Gary Benson <gbenson@redhat.com>
4304 * i386-nat.c: Comment changes.
4306 2014-06-18 Gary Benson <gbenson@redhat.com>
4308 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4310 2014-06-18 Gary Benson <gbenson@redhat.com>
4312 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4313 (i386_insert_aligned_watchpoint): Likewise.
4314 (i386_remove_aligned_watchpoint): Likewise.
4315 (i386_handle_nonaligned_watchpoint): Likewise.
4317 2014-06-18 Gary Benson <gbenson@redhat.com>
4319 * i386-nat.c: Whitespace changes.
4321 2014-06-17 Samuel Bronson <naesten@gmail.com>
4323 * MAINTAINERS: Update Roland McGrath's email address.
4324 Thanks to Sergio Durigan Junior for pointing out that he left
4325 Red Hat a while ago, and giving me a current address.
4327 2014-06-17 Tom Tromey <tromey@redhat.com>
4329 * utils.h (savestring): Remove declaration.
4331 2014-06-17 Tom Tromey <tromey@redhat.com>
4333 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4335 2014-06-16 Keith Seitz <keiths@redhat.com>
4338 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4339 to update the varobj if inferior_ptid is null_ptid.
4341 2014-06-16 Tom Tromey <tromey@redhat.com>
4343 * target.h (struct target_ops) <to_info_proc>: Make parameter
4345 (target_info_proc): Update.
4346 * target.c (target_info_proc): Make "args" const.
4347 * procfs.c (procfs_info_proc): Update.
4348 * linux-tdep.c (linux_info_proc): Update.
4349 (linux_core_info_proc_mappings): Make "args" const.
4350 (linux_core_info_proc): Update.
4351 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4352 * gdbarch.c: Rebuild.
4353 * gdbarch.h: Rebuild.
4354 * corelow.c (core_info_proc): Update.
4356 2014-06-16 Tom Tromey <tromey@redhat.com>
4358 * target.h (struct target_ops) <to_disconnect>: Make parameter
4360 (target_disconnect): Update.
4361 * target.c (target_disconnect): Make "args" const.
4362 * target-delegates.c: Rebuild.
4363 * remote.c (remote_disconnect): Update.
4364 * record.h (record_disconnect): Update.
4365 * record.c (record_disconnect): Update.
4366 * inf-child.c (inf_child_disconnect): Update.
4368 2014-06-16 Tom Tromey <tromey@redhat.com>
4370 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4371 * target.c (debug_to_rcmd, default_rcmd): Update.
4372 * target-delegates.c: Rebuild.
4373 * remote.c (remote_rcmd): Update.
4374 * monitor.c (monitor_rcmd): Update.
4376 2014-06-16 Pedro Alves <palves@redhat.com>
4378 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4379 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4380 have OBJF_SHARED set.
4381 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4382 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4383 instead of OBJF_USERLOADED.
4384 * objfiles.h (OBJF_SHARED): Update comment.
4385 (userloaded_objfile_contains_address_p): Rename to ...
4386 (shared_objfile_contains_address_p): ... this, and update
4388 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4390 (remove_symbol_file_command): Skip objfiles that don't have
4393 2014-06-16 Tom Tromey <tromey@redhat.com>
4395 * minsyms.h (prim_record_minimal_symbol)
4396 (prim_record_minimal_symbol_and_info): Update comments.
4398 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4400 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4401 or --without-guile, according to how GDB was built.
4403 2014-06-13 Tom Tromey <tromey@redhat.com>
4405 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4407 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4409 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4411 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4412 help_list.Pass all_commands, not -1, to help_list.
4413 * cli/cli-dump.c (dump_command, append_command)
4414 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4415 (binary_dump_command, binary_append_command): Pass all_commands,
4416 not -1, to help_list.
4417 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4419 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4421 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4423 * top.c (set_history): Pass all_commands, not -1, to help_list.
4424 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4425 all_commands, not -1, to help_list.
4426 * symfile.c (overlay_command): Pass all_commands, not -1, to
4428 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4430 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4432 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4434 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4435 not -1, to help_list.
4436 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4437 not -1, to help_list.
4438 * maint.c (maintenance_command, maintenance_info_command)
4439 (maintenance_print_command, maintenance_set_cmd): Pass
4440 all_commands, not -1, to help_list.
4441 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4443 * language.c (set_check): Pass all_commands, not -1, to help_list.
4444 * infcmd.c (unset_command): Pass all_commands, not -1, to
4446 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4448 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4450 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4452 * breakpoint.c (save_command): Pass all_commands, not -1, to
4454 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4455 all_commands, not -1, to help_list.
4457 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4459 * regcache.c (struct register_to_invalidate): New structure.
4460 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4462 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4464 2014-06-12 Yao Qi <yao@codesourcery.com>
4466 * varobj.c (varobj_get_num_children): Call
4467 varobj_is_dynamic_p.
4468 (varobj_list_children): Likewise.
4469 (varobj_update): Likewise. Update comments.
4471 2014-06-12 Yao Qi <yao@codesourcery.com>
4473 * varobj.c (varobj_pretty_printed_p): Rename to ...
4474 (varobj_is_dynamic_p): ... this. New function.
4475 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4476 (varobj_is_dynamic_p): Declare.
4477 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4478 (mi_print_value_p, varobj_update_one): Likewise.
4480 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4481 Yao Qi <yao@codesourcery.com>
4483 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4484 (varobj_get_iterator): Wrap up code for pretty-printer by
4485 "#if HAVE_PYTHON" and "#endif".
4486 (update_dynamic_varobj_children): Likewise.
4488 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4489 Yao Qi <yao@codesourcery.com>
4491 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4492 gdb_python_initialized is false. Move some code from varobj.c.
4493 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4494 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4495 (struct varobj_item): Moved to varobj-iter.h".
4496 (varobj_clear_saved_item): New function.
4497 (update_dynamic_varobj_children): Move python-related code to
4499 (free_variable): Call varobj_clear_saved_item and
4502 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4503 Yao Qi <yao@codesourcery.com>
4505 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4506 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4507 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4508 (py-varobj.o): New rule.
4509 * python/py-varobj.c: New file.
4510 * python/python-internal.h (py_varobj_get_iterator): Declare.
4511 * varobj-iter.h: New file.
4512 * varobj.c: Include "varobj-iter.h"
4513 (struct varobj) <child_iter>: Change its type from "PyObject *"
4514 to "struct varobj_iter *".
4515 <saved_item>: Likewise.
4516 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4517 [HAVE_PYTHON] (varobj_get_iterator): New function.
4518 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4519 python-specific code to python/py-varobj.c.
4520 (install_visualizer): Call varobj_iter_delete instead of
4522 * varobj.h (varobj_ensure_python_env): Declare.
4524 2014-06-12 Yao Qi <yao@codesourcery.com>
4526 * varobj.c (struct varobj_item): New structure.
4527 (create_child_with_value): Update declaration.
4528 (varobj_add_child): Replace arguments 'name' and 'value' with
4529 'item'. All callers updated.
4530 (install_dynamic_child): Likewise.
4531 (update_dynamic_varobj_children): Likewise.
4532 (varobj_add_child): Likewise.
4533 (create_child_with_value): Likewise.
4535 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4537 * NEWS: Create a new section for the next release branch.
4538 Rename the section of the current branch, now that it has
4541 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4543 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4544 * version.in: Bump version to 7.8.50.DATE-cvs.
4546 2014-06-11 Pedro Alves <palves@redhat.com>
4549 * ser-mingw.c (net_windows_socket_check_pending): New function.
4550 (net_windows_select_thread): Ignore spurious wakeups. Use
4551 net_windows_socket_check_pending.
4552 (net_windows_wait_handle): Check for pending events with
4553 ioctlsocket, through net_windows_socket_check_pending, instead of
4554 checking the socket's event.
4556 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4558 * python/python-internal.h (gdb_PyObject_GetAttrString)
4559 (gdb_PyObject_HasAttrString): New inline function definitions.
4560 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4561 char * of the second argument to PyObject_GetAttrString.
4563 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4565 * serial.c (serial_write): Fix index of character to be printed
4566 in call to serial_logchar when serial debug traces are enabled.
4568 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4570 * gdbtypes (resolve_dynamic_range): Add function description.
4572 2014-06-09 Pedro Alves <palves@redhat.com>
4574 * linux-nat.c (linux_child_follow_fork): Initialize status with
4575 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4576 inner block. Only pass the signal to PTRACE_DETACH if in pass
4579 2014-06-09 Gary Benson <gbenson@redhat.com>
4581 * common/signals.c (gdb_signal_from_host): Reorder to separate
4582 the always-available ANSI-standard signals from the signals that
4584 (do_gdb_signal_to_host): Likewise.
4585 * proc-events.c (signal_table): Likewise.
4587 2014-06-08 Hui Zhu <hui@codesourcery.com>
4589 * common/linux-ptrace.c (linux_disable_event_reporting): New
4591 * common/linux-ptrace.h (linux_disable_event_reporting): New
4593 * linux-nat.c (linux_child_follow_fork): Do a single step before
4596 2014-06-07 Keith Seitz <keiths@redhat.com>
4600 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4601 from symbol_matches_domain in symtab.c. All local callers
4602 of symbol_matches_domain updated.
4603 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4604 search STRUCT_DOMAIN.
4605 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4606 independently. standard_lookup will do that automatically.
4607 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4608 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4609 (cp_lookup_symbol_in_namespace): Likewise.
4610 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4611 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4612 may return a STRUCT_DOMAIN match.
4613 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4614 * cp-support.c: Include language.h.
4615 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4617 * psymtab.c (match_partial_symbol): Compare the requested
4618 domain with the symbol's domain directly.
4619 (lookup_partial_symbol): Likewise.
4620 * symtab.c (lookup_symbol_in_language): Explain when/why
4621 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4622 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4623 appropriate languages.
4624 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4625 and moved to ada-lang.c
4626 (lookup_block_symbol): Explain that this function only returns
4627 symbol matching the requested DOMAIN.
4628 Compare the requested domain with the symbol's domain directly.
4629 (iterate_over_symbols): Compare the requested domain with the
4630 symbol's domain directly.
4631 * symtab.h (symbol_matches_domain): Remove.
4633 2014-06-06 Doug Evans <xdje42@gmail.com>
4635 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4636 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4637 (gdbscm_guile_version_is_at_least): Declare.
4638 (gdbscm_scm_string_to_int): Declare.
4639 * guile/guile.c (gdbscm_guile_major_version): New global.
4640 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4641 (guile_datadir): New static global.
4642 (gdbscm_guile_data_directory): New function.
4643 (initialize_scheme_side): Update.
4644 (misc_guile_functions): Add guile-data-directory.
4645 (initialize_gdb_module): Fetch guile version number.
4646 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4647 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4648 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4649 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4651 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4652 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4653 * guile/scm-value.c (gdbscm_value_to_string): Only call
4654 scm_port_conversion_strategy if Guile version >= 2.0.6.
4656 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4658 * main.c (print_gdb_help): Add -q and --silent.
4660 2014-06-06 Gary Benson <gbenson@redhat.com>
4662 * common/signals.c: Remove preprocessor conditionals for
4663 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4664 SIGSEGV and SIGTERM.
4665 * proc-events.c: Likewise.
4667 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4669 * symfile.c (symfile_free_objfile): Remove restriction to
4671 * symfile-mem.c (symbol_file_add_from_memory): Call
4672 add_target_sections_of_objfile.
4674 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4676 * guile/scm-value.c (gdbscm_history_append_x): Use
4677 'vlscm_get_value_smob_arg_unsafe' instead of
4678 'vlscm_scm_to_value'.
4680 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4683 * utils.c (printchar): Don't escape at all if quoter is NUL.
4684 Update function documentation to clarify effect of parameter
4686 * remote.c (escape_buffer): Pass '\\' as the quoter to
4687 fputstrn_unfiltered.
4688 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4689 generate the output.
4690 (mi_solib_unloaded): Same.
4692 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4694 * development.sh: Delete.
4695 * Makefile.in (config.status): Adjust dependency on development.sh.
4696 * configure.ac: Adjust development.sh source call.
4697 * configure: Regenerate.
4699 2014-06-04 Doug Evans <xdje42@gmail.com>
4701 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4702 is_scheme_bkpt, spec.
4703 (bpscm_make_breakpoint_smob): Initialize new members.
4704 (gdbscm_create_breakpoint_x): Split into two ...
4705 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4706 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4707 (scheme_function breakpoint_functions): Update.
4708 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4709 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4710 register-breakpoint!.
4712 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4715 * mem-break.c (z_type_supported): Return zero if
4716 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4718 2014-06-04 Tom Tromey <tromey@redhat.com>
4720 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4721 value_from_contents_and_address_unresolved.
4722 (ada_template_to_fixed_record_type_1): Likewise.
4723 (ada_which_variant_applies): Likewise.
4724 * value.h (value_from_contents_and_address_unresolved): Declare.
4725 * value.c (value_from_contents_and_address_unresolved): New
4727 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4728 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4729 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4731 2014-06-04 Tom Tromey <tromey@redhat.com>
4733 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4735 2014-06-04 Tom Tromey <tromey@redhat.com>
4737 * procfs.c (procfs_attach): Make "args" const.
4738 * windows-nat.c (windows_attach): Make "args" const.
4739 * nto-procfs.c (procfs_attach): Make "args" const.
4740 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4741 * go32-nat.c (go32_attach): Make "args" const.
4742 * gnu-nat.c (gnu_attach): Make "args" const.
4743 * darwin-nat.c (darwin_attach): Make "args" const.
4744 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4745 * linux-nat.c (linux_nat_attach): Make "args" const.
4746 * remote.c (extended_remote_attach_1, extended_remote_attach):
4748 * target.h (struct target_ops) <to_attach>: Make "args" const.
4749 (find_default_attach): Likewise.
4750 * utils.c (parse_pid_to_attach): Make "args" const.
4751 * utils.h (parse_pid_to_attach): Update.
4753 2014-06-04 Tom Tromey <tromey@redhat.com>
4755 * target-delegates.c: Rebuild.
4756 * target.c (default_thread_address_space): New function.
4757 (target_thread_address_space): Simplify.
4758 * target.h (struct target_ops) <to_thread_address_space>: Add
4759 TARGET_DEFAULT_FUNC.
4761 2014-06-04 Doug Evans <xdje42@gmail.com>
4763 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4765 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4767 * record-btrace.c: Include event-loop.h and inf-loop.h.
4768 (record_btrace_resume_exec_dir)
4769 (record_btrace_async_inferior_event_handler)
4770 (record_btrace_handle_async_inferior_event): New.
4771 (record_btrace_open): Create async event handler.
4772 (record_btrace_close): Delete async event handler.
4773 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4774 Mark async event handler.
4775 (record_btrace_execution_direction): New.
4776 (init_record_btrace_ops): Initialize to_execution_direction.
4778 2014-06-03 Doug Evans <xdje42@gmail.com>
4780 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4781 (gdbscm_make_parameter): Ditto.
4783 2014-06-03 Doug Evans <dje@google.com>
4785 * exec.c (exec_close_1): Call clear_section_table instead of
4786 resize_section_table.
4787 (clear_section_table): New function.
4788 (resize_section_table): Make static. Rename arg num_added to
4790 * exec.h (clear_section_table): Declare.
4791 (resize_section_table): Delete.
4792 * progspace.c (release_program_space): Call clear_section_table
4793 instead of resize_section_table.
4795 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4797 * NEWS (Python Scripting): Add entry about the new xmethods
4800 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4802 * python/py-xmethods.c: New file.
4803 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4804 (objfpy_dealloc): XDECREF on the new xmethods field.
4805 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4807 (objfpy_get_xmethods): New function.
4808 (objfile_getset): New entry 'xmethods'.
4809 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4810 (pspy_dealloc): XDECREF on the new xmethods field.
4811 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4813 (pspy_get_xmethods): New function.
4814 (pspace_getset): New entry 'xmethods'.
4815 * python/python-internal.h: Add declarations for new functions.
4816 * python/python.c (_initialize_python): Invoke
4817 gdbpy_initialize_xmethods.
4818 * python/lib/gdb/__init__.py (xmethods): New
4820 * python/lib/gdb/xmethod.py: New file.
4821 * python/lib/gdb/command/xmethods.py: New file.
4823 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4825 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4826 best match method returned by find_overload_match is an xmethod.
4827 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4828 the best matching operator returned by find_overload_match is an
4830 * valops.c: #include "extension.h".
4831 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4832 Return void. The list of matching source methods is returned in
4833 "fn_list" and a vector of matching debug method workers is
4834 returned in "xm_worker_vec". Update all callers.
4835 (value_find_oload_method_list): Likewise.
4836 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4837 non-NULL, then the index of the best matching method in this
4838 vector is returned. Update all callers.
4839 (find_overload_match): Include xmethods while performing overload
4842 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4844 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4845 * extension-priv.h (struct extension_language_ops): Add the
4847 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4848 get_matching_xmethod_workers, get_xmethod_argtypes,
4849 invoke_xmethod, free_xmethod_worker,
4850 free_xmethod_worker_vec): New functions.
4851 * extension.h: #include "common/vec.h".
4852 New function declarations.
4853 (struct xmethod_worker): New struct.
4854 (VEC (xmethod_worker_ptr)): New vector type.
4855 (xmethod_worker_ptr): New typedef.
4856 (xmethod_worker_vec): Likewise.
4857 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4859 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4860 (struct builtin_type): New field "xmethod".
4861 * valarith.c (value_ptradd): Assert that the value argument is not
4863 * valops.c (value_must_coerce_to_target): Return 0 for
4864 lval_xcallable values.
4865 * value.c (struct value): New field XM_WORKER in the field
4867 (value_address, value_raw_address): Return 0 for lval_xcallable
4869 (set_value_address): Assert that the value is not an
4871 (value_free): Free the associated xmethod worker when freeing
4872 lval_xcallable values.
4873 (set_value_component_location): Assert that the WHOLE value is not
4875 (value_of_xmethod, call_xmethod): New functions.
4876 * value.h: Declare "struct xmethod_worker".
4877 Declare new functions value_of_xmethod, call_xmethod.
4879 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4880 Pedro Alves <palves@redhat.com>
4882 PR breakpoints/17000
4883 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4884 New function, extracted from software_breakpoint_inserted_here_p.
4885 (software_breakpoint_inserted_here_p): Replace factored out code
4886 by call to find_non_raw_software_breakpoint_inserted_here.
4887 (bp_target_info_copy_insertion_state): New function.
4888 (bkpt_insert_location): Handle the case of a single-step
4889 breakpoint already inserted at the same address.
4890 (bkpt_remove_location): Handle the case of a single-step
4891 breakpoint still inserted at the same address.
4892 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4893 breakpoint already inserted at the same address.
4894 (deprecated_remove_raw_breakpoint): Handle the case of a
4895 non-raw breakpoint still inserted at the same address.
4896 (find_single_step_breakpoint): New function, extracted from
4897 single_step_breakpoint_inserted_here_p.
4898 (find_single_step_breakpoint): New function,
4899 factored out from single_step_breakpoint_inserted_here_p.
4900 (single_step_breakpoint_inserted_here_p): Reimplement.
4902 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4904 Pushed by Joel Brobecker <brobecker@adacore.com>
4905 * source.c (show_substitute_path_command): Fix display of matching
4908 2014-06-03 Gary Benson <gbenson@redhat.com>
4910 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4912 2014-06-02 Doug Evans <xdje42@gmail.com>
4914 Add parameter support for Guile.
4915 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4916 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4917 (scm-param.o): New rule.
4918 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4919 (gdbscm_misc_error): Declare.
4920 (gdbscm_canonicalize_command_name): Declare.
4921 (gdbscm_scm_to_host_string): Declare.
4922 (gdbscm_scm_from_host_string): Declare.
4923 (gdbscm_initialize_parameters): Declare.
4924 * guile/guile.c (initialize_gdb_module): Call
4925 gdbscm_initialize_parameters.
4926 * guile/lib/gdb.scm: Export parameter symbols.
4927 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4928 cmdscm_canonicalize_name and made public. All callers updated.
4929 * guile/scm-exception.c (gdbscm_misc_error): New function.
4930 * guile/scm-param.c: New file.
4931 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4932 (gdbscm_scm_to_host_string): New function.
4933 (gdbscm_scm_from_host_string): New function.
4934 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4936 2014-06-02 Doug Evans <xdje42@gmail.com>
4938 Add command support for Guile.
4939 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4940 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4941 (scm-cmd.o): New rule.
4942 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4943 (gdbscm_user_error_p): Declare.
4944 (gdbscm_parse_command_name): Declare.
4945 (gdbscm_valid_command_class_p): Declare.
4946 (gdbscm_initialize_commands): Declare.
4947 * guile/guile.c (initialize_gdb_module): Call
4948 gdbscm_initialize_commands.
4949 * guile/lib/gdb.scm: Export command symbols.
4950 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4951 (throw-user-error): New function.
4952 * guile/scm-cmd.c: New file.
4953 * guile/scm-exception.c (user_error_symbol): New static global.
4954 (gdbscm_user_error_p): New function.
4955 (gdbscm_initialize_exceptions): Set user_error_symbol.
4956 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4958 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4960 * top.c (command_loop): Handle comments here...
4961 (command_line_input): ... not here.
4963 2014-06-02 Doug Evans <xdje42@gmail.com>
4965 Add progspace support for Guile.
4966 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4967 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4968 (scm-progspace.o): New rule.
4969 * guile/guile-internal.h (pspace_smob): New typedef.
4970 (psscm_pspace_smob_pretty_printers): Declare.
4971 (psscm_pspace_smob_from_pspace): Declare.
4972 (psscm_scm_from_pspace): Declare.
4973 * guile/guile.c (initialize_gdb_module): Call
4974 gdbscm_initialize_pspaces.
4975 * guile/lib/gdb.scm: Export progspace symbols.
4976 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4978 (append-pretty-printer!): Ditto.
4979 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4981 * guile/scm-progspace.c: New file.
4983 2014-06-03 Alan Modra <amodra@gmail.com>
4985 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4986 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4988 2014-06-02 Doug Evans <dje@google.com>
4990 Add support for skeletonless type units.
4991 * dwarf2read.c (struct dwarf2_per_objfile): New member
4992 n_allocated_type_units.
4993 (struct dwarf2_per_objfile) <tu_stats>: New member
4994 nr_all_type_units_reallocs.
4995 (create_signatured_type_table_from_index): Initialize
4996 n_allocated_type_units
4997 (create_all_type_units): Ditto.
4998 (add_type_unit): Move up in file. New arg slot.
4999 All callers updated. Increase space for all_type_units more
5001 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5002 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5003 (lookup_dwp_signatured_type): Ditto.
5004 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5005 All callers updated.
5006 (build_type_psymtabs_1): Leave type_unit_groups as
5007 NULL if no TUs present.
5008 (print_tu_stats): New function.
5009 (process_skeletonless_type_unit): New function.
5010 (process_dwo_file_for_skeletonless_type_units): New
5012 (process_skeletonless_type_units): New function.
5013 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5014 Call print tu_stats if debugging enabled.
5016 2014-06-02 Pedro Alves <palves@redhat.com>
5018 * breakpoint.c (build_target_command_list): Don't build a command
5019 list if we have any duplicate location that isn't a dprintf.
5021 2014-06-02 Pedro Alves <palves@redhat.com>
5023 * breakpoint.c (dprintf_breakpoint_hit): New function.
5024 (initialize_breakpoint_ops): Install it as dprintf's
5025 breakpoint_hit method.
5027 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5029 * source.c (substitute_path_rule_matches): Simplify using
5030 filename_ncmp instead of FILENAME_CMP.
5032 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5034 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5036 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5038 * configure.ac: When Guile is available, check for the
5039 availability of 'scm_new_smob'.
5040 * configure, config.h.in: Regenerate.
5041 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5044 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5046 * frame.c (struct frame_info): Add stop_string field.
5047 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5048 (get_prev_frame_always): Old content moved into
5049 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5050 TRY_CATCH, handle MEMORY_ERROR exceptions.
5051 (frame_stop_reason_string): New function definition.
5052 * frame.h (unwind_stop_reason_to_string): Extend comment to
5053 mention frame_stop_reason_string.
5054 (frame_stop_reason_string): New function declaration.
5055 * stack.c (frame_info): Switch to frame_stop_reason_string.
5056 (backtrace_command_1): Switch to frame_stop_reason_string.
5057 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5058 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5059 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5061 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5063 * frame.c (frame_stop_reason_string): Rename to ...
5064 (unwind_stop_reason_to_string): this.
5065 * frame.h (frame_stop_reason_string): Rename to ...
5066 (unwind_stop_reason_to_string): this.
5067 * stack.c (frame_info): Update call to frame_stop_reason_string.
5068 (backtrace_command_1): Likewise.
5069 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5070 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5072 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5074 * frame.c (remove_prev_frame): New function.
5075 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5078 2014-05-29 Pedro Alves <palves@redhat.com>
5080 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5081 and make it const. When a single-step decays to a continue,
5082 clear 'step', not 'hw_step'. Pass whether the caller wanted
5083 to step to user_visible_resume_ptid, not what we ask the
5086 2014-05-29 Pedro Alves <palves@redhat.com>
5088 * infrun.c (process_event_stop_test, handle_step_into_function)
5089 (handle_step_into_function_backward): Adjust.
5090 Don't set the even thread's stop_step and call stop_waiting before
5091 calling end_stepping_range. Instead do that ...
5092 (end_stepping_range): ... here. Take an ecs pointer parameter.
5094 2014-05-29 Pedro Alves <palves@redhat.com>
5096 * infrun.c (stop_stepping): Rename to ...
5097 (stop_waiting): ... this.
5098 (proceed): Update comment.
5099 (process_event_stop_test, handle_inferior_event)
5100 (handle_signal_stop, handle_step_into_function)
5101 (handle_step_into_function_backward): Update.
5103 2014-05-29 Pedro Alves <palves@redhat.com>
5105 * infcall.c (run_inferior_call): Don't check whether the current
5106 thread is running after the proceed call.
5108 2014-05-29 Pedro Alves <palves@redhat.com>
5109 Tom Tromey <tromey@redhat.com>
5111 * NEWS: Mention "maint set target-async", "set mi-async", and that
5112 background execution commands are now always available.
5113 * target.h (target_async_permitted): Update comment.
5114 * target.c (target_async_permitted, target_async_permitted_1):
5116 (set_target_async_command): Rename to ...
5117 (maint_set_target_async_command): ... this.
5118 (show_target_async_command): Rename to ...
5119 (maint_show_target_async_command): ... this.
5120 (_initialize_target): Adjust.
5121 * infcmd.c (prepare_execution_command): Make extern.
5122 * inferior.h (prepare_execution_command): Declare.
5123 * infrun.c (set_observer_mode): Leave target async alone.
5124 * mi/mi-interp.c (mi_interpreter_init): Install
5125 mi_on_sync_execution_done as sync_execution_done observer.
5126 (mi_on_sync_execution_done): New function.
5127 (mi_execute_command_input_handler): Don't print the prompt if we
5128 just started a synchronous command with an async target.
5129 (mi_on_resume): Check sync_execution before printing prompt.
5130 * mi/mi-main.h (mi_async_p): Declare.
5131 * mi/mi-main.c: Include gdbcmd.h.
5132 (mi_async_p): New function.
5133 (mi_async, mi_async_1): New globals.
5134 (set_mi_async_command, show_mi_async_command, mi_async): New
5136 (exec_continue): Call prepare_execution_command.
5137 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5138 (mi_execute_async_cli_command): Use mi_async_p.
5139 (_initialize_mi_main): Install "set mi-async". Make
5140 "target-async" a deprecated alias.
5142 2014-05-29 Pedro Alves <palves@redhat.com>
5144 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5145 (_initialize_cli_interp): Adjust.
5146 * event-loop.c: Include "observer.h".
5147 (start_event_loop): Notify 'command_error' observers instead of
5148 calling display_gdb_prompt. Remove FIXME comment.
5149 * event-top.c (display_gdb_prompt): Remove call into the
5151 * inf-loop.c: Include "observer.h".
5152 (inferior_event_handler): Notify 'command_error' observers instead
5153 of calling display_gdb_prompt.
5154 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5155 observers instead of calling display_gdb_prompt.
5156 * interps.c (interp_set): Don't call display_gdb_prompt.
5157 (current_interp_display_prompt_p): Delete.
5158 * interps.h (interp_prompt_p): Delete declaration.
5159 (interp_prompt_p_ftype): Delete.
5160 (struct interp_procs) <prompt_proc_p>: Delete field.
5161 (current_interp_display_prompt_p): Delete declaration.
5162 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5163 (_initialize_mi_interp): Adjust.
5164 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5165 'command_error' observers.
5166 (tui_on_sync_execution_done, tui_on_command_error): New
5168 (tui_display_prompt_p): Delete.
5169 (_initialize_tui_interp): Adjust.
5171 2014-05-29 Pedro Alves <palves@redhat.com>
5174 * cli/cli-interp.c: Include infrun.h and observer.h.
5175 (cli_uiout, cli_interp): New globals.
5176 (cli_on_signal_received, cli_on_end_stepping_range)
5177 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5179 (cli_interpreter_init): Install them as 'end_stepping_range',
5180 'signal_received' 'signal_exited', 'exited' and 'no_history'
5182 (_initialize_cli_interp): Remove cli_interp local.
5183 * infrun.c (handle_inferior_event): Call the several stop reason
5184 observers instead of printing the stop reason directly.
5185 (end_stepping_range): New function.
5186 (print_end_stepping_range_reason, print_signal_exited_reason)
5187 (print_exited_reason, print_signal_received_reason)
5188 (print_no_history_reason): Make static, and add an uiout
5189 parameter. Print to that instead of to CURRENT_UIOUT.
5190 * infrun.h (print_end_stepping_range_reason)
5191 (print_signal_exited_reason, print_exited_reason)
5192 (print_signal_received_reason print_no_history_reason): New
5194 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5196 <cli_uiout>: New field.
5197 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5198 uiout for CLI output. Install 'signal_received',
5199 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5201 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5202 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5203 (mi_on_no_history): New functions.
5204 (ui_out_free_cleanup): Delete function.
5205 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5206 instead use the one already stored in the MI interpreter data.
5207 (mi_ui_out): Adjust.
5208 * tui/tui-interp.c: Include infrun.h and observer.h.
5209 (tui_interp): New global.
5210 (tui_on_signal_received, tui_on_end_stepping_range)
5211 (tui_on_signal_exited, tui_on_exited)
5212 (tui_on_no_history): New functions.
5213 (tui_init): Install them as 'end_stepping_range',
5214 'signal_received' 'signal_exited', 'exited' and 'no_history'
5216 (_initialize_tui_interp): Delete tui_interp local.
5218 2014-05-29 Pedro Alves <palves@redhat.com>
5221 * linux-nat.c (linux_nat_resume_callback): Rename the second
5222 parameter to 'except'. Skip LP if it points to EXCEPT.
5223 (linux_nat_resume): Don't mark the event lwp as not stopped
5224 before resuming sibling lwps. Instead ask
5225 linux_nat_resume_callback to skip the event lwp. Mark it as not
5226 stopped after actually resuming it.
5227 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5229 (wait_lwp): Mark the lwp as stopped here.
5230 (stop_wait_callback): Mark the lwp as not stopped right after
5231 resuming it. Don't mark lwps as stopped here.
5232 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5233 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5235 2014-05-29 Pedro Alves <palves@redhat.com>
5238 * infrun.c (resume): Determine how much to resume depending on
5239 whether the caller wanted a step, not whether we can hardware step
5240 the target. Mark all threads that we intend to run as running,
5241 unless we're calling an inferior function.
5242 (normal_stop): If the thread is running an infcall, don't finish
5244 * target.c (target_resume): Don't mark threads as running here.
5246 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5248 * serial.c (_initialize_serial): Remove support for
5249 the "set remotebaud" and "show remotebaud" commands.
5250 * NEWS: Add entry documenting the removal of that command.
5252 2014-05-28 Yao Qi <yao@codesourcery.com>
5254 * charset.c: Fix typo in comments.
5256 2014-05-27 Gary Benson <gbenson@redhat.com>
5258 * utils.c (internal_vproblem): Prompt for a bug report.
5260 2014-05-26 Andy Wingo <wingo@igalia.com>
5262 * guile/scm-arch.c (arscm_mark_arch_smob):
5263 * guile/scm-block.c (bkscm_mark_block_smob)
5264 (bkscm_mark_block_syms_progress_smob):
5265 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5266 * guile/scm-exception.c (exscm_mark_exception_smob):
5267 * guile/scm-frame.c (frscm_mark_frame_smob):
5268 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5269 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5270 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5271 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5272 (ppscm_mark_pretty_printer_worker_smob):
5273 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5274 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5275 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5276 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5278 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5281 2014-05-26 Andy Wingo <wingo@igalia.com>
5282 Doug Evans <xdje42@gmail.com>
5284 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5285 empty_base_class. All uses updated.
5286 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5287 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5289 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5290 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5291 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5292 (gdbscm_gsmob_has_property_p, add_property_name)
5293 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5294 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5295 (gdb-object-has-property?, gdb-object-properties): Remove.
5296 (gdb-object-kind): Renamed from gsmob-kind.
5298 2014-05-26 Andy Wingo <wingo@igalia.com>
5300 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5301 * configure: Regenerate.
5303 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5305 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5307 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5309 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5310 (replay_memory_access_read_only, replay_memory_access_read_write)
5311 (replay_memory_access_types, replay_memory_access)
5312 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5313 (cmd_set_record_btrace, cmd_show_record_btrace)
5314 (cmd_show_replay_memory_access): New.
5315 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5316 (record_btrace_remove_breakpoint): Replace
5317 record_btrace_allow_memory_access with replay_memory_access.
5318 (_initialize_record_btrace): Add commands.
5319 * NEWS: Announce it.
5321 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5323 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5325 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5327 * MAINTAINERS (Write After Approval): Move self back from
5330 2014-05-22 Pedro Alves <palves@redhat.com>
5332 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5333 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5334 (disable_randomization, enum exec_direction_kind)
5335 (execution_direction, stop_registers, start_remote)
5336 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5337 (wait_for_inferior, normal_stop, get_last_target_status)
5338 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5339 (insert_step_resume_breakpoint_at_sal)
5340 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5341 (set_step_info, print_stop_event, signal_stop_state)
5342 (signal_print_state, signal_pass_state, signal_stop_update)
5343 (signal_print_update, signal_pass_update)
5344 (update_signals_program_target, clear_exit_convenience_vars)
5345 (displaced_step_dump_bytes, update_observer_mode)
5346 (signal_catch_update, gdb_signal_from_command): Move
5348 * infrun.h: ... to this new file.
5349 * amd64-tdep.c: Include infrun.h.
5350 * annotate.c: Include infrun.h.
5351 * arch-utils.c: Include infrun.h.
5352 * arm-linux-tdep.c: Include infrun.h.
5353 * arm-tdep.c: Include infrun.h.
5354 * break-catch-sig.c: Include infrun.h.
5355 * breakpoint.c: Include infrun.h.
5356 * common/agent.c: Include infrun.h instead of inferior.h.
5357 * corelow.c: Include infrun.h.
5358 * event-top.c: Include infrun.h.
5359 * go32-nat.c: Include infrun.h.
5360 * i386-tdep.c: Include infrun.h.
5361 * inf-loop.c: Include infrun.h.
5362 * infcall.c: Include infrun.h.
5363 * infcmd.c: Include infrun.h.
5364 * infrun.c: Include infrun.h.
5365 * linux-fork.c: Include infrun.h.
5366 * linux-nat.c: Include infrun.h.
5367 * linux-thread-db.c: Include infrun.h.
5368 * monitor.c: Include infrun.h.
5369 * nto-tdep.c: Include infrun.h.
5370 * procfs.c: Include infrun.h.
5371 * record-btrace.c: Include infrun.h.
5372 * record-full.c: Include infrun.h.
5373 * remote-m32r-sdi.c: Include infrun.h.
5374 * remote-mips.c: Include infrun.h.
5375 * remote-notif.c: Include infrun.h.
5376 * remote-sim.c: Include infrun.h.
5377 * remote.c: Include infrun.h.
5378 * reverse.c: Include infrun.h.
5379 * rs6000-tdep.c: Include infrun.h.
5380 * s390-linux-tdep.c: Include infrun.h.
5381 * solib-irix.c: Include infrun.h.
5382 * solib-osf.c: Include infrun.h.
5383 * solib-svr4.c: Include infrun.h.
5384 * target.c: Include infrun.h.
5385 * top.c: Include infrun.h.
5386 * windows-nat.c: Include infrun.h.
5387 * mi/mi-interp.c: Include infrun.h.
5388 * mi/mi-main.c: Include infrun.h.
5389 * python/py-threadevent.c: Include infrun.h.
5391 2014-05-22 Pedro Alves <palves@redhat.com>
5393 * infrun.c (handle_inferior_event): Store the exit code for
5394 --return-child-result here, instead of ...
5395 (print_exited_reason): ... here.
5397 2014-05-21 Pedro Alves <palves@redhat.com>
5400 * gdbthread.h (struct thread_control_state): New field
5402 * infrun.c (follow_fork): Copy the new thread control field to the
5404 (clear_proceed_status_thread): Clear the new thread control field.
5405 (proceed): Set the new thread control field.
5406 * interps.h (command_interp): Declare.
5407 * interps.c (command_interpreter): New global.
5408 (command_interp): New function.
5409 (interp_exec): Set `command_interpreter' while here.
5410 * cli-out.c (cli_uiout_dtor): New function.
5411 (cli_ui_out_impl): Install it.
5412 * mi/mi-interp.c: Include cli-out.h.
5413 (mi_cmd_interpreter_exec): Add comment.
5414 (restore_current_uiout_cleanup): New function.
5415 (ui_out_free_cleanup): New function.
5416 (mi_on_normal_stop): If finishing an execution command started by
5417 a CLI command, or any kind of breakpoint-like event triggered,
5418 print the stop event to the output (CLI) stream.
5419 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5421 2014-05-21 Pedro Alves <palves@redhat.com>
5423 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5424 current source line having changed.
5425 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5426 * infrun.c (normal_stop): Adjust call to
5427 set_current_sal_from_frame.
5428 * source.c (clear_lines_listed_range): New function.
5429 (set_current_source_symtab_and_line, identify_source_line): Clear
5430 the lines listed range.
5431 (line_info): Handle the first "info line" after the current source
5432 line having changed.
5433 * stack.c (print_stack_frame): Remove center handling.
5434 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5437 2014-05-21 Pedro Alves <palves@redhat.com>
5439 * inf-child.c (inf_child_mourn_inferior): New function.
5440 * inf-child.h (inf_child_mourn_inferior): New declaration.
5441 * darwin-nat.c (darwin_mourn_inferior): Use
5442 inf_child_mourn_inferior.
5443 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5444 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5445 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5446 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5447 * windows-nat.c (windows_mourn_inferior): Likewise.
5449 2014-05-21 Doug Evans <xdje42@gmail.com>
5451 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5453 2014-05-21 Doug Evans <xdje42@gmail.com>
5455 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5456 (gdbscm_out_of_range_error): Ditto.
5457 (gdbscm_memory_error): Ditto.
5458 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5459 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5460 (gdbscm_out_of_range_error): Update.
5461 (gdbscm_memory_error): Update.
5462 (gdbscm_scm_to_target_string_unsafe): Delete.
5464 2014-05-21 Pedro Alves <palves@redhat.com>
5466 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5468 (inf_child_open_target): New function.
5469 (inf_child_open): Use inf_child_open_target to push the target
5470 instead of erroring out.
5471 (inf_child_disconnect, inf_child_close)
5472 (inf_child_maybe_unpush_target): New functions.
5473 (inf_child_target): Install inf_child_disconnect and
5474 inf_child_close. Store a pointer to the returned object.
5475 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5477 * target.c (auto_connect_native_target): New global.
5478 (show_default_run_target): New function.
5479 (find_default_run_target): Return NULL if automatically connecting
5480 to the native target is disabled.
5481 (_initialize_target): Install set/show auto-connect-native-target.
5482 * NEWS: Mention "set auto-connect-native-target", and "target
5484 * linux-nat.c (super_close): New global.
5485 (linux_nat_close): Call super_close.
5486 (linux_nat_add_target): Store a pointer to the base class's
5488 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5489 inf_child_maybe_unpush.
5490 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5492 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5493 the inferior. Use inf_child_maybe_unpush_target.
5494 (inf_ttrace_attach): Don't push the target if it is already
5496 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5497 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5498 after mourning the inferior. Use inf_child_maybe_unpush_target.
5499 (darwin_attach_pid): Don't push the target if it is already
5501 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5502 mourning the inferior. Use inf_child_maybe_unpush_target.
5503 (gnu_detach): Use inf_child_maybe_unpush_target.
5504 * go32-nat.c (go32_create_inferior): Don't push the target if it
5506 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5507 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5508 (procfs_open): Rename to ...
5509 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5510 comments. Can target_preopen before changing node. Call
5511 inf_child_open_target to push the target explicitly.
5512 (procfs_attach): Don't push the target if it is already pushed.
5513 (procfs_detach): Use inf_child_maybe_unpush_target.
5514 (procfs_create_inferior): Don't push the target if it is already
5516 (nto_native_ops): New global.
5517 (procfs_open): Reimplement.
5518 (procfs_native_open): New function.
5519 (init_procfs_targets): Install procfs_native_open as to_open of
5520 "target native". Store a pointer to the "native" target in
5522 * procfs.c (procfs_attach): Don't push the target if it is already
5524 (procfs_detach): Use inf_child_maybe_unpush_target.
5525 (procfs_mourn_inferior): Only unpush the target after mourning the
5526 inferior. Use inf_child_maybe_unpush_target.
5527 (procfs_init_inferior): Don't push the target if it is already
5529 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5530 if it is already pushed.
5532 2014-05-21 Pedro Alves <palves@redhat.com>
5534 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5535 and "procfs" targets are now called "native" instead.
5537 2014-05-21 Pedro Alves <palves@redhat.com>
5539 * go32-nat.c (go32_open): Delete.
5540 (go32_target): Don't override the to_open method.
5542 2014-05-21 Pedro Alves <palves@redhat.com>
5544 * nto-procfs.c (procfs_can_run): New function.
5545 (nto_procfs_ops): New global.
5546 (init_procfs_targets): New, based on procfs_target. Install
5547 "target native" in addition to "target procfs".
5548 (_initialize_procfs): Call init_procfs_targets instead of adding
5551 2014-05-21 Pedro Alves <palves@redhat.com>
5553 * windows-nat.c (windows_target): Don't override to_shortname,
5554 to_longname or to_doc.
5556 2014-05-21 Pedro Alves <palves@redhat.com>
5558 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5561 2014-05-21 Pedro Alves <palves@redhat.com>
5563 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5564 to_shortname, to_longname or to_doc.
5566 2014-05-21 Pedro Alves <palves@redhat.com>
5568 * go32-nat.c (go32_target): Don't override to_shortname,
5569 to_longname or to_doc.
5571 2014-05-21 Pedro Alves <palves@redhat.com>
5573 * inf-child.c (inf_child_open): Remove mention of "child".
5574 (inf_child_target): Rename target to "native" instead of "child".
5576 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5578 * Makefile.in (SFILES): Delete "regset.c".
5579 (COMMON_OBS): Delete "regset.o".
5581 * regset.h (regset_alloc): Delete prototype.
5583 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5585 * sparc-linux-tdep.c (sparc32_linux_gregset)
5586 (sparc32_linux_fpregset): New static regset structures.
5587 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5588 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5590 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5591 (sparc64_linux_fpregset): New static regset structures.
5592 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5593 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5594 New static regset structures.
5595 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5596 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5597 New static regset structures.
5598 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5599 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5600 New static regset structures.
5601 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5602 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5603 New static regset structures.
5604 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5606 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5608 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5609 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5610 register maps ("regmaps") from "*regset" to "*regmap". Do this
5611 for all regmap types and variables.
5612 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5613 (sparc32_linux_supply_core_gregset)
5614 (sparc32_linux_collect_core_gregset)
5615 (sparc32_linux_supply_core_fpregset)
5616 (sparc32_linux_collect_core_fpregset): Likewise.
5617 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5618 (sparc_gregmap, sparc_fpregmap): ... these.
5619 (sparc_supply_gregset, sparc_collect_gregset)
5620 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5621 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5622 (_initialize_sparc_nat): Rename regmaps.
5623 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5624 (sparc_gregmap, sparc_fpregmap): ... these.
5625 (sparc_supply_gregset, sparc_collect_gregset)
5626 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5627 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5629 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5630 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5632 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5634 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5635 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5636 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5638 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5639 (sparc32_bsd_fpregset): Rename to...
5640 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5641 (sparc32_bsd_fpregmap): ... these.
5642 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5643 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5644 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5645 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5646 (struct sparc_gregmap, struct sparc_fpregmap)
5647 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5648 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5649 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5650 (sparc32_supply_regset, sparc32_collect_gregset)
5651 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5653 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5654 (sparc64_linux_ptrace_gregmap): ... this.
5655 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5656 (_initialize_sparc64_linux_nat): Rename regmaps.
5657 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5658 (sparc64_linux_core_gregmap): ... this.
5659 (sparc64_linux_supply_core_gregset)
5660 (sparc64_linux_collect_core_gregset)
5661 (sparc64_linux_supply_core_fpregset)
5662 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5663 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5664 (sparc64_sol2_fpregset): Rename to...
5665 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5666 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5667 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5669 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5670 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5671 (sparc64_bsd_fpregset): Rename to...
5672 (struct sparc_gregmap, sparc64_sol2_gregmap)
5673 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5674 (sparc64_bsd_fpregmap): ... these.
5675 (sparc64_supply_gregset, sparc64_collect_gregset)
5676 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5678 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5679 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5680 (sparc64fbsd_gregmap): ... this.
5681 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5682 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5684 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5685 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5686 (sparc64nbsd_collect_fpregset): Likewise.
5687 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5688 (sparc64nbsd_gregmap): ... this.
5689 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5691 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5692 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5693 (sparc64obsd_gregmap): ... this.
5694 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5696 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5697 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5698 (sparc32nbsd_gregmap): ... this.
5699 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5702 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5704 * score-tdep.c (score7_linux_gregset): New static regset
5706 (score7_linux_regset_from_core_section): Remove dynamic regset
5708 (score_gdbarch_init): Drop allocation of tdep structure.
5709 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5711 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5713 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5715 (am33_regset_from_core_section): Remove dynamic regset
5718 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5720 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5721 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5723 (mips_linux_regset_from_core_section): Remove dynamic regset
5725 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5726 'gregset64', 'fpregset', and 'fpregset64'.
5727 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5728 deleted tdep fields.
5730 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5732 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5734 (amd64_regset_from_core_section): Remove dynamic regset
5736 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5738 (amd64obsd_regset_from_core_section): Remove dynamic regset
5740 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5742 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5743 x86-common regset supply function.
5744 * i386-tdep.c (i386_collect_gregset): Make static.
5745 (i386_gregset): New global regset structure.
5746 (i386_fpregset, i386_xstateregset): New static regset structures.
5747 (i386_regset_from_core_section): Remove dynamic regset
5749 (i386_gdbarch_init): Remove initialization of tdep fields
5750 'gregset', 'fpregset', and 'xstateregset'.
5751 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5752 'fpregset', and 'xstateregset'.
5753 (i386_collect_gregset): Remove prototype.
5754 (i386_gregset): New declaration.
5755 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5757 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5760 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5762 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5763 (arm_linux_vfpregset): New static regset structures.
5764 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5766 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5767 and 'vfpregset' fields.
5769 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5771 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5772 (aarch64_linux_fpregset): New static regset structures.
5773 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5774 of regset structures.
5775 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5778 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5780 * regset.h (struct regset): Remove gdbarch field.
5781 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5782 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5783 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5785 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5786 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5787 (ppc32_linux_vsxregset): Likewise.
5788 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5789 via the regcache instead of the regset.
5790 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5791 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5792 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5793 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5796 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5798 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5799 Constify structures.
5800 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5801 (alphanbsd_aout_gregset): Likewise.
5802 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5803 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5805 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5806 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5808 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5809 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5810 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5811 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5812 * m88k-tdep.c (m88k_gregset): Likewise.
5813 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5814 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5815 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5816 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5817 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5818 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5819 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5820 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5821 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5823 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5824 * sh-tdep.h (sh_corefile_gregset): Likewise.
5825 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5826 * vax-tdep.c (vax_gregset): Likewise.
5828 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5830 Fix TLS access for -static -pthread.
5831 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5832 (try_thread_db_load_1): Initialize it.
5833 (thread_db_get_thread_local_address): Call it if LM is zero.
5834 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5835 * target.h (struct target_ops) (to_get_thread_local_address): Add
5836 load_module_addr comment.
5838 2014-05-21 Pedro Alves <palves@redhat.com>
5840 * dcache.c (dcache_read_memory_partial): If reading the cache line
5841 fails, fallback to reading just the memory the caller wanted.
5843 2014-05-20 Doug Evans <dje@google.com>
5845 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5846 instead of get_current_arch.
5848 2014-05-20 Pedro Alves <palves@redhat.com>
5850 * NEWS: Mention that compare-sections now works with all targets.
5852 * remote.c (PACKET_qCRC): New enum value.
5853 (remote_verify_memory): Don't send qCRC if the target has no
5854 execution. Use packet_support/packet_ok. If the target doesn't
5855 support the qCRC packet, fallback to a deep memory copy.
5856 (compare_sections_command): Say "target image" instead of "remote
5858 (_initialize_remote): Add PACKET_qCRC to the list of config
5859 packets that have no associated command. Extend comment.
5860 * target.c (simple_verify_memory, default_verify_memory): New
5862 * target.h (struct target_ops) <to_verify_memory>: Default to
5863 default_verify_memory.
5864 (simple_verify_memory): New declaration.
5865 * target-delegates.c: Regenerate.
5867 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5869 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5871 2014-05-20 Hui Zhu <hui@codesourcery.com>
5872 Yao Qi <yao@codesourcery.com>
5875 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5876 and change address of sp and pc.
5878 2014-05-19 Tom Tromey <tromey@redhat.com>
5880 * gdbtypes.c (rank_function): Use XNEWVEC.
5881 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5883 2014-05-19 Doug Evans <dje@google.com>
5885 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5886 build_type_unit_groups and moved closer to only caller. Remove
5887 arguments. All references updated. Remove outdated .gdb_index
5889 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5890 build_type_psymtabs_1.
5892 2014-05-19 Doug Evans <dje@google.com>
5894 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5895 n_type_unit_groups, all_type_unit_groups. All uses removed.
5896 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5897 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5898 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5899 (add_type_unit_group_to_table): Delete.
5901 2014-05-19 Doug Evans <dje@google.com>
5903 * eval.c (evaluate_subexp_standard): Add some comments.
5905 2014-05-17 Doug Evans <xdje42@gmail.com>
5907 * progspace.c (remove_program_space): Delete, unused.
5908 * progspace.h (remove_program_space): Ditto.
5910 2014-05-17 Doug Evans <xdje42@gmail.com>
5912 * inferior.c (prune_inferiors): Fix comment.
5913 (remove_inferior_command): Call prune_program_spaces.
5915 2014-05-16 Doug Evans <dje@google.com>
5917 New command line option -D.
5919 * main.c (set_gdb_data_directory): New function.
5920 (captured_main): Recognize -D. Flag error for --data-directory "".
5921 Call set_gdb_data_directory.
5922 (print_gdb_help): Print --data-directory, -D.
5923 * main.h (set_gdb_data_directory): Declare.
5924 * top.c (staged_gdb_datadir): New static global.
5925 (set_gdb_datadir): Call set_gdb_data_directory
5926 (show_gdb_datadir): New function.
5927 (init_main): Update init of data-directory parameter.
5929 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5931 Import the "dirfd" gnulib module.
5932 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5933 * gnulib/aclocal.m4: Update.
5934 * gnulib/config.in: Update.
5935 * gnulib/configure: Update.
5936 * gnulib/import/Makefile.am: Update.
5937 * gnulib/import/Makefile.in: Update.
5938 * gnulib/import/dirfd.c: New.
5939 * gnulib/import/m4/dirfd.m4: New.
5940 * gnulib/import/m4/gnulib-cache.m4: Update.
5941 * gnulib/import/m4/gnulib-comp.m4: Update.
5943 2014-05-16 Pierre Muller <muller@sourceware.org>
5944 Yao Qi <yao@codesourcery.com>
5946 * valprint.c (print_wchar): Move the code on checking whether
5947 W is a printable wide char to the default branch of switch
5948 statement below. Call wchar_printable instead of gdb_iswprint.
5950 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5952 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5953 ldr.w and ldrd instructions.
5955 2014-05-15 Doug Evans <dje@google.com>
5957 * dwarf2read.c (read_structure_type): Delete outdated comments.
5959 2014-05-14 Tom Tromey <tromey@redhat.com>
5961 * macrocmd.c (print_macro_definition): Reindent.
5963 2014-05-13 Doug Evans <xdje42@gmail.com>
5965 * python/py-cmd.c (cmdpy_completer): Add comment.
5966 (completers): Make const.
5968 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5970 * infrun.c (resume): Remove should_resume (unused). Move up
5971 declaration of resume_ptid.
5973 2014-05-13 Tom Tromey <tromey@redhat.com>
5975 * language.h (unop_type_check): Remove.
5976 (binop_type_check): Don't declare.
5978 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5980 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5981 call to regcache_raw_collect.
5983 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5985 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5986 mi_console->quote as the quoting character.
5988 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5990 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5992 2014-04-29 Tom Tromey <tromey@redhat.com>
5994 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5995 "show debug varobj".
5997 2014-05-07 Kyle McMartin <kyle@redhat.com>
5999 Pushed by Joel Brobecker <brobecker@adacore.com>.
6000 * aarch64-tdep.c (aarch64_software_single_step): New function.
6001 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6002 with aarch64_software_single_step.
6004 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6008 2014-05-05 Keith Seitz <keiths@redhat.com>
6010 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6011 variable or history value is successfully parsed.
6013 2014-05-05 Yao Qi <yao@codesourcery.com>
6014 Pedro Alves <palves@redhat.com>
6016 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6017 address of blocks that intersects the requested range. Trim
6018 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6020 * ctf.c (ctf_xfer_partial): Likewise.
6022 2014-05-05 Yao Qi <yao@codesourcery.com>
6024 * printcmd.c (display_command): Remove the check to
6025 target_has_execution.
6027 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6029 * ppcobsd-nat.c: Include "obsd-nat.h".
6030 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6032 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6034 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6036 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6037 and 16-bit signed and unsigned arguments. Update comment.
6038 (stap_parse_probe_arguments): Extend code to handle such
6039 arguments. Use warning instead of complaint to notify about
6040 unrecognized bitness.
6042 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6044 PR breakpoints/16889
6045 * stap-probe.c (stap_parse_probe_arguments): Simplify
6046 check for non-prefixed probes (i.e., probes whose
6047 arguments do not start with "N@"). Always set the
6048 argument type to a sane value.
6050 2014-05-01 David Taylor <dtaylor@emc.com>
6052 * remote.c (compare_sections_command): Add -r option to compare
6053 all loadable read-only sections.
6055 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6057 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6058 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6060 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6061 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6062 Remove unused CORE_ADDR argument. Update all callers.
6064 2014-04-29 Pedro Alves <palves@redhat.com>
6066 * remote.c (struct packet_config) <detect>: Extend comment.
6067 (add_packet_config_cmd): Don't set the config's detect or support
6069 (init_all_packet_configs): Also initialize the config's 'detect'
6071 (reset_all_packet_configs_support): New function.
6072 (remote_open_1): Call reset_all_packet_configs_support instead of
6073 init_all_packet_configs.
6074 (_initialize_remote): Initialize all packet configs. Assert that
6075 all packets have an associated command, except a few known
6078 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6080 * dwarf2read.c (read_subrange_type): Handle dynamic
6081 DW_AT_lower_bound attributes.
6083 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6085 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6086 dynamic bounds before computing its upper bound.
6087 (ada_discrete_type_low_bound): Same as above with the lower bound.
6089 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6091 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6092 range types. Adjust the array handling implementation to
6093 take advantage of this change.
6094 (resolve_dynamic_range): New function, mostly extracted from
6095 resolve_dynamic_bounds.
6096 (resolve_dynamic_array): New function, mostly extracted from
6097 resolve_dynamic_bounds.
6098 (resolve_dynamic_bounds): Delete.
6099 (resolve_dynamic_type): Reimplement. Add handling of
6100 TYPE_CODE_RANGE types.
6102 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6104 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6105 handling of parallel ___XA types.
6107 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6109 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6110 unnecessary second call to static_unwrap_type.
6112 2014-04-27 Hui Zhu <hui@codesourcery.com>
6114 * stack.c (print_frame_info): Call do_gdb_disassembly with
6115 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6117 2014-04-26 Doug Evans <xdje42@gmail.com>
6119 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6121 2014-04-25 Pedro Alves <palves@redhat.com>
6124 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6125 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6126 and newline from built string.
6127 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6128 (linux_ptrace_attach_fail_reason): ... this.
6129 * linux-nat.c (linux_nat_attach): Adjust to use
6130 linux_ptrace_attach_fail_reason.
6132 2014-04-25 Pedro Alves <palves@redhat.com>
6134 * remote.c (struct remote_state): Remove multi_process_aware,
6135 non_stop_aware, cond_tracepoints, cond_breakpoints,
6136 breakpoint_commands, fast_tracepoints, static_tracepoints,
6137 install_in_trace, disconnected_tracing,
6138 enable_disable_tracepoints, string_tracing, and
6139 augmented_libraries_svr4_read fields.
6140 (remote_multi_process_p): Move further below in the file.
6141 (struct packet_config): Add comments.
6142 (update_packet_config): Delete function.
6143 (show_packet_config_cmd): Use packet_config_support.
6144 (add_packet_config_cmd): Use NULL as set callback.
6145 (packet_ok): "set remote foo-packet"-style commands no longer
6146 change config->supported -- adjust.
6147 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6148 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6149 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6150 (PACKET_QNonStop, PACKET_multiprocess_feature)
6151 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6152 (PACKET_DisconnectedTracing_feature)
6153 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6154 (set_remote_protocol_packet_cmd): Delete function.
6155 (packet_config_support, packet_support): New functions.
6156 (set_remote_protocol_Z_packet_cmd): Don't call
6157 update_packet_config.
6158 (remote_query_attached, remote_pass_signals)
6159 (remote_program_signals, remote_threads_info)
6160 (remote_threads_extra_info, remote_start_remote): Use
6162 (remote_start_remote): Use packet_config_support and
6164 (init_all_packet_configs): Set all packets to unknown support,
6165 instead of calling update_packet_config.
6166 (remote_check_symbols): Use packet_support.
6167 (remote_supported_packet): Unconditionally set the packet config's
6169 (remote_multi_process_feature, remote_non_stop_feature)
6170 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6171 (remote_breakpoint_commands_feature)
6172 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6173 (remote_install_in_trace_feature)
6174 (remote_disconnected_tracing_feature)
6175 (remote_enable_disable_tracepoint_feature)
6176 (remote_string_tracing_feature)
6177 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6178 (remote_protocol_features): Adjust to use remote_supported_packet
6179 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6180 "ConditionalTracepoints", "ConditionalBreakpoints",
6181 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6182 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6183 "EnableDisableTracepoints", and "tracenz".
6184 (remote_query_supported): Use packet_support.
6185 (remote_open_1): Adjust.
6186 (extended_remote_attach_1): Use packet_support. Switch on the
6187 result of packet_ok instead of checking whether the packet ended
6189 (remote_vcont_resume): Use packet_support.
6190 (remote_resume, remote_stop_ns, fetch_register_using_p)
6191 (remote_prepare_to_store, store_register_using_P)
6192 (check_binary_download, remote_write_bytes): Use packet_support.
6193 (remote_vkill): Use packet_support. Switch on the result of
6194 packet_ok instead of checking whether the packet ended up
6196 (extended_remote_supports_disable_randomization): Use
6198 (extended_remote_run): Switch on the result of packet_ok instead
6199 of checking whether the packet ended up disabled.
6200 (remote_insert_breakpoint, remote_remove_breakpoint)
6201 (remote_insert_watchpoint, remote_remove_watchpoint)
6202 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6204 (remote_search_memory): Use packet_config_support.
6205 (remote_get_thread_local_address, remote_get_tib_address)
6206 (remote_hostio_send_command, remote_can_execute_reverse): Use
6208 (remote_supports_cond_tracepoints)
6209 (remote_supports_cond_breakpoints)
6210 (remote_supports_fast_tracepoints)
6211 (remote_supports_static_tracepoints)
6212 (remote_supports_install_in_trace)
6213 (remote_supports_enable_disable_tracepoint)
6214 (remote_supports_string_tracing)
6215 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6216 the packet config says the feature is enabled or disabled.
6217 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6218 (remote_get_trace_status): Use packet_support.
6219 (remote_set_disconnected_tracing): Adjust to check whether the
6220 feature is enabled with packet_support.
6221 (remote_set_trace_buffer_size, remote_use_agent)
6222 (remote_can_use_agent, remote_supports_btrace): Use
6224 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6225 Use packet_config_support.
6226 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6227 the packet config says the feature is enabled or disabled.
6228 (set_range_stepping): Use packet_support.
6230 2014-04-25 Tom Tromey <tromey@redhat.com>
6232 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6235 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6237 * NEWS: Mention support for C99 variable length arrays.
6239 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6241 * ada-lang.c (standard_exc): Expand introductory comment.
6243 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6244 Walfred Tedeschi <walfred.tedeschi@intel.com>
6246 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6248 (amd64_linux_read_description): Add code to handle AVX512 xstate
6249 mask and return respective tdesc.
6250 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6251 and features/i386/x32-avx512-linux.c.
6252 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6253 (amd64_linux_core_read_description): Add code to handle AVX512
6254 xstate mask and return respective tdesc.
6255 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6256 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6258 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6259 (tdesc_amd64_avx512_linux): New prototype.
6260 (tdesc_x32_avx512_linux): Likewise.
6261 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6262 features/i386/x32-avx512.c.
6263 (amd64_ymm_avx512_names): New register names for pseudo
6265 (amd64_ymmh_avx512_names): New register names for raw registers
6267 (amd64_k_names): New register names for K registers.
6268 (amd64_zmmh_names): New register names for ZMM raw registers.
6269 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6270 (amd64_xmm_avx512_names): New register names for XMM16-31
6272 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6274 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6275 if feature is present.
6276 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6277 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6278 (AMD64_NUM_REGS): Adjust to new number of registers.
6279 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6280 registers supplied via XSTATE by AVX512 registers.
6281 (i386_linux_read_description): Add case for AVX512.
6282 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6283 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6284 (i386_linux_core_read_description): Add case for AVX512.
6285 (i386_linux_init_abi): Install supported register note section
6287 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6289 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6290 registers to be number of zmm7h + 1.
6291 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6292 * i386-tdep.c: Include features/i386/i386-avx512.c.
6293 (i386_zmm_names): Add ZMM pseudo register names array.
6294 (i386_zmmh_names): Add ZMM raw register names array.
6295 (i386_k_names): Add K raw register names array.
6296 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6297 registers. AVX512 has 16 more ZMM registers than there are YMM
6299 (i386_zmmh_regnum_p): Add function to look up register number of
6301 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6302 (i386_k_regnum_p): Likewise for K raw registers.
6303 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6304 registers added by AVX512.
6305 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6306 registers added by AVX512.
6307 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6309 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6310 (i386_pseudo_register_name): Add ZMM pseudo registers.
6311 (i386_zmm_type): Construct and return vector registers type for ZMM
6313 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6314 ZMM0-31 pseudo registers and K registers.
6315 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6316 and YMM16-31 registers from register cache.
6317 (i386_pseudo_register_write): Add code to write K, ZMM and
6319 (i386_register_reggroup_p): Add code to include/exclude AVX512
6320 registers in/from respective register groups.
6321 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6322 registers if feature is present in xcr0.
6323 (i386_gdbarch_init): Add code to initialize AVX512 feature
6324 variables in tdep structure, wire in pseudo registers and call
6325 initialize_tdesc_i386_avx512.
6326 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6328 (i386_regnum): Add AVX512 registers.
6329 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6330 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6331 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6332 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6334 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6335 (i386_ymm_avx512_regnum_p): Likewise.
6336 (i386_k_regnum_p): Likewise.
6337 (i386_zmm_regnum_p): Likewise.
6338 (i386_zmmh_regnum_p): Likewise.
6339 * i387-tdep.c : Update year in copyright notice.
6340 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6342 (XSAVE_YMM_AVX512_ADDR): New macro.
6343 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6345 (XSAVE_XMM_AVX512_ADDR): New macro.
6346 (xsave_avx512_k_offset): New table for K register offsets in
6348 (XSAVE_AVX512_K_ADDR): New macro.
6349 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6351 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6352 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6354 (i387_collect_xsave): Add code to collect AVX512 registers from
6356 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6357 of XMM16-31 registers.
6358 (I387_NUM_K_REGS): New define for number of K registers.
6359 (I387_K0_REGNUM): New define for K0 register number.
6360 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6361 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6362 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6364 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6365 (I387_XMM16_REGNUM): New define for XMM16 register number.
6366 (I387_YMM0_REGNUM): New define for YMM0 register number.
6367 (I387_KEND_REGNUM): New define for last K register number.
6368 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6369 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6371 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6373 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6375 * features/Makefile: Add AVX512 related files.
6376 * features/i386/32bit-avx512.xml: New file.
6377 * features/i386/64bit-avx512.xml: Likewise.
6378 * features/i386/amd64-avx512-linux.c: Likewise.
6379 * features/i386/amd64-avx512-linux.xml: Likewise.
6380 * features/i386/amd64-avx512.c: Likewise.
6381 * features/i386/amd64-avx512.xml: Likewise.
6382 * features/i386/i386-avx512-linux.c: Likewise.
6383 * features/i386/i386-avx512-linux.xml: Likewise.
6384 * features/i386/i386-avx512.c: Likewise.
6385 * features/i386/i386-avx512.xml: Likewise.
6386 * features/i386/x32-avx512-linux.c: Likewise.
6387 * features/i386/x32-avx512-linux.xml: Likewise.
6388 * features/i386/x32-avx512.c: Likewise.
6389 * features/i386/x32-avx512.xml: Likewise.
6390 * regformats/i386/amd64-avx512-linux.dat: New file.
6391 * regformats/i386/amd64-avx512.dat: Likewise.
6392 * regformats/i386/i386-avx512-linux.dat: Likewise.
6393 * regformats/i386/i386-avx512.dat: Likewise.
6394 * regformats/i386/x32-avx512-linux.dat: Likewise.
6395 * regformats/i386/x32-avx512.dat: Likewise.
6396 * NEWS: Add note about new support for AVX512.
6399 2014-04-23 Pedro Alves <palves@redhat.com>
6401 * breakpoint.c (insert_bp_location): Tolerate errors if the
6402 breakpoint is set in a user-loaded objfile.
6403 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6404 location is marked shlib_disabled. If the breakpoint is set in a
6405 user-loaded objfile is a GDB-side memory breakpoint, validate it
6406 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6407 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6409 * mem-break.c (memory_validate_breakpoint): New function.
6410 * objfiles.c (userloaded_objfile_contains_address_p): New
6412 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6413 * target.h (memory_validate_breakpoint): New declaration.
6415 2014-04-23 Pedro Alves <palves@redhat.com>
6417 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6418 the breakpoint is set in a shared library, only suppress
6419 errors for software breakpoints, not hardware breakpoints.
6421 2014-04-22 Pedro Alves <palves@redhat.com>
6423 * infrun.c (schedlock_applies): New function, factored out from
6424 find_thread_needs_step_over.
6425 (find_thread_needs_step_over): Use it.
6426 (switch_back_to_stepped_thread): Always clear trap_expected if the
6427 step over is finished. Return early if scheduler locking applies.
6428 Look for the stepping thread and a potential step-over thread with
6430 (currently_stepping_or_nexting_callback): Delete.
6432 2014-04-22 Nick Clifton <nickc@redhat.com>
6434 * NEWS: Mention that ARM sim now supports tracing.
6436 2014-04-22 Yao Qi <yao@codesourcery.com>
6438 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6440 * tracefile.c (tracefile_fetch_registers): ... it. New
6442 * tracefile.h (tracefile_fetch_registers): Declare.
6443 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6444 tracefile_fetch_registers.
6446 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6449 * windows-nat.c (thread_rec): Don't display a warning when
6450 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6451 fails for any reason, set th->suspended to -1, so that we don't
6452 try to resume such a thread. Also, don't return NULL in these
6453 cases, to avoid completely ruin the session due to "PC register is
6454 not available" error.
6455 (do_windows_fetch_inferior_registers): Check errors in
6456 GetThreadContext call.
6457 (windows_continue): Accept an additional argument KILLED; if not
6458 zero, ignore errors in the SetThreadContext call, since the
6459 inferior was killed and is shutting down.
6460 (windows_resume, get_windows_debug_event)
6461 (windows_create_inferior, windows_mourn_inferior)
6462 (windows_kill_inferior): All callers of windows_continue changed
6463 to adjust to its new calling sequence.
6465 2014-04-19 Yao Qi <yao@codesourcery.com>
6467 * ctf.c (ctf_open): Call post_create_inferior.
6469 2014-04-19 Yao Qi <yao@codesourcery.com>
6471 * ctf.c (handle_id): New static variable.
6472 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6473 value. Get the declaration of event "register" and get length
6474 of field "contents".
6476 2014-04-19 Yao Qi <yao@codesourcery.com>
6478 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6480 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6482 * valops.c (oload_method_static): Remove unnecessary argument
6483 METHOD. Update all callers.
6485 2014-04-18 Pedro alves <palves@redhat.com>
6486 Tom Tromey <tromey@redhat.com>
6489 * frame.c (get_prev_frame_1): Rename to ...
6490 (get_prev_frame_always): ... this, and make extern. Adjust.
6491 (skip_artificial_frames): Use get_prev_frame_always.
6492 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6493 (get_frame_unwind_stop_reason): Adjust to rename.
6494 * frame.h (get_prev_frame_always): Declare.
6495 * inline-frame.c: Include frame.h.
6496 (inline_frame_this_id): Use get_prev_frame_always.
6498 2014-04-18 Tristan Gingold <gingold@adacore.com>
6500 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6501 code by using bfd_mach_o_get_base_address.
6503 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6505 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6506 (spu_ax_pseudo_register_collect): New function.
6507 (spu_ax_pseudo_register_push_stack): Likewise.
6508 (spu_dwarf_reg_to_regnum): Likewise.
6509 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6511 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6513 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6514 Replace FRAME argument with FRAME_ID.
6515 * gdbarch.c, gdbarch.h: Regenerate.
6516 * findvar.c (default_value_from_register): Add GDBARCH argument;
6517 replace FRAME by FRAME_ID. No longer call get_frame_id.
6518 (value_from_register): Update call to gdbarch_value_from_register.
6519 * value.h (default_value_from_register): Update prototype.
6520 * s390-linux-tdep.c (s390_value_from_register): Update interface
6521 and call to default_value_from_register.
6522 * spu-tdep.c (spu_value_from_register): Likewise.
6524 * findvar.c (address_from_register): Remove TYPE argument.
6525 Do not call value_from_register; use gdbarch_value_from_register
6526 with null_frame_id instead.
6527 * value.h (address_from_register): Update prototype.
6528 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6529 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6530 address_from_register interface change.
6532 2014-04-17 Yao Qi <yao@codesourcery.com>
6534 * gdbtypes.h: Update comments to link to types and macros'
6537 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6539 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6541 2014-04-16 Keith Seitz <keiths@redhat.com>
6544 * dwarf2read.c (skip_one_die): Check that all relative-offset
6545 sibling DIEs fall within range of the current reader's buffer.
6546 (read_partial_die): Likewise.
6548 2014-04-16 Keith Seitz <keiths@redhat.com>
6551 * cp-namespace.c (lookup_symbol_file): If the type name of
6552 `this' is NULL, return immediately.
6554 2014-04-14 Keith Seitz <keiths@redhat.com>
6557 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6558 from symbol_matches_domain in symtab.c. All local callers
6559 of symbol_matches_domain updated.
6560 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6561 search STRUCT_DOMAIN.
6562 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6563 independently. standard_lookup will do that automatically.
6564 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6565 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6566 (cp_lookup_symbol_in_namespace): Likewise.
6567 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6568 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6569 may return a STRUCT_DOMAIN match.
6570 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6571 * cp-support.c: Include language.h.
6572 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6574 * psymtab.c (match_partial_symbol): Compare the requested
6575 domain with the symbol's domain directly.
6576 (lookup_partial_symbol): Likewise.
6577 * symtab.c (lookup_symbol_in_language): Explain when/why
6578 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6579 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6580 appropriate languages.
6581 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6582 and moved to ada-lang.c
6583 (lookup_block_symbol): Explain that this function only returns
6584 symbol matching the requested DOMAIN.
6585 Compare the requested domain with the symbol's domain directly.
6586 (iterate_over_symbols): Compare the requested domain with the
6587 symbol's domain directly.
6588 * symtab.h (symbol_matches_domain): Remove.
6590 2014-04-14 Tom Tromey <tromey@redhat.com>
6593 * c-exp.y (type_aggregate_p): New function.
6594 (qualified_name, classify_inner_name): Use it.
6595 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6596 and TYPE_TARGET_TYPE of an enum type.
6597 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6599 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6600 handle TYPE_DECLARED_CLASS.
6601 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6603 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6604 * valops.c (enum_constant_from_type): New function.
6605 (value_aggregate_elt): Use it.
6606 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6609 2014-04-14 Tom Tromey <tromey@redhat.com>
6611 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6612 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6614 * value.h (value_aggregate_elt): Update.
6616 2014-04-14 Tom Tromey <tromey@redhat.com>
6618 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6620 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6622 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6623 (evaluate_subexp_standard): Pass noside argument.
6624 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6625 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6626 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6627 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6628 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6630 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6632 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6633 points to a constant blob.
6635 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6637 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6638 property and store it as the high bound and flag the range accordingly.
6639 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6640 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6641 * gdbtypes.h (enum range_flags): New enum.
6642 (struct range_bounds): Add flags member.
6644 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6646 * c-typeprint.c (c_type_print_varspec_suffix): Added
6647 check for not yet resolved high bound. If unresolved, print
6648 "variable length" string to the console instead of random
6651 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6653 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6655 (ada_template_to_fixed_record_type_1): Likewise.
6656 (ada_to_fixed_type_1): Likewise.
6657 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6658 (cp_print_value): Likewise.
6659 * d-valprint.c (dynamic_array_type): Likewise.
6660 * findvar.c (address_of_variable): Likewise.
6661 * jv-valprint.c (java_value_print): Likewise.
6662 * valops.c (value_ind): Likewise.
6663 * value.c (coerce_ref): Likewise.
6665 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6667 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6668 value and retrieve the dynamic type size.
6670 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6672 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6673 passed to sizeof is dynamic evaluate the argument to compute the length.
6675 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6676 Joel Brobecker <brobecker@adacore.com>
6678 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6679 (dwarf2_evaluate_property): New function.
6680 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6681 * dwarf2read.c (attr_to_dynamic_prop): New function.
6682 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6684 * gdbtypes.c: Include dwarf2loc.h.
6685 (is_dynamic_type): New function.
6686 (resolve_dynamic_type): New function.
6687 (resolve_dynamic_bounds): New function.
6688 (get_type_length): New function.
6689 (check_typedef): Use get_type_length to compute type length.
6690 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6691 (TYPE_LOW_BOUND_KIND): New macro.
6692 (is_dynamic_type): New function prototype.
6693 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6694 to resolve dynamic properties of the type. Update comment.
6695 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6697 2014-04-14 Richard Henderson <rth@redhat.com>
6699 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6701 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6702 Doug Evans <xdje42@gmail.com>
6704 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6705 dereference TYPE_CODE_REF values.
6707 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6709 Revert the following changes due to regressions:
6711 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6712 (dwarf2_evaluate_property): New function.
6713 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6714 * dwarf2read.c (attr_to_dynamic_prop): New function.
6715 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6717 * gdbtypes.c: Include dwarf2loc.h.
6718 (is_dynamic_type): New function.
6719 (resolve_dynamic_type): New function.
6720 (resolve_dynamic_bounds): New function.
6721 (get_type_length): New function.
6722 (check_typedef): Use get_type_length to compute type length.
6723 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6724 (TYPE_LOW_BOUND_KIND): New macro.
6725 (is_dynamic_type): New function prototype.
6726 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6727 to resolve dynamic properties of the type. Update comment.
6728 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6730 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6731 passed to sizeof is dynamic evaluate the argument to compute the length.
6733 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6734 value and retrieve the dynamic type size.
6736 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6737 (ada_template_to_fixed_record_type_1): Likewise.
6738 (ada_to_fixed_type_1): Likewise.
6739 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6740 (cp_print_value): Likewise.
6741 * d-valprint.c (dynamic_array_type): Likewise.
6742 * eval.c (evaluate_subexp_with_coercion): Likewise.
6743 * findvar.c (address_of_variable): Likewise.
6744 * jv-valprint.c (java_value_print): Likewise.
6745 * valops.c (value_ind): Likewise.
6746 * value.c (coerce_ref): Likewise.
6748 * c-typeprint.c (c_type_print_varspec_suffix): Added
6749 check for not yet resolved high bound. If unresolved, print
6750 "variable length" string to the console instead of random
6753 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6754 property and store it as the high bound and flag the range accordingly.
6755 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6756 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6757 * gdbtypes.h (enum range_flags): New enum.
6758 (struct range_bounds): Add flags member.
6760 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6761 points to a constant blob.
6763 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6764 (evaluate_subexp_standard): Pass noside argument.
6765 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6766 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6767 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6768 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6769 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6771 2014-04-11 Keith Seitz <keiths@redhat.com>
6774 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6775 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6778 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6780 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6781 (evaluate_subexp_standard): Pass noside argument.
6782 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6783 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6784 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6785 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6786 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6788 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6790 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6791 points to a constant blob.
6793 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6795 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6796 property and store it as the high bound and flag the range accordingly.
6797 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6798 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6799 * gdbtypes.h (enum range_flags): New enum.
6800 (struct range_bounds): Add flags member.
6802 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6804 * c-typeprint.c (c_type_print_varspec_suffix): Added
6805 check for not yet resolved high bound. If unresolved, print
6806 "variable length" string to the console instead of random
6809 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6811 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6812 (ada_template_to_fixed_record_type_1): Likewise.
6813 (ada_to_fixed_type_1): Likewise.
6814 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6815 (cp_print_value): Likewise.
6816 * d-valprint.c (dynamic_array_type): Likewise.
6817 * eval.c (evaluate_subexp_with_coercion): Likewise.
6818 * findvar.c (address_of_variable): Likewise.
6819 * jv-valprint.c (java_value_print): Likewise.
6820 * valops.c (value_ind): Likewise.
6821 * value.c (coerce_ref): Likewise.
6823 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6825 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6826 value and retrieve the dynamic type size.
6828 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6830 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6831 passed to sizeof is dynamic evaluate the argument to compute the length.
6833 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6835 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6836 (dwarf2_evaluate_property): New function.
6837 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6838 * dwarf2read.c (attr_to_dynamic_prop): New function.
6839 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6841 * gdbtypes.c: Include dwarf2loc.h.
6842 (is_dynamic_type): New function.
6843 (resolve_dynamic_type): New function.
6844 (resolve_dynamic_bounds): New function.
6845 (get_type_length): New function.
6846 (check_typedef): Use get_type_length to compute type length.
6847 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6848 (TYPE_LOW_BOUND_KIND): New macro.
6849 (is_dynamic_type): New function prototype.
6850 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6851 to resolve dynamic properties of the type. Update comment.
6852 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6854 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6856 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6857 declaring high/low bounds and change uses accordingly. Call
6858 create_range_type instead of create_static_range_type.
6859 * gdbtypes.c (create_range_type): New function.
6860 (create_range_type): Convert bounds into struct bound_prop and pass
6861 them to create_range_type.
6862 * gdbtypes.h (struct bound_prop): New struct.
6863 (create_range_type): New function prototype.
6864 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6865 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6866 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6868 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6870 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6872 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6873 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6874 * ada-lang.c: All uses of create_range_type updated.
6875 * coffread.c: All uses of create_range_type updated.
6876 * dwarf2read.c: All uses of create_range_type updated.
6877 * f-exp.y: All uses of create_range_type updated.
6878 * m2-valprint.c: All uses of create_range_type updated.
6879 * mdebugread.c: All uses of create_range_type updated.
6880 * stabsread.c: All uses of create_range_type updated.
6881 * valops.c: All uses of create_range_type updated.
6882 * valprint.c: All uses of create_range_type updated.
6884 2014-04-10 Pedro Alves <palves@redhat.com>
6886 * breakpoint.c (single_step_breakpoints)
6887 (single_step_gdbarch): Move up in the file.
6888 (one_breakpoint_xfer_memory): New function, factored out from ...
6889 (breakpoint_xfer_memory): ... here. Also process single-step
6892 2014-04-09 Tristan Gingold <gingold@adacore.com>
6894 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6896 (darwin_decode_exception_message): Free port only after use.
6898 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6900 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6901 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6902 when setting the size of call_length.
6904 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6906 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6907 dereference TYPE_CODE_REF values.
6909 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6911 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6912 end of warning message.
6914 2014-04-03 Doug Evans <dje@google.com>
6916 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6917 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6919 2014-04-02 Alan Modra <amodra@gmail.com>
6921 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6922 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6923 (struct symbol_file_add_from_memory_args): Add size field.
6924 (find_vdso_size): New function.
6925 (add_vsyscall_page): Attempt to find vdso size.
6927 2014-04-01 Doug Evans <dje@google.com>
6929 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6931 2014-04-01 Tristan Gingold <gingold@adacore.com>
6933 * darwin-nat.c (darwin_encode_reply): Add prototype.
6934 (darwin_decode_exception_message): Reply to unknown inferiors.
6935 (darwin_decode_message): Handle message by id. Ignore message
6936 to unknown inferior.
6937 (darwin_wait): Discard unknown messages, add debug trace.
6939 2014-03-31 Doug Evans <dje@google.com>
6941 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6944 2014-03-31 Doug Evans <dje@google.com>
6946 New option "set print symbol-loading".
6948 * solib.c (solib_read_symbols): Only print symbol loading messages
6950 (solib_add): If symbol loading is in "brief" mode, notify user
6951 symbols are being loaded.
6952 (reload_shared_libraries_1): Ditto.
6953 * symfile.c (print_symbol_loading_off): New static global.
6954 (print_symbol_loading_brief): New static global.
6955 (print_symbol_loading_full): New static global.
6956 (print_symbol_loading_enums): New static global.
6957 (print_symbol_loading): New static global.
6958 (print_symbol_loading_p): New function.
6959 (symbol_file_add_with_addrs): Only print symbol loading messages
6961 (_initialize_symfile): Register "print symbol-loading" set/show
6963 * symfile.h (print_symbol_loading_p): Declare.
6965 2014-03-30 Doug Evans <xdje42@gmail.com>
6967 * infrun.c (set_last_target_status): New function.
6968 (handle_inferior_event): Call it.
6970 2014-03-30 Doug Evans <xdje42@gmail.com>
6972 * inferior.h (enum stop_kind): Improve comment.
6974 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6976 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6977 a reference, strip the reference layer before calling
6978 the lang_ops value_has_mutated callback.
6980 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6982 Remove some globals from our parser.
6983 * language.c (unk_lang_parser): Add "struct parser_state"
6985 * language.h (struct language_defn) <la_parser>: Likewise.
6986 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6987 (initialize_expout): Add "struct parser_state" argument.
6988 Rewrite function to use the parser state.
6989 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6990 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6991 write_exp_elt_longcst, write_exp_elt_dblcst,
6992 write_exp_elt_decfloatcst, write_exp_elt_type,
6993 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6994 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6995 write_dollar_variable): Likewise.
6996 (parse_exp_in_context_1): Use parser state.
6997 (insert_type_address_space): Add "struct parser_state" argument.
6999 (increase_expout_size): New function.
7000 * parser-defs.h: Forward declare "struct language_defn" and
7001 "struct parser_state".
7002 (expout, expout_size, expout_ptr): Remove extern declarations.
7003 (parse_gdbarch, parse_language): Rewrite macro declarations to
7004 accept the parser state.
7005 (struct parser_state): New struct.
7006 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7007 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7008 write_exp_elt_decfloatcst, write_exp_elt_type,
7009 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7010 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7011 write_exp_msymbol, write_dollar_variable,
7012 mark_struct_expression, insert_type_address_space): Add "struct
7013 parser_state" argument.
7014 (increase_expout_size): New function.
7015 * utils.c (do_clear_parser_state): New function.
7016 (make_cleanup_clear_parser_state): Likewise.
7017 * utils.h (make_cleanup_clear_parser_state): New function
7019 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7020 Update calls to write_exp* in order to pass the parser state.
7021 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7022 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7023 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7024 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7025 * stap-probe.c (stap_parse_register_operand): Likewise.
7026 (stap_parse_single_operand): Likewise.
7027 (stap_parse_argument_1): Likewise.
7028 (stap_parse_argument): Use parser state.
7029 * stap-probe.h: Include "parser-defs.h".
7030 (struct stap_parse_info) <pstate>: New field.
7031 * c-exp.y (parse_type): Rewrite to use parser state.
7032 (yyparse): Redefine to c_parse_internal.
7033 (pstate): New global variable.
7034 (parse_number): Add "struct parser_state" argument.
7035 (write_destructor_name): Likewise.
7036 (type_exp): Update calls to write_exp* and similars in order to
7038 (exp1, exp, variable, qualified_name, space_identifier,
7039 typename, typebase): Likewise.
7040 (write_destructor_name, parse_number, lex_one_token,
7041 classify_name, classify_inner_name, c_parse): Add "struct
7042 parser_state" argument. Update function to use parser state.
7043 * c-lang.h: Forward declare "struct parser_state".
7044 (c_parse): Add "struct parser_state" argument.
7045 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7046 (yyparse): Redefine macro to ada_parse_internal.
7047 (pstate): New variable.
7048 (write_int, write_object_renaming, write_var_or_type,
7049 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7050 type_int, type_long, type_long_long, type_float, type_double,
7051 type_long_double, type_char, type_boolean, type_system_address):
7052 Add "struct parser_state" argument.
7053 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7054 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7055 var_or_type, aggregate, aggregate_component_list,
7056 positional_list, others, component_group,
7057 component_associations): Update calls to write_exp* and similar
7058 functions in order to use parser state.
7059 (ada_parse, write_var_from_sym, write_int,
7060 write_exp_op_with_string, write_object_renaming,
7061 find_primitive_type, write_selectors, write_ambiguous_var,
7062 write_var_or_type, write_name_assoc, type_int, type_long,
7063 type_long_long, type_float, type_double, type_long_double,
7064 type_char, type_boolean, type_system_address): Add "struct
7065 parser_state" argument. Adjust function to use parser state.
7066 * ada-lang.c (parse): Likewise.
7067 * ada-lang.h: Forward declare "struct parser_state".
7068 (ada_parse): Add "struct parser_state" argument.
7069 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7070 calls to both functions.
7071 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7073 (yyparse): Redefine macro to f_parse_internal.
7074 (pstate): New variable.
7075 (parse_number): Add "struct parser_state" argument.
7076 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7077 and similars in order to use parser state.
7078 (parse_number): Adjust code to use parser state.
7080 (f_parse): New function.
7081 * f-lang.h: Forward declare "struct parser_state".
7082 (f_parse): Add "struct parser_state" argument.
7083 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7085 (yyparse): Redefine macro for java_parse_internal.
7086 (pstate): New variable.
7087 (push_expression_name, push_expression_name, insert_exp): Add
7088 "struct parser_state" argument.
7089 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7090 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7091 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7092 PostIncrementExpression, PostDecrementExpression,
7093 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7094 UnaryExpressionNotPlusMinus, CastExpression,
7095 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7096 RelationalExpression, EqualityExpression, AndExpression,
7097 ExclusiveOrExpression, InclusiveOrExpression,
7098 ConditionalAndExpression, ConditionalOrExpression,
7099 ConditionalExpression, Assignment, LeftHandSide): Update
7100 calls to write_exp* and similars in order to use parser state.
7101 (parse_number): Ajust code to use parser state.
7103 (java_parse): New function.
7104 (push_variable): Add "struct parser_state" argument. Adjust
7105 code to user parser state.
7106 (push_fieldnames, push_qualified_expression_name,
7107 push_expression_name, insert_exp): Likewise.
7108 * jv-lang.h: Forward declare "struct parser_state".
7109 (java_parse): Add "struct parser_state" argument.
7110 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7112 (yyparse): Redefine macro to m2_parse_internal.
7113 (pstate): New variable.
7114 (type_exp, exp, fblock, variable, type): Update calls to
7115 write_exp* and similars to use parser state.
7117 (m2_parse): New function.
7118 * m2-lang.h: Forward declare "struct parser_state".
7119 (m2_parse): Add "struct parser_state" argument.
7120 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7121 * objc-lang.h: Forward declare "struct parser_state".
7122 (end_msglist): Add "struct parser_state" argument.
7123 * p-exp.y (parse_type): Rewrite macro to use parser state.
7124 (yyparse): Redefine macro to pascal_parse_internal.
7125 (pstate): New variable.
7126 (parse_number): Add "struct parser_state" argument.
7127 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7128 write_exp* and similars in order to use parser state.
7129 (parse_number, yylex): Adjust code to use parser state.
7130 (pascal_parse): New function.
7131 * p-lang.h: Forward declare "struct parser_state".
7132 (pascal_parse): Add "struct parser_state" argument.
7133 * go-exp.y (parse_type): Rewrite macro to use parser state.
7134 (yyparse): Redefine macro to go_parse_internal.
7135 (pstate): New variable.
7136 (parse_number): Add "struct parser_state" argument.
7137 (type_exp, exp1, exp, variable, type): Update calls to
7138 write_exp* and similars in order to use parser state.
7139 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7140 to use parser state.
7141 (go_parse): Likewise.
7142 * go-lang.h: Forward declare "struct parser_state".
7143 (go_parse): Add "struct parser_state" argument.
7145 2014-03-27 Doug Evans <dje@google.com>
7147 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7149 2014-03-27 Doug Evans <dje@google.com>
7151 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7152 Remove argument abbrev_section. All callers updated.
7154 2014-03-27 Doug Evans <dje@google.com>
7156 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7157 addr_base, ranges_base.
7159 2014-03-26 Keith Seitz <keiths@redhat.com>
7161 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7162 types, not VAR_DOMAIN.
7164 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7166 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7168 * features/nios2-linux.c: Regenerated.
7169 * features/nios2.c: Regenerated.
7171 2014-03-25 Pedro Alves <palves@redhat.com>
7173 * cli/cli-script.c (script_from_file): Force the interpreter to
7176 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7178 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7179 small stack allocation.
7181 2014-03-24 Tristan Gingold <gingold@adacore.com>
7183 * darwin-nat.c (exc_server): Remove unused prototype.
7184 (darwin_dump_message): Correctly display data on x86_64.
7185 (darwin_encode_reply): Fix style.
7186 Add comments and fix indentation.
7188 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7190 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7192 2014-03-22 Doug Evans <xdje42@gmail.com>
7194 * infcmd.c: Whitespace fixes.
7195 (interrupt_command): Merge two function comments into one.
7197 2014-03-22 Doug Evans <xdje42@gmail.com>
7199 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7202 2014-03-22 Yao Qi <yao@codesourcery.com>
7204 * remote.c (target_read_live_memory): Remove.
7205 (memory_xfer_live_readonly_partial): Rename it to
7206 remote_xfer_live_readonly_partial. Remove argument 'object'.
7207 All callers updated. Call remote_read_bytes_1
7208 instead of target_read_live_memory.
7209 * tracepoint.c (set_traceframe_number): Remove.
7210 (make_cleanup_restore_traceframe_number): Likewise .
7211 * tracepoint.h (set_traceframe_number): Remove declaration.
7212 (make_cleanup_restore_traceframe_number): Likewise.
7214 2014-03-22 Yao Qi <yao@codesourcery.com>
7216 * remote.c (remote_read_bytes): Move code on reading from the
7218 (remote_read_bytes_1): ... here. New function.
7220 2014-03-22 Yao Qi <yao@codesourcery.com>
7222 * ctf.c (ctf_xfer_partial): Check the return value of
7223 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7224 return TARGET_XFER_UNAVAILABLE.
7225 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7226 * target.c (target_read_live_memory): Move it to remote.c.
7227 (memory_xfer_live_readonly_partial): Likewise.
7228 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7229 * remote.c (target_read_live_memory): Moved from target.c.
7230 (memory_xfer_live_readonly_partial): Likewise.
7231 (remote_read_bytes): Factored out from
7232 memory_xfer_partial_1.
7234 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7236 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7239 2014-03-21 Pedro Alves <palves@redhat.com>
7241 * infrun.c (normal_stop): Extend comment.
7243 2014-03-21 Hui Zhu <hui@codesourcery.com>
7244 Pedro Alves <palves@redhat.com>
7246 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7248 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7249 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7250 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7252 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7254 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7255 `z' formatted output modifier.
7257 2014-03-20 Tom Tromey <tromey@redhat.com>
7258 Sergio Durigan Junior <sergiodj@redhat.com>
7260 * probe.c (parse_probes): Turn assert into an ordinary error.
7261 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7262 exceptions when parsing probes. Rearrange the code for clarity.
7264 2014-03-20 Tom Tromey <tromey@redhat.com>
7267 * top.c (execute_command): Only dispatch events if the command
7270 2014-03-20 Tom Tromey <tromey@redhat.com>
7273 * infcall.c: Include event-top.h.
7274 (run_inferior_call): Call async_disable_stdin if needed.
7276 2014-03-20 Pedro Alves <palves@redhat.com>
7278 * infrun.c (prepare_to_proceed): Delete.
7279 (thread_still_needs_step_over): New function.
7280 (find_thread_needs_step_over): New function.
7281 (proceed): If the current thread needs a step-over, set its
7282 steping_over_breakpoint flag. Adjust to use
7283 find_thread_needs_step_over instead of prepare_to_proceed.
7284 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7285 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7287 (switch_back_to_stepped_thread): Step over breakpoints of all
7288 threads not the stepping thread, before switching back to the
7291 2014-03-20 Pedro Alves <palves@redhat.com>
7293 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7295 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7296 * infrun.c (saved_singlestep_ptid)
7297 (stepping_past_singlestep_breakpoint): Delete.
7298 (resume): Remove stepping_past_singlestep_breakpoint handling.
7299 (proceed): Store the prev_pc of the stepping thread too.
7300 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7302 (enum infwait_states): Delete infwait_thread_hop_state.
7303 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7305 (handle_inferior_event): Adjust.
7306 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7307 handling and the thread-hop code. Before removing single-step
7308 breakpoints, check whether the thread hit a single-step breakpoint
7309 of another thread. If it did, the trap is not a random signal.
7310 (switch_back_to_stepped_thread): If the event thread hit a
7311 single-step breakpoint, unblock it before switching to the
7312 stepping thread. Handle the case of the stepped thread having
7314 (keep_going): Handle the case of the current thread moving past a
7315 single-step breakpoint.
7317 2014-03-20 Pedro Alves <palves@redhat.com>
7320 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7321 are being stepped over.
7322 (breakpoint_address_match): Make extern.
7323 * breakpoint.h (breakpoint_address_match): New declaration.
7324 * inferior.h (stepping_past_instruction_at): New declaration.
7325 * infrun.c (struct step_over_info): New type.
7326 (step_over_info): New global.
7327 (set_step_over_info, clear_step_over_info)
7328 (stepping_past_instruction_at): New functions.
7329 (handle_inferior_event): Clear the step-over info when
7330 trap_expected is cleared.
7331 (resume): Remove now stale comment.
7332 (clear_proceed_status): Clear step-over info.
7333 (proceed): Adjust step-over handling to set or clear the step-over
7334 info instead of removing all breakpoints.
7335 (handle_signal_stop): When setting up a thread-hop, don't remove
7337 (stop_stepping): Clear step-over info.
7338 (keep_going): Adjust step-over handling to set or clear step-over
7339 info and then always inserting breakpoints, instead of removing
7340 all breakpoints when stepping over one.
7342 2014-03-20 Pedro Alves <palves@redhat.com>
7344 * infrun.c (previous_inferior_ptid): Adjust comment.
7345 (deferred_step_ptid): Delete.
7346 (infrun_thread_ptid_changed, prepare_to_proceed)
7347 (init_wait_for_inferior): Adjust.
7348 (handle_signal_stop): Delete deferred_step_ptid handling.
7350 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7353 * defs.h (sync_quit_force_run): New declaration.
7354 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7355 * event-top.c (async_sigterm_handler): New declaration.
7356 (async_sigterm_token): New variable.
7357 (async_init_signals): Create also async_sigterm_token.
7358 (async_sigterm_handler): New function.
7359 (sync_quit_force_run): New variable.
7360 (handle_sigterm): Replace quit_force call by other calls.
7361 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7363 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7365 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7366 offset into SPE pseudo registers.
7368 2014-03-18 Pedro Alves <palves@redhat.com>
7371 * inferior.h (print_stop_event): Declare.
7372 * infrun.c (print_stop_event): New, factored out from ...
7373 (normal_stop): ... this.
7374 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7375 of bpstat_print/print_stack_frame.
7377 2014-03-17 Tom Tromey <tromey@redhat.com>
7379 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7381 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7383 * ada-lang.c (decode_constrained_packed_array): Perform a
7384 minimal coercion for reference with coerce_ref instead of
7387 2014-03-17 Tristan Gingold <gingold@adacore.com>
7389 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7390 (darwin_solib_create_inferior_hook): Emit a warning if version
7393 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7395 * python/py-value.c (get_field_flag): Cast flag_name argument to
7396 PyObject_GetAttrString to support Python 2.4.
7398 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7400 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7401 (Global Maintainers): Remove Jan Kratochvil.
7403 2014-03-14 Pedro Alves <palves@redhat.com>
7405 * inferior.h (terminal_ours_for_output): Rename to ...
7406 (child_terminal_ours_for_output): ... this.
7407 (terminal_save_ours): Rename to ...
7408 (child_terminal_save_ours): ... this.
7409 (terminal_ours): Rename to ...
7410 (child_terminal_ours): ... this.
7411 (terminal_inferior): Rename to ...
7412 (child_terminal_inferior): ... this.
7413 (terminal_init_inferior): Rename to ...
7414 (child_terminal_init_inferior): ... this.
7415 (terminal_init_inferior_with_pgrp): Rename to ...
7416 (child_terminal_init_inferior_with_pgrp): ... this.
7417 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7418 (child_terminal_init_with_pgrp): ... this.
7419 (terminal_save_ours): Rename to ...
7420 (child_terminal_save_ours): ... this.
7421 (terminal_init_inferior): Rename to ...
7422 (child_terminal_init): ... this. Adjust.
7423 (terminal_inferior): Rename to ...
7424 (child_terminal_inferior): ... this.
7425 (terminal_ours_for_output): Rename to ...
7426 (child_terminal_ours_for_output): ... this. Adjust.
7427 (terminal_ours): Rename to ...
7428 (child_terminal_ours): ... this.
7429 (terminal_ours_1): Rename to ...
7430 (child_terminal_ours_1): ... this. Adjust.
7431 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7432 * windows-nat.c (do_initial_windows_stuff): Adjust.
7433 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7434 (gnu_terminal_init): ... this. Adjust.
7435 (gnu_target): Adjust.
7436 * inf-child.c (inf_child_target): Adjust.
7438 2014-03-13 Doug Evans <xdje42@gmail.com>
7441 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7444 2014-03-13 Doug Evans <xdje42@gmail.com>
7446 * value.c (record_latest_value): Call release_value_or_incref
7447 instead of release_value.
7449 2014-03-13 Pedro Alves <palves@redhat.com>
7451 * procfs.c (procfs_target): Don't override to_shortname,
7452 to_longname or to_doc.
7454 2014-03-13 Pedro Alves <palves@redhat.com>
7456 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7457 Unix in user visible strings.
7459 2014-03-12 Stan Shebs <stan@codesourcery.com>
7461 * gdbtypes.h: Annotate comments for Doxygen, add a page
7462 block comment with some general info.
7464 2014-03-12 Pedro Alves <palves@redhat.com>
7466 * infcmd.c (prepare_execution_command): New function, factored out
7467 from several execution commands.
7468 (run_command_1, continue_command, step_1, jump_command)
7469 (signal_command, until_command, advance_command, finish_command)
7470 (attach_command): Use prepare_execution_command.
7472 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7474 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7477 (struct arm_linux_thread_points): Removed.
7478 (struct arm_linux_process_info): New.
7479 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7480 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7481 (arm_linux_find_breakpoints_by_tid): Removed.
7482 (struct arch_lwp_info): New.
7483 (arm_linux_find_process_pid): New functions.
7484 (arm_linux_add_process): New functions.
7485 (arm_linux_process_info_get): New functions.
7486 (arm_linux_forget_process): New function.
7487 (arm_linux_get_debug_reg_state): New function.
7488 (struct update_registers_data): New.
7489 (update_registers_callback): New function.
7490 (arm_linux_insert_hw_breakpoint1): Updated.
7491 (arm_linux_remove_hw_breakpoint1): Updated.
7492 (arm_linux_insert_hw_breakpoint): Updated.
7493 (arm_linux_remove_hw_breakpoint): Updated.
7494 (arm_linux_insert_watchpoint): Updated.
7495 (arm_linux_remove_watchpoint): Updated.
7496 (arm_linux_new_thread): Updated.
7497 (arm_linux_prepare_to_resume): New function.
7498 (arm_linux_new_fork): New function.
7499 (_initialize_arm_linux_nat): Updated.
7501 2014-03-12 Pedro Alves <palves@redhat.com>
7503 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7505 2014-03-12 Tom Tromey <tromey@redhat.com>
7507 * inf-child.c (return_zero): New function.
7508 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7509 * aix-thread.c (aix_thread_inferior_created): New function.
7510 (aix_thread_attach): Remove.
7511 (init_aix_thread_ops): Don't set to_attach.
7512 (_initialize_aix_thread): Register inferior_created observer.
7513 * corelow.c (init_core_ops): Don't set to_attach or
7515 * exec.c (init_exec_ops): Don't set to_attach or
7517 * infcmd.c (run_command_1): Use find_run_target. Make direct
7519 (attach_command): Use find_attach_target. Make direct target
7521 * record-btrace.c (init_record_btrace_ops): Don't set
7523 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7525 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7526 set to_create_inferior.
7527 * target.c (complete_target_initialization): Add assertion.
7528 (target_create_inferior): Remove.
7529 (find_default_attach, find_default_create_inferior): Remove.
7530 (find_attach_target, find_run_target): New functions.
7531 (find_default_is_async_p, find_default_can_async_p)
7532 (target_supports_non_stop, target_attach): Remove.
7533 (init_dummy_target): Don't set to_create_inferior or
7534 to_supports_non_stop.
7535 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7536 TARGET_DEFAULT_FUNC.
7537 <to_create_inferior>: Add comment.
7538 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7539 TARGET_DEFAULT_RETURN.
7540 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7541 (find_attach_target, find_run_target): Declare.
7542 (target_create_inferior): Remove.
7543 (target_has_execution_1): Update comment.
7544 (target_supports_non_stop): Remove.
7545 * target-delegates.c: Rebuild.
7547 2014-03-12 Pedro Alves <palves@redhat.com>
7549 * inf-child.h: Update comment to not mention Unix.
7551 2014-03-12 Pedro Alves <palves@redhat.com>
7553 * inf-child.c: Update top comment to not mention Unix. Add
7554 generic comment describing how this target is meant to be used.
7555 (inf_child_post_attach, inf_child_post_startup_inferior)
7556 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7559 2014-03-12 Pedro Alves <palves@redhat.com>
7561 * nto-procfs.c: Include inf-child.h.
7562 (procfs_ops): Delete global.
7563 (procfs_can_run): Delete method.
7564 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7565 target pointer instead of referencing procfs_ops.
7566 (procfs_prepare_to_store): Delete.
7567 (init_procfs_ops): Delete function.
7568 (procfs_target): New function, based on init_procfs_ops, but
7569 inherit inf_child_target.
7570 (_initialize_procfs): Use procfs_target.
7572 2014-03-12 Pedro Alves <palves@redhat.com>
7574 * windows-nat.c: Include inf-child.h.
7575 (windows_ops): Delete global.
7576 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7578 (init_windows_ops): Delete function.
7579 (windows_target): New function, based on init_windows_ops, but
7580 inherit inf_child_target.
7581 (_initialize_windows_nat): Use windows_target. Install x86
7582 specific target methods here.
7584 2014-03-10 Doug Evans <xdje42@gmail.com>
7586 * guile/guile.c (call_initialize_gdb_module): New function.
7587 (initialize_guile): Replace call to scm_init_guile with call to
7590 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7592 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7593 in call to TYPE_CODE macro.
7595 2014-03-10 Jerome Guitton <guitton@adacore.com>
7597 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7598 Resolve tagged types to full view.
7600 2014-03-10 Hui Zhu <hui@codesourcery.com>
7602 * target.h (target_insert_breakpoint): Remove "hardware" from its
7605 2014-03-07 Doug Evans <dje@google.com>
7607 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7609 2014-03-07 Doug Evans <dje@google.com>
7611 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7612 Remove unused local comp_dir_attr. Assert exactly one of
7613 stub_comp_unit_die, stub_comp_dir is non-NULL.
7615 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7617 * target.h (complete_target_initialization, add_target):
7620 2014-03-07 Pedro Alves <palves@redhat.com>
7622 * go32-nat.c: Include inf-child.h.
7623 (go32_ops): Delete global.
7624 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7626 (go32_create_inferior): Push the passed in target pointer instead
7627 of referencing go32_ops.
7628 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7629 (go32_target): New function, based on init_go32_ops, but inherit
7631 (_initialize_go32_nat): Use go32_target. Move parts of
7634 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7636 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7637 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7638 SYMBOL_VALUE_ADDRESS.
7639 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7641 2014-03-06 Yao Qi <yao@codesourcery.com>
7643 * breakpoint.c (get_tracepoint_by_number): Remove argument
7644 optional_p. All callers updated. Adjust comments. Update
7646 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7648 2014-03-06 Yao Qi <yao@codesourcery.com>
7650 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7651 early if get_number returns zero. Use 'p' instead of 'args'.
7653 2014-03-06 Yao Qi <yao@codesourcery.com>
7655 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7658 2014-03-06 Yao Qi <yao@codesourcery.com>
7660 PR breakpoints/16508
7661 * tracepoint.c (check_trace_running): New function.
7662 (trace_find_command): Move code to check_trace_running and
7663 call check_trace_running.
7664 (trace_find_pc_command): Likewise.
7665 (trace_find_tracepoint_command): Likewise.
7666 (trace_find_line_command): Likewise.
7667 (trace_find_range_command): Likewise.
7668 * tracepoint.h (check_trace_running): Likewise.
7669 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7671 2014-03-06 Yao Qi <yao@codesourcery.com>
7673 * target.h (struct target_ops) <to_traceframe_info>: Use
7674 TARGET_DEFAULT_NORETURN (tcomplain ()).
7675 * target-delegates.c: Regenerated.
7677 2014-03-05 Pedro Alves <palves@redhat.com>
7680 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7681 void. Update comment.
7682 (dcache_xfer_memory): Delete.
7683 (dcache_read_memory_partial): New, based on the read bits of
7685 (dcache_update): Add status parameter. Use ULONGEST for len, and
7686 adjust. Discard cache lines if the reason for the update was
7688 * dcache.h (dcache_xfer_memory): Delete declaration.
7689 (dcache_read_memory_partial): New declaration.
7690 (dcache_update): Update prototype.
7691 * target.c (raw_memory_xfer_partial): Update the dcache here.
7692 (memory_xfer_partial_1): Don't handle dcache writes here.
7694 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7696 * remote-sim.c (gdbsim_load): Add const to prog.
7698 2014-03-03 Tom Tromey <tromey@redhat.com>
7700 * elfread.c (probe_key): Change to bfd_data.
7701 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7702 now per-BFD, not per-objfile.
7703 * stap-probe.c (stap_probe_destroy): Update comment.
7704 (handle_stap_probe): Allocate on the per-BFD obstack.
7706 2014-03-03 Tom Tromey <tromey@redhat.com>
7708 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7709 * breakpoint.c (create_longjmp_master_breakpoint): Use
7711 (add_location_to_breakpoint, bkpt_probe_insert_location)
7712 (bkpt_probe_remove_location): Update.
7713 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7714 * elfread.c (elf_symfile_relocate_probe): Remove.
7715 (elf_probe_fns): Update.
7716 (insert_exception_resume_breakpoint): Change type of "probe"
7717 parameter to bound_probe.
7718 (check_exception_resume): Update.
7719 * objfiles.c (objfile_relocate1): Don't relocate probes.
7720 * probe.c (bound_probe_s): New typedef.
7721 (parse_probes): Use get_probe_address. Set sal's objfile.
7722 (find_probe_by_pc): Return a bound_probe.
7723 (collect_probes): Return a VEC(bound_probe_s).
7724 (compare_probes): Update.
7725 (gen_ui_out_table_header_info): Change type of "probes"
7727 (info_probes_for_ops): Update.
7728 (get_probe_address): New function.
7729 (probe_safe_evaluate_at_pc): Update.
7730 * probe.h (struct probe_ops) <get_probe_address>: New field.
7731 <set_semaphore, clear_semaphore>: Add objfile parameter.
7732 (struct probe) <objfile>: Remove field.
7734 <address>: Update comment.
7735 (struct bound_probe): New.
7736 (find_probe_by_pc): Return a bound_probe.
7737 (get_probe_address): Declare.
7738 * solib-svr4.c (struct probe_and_action) <address>: New field.
7739 (hash_probe_and_action, equal_probe_and_action): Update.
7740 (register_solib_event_probe): Add address parameter.
7741 (solib_event_probe_at): Update.
7742 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7744 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7745 (stap_get_probe_address): New function.
7746 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7747 (compile_probe_arg): Update.
7748 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7750 (handle_stap_probe): Don't relocate the probe.
7751 (stap_relocate): Remove.
7752 (stap_gen_info_probes_table_values): Update.
7753 (stap_probe_ops): Remove stap_relocate.
7754 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7755 (debug_sym_probe_fns): Update.
7756 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7757 * symtab.c (init_sal): Use memset.
7758 * symtab.h (struct symtab_and_line) <objfile>: New field.
7759 * tracepoint.c (start_tracing, stop_tracing): Update.
7761 2014-03-03 Tom Tromey <tromey@redhat.com>
7763 * probe.h (parse_probes, find_probe_by_pc)
7764 (find_probes_in_objfile): Fix comments.
7766 2014-03-02 Doug Evans <xdje42@gmail.com>
7768 * infrun.c (handle_signal_stop): Replace test for
7769 TARGET_WAITKIND_STOPPED with an assert.
7771 2014-03-02 Doug Evans <xdje42@gmail.com>
7773 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7775 2014-03-02 Doug Evans <xdje42@gmail.com>
7777 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7779 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7781 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7783 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7785 * i386obsd-nat.c: Include "obsd-nat.h".
7786 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7788 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7790 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7792 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7794 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7796 * mips64obsd-nat.c: Include "obsd-nath".
7797 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7799 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7801 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7803 * amd64obsd-nat.c: Include "obsd-nat,h.
7804 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7806 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7808 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7810 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7811 (find_overload_match): Update call to find_oload_champ.
7812 (find_oload_champ_namespace_loop): Likewise
7814 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7816 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7818 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7819 * config/sparc/obsd64.mh: New file.
7820 * sparc64obsd-nat.c: New file.
7822 * obsd-nat.h: New file.
7823 * obsd-nat.c: New file.
7824 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7825 (ALLDEPFILES): Add obsd-nat.c.
7827 2014-02-28 Tom Tromey <tromey@redhat.com>
7829 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7830 * cli-out.h (cli_ui_out_impl): Now const.
7831 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7832 * ui-out.c (struct ui_out) <impl>: Now const.
7833 (default_ui_out_impl): Now const.
7834 (ui_out_new): Make 'impl' parameter const.
7835 * ui-out.h (ui_out_new): Update.
7837 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7839 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7841 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7843 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7845 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7847 Additional PR 8882 fix.
7848 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7850 2014-02-27 Pedro Alves <palves@redhat.com>
7852 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7855 2014-02-27 Pedro Alves <palves@redhat.com>
7858 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7859 * nat/linux-waitpid.c: Include string.h.
7860 (status_to_str): Moved here and made extern.
7861 * nat/linux-waitpid.h (status_to_str): New declaration.
7863 2014-02-27 Hui Zhu <hui@codesourcery.com>
7866 * infrun.c (ptid_match): Move ...
7867 * common/ptid.c (ptid_match): ... here.
7868 * inferior.h (ptid_match): Move ...
7869 * common/ptid.h (ptid_match): ... here.
7871 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7873 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7874 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7877 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7879 * obsd-tdep.c (obsd_auxv_parse): New function.
7880 (obsd_init_abi): Set auxv_parse.
7882 * gdbarch.sh (auxv_parse): New.
7883 * gdbarch.h: Regenerated.
7884 * gdbarch.c: Regenerated.
7885 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7887 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7889 * guile/scm-value.c (gdbscm_history_append_x): New function.
7890 (value_functions): Add it.
7892 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7894 * dwarf2read.c (attr_value_as_address): New function.
7895 (dwarf2_find_base_address, read_call_site_scope): Use
7896 attr_value_as_address in place of DW_ADDR.
7897 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7898 the low and high addresses. Slight rework of the handling
7899 of the high pc being a constant form, and limit it to
7900 DWARF verson 4 or higher.
7901 (dwarf2_record_block_ranges): Likewise.
7902 (read_partial_die): Likewise.
7903 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7905 2014-02-26 Tom Tromey <tromey@redhat.com>
7907 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7909 2014-02-26 Tom Tromey <tromey@redhat.com>
7911 * elfread.c (elf_read_minimal_symbols): Return early if
7912 minimal symbols have already been read. Add "ei" parameter.
7913 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7914 * minsyms.c (prim_record_minimal_symbol_full): Update.
7915 * objfiles.h (struct objstats) <n_minsyms>: Move...
7916 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7917 * symmisc.c (print_objfile_statistics): Update.
7919 2014-02-26 Tom Tromey <tromey@redhat.com>
7921 * elfread.c (elf_read_minimal_symbols): New function, from
7923 (elf_symfile_read): Call it.
7925 2014-02-26 Tom Tromey <tromey@redhat.com>
7927 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7928 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7929 (lookup_minimal_symbol_solib_trampoline)
7930 (lookup_minimal_symbol_by_pc_section_1)
7931 (lookup_minimal_symbol_and_objfile): Update.
7932 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7933 Don't allocate a minimal symbol if minsyms have already been read.
7934 (build_minimal_symbol_hash_tables): Update.
7935 (install_minimal_symbols): Do nothing if minsyms already read.
7936 Use the per-BFD obstack.
7937 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7938 * objfiles.c (allocate_objfile): Call
7939 terminate_minimal_symbol_table later.
7940 (have_minimal_symbols): Update.
7941 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7942 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7943 Move from struct objfile.
7944 <minsyms_read>: New field.
7945 (struct objfile) <msymbols, minimal_symbol_count,
7946 msymbol_hash, msymbol_demangled_hash>: Move.
7947 (ALL_OBJFILE_MSYMBOLS): Update.
7948 * symfile.c (read_symbols): Set minsyms_read.
7949 (reread_symbols): Update.
7950 * symmisc.c (dump_objfile, dump_msymbols): Update.
7952 2014-02-26 Tom Tromey <tromey@redhat.com>
7954 * minsyms.c (msymbols_sort): Remove.
7955 * minsyms.h (msymbols_sort): Remove.
7956 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7957 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7958 * elfread.c (elf_symtab_read): Don't add section offsets.
7959 * xcoffread.c (record_minimal_symbol): Don't add section offset
7960 to minimal symbol address.
7961 * somread.c (text_offset, data_offset): Remove.
7962 (som_symtab_read): Don't add section offsets to minimal symbol
7964 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7965 Don't add section offsets to minimal symbols.
7966 * coffread.c (coff_symtab_read): Don't add section offsets
7967 to minimal symbol addresses.
7968 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7969 to minimal symbol addresses.
7970 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7971 section offset to minimal symbol addresses.
7972 * mdebugread.c (parse_partial_symbols): Don't add section
7973 offset to minimal symbol addresses.
7974 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7975 offset to minimal symbol addresses.
7977 2014-02-26 Tom Tromey <tromey@redhat.com>
7979 * ada-lang.c (ada_main_name): Update.
7980 (ada_add_standard_exceptions): Update.
7981 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7982 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7983 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7984 * auxv.c (ld_so_xfer_auxv): Update.
7985 * avr-tdep.c (avr_scan_prologue): Update.
7986 * ax-gdb.c (gen_var_ref): Update.
7987 * blockframe.c (get_pc_function_start)
7988 (find_pc_partial_function_gnu_ifunc): Update.
7989 * breakpoint.c (create_overlay_event_breakpoint)
7990 (create_longjmp_master_breakpoint)
7991 (create_std_terminate_master_breakpoint)
7992 (create_exception_master_breakpoint): Update.
7993 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7994 * c-valprint.c (c_val_print): Update.
7995 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7996 * common/agent.c (agent_look_up_symbols): Update.
7997 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7998 * dwarf2loc.c (call_site_to_target_addr): Update.
7999 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8000 * elfread.c (elf_gnu_ifunc_record_cache)
8001 (elf_gnu_ifunc_resolve_by_got): Update.
8002 * findvar.c (default_read_var_value): Update.
8003 * frame.c (inside_main_func): Update.
8004 * frv-tdep.c (frv_frame_this_id): Update.
8005 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8006 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8008 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8009 (hppa_hpux_find_dummy_bpaddr): Update.
8010 * hppa-tdep.c (hppa_symbol_address): Update.
8011 * infcmd.c (until_next_command): Update.
8012 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8014 * linespec.c (minsym_found, add_minsym): Update.
8015 * linux-nat.c (get_signo): Update.
8016 * linux-thread-db.c (inferior_has_bug): Update.
8017 * m32c-tdep.c (m32c_return_value)
8018 (m32c_m16c_address_to_pointer): Update.
8019 * m32r-tdep.c (m32r_frame_this_id): Update.
8020 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8021 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8022 * maint.c (maintenance_translate_address): Update.
8023 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8024 (frob_address): New function.
8025 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8026 frob_address. Rename parameter to "pc_in".
8027 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8029 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8031 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8032 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8033 * objc-lang.c (find_objc_msgsend): Update.
8034 * objfiles.c (objfile_relocate1): Update.
8035 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8036 * p-valprint.c (pascal_val_print): Update.
8037 * parse.c (write_exp_msymbol): Update.
8038 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8039 (ppc_elfv2_skip_entrypoint): Update.
8040 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8041 * printcmd.c (build_address_symbolic, msym_info)
8042 (address_info): Update.
8043 * proc-service.c (ps_pglobal_lookup): Update.
8044 * psymtab.c (find_pc_sect_psymtab_closer)
8045 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8046 Change msymbol parameter to bound_minimal_symbol.
8047 * ravenscar-thread.c (get_running_thread_id): Update.
8048 * remote.c (remote_check_symbols): Update.
8049 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8051 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8052 * solib-dsbt.c (lm_base): Update.
8053 * solib-frv.c (lm_base, main_got): Update.
8054 * solib-irix.c (locate_base): Update.
8055 * solib-som.c (som_solib_create_inferior_hook)
8056 (link_map_start): Update.
8057 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8058 * solib-svr4.c (elf_locate_base, enable_break): Update.
8059 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8060 (flush_ea_cache): Update.
8061 * stabsread.c (define_symbol, scan_file_globals): Update.
8062 * stack.c (find_frame_funname): Update.
8063 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8064 (debug_qf_find_pc_sect_symtab): Update.
8065 * symfile.c (simple_read_overlay_table)
8066 (simple_overlay_update): Update.
8067 * symfile.h (struct quick_symbol_functions)
8068 <find_pc_sect_symtab>: Change type of msymbol to
8069 bound_minimal_symbol.
8070 * symmisc.c (dump_msymbols): Update.
8071 * symtab.c (find_pc_sect_symtab_via_partial)
8072 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8073 (search_symbols, print_msymbol_info): Update.
8074 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8075 (MSYMBOL_VALUE_ADDRESS): Redefine.
8076 (BMSYMBOL_VALUE_ADDRESS): New macro.
8077 * tracepoint.c (scope_info): Update.
8078 * tui/tui-disasm.c (tui_find_disassembly_address)
8079 (tui_get_begin_asm_address): Update.
8080 * valops.c (find_function_in_inferior): Update.
8081 * value.c (value_static_field, value_fn_field): Update.
8083 2014-02-26 Tom Tromey <tromey@redhat.com>
8085 * ada-lang.c (ada_update_initial_language): Update.
8086 (ada_main_name, ada_has_this_exception_support): Update.
8087 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8088 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8089 * arm-tdep.c (arm_skip_stub): Update.
8090 * auxv.c (ld_so_xfer_auxv): Update.
8091 * avr-tdep.c (avr_scan_prologue): Update.
8092 * ax-gdb.c (gen_var_ref): Update.
8093 * breakpoint.c (struct breakpoint_objfile_data)
8094 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8095 type to bound_minimal_symbol.
8096 (create_overlay_event_breakpoint)
8097 (create_longjmp_master_breakpoint)
8098 (create_std_terminate_master_breakpoint)
8099 (create_exception_master_breakpoint): Update.
8100 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8101 * c-exp.y (classify_name): Update.
8102 * coffread.c (coff_symfile_read): Update.
8103 * common/agent.c (agent_look_up_symbols): Update.
8104 * d-lang.c (d_main_name): Update.
8105 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8106 * dec-thread.c (enable_dec_thread): Update.
8107 * dwarf2loc.c (call_site_to_target_addr): Update.
8108 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8109 * eval.c (evaluate_subexp_standard): Update.
8110 * findvar.c (struct minsym_lookup_data) <result>: Change type
8111 to bound_minimal_symbol.
8113 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8114 * frame.c (inside_main_func): Update.
8115 * frv-tdep.c (frv_frame_this_id): Update.
8116 * gcore.c (call_target_sbrk): Update.
8117 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8118 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8120 * go-lang.c (go_main_name): Update.
8121 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8122 (hppa_hpux_find_import_stub_for_addr): Update.
8123 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8124 Update. Change return type.
8125 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8127 * jit.c (jit_breakpoint_re_set_internal): Update.
8128 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8130 * linux-nat.c (get_signo): Update.
8131 * linux-thread-db.c (inferior_has_bug): Update
8132 * m32c-tdep.c (m32c_return_value)
8133 (m32c_m16c_address_to_pointer): Update.
8134 * m32r-tdep.c (m32r_frame_this_id): Update.
8135 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8136 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8137 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8138 lookup_minimal_symbol. Change return type.
8139 (lookup_minimal_symbol): Remove.
8140 (lookup_bound_minimal_symbol): Update.
8141 (lookup_minimal_symbol_text): Change return type.
8142 (lookup_minimal_symbol_solib_trampoline): Change return type.
8143 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8144 (lookup_minimal_symbol_solib_trampoline): Change return type.
8145 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8146 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8147 (value_nsstring, find_imps): Update.
8148 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8149 * p-lang.c (pascal_main_name): Update.
8150 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8151 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8152 * proc-service.c (ps_pglobal_lookup): Update.
8153 * ravenscar-thread.c (get_running_thread_msymbol): Change
8155 (has_ravenscar_runtime, get_running_thread_id): Update.
8156 * remote.c (remote_check_symbols): Update.
8157 * sol-thread.c (ps_pglobal_lookup): Update.
8158 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8159 * solib-dsbt.c (lm_base): Update.
8160 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8162 * solib-irix.c (locate_base): Update.
8163 * solib-som.c (som_solib_create_inferior_hook)
8164 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8166 * solib-spu.c (spu_enable_break): Update.
8167 * solib-svr4.c (elf_locate_base, enable_break): Update.
8168 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8169 (flush_ea_cache): Update.
8170 * stabsread.c (define_symbol): Update.
8171 * symfile.c (simple_read_overlay_table): Update.
8172 * symtab.c (find_pc_sect_line): Update.
8173 * tracepoint.c (scope_info): Update.
8174 * tui-disasm.c (tui_get_begin_asm_address): Update.
8175 * value.c (value_static_field): Update.
8177 2014-02-26 Tom Tromey <tromey@redhat.com>
8179 * minsyms.c (prim_record_minimal_symbol_full): Use
8180 SET_MSYMBOL_VALUE_ADDRESS.
8181 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8182 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8183 SET_MSYMBOL_VALUE_ADDRESS.
8184 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8185 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8187 2014-02-26 Tom Tromey <tromey@redhat.com>
8189 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8190 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8191 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8192 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8193 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8194 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8195 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8196 * ada-lang.c (ada_main_name): Update.
8197 (ada_lookup_simple_minsym): Update.
8198 (ada_make_symbol_completion_list): Update.
8199 (ada_add_standard_exceptions): Update.
8200 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8201 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8202 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8203 * arm-tdep.c (skip_prologue_function): Update.
8204 (arm_skip_stack_protector, arm_skip_stub): Update.
8205 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8206 (arm_wince_skip_main_prologue): Update.
8207 * auxv.c (ld_so_xfer_auxv): Update.
8208 * avr-tdep.c (avr_scan_prologue): Update.
8209 * ax-gdb.c (gen_var_ref): Update.
8210 * block.c (call_site_for_pc): Update.
8211 * blockframe.c (get_pc_function_start): Update.
8212 (find_pc_partial_function_gnu_ifunc): Update.
8213 * breakpoint.c (create_overlay_event_breakpoint): Update.
8214 (create_longjmp_master_breakpoint): Update.
8215 (create_std_terminate_master_breakpoint): Update.
8216 (create_exception_master_breakpoint): Update.
8217 (resolve_sal_pc): Update.
8218 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8219 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8221 * c-valprint.c (c_val_print): Update.
8222 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8223 * coffread.c (coff_symfile_read): Update.
8224 * common/agent.c (agent_look_up_symbols): Update.
8225 * dbxread.c (find_stab_function_addr): Update.
8226 (end_psymtab): Update.
8227 * dwarf2loc.c (call_site_to_target_addr): Update.
8228 (func_verify_no_selftailcall): Update.
8229 (tailcall_dump): Update.
8230 (call_site_find_chain_1): Update.
8231 (dwarf_expr_reg_to_entry_parameter): Update.
8232 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8233 (elf_gnu_ifunc_resolve_by_got): Update.
8234 * f-valprint.c (info_common_command): Update.
8235 * findvar.c (read_var_value): Update.
8236 * frame.c (get_prev_frame_1): Update.
8237 (inside_main_func): Update.
8238 * frv-tdep.c (frv_skip_main_prologue): Update.
8239 (frv_frame_this_id): Update.
8240 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8241 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8242 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8243 (gnuv3_skip_trampoline): Update.
8244 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8245 (hppa64_hpux_in_solib_call_trampoline): Update.
8246 (hppa_hpux_skip_trampoline_code): Update.
8247 (hppa64_hpux_search_dummy_call_sequence): Update.
8248 (hppa_hpux_find_import_stub_for_addr): Update.
8249 (hppa_hpux_find_dummy_bpaddr): Update.
8250 * hppa-tdep.c (hppa_symbol_address)
8251 (hppa_lookup_stub_minimal_symbol): Update.
8252 * i386-tdep.c (i386_skip_main_prologue): Update.
8253 (i386_pe_skip_trampoline_code): Update.
8254 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8255 * infcall.c (get_function_name): Update.
8256 * infcmd.c (until_next_command): Update.
8257 * jit.c (jit_breakpoint_re_set_internal): Update.
8258 (jit_inferior_init): Update.
8259 * linespec.c (minsym_found): Update.
8260 (add_minsym): Update.
8261 * linux-fork.c (info_checkpoints_command): Update.
8262 * linux-nat.c (get_signo): Update.
8263 * linux-thread-db.c (inferior_has_bug): Update.
8264 * m32c-tdep.c (m32c_return_value): Update.
8265 (m32c_m16c_address_to_pointer): Update.
8266 (m32c_m16c_pointer_to_address): Update.
8267 * m32r-tdep.c (m32r_frame_this_id): Update.
8268 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8269 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8270 * maint.c (maintenance_translate_address): Update.
8271 * minsyms.c (add_minsym_to_hash_table): Update.
8272 (add_minsym_to_demangled_hash_table): Update.
8273 (msymbol_objfile): Update.
8274 (lookup_minimal_symbol): Update.
8275 (iterate_over_minimal_symbols): Update.
8276 (lookup_minimal_symbol_text): Update.
8277 (lookup_minimal_symbol_by_pc_name): Update.
8278 (lookup_minimal_symbol_solib_trampoline): Update.
8279 (lookup_minimal_symbol_by_pc_section_1): Update.
8280 (lookup_minimal_symbol_and_objfile): Update.
8281 (prim_record_minimal_symbol_full): Update.
8282 (compare_minimal_symbols): Update.
8283 (compact_minimal_symbols): Update.
8284 (build_minimal_symbol_hash_tables): Update.
8285 (install_minimal_symbols): Update.
8286 (terminate_minimal_symbol_table): Update.
8287 (find_solib_trampoline_target): Update.
8288 (minimal_symbol_upper_bound): Update.
8289 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8290 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8291 (mips_skip_pic_trampoline_code): Update.
8292 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8293 * objc-lang.c (selectors_info): Update.
8294 (classes_info): Update.
8295 (find_methods): Update.
8296 (find_imps): Update.
8297 (find_objc_msgsend): Update.
8298 * objfiles.c (objfile_relocate1): Update.
8299 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8300 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8301 * p-valprint.c (pascal_val_print): Update.
8302 * parse.c (write_exp_msymbol): Update.
8303 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8304 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8305 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8306 * printcmd.c (build_address_symbolic): Update.
8308 (address_info): Update.
8309 * proc-service.c (ps_pglobal_lookup): Update.
8310 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8311 (find_pc_sect_psymtab): Update.
8312 * python/py-framefilter.c (py_print_frame): Update.
8313 * ravenscar-thread.c (get_running_thread_id): Update.
8314 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8316 * remote.c (remote_check_symbols): Update.
8317 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8318 (rs6000_skip_trampoline_code): Update.
8319 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8320 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8321 * solib-dsbt.c (lm_base): Update.
8322 * solib-frv.c (lm_base): Update.
8324 * solib-irix.c (locate_base): Update.
8325 * solib-som.c (som_solib_create_inferior_hook): Update.
8326 (som_solib_desire_dynamic_linker_symbols): Update.
8327 (link_map_start): Update.
8328 * solib-spu.c (spu_enable_break): Update.
8329 (ocl_enable_break): Update.
8330 * solib-svr4.c (elf_locate_base): Update.
8331 (enable_break): Update.
8332 * spu-tdep.c (spu_get_overlay_table): Update.
8333 (spu_catch_start): Update.
8334 (flush_ea_cache): Update.
8335 * stabsread.c (define_symbol): Update.
8336 (scan_file_globals): Update.
8337 * stack.c (find_frame_funname): Update.
8338 (frame_info): Update.
8339 * symfile.c (simple_read_overlay_table): Update.
8340 (simple_overlay_update): Update.
8341 * symmisc.c (dump_msymbols): Update.
8342 * symtab.c (fixup_section): Update.
8343 (find_pc_sect_line): Update.
8344 (skip_prologue_sal): Update.
8345 (search_symbols): Update.
8346 (print_msymbol_info): Update.
8347 (rbreak_command): Update.
8348 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8349 (completion_list_objc_symbol): Update.
8350 (default_make_symbol_completion_list_break_on): Update.
8351 * tracepoint.c (scope_info): Update.
8352 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8353 (tui_get_begin_asm_address): Update.
8354 * valops.c (find_function_in_inferior): Update.
8355 * value.c (value_static_field): Update.
8356 (value_fn_field): Update.
8358 2014-02-26 Tom Tromey <tromey@redhat.com>
8360 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8361 bound minimal symbols. Move code that knows about minsym
8363 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8365 * minsyms.h (minimal_symbol_upper_bound): Declare.
8366 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8367 minimal_symbol_upper_bound.
8369 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8371 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8372 Use the type's name if its basic type does not have a tag.
8374 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8376 * dwarf2read.c (read_subrange_type): Add comment.
8378 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8380 * dwarf2read.c (update_enumeration_type_from_children): New
8381 function, mostly extracted from process_structure_scope.
8382 (read_enumeration_type): Call update_enumeration_type_from_children.
8383 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8384 and flag_flag_enum fields.
8386 2014-02-26 Pedro Alves <palves@redhat.com>
8388 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8389 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8390 to_xfer_partial method.
8392 2014-02-26 Pedro Alves <palves@redhat.com>
8394 * target.c (complete_target_initialization): Don't install
8395 default_xfer_partial as to_xfer_partial hook.
8397 (update_current_target): Don't INHERIT nor de_fault
8398 deprecated_xfer_memory. Delete de_fault macro.
8399 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8400 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8401 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8404 2014-02-26 Pedro Alves <palves@redhat.com>
8406 * go32-nat.c (my_write_child): New function.
8407 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8408 (go32_xfer_partial): New function.
8409 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8410 Instead install a to_xfer_partial hook.
8412 2014-02-26 Pedro Alves <palves@redhat.com>
8414 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8415 to_xfer_partial helper. Rewrite.
8416 (procfs_xfer_partial): New function.
8417 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8418 Install a to_xfer_partial hook.
8420 2014-02-26 Pedro Alves <palves@redhat.com>
8422 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8423 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8424 (m32r_xfer_partial): New function.
8425 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8426 Install a to_xfer_partial hook.
8428 2014-02-26 Pedro Alves <palves@redhat.com>
8430 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8432 (mips_xfer_partial): New function.
8433 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8434 hook. Install a to_xfer_partial hook.
8436 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8438 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8439 * gdbtypes.c (create_array_type_with_stride): New function,
8440 renaming create_array_type, but with an added parameter
8441 called "bit_stride".
8442 (create_array_type): Re-implement using
8443 create_array_type_with_stride.
8444 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8445 and DW_AT_bit_stride attributes.
8447 2014-02-26 Pedro Alves <palves@redhat.com>
8449 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8450 task-specific breakpoints.
8452 2014-02-25 Pedro Alves <palves@redhat.com>
8454 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8455 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8457 2014-02-25 Stan Shebs <stan@codesourcery.com>
8459 * defs.h: Annotate comments for Doxygen.
8461 2014-02-25 Tom Tromey <tromey@redhat.com>
8463 * target.h (target_ignore): Don't declare.
8464 * target.c (target_ignore): Remove.
8466 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8469 * auto-load.c (auto_load_objfile_script_1): Change filename to
8472 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8474 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8475 documentation. Adjust prototype to match the target_ops
8476 to_xfer_partial method. Adjust implementation accordingly.
8478 2014-02-25 Hui Zhu <hui@codesourcery.com>
8480 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8483 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8485 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8486 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8487 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8488 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8489 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8490 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8491 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8492 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8494 (rl78_register_type): Use a data pointer type for SP and
8495 new pseudo registers mentioned above. Use a 16 bit integer
8496 type for all other register pairs.
8497 (rl78_register_name, rl78_g10_register_name): Update for
8498 new pseudo registers.
8499 (rl78_pseudo_register_read): Likewise.
8500 (rl78_pseudo_register_write): Likewise.
8501 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8502 to the newly added pseudo registers.
8504 2014-02-24 Doug Evans <dje@google.com>
8506 * value.c (record_latest_value): Fix comment.
8507 * printcmd.c (print_command_1): Remove code to handle -1 return from
8508 record_latest_value.
8510 2014-02-24 Pedro Alves <palves@redhat.com>
8512 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8513 deprecated_xfer_memory hook.
8514 (procfs_xfer_partial): Call procfs_xfer_memory instead
8515 of the deprecated_xfer_memory target hook.
8516 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8519 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8521 * windows-nat.c (windows_xfer_shared_libraries): Return
8522 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8523 requested object is TARGET_OBJECT_LIBRARIES.
8525 2014-02-24 Yao Qi <yao@codesourcery.com>
8527 * target.h (enum target_xfer_status)
8528 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8529 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8531 * corefile.c (memory_error_message): User updated.
8532 * exec.c (section_table_read_available_memory): Likewise.
8533 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8534 * target.c (target_xfer_status_to_string): Likewise.
8535 (raw_memory_xfer_partial): Likewise.
8536 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8537 * valops.c (read_value_memory): Likewise.
8538 * exec.h: Update comments.
8540 2014-02-24 Yao Qi <yao@codesourcery.com>
8542 * target.c (target_xfer_status_to_string): Rename argument err
8544 * target.h (target_xfer_status_to_string): Update declaration.
8545 Replace target_xfer_error_to_string with
8546 target_xfer_status_to_string in comment.
8548 2014-02-24 Yao Qi <yao@codesourcery.com>
8550 * mips-linux-nat.c (super_close): Update its type.
8551 (mips_linux_close): Pass 'self' to super_close.
8553 2014-02-24 Yao Qi <yao@codesourcery.com>
8555 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8556 * corefile.c (read_memory): Adjusted.
8557 * target.c (target_write_with_progress): Adjusted.
8559 2014-02-23 Yao Qi <yao@codesourcery.com>
8563 2013-10-25 Yao Qi <yao@codesourcery.com>
8565 * remote.c (remote_traceframe_info): Return early if
8566 traceframe is not selected.
8568 2013-07-19 Yao Qi <yao@codesourcery.com>
8570 * target.c (update_current_target): Change the default action
8571 of 'to_traceframe_info' from tcomplain to return_zero.
8572 * target.h (struct target_ops) <to_traceframe_info>: Add more
8575 2014-02-23 Yao Qi <yao@codesourcery.com>
8577 * valops.c (read_value_memory): Rewrite it. Call
8578 target_xfer_partial in a loop.
8579 * exec.h (section_table_available_memory): Remove declaration.
8580 Move comments to ...
8581 * exec.c (section_table_available_memory): ... here. Make it
8584 2014-02-23 Yao Qi <yao@codesourcery.com>
8586 * exec.c (section_table_read_available_memory): New function.
8587 * exec.h (section_table_read_available_memory): Declare.
8588 * ctf.c (ctf_xfer_partial): Call
8589 section_table_read_available_memory.
8590 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8592 2014-02-23 Yao Qi <yao@codesourcery.com>
8594 * ctf.c (ctf_xfer_partial): Move code to ...
8595 * exec.c (exec_read_partial_read_only): ... it. New function.
8596 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8597 * tracefile.c: Include "exec.h".
8598 * exec.h (exec_read_partial_read_only): Declare.
8600 2014-02-23 Yao Qi <yao@codesourcery.com>
8602 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8603 (tfile_has_memory): Remove.
8604 (init_tfile_ops): Don't set fields to_has_all_memory and
8605 to_has_memory of tfile_ops.
8606 * tracefile.c (tracefile_has_all_memory): New function.
8607 (tracefile_has_memory): New function.
8608 (init_tracefile_ops): Initialize fields to_has_all_memory and
8609 to_has_memory of 'ops'.
8611 2014-02-23 Yao Qi <yao@codesourcery.com>
8613 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8614 (ctf_thread_alive, ctf_get_trace_status): Remove.
8615 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8617 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8618 (tfile_has_stack, tfile_has_registers): Remove.
8619 (tfile_thread_alive): Remove.
8620 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8622 * tracefile.c (tracefile_has_stack): New function.
8623 (tracefile_has_registers): New function.
8624 (tracefile_thread_alive): New function.
8625 (tracefile_get_trace_status): New function.
8626 (init_tracefile_ops): New function.
8627 * tracefile.h (init_tracefile_ops): Declare.
8629 2014-02-23 Yao Qi <yao@codesourcery.com>
8631 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8632 (O_LARGEFILE): Likewise.
8633 (tfile_ops): Likewise.
8634 (TRACE_HEADER_SIZE): Likewise.
8635 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8636 (cur_data_size): Likewise.
8637 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8638 (tfile_close, tfile_files_info): Likewise.
8639 (tfile_get_trace_status): Likewise.
8640 (tfile_get_tracepoint_status): Likewise.
8641 (tfile_get_traceframe_address): Likewise.
8642 (tfile_trace_find, match_blocktype): Likewise.
8643 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8644 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8645 (tfile_get_trace_state_variable_value): Likewise.
8646 (tfile_has_all_memory, tfile_has_memory): Likewise.
8647 (tfile_has_stack, tfile_has_registers): Likewise.
8648 (tfile_thread_alive, build_traceframe_info): Likewise.
8649 (tfile_traceframe_info, init_tfile_ops): Likewise.
8650 (_initialize_tracepoint): Don't call init_tfile_ops
8651 and add_target_with_completer.
8652 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8653 exec.h, completer.h and filenames.h.
8654 (_initialize_tracefile_tfile): New function.
8656 2014-02-23 Yao Qi <yao@codesourcery.com>
8658 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8660 (HFILES_NO_SRCDIR): Add tracefile.h.
8661 * ctf.c: Include "tracefile.h".
8662 * tracefile.h: New file.
8663 * tracefile.c: New file
8664 * tracefile-tfile.c: New file.
8665 * tracepoint.c: Include "tracefile.h".
8666 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8667 (stop_reason_names): Add const.
8668 (trace_file_writer_xfree): Move it to tracefile.c.
8669 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8670 (trace_save_ctf): Likewise.
8671 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8672 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8673 (tfile_write_header, tfile_write_regblock_type): Likewise.
8674 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8675 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8676 (tfile_write_raw_data, tfile_end): Likewise.
8677 (tfile_trace_file_writer_new): Likewise.
8678 (free_uploaded_tp): Make it extern.
8679 (free_uploaded_tsv): Make it extern.
8680 (_initialize_tracepoint): Move code to register command 'tsave'
8682 * tracepoint.h (stop_reason_names): Declare.
8683 (struct trace_frame_write_ops): Move it to tracefile.h.
8684 (struct trace_file_write_ops): Likewise.
8685 (struct trace_file_writer): Likewise.
8686 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8688 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8691 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8693 (get_cores_used_by_process): New parameter num_cores, use it.
8694 (linux_xfer_osdata_processes): Pass num_cores to it.
8695 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8698 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8700 * target.c (memory_xfer_partial): Fix length arg in call to
8701 breakpoint_xfer_memory.
8703 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8706 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8707 number comes after the + or - signs. Adjust length of register
8708 name to be extracted.
8710 2014-02-20 Tom Tromey <tromey@redhat.com>
8712 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8713 (ada_varobj_ops): Mark "extern".
8715 2014-02-20 Tom Tromey <tromey@redhat.com>
8717 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8719 2014-02-20 Doug Evans <xdje42@gmail.com>
8721 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8722 All callers updated.
8723 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8724 All callers updated.
8725 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8726 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8728 2014-02-20 lin zuojian <manjian2006@gmail.com>
8729 Joel Brobecker <brobecker@adacore.com>
8730 Doug Evans <xdje42@gmail.com>
8733 * dwarf2read.c (struct die_info): New member in_process.
8734 (reset_die_in_process): New function.
8735 (process_die): Set it at the start, reset when returning.
8736 (inherit_abstract_dies): Only call process_die if origin_child_die
8737 not already being processed.
8739 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8741 * windows-nat.c (handle_unload_dll): Add function documentation.
8742 (do_initial_windows_stuff): Add comment explaining why we wait
8743 until after inferior initialization has finished before
8744 processing all DLLs.
8746 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8748 * windows-nat.c (get_module_name): Delete.
8749 (windows_get_exec_module_filename): New function, mostly
8750 inspired from get_module_name.
8751 (windows_pid_to_exec_file): Replace call to get_module_name
8752 by call to windows_get_exec_module_filename.
8754 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8756 * windows-nat.c (handle_load_dll): Rewrite this function's
8757 introductory comment. Remove code using get_module_name
8758 to get the DLL's name.
8760 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8762 * windows-nat.c (get_windows_debug_event): Ignore
8763 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8764 if windows_initialization_done == 0.
8765 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8766 Adjust implementation to always load all DLLs.
8767 (do_initial_windows_stuff): Replace call to
8768 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8770 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8772 * windows-nat.c (_initialize_windows_nat): Deprecate the
8773 "dll-symbols" command. Turn the "add-shared-symbol-files"
8774 and "assf" aliases into commands, and deprecate them as well.
8775 * NEWS: Add entry explaining that "dll-symbols" and its two
8776 aliases are now deprecated.
8778 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8780 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8781 new-line in debug string. Remove trailing spaces.
8783 2014-02-19 Stan Shebs <stan@codesourcery.com>
8785 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8787 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8789 * NEWS: Add entry for the new feature
8790 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8793 2014-02-19 Stan Shebs <stan@codesourcery.com>
8795 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8797 2014-02-19 Pedro Alves <palves@redhat.com>
8799 * common/ptid.h (struct ptid): Mention that process_stratum
8800 targets should prefer ptid.lwp.
8802 2014-02-19 Pedro Alves <palves@redhat.com>
8804 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8805 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8806 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8807 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8808 store remote thread ids rather than ptid.tid.
8809 (_initialize_remote): Adjust.
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8813 * target.c (target_get_unwinder): Rewrite.
8814 (target_get_tailcall_unwinder): Rewrite.
8815 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8816 (record_btrace_to_get_tailcall_unwinder): New function.
8817 (init_record_btrace_ops): Update.
8818 * target.h (struct target_ops) <to_get_unwinder,
8819 to_get_tailcall_unwinder>: Now function pointers. Use
8820 TARGET_DEFAULT_RETURN.
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8824 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8826 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8828 2014-02-19 Tom Tromey <tromey@redhat.com>
8830 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8832 * target-delegates.c: Rebuild.
8833 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8834 TARGET_DEFAULT_FUNC.
8835 * target.c (default_target_decr_pc_after_break): Rename from
8836 forward_target_decr_pc_after_break. Simplify.
8837 (target_decr_pc_after_break): Rely on delegation.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target.c (update_current_target): Do not INHERIT to_doc or
8842 to_magic. Do not de_fault to_open or to_close.
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8846 * gcore.h (objfile_find_memory_regions): Declare.
8847 * gcore.c (objfile_find_memory_regions): No longer static. Add
8849 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8850 * exec.c: Include gcore.h.
8851 (exec_set_find_memory_regions): Remove.
8852 (exec_find_memory_regions): Remove.
8853 (exec_do_find_memory_regions): Remove.
8854 (init_exec_ops): Update.
8855 * defs.h (exec_set_find_memory_regions): Remove.
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target-delegates.c: Rebuild.
8860 * target.h (struct target_ops) <to_extra_thread_info,
8861 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8862 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8863 not 0, in TARGET_DEFAULT_RETURN.
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8867 * target.c (complete_target_initialization): Remove casts. Use
8868 return_zero_has_execution.
8869 (return_zero): Add "ignore" argument.
8870 (return_zero_has_execution): New function.
8871 (init_dummy_target): Remove casts. Use
8872 return_zero_has_execution.
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target.c (update_current_target): Update comments. Do not
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8881 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8883 * corelow.c (core_read_description): Delegate when needed.
8884 * remote.c (remote_read_description): Delegate when needed.
8885 * target-delegates.c: Rebuild.
8886 * target.c (target_read_description): Rewrite.
8887 * target.h (struct target_ops) <to_read_description>: Update
8888 comment. Use TARGET_DEFAULT_RETURN.
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target-delegates.c: Rebuild.
8893 * target.c (update_current_target): Don't inherit or default
8895 (find_default_run_target): Check against delegate_can_run.
8896 * target.h (struct target_ops) <to_can_run>: Use
8897 TARGET_DEFAULT_RETURN.
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target-delegates.c: Rebuild.
8902 * target.c (target_disconnect): Unconditionally delegate.
8903 * target.h (struct target_ops) <to_disconnect>: Use
8904 TARGET_DEFAULT_NORETURN.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * record.c (record_stop): Unconditionally delegate.
8909 * target-delegates.c: Rebuild.
8910 * target.c (target_stop_recording): Unconditionally delegate.
8911 * target.h (struct target_ops) <to_stop_recording>: Use
8912 TARGET_DEFAULT_IGNORE.
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target-delegates.c: Rebuild.
8917 * target.c (target_enable_btrace): Unconditionally delegate.
8918 * target.h (struct target_ops) <to_enable_btrace>: Use
8919 TARGET_DEFAULT_NORETURN.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target-delegates.c: Rebuild.
8924 * target.c (target_read_btrace): Unconditionally delegate.
8925 * target.h (struct target_ops) <to_read_btrace>: Use
8926 TARGET_DEFAULT_NORETURN.
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target-delegates.c: Rebuild.
8931 * target.c (target_teardown_btrace): Unconditionally delegate.
8932 * target.h (struct target_ops) <to_teardown_btrace>: Use
8933 TARGET_DEFAULT_NORETURN.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target-delegates.c: Rebuild.
8938 * target.c (target_disable_btrace): Unconditionally delegate.
8939 * target.h (struct target_ops) <to_disable_btrace>: Use
8940 TARGET_DEFAULT_NORETURN.
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * target-delegates.c: Rebuild.
8945 * target.c (default_search_memory): New function.
8946 (simple_search_memory): Update comment.
8947 (target_search_memory): Unconditionally delegate.
8948 * target.h (struct target_ops) <to_search_memory>: Use
8949 TARGET_DEFAULT_FUNC.
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * auxv.c (default_auxv_parse): No longer static.
8954 (target_auxv_parse): Unconditionally delegate.
8955 * auxv.h (default_auxv_parse): Declare.
8956 * target-delegates.c: Rebuild.
8957 * target.c: Include auxv.h.
8958 * target.h (struct target_ops) <to_auxv_parse>: Use
8959 TARGET_DEFAULT_FUNC.
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8963 * target-delegates.c: Rebuild.
8964 * target.c (target_memory_map): Unconditionally delegate.
8965 * target.h (struct target_ops) <to_memory_map>: Use
8966 TARGET_DEFAULT_RETURN.
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8970 * target-delegates.c: Rebuild.
8971 * target.c (target_thread_alive): Unconditionally delegate.
8972 * target.h (struct target_ops) <to_thread_alive>: Use
8973 TARGET_DEFAULT_RETURN.
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target-delegates.c: Rebuild.
8978 * target.c (target_save_record): Unconditionally delegate.
8979 * target.h (struct target_ops) <to_save_record>: Use
8980 TARGET_DEFAULT_NORETURN.
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * target-delegates.c: Rebuild.
8985 * target.c (target_delete_record): Unconditionally delegate.
8986 * target.h (struct target_ops) <to_delete_record>: Use
8987 TARGET_DEFAULT_NORETURN.
8989 2014-02-19 Tom Tromey <tromey@redhat.com>
8991 * target-delegates.c: Rebuild.
8992 * target.c (target_record_is_replaying): Unconditionally
8994 * target.h (struct target_ops) <to_record_is_replaying>: Use
8995 TARGET_DEFAULT_RETURN.
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * target-delegates.c: Rebuild.
9000 * target.c (target_goto_record_begin): Unconditionally delegate.
9001 * target.h (struct target_ops) <to_goto_record_begin>: Use
9002 TARGET_DEFAULT_NORETURN.
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9006 * target-delegates.c: Rebuild.
9007 * target.c (target_goto_record_end): Unconditionally delegate.
9008 * target.h (struct target_ops) <to_goto_record_end>: Use
9009 TARGET_DEFAULT_NORETURN.
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target-delegates.c: Rebuild.
9014 * target.c (target_goto_record): Unconditionally delegate.
9015 * target.h (struct target_ops) <to_goto_record>: Use
9016 TARGET_DEFAULT_NORETURN.
9018 2014-02-19 Tom Tromey <tromey@redhat.com>
9020 * target-delegates.c: Rebuild.
9021 * target.c (target_insn_history): Unconditionally delegate.
9022 * target.h (struct target_ops) <to_insn_history>: Use
9023 TARGET_DEFAULT_NORETURN.
9025 2014-02-19 Tom Tromey <tromey@redhat.com>
9027 * target-delegates.c: Rebuild.
9028 * target.c (target_insn_history_from): Unconditionally delegate.
9029 * target.h (struct target_ops) <to_insn_history_from>: Use
9030 TARGET_DEFAULT_NORETURN.
9032 2014-02-19 Tom Tromey <tromey@redhat.com>
9034 * target-delegates.c: Rebuild.
9035 * target.c (target_insn_history_range): Unconditionally delegate.
9036 * target.h (struct target_ops) <to_insn_history_range>: Use
9037 TARGET_DEFAULT_NORETURN.
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9041 * target-delegates.c: Rebuild.
9042 * target.c (target_call_history): Unconditionally delegate.
9043 * target.h (struct target_ops) <to_call_history>: Use
9044 TARGET_DEFAULT_NORETURN.
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9048 * target-delegates.c: Rebuild.
9049 * target.c (target_call_history_from): Unconditionally delegate.
9050 * target.h (struct target_ops) <to_call_history_from>: Use
9051 TARGET_DEFAULT_NORETURN.
9053 2014-02-19 Tom Tromey <tromey@redhat.com>
9055 * target-delegates.c: Rebuild.
9056 * target.c (target_call_history_range): Unconditionally delegate.
9057 * target.h (struct target_ops) <to_call_history_range>: Use
9058 TARGET_DEFAULT_NORETURN.
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9062 * target-delegates.c: Rebuild.
9063 * target.c (target_verify_memory): Unconditionally delegate.
9064 * target.h (struct target_ops) <to_verify_memory>: Use
9065 TARGET_DEFAULT_NORETURN.
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9069 * target-delegates.c: Rebuild.
9070 * target.c (target_core_of_thread): Unconditionally delegate.
9071 * target.h (struct target_ops) <to_core_of_thread>: Use
9072 TARGET_DEFAULT_RETURN.
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9076 * target-delegates.c: Rebuild.
9077 * target.c (target_flash_done): Unconditionally delegate.
9078 * target.h (struct target_ops) <to_flash_done>: Use
9079 TARGET_DEFAULT_NORETURN.
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9083 * target-delegates.c: Rebuild.
9084 * target.c (target_flash_erase): Unconditionally delegate.
9085 * target.h (struct target_ops) <to_flash_erase>: Use
9086 TARGET_DEFAULT_NORETURN.
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * target-delegates.c: Rebuild.
9091 * target.c (target_get_section_table): Unconditionally delegate.
9092 * target.h (struct target_ops) <to_get_section_table>: Use
9093 TARGET_DEFAULT_RETURN.
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * target-delegates.c: Rebuild.
9098 * target.c (target_pid_to_str): Unconditionally delegate.
9099 (init_dummy_target): Don't initialize to_pid_to_str.
9100 (default_pid_to_str): Rename from dummy_pid_to_str.
9101 * target.h (struct target_ops) <to_pid_to_str>: Use
9102 TARGET_DEFAULT_FUNC.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target-delegates.c: Rebuild.
9107 * target.c (target_find_new_threads): Unconditionally delegate.
9108 * target.h (struct target_ops) <to_find_new_threads>: Use
9109 TARGET_DEFAULT_RETURN.
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * target-delegates.c: Rebuild.
9114 * target.c (target_program_signals): Unconditionally delegate.
9115 * target.h (struct target_ops) <to_program_signals>: Use
9116 TARGET_DEFAULT_IGNORE.
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9120 * target-delegates.c: Rebuild.
9121 * target.c (target_pass_signals): Unconditionally delegate.
9122 * target.h (struct target_ops) <to_pass_signals>: Use
9123 TARGET_DEFAULT_IGNORE.
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9127 * target-delegates.c: Rebuild.
9128 * target.c (default_mourn_inferior): New function.
9129 (target_mourn_inferior): Unconditionally delegate.
9130 * target.h (struct target_ops) <to_mourn_inferior>: Use
9131 TARGET_DEFAULT_FUNC.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target-delegates.c: Rebuild.
9136 * target.c (default_follow_fork): New function.
9137 (target_follow_fork): Unconditionally delegate.
9138 * target.h (struct target_ops) <to_follow_fork>: Use
9139 TARGET_DEFAULT_FUNC.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target-delegates.c: Rebuild.
9144 * target.c (target_kill): Unconditionally delegate.
9145 * target.h (struct target_ops) <to_kill>: Use
9146 TARGET_DEFAULT_NORETURN.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * target-delegates.c: Rebuild.
9151 * target.c (target_masked_watch_num_registers): Unconditionally
9153 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9154 Use TARGET_DEFAULT_RETURN.
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target-delegates.c: Rebuild.
9159 * target.c (target_remove_mask_watchpoint): Unconditionally
9161 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9162 TARGET_DEFAULT_RETURN.
9164 2014-02-19 Tom Tromey <tromey@redhat.com>
9166 * target-delegates.c: Rebuild.
9167 * target.c (target_insert_mask_watchpoint): Unconditionally
9169 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9170 TARGET_DEFAULT_RETURN.
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * target-delegates.c: Rebuild.
9175 * target.c (target_ranged_break_num_registers): Unconditionally
9177 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9178 Use TARGET_DEFAULT_RETURN.
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9182 * target-delegates.c: Rebuild.
9183 * target.c (target_fetch_registers): Unconditionally delegate.
9184 * target.h (struct target_ops) <to_fetch_registers>: Use
9185 TARGET_DEFAULT_NORETURN.
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * target-delegates.c: Rebuild.
9190 * target.c (update_current_target): Don't inherit or default
9192 * target.h (struct target_ops) <to_stop>: Use
9193 TARGET_DEFAULT_IGNORE.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target-delegates.c: Rebuild.
9198 * target.c (update_current_target): Don't inherit or default
9199 to_can_run_breakpoint_commands.
9200 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9201 Use TARGET_DEFAULT_RETURN.
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9205 * target-delegates.c: Rebuild.
9206 * target.c (update_current_target): Don't inherit or default
9207 to_supports_evaluation_of_breakpoint_conditions.
9208 * target.h (struct target_ops)
9209 <to_supports_evaluation_of_breakpoint_conditions>: Use
9210 TARGET_DEFAULT_RETURN.
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target-delegates.c: Rebuild.
9215 * target.c (update_current_target): Don't inherit or default
9216 to_augmented_libraries_svr4_read.
9217 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9218 Use TARGET_DEFAULT_RETURN.
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * target-delegates.c: Rebuild.
9223 * target.c (update_current_target): Don't inherit or default
9225 * target.h (struct target_ops) <to_can_use_agent>: Use
9226 TARGET_DEFAULT_RETURN.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target-delegates.c: Rebuild.
9231 * target.c (update_current_target): Don't inherit or default
9233 * target.h (struct target_ops) <to_use_agent>: Use
9234 TARGET_DEFAULT_NORETURN.
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target-delegates.c: Rebuild.
9239 * target.c (update_current_target): Don't inherit or default
9241 (return_null): Remove.
9242 * target.h (struct target_ops) <to_traceframe_info>: Use
9243 TARGET_DEFAULT_RETURN.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_static_tracepoint_markers_by_strid.
9250 * target.h (struct target_ops)
9251 <to_static_tracepoint_markers_by_strid>: Use
9252 TARGET_DEFAULT_NORETURN.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target-delegates.c: Rebuild.
9257 * target.c (update_current_target): Don't inherit or default
9258 to_static_tracepoint_marker_at.
9259 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9260 Use TARGET_DEFAULT_RETURN.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * target-delegates.c: Rebuild.
9265 * target.c (update_current_target): Don't inherit or default
9267 * target.h (struct target_ops) <to_set_permissions>: Use
9268 TARGET_DEFAULT_IGNORE.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * target-delegates.c: Rebuild.
9273 * target.c (update_current_target): Don't inherit or default
9275 * target.h (struct target_ops) <to_get_tib_address>: Use
9276 TARGET_DEFAULT_NORETURN.
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target-delegates.c: Rebuild.
9281 * target.c (update_current_target): Don't inherit or default
9283 * target.h (struct target_ops) <to_set_trace_notes>: Use
9284 TARGET_DEFAULT_RETURN.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target-delegates.c: Rebuild.
9289 * target.c (update_current_target): Don't initialize
9290 to_set_trace_buffer_size.
9291 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9292 TARGET_DEFAULT_IGNORE.
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9296 * target-delegates.c: Rebuild.
9297 * target.c (update_current_target): Don't inherit or default
9298 to_set_circular_trace_buffer.
9299 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9300 TARGET_DEFAULT_IGNORE.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target-delegates.c: Rebuild.
9305 * target.c (update_current_target): Don't inherit or default
9306 to_set_disconnected_tracing.
9307 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9308 TARGET_DEFAULT_IGNORE.
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9312 * target-delegates.c: Rebuild.
9313 * target.c (update_current_target): Don't inherit or default
9314 to_get_min_fast_tracepoint_insn_len.
9315 (return_minus_one): Remove.
9316 * target.h (struct target_ops)
9317 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9321 * target-delegates.c: Rebuild.
9322 * target.c (update_current_target): Don't inherit or default
9323 to_get_raw_trace_data.
9324 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9325 TARGET_DEFAULT_NORETURN.
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9329 * target-delegates.c: Rebuild.
9330 * target.c (update_current_target): Don't inherit or default
9331 to_upload_trace_state_variables.
9332 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9333 Use TARGET_DEFAULT_RETURN.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target-delegates.c: Rebuild.
9338 * target.c (update_current_target): Don't inherit or default
9339 to_upload_tracepoints.
9340 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9341 TARGET_DEFAULT_RETURN.
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target-delegates.c: Rebuild.
9346 * target.c (update_current_target): Don't inherit or default
9348 * target.h (struct target_ops) <to_save_trace_data>: Use
9349 TARGET_DEFAULT_NORETURN.
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target-delegates.c: Rebuild.
9354 * target.c (update_current_target): Don't inherit or default
9355 to_get_trace_state_variable_value.
9356 * target.h (struct target_ops)
9357 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target-delegates.c: Rebuild.
9362 * target.c (update_current_target): Don't inherit or default
9364 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * target-delegates.c: Rebuild.
9369 * target.c (update_current_target): Don't inherit or default
9371 * target.h (struct target_ops) <to_trace_stop>: Use
9372 TARGET_DEFAULT_NORETURN.
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9376 * target-delegates.c: Rebuild.
9377 * target.c (update_current_target): Don't inherit or default
9378 to_get_tracepoint_status.
9379 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9380 TARGET_DEFAULT_NORETURN.
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target-delegates.c: Rebuild.
9385 * target.c (update_current_target): Don't inherit or default
9386 to_get_trace_status.
9387 * target.h (struct target_ops) <to_get_trace_status>: Use
9388 TARGET_DEFAULT_RETURN.
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target-delegates.c: Rebuild.
9393 * target.c (update_current_target): Don't inherit or default
9395 * target.h (struct target_ops) <to_trace_start>: Use
9396 TARGET_DEFAULT_NORETURN.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target-delegates.c: Rebuild.
9401 * target.c (update_current_target): Don't inherit or default
9402 to_trace_set_readonly_regions.
9403 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9404 Use TARGET_DEFAULT_NORETURN.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target-delegates.c: Rebuild.
9409 * target.c (update_current_target): Don't inherit or default
9410 to_disable_tracepoint.
9411 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9412 TARGET_DEFAULT_NORETURN.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target-delegates.c: Rebuild.
9417 * target.c (update_current_target): Don't inherit or default
9418 to_enable_tracepoint.
9419 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9420 TARGET_DEFAULT_NORETURN.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target-delegates.c: Rebuild.
9425 * target.c (update_current_target): Don't inherit or default
9426 to_download_trace_state_variable.
9427 * target.h (struct target_ops) <to_download_trace_state_variable>:
9428 Use TARGET_DEFAULT_NORETURN.
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9432 * target-delegates.c: Rebuild.
9433 * target.c (update_current_target): Don't inherit or default
9434 to_can_download_tracepoint.
9435 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9436 TARGET_DEFAULT_RETURN.
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9440 * target-delegates.c: Rebuild.
9441 * target.c (update_current_target): Don't inherit or default
9442 to_download_tracepoint.
9443 * target.h (struct target_ops) <to_download_tracepoint>: Use
9444 TARGET_DEFAULT_NORETURN.
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * target-delegates.c: Rebuild.
9449 * target.c (update_current_target): Don't inherit or default
9451 * target.h (struct target_ops) <to_trace_init>: Use
9452 TARGET_DEFAULT_RETURN.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target-delegates.c: Rebuild.
9457 * target.c (update_current_target): Don't inherit or default
9458 to_supports_string_tracing.
9459 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9460 TARGET_DEFAULT_RETURN.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target-delegates.c: Rebuild.
9465 * target.c (update_current_target): Don't inherit or default
9466 to_supports_enable_disable_tracepoint.
9467 * target.h (struct target_ops)
9468 <to_supports_enable_disable_tracepoint>: Use
9469 TARGET_DEFAULT_RETURN.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target-delegates.c: Rebuild.
9474 * target.c (update_current_target): Don't inherit or default
9475 to_supports_multi_process.
9476 * target.h (struct target_ops) <to_supports_multi_process>: Use
9477 TARGET_DEFAULT_RETURN.
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9481 * target-delegates.c: Rebuild.
9482 * target.c (update_current_target): Don't inherit or default
9483 to_get_ada_task_ptid.
9484 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9485 TARGET_DEFAULT_FUNC.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * target-delegates.c: Rebuild.
9490 * target.c (update_current_target): Don't inherit or default
9491 to_thread_architecture.
9492 * target.h (struct target_ops) <to_thread_architecture>: Use
9493 TARGET_DEFAULT_FUNC.
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target-delegates.c: Rebuild.
9498 * target.c (update_current_target): Don't inherit or default
9499 to_execution_direction.
9500 * target.h (struct target_ops) <to_execution_direction>: Use
9501 TARGET_DEFAULT_FUNC.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target-delegates.c: Rebuild.
9506 * target.c (update_current_target): Don't inherit or default
9507 to_can_execute_reverse.
9508 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9509 TARGET_DEFAULT_RETURN.
9510 (target_can_execute_reverse): Unconditionally delegate.
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9517 (dummy_goto_bookmark): Remove.
9518 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9519 * target.h (struct target_ops) <to_goto_bookmark>: Use
9520 TARGET_DEFAULT_NORETURN.
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9524 * target-delegates.c: Rebuild.
9525 * target.c (update_current_target): Don't inherit or default
9527 (dummy_get_bookmark): Remove.
9528 (init_dummy_target): Don't inherit or default to_get_bookmark.
9529 * target.h (struct target_ops) <to_get_bookmark>: Use
9530 TARGET_DEFAULT_NORETURN
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9534 * target-delegates.c: Rebuild.
9535 * target.c (update_current_target): Don't inherit or default
9536 to_make_corefile_notes.
9537 (init_dummy_target): Don't initialize to_make_corefile_notes.
9538 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9539 TARGET_DEFAULT_FUNC.
9541 2014-02-19 Tom Tromey <tromey@redhat.com>
9543 * target-delegates.c: Rebuild.
9544 * target.c (update_current_target): Don't inherit or default
9545 to_find_memory_regions.
9546 (init_dummy_target): Don't initialize to_find_memory_regions.
9547 * target.h (struct target_ops) <to_find_memory_regions>: Use
9548 TARGET_DEFAULT_FUNC.
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9552 * target-delegates.c: Rebuild.
9553 * target.c (update_current_target): Don't inherit or default
9555 * target.h (struct target_ops) <to_log_command>: Use
9556 TARGET_DEFAULT_IGNORE.
9557 (target_log_command): Unconditionally delegate.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target-delegates.c: Rebuild.
9562 * target.c (update_current_target): Don't inherit or default
9563 to_pid_to_exec_file.
9564 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9565 TARGET_DEFAULT_RETURN.
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9569 * target-delegates.c: Rebuild.
9570 * target.c (update_current_target): Don't inherit or default
9572 (target_thread_name): Unconditionally delegate.
9573 * target.h (struct target_ops) <to_thread_name>: Use
9574 TARGET_DEFAULT_RETURN.
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target-delegates.c: Rebuild.
9579 * target.c (update_current_target): Don't inherit or default
9580 to_extra_thread_info.
9581 * target.h (struct target_ops) <to_extra_thread_info>: Use
9582 TARGET_DEFAULT_RETURN.
9584 2014-02-19 Tom Tromey <tromey@redhat.com>
9586 * target-delegates.c: Rebuild.
9587 * target.c (update_current_target): Don't inherit or default
9589 * target.h (struct target_ops) <to_has_exited>: Use
9590 TARGET_DEFAULT_RETURN..
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target-delegates.c: Rebuild.
9595 * target.c (update_current_target): Don't inherit or default
9596 to_set_syscall_catchpoint.
9597 (return_one): Remove.
9598 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9599 TARGET_DEFAULT_RETURN.
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9603 * target-delegates.c: Rebuild.
9604 * target.c (update_current_target): Don't inherit or default
9605 to_insert_exec_catchpoint.
9606 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9607 TARGET_DEFAULT_RETURN.
9609 2014-01-08 Tom Tromey <tromey@redhat.com>
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't inherit or default
9613 to_insert_exec_catchpoint.
9614 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9615 TARGET_DEFAULT_RETURN.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9621 to_remove_vfork_catchpoint.
9622 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9623 TARGET_DEFAULT_RETURN.
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9627 * target-delegates.c: Rebuild.
9628 * target.c (update_current_target): Don't inherit or default
9629 to_insert_vfork_catchpoint.
9630 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9631 TARGET_DEFAULT_RETURN.
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target-delegates.c: Rebuild.
9636 * target.c (update_current_target): Don't inherit or default
9637 to_remove_fork_catchpoint.
9638 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9639 TARGET_DEFAULT_RETURN.
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9643 * target-delegates.c: Rebuild.
9644 * target.c (update_current_target): Don't inherit or default
9645 to_insert_fork_catchpoint.
9646 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9647 TARGET_DEFAULT_RETURN.
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9651 * target-delegates.c: Rebuild.
9652 * target.c (update_current_target): Don't inherit or default
9653 to_post_startup_inferior.
9654 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9655 TARGET_DEFAULT_IGNORE.
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target-delegates.c: Rebuild.
9660 * target.c (update_current_target): Don't inherit or default
9662 * target.h (struct target_ops) <to_load>: Use
9663 TARGET_DEFAULT_NORETURN.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target-delegates.c: Rebuild.
9668 * target.c (update_current_target): Don't inherit or default
9670 * target.h (struct target_ops) <to_terminal_info>: Use
9671 TARGET_DEFAULT_FUNC.
9673 2014-02-19 Tom Tromey <tromey@redhat.com>
9675 * target-delegates.c: Rebuild.
9676 * target.c (update_current_target): Don't inherit or default
9677 to_terminal_save_ours.
9678 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9679 TARGET_DEFAULT_IGNORE.
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target-delegates.c: Rebuild.
9684 * target.c (update_current_target): Don't inherit or default
9686 * target.h (struct target_ops) <to_terminal_ours>: Use
9687 TARGET_DEFAULT_IGNORE.
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9691 * target-delegates.c: Rebuild.
9692 * target.c (update_current_target): Don't inherit or default
9693 to_terminal_ours_for_output.
9694 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9695 TARGET_DEFAULT_IGNORE.
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target-delegates.c: Rebuild.
9700 * target.c (update_current_target): Don't inherit or default
9701 to_terminal_inferior.
9702 * target.h (struct target_ops) <to_terminal_inferior>: Use
9703 TARGET_DEFAULT_IGNORE.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target-delegates.c: Rebuild.
9708 * target.c (update_current_target): Don't inherit or default
9710 * target.h (struct target_ops) <to_terminal_init>: Use
9711 TARGET_DEFAULT_IGNORE.
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9715 * target-delegates.c: Rebuild.
9716 * target.c (update_current_target): Don't inherit or default
9717 to_can_accel_watchpoint_condition.
9718 * target.h (struct target_ops)
9719 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target-delegates.c: Rebuild.
9724 * target.c (update_current_target): Don't inherit or default
9725 to_region_ok_for_hw_watchpoint.
9726 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9727 Use TARGET_DEFAULT_FUNC.
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9731 * target-delegates.c: Rebuild.
9732 * target.c (update_current_target): Don't inherit or default
9733 to_watchpoint_addr_within_range.
9734 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9735 Use TARGET_DEFAULT_FUNC.
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9739 * target-delegates.c: Rebuild.
9740 * target.c (update_current_target): Don't inherit or default
9741 to_remove_watchpoint.
9742 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9743 TARGET_DEFAULT_NORETURN.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target-delegates.c: Rebuild.
9748 * target.c (update_current_target): Don't inherit or default
9749 to_insert_watchpoint.
9750 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9751 TARGET_DEFAULT_RETURN.
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * target-delegates.c: Rebuild.
9756 * target.c (update_current_target): Don't inherit or default
9757 to_remove_hw_breakpoint.
9758 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9759 TARGET_DEFAULT_RETURN.
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target-delegates.c: Rebuild.
9764 * target.c (update_current_target): Don't inherit or default
9765 to_insert_hw_breakpoint.
9766 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9767 TARGET_DEFAULT_RETURN.
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9771 * target-delegates.c: Rebuild.
9772 * target.c (update_current_target): Don't inherit or default
9773 to_can_use_hw_breakpoint.
9774 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9775 TARGET_DEFAULT_RETURN.
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * target-delegates.c: Rebuild.
9780 * target.c (update_current_target): Don't inherit or default
9782 * target.h (struct target_ops) <to_files_info>: Use
9783 TARGET_DEFAULT_IGNORE.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target-delegates.c: Rebuild.
9788 * target.c (update_current_target): Don't inherit or default
9790 * target.h (struct target_ops) <to_store>: Use
9791 TARGET_DEFAULT_NORETURN.
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9795 * target-delegates.c: Rebuild.
9796 * target.c (update_current_target): Don't inherit or default
9798 * target.h (struct target_ops) <to_post_attach>: Use
9799 TARGET_DEFAULT_IGNORE.
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * target-delegates.c: Rebuild.
9804 * target.c (update_current_target): Don't inherit or default
9806 (default_rcmd): New function.
9807 (do_monitor_command): Unconditionally delegate.
9808 * target.h (struct target_ops) <to_rmcd>: Use
9809 TARGET_DEFAULT_FUNC.
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * target-delegates.c: Rebuild.
9814 * target.c (init_dummy_target): Don't initialize to_attach.
9815 (target_attach): Unconditionally delegate.
9816 * target.h (struct target_ops) <to_attach>: Use
9817 TARGET_DEFAULT_FUNC.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target-delegates.c: Rebuild.
9822 * target.c (target_detach): Unconditionally delegate.
9823 (init_dummy_target): Don't initialize to_detach.
9824 * target.h (struct target_ops) <to_detach>: Use
9825 TARGET_DEFAULT_IGNORE.
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9831 (target_augmented_libraries_svr4_read): Add argument.
9832 * target.c (update_current_target): Update.
9833 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * target.h (struct target_ops) <to_call_history_range>: Add
9840 * target.c (target_call_history_range): Add argument.
9841 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9843 (record_btrace_call_history_from): Update.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops) <to_call_history_from>: Add
9849 * target.c (target_call_history_from): Add argument.
9850 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9855 * target.h (struct target_ops) <to_call_history>: Add argument.
9856 * target.c (target_call_history): Add argument.
9857 * record-btrace.c (record_btrace_call_history): Add 'self'
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9862 * target.h (struct target_ops) <to_insn_history_range>: Add
9864 * target.c (target_insn_history_range): Add argument.
9865 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9867 (record_btrace_insn_history_from): Update.
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9871 * target.h (struct target_ops) <to_insn_history_from>: Add
9873 * target.c (target_insn_history_from): Add argument.
9874 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target.h (struct target_ops) <to_insn_history>: Add argument.
9880 * target.c (target_insn_history): Add argument.
9881 * record-btrace.c (record_btrace_insn_history): Add 'self'
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * target.h (struct target_ops) <to_goto_record>: Add argument.
9887 * target.c (target_goto_record): Add argument.
9888 * record-full.c (record_full_goto): Add 'self' argument.
9889 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9894 * target.c (target_goto_record_end): Add argument.
9895 * record-full.c (record_full_goto_end): Add 'self' argument.
9896 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9900 * target.h (struct target_ops) <to_goto_record_begin>: Add
9902 * target.c (target_goto_record_begin): Add argument.
9903 * record-full.c (record_full_goto_begin): Add 'self' argument.
9904 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9909 * target.h (struct target_ops) <to_record_is_replaying>: Add
9911 * target.c (target_record_is_replaying): Add argument.
9912 * record-full.c (record_full_is_replaying): Add 'self' argument.
9913 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9915 (record_btrace_xfer_partial, record_btrace_store_registers)
9916 (record_btrace_prepare_to_store, record_btrace_resume)
9917 (record_btrace_wait, record_btrace_decr_pc_after_break)
9918 (record_btrace_find_new_threads, record_btrace_thread_alive):
9921 2014-02-19 Tom Tromey <tromey@redhat.com>
9923 * target.h (struct target_ops) <to_delete_record>: Add argument.
9924 * target.c (target_delete_record): Add argument.
9925 * record-full.c (record_full_delete): Add 'self' argument.
9927 2014-02-19 Tom Tromey <tromey@redhat.com>
9929 * target.h (struct target_ops) <to_save_record>: Add argument.
9930 * target.c (target_save_record): Add argument.
9931 * record-full.c (record_full_save): Add 'self' argument.
9932 (record_full_save): Add 'self' argument.
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9936 * target.h (struct target_ops) <to_info_record>: Add argument.
9937 * target.c (target_info_record): Add argument.
9938 * record.c (info_record_command): Add argument.
9939 * record-full.c (record_full_info): Add 'self' argument.
9940 * record-btrace.c (record_btrace_info): Add 'self' argument.
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9944 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9945 * target.c (target_stop_recording): Add argument.
9946 * record.c (record_stop): Add argument.
9947 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9953 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9954 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9956 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9957 (_initialize_amd64_linux_nat): Use it.
9958 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9959 (_initialize_i386_linux_nat): Use it.
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9963 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9964 * target.c (target_teardown_btrace): Add argument.
9965 * remote.c (remote_teardown_btrace): Add 'self' argument.
9966 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9968 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9973 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9974 * target.c (target_disable_btrace): Add argument.
9975 * remote.c (remote_disable_btrace): Add 'self' argument.
9976 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9978 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9983 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9984 * target.c (target_enable_btrace): Add argument.
9985 * remote.c (remote_enable_btrace): Add 'self' argument.
9986 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9988 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9994 (target_can_use_agent): Add argument.
9995 * target.c (update_current_target): Update.
9996 * remote.c (remote_can_use_agent): Add 'self' argument.
9997 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9999 2014-02-19 Tom Tromey <tromey@redhat.com>
10001 * target.h (struct target_ops) <to_use_agent>: Add argument.
10002 (target_use_agent): Add argument.
10003 * target.c (update_current_target): Update.
10004 * remote.c (remote_use_agent): Add 'self' argument.
10005 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10009 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10010 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10011 (target_traceframe_info): Add argument.
10012 * target.c (update_current_target): Update.
10013 * remote.c (remote_traceframe_info): Add 'self' argument.
10014 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target.h (target_static_tracepoint_markers_by_strid): Add
10020 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10022 * target.c (update_current_target): Update.
10023 * remote.c (struct target_ops)
10024 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10025 * linux-nat.c (struct target_ops)
10026 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10030 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10032 (target_static_tracepoint_marker_at): Add argument.
10033 * target.c (update_current_target): Update.
10034 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10040 (target_set_permissions): Add argument.
10041 * target.c (update_current_target): Update.
10042 * remote.c (remote_set_permissions): Add 'self' argument.
10043 (remote_start_remote): Update.
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10047 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10048 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10049 (target_get_tib_address): Add argument.
10050 * target.c (update_current_target): Update.
10051 * remote.c (remote_get_tib_address): Add 'self' argument.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10056 (target_set_trace_notes): Add argument.
10057 * target.c (update_current_target): Update.
10058 * remote.c (remote_set_trace_notes): Add 'self' argument.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10064 (target_set_trace_buffer_size): Add argument.
10065 * target.c (update_current_target): Update.
10066 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10072 (target_set_circular_trace_buffer): Add argument.
10073 * target.c (update_current_target): Update.
10074 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10077 2014-02-19 Tom Tromey <tromey@redhat.com>
10079 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10081 (target_set_disconnected_tracing): Add argument.
10082 * target.c (update_current_target): Update.
10083 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10087 * target.h (struct target_ops)
10088 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10089 (target_get_min_fast_tracepoint_insn_len): Add argument.
10090 * target.c (update_current_target): Update.
10091 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10098 (target_get_raw_trace_data): Add argument.
10099 * target.c (update_current_target): Update.
10100 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10106 (target_upload_trace_state_variables): Add argument.
10107 * target.c (update_current_target): Update.
10108 * remote.c (remote_upload_trace_state_variables): Add 'self'
10110 (remote_start_remote): Update.
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10116 (target_upload_tracepoints): Add argument.
10117 * target.c (update_current_target): Update.
10118 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10119 (remote_start_remote): Update.
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10123 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10124 (target_save_trace_data): Add argument.
10125 * target.c (update_current_target): Update.
10126 * remote.c (remote_save_trace_data): Add 'self' argument.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10132 * target.h (struct target_ops)
10133 <to_get_trace_state_variable_value>: Add argument.
10134 (target_get_trace_state_variable_value): Add argument.
10135 * target.c (update_current_target): Update.
10136 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10138 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10142 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10143 * target.h (struct target_ops) <to_trace_find>: Add argument.
10144 (target_trace_find): Add argument.
10145 * target.c (update_current_target): Update.
10146 * remote.c (remote_trace_find): Add 'self' argument.
10147 * ctf.c (ctf_trace_find): Add 'self' argument.
10149 2014-02-19 Tom Tromey <tromey@redhat.com>
10151 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10152 (target_trace_stop): Add argument.
10153 * target.c (update_current_target): Update.
10154 * remote.c (remote_trace_stop): Add 'self' argument.
10156 2014-02-19 Tom Tromey <tromey@redhat.com>
10158 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10159 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10161 (target_get_tracepoint_status): Add argument.
10162 * target.c (update_current_target): Update.
10163 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10167 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10168 * target.h (struct target_ops) <to_get_trace_status>: Add
10170 (target_get_trace_status): Add argument.
10171 * target.c (update_current_target): Update.
10172 * remote.c (remote_get_trace_status): Add 'self' argument.
10173 (remote_start_remote, remote_can_download_tracepoint): Update.
10174 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10178 * target.h (struct target_ops) <to_trace_start>: Add argument.
10179 (target_trace_start): Add argument.
10180 * target.c (update_current_target): Update.
10181 * remote.c (remote_trace_start): Add 'self' argument.
10183 2014-02-19 Tom Tromey <tromey@redhat.com>
10185 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10187 (target_trace_set_readonly_regions): Add argument.
10188 * target.c (update_current_target): Update.
10189 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10194 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10196 (target_disable_tracepoint): Add argument.
10197 * target.c (update_current_target): Update.
10198 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10204 (target_enable_tracepoint): Add argument.
10205 * target.c (update_current_target): Update.
10206 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target.h (struct target_ops) <to_download_trace_state_variable>:
10212 (target_download_trace_state_variable): Add argument.
10213 * target.c (update_current_target): Update.
10214 * remote.c (remote_download_trace_state_variable): Add 'self'
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10219 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10221 (target_can_download_tracepoint): Add argument.
10222 * target.c (update_current_target): Update.
10223 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10227 * target.h (struct target_ops) <to_download_tracepoint>: Add
10229 (target_download_tracepoint): Add argument.
10230 * target.c (update_current_target): Update.
10231 * remote.c (remote_download_tracepoint): Add 'self' argument.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target.h (struct target_ops) <to_trace_init>: Add argument.
10236 (target_trace_init): Add argument.
10237 * target.c (update_current_target): Update.
10238 * remote.c (remote_trace_init): Add 'self' argument.
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10242 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10243 * target.c (target_fileio_readlink): Add argument.
10244 * remote.c (remote_hostio_readlink): Add 'self' argument.
10245 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10247 2014-02-19 Tom Tromey <tromey@redhat.com>
10249 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10250 * target.c (target_fileio_unlink): Add argument.
10251 * remote.c (remote_hostio_unlink): Add 'self' argument.
10252 (remote_file_delete): Update.
10253 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10257 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10258 * target.c (target_fileio_close): Add argument.
10259 * remote.c (remote_hostio_close): Add 'self' argument.
10260 (remote_hostio_close_cleanup): Update.
10261 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10263 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10268 * target.c (target_fileio_pread): Add argument.
10269 * remote.c (remote_hostio_pread): Add 'self' argument.
10270 (remote_bfd_iovec_pread, remote_file_get): Update.
10271 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10276 * target.c (target_fileio_pwrite): Add argument.
10277 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10278 (remote_file_put): Update.
10279 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10284 * target.c (target_fileio_open): Add argument.
10285 * remote.c (remote_hostio_open): Add 'self' argument.
10286 (remote_bfd_iovec_open): Add 'self' argument.
10287 (remote_file_put): Add 'self' argument.
10288 (remote_file_get): Add 'self' argument.
10289 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10293 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10295 (target_can_run_breakpoint_commands): Add argument.
10296 * target.c (update_current_target): Update.
10297 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10299 (remote_insert_breakpoint): Add 'self' argument.
10300 (remote_insert_hw_breakpoint): Add 'self' argument.
10301 (remote_can_run_breakpoint_commands): Add 'self' argument.
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10305 * target.h (struct target_ops)
10306 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10307 (target_supports_evaluation_of_breakpoint_conditions): Add
10309 * target.c (update_current_target): Update.
10310 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10312 (remote_insert_breakpoint): Add 'self' argument.
10313 (remote_insert_hw_breakpoint): Add 'self' argument.
10314 (remote_supports_cond_breakpoints): Add 'self' argument.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10320 (target_supports_string_tracing): Add argument.
10321 * target.c (update_current_target): Update.
10322 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10326 * target.h (struct target_ops)
10327 <to_supports_disable_randomization>: Add argument.
10328 * target.c (find_default_supports_disable_randomization): Add
10330 (target_supports_disable_randomization): Add argument.
10331 (find_default_supports_disable_randomization): Add 'self'
10333 * remote.c (extended_remote_supports_disable_randomization): Add
10335 (remote_supports_disable_randomization): Add 'self' argument.
10336 (extended_remote_create_inferior): Update.
10337 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10342 * target.h (struct target_ops)
10343 <to_supports_enable_disable_tracepoint>: Add argument.
10344 (target_supports_enable_disable_tracepoint): Add argument.
10345 * target.c (update_current_target): Update.
10346 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target.h (struct target_ops) <to_supports_multi_process>: Add
10353 (target_supports_multi_process): Add argument.
10354 * target.c (update_current_target): Update.
10355 * remote.c (remote_supports_multi_process): Add 'self' argument.
10356 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10358 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10363 * target.h (struct target_ops) <to_execution_direction>: Add
10365 (target_execution_direction): Add argument.
10366 * target.c (default_execution_direction): Add 'self' argument.
10367 * record-full.c (record_full_execution_direction): Add 'self'
10370 2014-02-19 Tom Tromey <tromey@redhat.com>
10372 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10374 (target_can_execute_reverse): Add argument.
10375 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10376 * record-full.c (record_full_can_execute_reverse): Add 'self'
10378 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10383 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10384 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10386 (target_get_ada_task_ptid): Add argument.
10387 * target.c (update_current_target): Update.
10388 (default_get_ada_task_ptid): Add 'self' argument.
10389 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10390 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10391 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10393 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10395 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10397 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10399 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10400 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10405 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10406 (target_goto_bookmark): Add argument.
10407 * target.c (dummy_goto_bookmark): Add 'self' argument.
10408 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10410 2014-02-19 Tom Tromey <tromey@redhat.com>
10412 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10413 (target_get_bookmark): Add argument.
10414 * target.c (dummy_get_bookmark): Add 'self' argument.
10415 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10419 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10421 (target_make_corefile_notes): Add argument.
10422 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10423 * procfs.c (procfs_make_note_section): Add 'self' argument.
10424 (procfs_make_note_section): Add 'self' argument.
10425 (procfs_make_note_section): Add 'self' argument.
10426 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10428 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10429 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10430 * exec.c (exec_make_note_section): Add 'self' argument.
10431 (exec_make_note_section): Add 'self' argument.
10433 2014-02-19 Tom Tromey <tromey@redhat.com>
10435 * target.h (struct target_ops) <to_find_memory_regions>: Add
10437 (target_find_memory_regions): Add argument.
10438 * target.c (dummy_find_memory_regions): Add 'self' argument.
10439 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10440 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10441 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10442 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10443 * exec. (exec_do_find_memory_regions): New global.
10444 (exec_set_find_memory_regions): Rewrite.
10445 (exec_find_memory_regions): New function.
10446 (init_exec_ops): Use exec_find_memory_regions.
10448 2014-02-19 Tom Tromey <tromey@redhat.com>
10450 * target.h (struct target_ops) <to_supports_non_stop>: Add
10452 * target.c (find_default_supports_non_stop): Add argument.
10453 (target_supports_non_stop): Add argument.
10454 (find_default_supports_non_stop): Add 'self' argument.
10455 * remote.c (remote_supports_non_stop): Add 'self' argument.
10456 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10460 * target.h (struct target_ops) <to_log_command>: Add argument.
10461 (target_log_command): Add argument.
10462 * serial.h (serial_log_command): Add 'self' argument.
10463 * serial.c (serial_log_command): Add 'self' argument.
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10467 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10468 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10470 (target_pid_to_exec_file): Add argument.
10471 * target.c (debug_to_pid_to_exec_file): Add argument.
10472 (update_current_target): Update.
10473 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10474 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10475 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10476 (linux_handle_extended_wait): Update.
10477 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10478 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10479 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10480 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10484 * target.h (struct target_ops) <to_rcmd>: Add argument.
10485 (target_rcmd): Add argument.
10486 * target.c (debug_to_rcmd): Add argument.
10487 (update_current_target, do_monitor_command): Update.
10488 * remote.c (remote_rcmd): Add 'self' argument.
10489 * monitor.c (monitor_rcmd): Add 'self' argument.
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10493 * windows-nat.c (windows_stop): Add 'self' argument.
10494 * target.h (struct target_ops) <to_stop>: Add argument.
10495 * target.c (target_stop): Add argument.
10496 (debug_to_stop): Add argument.
10497 (update_current_target): Update.
10498 * remote.c (remote_stop): Add 'self' argument.
10499 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10500 (gdbsim_cntrl_c): Update.
10501 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10502 * procfs.c (procfs_stop): Add 'self' argument.
10503 * nto-procfs.c (procfs_stop): Add 'self' argument.
10504 * monitor.c (monitor_stop): Add 'self' argument.
10505 (monitor_open): Update.
10506 * linux-nat.c (linux_nat_stop): Add argument.
10507 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10508 * gnu-nat.c (gnu_stop): Add 'self' argument.
10509 * darwin-nat.c (darwin_stop): Add 'self' argument.
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * target.h (struct target_ops) <to_thread_name>: Add argument.
10514 * target.c (target_thread_name): Add argument.
10515 (update_current_target): Update.
10516 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10518 2014-02-19 Tom Tromey <tromey@redhat.com>
10520 * target.h (struct target_ops) <to_extra_thread_info>: Add
10522 (target_extra_thread_info): Add argument.
10523 * target.c (update_current_target): Update.
10524 * remote.c (remote_threads_extra_info): Add 'self' argument.
10525 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10527 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10528 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10529 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10531 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10533 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10535 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target.h (struct target_ops) <to_program_signals>: Add argument.
10541 * target.c (target_program_signals): Add argument.
10542 * remote.c (remote_program_signals): Add 'self' argument.
10544 2014-02-19 Tom Tromey <tromey@redhat.com>
10546 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10547 * target.c (target_pass_signals): Add argument.
10548 * remote.c (remote_pass_signals): Add 'self' argument.
10549 (remote_start_remote): Update.
10550 * procfs.c (procfs_pass_signals): Add 'self' argument.
10551 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10552 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10553 (linux_nat_create_inferior, linux_nat_attach): Update.
10555 2014-02-19 Tom Tromey <tromey@redhat.com>
10557 * windows-nat.c (windows_can_run): Add 'self' argument.
10558 * target.h (struct target_ops) <to_can_run>: Add argument.
10559 (target_can_run): Add argument.
10560 * target.c (debug_to_can_run): Add argument.
10561 (update_current_target): Update.
10562 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10563 * inf-child.c (inf_child_can_run): Add 'self' argument.
10564 * go32-nat.c (go32_can_run): Add 'self' argument.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target.h (struct target_ops) <to_has_exited>: Add argument.
10569 (target_has_exited): Add argument.
10570 * target.c (debug_to_has_exited): Add argument.
10571 (update_current_target): Update.
10573 2014-02-19 Tom Tromey <tromey@redhat.com>
10575 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10577 (target_set_syscall_catchpoint): Add argument.
10578 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10580 * target.c (update_current_target): Update.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10586 (target_remove_exec_catchpoint): Add argument.
10587 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10588 (update_current_target): Update.
10589 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10596 (target_insert_exec_catchpoint): Add argument.
10597 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10598 (update_current_target): Update.
10599 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10602 2014-02-19 Tom Tromey <tromey@redhat.com>
10604 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10606 (target_remove_vfork_catchpoint): Add argument.
10607 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10608 (update_current_target): Update.
10609 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10612 2014-02-19 Tom Tromey <tromey@redhat.com>
10614 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10616 (target_insert_vfork_catchpoint): Add argument.
10617 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10618 (update_current_target): Update.
10619 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10626 (target_remove_fork_catchpoint): Add argument.
10627 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10628 (update_current_target): Update.
10629 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10636 (target_insert_fork_catchpoint): Add argument.
10637 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10638 (update_current_target): Update.
10639 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10642 2014-02-19 Tom Tromey <tromey@redhat.com>
10644 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10646 (target_post_startup_inferior): Add argument.
10647 * target.c (debug_to_post_startup_inferior): Add argument.
10648 (update_current_target): Update.
10649 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10651 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10653 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10655 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10657 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10659 (super_post_startup_inferior): Likewise.
10660 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10662 (super_post_startup_inferior): Likewise.
10663 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10664 Add 'self' argument.
10665 (super_post_startup_inferior): Likewise.
10667 2014-02-19 Tom Tromey <tromey@redhat.com>
10669 * target.h (struct target_ops) <to_load>: Add argument.
10670 * target.c (target_load): Add argument.
10671 (debug_to_load): Add argument.
10672 (update_current_target): Update.
10673 * remote.c (remote_load): Add 'self' argument.
10674 * remote-sim.c (gdbsim_load): Add 'self' argument.
10675 * remote-mips.c (mips_load): Add 'self' argument.
10676 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10677 * monitor.c (monitor_load): Add 'self' argument.
10678 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10683 (target_terminal_info): Add argument.
10684 * target.c (debug_to_terminal_info): Add argument.
10685 (default_terminal_info): Likewise.
10686 * inflow.c (child_terminal_info): Add 'self' argument.
10687 * inferior.h (child_terminal_info): Add 'self' argument.
10688 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10690 2014-02-19 Tom Tromey <tromey@redhat.com>
10692 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10694 (target_terminal_save_ours): Add argument.
10695 * target.c (debug_to_terminal_save_ours): Add argument.
10696 (update_current_target): Update.
10697 * inflow.c (terminal_save_ours): Add 'self' argument.
10698 * inferior.h (terminal_save_ours): Add 'self' argument.
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10702 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10703 (target_terminal_ours): Add argument.
10704 * target.c (debug_to_terminal_ours): Add argument.
10705 (update_current_target): Update.
10706 * remote.c (remote_terminal_ours): Add 'self' argument.
10707 (remote_close): Update.
10708 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10709 * inflow.c (terminal_ours): Add 'self' argument.
10710 * inferior.h (terminal_ours): Add 'self' argument.
10711 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10713 2014-02-19 Pedro Alves <palves@redhat.com>
10714 Tom Tromey <tromey@redhat.com>
10716 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10718 (target_terminal_ours_for_output): Add argument.
10719 * target.c (debug_to_terminal_ours_for_output): Add argument.
10720 (update_current_target): Update.
10721 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10722 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10723 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target.h (struct target_ops) <to_terminal_inferior>: Add
10729 * target.c (target_terminal_inferior): Add argument.
10730 (update_current_target): Update.
10731 * remote.c (remote_terminal_inferior): Add 'self' argument.
10732 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10733 * inflow.c (terminal_inferior): Add 'self' argument.
10734 * inferior.h (terminal_inferior): Add 'self' argument.
10735 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10736 (go32_terminal_inferior): Add 'self' argument.
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10740 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10741 (target_terminal_init): Add argument.
10742 * target.c (debug_to_terminal_init): Add argument.
10743 (update_current_target): Update.
10744 * inflow.c (terminal_init_inferior): Add 'self' argument.
10745 * inferior.h (terminal_init_inferior): Add 'self' argument.
10746 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10747 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10751 * target.h (struct target_ops)
10752 <to_can_accel_watchpoint_condition>: Add argument.
10753 (target_can_accel_watchpoint_condition): Add argument.
10754 * target.c (debug_to_can_accel_watchpoint_condition): Add
10756 (update_current_target): Update.
10757 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10760 2014-02-19 Tom Tromey <tromey@redhat.com>
10762 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10764 (target_region_ok_for_hw_watchpoint): Add argument.
10765 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10766 (default_region_ok_for_hw_watchpoint): Add argument.
10767 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10768 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10770 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10772 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10774 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10776 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10778 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10780 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10781 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10783 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10784 Add 'self' argument.
10786 2014-02-19 Tom Tromey <tromey@redhat.com>
10788 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10790 (target_insert_watchpoint): Add argument.
10791 * target.c (debug_to_insert_watchpoint): Add argument.
10792 (update_current_target): Update.
10793 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10794 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10795 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10796 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10797 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10798 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10800 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10801 (procfs_insert_hw_watchpoint): Add 'self' argument.
10802 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10804 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10806 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10808 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10809 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10811 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10814 2014-02-19 Tom Tromey <tromey@redhat.com>
10816 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10818 (target_remove_watchpoint): Add argument.
10819 * target.c (debug_to_remove_watchpoint): Add argument.
10820 (update_current_target): Update.
10821 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10822 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10823 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10824 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10825 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10826 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10828 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10829 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10831 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10833 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10835 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10836 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10838 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10845 (target_remove_hw_breakpoint): Add argument.
10846 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10847 (update_current_target): Update.
10848 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10849 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10851 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10852 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10854 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10859 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10861 (target_insert_hw_breakpoint): Add argument.
10862 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10863 (update_current_target): Update.
10864 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10865 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10867 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10868 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10869 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10871 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10876 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10878 (target_can_use_hardware_watchpoint): Add argument.
10879 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10880 (update_current_target): Update.
10881 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10883 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10885 * remote.c (remote_check_watch_resources): Add 'self' argument.
10886 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10887 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10889 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10890 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10892 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10894 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10896 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10898 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10900 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10902 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10903 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10905 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10908 2014-02-19 Tom Tromey <tromey@redhat.com>
10910 * target.h (struct target_ops) <to_post_attach>: Add argument.
10911 (target_post_attach): Add argument.
10912 * target.c (debug_to_post_attach): Add argument.
10913 (update_current_target): Update.
10914 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10915 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10916 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10917 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10918 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10920 2014-02-19 Tom Tromey <tromey@redhat.com>
10922 * windows-nat.c (windows_close): Add 'self' argument.
10923 * tracepoint.c (tfile_close): Add 'self' argument.
10924 * target.h (struct target_ops) <to_close>: Add argument.
10925 * target.c (target_close): Add argument.
10926 (update_current_target): Update.
10927 * remote.c (remote_close): Add 'self' argument.
10928 * remote-sim.c (gdbsim_close): Add 'self' argument.
10929 * remote-mips.c (mips_close): Add 'self' argument.
10930 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10931 * record-full.c (record_full_close): Add 'self' argument.
10932 * record-btrace.c (record_btrace_close): Add 'self' argument.
10933 * monitor.h (monitor_close): Add 'self' argument.
10934 * monitor.c (monitor_close): Add 'self' argument.
10935 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10936 * linux-nat.c (linux_nat_close): Add argument.
10937 * go32-nat.c (go32_close): Add 'self' argument.
10938 * exec.c (exec_close_1): Add 'self' argument.
10939 * ctf.c (ctf_close): Add 'self' argument.
10940 * corelow.c (core_close): Add 'self' argument.
10941 (core_close_cleanup): Update.
10942 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10943 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10947 * remote.c (remote_load): New function.
10948 (init_remote_ops): Use it.
10950 2014-02-19 Tom Tromey <tromey@redhat.com>
10952 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10954 * common/linux-btrace.h (linux_supports_btrace): Update.
10955 * remote.c (remote_supports_btrace): Add "self" argument.
10956 * target-delegates.c: Rebuild.
10957 * target.c (target_supports_btrace): Remove.
10958 * target.h (struct target_ops) <to_supports_btrace>: Add
10959 target_ops argument.
10960 (target_supports_btrace): New define.
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * record-full.c (record_full_beneath_to_resume_ops)
10965 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10966 (record_full_beneath_to_wait)
10967 (record_full_beneath_to_store_registers_ops)
10968 (record_full_beneath_to_store_registers)
10969 (record_full_beneath_to_xfer_partial_ops)
10970 (record_full_beneath_to_xfer_partial)
10971 (record_full_beneath_to_insert_breakpoint_ops)
10972 (record_full_beneath_to_insert_breakpoint)
10973 (record_full_beneath_to_remove_breakpoint_ops)
10974 (record_full_beneath_to_remove_breakpoint)
10975 (record_full_beneath_to_stopped_by_watchpoint)
10976 (record_full_beneath_to_stopped_data_address)
10977 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10978 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10979 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10980 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10981 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10982 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10983 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10984 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10985 (record_full_resume, record_full_wait_1)
10986 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10987 (record_full_store_registers, record_full_xfer_partial)
10988 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10989 (record_full_async, record_full_core_xfer_partial): Use target
10991 * target-delegates.c: Rebuild.
10992 * target.c (current_xfer_partial): Remove.
10993 (update_current_target): Do not INHERIT or de_fault
10994 to_insert_breakpoint, to_remove_breakpoint,
10995 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10996 to_is_async_p, to_async. Do not set to_xfer_partial field.
10997 (default_xfer_partial): Simplify.
10998 (current_xfer_partial): Remove.
10999 (target_wait, target_resume): Simplify.
11000 (find_default_can_async_p, find_default_is_async_p): Update.
11001 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11002 to_xfer_partial, to_stopped_by_watchpoint,
11003 to_stopped_data_address.
11004 (target_store_registers): Simplify.
11005 (forward_target_remove_breakpoint)
11006 (forward_target_insert_breakpoint): Remove.
11007 (target_remove_breakpoint, target_insert_breakpoint)
11008 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11009 * target.h (struct target_ops) <to_resume, to_wait,
11010 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11011 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11012 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11014 (forward_target_remove_breakpoint)
11015 (forward_target_insert_breakpoint): Remove.
11016 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11018 (record_btrace_insert_breakpoint): Delegate directly.
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11023 * target-delegates.c: New file.
11024 * target.c: Include target-delegates.c.
11025 (init_dummy_target): Call install_dummy_methods.
11026 (complete_target_initialization): Call install_delegators.
11027 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11028 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11029 * make-target-delegates: New file.
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11033 * record.c (find_record_target): Use find_target_at.
11034 * target.c (find_target_at): New function.
11035 * target.h (find_target_at): Declare.
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11039 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11040 Add 'ops' argument.
11041 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11043 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11044 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11046 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11048 * linux-nat.c (save_sigtrap): Update.
11049 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11050 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11051 (linux_nat_close): Update.
11052 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11054 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11056 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11057 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11058 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11059 (tmp_to_async): Add 'ops' argument.
11060 (record_full_stopped_by_watchpoint, record_full_async)
11061 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11063 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11064 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11065 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11066 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11067 (remote_is_async_p, remote_async): Add 'ops' argument.
11068 (remote_stopped_data_address): Update.
11069 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11070 * target.c (update_current_target)
11071 (find_default_can_async_p, find_default_is_async_p): Update.
11072 (init_dummy_target): Update.
11073 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11074 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11075 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11076 (target_can_async_p, target_is_async_p, target_async)
11077 (target_stopped_by_watchpoint): Update.
11079 2014-02-19 Yao Qi <yao@codesourcery.com>
11082 * gdbarch.sh: Remove startup_gdbarch.
11083 * gdbarch.c: Regenerated.
11084 * gdbarch.h: Likewise.
11086 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11088 * rl78-tdep.c (rl78_g10_register_name): New function.
11089 (rl78_return_value): Add g10 support.
11090 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11093 2014-02-17 Doug Evans <xdje42@gmail.com>
11095 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11096 (SUBDIR_GUILE_SRCS): Ditto.
11097 (scm-gsmob.o): Ditto.
11099 2014-02-17 Yao Qi <yao@codesourcery.com>
11101 * gnu-nat.c (ILL_RPC): Declare defined function.
11103 2014-02-17 Yao Qi <yao@codesourcery.com>
11105 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11106 mach_msg_type_number_t.
11107 (gnu_write_inferior): Likewise.
11109 2014-02-17 Yao Qi <yao@codesourcery.com>
11111 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11113 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11114 (inf_validate_procs, inf_signal): Likewise.
11115 (S_exception_raise_request): Likewise.
11116 (do_mach_notify_dead_name): Likewise.
11117 (steal_exc_port): Likewise.
11118 (gnu_read_inferior): Change 'copy_count''s type to
11119 mach_msg_type_number_t.
11120 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11123 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11125 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11126 flag. Adjust all users; in particular...
11127 (gnu_wait): ..., don't decrement its value in here...
11128 (gnu_create_inferior): ..., and instead set the flag in here,
11129 around the startup_inferior call, and call that one with
11130 START_INFERIOR_TRAPS_EXPECTED.
11132 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11133 (ILL_RPC): ... new macro.
11134 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11135 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11136 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11137 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11138 functions with ILL_RPC macro.
11139 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11140 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11141 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11142 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11143 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11144 (S_proc_getlogin_reply, S_proc_getsid_reply)
11145 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11146 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11147 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11148 (S_proc_getnports_reply, S_proc_is_important_reply)
11149 (S_proc_get_code_reply): New stub functions, generated with
11152 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11153 collected the type check structures.
11155 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11157 2014-02-14 Doug Evans <dje@google.com>
11159 * target.c (target_write_partial): Fix result type.
11161 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11163 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11164 the proper offsets to access fpregset_t.
11166 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11168 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11169 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11170 * h8300-tdep.c (setmachinelist): Remove global.
11171 * hppa-tdep.c (hppa_sigtramp): Remove global.
11172 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11173 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11174 * ravenscar-thread.c (update_target_observer): Remove global.
11175 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11177 2014-02-12 Tom Tromey <tromey@redhat.com>
11179 * common/rsp-low.c: Update comments.
11180 * common/rsp-low.h: Update comments.
11182 2014-02-12 Tom Tromey <tromey@redhat.com>
11184 * common/rsp-low.c (convert_ascii_to_int): Remove.
11185 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11187 2014-02-12 Tom Tromey <tromey@redhat.com>
11189 * common/rsp-low.h (unhexify): Don't declare.
11190 * common/rsp-low.c (unhexify): Remove.
11192 2014-02-12 Tom Tromey <tromey@redhat.com>
11194 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11195 * common/rsp-low.c (convert_int_to_ascii): Remove.
11197 2014-02-12 Tom Tromey <tromey@redhat.com>
11199 * common/rsp-low.h (hexify): Don't declare.
11200 * common/rsp-low.c (hexify): Remove.
11202 2014-02-12 Tom Tromey <tromey@redhat.com>
11204 * common/rsp-low.c (hexify): Never take strlen of argument.
11206 2014-02-12 Tom Tromey <tromey@redhat.com>
11208 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11209 * remote.c (extended_remote_run, remote_rcmd)
11210 (remote_download_trace_state_variable, remote_save_trace_data)
11211 (remote_set_trace_notes): Update.
11212 * tracepoint.c (encode_source_string, tfile_write_status)
11213 (tfile_write_uploaded_tsv): Update.
11215 2014-02-12 Tom Tromey <tromey@redhat.com>
11217 * tracepoint.c: Include rsp-low.h.
11218 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11219 * remote.c: Include rsp-low.h.
11220 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11221 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11222 (remote_unescape_input): Move to common/rsp-low.c.
11223 * common/rsp-low.h: New file.
11224 * common/rsp-low.c: New file.
11225 * Makefile.in (SFILES): Add common/rsp-low.c.
11226 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11227 (COMMON_OBS): Add rsp-low.o.
11228 (rsp-low.o): New target.
11230 2014-02-12 Tom Tromey <tromey@redhat.com>
11232 * utils.h: Include print-utils.h.
11233 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11234 (int_string, core_addr_to_string, core_addr_to_string_nz)
11235 (hex_string, hex_string_custom): Don't declare.
11236 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11237 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11238 (hex_string_custom, int_string, core_addr_to_string)
11239 (core_addr_to_string_nz, host_address_to_string): Move to
11240 common/print-utils.c.
11241 * common/print-utils.h: New file.
11242 * common/print-utils.c: New file
11243 * Makefile.in (SFILES): Add common/print-utils.c.
11244 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11245 (COMMON_OBS): Add print-utils.o.
11246 (print-utils.o): New target.
11248 2014-02-12 Tom Tromey <tromey@redhat.com>
11250 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11252 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11254 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11256 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11258 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11259 if a PT_IO ptrace request returns sucessfully but indicates that 0
11260 bytes were transferred.
11262 2014-02-12 Pedro Alves <palves@redhat.com>
11263 Kevin Buettner <kevinb@redhat.com>
11265 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11266 TYPE_INSTANCE_FLAG_CODE_SPACE.
11268 2014-02-12 Pedro Alves <palves@redhat.com>
11270 * h8300-tdep.c (pseudo_from_raw_register)
11271 (raw_from_pseudo_register): New functions.
11272 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11275 2014-02-12 Pedro Alves <palves@redhat.com>
11277 * h8300-tdep.c (h8300_register_sim_regno): New function.
11278 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11279 gdbarch_register_sim_regno hook.
11281 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11283 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11285 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11287 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11289 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11291 * obsd-tdep.h (obsd_init_abi): New prototype.
11292 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11293 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11294 (obsd_init_abi): New functions.
11295 * i386obsd-tdep.c: Include "obsd-tdep.h".
11296 (i386obsd_init_abi): Call obsd_init_abi.
11297 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11298 (amd64obsd_init_abi): Call obsd_init_abi.
11299 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11300 obsd-tdep.c to gdb_target_obs.
11302 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11304 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11305 double float arguments to 16-byte in the argument slots.
11307 2014-02-11 Doug Evans <xdje42@gmail.com>
11309 * configure.ac: Don't crash if pkg-config is not found and guile
11310 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11312 * configure: Regenerate.
11314 2014-02-11 Yao Qi <yao@codesourcery.com>
11316 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11317 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11318 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11319 * gnu-nat.c (gnu_xfer_memory): Likewise.
11320 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11321 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11322 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11323 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11325 2014-02-11 Yao Qi <yao@codesourcery.com>
11327 * target.h (enum target_xfer_error): Rename to ...
11328 (enum target_xfer_status): ... it. New. All users updated.
11329 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11331 (TARGET_XFER_STATUS_ERROR_P): New macro.
11332 (target_xfer_error_to_string): Remove declaration.
11333 (target_xfer_status_to_string): Declare.
11334 (target_xfer_partial_ftype): Adjust it.
11335 (struct target_ops) <to_xfer_partial>: Return
11336 target_xfer_status. Add argument xfered_len. Update
11338 * target.c (target_xfer_error_to_string): Rename to ...
11339 (target_xfer_status_to_string): ... it. New. All callers
11341 (target_read_live_memory): Likewise. Call target_xfer_partial
11342 instead of target_read.
11343 (memory_xfer_live_readonly_partial): Return
11344 target_xfer_status. Add argument xfered_len.
11345 (raw_memory_xfer_partial): Likewise.
11346 (memory_xfer_partial_1): Likewise.
11347 (memory_xfer_partial): Likewise.
11348 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11349 properly. Update debug message.
11350 (default_xfer_partial, current_xfer_partial): Likewise.
11351 (target_write_partial): Likewise.
11352 (target_read_partial): Likewise. All callers updated.
11353 (read_whatever_is_readable): Likewise.
11354 (target_write_with_progress): Likewise.
11355 (target_read_alloc_1): Likewise.
11357 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11358 * auxv.c (procfs_xfer_auxv): Likewise.
11359 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11360 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11361 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11362 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11363 * corefile.c (read_memory): Adjust.
11364 * corelow.c (core_xfer_partial): Likewise.
11365 * ctf.c (ctf_xfer_partial): Likewise.
11366 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11368 (darwin_xfer_partial): Likewise.
11369 * exec.c (section_table_xfer_memory_partial): Likewise. All
11371 (exec_xfer_partial): Likewise.
11372 * exec.h (section_table_xfer_memory_partial): Update
11374 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11376 (gnu_xfer_partial): Likewise.
11377 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11378 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11379 (ia64_hpux_xfer_solib_got): Likewise.
11380 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11381 type of 'partial_len' to ULONGEST.
11382 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11383 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11384 (linux_nat_xfer_partial): Likewise.
11385 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11386 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11387 * monitor.c (monitor_xfer_memory): Likewise.
11388 (monitor_xfer_partial): Likewise.
11389 * procfs.c (procfs_xfer_partial): Likewise.
11390 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11391 * record-full.c (record_full_xfer_partial): Likewise.
11392 (record_full_core_xfer_partial): Likewise.
11393 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11394 (gdbsim_xfer_partial): Likewise.
11395 * remote.c (remote_write_bytes_aux): Likewise. All callers
11397 (remote_write_bytes, remote_read_bytes): Likewise. All
11399 (remote_flash_erase): Likewise. All callers updated.
11400 (remote_write_qxfer): Likewise. All callers updated.
11401 (remote_read_qxfer): Likewise. All callers updated.
11402 (remote_xfer_partial): Likewise.
11403 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11404 (rs6000_xfer_shared_libraries): Likewise.
11405 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11406 (sol_thread_xfer_partial): Likewise.
11407 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11408 (sparc_xfer_partial): Likewise.
11409 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11411 (spu_xfer_partial): Likewise.
11412 * spu-multiarch.c (spu_xfer_partial): Likewise.
11413 * tracepoint.c (tfile_xfer_partial): Likewise.
11414 * windows-nat.c (windows_xfer_memory): Likewise.
11415 (windows_xfer_shared_libraries): Likewise.
11416 (windows_xfer_partial): Likewise.
11417 * valprint.c: Replace 'target_xfer_error' with
11418 'target_xfer_status' in comments.
11420 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11422 Checked in by Joel Brobecker <brobecker@adacore.com>.
11423 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11425 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11427 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11428 function parameters.
11430 2014-02-10 Will Newton <will.newton@linaro.org>
11432 * elfread.c (elf_rel_plt_read): Look for a .got section if
11433 looking up .got.plt fails.
11434 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11435 on address passed to elf_gnu_ifunc_record_cache.
11436 (elf_gnu_ifunc_resolve_addr): Likewise.
11437 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11439 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11441 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11442 (X_RETTURN): New macro.
11443 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11445 * sparc64-tdep.c (sparc64_init_abi): Hook
11446 sparc_in_function_epilogue_p.
11448 2014-02-10 Gary Benson <gbenson@redhat.com>
11450 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11451 Rename name_matcher to symbol_matcher.
11453 2014-02-10 Gary Benson <gbenson@redhat.com>
11455 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11456 Use expand_symtabs_file_matcher_ftype and
11457 expand_symtabs_symbol_matcher_ftype.
11459 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11461 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11462 (struct ada_symbol_cache): New.
11463 (ada_free_symbol_cache): Forward declare.
11464 (struct ada_pspace_data): New.
11465 (ada_pspace_data_handle): New static global.
11466 (get_ada_pspace_data, ada_pspace_data_cleanup)
11467 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11468 (cache_space, cache): Delete, now folded inside struct
11470 (ada_get_symbol_cache): New function.
11471 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11473 (_initialize_ada_language): Remove initialization of cache_space.
11474 Move call to observer_attach_inferior_exit up, grouping it
11475 with the other observer registrations inside this function.
11476 Rename command to be more general. Add call to
11477 register_program_space_data_with_cleanup.
11479 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11481 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11482 ada_new_objfile_observer.
11483 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11484 (_initialize_tasks): Update uses of ada_new_objfile_observer
11485 and ada_tasks_normal_stop_observer.
11487 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11489 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11490 returned by the 'Length attribute to integer.
11492 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11494 * ada-lang.c (_initialize_ada_language): Initialize
11495 cache_space obstack.
11497 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11499 * ada-lang.c (HASH_SIZE): New macro.
11500 (struct cache_entry): New type.
11501 (cache_space, cache): New static globals.
11502 (ada_clear_symbol_cache, find_entry): New functions.
11503 (lookup_cached_symbol, cache_symbol): Implement.
11504 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11505 (_initialize_ada_language): Attach ada_new_objfile_observer
11506 and ada_free_objfile_observer.
11508 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11510 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11511 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11512 struct block * parameter.
11513 (ada_lookup_symbol_list_worker): Constify local variable "block".
11514 Remove cast which is no longer necessary.
11516 2014-02-10 Doug Evans <xdje42@gmail.com>
11518 Add Guile as an extension language.
11519 * NEWS: Mention Guile scripting.
11520 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11521 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11522 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11523 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11524 (CLIBS): Add GUILE_LIBS.
11525 (install-guile): New rule.
11526 (guile.o): New rule.
11527 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11528 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11529 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11530 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11531 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11532 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11533 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11534 * configure.ac: New option --with-guile.
11535 * configure: Regenerate.
11536 * config.in: Regenerate.
11537 * auto-load.c: Remove #include "python/python.h". Add #include
11538 "gdb/section-scripts.h".
11539 (source_section_scripts): Handle Guile scripts.
11540 (_initialize_auto_load): Add name of Guile objfile script to
11541 scripts-directory help text.
11542 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11543 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11544 (struct breakpoint): New member scm_bp_object.
11545 * defs.h (enum command_control_type): New value guile_control.
11546 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11548 (show_user): Update comment.
11549 (_initialize_cli_cmds): Update help text for "show user". Update help
11550 text for max-user-call-depth.
11551 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11553 (multi_line_command_p): Add guile_control.
11554 (print_command_lines): Handle guile_control.
11555 (execute_control_command, recurse_read_control_structure): Ditto.
11556 (process_next_line): Recognize "guile" commands.
11557 * disasm.c (gdb_disassemble_info): Make non-static.
11558 * disasm.h: #include "dis-asm.h".
11559 (struct gdbarch): Add forward decl.
11560 (gdb_disassemble_info): Declare.
11561 * extension.c: #include "guile/guile.h".
11562 (extension_languages): Add guile.
11563 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11564 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11565 * gdbtypes.c (get_unsigned_type_max): New function.
11566 (get_signed_type_minmax): New function.
11567 * gdbtypes.h (get_unsigned_type_max): Declare.
11568 (get_signed_type_minmax): Declare.
11569 * guile/README: New file.
11570 * guile/guile-internal.h: New file.
11571 * guile/guile.c: New file.
11572 * guile/guile.h: New file.
11573 * guile/scm-arch.c: New file.
11574 * guile/scm-auto-load.c: New file.
11575 * guile/scm-block.c: New file.
11576 * guile/scm-breakpoint.c: New file.
11577 * guile/scm-disasm.c: New file.
11578 * guile/scm-exception.c: New file.
11579 * guile/scm-frame.c: New file.
11580 * guile/scm-gsmob.c: New file.
11581 * guile/scm-iterator.c: New file.
11582 * guile/scm-lazy-string.c: New file.
11583 * guile/scm-math.c: New file.
11584 * guile/scm-objfile.c: New file.
11585 * guile/scm-ports.c: New file.
11586 * guile/scm-pretty-print.c: New file.
11587 * guile/scm-safe-call.c: New file.
11588 * guile/scm-string.c: New file.
11589 * guile/scm-symbol.c: New file.
11590 * guile/scm-symtab.c: New file.
11591 * guile/scm-type.c: New file.
11592 * guile/scm-utils.c: New file.
11593 * guile/scm-value.c: New file.
11594 * guile/lib/gdb.scm: New file.
11595 * guile/lib/gdb/boot.scm: New file.
11596 * guile/lib/gdb/experimental.scm: New file.
11597 * guile/lib/gdb/init.scm: New file.
11598 * guile/lib/gdb/iterator.scm: New file.
11599 * guile/lib/gdb/printing.scm: New file.
11600 * guile/lib/gdb/types.scm: New file.
11601 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11602 (VPATH): Add $(GUILE_SRCDIR).
11603 (GUILE_DIR): New variable.
11604 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11605 (all): Add stamp-guile dependency.
11606 (stamp-guile): New rule.
11607 (clean-guile, install-guile, uninstall-guile): New rules.
11608 (install-only): Add install-guile dependency.
11609 (uninstall): Add uninstall-guile dependency.
11610 (clean): Add clean-guile dependency.
11612 2014-02-09 Doug Evans <xdje42@gmail.com>
11614 Revert this patch (which I approved, mea culpa).
11616 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11618 * Makefile.in (all-lib): Remove.
11619 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11621 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11623 Fix Python stack corruption.
11624 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11627 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11629 * Makefile.in (all-lib): Remove.
11630 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11632 2014-02-07 Doug Evans <dje@google.com>
11634 * extension-priv.h (extension_language_script_ops): Add comment.
11635 (extension_language_ops): Add comment.
11636 (active_ext_lang_state): Fix typo in comment.
11638 2014-02-07 Pedro Alves <palves@redhat.com>
11640 PR breakpoints/16292
11641 * infrun.c (handle_signal_stop) <signal arrives while stepping
11642 over a breakpoint>: Switch back to the stepping thread.
11644 2014-02-07 Yao Qi <yao@codesourcery.com>
11646 * target.c (target_xfer_partial): Return zero if LEN is zero.
11648 2014-02-07 Yao Qi <yao@codesourcery.com>
11650 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11651 (ld_so_xfer_auxv): Likewise.
11652 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11653 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11654 * corelow.c (core_xfer_partial): Likewise.
11655 * ctf.c (ctf_xfer_partial): Likewise.
11656 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11657 (darwin_xfer_partial): Likewise.
11658 * exec.c (exec_xfer_partial): Likewise.
11659 * gnu-nat.c (gnu_xfer_partial): Likewise.
11660 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11661 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11662 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11663 * linux-nat.c (linux_xfer_siginfo): Likewise.
11664 (linux_proc_xfer_spu): Likewise.
11665 * procfs.c (procfs_xfer_partial): Likewise.
11666 * record-full.c (record_full_xfer_partial): Likewise.
11667 (record_full_core_xfer_partial): Likewise.
11668 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11669 * remote.c (remote_write_qxfer): Likewise.
11670 (remote_write_qxfer, remote_read_qxfer): Likewise.
11671 (remote_xfer_partial): Likewise.
11672 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11673 (rs6000_xfer_shared_libraries): Likewise.
11674 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11675 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11676 (spu_xfer_partial): Likewise.
11677 * target.c (memory_xfer_partial_1): Likewise.
11678 * tracepoint.c (tfile_xfer_partial): Likewise.
11679 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11680 (windows_xfer_partial): Likewise.
11682 2014-02-07 Yao Qi <yao@codesourcery.com>
11684 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11686 (core_xfer_shared_libraries_aix): Likewise.
11687 * gdbarch.c, gdbarch.h: Regenerated.
11688 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11689 ULONGEST. Change 'len_avail' type to ULONGEST.
11690 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11691 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11693 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11695 2014-02-07 Yao Qi <yao@codesourcery.com>
11697 * corefile.c (memory_error): Get 'exception' from ERR and pass
11698 'exception' to throw_error.
11700 2014-02-06 Doug Evans <xdje42@gmail.com>
11702 * configure.ac (libpython checking): Remove all but python.o from
11703 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11704 * configure: Regenerate.
11706 * Makefile.in (SFILES): Add extension.c.
11707 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11708 (COMMON_OBS): Add extension.o.
11709 * extension.h: New file.
11710 * extension-priv.h: New file.
11711 * extension.c: New file.
11713 * python/python-internal.h: #include "extension.h".
11714 (gdbpy_auto_load_enabled): Declare.
11715 (gdbpy_apply_val_pretty_printer): Declare.
11716 (gdbpy_apply_frame_filter): Declare.
11717 (gdbpy_preserve_values): Declare.
11718 (gdbpy_breakpoint_cond_says_stop): Declare.
11719 (gdbpy_breakpoint_has_cond): Declare.
11720 (void source_python_script_for_objfile): Delete.
11721 * python/python.c: #include "extension-priv.h".
11722 Delete inclusion of "observer.h".
11723 (extension_language_python): Moved here and renamed from
11724 script_language_python in py-auto-load.c.
11725 Redefined to be of type extension_language_defn.
11726 (python_extension_script_ops): New global.
11727 (python_extension_ops): New global.
11728 (struct python_env): New member previous_active.
11729 (restore_python_env): Call restore_active_ext_lang.
11730 (ensure_python_env): Call set_active_ext_lang.
11731 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11733 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11735 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11737 (gdbpy_eval_from_control_command): Renamed from
11738 eval_python_from_control_command, made static. New arg extlang.
11739 (gdbpy_source_script) Renamed from source_python_script, made static.
11741 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11742 result to int. New arg extlang.
11743 (gdbpy_source_objfile_script): Renamed from
11744 source_python_script_for_objfile, made static. New arg extlang.
11745 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11746 static. New args extlang, extlang_printers. Change result type to
11748 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11749 static. New arg extlang. Rename arg printers to extlang_printers
11750 and change type to ext_lang_type_printers *.
11751 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11752 static. Replace argument arg with extlang, extlang_printers.
11753 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11754 (!HAVE_PYTHON, source_python_script): Delete.
11755 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11756 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11757 (!HAVE_PYTHON, start_type_printers): Delete.
11758 (!HAVE_PYTHON, apply_type_printers): Delete.
11759 (!HAVE_PYTHON, free_type_printers): Delete.
11760 (_initialize_python): Delete call to observer_attach_before_prompt.
11761 (finalize_python): Set/restore active extension language.
11762 (gdbpy_finish_initialization) Renamed from
11763 finish_python_initialization, made static. New arg extlang.
11764 (gdbpy_initialized): New function.
11765 * python/python.h: #include "extension.h". Delete #include
11766 "value.h", "mi/mi-cmds.h".
11767 (extension_language_python): Declare.
11768 (GDBPY_AUTO_FILE_NAME): Delete.
11769 (enum py_bt_status): Moved to extension.h and renamed to
11770 ext_lang_bt_status.
11771 (enum frame_filter_flags): Moved to extension.h.
11772 (enum py_frame_args): Moved to extension.h and renamed to
11773 ext_lang_frame_args.
11774 (finish_python_initialization): Delete.
11775 (eval_python_from_control_command): Delete.
11776 (source_python_script): Delete.
11777 (apply_val_pretty_printer): Delete.
11778 (apply_frame_filter): Delete.
11779 (preserve_python_values): Delete.
11780 (gdbpy_script_language_defn): Delete.
11781 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11782 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11784 * auto-load.c: #include "extension.h".
11785 (GDB_AUTO_FILE_NAME): Delete.
11786 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11787 (script_language_gdb): Delete, moved to extension.c and renamed to
11788 extension_language_gdb.
11789 (source_gdb_script_for_objfile): Delete.
11790 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11791 (loaded_script): Change type of language member to
11792 struct extension_language_defn *.
11793 (init_loaded_scripts_info): Initialize
11794 unsupported_script_warning_printed.
11795 (maybe_add_script): Make static. Change type of language arg to
11796 struct extension_language_defn *.
11797 (clear_section_scripts): Reset unsupported_script_warning_printed.
11798 (auto_load_objfile_script_1): Rewrite to use extension language API.
11799 (auto_load_objfile_script): Make public. Remove support-compiled-in
11800 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11801 (source_section_scripts): Rewrite to use extension language API.
11802 (load_auto_scripts_for_objfile): Rewrite to use
11803 auto_load_scripts_for_objfile.
11804 (collect_matching_scripts_data): Change type of language member to
11805 struct extension_language_defn *.
11806 (auto_load_info_scripts): Change type of language arg to
11807 struct extension_language_defn *.
11808 (unsupported_script_warning_print): New function.
11809 (script_not_found_warning_print): Make static.
11810 (_initialize_auto_load): Rewrite construction of scripts-directory
11812 * auto-load.h (struct objfile): Add forward decl.
11813 (struct script_language): Delete.
11814 (struct auto_load_pspace_info): Add forward decl.
11815 (struct extension_language_defn): Add forward decl.
11816 (maybe_add_script): Delete.
11817 (auto_load_objfile_script): Declare.
11818 (script_not_found_warning_print): Delete.
11819 (auto_load_info_scripts): Update prototype.
11820 (auto_load_gdb_scripts_enabled): Declare.
11821 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11822 auto_load_python_scripts_enabled and made public.
11823 (script_language_python): Delete, moved to python.c.
11824 (gdbpy_script_language_defn): Delete.
11825 (info_auto_load_python_scripts): Update to use
11826 extension_language_python.
11828 * breakpoint.c (condition_command): Replace call to
11829 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11830 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11831 with call to breakpoint_ext_lang_cond_says_stop.
11832 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11833 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11834 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11835 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11837 (local_setattro): Print name of extension language with existing
11840 * valprint.c (val_print, value_print): Update to call
11841 apply_ext_lang_val_pretty_printer.
11842 * cp-valprint.c (cp_print_value): Update call to
11843 apply_ext_lang_val_pretty_printer.
11844 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11845 (gdbpy_apply_val_pretty_printer): Renamed from
11846 apply_val_pretty_printer. New arg extlang.
11847 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11849 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11850 extension language API.
11851 * cli/cli-script.c (execute_control_command): Update to call
11852 eval_ext_lang_from_control_command.
11854 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11855 enum ext_lang_bt_status values. Update call to
11856 apply_ext_lang_frame_filter.
11857 (mi_cmd_stack_list_locals): Ditto.
11858 (mi_cmd_stack_list_args): Ditto.
11859 (mi_cmd_stack_list_variables): Ditto.
11860 * mi/mi-main.c: Delete #include "python/python-internal.h".
11861 Add #include "extension.h".
11862 (mi_cmd_list_features): Replace reference to python internal variable
11863 gdb_python_initialized with call to ext_lang_initialized_p.
11865 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11866 Update to use enum ext_lang_frame_args. Update to call
11867 apply_ext_lang_frame_filter.
11868 * python/py-framefilter.c (extract_sym): Update to use enum
11869 ext_lang_bt_status.
11870 (extract_value, py_print_type, py_print_value): Ditto.
11871 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11872 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11873 (py_print_frame): Ditto.
11874 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11875 New arg extlang. Update to use enum ext_lang_bt_status.
11877 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11878 finish_python_initialization. Replace with call to
11879 finish_ext_lang_initialization.
11881 * typeprint.c (do_free_global_table): Update to call
11882 free_ext_lang_type_printers.
11883 (create_global_typedef_table): Update to call
11884 start_ext_lang_type_printers.
11885 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11886 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11887 (type_print_options): Change type of global_printers from "void *"
11888 to "struct ext_lang_type_printers *".
11890 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11891 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11892 (gdbpy_preserve_values): Renamed from preserve_python_values.
11894 (!HAVE_PYTHON, preserve_python_values): Delete.
11896 * utils.c (quit_flag): Delete, moved to extension.c.
11897 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11900 * eval.c: Delete #include "python/python.h".
11901 * main.c: Delete #include "python/python.h".
11903 * defs.h: Update comment.
11905 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11909 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11911 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11914 2014-02-05 Yao Qi <yao@codesourcery.com>
11916 * remote.c (remote_pass_signals): Remove local 'buf' and use
11918 (remote_program_signals): Likewise.
11920 2014-02-05 Yao Qi <yao@codesourcery.com>
11922 * ctf.c: Include "inferior.h" and "gdbthread.h".
11923 (CTF_PID): A new macro.
11924 (ctf_open): Call inferior_appeared and add_thread_silent.
11925 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11926 (ctf_thread_alive): New function.
11927 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11929 2014-02-05 Yao Qi <yao@codesourcery.com>
11933 2013-05-24 Yao Qi <yao@codesourcery.com>
11935 * tracepoint.c (TFILE_PID): Remove.
11936 (tfile_open): Don't add thread and inferior.
11937 (tfile_close): Don't set 'inferior_ptid'. Don't call
11938 exit_inferior_silent.
11939 (tfile_thread_alive): Remove.
11940 (init_tfile_ops): Don't set field 'to_thread_alive' of
11943 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11945 * remote.c (remote_start_remote): Call remote_check_symbols even
11946 if only symbol-file (not file) has been given.
11948 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11950 * gdbarch.sh (skip_entrypoint): New callback.
11951 * gdbarch.c, gdbarch.h: Regenerate.
11952 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11953 * infrun.c (fill_in_stop_func): Likewise.
11954 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11955 (ppc_elfv2_elf_make_msymbol_special): New function.
11956 (ppc_elfv2_skip_entrypoint): Likewise.
11957 (ppc_linux_init_abi): Install them for ELFv2.
11959 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11961 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11962 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11963 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11964 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11965 structures returned in GPRs.
11967 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11969 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11970 offset to the stack parameter list for the ELFv2 ABI.
11972 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11974 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11975 set_gdbarch_convert_from_func_ptr_addr and
11976 set_gdbarch_elf_make_msymbol_special for ELFv1.
11977 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11978 function descriptors on ELFv1.
11979 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11980 set up r12 at function entry.
11982 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11984 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11985 (struct gdbarch_tdep): New member elf_abi.
11987 * rs6000-tdep.c: Include "elf/ppc64.h".
11988 (rs6000_gdbarch_init): Detect ELF ABI version.
11990 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11992 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11993 within a register pair holding a DFP 128-bit value on little-endian.
11994 (ppc64_sysv_abi_return_value_base): Likewise.
11995 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11996 (dfp_pseudo_register_write): Likewise.
11998 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12000 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12001 offset on little-endian when passing _Decimal32.
12002 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12004 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12006 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12007 of the overlapped FP register within the VSX register on little-
12009 (efpr_pseudo_register_write): Likewise.
12011 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12013 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12014 offset on little-endian when passing small structures.
12016 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12018 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12019 (struct ppc64_sysv_argpos): New data structure.
12020 (ppc64_sysv_abi_push_float): Remove.
12021 (ppc64_sysv_abi_push_val): New function.
12022 (ppc64_sysv_abi_push_integer): Likewise.
12023 (ppc64_sysv_abi_push_freg): Likewise.
12024 (ppc64_sysv_abi_push_vreg): Likewise.
12025 (ppc64_sysv_abi_push_param): Likewise.
12026 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12027 (ppc64_sysv_abi_return_value_base): New function.
12028 (ppc64_sysv_abi_return_value): Refactor to use it.
12030 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12032 * NEWS: Document new target powerpc64le-*-linux*.
12034 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12036 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12037 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12039 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12040 register set used in ELF core dumps. Add floating-point register set.
12042 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12044 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12045 dwarf2_to_gdb[] table using symbolic constants. Adjust
12046 penultimate entry from number representing the PC register
12047 to symbolic constant representing the MDR register. Add
12048 constant for the PC register to the end of the table.
12050 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12052 * bsd-kvm.c: Include <sys/param.h>
12054 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12056 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12058 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12060 * ada-lang.h (clear_ada_sym_cache): Delete.
12062 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12064 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12066 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12068 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12069 the sigreturn register save area only if the syscall is
12072 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12074 * valops.c (value_slice): Minor reformatting.
12076 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12078 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12080 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12082 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12083 New static globals.
12084 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12085 (ada_ignore_descriptive_types_p): New static global.
12086 (find_parallel_type_by_descriptive_type): Return immediately
12087 if ada_ignore_descriptive_types_p is set.
12088 (_initialize_ada_language): Register new commands "maintenance
12089 set ada", "maintenance show ada", "maintenance set ada
12090 ignore-descriptive-types" and "maintenance show ada
12091 ignore-descriptive-types".
12092 * NEWS: Add entry for new "maint ada set/show
12093 ignore-descriptive-types" commands.
12095 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12097 * record-btrace.c (record_btrace_close): Call btrace_teardown
12100 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12102 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12105 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12107 * ada-typeprint (type_is_full_subrange_of_target_type):
12109 (print_range): Add parameter bounds_prefered_p. If not set,
12110 try printing range types using the name of their base type.
12111 (print_range_type): Add parameter bounds_prefered_p.
12112 Use it in call to print_range.
12113 (print_array_type, ada_print_type): Update calls to print_range
12114 and print_range_type.
12116 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12118 * ada-typeprint.c (print_array_type, print_choices, print_range)
12119 (print_range_bound, print_dynamic_range_bound, print_range_type):
12120 Remove declaration.
12122 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12124 * ada-typeprint.c (print_range): Add missing empty line
12125 after local declaration.
12127 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12129 * ada-valprint.c (print_optional_low_bound): Get index_type's
12130 target type for as long as it is a TYPE_CODE_RANGE.
12132 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12134 * procfs.c (procfs_make_note_section): Remove assertion and
12135 associated comment.
12137 2014-01-24 Yao Qi <yao@codesourcery.com>
12139 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12140 * corelow.c (get_core_siginfo): Likewise.
12142 2014-01-24 Yao Qi <yao@codesourcery.com>
12144 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12145 ULONGEST. Don't check 'len' is negative.
12146 (remote_write_bytes): Change type of 'len' to ULONGEST.
12148 2014-01-23 Tom Tromey <tromey@redhat.com>
12151 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12152 Handle exception from frame.block.
12153 (FrameVars.fetch_frame_locals): Likewise.
12155 2014-01-23 Tom Tromey <tromey@redhat.com>
12158 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12159 on a NULL pointer. Move "goto error" to correct place.
12161 2014-01-23 Tom Tromey <tromey@redhat.com>
12164 * python/py-framefilter.c (apply_frame_filter): Call
12165 ensure_python_env after computing gdbarch.
12167 2014-01-23 Yao Qi <yao@codesourcery.com>
12169 * target.c (raw_memory_xfer_partial): Change argument type
12170 from void * to gdb_byte *.
12171 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12173 2014-01-22 Doug Evans <dje@google.com>
12175 New gdbserver option --debug-format=timestamp.
12176 * NEWS: Mention it.
12178 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12180 * syscalls/s390x-linux.xml: New file.
12181 * syscalls/s390-linux.xml: New file.
12182 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12183 (XML_SYSCALL_FILENAME_S390X): Likewise.
12184 (op_svc): New enum value for SVC opcode.
12185 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12186 (s390_linux_get_syscall_number): New function.
12187 (s390_gdbarch_init): Register '*get_syscall_number' and the
12188 syscall xml file name.
12189 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12190 "s390-linux.xml" and "s390x-linux.xml".
12191 * NEWS: Announce new feature.
12193 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12195 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12197 2014-01-22 Pedro Alves <palves@redhat.com>
12199 * xtensa-config.c: Include defs.h.
12201 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12203 * common/common-utils.h: Add "ARI:" comment beside __func__
12206 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12208 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12209 documentation a bit.
12211 2014-01-21 Roland McGrath <mcgrathr@google.com>
12213 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12214 * configure: Regenerate.
12215 * aclocal.m4: Regenerate.
12216 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12217 New substituted variables.
12218 (install-strip): New target.
12219 (INSTALL_SCRIPT): New substituted variable.
12220 (FLAGS_TO_PASS): Add it.
12221 (install-only): Use $(INSTALL_SCRIPT) rather than
12222 $(INSTALL_PROGRAM) for gcore.
12224 2014-01-20 Tom Tromey <tromey@redhat.com>
12226 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12229 2014-01-20 Tom Tromey <tromey@redhat.com>
12231 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12232 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12233 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12234 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12235 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12236 (struct cmd_list_element) <flags>: Remove.
12237 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12238 doc_allocated>: New fields.
12239 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12241 * maint.c (maintenance_do_deprecate): Update.
12242 * top.c (execute_command): Update.
12244 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12246 * xtensa-linux-nat.c: Include asm/ptrace.h.
12248 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12250 * Makefile.in (SFILES): Add d-support.c.
12251 (COMMON_OBS): Add d-support.o.
12252 * d-lang.h (d_parse_symbol): Add comment, now defined in
12254 * d-lang.c (parse_call_convention)
12255 (parse_attributes, parse_function_types)
12256 (parse_function_args, parse_type, parse_identifier)
12257 (call_convention_p, d_parse_symbol): Move functions to ...
12258 * d-support.c: ... New file.
12260 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12262 * d-lang.h (d_parse_symbol): Add declaration.
12263 * d-lang.c (extract_identifiers)
12264 (extract_type_info): Remove functions.
12265 (parse_call_convention, parse_attributes)
12266 (parse_function_types, parse_function_args)
12267 (parse_type, parse_identifier, call_convention_p)
12268 (d_parse_symbol): New functions.
12269 (d_demangle): Use d_parse_symbol to demangle D symbols.
12271 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12273 * d-lang.h (struct builtin_d_type): New data type.
12274 (builtin_d_type): Add declaration.
12275 * d-lang.c (d_language_arch_info, build_d_types)
12276 (builtin_d_type): New functions.
12277 (enum d_primitive_types): New data type.
12278 (d_language_defn): Change c_language_arch_info to
12279 d_language_arch_info.
12280 (d_type_data): New static variable.
12281 (_initialize_d_language): Initialize d_type_data.
12283 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12285 * d-lang.h (d_main_name): Add declaration.
12286 * d-lang.c (d_main_name): New function.
12287 * symtab.c (find_main_name): Add call to d_main_name.
12289 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12291 * d-lang.c (d_language_defn): Change macro_expansion_c to
12292 macro_expansion_no.
12294 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12296 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12298 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12300 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12301 gdb_exception" declaration.
12302 * remote.c (getpkt_or_notif_sane): Likewise.
12304 2014-01-17 Doug Evans <dje@google.com>
12306 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12307 function, contents of dirnames_to_char_ptr_vec_append moved here.
12308 (delim_string_to_char_ptr_vec): New function.
12309 (dirnames_to_char_ptr_vec_append): Rewrite.
12310 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12312 2014-01-17 Doug Evans <dje@google.com>
12314 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12316 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12317 #include "common-utils.h".
12318 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12319 * common/vec.h (VEC_ASSERT_PASS): Update.
12320 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12321 (MACH_CHECK_ERROR): Update.
12323 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12325 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12327 * gdbarch.h: Regenerate.
12329 2014-01-16 Tom Tromey <tromey@redhat.com>
12331 * value.c (struct value) <regnum>: Move earlier.
12333 2014-01-16 Tom Tromey <tromey@redhat.com>
12335 * remote.c (extended_remote_create_inferior): Rename from
12336 extended_remote_create_inferior_1. Add "ops" argument. Remove
12337 old implementation.
12339 2014-01-16 Pedro Alves <palves@redhat.com>
12341 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12342 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12345 2014-01-16 Doug Evans <dje@google.com>
12347 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12349 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12351 * btrace.h (btrace_thread_flag): New.
12352 (struct btrace_thread_info) <flags>: New.
12353 * record-btrace.c (record_btrace_resume_thread)
12354 (record_btrace_find_thread_to_move, btrace_step_no_history)
12355 (btrace_step_stopped, record_btrace_start_replaying)
12356 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12357 (record_btrace_find_resume_thread): New.
12358 (record_btrace_resume, record_btrace_wait): Extend.
12359 (record_btrace_can_execute_reverse): New.
12360 (record_btrace_open): Fail in non-stop mode.
12361 (record_btrace_set_replay): Split into this, ...
12362 (record_btrace_stop_replaying): ... this, ...
12363 (record_btrace_clear_histories): ... and this.
12364 (init_record_btrace_ops): Init to_can_execute_reverse.
12365 * NEWS: Announce it.
12367 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12369 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12370 (forward_target_decr_pc_after_break)
12371 (target_decr_pc_after_break): New.
12372 * target.c (forward_target_decr_pc_after_break)
12373 (target_decr_pc_after_break): New.
12374 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12375 instead of gdbarch_decr_pc_after_break.
12376 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12377 instead of gdbarch_decr_pc_after_break.
12378 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12379 instead of gdbarch_decr_pc_after_break.
12380 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12381 instead of gdbarch_decr_pc_after_break.
12382 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12383 instead of gdbarch_decr_pc_after_break.
12384 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12385 instead of gdbarch_decr_pc_after_break.
12387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12389 * btrace.c: Include regcache.h.
12390 (btrace_add_pc): New.
12391 (btrace_enable): Call btrace_add_pc.
12392 (btrace_is_empty): New.
12393 * btrace.h (btrace_is_empty): New.
12394 * record-btrace.c (require_btrace, record_btrace_info): Call
12397 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12399 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12400 Support delta reads.
12401 (linux_disable_btrace): Change return type.
12402 * common/linux-btrace.h (linux_read_btrace): Change parameters
12403 and return type to allow error reporting. Update users.
12404 (linux_disable_btrace): Change return type. Update users.
12405 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12407 (btrace_error): New.
12408 (btrace_block) <begin>: Comment on BEGIN == 0.
12409 * btrace.c (btrace_compute_ftrace): Start from the end of
12411 (btrace_stitch_trace, btrace_clear_history): New.
12412 (btrace_fetch): Read delta trace, return if replaying.
12413 (btrace_clear): Move clear history code to btrace_clear_history.
12414 (parse_xml_btrace): Throw an error if parsing failed.
12415 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12416 and return type to allow error reporting.
12417 (target_read_btrace): Change parameters and return type to allow
12419 * target.c (target_read_btrace): Update.
12420 * remote.c (remote_read_btrace): Support delta reads. Pass
12422 * NEWS: Announce it.
12424 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12426 * record.h (record_btrace_frame_unwind)
12427 (record_btrace_tailcall_frame_unwind): New declarations.
12428 * dwarf2-frame: Include record.h
12429 (dwarf2_frame_cfa): Throw an error for btrace frames.
12430 * record-btrace.c: Include hashtab.h.
12431 (btrace_get_bfun_name): New.
12432 (btrace_call_history): Call btrace_get_bfun_name.
12433 (struct btrace_frame_cache): New.
12435 (bfcache_hash, bfcache_eq, bfcache_new): New.
12436 (btrace_get_frame_function): New.
12437 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12438 (record_btrace_frame_this_id): Compute own id.
12439 (record_btrace_frame_prev_register): Provide PC, throw_error
12440 for all other registers.
12441 (record_btrace_frame_sniffer): Detect btrace frames.
12442 (record_btrace_tailcall_frame_sniffer): New.
12443 (record_btrace_frame_dealloc_cache): New.
12444 (record_btrace_frame_unwind): Add new functions.
12445 (record_btrace_tailcall_frame_unwind): New.
12446 (_initialize_record_btrace): Allocate cache.
12447 * btrace.c (btrace_clear): Call reinit_frame_cache.
12448 * NEWS: Announce it.
12450 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12452 * record-btrace.c (record_btrace_set_replay)
12453 (record_btrace_goto_begin, record_btrace_goto_end)
12454 (record_btrace_goto): New.
12455 (init_record_btrace_ops): Initialize them.
12456 * NEWS: Announce it.
12458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12460 * record-btrace.c (record_btrace_find_new_threads)
12461 (record_btrace_thread_alive): New.
12462 (init_record_btrace_ops): Initialize to_find_new_threads and
12465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12467 * record-btrace.c (record_btrace_resume): New.
12468 (record_btrace_wait): New.
12469 (init_record_btrace_ops): Initialize to_wait and to_resume.
12471 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12473 * record-btrace.c (record_btrace_xfer_partial)
12474 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12475 (record_btrace_allow_memory_access): New.
12476 (init_record_btrace_ops): Initialize new methods.
12477 * target.c (raw_memory_xfer_partial): Bail out if target reports
12478 that this memory is not available.
12480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12482 * target.h (target_ops) <to_insert_breakpoint>
12483 <to_remove_breakpoint>: Add target_ops parameter.
12484 (forward_target_insert_breakpoint): New.
12485 (forward_target_remove_breakpoint): New.
12486 (memory_remove_breakpoint, memory_insert_breakpoint):
12487 Add target_ops parameter.
12488 * target.c (target_insert_breakpoint): Split into this and ...
12489 (forward_target_insert_breakpoint): ... this.
12490 (target_remove_breakpoint): Split into this and ...
12491 (forward_target_remove_breakpoint): ... this.
12492 (debug_to_insert_breakpoint): Add target_ops parameter.
12493 Call forward_target_insert_breakpoint.
12494 (debug_to_remove_breakpoint): Add target_ops parameter.
12495 Call forward_target_remove_breakpoint.
12496 (update_current_target): Do not inherit or default to_insert_breakpoint
12497 and to_remove_breakpoint.
12498 * corelow.c (ignore): Add target_ops parameter.
12499 * exec.c (ignore): Add target_ops parameter.
12500 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12501 Add target_ops parameter.
12502 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12503 Add target_ops parameter.
12504 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12505 Add target_ops parameter.
12506 * record-full.c (record_full_beneath_to_insert_breakpoint)
12507 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12508 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12509 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12510 (record_full_core_remove_breakpoint): Add target_ops parameter.
12512 (record_full_beneath_to_insert_breakpoint_ops)
12513 (record_full_beneath_to_remove_breakpoint_ops)
12514 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12515 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12516 tmp_to_remove_breakpoint_ops,
12517 record_full_beneath_to_insert_breakpoint_ops, and
12518 record_full_beneath_to_remove_breakpoint_ops.
12519 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12520 (m32r_remove_breakpoint): Add target_ops parameter.
12521 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12522 Add target_ops parameter.
12523 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12524 Add target_ops parameter.
12526 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12527 Markus Metzger <markus.t.metzger@intel.com>
12529 * record-btrace.c: Include frame-unwind.h.
12530 (record_btrace_frame_unwind_stop_reason)
12531 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12532 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12534 (init_record_btrace_ops): Install it.
12536 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12538 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12541 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12543 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12546 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12548 * frame-unwind.c: Include target.h.
12549 (frame_unwind_try_unwinder): New function with code from ...
12550 (frame_unwind_find_by_frame): ... here. New variable
12551 unwinder_from_target, call also target_get_unwinder)
12552 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12553 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12554 * target.h (struct target_ops): New fields to_get_unwinder and
12555 to_get_tailcall_unwinder.
12556 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12558 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12560 * record-btrace.c (record_btrace_fetch_registers)
12561 (record_btrace_store_registers)
12562 (record_btrace_to_prepare_to_store): New.
12563 (init_record_btrace_ops): Add the above.
12565 2014-01-16 Tom Tromey <tromey@redhat.com>
12567 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12568 * target.h (struct target_ops) <to_prepare_to_store>: Add
12570 (target_prepare_to_store): Add argument.
12571 * target.c (debug_to_prepare_to_store): Add argument.
12572 (update_current_target): Update.
12573 * remote.c (remote_prepare_to_store): Add 'self' argument.
12574 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12575 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12576 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12577 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12579 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12580 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12581 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12582 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12583 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12585 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12587 * btrace.h (replay) <replay>: New.
12588 (btrace_is_replaying): New.
12589 * btrace.c (btrace_clear): Free replay iterator.
12590 (btrace_is_replaying): New.
12591 * record-btrace.c (record_btrace_is_replaying): New.
12592 (record_btrace_info): Print insn number if replaying.
12593 (record_btrace_insn_history): Start at replay position.
12594 (record_btrace_call_history): Start at replay position.
12595 (init_record_btrace_ops): Init to_record_is_replaying.
12597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12599 * record-btrace.c (record_btrace_insn_history_range): Include
12601 (record_btrace_insn_history_from): Adjust range.
12602 (record_btrace_call_history_range): Include
12604 (record_btrace_call_history_from): Adjust range.
12605 * NEWS: Announce changes.
12607 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12609 * record.h (enum record_print_flag)
12610 <record_print_indent_calls>: New.
12611 * record.c (get_call_history_modifiers): Recognize /c modifier.
12612 (_initialize_record): Document /c modifier.
12613 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12614 Reorder fields. Optionally indent the function name. Update
12616 * NEWS: Announce changes.
12618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12620 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12624 * btrace.c (ftrace_new_function): Start counting at one.
12625 * record-btrace.c (record_btrace_info): Adjust number of calls
12627 * NEWS: Announce it.
12629 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12631 * record-btrace.c (btrace_call_history_insn_range): Print
12632 insn range as [begin, end].
12634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12636 * btrace.h (struct btrace_func_link): New.
12637 (enum btrace_function_flag): New.
12638 (struct btrace_inst): Rename to ...
12639 (struct btrace_insn): ...this. Update all users.
12640 (struct btrace_func) <ibegin, iend>: Remove.
12641 (struct btrace_func_link): New.
12642 (struct btrace_func): Rename to ...
12643 (struct btrace_function): ...this. Update all users.
12644 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12645 (number, level, flags>: New.
12646 (struct btrace_insn_iterator): Rename to ...
12647 (struct btrace_insn_history): ...this.
12649 (struct btrace_insn_iterator, btrace_call_iterator): New.
12650 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12651 (struct btrace_target_info) <begin, end, level>
12652 <insn_history, call_history>: New.
12653 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12654 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12655 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12656 (btrace_call_number, btrace_call_begin, btrace_call_end)
12657 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12658 (btrace_find_function_by_number, btrace_set_insn_history)
12659 (btrace_set_call_history): New.
12660 * btrace.c (btrace_init_insn_iterator)
12661 (btrace_init_func_iterator, compute_itrace): Remove.
12662 (ftrace_print_function_name, ftrace_print_filename)
12663 (ftrace_skip_file): Change
12664 parameter to const.
12665 (ftrace_init_func): Remove.
12666 (ftrace_debug): Use new btrace_function fields.
12667 (ftrace_function_switched): Also consider gaining and
12668 losing symbol information).
12669 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12670 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12671 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12673 (ftrace_new_function): Move. Remove debug print.
12674 (ftrace_update_lines, ftrace_update_insns): New.
12675 (ftrace_update_function): Check for call, ret, and jump.
12676 (compute_ftrace): Renamed to ...
12677 (btrace_compute_ftrace): ...this. Rewritten to compute call
12679 (btrace_fetch, btrace_clear): Updated.
12680 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12681 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12682 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12683 (btrace_call_number, btrace_call_begin, btrace_call_end)
12684 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12685 (btrace_find_function_by_number, btrace_set_insn_history)
12686 (btrace_set_call_history): New.
12687 * record-btrace.c (require_btrace): Use new btrace thread
12689 (record_btrace_info, btrace_insn_history)
12690 (record_btrace_insn_history, record_btrace_insn_history_range):
12691 Use new btrace thread info fields and new iterator.
12692 (btrace_func_history_src_line): Rename to ...
12693 (btrace_call_history_src_line): ...this. Use new btrace
12694 thread info fields.
12695 (btrace_func_history): Rename to ...
12696 (btrace_call_history): ...this. Use new btrace thread info
12697 fields and new iterator.
12698 (record_btrace_call_history, record_btrace_call_history_range):
12699 Use new btrace thread info fields and new iterator.
12701 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12703 * frame.h (frame_id_build_unavailable_stack_special): New.
12704 * frame.c (frame_id_build_unavailable_stack_special): New.
12706 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12708 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12709 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12710 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12712 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12713 (i386_insn_is_jump, i386_jmp_p): New.
12714 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12715 insn_is_jump to gdbarch.
12716 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12717 * gdbarch.h: Regenerated.
12718 * gdbarch.c: Regenerated.
12719 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12720 (default_insn_is_jump): New.
12721 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12722 (default_insn_is_jump): New.
12724 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12726 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12728 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12729 (btrace_read_type) <btrace_read_new>: Change to ...
12730 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12734 * common/linux-btrace.c (linux_read_btrace): Free trace from
12735 previous iteration.
12737 2014-01-15 Doug Evans <dje@google.com>
12739 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12742 2014-01-15 Tom Tromey <tromey@redhat.com>
12744 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12745 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12746 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12747 (set_objfile_main_name): New function.
12748 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12749 language_of_main>: New fields.
12750 (set_objfile_main_name): Declare.
12751 * symtab.c (find_main_name): Loop over objfiles to find the main
12753 (set_main_name): Now static.
12754 (get_main_info): Add comment.
12755 * symtab.h (set_main_name): Don't declare.
12757 2014-01-15 Tom Tromey <tromey@redhat.com>
12759 * symtab.c (main_progspace_key): New global.
12760 (struct main_info): New.
12761 (name_of_main, language_of_main): Remove.
12762 (get_main_info, main_info_cleanup): New function.
12763 (set_main_name, main_name, main_language): Use get_main_info.
12764 (_initialize_symtab): Initialize main_progspace_key.
12766 2014-01-15 Tom Tromey <tromey@redhat.com>
12768 * dbxread.c (process_one_symbol): Update.
12769 * dwarf2read.c (read_partial_die): Update.
12770 * symfile.c (set_initial_language): Call main_language.
12771 * symtab.c (language_of_main): Now static.
12772 (set_main_name): Add 'lang' parameter.
12773 (find_main_name): Update.
12774 (main_language): New function.
12775 (symtab_observer_executable_changed): Update.
12776 * symtab.h (set_main_name): Update.
12777 (language_of_main): Remove.
12778 (main_language): Declare.
12780 2014-01-15 Tom Tromey <tromey@redhat.com>
12782 * symfile.c (init_entry_point_info): Use new "initialized" field.
12784 * objfiles.h (struct entry_point) <initialized>: New field.
12785 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12786 (struct objfile) <ei>: ...here. Remove.
12787 * objfiles.c (entry_point_address_query): Update.
12789 2014-01-15 Tom Tromey <tromey@redhat.com>
12791 * objfiles.c (entry_point_address_query): Relocate entry point
12793 (objfile_relocate1): Do not relocate entry point address.
12794 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12795 <the_bfd_section_index>: New field.
12796 * symfile.c (init_entry_point_info): Find the entry point's
12799 2014-01-15 Tom Tromey <tromey@redhat.com>
12801 * solib-frv.c (enable_break): Use entry_point_address_query.
12803 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12805 * NEWS: Add note on improved process record-replay on
12806 arm*-linux* targets.
12808 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12810 * arm-tdep.c (enum arm_record_result): New enum.
12811 (arm_record_unsupported_insn): New function.
12812 (arm_record_coproc_data_proc): Removed.
12813 (thumb2_record_ld_st_multiple): New function.
12814 (thumb2_record_ld_st_dual_ex_tbb): New function.
12815 (thumb2_record_data_proc_sreg_mimm): New function.
12816 (thumb2_record_ps_dest_generic): New function.
12817 (thumb2_record_branch_misc_cntrl): New function.
12818 (thumb2_record_str_single_data): New function.
12819 (thumb2_record_ld_mem_hints): New function.
12820 (thumb2_record_ld_word): New function.
12821 (thumb2_record_lmul_lmla_div): New function.
12822 (thumb2_record_decode_insn_handler): New function.
12823 (decode_insn): Add thumb32 instruction handlers.
12825 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12827 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12828 (struct arm_linux_record_tdep): Declare.
12829 (arm_canonicalize_syscall): New function.
12830 (arm_all_but_pc_registers_record): New function.
12831 (arm_linux_syscall_record): New function.
12832 (arm_linux_init_abi): Add syscall recording constructs.
12833 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12834 decoding. (arm_record_coproc_data_proc): Update arm syscall
12836 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12837 <arm_syscall_record>: New field.
12838 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12841 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12843 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12844 register for push instruction recording.
12846 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12848 * arm-tdep.c (thumb_record_misc): Update to correct logical
12849 error while recording ldm, ldmia and pop instructions.
12851 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12853 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12855 2014-01-15 Pedro Alves <palves@redhat.com>
12857 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12858 (go32_resume, go32_fetch_registers, store_register)
12859 (go32_store_registers, go32_prepare_to_store)
12860 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12861 (go32_create_inferior, go32_can_run, go32_terminal_init)
12862 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12865 2014-01-15 Tom Tromey <tromey@redhat.com>
12867 * target.h (async_callback_ftype): New typedef.
12868 (struct target_ops) <to_async>: Use it.
12870 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12872 * python/py-value.c (get_field_type): Remove unnecessary curly
12873 braces for single-statement if block.
12875 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12877 * python/py-type.c (convert_field): Add missing empty line
12878 after declarations.
12880 2014-01-14 Doug Evans <dje@google.com>
12882 * symfile.h (expand_symtabs_matching): Renamed from
12883 expand_partial_symbol_names. Update prototype.
12884 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12885 * symfile.c (expand_symtabs_matching): Renamed from
12886 expand_partial_symbol_names. New args file_matcher, kind.
12887 Rename arg fun to symbol_matcher.
12888 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12889 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12890 ada_expand_partial_symbol_name.
12891 (ada_make_symbol_completion_list): Update to call
12892 expand_symtabs_matching.
12893 (ada_add_global_exceptions): Call expand_symtabs_matching.
12894 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12895 call map_symbol_filenames.
12896 * symtab.c (sources_info): Update to call map_symbol_filenames.
12897 (search_symbols): Call expand_symtabs_matching.
12898 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12899 (default_make_symbol_completion_list_break_on): Update to call
12900 expand_symtabs_matching.
12901 (make_source_files_completion_list): Update to call
12902 map_symbol_filenames.
12904 2014-01-14 Doug Evans <dje@google.com>
12906 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12907 (expand_symtabs_symbol_matcher_ftype): New typedef.
12908 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12909 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12910 * symfile.c (expand_partial_symbol_names): Update to use
12911 expand_symtabs_symbol_matcher_ftype.
12912 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12913 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12914 Arg name_matcher renamed to symbol_matcher.
12915 * psymtab.c (recursively_search_psymtabs): Update to use
12916 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12918 (expand_symtabs_matching_via_partial): Update to use
12919 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12920 Arg name_matcher renamed to symbol_matcher.
12922 2014-01-14 Doug Evans <dje@google.com>
12924 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12925 (map_partial_symbol_filenames): Ditto.
12926 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12927 (map_partial_symbol_filenames): Ditto.
12928 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12929 (map_partial_symbol_filenames): Ditto.
12930 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12931 (map_partial_symbol_filenames): Ditto.
12932 * symtab.c: Delete #include "psymtab.h".
12934 2014-01-14 Pedro Alves <palves@redhat.com>
12935 Tom Tromey <tromey@redhat.com>
12937 * infrun.c (use_displaced_stepping): Use find_record_target
12938 instead of RECORD_IS_USED.
12939 (adjust_pc_after_break): Use record_full_is_used instead of
12941 * record-btrace.c (record_btrace_open): Call record_preopen
12942 instead of checking RECORD_IS_USED.
12943 * record-full.c (record_full_shortname)
12944 (record_full_core_shortname): New globals.
12945 (record_full_is_used): New function.
12946 (find_full_open): Call record_preopen instead of checking
12948 (init_record_full_ops): Set the target's shortname to
12949 record_full_shortname.
12950 (init_record_full_core_ops): Set the target's shortname to
12951 record_full_core_shortname.
12952 * record-full.h (record_full_is_used): Declare.
12953 * record.c (find_record_target): Make extern.
12954 (record_preopen): New function.
12955 * record.h (RECORD_IS_USED): Delete macro.
12956 (find_record_target, record_preopen): Declare functions.
12958 2014-01-14 Yao Qi <yao@codesourcery.com>
12960 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12961 'len''s type to ULONGEST.
12962 (core_xfer_shared_libraries_aix): Likewise.
12963 * gdbarch.c, gdbarch.h: Regenerated.
12964 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12965 Change type of 'len' to ULONGEST.
12966 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12967 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12969 2014-01-14 Yao Qi <yao@codesourcery.com>
12971 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12972 type of 'len' to ULONGEST.
12973 (linux_xfer_osdata_processgroups): Likewise.
12974 (linux_xfer_osdata_threads): Likewise.
12975 (linux_xfer_osdata_fds): Likewise.
12976 (linux_xfer_osdata_isockets): Likewise.
12977 (linux_xfer_osdata_shm): Likewise.
12978 (linux_xfer_osdata_sem): Likewise.
12979 (linux_xfer_osdata_msg): Likewise.
12980 (linux_common_xfer_osdata): Likewise.
12981 (struct osdata_type) <getter>: Likewise.
12982 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12985 2014-01-14 Yao Qi <yao@codesourcery.com>
12987 * target.h (target_xfer_partial_ftype): Update.
12988 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12990 * aix-thread.c (aix_thread_xfer_partial): Change type of
12991 argument 'len' to ULONGEST.
12992 * auxv.c (procfs_xfer_auxv): Likewise.
12993 (ld_so_xfer_auxv): Likewise.
12994 (memory_xfer_auxv): Likewise.
12995 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12996 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12997 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12998 * corelow.c (core_xfer_partial): Likewise.
12999 * ctf.c (ctf_xfer_partial): Likewise.
13000 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13002 (darwin_read_dyld_info): Likewise.
13003 (darwin_xfer_partial): Likewise.
13004 * exec.c (section_table_xfer_memory_partial): Likewise.
13005 (exec_xfer_partial): Likewise.
13006 * exec.h (section_table_xfer_memory_partial): Update
13008 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13009 instead of plongest.
13010 (gnu_xfer_partial): Likewise.
13011 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13012 (ia64_hpux_xfer_solib_got): Likewise.
13013 (ia64_hpux_xfer_partial): Likewise.
13014 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13015 * inf-ptrace.c (inf_ptrace_xfer_partial):
13016 * inf-ttrace.c (inf_ttrace_xfer_partial):
13017 * linux-nat.c (linux_xfer_siginfo): Likewise.
13018 (linux_nat_xfer_partial): Likewise.
13019 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13020 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13021 * monitor.c (monitor_xfer_memory): Likewise.
13022 (monitor_xfer_partial): Likewise.
13023 * procfs.c (procfs_xfer_partial): Likewise.
13024 * record-full.c (record_full_xfer_partial): Likewise.
13025 (record_full_core_xfer_partial): Likewise.
13026 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13027 instead of plongest.
13028 (gdbsim_xfer_partial): Likewise.
13029 * remote.c (remote_xfer_partial): Likewise.
13030 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13031 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13033 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13034 (rs6000_xfer_shared_libraries): Likewise.
13035 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13036 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13037 (sparc_xfer_partial): Likewise.
13038 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13039 (spu_xfer_partial): Likewise.
13040 * spu-multiarch.c (spu_xfer_partial): Likewise.
13041 * target.c (target_read_live_memory): Likewise.
13042 (memory_xfer_live_readonly_partial): Likewise.
13043 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13044 (target_xfer_partial, default_xfer_partial): Likewise.
13045 (current_xfer_partial): Likewise.
13046 * tracepoint.c (tfile_xfer_partial): Likewise.
13047 * windows-nat.c (windows_xfer_memory): Likewise. Call
13048 pulongest instead of plongest.
13049 (windows_xfer_partial): Likewise.
13050 (windows_xfer_shared_libraries): Likewise.
13052 2014-01-14 Yao Qi <yao@codesourcery.com>
13054 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13055 target_xfer_partial_ftype.
13057 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13061 * valops.c (value_struct_elt_bitpos): New function
13062 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13063 object to 'None' if the field name is an empty string ("").
13064 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13065 attribute to look for a field when 'name' is 'None'.
13066 (get_field_type): New function
13068 2014-01-13 Doug Evans <dje@google.com>
13071 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13072 (try_open_dwop_file): Ditto.
13073 * gdb_bfd.c: #include "vec.h".
13074 (bfdp): New typedef.
13075 (struct gdb_bfd_data): New member included_bfds.
13076 (gdb_bfd_unref): Unref all included bfds.
13077 (gdb_bfd_record_inclusion): New function.
13078 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13080 2014-01-13 Tom Tromey <tromey@redhat.com>
13082 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13084 2014-01-13 Tom Tromey <tromey@redhat.com>
13086 * defs.h (use_windows): Remove.
13087 * gdb.c (main): Update.
13088 * main.c (captured_main, gdb_main): Update.
13089 * main.h (struct captured_main_args) <use_windows>: Remove.
13090 * top.c (use_windows): Remove.
13092 2014-01-13 Tom Tromey <tromey@redhat.com>
13094 * defs.h (deprecated_flush_hook): Remove.
13096 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13099 * linux-thread-db.c (try_thread_db_load): Add parameter
13100 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13101 (try_thread_db_load_from_pdir_1): Move it there from here.
13102 (try_thread_db_load_from_sdir): Update caller.
13103 (try_thread_db_load_from_dir): Move it there from here.
13105 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13107 * regformats/regdat.sh: Always rewrite the register file.
13109 2014-01-13 Pedro Alves <palves@redhat.com>
13111 * Makefile.in (CHECK_HEADERS): New variable.
13112 (check-headers:): New rule.
13114 2014-01-13 Tom Tromey <tromey@redhat.com>
13116 * cli/cli-setshow.c (do_set_command): Update.
13117 * defs.h (deprecated_set_hook): Remove.
13118 * top.c (deprecated_set_hook): Remove.
13120 2014-01-13 Pedro Alves <palves@redhat.com>
13122 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13123 the tracepoint if the PC is a pseudo-register.
13125 2014-01-13 Tom Tromey <tromey@redhat.com>
13127 * defs.h (XCALLOC): Remove.
13128 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13129 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13130 * dwarf2loc.c (allocate_piece_closure): Likewise.
13131 * elfread.c (elf_symfile_segments): Likewise.
13132 (elf_symfile_segments): Likewise.
13133 * gdbtypes.c (copy_type_recursive): Likewise.
13134 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13135 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13136 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13138 * mt-tdep.c (mt_gdbarch_init): Likewise.
13139 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13141 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13142 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13143 * registry.c (registry_alloc_data): Likewise.
13144 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13145 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13146 * serial.c (serial_fdopen_ops): Likewise.
13147 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13149 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13150 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13153 2014-01-13 Tom Tromey <tromey@redhat.com>
13155 * defs.h (XMALLOC): Remove.
13156 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13157 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13158 * cli-out.c (struct ui_out *): Likewise.
13159 * cli/cli-dump.c (add_dump_command): Likewise.
13160 (add_dump_command): Likewise.
13161 * complaints.c (get_complaints): Likewise.
13162 (find_complaint): Likewise.
13163 * dwarf2-frame.c (execute_cfa_program): Likewise.
13164 * dwarf2read.c (abbrev_table_read_table): Likewise.
13165 * gdbarch.sh: Likewise.
13166 * gdbarch.c: Rebuild.
13167 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13168 * interps.c (interp_new): Likewise.
13169 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13170 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13171 * mi/mi-console.c (mi_console_file_new): Likewise.
13172 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13173 * mi/mi-out.c (mi_out_new): Likewise.
13174 * mi/mi-parse.c (mi_parse): Likewise.
13175 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13176 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13177 * observer.c (xalloc_observer_list_node): Likewise.
13178 * regcache.c (regcache_xmalloc_1): Likewise.
13179 * reggroups.c (reggroup_new): Likewise.
13180 (_initialize_reggroup): Likewise.
13181 * registry.c (register_data_with_cleanup): Likewise.
13182 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13183 * ser-base.c (serial_ttystate): Likewise.
13184 * ser-mingw.c (make_pipe_state): Likewise.
13185 * ser-pipe.c (pipe_open): Likewise.
13186 * serial.c (serial_open): Likewise.
13187 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13188 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13189 (tui_alloc_win_info): Likewise.
13190 (tui_add_content_elements): Likewise.
13191 * tui/tui-file.c (tui_file_new): Likewise.
13192 * tui/tui-out.c (tui_out_new): Likewise.
13193 * ui-file.c (mem_file_new): Likewise.
13194 * ui-out.c (push_level): Likewise.
13195 (make_cleanup_ui_out_end): Likewise.
13196 (append_header_to_list): Likewise.
13197 (ui_out_new): Likewise.
13198 * user-regs.c (user_reg_add_builtin): Likewise.
13200 2014-01-13 Tom Tromey <tromey@redhat.com>
13202 * defs.h (XZALLOC): Remove.
13203 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13204 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13205 (get_ada_tasks_inferior_data): Likewise.
13206 * auto-load.c (get_auto_load_pspace_data): Likewise.
13207 * auxv.c (get_auxv_inferior_data): Likewise.
13208 * bfd-target.c (target_bfd_reopen): Likewise.
13209 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13210 (deprecated_insert_raw_breakpoint): Likewise.
13211 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13212 * corelow.c (core_open): Likewise.
13213 * darwin-nat.c (darwin_check_new_threads): Likewise.
13214 (darwin_attach_pid): Likewise.
13215 * dummy-frame.c (dummy_frame_push): Likewise.
13216 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13217 * dwarf2loc.c (allocate_piece_closure): Likewise.
13218 * elfread.c (elf_symfile_segments): Likewise.
13219 * eval.c (ptrmath_type_p): Likewise.
13220 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13221 * gdbtypes.c (alloc_type_arch): Likewise.
13222 (alloc_type_instance): Likewise.
13223 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13224 * inf-child.c (inf_child_can_use_agent): Likewise.
13225 * inflow.c (get_inflow_inferior_data): Likewise.
13226 * infrun.c (save_infcall_suspend_state): Likewise.
13227 * jit.c (jit_reader_load): Likewise.
13228 (get_jit_objfile_data): Likewise.
13229 (get_jit_program_space_data): Likewise.
13230 (jit_object_open_impl): Likewise.
13231 (jit_symtab_open_impl): Likewise.
13232 (jit_block_open_impl): Likewise.
13233 (jit_frame_sniffer): Likewise.
13234 * linux-fork.c (add_fork): Likewise.
13235 * maint.c (make_command_stats_cleanup): Likewise.
13236 * objfiles.c (get_objfile_pspace_data): Likewise.
13237 * opencl-lang.c (struct lval_closure): Likewise.
13238 * osdata.c (osdata_start_osdata): Likewise.
13239 * progspace.c (new_address_space): Likewise.
13240 (add_program_space): Likewise.
13241 * remote-sim.c (get_sim_inferior_data): Likewise.
13242 * sh-tdep.c (sh_gdbarch_init): Likewise.
13243 * skip.c (Ignore): Likewise.
13244 (skip_delete_command): Likewise.
13245 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13246 (library_list_start_library): Likewise.
13247 (solib_aix_current_sos): Likewise.
13248 * solib-darwin.c (get_darwin_info): Likewise.
13249 (darwin_current_sos): Likewise.
13250 * solib-dsbt.c (get_dsbt_info): Likewise.
13251 * solib-ia64-hpux.c (new_so_list): Likewise.
13252 (ia64_hpux_get_solib_linkage_addr): Likewise.
13253 * solib-spu.c (append_ocl_sos): Likewise.
13254 (spu_current_sos): Likewise.
13255 * solib-svr4.c (get_svr4_info): Likewise.
13256 (svr4_keep_data_in_core): Likewise.
13257 (library_list_start_library): Likewise.
13258 (svr4_default_sos): Likewise.
13259 (svr4_read_so_list): Likewise.
13260 * solib-target.c (library_list_start_library): Likewise.
13261 (solib_target_current_sos): Likewise.
13262 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13263 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13264 * symfile.c (default_symfile_segments): Likewise.
13265 * target-descriptions.c (tdesc_data_init): Likewise.
13266 (tdesc_create_reg): Likewise.
13267 (struct tdesc_type *): Likewise.
13268 (tdesc_create_vector): Likewise.
13269 (tdesc_set_struct_size): Likewise.
13270 (struct tdesc_type *): Likewise.
13271 (tdesc_free_feature): Likewise.
13272 (tdesc_create_feature): Likewise.
13273 * windows-nat.c (windows_add_thread): Likewise.
13274 (windows_make_so): Likewise.
13275 * xml-support.c (gdb_xml_body_text): Likewise.
13276 (gdb_xml_create_parser_and_cleanup): Likewise.
13277 (xml_process_xincludes): Likewise.
13278 * xml-syscall.c (allocate_syscalls_info): Likewise.
13279 (syscall_create_syscall_desc): Likewise.
13281 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13283 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13284 function, with code from i386_stap_parse_special_token.
13285 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13286 (i386_stap_parse_special_token): Move code to the two functions
13287 above; simplify it.
13289 2014-01-09 Pedro Alves <palves@redhat.com>
13290 Hui Zhu <hui@codesourcery.com>
13293 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13294 bp_err_string. Don't mark the location shlib_disabled if the
13295 error thrown wasn't a generic or memory error. Catch errors
13296 thrown while inserting breakpoints in overlayed code. Output
13297 error message of software breakpoints.
13298 * remote.c (remote_insert_breakpoint): If this breakpoint has
13299 target-side commands but this stub doesn't support Z0 packets,
13300 throw NOT_SUPPORTED_ERROR error.
13301 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13302 * target.h (target_insert_breakpoint): Extend comment.
13303 (target_insert_hw_breakpoint): Add comment.
13305 2014-01-08 Pedro Alves <palves@redhat.com>
13307 * remote.c (remote_add_thread): Add threads silently if starting
13309 (remote_notice_new_inferior): If in all-stop, and starting up,
13310 don't call notice_new_inferior.
13311 (get_current_thread): New function, factored out from ...
13312 (add_current_inferior_and_thread): ... this. Adjust.
13313 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13314 found any thread, then select the remote's current thread as GDB's
13315 current thread too.
13317 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13319 * NEWS: Create a new section for the next release branch.
13320 Rename the section of the current branch, now that it has
13323 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13325 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13326 * version.in: Bump version to 7.7.50.DATE-cvs.
13328 2014-01-08 Yao Qi <yao@codesourcery.com>
13330 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13331 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13332 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13334 2014-01-08 Yao Qi <yao@codesourcery.com>
13336 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13337 return value of bfd_get_filename to symbol_file_add_from_bfd.
13339 2014-01-08 Pierre Muller <muller@sourceware.org>
13342 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13343 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13344 to prim_record_mininal_symbol_and_info.
13345 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13346 in call to prim_record_minimal_symbol_and_info.
13347 (read_pe_exported_syms): Set index field of section_data.
13349 2014-01-07 Andrew Pinski <apinski@cavium.com>
13351 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13352 * features/aarch64.c: Regenerate.
13354 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13356 * target.c (return_null): Define.
13357 (update_current_target): Use it instead of return_zero for
13358 functions that return a pointer.
13360 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13362 * source.c (add_path): Fix check for duplicated paths in the previously
13365 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13367 * ada-lang.c: Remove duplicated include statements.
13368 * alphabsd-nat.c: Ditto.
13369 * amd64-darwin-tdep.c: Ditto.
13370 * amd64fbsd-nat.c: Ditto.
13371 * auto-load.c: Ditto.
13373 * breakpoint.c: Ditto.
13374 * dbxread.c: Ditto.
13375 * fork-child.c: Ditto.
13376 * gdb_usleep.c: Ditto.
13377 * i386-darwin-tdep.c: Ditto.
13378 * i386fbsd-nat.c: Ditto.
13380 * inferior.c: Ditto.
13381 * jv-lang.c: Ditto.
13382 * linux-nat.c: Ditto.
13383 * linux-tdep.c: Ditto.
13384 * m68kbsd-nat.c: Ditto.
13385 * m68klinux-nat.c: Ditto.
13386 * microblaze-tdep.c: Ditto.
13387 * mips-linux-tdep.c: Ditto.
13388 * mn10300-tdep.c: Ditto.
13389 * nto-tdep.c: Ditto.
13390 * opencl-lang.c: Ditto.
13392 * printcmd.c: Ditto.
13393 * regcache.c: Ditto.
13394 * remote-m32r-sdi.c: Ditto.
13396 * symfile.c: Ditto.
13398 * tilegx-linux-nat.c: Ditto.
13399 * tilegx-tdep.c: Ditto.
13400 * tracepoint.c: Ditto.
13402 * vaxbsd-nat.c: Ditto.
13403 * windows-nat.c: Ditto.
13404 * xtensa-tdep.c: Ditto.
13406 2014-01-07 Yao Qi <yao@codesourcery.com>
13408 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13410 2014-01-07 Yao Qi <yao@codesourcery.com>
13411 Joel Brobecker <brobecker@adacore.com>
13413 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13414 (pdc_write_regs): Likewise.
13415 (fetch_regs_kernel_thread): Likewise.
13416 (store_regs_kernel_thread): Likewise.
13418 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13420 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13421 tagged type objects to their actual type.
13423 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13425 * ada-valprint.c (print_field_values): Add "language" parameter.
13426 Update calls to print_field_values and print_variant_part.
13427 Pass new parameter "language" in call to val_print instead
13428 of "current_language". Replace call to ada_val_print by call
13430 (print_variant_part): Add "language" parameter.
13431 (ada_val_print_struct_union): Update call to print_field_values.
13433 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13435 * ada-valprint.c (ui_memcpy): Delete.
13436 (ada_print_floating): Update documentation. Add empty line
13437 between between function documentation and implementation.
13438 Delete variable "buffer". Use ui_file_xstrdup in place of
13439 ui_file_put. Minor adjustments following this change.
13441 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13443 * ada-valprint.c (ada_val_print_string): New function,
13444 extracted from ada_val_print_array.
13445 (ada_val_print_array): Replace extracted code by call
13446 to ada_val_print_string followed by a return. Move
13447 "else" branch to the function's top block.
13449 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13451 * ada-valprint.c (ada_val_print_array): Move implementation
13452 down. Rename parameter "offset" and "val" into "offset_aligned"
13453 and "original_value" respectively. Add parameter "offset".
13455 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13457 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13458 re-organizing the code. Change the "???" message printed
13459 when target type is a TYPE_CODE_UNDEF into
13460 "<ref to undefined type>".
13462 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13464 * ada-valprint.c (print_record): Delete, implementation inlined...
13465 (ada_val_print_struct_union): ... here. Remove call to
13466 ada_check_typedef in inlined implementation.
13468 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13470 * ada-valprint.c (ada_val_print_gnat_array): New function,
13471 extracted from ada_val_print_1;
13472 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13473 (ada_val_print_flt, ada_val_print_struct_union)
13474 (ada_val_print_ref): Likewise.
13475 (ada_val_print_1): Delete variables i and elttype.
13476 Replace extracted-out code by call to corresponding
13479 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13481 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13483 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13485 * ada-valprint.c (ada_val_print_1): Replace calls to
13486 ada_val_print_1 by calls to val_print.
13488 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13490 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13491 Update calls to self accordingly. Replace calls to c_val_print
13492 by calls to val_print.
13494 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13496 * ada-valprint.c (print_record): Delete declaration.
13497 (adjust_type_signedness, ada_val_print_1): Likewise.
13498 (ada_val_print): Move function implementation down.
13499 (print_variant_part, print_field_values, print_record):
13500 Move function implementation up.
13502 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13504 * python/py-type.c (typy_get_name): New function.
13505 (type_object_getset): Add entry for attribute "name".
13506 * NEWS: Add entry mentioning this new attribute.
13508 2014-01-07 Yao Qi <yao@codesourcery.com>
13510 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13513 2014-01-07 Yao Qi <yao@codesourcery.com>
13515 * gnu-nat.c (info_port_rights): Add qualifier const to
13518 2014-01-07 Yao Qi <yao@codesourcery.com>
13520 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13522 2014-01-07 Yao Qi <yao@codesourcery.com>
13524 * gnu-nat.c (make_inf) Update declaration.
13525 (make_inf): Make it static.
13526 (inf_set_traced): Likewise.
13527 (inf_port_to_thread, inf_task_died_status): Likewise.
13529 2014-01-07 Yao Qi <yao@codesourcery.com>
13531 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13533 2014-01-07 Yao Qi <yao@codesourcery.com>
13535 * gnu-nat.c (_initialize_gnu_nat): Declare.
13537 2014-01-07 Yao Qi <yao@codesourcery.com>
13539 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13541 (struct gdbarch_info) <byte_order>: Change type to
13543 <byte_order_for_code>: Likewise.
13544 * gdbarch.c, gdbarch.h: Regenerated.
13546 2014-01-06 Sasha Smundak <asmundak@google.com>
13548 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13550 2014-01-06 Tom Tromey <tromey@redhat.com>
13552 * doublest.c (convert_doublest_to_floatformat): Use const, not
13554 * somread.c (som_symtab_read): Likewise.
13556 2014-01-07 Hui Zhu <hui@codesourcery.com>
13558 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13559 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13560 (gdb_bfd_fopen): Ditto.
13561 (gdb_bfd_openr): Ditto.
13562 (gdb_bfd_openw): Ditto.
13563 (gdb_bfd_openr_iovec): Ditto.
13564 (gdb_bfd_fdopenr): Ditto.
13565 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13566 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13568 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13570 * symfile-mem.c (symbol_file_add_from_memory): Removed
13571 gdb_bfd_stash_filename.
13573 2014-01-03 Doug Evans <dje@google.com>
13575 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13578 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13580 Update year range in copyright notice of all files.
13582 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13584 * top.c (print_gdb_version): Set copyright year to 2014.
13586 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13588 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13590 For older changes see ChangeLog-2013.
13596 version-control: never