daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0fec99e8
PA
12014-10-01 Pedro Alves <palves@redhat.com>
2
3 * breakpoint.c (insert_bp_location): Error out if inserting a
4 software breakpoint at a read-only address.
5 * target.c (memory_xfer_check_region): New function, factored out
6 from ...
7 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
8 ULONGEST.
9 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
10 against the memory region attributes.
11
2ddf4301
SM
122014-10-01 Simon Marchi <simon.marchi@ericsson.com>
13
14 * NEWS: Announce new exit-code field in -list-thread-groups
15 output.
16 * inferior.c (exit_inferior_1): Don't clear exit code.
17 (inferior_appeared): Clear exit code.
18 * mi/mi-main.c (print_one_inferior): Add printing of the exit
19 code.
20
5fdeec1d
PA
212014-10-01 Pedro Alves <palves@redhat.com>
22
23 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
24 GENERATED" along with emacs/vi read-only markers.
25 * regformats/aarch64.dat: Regenerate.
26 * regformats/arm-with-iwmmxt.dat: Regenerate.
27 * regformats/arm-with-neon.dat: Regenerate.
28 * regformats/arm-with-vfpv2.dat: Regenerate.
29 * regformats/arm-with-vfpv3.dat: Regenerate.
30 * regformats/i386/amd64-avx-linux.dat: Regenerate.
31 * regformats/i386/amd64-avx.dat: Regenerate.
32 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
33 * regformats/i386/amd64-avx512.dat: Regenerate.
34 * regformats/i386/amd64-linux.dat: Regenerate.
35 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
36 * regformats/i386/amd64-mpx.dat: Regenerate.
37 * regformats/i386/amd64.dat: Regenerate.
38 * regformats/i386/i386-avx-linux.dat: Regenerate.
39 * regformats/i386/i386-avx.dat: Regenerate.
40 * regformats/i386/i386-avx512-linux.dat: Regenerate.
41 * regformats/i386/i386-avx512.dat: Regenerate.
42 * regformats/i386/i386-linux.dat: Regenerate.
43 * regformats/i386/i386-mmx-linux.dat: Regenerate.
44 * regformats/i386/i386-mmx.dat: Regenerate.
45 * regformats/i386/i386-mpx-linux.dat: Regenerate.
46 * regformats/i386/i386-mpx.dat: Regenerate.
47 * regformats/i386/i386.dat: Regenerate.
48 * regformats/i386/x32-avx-linux.dat: Regenerate.
49 * regformats/i386/x32-avx.dat: Regenerate.
50 * regformats/i386/x32-avx512-linux.dat: Regenerate.
51 * regformats/i386/x32-avx512.dat: Regenerate.
52 * regformats/i386/x32-linux.dat: Regenerate.
53 * regformats/i386/x32.dat: Regenerate.
54 * regformats/microblaze-with-stack-protect.dat: Regenerate.
55 * regformats/mips-dsp-linux.dat: Regenerate.
56 * regformats/mips-linux.dat: Regenerate.
57 * regformats/mips64-dsp-linux.dat: Regenerate.
58 * regformats/mips64-linux.dat: Regenerate.
59 * regformats/nios2-linux.dat: Regenerate.
60 * regformats/rs6000/powerpc-32.dat: Regenerate.
61 * regformats/rs6000/powerpc-32l.dat: Regenerate.
62 * regformats/rs6000/powerpc-64l.dat: Regenerate.
63 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
64 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
65 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
66 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
67 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
68 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
69 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
70 * regformats/s390-linux32.dat: Regenerate.
71 * regformats/s390-linux32v1.dat: Regenerate.
72 * regformats/s390-linux32v2.dat: Regenerate.
73 * regformats/s390-linux64.dat: Regenerate.
74 * regformats/s390-linux64v1.dat: Regenerate.
75 * regformats/s390-linux64v2.dat: Regenerate.
76 * regformats/s390-te-linux64.dat: Regenerate.
77 * regformats/s390x-linux64.dat: Regenerate.
78 * regformats/s390x-linux64v1.dat: Regenerate.
79 * regformats/s390x-linux64v2.dat: Regenerate.
80 * regformats/s390x-te-linux64.dat: Regenerate.
81 * regformats/tic6x-c62x-linux.dat: Regenerate.
82 * regformats/tic6x-c62x.dat: Regenerate.
83 * regformats/tic6x-c64x-linux.dat: Regenerate.
84 * regformats/tic6x-c64x.dat: Regenerate.
85 * regformats/tic6x-c64xp-linux.dat: Regenerate.
86 * regformats/tic6x-c64xp.dat: Regenerate.
87
db74e4ba
PA
882014-10-01 Pedro Alves <palves@redhat.com>
89
90 * features/Makefile: Update comments.
91 (XMLTOC): List all xml files we build C files from.
92 (clean-cfiles): New rule.
93
d63f2f84
PA
942014-10-01 Pedro Alves <palves@redhat.com>
95
96 * features/i386/amd64-avx512-linux.c: Regenerate.
97 * features/i386/amd64-avx512.c: Regenerate.
98 * features/i386/x32-avx512-linux.c: Regenerate.
99 * features/i386/x32-avx512.c: Regenerate.
100
20ad026d
PA
1012014-10-01 Pedro Alves <palves@redhat.com>
102
103 * features/Makefile (WHICH): Remove arm-with-m,
104 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
105
acc9fe45
PA
1062014-10-01 Pedro Alves <palves@redhat.com>
107
108 * features/Makefile (clean): New rule.
109
e001e535
PA
1102014-10-01 Pedro Alves <palves@redhat.com>
111
112 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
113 (zmm14h): Add missing end quotes.
114
bdc14417
PA
1152014-10-01 Pedro Alves <palves@redhat.com>
116
117 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
118 * features/aarch64.c: Regenerate.
119
d83ad864
DB
1202014-09-30 Don Breazeal <donb@codesourcery.com>
121
122 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
123 code so as to work with follow_fork_inferior.
124 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
125 (inf_ttrace_create_inferior): Remove reference to
126 inf_ttrace_vfork_ppid.
127 (inf_ttrace_attach): Ditto.
128 (inf_ttrace_detach): Ditto.
129 (inf_ttrace_kill): Use current_inferior instead of
130 inf_ttrace_vfork_ppid.
131 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
132 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
133 inferior away from the parent.
134 * infrun.c (follow_fork): Call follow_fork_inferior instead of
135 target_follow_fork.
136 (follow_fork_inferior): New function.
137 (follow_inferior_reset_breakpoints): Make function static.
138 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
139 * linux-nat.c (linux_child_follow_fork): Move target-independent
140 code to infrun.c:follow_fork_inferior.
141
29082443
AA
1422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
143
144 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
145 * gdbarch.c: Regenerate.
146 * gdbarch.h: Likewise.
147 * corelow.c (sniff_core_bfd): Drop presence check for deleted
148 gdbarch method 'regset_from_core_section'.
149 (get_core_register_section): Remove handling for the case that
150 regset == NULL and regset_from_core_section is defined.
151 (get_core_registers): Drop check for deleted method.
152 * procfs.c (procfs_do_thread_registers): Adjust comment.
153
f968fe80
AA
1542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
155
156 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
157 (linux_nat_make_corefile_notes): Remove.
158 (linux_target_install_ops): Do not set target method
159 'make_corefile_notes'.
160 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
161 Remove field.
162 (linux_corefile_thread_callback): Instead of args->collect, call
163 linux_collect_thread_registers.
164 (linux_make_corefile_notes): Remove 'collect' parameter. Return
165 NULL unless there is a regset iterator.
166 (linux_make_corefile_notes_1): Remove.
167 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
168 by linux_make_corefile_notes.
169 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
170
174ad59a
AA
1712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
172
173 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
174 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
175 Remove.
176 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
177
97094034
AA
1782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
179
180 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
181 (xtensa_iterate_over_regset_sections): New.
182 (xtensa_gdbarch_init): Adjust gdbarch initialization.
183
f73d3ce7
AA
1842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
185
186 * vax-tdep.c (vax_regset_from_core_section): Remove.
187 (vax_iterate_over_regset_sections): New.
188 (vax_gdbarch_init): Adjust gdbarch initialization.
189
cb24567a
AA
1902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
191
192 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
193 (tilegx_regset_from_core_section): Remove.
194 (tilegx_iterate_over_regset_sections): New.
195 (tilegx_linux_init_abi): Adjust gdbarch initialization.
196
e5139de8
AA
1972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
198
199 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
200 (sparc_iterate_over_regset_sections): New.
201 (sparc32_gdbarch_init): Adjust gdbarch initialization.
202 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
203 targets.
204 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
205 (sparc64fbsd_init_abi): Call fbsd_init_abi.
206 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
207 target method 'make_corefile_notes'.
208
c6d41a6f
AA
2092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
210
211 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
212 'sizeof_gregset' and 'sizeof_fpregset'.
213 * sh-tdep.c (sh_regset_from_core_section): Remove.
214 (sh_iterate_over_regset_sections): New.
215 (sh_gdbarch_init): Adjust gdbarch initialization.
216 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
217 sizeof_fpregset.
218 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
219 'sizeof_gregset'.
220
9845a0b5
AA
2212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
222
223 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
224 (score7_linux_iterate_over_regset_sections): New.
225 (score_gdbarch_init): Adjust gdbarch initialization.
226
23ea9aeb
AA
2272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
228
229 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
230 FreeBSD targets.
231 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
232 method 'make_corefile_notes'.
233 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
234 (ppcfbsd_regset_from_core_section): Remove.
235 (ppcfbsd_iterate_over_regset_sections): New.
236 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
237 initialization.
238 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
239 (ppcnbsd_iterate_over_regset_sections): New.
240 (ppcnbsd_init_abi): Adjust.
241 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
242 (ppcobsd_iterate_over_regset_sections): New.
243 (ppcobsd_init_abi): Adjust.
244 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
245 (rs6000_aix_iterate_over_regset_sections): New.
246 (rs6000_aix_init_osabi): Adjust.
247
c5b8d704
AA
2482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
249
250 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
251 (nios2_regset_from_core_section): Remove.
252 (nios2_iterate_over_regset_sections): New.
253 (nios2_linux_init_abi): Adjust gdbarch initialization.
254
3636e608
AA
2552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
256
257 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
258 (am33_iterate_over_regset_sections): New.
259 (am33_linux_init_osabi): Adjust gdbarch initialization.
260
d4036235
AA
2612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
262
263 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
264 (mips_linux_iterate_over_regset_sections): New.
265 (mips_linux_init_abi): Adjust gdbarch initialization.
266 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
267 (mips64obsd_iterate_over_regset_sections): New.
268 (mips64obsd_init_abi): Adjust.
269 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
270 (mipsnbsd_iterate_over_regset_sections): New.
271 (mipsnbsd_init_abi): Adjust.
272
b61ddd6e
AA
2732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
274
275 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
276 (m88k_iterate_over_regset_sections): New.
277 (m88k_gdbarch_init): Adjust gdbarch initialization.
278
55a2906a
AA
2792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
280
281 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
282 (ia64_linux_iterate_over_regset_sections): New.
283 (ia64_linux_init_abi): Adjust gdbarch initialization.
284
022c98ab
AA
2852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
286
287 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
288 (m68kbsd_iterate_over_regset_sections): New.
289 (m68kbsd_init_abi): Adjust gdbarch initialization.
290 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
291 (m68k_linux_iterate_over_regset_sections): New.
292 (m68k_linux_init_abi): Adjust gdbarch initialization.
293
5fac247f
AA
2942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
295
296 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
297 (m32r_linux_regset_from_core_section): Remove.
298 (m32r_linux_iterate_over_regset_sections): New.
299 (m32r_linux_init_abi): Adjust gdbarch initialization.
300
490496c3
AA
3012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
302
303 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
304 (amd64obsd_iterate_over_regset_sections): New.
305 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
306 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
307 Remove.
308 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
309 regset_from_core_section initialization.
310 * i386-tdep.c (i386_regset_from_core_section): Remove.
311 (i386_iterate_over_regset_sections): New.
312 (i386_gdbarch_init): Adjust gdbarch initialization.
313 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
314 (i386_iterate_over_regset_sections): New prototype.
315 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
316 Remove.
317 (i386obsd_aout_iterate_over_regset_sections): New.
318 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
319 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
320 targets.
321 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
322 (amd64fbsd_init_abi): Call fbsd_init_abi.
323 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
324 (i386fbsd4_init_abi): Call fbsd_init_abi.
325 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
326 target method 'make_corefile_notes'.
327 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
328
50c5eb53
AA
3292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
330
331 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
332 (hppa_hpux_iterate_over_regset_sections): New.
333 (hppa_hpux_init_abi): Adjust gdbarch initialization.
334 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
335 (hppa_linux_iterate_over_regset_sections): New.
336 (hppa_linux_init_abi): Adjust.
337 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
338 (hppanbsd_iterate_over_regset_sections): New.
339 (hppanbsd_init_abi): Adjust.
340 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
341 (hppaobsd_iterate_over_regset_sections): New.
342 (hppaobsd_init_abi): Adjust.
343
66afae4f
AA
3442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
345
346 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
347 (frv_linux_iterate_over_regset_sections): New.
348 (frv_linux_init_abi): Adjust gdbarch initialization.
349
ed09174e
AA
3502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
351
352 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
353 (armbsd_iterate_over_regset_sections): New prototype.
354 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
355 (armbsd_iterate_over_regset_sections): New.
356 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
357 initialization.
358
dff2166e
AA
3592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
360
361 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
362 (alpha_linux_iterate_over_regset_sections): New.
363 (alpha_linux_init_abi): Adjust gdbarch initialization.
364 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
365 prototype.
366 (alphanbsd_iterate_over_regset_sections): New prototype.
367
4108500a
AA
3682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
369
370 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
371 Remove.
372 (aarch64_linux_iterate_over_regset_sections): New.
373 (aarch64_linux_init_abi): Adjust gdbarch initialization.
374
a904c024
AA
3752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
376
377 * fbsd-tdep.c: New file.
378 * fbsd-tdep.h: New file.
379 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
380 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
381 (ALLDEPFILES): Add fbsd-tdep.c.
382
8f0435f7
AA
3832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
384
385 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
386 parameter.
387 * gdbarch.h: Regenerate.
388 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
389 iterator.
390 (get_core_register_section): Add parameter 'regset' and use it, if
391 set. Add parameter 'min_size' and verify the bfd section size
392 against it.
393 (get_core_registers_cb): Add parameter 'regset' and pass it to
394 get_core_register section. For the "standard" register sections
395 ".reg" and ".reg2", set an appropriate default for human_name.
396 (get_core_registers): Don't abort when the gdbarch has an iterator
397 but no regset_from_core_section. Add NULL/0 for parameters
398 'regset'/'min_size' in calls to get_core_register_section.
399 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
400 'regset' and use it instead of calling the
401 regset_from_core_section gdbarch method.
402 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
403 * i386-tdep.c (i386_supply_xstateregset)
404 (i386_collect_xstateregset, i386_xstateregset): Moved to
405 i386-linux-tdep.c.
406 (i386_regset_from_core_section): Drop handling for .reg-xfp and
407 .reg-xstate.
408 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
409 core file support only if the regset iterator hasn't been set.
410 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
411 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
412 Moved from i386-tdep.c and renamed to *_linux*.
413 (i386_linux_iterate_over_regset_sections): Add regset parameter to
414 each callback invocation. Allow any .reg-xstate size when reading
415 from a core file.
416 * amd64-tdep.c (amd64_supply_xstateregset)
417 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
418 amd64-linux-tdep.c.
419 (amd64_regset_from_core_section): Remove.
420 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
421 install an amd64-specific regset_from_core_section gdbarch method.
422 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
423 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
424 Moved from amd64-tdep.c and renamed to *_linux*.
425 (amd64_linux_iterate_over_regset_sections): Add regset parameter
426 to each callback invocation. Allow any .reg-xstate size when
427 reading from a core file.
428 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
429 (arm_linux_iterate_over_regset_sections): Add regset parameter to
430 each callback invocation.
431 (arm_linux_init_abi): No longer set the regset_from_core_section
432 gdbarch method.
433 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
434 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
435 each callback invocation.
436 (ppc_linux_init_abi): No longer set the regset_from_core_section
437 gdbarch method.
438 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
439 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
440 (s390_regset_from_core_section): Remove.
441 (s390_iterate_over_regset_sections): Add regset parameter to each
442 callback invocation.
443 (s390_gdbarch_init): No longer set the regset_from_core_section
444 gdbarch method. Drop initialization of deleted tdep fields.
445
5aa82d05
AA
4462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
447
448 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
449 (amd64_linux_iterate_over_regset_sections): New.
450 (amd64_linux_init_abi_common): Don't install the regset section
451 list, but the new iterator in gdbarch.
452 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
453 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
454 (arm_linux_iterate_over_regset_sections): ...here. New function.
455 (arm_linux_init_abi): Set iterator instead of section list.
456 * corelow.c (get_core_registers_cb): New function, logic moved
457 from...
458 (get_core_registers): ...loop body here. Use new iterator method
459 instead of walking through the regset section list.
460 * gdbarch.sh: Remove 'core_regset_sections'. New method
461 'iterate_over_regset_sections'. New typedef
462 'iterate_over_regset_sections_cb'.
463 * gdbarch.c: Regenerate.
464 * gdbarch.h: Likewise.
465 * i386-linux-tdep.c (i386_linux_regset_sections)
466 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
467 Remove.
468 (i386_linux_iterate_over_regset_sections): New.
469 (i386_linux_init_abi): Don't choose a regset section list, but
470 install new iterator in gdbarch.
471 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
472 (linux_collect_regset_section_cb): New function, logic moved
473 from...
474 (linux_collect_thread_registers): ...loop body here. Use iterator
475 method instead of walking through list.
476 (linux_make_corefile_notes_1): Check for presence of iterator
477 method instead of regset section list.
478 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
479 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
480 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
481 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
482 (ppc_linux_iterate_over_regset_sections): ...here. New function.
483 (ppc_linux_init_abi): Don't choose from above regset section
484 lists, but install new iterator in gdbarch.
485 * regset.h (struct core_regset_section): Remove.
486 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
487 have_linux_v1, have_linux_v2, and have_tdb.
488 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
489 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
490 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
491 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
492 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
493 (s390_iterate_over_regset_sections): ...here. New function. Use
494 new tdep fields.
495 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
496 regset section lists, but install new iterator.
497
2eca4a8d
JK
4982014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
499
500 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
501
a73c2b56
SM
5022014-09-26 Simon Marchi <simon.marchi@ericsson.com>
503
504 * progspace.c (print_program_space): Don't prune program spaces
505 before printing them.
506
03d46957
PA
5072014-09-25 Pedro Alves <palves@redhat.com>
508
509 * infrun.c (user_visible_resume_ptid): Don't check
510 singlestep_breakpoints_inserted_p.
511
e558d7c1
PA
5122014-09-25 Pedro Alves <palves@redhat.com>
513
514 * breakpoint.c (should_be_inserted): Add debug output.
515
7f89fd65
PA
5162014-09-25 Pedro Alves <palves@redhat.com>
517
518 * infrun.c (stepping_past_instruction_at)
519 (clear_exit_convenience_vars): Point at infrun.h instead of
520 inferior.h.
521 (handle_signal_stop): Fix typo.
522
b7576e5c
YQ
5232014-09-24 Yao Qi <yao@codesourcery.com>
524
525 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
526 bitmask.
527
9a6cf368
GB
5282014-09-22 Gary Benson <gbenson@redhat.com>
529
530 * target.c (target_stop): Updated comment.
531
03f4463b
GB
5322014-09-22 Gary Benson <gbenson@redhat.com>
533
534 * target/target.h (target_stop_ptid): Renamed as...
535 (target_stop_and_wait): New function. Updated comment.
536 All uses updated.
537 (target_continue_ptid): Renamed as...
538 (target_continue_no_signal): New function. Updated comment.
539 All uses updated.
540
a25a5a45
PA
5412014-09-22 Pedro Alves <palves@redhat.com>
542
543 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
544 and "auto" merged.
545 * breakpoint.c (enum ugll_insert_mode): New enum.
546 (always_inserted_mode): Now a plain boolean.
547 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
548 (breakpoints_always_inserted_mode): Delete.
549 (breakpoints_should_be_inserted_now): New function.
550 (insert_breakpoints): Pass UGLL_INSERT to
551 update_global_location_list instead of calling
552 insert_breakpoint_locations manually.
553 (create_solib_event_breakpoint_1): New, factored out from ...
554 (create_solib_event_breakpoint): ... this.
555 (create_and_insert_solib_event_breakpoint): Use
556 create_solib_event_breakpoint_1 instead of calling
557 insert_breakpoint_locations manually.
558 (update_global_location_list): Change parameter type from boolean
559 to enum ugll_insert_mode. All callers adjusted. Adjust to use
560 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
561 (update_global_location_list_nothrow): Change parameter type from
562 boolean to enum ugll_insert_mode.
563 (_initialize_breakpoint): "breakpoint always-inserted" option is
564 now a boolean command. Update help text.
565 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
566 (breakpoints_should_be_inserted_now): New declaration.
567 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
568 Remove breakpoints_always_inserted_mode check.
569 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
570 * remote.c (remote_start_remote): Likewise.
571
04086b45
PA
5722014-09-22 Pedro Alves <palves@redhat.com>
573
574 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
575 (insert_breakpoints): Don't call insert_breakpoint_locations here.
576 Instead, pass UGLL_INSERT to update_global_location_list.
577 (update_global_location_list): Change parameter type from boolean
578 to enum ugll_insert_mode. All callers adjusted. Adjust to use
579 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
580 (create_solib_event_breakpoint_1): New, factored out from ...
581 (create_solib_event_breakpoint): ... this.
582 (create_and_insert_solib_event_breakpoint): Use
583 create_solib_event_breakpoint_1 instead of calling
584 insert_breakpoint_locations manually.
585 (update_global_location_list): Handle UGLL_INSERT.
586
44702360
PA
5872014-09-22 Pedro Alves <palves@redhat.com>
588
589 * breakpoint.c (enum ugll_insert_mode): New enum.
590 (update_global_location_list)
591 (update_global_location_list_nothrow): Change parameter type from
592 boolean to enum ugll_insert_mode. All callers adjusted.
593
93c6145a
JB
5942014-09-19 Joel Brobecker <brobecker@adacore.com>
595
596 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
597 SystemTap support in GDB.
598
89a5711c
DB
5992014-09-19 Don Breazeal <donb@codesourcery.com>
600
601 * linux-nat.c (linux_handle_extended_wait): Call
602 linux_ptrace_get_extended_event.
603 (wait_lwp): Call linux_is_extended_waitstatus.
604 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
605 and linux_is_extended_waitstatus.
606 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
607 linux_ptrace_get_extended_event.
608 (linux_ptrace_get_extended_event): New function.
609 (linux_is_extended_waitstatus): New function.
610 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
611 (linux_is_extended_waitstatus): New declarations.
612
c3b7b696
YQ
6132014-09-19 Yao Qi <yao@codesourcery.com>
614
615 * dwarf2read.c (dwarf_decode_lines): Update declaration.
616 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
617 comments. Callers update.
618 (dwarf_decode_lines): Likewise.
619 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
620 comments. Skip the line table if 'lowpc' is greater than
621 'address'. Don't check
622 dwarf2_per_objfile->has_section_at_zero.
623
2b4fd423
DE
6242014-09-18 Doug Evans <dje@google.com>
625
626 * NEWS: Mention new "producer" attribute of gdb.Symtab.
627 * python/py-symtab.c (stpy_get_producer): New function.
628 (symtab_object_getset): Add "producer" attribute.
629
5e43d467
UW
6302014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
631
632 PR gdb/17384
633 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
634 (do_captured_read_memory_integer): Remove.
635 (safe_read_memory_integer): Use target_read_memory directly instead
636 of catching errors in do_captured_read_memory_integer.
637
04e79979
MR
6382014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
639
640 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
641 not gdb/doc.
642
76aeec5b
SDJ
6432014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
644
645 * objc-lang.c (find_implementation_from_class): Remove dead code.
646
2f693f9d
SDJ
6472014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
648
649 PR cli/7233
650 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
651 "fprintf_unfiltered (gdb_stdlog...)".
652
bb9d5f81
PP
6532014-09-16 Patrick Palka <patrick@parcs.ath.cx>
654
655 PR breakpoints/12526
656 * breakpoint.h (struct watchpoint): New fields val_bitpos and
657 val_bitsize.
658 * breakpoint.c (watch_command_1): Use these fields to retain
659 bitfield information.
660 (extract_bitfield_from_watchpoint_value): New function.
661 (watchpoint_check): Use it.
662 (update_watchpoint): Use it. Optimize the address and length of a
663 HW watchpoint pointing to a bitfield.
664 * value.h (unpack_value_bitfield): New prototype.
665 * value.c (unpack_value_bitfield): Make extern.
666
05db5edd
ST
6672014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
668
669 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
670 x86-dregs.o.
671 * gnu-nat.c (inf_threads): New function.
672 * gnu-nat.h (inf_threads_ftype): New typedef.
673 (inf_threads): New declaration.
674 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
675 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
676 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
677 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
678 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
679 (i386_gnu_dr_get_control): New functions.
680 (reg_addr): New structure.
681 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
682 i386 debugging register hooks.
683 * NEWS: Mention this.
684
5a578da5
OJ
6852014-08-13 Omair Javaid <omair.javaid@linaro.org>
686
687 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
688 vector data transfer instructions.
689 (arm_record_coproc_data_proc): Updated.
690
f20f80dd
OJ
6912014-08-13 Omair Javaid <omair.javaid@linaro.org>
692
693 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
694 arm_record_exreg_ld_st_insn.
695 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
696 load/store insns.
697
851f26ae
OJ
6982014-08-13 Omair Javaid <omair.javaid@linaro.org>
699
700 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
701 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
702 processing instructions.
703
1e1b6563
OJ
7042014-08-13 Omair Javaid <omair.javaid@linaro.org>
705
706 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
707 for advance SIMD struct ld/st insn.
708 (thumb2_record_decode_insn_handler): Replace stub handler with
709 thumb2_record_asimd_struct_ld_st.
710
60cc5e93
OJ
7112014-08-13 Omair Javaid <omair.javaid@linaro.org>
712
713 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
714 for asimd, vfp and coprocessor insns.
715 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
716 and coprocessor insns.
717 (thumb2_record_coproc_insn): New function.
718 (thumb2_record_decode_insn_handler): Update coprocessor insns record
719 handlers.
720 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
721 opcode 110 insns.
722
81219e53
DE
7232014-09-13 Doug Evans <xdje42@gmail.com>
724
725 * NEWS: Mention new "queue-signal" command.
726 * infcmd.c (queue_signal_command): New function.
727 (_initialize_infcmd): Add new queue-signal command.
728
d36bf488
DE
7292014-09-13 Doug Evans <xdje42@gmail.com>
730
731 * linux-nat.c (wait_lwp): Add debugging printf.
732 (linux_nat_wait_1): Ditto.
733
f37f681c
PA
7342014-09-12 Pedro Alves <palves@redhat.com>
735
736 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
737 (create_and_insert_solib_event_breakpoint): New functions.
738 * breakpoint.h (create_and_insert_solib_event_breakpoint)
739 (remove_solib_event_breakpoints_at_next_stop): New declarations.
740 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
741 (remove_dbx_link_breakpoint): Delete function.
742 (insert_dbx_link_bpt_in_file): Use
743 create_and_insert_solib_event_breakpoint instead of
744 deprecated_insert_raw_breakpoint.
745 (procfs_wait): Don't check whether we hit __dbx_link here.
746 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
747 here.
748 * solib-irix.c (base_breakpoint): Delete global.
749 (disable_break): Delete function.
750 (enable_break): Use create_solib_event_breakpoint
751 instead of deprecated_insert_raw_breakpoint.
752 (irix_solib_handle_event): New function.
753 (irix_solib_create_inferior_hook): Don't run the target or disable
754 the mapping-complete breakpoint here.
755 (_initialize_irix_solib): Install irix_solib_handle_event as
756 so_ops->handle_event hook.
757
9d9bf2df
EBM
7582014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
759 Ulrich Weigand  <uweigand@de.ibm.com>
760
761 PR tdep/17379
762 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
763 instead of read_memory_unsigned_integer.
764
b006a80e
GB
7652014-09-12 Gary Benson <gbenson@redhat.com>
766
767 * nat/linux-waitpid.c: Include common-defs.h.
768 [GDBSERVER]: Add FIXME comment.
769 [!GDBSERVER]: Don't include defs.h or signal.h.
770 (linux_debug) [!GDBSERVER]: Remove empty block.
771
296b1496
GB
7722014-09-12 Gary Benson <gbenson@redhat.com>
773
774 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
775 Don't include defs.h or server.h.
776
53f81362
GB
7772014-09-12 Gary Benson <gbenson@redhat.com>
778
779 * nat/linux-btrace.c: Include common-defs.h.
780 Don't include defs.h, server.h or gdbthread.h.
781 * nat/linux-btrace.h (struct target_ops): New forward declaration.
782
727605ca
GB
7832014-09-12 Gary Benson <gbenson@redhat.com>
784
785 * common/agent.c: Include common-defs.h.
786 Don't include defs.h or server.h.
787 * common/buffer.c: Likewise.
788 * common/common-debug.c: Likewise.
789 * common/common-utils.c: Likewise.
790 * common/errors.c: Likewise.
791 * common/filestuff.c: Likewise.
792 * common/format.c: Likewise.
793 * common/gdb_vecs.c: Likewise.
794 * common/print-utils.c: Likewise.
795 * common/ptid.c: Likewise.
796 * common/rsp-low.c: Likewise.
797 * common/signals.c: Likewise.
798 * common/vec.c: Likewise.
799 * common/xml-utils.c: Likewise.
800 * nat/linux-osdata.c: Likewise.
801 * nat/linux-procfs.c: Likewise.
802 * nat/linux-ptrace.c: Likewise.
803 * nat/mips-linux-watch.c: Likewise.
804 * target/waitstatus.c: Likewise.
805
361c8ade
GB
8062014-09-12 Tom Tromey <tromey@redhat.com>
807 Gary Benson <gbenson@redhat.com>
808
809 * common/common-regcache.h: New file.
810 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
811 * regcache.h: Include common-regcache.h.
812 (regcache_read_pc): Don't declare.
813 * regcache.c (get_thread_regcache_for_ptid): New function.
814 * nat/linux-btrace.c: Don't include regcache.h.
815 Include common-regcache.h.
816 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
817
a01cbb49
TS
8182014-09-11 Thomas Schwinge <thomas@codesourcery.com>
819
820 * regcache.h (struct regset): Declare.
821
98880d46
PA
8222014-09-11 Pedro Alves <palves@redhat.com>
823
824 PR gdb/17347
825 * main.c: Include "infrun.h".
826 (catch_command_errors, catch_command_errors_const): Wait for the
827 foreground command to complete.
828 * top.c (maybe_wait_sync_command_done): New function, factored out
829 from ...
830 (maybe_wait_sync_command_done): ... here.
831 * top.h (maybe_wait_sync_command_done): New declaration.
832
bd9269f7
GB
8332014-09-11 Tom Tromey <tromey@redhat.com>
834 Gary Benson <gbenson@redhat.com>
835
836 * common/symbol.h: New file.
837 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
838 * minsyms.c (find_minimal_symbol_address): New function.
839 * common/agent.c: Include common/symbol.h.
840 [!GDBSERVER]: Don't include objfiles.h.
841 (agent_look_up_symbols): Use find_minimal_symbol_address.
842
f8c1d06b
GB
8432014-09-11 Gary Benson <gbenson@redhat.com>
844
845 * target/target.h (target_stop_ptid, target_continue_ptid):
846 Declare.
847 * target.c (target_stop_ptid, target_continue_ptid): New
848 functions.
849 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
850 (agent_run_command): Always use target_stop_ptid and
851 target_continue_ptid.
852
721ec300
GB
8532014-09-11 Tom Tromey <tromey@redhat.com>
854 Gary Benson <gbenson@redhat.com>
855
856 * target/target.h: New file.
857 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
858 * target.h: Include target/target.h.
859 (target_read_memory, target_write_memory): Don't declare.
860 * target.c (target_read_uint32): New function.
861 * common/agent.c: Include target/target.h.
862 [!GDBSERVER]: Don't include target.h.
863 (helper_thread_id): Type changed to uint32_t.
864 (agent_get_helper_thread_id): Use target_read_uint32.
865 (agent_run_command): Always use target_read_memory and
866 target_write_memory.
867 (agent_capability): Type changed to uint32_t.
868 (agent_capability_check): Use target_read_uint32.
869
c5e92cca
GB
8702014-09-11 Gary Benson <gbenson@redhat.com>
871
872 * common/common-debug.h (show_debug_regs): Declare.
873 * common/common-debug.c (show_debug_regs): Define.
874 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
875 all uses with show_debug_regs. Replace all uses that considered
876 debug_hw_points as a multi-value integer with straight boolean
877 uses.
878 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
879 with show_debug_regs.
880 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
881 all uses with show_debug_regs.
882 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
883 uses with show_debug_regs.
884
eeef931a
UW
8852014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
886
887 * findvar.c (address_from_register): Handle targets requiring
888 a special conversion routine even for plain pointer types.
889
8efa9855
UW
8902014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
891
892 * rs6000-nat.c (exec_one_dummy_insn): Remove.
893 (store_register): Do not call exec_one_dummy_insn.
894
eb479039
JB
8952014-09-10 Joel Brobecker <brobecker@adacore.com>
896
897 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
898 dereference it first. Use value_enclosing_type instead of
899 value_type.
900 (ada_array_length): Likewise.
901
deede10c
JB
9022014-09-10 Joel Brobecker <brobecker@adacore.com>
903
904 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
905 Adjust function implementation and documentation accordingly.
906 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
907 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
908 Update call to ada_value_ptr_subscript.
909
7828a5f5
JB
9102014-09-10 Joel Brobecker <brobecker@adacore.com>
911
912 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
913 instead of VAL's type.
914
35782f14
JB
9152014-09-10 Joel Brobecker <brobecker@adacore.com>
916
917 * amd64-linux-nat.c: Add <sys/uio.h> #include.
918
d342a0da
DE
9192014-09-09 Doug Evans <xdje42@gmail.com>
920
921 PR guile/17367
922 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
923 last parameter to pkg-config, not first.
924 * configure.ac: Pass --with-guile provided pkg-config path to
925 GDB_GUILE_PROGRAM_NAMES.
926 * configure: Regenerate.
927
b4a3d263
GKB
9282014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
929
930 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
931 Bertazi".
932
6e466374
MR
9332014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
934
935 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
936 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
937 the list of sections determining GDB_OSABI_IRIX.
938
a1ada89a
JH
9392014-09-09 James Hogan <james.hogan@imgtec.com>
940
941 * MAINTAINERS (Write After Approval): Add "James Hogan".
942
86db008d
JH
9432014-09-09 James Hogan <james.hogan@imgtec.com>
944
945 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
946
72fde3df
JB
9472014-09-09 Joel Brobecker <brobecker@adacore.com>
948
949 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
950
92d8d229
DE
9512014-09-08 Doug Evans <xdje42@gmail.com>
952
953 PR 17247
954 * guile.c: #include <signal.h>.
955 (_initialize_guile): Block SIGCHLD while initializing Guile.
956
957 Replaces the following, which is reverted.
958
959 2014-07-26 Doug Evans <xdje42@gmail.com>
960
961 PR 17185
962 * configure.ac: Add check for header gc/gc.h.
963 Add check for function setenv.
964 * configure: Regenerate.
965 * config.in: Regenerate.
966 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
967
d81412aa
DE
9682014-09-08 Doug Evans <xdje42@gmail.com>
969
970 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
971 with named constant. Fix style of pointer comparison.
972 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
973
a9f116cb
GKB
9742014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
975
976 PR gdb/17035
977 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
978 decide whether we display the command on "show user".
979 * cli/cli-script.c (show_user_1): Only verify cmdlines after
980 printing command name.
981 * cli/cli-decode.h (cli_user_command_p): Declare new function.
982 * cli/cli-decode.c (cli_user_command_p): Create helper function
983 to verify whether cmd_list_element is a user-defined command.
984
c75bd3a2
JK
9852014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
986
987 PR python/17355
988 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
989 Fix goto out of TRY_CATCH.
990
faa42425 9912014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 992 Tom Tromey <tromey@redhat.com>
faa42425
DE
993
994 PR 15276
995 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
996 $_any_caller_matches.
997 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
998 * python/lib/gdb/function/caller_is.py: New file.
999
0d41ba00
DE
10002014-09-06 Doug Evans <xdje42@gmail.com>
1001
1002 * infcmd.c (program_info): Fix typo.
1003
474ca4f6
SDJ
10042014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1005
1006 PR gdb/17235
1007 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1008 'number'. New variable 'has_digit'. Rewrite code to deal with
1009 subexpressions on SDT probes.
1010
ebf13736
PA
10112014-09-04 Pedro Alves <palves@redhat.com>
1012
1013 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1014 the input is only one character long.
1015
eb0b0463
SDJ
10162014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1017
1018 PR fortran/17237
1019 * f-valprint.c (f_val_print): Specify the correct print option to
1020 use when printing integer values.
1021
5ee44bfa
GB
10222014-09-04 Gary Benson <gbenson@redhat.com>
1023
1024 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1025 Remove code to cope with LWPs wrapped as PIDs.
1026 Add assertions to ensure no wrapped LWPs are passed.
1027
4875ffdb
PA
10282014-09-04 Pedro Alves <palves@redhat.com>
1029
1030 * value.c (value_ranges_copy_adjusted): New function, factored out
1031 from ...
1032 (value_contents_copy_raw): ... here.
1033 (unpack_value_bits_as_long_1): Rename back to ...
1034 (unpack_bits_as_long): ... this. Remove 'original_value' and
1035 'result' parameters. Change return type to LONGEST.
1036 (unpack_value_bits_as_long): Delete.
1037 (unpack_value_field_as_long_1): Delete.
1038 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1039 (unpack_value_bitfield): New function.
1040 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1041 (value_fetch_lazy): Use unpack_value_bitfield.
1042 * value.h (unpack_value_bits_as_long): Delete declaration.
1043
5f3b99cf
SS
10442014-09-03 Sasha Smundak <asmundak@google.com>
1045
1046 * python/py-frame.c (frapy_read_register): New function.
1047
ac740bc7
JH
10482014-09-03 James Hogan <james.hogan@imgtec.com>
1049
1050 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1051 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1052
7d793aa9
SDJ
10532014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1054
1055 PR python/16699
1056 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1057 function.
1058 (add_cmd): Set "completer_handle_brkchars" to NULL.
1059 * cli/cli-decode.h (struct cmd_list_element)
1060 <completer_handle_brkchars>: New field.
1061 * command.h (completer_ftype_void): New typedef.
1062 (set_cmd_completer_handle_brkchars): New prototype.
1063 * completer.c (set_gdb_completion_word_break_characters): New
1064 function.
1065 (complete_line_internal): Call "completer_handle_brkchars"
1066 callback from command.
1067 * completer.h: Include "command.h".
1068 (set_gdb_completion_word_break_characters): New prototype.
1069 * python/py-cmd.c (cmdpy_completer_helper): New function.
1070 (cmdpy_completer_handle_brkchars): New function.
1071 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1072 (cmdpy_init): Set completer_handle_brkchars to
1073 cmdpy_completer_handle_brkchars.
1074
97ea6506
GB
10752014-09-03 Gary Benson <gbenson@redhat.com>
1076
1077 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1078 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1079 Loop conditions changed to equivalent form.
1080 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1081 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1082 ALL_DEBUG_ADDRESS_REGISTERS.
1083
d1437815
JB
10842014-09-03 Joel Brobecker <brobecker@adacore.com>
1085
1086 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1087 description fix.
1088
9b94fcf1
DE
10892014-09-02 Doug Evans <dje@google.com>
1090
1091 * typeprint.c (find_global_typedef): Fix comment.
1092
df7e5265
GB
10932014-09-02 Gary Benson <gbenson@redhat.com>
1094
1095 * i386-nat.h: Renamed as...
1096 * x86-nat.h: New file. All type, function and variable name
1097 prefixes changed from "i386_" to "x86_". All references updated.
1098 * i386-nat.c: Renamed as...
1099 * x86-nat.c: New file. All type, function and variable name
1100 prefixes changed from "i386_" to "x86_". All references updated.
1101 * common/i386-xstate.h: Renamed as...
1102 * common/x86-xstate.h: New file. All type, function and variable
1103 name prefixes changed from "i386_" to "x86_". All references
1104 updated.
1105 * nat/i386-cpuid.h: Renamed as...
1106 * nat/x86-cpuid.h: New file. All type, function and variable name
1107 prefixes changed from "i386_" to "x86_". All references updated.
1108 * nat/i386-gcc-cpuid.h: Renamed as...
1109 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1110 name prefixes changed from "i386_" to "x86_". All references
1111 updated.
1112 * nat/i386-dregs.h: Renamed as...
1113 * nat/x86-dregs.h: New file. All type, function and variable name
1114 prefixes changed from "i386_" to "x86_". All references updated.
1115 * nat/i386-dregs.c: Renamed as...
1116 * nat/x86-dregs.c: New file. All type, function and variable name
1117 prefixes changed from "i386_" to "x86_". All references updated.
1118
1c3569d4
MR
11192014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1120
1121 * varobj.c (_initialize_varobj): Move to the end of file.
1122
ff55e1b5
GB
11232014-08-29 Gary Benson <gbenson@redhat.com>
1124
1125 * common/common-exceptions.h: New file.
1126 * common/common-exceptions.c: Likewise.
1127 * Makefile.in (SFILES): Add common/common-exceptions.c.
1128 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1129 (COMMON_OBS): Add common-exceptions.o.
1130 (common-exceptions.o): New rule.
1131 * exceptions.h (common-exceptions.h): Include.
1132 (gdb_setjmp.h): Do not include.
1133 (return_reason): Moved to common-exceptions.h.
1134 (enum return_reason): Likewise.
1135 (RETURN_MASK): Likewise.
1136 (typedef return_mask): Likewise.
1137 (enum errors): Likewise.
1138 (struct gdb_exception): Likewise.
1139 (exceptions_state_mc_init): Likewise.
1140 (exceptions_state_mc_action_iter): Likewise.
1141 (exceptions_state_mc_action_iter_1): Likewise.
1142 (TRY_CATCH): Likewise.
1143 (throw_exception): Likewise.
1144 (throw_verror): Likewise.
1145 (throw_vquit): Likewise.
1146 (throw_error): Likewise.
1147 (throw_quit): Likewise.
1148 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1149 (enum catcher_action): Likewise.
1150 (struct catcher): Likewise.
1151 (current_catcher): Likewise.
1152 (catcher_list_size): Likewise.
1153 (exceptions_state_mc_init): Likewise.
1154 (catcher_pop): Likewise.
1155 (exceptions_state_mc): Likewise.
1156 (exceptions_state_mc_action_iter): Likewise.
1157 (exceptions_state_mc_action_iter_1): Likewise.
1158 (throw_exception): Likewise.
1159 (exception_messages): Likewise.
1160 (exception_messages_size): Likewise.
1161 (throw_it): Likewise.
1162 (throw_verror): Likewise.
1163 (throw_vquit): Likewise.
1164 (throw_error): Likewise.
1165 (throw_quit): Likewise.
1166 (prepare_to_throw_exception): New function.
1167
e9bcb658
GB
11682014-08-29 Gary Benson <gbenson@redhat.com>
1169
1170 * common/gdb_setjmp.h: New file.
1171 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1172 * configure.ac: Move sigsetjmp check...
1173 * common/common.m4: ...here.
1174 * configure: Regenerate.
1175 * cp-support.c (SIGJMP_BUF): Delete.
1176 (SIGSETJMP): Likewise.
1177 (SIGLONGJMP): Likewise.
1178 * exceptions.h (gdb_setjmp.h): Include.
1179 (setjmp.h): Do not include.
1180 (EXCEPTIONS_SIGJMP_BUF): Delete.
1181 (EXCEPTIONS_SIGSETJMP): Likewise.
1182 (EXCEPTIONS_SIGLONGJMP): Likewise.
1183 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1184 from gdb_setjmp.h.
1185 * exceptions.c: Likewise.
1186
e3180625
GB
11872014-08-29 Gary Benson <gbenson@redhat.com>
1188
1189 * cleanups.h: Moved to...
1190 * common/cleanups.h: New file.
1191 * cleanups.c: Moved to...
1192 * common/cleanups.c: New file. Include common-defs.h and
1193 cleanups.h. Do not include defs.h.
1194 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1195 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1196 (cleanups.o): New rule.
1197
e3d6ba5d
GB
11982014-08-29 Gary Benson <gbenson@redhat.com>
1199
1200 * common/errors.h (internal_warning): New declaration.
1201 (internal_vwarning): Likewise.
1202 * common/errors.c (internal_warning): New function.
1203 * utils.h (internal_warning): Don't declare.
1204 (internal_vwarning): Likewise.
1205 * utils.c (internal_warning): Removed.
1206
075c7033
GB
12072014-08-29 Gary Benson <gbenson@redhat.com>
1208
1209 * main.c (captured_main): Use warning during startup.
1210 Prefix startup warning messages with command name.
1211
91b35fd0
GB
12122014-08-29 Gary Benson <gbenson@redhat.com>
1213
1214 * main.c (captured_main): Handle usage errors with error.
1215
b1ec390e
GB
12162014-08-29 Gary Benson <gbenson@redhat.com>
1217
1218 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1219 exit pair with a call to error. Wrap the message with _().
1220
fd0ef3dd
GB
12212014-08-29 Gary Benson <gbenson@redhat.com>
1222
1223 * main.c (captured_main): Replace a fprintf/exit
1224 pair with a call to error. Wrap the message with _().
1225
e0e6bcab
GB
12262014-08-29 Gary Benson <gbenson@redhat.com>
1227
1228 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1229 pairs with calls to error. Wrap the message with _().
1230
0d2f5c07
GB
12312014-08-29 Gary Benson <gbenson@redhat.com>
1232
1233 * utils.c (vwarning): Protect calls to target_terminal_ours
1234 and wrap_here.
1235
5df43998
GB
12362014-08-29 Gary Benson <gbenson@redhat.com>
1237
1238 * exceptions.c (print_flush): Protect calls to
1239 target_terminal_ours and wrap_here.
1240
2437fd32
GB
12412014-08-29 Gary Benson <gbenson@redhat.com>
1242
1243 * utils.h (filtered_printing_initialized): New declaration.
1244 * utils.c (abort_with_message): New function.
1245 (internal_vproblem): Use abort_with_message for first level
1246 recursive internal problems, and if gdb_stderr is not set up.
1247 Protect calls to target_terminal_ours, begin_line and query.
1248
f1f58506
DE
12492014-08-28 Doug Evans <dje@google.com>
1250
1251 * symtab.c (in_prologue): Move definition to better spot.
1252 (skip_prologue_using_sal): Ditto.
1253
aab2f208
DE
12542014-08-28 Doug Evans <dje@google.com>
1255
1256 * symtab.c (find_function_start_sal): Move definition to better spot.
1257
6b65d1b6
YQ
12582014-08-28 Yao Qi <yao@codesourcery.com>
1259
1260 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1261 found_stack_adjust in forward scan. Remove condition check
1262 on found_stack_adjust which is always true. Indent the code.
1263
a1b34d15
YQ
12642014-08-28 Yao Qi <yao@codesourcery.com>
1265
1266 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1267 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1268 (dwarf_decode_lines): Remove argument
1269 want_line_info. Remove condition check on want_line_info.
1270 Callers update.
1271
d5962de5
DE
12722014-08-27 Doug Evans <dje@google.com>
1273
1274 * dwarf2read.c (dwarf_record_line): Fix typo.
1275
9b139002
SDJ
12762014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1277
1278 * target.h (struct target_ops::to_terminal_save_ours): Remove
1279 declaration.
1280 (target_terminal_save_ours): Remove macro.
1281 * target-delegates.c: Regenerate.
1282 * inf-child.c (inf_child_target): Don't set the nonexistent
1283 field to_terminal_save_ours.
1284 * inferior.h (child_terminal_save_ours): Remove declaration.
1285 * terminal.h (gdb_save_tty_state): New declaration.
1286 * inflow.c (child_terminal_save_ours): Rename to ...
1287 (gdb_save_tty_state): ... this.
1288 * tui/tui.c: Include terminal.h.
1289 (tui_enable): Use gdb_save_tty_state instead of
1290 target_terminal_save_ours.
1291 (tui_disable): Likewise.
1292
9debeba0
DE
12932014-08-25 Doug Evans <dje@google.com>
1294
1295 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1296 Pass NULL instead of 0 for context pointer.
1297
428fc5fc
YQ
12982014-08-25 Yao Qi <yao@codesourcery.com>
1299
1300 * dwarf2read.c: Fix grammatical error.
1301
cdc07690
YQ
13022014-08-24 Yao Qi <yao@codesourcery.com>
1303
1304 * dwarf2read.c (scan_partial_symbols): Update comments.
1305 Rename argument 'need_pc' with 'set_addrmap'.
1306 (add_partial_namespace): Rename argument 'need_pc' with
1307 'set_addrmap'.
1308 (add_partial_module): Likewise.
1309 (add_partial_subprogram): Likewise. Update comments.
1310 (dwarf2_name): Fix typo.
1311
a05a36a5
DE
13122014-08-22 Doug Evans <dje@google.com>
1313
1314 PR 17276
1315 * dwarf2read.c (dwarf_record_line_p): New function.
1316 (dwarf_decode_lines_1): Ignore subsequent line number entries
1317 for the same line if any entry had a non-zero discriminator.
1318
252a6764
DE
13192014-08-22 Doug Evans <dje@google.com>
1320
1321 * buildsym.h (record_line_ftype): New typedef.
1322 (record_line): Use it.
1323 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1324 (dwarf_decode_lines_1): Call them.
1325
510db052
YQ
13262014-08-22 Yao Qi <yao@codesourcery.com>
1327
1328 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1329 (ctf_end): Remove code.
1330
22fd09ae
JK
13312014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1332
1333 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1334 (linux_make_corefile_notes): call update_thread_list, protected against
1335 exceptions.
1336
656e8868
PA
13372014-08-21 Pedro Alves <palves@redhat.com>
1338
1339 * infcmd.c (attach_command): Remove comment.
1340
de589d04
WN
13412014-08-21 Bin Cheng <bin.cheng@arm.com>
1342
1343 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1344 unsigned LONGEST to ULONGEST.
1345
2a31c623
PA
13462014-08-20 Pedro Alves <palves@redhat.com>
1347
1348 * Makefile.in (check-read1): New rule.
1349
d36430db
JB
13502014-08-20 Joel Brobecker <brobecker@adacore.com>
1351
1352 * value.c (value_from_contents_and_address): Strip resolved_type's
1353 typedef layers before checking its TYPE_DATA_LOCATION.
1354
000339af
PA
13552014-08-20 Pedro Alves <palves@redhat.com>
1356
1357 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1358
5f52445b
YQ
13592014-08-20 Yao Qi <yao@codesourcery.com>
1360
1361 * amd64-tdep.c (amd64_classify): Add a blank line after the
1362 example. Move "*/" to a new line.
1363 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1364 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1365 * dwarf2read.c (psymtab_include_file_name): Likewise.
1366
9a0dc9e3
PA
13672014-08-19 Andrew Burgess <aburgess@broadcom.com>
1368 Pedro Alves <palves@redhat.com>
1369
1370 PR symtab/14604
1371 PR symtab/14605
1372 * ada-lang.c (coerce_unspec_val_to_type): Use
1373 value_contents_copy_raw.
1374 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1375 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1376 * cp-valprint.c (cp_print_value_fields): Let the common printing
1377 code handle optimized out values.
1378 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1379 * d-valprint.c (dynamic_array_type): Use
1380 value_bits_any_optimized_out.
1381 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1382 check_any_valid fields.
1383 (check_pieced_value_bits): Delete and inline ...
1384 (check_pieced_synthetic_pointer): ... here.
1385 (check_pieced_value_validity): Delete.
1386 (check_pieced_value_invalid): Delete.
1387 (pieced_value_funcs): Remove check_validity and check_any_valid
1388 fields.
1389 (read_pieced_value): Use mark_value_bits_optimized_out.
1390 (write_pieced_value): Switch to use
1391 mark_value_bytes_optimized_out.
1392 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1393 of assuming the whole value is optimized out.
1394 * findvar.c (read_frame_register_value): Remove special handling
1395 of optimized out registers.
1396 (value_from_register): Use mark_value_bytes_optimized_out.
1397 * frame-unwind.c (frame_unwind_got_optimized): Use
1398 mark_value_bytes_optimized_out.
1399 * jv-valprint.c (java_value_print): Adjust.
1400 (java_print_value_fields): Let the common printing code handle
1401 optimized out values.
1402 * mips-tdep.c (mips_print_register): Remove special handling of
1403 optimized out registers.
1404 * opencl-lang.c (lval_func_check_validity): Delete.
1405 (lval_func_check_any_valid): Delete.
1406 (opencl_value_funcs): Remove check_validity and check_any_valid
1407 fields.
1408 * p-valprint.c (pascal_object_print_value_fields): Let the common
1409 printing code handle optimized out values.
1410 * stack.c (read_frame_arg): Remove special handling of optimized
1411 out values. Fetch both VAL and ENTRYVAL before comparing
1412 contents. Adjust to value_available_contents_eq rename.
1413 * valprint.c (valprint_check_validity)
1414 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1415 (val_print_array_elements): Adjust.
1416 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1417 (value_bits_any_optimized_out): New function.
1418 (value_entirely_covered_by_range_vector): New function, factored
1419 out from value_entirely_unavailable.
1420 (value_entirely_unavailable): Reimplement.
1421 (value_entirely_optimized_out): New function.
1422 (insert_into_bit_range_vector): New function, factored out from
1423 mark_value_bits_unavailable.
1424 (mark_value_bits_unavailable): Reimplement.
1425 (struct ranges_and_idx): New struct.
1426 (find_first_range_overlap_and_match): New function, factored out
1427 from value_available_contents_bits_eq.
1428 (value_available_contents_bits_eq): Rename to ...
1429 (value_contents_bits_eq): ... this. Check both unavailable
1430 contents and optimized out contents.
1431 (value_available_contents_eq): Rename to ...
1432 (value_contents_eq): ... this.
1433 (allocate_value_lazy): Remove reference to the old optimized_out
1434 boolean.
1435 (allocate_optimized_out_value): Use
1436 mark_value_bytes_optimized_out.
1437 (require_not_optimized_out): Adjust to check whether the
1438 optimized_out vec is empty.
1439 (ranges_copy_adjusted): New function, factored out from
1440 value_contents_copy_raw.
1441 (value_contents_copy_raw): Also copy the optimized out ranges.
1442 Assert the destination ranges aren't optimized out.
1443 (value_contents_copy): Update comment, remove call to
1444 require_not_optimized_out.
1445 (value_contents_equal): Adjust to check whether the optimized_out
1446 vec is empty.
1447 (set_value_optimized_out, value_optimized_out_const): Delete.
1448 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1449 New functions.
1450 (value_entirely_optimized_out, value_bits_valid): Delete.
1451 (value_copy): Take a VEC copy of the 'optimized_out' field.
1452 (value_primitive_field): Remove special handling of optimized out.
1453 (value_fetch_lazy): Assert that lazy values have no unavailable
1454 regions. Use value_bits_any_optimized_out. Remove some special
1455 handling for optimized out values.
1456 * value.h: Add intro comment about <optimized out> and
1457 <unavailable>.
1458 (struct lval_funcs): Remove check_validity and check_any_valid
1459 fields.
1460 (set_value_optimized_out, value_optimized_out_const): Remove.
1461 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1462 New declarations.
1463 (value_bits_any_optimized_out): New declaration.
1464 (value_bits_valid): Delete declaration.
1465 (value_available_contents_eq): Rename to ...
1466 (value_contents_eq): ... this, and extend comments.
1467
6694c411
JK
14682014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1469
1470 Fix -fsanitize=address on unreadable inferior strings.
1471 * valprint.c (val_print_string): Fix access before BUFFER.
1472
89a1c21a
SM
14732014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1474
1475 * target.c (target_struct_size): Remove.
1476 (target_struct_allocsize): Remove.
1477 (DEFAULT_ALLOCSIZE): Remove.
1478 (target_ops_p): New typedef.
1479 (DEF_VEC_P (target_ops_p)): New vector type.
1480 (target_structs): Change type to VEC (target_ops_p).
1481 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1482 (find_default_run_target): Rewrite for loop following changes to
1483 target_structs.
1484
cb417230
JB
14852014-08-19 Joel Brobecker <brobecker@adacore.com>
1486
1487 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1488 Adjust code accordingly. Adjust function description comment.
1489
817e0957
YQ
14902014-08-19 Yao Qi <yao@codesourcery.com>
1491
1492 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1493 types.
1494
2974be62
AM
14952014-08-19 Alan Modra <amodra@gmail.com>
1496
1497 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1498 * config.in: Regenerate.
1499 * configure: Regenerate.
1500
34abf635
GB
15012014-08-19 Tom Tromey <tromey@redhat.com>
1502 Gary Benson <gbenson@redhat.com>
1503
1504 * common/common-debug.h: New file.
1505 * common/common-debug.c: Likewise.
1506 * debug.c: Likewise.
1507 * Makefile.in (SFILES): Add common/common-debug.c.
1508 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1509 (COMMON_OBS): Add common-debug.o and debug.o.
1510 (common-debug.o): New rule.
1511 * common/common-defs.h: Include common-debug.h.
1512 * common/agent.c (debug_agent_printf): New function.
1513 (DEBUG_AGENT): Redefine.
1514 * nat/i386-dregs.c (debug_printf): Undefine.
1515
f6e94d78
GB
15162014-08-19 Gary Benson <gbenson@redhat.com>
1517
1518 * common/common-defs.h: Include print-utils.h.
1519 * utils.h: Do not include print-utils.h.
1520
9239eeab
GB
15212014-08-19 Tom Tromey <tromey@redhat.com>
1522 Gary Benson <gbenson@redhat.com>
1523
1524 * common/common-types.h: New file.
1525 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1526 * common/common-defs.h: Include common-types.h.
1527 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1528 (ULONGEST): Remove.
1529
ef87c8bb
GB
15302014-08-19 Tom Tromey <tromey@redhat.com>
1531 Gary Benson <gbenson@redhat.com>
1532
1533 * common/errors.h: New file.
1534 * common/errors.c: Likewise.
1535 * Makefile.in (SFILES): Add common/errors.c.
1536 (HFILES_NO_SRCDIR): Add common/errors.h.
1537 (COMMON_OBS): Add errors.o.
1538 (errors.o): New rule.
1539 * common/common-defs.h: Include errors.h.
1540 * utils.h (perror_with_name, error, verror, warning, vwarning):
1541 Don't declare.
1542 * common/common-utils.h: (malloc_failure, internal_error):
1543 Likewise.
1544
196a707b
GB
15452014-08-19 Gary Benson <gbenson@redhat.com>
1546
1547 * utils.c (internal_vproblem): Always print the message.
1548
ded4fc8f
DE
15492014-08-18 Doug Evans <dje@google.com>
1550
1551 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1552
950c97d8
JB
15532014-08-18 Joel Brobecker <brobecker@adacore.com>
1554
1555 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1556 Return 0 if TYPE is dynamic.
1557 (print_range): Add handling of dynamic ranges.
1558
3cdcd0ce
JB
15592014-08-18 Keven Boell <keven.boell@intel.com>
1560 Joel Brobecker <brobecker@adacore.com>
1561
1562 * gdbtypes.h (struct main_type): Add field "data_location".
1563 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1564 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1565 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1566 a dynamic data location.
1567 (resolve_dynamic_type): Add DW_AT_data_location handling.
1568 (copy_recursive, copy_type): Copy the data_location information
1569 when present.
1570 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1571 * value.c (value_from_contents_and_address): Add
1572 DW_AT_data_location handling.
1573
08412b07
JB
15742014-08-18 Keven Boell <keven.boell@intel.com>
1575 Joel Brobecker <brobecker@adacore.com>
1576
1577 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1578 field "get_object_address".
1579 * dwarf2expr.c (execute_stack_op): Add handling for
1580 DW_OP_push_object_address.
1581 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1582 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1583 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1584 (dwarf_expr_get_obj_addr): New function.
1585 (dwarf_expr_ctx_funcs): Add get_object_address field.
1586 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1587 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1588 (dwarf2_evaluate_property): Add parameter "address". Use it.
1589 (needs_get_obj_addr): New function.
1590 (needs_frame_ctx_funcs): Add get_object_address field.
1591 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1592 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1593 (resolve_dynamic_array): Likewise.
1594
84754697
JB
15952014-08-18 Joel Brobecker <brobecker@adacore.com>
1596
1597 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1598 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1599 fixed value for records and unions for which some GNAT encodings
1600 are present.
1601
da5c522f
JB
16022014-08-18 Joel Brobecker <brobecker@adacore.com>
1603
1604 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1605 rewrite to avoid "else if" and "else" constructs. Should be
1606 a no-op in practice.
1607
0d72a7c3
JB
16082014-08-18 Joel Brobecker <brobecker@adacore.com>
1609
1610 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1611 of lexical block.
1612
e66d4446
SC
16132014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1614
1615 PR c++/17132
1616 * eval.c: Update all calls to find_overload_match.
1617 * valarith.c: Likewise.
1618 (value_user_defined_cpp_op, value_user_defined_op): New
1619 argument NOSIDE. Update all callers.
1620 * valops.c (find_overload_match): New argument NOSIDE.
1621 * value.h (find_overload_match): Update signature.
1622
940df408
SC
16232014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1624
1625 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1626 'items' methods instead of 'iteritems' method on dictionaries.
1627
699ca60a
DE
16282014-08-15 Doug Evans <dje@google.com>
1629
1630 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1631 closer to use.
1632
37780ee5
DE
16332014-08-15 Doug Evans <dje@google.com>
1634
1635 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1636
0ad93d4f
DE
16372014-08-15 Doug Evans <dje@google.com>
1638
1639 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1640
20d8c372
DE
16412014-08-15 Doug Evans <dje@google.com>
1642
1643 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1644 unused.
1645
cb039ba4
EZ
16462014-08-15 Eli Zaretskii <eliz@gnu.org>
1647
1648 * dcache.h: Include target.h, to avoid compile time warnings.
1649
eb7a547a
JB
16502014-08-15 Joel Brobecker <brobecker@adacore.com>
1651
1652 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1653 frame_info" partial declaration.
1654 * gdbarch.h: Regenerate.
1655
783cecc8
YQ
16562014-08-15 Yao Qi <yao@codesourcery.com>
1657
1658 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1659 Add parameter 'decode_for_pst_p'. Callers update.
1660
65c749e7
YQ
16612014-08-13 Yao Qi <yao@codesourcery.com>
1662
1663 PR build/17104
1664 * configure.ac: Use local variable 'pos'.
1665 * configure: Regenerated.
1666
d769e349
DE
16672014-08-11 Doug Evans <dje@google.com>
1668
1669 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1670 message, it is redundant with "Reading symbols from ..." message.
1671
24f1235e
DE
16722014-08-10 Doug Evans <xdje42@gmail.com>
1673
1674 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1675
dcd2e6ef
YQ
16762014-08-09 Yao Qi <yao@codesourcery.com>
1677
1678 PR remote/9053
1679 * remote.c (remote_xfer_partial): Remove dead code.
1680
070bdf0b
AA
16812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1682
1683 * ia64-linux-tdep.c: Include "regset.h".
1684 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1685 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1686 (ia64_linux_supply_fpregset): New function.
1687 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1688 (ia64_linux_regset_from_core_section): New function.
1689 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1690 method.
1691
08f9f542
AA
16922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1693
1694 * m68klinux-tdep.c: Include "regset.h".
1695 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1696 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1697 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1698 (m68k_linux_regset_from_core_section): New function.
1699 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1700 method.
1701
8f1cee41
AA
17022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1703
1704 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1705 function. Move logic to...
1706 (tilegx_linux_regmap): ... this new register map.
1707 (tilegx_linux_regset): Refer to register map, replace supply
1708 method by regcache_supply_regset, and add collect method.
1709 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1710 TILEGX_FIRST_EASY_REGNUM.
1711
c5741217
AA
17122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1713
1714 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1715 that calls regcache_supply_regset and handles the EPC register
1716 separately. Move main logic to...
1717 (score7_linux_gregmap): ... this new register map.
1718 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1719 (score7_linux_gregset): Refer to register map. Add collect method.
1720 (score7_linux_regset_from_core_section): Replace
1721 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1722 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1723 (struct regset): Delete unused forward declaraction.
1724 (struct pt_regs): Delete structure definition.
1725 (elf_gregset_t): Delete typedef.
1726
81580573
AA
17272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1728
1729 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1730 (nios2_core_regset): Add collect method.
1731
ba199d7d
AA
17322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1733
1734 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1735 platform-independent and don't write to read-only input buffer.
1736 (m32r_linux_collect_gregset): New function.
1737 (m32r_linux_gregset): Add collect method.
1738
0006a9da
AA
17392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1740
1741 * hppa-linux-tdep.c (greg_map): Rename to...
1742 (hppa_linux_gregmap): ... this. Also convert to
1743 regcache_map_entry format.
1744 (hppa_linux_supply_regset): Delete function.
1745 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1746 (hppa_linux_fpregmap): ... this new register map.
1747 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1748 register map, replace supply method by regcache_supply_regset, and
1749 add collect method regcache_collect_regset.
1750
901e1b23
AA
17512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1752
1753 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1754 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1755 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1756 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1757 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1758 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1759 (frv_linux_supply_gregset): Replace main logic by call to
1760 regcache_supply_regset, but keep clearing gr32-gr63.
1761 (frv_linux_supply_fpregset): Delete function.
1762 (frv_linux_gregset): Refer to appropriate register map and add
1763 regcache_collect_regset as the collect method.
1764 (frv_linux_fpregset): Likewise. Also exchange the supply method
1765 by regcache_supply_regset.
1766
1d6e7555
AA
17672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1768
1769 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1770 by call to alpha_supply_int_regs.
1771 (alpha_linux_collect_gregset): New function.
1772 (alpha_linux_supply_fpregset): Replace logic by call to
1773 alpha_supply_fp_regs.
1774 (alpha_linux_collect_fpregset): New function.
1775 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1776
d4d793bf
AA
17772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1778
1779 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1780 by call to regcache_collect_regset.
1781 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1782 instead of aarch64_linux_supply_gregset/_fpregset.
1783 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1784 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1785 header file instead.
1786 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1787 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1788 functions. Move logic to ...
1789 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1790 register maps.
1791 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1792 refer to new register maps, replace *_regset_from_core by
1793 regcache_supply_regset, and also use regcache_collect_regset.
1794 * aarch64-linux-tdep.h: Include "regset.h".
1795 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1796 Delete prototypes.
1797 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1798 macros, moved from C source file.
1799 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1800 variable declarations.
1801
99b7da5d
AA
18022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1803
1804 * s390-linux-nat.c: Include "regset.h".
1805 (regmap_gregset): Delete macro.
1806 (s390_64_regmap_gregset): New register map for
1807 regcache_supply/_collect_regset.
1808 (s390_64_gregset): New regset.
1809 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1810 (regmap_fpregset): Delete macro.
1811 (s390_native_supply, s390_native_collect): Delete functions.
1812 (supply_gregset, fill_gregset): Replace s390-specific regmap
1813 handling by a call to regcache_supply/_collect_regset.
1814 (supply_fpregset, fill_fpregset): Call regcache_supply/
1815 _collect_regset instead of s390_native_supply/_collect.
1816 (fetch_regset, store_regset): Likewise. Also change the last
1817 parameter to a regset instead of a regmap.
1818 (s390_linux_fetch_inferior_registers)
1819 (390_linux_store_inferior_registers): Adjust last parameter in
1820 calls to fetch_regset and store_regset.
1821 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1822 (s390_gregmap): ... this. Also make static const and convert to
1823 regcache_map_entry format.
1824 (s390x_regmap_gregset): Delete.
1825 (s390_regmap_fpregset): Rename to...
1826 (s390_fpregmap): ... this. Make static const and convert to
1827 regcache_map_entry format.
1828 (s390_regmap_upper, s390_regmap_last_break)
1829 (s390x_regmap_last_break, s390_regmap_system_call)
1830 (s390_regmap_tdb): Likewise.
1831 (s390_supply_regset, s390_collect_regset): Remove functions.
1832 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1833 s390_supply_regset.
1834 (s390_gregset, s390_fpregset, s390_upper_regset)
1835 (s390_last_break_regset, s390x_last_break_regset)
1836 (s390_system_call_regset, s390_tdb_regset): Make global and
1837 replace s390_supply/_collect_regset by regcache_supply/
1838 _collect_regset.
1839 (s390x_gregset): Delete.
1840 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1841 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1842 (s390_regmap_fpregset, s390_regmap_last_break)
1843 (s390x_regmap_last_break, s390_regmap_system_call)
1844 (s390_regmap_tdb): Delete global variable declarations.
1845 (s390_gregset, s390_fpregset, s390_last_break_regset)
1846 (s390x_last_break_regset, s390_system_call_regset)
1847 (s390_tdb_regset): New global variable declarations.
1848
0b309272
AA
18492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1850
1851 * regcache.c: Include "regset.h".
1852 (regcache_transfer_regset): New local function.
1853 (regcache_supply_regset, regcache_collect_regset): New functions.
1854 * regcache.h (struct regcache_map_entry): New structure.
1855 (REGCACHE_MAP_SKIP): New enum value.
1856 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1857
7fefa8d7
AA
18582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1859
1860 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1861 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1862 (ppc_linux_collect_gregset ): Likewise.
1863 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1864 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1865 (ppc_collect_vrregset): Likewise.
1866 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1867 Likewise.
1868
96c4f946
YQ
18692014-08-07 Yao Qi <yao@codesourcery.com>
1870
1871 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1872 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1873 * remote.c (remote_read_bytes): Likewise.
1874
fffbe6a8
YQ
18752014-08-07 Yao Qi <yao@codesourcery.com>
1876
1877 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1878
5ee8a82c
YQ
18792014-08-07 Yao Qi <yao@codesourcery.com>
1880
1881 PR remote/17230
1882 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1883 TARGET_XFER_OK instead of 0.
1884
bb974a24
GB
18852014-08-07 Gary Benson <gbenson@redhat.com>
1886
1887 * common/common-defs.h: Include errno.h.
1888 * defs.h: Do not include errno.h.
1889 * ada-typeprint.c: Likewise.
1890 * c-typeprint.c: Likewise.
1891 * core-regset.c: Likewise.
1892 * corefile.c: Likewise.
1893 * corelow.c: Likewise.
1894 * event-loop.c: Likewise.
1895 * f-typeprint.c: Likewise.
1896 * gnu-nat.c: Likewise.
1897 * go32-nat.c: Likewise.
1898 * i386gnu-nat.c: Likewise.
1899 * m2-typeprint.c: Likewise.
1900 * nat/linux-btrace.c: Likewise.
1901 * p-typeprint.c: Likewise.
1902 * procfs.c: Likewise.
1903 * remote-sim.c: Likewise.
1904 * rs6000-nat.c: Likewise.
1905 * target.c: Likewise.
1906 * typeprint.c: Likewise.
1907 * ui-file.c: Likewise.
1908 * valops.c: Likewise.
1909 * valprint.c: Likewise.
1910
6d3d12eb
GB
19112014-08-07 Gary Benson <gbenson@redhat.com>
1912
1913 * common/common-defs.h: Include string.h.
1914 * aarch64-tdep.c: Do not include string.h.
1915 * ada-exp.y: Likewise.
1916 * ada-lang.c: Likewise.
1917 * ada-lex.l: Likewise.
1918 * ada-typeprint.c: Likewise.
1919 * ada-valprint.c: Likewise.
1920 * aix-thread.c: Likewise.
1921 * alpha-linux-tdep.c: Likewise.
1922 * alpha-mdebug-tdep.c: Likewise.
1923 * alpha-nat.c: Likewise.
1924 * alpha-osf1-tdep.c: Likewise.
1925 * alpha-tdep.c: Likewise.
1926 * alphanbsd-tdep.c: Likewise.
1927 * amd64-dicos-tdep.c: Likewise.
1928 * amd64-linux-tdep.c: Likewise.
1929 * amd64-nat.c: Likewise.
1930 * amd64-sol2-tdep.c: Likewise.
1931 * amd64fbsd-tdep.c: Likewise.
1932 * amd64obsd-tdep.c: Likewise.
1933 * arch-utils.c: Likewise.
1934 * arm-linux-nat.c: Likewise.
1935 * arm-linux-tdep.c: Likewise.
1936 * arm-tdep.c: Likewise.
1937 * arm-wince-tdep.c: Likewise.
1938 * armbsd-tdep.c: Likewise.
1939 * armnbsd-nat.c: Likewise.
1940 * armnbsd-tdep.c: Likewise.
1941 * armobsd-tdep.c: Likewise.
1942 * avr-tdep.c: Likewise.
1943 * ax-gdb.c: Likewise.
1944 * ax-general.c: Likewise.
1945 * bcache.c: Likewise.
1946 * bfin-tdep.c: Likewise.
1947 * breakpoint.c: Likewise.
1948 * build-id.c: Likewise.
1949 * buildsym.c: Likewise.
1950 * c-exp.y: Likewise.
1951 * c-lang.c: Likewise.
1952 * c-typeprint.c: Likewise.
1953 * c-valprint.c: Likewise.
1954 * charset.c: Likewise.
1955 * cli-out.c: Likewise.
1956 * cli/cli-cmds.c: Likewise.
1957 * cli/cli-decode.c: Likewise.
1958 * cli/cli-dump.c: Likewise.
1959 * cli/cli-interp.c: Likewise.
1960 * cli/cli-logging.c: Likewise.
1961 * cli/cli-script.c: Likewise.
1962 * cli/cli-setshow.c: Likewise.
1963 * cli/cli-utils.c: Likewise.
1964 * coffread.c: Likewise.
1965 * common/agent.c: Likewise.
1966 * common/buffer.c: Likewise.
1967 * common/buffer.h: Likewise.
1968 * common/common-utils.c: Likewise.
1969 * common/filestuff.c: Likewise.
1970 * common/filestuff.c: Likewise.
1971 * common/format.c: Likewise.
1972 * common/print-utils.c: Likewise.
1973 * common/rsp-low.c: Likewise.
1974 * common/signals.c: Likewise.
1975 * common/vec.h: Likewise.
1976 * common/xml-utils.c: Likewise.
1977 * core-regset.c: Likewise.
1978 * corefile.c: Likewise.
1979 * corelow.c: Likewise.
1980 * cp-abi.c: Likewise.
1981 * cp-name-parser.y: Likewise.
1982 * cp-support.c: Likewise.
1983 * cp-valprint.c: Likewise.
1984 * cris-tdep.c: Likewise.
1985 * d-exp.y: Likewise.
1986 * darwin-nat.c: Likewise.
1987 * dbxread.c: Likewise.
1988 * dcache.c: Likewise.
1989 * demangle.c: Likewise.
1990 * dicos-tdep.c: Likewise.
1991 * disasm.c: Likewise.
1992 * doublest.c: Likewise.
1993 * dsrec.c: Likewise.
1994 * dummy-frame.c: Likewise.
1995 * dwarf2-frame.c: Likewise.
1996 * dwarf2loc.c: Likewise.
1997 * dwarf2read.c: Likewise.
1998 * elfread.c: Likewise.
1999 * environ.c: Likewise.
2000 * eval.c: Likewise.
2001 * event-loop.c: Likewise.
2002 * exceptions.c: Likewise.
2003 * exec.c: Likewise.
2004 * expprint.c: Likewise.
2005 * f-exp.y: Likewise.
2006 * f-lang.c: Likewise.
2007 * f-typeprint.c: Likewise.
2008 * f-valprint.c: Likewise.
2009 * fbsd-nat.c: Likewise.
2010 * findcmd.c: Likewise.
2011 * findvar.c: Likewise.
2012 * fork-child.c: Likewise.
2013 * frame.c: Likewise.
2014 * frv-linux-tdep.c: Likewise.
2015 * frv-tdep.c: Likewise.
2016 * gdb.c: Likewise.
2017 * gdb_bfd.c: Likewise.
2018 * gdbarch.c: Likewise.
2019 * gdbarch.sh: Likewise.
2020 * gdbtypes.c: Likewise.
2021 * gnu-nat.c: Likewise.
2022 * gnu-v2-abi.c: Likewise.
2023 * gnu-v3-abi.c: Likewise.
2024 * go-exp.y: Likewise.
2025 * go-lang.c: Likewise.
2026 * go32-nat.c: Likewise.
2027 * guile/guile.c: Likewise.
2028 * guile/scm-auto-load.c: Likewise.
2029 * hppa-hpux-tdep.c: Likewise.
2030 * hppa-linux-nat.c: Likewise.
2031 * hppanbsd-tdep.c: Likewise.
2032 * hppaobsd-tdep.c: Likewise.
2033 * i386-cygwin-tdep.c: Likewise.
2034 * i386-dicos-tdep.c: Likewise.
2035 * i386-linux-tdep.c: Likewise.
2036 * i386-nto-tdep.c: Likewise.
2037 * i386-sol2-tdep.c: Likewise.
2038 * i386-tdep.c: Likewise.
2039 * i386bsd-tdep.c: Likewise.
2040 * i386gnu-nat.c: Likewise.
2041 * i386nbsd-tdep.c: Likewise.
2042 * i386obsd-tdep.c: Likewise.
2043 * i387-tdep.c: Likewise.
2044 * ia64-libunwind-tdep.c: Likewise.
2045 * ia64-linux-nat.c: Likewise.
2046 * inf-child.c: Likewise.
2047 * inf-ptrace.c: Likewise.
2048 * inf-ttrace.c: Likewise.
2049 * infcall.c: Likewise.
2050 * infcmd.c: Likewise.
2051 * inflow.c: Likewise.
2052 * infrun.c: Likewise.
2053 * interps.c: Likewise.
2054 * iq2000-tdep.c: Likewise.
2055 * irix5-nat.c: Likewise.
2056 * jv-exp.y: Likewise.
2057 * jv-lang.c: Likewise.
2058 * jv-typeprint.c: Likewise.
2059 * jv-valprint.c: Likewise.
2060 * language.c: Likewise.
2061 * linux-fork.c: Likewise.
2062 * linux-nat.c: Likewise.
2063 * lm32-tdep.c: Likewise.
2064 * m2-exp.y: Likewise.
2065 * m2-typeprint.c: Likewise.
2066 * m32c-tdep.c: Likewise.
2067 * m32r-linux-nat.c: Likewise.
2068 * m32r-linux-tdep.c: Likewise.
2069 * m32r-rom.c: Likewise.
2070 * m32r-tdep.c: Likewise.
2071 * m68hc11-tdep.c: Likewise.
2072 * m68k-tdep.c: Likewise.
2073 * m68kbsd-tdep.c: Likewise.
2074 * m68klinux-nat.c: Likewise.
2075 * m68klinux-tdep.c: Likewise.
2076 * m88k-tdep.c: Likewise.
2077 * machoread.c: Likewise.
2078 * macrocmd.c: Likewise.
2079 * main.c: Likewise.
2080 * mdebugread.c: Likewise.
2081 * mem-break.c: Likewise.
2082 * memattr.c: Likewise.
2083 * memory-map.c: Likewise.
2084 * mep-tdep.c: Likewise.
2085 * mi/mi-cmd-break.c: Likewise.
2086 * mi/mi-cmd-disas.c: Likewise.
2087 * mi/mi-cmd-env.c: Likewise.
2088 * mi/mi-cmd-stack.c: Likewise.
2089 * mi/mi-cmd-var.c: Likewise.
2090 * mi/mi-cmds.c: Likewise.
2091 * mi/mi-console.c: Likewise.
2092 * mi/mi-getopt.c: Likewise.
2093 * mi/mi-interp.c: Likewise.
2094 * mi/mi-main.c: Likewise.
2095 * mi/mi-parse.c: Likewise.
2096 * microblaze-rom.c: Likewise.
2097 * microblaze-tdep.c: Likewise.
2098 * mingw-hdep.c: Likewise.
2099 * minidebug.c: Likewise.
2100 * minsyms.c: Likewise.
2101 * mips-irix-tdep.c: Likewise.
2102 * mips-linux-tdep.c: Likewise.
2103 * mips-tdep.c: Likewise.
2104 * mips64obsd-tdep.c: Likewise.
2105 * mipsnbsd-tdep.c: Likewise.
2106 * mipsread.c: Likewise.
2107 * mn10300-linux-tdep.c: Likewise.
2108 * mn10300-tdep.c: Likewise.
2109 * monitor.c: Likewise.
2110 * moxie-tdep.c: Likewise.
2111 * mt-tdep.c: Likewise.
2112 * nat/linux-btrace.c: Likewise.
2113 * nat/linux-osdata.c: Likewise.
2114 * nat/linux-procfs.c: Likewise.
2115 * nat/linux-ptrace.c: Likewise.
2116 * nat/linux-waitpid.c: Likewise.
2117 * nbsd-tdep.c: Likewise.
2118 * nios2-linux-tdep.c: Likewise.
2119 * nto-procfs.c: Likewise.
2120 * nto-tdep.c: Likewise.
2121 * objc-lang.c: Likewise.
2122 * objfiles.c: Likewise.
2123 * opencl-lang.c: Likewise.
2124 * osabi.c: Likewise.
2125 * osdata.c: Likewise.
2126 * p-exp.y: Likewise.
2127 * p-lang.c: Likewise.
2128 * p-typeprint.c: Likewise.
2129 * parse.c: Likewise.
2130 * posix-hdep.c: Likewise.
2131 * ppc-linux-nat.c: Likewise.
2132 * ppc-sysv-tdep.c: Likewise.
2133 * ppcfbsd-tdep.c: Likewise.
2134 * ppcnbsd-tdep.c: Likewise.
2135 * ppcobsd-tdep.c: Likewise.
2136 * printcmd.c: Likewise.
2137 * procfs.c: Likewise.
2138 * prologue-value.c: Likewise.
2139 * python/py-auto-load.c: Likewise.
2140 * python/py-gdb-readline.c: Likewise.
2141 * ravenscar-thread.c: Likewise.
2142 * regcache.c: Likewise.
2143 * registry.c: Likewise.
2144 * remote-fileio.c: Likewise.
2145 * remote-m32r-sdi.c: Likewise.
2146 * remote-mips.c: Likewise.
2147 * remote-notif.c: Likewise.
2148 * remote-sim.c: Likewise.
2149 * remote.c: Likewise.
2150 * reverse.c: Likewise.
2151 * rs6000-aix-tdep.c: Likewise.
2152 * ser-base.c: Likewise.
2153 * ser-go32.c: Likewise.
2154 * ser-mingw.c: Likewise.
2155 * ser-pipe.c: Likewise.
2156 * ser-tcp.c: Likewise.
2157 * ser-unix.c: Likewise.
2158 * serial.c: Likewise.
2159 * sh-tdep.c: Likewise.
2160 * sh64-tdep.c: Likewise.
2161 * shnbsd-tdep.c: Likewise.
2162 * skip.c: Likewise.
2163 * sol-thread.c: Likewise.
2164 * solib-dsbt.c: Likewise.
2165 * solib-frv.c: Likewise.
2166 * solib-osf.c: Likewise.
2167 * solib-som.c: Likewise.
2168 * solib-spu.c: Likewise.
2169 * solib-target.c: Likewise.
2170 * solib.c: Likewise.
2171 * somread.c: Likewise.
2172 * source.c: Likewise.
2173 * sparc-nat.c: Likewise.
2174 * sparc-sol2-tdep.c: Likewise.
2175 * sparc-tdep.c: Likewise.
2176 * sparc64-tdep.c: Likewise.
2177 * sparc64fbsd-tdep.c: Likewise.
2178 * sparc64nbsd-tdep.c: Likewise.
2179 * sparcnbsd-tdep.c: Likewise.
2180 * spu-linux-nat.c: Likewise.
2181 * spu-multiarch.c: Likewise.
2182 * spu-tdep.c: Likewise.
2183 * stabsread.c: Likewise.
2184 * stack.c: Likewise.
2185 * std-regs.c: Likewise.
2186 * symfile.c: Likewise.
2187 * symmisc.c: Likewise.
2188 * symtab.c: Likewise.
2189 * target.c: Likewise.
2190 * thread.c: Likewise.
2191 * tilegx-linux-nat.c: Likewise.
2192 * tilegx-tdep.c: Likewise.
2193 * top.c: Likewise.
2194 * tracepoint.c: Likewise.
2195 * tui/tui-command.c: Likewise.
2196 * tui/tui-data.c: Likewise.
2197 * tui/tui-disasm.c: Likewise.
2198 * tui/tui-file.c: Likewise.
2199 * tui/tui-layout.c: Likewise.
2200 * tui/tui-out.c: Likewise.
2201 * tui/tui-regs.c: Likewise.
2202 * tui/tui-source.c: Likewise.
2203 * tui/tui-stack.c: Likewise.
2204 * tui/tui-win.c: Likewise.
2205 * tui/tui-windata.c: Likewise.
2206 * tui/tui-winsource.c: Likewise.
2207 * typeprint.c: Likewise.
2208 * ui-file.c: Likewise.
2209 * ui-out.c: Likewise.
2210 * user-regs.c: Likewise.
2211 * utils.c: Likewise.
2212 * v850-tdep.c: Likewise.
2213 * valarith.c: Likewise.
2214 * valops.c: Likewise.
2215 * valprint.c: Likewise.
2216 * value.c: Likewise.
2217 * varobj.c: Likewise.
2218 * vax-tdep.c: Likewise.
2219 * vaxnbsd-tdep.c: Likewise.
2220 * vaxobsd-tdep.c: Likewise.
2221 * windows-nat.c: Likewise.
2222 * xcoffread.c: Likewise.
2223 * xml-support.c: Likewise.
2224 * xstormy16-tdep.c: Likewise.
2225 * xtensa-linux-nat.c: Likewise.
2226
dccbb609
GB
22272014-08-07 Gary Benson <gbenson@redhat.com>
2228
2229 * common/common-defs.h: Include gdb_assert.h.
2230 * aarch64-tdep.c: Do not include gdb_assert.h.
2231 * addrmap.c: Likewise.
2232 * aix-thread.c: Likewise.
2233 * alpha-linux-tdep.c: Likewise.
2234 * alpha-mdebug-tdep.c: Likewise.
2235 * alphanbsd-tdep.c: Likewise.
2236 * amd64-nat.c: Likewise.
2237 * amd64-tdep.c: Likewise.
2238 * amd64bsd-nat.c: Likewise.
2239 * amd64fbsd-nat.c: Likewise.
2240 * amd64fbsd-tdep.c: Likewise.
2241 * amd64nbsd-nat.c: Likewise.
2242 * amd64nbsd-tdep.c: Likewise.
2243 * amd64obsd-nat.c: Likewise.
2244 * amd64obsd-tdep.c: Likewise.
2245 * arch-utils.c: Likewise.
2246 * arm-tdep.c: Likewise.
2247 * armbsd-tdep.c: Likewise.
2248 * auxv.c: Likewise.
2249 * bcache.c: Likewise.
2250 * bfin-tdep.c: Likewise.
2251 * blockframe.c: Likewise.
2252 * breakpoint.c: Likewise.
2253 * bsd-kvm.c: Likewise.
2254 * bsd-uthread.c: Likewise.
2255 * buildsym.c: Likewise.
2256 * c-exp.y: Likewise.
2257 * c-lang.c: Likewise.
2258 * charset.c: Likewise.
2259 * cleanups.c: Likewise.
2260 * cli-out.c: Likewise.
2261 * cli/cli-decode.c: Likewise.
2262 * cli/cli-dump.c: Likewise.
2263 * cli/cli-logging.c: Likewise.
2264 * cli/cli-script.c: Likewise.
2265 * cli/cli-utils.c: Likewise.
2266 * coffread.c: Likewise.
2267 * common/common-utils.c: Likewise.
2268 * common/queue.h: Likewise.
2269 * common/signals.c: Likewise.
2270 * common/vec.h: Likewise.
2271 * complaints.c: Likewise.
2272 * completer.c: Likewise.
2273 * corelow.c: Likewise.
2274 * cp-abi.c: Likewise.
2275 * cp-name-parser.y: Likewise.
2276 * cp-namespace.c: Likewise.
2277 * cp-support.c: Likewise.
2278 * cris-tdep.c: Likewise.
2279 * dbxread.c: Likewise.
2280 * dictionary.c: Likewise.
2281 * doublest.c: Likewise.
2282 * dsrec.c: Likewise.
2283 * dummy-frame.c: Likewise.
2284 * dwarf2-frame-tailcall.c: Likewise.
2285 * dwarf2-frame.c: Likewise.
2286 * dwarf2expr.c: Likewise.
2287 * dwarf2loc.c: Likewise.
2288 * dwarf2read.c: Likewise.
2289 * eval.c: Likewise.
2290 * event-loop.c: Likewise.
2291 * exceptions.c: Likewise.
2292 * expprint.c: Likewise.
2293 * f-valprint.c: Likewise.
2294 * fbsd-nat.c: Likewise.
2295 * findvar.c: Likewise.
2296 * frame-unwind.c: Likewise.
2297 * frame.c: Likewise.
2298 * frv-tdep.c: Likewise.
2299 * gcore.c: Likewise.
2300 * gdb-dlfcn.c: Likewise.
2301 * gdb_bfd.c: Likewise.
2302 * gdbarch.c: Likewise.
2303 * gdbarch.sh: Likewise.
2304 * gdbtypes.c: Likewise.
2305 * gnu-nat.c: Likewise.
2306 * gnu-v3-abi.c: Likewise.
2307 * go-lang.c: Likewise.
2308 * guile/scm-exception.c: Likewise.
2309 * guile/scm-gsmob.c: Likewise.
2310 * guile/scm-lazy-string.c: Likewise.
2311 * guile/scm-math.c: Likewise.
2312 * guile/scm-pretty-print.c: Likewise.
2313 * guile/scm-safe-call.c: Likewise.
2314 * guile/scm-utils.c: Likewise.
2315 * guile/scm-value.c: Likewise.
2316 * h8300-tdep.c: Likewise.
2317 * hppa-hpux-nat.c: Likewise.
2318 * hppa-tdep.c: Likewise.
2319 * hppanbsd-tdep.c: Likewise.
2320 * hppaobsd-tdep.c: Likewise.
2321 * i386-darwin-nat.c: Likewise.
2322 * i386-darwin-tdep.c: Likewise.
2323 * i386-nto-tdep.c: Likewise.
2324 * i386-tdep.c: Likewise.
2325 * i386bsd-nat.c: Likewise.
2326 * i386fbsd-tdep.c: Likewise.
2327 * i386gnu-nat.c: Likewise.
2328 * i386nbsd-tdep.c: Likewise.
2329 * i386obsd-tdep.c: Likewise.
2330 * i387-tdep.c: Likewise.
2331 * ia64-libunwind-tdep.c: Likewise.
2332 * ia64-tdep.c: Likewise.
2333 * inf-ptrace.c: Likewise.
2334 * inf-ttrace.c: Likewise.
2335 * infcall.c: Likewise.
2336 * infcmd.c: Likewise.
2337 * infrun.c: Likewise.
2338 * inline-frame.c: Likewise.
2339 * interps.c: Likewise.
2340 * jv-lang.c: Likewise.
2341 * jv-typeprint.c: Likewise.
2342 * linux-fork.c: Likewise.
2343 * linux-nat.c: Likewise.
2344 * linux-thread-db.c: Likewise.
2345 * m32c-tdep.c: Likewise.
2346 * m32r-linux-nat.c: Likewise.
2347 * m32r-tdep.c: Likewise.
2348 * m68k-tdep.c: Likewise.
2349 * m68kbsd-nat.c: Likewise.
2350 * m68kbsd-tdep.c: Likewise.
2351 * m88k-tdep.c: Likewise.
2352 * machoread.c: Likewise.
2353 * macroexp.c: Likewise.
2354 * macrotab.c: Likewise.
2355 * maint.c: Likewise.
2356 * mdebugread.c: Likewise.
2357 * memory-map.c: Likewise.
2358 * mep-tdep.c: Likewise.
2359 * mi/mi-common.c: Likewise.
2360 * microblaze-tdep.c: Likewise.
2361 * mingw-hdep.c: Likewise.
2362 * mips-linux-nat.c: Likewise.
2363 * mips-linux-tdep.c: Likewise.
2364 * mips-tdep.c: Likewise.
2365 * mips64obsd-tdep.c: Likewise.
2366 * mipsnbsd-tdep.c: Likewise.
2367 * mn10300-linux-tdep.c: Likewise.
2368 * mn10300-tdep.c: Likewise.
2369 * moxie-tdep.c: Likewise.
2370 * mt-tdep.c: Likewise.
2371 * nat/linux-btrace.c: Likewise.
2372 * nat/linux-osdata.c: Likewise.
2373 * nat/linux-ptrace.c: Likewise.
2374 * nat/mips-linux-watch.c: Likewise.
2375 * nios2-linux-tdep.c: Likewise.
2376 * nios2-tdep.c: Likewise.
2377 * objc-lang.c: Likewise.
2378 * objfiles.c: Likewise.
2379 * obsd-nat.c: Likewise.
2380 * opencl-lang.c: Likewise.
2381 * osabi.c: Likewise.
2382 * parse.c: Likewise.
2383 * ppc-linux-nat.c: Likewise.
2384 * ppc-sysv-tdep.c: Likewise.
2385 * ppcfbsd-nat.c: Likewise.
2386 * ppcfbsd-tdep.c: Likewise.
2387 * ppcnbsd-nat.c: Likewise.
2388 * ppcnbsd-tdep.c: Likewise.
2389 * ppcobsd-nat.c: Likewise.
2390 * ppcobsd-tdep.c: Likewise.
2391 * printcmd.c: Likewise.
2392 * procfs.c: Likewise.
2393 * prologue-value.c: Likewise.
2394 * psymtab.c: Likewise.
2395 * python/py-lazy-string.c: Likewise.
2396 * python/py-value.c: Likewise.
2397 * regcache.c: Likewise.
2398 * reggroups.c: Likewise.
2399 * registry.c: Likewise.
2400 * remote-sim.c: Likewise.
2401 * remote.c: Likewise.
2402 * rs6000-aix-tdep.c: Likewise.
2403 * rs6000-tdep.c: Likewise.
2404 * s390-linux-tdep.c: Likewise.
2405 * score-tdep.c: Likewise.
2406 * ser-base.c: Likewise.
2407 * ser-mingw.c: Likewise.
2408 * sh-tdep.c: Likewise.
2409 * sh64-tdep.c: Likewise.
2410 * solib-darwin.c: Likewise.
2411 * solib-spu.c: Likewise.
2412 * solib-svr4.c: Likewise.
2413 * source.c: Likewise.
2414 * sparc-nat.c: Likewise.
2415 * sparc-sol2-tdep.c: Likewise.
2416 * sparc-tdep.c: Likewise.
2417 * sparc64-sol2-tdep.c: Likewise.
2418 * sparc64-tdep.c: Likewise.
2419 * sparc64fbsd-tdep.c: Likewise.
2420 * sparc64nbsd-tdep.c: Likewise.
2421 * sparc64obsd-tdep.c: Likewise.
2422 * sparcnbsd-tdep.c: Likewise.
2423 * sparcobsd-tdep.c: Likewise.
2424 * spu-multiarch.c: Likewise.
2425 * spu-tdep.c: Likewise.
2426 * stabsread.c: Likewise.
2427 * stack.c: Likewise.
2428 * symfile.c: Likewise.
2429 * symtab.c: Likewise.
2430 * target-descriptions.c: Likewise.
2431 * target-memory.c: Likewise.
2432 * target.c: Likewise.
2433 * tic6x-linux-tdep.c: Likewise.
2434 * tic6x-tdep.c: Likewise.
2435 * tilegx-linux-nat.c: Likewise.
2436 * tilegx-tdep.c: Likewise.
2437 * top.c: Likewise.
2438 * tramp-frame.c: Likewise.
2439 * tui/tui-out.c: Likewise.
2440 * tui/tui-winsource.c: Likewise.
2441 * ui-out.c: Likewise.
2442 * user-regs.c: Likewise.
2443 * utils.c: Likewise.
2444 * v850-tdep.c: Likewise.
2445 * valops.c: Likewise.
2446 * value.c: Likewise.
2447 * varobj.c: Likewise.
2448 * vax-nat.c: Likewise.
2449 * xml-syscall.c: Likewise.
2450 * xml-tdesc.c: Likewise.
2451 * xstormy16-tdep.c: Likewise.
2452 * xtensa-linux-nat.c: Likewise.
2453 * xtensa-tdep.c: Likewise.
2454
e76df0d0
GB
24552014-08-07 Gary Benson <gbenson@redhat.com>
2456
2457 * common/common-defs.h: Include common-utils.h.
2458 * defs.h: Do not include common-utils.h.
2459 * common/gdb_assert.h: Likewise.
2460 * darwin-nat.h: Likewise.
2461 * nat/linux-btrace.c: Likewise.
2462 * target/waitstatus.h: Likewise.
2463
4cb9c816
GB
24642014-08-07 Gary Benson <gbenson@redhat.com>
2465
2466 * common/common-defs.h: Include ptid.h.
2467 * defs.h: Do not include ptid.h.
2468 * inferior.h: Likewise.
2469 * infrun.h: Likewise.
2470 * nat/linux-btrace.h: Likewise.
2471 * nat/linux-osdata.h: Likewise.
2472 * target/waitstatus.h: Likewise.
2473
3995eeee
GB
24742014-08-07 Gary Benson <gbenson@redhat.com>
2475
2476 * common/common-defs.h: Include gdb_locale.h.
2477 * defs.h: Do not include gdb_locale.h.
2478
cb9f1a9b
GB
24792014-08-07 Gary Benson <gbenson@redhat.com>
2480
2481 * common/common-defs.h: Include gdb/signals.h.
2482 * defs.h: Do not include gdb/signals.h.
2483
a5fceff8
GB
24842014-08-07 Gary Benson <gbenson@redhat.com>
2485
2486 * common/common-defs.h: Include pathmax.h.
2487 * defs.h: Do not include pathmax.h.
2488
b9391142
GB
24892014-08-07 Gary Benson <gbenson@redhat.com>
2490
2491 * common/common-defs.h: Include libiberty.h.
2492 * defs.h: Do not include libiberty.h.
2493 * common/queue.h: Likewise.
2494 * cp-name-parser.y: Likewise.
2495 * mi/mi-cmd-catch.c: Likewise.
2496 * python/python.c: Likewise.
2497
0e443c87
GB
24982014-08-07 Gary Benson <gbenson@redhat.com>
2499
2500 * common/common-defs.h: Include ansidecl.h.
2501 * defs.h: Do not include ansidecl.h.
2502 * common/buffer.h: Likewise.
2503 * common/common-utils.h: Likewise.
2504
8ebb3f56
GB
25052014-08-07 Gary Benson <gbenson@redhat.com>
2506
2507 * common/common-defs.h: Include stddef.h.
2508 * defs.h: Do not include stddef.h.
2509 * common/common-utils.h: Likewise.
2510 * amd64fbsd-nat.c: Likewise.
2511 * bcache.c: Likewise.
2512 * charset.c: Likewise.
2513 * common/buffer.h: Likewise.
2514 * common/vec.h: Likewise.
2515 * i386bsd-nat.c: Likewise.
2516 * nat/linux-btrace.h: Likewise.
2517 * ppcfbsd-nat.c: Likewise.
2518 * ppcnbsd-tdep.h: Likewise.
2519 * ppcobsd-nat.c: Likewise.
2520 * ppcobsd-tdep.h: Likewise.
2521 * python/py-gdb-readline.c: Likewise.
2522
8980bdf6
GB
25232014-08-07 Gary Benson <gbenson@redhat.com>
2524
2525 * common/common-defs.h: Include stdarg.h.
2526 * defs.h: Do not include stdarg.h.
2527 * ada-lang.c: Likewise.
2528 * common/common-utils.h: Likewise.
2529 * guile/scm-string.c: Likewise.
2530 * guile/scm-utils.c: Likewise.
2531 * m32c-tdep.c: Likewise.
2532
d7096f71
GB
25332014-08-07 Gary Benson <gbenson@redhat.com>
2534
2535 * common/common-defs.h: Include stdlib.h.
2536 * defs.h: Do not include stdlib.h.
2537 * addrmap.c: Likewise.
2538 * bcache.c: Likewise.
2539 * common/buffer.c: Likewise.
2540 * common/common-utils.c: Likewise.
2541 * cp-name-parser.y: Likewise.
2542 * go32-nat.c: Likewise.
2543 * mn10300-linux-tdep.c: Likewise.
2544 * nat/linux-osdata.c: Likewise.
2545 * tui/tui.c: Likewise.
2546 * windows-nat.c: Likewise.
2547
d02f550d
GB
25482014-08-07 Gary Benson <gbenson@redhat.com>
2549
2550 * common/common-defs.h: Include stdio.h.
2551 * defs.h: Do not include stdio.h.
2552 * ada-lang.c: Likewise.
2553 * common/buffer.c: Likewise.
2554 * common/common-utils.c: Likewise.
2555 * cp-name-parser.y: Likewise.
2556 * gnu-nat.c: Likewise.
2557 * go32-nat.c: Likewise.
2558 * i386gnu-nat.c: Likewise.
2559 * proc-api.c: Likewise.
2560 * proc-events.c: Likewise.
2561 * proc-flags.c: Likewise.
2562 * proc-why.c: Likewise.
2563 * python/python-internal.h: Likewise.
2564 * target-memory.c: Likewise.
2565 * tui/tui-io.c: Likewise.
2566 * tui/tui.c: Likewise.
2567
b6d7a4bf
SM
25682014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2569
2570 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2571 (scan_dyntag_auxv): Same.
2572
af19829b
YQ
25732014-08-06 Yao Qi <yao@codesourcery.com>
2574
2575 * amd64-linux-nat.c: Remove duplicated include
2576 "x86-linux-nat.h".
2577 * i386-linux-nat.c: Likewise.
2578
8e07a239
YQ
25792014-08-06 Yao Qi <yao@codesourcery.com>
2580
2581 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2582 operand" with "Special opcode" in comments.
2583
7bfe8241
GB
25842014-08-05 Gary Benson <gbenson@redhat.com>
2585
2586 * interps.c (initialize_interps): Remove prototype.
2587 (interpreter_initialized): Remove static global.
2588 (interp_add): Do not call initialize_interps.
2589 (initialize_interps): Remove function.
2590
d6c95504
GB
25912014-08-05 Gary Benson <gbenson@redhat.com>
2592
2593 * utils.c (vwarning): Remove spurious va_end.
2594
241fd515
AM
25952014-08-05 Alan Modra <amodra@gmail.com>
2596
2597 * charset.c (convert_between_encodings): Cast result of obstack_base.
2598 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2599 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2600 (read_unwind_info): Use size_t for some locals.
2601 * jit.c (finalize_symtab): Likewise.
2602 * utils.c (hashtab_obstack_allocate): Likewise.
2603 * symmisc.c (print_objfile_statistics): Update format strings.
2604
dc304a94
JK
26052014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2606
2607 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2608 (Changes in GDB 7.8): ... here.
2609
3cecbbbe
TT
26102014-08-04 Tom Tromey <tromey@redhat.com>
2611
2612 * target.c (set_targetdebug): New function.
2613 (initialize_targets): Pass set_targetdebug when creating "set
2614 debug target".
2615
6908c509
JB
26162014-08-01 Joel Brobecker <brobecker@adacore.com>
2617
2618 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2619 if detecting a variable-sized field that is not the last field.
2620 Fix struct type length computation.
2621
53e8f97d
JB
26222014-08-01 Joel Brobecker <brobecker@adacore.com>
2623
2624 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2625 Add debug trace.
2626
e068c55d
JB
26272014-08-01 Joel Brobecker <brobecker@adacore.com>
2628
2629 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2630 Remove "+ 8" offset in computation of CHAIN_VMA.
2631
4d4ca2a1
DE
26322014-07-31 Doug Evans <dje@google.com>
2633
2634 * inflow.c (child_terminal_inferior): Add comment.
2635 (child_terminal_ours_for_output): Add comment.
2636 (child_terminal_ours): Add comment.
2637 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2638 (linux_nat_terminal_ours): Add comment.
2639
462f517e
GB
26402014-07-31 Gary Benson <gbenson@redhat.com>
2641
2642 * common/btrace-common.h: Do not include defs.h or server.h.
2643 * nat/mips-linux-watch.h: Likewise.
2644 * gdb-dlfcn.h: Do not include defs.h.
2645 * tracefile.h: Likewise.
2646
74228e77
RM
26472014-07-30 Roland McGrath <mcgrathr@google.com>
2648
2649 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2650
014f9477
TT
26512014-07-30 Tom Tromey <tromey@redhat.com>
2652
2653 * bsd-kvm.c (bsd_kvm_open): Constify.
2654 * corelow.c (core_open): Constify.
2655 * ctf.c (ctf_open): Constify.
2656 * dbug-rom.c (dbug_open): Constify.
2657 * exec.c (exec_open): Constify.
2658 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2659 * microblaze-rom.c (picobug_open): Constify.
2660 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2661 Constify.
2662 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2663 * record-btrace.c (record_btrace_open): Constify.
2664 * record-full.c (record_full_core_open_1, record_full_open_1)
2665 (record_full_open): Constify.
2666 * remote-m32r-sdi.c (m32r_open): Constify.
2667 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2668 (rockhopper_open, lsi_open): Constify.
2669 * remote-sim.c (gdbsim_open): Constify.
2670 * remote.c (remote_open, extended_remote_open, remote_open_1):
2671 Constify.
2672 * target.h (struct target_ops) <to_open>: Make "arg" const.
2673 * tracefile-tfile.c (tfile_open): Constify.
2674
e799154c
TT
26752014-07-30 Tom Tromey <tromey@redhat.com>
2676
2677 * breakpoint.c (map_breakpoint_numbers): Update.
2678 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2679 (get_number_const): New function.
2680 (get_number): Rewrite using get_number_const.
2681 (init_number_or_range): Make "string" const.
2682 (number_is_in_list): Make "list" const.
2683 * cli/cli-utils.h (get_number_const): Declare.
2684 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2685 (init_number_or_range, number_is_in_list): Update.
2686 * printcmd.c (map_display_numbers): Update.
2687 * value.c (value_from_history_ref): Constify.
2688 * value.h (value_from_history_ref): Update.
2689
5f08566b
TT
26902014-07-30 Tom Tromey <tromey@redhat.com>
2691
2692 * corefile.c (hook_type, call_extra_exec_file_hooks)
2693 (specify_exec_file_hook): Constify.
2694 * exec.c (exec_file_attach): Make "filename" const.
2695 * gdbcore.h (deprecated_exec_file_display_hook)
2696 (specify_exec_file_hook, exec_file_attach): Constify.
2697 * main.c (captured_main): Use catch_command_errors_const.
2698
8981c758
TT
26992014-07-30 Tom Tromey <tromey@redhat.com>
2700
2701 * target.c (open_target): New function.
2702 (add_target_with_completer, add_deprecated_target_alias): Use
2703 set_cmd_sfunc, set_cmd_context.
2704 (debug_to_open): Remove.
2705 (setup_target_debug): Update.
2706
a1c7835a
YQ
27072014-07-30 Yao Qi <yao@codesourcery.com>
2708
2709 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2710 comments.
2711 * parse.c (exp_iterate): Update comments.
2712
976411d6
GB
27132014-07-30 Gary Benson <gbenson@redhat.com>
2714
2715 * common/common-defs.h: New file.
2716 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2717 * defs.h: Include common-defs.h.
2718 Do not include config.h or build-gnulib/config.h.
2719
5d4848a4
GB
27202014-07-30 Gary Benson <gbenson@redhat.com>
2721
2722 * common/common-utils.h: Do not include config.h.
2723 * nat/linux-btrace.h: Likewise.
2724
d41f6d8e
GB
27252014-07-30 Gary Benson <gbenson@redhat.com>
2726
2727 * btrace.c: Include defs.h.
2728 * common/ptid.c: Include defs.h or server.h as appropriate.
2729 * nat/mips-linux-watch.c: Likewise.
2730
84202f9c
TT
27312014-07-29 Tom Tromey <tromey@redhat.com>
2732
2733 * target.c (target_is_pushed): Simplify.
2734
2530441c
JB
27352014-07-29 Joel Brobecker <brobecker@adacore.com>
2736
2737 GDB 7.8 released.
2738
7e09a223
YQ
27392014-07-29 Yao Qi <yao@codesourcery.com>
2740
2741 PR gdb/17206
2742 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2743
7ebdbe92
DE
27442014-07-28 Doug Evans <xdje42@gmail.com>
2745
2746 PR guile/17203
2747 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2748 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2749 parameters.
2750
f347ffc9
WN
27512014-07-28 Will Newton <will.newton@linaro.org>
2752
2753 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2754 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2755 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2756 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2757 (THUMB2_EABI_SYSCALL): Likewise.
2758 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2759 struct tramp_frame.
2760 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2761 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2762
37c5f1f7
DE
27632014-07-27 Doug Evans <xdje42@gmail.com>
2764
2765 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2766
0c3abbc7
DE
27672014-07-27 Doug Evans <xdje42@gmail.com>
2768
2769 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2770
e76c5d17
DE
27712014-07-26 Ludovic Courtès <ludo@gnu.org>
2772 Doug Evans <xdje42@gmail.com>
2773
2774 PR guile/17146
2775 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2776 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2777 * configure.ac: Try to use guild to compile an scm file, if it fails
2778 then disable guile support.
2779 * configure: Regenerate.
2780 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2781 GUILE_FILE_LIST.
2782 (GUILE_COMPILED_FILES): New variable.
2783 (GUILE_FILES) Update.
2784 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2785 (stamp-guile): Compile scm files.
2786 * guile/guile.c (boot_guile_support): New function.
2787 (standard_throw_args_p): New function.
2788 (print_standard_throw_error, print_throw_error): New functions.
2789 (handle_boot_error): New function.
2790 (initialize_scheme_side): Rewrite to call boot_guile_support.
2791 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2792 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2793
186fcde0
DE
27942014-07-26 Ludovic Courtès <ludo@gnu.org>
2795 Doug Evans <xdje42@gmail.com>
2796
2797 PR guile/17146
2798 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2799 * guile/lib/gdb/support.scm: New file.
2800 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2801 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2802 All uses updated.
2803 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2804 All uses updated.
2805 (%assert-type): Ditto, and renamed to assert-type.
2806 (%exception-print-style): Delete.
2807
4df42755
DE
28082014-07-26 Doug Evans <xdje42@gmail.com>
2809
2810 PR build/17105
2811 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2812 * configure: Regenerate.
2813 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2814 PYTHON_FILES.
2815 (PYTHON_FILES): New variable.
2816 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2817 (GUILE_FILES): New variable.
2818 (stamp-python, install-python, uninstall-python): Handle empty
2819 file list.
2820 (stamp-guile, install-guile, uninstall-guile): Ditto.
2821
ee7333ae
DE
28222014-07-26 Doug Evans <xdje42@gmail.com>
2823
2824 PR guile/17177
2825 * guile/lib/gdb.scm (pretty-printers): Export.
2826 (set-pretty-printers!): Export.
2827 * guile/lib/gdb/printing.scm (gdb module): Update.
2828 (prepend-pretty-printer!, append-pretty-printer!): Update.
2829 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2830 (pretty_printer_list_var): Delete.
2831 (pretty_printer_list): New static global.
2832 (gdbscm_pretty_printers): New function.
2833 (gdbscm_set_pretty_printers_x): New function.
2834 (ppscm_find_pretty_printer_from_gdb): Update.
2835 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2836 (gdbscm_initialize_pretty_printers): Update.
2837
74edf516
DE
28382014-07-26 Doug Evans <xdje42@gmail.com>
2839
2840 PR 17185
2841 * configure.ac: Add check for header gc/gc.h.
2842 Add check for function setenv.
2843 * configure: Regenerate.
2844 * config.in: Regenerate.
2845 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2846
d54398a7
MR
28472014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2848
2849 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2850 variation in gdbarch matching.
2851
ab16fce8
TT
28522014-07-25 Tom Tromey <tromey@redhat.com>
2853
2854 * exec.c (using_exec_ops): Remove.
2855 (exec_close_1): Update. Remove extraneous block, reindent.
2856 (add_target_sections): Use target_is_pushed.
2857
88056fbb
PA
28582014-07-25 Pedro Alves <palves@redhat.com>
2859
2860 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2861 * monitor.c (monitor_create_inferior): Likewise.
2862 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2863 * remote-sim.c (gdbsim_create_inferior): Likewise.
2864 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2865 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2866 * windows-nat.c (do_initial_windows_stuff): Likewise.
2867
70509625
PA
28682014-07-25 Pedro Alves <palves@redhat.com>
2869
2870 * NEWS: Mention signal passing and "signal" command changes.
2871 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2872 comment.
2873 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2874 call.
2875 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2876 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2877 (jump_command): Adjust clear_proceed_status call.
2878 (signal_command): Warn if other thread that are resumed have
2879 signals that will be delivered. Adjust clear_proceed_status call.
2880 (until_next_command, finish_command)
2881 (proceed_after_attach_callback, attach_command_post_wait)
2882 (attach_command): Adjust clear_proceed_status call.
2883 * infrun.c (proceed_after_vfork_done): Likewise.
2884 (proceed_after_attach_callback): Adjust comment.
2885 (clear_proceed_status_thread): Clear stop_signal if not in pass
2886 state.
2887 (clear_proceed_status_callback): Delete.
2888 (clear_proceed_status): New 'step' parameter. Only clear the
2889 proceed status of threads the command being prepared is about to
2890 resume.
2891 (proceed): If passed in an explicit signal, override stop_signal
2892 with it. Don't pass the last stop signal to the thread we're
2893 resuming.
2894 (init_wait_for_inferior): Adjust clear_proceed_status call.
2895 (switch_back_to_stepped_thread): Clear the signal if it should not
2896 be passed.
2897 * infrun.h (clear_proceed_status): New 'step' parameter.
2898 (user_visible_resume_ptid): Add comment.
2899 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2900 signal is in pass state.
2901 * remote.c (append_pending_thread_resumptions): Likewise.
2902 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2903
d8be2939
TT
29042014-07-25 Tom Tromey <tromey@redhat.com>
2905
2906 * target.h (target_stopped_data_address)
2907 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2908 parentheses.
2909
7d0d9d2b
PL
29102014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2911
2912 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2913 comments.
2914 (avr_pointer_to_address): Likewise.
2915
e9e7f724
TT
29162014-07-24 Tom Tromey <tromey@redhat.com>
2917
2918 * monitor.c (compile_pattern): Update.
2919 * target.h (struct target_ops) <to_shortname, to_longname,
2920 to_doc>: Now const.
2921
1947513d
TT
29222014-07-24 Tom Tromey <tromey@redhat.com>
2923
2924 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2925 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2926 (add_info_alias, add_com): Make "doc" const.
2927 (print_doc_line): Make "str" const.
2928 (delete_cmd): Update.
2929 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2930 (print_doc_line): Update.
2931 * cli/cli-script.c (document_command): Update.
2932 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2933 (add_com, add_info, add_info_alias): Update.
2934 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2935 * python/py-cmd.c (cmdpy_destroyer): Update.
2936
64e61d29
TT
29372014-07-24 Tom Tromey <tromey@redhat.com>
2938
2939 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2940 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2941 (help_cmd_list): Constify.
2942 (lookup_cmd): Update.
2943 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2944 const.
2945 (help_cmd_list, apropos_cmd): Update.
2946 * cli/cli-script.c (show_user): Update.
2947 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2948 * cli/cli-setshow.h (cmd_show_list): Update.
2949 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2950 (cmd_show_list): Update.
2951 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2952 * python/py-cmd.c (cmdpy_destroyer): Update.
2953
429e55ea
TT
29542014-07-24 Tom Tromey <tromey@redhat.com>
2955
2956 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2957 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2958 const.
2959 * command.h (deprecate_cmd): Update.
2960 * maint.c (maintenance_do_deprecate): Add casts.
2961
64669f3b
TT
29622014-07-24 Tom Tromey <tromey@redhat.com>
2963
2964 * cli/cli-decode.c (help_cmd): Make parameter "const".
2965 * cli/cli-decode.h (help_cmd): Update.
2966
d3d3328b
TT
29672014-07-24 Tom Tromey <tromey@redhat.com>
2968
2969 * stack.c (up_silently_base, down_silently_base): Make argument
2970 const.
2971
414842dc
TT
29722014-07-24 Tom Tromey <tromey@redhat.com>
2973
2974 * solib.c (solib_add): Make "pattern" const.
2975 * solib.h (solib_add): Update.
2976
baa336ce
TT
29772014-07-24 Tom Tromey <tromey@redhat.com>
2978
2979 * remote.c (remote_serial_open, print_packet, putpkt)
2980 (putpkt_binary): Constify.
2981 * remote.h (putpkt): Update.
2982
5a19e2d0
TT
29832014-07-24 Tom Tromey <tromey@redhat.com>
2984
2985 * monitor.c (monitor_open): Make "args" const.
2986 * monitor.h (monitor_open): Update.
2987
fc4baa5e
TT
29882014-07-24 Tom Tromey <tromey@redhat.com>
2989
2990 * maint.c (match_bfd_flags): Make "string" const.
2991 (print_bfd_section_info): Remove casts.
2992 (print_objfile_section_info): Make "string" const.
2993
0d5f0dbe
TT
29942014-07-24 Tom Tromey <tromey@redhat.com>
2995
2996 * inf-child.c (inf_child_open_target): Make "arg" const.
2997 * inf-child.h (inf_child_open_target): Update.
2998
41c77899
TT
29992014-07-24 Tom Tromey <tromey@redhat.com>
3000
3001 * environ.c (unset_in_environ): Make "var" const.
3002 * environ.h (unset_in_environ): Update.
3003
93db0d79
TT
30042014-07-24 Tom Tromey <tromey@redhat.com>
3005
3006 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3007 Make "cmd" const.
3008 (scan_filename_with_cleanup): Likewise.
3009 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3010 Make arguments const.
3011 (restore_command): Update.
3012
36d6eb95
PA
30132014-07-24 Pedro Alves <palves@redhat.com>
3014
3015 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3016
8009206a
TT
30172014-07-24 Tom Tromey <tromey@redhat.com>
3018 Gary Benson <gbenson@redhat.com>
3019
3020 * nat/linux-ptrace.c (additional_flags): New global.
3021 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3022 additional_flags; don't check GDBSERVER.
3023 (linux_ptrace_set_additional_flags): New function.
3024 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3025 Declare.
3026 * linux-nat.c (_initialize_linux_nat): Call
3027 linux_ptrace_set_additional_flags.
3028
a7068b60
TT
30292014-07-24 Tom Tromey <tromey@redhat.com>
3030
3031 * make-target-delegates (munge_type, write_debugmethod): New
3032 functions.
3033 (debug_names): New global.
3034 ($TARGET_DEBUG_PRINTER): New global.
3035 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3036 name.
3037 Write debug methods. Generate init_debug_target.
3038 * target-debug.h: New file.
3039 * target-delegates.c: Rebuild.
3040 * target.c: Include target-debug.h.
3041 (debug_target): Hoist definition.
3042 (target_kill, target_get_section_table, target_memory_map)
3043 (target_flash_erase, target_flash_done, target_detach)
3044 (target_disconnect, target_wait, target_resume)
3045 (target_pass_signals, target_program_signals, target_follow_fork)
3046 (target_mourn_inferior, target_search_memory)
3047 (target_thread_address_space, target_close)
3048 (target_find_new_threads, target_core_of_thread)
3049 (target_verify_memory, target_insert_mask_watchpoint)
3050 (target_remove_mask_watchpoint): Remove targetdebug code.
3051 (debug_to_post_attach, debug_to_prepare_to_store)
3052 (debug_to_files_info, debug_to_insert_breakpoint)
3053 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3054 (debug_to_region_ok_for_hw_watchpoint)
3055 (debug_to_can_accel_watchpoint_condition)
3056 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3057 (debug_to_watchpoint_addr_within_range)
3058 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3059 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3060 (debug_to_terminal_init, debug_to_terminal_inferior)
3061 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3062 (debug_to_terminal_save_ours, debug_to_terminal_info)
3063 (debug_to_load, debug_to_post_startup_inferior)
3064 (debug_to_insert_fork_catchpoint)
3065 (debug_to_remove_fork_catchpoint)
3066 (debug_to_insert_vfork_catchpoint)
3067 (debug_to_remove_vfork_catchpoint)
3068 (debug_to_insert_exec_catchpoint)
3069 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3070 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3071 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3072 (setup_target_debug): Call init_debug_target.
3073 * target.h (TARGET_DEBUG_PRINTER): New macro.
3074 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3075 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3076
2c51604d
GB
30772014-07-24 Gary Benson <gbenson@redhat.com>
3078
3079 * exceptions.h (throw_vfatal): Renamed to...
3080 (throw_vquit): New declaration.
3081 (throw_quit): Likewise.
3082 * exceptions.c (throw_vfatal): Renamed to...
3083 (throw_vquit): New function.
3084 (throw_quit): Likewise.
3085 (throw_error): Call throw_verror rather than throw_it.
3086 * utils.h (vfatal): Removed.
3087 (fatal): Likewise.
3088 * utils.c (vfatal): Removed.
3089 (fatal): Likewise.
3090 (internal_verror): Replaced call to fatal with call to throw_quit.
3091 (quit): Replaced calls to fatal with calls to throw_quit.
3092
34211963
ME
30932014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3094
3095 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3096 target_read_code.
3097
a52b4d3e
ME
30982014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3099
3100 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3101 less than zero in conditional expression.
3102
a8bdc56b
TT
31032014-07-23 Tom Tromey <tromey@redhat.com>
3104
3105 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3106 ($INTRO_PART): Don't match whitespace.
3107 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3108 argument matching.
3109 ($METHOD): Add $METHOD_TRAILER.
3110 (trim): Rewrite.
3111 (scan_target_h): New sub.
3112 Change main loop not to collect state.
3113 * target-delegates.c: Rebuild.
3114
91b52240
GB
31152014-07-23 Gary Benson <gbenson@redhat.com>
3116
3117 * cp-support.c (gdb_demangle): Fix build on systems without
3118 sigaltstack.
3119
45326f6f
JK
31202014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3121
3122 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3123 for reference entry value target data value.
3124
e214cf6c
JK
31252014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3126
3127 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3128 value_available_contents_eq.
3129
bddbbedd
PA
31302014-07-22 Pedro Alves <palves@redhat.com>
3131
3132 * value.c (allocate_optimized_out_value): Don't mark value as
3133 non-lazy.
3134
45c71484
JW
31352014-07-22 Jiong Wang <jiong.wang@arm.com>
3136
3137 * MAINTAINERS (Write After Approval): Update my email address.
3138
9597b22a
DE
31392014-07-20 Doug Evans <dje@google.com>
3140
3141 PR server/17147
3142 * remote.c (putpkt_binary): Add text to error message.
3143
91101fe5
YQ
31442014-07-20 Yao Qi <yao@codesourcery.com>
3145
3146 * eval.c: Remove "Chill" from comments.
3147 * gdbtypes.h: Likewise.
3148 * symtab.h: Likewise.
3149
c9402c95
YQ
31502014-07-20 Yao Qi <yao@codesourcery.com>
3151
3152 * std-operator.def: Update comments to TERNOP_SLICE.
3153
ae8fddda
YQ
31542014-07-20 Yao Qi <yao@codesourcery.com>
3155
3156 * std-operator.def: Remove BINOP_RANGE.
3157 * breakpoint.c (watchpoint_exp_is_const): Update.
3158 * expprint.c (dump_subexp_body_standard): Likewise.
3159 * eval.c (init_array_element): Remove dead code.
3160 (evaluate_subexp_standard): Likewise.
3161
9c816640
YQ
31622014-07-20 Yao Qi <yao@codesourcery.com>
3163
3164 * std-operator.def: Remove BINOP_IN.
3165 * breakpoint.c (watchpoint_exp_is_const): Update.
3166 * eval.c (evaluate_subexp_standard): Likewise.
3167 * expprint.c (dump_subexp_body_standard): Likewise.
3168
164224e9
ME
31692014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3170
3171 * microblaze-tdep.c (microblaze_register_names): Add
3172 the rshr and rslr register names.
3173 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3174 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3175 Use of tdesc_numbered_register. Use of
3176 microblaze_register_g_packet_guesses. Use of
3177 tdesc_use_registers. Use of set_gdbarch_register_type.
3178 (microblaze_register_g_packet_guesses): New.
3179 * microblaze-tdep.h (microblaze_reg_num): Add
3180 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3181 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3182 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3183 * features/microblaze-core.xml: New file.
3184 * features/microblaze-stack-protect.xml: New file.
3185 * features/microblaze-with-stack-protect.c: New file.
3186 * features/microblaze-with-stack-protect.xml: New file.
3187 * features/microblaze.xml: New file.
3188 * features/microblaze.c: New file.
3189 * features/Makefile (microblaze-with-stack-protect): Add
3190 microblaze-with-stack-protect microblaze and microblaze-expedite.
3191 * regformats/microblaze-with-stack-protect.dat: New file.
3192 * regformats/microblaze.dat: New file.
3193 * doc/gdb.texinfo (MicroBlaze Features): Added.
3194
e8b2341c
TT
31952014-07-18 Tom Tromey <tromey@redhat.com>
3196
3197 * exec.c (exec_ops): Now static.
3198 * exec.h (exec_ops): Don't declare.
3199
44e89118
TT
32002014-07-18 Tom Tromey <tromey@redhat.com>
3201
3202 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3203 to find_target_beneath.
3204 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3205 find_target_beneath.
3206 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3207
b0ed115f
TT
32082014-07-18 Tom Tromey <tromey@redhat.com>
3209
3210 PR gdb/17130:
3211 * utils.c (quit): Use target_supports_terminal_ours.
3212 * target.h (target_supports_terminal_ours): Declare.
3213 * target.c (target_supports_delete_record): Don't check
3214 to_delete_record against NULL.
3215 (target_supports_terminal_ours): New function.
3216
e75fdfca
TT
32172014-07-18 Tom Tromey <tromey@redhat.com>
3218
3219 PR gdb/17130:
3220 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3221 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3222 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3223 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3224 * windows-nat.c (windows_xfer_partial): Always delegate.
3225 * record-btrace.c (record_btrace_xfer_partial): Simplify
3226 delegation.
3227 (record_btrace_fetch_registers, record_btrace_store_registers)
3228 (record_btrace_prepare_to_store, record_btrace_resume)
3229 (record_btrace_wait, record_btrace_find_new_threads)
3230 (record_btrace_thread_alive): Likewise.
3231 * procfs.c (procfs_xfer_partial): Always delegate.
3232 * corelow.c (core_xfer_partial): Always delegate.
3233 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3234
83814951
TT
32352014-07-18 Tom Tromey <tromey@redhat.com>
3236
3237 * exec.c (exec_make_note_section): Move earlier.
3238
b8b8facf
DE
32392014-07-17 Doug Evans <dje@google.com>
3240
74b49205 3241 PR gdb/17170
b8b8facf
DE
3242 * maint.c (count_symtabs_and_blocks): Handle NULL
3243 current_program_space.
3244 (report_command_stats): Check global enabled flag in addition to
3245 recorded enabled flag.
3246 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3247
69ff6be5
PA
32482014-07-16 Pedro Alves <palves@redhat.com>
3249
3250 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3251
252db1b5
TT
32522014-07-16 Tom Tromey <tromey@redhat.com>
3253
3254 * target.h (struct target_ops) <to_delete_record>: Reformat
3255 comment.
3256
a432721e
TT
32572014-07-16 Tom Tromey <tromey@redhat.com>
3258
3259 * target-delegates.c: Rebuild.
3260
487d9753
PL
32612014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3262
3263 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3264 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3265 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3266 (avr_pointer_to_address): Likewise.
3267 (avr_address_class_type_flags): New function.
3268 (avr_address_class_type_flags_to_name): Likewise.
3269 (avr_address_class_name_to_type_flags): Likewise.
3270 (avr_gdbarch_init): Set address_class_type_flags,
3271 address_class_type_flags_to_name and
3272 address_class_name_to_type_flags.
3273
57745c90
PA
32742014-07-15 Pedro Alves <palves@redhat.com>
3275
3276 * linux-nat.c (kill_callback): Save errno and work with saved
3277 copy.
3278
2d40be18
SM
32792014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3280
3281 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3282
572f6555
EBM
32832014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3284
3285 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3286 breakpoint support correctly.
3287
cc1c52ad
PA
32882014-07-14 Pedro Alves <palves@redhat.com>
3289
3290 * utils.c (prompt_for_continue): Call target_terminal_ours.
3291
1e973570
PA
32922014-07-14 Pedro Alves <palves@redhat.com>
3293
3294 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3295 catch_errors. Don't re-enable stdin or notify observers where,
3296 and rethrow error.
3297 (fetch_inferior_event_wrapper): Delete.
3298
93d6eb10
PA
32992014-07-14 Pedro Alves <palves@redhat.com>
3300
3301 PR gdb/17072
3302 * top.c: Include "inf-loop.h".
3303 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3304 field.
3305 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3306 was async before.
3307 (gdb_readline_wrapper): Store whether the target is async, and
3308 make it sync.
3309
0017922d
PA
33102014-07-14 Pedro Alves <palves@redhat.com>
3311
3312 PR gdb/17072
3313 * top.c (gdb_readline_wrapper_line): Tweak comment.
3314 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3315 the input handler callback.
3316
94696ad3
PA
33172014-07-14 Pedro Alves <palves@redhat.com>
3318
3319 PR gdb/17072
3320 * main.c: Include event-top.h.
3321 (handle_command_errors): New function.
3322 (catch_command_errors, catch_command_errors_const): Use it.
3323
9d1e69a2
PA
33242014-07-14 Pedro Alves <palves@redhat.com>
3325
3326 * exceptions.c (catch_command_errors, catch_command_errors_const):
3327 Moved to main.c.
3328 * exceptions.h (catch_command_errors_ftype)
3329 (catch_command_errors_const_ftype): Moved to main.c.
3330 (catch_command_errors, catch_command_errors_const): Delete
3331 declarations.
3332 * main.c (catch_command_errors_ftype)
3333 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3334 (catch_command_errors, catch_command_errors_const)): Moved here
3335 from exceptions.c and make static.
3336
feefc97b
PA
33372014-07-14 Pedro Alves <palves@redhat.com>
3338
3339 * exceptions.c (print_any_exception): Delete.
3340 (catch_exceptions_with_msg): Use exception_print instead of
3341 print_any_exception.
3342 (catch_errors): Use exception_fprintf instead of
3343 print_any_exception.
3344 (catch_command_errors, catch_command_errors_const): Use
3345 exception_print instead of print_any_exception.
3346
c933f875
PA
33472014-07-14 Pedro Alves <palves@redhat.com>
3348
3349 * infcall.c (run_inferior_call): Set 'sync_execution' while
3350 running the inferior call.
3351
feb6f816
PA
33522014-07-14 Pedro Alves <palves@redhat.com>
3353
3354 * value.c (value_contents_equal): Delete function.
3355 * value.h (value_contents_equal): Delete declaration.
3356
d98b7a16
TT
33572014-07-14 Tom Tromey <tromey@redhat.com>
3358
3359 PR exp/17106:
3360 * gdbtypes.c (is_dynamic_type_internal): New function, from
3361 is_dynamic_type.
3362 (is_dynamic_type): Rewrite.
3363 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3364 (resolve_dynamic_struct): Likewise.
3365 (resolve_dynamic_type_internal): New function, from
3366 resolve_dynamic_type.
3367 (resolve_dynamic_type): Rewrite.
3368
548740d6
TT
33692014-07-14 Tom Tromey <tromey@redhat.com>
3370
3371 * target.c (target_require_runnable): Also check record_stratum.
3372 Update comment.
3373
808f7ab1
YQ
33742014-07-11 Yao Qi <yao@codesourcery.com>
3375
3376 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3377 thumb_instruction_restores_sp return true.
3378
540314bd
YQ
33792014-07-11 Yao Qi <yao@codesourcery.com>
3380
3381 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3382 (thumb_in_function_epilogue_p): Call
3383 thumb_instruction_restores_sp.
3384
1db01f22
YQ
33852014-07-11 Yao Qi <yao@codesourcery.com>
3386
3387 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3388 'add sp, #imm'.
3389 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3390
3116063b
GB
33912014-07-11 Gary Benson <gbenson@redhat.com>
3392
3393 * amd64-linux-nat.c (gdbcore.h): Remove include.
3394 (regset.h): Likewise.
3395 (nat/linux-btrace.h): Likewise.
3396 (btrace.h): Likewise.
3397 (gdb_assert.h): Likewise.
3398 (string.h): Likewise.
3399 (sys/uio.h): Likewise.
3400 (sys/debugreg.h): Likewise.
3401 (sys/syscall.h): Likewise.
3402 (sys/procfs.h): Likewise.
3403 (sys/user.h): Likewise.
3404 (asm/ptrace.h): Likewise.
3405 (i386-nat.h): Likewise.
3406 * i386-linux-nat.c (i386-nat.h): Likewise.
3407 (regset.h): Likewise.
3408 (target.h): Likewise.
3409 (linux-nat.h): Likewise.
3410 (nat/linux-btrace.h): Likewise.
3411 (btrace.h): Likewise.
3412 (gdb_assert.h): Likewise.
3413 (string.h): Likewise.
3414 (sys/uio.h): Likewise.
3415 (sys/user.h): Likewise.
3416 (sys/procfs.h): Likewise.
3417 (sys/reg.h): Likewise.
3418 (sys/debugreg.h): Likewise.
3419 (ORIG_EAX): Remove definition.
3420
040baaf6
GB
34212014-07-11 Gary Benson <gbenson@redhat.com>
3422
3423 * i386-linux-nat.h: New file.
3424 * x86-linux-nat.h: Likewise.
3425 * x86-linux-nat.c: Likewise.
3426 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3427 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3428 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3429 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3430 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3431 (PTRACE_SETREGSET): Likewise.
3432 (arch_lwp_info): Now in x86-linux-nat.c.
3433 (have_ptrace_getregset): Now in x86-linux-nat.h.
3434 (x86_linux_dr_get): Now in x86-linux-nat.c.
3435 (x86_linux_dr_set): Likewise.
3436 (x86_linux_dr_get_addr): Likewise.
3437 (x86_linux_dr_get_control): Likewise.
3438 (x86_linux_dr_get_status): Likewise.
3439 (update_debug_registers_callback): Likewise.
3440 (x86_linux_dr_set_control): Likewise.
3441 (x86_linux_dr_set_addr): Likewise.
3442 (x86_linux_prepare_to_resume): Likewise.
3443 (x86_linux_new_thread): Likewise.
3444 (x86_linux_new_fork): Likewise.
3445 (x86_linux_get_thread_area): Likewise.
3446 (super_post_startup_inferior): Likewise.
3447 (x86_linux_child_post_startup_inferior): Likewise.
3448 (AMD64_LINUX_USER64_CS): Likewise.
3449 (AMD64_LINUX_X32_DS): Likewise.
3450 (x86_linux_read_description): Likewise.
3451 (x86_linux_enable_btrace): Likewise.
3452 (x86_linux_disable_btrace): Likewise.
3453 (x86_linux_teardown_btrace): Likewise.
3454 (x86_linux_read_btrace): Likewise.
3455 (x86_linux_create_target): Likewise.
3456 (x86_linux_add_target): Likewise.
3457 * i386-linux-nat.c (x86-linux-nat.h): New include.
3458 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3459 (PTRACE_SETREGSET): Likewise.
3460 (arch_lwp_info): Now in x86-linux-nat.c.
3461 (have_ptrace_getregset): Now in x86-linux-nat.h.
3462 (x86_linux_dr_get): Now in x86-linux-nat.c.
3463 (x86_linux_dr_set): Likewise.
3464 (x86_linux_dr_get_addr): Likewise.
3465 (x86_linux_dr_get_control): Likewise.
3466 (x86_linux_dr_get_status): Likewise.
3467 (update_debug_registers_callback): Likewise.
3468 (x86_linux_dr_set_control): Likewise.
3469 (x86_linux_dr_set_addr): Likewise.
3470 (x86_linux_prepare_to_resume): Likewise.
3471 (x86_linux_new_thread): Likewise.
3472 (x86_linux_new_fork): Likewise.
3473 (x86_linux_get_thread_area): Likewise.
3474 (super_post_startup_inferior): Likewise.
3475 (x86_linux_child_post_startup_inferior): Likewise.
3476 (AMD64_LINUX_USER64_CS): Likewise.
3477 (AMD64_LINUX_X32_DS): Likewise.
3478 (x86_linux_read_description): Likewise.
3479 (x86_linux_enable_btrace): Likewise.
3480 (x86_linux_disable_btrace): Likewise.
3481 (x86_linux_teardown_btrace): Likewise.
3482 (x86_linux_read_btrace): Likewise.
3483 (x86_linux_create_target): Likewise.
3484 (x86_linux_add_target): Likewise.
3485
1aa7e42c
GB
34862014-07-11 Gary Benson <gbenson@redhat.com>
3487
3488 * amd64-linux-nat.c: Comment and whitespace changes.
3489 * i386-linux-nat.c: Comment and whitespace changes.
3490
c1e246a0
GB
34912014-07-11 Gary Benson <gbenson@redhat.com>
3492
3493 * amd64-linux-nat.c (x86_linux_create_target): New function.
3494 (x86_linux_add_target): Likewise.
3495 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3496 * i386-linux-nat.c (x86_linux_create_target): New function.
3497 (x86_linux_add_target): Likewise.
3498 (_initialize_i386_linux_nat): Delegate to the above new functions.
3499
8c420b8d
GB
35002014-07-11 Gary Benson <gbenson@redhat.com>
3501
3502 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3503 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3504 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3505 (ps_get_thread_area): Delegate to the above.
3506
cb1da100
GB
35072014-07-11 Gary Benson <gbenson@redhat.com>
3508
3509 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3510 x86_linux_read_description. All uses updated. amd64-specific
3511 code conditionalized. Conditionalized i386-specific code added.
3512 Redundant cast removed.
3513 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3514 x86_linux_read_description. All uses updated. i386-specific
3515 code conditionalized. Conditionalized amd64-specific code added.
3516 One sizeof replaced with the actual type it is describing.
3517
2acf3cd0
GB
35182014-07-11 Gary Benson <gbenson@redhat.com>
3519
3520 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3521 x86_linux_dr_get. All uses updated.
3522 (amd64_linux_dr_set): Renamed to
3523 x86_linux_dr_set. All uses updated.
3524 (amd64_linux_dr_get_addr): Renamed to
3525 x86_linux_dr_get_addr. All uses updated.
3526 (amd64_linux_dr_get_control): Renamed to
3527 x86_linux_dr_get_control. All uses updated.
3528 (amd64_linux_dr_get_status): Renamed to
3529 x86_linux_dr_get_status. All uses updated.
3530 (amd64_linux_dr_set_control): Renamed to
3531 x86_linux_dr_set_control. All uses updated.
3532 (amd64_linux_dr_set_addr): Renamed to
3533 x86_linux_dr_set_addr. All uses updated.
3534 (amd64_linux_prepare_to_resume): Renamed to
3535 x86_linux_prepare_to_resume. All uses updated.
3536 (amd64_linux_new_thread): Renamed to
3537 x86_linux_new_thread. All uses updated.
3538 (amd64_linux_new_fork): Renamed to
3539 x86_linux_new_fork. All uses updated.
3540 (amd64_linux_child_post_startup_inferior): Renamed to
3541 x86_linux_child_post_startup_inferior. All uses updated.
3542 (amd64_linux_enable_btrace): Renamed to
3543 x86_linux_enable_btrace. All uses updated.
3544 (amd64_linux_disable_btrace): Renamed to
3545 x86_linux_disable_btrace. All uses updated.
3546 (amd64_linux_teardown_btrace): Renamed to
3547 x86_linux_teardown_btrace. All uses updated.
3548 (amd64_linux_read_btrace): Renamed to
3549 x86_linux_read_btrace. All uses updated.
3550 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3551 x86_linux_dr_get. All uses updated.
3552 (i386_linux_dr_set): Renamed to
3553 x86_linux_dr_set. All uses updated.
3554 (i386_linux_dr_get_addr): Renamed to
3555 x86_linux_dr_get_addr. All uses updated.
3556 (i386_linux_dr_get_control): Renamed to
3557 x86_linux_dr_get_control. All uses updated.
3558 (i386_linux_dr_get_status): Renamed to
3559 x86_linux_dr_get_status. All uses updated.
3560 (i386_linux_dr_set_control): Renamed to
3561 x86_linux_dr_set_control. All uses updated.
3562 (i386_linux_dr_set_addr): Renamed to
3563 x86_linux_dr_set_addr. All uses updated.
3564 (i386_linux_prepare_to_resume): Renamed to
3565 x86_linux_prepare_to_resume. All uses updated.
3566 (i386_linux_new_thread): Renamed to
3567 x86_linux_new_thread. All uses updated.
3568 (i386_linux_new_fork): Renamed to
3569 x86_linux_new_fork. All uses updated.
3570 (i386_linux_child_post_startup_inferior): Renamed to
3571 x86_linux_child_post_startup_inferior. All uses updated.
3572 (i386_linux_enable_btrace): Renamed to
3573 x86_linux_enable_btrace. All uses updated.
3574 (i386_linux_disable_btrace): Renamed to
3575 x86_linux_disable_btrace. All uses updated.
3576 (i386_linux_teardown_btrace): Renamed to
3577 x86_linux_teardown_btrace. All uses updated.
3578 (i386_linux_read_btrace): Renamed to
3579 x86_linux_read_btrace. All uses updated.
3580
b9c1d481
AS
35812014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3582
3583 * remote.c (extended_remote_post_attach): New function.
3584 (init_extended_remote_ops): Install it as to_post_attach method.
3585
7180e04a
PA
35862014-07-09 Pedro Alves <palves@redhat.com>
3587
3588 * infcmd.c (attach_command_post_wait): Don't call
3589 target_terminal_inferior here.
3590 (attach_command): Call it here instead.
3591
9a9a7608
AB
35922014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3593
3594 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3595 field.
3596 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3597 from varobj.c, with additional checks.
3598 (c_varobj_ops): Fill in is_path_expr_parent field.
3599 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3600 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3601 field.
3602 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3603 ops method.
3604 (varobj_default_is_path_expr_parent): New function.
3605 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3606 (varobj_default_is_path_expr_parent): Declare new function.
3607
1f267ae3
MM
36082014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3609
3610 * infcmd.c (finish_backward): Turn internal error into normal error.
3611
b2ee242b
PA
36122014-07-07 Pedro Alves <palves@redhat.com>
3613
8a869bca 3614 PR gdb/17096
b2ee242b
PA
3615 * remote.c (async_handle_remote_sigint)
3616 (async_handle_remote_sigint_twice): Call
3617 gdb_call_async_signal_handler instead of
3618 mark_async_signal_handler.
3619
38e229b2
TT
36202014-07-07 Tom Tromey <tromey@redhat.com>
3621
3622 * target-delegates.c: Rebuild.
3623 * target.c (target_info_record): Remove.
3624 * record.c (info_record_command): Unconditionally call
3625 to_info_record.
3626 * target.h (struct target_ops) <to_info_record>: Use
3627 TARGET_DEFAULT_IGNORE.
3628 (target_info_record): Remove.
3629
f0f9ff95
TT
36302014-07-07 Tom Tromey <tromey@redhat.com>
3631
3632 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3633 TARGET_DEFAULT_NORETURN.
3634 * target.c (generic_tls_error): New function.
3635 (target_translate_tls_address): Don't search target stack.
3636 * target-delegates.c: Rebuild.
3637 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3638 stack.
3639 * linux-thread-db.c (thread_db_get_thread_local_address):
3640 Unconditionally call beneath target.
3641
4a5be5ee
MK
36422014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3643
3644 * cli/cli-logging.c (pop_output_files): Assign targerr to
3645 gdb_stdtargerr.
3646
92c3b204
AB
36472014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * MAINTAINERS (Write After Approval): Update my email address.
3650
9b11e3a7
GB
36512014-07-02 Gary Benson <gbenson@redhat.com>
3652
3653 * proc-service.c (ps_xfer_memory): Update comment.
3654 (ps_pstop): Remove unused function.
3655 (ps_pcontinue): Likewise.
3656 (ps_lstop): Likewise.
3657 (ps_lcontinue): Likewise.
3658 (ps_lgetxregsize): Likewise.
3659 (ps_lgetxregs): Likewise.
3660 (ps_lsetxregs): Likewise.
3661 (ps_plog): Likewise.
3662 (ps_ptread): Likewise.
3663 (ps_ptwrite): Likewise.
3664
cf363f18
MW
36652014-07-01 Mark Wielaard <mjw@redhat.com>
3666
3667 * dwarf2read.c (add_array_cv_type): New function.
3668 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3669 (read_tag_volatile_type): Likewise.
3670
82ae6c8d
TT
36712014-07-01 Tom Tromey <tromey@redhat.com>
3672
3673 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3674 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3675 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3676 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3677 * command.h (cmd_cfunc_ftype): Move earlier.
3678 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3679 (add_com, add_info): Use cmd_cfunc_ftype.
3680
96142726
TT
36812014-06-30 Tom Tromey <tromey@redhat.com>
3682
3683 * symtab.c (operator_chars): Make parameters and return type
3684 const.
3685 (file_matches): Make "files" const.
3686 (struct search_symbols_data) <files>: Now const.
3687 (search_symbols): Make "regexp" and "files" parameters const.
3688 Update.
3689 (symtab_symbol_info): Remove cast.
3690 (rbreak_command): Update.
3691 * symtab.h (search_symbols): Update.
3692
b67a2c6f
YQ
36932014-06-27 Yao Qi <yao@codesourcery.com>
3694
3695 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3696 Change parameter type to 'struct thread_info *'. Caller
3697 updated.
3698 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3699 Update declaration.
3700 * dummy-frame.c (struct dummy_frame_id): New.
3701 (dummy_frame_id_eq): New function.
3702 (struct dummy_frame) <id>: Change its type to 'struct
3703 dummy_frame_id'.
3704 (dummy_frame_push): Add parameter ptid and save it in
3705 dummy_frame_id.
3706 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3707 inferior_ptid.
3708 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3709 to inferior_ptid.
3710 (lookup_dummy_frame): Change parameter type to 'struct
3711 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3712 instead of frame_id_eq.
3713 (dummy_frame_pop): Add parameter ptid. Callers updated.
3714 Update comments. Compose dummy_frame_id and pass it to
3715 lookup_dummy_frame.
3716 (dummy_frame_discard): Add parameter ptid.
3717 (dummy_frame_sniffer): Compose dummy_frame_id and call
3718 dummy_frame_id_eq instead of frame_id_eq.
3719 (fprint_dummy_frames): Print ptid.
3720 * dummy-frame.h: Remove comments.
3721 (dummy_frame_push): Add ptid in declaration.
3722 (dummy_frame_pop, dummy_frame_discard): Likewise.
3723
5b10184c
TT
37242014-06-26 Tom Tromey <tromey@redhat.com>
3725
3726 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3727 * command.h (error_no_arg): Update.
3728
06900326
TT
37292014-06-26 Tom Tromey <tromey@redhat.com>
3730
3731 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3732 (do_show_command): Make "arg" const.
3733 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3734
c2bcbb1d
TT
37352014-06-26 Tom Tromey <tromey@redhat.com>
3736
3737 * record-full.c (record_full_get_bookmark): Make "args" const.
3738 (record_full_goto_bookmark): Make "raw_bookmark" const.
3739 * record.c (record_goto): New function.
3740 (cmd_record_goto): Use it. Now static.
3741 * record.h (record_goto): Declare.
3742 (cmd_record_goto): Remove declaration.
3743 * target-delegates.c: Rebuild.
3744 * target.h (struct target_ops) <to_get_bookmark,
3745 to_goto_bookmark>: Make parameter const.
3746
9cbe5fff
TT
37472014-06-26 Tom Tromey <tromey@redhat.com>
3748
3749 * defs.h (generic_load): Update.
3750 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3751 * monitor.c (monitor_load): Make "args" const.
3752 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3753 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3754 const.
3755 (mips_load): Make "file" const.
3756 * remote-sim.c (gdbsim_load): Make "args" const.
3757 * remote.c (remote_load): Make "name" const.
3758 * symfile.c (generic_load): Make "args" const.
3759 * target-delegates.c: Rebuild.
3760 * target.c (target_load): Make "arg" const.
3761 (debug_to_load): Make "args" const.
3762 * target.h (struct target_ops) <to_load>: Make parameter const.
3763 (target_load): Update.
3764
34a68019
TT
37652014-06-26 Tom Tromey <tromey@redhat.com>
3766
3767 PR symtab/16902:
3768 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3769 (dwarf2_physname, read_partial_die)
3770 (guess_partial_die_structure_name, fixup_partial_die)
3771 (guess_full_die_structure_name, anonymous_struct_prefix)
3772 (dwarf2_name): Use per-BFD obstack.
3773
efc889c1
YQ
37742014-06-26 Yao Qi <yao@codesourcery.com>
3775
3776 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3777 dummyframe and this_id into inner block below.
3778
4395285e
YQ
37792014-06-26 Yao Qi <yao@codesourcery.com>
3780
3781 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3782 with "signal_pass[0]" in the initialization of signal_pass.
3783
aef92902
MM
37842014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3785
3786 * record-btrace.c (record_btrace_generating_corefile)
3787 (record_btrace_prepare_to_generate_core)
3788 (record_btrace_done_generating_core): New.
3789 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3790 (record_btrace_store_registers, record_btrace_prepare_to_store):
3791 Forward request when generating a core file.
3792 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3793 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3794 to_done_generating_core.
3795
5fff78c4
MM
37962014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3797
3798 * target.h (target_ops) <to_prepare_to_generate_core>
3799 <to_done_generating_core>: New.
3800 (target_prepare_to_generate_core, target_done_generating_core): New.
3801 * target.c (target_prepare_to_generate_core)
3802 (target_done_generating_core): New.
3803 * target-delegates.c: Regenerate.
3804 * gcore.c: (write_gcore_file): Rename to ...
3805 (write_gcore_file_1): ...this.
3806 (write_gcore_file): Call target_prepare_to_generate_core
3807 and target_done_generating_core.
3808
1d1f1ccb
MM
38092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3810
3811 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3812 * gcore.c (write_gcore_file): Free memory returned from
3813 make_corefile_notes.
3814 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3815 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3816
3343ef86
YQ
38172014-06-24 Yao Qi <yao@codesourcery.com>
3818
3819 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3820 (arm_linux_init_abi): Set skip_trampoline_code with
3821 gdbarch_skip_trampoline_code instead of
3822 find_solib_trampoline_target.
3823
18d18ac8
YQ
38242014-06-24 Yao Qi <yao@codesourcery.com>
3825
3826 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3827 arm_skip_bx_reg returns non-zero.
3828
80d8d390
YQ
38292014-06-24 Yao Qi <yao@codesourcery.com>
3830
3831 * arm-tdep.c (arm_skip_bx_reg): New function.
3832 (arm_skip_stub): Call arm_skip_bx_reg.
3833
6a18a01c
DB
38342014-06-23 Don Breazeal <donb@codesourcery.com>
3835
3836 * MAINTAINERS: Add myself as write-after-approval maintainer.
3837
8e9db26e
PA
38382014-06-23 Pedro Alves <palves@redhat.com>
3839
3840 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3841 DR_CONTROL before setting DR0..DR3.
3842 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3843 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3844 bits of DR_CONTROL related to the debug register slot being
3845 disabled. If all slots are vacant, clear local slowdown as well,
3846 and assert DR_CONTROL is 0.
3847
70afc5b7
SC
38482014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3849
3850 * python/lib/gdb/command/xmethods.py
3851 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3852 current progspace only if the string "progspace" matches LOCUS_RE.
3853
840ed64d
JK
38542014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3855
3856 Fix --with-system-readline with readline-6.3 patch 5.
3857 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3858 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3859 types.
3860
26f2dc30
TT
38612014-06-20 Tom Tromey <tromey@redhat.com>
3862
3863 * dwarf2read.c (dw2_get_real_path): Use correct type in
3864 OBSTACK_CALLOC.
3865 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3866
125f8a3d
GB
38672014-06-20 Gary Benson <gbenson@redhat.com>
3868
3869 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3870 * common/glibc_thread_db.h: Likewise.
3871 * common/i386-cpuid.h: Likewise.
3872 * common/i386-gcc-cpuid.h: Likewise.
3873 * common/linux-btrace.h: Likewise.
3874 * common/linux-osdata.h: Likewise.
3875 * common/linux-procfs.h: Likewise.
3876 * common/linux-ptrace.h: Likewise.
3877 * common/mips-linux-watch.h: Likewise.
3878 * common/linux-btrace.c: Moved to nat.
3879 * common/linux-osdata.c: Likewise.
3880 * common/linux-procfs.c: Likewise.
3881 * common/linux-ptrace.c: Likewise.
3882 * common/mips-linux-watch.c: Likewise.
3883 * nat/gdb_thread_db.h: Moved from common.
3884 * nat/glibc_thread_db.h: Likewise.
3885 * nat/i386-cpuid.h: Likewise.
3886 * nat/i386-gcc-cpuid.h: Likewise.
3887 * nat/linux-btrace.c: Likewise.
3888 * nat/linux-btrace.h: Likewise.
3889 * nat/linux-osdata.c: Likewise.
3890 * nat/linux-osdata.h: Likewise.
3891 * nat/linux-procfs.c: Likewise.
3892 * nat/linux-procfs.h: Likewise.
3893 * nat/linux-ptrace.c: Likewise.
3894 * nat/linux-ptrace.h: Likewise.
3895 * nat/mips-linux-watch.c: Likewise.
3896 * nat/mips-linux-watch.h: Likewise.
3897 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3898 (object file files): Reordered.
3899 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3900 of glibc_thread_db.h.
3901
42995dbd
GB
39022014-06-20 Gary Benson <gbenson@redhat.com>
3903
3904 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3905 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3906 (i386_dr_low): Likewise.
3907 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3908 (i386_dr_low_set_addr): Likewise.
3909 (i386_dr_low_get_addr): Likewise.
3910 (i386_dr_low_can_set_control): Likewise.
3911 (i386_dr_low_set_control): Likewise.
3912 (i386_dr_low_get_control): Likewise.
3913 (i386_dr_low_get_status): Likewise.
3914 (i386_get_debug_register_length): Likewise.
3915 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3916 (i386_dr_low): Likewise.
3917 * nat/i386-dregs.c (i386-low.h): Remove include.
3918 (i386-nat.h): Likewise.
3919 (nat/i386-dregs.h): New include.
3920 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3921 (i386_dr_low_set_addr): Likewise.
3922 (i386_dr_low_get_addr): Likewise.
3923 (i386_dr_low_can_set_control): Likewise.
3924 (i386_dr_low_set_control): Likewise.
3925 (i386_dr_low_get_control): Likewise.
3926 (i386_dr_low_get_status): Likewise.
3927 (i386_get_debug_register_length): Likewise.
3928 (debug_hw_points): Likewise.
3929
3ed9baed
IB
39302014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3931
3932 * Makefile.in (SFILES): Add d-exp.y.
3933 (YYFILES): Add d-exp.c.
3934 (YYOBJ): Add d-exp.o.
3935 (local-maintainer-clean): Delete d-exp.c.
3936 * d-exp.y: New file.
3937 * d-lang.h (d_parse): New declaration.
3938 (d_error): New declaration.
3939 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3940 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3941 PREC_ORDER operators.
3942 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3943
78c164b0
YQ
39442014-06-19 Yao Qi <yao@codesourcery.com>
3945
3946 * gdbthread.h (any_running): Remove the declaration.
3947 * thread.c (any_running): Remove.
3948
f6e29b6e
YQ
39492014-06-19 Yao Qi <yao@codesourcery.com>
3950
3951 * gdbthread.h (struct thread_info) <state>: Change its type to
3952 'enum thread_state'. Update comments.
3953
034f788c
PA
39542014-06-19 Pedro Alves <palves@redhat.com>
3955
3956 * gdbthread.h (ALL_THREADS): Delete.
3957 (ALL_NON_EXITED_THREADS): New macro.
3958 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3959 instead of ALL_THREADS.
3960 * infrun.c (find_thread_needs_step_over)
3961 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3962 instead of ALL_THREADS.
3963 * record-btrace.c (record_btrace_open)
3964 (record_btrace_stop_recording, record_btrace_close)
3965 (record_btrace_is_replaying, record_btrace_resume)
3966 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3967 * remote.c (append_pending_thread_resumptions): Likewise.
3968 * thread.c (thread_apply_all_command): Likewise.
3969
46e33252
GB
39702014-06-19 Gary Benson <gbenson@redhat.com>
3971
3972 * i386-nat.c (i386_stopped_by_watchpoint):
3973 Use i386_dr_stopped_by_watchpoint.
3974 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3975 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3976
3a8ee006
GB
39772014-06-19 Gary Benson <gbenson@redhat.com>
3978
3979 * nat/i386-dregs.c: New file.
3980 * Makefile.in (i386-dregs.o): New rule.
3981 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3982 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3983 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3984 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3985 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3986 * config/i386/go32.mh (NATDEPFILES): Likewise.
3987 * config/i386/linux.mh (NATDEPFILES): Likewise.
3988 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3989 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3990 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3991 * i386-nat.h (debug_hw_points): New declaration.
3992 * i386-nat.c (breakpoint.h): Remove include.
3993 (command.h): Likewise.
3994 (target.h): Likewise.
3995 (gdb_assert.h): Likewise.
3996 (debug_hw_points): Made nonstatic.
3997 (debug_printf): Now in i386-dregs.c.
3998 (TARGET_HAS_DR_LEN_8): Likewise.
3999 (DR_CONTROL_SHIFT): Likewise.
4000 (DR_CONTROL_SIZE): Likewise.
4001 (DR_RW_EXECUTE): Likewise.
4002 (DR_RW_WRITE): Likewise.
4003 (DR_RW_READ): Likewise.
4004 (DR_RW_IORW): Likewise.
4005 (DR_LEN_1): Likewise.
4006 (DR_LEN_2): Likewise.
4007 (DR_LEN_4): Likewise.
4008 (DR_LEN_8): Likewise.
4009 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4010 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4011 (DR_ENABLE_SIZE): Likewise.
4012 (DR_LOCAL_SLOWDOWN): Likewise.
4013 (DR_GLOBAL_SLOWDOWN): Likewise.
4014 (DR_CONTROL_RESERVED): Likewise.
4015 (I386_DR_CONTROL_MASK): Likewise.
4016 (I386_DR_VACANT): Likewise.
4017 (I386_DR_LOCAL_ENABLE): Likewise.
4018 (I386_DR_GLOBAL_ENABLE): Likewise.
4019 (I386_DR_DISABLE): Likewise.
4020 (I386_DR_SET_RW_LEN): Likewise.
4021 (I386_DR_GET_RW_LEN): Likewise.
4022 (I386_DR_WATCH_HIT): Likewise.
4023 (i386_wp_op_t): Likewise.
4024 (i386_show_dr): Likewise.
4025 (i386_length_and_rw_bits): Likewise.
4026 (i386_insert_aligned_watchpoint): Likewise.
4027 (i386_remove_aligned_watchpoint): Likewise.
4028 (i386_handle_nonaligned_watchpoint): Likewise.
4029 (i386_update_inferior_debug_regs): Likewise.
4030 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4031 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4032 (i386_region_ok_for_watchpoint):
4033 Use i386_dr_region_ok_for_watchpoint.
4034 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4035
322a8e06
GB
40362014-06-19 Gary Benson <gbenson@redhat.com>
4037
4038 * i386-nat.c (i386_insert_hw_breakpoint): Use
4039 i386_insert_watchpoint.
4040 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4041
8f26655c
GB
40422014-06-19 Gary Benson <gbenson@redhat.com>
4043
4044 * i386-nat.c (i386_dr_show): Renamed to
4045 i386_show_dr and made static. All uses updated.
4046 (i386_dr_length_and_rw_bits): Renamed to
4047 i386_length_and_rw_bits and made static.
4048 All uses updated.
4049 (i386_dr_insert_aligned_watchpoint): Renamed to
4050 i386_insert_aligned_watchpoint and made static.
4051 All uses updated.
4052 (i386_dr_remove_aligned_watchpoint): Renamed to
4053 i386_remove_aligned_watchpoint and made static.
4054 All uses updated.
4055 (i386_dr_update_inferior_debug_regs): Renamed to
4056 i386_update_inferior_debug_regs and made static.
4057 All uses updated.
4058 * nat/i386-dregs.h (i386_dr_show): Removed.
4059 (i386_dr_length_and_rw_bits): Likewise.
4060 (i386_dr_insert_aligned_watchpoint): Likewise.
4061 (i386_dr_remove_aligned_watchpoint): Likewise.
4062 (i386_dr_update_inferior_debug_regs): Likewise.
4063
992c7d70
GB
40642014-06-19 Gary Benson <gbenson@redhat.com>
4065
4066 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4067 * configure: Regenerate.
4068 * config.in: Likewise.
4069 * main.c (signal.h): New include.
4070 (setup_alternate_signal_stack): New function.
4071 (captured_main): Call the above.
4072 * cp-support.c (signal.h): New include.
4073 (catch_demangler_crashes): New flag.
4074 (SIGJMP_BUF): New define.
4075 (SIGSETJMP): Likewise.
4076 (SIGLONGJMP): Likewise.
4077 (gdb_demangle_jmp_buf): New static global.
4078 (gdb_demangle_attempt_core_dump): Likewise.
4079 (gdb_demangle_signal_handler): New function.
4080 (gdb_demangle): If catch_demangler_crashes is set, install the
4081 above signal handler before calling bfd_demangle, and restore
4082 the original signal handler afterwards. Display the offending
4083 symbol and call demangler_warning the first time a segmentation
4084 fault is caught.
4085 (_initialize_cp_support): New maint set/show command.
4086
eae7090b
GB
40872014-06-19 Gary Benson <gbenson@redhat.com>
4088
4089 * utils.h (resource_limit_kind): New enum.
4090 (can_dump_core): New declaration.
4091 (warn_cant_dump_core): Likewise.
4092 (dump_core): Likewise.
4093 * utils.c (dump_core): Made nonstatic. Added new
4094 parameter "limit_kind".
4095 (can_dump_core): Made nonstatic. Moved printing code to...
4096 (warn_cant_dump_core): New function.
4097 (can_dump_core_warn): Likewise.
4098 (internal_vproblem): Replace calls to can_dump_core with
4099 calls to can_dump_core_warn. Supply new argument to each.
4100
57fcfb1b
GB
41012014-06-19 Gary Benson <gbenson@redhat.com>
4102
4103 * utils.h (demangler_vwarning): New declaration.
4104 (demangler_warning): Likewise.
4105 * utils.c (struct internal_problem)
4106 <user_settable_should_quit>: New field.
4107 <user_settable_should_dump_core>: Likewise
4108 (internal_error_problem): Add values for above new fields.
4109 (internal_warning_problem): Likewise.
4110 (demangler_warning_problem): New static global.
4111 (demangler_vwarning): New function.
4112 (demangler_warning): Likewise.
4113 (add_internal_problem_command): Selectively add commands.
4114 (_initialize_utils): New internal problem command.
4115 * maint.c (maintenance_demangler_warning): New function.
4116 (_initialize_maint_cmds): New command.
4117
17a40b44
TT
41182014-06-18 Tom Tromey <tromey@redhat.com>
4119
4120 * f-valprint.c (info_common_command_for_block): Update.
4121 * symtab.h (struct general_symbol_info) <common_block>: Now
4122 const.
4123
346d1dfe
TT
41242014-06-18 Tom Tromey <tromey@redhat.com>
4125
4126 * symtab.h (struct symtab) <blockvector>: Now const.
4127 * ada-lang.c (ada_add_global_exceptions): Update.
4128 * buildsym.c (augment_type_symtab): Update.
4129 * dwarf2read.c (dw2_lookup_symbol): Update.
4130 * jit.c (finalize_symtab): Update.
4131 * jv-lang.c (add_class_symtab_symbol): Update.
4132 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4133 Update.
4134 * objfiles.c (objfile_relocate1): Update.
4135 * psymtab.c (lookup_symbol_aux_psymtabs)
4136 (maintenance_check_psymtabs): Update.
4137 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4138 Update.
4139 * spu-tdep.c (spu_catch_start): Update.
4140 * symmisc.c (dump_symtab_1): Update.
4141 * symtab.c (lookup_global_symbol_from_objfile)
4142 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4143 (basic_lookup_transparent_type_quick)
4144 (basic_lookup_transparent_type, find_pc_sect_symtab)
4145 (find_pc_sect_line, search_symbols): Update.
4146 * block.c (find_block_in_blockvector): Make "bl" const.
4147 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4148 const.
4149 (blockvector_contains_pc): Make "bv" const.
4150 (block_for_pc_sect): Update.
4151 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4152 (blockvector_contains_pc): Update.
4153 * breakpoint.c (resolve_sal_pc): Update.
4154 * inline-frame.c (block_starting_point_at): Update.
4155
1834676b
TT
41562014-06-18 Tom Tromey <tromey@redhat.com>
4157
4158 * completer.c (complete_line): Make "line_buffer" const.
4159 * completer.h (complete_line): Update.
4160
ac1a991b
TT
41612014-06-18 Tom Tromey <tromey@redhat.com>
4162
4163 * symtab.c (add_macro_name): Remove unneeded cast.
4164
5bc98e52
TT
41652014-06-18 Tom Tromey <tromey@redhat.com>
4166
4167 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4168 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4169
8236def8
TT
41702014-06-18 Tom Tromey <tromey@redhat.com>
4171
4172 * probe.c (info_probes_for_ops): Make "arg" const.
4173 * probe.h (info_probes_for_ops): Update.
4174
3977b71f
TT
41752014-06-18 Tom Tromey <tromey@redhat.com>
4176
4177 * varobj.c (varobj_create): Update.
4178 * valops.c (value_of_this): Update.
4179 * tracepoint.c (add_local_symbols, scope_info): Update.
4180 * symtab.h (struct general_symbol_info) <block>: Now const.
4181 * symtab.c (skip_prologue_sal)
4182 (default_make_symbol_completion_list_break_on)
4183 (skip_prologue_using_sal): Update.
4184 * stack.h (iterate_over_block_locals)
4185 (iterate_over_block_local_vars): Update.
4186 * stack.c (print_frame_args): Update.
4187 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4188 parameter const.
4189 (get_selected_block): Make return type const.
4190 * python/py-frame.c (frapy_block): Update.
4191 * python/py-block.c (gdbpy_block_for_pc): Update.
4192 * p-exp.y (%union) <bval>: Now const.
4193 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4194 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4195 * m2-exp.y (%union) <bval>: Now const.
4196 * linespec.c (get_current_search_block): Make return type const.
4197 (create_sals_line_offset, find_label_symbols): Update.
4198 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4199 Update.
4200 (block_starting_point_at): Make "block" const.
4201 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4202 (check_exception_resume): Update.
4203 * guile/scm-frame.c (gdbscm_frame_block): Update.
4204 * guile/scm-block.c (gdbscm_lookup_block): Update.
4205 * frame.h (get_frame_block): Update.
4206 (get_selected_block): Make return type const.
4207 * frame.c (frame_id_inner): Update.
4208 * f-valprint.c (info_common_command_for_block)
4209 (info_common_command): Update.
4210 * dwarf2loc.c (dwarf2_find_location_expression)
4211 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4212 (locexpr_describe_location_piece): Update.
4213 * c-exp.y (%union) <bval>: Now const.
4214 * breakpoint.c (resolve_sal_pc): Update.
4215 * blockframe.c (get_frame_block):Make return type const.
4216 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4217 (block_innermost_frame): Update.
4218 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4219 (block_for_pc, block_for_pc_sect): Update.
4220 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4221 'pblock' const.
4222 (block_for_pc_sect, block_for_pc): Make return type const.
4223 * ax-gdb.c (gen_expr): Update.
4224 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4225 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4226 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4227 (ada_read_var_value): Update.
4228 * ada-exp.y (struct name_info) <block>: Now const.
4229 (%union): Likewise.
4230 (block_lookup): Constify.
4231
b9228891
GB
42322014-06-18 Gary Benson <gbenson@redhat.com>
4233
4234 * nat/i386-dregs.h: New file.
4235 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4236 * i386-nat.h (i386-dregs.h): New include.
4237 (DR_FIRSTADDR): Now in i386-dregs.h.
4238 (DR_LASTADDR): Likewise.
4239 (DR_NADDR): Likewise.
4240 (DR_STATUS): Likewise.
4241 (DR_CONTROL): Likewise.
4242 (i386_debug_reg_state): Likewise.
4243 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4244
a1aa2221
LM
42452014-06-18 Don Breazeal <donb@codesourcery.com>
4246
4247 * breakpoint.c (set_longjmp_breakpoint): Call
4248 momentary_breakpoint_from_master with additional argument.
4249 (set_longjmp_breakpoint_for_call_dummy): Call
4250 momentary_breakpoint_from_master with additional argument.
4251 (set_std_terminate_breakpoint): Call
4252 momentary_breakpoint_from_master with additional argument.
4253 (momentary_breakpoint_from_master): Add argument to function
4254 definition and use it to initialize structure member flag.
74228e77 4255 (clone_momentary_breakpoint): Call
a1aa2221
LM
4256 momentary_breakpoint_from_master with additional argument.
4257 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4258 member flags set in momentary_breakpoint_from_master.
4259
4be83cc2
GB
42602014-06-18 Gary Benson <gbenson@redhat.com>
4261
4262 * i386-nat.c (i386_show_dr): Renamed to
4263 i386_dr_show and made nonstatic. All uses updated.
4264 (i386_length_and_rw_bits): Renamed to
4265 i386_dr_length_and_rw_bits and made nonstatic.
4266 All uses updated.
4267 (i386_insert_aligned_watchpoint): Renamed to
4268 i386_dr_insert_aligned_watchpoint and made nonstatic.
4269 All uses updated.
4270 (i386_remove_aligned_watchpoint): Renamed to
4271 i386_dr_remove_aligned_watchpoint and made nonstatic.
4272 All uses updated.
4273 (i386_update_inferior_debug_regs): Renamed to
4274 i386_dr_update_inferior_debug_regs and made nonstatic.
4275 All uses updated.
4276
131aa0d4
GB
42772014-06-18 Gary Benson <gbenson@redhat.com>
4278
4279 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4280 (i386_dr_low_can_set_control): Likewise.
4281 (i386_dr_low_set_addr): Likewise.
4282 (i386_dr_low_set_control): Likewise.
4283 (i386_dr_low_get_addr): Likewise.
4284 (i386_dr_low_get_status): Likewise.
4285 (i386_dr_low_get_control): Likewise.
4286 (i386_insert_aligned_watchpoint): Use new macros.
4287 (i386_update_inferior_debug_regs): Likewise.
4288 (i386_stopped_data_address): Likewise.
4289
d9305f7f
GB
42902014-06-18 Gary Benson <gbenson@redhat.com>
4291
4292 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4293 New parameter. All uses updated.
4294
ea008da4
GB
42952014-06-18 Gary Benson <gbenson@redhat.com>
4296
4297 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4298 All uses updated.
4299
1b6d4134
GB
43002014-06-18 Gary Benson <gbenson@redhat.com>
4301
4302 * i386-nat.c (debug_printf): New macro.
4303 (i386_get_debug_register_length): Likewise.
4304 (TARGET_HAS_DR_LEN_8): Use above macro.
4305 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4306 and printf_unfiltered. Use phex to format values.
4307
9b4550ef
GB
43082014-06-18 Gary Benson <gbenson@redhat.com>
4309
4310 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4311 Make const.
4312
6e62758f
GB
43132014-06-18 Gary Benson <gbenson@redhat.com>
4314
4315 * i386-nat.c: Comment changes.
4316
51c79e94
GB
43172014-06-18 Gary Benson <gbenson@redhat.com>
4318
4319 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4320
3e11889a
GB
43212014-06-18 Gary Benson <gbenson@redhat.com>
4322
4323 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4324 (i386_insert_aligned_watchpoint): Likewise.
4325 (i386_remove_aligned_watchpoint): Likewise.
4326 (i386_handle_nonaligned_watchpoint): Likewise.
4327
fc6e2f03
GB
43282014-06-18 Gary Benson <gbenson@redhat.com>
4329
4330 * i386-nat.c: Whitespace changes.
4331
2afe7d50
SB
43322014-06-17 Samuel Bronson <naesten@gmail.com>
4333
4334 * MAINTAINERS: Update Roland McGrath's email address.
4335 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4336 Red Hat a while ago, and giving me a current address.
2afe7d50 4337
3bca49ee
TT
43382014-06-17 Tom Tromey <tromey@redhat.com>
4339
4340 * utils.h (savestring): Remove declaration.
4341
6e366df1
TT
43422014-06-17 Tom Tromey <tromey@redhat.com>
4343
4344 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4345
6be47f0c
KS
43462014-06-16 Keith Seitz <keiths@redhat.com>
4347
4348 PR mi/15863
4349 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4350 to update the varobj if inferior_ptid is null_ptid.
4351
7bc112c1
TT
43522014-06-16 Tom Tromey <tromey@redhat.com>
4353
4354 * target.h (struct target_ops) <to_info_proc>: Make parameter
4355 const.
4356 (target_info_proc): Update.
4357 * target.c (target_info_proc): Make "args" const.
4358 * procfs.c (procfs_info_proc): Update.
4359 * linux-tdep.c (linux_info_proc): Update.
4360 (linux_core_info_proc_mappings): Make "args" const.
4361 (linux_core_info_proc): Update.
4362 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4363 * gdbarch.c: Rebuild.
4364 * gdbarch.h: Rebuild.
4365 * corelow.c (core_info_proc): Update.
4366
fee354ee
TT
43672014-06-16 Tom Tromey <tromey@redhat.com>
4368
4369 * target.h (struct target_ops) <to_disconnect>: Make parameter
4370 const.
4371 (target_disconnect): Update.
4372 * target.c (target_disconnect): Make "args" const.
4373 * target-delegates.c: Rebuild.
4374 * remote.c (remote_disconnect): Update.
4375 * record.h (record_disconnect): Update.
4376 * record.c (record_disconnect): Update.
4377 * inf-child.c (inf_child_disconnect): Update.
4378
a30bf1f1
TT
43792014-06-16 Tom Tromey <tromey@redhat.com>
4380
4381 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4382 * target.c (debug_to_rcmd, default_rcmd): Update.
4383 * target-delegates.c: Rebuild.
4384 * remote.c (remote_rcmd): Update.
4385 * monitor.c (monitor_rcmd): Update.
4386
d03de421
PA
43872014-06-16 Pedro Alves <palves@redhat.com>
4388
4389 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4390 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4391 have OBJF_SHARED set.
4392 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4393 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4394 instead of OBJF_USERLOADED.
4395 * objfiles.h (OBJF_SHARED): Update comment.
4396 (userloaded_objfile_contains_address_p): Rename to ...
4397 (shared_objfile_contains_address_p): ... this, and update
4398 comments.
4399 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4400 new objfile.
4401 (remove_symbol_file_command): Skip objfiles that don't have
4402 OBJF_SHARED set.
4403
99f4262f
TT
44042014-06-16 Tom Tromey <tromey@redhat.com>
4405
4406 * minsyms.h (prim_record_minimal_symbol)
4407 (prim_record_minimal_symbol_and_info): Update comments.
4408
97d66cc6
EZ
44092014-06-14 Eli Zaretskii <eliz@gnu.org>
4410
4411 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4412 or --without-guile, according to how GDB was built.
4413
635c7e8a
TT
44142014-06-13 Tom Tromey <tromey@redhat.com>
4415
4416 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4417 to help_list.
4418 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4419 to help_list.
4420 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4421 help_list.
4422 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4423 help_list.Pass all_commands, not -1, to help_list.
4424 * cli/cli-dump.c (dump_command, append_command)
4425 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4426 (binary_dump_command, binary_append_command): Pass all_commands,
4427 not -1, to help_list.
4428 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4429 -1, to help_list.
4430 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4431 -1, to help_list.
4432 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4433 help_list.
4434 * top.c (set_history): Pass all_commands, not -1, to help_list.
4435 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4436 all_commands, not -1, to help_list.
4437 * symfile.c (overlay_command): Pass all_commands, not -1, to
4438 help_list.
4439 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4440 help_list.
4441 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4442 help_list.
4443 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4444 -1, to help_list.
4445 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4446 not -1, to help_list.
4447 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4448 not -1, to help_list.
4449 * maint.c (maintenance_command, maintenance_info_command)
4450 (maintenance_print_command, maintenance_set_cmd): Pass
4451 all_commands, not -1, to help_list.
4452 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4453 help_list.
4454 * language.c (set_check): Pass all_commands, not -1, to help_list.
4455 * infcmd.c (unset_command): Pass all_commands, not -1, to
4456 help_list.
4457 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4458 help_list.
4459 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4460 help_list.
4461 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4462 help_list.
4463 * breakpoint.c (save_command): Pass all_commands, not -1, to
4464 help_list.
4465 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4466 all_commands, not -1, to help_list.
4467
b94ade42
PL
44682014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4469
4470 * regcache.c (struct register_to_invalidate): New structure.
4471 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4472 functions.
4473 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4474
31f628ae
YQ
44752014-06-12 Yao Qi <yao@codesourcery.com>
4476
4477 * varobj.c (varobj_get_num_children): Call
4478 varobj_is_dynamic_p.
4479 (varobj_list_children): Likewise.
4480 (varobj_update): Likewise. Update comments.
4481
cde5ef40
YQ
44822014-06-12 Yao Qi <yao@codesourcery.com>
4483
4484 * varobj.c (varobj_pretty_printed_p): Rename to ...
4485 (varobj_is_dynamic_p): ... this. New function.
4486 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4487 (varobj_is_dynamic_p): Declare.
4488 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4489 (mi_print_value_p, varobj_update_one): Likewise.
4490
576ea091
YQ
44912014-06-12 Pedro Alves <pedro@codesourcery.com>
4492 Yao Qi <yao@codesourcery.com>
4493
4494 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4495 (varobj_get_iterator): Wrap up code for pretty-printer by
4496 "#if HAVE_PYTHON" and "#endif".
4497 (update_dynamic_varobj_children): Likewise.
4498
827f100c
YQ
44992014-06-12 Pedro Alves <pedro@codesourcery.com>
4500 Yao Qi <yao@codesourcery.com>
4501
4502 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4503 gdb_python_initialized is false. Move some code from varobj.c.
4504 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4505 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4506 (struct varobj_item): Moved to varobj-iter.h".
4507 (varobj_clear_saved_item): New function.
4508 (update_dynamic_varobj_children): Move python-related code to
4509 py-varobj.c.
4510 (free_variable): Call varobj_clear_saved_item and
4511 varobj_iter_delete.
4512
e5250216
YQ
45132014-06-12 Pedro Alves <pedro@codesourcery.com>
4514 Yao Qi <yao@codesourcery.com>
4515
4516 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4517 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4518 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4519 (py-varobj.o): New rule.
4520 * python/py-varobj.c: New file.
4521 * python/python-internal.h (py_varobj_get_iterator): Declare.
4522 * varobj-iter.h: New file.
4523 * varobj.c: Include "varobj-iter.h"
4524 (struct varobj) <child_iter>: Change its type from "PyObject *"
4525 to "struct varobj_iter *".
4526 <saved_item>: Likewise.
4527 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4528 [HAVE_PYTHON] (varobj_get_iterator): New function.
4529 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4530 python-specific code to python/py-varobj.c.
4531 (install_visualizer): Call varobj_iter_delete instead of
4532 Py_XDECREF.
4533 * varobj.h (varobj_ensure_python_env): Declare.
4534
5a2e0d6e
YQ
45352014-06-12 Yao Qi <yao@codesourcery.com>
4536
4537 * varobj.c (struct varobj_item): New structure.
4538 (create_child_with_value): Update declaration.
4539 (varobj_add_child): Replace arguments 'name' and 'value' with
4540 'item'. All callers updated.
4541 (install_dynamic_child): Likewise.
4542 (update_dynamic_varobj_children): Likewise.
4543 (varobj_add_child): Likewise.
4544 (create_child_with_value): Likewise.
4545
919b9a93
JB
45462014-06-11 Joel Brobecker <brobecker@adacore.com>
4547
4548 * NEWS: Create a new section for the next release branch.
4549 Rename the section of the current branch, now that it has
4550 been cut.
4551
71a55bdf
JB
45522014-06-11 Joel Brobecker <brobecker@adacore.com>
4553
4554 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4555 * version.in: Bump version to 7.8.50.DATE-cvs.
4556
364fe1f7
PA
45572014-06-11 Pedro Alves <palves@redhat.com>
4558
4559 PR remote/17028
4560 * ser-mingw.c (net_windows_socket_check_pending): New function.
4561 (net_windows_select_thread): Ignore spurious wakeups. Use
4562 net_windows_socket_check_pending.
4563 (net_windows_wait_handle): Check for pending events with
4564 ioctlsocket, through net_windows_socket_check_pending, instead of
4565 checking the socket's event.
4566
5a6c7709
SC
45672014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4568
4569 * python/python-internal.h (gdb_PyObject_GetAttrString)
4570 (gdb_PyObject_HasAttrString): New inline function definitions.
4571 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4572 char * of the second argument to PyObject_GetAttrString.
74228e77 4573
0e58ee40
JB
45742014-06-10 Joel Brobecker <brobecker@adacore.com>
4575
4576 * serial.c (serial_write): Fix index of character to be printed
4577 in call to serial_logchar when serial debug traces are enabled.
4578
d190df30
JB
45792014-06-10 Joel Brobecker <brobecker@adacore.com>
4580
4581 * gdbtypes (resolve_dynamic_range): Add function description.
4582
b4b01d36
PA
45832014-06-09 Pedro Alves <palves@redhat.com>
4584
4585 * linux-nat.c (linux_child_follow_fork): Initialize status with
4586 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4587 inner block. Only pass the signal to PTRACE_DETACH if in pass
4588 state.
4589
3657956b
GB
45902014-06-09 Gary Benson <gbenson@redhat.com>
4591
4592 * common/signals.c (gdb_signal_from_host): Reorder to separate
4593 the always-available ANSI-standard signals from the signals that
4594 require checking.
4595 (do_gdb_signal_to_host): Likewise.
4596 * proc-events.c (signal_table): Likewise.
4597
c077881a
HZ
45982014-06-08 Hui Zhu <hui@codesourcery.com>
4599
4600 * common/linux-ptrace.c (linux_disable_event_reporting): New
4601 function.
4602 * common/linux-ptrace.h (linux_disable_event_reporting): New
4603 declaration.
4604 * linux-nat.c (linux_child_follow_fork): Do a single step before
4605 detach.
4606
4186eb54
KS
46072014-06-07 Keith Seitz <keiths@redhat.com>
4608
4609 Revert:
4610 PR c++/16253
4611 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4612 from symbol_matches_domain in symtab.c. All local callers
4613 of symbol_matches_domain updated.
4614 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4615 search STRUCT_DOMAIN.
4616 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4617 independently. standard_lookup will do that automatically.
4618 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4619 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4620 (cp_lookup_symbol_in_namespace): Likewise.
4621 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4622 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4623 may return a STRUCT_DOMAIN match.
4624 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4625 * cp-support.c: Include language.h.
4626 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4627 VAR_DOMAIN.
4628 * psymtab.c (match_partial_symbol): Compare the requested
4629 domain with the symbol's domain directly.
4630 (lookup_partial_symbol): Likewise.
4631 * symtab.c (lookup_symbol_in_language): Explain when/why
4632 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4633 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4634 appropriate languages.
4635 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4636 and moved to ada-lang.c
4637 (lookup_block_symbol): Explain that this function only returns
4638 symbol matching the requested DOMAIN.
4639 Compare the requested domain with the symbol's domain directly.
4640 (iterate_over_symbols): Compare the requested domain with the
4641 symbol's domain directly.
4642 * symtab.h (symbol_matches_domain): Remove.
4643
25326a28 46442014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4645
4646 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4647 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4648 (gdbscm_guile_version_is_at_least): Declare.
4649 (gdbscm_scm_string_to_int): Declare.
4650 * guile/guile.c (gdbscm_guile_major_version): New global.
4651 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4652 (guile_datadir): New static global.
4653 (gdbscm_guile_data_directory): New function.
4654 (initialize_scheme_side): Update.
4655 (misc_guile_functions): Add guile-data-directory.
4656 (initialize_gdb_module): Fetch guile version number.
4657 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4658 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4659 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4660 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4661 comments.
4662 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4663 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4664 * guile/scm-value.c (gdbscm_value_to_string): Only call
4665 scm_port_conversion_strategy if Guile version >= 2.0.6.
4666
0a770bb2 46672014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4668
4669 * main.c (print_gdb_help): Add -q and --silent.
4670
73ba372c
GB
46712014-06-06 Gary Benson <gbenson@redhat.com>
4672
4673 * common/signals.c: Remove preprocessor conditionals for
4674 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4675 SIGSEGV and SIGTERM.
4676 * proc-events.c: Likewise.
4677
c33b2f12
MM
46782014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4679
4680 * symfile.c (symfile_free_objfile): Remove restriction to
4681 OBJF_USERLOADED.
4682 * symfile-mem.c (symbol_file_add_from_memory): Call
4683 add_target_sections_of_objfile.
4684
fb934770
LC
46852014-06-05 Ludovic Courtès <ludo@gnu.org>
4686
4687 * guile/scm-value.c (gdbscm_history_append_x): Use
4688 'vlscm_get_value_smob_arg_unsafe' instead of
4689 'vlscm_scm_to_value'.
4690
6ef284bd
SM
46912014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4692
4693 PR mi/15806
4694 * utils.c (printchar): Don't escape at all if quoter is NUL.
4695 Update function documentation to clarify effect of parameter
4696 QUOTER.
4697 * remote.c (escape_buffer): Pass '\\' as the quoter to
4698 fputstrn_unfiltered.
4699 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4700 generate the output.
4701 (mi_solib_unloaded): Same.
4702
270c9937
JB
47032014-06-05 Joel Brobecker <brobecker@adacore.com>
4704
4705 * development.sh: Delete.
4706 * Makefile.in (config.status): Adjust dependency on development.sh.
4707 * configure.ac: Adjust development.sh source call.
4708 * configure: Regenerate.
4709
16f691fb
DE
47102014-06-04 Doug Evans <xdje42@gmail.com>
4711
4712 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4713 is_scheme_bkpt, spec.
4714 (bpscm_make_breakpoint_smob): Initialize new members.
4715 (gdbscm_create_breakpoint_x): Split into two ...
4716 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4717 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4718 (scheme_function breakpoint_functions): Update.
4719 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4720 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4721 register-breakpoint!.
4722
ef7cab6b
JB
47232014-06-04 Joel Brobecker <brobecker@adacorer.com>
4724
4725 PR server/17023
4726 * mem-break.c (z_type_supported): Return zero if
4727 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4728
012370f6
TT
47292014-06-04 Tom Tromey <tromey@redhat.com>
4730
4731 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4732 value_from_contents_and_address_unresolved.
4733 (ada_template_to_fixed_record_type_1): Likewise.
4734 (ada_which_variant_applies): Likewise.
4735 * value.h (value_from_contents_and_address_unresolved): Declare.
4736 * value.c (value_from_contents_and_address_unresolved): New
4737 function.
4738 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4739 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4740 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4741
92e2a17f
TT
47422014-06-04 Tom Tromey <tromey@redhat.com>
4743
4744 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4745
c0939df1
TT
47462014-06-04 Tom Tromey <tromey@redhat.com>
4747
4748 * procfs.c (procfs_attach): Make "args" const.
4749 * windows-nat.c (windows_attach): Make "args" const.
4750 * nto-procfs.c (procfs_attach): Make "args" const.
4751 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4752 * go32-nat.c (go32_attach): Make "args" const.
4753 * gnu-nat.c (gnu_attach): Make "args" const.
4754 * darwin-nat.c (darwin_attach): Make "args" const.
4755 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4756 * linux-nat.c (linux_nat_attach): Make "args" const.
4757 * remote.c (extended_remote_attach_1, extended_remote_attach):
4758 Make "args" const.
4759 * target.h (struct target_ops) <to_attach>: Make "args" const.
4760 (find_default_attach): Likewise.
4761 * utils.c (parse_pid_to_attach): Make "args" const.
4762 * utils.h (parse_pid_to_attach): Update.
4763
8eaff7cd
TT
47642014-06-04 Tom Tromey <tromey@redhat.com>
4765
4766 * target-delegates.c: Rebuild.
4767 * target.c (default_thread_address_space): New function.
4768 (target_thread_address_space): Simplify.
4769 * target.h (struct target_ops) <to_thread_address_space>: Add
4770 TARGET_DEFAULT_FUNC.
4771
1913f160
DE
47722014-06-04 Doug Evans <xdje42@gmail.com>
4773
4774 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4775
70ad5bff
MM
47762014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4777
4778 * record-btrace.c: Include event-loop.h and inf-loop.h.
4779 (record_btrace_resume_exec_dir)
4780 (record_btrace_async_inferior_event_handler)
4781 (record_btrace_handle_async_inferior_event): New.
4782 (record_btrace_open): Create async event handler.
4783 (record_btrace_close): Delete async event handler.
4784 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4785 Mark async event handler.
4786 (record_btrace_execution_direction): New.
4787 (init_record_btrace_ops): Initialize to_execution_direction.
4788
b6210538
DE
47892014-06-03 Doug Evans <xdje42@gmail.com>
4790
4791 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4792 (gdbscm_make_parameter): Ditto.
4793
a5b1fd27
DE
47942014-06-03 Doug Evans <dje@google.com>
4795
4796 * exec.c (exec_close_1): Call clear_section_table instead of
4797 resize_section_table.
4798 (clear_section_table): New function.
4799 (resize_section_table): Make static. Rename arg num_added to
4800 adjustment.
4801 * exec.h (clear_section_table): Declare.
4802 (resize_section_table): Delete.
4803 * progspace.c (release_program_space): Call clear_section_table
4804 instead of resize_section_table.
4805
0c6e92a5
SC
48062014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4807
4808 * NEWS (Python Scripting): Add entry about the new xmethods
4809 feature.
4810
883964a7
SC
48112014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4812
4813 * python/py-xmethods.c: New file.
4814 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4815 (objfpy_dealloc): XDECREF on the new xmethods field.
4816 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4817 field.
4818 (objfpy_get_xmethods): New function.
4819 (objfile_getset): New entry 'xmethods'.
4820 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4821 (pspy_dealloc): XDECREF on the new xmethods field.
4822 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4823 field.
4824 (pspy_get_xmethods): New function.
4825 (pspace_getset): New entry 'xmethods'.
4826 * python/python-internal.h: Add declarations for new functions.
4827 * python/python.c (_initialize_python): Invoke
4828 gdbpy_initialize_xmethods.
4829 * python/lib/gdb/__init__.py (xmethods): New
4830 attribute.
4831 * python/lib/gdb/xmethod.py: New file.
4832 * python/lib/gdb/command/xmethods.py: New file.
4833
58992dc5
SC
48342014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4835
4836 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4837 best match method returned by find_overload_match is an xmethod.
4838 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4839 the best matching operator returned by find_overload_match is an
4840 xmethod.
4841 * valops.c: #include "extension.h".
4842 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4843 Return void. The list of matching source methods is returned in
4844 "fn_list" and a vector of matching debug method workers is
4845 returned in "xm_worker_vec". Update all callers.
4846 (value_find_oload_method_list): Likewise.
4847 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4848 non-NULL, then the index of the best matching method in this
4849 vector is returned. Update all callers.
4850 (find_overload_match): Include xmethods while performing overload
4851 resolution.
4852
e81e7f5e
SC
48532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4854
4855 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4856 * extension-priv.h (struct extension_language_ops): Add the
4857 xmethod interface.
4858 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4859 get_matching_xmethod_workers, get_xmethod_argtypes,
4860 invoke_xmethod, free_xmethod_worker,
4861 free_xmethod_worker_vec): New functions.
4862 * extension.h: #include "common/vec.h".
4863 New function declarations.
4864 (struct xmethod_worker): New struct.
4865 (VEC (xmethod_worker_ptr)): New vector type.
4866 (xmethod_worker_ptr): New typedef.
4867 (xmethod_worker_vec): Likewise.
4868 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4869 builtin_type.
4870 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4871 (struct builtin_type): New field "xmethod".
4872 * valarith.c (value_ptradd): Assert that the value argument is not
4873 lval_xcallable.
4874 * valops.c (value_must_coerce_to_target): Return 0 for
4875 lval_xcallable values.
4876 * value.c (struct value): New field XM_WORKER in the field
4877 LOCATION.
4878 (value_address, value_raw_address): Return 0 for lval_xcallable
4879 values.
4880 (set_value_address): Assert that the value is not an
4881 lval_xcallable.
4882 (value_free): Free the associated xmethod worker when freeing
4883 lval_xcallable values.
4884 (set_value_component_location): Assert that the WHOLE value is not
4885 lval_xcallable.
4886 (value_of_xmethod, call_xmethod): New functions.
4887 * value.h: Declare "struct xmethod_worker".
4888 Declare new functions value_of_xmethod, call_xmethod.
4889
ef370185
JB
48902014-06-03 Joel Brobecker <brobecker@adacore.com>
4891 Pedro Alves <palves@redhat.com>
4892
4893 PR breakpoints/17000
4894 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4895 New function, extracted from software_breakpoint_inserted_here_p.
4896 (software_breakpoint_inserted_here_p): Replace factored out code
4897 by call to find_non_raw_software_breakpoint_inserted_here.
4898 (bp_target_info_copy_insertion_state): New function.
4899 (bkpt_insert_location): Handle the case of a single-step
4900 breakpoint already inserted at the same address.
4901 (bkpt_remove_location): Handle the case of a single-step
4902 breakpoint still inserted at the same address.
4903 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4904 breakpoint already inserted at the same address.
4905 (deprecated_remove_raw_breakpoint): Handle the case of a
4906 non-raw breakpoint still inserted at the same address.
4907 (find_single_step_breakpoint): New function, extracted from
4908 single_step_breakpoint_inserted_here_p.
4909 (find_single_step_breakpoint): New function,
4910 factored out from single_step_breakpoint_inserted_here_p.
4911 (single_step_breakpoint_inserted_here_p): Reimplement.
4912
1e2ccb61
BM
49132014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4914
4915 Pushed by Joel Brobecker <brobecker@adacore.com>
4916 * source.c (show_substitute_path_command): Fix display of matching
4917 substitution rules.
4918
d3448d85
GB
49192014-06-03 Gary Benson <gbenson@redhat.com>
4920
4921 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4922
06eb1586
DE
49232014-06-02 Doug Evans <xdje42@gmail.com>
4924
4925 Add parameter support for Guile.
4926 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4927 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4928 (scm-param.o): New rule.
4929 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4930 (gdbscm_misc_error): Declare.
4931 (gdbscm_canonicalize_command_name): Declare.
4932 (gdbscm_scm_to_host_string): Declare.
4933 (gdbscm_scm_from_host_string): Declare.
4934 (gdbscm_initialize_parameters): Declare.
4935 * guile/guile.c (initialize_gdb_module): Call
4936 gdbscm_initialize_parameters.
4937 * guile/lib/gdb.scm: Export parameter symbols.
4938 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4939 cmdscm_canonicalize_name and made public. All callers updated.
4940 * guile/scm-exception.c (gdbscm_misc_error): New function.
4941 * guile/scm-param.c: New file.
4942 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4943 (gdbscm_scm_to_host_string): New function.
4944 (gdbscm_scm_from_host_string): New function.
4945 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4946
e698b8c4
DE
49472014-06-02 Doug Evans <xdje42@gmail.com>
4948
4949 Add command support for Guile.
4950 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4951 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4952 (scm-cmd.o): New rule.
4953 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4954 (gdbscm_user_error_p): Declare.
4955 (gdbscm_parse_command_name): Declare.
4956 (gdbscm_valid_command_class_p): Declare.
4957 (gdbscm_initialize_commands): Declare.
4958 * guile/guile.c (initialize_gdb_module): Call
4959 gdbscm_initialize_commands.
4960 * guile/lib/gdb.scm: Export command symbols.
4961 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4962 (throw-user-error): New function.
4963 * guile/scm-cmd.c: New file.
4964 * guile/scm-exception.c (user_error_symbol): New static global.
4965 (gdbscm_user_error_p): New function.
4966 (gdbscm_initialize_exceptions): Set user_error_symbol.
4967 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4968
fb1f94b0
PM
49692014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4970
4971 * top.c (command_loop): Handle comments here...
4972 (command_line_input): ... not here.
4973
ded03782
DE
49742014-06-02 Doug Evans <xdje42@gmail.com>
4975
4976 Add progspace support for Guile.
4977 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4978 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4979 (scm-progspace.o): New rule.
4980 * guile/guile-internal.h (pspace_smob): New typedef.
4981 (psscm_pspace_smob_pretty_printers): Declare.
4982 (psscm_pspace_smob_from_pspace): Declare.
4983 (psscm_scm_from_pspace): Declare.
4984 * guile/guile.c (initialize_gdb_module): Call
4985 gdbscm_initialize_pspaces.
4986 * guile/lib/gdb.scm: Export progspace symbols.
4987 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4988 support.
4989 (append-pretty-printer!): Ditto.
4990 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4991 Implement.
4992 * guile/scm-progspace.c: New file.
4993
397998fc
AM
49942014-06-03 Alan Modra <amodra@gmail.com>
4995
4996 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4997 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4998
6aa5f3a6
DE
49992014-06-02 Doug Evans <dje@google.com>
5000
5001 Add support for skeletonless type units.
5002 * dwarf2read.c (struct dwarf2_per_objfile): New member
5003 n_allocated_type_units.
5004 (struct dwarf2_per_objfile) <tu_stats>: New member
5005 nr_all_type_units_reallocs.
5006 (create_signatured_type_table_from_index): Initialize
5007 n_allocated_type_units
5008 (create_all_type_units): Ditto.
5009 (add_type_unit): Move up in file. New arg slot.
5010 All callers updated. Increase space for all_type_units more
5011 efficiently.
5012 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5013 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5014 (lookup_dwp_signatured_type): Ditto.
5015 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5016 All callers updated.
5017 (build_type_psymtabs_1): Leave type_unit_groups as
5018 NULL if no TUs present.
5019 (print_tu_stats): New function.
5020 (process_skeletonless_type_unit): New function.
5021 (process_dwo_file_for_skeletonless_type_units): New
5022 function.
5023 (process_skeletonless_type_units): New function.
5024 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5025 Call print tu_stats if debugging enabled.
5026
41fac0cf
PA
50272014-06-02 Pedro Alves <palves@redhat.com>
5028
5029 * breakpoint.c (build_target_command_list): Don't build a command
5030 list if we have any duplicate location that isn't a dprintf.
5031
cd1608cc
PA
50322014-06-02 Pedro Alves <palves@redhat.com>
5033
5034 * breakpoint.c (dprintf_breakpoint_hit): New function.
5035 (initialize_breakpoint_ops): Install it as dprintf's
5036 breakpoint_hit method.
5037
486ef3b9
JB
50382014-06-02 Joel Brobecker <brobecker@adacore.com>
5039
5040 * source.c (substitute_path_rule_matches): Simplify using
5041 filename_ncmp instead of FILENAME_CMP.
5042
230cd560
JB
50432014-06-02 Joel Brobecker <brobecker@adacore.com>
5044
5045 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5046
16954d5d
LC
50472014-06-01 Ludovic Courtès <ludo@gnu.org>
5048
5049 * configure.ac: When Guile is available, check for the
5050 availability of 'scm_new_smob'.
5051 * configure, config.h.in: Regenerate.
5052 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5053 function.
5054
53e8a631
AB
50552014-05-30 Andrew Burgess <aburgess@broadcom.com>
5056
5057 * frame.c (struct frame_info): Add stop_string field.
5058 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5059 (get_prev_frame_always): Old content moved into
5060 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5061 TRY_CATCH, handle MEMORY_ERROR exceptions.
5062 (frame_stop_reason_string): New function definition.
5063 * frame.h (unwind_stop_reason_to_string): Extend comment to
5064 mention frame_stop_reason_string.
5065 (frame_stop_reason_string): New function declaration.
5066 * stack.c (frame_info): Switch to frame_stop_reason_string.
5067 (backtrace_command_1): Switch to frame_stop_reason_string.
5068 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5069 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5070 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5071
70e38b8e
AB
50722014-05-30 Andrew Burgess <aburgess@broadcom.com>
5073
5074 * frame.c (frame_stop_reason_string): Rename to ...
5075 (unwind_stop_reason_to_string): this.
5076 * frame.h (frame_stop_reason_string): Rename to ...
5077 (unwind_stop_reason_to_string): this.
5078 * stack.c (frame_info): Update call to frame_stop_reason_string.
5079 (backtrace_command_1): Likewise.
5080 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5081 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5082
938f0e2f
AB
50832014-05-30 Andrew Burgess <aburgess@broadcom.com>
5084
5085 * frame.c (remove_prev_frame): New function.
5086 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5087 remove_prev_frame.
5088
a09dd441
PA
50892014-05-29 Pedro Alves <palves@redhat.com>
5090
5091 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5092 and make it const. When a single-step decays to a continue,
5093 clear 'step', not 'hw_step'. Pass whether the caller wanted
5094 to step to user_visible_resume_ptid, not what we ask the
5095 target to do.
5096
bdc36728
PA
50972014-05-29 Pedro Alves <palves@redhat.com>
5098
5099 * infrun.c (process_event_stop_test, handle_step_into_function)
5100 (handle_step_into_function_backward): Adjust.
5101 Don't set the even thread's stop_step and call stop_waiting before
5102 calling end_stepping_range. Instead do that ...
5103 (end_stepping_range): ... here. Take an ecs pointer parameter.
5104
22bcd14b
PA
51052014-05-29 Pedro Alves <palves@redhat.com>
5106
5107 * infrun.c (stop_stepping): Rename to ...
5108 (stop_waiting): ... this.
5109 (proceed): Update comment.
5110 (process_event_stop_test, handle_inferior_event)
5111 (handle_signal_stop, handle_step_into_function)
5112 (handle_step_into_function_backward): Update.
5113
4ae57c05
PA
51142014-05-29 Pedro Alves <palves@redhat.com>
5115
5116 * infcall.c (run_inferior_call): Don't check whether the current
5117 thread is running after the proceed call.
5118
329ea579
PA
51192014-05-29 Pedro Alves <palves@redhat.com>
5120 Tom Tromey <tromey@redhat.com>
5121
5122 * NEWS: Mention "maint set target-async", "set mi-async", and that
5123 background execution commands are now always available.
5124 * target.h (target_async_permitted): Update comment.
5125 * target.c (target_async_permitted, target_async_permitted_1):
5126 Default to 1.
5127 (set_target_async_command): Rename to ...
5128 (maint_set_target_async_command): ... this.
5129 (show_target_async_command): Rename to ...
5130 (maint_show_target_async_command): ... this.
5131 (_initialize_target): Adjust.
5132 * infcmd.c (prepare_execution_command): Make extern.
5133 * inferior.h (prepare_execution_command): Declare.
5134 * infrun.c (set_observer_mode): Leave target async alone.
5135 * mi/mi-interp.c (mi_interpreter_init): Install
5136 mi_on_sync_execution_done as sync_execution_done observer.
5137 (mi_on_sync_execution_done): New function.
5138 (mi_execute_command_input_handler): Don't print the prompt if we
5139 just started a synchronous command with an async target.
5140 (mi_on_resume): Check sync_execution before printing prompt.
5141 * mi/mi-main.h (mi_async_p): Declare.
5142 * mi/mi-main.c: Include gdbcmd.h.
5143 (mi_async_p): New function.
5144 (mi_async, mi_async_1): New globals.
5145 (set_mi_async_command, show_mi_async_command, mi_async): New
5146 functions.
5147 (exec_continue): Call prepare_execution_command.
5148 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5149 (mi_execute_async_cli_command): Use mi_async_p.
5150 (_initialize_mi_main): Install "set mi-async". Make
5151 "target-async" a deprecated alias.
5152
92bcb5f9
PA
51532014-05-29 Pedro Alves <palves@redhat.com>
5154
5155 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5156 (_initialize_cli_interp): Adjust.
5157 * event-loop.c: Include "observer.h".
5158 (start_event_loop): Notify 'command_error' observers instead of
5159 calling display_gdb_prompt. Remove FIXME comment.
5160 * event-top.c (display_gdb_prompt): Remove call into the
5161 interpreters.
5162 * inf-loop.c: Include "observer.h".
5163 (inferior_event_handler): Notify 'command_error' observers instead
5164 of calling display_gdb_prompt.
5165 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5166 observers instead of calling display_gdb_prompt.
5167 * interps.c (interp_set): Don't call display_gdb_prompt.
5168 (current_interp_display_prompt_p): Delete.
5169 * interps.h (interp_prompt_p): Delete declaration.
5170 (interp_prompt_p_ftype): Delete.
5171 (struct interp_procs) <prompt_proc_p>: Delete field.
5172 (current_interp_display_prompt_p): Delete declaration.
5173 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5174 (_initialize_mi_interp): Adjust.
5175 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5176 'command_error' observers.
5177 (tui_on_sync_execution_done, tui_on_command_error): New
5178 functions.
5179 (tui_display_prompt_p): Delete.
5180 (_initialize_tui_interp): Adjust.
5181
fd664c91
PA
51822014-05-29 Pedro Alves <palves@redhat.com>
5183
5184 PR gdb/13860
5185 * cli/cli-interp.c: Include infrun.h and observer.h.
5186 (cli_uiout, cli_interp): New globals.
5187 (cli_on_signal_received, cli_on_end_stepping_range)
5188 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5189 functions.
5190 (cli_interpreter_init): Install them as 'end_stepping_range',
5191 'signal_received' 'signal_exited', 'exited' and 'no_history'
5192 observers.
5193 (_initialize_cli_interp): Remove cli_interp local.
5194 * infrun.c (handle_inferior_event): Call the several stop reason
5195 observers instead of printing the stop reason directly.
5196 (end_stepping_range): New function.
5197 (print_end_stepping_range_reason, print_signal_exited_reason)
5198 (print_exited_reason, print_signal_received_reason)
5199 (print_no_history_reason): Make static, and add an uiout
5200 parameter. Print to that instead of to CURRENT_UIOUT.
5201 * infrun.h (print_end_stepping_range_reason)
5202 (print_signal_exited_reason, print_exited_reason)
5203 (print_signal_received_reason print_no_history_reason): New
5204 declarations.
5205 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5206 'mi_uiout'.
5207 <cli_uiout>: New field.
5208 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5209 uiout for CLI output. Install 'signal_received',
5210 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5211 observers.
5212 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5213 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5214 (mi_on_no_history): New functions.
5215 (ui_out_free_cleanup): Delete function.
5216 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5217 instead use the one already stored in the MI interpreter data.
5218 (mi_ui_out): Adjust.
5219 * tui/tui-interp.c: Include infrun.h and observer.h.
5220 (tui_interp): New global.
5221 (tui_on_signal_received, tui_on_end_stepping_range)
5222 (tui_on_signal_exited, tui_on_exited)
5223 (tui_on_no_history): New functions.
5224 (tui_init): Install them as 'end_stepping_range',
5225 'signal_received' 'signal_exited', 'exited' and 'no_history'
5226 observers.
5227 (_initialize_tui_interp): Delete tui_interp local.
5228
8817a6f2
PA
52292014-05-29 Pedro Alves <palves@redhat.com>
5230
5231 PR gdb/15713
5232 * linux-nat.c (linux_nat_resume_callback): Rename the second
5233 parameter to 'except'. Skip LP if it points to EXCEPT.
5234 (linux_nat_resume): Don't mark the event lwp as not stopped
5235 before resuming sibling lwps. Instead ask
5236 linux_nat_resume_callback to skip the event lwp. Mark it as not
5237 stopped after actually resuming it.
5238 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5239 resuming it.
5240 (wait_lwp): Mark the lwp as stopped here.
5241 (stop_wait_callback): Mark the lwp as not stopped right after
5242 resuming it. Don't mark lwps as stopped here.
5243 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5244 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5245
251bde03
PA
52462014-05-29 Pedro Alves <palves@redhat.com>
5247
5248 PR PR15693
5249 * infrun.c (resume): Determine how much to resume depending on
5250 whether the caller wanted a step, not whether we can hardware step
5251 the target. Mark all threads that we intend to run as running,
5252 unless we're calling an inferior function.
5253 (normal_stop): If the thread is running an infcall, don't finish
5254 thread state.
5255 * target.c (target_resume): Don't mark threads as running here.
5256
7f3c0343
JB
52572014-05-28 Joel Brobecker <brobecker@adacore.com>
5258
5259 * serial.c (_initialize_serial): Remove support for
5260 the "set remotebaud" and "show remotebaud" commands.
5261 * NEWS: Add entry documenting the removal of that command.
5262
ee34b3f9
YQ
52632014-05-28 Yao Qi <yao@codesourcery.com>
5264
5265 * charset.c: Fix typo in comments.
5266
add6c04d
GB
52672014-05-27 Gary Benson <gbenson@redhat.com>
5268
5269 * utils.c (internal_vproblem): Prompt for a bug report.
5270
92c48fc5
AW
52712014-05-26 Andy Wingo <wingo@igalia.com>
5272
5273 * guile/scm-arch.c (arscm_mark_arch_smob):
5274 * guile/scm-block.c (bkscm_mark_block_smob)
5275 (bkscm_mark_block_syms_progress_smob):
5276 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5277 * guile/scm-exception.c (exscm_mark_exception_smob):
5278 * guile/scm-frame.c (frscm_mark_frame_smob):
5279 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5280 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5281 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5282 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5283 (ppscm_mark_pretty_printer_worker_smob):
5284 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5285 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5286 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5287 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5288 mark functions.
5289 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5290 function.
5291
b2715b27
AW
52922014-05-26 Andy Wingo <wingo@igalia.com>
5293 Doug Evans <xdje42@gmail.com>
5294
5295 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5296 empty_base_class. All uses updated.
5297 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5298 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5299 Adapt all callers.
5300 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5301 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5302 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5303 (gdbscm_gsmob_has_property_p, add_property_name)
5304 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5305 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5306 (gdb-object-has-property?, gdb-object-properties): Remove.
5307 (gdb-object-kind): Renamed from gsmob-kind.
5308
214ab2da
AW
53092014-05-26 Andy Wingo <wingo@igalia.com>
5310
5311 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5312 * configure: Regenerate.
5313
589fdceb
MM
53142014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5315
5316 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5317
67b5c0c1
MM
53182014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5319
5320 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5321 (replay_memory_access_read_only, replay_memory_access_read_write)
5322 (replay_memory_access_types, replay_memory_access)
5323 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5324 (cmd_set_record_btrace, cmd_show_record_btrace)
5325 (cmd_show_replay_memory_access): New.
5326 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5327 (record_btrace_remove_breakpoint): Replace
5328 record_btrace_allow_memory_access with replay_memory_access.
5329 (_initialize_record_btrace): Add commands.
5330 * NEWS: Announce it.
5331
036cd381
RR
53322014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5333
5334 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5335
c77c1e42
RR
53362014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5337
5338 * MAINTAINERS (Write After Approval): Move self back from
5339 paper trail.
5340
45741a9c
PA
53412014-05-22 Pedro Alves <palves@redhat.com>
5342
5343 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5344 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5345 (disable_randomization, enum exec_direction_kind)
5346 (execution_direction, stop_registers, start_remote)
5347 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5348 (wait_for_inferior, normal_stop, get_last_target_status)
5349 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5350 (insert_step_resume_breakpoint_at_sal)
5351 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5352 (set_step_info, print_stop_event, signal_stop_state)
5353 (signal_print_state, signal_pass_state, signal_stop_update)
5354 (signal_print_update, signal_pass_update)
5355 (update_signals_program_target, clear_exit_convenience_vars)
5356 (displaced_step_dump_bytes, update_observer_mode)
5357 (signal_catch_update, gdb_signal_from_command): Move
5358 declarations ...
5359 * infrun.h: ... to this new file.
5360 * amd64-tdep.c: Include infrun.h.
5361 * annotate.c: Include infrun.h.
5362 * arch-utils.c: Include infrun.h.
5363 * arm-linux-tdep.c: Include infrun.h.
5364 * arm-tdep.c: Include infrun.h.
5365 * break-catch-sig.c: Include infrun.h.
5366 * breakpoint.c: Include infrun.h.
5367 * common/agent.c: Include infrun.h instead of inferior.h.
5368 * corelow.c: Include infrun.h.
5369 * event-top.c: Include infrun.h.
5370 * go32-nat.c: Include infrun.h.
5371 * i386-tdep.c: Include infrun.h.
5372 * inf-loop.c: Include infrun.h.
5373 * infcall.c: Include infrun.h.
5374 * infcmd.c: Include infrun.h.
5375 * infrun.c: Include infrun.h.
5376 * linux-fork.c: Include infrun.h.
5377 * linux-nat.c: Include infrun.h.
5378 * linux-thread-db.c: Include infrun.h.
5379 * monitor.c: Include infrun.h.
5380 * nto-tdep.c: Include infrun.h.
5381 * procfs.c: Include infrun.h.
5382 * record-btrace.c: Include infrun.h.
5383 * record-full.c: Include infrun.h.
5384 * remote-m32r-sdi.c: Include infrun.h.
5385 * remote-mips.c: Include infrun.h.
5386 * remote-notif.c: Include infrun.h.
5387 * remote-sim.c: Include infrun.h.
5388 * remote.c: Include infrun.h.
5389 * reverse.c: Include infrun.h.
5390 * rs6000-tdep.c: Include infrun.h.
5391 * s390-linux-tdep.c: Include infrun.h.
5392 * solib-irix.c: Include infrun.h.
5393 * solib-osf.c: Include infrun.h.
5394 * solib-svr4.c: Include infrun.h.
5395 * target.c: Include infrun.h.
5396 * top.c: Include infrun.h.
5397 * windows-nat.c: Include infrun.h.
5398 * mi/mi-interp.c: Include infrun.h.
5399 * mi/mi-main.c: Include infrun.h.
5400 * python/py-threadevent.c: Include infrun.h.
5401
98eb56a4
PA
54022014-05-22 Pedro Alves <palves@redhat.com>
5403
5404 * infrun.c (handle_inferior_event): Store the exit code for
5405 --return-child-result here, instead of ...
5406 (print_exited_reason): ... here.
5407
17b2616c
PA
54082014-05-21 Pedro Alves <palves@redhat.com>
5409
5410 PR gdb/13860
5411 * gdbthread.h (struct thread_control_state): New field
5412 `command_interp'.
5413 * infrun.c (follow_fork): Copy the new thread control field to the
5414 child fork thread.
5415 (clear_proceed_status_thread): Clear the new thread control field.
5416 (proceed): Set the new thread control field.
5417 * interps.h (command_interp): Declare.
5418 * interps.c (command_interpreter): New global.
5419 (command_interp): New function.
5420 (interp_exec): Set `command_interpreter' while here.
5421 * cli-out.c (cli_uiout_dtor): New function.
5422 (cli_ui_out_impl): Install it.
5423 * mi/mi-interp.c: Include cli-out.h.
5424 (mi_cmd_interpreter_exec): Add comment.
5425 (restore_current_uiout_cleanup): New function.
5426 (ui_out_free_cleanup): New function.
5427 (mi_on_normal_stop): If finishing an execution command started by
5428 a CLI command, or any kind of breakpoint-like event triggered,
5429 print the stop event to the output (CLI) stream.
5430 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5431
5166082f
PA
54322014-05-21 Pedro Alves <palves@redhat.com>
5433
5434 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5435 current source line having changed.
5436 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5437 * infrun.c (normal_stop): Adjust call to
5438 set_current_sal_from_frame.
5439 * source.c (clear_lines_listed_range): New function.
5440 (set_current_source_symtab_and_line, identify_source_line): Clear
5441 the lines listed range.
5442 (line_info): Handle the first "info line" after the current source
5443 line having changed.
5444 * stack.c (print_stack_frame): Remove center handling.
5445 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5446 center sal.line.
5447
c1ee2fb3
PA
54482014-05-21 Pedro Alves <palves@redhat.com>
5449
5450 * inf-child.c (inf_child_mourn_inferior): New function.
5451 * inf-child.h (inf_child_mourn_inferior): New declaration.
5452 * darwin-nat.c (darwin_mourn_inferior): Use
5453 inf_child_mourn_inferior.
5454 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5455 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5456 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5457 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5458 * windows-nat.c (windows_mourn_inferior): Likewise.
5459
5c6d4fb2
DE
54602014-05-21 Doug Evans <xdje42@gmail.com>
5461
250748cb 5462 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5463
4a2722c5
DE
54642014-05-21 Doug Evans <xdje42@gmail.com>
5465
17292b30 5466 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5467 (gdbscm_out_of_range_error): Ditto.
5468 (gdbscm_memory_error): Ditto.
250748cb
DE
5469 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5470 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5471 (gdbscm_out_of_range_error): Update.
5472 (gdbscm_memory_error): Update.
5473 (gdbscm_scm_to_target_string_unsafe): Delete.
5474
6a3cb8e8
PA
54752014-05-21 Pedro Alves <palves@redhat.com>
5476
5477 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5478 globals.
5479 (inf_child_open_target): New function.
5480 (inf_child_open): Use inf_child_open_target to push the target
5481 instead of erroring out.
5482 (inf_child_disconnect, inf_child_close)
5483 (inf_child_maybe_unpush_target): New functions.
5484 (inf_child_target): Install inf_child_disconnect and
5485 inf_child_close. Store a pointer to the returned object.
5486 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5487 declarations.
5488 * target.c (auto_connect_native_target): New global.
5489 (show_default_run_target): New function.
5490 (find_default_run_target): Return NULL if automatically connecting
5491 to the native target is disabled.
5492 (_initialize_target): Install set/show auto-connect-native-target.
5493 * NEWS: Mention "set auto-connect-native-target", and "target
5494 native".
5495 * linux-nat.c (super_close): New global.
5496 (linux_nat_close): Call super_close.
5497 (linux_nat_add_target): Store a pointer to the base class's
5498 to_close method.
5499 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5500 inf_child_maybe_unpush.
5501 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5502 already pushed.
5503 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5504 the inferior. Use inf_child_maybe_unpush_target.
5505 (inf_ttrace_attach): Don't push the target if it is already
5506 pushed.
5507 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5508 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5509 after mourning the inferior. Use inf_child_maybe_unpush_target.
5510 (darwin_attach_pid): Don't push the target if it is already
5511 pushed.
5512 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5513 mourning the inferior. Use inf_child_maybe_unpush_target.
5514 (gnu_detach): Use inf_child_maybe_unpush_target.
5515 * go32-nat.c (go32_create_inferior): Don't push the target if it
5516 is already pushed.
5517 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5518 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5519 (procfs_open): Rename to ...
5520 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5521 comments. Can target_preopen before changing node. Call
5522 inf_child_open_target to push the target explicitly.
5523 (procfs_attach): Don't push the target if it is already pushed.
5524 (procfs_detach): Use inf_child_maybe_unpush_target.
5525 (procfs_create_inferior): Don't push the target if it is already
5526 pushed.
5527 (nto_native_ops): New global.
5528 (procfs_open): Reimplement.
5529 (procfs_native_open): New function.
5530 (init_procfs_targets): Install procfs_native_open as to_open of
5531 "target native". Store a pointer to the "native" target in
5532 nto_native_ops.
5533 * procfs.c (procfs_attach): Don't push the target if it is already
5534 pushed.
5535 (procfs_detach): Use inf_child_maybe_unpush_target.
5536 (procfs_mourn_inferior): Only unpush the target after mourning the
5537 inferior. Use inf_child_maybe_unpush_target.
5538 (procfs_init_inferior): Don't push the target if it is already
5539 pushed.
5540 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5541 if it is already pushed.
5542
930ee1b1
PA
55432014-05-21 Pedro Alves <palves@redhat.com>
5544
5545 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5546 and "procfs" targets are now called "native" instead.
5547
1f5d1b13
PA
55482014-05-21 Pedro Alves <palves@redhat.com>
5549
5550 * go32-nat.c (go32_open): Delete.
5551 (go32_target): Don't override the to_open method.
5552
132f8e03
PA
55532014-05-21 Pedro Alves <palves@redhat.com>
5554
5555 * nto-procfs.c (procfs_can_run): New function.
5556 (nto_procfs_ops): New global.
5557 (init_procfs_targets): New, based on procfs_target. Install
5558 "target native" in addition to "target procfs".
5559 (_initialize_procfs): Call init_procfs_targets instead of adding
5560 the target here.
5561
03c136c3
PA
55622014-05-21 Pedro Alves <palves@redhat.com>
5563
5564 * windows-nat.c (windows_target): Don't override to_shortname,
5565 to_longname or to_doc.
5566
a635d0f3
PA
55672014-05-21 Pedro Alves <palves@redhat.com>
5568
5569 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5570 to_doc.
5571
4f9b5133
PA
55722014-05-21 Pedro Alves <palves@redhat.com>
5573
5574 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5575 to_shortname, to_longname or to_doc.
5576
bc85afde
PA
55772014-05-21 Pedro Alves <palves@redhat.com>
5578
5579 * go32-nat.c (go32_target): Don't override to_shortname,
5580 to_longname or to_doc.
5581
4ebfc96e
PA
55822014-05-21 Pedro Alves <palves@redhat.com>
5583
5584 * inf-child.c (inf_child_open): Remove mention of "child".
5585 (inf_child_target): Rename target to "native" instead of "child".
5586
2648dfed
AA
55872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5588
5589 * Makefile.in (SFILES): Delete "regset.c".
5590 (COMMON_OBS): Delete "regset.o".
5591 * regset.c: Remove.
5592 * regset.h (regset_alloc): Delete prototype.
5593
b13feb94
AA
55942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5595
5596 * sparc-linux-tdep.c (sparc32_linux_gregset)
5597 (sparc32_linux_fpregset): New static regset structures.
5598 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5599 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5600 'fpregset' fields.
5601 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5602 (sparc64_linux_fpregset): New static regset structures.
5603 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5604 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5605 New static regset structures.
5606 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5607 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5608 New static regset structures.
5609 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5610 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5611 New static regset structures.
5612 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5613 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5614 New static regset structures.
5615 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5616
b4fd25c9
AA
56172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5618
5619 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5620 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5621 register maps ("regmaps") from "*regset" to "*regmap". Do this
5622 for all regmap types and variables.
5623 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5624 (sparc32_linux_supply_core_gregset)
5625 (sparc32_linux_collect_core_gregset)
5626 (sparc32_linux_supply_core_fpregset)
5627 (sparc32_linux_collect_core_fpregset): Likewise.
5628 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5629 (sparc_gregmap, sparc_fpregmap): ... these.
5630 (sparc_supply_gregset, sparc_collect_gregset)
5631 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5632 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5633 (_initialize_sparc_nat): Rename regmaps.
5634 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5635 (sparc_gregmap, sparc_fpregmap): ... these.
5636 (sparc_supply_gregset, sparc_collect_gregset)
5637 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5638 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5639 Rename macros to...
5640 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5641 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5642 Likewise.
5643 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5644 Rename to...
5645 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5646 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5647 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5648 regmaps.
5649 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5650 (sparc32_bsd_fpregset): Rename to...
5651 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5652 (sparc32_bsd_fpregmap): ... these.
5653 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5654 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5655 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5656 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5657 (struct sparc_gregmap, struct sparc_fpregmap)
5658 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5659 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5660 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5661 (sparc32_supply_regset, sparc32_collect_gregset)
5662 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5663 prototypes.
5664 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5665 (sparc64_linux_ptrace_gregmap): ... this.
5666 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5667 (_initialize_sparc64_linux_nat): Rename regmaps.
5668 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5669 (sparc64_linux_core_gregmap): ... this.
5670 (sparc64_linux_supply_core_gregset)
5671 (sparc64_linux_collect_core_gregset)
5672 (sparc64_linux_supply_core_fpregset)
5673 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5674 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5675 (sparc64_sol2_fpregset): Rename to...
5676 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5677 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5678 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5679 regmaps.
5680 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5681 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5682 (sparc64_bsd_fpregset): Rename to...
5683 (struct sparc_gregmap, sparc64_sol2_gregmap)
5684 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5685 (sparc64_bsd_fpregmap): ... these.
5686 (sparc64_supply_gregset, sparc64_collect_gregset)
5687 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5688 prototypes.
5689 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5690 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5691 (sparc64fbsd_gregmap): ... this.
5692 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5693 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5694 Rename regmaps.
5695 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5696 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5697 (sparc64nbsd_collect_fpregset): Likewise.
5698 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5699 (sparc64nbsd_gregmap): ... this.
5700 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5701 regmaps.
5702 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5703 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5704 (sparc64obsd_gregmap): ... this.
5705 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5706 regmaps.
5707 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5708 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5709 (sparc32nbsd_gregmap): ... this.
5710 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5711 regmaps.
5712
8fea3224
AA
57132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5714
5715 * score-tdep.c (score7_linux_gregset): New static regset
5716 structure.
5717 (score7_linux_regset_from_core_section): Remove dynamic regset
5718 allocation.
5719 (score_gdbarch_init): Drop allocation of tdep structure.
5720 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5721
24534243
AA
57222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5723
5724 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5725 regset structures.
5726 (am33_regset_from_core_section): Remove dynamic regset
5727 allocations.
5728
b7195f27
AA
57292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5730
5731 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5732 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5733 structures.
5734 (mips_linux_regset_from_core_section): Remove dynamic regset
5735 allocations.
5736 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5737 'gregset64', 'fpregset', and 'fpregset64'.
5738 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5739 deleted tdep fields.
5740
ecc37a5a
AA
57412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5742
5743 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5744 regset structures.
5745 (amd64_regset_from_core_section): Remove dynamic regset
5746 allocations.
5747 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5748 structure.
5749 (amd64obsd_regset_from_core_section): Remove dynamic regset
5750 allocation.
5751 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5752 Likewise.
5753 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5754 x86-common regset supply function.
5755 * i386-tdep.c (i386_collect_gregset): Make static.
5756 (i386_gregset): New global regset structure.
5757 (i386_fpregset, i386_xstateregset): New static regset structures.
5758 (i386_regset_from_core_section): Remove dynamic regset
5759 allocations.
5760 (i386_gdbarch_init): Remove initialization of tdep fields
5761 'gregset', 'fpregset', and 'xstateregset'.
5762 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5763 'fpregset', and 'xstateregset'.
5764 (i386_collect_gregset): Remove prototype.
5765 (i386_gregset): New declaration.
5766 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5767 structure.
5768 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5769 allocation.
5770
b7611c43
AA
57712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5772
5773 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5774 (arm_linux_vfpregset): New static regset structures.
5775 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5776 regset structures.
5777 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5778 and 'vfpregset' fields.
5779
a069a2bd
AA
57802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5781
5782 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5783 (aarch64_linux_fpregset): New static regset structures.
5784 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5785 of regset structures.
5786 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5787 'fpregset' fields.
5788
09424cff
AA
57892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5790
5791 * regset.h (struct regset): Remove gdbarch field.
5792 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5793 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5794 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5795 Likewise.
5796 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5797 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5798 (ppc32_linux_vsxregset): Likewise.
5799 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5800 via the regcache instead of the regset.
5801 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5802 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5803 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5804 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5805 Likewise.
5806
3ca7dae4
AA
58072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5808
5809 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5810 Constify structures.
5811 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5812 (alphanbsd_aout_gregset): Likewise.
5813 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5814 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5815 Likewise.
5816 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5817 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5818 Likewise.
5819 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5820 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5821 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5822 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5823 * m88k-tdep.c (m88k_gregset): Likewise.
5824 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5825 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5826 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5827 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5828 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5829 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5830 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5831 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5832 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5833 Likewise.
5834 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5835 * sh-tdep.h (sh_corefile_gregset): Likewise.
5836 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5837 * vax-tdep.c (vax_gregset): Likewise.
5838
5876f503
JK
58392014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5840
5841 Fix TLS access for -static -pthread.
5842 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5843 (try_thread_db_load_1): Initialize it.
5844 (thread_db_get_thread_local_address): Call it if LM is zero.
5845 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5846 * target.h (struct target_ops) (to_get_thread_local_address): Add
5847 load_module_addr comment.
5848
0256a6ac
PA
58492014-05-21 Pedro Alves <palves@redhat.com>
5850
5851 * dcache.c (dcache_read_memory_partial): If reading the cache line
5852 fails, fallback to reading just the memory the caller wanted.
5853
227533ac
DE
58542014-05-20 Doug Evans <dje@google.com>
5855
5856 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5857 instead of get_current_arch.
5858
936d2992
PA
58592014-05-20 Pedro Alves <palves@redhat.com>
5860
5861 * NEWS: Mention that compare-sections now works with all targets.
5862
5863 * remote.c (PACKET_qCRC): New enum value.
5864 (remote_verify_memory): Don't send qCRC if the target has no
5865 execution. Use packet_support/packet_ok. If the target doesn't
5866 support the qCRC packet, fallback to a deep memory copy.
5867 (compare_sections_command): Say "target image" instead of "remote
5868 executable".
5869 (_initialize_remote): Add PACKET_qCRC to the list of config
5870 packets that have no associated command. Extend comment.
5871 * target.c (simple_verify_memory, default_verify_memory): New
5872 function.
5873 * target.h (struct target_ops) <to_verify_memory>: Default to
5874 default_verify_memory.
5875 (simple_verify_memory): New declaration.
5876 * target-delegates.c: Regenerate.
5877
e59fa00f
MM
58782014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5879
5880 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5881
f2205de0
HZ
58822014-05-20 Hui Zhu <hui@codesourcery.com>
5883 Yao Qi <yao@codesourcery.com>
5884
5885 PR backtrace/16558
5886 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5887 and change address of sp and pc.
5888
c4e54771
TT
58892014-05-19 Tom Tromey <tromey@redhat.com>
5890
5891 * gdbtypes.c (rank_function): Use XNEWVEC.
5892 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5893
73051182
DE
58942014-05-19 Doug Evans <dje@google.com>
5895
5896 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5897 build_type_unit_groups and moved closer to only caller. Remove
5898 arguments. All references updated. Remove outdated .gdb_index
5899 comment.
5900 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5901 build_type_psymtabs_1.
5902
8832e7e3
DE
59032014-05-19 Doug Evans <dje@google.com>
5904
5905 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5906 n_type_unit_groups, all_type_unit_groups. All uses removed.
5907 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5908 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5909 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5910 (add_type_unit_group_to_table): Delete.
5911
cd8ae15e
DE
59122014-05-19 Doug Evans <dje@google.com>
5913
5914 * eval.c (evaluate_subexp_standard): Add some comments.
5915
08f4850b
DE
59162014-05-17 Doug Evans <xdje42@gmail.com>
5917
5918 * progspace.c (remove_program_space): Delete, unused.
5919 * progspace.h (remove_program_space): Ditto.
5920
bed8455c
DE
59212014-05-17 Doug Evans <xdje42@gmail.com>
5922
5923 * inferior.c (prune_inferiors): Fix comment.
5924 (remove_inferior_command): Call prune_program_spaces.
5925
8d551b02
DE
59262014-05-16 Doug Evans <dje@google.com>
5927
5928 New command line option -D.
5929 * NEWS: Mention it.
5930 * main.c (set_gdb_data_directory): New function.
5931 (captured_main): Recognize -D. Flag error for --data-directory "".
5932 Call set_gdb_data_directory.
5933 (print_gdb_help): Print --data-directory, -D.
5934 * main.h (set_gdb_data_directory): Declare.
5935 * top.c (staged_gdb_datadir): New static global.
5936 (set_gdb_datadir): Call set_gdb_data_directory
5937 (show_gdb_datadir): New function.
5938 (init_main): Update init of data-directory parameter.
5939
18848e28
GF
59402014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5941
5942 Import the "dirfd" gnulib module.
5943 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5944 * gnulib/aclocal.m4: Update.
5945 * gnulib/config.in: Update.
5946 * gnulib/configure: Update.
5947 * gnulib/import/Makefile.am: Update.
5948 * gnulib/import/Makefile.in: Update.
5949 * gnulib/import/dirfd.c: New.
5950 * gnulib/import/m4/dirfd.m4: New.
5951 * gnulib/import/m4/gnulib-cache.m4: Update.
5952 * gnulib/import/m4/gnulib-comp.m4: Update.
5953
95c64f92
YQ
59542014-05-16 Pierre Muller <muller@sourceware.org>
5955 Yao Qi <yao@codesourcery.com>
5956
5957 * valprint.c (print_wchar): Move the code on checking whether
5958 W is a printable wide char to the default branch of switch
5959 statement below. Call wchar_printable instead of gdb_iswprint.
5960
cac395ea
TM
59612014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5962
19679eca 5963 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5964 ldr.w and ldrd instructions.
5965
83655187
DE
59662014-05-15 Doug Evans <dje@google.com>
5967
5968 * dwarf2read.c (read_structure_type): Delete outdated comments.
5969
dd756689
TT
59702014-05-14 Tom Tromey <tromey@redhat.com>
5971
5972 * macrocmd.c (print_macro_definition): Reindent.
5973
75ddda77
DE
59742014-05-13 Doug Evans <xdje42@gmail.com>
5975
5976 * python/py-cmd.c (cmdpy_completer): Add comment.
5977 (completers): Make const.
5978
b0f16a3e
SM
59792014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5980
5981 * infrun.c (resume): Remove should_resume (unused). Move up
5982 declaration of resume_ptid.
5983
033c3379
TT
59842014-05-13 Tom Tromey <tromey@redhat.com>
5985
5986 * language.h (unop_type_check): Remove.
5987 (binop_type_check): Don't declare.
5988
9b44a3a5
AA
59892014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5990
5991 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5992 call to regcache_raw_collect.
5993
303a33fa
SM
59942014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5995
5996 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5997 mi_console->quote as the quoting character.
5998
196100a0
SM
59992014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6000
6001 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6002
f989a1c8
TT
60032014-04-29 Tom Tromey <tromey@redhat.com>
6004
6005 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6006 "show debug varobj".
6007
9404b58f
KM
60082014-05-07 Kyle McMartin <kyle@redhat.com>
6009
6010 Pushed by Joel Brobecker <brobecker@adacore.com>.
6011 * aarch64-tdep.c (aarch64_software_single_step): New function.
6012 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6013 with aarch64_software_single_step.
6014
5e49ba57
JB
60152014-05-05 Joel Brobecker <brobecker@adacore.com>
6016
6017 GDB 7.7.1 released.
6018
c888a17d
KS
60192014-05-05 Keith Seitz <keiths@redhat.com>
6020
6021 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6022 variable or history value is successfully parsed.
6023
290a839c
YQ
60242014-05-05 Yao Qi <yao@codesourcery.com>
6025 Pedro Alves <palves@redhat.com>
6026
6027 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6028 address of blocks that intersects the requested range. Trim
6029 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6030 sections.
6031 * ctf.c (ctf_xfer_partial): Likewise.
6032
91256dc2
YQ
60332014-05-05 Yao Qi <yao@codesourcery.com>
6034
6035 * printcmd.c (display_command): Remove the check to
6036 target_has_execution.
6037
07284463
MK
60382014-05-03 Mark Kettenis <kettenis@gnu.org>
6039
6040 * ppcobsd-nat.c: Include "obsd-nat.h".
6041 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6042 add_target.
6043 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6044
30a1e6cc
SDJ
60452014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6046
6047 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6048 and 16-bit signed and unsigned arguments. Update comment.
6049 (stap_parse_probe_arguments): Extend code to handle such
6050 arguments. Use warning instead of complaint to notify about
6051 unrecognized bitness.
6052
f33da99a
SDJ
60532014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6054
6055 PR breakpoints/16889
6056 * stap-probe.c (stap_parse_probe_arguments): Simplify
6057 check for non-prefixed probes (i.e., probes whose
6058 arguments do not start with "N@"). Always set the
6059 argument type to a sane value.
6060
95cf3b38
DT
60612014-05-01 David Taylor <dtaylor@emc.com>
6062
6063 * remote.c (compare_sections_command): Add -r option to compare
6064 all loadable read-only sections.
6065
1cfdf534
SC
60662014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6067
6068 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6069 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6070 Update all callers.
6071 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6072 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6073 Remove unused CORE_ADDR argument. Update all callers.
6074
ca4f7f8b
PA
60752014-04-29 Pedro Alves <palves@redhat.com>
6076
6077 * remote.c (struct packet_config) <detect>: Extend comment.
6078 (add_packet_config_cmd): Don't set the config's detect or support
6079 fields here.
6080 (init_all_packet_configs): Also initialize the config's 'detect'
6081 field.
6082 (reset_all_packet_configs_support): New function.
6083 (remote_open_1): Call reset_all_packet_configs_support instead of
6084 init_all_packet_configs.
6085 (_initialize_remote): Initialize all packet configs. Assert that
6086 all packets have an associated command, except a few known
6087 outliers.
6088
11c1ba78
JB
60892014-04-28 Joel Brobecker <brobecker@adacore.com>
6090
6091 * dwarf2read.c (read_subrange_type): Handle dynamic
6092 DW_AT_lower_bound attributes.
6093
8739bc53
JB
60942014-04-28 Joel Brobecker <brobecker@adacore.com>
6095
6096 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6097 dynamic bounds before computing its upper bound.
6098 (ada_discrete_type_low_bound): Same as above with the lower bound.
6099
6f8a3220
JB
61002014-04-28 Joel Brobecker <brobecker@adacore.com>
6101
6102 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6103 range types. Adjust the array handling implementation to
6104 take advantage of this change.
6105 (resolve_dynamic_range): New function, mostly extracted from
6106 resolve_dynamic_bounds.
6107 (resolve_dynamic_array): New function, mostly extracted from
6108 resolve_dynamic_bounds.
6109 (resolve_dynamic_bounds): Delete.
6110 (resolve_dynamic_type): Reimplement. Add handling of
6111 TYPE_CODE_RANGE types.
6112
4d072ce4
JB
61132014-04-28 Joel Brobecker <brobecker@adacore.com>
6114
6115 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6116 handling of parallel ___XA types.
6117
52865325
JB
61182014-04-28 Joel Brobecker <brobecker@adacore.com>
6119
6120 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6121 unnecessary second call to static_unwrap_type.
6122
433e77fa
HZ
61232014-04-27 Hui Zhu <hui@codesourcery.com>
6124
6125 * stack.c (print_frame_info): Call do_gdb_disassembly with
6126 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6127
b51a69ee
DE
61282014-04-26 Doug Evans <xdje42@gmail.com>
6129
6130 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6131
7ae1a6a6
PA
61322014-04-25 Pedro Alves <palves@redhat.com>
6133
6134 PR server/16255
6135 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6136 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6137 and newline from built string.
6138 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6139 (linux_ptrace_attach_fail_reason): ... this.
6140 * linux-nat.c (linux_nat_attach): Adjust to use
6141 linux_ptrace_attach_fail_reason.
6142
4082afcc
PA
61432014-04-25 Pedro Alves <palves@redhat.com>
6144
6145 * remote.c (struct remote_state): Remove multi_process_aware,
6146 non_stop_aware, cond_tracepoints, cond_breakpoints,
6147 breakpoint_commands, fast_tracepoints, static_tracepoints,
6148 install_in_trace, disconnected_tracing,
6149 enable_disable_tracepoints, string_tracing, and
6150 augmented_libraries_svr4_read fields.
6151 (remote_multi_process_p): Move further below in the file.
6152 (struct packet_config): Add comments.
6153 (update_packet_config): Delete function.
6154 (show_packet_config_cmd): Use packet_config_support.
6155 (add_packet_config_cmd): Use NULL as set callback.
6156 (packet_ok): "set remote foo-packet"-style commands no longer
6157 change config->supported -- adjust.
6158 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6159 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6160 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6161 (PACKET_QNonStop, PACKET_multiprocess_feature)
6162 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6163 (PACKET_DisconnectedTracing_feature)
6164 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6165 (set_remote_protocol_packet_cmd): Delete function.
6166 (packet_config_support, packet_support): New functions.
6167 (set_remote_protocol_Z_packet_cmd): Don't call
6168 update_packet_config.
6169 (remote_query_attached, remote_pass_signals)
6170 (remote_program_signals, remote_threads_info)
6171 (remote_threads_extra_info, remote_start_remote): Use
6172 packet_support.
6173 (remote_start_remote): Use packet_config_support and
6174 packet_support.
6175 (init_all_packet_configs): Set all packets to unknown support,
6176 instead of calling update_packet_config.
6177 (remote_check_symbols): Use packet_support.
6178 (remote_supported_packet): Unconditionally set the packet config's
6179 support status.
6180 (remote_multi_process_feature, remote_non_stop_feature)
6181 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6182 (remote_breakpoint_commands_feature)
6183 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6184 (remote_install_in_trace_feature)
6185 (remote_disconnected_tracing_feature)
6186 (remote_enable_disable_tracepoint_feature)
6187 (remote_string_tracing_feature)
6188 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6189 (remote_protocol_features): Adjust to use remote_supported_packet
6190 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6191 "ConditionalTracepoints", "ConditionalBreakpoints",
6192 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6193 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6194 "EnableDisableTracepoints", and "tracenz".
6195 (remote_query_supported): Use packet_support.
6196 (remote_open_1): Adjust.
6197 (extended_remote_attach_1): Use packet_support. Switch on the
6198 result of packet_ok instead of checking whether the packet ended
6199 up disabled.
6200 (remote_vcont_resume): Use packet_support.
6201 (remote_resume, remote_stop_ns, fetch_register_using_p)
6202 (remote_prepare_to_store, store_register_using_P)
6203 (check_binary_download, remote_write_bytes): Use packet_support.
6204 (remote_vkill): Use packet_support. Switch on the result of
6205 packet_ok instead of checking whether the packet ended up
6206 disabled.
6207 (extended_remote_supports_disable_randomization): Use
6208 packet_support.
6209 (extended_remote_run): Switch on the result of packet_ok instead
6210 of checking whether the packet ended up disabled.
6211 (remote_insert_breakpoint, remote_remove_breakpoint)
6212 (remote_insert_watchpoint, remote_remove_watchpoint)
6213 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6214 packet_support.
6215 (remote_search_memory): Use packet_config_support.
6216 (remote_get_thread_local_address, remote_get_tib_address)
6217 (remote_hostio_send_command, remote_can_execute_reverse): Use
6218 packet_support.
6219 (remote_supports_cond_tracepoints)
6220 (remote_supports_cond_breakpoints)
6221 (remote_supports_fast_tracepoints)
6222 (remote_supports_static_tracepoints)
6223 (remote_supports_install_in_trace)
6224 (remote_supports_enable_disable_tracepoint)
6225 (remote_supports_string_tracing)
6226 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6227 the packet config says the feature is enabled or disabled.
6228 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6229 (remote_get_trace_status): Use packet_support.
6230 (remote_set_disconnected_tracing): Adjust to check whether the
6231 feature is enabled with packet_support.
6232 (remote_set_trace_buffer_size, remote_use_agent)
6233 (remote_can_use_agent, remote_supports_btrace): Use
6234 packet_support.
6235 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6236 Use packet_config_support.
6237 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6238 the packet config says the feature is enabled or disabled.
6239 (set_range_stepping): Use packet_support.
6240
bdb52a22
TT
62412014-04-25 Tom Tromey <tromey@redhat.com>
6242
6243 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6244 argument.
6245
e9475ead
SA
62462014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6247
6248 * NEWS: Mention support for C99 variable length arrays.
6249
82eacd52
JB
62502014-04-24 Joel Brobecker <brobecker@adacore.com>
6251
6252 * ada-lang.c (standard_exc): Expand introductory comment.
6253
01f9f808
MS
62542014-04-24 Michael Sturm <michael.sturm@mintel.com>
6255 Walfred Tedeschi <walfred.tedeschi@intel.com>
6256
6257 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6258 AVX512 registers.
6259 (amd64_linux_read_description): Add code to handle AVX512 xstate
6260 mask and return respective tdesc.
6261 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6262 and features/i386/x32-avx512-linux.c.
6263 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6264 (amd64_linux_core_read_description): Add code to handle AVX512
6265 xstate mask and return respective tdesc.
6266 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6267 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6268 calculation.
6269 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6270 (tdesc_amd64_avx512_linux): New prototype.
6271 (tdesc_x32_avx512_linux): Likewise.
6272 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6273 features/i386/x32-avx512.c.
6274 (amd64_ymm_avx512_names): New register names for pseudo
6275 registers YMM16-31.
6276 (amd64_ymmh_avx512_names): New register names for raw registers
6277 YMMH16-31.
6278 (amd64_k_names): New register names for K registers.
6279 (amd64_zmmh_names): New register names for ZMM raw registers.
6280 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6281 (amd64_xmm_avx512_names): New register names for XMM16-31
6282 registers.
6283 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6284 registers.
6285 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6286 if feature is present.
6287 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6288 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6289 (AMD64_NUM_REGS): Adjust to new number of registers.
6290 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6291 registers supplied via XSTATE by AVX512 registers.
6292 (i386_linux_read_description): Add case for AVX512.
6293 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6294 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6295 (i386_linux_core_read_description): Add case for AVX512.
6296 (i386_linux_init_abi): Install supported register note section
6297 for AVX512.
6298 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6299 AVX512.
6300 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6301 registers to be number of zmm7h + 1.
6302 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6303 * i386-tdep.c: Include features/i386/i386-avx512.c.
6304 (i386_zmm_names): Add ZMM pseudo register names array.
6305 (i386_zmmh_names): Add ZMM raw register names array.
6306 (i386_k_names): Add K raw register names array.
6307 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6308 registers. AVX512 has 16 more ZMM registers than there are YMM
6309 registers.
6310 (i386_zmmh_regnum_p): Add function to look up register number of
6311 ZMM raw registers.
6312 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6313 (i386_k_regnum_p): Likewise for K raw registers.
6314 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6315 registers added by AVX512.
6316 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6317 registers added by AVX512.
6318 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6319 added by AVX512.
6320 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6321 (i386_pseudo_register_name): Add ZMM pseudo registers.
6322 (i386_zmm_type): Construct and return vector registers type for ZMM
6323 registers.
6324 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6325 ZMM0-31 pseudo registers and K registers.
6326 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6327 and YMM16-31 registers from register cache.
6328 (i386_pseudo_register_write): Add code to write K, ZMM and
6329 YMM16-31 registers.
6330 (i386_register_reggroup_p): Add code to include/exclude AVX512
6331 registers in/from respective register groups.
6332 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6333 registers if feature is present in xcr0.
6334 (i386_gdbarch_init): Add code to initialize AVX512 feature
6335 variables in tdep structure, wire in pseudo registers and call
6336 initialize_tdesc_i386_avx512.
6337 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6338 variables.
6339 (i386_regnum): Add AVX512 registers.
6340 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6341 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6342 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6343 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6344 512 bits wide.
6345 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6346 (i386_ymm_avx512_regnum_p): Likewise.
6347 (i386_k_regnum_p): Likewise.
6348 (i386_zmm_regnum_p): Likewise.
6349 (i386_zmmh_regnum_p): Likewise.
6350 * i387-tdep.c : Update year in copyright notice.
6351 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6352 XSAVE buffer.
6353 (XSAVE_YMM_AVX512_ADDR): New macro.
6354 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6355 XSAVE buffer.
6356 (XSAVE_XMM_AVX512_ADDR): New macro.
6357 (xsave_avx512_k_offset): New table for K register offsets in
6358 XSAVE buffer.
6359 (XSAVE_AVX512_K_ADDR): New macro.
6360 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6361 in XSAVE buffer.
6362 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6363 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6364 buffer.
6365 (i387_collect_xsave): Add code to collect AVX512 registers from
6366 XSAVE buffer.
6367 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6368 of XMM16-31 registers.
6369 (I387_NUM_K_REGS): New define for number of K registers.
6370 (I387_K0_REGNUM): New define for K0 register number.
6371 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6372 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6373 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6374 registers.
6375 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6376 (I387_XMM16_REGNUM): New define for XMM16 register number.
6377 (I387_YMM0_REGNUM): New define for YMM0 register number.
6378 (I387_KEND_REGNUM): New define for last K register number.
6379 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6380 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6381 number.
6382 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6383 number.
6384 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6385 size.
6386 * features/Makefile: Add AVX512 related files.
6387 * features/i386/32bit-avx512.xml: New file.
6388 * features/i386/64bit-avx512.xml: Likewise.
6389 * features/i386/amd64-avx512-linux.c: Likewise.
6390 * features/i386/amd64-avx512-linux.xml: Likewise.
6391 * features/i386/amd64-avx512.c: Likewise.
6392 * features/i386/amd64-avx512.xml: Likewise.
6393 * features/i386/i386-avx512-linux.c: Likewise.
6394 * features/i386/i386-avx512-linux.xml: Likewise.
6395 * features/i386/i386-avx512.c: Likewise.
6396 * features/i386/i386-avx512.xml: Likewise.
6397 * features/i386/x32-avx512-linux.c: Likewise.
6398 * features/i386/x32-avx512-linux.xml: Likewise.
6399 * features/i386/x32-avx512.c: Likewise.
6400 * features/i386/x32-avx512.xml: Likewise.
6401 * regformats/i386/amd64-avx512-linux.dat: New file.
6402 * regformats/i386/amd64-avx512.dat: Likewise.
6403 * regformats/i386/i386-avx512-linux.dat: Likewise.
6404 * regformats/i386/i386-avx512.dat: Likewise.
6405 * regformats/i386/x32-avx512-linux.dat: Likewise.
6406 * regformats/i386/x32-avx512.dat: Likewise.
6407 * NEWS: Add note about new support for AVX512.
6408
6409
08351840
PA
64102014-04-23 Pedro Alves <palves@redhat.com>
6411
6412 * breakpoint.c (insert_bp_location): Tolerate errors if the
6413 breakpoint is set in a user-loaded objfile.
6414 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6415 location is marked shlib_disabled. If the breakpoint is set in a
6416 user-loaded objfile is a GDB-side memory breakpoint, validate it
6417 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6418 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6419 flag.
6420 * mem-break.c (memory_validate_breakpoint): New function.
6421 * objfiles.c (userloaded_objfile_contains_address_p): New
6422 function.
6423 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6424 * target.h (memory_validate_breakpoint): New declaration.
6425
076855f9
PA
64262014-04-23 Pedro Alves <palves@redhat.com>
6427
6428 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6429 the breakpoint is set in a shared library, only suppress
6430 errors for software breakpoints, not hardware breakpoints.
6431
483805cf
PA
64322014-04-22 Pedro Alves <palves@redhat.com>
6433
6434 * infrun.c (schedlock_applies): New function, factored out from
6435 find_thread_needs_step_over.
6436 (find_thread_needs_step_over): Use it.
6437 (switch_back_to_stepped_thread): Always clear trap_expected if the
6438 step over is finished. Return early if scheduler locking applies.
6439 Look for the stepping thread and a potential step-over thread with
6440 a single loop.
6441 (currently_stepping_or_nexting_callback): Delete.
6442
a75fef0e
NC
64432014-04-22 Nick Clifton <nickc@redhat.com>
6444
6445 * NEWS: Mention that ARM sim now supports tracing.
6446
48b6e87e
YQ
64472014-04-22 Yao Qi <yao@codesourcery.com>
6448
6449 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6450 to ...
6451 * tracefile.c (tracefile_fetch_registers): ... it. New
6452 function.
6453 * tracefile.h (tracefile_fetch_registers): Declare.
6454 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6455 tracefile_fetch_registers.
6456
17617f2d
EZ
64572014-04-19 Eli Zaretskii <eliz@gnu.org>
6458
6459 PR gdb/14018
6460 * windows-nat.c (thread_rec): Don't display a warning when
6461 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6462 fails for any reason, set th->suspended to -1, so that we don't
6463 try to resume such a thread. Also, don't return NULL in these
6464 cases, to avoid completely ruin the session due to "PC register is
6465 not available" error.
6466 (do_windows_fetch_inferior_registers): Check errors in
6467 GetThreadContext call.
6468 (windows_continue): Accept an additional argument KILLED; if not
6469 zero, ignore errors in the SetThreadContext call, since the
6470 inferior was killed and is shutting down.
6471 (windows_resume, get_windows_debug_event)
6472 (windows_create_inferior, windows_mourn_inferior)
6473 (windows_kill_inferior): All callers of windows_continue changed
6474 to adjust to its new calling sequence.
6475
5723a6fd
YQ
64762014-04-19 Yao Qi <yao@codesourcery.com>
6477
6478 * ctf.c (ctf_open): Call post_create_inferior.
6479
614d5099
YQ
64802014-04-19 Yao Qi <yao@codesourcery.com>
6481
6482 * ctf.c (handle_id): New static variable.
6483 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6484 value. Get the declaration of event "register" and get length
6485 of field "contents".
6486
dac3e710
YQ
64872014-04-19 Yao Qi <yao@codesourcery.com>
6488
6489 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6490
2bca57ba
SC
64912014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6492
6493 * valops.c (oload_method_static): Remove unnecessary argument
6494 METHOD. Update all callers.
6495
51d48146
PA
64962014-04-18 Pedro alves <palves@redhat.com>
6497 Tom Tromey <tromey@redhat.com>
6498
6499 PR backtrace/15558
6500 * frame.c (get_prev_frame_1): Rename to ...
6501 (get_prev_frame_always): ... this, and make extern. Adjust.
6502 (skip_artificial_frames): Use get_prev_frame_always.
6503 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6504 (get_frame_unwind_stop_reason): Adjust to rename.
6505 * frame.h (get_prev_frame_always): Declare.
6506 * inline-frame.c: Include frame.h.
6507 (inline_frame_this_id): Use get_prev_frame_always.
6508
1bdad2e0
TG
65092014-04-18 Tristan Gingold <gingold@adacore.com>
6510
6511 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6512 code by using bfd_mach_o_get_base_address.
6513
7ce16bd4
UW
65142014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6515
6516 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6517 (spu_ax_pseudo_register_collect): New function.
6518 (spu_ax_pseudo_register_push_stack): Likewise.
6519 (spu_dwarf_reg_to_regnum): Likewise.
6520 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6521
2ed3c037
UW
65222014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6523
6524 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6525 Replace FRAME argument with FRAME_ID.
6526 * gdbarch.c, gdbarch.h: Regenerate.
6527 * findvar.c (default_value_from_register): Add GDBARCH argument;
6528 replace FRAME by FRAME_ID. No longer call get_frame_id.
6529 (value_from_register): Update call to gdbarch_value_from_register.
6530 * value.h (default_value_from_register): Update prototype.
6531 * s390-linux-tdep.c (s390_value_from_register): Update interface
6532 and call to default_value_from_register.
6533 * spu-tdep.c (spu_value_from_register): Likewise.
6534
6535 * findvar.c (address_from_register): Remove TYPE argument.
6536 Do not call value_from_register; use gdbarch_value_from_register
6537 with null_frame_id instead.
6538 * value.h (address_from_register): Update prototype.
6539 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6540 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6541 address_from_register interface change.
6542
71e50e83
YQ
65432014-04-17 Yao Qi <yao@codesourcery.com>
6544
6545 * gdbtypes.h: Update comments to link to types and macros'
6546 definitions.
6547
7a23c549
SC
65482014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6549
6550 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6551
22869d73
KS
65522014-04-16 Keith Seitz <keiths@redhat.com>
6553
6554 PR gdb/15827
6555 * dwarf2read.c (skip_one_die): Check that all relative-offset
6556 sibling DIEs fall within range of the current reader's buffer.
6557 (read_partial_die): Likewise.
6558
c4f87ca6
KS
65592014-04-16 Keith Seitz <keiths@redhat.com>
6560
6561 PR c++/16597
6562 * cp-namespace.c (lookup_symbol_file): If the type name of
6563 `this' is NULL, return immediately.
6564
b50c8614
KS
65652014-04-14 Keith Seitz <keiths@redhat.com>
6566
6567 PR c++/16253
6568 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6569 from symbol_matches_domain in symtab.c. All local callers
6570 of symbol_matches_domain updated.
6571 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6572 search STRUCT_DOMAIN.
6573 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6574 independently. standard_lookup will do that automatically.
6575 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6576 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6577 (cp_lookup_symbol_in_namespace): Likewise.
6578 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6579 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6580 may return a STRUCT_DOMAIN match.
6581 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6582 * cp-support.c: Include language.h.
6583 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6584 VAR_DOMAIN.
6585 * psymtab.c (match_partial_symbol): Compare the requested
6586 domain with the symbol's domain directly.
6587 (lookup_partial_symbol): Likewise.
6588 * symtab.c (lookup_symbol_in_language): Explain when/why
6589 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6590 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6591 appropriate languages.
6592 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6593 and moved to ada-lang.c
6594 (lookup_block_symbol): Explain that this function only returns
6595 symbol matching the requested DOMAIN.
6596 Compare the requested domain with the symbol's domain directly.
6597 (iterate_over_symbols): Compare the requested domain with the
6598 symbol's domain directly.
6599 * symtab.h (symbol_matches_domain): Remove.
6600
3d567982
TT
66012014-04-14 Tom Tromey <tromey@redhat.com>
6602
6603 PR c++/15246:
6604 * c-exp.y (type_aggregate_p): New function.
6605 (qualified_name, classify_inner_name): Use it.
6606 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6607 and TYPE_TARGET_TYPE of an enum type.
6608 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6609 an enum type.
6610 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6611 handle TYPE_DECLARED_CLASS.
6612 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6613 types.
6614 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6615 * valops.c (enum_constant_from_type): New function.
6616 (value_aggregate_elt): Use it.
6617 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6618 TYPE_CODE_ENUM.
6619
c848d642
TT
66202014-04-14 Tom Tromey <tromey@redhat.com>
6621
6622 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6623 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6624 const.
6625 * value.h (value_aggregate_elt): Update.
6626
0626fc76
TT
66272014-04-14 Tom Tromey <tromey@redhat.com>
6628
6629 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6630
5ecaaa66
SA
66312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6632
6633 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6634 (evaluate_subexp_standard): Pass noside argument.
6635 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6636 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6637 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6638 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6639 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6640
1612e0c0
SA
66412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6642
6643 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6644 points to a constant blob.
6645
c451ebe5
SA
66462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6647
6648 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6649 property and store it as the high bound and flag the range accordingly.
6650 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6651 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6652 * gdbtypes.h (enum range_flags): New enum.
6653 (struct range_bounds): Add flags member.
6654
1d42e4c4
SA
66552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6656
6657 * c-typeprint.c (c_type_print_varspec_suffix): Added
6658 check for not yet resolved high bound. If unresolved, print
6659 "variable length" string to the console instead of random
6660 length.
6661
9f1f738a
SA
66622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6663
6664 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6665 value.
6666 (ada_template_to_fixed_record_type_1): Likewise.
6667 (ada_to_fixed_type_1): Likewise.
6668 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6669 (cp_print_value): Likewise.
6670 * d-valprint.c (dynamic_array_type): Likewise.
6671 * findvar.c (address_of_variable): Likewise.
6672 * jv-valprint.c (java_value_print): Likewise.
6673 * valops.c (value_ind): Likewise.
6674 * value.c (coerce_ref): Likewise.
6675
3c8452d4
SA
66762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6677
6678 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6679 value and retrieve the dynamic type size.
6680
4ad88275
SA
66812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6682
6683 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6684 passed to sizeof is dynamic evaluate the argument to compute the length.
6685
80180f79
SA
66862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6687 Joel Brobecker <brobecker@adacore.com>
6688
6689 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6690 (dwarf2_evaluate_property): New function.
6691 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6692 * dwarf2read.c (attr_to_dynamic_prop): New function.
6693 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6694 attribute.
6695 * gdbtypes.c: Include dwarf2loc.h.
6696 (is_dynamic_type): New function.
6697 (resolve_dynamic_type): New function.
6698 (resolve_dynamic_bounds): New function.
6699 (get_type_length): New function.
6700 (check_typedef): Use get_type_length to compute type length.
6701 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6702 (TYPE_LOW_BOUND_KIND): New macro.
6703 (is_dynamic_type): New function prototype.
6704 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6705 to resolve dynamic properties of the type. Update comment.
6706 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6707
a1556843
RH
67082014-04-14 Richard Henderson <rth@redhat.com>
6709
6710 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6711
0be03e84
DE
67122014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6713 Doug Evans <xdje42@gmail.com>
6714
6715 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6716 dereference TYPE_CODE_REF values.
6717
6b662e19
JB
67182014-04-11 Joel Brobecker <brobecker@adacore.com>
6719
6720 Revert the following changes due to regressions:
6721
6722 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6723 (dwarf2_evaluate_property): New function.
6724 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6725 * dwarf2read.c (attr_to_dynamic_prop): New function.
6726 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6727 attribute.
6728 * gdbtypes.c: Include dwarf2loc.h.
6729 (is_dynamic_type): New function.
6730 (resolve_dynamic_type): New function.
6731 (resolve_dynamic_bounds): New function.
6732 (get_type_length): New function.
6733 (check_typedef): Use get_type_length to compute type length.
6734 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6735 (TYPE_LOW_BOUND_KIND): New macro.
6736 (is_dynamic_type): New function prototype.
6737 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6738 to resolve dynamic properties of the type. Update comment.
6739 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6740
6741 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6742 passed to sizeof is dynamic evaluate the argument to compute the length.
6743
6744 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6745 value and retrieve the dynamic type size.
6746
6747 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6748 (ada_template_to_fixed_record_type_1): Likewise.
6749 (ada_to_fixed_type_1): Likewise.
6750 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6751 (cp_print_value): Likewise.
6752 * d-valprint.c (dynamic_array_type): Likewise.
6753 * eval.c (evaluate_subexp_with_coercion): Likewise.
6754 * findvar.c (address_of_variable): Likewise.
6755 * jv-valprint.c (java_value_print): Likewise.
6756 * valops.c (value_ind): Likewise.
6757 * value.c (coerce_ref): Likewise.
6758
6759 * c-typeprint.c (c_type_print_varspec_suffix): Added
6760 check for not yet resolved high bound. If unresolved, print
6761 "variable length" string to the console instead of random
6762 length.
6763
6764 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6765 property and store it as the high bound and flag the range accordingly.
6766 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6767 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6768 * gdbtypes.h (enum range_flags): New enum.
6769 (struct range_bounds): Add flags member.
6770
6771 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6772 points to a constant blob.
6773
6774 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6775 (evaluate_subexp_standard): Pass noside argument.
6776 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6777 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6778 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6779 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6780 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6781
245a5f0b
KS
67822014-04-11 Keith Seitz <keiths@redhat.com>
6783
6784 PR c++/16675
6785 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6786 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6787 reference types.
6788
3bce8237
SA
67892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6790
6791 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6792 (evaluate_subexp_standard): Pass noside argument.
6793 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6794 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6795 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6796 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6797 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6798
92b09522
SA
67992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6800
6801 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6802 points to a constant blob.
6803
e1969afb
SA
68042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6805
6806 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6807 property and store it as the high bound and flag the range accordingly.
6808 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6809 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6810 * gdbtypes.h (enum range_flags): New enum.
6811 (struct range_bounds): Add flags member.
6812
b86138fb
SA
68132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6814
6815 * c-typeprint.c (c_type_print_varspec_suffix): Added
6816 check for not yet resolved high bound. If unresolved, print
6817 "variable length" string to the console instead of random
6818 length.
6819
bcd629a4
SA
68202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6821
6822 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6823 (ada_template_to_fixed_record_type_1): Likewise.
6824 (ada_to_fixed_type_1): Likewise.
6825 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6826 (cp_print_value): Likewise.
6827 * d-valprint.c (dynamic_array_type): Likewise.
6828 * eval.c (evaluate_subexp_with_coercion): Likewise.
6829 * findvar.c (address_of_variable): Likewise.
6830 * jv-valprint.c (java_value_print): Likewise.
6831 * valops.c (value_ind): Likewise.
6832 * value.c (coerce_ref): Likewise.
6833
04b19544
SA
68342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6835
6836 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6837 value and retrieve the dynamic type size.
6838
26cb189f
SA
68392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6840
6841 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6842 passed to sizeof is dynamic evaluate the argument to compute the length.
6843
37c1ab67
SA
68442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6845
6846 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6847 (dwarf2_evaluate_property): New function.
6848 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6849 * dwarf2read.c (attr_to_dynamic_prop): New function.
6850 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6851 attribute.
6852 * gdbtypes.c: Include dwarf2loc.h.
6853 (is_dynamic_type): New function.
6854 (resolve_dynamic_type): New function.
6855 (resolve_dynamic_bounds): New function.
6856 (get_type_length): New function.
6857 (check_typedef): Use get_type_length to compute type length.
6858 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6859 (TYPE_LOW_BOUND_KIND): New macro.
6860 (is_dynamic_type): New function prototype.
6861 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6862 to resolve dynamic properties of the type. Update comment.
6863 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6864
729efb13
SA
68652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6866
6867 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6868 declaring high/low bounds and change uses accordingly. Call
6869 create_range_type instead of create_static_range_type.
6870 * gdbtypes.c (create_range_type): New function.
6871 (create_range_type): Convert bounds into struct bound_prop and pass
6872 them to create_range_type.
6873 * gdbtypes.h (struct bound_prop): New struct.
6874 (create_range_type): New function prototype.
6875 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6876 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6877 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6878 part of the bound.
6879 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6880
0c9c3474
SA
68812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6882
6883 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6884 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6885 * ada-lang.c: All uses of create_range_type updated.
6886 * coffread.c: All uses of create_range_type updated.
6887 * dwarf2read.c: All uses of create_range_type updated.
6888 * f-exp.y: All uses of create_range_type updated.
6889 * m2-valprint.c: All uses of create_range_type updated.
6890 * mdebugread.c: All uses of create_range_type updated.
6891 * stabsread.c: All uses of create_range_type updated.
6892 * valops.c: All uses of create_range_type updated.
6893 * valprint.c: All uses of create_range_type updated.
6894
9d497a19
PA
68952014-04-10 Pedro Alves <palves@redhat.com>
6896
6897 * breakpoint.c (single_step_breakpoints)
6898 (single_step_gdbarch): Move up in the file.
6899 (one_breakpoint_xfer_memory): New function, factored out from ...
6900 (breakpoint_xfer_memory): ... here. Also process single-step
6901 breakpoints.
6902
15a9128a
TG
69032014-04-09 Tristan Gingold <gingold@adacore.com>
6904
6905 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6906 comments.
6907 (darwin_decode_exception_message): Free port only after use.
6908
9c97a070
PL
69092014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6910
6911 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6912 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6913 when setting the size of call_length.
6914
7af389b8
SC
69152014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6916
6917 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6918 dereference TYPE_CODE_REF values.
6919
86ad98c3
JB
69202014-04-07 Joel Brobecker <brobecker@adacore.com>
6921
6922 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6923 end of warning message.
6924
b0aeadb3
DE
69252014-04-03 Doug Evans <dje@google.com>
6926
6927 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6928 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6929
5979d6b6
AM
69302014-04-02 Alan Modra <amodra@gmail.com>
6931
6932 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6933 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6934 (struct symbol_file_add_from_memory_args): Add size field.
6935 (find_vdso_size): New function.
6936 (add_vsyscall_page): Attempt to find vdso size.
6937
0d60c288
DE
69382014-04-01 Doug Evans <dje@google.com>
6939
6940 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6941
a41f2563
TG
69422014-04-01 Tristan Gingold <gingold@adacore.com>
6943
6944 * darwin-nat.c (darwin_encode_reply): Add prototype.
6945 (darwin_decode_exception_message): Reply to unknown inferiors.
6946 (darwin_decode_message): Handle message by id. Ignore message
6947 to unknown inferior.
6948 (darwin_wait): Discard unknown messages, add debug trace.
6949
11a865c8
DE
69502014-03-31 Doug Evans <dje@google.com>
6951
6952 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6953 comp_dir_string.
6954
770e7fc7
DE
69552014-03-31 Doug Evans <dje@google.com>
6956
6957 New option "set print symbol-loading".
6958 * NEWS: Mention it.
6959 * solib.c (solib_read_symbols): Only print symbol loading messages
6960 if requested.
6961 (solib_add): If symbol loading is in "brief" mode, notify user
6962 symbols are being loaded.
6963 (reload_shared_libraries_1): Ditto.
6964 * symfile.c (print_symbol_loading_off): New static global.
6965 (print_symbol_loading_brief): New static global.
6966 (print_symbol_loading_full): New static global.
6967 (print_symbol_loading_enums): New static global.
6968 (print_symbol_loading): New static global.
6969 (print_symbol_loading_p): New function.
6970 (symbol_file_add_with_addrs): Only print symbol loading messages
6971 if requested.
6972 (_initialize_symfile): Register "print symbol-loading" set/show
6973 command.
6974 * symfile.h (print_symbol_loading_p): Declare.
6975
c32c64b7
DE
69762014-03-30 Doug Evans <xdje42@gmail.com>
6977
6978 * infrun.c (set_last_target_status): New function.
6979 (handle_inferior_event): Call it.
6980
7c0bc051
DE
69812014-03-30 Doug Evans <xdje42@gmail.com>
6982
6983 * inferior.h (enum stop_kind): Improve comment.
6984
8776cfe9
JB
69852014-03-28 Joel Brobecker <brobecker@adacore.com>
6986
6987 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6988 a reference, strip the reference layer before calling
6989 the lang_ops value_has_mutated callback.
6990
410a0ff2
SDJ
69912014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6992
6993 Remove some globals from our parser.
6994 * language.c (unk_lang_parser): Add "struct parser_state"
6995 argument.
6996 * language.h (struct language_defn) <la_parser>: Likewise.
6997 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6998 (initialize_expout): Add "struct parser_state" argument.
6999 Rewrite function to use the parser state.
7000 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7001 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7002 write_exp_elt_longcst, write_exp_elt_dblcst,
7003 write_exp_elt_decfloatcst, write_exp_elt_type,
7004 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7005 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7006 write_dollar_variable): Likewise.
7007 (parse_exp_in_context_1): Use parser state.
7008 (insert_type_address_space): Add "struct parser_state" argument.
7009 Use parser state.
7010 (increase_expout_size): New function.
7011 * parser-defs.h: Forward declare "struct language_defn" and
7012 "struct parser_state".
7013 (expout, expout_size, expout_ptr): Remove extern declarations.
7014 (parse_gdbarch, parse_language): Rewrite macro declarations to
7015 accept the parser state.
7016 (struct parser_state): New struct.
7017 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7018 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7019 write_exp_elt_decfloatcst, write_exp_elt_type,
7020 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7021 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7022 write_exp_msymbol, write_dollar_variable,
7023 mark_struct_expression, insert_type_address_space): Add "struct
7024 parser_state" argument.
7025 (increase_expout_size): New function.
7026 * utils.c (do_clear_parser_state): New function.
7027 (make_cleanup_clear_parser_state): Likewise.
7028 * utils.h (make_cleanup_clear_parser_state): New function
7029 prototype.
7030 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7031 Update calls to write_exp* in order to pass the parser state.
7032 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7033 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7034 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7035 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7036 * stap-probe.c (stap_parse_register_operand): Likewise.
7037 (stap_parse_single_operand): Likewise.
7038 (stap_parse_argument_1): Likewise.
7039 (stap_parse_argument): Use parser state.
7040 * stap-probe.h: Include "parser-defs.h".
7041 (struct stap_parse_info) <pstate>: New field.
7042 * c-exp.y (parse_type): Rewrite to use parser state.
7043 (yyparse): Redefine to c_parse_internal.
7044 (pstate): New global variable.
7045 (parse_number): Add "struct parser_state" argument.
7046 (write_destructor_name): Likewise.
7047 (type_exp): Update calls to write_exp* and similars in order to
7048 use parser state.
7049 (exp1, exp, variable, qualified_name, space_identifier,
7050 typename, typebase): Likewise.
7051 (write_destructor_name, parse_number, lex_one_token,
7052 classify_name, classify_inner_name, c_parse): Add "struct
7053 parser_state" argument. Update function to use parser state.
7054 * c-lang.h: Forward declare "struct parser_state".
7055 (c_parse): Add "struct parser_state" argument.
7056 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7057 (yyparse): Redefine macro to ada_parse_internal.
7058 (pstate): New variable.
7059 (write_int, write_object_renaming, write_var_or_type,
7060 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7061 type_int, type_long, type_long_long, type_float, type_double,
7062 type_long_double, type_char, type_boolean, type_system_address):
7063 Add "struct parser_state" argument.
7064 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7065 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7066 var_or_type, aggregate, aggregate_component_list,
7067 positional_list, others, component_group,
7068 component_associations): Update calls to write_exp* and similar
7069 functions in order to use parser state.
7070 (ada_parse, write_var_from_sym, write_int,
7071 write_exp_op_with_string, write_object_renaming,
7072 find_primitive_type, write_selectors, write_ambiguous_var,
7073 write_var_or_type, write_name_assoc, type_int, type_long,
7074 type_long_long, type_float, type_double, type_long_double,
7075 type_char, type_boolean, type_system_address): Add "struct
7076 parser_state" argument. Adjust function to use parser state.
7077 * ada-lang.c (parse): Likewise.
7078 * ada-lang.h: Forward declare "struct parser_state".
7079 (ada_parse): Add "struct parser_state" argument.
7080 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7081 calls to both functions.
7082 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7083 parser state.
7084 (yyparse): Redefine macro to f_parse_internal.
7085 (pstate): New variable.
7086 (parse_number): Add "struct parser_state" argument.
7087 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7088 and similars in order to use parser state.
7089 (parse_number): Adjust code to use parser state.
7090 (yylex): Likewise.
7091 (f_parse): New function.
7092 * f-lang.h: Forward declare "struct parser_state".
7093 (f_parse): Add "struct parser_state" argument.
7094 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7095 parser state.
7096 (yyparse): Redefine macro for java_parse_internal.
7097 (pstate): New variable.
7098 (push_expression_name, push_expression_name, insert_exp): Add
7099 "struct parser_state" argument.
7100 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7101 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7102 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7103 PostIncrementExpression, PostDecrementExpression,
7104 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7105 UnaryExpressionNotPlusMinus, CastExpression,
7106 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7107 RelationalExpression, EqualityExpression, AndExpression,
7108 ExclusiveOrExpression, InclusiveOrExpression,
7109 ConditionalAndExpression, ConditionalOrExpression,
7110 ConditionalExpression, Assignment, LeftHandSide): Update
7111 calls to write_exp* and similars in order to use parser state.
7112 (parse_number): Ajust code to use parser state.
7113 (yylex): Likewise.
7114 (java_parse): New function.
7115 (push_variable): Add "struct parser_state" argument. Adjust
7116 code to user parser state.
7117 (push_fieldnames, push_qualified_expression_name,
7118 push_expression_name, insert_exp): Likewise.
7119 * jv-lang.h: Forward declare "struct parser_state".
7120 (java_parse): Add "struct parser_state" argument.
7121 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7122 parser state.
7123 (yyparse): Redefine macro to m2_parse_internal.
7124 (pstate): New variable.
7125 (type_exp, exp, fblock, variable, type): Update calls to
7126 write_exp* and similars to use parser state.
7127 (yylex): Likewise.
7128 (m2_parse): New function.
7129 * m2-lang.h: Forward declare "struct parser_state".
7130 (m2_parse): Add "struct parser_state" argument.
7131 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7132 * objc-lang.h: Forward declare "struct parser_state".
7133 (end_msglist): Add "struct parser_state" argument.
7134 * p-exp.y (parse_type): Rewrite macro to use parser state.
7135 (yyparse): Redefine macro to pascal_parse_internal.
7136 (pstate): New variable.
7137 (parse_number): Add "struct parser_state" argument.
7138 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7139 write_exp* and similars in order to use parser state.
7140 (parse_number, yylex): Adjust code to use parser state.
7141 (pascal_parse): New function.
7142 * p-lang.h: Forward declare "struct parser_state".
7143 (pascal_parse): Add "struct parser_state" argument.
7144 * go-exp.y (parse_type): Rewrite macro to use parser state.
7145 (yyparse): Redefine macro to go_parse_internal.
7146 (pstate): New variable.
7147 (parse_number): Add "struct parser_state" argument.
7148 (type_exp, exp1, exp, variable, type): Update calls to
7149 write_exp* and similars in order to use parser state.
7150 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7151 to use parser state.
7152 (go_parse): Likewise.
7153 * go-lang.h: Forward declare "struct parser_state".
7154 (go_parse): Add "struct parser_state" argument.
7155
342587c4
DE
71562014-03-27 Doug Evans <dje@google.com>
7157
7158 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7159
33e80786
DE
71602014-03-27 Doug Evans <dje@google.com>
7161
7162 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7163 Remove argument abbrev_section. All callers updated.
7164
1dbab08b
DE
71652014-03-27 Doug Evans <dje@google.com>
7166
7167 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7168 addr_base, ranges_base.
7169
318d3177
KS
71702014-03-26 Keith Seitz <keiths@redhat.com>
7171
7172 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7173 types, not VAR_DOMAIN.
7174
1e54db15
SL
71752014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7176
7177 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7178 "ra" registers.
7179 * features/nios2-linux.c: Regenerated.
7180 * features/nios2.c: Regenerated.
7181
d3839ede
PA
71822014-03-25 Pedro Alves <palves@redhat.com>
7183
7184 * cli/cli-script.c (script_from_file): Force the interpreter to
7185 sync mode.
7186
7588d2ec
PL
71872014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7188
7189 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7190 small stack allocation.
7191
a6290449
TG
71922014-03-24 Tristan Gingold <gingold@adacore.com>
7193
7194 * darwin-nat.c (exc_server): Remove unused prototype.
7195 (darwin_dump_message): Correctly display data on x86_64.
7196 (darwin_encode_reply): Fix style.
7197 Add comments and fix indentation.
7198
31ae9d24 71992014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7200
7201 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7202
6339bfc4
DE
72032014-03-22 Doug Evans <xdje42@gmail.com>
7204
7205 * infcmd.c: Whitespace fixes.
7206 (interrupt_command): Merge two function comments into one.
7207
0a07590b
DE
72082014-03-22 Doug Evans <xdje42@gmail.com>
7209
7210 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7211 All uses updated.
7212
b55fbac4
YQ
72132014-03-22 Yao Qi <yao@codesourcery.com>
7214
7215 * remote.c (target_read_live_memory): Remove.
7216 (memory_xfer_live_readonly_partial): Rename it to
7217 remote_xfer_live_readonly_partial. Remove argument 'object'.
7218 All callers updated. Call remote_read_bytes_1
7219 instead of target_read_live_memory.
7220 * tracepoint.c (set_traceframe_number): Remove.
7221 (make_cleanup_restore_traceframe_number): Likewise .
7222 * tracepoint.h (set_traceframe_number): Remove declaration.
7223 (make_cleanup_restore_traceframe_number): Likewise.
7224
9217e74e
YQ
72252014-03-22 Yao Qi <yao@codesourcery.com>
7226
7227 * remote.c (remote_read_bytes): Move code on reading from the
7228 remote stub to ...
7229 (remote_read_bytes_1): ... here. New function.
7230
8acf9577
YQ
72312014-03-22 Yao Qi <yao@codesourcery.com>
7232
7233 * ctf.c (ctf_xfer_partial): Check the return value of
7234 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7235 return TARGET_XFER_UNAVAILABLE.
7236 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7237 * target.c (target_read_live_memory): Move it to remote.c.
7238 (memory_xfer_live_readonly_partial): Likewise.
7239 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7240 * remote.c (target_read_live_memory): Moved from target.c.
7241 (memory_xfer_live_readonly_partial): Likewise.
7242 (remote_read_bytes): Factored out from
7243 memory_xfer_partial_1.
7244
feef67ab
DE
72452014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7246
7247 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7248 NULL pointer.
7249
b65dc60b
PA
72502014-03-21 Pedro Alves <palves@redhat.com>
7251
7252 * infrun.c (normal_stop): Extend comment.
7253
b4ab256d
HZ
72542014-03-21 Hui Zhu <hui@codesourcery.com>
7255 Pedro Alves <palves@redhat.com>
7256
7257 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7258 static buffer.
7259 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7260 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7261 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7262
deba7593
MR
72632014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7264
7265 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7266 `z' formatted output modifier.
7267
1bff71c3
SDJ
72682014-03-20 Tom Tromey <tromey@redhat.com>
7269 Sergio Durigan Junior <sergiodj@redhat.com>
7270
7271 * probe.c (parse_probes): Turn assert into an ordinary error.
7272 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7273 exceptions when parsing probes. Rearrange the code for clarity.
7274
90e28950
TT
72752014-03-20 Tom Tromey <tromey@redhat.com>
7276
7277 PR gdb/14135
7278 * top.c (execute_command): Only dispatch events if the command
7279 started the target.
7280
beb460e8
PA
72812014-03-20 Tom Tromey <tromey@redhat.com>
7282
7283 PR cli/15718
7284 * infcall.c: Include event-top.h.
7285 (run_inferior_call): Call async_disable_stdin if needed.
7286
99619bea
PA
72872014-03-20 Pedro Alves <palves@redhat.com>
7288
7289 * infrun.c (prepare_to_proceed): Delete.
7290 (thread_still_needs_step_over): New function.
7291 (find_thread_needs_step_over): New function.
7292 (proceed): If the current thread needs a step-over, set its
7293 steping_over_breakpoint flag. Adjust to use
7294 find_thread_needs_step_over instead of prepare_to_proceed.
7295 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7296 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7297 breakpoint.
7298 (switch_back_to_stepped_thread): Step over breakpoints of all
7299 threads not the stepping thread, before switching back to the
7300 stepping thread.
7301
2adfaa28
PA
73022014-03-20 Pedro Alves <palves@redhat.com>
7303
7304 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7305 extern.
7306 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7307 * infrun.c (saved_singlestep_ptid)
7308 (stepping_past_singlestep_breakpoint): Delete.
7309 (resume): Remove stepping_past_singlestep_breakpoint handling.
7310 (proceed): Store the prev_pc of the stepping thread too.
7311 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7312 singlestep_pc.
7313 (enum infwait_states): Delete infwait_thread_hop_state.
7314 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7315 field.
7316 (handle_inferior_event): Adjust.
7317 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7318 handling and the thread-hop code. Before removing single-step
7319 breakpoints, check whether the thread hit a single-step breakpoint
7320 of another thread. If it did, the trap is not a random signal.
7321 (switch_back_to_stepped_thread): If the event thread hit a
7322 single-step breakpoint, unblock it before switching to the
7323 stepping thread. Handle the case of the stepped thread having
7324 advanced already.
7325 (keep_going): Handle the case of the current thread moving past a
7326 single-step breakpoint.
7327
31e77af2
PA
73282014-03-20 Pedro Alves <palves@redhat.com>
7329
7330 PR breakpoints/7143
7331 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7332 are being stepped over.
7333 (breakpoint_address_match): Make extern.
7334 * breakpoint.h (breakpoint_address_match): New declaration.
7335 * inferior.h (stepping_past_instruction_at): New declaration.
7336 * infrun.c (struct step_over_info): New type.
7337 (step_over_info): New global.
7338 (set_step_over_info, clear_step_over_info)
7339 (stepping_past_instruction_at): New functions.
7340 (handle_inferior_event): Clear the step-over info when
7341 trap_expected is cleared.
7342 (resume): Remove now stale comment.
7343 (clear_proceed_status): Clear step-over info.
7344 (proceed): Adjust step-over handling to set or clear the step-over
7345 info instead of removing all breakpoints.
7346 (handle_signal_stop): When setting up a thread-hop, don't remove
7347 breakpoints here.
7348 (stop_stepping): Clear step-over info.
7349 (keep_going): Adjust step-over handling to set or clear step-over
7350 info and then always inserting breakpoints, instead of removing
7351 all breakpoints when stepping over one.
7352
b9f437de
PA
73532014-03-20 Pedro Alves <palves@redhat.com>
7354
7355 * infrun.c (previous_inferior_ptid): Adjust comment.
7356 (deferred_step_ptid): Delete.
7357 (infrun_thread_ptid_changed, prepare_to_proceed)
7358 (init_wait_for_inferior): Adjust.
7359 (handle_signal_stop): Delete deferred_step_ptid handling.
7360
06c868a8
JK
73612014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7362
7363 PR gdb/15358
7364 * defs.h (sync_quit_force_run): New declaration.
7365 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7366 * event-top.c (async_sigterm_handler): New declaration.
7367 (async_sigterm_token): New variable.
7368 (async_init_signals): Create also async_sigterm_token.
7369 (async_sigterm_handler): New function.
7370 (sync_quit_force_run): New variable.
7371 (handle_sigterm): Replace quit_force call by other calls.
7372 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7373
dea80df0
MR
73742014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7375
7376 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7377 offset into SPE pseudo registers.
7378
0c7e1a46
PA
73792014-03-18 Pedro Alves <palves@redhat.com>
7380
7381 PR gdb/13860
7382 * inferior.h (print_stop_event): Declare.
7383 * infrun.c (print_stop_event): New, factored out from ...
7384 (normal_stop): ... this.
7385 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7386 of bpstat_print/print_stack_frame.
7387
9c1fcd01
TT
73882014-03-17 Tom Tromey <tromey@redhat.com>
7389
7390 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7391
11aa919a
PMR
73922014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7393
7394 * ada-lang.c (decode_constrained_packed_array): Perform a
7395 minimal coercion for reference with coerce_ref instead of
7396 ada_coerce_ref.
7397
d4ccb5e0
TG
73982014-03-17 Tristan Gingold <gingold@adacore.com>
7399
7400 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7401 (darwin_solib_create_inferior_hook): Emit a warning if version
7402 is unhandled.
7403
49840f2a
UW
74042014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7405
7406 * python/py-value.c (get_field_flag): Cast flag_name argument to
7407 PyObject_GetAttrString to support Python 2.4.
7408
ed4123e5
JK
74092014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7410
7411 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7412 (Global Maintainers): Remove Jan Kratochvil.
7413
d6b64346
PA
74142014-03-14 Pedro Alves <palves@redhat.com>
7415
7416 * inferior.h (terminal_ours_for_output): Rename to ...
7417 (child_terminal_ours_for_output): ... this.
7418 (terminal_save_ours): Rename to ...
7419 (child_terminal_save_ours): ... this.
7420 (terminal_ours): Rename to ...
7421 (child_terminal_ours): ... this.
7422 (terminal_inferior): Rename to ...
7423 (child_terminal_inferior): ... this.
7424 (terminal_init_inferior): Rename to ...
7425 (child_terminal_init_inferior): ... this.
7426 (terminal_init_inferior_with_pgrp): Rename to ...
7427 (child_terminal_init_inferior_with_pgrp): ... this.
7428 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7429 (child_terminal_init_with_pgrp): ... this.
7430 (terminal_save_ours): Rename to ...
7431 (child_terminal_save_ours): ... this.
7432 (terminal_init_inferior): Rename to ...
7433 (child_terminal_init): ... this. Adjust.
7434 (terminal_inferior): Rename to ...
7435 (child_terminal_inferior): ... this.
7436 (terminal_ours_for_output): Rename to ...
7437 (child_terminal_ours_for_output): ... this. Adjust.
7438 (terminal_ours): Rename to ...
7439 (child_terminal_ours): ... this.
7440 (terminal_ours_1): Rename to ...
7441 (child_terminal_ours_1): ... this. Adjust.
7442 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7443 * windows-nat.c (do_initial_windows_stuff): Adjust.
7444 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7445 (gnu_terminal_init): ... this. Adjust.
7446 (gnu_target): Adjust.
7447 * inf-child.c (inf_child_target): Adjust.
7448
5a1e8c7a
DE
74492014-03-13 Doug Evans <xdje42@gmail.com>
7450
7451 PR guile/16612
7452 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7453 new eq?-hashtab.
7454
350e1a76
DE
74552014-03-13 Doug Evans <xdje42@gmail.com>
7456
7457 * value.c (record_latest_value): Call release_value_or_incref
7458 instead of release_value.
7459
a69900ae
PA
74602014-03-13 Pedro Alves <palves@redhat.com>
7461
7462 * procfs.c (procfs_target): Don't override to_shortname,
7463 to_longname or to_doc.
7464
5db9f0bd
PA
74652014-03-13 Pedro Alves <palves@redhat.com>
7466
7467 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7468 Unix in user visible strings.
7469
5e3a2c38
SS
74702014-03-12 Stan Shebs <stan@codesourcery.com>
7471
7472 * gdbtypes.h: Annotate comments for Doxygen, add a page
7473 block comment with some general info.
7474
8bc2fe48
PA
74752014-03-12 Pedro Alves <palves@redhat.com>
7476
7477 * infcmd.c (prepare_execution_command): New function, factored out
7478 from several execution commands.
7479 (run_command_1, continue_command, step_1, jump_command)
7480 (signal_command, until_command, advance_command, finish_command)
7481 (attach_command): Use prepare_execution_command.
7482
638c5f49
OJ
74832014-03-12 Omair Javaid <omair.javaid@linaro.org>
7484
7485 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7486 (MAX_BPTS): Define.
7487 (MAX_WPTS): Define.
7488 (struct arm_linux_thread_points): Removed.
7489 (struct arm_linux_process_info): New.
7490 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7491 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7492 (arm_linux_find_breakpoints_by_tid): Removed.
7493 (struct arch_lwp_info): New.
7494 (arm_linux_find_process_pid): New functions.
7495 (arm_linux_add_process): New functions.
7496 (arm_linux_process_info_get): New functions.
7497 (arm_linux_forget_process): New function.
7498 (arm_linux_get_debug_reg_state): New function.
7499 (struct update_registers_data): New.
7500 (update_registers_callback): New function.
7501 (arm_linux_insert_hw_breakpoint1): Updated.
7502 (arm_linux_remove_hw_breakpoint1): Updated.
7503 (arm_linux_insert_hw_breakpoint): Updated.
7504 (arm_linux_remove_hw_breakpoint): Updated.
7505 (arm_linux_insert_watchpoint): Updated.
7506 (arm_linux_remove_watchpoint): Updated.
7507 (arm_linux_new_thread): Updated.
7508 (arm_linux_prepare_to_resume): New function.
7509 (arm_linux_new_fork): New function.
7510 (_initialize_arm_linux_nat): Updated.
7511
6d03af93
PA
75122014-03-12 Pedro Alves <palves@redhat.com>
7513
7514 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7515
b3ccfe11
TT
75162014-03-12 Tom Tromey <tromey@redhat.com>
7517
7518 * inf-child.c (return_zero): New function.
7519 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7520 * aix-thread.c (aix_thread_inferior_created): New function.
7521 (aix_thread_attach): Remove.
7522 (init_aix_thread_ops): Don't set to_attach.
7523 (_initialize_aix_thread): Register inferior_created observer.
7524 * corelow.c (init_core_ops): Don't set to_attach or
7525 to_create_inferior.
7526 * exec.c (init_exec_ops): Don't set to_attach or
7527 to_create_inferior.
7528 * infcmd.c (run_command_1): Use find_run_target. Make direct
7529 target calls.
7530 (attach_command): Use find_attach_target. Make direct target
7531 calls.
7532 * record-btrace.c (init_record_btrace_ops): Don't set
7533 to_create_inferior.
7534 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7535 Remove.
7536 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7537 set to_create_inferior.
7538 * target.c (complete_target_initialization): Add assertion.
7539 (target_create_inferior): Remove.
7540 (find_default_attach, find_default_create_inferior): Remove.
7541 (find_attach_target, find_run_target): New functions.
7542 (find_default_is_async_p, find_default_can_async_p)
7543 (target_supports_non_stop, target_attach): Remove.
7544 (init_dummy_target): Don't set to_create_inferior or
7545 to_supports_non_stop.
7546 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7547 TARGET_DEFAULT_FUNC.
7548 <to_create_inferior>: Add comment.
7549 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7550 TARGET_DEFAULT_RETURN.
7551 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7552 (find_attach_target, find_run_target): Declare.
7553 (target_create_inferior): Remove.
7554 (target_has_execution_1): Update comment.
7555 (target_supports_non_stop): Remove.
7556 * target-delegates.c: Rebuild.
7557
91f83b02
PA
75582014-03-12 Pedro Alves <palves@redhat.com>
7559
7560 * inf-child.h: Update comment to not mention Unix.
7561
f1aea813
PA
75622014-03-12 Pedro Alves <palves@redhat.com>
7563
7564 * inf-child.c: Update top comment to not mention Unix. Add
7565 generic comment describing how this target is meant to be used.
7566 (inf_child_post_attach, inf_child_post_startup_inferior)
7567 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7568 Unix in comment.
7569
ee8e9165
PA
75702014-03-12 Pedro Alves <palves@redhat.com>
7571
7572 * nto-procfs.c: Include inf-child.h.
7573 (procfs_ops): Delete global.
7574 (procfs_can_run): Delete method.
7575 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7576 target pointer instead of referencing procfs_ops.
7577 (procfs_prepare_to_store): Delete.
7578 (init_procfs_ops): Delete function.
7579 (procfs_target): New function, based on init_procfs_ops, but
7580 inherit inf_child_target.
7581 (_initialize_procfs): Use procfs_target.
7582
51a9c8c5
PA
75832014-03-12 Pedro Alves <palves@redhat.com>
7584
7585 * windows-nat.c: Include inf-child.h.
7586 (windows_ops): Delete global.
7587 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7588 methods.
7589 (init_windows_ops): Delete function.
7590 (windows_target): New function, based on init_windows_ops, but
7591 inherit inf_child_target.
7592 (_initialize_windows_nat): Use windows_target. Install x86
7593 specific target methods here.
7594
c1966e26
DE
75952014-03-10 Doug Evans <xdje42@gmail.com>
7596
7597 * guile/guile.c (call_initialize_gdb_module): New function.
7598 (initialize_guile): Replace call to scm_init_guile with call to
7599 scm_with_guile.
7600
023db19c
JB
76012014-03-10 Joel Brobecker <brobecker@adacore.com>
7602
7603 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7604 in call to TYPE_CODE macro.
7605
5ec18f2b
JG
76062014-03-10 Jerome Guitton <guitton@adacore.com>
7607
8668be63
JB
7608 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7609 Resolve tagged types to full view.
5ec18f2b 7610
7d03f2eb
HZ
76112014-03-10 Hui Zhu <hui@codesourcery.com>
7612
7613 * target.h (target_insert_breakpoint): Remove "hardware" from its
7614 comments.
7615
c5164cbc
DE
76162014-03-07 Doug Evans <dje@google.com>
7617
7618 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7619
c4a3fee2
DE
76202014-03-07 Doug Evans <dje@google.com>
7621
7622 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7623 Remove unused local comp_dir_attr. Assert exactly one of
7624 stub_comp_unit_die, stub_comp_dir is non-NULL.
7625
3156469c
JB
76262014-03-07 Joel Brobecker <brobecker@adacore.com>
7627
7628 * target.h (complete_target_initialization, add_target):
7629 Add comment.
7630
c1a7b7c6
PA
76312014-03-07 Pedro Alves <palves@redhat.com>
7632
7633 * go32-nat.c: Include inf-child.h.
7634 (go32_ops): Delete global.
7635 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7636 Delete methods.
7637 (go32_create_inferior): Push the passed in target pointer instead
7638 of referencing go32_ops.
7639 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7640 (go32_target): New function, based on init_go32_ops, but inherit
7641 inf_child_target.
7642 (_initialize_go32_nat): Use go32_target. Move parts of
7643 init_go32_ops here.
7644
d3c1a85f
JB
76452014-03-06 Joel Brobecker <brobecker@adacore.com>
7646
7647 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7648 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7649 SYMBOL_VALUE_ADDRESS.
7650 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7651
5fa1d40e
YQ
76522014-03-06 Yao Qi <yao@codesourcery.com>
7653
7654 * breakpoint.c (get_tracepoint_by_number): Remove argument
7655 optional_p. All callers updated. Adjust comments. Update
7656 output message.
7657 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7658
0c13193f
YQ
76592014-03-06 Yao Qi <yao@codesourcery.com>
7660
7661 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7662 early if get_number returns zero. Use 'p' instead of 'args'.
7663
2217da06
YQ
76642014-03-06 Yao Qi <yao@codesourcery.com>
7665
7666 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7667 message.
7668
cc3da688
YQ
76692014-03-06 Yao Qi <yao@codesourcery.com>
7670
7671 PR breakpoints/16508
7672 * tracepoint.c (check_trace_running): New function.
7673 (trace_find_command): Move code to check_trace_running and
7674 call check_trace_running.
7675 (trace_find_pc_command): Likewise.
7676 (trace_find_tracepoint_command): Likewise.
7677 (trace_find_line_command): Likewise.
7678 (trace_find_range_command): Likewise.
7679 * tracepoint.h (check_trace_running): Likewise.
7680 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7681
6a5f844b
YQ
76822014-03-06 Yao Qi <yao@codesourcery.com>
7683
7684 * target.h (struct target_ops) <to_traceframe_info>: Use
7685 TARGET_DEFAULT_NORETURN (tcomplain ()).
7686 * target-delegates.c: Regenerated.
7687
0f26cec1
PA
76882014-03-05 Pedro Alves <palves@redhat.com>
7689
7690 PR gdb/16575
7691 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7692 void. Update comment.
7693 (dcache_xfer_memory): Delete.
7694 (dcache_read_memory_partial): New, based on the read bits of
7695 dcache_xfer_memory.
7696 (dcache_update): Add status parameter. Use ULONGEST for len, and
7697 adjust. Discard cache lines if the reason for the update was
7698 error.
7699 * dcache.h (dcache_xfer_memory): Delete declaration.
7700 (dcache_read_memory_partial): New declaration.
7701 (dcache_update): Update prototype.
7702 * target.c (raw_memory_xfer_partial): Update the dcache here.
7703 (memory_xfer_partial_1): Don't handle dcache writes here.
7704
b2b255bd
MF
77052014-03-05 Mike Frysinger <vapier@gentoo.org>
7706
7707 * remote-sim.c (gdbsim_load): Add const to prog.
7708
5d9cf8a4
TT
77092014-03-03 Tom Tromey <tromey@redhat.com>
7710
7711 * elfread.c (probe_key): Change to bfd_data.
7712 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7713 now per-BFD, not per-objfile.
7714 * stap-probe.c (stap_probe_destroy): Update comment.
7715 (handle_stap_probe): Allocate on the per-BFD obstack.
7716
729662a5
TT
77172014-03-03 Tom Tromey <tromey@redhat.com>
7718
7719 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7720 * breakpoint.c (create_longjmp_master_breakpoint): Use
7721 get_probe_address.
7722 (add_location_to_breakpoint, bkpt_probe_insert_location)
7723 (bkpt_probe_remove_location): Update.
7724 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7725 * elfread.c (elf_symfile_relocate_probe): Remove.
7726 (elf_probe_fns): Update.
7727 (insert_exception_resume_breakpoint): Change type of "probe"
7728 parameter to bound_probe.
7729 (check_exception_resume): Update.
7730 * objfiles.c (objfile_relocate1): Don't relocate probes.
7731 * probe.c (bound_probe_s): New typedef.
7732 (parse_probes): Use get_probe_address. Set sal's objfile.
7733 (find_probe_by_pc): Return a bound_probe.
7734 (collect_probes): Return a VEC(bound_probe_s).
7735 (compare_probes): Update.
7736 (gen_ui_out_table_header_info): Change type of "probes"
7737 parameter. Update.
7738 (info_probes_for_ops): Update.
7739 (get_probe_address): New function.
7740 (probe_safe_evaluate_at_pc): Update.
7741 * probe.h (struct probe_ops) <get_probe_address>: New field.
7742 <set_semaphore, clear_semaphore>: Add objfile parameter.
7743 (struct probe) <objfile>: Remove field.
7744 <arch>: New field.
7745 <address>: Update comment.
7746 (struct bound_probe): New.
7747 (find_probe_by_pc): Return a bound_probe.
7748 (get_probe_address): Declare.
7749 * solib-svr4.c (struct probe_and_action) <address>: New field.
7750 (hash_probe_and_action, equal_probe_and_action): Update.
7751 (register_solib_event_probe): Add address parameter.
7752 (solib_event_probe_at): Update.
7753 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7754 get_probe_address.
7755 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7756 (stap_get_probe_address): New function.
7757 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7758 (compile_probe_arg): Update.
7759 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7760 address.
7761 (handle_stap_probe): Don't relocate the probe.
7762 (stap_relocate): Remove.
7763 (stap_gen_info_probes_table_values): Update.
7764 (stap_probe_ops): Remove stap_relocate.
7765 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7766 (debug_sym_probe_fns): Update.
7767 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7768 * symtab.c (init_sal): Use memset.
7769 * symtab.h (struct symtab_and_line) <objfile>: New field.
7770 * tracepoint.c (start_tracing, stop_tracing): Update.
7771
ff887920
TT
77722014-03-03 Tom Tromey <tromey@redhat.com>
7773
7774 * probe.h (parse_probes, find_probe_by_pc)
7775 (find_probes_in_objfile): Fix comments.
7776
f0407826
DE
77772014-03-02 Doug Evans <xdje42@gmail.com>
7778
7779 * infrun.c (handle_signal_stop): Replace test for
7780 TARGET_WAITKIND_STOPPED with an assert.
7781
35e6a711
DE
77822014-03-02 Doug Evans <xdje42@gmail.com>
7783
7784 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7785
667f9d0b
DE
77862014-03-02 Doug Evans <xdje42@gmail.com>
7787
7788 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7789
dc92ace0
MK
77902014-03-01 Mark Kettenis <kettenis@gnu.org>
7791
7792 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7793
a900370f
MK
77942014-03-01 Mark Kettenis <kettenis@gnu.org>
7795
7796 * i386obsd-nat.c: Include "obsd-nat.h".
7797 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7798 add_target.
7799 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7800
b72a7981
MK
78012014-03-01 Mark Kettenis <kettenis@gnu.org>
7802
7803 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7804
96c70aba
MK
78052014-03-01 Mark Kettenis <kettenis@gnu.org>
7806
7807 * mips64obsd-nat.c: Include "obsd-nath".
7808 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7809 add_target
7810 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7811
874a80af
MK
78122014-03-01 Mark Kettenis <kettenis@gnu.org>
7813
8fd408f1
MK
7814 * amd64obsd-nat.c: Include "obsd-nat,h.
7815 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7816 add_target.
874a80af
MK
7817 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7818
9cf95373
SC
78192014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7820
7821 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7822 (find_overload_match): Update call to find_oload_champ.
7823 (find_oload_champ_namespace_loop): Likewise
7824
863e4da4
MK
78252014-02-28 Mark Kettenis <kettenis@gnu.org>
7826
025cac40
MK
7827 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7828
1ed586ce
MK
7829 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7830 * config/sparc/obsd64.mh: New file.
7831 * sparc64obsd-nat.c: New file.
7832
863e4da4
MK
7833 * obsd-nat.h: New file.
7834 * obsd-nat.c: New file.
7835 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7836 (ALLDEPFILES): Add obsd-nat.c.
7837
89de4da4
TT
78382014-02-28 Tom Tromey <tromey@redhat.com>
7839
7840 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7841 * cli-out.h (cli_ui_out_impl): Now const.
7842 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7843 * ui-out.c (struct ui_out) <impl>: Now const.
7844 (default_ui_out_impl): Now const.
7845 (ui_out_new): Make 'impl' parameter const.
7846 * ui-out.h (ui_out_new): Update.
7847
c725e7b6
MK
78482014-02-27 Mark Kettenis <kettenis@gnu.org>
7849
7850 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7851
670b46b3
MK
78522014-02-27 Mark Kettenis <kettenis@gnu.org>
7853
7854 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7855
c91550fc
JK
78562014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7857
7858 Additional PR 8882 fix.
7859 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7860
2fa0369e
PA
78612014-02-27 Pedro Alves <palves@redhat.com>
7862
7863 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7864 isn't set.
7865
d632a097
PA
78662014-02-27 Pedro Alves <palves@redhat.com>
7867
7868 PR 12702
7869 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7870 * nat/linux-waitpid.c: Include string.h.
7871 (status_to_str): Moved here and made extern.
7872 * nat/linux-waitpid.h (status_to_str): New declaration.
7873
2ebd5a35
HZ
78742014-02-27 Hui Zhu <hui@codesourcery.com>
7875
7876 PR 12702
7877 * infrun.c (ptid_match): Move ...
7878 * common/ptid.c (ptid_match): ... here.
7879 * inferior.h (ptid_match): Move ...
7880 * common/ptid.h (ptid_match): ... here.
7881
3cdd631f
MK
78822014-02-27 Mark Kettenis <kettenis@gnu.org>
7883
7884 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7885 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7886 gdb_target_obs.
7887
bee30a64
MK
78882014-02-27 Mark Kettenis <kettenis@gnu.org>
7889
7890 * obsd-tdep.c (obsd_auxv_parse): New function.
7891 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7892
7893 * gdbarch.sh (auxv_parse): New.
7894 * gdbarch.h: Regenerated.
7895 * gdbarch.c: Regenerated.
7896 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7897
7a5a839f
LC
78982014-02-26 Ludovic Courtès <ludo@gnu.org>
7899
7900 * guile/scm-value.c (gdbscm_history_append_x): New function.
7901 (value_functions): Add it.
7902
31aa7e4e
JB
79032014-02-27 Joel Brobecker <brobecker@adacore.com>
7904
7905 * dwarf2read.c (attr_value_as_address): New function.
7906 (dwarf2_find_base_address, read_call_site_scope): Use
7907 attr_value_as_address in place of DW_ADDR.
7908 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7909 the low and high addresses. Slight rework of the handling
7910 of the high pc being a constant form, and limit it to
7911 DWARF verson 4 or higher.
7912 (dwarf2_record_block_ranges): Likewise.
7913 (read_partial_die): Likewise.
7914 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7915
9b333ba3
TT
79162014-02-26 Tom Tromey <tromey@redhat.com>
7917
7918 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7919
5f6cac40
TT
79202014-02-26 Tom Tromey <tromey@redhat.com>
7921
7922 * elfread.c (elf_read_minimal_symbols): Return early if
7923 minimal symbols have already been read. Add "ei" parameter.
7924 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7925 * minsyms.c (prim_record_minimal_symbol_full): Update.
7926 * objfiles.h (struct objstats) <n_minsyms>: Move...
7927 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7928 * symmisc.c (print_objfile_statistics): Update.
7929
2750ef27
TT
79302014-02-26 Tom Tromey <tromey@redhat.com>
7931
7932 * elfread.c (elf_read_minimal_symbols): New function, from
7933 elf_symfile_read.
7934 (elf_symfile_read): Call it.
7935
34643a32
TT
79362014-02-26 Tom Tromey <tromey@redhat.com>
7937
7938 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7939 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7940 (lookup_minimal_symbol_solib_trampoline)
7941 (lookup_minimal_symbol_by_pc_section_1)
7942 (lookup_minimal_symbol_and_objfile): Update.
7943 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7944 Don't allocate a minimal symbol if minsyms have already been read.
7945 (build_minimal_symbol_hash_tables): Update.
7946 (install_minimal_symbols): Do nothing if minsyms already read.
7947 Use the per-BFD obstack.
7948 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7949 * objfiles.c (allocate_objfile): Call
7950 terminate_minimal_symbol_table later.
7951 (have_minimal_symbols): Update.
7952 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7953 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7954 Move from struct objfile.
7955 <minsyms_read>: New field.
7956 (struct objfile) <msymbols, minimal_symbol_count,
7957 msymbol_hash, msymbol_demangled_hash>: Move.
7958 (ALL_OBJFILE_MSYMBOLS): Update.
7959 * symfile.c (read_symbols): Set minsyms_read.
7960 (reread_symbols): Update.
7961 * symmisc.c (dump_objfile, dump_msymbols): Update.
7962
2273f0ac
TT
79632014-02-26 Tom Tromey <tromey@redhat.com>
7964
7965 * minsyms.c (msymbols_sort): Remove.
7966 * minsyms.h (msymbols_sort): Remove.
7967 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7968 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7969 * elfread.c (elf_symtab_read): Don't add section offsets.
7970 * xcoffread.c (record_minimal_symbol): Don't add section offset
7971 to minimal symbol address.
7972 * somread.c (text_offset, data_offset): Remove.
7973 (som_symtab_read): Don't add section offsets to minimal symbol
7974 addresses.
7975 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7976 Don't add section offsets to minimal symbols.
7977 * coffread.c (coff_symtab_read): Don't add section offsets
7978 to minimal symbol addresses.
7979 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7980 to minimal symbol addresses.
7981 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7982 section offset to minimal symbol addresses.
7983 * mdebugread.c (parse_partial_symbols): Don't add section
7984 offset to minimal symbol addresses.
7985 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7986 offset to minimal symbol addresses.
7987
77e371c0
TT
79882014-02-26 Tom Tromey <tromey@redhat.com>
7989
7990 * ada-lang.c (ada_main_name): Update.
7991 (ada_add_standard_exceptions): Update.
7992 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7993 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7994 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7995 * auxv.c (ld_so_xfer_auxv): Update.
7996 * avr-tdep.c (avr_scan_prologue): Update.
7997 * ax-gdb.c (gen_var_ref): Update.
7998 * blockframe.c (get_pc_function_start)
7999 (find_pc_partial_function_gnu_ifunc): Update.
8000 * breakpoint.c (create_overlay_event_breakpoint)
8001 (create_longjmp_master_breakpoint)
8002 (create_std_terminate_master_breakpoint)
8003 (create_exception_master_breakpoint): Update.
8004 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8005 * c-valprint.c (c_val_print): Update.
8006 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8007 * common/agent.c (agent_look_up_symbols): Update.
8008 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8009 * dwarf2loc.c (call_site_to_target_addr): Update.
8010 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8011 * elfread.c (elf_gnu_ifunc_record_cache)
8012 (elf_gnu_ifunc_resolve_by_got): Update.
8013 * findvar.c (default_read_var_value): Update.
8014 * frame.c (inside_main_func): Update.
8015 * frv-tdep.c (frv_frame_this_id): Update.
8016 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8017 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8018 Update.
8019 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8020 (hppa_hpux_find_dummy_bpaddr): Update.
8021 * hppa-tdep.c (hppa_symbol_address): Update.
8022 * infcmd.c (until_next_command): Update.
8023 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8024 Update.
8025 * linespec.c (minsym_found, add_minsym): Update.
8026 * linux-nat.c (get_signo): Update.
8027 * linux-thread-db.c (inferior_has_bug): Update.
8028 * m32c-tdep.c (m32c_return_value)
8029 (m32c_m16c_address_to_pointer): Update.
8030 * m32r-tdep.c (m32r_frame_this_id): Update.
8031 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8032 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8033 * maint.c (maintenance_translate_address): Update.
8034 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8035 (frob_address): New function.
8036 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8037 frob_address. Rename parameter to "pc_in".
8038 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8039 addresses.
8040 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8041 Update.
8042 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8043 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8044 * objc-lang.c (find_objc_msgsend): Update.
8045 * objfiles.c (objfile_relocate1): Update.
8046 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8047 * p-valprint.c (pascal_val_print): Update.
8048 * parse.c (write_exp_msymbol): Update.
8049 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8050 (ppc_elfv2_skip_entrypoint): Update.
8051 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8052 * printcmd.c (build_address_symbolic, msym_info)
8053 (address_info): Update.
8054 * proc-service.c (ps_pglobal_lookup): Update.
8055 * psymtab.c (find_pc_sect_psymtab_closer)
8056 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8057 Change msymbol parameter to bound_minimal_symbol.
8058 * ravenscar-thread.c (get_running_thread_id): Update.
8059 * remote.c (remote_check_symbols): Update.
8060 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8061 address.
8062 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8063 * solib-dsbt.c (lm_base): Update.
8064 * solib-frv.c (lm_base, main_got): Update.
8065 * solib-irix.c (locate_base): Update.
8066 * solib-som.c (som_solib_create_inferior_hook)
8067 (link_map_start): Update.
8068 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8069 * solib-svr4.c (elf_locate_base, enable_break): Update.
8070 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8071 (flush_ea_cache): Update.
8072 * stabsread.c (define_symbol, scan_file_globals): Update.
8073 * stack.c (find_frame_funname): Update.
8074 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8075 (debug_qf_find_pc_sect_symtab): Update.
8076 * symfile.c (simple_read_overlay_table)
8077 (simple_overlay_update): Update.
8078 * symfile.h (struct quick_symbol_functions)
8079 <find_pc_sect_symtab>: Change type of msymbol to
8080 bound_minimal_symbol.
8081 * symmisc.c (dump_msymbols): Update.
8082 * symtab.c (find_pc_sect_symtab_via_partial)
8083 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8084 (search_symbols, print_msymbol_info): Update.
8085 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8086 (MSYMBOL_VALUE_ADDRESS): Redefine.
8087 (BMSYMBOL_VALUE_ADDRESS): New macro.
8088 * tracepoint.c (scope_info): Update.
8089 * tui/tui-disasm.c (tui_find_disassembly_address)
8090 (tui_get_begin_asm_address): Update.
8091 * valops.c (find_function_in_inferior): Update.
8092 * value.c (value_static_field, value_fn_field): Update.
8093
3b7344d5
TT
80942014-02-26 Tom Tromey <tromey@redhat.com>
8095
8096 * ada-lang.c (ada_update_initial_language): Update.
8097 (ada_main_name, ada_has_this_exception_support): Update.
8098 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8099 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8100 * arm-tdep.c (arm_skip_stub): Update.
8101 * auxv.c (ld_so_xfer_auxv): Update.
8102 * avr-tdep.c (avr_scan_prologue): Update.
8103 * ax-gdb.c (gen_var_ref): Update.
8104 * breakpoint.c (struct breakpoint_objfile_data)
8105 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8106 type to bound_minimal_symbol.
8107 (create_overlay_event_breakpoint)
8108 (create_longjmp_master_breakpoint)
8109 (create_std_terminate_master_breakpoint)
8110 (create_exception_master_breakpoint): Update.
8111 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8112 * c-exp.y (classify_name): Update.
8113 * coffread.c (coff_symfile_read): Update.
8114 * common/agent.c (agent_look_up_symbols): Update.
8115 * d-lang.c (d_main_name): Update.
8116 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8117 * dec-thread.c (enable_dec_thread): Update.
8118 * dwarf2loc.c (call_site_to_target_addr): Update.
8119 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8120 * eval.c (evaluate_subexp_standard): Update.
8121 * findvar.c (struct minsym_lookup_data) <result>: Change type
8122 to bound_minimal_symbol.
8123 <objfile>: Remove.
8124 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8125 * frame.c (inside_main_func): Update.
8126 * frv-tdep.c (frv_frame_this_id): Update.
8127 * gcore.c (call_target_sbrk): Update.
8128 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8129 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8130 Update.
8131 * go-lang.c (go_main_name): Update.
8132 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8133 (hppa_hpux_find_import_stub_for_addr): Update.
8134 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8135 Update. Change return type.
8136 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8137 type.
8138 * jit.c (jit_breakpoint_re_set_internal): Update.
8139 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8140 Update.
8141 * linux-nat.c (get_signo): Update.
8142 * linux-thread-db.c (inferior_has_bug): Update
8143 * m32c-tdep.c (m32c_return_value)
8144 (m32c_m16c_address_to_pointer): Update.
8145 * m32r-tdep.c (m32r_frame_this_id): Update.
8146 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8147 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8148 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8149 lookup_minimal_symbol. Change return type.
8150 (lookup_minimal_symbol): Remove.
8151 (lookup_bound_minimal_symbol): Update.
8152 (lookup_minimal_symbol_text): Change return type.
8153 (lookup_minimal_symbol_solib_trampoline): Change return type.
8154 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8155 (lookup_minimal_symbol_solib_trampoline): Change return type.
8156 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8157 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8158 (value_nsstring, find_imps): Update.
8159 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8160 * p-lang.c (pascal_main_name): Update.
8161 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8162 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8163 * proc-service.c (ps_pglobal_lookup): Update.
8164 * ravenscar-thread.c (get_running_thread_msymbol): Change
8165 return type.
8166 (has_ravenscar_runtime, get_running_thread_id): Update.
8167 * remote.c (remote_check_symbols): Update.
8168 * sol-thread.c (ps_pglobal_lookup): Update.
8169 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8170 * solib-dsbt.c (lm_base): Update.
8171 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8172 Update.
8173 * solib-irix.c (locate_base): Update.
8174 * solib-som.c (som_solib_create_inferior_hook)
8175 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8176 Update.
8177 * solib-spu.c (spu_enable_break): Update.
8178 * solib-svr4.c (elf_locate_base, enable_break): Update.
8179 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8180 (flush_ea_cache): Update.
8181 * stabsread.c (define_symbol): Update.
8182 * symfile.c (simple_read_overlay_table): Update.
8183 * symtab.c (find_pc_sect_line): Update.
8184 * tracepoint.c (scope_info): Update.
8185 * tui-disasm.c (tui_get_begin_asm_address): Update.
8186 * value.c (value_static_field): Update.
8187
40c1a007
TT
81882014-02-26 Tom Tromey <tromey@redhat.com>
8189
8190 * minsyms.c (prim_record_minimal_symbol_full): Use
8191 SET_MSYMBOL_VALUE_ADDRESS.
8192 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8193 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8194 SET_MSYMBOL_VALUE_ADDRESS.
8195 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8196 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8197
efd66ac6
TT
81982014-02-26 Tom Tromey <tromey@redhat.com>
8199
8200 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8201 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8202 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8203 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8204 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8205 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8206 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8207 * ada-lang.c (ada_main_name): Update.
8208 (ada_lookup_simple_minsym): Update.
8209 (ada_make_symbol_completion_list): Update.
8210 (ada_add_standard_exceptions): Update.
8211 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8212 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8213 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8214 * arm-tdep.c (skip_prologue_function): Update.
8215 (arm_skip_stack_protector, arm_skip_stub): Update.
8216 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8217 (arm_wince_skip_main_prologue): Update.
8218 * auxv.c (ld_so_xfer_auxv): Update.
8219 * avr-tdep.c (avr_scan_prologue): Update.
8220 * ax-gdb.c (gen_var_ref): Update.
8221 * block.c (call_site_for_pc): Update.
8222 * blockframe.c (get_pc_function_start): Update.
8223 (find_pc_partial_function_gnu_ifunc): Update.
8224 * breakpoint.c (create_overlay_event_breakpoint): Update.
8225 (create_longjmp_master_breakpoint): Update.
8226 (create_std_terminate_master_breakpoint): Update.
8227 (create_exception_master_breakpoint): Update.
8228 (resolve_sal_pc): Update.
8229 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8230 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8231 Update.
8232 * c-valprint.c (c_val_print): Update.
8233 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8234 * coffread.c (coff_symfile_read): Update.
8235 * common/agent.c (agent_look_up_symbols): Update.
8236 * dbxread.c (find_stab_function_addr): Update.
8237 (end_psymtab): Update.
8238 * dwarf2loc.c (call_site_to_target_addr): Update.
8239 (func_verify_no_selftailcall): Update.
8240 (tailcall_dump): Update.
8241 (call_site_find_chain_1): Update.
8242 (dwarf_expr_reg_to_entry_parameter): Update.
8243 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8244 (elf_gnu_ifunc_resolve_by_got): Update.
8245 * f-valprint.c (info_common_command): Update.
8246 * findvar.c (read_var_value): Update.
8247 * frame.c (get_prev_frame_1): Update.
8248 (inside_main_func): Update.
8249 * frv-tdep.c (frv_skip_main_prologue): Update.
8250 (frv_frame_this_id): Update.
8251 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8252 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8253 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8254 (gnuv3_skip_trampoline): Update.
8255 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8256 (hppa64_hpux_in_solib_call_trampoline): Update.
8257 (hppa_hpux_skip_trampoline_code): Update.
8258 (hppa64_hpux_search_dummy_call_sequence): Update.
8259 (hppa_hpux_find_import_stub_for_addr): Update.
8260 (hppa_hpux_find_dummy_bpaddr): Update.
8261 * hppa-tdep.c (hppa_symbol_address)
8262 (hppa_lookup_stub_minimal_symbol): Update.
8263 * i386-tdep.c (i386_skip_main_prologue): Update.
8264 (i386_pe_skip_trampoline_code): Update.
8265 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8266 * infcall.c (get_function_name): Update.
8267 * infcmd.c (until_next_command): Update.
8268 * jit.c (jit_breakpoint_re_set_internal): Update.
8269 (jit_inferior_init): Update.
8270 * linespec.c (minsym_found): Update.
8271 (add_minsym): Update.
8272 * linux-fork.c (info_checkpoints_command): Update.
8273 * linux-nat.c (get_signo): Update.
8274 * linux-thread-db.c (inferior_has_bug): Update.
8275 * m32c-tdep.c (m32c_return_value): Update.
8276 (m32c_m16c_address_to_pointer): Update.
8277 (m32c_m16c_pointer_to_address): Update.
8278 * m32r-tdep.c (m32r_frame_this_id): Update.
8279 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8280 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8281 * maint.c (maintenance_translate_address): Update.
8282 * minsyms.c (add_minsym_to_hash_table): Update.
8283 (add_minsym_to_demangled_hash_table): Update.
8284 (msymbol_objfile): Update.
8285 (lookup_minimal_symbol): Update.
8286 (iterate_over_minimal_symbols): Update.
8287 (lookup_minimal_symbol_text): Update.
8288 (lookup_minimal_symbol_by_pc_name): Update.
8289 (lookup_minimal_symbol_solib_trampoline): Update.
8290 (lookup_minimal_symbol_by_pc_section_1): Update.
8291 (lookup_minimal_symbol_and_objfile): Update.
8292 (prim_record_minimal_symbol_full): Update.
8293 (compare_minimal_symbols): Update.
8294 (compact_minimal_symbols): Update.
8295 (build_minimal_symbol_hash_tables): Update.
8296 (install_minimal_symbols): Update.
8297 (terminate_minimal_symbol_table): Update.
8298 (find_solib_trampoline_target): Update.
8299 (minimal_symbol_upper_bound): Update.
8300 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8301 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8302 (mips_skip_pic_trampoline_code): Update.
8303 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8304 * objc-lang.c (selectors_info): Update.
8305 (classes_info): Update.
8306 (find_methods): Update.
8307 (find_imps): Update.
8308 (find_objc_msgsend): Update.
8309 * objfiles.c (objfile_relocate1): Update.
8310 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8311 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8312 * p-valprint.c (pascal_val_print): Update.
8313 * parse.c (write_exp_msymbol): Update.
8314 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8315 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8316 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8317 * printcmd.c (build_address_symbolic): Update.
8318 (sym_info): Update.
8319 (address_info): Update.
8320 * proc-service.c (ps_pglobal_lookup): Update.
8321 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8322 (find_pc_sect_psymtab): Update.
8323 * python/py-framefilter.c (py_print_frame): Update.
8324 * ravenscar-thread.c (get_running_thread_id): Update.
8325 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8326 Update.
8327 * remote.c (remote_check_symbols): Update.
8328 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8329 (rs6000_skip_trampoline_code): Update.
8330 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8331 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8332 * solib-dsbt.c (lm_base): Update.
8333 * solib-frv.c (lm_base): Update.
8334 (main_got): Update.
8335 * solib-irix.c (locate_base): Update.
8336 * solib-som.c (som_solib_create_inferior_hook): Update.
8337 (som_solib_desire_dynamic_linker_symbols): Update.
8338 (link_map_start): Update.
8339 * solib-spu.c (spu_enable_break): Update.
8340 (ocl_enable_break): Update.
8341 * solib-svr4.c (elf_locate_base): Update.
8342 (enable_break): Update.
8343 * spu-tdep.c (spu_get_overlay_table): Update.
8344 (spu_catch_start): Update.
8345 (flush_ea_cache): Update.
8346 * stabsread.c (define_symbol): Update.
8347 (scan_file_globals): Update.
8348 * stack.c (find_frame_funname): Update.
8349 (frame_info): Update.
8350 * symfile.c (simple_read_overlay_table): Update.
8351 (simple_overlay_update): Update.
8352 * symmisc.c (dump_msymbols): Update.
8353 * symtab.c (fixup_section): Update.
8354 (find_pc_sect_line): Update.
8355 (skip_prologue_sal): Update.
8356 (search_symbols): Update.
8357 (print_msymbol_info): Update.
8358 (rbreak_command): Update.
8359 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8360 (completion_list_objc_symbol): Update.
8361 (default_make_symbol_completion_list_break_on): Update.
8362 * tracepoint.c (scope_info): Update.
8363 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8364 (tui_get_begin_asm_address): Update.
8365 * valops.c (find_function_in_inferior): Update.
8366 * value.c (value_static_field): Update.
8367 (value_fn_field): Update.
8368
50e65b17
TT
83692014-02-26 Tom Tromey <tromey@redhat.com>
8370
8371 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8372 bound minimal symbols. Move code that knows about minsym
8373 table layout...
8374 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8375 function.
8376 * minsyms.h (minimal_symbol_upper_bound): Declare.
8377 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8378 minimal_symbol_upper_bound.
8379
1b588015
JB
83802014-02-27 Joel Brobecker <brobecker@adacore.com>
8381
8382 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8383 Use the type's name if its basic type does not have a tag.
8384
dbb9c2b1
JB
83852014-02-27 Joel Brobecker <brobecker@adacore.com>
8386
8387 * dwarf2read.c (read_subrange_type): Add comment.
8388
55426c9d
JB
83892014-02-27 Joel Brobecker <brobecker@adacore.com>
8390
8391 * dwarf2read.c (update_enumeration_type_from_children): New
8392 function, mostly extracted from process_structure_scope.
8393 (read_enumeration_type): Call update_enumeration_type_from_children.
8394 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8395 and flag_flag_enum fields.
8396
f2fce0ca
PA
83972014-02-26 Pedro Alves <palves@redhat.com>
8398
8399 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8400 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8401 to_xfer_partial method.
8402
7a44e40e
PA
84032014-02-26 Pedro Alves <palves@redhat.com>
8404
8405 * target.c (complete_target_initialization): Don't install
8406 default_xfer_partial as to_xfer_partial hook.
8407 (nomemory): Delete.
8408 (update_current_target): Don't INHERIT nor de_fault
8409 deprecated_xfer_memory. Delete de_fault macro.
8410 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8411 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8412 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8413 field.
8414
bd265cd0
PA
84152014-02-26 Pedro Alves <palves@redhat.com>
8416
8417 * go32-nat.c (my_write_child): New function.
8418 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8419 (go32_xfer_partial): New function.
8420 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8421 Instead install a to_xfer_partial hook.
8422
9d46c4e5
PA
84232014-02-26 Pedro Alves <palves@redhat.com>
8424
8425 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8426 to_xfer_partial helper. Rewrite.
8427 (procfs_xfer_partial): New function.
8428 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8429 Install a to_xfer_partial hook.
8430
a1583b1f
PA
84312014-02-26 Pedro Alves <palves@redhat.com>
8432
8433 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8434 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8435 (m32r_xfer_partial): New function.
8436 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8437 Install a to_xfer_partial hook.
8438
6df1b29f
PA
84392014-02-26 Pedro Alves <palves@redhat.com>
8440
8441 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8442 helper.
8443 (mips_xfer_partial): New function.
8444 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8445 hook. Install a to_xfer_partial hook.
8446
dc53a7ad
JB
84472014-02-26 Joel Brobecker <brobecker@adacore.com>
8448
8449 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8450 * gdbtypes.c (create_array_type_with_stride): New function,
8451 renaming create_array_type, but with an added parameter
8452 called "bit_stride".
8453 (create_array_type): Re-implement using
8454 create_array_type_with_stride.
8455 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8456 and DW_AT_bit_stride attributes.
8457
12ab52e9
PA
84582014-02-26 Pedro Alves <palves@redhat.com>
8459
8460 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8461 task-specific breakpoints.
8462
d16461ae
PA
84632014-02-25 Pedro Alves <palves@redhat.com>
8464
8465 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8466 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8467
a8b16220
SS
84682014-02-25 Stan Shebs <stan@codesourcery.com>
8469
8470 * defs.h: Annotate comments for Doxygen.
8471
b9e795ee
TT
84722014-02-25 Tom Tromey <tromey@redhat.com>
8473
8474 * target.h (target_ignore): Don't declare.
8475 * target.c (target_ignore): Remove.
8476
849c862e
JK
84772014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8478
8479 PR gdb/16626
8480 * auto-load.c (auto_load_objfile_script_1): Change filename to
8481 debugfile.
8482
475109d8
JB
84832014-02-25 Joel Brobecker <brobecker@adacore.com>
8484
8485 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8486 documentation. Adjust prototype to match the target_ops
8487 to_xfer_partial method. Adjust implementation accordingly.
8488
e186c3bd
HZ
84892014-02-25 Hui Zhu <hui@codesourcery.com>
8490
8491 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8492 to_traceframe_info.
8493
6d451942
KB
84942014-02-25 Kevin Buettner <kevinb@redhat.com>
8495
041ab8b4 8496 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8497 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8498 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8499 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8500 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8501 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8502 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8503 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8504 New constants.
8505 (rl78_register_type): Use a data pointer type for SP and
8506 new pseudo registers mentioned above. Use a 16 bit integer
8507 type for all other register pairs.
8508 (rl78_register_name, rl78_g10_register_name): Update for
8509 new pseudo registers.
8510 (rl78_pseudo_register_read): Likewise.
8511 (rl78_pseudo_register_write): Likewise.
8512 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8513 to the newly added pseudo registers.
8514
eddf0bae
DE
85152014-02-24 Doug Evans <dje@google.com>
8516
8517 * value.c (record_latest_value): Fix comment.
8518 * printcmd.c (print_command_1): Remove code to handle -1 return from
8519 record_latest_value.
8520
e96027e0
PA
85212014-02-24 Pedro Alves <palves@redhat.com>
8522
8523 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8524 deprecated_xfer_memory hook.
8525 (procfs_xfer_partial): Call procfs_xfer_memory instead
8526 of the deprecated_xfer_memory target hook.
8527 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8528 helper.
8529
0837c976
YZ
85302014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8531
8532 * windows-nat.c (windows_xfer_shared_libraries): Return
8533 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8534 requested object is TARGET_OBJECT_LIBRARIES.
8535
bc113b4e
YQ
85362014-02-24 Yao Qi <yao@codesourcery.com>
8537
8538 * target.h (enum target_xfer_status)
8539 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8540 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8541 explicitly. New.
8542 * corefile.c (memory_error_message): User updated.
8543 * exec.c (section_table_read_available_memory): Likewise.
8544 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8545 * target.c (target_xfer_status_to_string): Likewise.
8546 (raw_memory_xfer_partial): Likewise.
8547 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8548 * valops.c (read_value_memory): Likewise.
8549 * exec.h: Update comments.
8550
01cb8804
YQ
85512014-02-24 Yao Qi <yao@codesourcery.com>
8552
8553 * target.c (target_xfer_status_to_string): Rename argument err
8554 to status.
8555 * target.h (target_xfer_status_to_string): Update declaration.
8556 Replace target_xfer_error_to_string with
8557 target_xfer_status_to_string in comment.
8558
93063aa6
YQ
85592014-02-24 Yao Qi <yao@codesourcery.com>
8560
8561 * mips-linux-nat.c (super_close): Update its type.
8562 (mips_linux_close): Pass 'self' to super_close.
8563
5c328c05
YQ
85642014-02-24 Yao Qi <yao@codesourcery.com>
8565
8566 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8567 * corefile.c (read_memory): Adjusted.
8568 * target.c (target_write_with_progress): Adjusted.
8569
f73023dd
YQ
85702014-02-23 Yao Qi <yao@codesourcery.com>
8571
8572 Revert two patches:
8573
8574 2013-10-25 Yao Qi <yao@codesourcery.com>
8575
8576 * remote.c (remote_traceframe_info): Return early if
8577 traceframe is not selected.
8578
8579 2013-07-19 Yao Qi <yao@codesourcery.com>
8580
8581 * target.c (update_current_target): Change the default action
8582 of 'to_traceframe_info' from tcomplain to return_zero.
8583 * target.h (struct target_ops) <to_traceframe_info>: Add more
8584 comments.
8585
5a2eb0ef
YQ
85862014-02-23 Yao Qi <yao@codesourcery.com>
8587
8588 * valops.c (read_value_memory): Rewrite it. Call
8589 target_xfer_partial in a loop.
8590 * exec.h (section_table_available_memory): Remove declaration.
8591 Move comments to ...
8592 * exec.c (section_table_available_memory): ... here. Make it
8593 static.
8594
1ee79381
YQ
85952014-02-23 Yao Qi <yao@codesourcery.com>
8596
8597 * exec.c (section_table_read_available_memory): New function.
8598 * exec.h (section_table_read_available_memory): Declare.
8599 * ctf.c (ctf_xfer_partial): Call
8600 section_table_read_available_memory.
8601 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8602
1ca49d37
YQ
86032014-02-23 Yao Qi <yao@codesourcery.com>
8604
8605 * ctf.c (ctf_xfer_partial): Move code to ...
8606 * exec.c (exec_read_partial_read_only): ... it. New function.
8607 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8608 * tracefile.c: Include "exec.h".
8609 * exec.h (exec_read_partial_read_only): Declare.
8610
a283690e
YQ
86112014-02-23 Yao Qi <yao@codesourcery.com>
8612
8613 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8614 (tfile_has_memory): Remove.
8615 (init_tfile_ops): Don't set fields to_has_all_memory and
8616 to_has_memory of tfile_ops.
8617 * tracefile.c (tracefile_has_all_memory): New function.
8618 (tracefile_has_memory): New function.
8619 (init_tracefile_ops): Initialize fields to_has_all_memory and
8620 to_has_memory of 'ops'.
8621
12e03cd0
YQ
86222014-02-23 Yao Qi <yao@codesourcery.com>
8623
8624 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8625 (ctf_thread_alive, ctf_get_trace_status): Remove.
8626 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8627 init_tracefile_ops.
8628 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8629 (tfile_has_stack, tfile_has_registers): Remove.
8630 (tfile_thread_alive): Remove.
8631 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8632 init_tracefile_ops.
8633 * tracefile.c (tracefile_has_stack): New function.
8634 (tracefile_has_registers): New function.
8635 (tracefile_thread_alive): New function.
8636 (tracefile_get_trace_status): New function.
8637 (init_tracefile_ops): New function.
8638 * tracefile.h (init_tracefile_ops): Declare.
8639
11395323
YQ
86402014-02-23 Yao Qi <yao@codesourcery.com>
8641
8642 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8643 (O_LARGEFILE): Likewise.
8644 (tfile_ops): Likewise.
8645 (TRACE_HEADER_SIZE): Likewise.
8646 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8647 (cur_data_size): Likewise.
8648 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8649 (tfile_close, tfile_files_info): Likewise.
8650 (tfile_get_trace_status): Likewise.
8651 (tfile_get_tracepoint_status): Likewise.
8652 (tfile_get_traceframe_address): Likewise.
8653 (tfile_trace_find, match_blocktype): Likewise.
8654 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8655 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8656 (tfile_get_trace_state_variable_value): Likewise.
8657 (tfile_has_all_memory, tfile_has_memory): Likewise.
8658 (tfile_has_stack, tfile_has_registers): Likewise.
8659 (tfile_thread_alive, build_traceframe_info): Likewise.
8660 (tfile_traceframe_info, init_tfile_ops): Likewise.
8661 (_initialize_tracepoint): Don't call init_tfile_ops
8662 and add_target_with_completer.
8663 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8664 exec.h, completer.h and filenames.h.
8665 (_initialize_tracefile_tfile): New function.
8666
7951c4eb
YQ
86672014-02-23 Yao Qi <yao@codesourcery.com>
8668
8669 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8670 tracefile-tfile.o.
8671 (HFILES_NO_SRCDIR): Add tracefile.h.
8672 * ctf.c: Include "tracefile.h".
8673 * tracefile.h: New file.
8674 * tracefile.c: New file
8675 * tracefile-tfile.c: New file.
8676 * tracepoint.c: Include "tracefile.h".
8677 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8678 (stop_reason_names): Add const.
8679 (trace_file_writer_xfree): Move it to tracefile.c.
8680 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8681 (trace_save_ctf): Likewise.
8682 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8683 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8684 (tfile_write_header, tfile_write_regblock_type): Likewise.
8685 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8686 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8687 (tfile_write_raw_data, tfile_end): Likewise.
8688 (tfile_trace_file_writer_new): Likewise.
8689 (free_uploaded_tp): Make it extern.
8690 (free_uploaded_tsv): Make it extern.
8691 (_initialize_tracepoint): Move code to register command 'tsave'
8692 to tracefile.c.
8693 * tracepoint.h (stop_reason_names): Declare.
8694 (struct trace_frame_write_ops): Move it to tracefile.h.
8695 (struct trace_file_write_ops): Likewise.
8696 (struct trace_file_writer): Likewise.
8697 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8698
184cd072
JK
86992014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8700
8701 PR gdb/16594
8702 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8703 process name.
8704 (get_cores_used_by_process): New parameter num_cores, use it.
8705 (linux_xfer_osdata_processes): Pass num_cores to it.
8706 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8707 process name.
8708
c63528fc
AK
87092014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8710
8711 * target.c (memory_xfer_partial): Fix length arg in call to
8712 breakpoint_xfer_memory.
8713
d7b30f67
SDJ
87142014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8715
8716 PR tdep/16397
8717 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8718 number comes after the + or - signs. Adjust length of register
8719 name to be extracted.
8720
8838afaf
TT
87212014-02-20 Tom Tromey <tromey@redhat.com>
8722
8723 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8724 (ada_varobj_ops): Mark "extern".
8725
05227d14
TT
87262014-02-20 Tom Tromey <tromey@redhat.com>
8727
8728 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8729
1254eefc
DE
87302014-02-20 Doug Evans <xdje42@gmail.com>
8731
8732 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8733 All callers updated.
8734 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8735 All callers updated.
8736 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8737 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8738
adde2bff
DE
87392014-02-20 lin zuojian <manjian2006@gmail.com>
8740 Joel Brobecker <brobecker@adacore.com>
8741 Doug Evans <xdje42@gmail.com>
8742
8743 PR symtab/16581
8744 * dwarf2read.c (struct die_info): New member in_process.
8745 (reset_die_in_process): New function.
8746 (process_die): Set it at the start, reset when returning.
8747 (inherit_abstract_dies): Only call process_die if origin_child_die
8748 not already being processed.
8749
3be75f87
JB
87502014-02-20 Joel Brobecker <brobecker@adacore.com>
8751
8752 * windows-nat.c (handle_unload_dll): Add function documentation.
8753 (do_initial_windows_stuff): Add comment explaining why we wait
8754 until after inferior initialization has finished before
8755 processing all DLLs.
8756
47f7ffdb
JB
87572014-02-20 Joel Brobecker <brobecker@adacore.com>
8758
8759 * windows-nat.c (get_module_name): Delete.
8760 (windows_get_exec_module_filename): New function, mostly
8761 inspired from get_module_name.
8762 (windows_pid_to_exec_file): Replace call to get_module_name
8763 by call to windows_get_exec_module_filename.
8764
1cd9feab
JB
87652014-02-20 Joel Brobecker <brobecker@adacore.com>
8766
8767 * windows-nat.c (handle_load_dll): Rewrite this function's
8768 introductory comment. Remove code using get_module_name
8769 to get the DLL's name.
8770
ea39ad35
JB
87712014-02-20 Joel Brobecker <brobecker@adacore.com>
8772
8773 * windows-nat.c (get_windows_debug_event): Ignore
8774 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8775 if windows_initialization_done == 0.
8776 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8777 Adjust implementation to always load all DLLs.
8778 (do_initial_windows_stuff): Replace call to
8779 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8780
95060284
JB
87812014-02-20 Joel Brobecker <brobecker@adacore.com>
8782
8783 * windows-nat.c (_initialize_windows_nat): Deprecate the
8784 "dll-symbols" command. Turn the "add-shared-symbol-files"
8785 and "assf" aliases into commands, and deprecate them as well.
8786 * NEWS: Add entry explaining that "dll-symbols" and its two
8787 aliases are now deprecated.
8788
8d4fdb12
JB
87892014-02-20 Joel Brobecker <brobecker@adacore.com>
8790
8791 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8792 new-line in debug string. Remove trailing spaces.
8793
1b281443
SS
87942014-02-19 Stan Shebs <stan@codesourcery.com>
8795
8796 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8797
f7bd0f78
SC
87982014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8799
8800 * NEWS: Add entry for the new feature
8801 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8802 and class values.
8803
399ebc3d
SS
88042014-02-19 Stan Shebs <stan@codesourcery.com>
8805
8806 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8807
c658158d
PA
88082014-02-19 Pedro Alves <palves@redhat.com>
8809
8810 * common/ptid.h (struct ptid): Mention that process_stratum
8811 targets should prefer ptid.lwp.
8812
ba348170
PA
88132014-02-19 Pedro Alves <palves@redhat.com>
8814
8815 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8816 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8817 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8818 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8819 store remote thread ids rather than ptid.tid.
8820 (_initialize_remote): Adjust.
8821
ac01945b
TT
88222014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target.c (target_get_unwinder): Rewrite.
8825 (target_get_tailcall_unwinder): Rewrite.
8826 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8827 (record_btrace_to_get_tailcall_unwinder): New function.
8828 (init_record_btrace_ops): Update.
8829 * target.h (struct target_ops) <to_get_unwinder,
8830 to_get_tailcall_unwinder>: Now function pointers. Use
8831 TARGET_DEFAULT_RETURN.
8832
8476dc92
TT
88332014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8836 argument.
8837 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8838
c0eca49f
TT
88392014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8842 directly.
8843 * target-delegates.c: Rebuild.
8844 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8845 TARGET_DEFAULT_FUNC.
8846 * target.c (default_target_decr_pc_after_break): Rename from
8847 forward_target_decr_pc_after_break. Simplify.
8848 (target_decr_pc_after_break): Rely on delegation.
8849
596b6b39
TT
88502014-02-19 Tom Tromey <tromey@redhat.com>
8851
8852 * target.c (update_current_target): Do not INHERIT to_doc or
8853 to_magic. Do not de_fault to_open or to_close.
8854
b427c1bc
TT
88552014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * gcore.h (objfile_find_memory_regions): Declare.
8858 * gcore.c (objfile_find_memory_regions): No longer static. Add
8859 "self" argument.
8860 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8861 * exec.c: Include gcore.h.
8862 (exec_set_find_memory_regions): Remove.
8863 (exec_find_memory_regions): Remove.
8864 (exec_do_find_memory_regions): Remove.
8865 (init_exec_ops): Update.
8866 * defs.h (exec_set_find_memory_regions): Remove.
8867
9b144037
TT
88682014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target-delegates.c: Rebuild.
8871 * target.h (struct target_ops) <to_extra_thread_info,
8872 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8873 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8874 not 0, in TARGET_DEFAULT_RETURN.
8875
555bbdeb
TT
88762014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target.c (complete_target_initialization): Remove casts. Use
8879 return_zero_has_execution.
8880 (return_zero): Add "ignore" argument.
8881 (return_zero_has_execution): New function.
8882 (init_dummy_target): Remove casts. Use
8883 return_zero_has_execution.
8884
be4ddd36
TT
88852014-02-19 Tom Tromey <tromey@redhat.com>
8886
8887 * target.c (update_current_target): Update comments. Do not
8888 INHERIT to_stratum.
8889
2117c711
TT
88902014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8893 needed.
8894 * corelow.c (core_read_description): Delegate when needed.
8895 * remote.c (remote_read_description): Delegate when needed.
8896 * target-delegates.c: Rebuild.
8897 * target.c (target_read_description): Rewrite.
8898 * target.h (struct target_ops) <to_read_description>: Update
8899 comment. Use TARGET_DEFAULT_RETURN.
8900
e88ef65c
TT
89012014-02-19 Tom Tromey <tromey@redhat.com>
8902
8903 * target-delegates.c: Rebuild.
8904 * target.c (update_current_target): Don't inherit or default
8905 to_can_run.
8906 (find_default_run_target): Check against delegate_can_run.
8907 * target.h (struct target_ops) <to_can_run>: Use
8908 TARGET_DEFAULT_RETURN.
8909
86a0854a
TT
89102014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target-delegates.c: Rebuild.
8913 * target.c (target_disconnect): Unconditionally delegate.
8914 * target.h (struct target_ops) <to_disconnect>: Use
8915 TARGET_DEFAULT_NORETURN.
8916
ee97f592
TT
89172014-02-19 Tom Tromey <tromey@redhat.com>
8918
8919 * record.c (record_stop): Unconditionally delegate.
8920 * target-delegates.c: Rebuild.
8921 * target.c (target_stop_recording): Unconditionally delegate.
8922 * target.h (struct target_ops) <to_stop_recording>: Use
8923 TARGET_DEFAULT_IGNORE.
8924
6dc7fcf4
TT
89252014-02-19 Tom Tromey <tromey@redhat.com>
8926
8927 * target-delegates.c: Rebuild.
8928 * target.c (target_enable_btrace): Unconditionally delegate.
8929 * target.h (struct target_ops) <to_enable_btrace>: Use
8930 TARGET_DEFAULT_NORETURN.
8931
eb5b20d4
TT
89322014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target-delegates.c: Rebuild.
8935 * target.c (target_read_btrace): Unconditionally delegate.
8936 * target.h (struct target_ops) <to_read_btrace>: Use
8937 TARGET_DEFAULT_NORETURN.
8938
9ace480d
TT
89392014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target-delegates.c: Rebuild.
8942 * target.c (target_teardown_btrace): Unconditionally delegate.
8943 * target.h (struct target_ops) <to_teardown_btrace>: Use
8944 TARGET_DEFAULT_NORETURN.
8945
8dc292d3
TT
89462014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target-delegates.c: Rebuild.
8949 * target.c (target_disable_btrace): Unconditionally delegate.
8950 * target.h (struct target_ops) <to_disable_btrace>: Use
8951 TARGET_DEFAULT_NORETURN.
8952
58a5184e
TT
89532014-02-19 Tom Tromey <tromey@redhat.com>
8954
8955 * target-delegates.c: Rebuild.
8956 * target.c (default_search_memory): New function.
8957 (simple_search_memory): Update comment.
8958 (target_search_memory): Unconditionally delegate.
8959 * target.h (struct target_ops) <to_search_memory>: Use
8960 TARGET_DEFAULT_FUNC.
8961
8de71aab
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * auxv.c (default_auxv_parse): No longer static.
8965 (target_auxv_parse): Unconditionally delegate.
8966 * auxv.h (default_auxv_parse): Declare.
8967 * target-delegates.c: Rebuild.
8968 * target.c: Include auxv.h.
8969 * target.h (struct target_ops) <to_auxv_parse>: Use
8970 TARGET_DEFAULT_FUNC.
8971
6b2c5a57
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target-delegates.c: Rebuild.
8975 * target.c (target_memory_map): Unconditionally delegate.
8976 * target.h (struct target_ops) <to_memory_map>: Use
8977 TARGET_DEFAULT_RETURN.
8978
cbffc065
TT
89792014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target-delegates.c: Rebuild.
8982 * target.c (target_thread_alive): Unconditionally delegate.
8983 * target.h (struct target_ops) <to_thread_alive>: Use
8984 TARGET_DEFAULT_RETURN.
8985
f09e2107
TT
89862014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target-delegates.c: Rebuild.
8989 * target.c (target_save_record): Unconditionally delegate.
8990 * target.h (struct target_ops) <to_save_record>: Use
8991 TARGET_DEFAULT_NORETURN.
8992
07366925
TT
89932014-02-19 Tom Tromey <tromey@redhat.com>
8994
8995 * target-delegates.c: Rebuild.
8996 * target.c (target_delete_record): Unconditionally delegate.
8997 * target.h (struct target_ops) <to_delete_record>: Use
8998 TARGET_DEFAULT_NORETURN.
8999
dd2e9d25
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target-delegates.c: Rebuild.
9003 * target.c (target_record_is_replaying): Unconditionally
9004 delegate.
9005 * target.h (struct target_ops) <to_record_is_replaying>: Use
9006 TARGET_DEFAULT_RETURN.
9007
671e76cc
TT
90082014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * target-delegates.c: Rebuild.
9011 * target.c (target_goto_record_begin): Unconditionally delegate.
9012 * target.h (struct target_ops) <to_goto_record_begin>: Use
9013 TARGET_DEFAULT_NORETURN.
9014
e9179bb3
TT
90152014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target-delegates.c: Rebuild.
9018 * target.c (target_goto_record_end): Unconditionally delegate.
9019 * target.h (struct target_ops) <to_goto_record_end>: Use
9020 TARGET_DEFAULT_NORETURN.
9021
05969c84
TT
90222014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target-delegates.c: Rebuild.
9025 * target.c (target_goto_record): Unconditionally delegate.
9026 * target.h (struct target_ops) <to_goto_record>: Use
9027 TARGET_DEFAULT_NORETURN.
9028
3679abfa
TT
90292014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target-delegates.c: Rebuild.
9032 * target.c (target_insn_history): Unconditionally delegate.
9033 * target.h (struct target_ops) <to_insn_history>: Use
9034 TARGET_DEFAULT_NORETURN.
9035
8444ab58
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target-delegates.c: Rebuild.
9039 * target.c (target_insn_history_from): Unconditionally delegate.
9040 * target.h (struct target_ops) <to_insn_history_from>: Use
9041 TARGET_DEFAULT_NORETURN.
9042
c29302cc
TT
90432014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target-delegates.c: Rebuild.
9046 * target.c (target_insn_history_range): Unconditionally delegate.
9047 * target.h (struct target_ops) <to_insn_history_range>: Use
9048 TARGET_DEFAULT_NORETURN.
9049
170049d4
TT
90502014-02-19 Tom Tromey <tromey@redhat.com>
9051
9052 * target-delegates.c: Rebuild.
9053 * target.c (target_call_history): Unconditionally delegate.
9054 * target.h (struct target_ops) <to_call_history>: Use
9055 TARGET_DEFAULT_NORETURN.
9056
16fc27d6
TT
90572014-02-19 Tom Tromey <tromey@redhat.com>
9058
9059 * target-delegates.c: Rebuild.
9060 * target.c (target_call_history_from): Unconditionally delegate.
9061 * target.h (struct target_ops) <to_call_history_from>: Use
9062 TARGET_DEFAULT_NORETURN.
9063
115d9817
TT
90642014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target-delegates.c: Rebuild.
9067 * target.c (target_call_history_range): Unconditionally delegate.
9068 * target.h (struct target_ops) <to_call_history_range>: Use
9069 TARGET_DEFAULT_NORETURN.
9070
eb276a6b
TT
90712014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target-delegates.c: Rebuild.
9074 * target.c (target_verify_memory): Unconditionally delegate.
9075 * target.h (struct target_ops) <to_verify_memory>: Use
9076 TARGET_DEFAULT_NORETURN.
9077
9e538d0d
TT
90782014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target-delegates.c: Rebuild.
9081 * target.c (target_core_of_thread): Unconditionally delegate.
9082 * target.h (struct target_ops) <to_core_of_thread>: Use
9083 TARGET_DEFAULT_RETURN.
9084
f6fb2925
TT
90852014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target-delegates.c: Rebuild.
9088 * target.c (target_flash_done): Unconditionally delegate.
9089 * target.h (struct target_ops) <to_flash_done>: Use
9090 TARGET_DEFAULT_NORETURN.
9091
e8a6c6ac
TT
90922014-02-19 Tom Tromey <tromey@redhat.com>
9093
9094 * target-delegates.c: Rebuild.
9095 * target.c (target_flash_erase): Unconditionally delegate.
9096 * target.h (struct target_ops) <to_flash_erase>: Use
9097 TARGET_DEFAULT_NORETURN.
9098
7e35c012
TT
90992014-02-19 Tom Tromey <tromey@redhat.com>
9100
9101 * target-delegates.c: Rebuild.
9102 * target.c (target_get_section_table): Unconditionally delegate.
9103 * target.h (struct target_ops) <to_get_section_table>: Use
9104 TARGET_DEFAULT_RETURN.
9105
770234d3
TT
91062014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target-delegates.c: Rebuild.
9109 * target.c (target_pid_to_str): Unconditionally delegate.
9110 (init_dummy_target): Don't initialize to_pid_to_str.
9111 (default_pid_to_str): Rename from dummy_pid_to_str.
9112 * target.h (struct target_ops) <to_pid_to_str>: Use
9113 TARGET_DEFAULT_FUNC.
9114
09b0dc2b
TT
91152014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target-delegates.c: Rebuild.
9118 * target.c (target_find_new_threads): Unconditionally delegate.
9119 * target.h (struct target_ops) <to_find_new_threads>: Use
9120 TARGET_DEFAULT_RETURN.
9121
7d4f8efa
TT
91222014-02-19 Tom Tromey <tromey@redhat.com>
9123
9124 * target-delegates.c: Rebuild.
9125 * target.c (target_program_signals): Unconditionally delegate.
9126 * target.h (struct target_ops) <to_program_signals>: Use
9127 TARGET_DEFAULT_IGNORE.
9128
035cad7f
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target-delegates.c: Rebuild.
9132 * target.c (target_pass_signals): Unconditionally delegate.
9133 * target.h (struct target_ops) <to_pass_signals>: Use
9134 TARGET_DEFAULT_IGNORE.
9135
8d657035
TT
91362014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target-delegates.c: Rebuild.
9139 * target.c (default_mourn_inferior): New function.
9140 (target_mourn_inferior): Unconditionally delegate.
9141 * target.h (struct target_ops) <to_mourn_inferior>: Use
9142 TARGET_DEFAULT_FUNC.
9143
098dba18
TT
91442014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * target-delegates.c: Rebuild.
9147 * target.c (default_follow_fork): New function.
9148 (target_follow_fork): Unconditionally delegate.
9149 * target.h (struct target_ops) <to_follow_fork>: Use
9150 TARGET_DEFAULT_FUNC.
9151
423a4807
TT
91522014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target-delegates.c: Rebuild.
9155 * target.c (target_kill): Unconditionally delegate.
9156 * target.h (struct target_ops) <to_kill>: Use
9157 TARGET_DEFAULT_NORETURN.
9158
6c7e5e5c
TT
91592014-02-19 Tom Tromey <tromey@redhat.com>
9160
9161 * target-delegates.c: Rebuild.
9162 * target.c (target_masked_watch_num_registers): Unconditionally
9163 delegate.
9164 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9165 Use TARGET_DEFAULT_RETURN.
9166
8b1c364c
TT
91672014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target-delegates.c: Rebuild.
9170 * target.c (target_remove_mask_watchpoint): Unconditionally
9171 delegate.
9172 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9173 TARGET_DEFAULT_RETURN.
9174
cd4ae029
TT
91752014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target-delegates.c: Rebuild.
9178 * target.c (target_insert_mask_watchpoint): Unconditionally
9179 delegate.
9180 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9181 TARGET_DEFAULT_RETURN.
9182
a134316b
TT
91832014-02-19 Tom Tromey <tromey@redhat.com>
9184
9185 * target-delegates.c: Rebuild.
9186 * target.c (target_ranged_break_num_registers): Unconditionally
9187 delegate.
9188 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9189 Use TARGET_DEFAULT_RETURN.
9190
ad5989bd
TT
91912014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target-delegates.c: Rebuild.
9194 * target.c (target_fetch_registers): Unconditionally delegate.
9195 * target.h (struct target_ops) <to_fetch_registers>: Use
9196 TARGET_DEFAULT_NORETURN.
9197
46ee7e8d
TT
91982014-02-19 Tom Tromey <tromey@redhat.com>
9199
9200 * target-delegates.c: Rebuild.
9201 * target.c (update_current_target): Don't inherit or default
9202 to_stop.
9203 * target.h (struct target_ops) <to_stop>: Use
9204 TARGET_DEFAULT_IGNORE.
9205
843f59ed
TT
92062014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target-delegates.c: Rebuild.
9209 * target.c (update_current_target): Don't inherit or default
9210 to_can_run_breakpoint_commands.
9211 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9212 Use TARGET_DEFAULT_RETURN.
9213
ccfde2a0
TT
92142014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target-delegates.c: Rebuild.
9217 * target.c (update_current_target): Don't inherit or default
9218 to_supports_evaluation_of_breakpoint_conditions.
9219 * target.h (struct target_ops)
9220 <to_supports_evaluation_of_breakpoint_conditions>: Use
9221 TARGET_DEFAULT_RETURN.
9222
0de91722
TT
92232014-02-19 Tom Tromey <tromey@redhat.com>
9224
9225 * target-delegates.c: Rebuild.
9226 * target.c (update_current_target): Don't inherit or default
9227 to_augmented_libraries_svr4_read.
9228 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9229 Use TARGET_DEFAULT_RETURN.
9230
9a7d8b48
TT
92312014-02-19 Tom Tromey <tromey@redhat.com>
9232
9233 * target-delegates.c: Rebuild.
9234 * target.c (update_current_target): Don't inherit or default
9235 to_can_use_agent.
9236 * target.h (struct target_ops) <to_can_use_agent>: Use
9237 TARGET_DEFAULT_RETURN.
9238
d9db5b21
TT
92392014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target-delegates.c: Rebuild.
9242 * target.c (update_current_target): Don't inherit or default
9243 to_use_agent.
9244 * target.h (struct target_ops) <to_use_agent>: Use
9245 TARGET_DEFAULT_NORETURN.
9246
92155eeb
TT
92472014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * target-delegates.c: Rebuild.
9250 * target.c (update_current_target): Don't inherit or default
9251 to_traceframe_info.
9252 (return_null): Remove.
9253 * target.h (struct target_ops) <to_traceframe_info>: Use
9254 TARGET_DEFAULT_RETURN.
9255
d6522a22
TT
92562014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * target-delegates.c: Rebuild.
9259 * target.c (update_current_target): Don't inherit or default
9260 to_static_tracepoint_markers_by_strid.
9261 * target.h (struct target_ops)
9262 <to_static_tracepoint_markers_by_strid>: Use
9263 TARGET_DEFAULT_NORETURN.
9264
4c3e4425
TT
92652014-02-19 Tom Tromey <tromey@redhat.com>
9266
9267 * target-delegates.c: Rebuild.
9268 * target.c (update_current_target): Don't inherit or default
9269 to_static_tracepoint_marker_at.
9270 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9271 Use TARGET_DEFAULT_RETURN.
9272
dcd6917f
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target-delegates.c: Rebuild.
9276 * target.c (update_current_target): Don't inherit or default
9277 to_set_permissions.
9278 * target.h (struct target_ops) <to_set_permissions>: Use
9279 TARGET_DEFAULT_IGNORE.
9280
22bcceee
TT
92812014-02-19 Tom Tromey <tromey@redhat.com>
9282
9283 * target-delegates.c: Rebuild.
9284 * target.c (update_current_target): Don't inherit or default
9285 to_get_tib_address.
9286 * target.h (struct target_ops) <to_get_tib_address>: Use
9287 TARGET_DEFAULT_NORETURN.
9288
8586ccaa
TT
92892014-02-19 Tom Tromey <tromey@redhat.com>
9290
9291 * target-delegates.c: Rebuild.
9292 * target.c (update_current_target): Don't inherit or default
9293 to_set_trace_notes.
9294 * target.h (struct target_ops) <to_set_trace_notes>: Use
9295 TARGET_DEFAULT_RETURN.
9296
91df8d1d
TT
92972014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target-delegates.c: Rebuild.
9300 * target.c (update_current_target): Don't initialize
9301 to_set_trace_buffer_size.
9302 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9303 TARGET_DEFAULT_IGNORE.
9304
8d526939
TT
93052014-02-19 Tom Tromey <tromey@redhat.com>
9306
9307 * target-delegates.c: Rebuild.
9308 * target.c (update_current_target): Don't inherit or default
9309 to_set_circular_trace_buffer.
9310 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9311 TARGET_DEFAULT_IGNORE.
9312
0bcfeddf
TT
93132014-02-19 Tom Tromey <tromey@redhat.com>
9314
9315 * target-delegates.c: Rebuild.
9316 * target.c (update_current_target): Don't inherit or default
9317 to_set_disconnected_tracing.
9318 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9319 TARGET_DEFAULT_IGNORE.
9320
9249843f
TT
93212014-02-19 Tom Tromey <tromey@redhat.com>
9322
9323 * target-delegates.c: Rebuild.
9324 * target.c (update_current_target): Don't inherit or default
9325 to_get_min_fast_tracepoint_insn_len.
9326 (return_minus_one): Remove.
9327 * target.h (struct target_ops)
9328 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9329
ace92e7d
TT
93302014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target-delegates.c: Rebuild.
9333 * target.c (update_current_target): Don't inherit or default
9334 to_get_raw_trace_data.
9335 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9336 TARGET_DEFAULT_NORETURN.
9337
08120467
TT
93382014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target-delegates.c: Rebuild.
9341 * target.c (update_current_target): Don't inherit or default
9342 to_upload_trace_state_variables.
9343 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9344 Use TARGET_DEFAULT_RETURN.
9345
1e949b00
TT
93462014-02-19 Tom Tromey <tromey@redhat.com>
9347
9348 * target-delegates.c: Rebuild.
9349 * target.c (update_current_target): Don't inherit or default
9350 to_upload_tracepoints.
9351 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9352 TARGET_DEFAULT_RETURN.
9353
a2e6c147
TT
93542014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * target-delegates.c: Rebuild.
9357 * target.c (update_current_target): Don't inherit or default
9358 to_save_trace_data.
9359 * target.h (struct target_ops) <to_save_trace_data>: Use
9360 TARGET_DEFAULT_NORETURN.
9361
959bcd0b
TT
93622014-02-19 Tom Tromey <tromey@redhat.com>
9363
9364 * target-delegates.c: Rebuild.
9365 * target.c (update_current_target): Don't inherit or default
9366 to_get_trace_state_variable_value.
9367 * target.h (struct target_ops)
9368 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9369
afc94e66
TT
93702014-02-19 Tom Tromey <tromey@redhat.com>
9371
9372 * target-delegates.c: Rebuild.
9373 * target.c (update_current_target): Don't inherit or default
9374 to_trace_find.
9375 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9376
e51c07ea
TT
93772014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * target-delegates.c: Rebuild.
9380 * target.c (update_current_target): Don't inherit or default
9381 to_trace_stop.
9382 * target.h (struct target_ops) <to_trace_stop>: Use
9383 TARGET_DEFAULT_NORETURN.
9384
6fea14cd
TT
93852014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * target-delegates.c: Rebuild.
9388 * target.c (update_current_target): Don't inherit or default
9389 to_get_tracepoint_status.
9390 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9391 TARGET_DEFAULT_NORETURN.
9392
4072d4ff
TT
93932014-02-19 Tom Tromey <tromey@redhat.com>
9394
9395 * target-delegates.c: Rebuild.
9396 * target.c (update_current_target): Don't inherit or default
9397 to_get_trace_status.
9398 * target.h (struct target_ops) <to_get_trace_status>: Use
9399 TARGET_DEFAULT_RETURN.
9400
25da2e80
TT
94012014-02-19 Tom Tromey <tromey@redhat.com>
9402
9403 * target-delegates.c: Rebuild.
9404 * target.c (update_current_target): Don't inherit or default
9405 to_trace_start.
9406 * target.h (struct target_ops) <to_trace_start>: Use
9407 TARGET_DEFAULT_NORETURN.
9408
86dd181d
TT
94092014-02-19 Tom Tromey <tromey@redhat.com>
9410
9411 * target-delegates.c: Rebuild.
9412 * target.c (update_current_target): Don't inherit or default
9413 to_trace_set_readonly_regions.
9414 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9415 Use TARGET_DEFAULT_NORETURN.
9416
05c41993
TT
94172014-02-19 Tom Tromey <tromey@redhat.com>
9418
9419 * target-delegates.c: Rebuild.
9420 * target.c (update_current_target): Don't inherit or default
9421 to_disable_tracepoint.
9422 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9423 TARGET_DEFAULT_NORETURN.
9424
151f70f1
TT
94252014-02-19 Tom Tromey <tromey@redhat.com>
9426
9427 * target-delegates.c: Rebuild.
9428 * target.c (update_current_target): Don't inherit or default
9429 to_enable_tracepoint.
9430 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9431 TARGET_DEFAULT_NORETURN.
9432
94eb98b9
TT
94332014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target-delegates.c: Rebuild.
9436 * target.c (update_current_target): Don't inherit or default
9437 to_download_trace_state_variable.
9438 * target.h (struct target_ops) <to_download_trace_state_variable>:
9439 Use TARGET_DEFAULT_NORETURN.
9440
719acc4a
TT
94412014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target-delegates.c: Rebuild.
9444 * target.c (update_current_target): Don't inherit or default
9445 to_can_download_tracepoint.
9446 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9447 TARGET_DEFAULT_RETURN.
9448
9a980a22
TT
94492014-02-19 Tom Tromey <tromey@redhat.com>
9450
9451 * target-delegates.c: Rebuild.
9452 * target.c (update_current_target): Don't inherit or default
9453 to_download_tracepoint.
9454 * target.h (struct target_ops) <to_download_tracepoint>: Use
9455 TARGET_DEFAULT_NORETURN.
9456
5536135b
TT
94572014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target-delegates.c: Rebuild.
9460 * target.c (update_current_target): Don't inherit or default
9461 to_trace_init.
9462 * target.h (struct target_ops) <to_trace_init>: Use
9463 TARGET_DEFAULT_RETURN.
9464
9409d39e
TT
94652014-02-19 Tom Tromey <tromey@redhat.com>
9466
9467 * target-delegates.c: Rebuild.
9468 * target.c (update_current_target): Don't inherit or default
9469 to_supports_string_tracing.
9470 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9471 TARGET_DEFAULT_RETURN.
9472
aab1b22d
TT
94732014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * target-delegates.c: Rebuild.
9476 * target.c (update_current_target): Don't inherit or default
9477 to_supports_enable_disable_tracepoint.
9478 * target.h (struct target_ops)
9479 <to_supports_enable_disable_tracepoint>: Use
9480 TARGET_DEFAULT_RETURN.
9481
a7304748
TT
94822014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target-delegates.c: Rebuild.
9485 * target.c (update_current_target): Don't inherit or default
9486 to_supports_multi_process.
9487 * target.h (struct target_ops) <to_supports_multi_process>: Use
9488 TARGET_DEFAULT_RETURN.
9489
4229b31d
TT
94902014-02-19 Tom Tromey <tromey@redhat.com>
9491
9492 * target-delegates.c: Rebuild.
9493 * target.c (update_current_target): Don't inherit or default
9494 to_get_ada_task_ptid.
9495 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9496 TARGET_DEFAULT_FUNC.
9497
43eba180
TT
94982014-02-19 Tom Tromey <tromey@redhat.com>
9499
9500 * target-delegates.c: Rebuild.
9501 * target.c (update_current_target): Don't inherit or default
9502 to_thread_architecture.
9503 * target.h (struct target_ops) <to_thread_architecture>: Use
9504 TARGET_DEFAULT_FUNC.
9505
fe31bf5b
TT
95062014-02-19 Tom Tromey <tromey@redhat.com>
9507
9508 * target-delegates.c: Rebuild.
9509 * target.c (update_current_target): Don't inherit or default
9510 to_execution_direction.
9511 * target.h (struct target_ops) <to_execution_direction>: Use
9512 TARGET_DEFAULT_FUNC.
9513
53e1cfc7
TT
95142014-02-19 Tom Tromey <tromey@redhat.com>
9515
9516 * target-delegates.c: Rebuild.
9517 * target.c (update_current_target): Don't inherit or default
9518 to_can_execute_reverse.
9519 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9520 TARGET_DEFAULT_RETURN.
9521 (target_can_execute_reverse): Unconditionally delegate.
9522
9bb9d61d
TT
95232014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * target-delegates.c: Rebuild.
9526 * target.c (update_current_target): Don't inherit or default
9527 to_goto_bookmark.
9528 (dummy_goto_bookmark): Remove.
9529 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9530 * target.h (struct target_ops) <to_goto_bookmark>: Use
9531 TARGET_DEFAULT_NORETURN.
9532
3dbafbbb
TT
95332014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * target-delegates.c: Rebuild.
9536 * target.c (update_current_target): Don't inherit or default
9537 to_get_bookmark.
9538 (dummy_get_bookmark): Remove.
9539 (init_dummy_target): Don't inherit or default to_get_bookmark.
9540 * target.h (struct target_ops) <to_get_bookmark>: Use
9541 TARGET_DEFAULT_NORETURN
9542
16f796b1
TT
95432014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target-delegates.c: Rebuild.
9546 * target.c (update_current_target): Don't inherit or default
9547 to_make_corefile_notes.
9548 (init_dummy_target): Don't initialize to_make_corefile_notes.
9549 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9550 TARGET_DEFAULT_FUNC.
9551
0b5a2719
TT
95522014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target-delegates.c: Rebuild.
9555 * target.c (update_current_target): Don't inherit or default
9556 to_find_memory_regions.
9557 (init_dummy_target): Don't initialize to_find_memory_regions.
9558 * target.h (struct target_ops) <to_find_memory_regions>: Use
9559 TARGET_DEFAULT_FUNC.
9560
d9cb0195
TT
95612014-02-19 Tom Tromey <tromey@redhat.com>
9562
9563 * target-delegates.c: Rebuild.
9564 * target.c (update_current_target): Don't inherit or default
9565 to_log_command.
9566 * target.h (struct target_ops) <to_log_command>: Use
9567 TARGET_DEFAULT_IGNORE.
9568 (target_log_command): Unconditionally delegate.
9569
830ca330
TT
95702014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target-delegates.c: Rebuild.
9573 * target.c (update_current_target): Don't inherit or default
9574 to_pid_to_exec_file.
9575 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9576 TARGET_DEFAULT_RETURN.
9577
825828fc
TT
95782014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target-delegates.c: Rebuild.
9581 * target.c (update_current_target): Don't inherit or default
9582 to_thread_name.
9583 (target_thread_name): Unconditionally delegate.
9584 * target.h (struct target_ops) <to_thread_name>: Use
9585 TARGET_DEFAULT_RETURN.
9586
4a7e6dda
TT
95872014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target-delegates.c: Rebuild.
9590 * target.c (update_current_target): Don't inherit or default
9591 to_extra_thread_info.
9592 * target.h (struct target_ops) <to_extra_thread_info>: Use
9593 TARGET_DEFAULT_RETURN.
9594
0db88c1d
TT
95952014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target-delegates.c: Rebuild.
9598 * target.c (update_current_target): Don't inherit or default
9599 to_has_exited.
9600 * target.h (struct target_ops) <to_has_exited>: Use
9601 TARGET_DEFAULT_RETURN..
9602
6a9fa051
TT
96032014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target-delegates.c: Rebuild.
9606 * target.c (update_current_target): Don't inherit or default
9607 to_set_syscall_catchpoint.
9608 (return_one): Remove.
9609 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9610 TARGET_DEFAULT_RETURN.
9611
62f64d7a
TT
96122014-02-19 Tom Tromey <tromey@redhat.com>
9613
9614 * target-delegates.c: Rebuild.
9615 * target.c (update_current_target): Don't inherit or default
9616 to_insert_exec_catchpoint.
9617 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9618 TARGET_DEFAULT_RETURN.
9619
cda0f38c
TT
96202014-01-08 Tom Tromey <tromey@redhat.com>
9621
9622 * target-delegates.c: Rebuild.
9623 * target.c (update_current_target): Don't inherit or default
9624 to_insert_exec_catchpoint.
9625 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9626 TARGET_DEFAULT_RETURN.
9627
95c3375e
TT
96282014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target-delegates.c: Rebuild.
9631 * target.c (update_current_target): Don't inherit or default
9632 to_remove_vfork_catchpoint.
9633 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9634 TARGET_DEFAULT_RETURN.
9635
7e18a8dc
TT
96362014-02-19 Tom Tromey <tromey@redhat.com>
9637
9638 * target-delegates.c: Rebuild.
9639 * target.c (update_current_target): Don't inherit or default
9640 to_insert_vfork_catchpoint.
9641 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9642 TARGET_DEFAULT_RETURN.
9643
e1a21fb7
TT
96442014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * target-delegates.c: Rebuild.
9647 * target.c (update_current_target): Don't inherit or default
9648 to_remove_fork_catchpoint.
9649 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9650 TARGET_DEFAULT_RETURN.
9651
5958ebeb
TT
96522014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * target-delegates.c: Rebuild.
9655 * target.c (update_current_target): Don't inherit or default
9656 to_insert_fork_catchpoint.
9657 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9658 TARGET_DEFAULT_RETURN.
9659
340ba4bf
TT
96602014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target-delegates.c: Rebuild.
9663 * target.c (update_current_target): Don't inherit or default
9664 to_post_startup_inferior.
9665 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9666 TARGET_DEFAULT_IGNORE.
9667
7634da87
TT
96682014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target-delegates.c: Rebuild.
9671 * target.c (update_current_target): Don't inherit or default
9672 to_load.
9673 * target.h (struct target_ops) <to_load>: Use
9674 TARGET_DEFAULT_NORETURN.
9675
e19e919f
TT
96762014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target-delegates.c: Rebuild.
9679 * target.c (update_current_target): Don't inherit or default
9680 to_terminal_info.
9681 * target.h (struct target_ops) <to_terminal_info>: Use
9682 TARGET_DEFAULT_FUNC.
9683
c6ea8f79
TT
96842014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target-delegates.c: Rebuild.
9687 * target.c (update_current_target): Don't inherit or default
9688 to_terminal_save_ours.
9689 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9690 TARGET_DEFAULT_IGNORE.
9691
e4a733f1
TT
96922014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target-delegates.c: Rebuild.
9695 * target.c (update_current_target): Don't inherit or default
9696 to_terminal_ours.
9697 * target.h (struct target_ops) <to_terminal_ours>: Use
9698 TARGET_DEFAULT_IGNORE.
9699
74fcbef9
TT
97002014-02-19 Tom Tromey <tromey@redhat.com>
9701
9702 * target-delegates.c: Rebuild.
9703 * target.c (update_current_target): Don't inherit or default
9704 to_terminal_ours_for_output.
9705 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9706 TARGET_DEFAULT_IGNORE.
9707
ddeaacc9
TT
97082014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * target-delegates.c: Rebuild.
9711 * target.c (update_current_target): Don't inherit or default
9712 to_terminal_inferior.
9713 * target.h (struct target_ops) <to_terminal_inferior>: Use
9714 TARGET_DEFAULT_IGNORE.
9715
0343661d
TT
97162014-02-19 Tom Tromey <tromey@redhat.com>
9717
9718 * target-delegates.c: Rebuild.
9719 * target.c (update_current_target): Don't inherit or default
9720 to_terminal_init.
9721 * target.h (struct target_ops) <to_terminal_init>: Use
9722 TARGET_DEFAULT_IGNORE.
9723
77cdffe9
TT
97242014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target-delegates.c: Rebuild.
9727 * target.c (update_current_target): Don't inherit or default
9728 to_can_accel_watchpoint_condition.
9729 * target.h (struct target_ops)
9730 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9731
d03655e4
TT
97322014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target-delegates.c: Rebuild.
9735 * target.c (update_current_target): Don't inherit or default
9736 to_region_ok_for_hw_watchpoint.
9737 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9738 Use TARGET_DEFAULT_FUNC.
9739
65f160a9
TT
97402014-02-19 Tom Tromey <tromey@redhat.com>
9741
9742 * target-delegates.c: Rebuild.
9743 * target.c (update_current_target): Don't inherit or default
9744 to_watchpoint_addr_within_range.
9745 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9746 Use TARGET_DEFAULT_FUNC.
9747
61dd109f
TT
97482014-02-19 Tom Tromey <tromey@redhat.com>
9749
9750 * target-delegates.c: Rebuild.
9751 * target.c (update_current_target): Don't inherit or default
9752 to_remove_watchpoint.
9753 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9754 TARGET_DEFAULT_NORETURN.
9755
016facd4
TT
97562014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target-delegates.c: Rebuild.
9759 * target.c (update_current_target): Don't inherit or default
9760 to_insert_watchpoint.
9761 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9762 TARGET_DEFAULT_RETURN.
9763
418dabac
TT
97642014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target-delegates.c: Rebuild.
9767 * target.c (update_current_target): Don't inherit or default
9768 to_remove_hw_breakpoint.
9769 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9770 TARGET_DEFAULT_RETURN.
9771
61b371f9
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (update_current_target): Don't inherit or default
9776 to_insert_hw_breakpoint.
9777 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9778 TARGET_DEFAULT_RETURN.
9779
52b51d06
TT
97802014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target-delegates.c: Rebuild.
9783 * target.c (update_current_target): Don't inherit or default
9784 to_can_use_hw_breakpoint.
9785 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9786 TARGET_DEFAULT_RETURN.
9787
f86e59b2
TT
97882014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target-delegates.c: Rebuild.
9791 * target.c (update_current_target): Don't inherit or default
9792 to_files_info.
9793 * target.h (struct target_ops) <to_files_info>: Use
9794 TARGET_DEFAULT_IGNORE.
9795
6c628163
TT
97962014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target-delegates.c: Rebuild.
9799 * target.c (update_current_target): Don't inherit or default
9800 to_store.
9801 * target.h (struct target_ops) <to_store>: Use
9802 TARGET_DEFAULT_NORETURN.
9803
bebd3233
TT
98042014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9808 to_post_attach.
9809 * target.h (struct target_ops) <to_post_attach>: Use
9810 TARGET_DEFAULT_IGNORE.
9811
a53f3625
TT
98122014-02-19 Tom Tromey <tromey@redhat.com>
9813
9814 * target-delegates.c: Rebuild.
9815 * target.c (update_current_target): Don't inherit or default
9816 to_rcmd.
9817 (default_rcmd): New function.
9818 (do_monitor_command): Unconditionally delegate.
9819 * target.h (struct target_ops) <to_rmcd>: Use
9820 TARGET_DEFAULT_FUNC.
9821
e9a29200
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target-delegates.c: Rebuild.
9825 * target.c (init_dummy_target): Don't initialize to_attach.
9826 (target_attach): Unconditionally delegate.
9827 * target.h (struct target_ops) <to_attach>: Use
9828 TARGET_DEFAULT_FUNC.
9829
09da0d0a
TT
98302014-02-19 Tom Tromey <tromey@redhat.com>
9831
9832 * target-delegates.c: Rebuild.
9833 * target.c (target_detach): Unconditionally delegate.
9834 (init_dummy_target): Don't initialize to_detach.
9835 * target.h (struct target_ops) <to_detach>: Use
9836 TARGET_DEFAULT_IGNORE.
9837
5436ff03
TT
98382014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9841 Add argument.
9842 (target_augmented_libraries_svr4_read): Add argument.
9843 * target.c (update_current_target): Update.
9844 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9845 argument.
9846
f0d960ea
TT
98472014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * target.h (struct target_ops) <to_call_history_range>: Add
9850 argument.
9851 * target.c (target_call_history_range): Add argument.
9852 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9853 argument.
9854 (record_btrace_call_history_from): Update.
9855
ec0aea04
TT
98562014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target.h (struct target_ops) <to_call_history_from>: Add
9859 argument.
9860 * target.c (target_call_history_from): Add argument.
9861 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9862 argument.
9863
5df2fcba
TT
98642014-02-19 Tom Tromey <tromey@redhat.com>
9865
9866 * target.h (struct target_ops) <to_call_history>: Add argument.
9867 * target.c (target_call_history): Add argument.
9868 * record-btrace.c (record_btrace_call_history): Add 'self'
9869 argument.
9870
4e99c6b7
TT
98712014-02-19 Tom Tromey <tromey@redhat.com>
9872
9873 * target.h (struct target_ops) <to_insn_history_range>: Add
9874 argument.
9875 * target.c (target_insn_history_range): Add argument.
9876 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9877 argument.
9878 (record_btrace_insn_history_from): Update.
9879
9abc3ff3
TT
98802014-02-19 Tom Tromey <tromey@redhat.com>
9881
9882 * target.h (struct target_ops) <to_insn_history_from>: Add
9883 argument.
9884 * target.c (target_insn_history_from): Add argument.
9885 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9886 argument.
9887
7a6c5609
TT
98882014-02-19 Tom Tromey <tromey@redhat.com>
9889
9890 * target.h (struct target_ops) <to_insn_history>: Add argument.
9891 * target.c (target_insn_history): Add argument.
9892 * record-btrace.c (record_btrace_insn_history): Add 'self'
9893 argument.
9894
606183ac
TT
98952014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * target.h (struct target_ops) <to_goto_record>: Add argument.
9898 * target.c (target_goto_record): Add argument.
9899 * record-full.c (record_full_goto): Add 'self' argument.
9900 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9901
307a1b91
TT
99022014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9905 * target.c (target_goto_record_end): Add argument.
9906 * record-full.c (record_full_goto_end): Add 'self' argument.
9907 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9908
08475817
TT
99092014-02-19 Tom Tromey <tromey@redhat.com>
9910
9911 * target.h (struct target_ops) <to_goto_record_begin>: Add
9912 argument.
9913 * target.c (target_goto_record_begin): Add argument.
9914 * record-full.c (record_full_goto_begin): Add 'self' argument.
9915 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9916 argument.
9917
1c63c994
TT
99182014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target.h (struct target_ops) <to_record_is_replaying>: Add
9921 argument.
9922 * target.c (target_record_is_replaying): Add argument.
9923 * record-full.c (record_full_is_replaying): Add 'self' argument.
9924 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9925 argument.
9926 (record_btrace_xfer_partial, record_btrace_store_registers)
9927 (record_btrace_prepare_to_store, record_btrace_resume)
9928 (record_btrace_wait, record_btrace_decr_pc_after_break)
9929 (record_btrace_find_new_threads, record_btrace_thread_alive):
9930 Update.
9931
d1b55219
TT
99322014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target.h (struct target_ops) <to_delete_record>: Add argument.
9935 * target.c (target_delete_record): Add argument.
9936 * record-full.c (record_full_delete): Add 'self' argument.
9937
1390f529
TT
99382014-02-19 Tom Tromey <tromey@redhat.com>
9939
9940 * target.h (struct target_ops) <to_save_record>: Add argument.
9941 * target.c (target_save_record): Add argument.
9942 * record-full.c (record_full_save): Add 'self' argument.
9943 (record_full_save): Add 'self' argument.
9944
630d6a4a
TT
99452014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * target.h (struct target_ops) <to_info_record>: Add argument.
9948 * target.c (target_info_record): Add argument.
9949 * record.c (info_record_command): Add argument.
9950 * record-full.c (record_full_info): Add 'self' argument.
9951 * record-btrace.c (record_btrace_info): Add 'self' argument.
9952
c6cd7c02
TT
99532014-02-19 Tom Tromey <tromey@redhat.com>
9954
9955 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9956 * target.c (target_stop_recording): Add argument.
9957 * record.c (record_stop): Add argument.
9958 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9959 argument.
9960
39c49f83
TT
99612014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9964 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9965 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9966 argument.
9967 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9968 (_initialize_amd64_linux_nat): Use it.
9969 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9970 (_initialize_i386_linux_nat): Use it.
9971
1777056d
TT
99722014-02-19 Tom Tromey <tromey@redhat.com>
9973
9974 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9975 * target.c (target_teardown_btrace): Add argument.
9976 * remote.c (remote_teardown_btrace): Add 'self' argument.
9977 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9978 argument.
9979 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9980 argument.
9981
25e95349
TT
99822014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9985 * target.c (target_disable_btrace): Add argument.
9986 * remote.c (remote_disable_btrace): Add 'self' argument.
9987 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9988 argument.
9989 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9990 argument.
9991
e3c49f88
TT
99922014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9995 * target.c (target_enable_btrace): Add argument.
9996 * remote.c (remote_enable_btrace): Add 'self' argument.
9997 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9998 argument.
9999 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10000 argument.
10001
fe38f897
TT
100022014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10005 (target_can_use_agent): Add argument.
10006 * target.c (update_current_target): Update.
10007 * remote.c (remote_can_use_agent): Add 'self' argument.
10008 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10009
2c152180
TT
100102014-02-19 Tom Tromey <tromey@redhat.com>
10011
10012 * target.h (struct target_ops) <to_use_agent>: Add argument.
10013 (target_use_agent): Add argument.
10014 * target.c (update_current_target): Update.
10015 * remote.c (remote_use_agent): Add 'self' argument.
10016 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10017
a893e81f
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10021 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10022 (target_traceframe_info): Add argument.
10023 * target.c (update_current_target): Update.
10024 * remote.c (remote_traceframe_info): Add 'self' argument.
10025 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10026
c686c57f
TT
100272014-02-19 Tom Tromey <tromey@redhat.com>
10028
10029 * target.h (target_static_tracepoint_markers_by_strid): Add
10030 argument.
10031 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10032 'self' argument.
10033 * target.c (update_current_target): Update.
10034 * remote.c (struct target_ops)
10035 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10036 * linux-nat.c (struct target_ops)
10037 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10038
61fc905d
TT
100392014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10042 Add argument.
10043 (target_static_tracepoint_marker_at): Add argument.
10044 * target.c (update_current_target): Update.
10045 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10046 argument.
10047
c378d69d
TT
100482014-02-19 Tom Tromey <tromey@redhat.com>
10049
10050 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10051 (target_set_permissions): Add argument.
10052 * target.c (update_current_target): Update.
10053 * remote.c (remote_set_permissions): Add 'self' argument.
10054 (remote_start_remote): Update.
10055
bd7ae0f5
TT
100562014-02-19 Tom Tromey <tromey@redhat.com>
10057
10058 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10059 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10060 (target_get_tib_address): Add argument.
10061 * target.c (update_current_target): Update.
10062 * remote.c (remote_get_tib_address): Add 'self' argument.
10063
d9e68a2c
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10067 (target_set_trace_notes): Add argument.
10068 * target.c (update_current_target): Update.
10069 * remote.c (remote_set_trace_notes): Add 'self' argument.
10070
4da384be
TT
100712014-02-19 Tom Tromey <tromey@redhat.com>
10072
10073 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10074 argument.
10075 (target_set_trace_buffer_size): Add argument.
10076 * target.c (update_current_target): Update.
10077 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10078
736d5b1f
TT
100792014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10082 argument.
10083 (target_set_circular_trace_buffer): Add argument.
10084 * target.c (update_current_target): Update.
10085 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10086 argument.
10087
37b25738
TT
100882014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10091 argument.
10092 (target_set_disconnected_tracing): Add argument.
10093 * target.c (update_current_target): Update.
10094 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10095
0e67620a
TT
100962014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target.h (struct target_ops)
10099 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10100 (target_get_min_fast_tracepoint_insn_len): Add argument.
10101 * target.c (update_current_target): Update.
10102 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10103 argument.
10104
88ee6f45
TT
101052014-02-19 Tom Tromey <tromey@redhat.com>
10106
10107 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10108 argument.
10109 (target_get_raw_trace_data): Add argument.
10110 * target.c (update_current_target): Update.
10111 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10112
181e3713
TT
101132014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10116 Add argument.
10117 (target_upload_trace_state_variables): Add argument.
10118 * target.c (update_current_target): Update.
10119 * remote.c (remote_upload_trace_state_variables): Add 'self'
10120 argument.
10121 (remote_start_remote): Update.
10122
ab6617cc
TT
101232014-02-19 Tom Tromey <tromey@redhat.com>
10124
10125 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10126 argument.
10127 (target_upload_tracepoints): Add argument.
10128 * target.c (update_current_target): Update.
10129 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10130 (remote_start_remote): Update.
10131
dc3decaf
TT
101322014-02-19 Tom Tromey <tromey@redhat.com>
10133
10134 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10135 (target_save_trace_data): Add argument.
10136 * target.c (update_current_target): Update.
10137 * remote.c (remote_save_trace_data): Add 'self' argument.
10138
4011015b
TT
101392014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10142 argument.
10143 * target.h (struct target_ops)
10144 <to_get_trace_state_variable_value>: Add argument.
10145 (target_get_trace_state_variable_value): Add argument.
10146 * target.c (update_current_target): Update.
10147 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10148 argument.
10149 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10150
bd4c6793
TT
101512014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10154 * target.h (struct target_ops) <to_trace_find>: Add argument.
10155 (target_trace_find): Add argument.
10156 * target.c (update_current_target): Update.
10157 * remote.c (remote_trace_find): Add 'self' argument.
10158 * ctf.c (ctf_trace_find): Add 'self' argument.
10159
74499f1b
TT
101602014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10163 (target_trace_stop): Add argument.
10164 * target.c (update_current_target): Update.
10165 * remote.c (remote_trace_stop): Add 'self' argument.
10166
db90e85c
TT
101672014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10170 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10171 argument.
10172 (target_get_tracepoint_status): Add argument.
10173 * target.c (update_current_target): Update.
10174 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10175
8bd200f1
TT
101762014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10179 * target.h (struct target_ops) <to_get_trace_status>: Add
10180 argument.
10181 (target_get_trace_status): Add argument.
10182 * target.c (update_current_target): Update.
10183 * remote.c (remote_get_trace_status): Add 'self' argument.
10184 (remote_start_remote, remote_can_download_tracepoint): Update.
10185 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10186
e2d1aae3
TT
101872014-02-19 Tom Tromey <tromey@redhat.com>
10188
10189 * target.h (struct target_ops) <to_trace_start>: Add argument.
10190 (target_trace_start): Add argument.
10191 * target.c (update_current_target): Update.
10192 * remote.c (remote_trace_start): Add 'self' argument.
10193
583f9a86
TT
101942014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10197 Add argument.
10198 (target_trace_set_readonly_regions): Add argument.
10199 * target.c (update_current_target): Update.
10200 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10201 argument.
10202
780b049c
TT
102032014-02-19 Tom Tromey <tromey@redhat.com>
10204
10205 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10206 argument.
10207 (target_disable_tracepoint): Add argument.
10208 * target.c (update_current_target): Update.
10209 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10210
46670d57
TT
102112014-02-19 Tom Tromey <tromey@redhat.com>
10212
10213 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10214 argument.
10215 (target_enable_tracepoint): Add argument.
10216 * target.c (update_current_target): Update.
10217 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10218
559d2b81
TT
102192014-02-19 Tom Tromey <tromey@redhat.com>
10220
10221 * target.h (struct target_ops) <to_download_trace_state_variable>:
10222 Add argument.
10223 (target_download_trace_state_variable): Add argument.
10224 * target.c (update_current_target): Update.
10225 * remote.c (remote_download_trace_state_variable): Add 'self'
10226 argument.
10227
a52a8357
TT
102282014-02-19 Tom Tromey <tromey@redhat.com>
10229
10230 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10231 argument.
10232 (target_can_download_tracepoint): Add argument.
10233 * target.c (update_current_target): Update.
10234 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10235
548f7808
TT
102362014-02-19 Tom Tromey <tromey@redhat.com>
10237
10238 * target.h (struct target_ops) <to_download_tracepoint>: Add
10239 argument.
10240 (target_download_tracepoint): Add argument.
10241 * target.c (update_current_target): Update.
10242 * remote.c (remote_download_tracepoint): Add 'self' argument.
10243
ecae04e1
TT
102442014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target.h (struct target_ops) <to_trace_init>: Add argument.
10247 (target_trace_init): Add argument.
10248 * target.c (update_current_target): Update.
10249 * remote.c (remote_trace_init): Add 'self' argument.
10250
fab5aa7c
TT
102512014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10254 * target.c (target_fileio_readlink): Add argument.
10255 * remote.c (remote_hostio_readlink): Add 'self' argument.
10256 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10257
dbbca37d
TT
102582014-02-19 Tom Tromey <tromey@redhat.com>
10259
10260 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10261 * target.c (target_fileio_unlink): Add argument.
10262 * remote.c (remote_hostio_unlink): Add 'self' argument.
10263 (remote_file_delete): Update.
10264 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10265
df39ea25
TT
102662014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10269 * target.c (target_fileio_close): Add argument.
10270 * remote.c (remote_hostio_close): Add 'self' argument.
10271 (remote_hostio_close_cleanup): Update.
10272 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10273 Update.
10274 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10275
a3be983c
TT
102762014-02-19 Tom Tromey <tromey@redhat.com>
10277
10278 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10279 * target.c (target_fileio_pread): Add argument.
10280 * remote.c (remote_hostio_pread): Add 'self' argument.
10281 (remote_bfd_iovec_pread, remote_file_get): Update.
10282 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10283
0d866f62
TT
102842014-02-19 Tom Tromey <tromey@redhat.com>
10285
10286 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10287 * target.c (target_fileio_pwrite): Add argument.
10288 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10289 (remote_file_put): Update.
10290 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10291
cd897586
TT
102922014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10295 * target.c (target_fileio_open): Add argument.
10296 * remote.c (remote_hostio_open): Add 'self' argument.
10297 (remote_bfd_iovec_open): Add 'self' argument.
10298 (remote_file_put): Add 'self' argument.
10299 (remote_file_get): Add 'self' argument.
10300 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10301
78eff0ec
TT
103022014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10305 Add argument.
10306 (target_can_run_breakpoint_commands): Add argument.
10307 * target.c (update_current_target): Update.
10308 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10309 argument.
10310 (remote_insert_breakpoint): Add 'self' argument.
10311 (remote_insert_hw_breakpoint): Add 'self' argument.
10312 (remote_can_run_breakpoint_commands): Add 'self' argument.
10313
efcc2da7
TT
103142014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target.h (struct target_ops)
10317 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10318 (target_supports_evaluation_of_breakpoint_conditions): Add
10319 argument.
10320 * target.c (update_current_target): Update.
10321 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10322 argument.
10323 (remote_insert_breakpoint): Add 'self' argument.
10324 (remote_insert_hw_breakpoint): Add 'self' argument.
10325 (remote_supports_cond_breakpoints): Add 'self' argument.
10326
6de37a3a
TT
103272014-02-19 Tom Tromey <tromey@redhat.com>
10328
10329 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10330 argument.
10331 (target_supports_string_tracing): Add argument.
10332 * target.c (update_current_target): Update.
10333 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10334
2bfc0540
TT
103352014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target.h (struct target_ops)
10338 <to_supports_disable_randomization>: Add argument.
10339 * target.c (find_default_supports_disable_randomization): Add
10340 argument.
10341 (target_supports_disable_randomization): Add argument.
10342 (find_default_supports_disable_randomization): Add 'self'
10343 argument.
10344 * remote.c (extended_remote_supports_disable_randomization): Add
10345 'self' argument.
10346 (remote_supports_disable_randomization): Add 'self' argument.
10347 (extended_remote_create_inferior): Update.
10348 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10349 'self' argument.
10350
7d178d6a
TT
103512014-02-19 Tom Tromey <tromey@redhat.com>
10352
10353 * target.h (struct target_ops)
10354 <to_supports_enable_disable_tracepoint>: Add argument.
10355 (target_supports_enable_disable_tracepoint): Add argument.
10356 * target.c (update_current_target): Update.
10357 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10358 argument.
10359
86ce2668
TT
103602014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * target.h (struct target_ops) <to_supports_multi_process>: Add
10363 argument.
10364 (target_supports_multi_process): Add argument.
10365 * target.c (update_current_target): Update.
10366 * remote.c (remote_supports_multi_process): Add 'self' argument.
10367 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10368 argument.
10369 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10370 argument.
10371
4c612759
TT
103722014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target.h (struct target_ops) <to_execution_direction>: Add
10375 argument.
10376 (target_execution_direction): Add argument.
10377 * target.c (default_execution_direction): Add 'self' argument.
10378 * record-full.c (record_full_execution_direction): Add 'self'
10379 argument.
10380
19db3e69
TT
103812014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10384 argument.
10385 (target_can_execute_reverse): Add argument.
10386 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10387 * record-full.c (record_full_can_execute_reverse): Add 'self'
10388 argument.
10389 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10390 argument.
10391
1e6b91a4
TT
103922014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10395 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10396 argument.
10397 (target_get_ada_task_ptid): Add argument.
10398 * target.c (update_current_target): Update.
10399 (default_get_ada_task_ptid): Add 'self' argument.
10400 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10401 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10402 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10403 argument.
10404 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10405 argument.
10406 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10407 argument.
10408 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10409 argument.
10410 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10411 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10412 argument.
10413
3c80fb48
TT
104142014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10417 (target_goto_bookmark): Add argument.
10418 * target.c (dummy_goto_bookmark): Add 'self' argument.
10419 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10420
dd0e2830
TT
104212014-02-19 Tom Tromey <tromey@redhat.com>
10422
10423 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10424 (target_get_bookmark): Add argument.
10425 * target.c (dummy_get_bookmark): Add 'self' argument.
10426 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10427
fc6691b2
TT
104282014-02-19 Tom Tromey <tromey@redhat.com>
10429
10430 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10431 argument.
10432 (target_make_corefile_notes): Add argument.
10433 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10434 * procfs.c (procfs_make_note_section): Add 'self' argument.
10435 (procfs_make_note_section): Add 'self' argument.
10436 (procfs_make_note_section): Add 'self' argument.
10437 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10438 argument.
10439 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10440 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10441 * exec.c (exec_make_note_section): Add 'self' argument.
10442 (exec_make_note_section): Add 'self' argument.
10443
2e73927c
TT
104442014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target.h (struct target_ops) <to_find_memory_regions>: Add
10447 argument.
10448 (target_find_memory_regions): Add argument.
10449 * target.c (dummy_find_memory_regions): Add 'self' argument.
10450 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10451 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10452 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10453 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10454 * exec. (exec_do_find_memory_regions): New global.
10455 (exec_set_find_memory_regions): Rewrite.
10456 (exec_find_memory_regions): New function.
10457 (init_exec_ops): Use exec_find_memory_regions.
10458
2a9a2795
TT
104592014-02-19 Tom Tromey <tromey@redhat.com>
10460
10461 * target.h (struct target_ops) <to_supports_non_stop>: Add
10462 argument.
10463 * target.c (find_default_supports_non_stop): Add argument.
10464 (target_supports_non_stop): Add argument.
10465 (find_default_supports_non_stop): Add 'self' argument.
10466 * remote.c (remote_supports_non_stop): Add 'self' argument.
10467 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10468
4ab76ea3
TT
104692014-02-19 Tom Tromey <tromey@redhat.com>
10470
10471 * target.h (struct target_ops) <to_log_command>: Add argument.
10472 (target_log_command): Add argument.
10473 * serial.h (serial_log_command): Add 'self' argument.
10474 * serial.c (serial_log_command): Add 'self' argument.
10475
8dd27370
TT
104762014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10479 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10480 argument.
10481 (target_pid_to_exec_file): Add argument.
10482 * target.c (debug_to_pid_to_exec_file): Add argument.
10483 (update_current_target): Update.
10484 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10485 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10486 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10487 (linux_handle_extended_wait): Update.
10488 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10489 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10490 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10491 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10492
1aac633b
TT
104932014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target.h (struct target_ops) <to_rcmd>: Add argument.
10496 (target_rcmd): Add argument.
10497 * target.c (debug_to_rcmd): Add argument.
10498 (update_current_target, do_monitor_command): Update.
10499 * remote.c (remote_rcmd): Add 'self' argument.
10500 * monitor.c (monitor_rcmd): Add 'self' argument.
10501
1eab8a48
TT
105022014-02-19 Tom Tromey <tromey@redhat.com>
10503
10504 * windows-nat.c (windows_stop): Add 'self' argument.
10505 * target.h (struct target_ops) <to_stop>: Add argument.
10506 * target.c (target_stop): Add argument.
10507 (debug_to_stop): Add argument.
10508 (update_current_target): Update.
10509 * remote.c (remote_stop): Add 'self' argument.
10510 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10511 (gdbsim_cntrl_c): Update.
10512 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10513 * procfs.c (procfs_stop): Add 'self' argument.
10514 * nto-procfs.c (procfs_stop): Add 'self' argument.
10515 * monitor.c (monitor_stop): Add 'self' argument.
10516 (monitor_open): Update.
10517 * linux-nat.c (linux_nat_stop): Add argument.
10518 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10519 * gnu-nat.c (gnu_stop): Add 'self' argument.
10520 * darwin-nat.c (darwin_stop): Add 'self' argument.
10521
503a628d
TT
105222014-02-19 Tom Tromey <tromey@redhat.com>
10523
10524 * target.h (struct target_ops) <to_thread_name>: Add argument.
10525 * target.c (target_thread_name): Add argument.
10526 (update_current_target): Update.
10527 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10528
c15906d8
TT
105292014-02-19 Tom Tromey <tromey@redhat.com>
10530
10531 * target.h (struct target_ops) <to_extra_thread_info>: Add
10532 argument.
10533 (target_extra_thread_info): Add argument.
10534 * target.c (update_current_target): Update.
10535 * remote.c (remote_threads_extra_info): Add 'self' argument.
10536 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10537 argument.
10538 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10539 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10540 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10541 argument.
10542 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10543 argument.
10544 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10545 argument.
10546 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10547 argument.
10548
daf5e9b6
TT
105492014-02-19 Tom Tromey <tromey@redhat.com>
10550
10551 * target.h (struct target_ops) <to_program_signals>: Add argument.
10552 * target.c (target_program_signals): Add argument.
10553 * remote.c (remote_program_signals): Add 'self' argument.
10554
94bedb42
TT
105552014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10558 * target.c (target_pass_signals): Add argument.
10559 * remote.c (remote_pass_signals): Add 'self' argument.
10560 (remote_start_remote): Update.
10561 * procfs.c (procfs_pass_signals): Add 'self' argument.
10562 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10563 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10564 (linux_nat_create_inferior, linux_nat_attach): Update.
10565
da82bd6b
TT
105662014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * windows-nat.c (windows_can_run): Add 'self' argument.
10569 * target.h (struct target_ops) <to_can_run>: Add argument.
10570 (target_can_run): Add argument.
10571 * target.c (debug_to_can_run): Add argument.
10572 (update_current_target): Update.
10573 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10574 * inf-child.c (inf_child_can_run): Add 'self' argument.
10575 * go32-nat.c (go32_can_run): Add 'self' argument.
10576
d796e1d6
TT
105772014-02-19 Tom Tromey <tromey@redhat.com>
10578
10579 * target.h (struct target_ops) <to_has_exited>: Add argument.
10580 (target_has_exited): Add argument.
10581 * target.c (debug_to_has_exited): Add argument.
10582 (update_current_target): Update.
10583
ff214e67
TT
105842014-02-19 Tom Tromey <tromey@redhat.com>
10585
10586 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10587 argument.
10588 (target_set_syscall_catchpoint): Add argument.
10589 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10590 argument.
10591 * target.c (update_current_target): Update.
10592
758e29d2
TT
105932014-02-19 Tom Tromey <tromey@redhat.com>
10594
10595 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10596 argument.
10597 (target_remove_exec_catchpoint): Add argument.
10598 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10599 (update_current_target): Update.
10600 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10601 argument.
10602
ba025e51
TT
106032014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10606 argument.
10607 (target_insert_exec_catchpoint): Add argument.
10608 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10609 (update_current_target): Update.
10610 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10611 argument.
10612
e98cf0cd
TT
106132014-02-19 Tom Tromey <tromey@redhat.com>
10614
10615 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10616 argument.
10617 (target_remove_vfork_catchpoint): Add argument.
10618 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10619 (update_current_target): Update.
10620 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10621 argument.
10622
3ecc7da0
TT
106232014-02-19 Tom Tromey <tromey@redhat.com>
10624
10625 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10626 argument.
10627 (target_insert_vfork_catchpoint): Add argument.
10628 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10629 (update_current_target): Update.
10630 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10631 argument.
10632
973fc227
TT
106332014-02-19 Tom Tromey <tromey@redhat.com>
10634
10635 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10636 argument.
10637 (target_remove_fork_catchpoint): Add argument.
10638 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10639 (update_current_target): Update.
10640 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10641 argument.
10642
a863b201
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10646 argument.
10647 (target_insert_fork_catchpoint): Add argument.
10648 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10649 (update_current_target): Update.
10650 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10651 argument.
10652
2e97a79e
TT
106532014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10656 argument.
10657 (target_post_startup_inferior): Add argument.
10658 * target.c (debug_to_post_startup_inferior): Add argument.
10659 (update_current_target): Update.
10660 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10661 argument.
10662 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10663 argument.
10664 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10665 argument.
10666 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10667 argument.
10668 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10669 'self' argument.
10670 (super_post_startup_inferior): Likewise.
10671 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10672 'self' argument.
10673 (super_post_startup_inferior): Likewise.
10674 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10675 Add 'self' argument.
10676 (super_post_startup_inferior): Likewise.
10677
71a9f134
TT
106782014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target.h (struct target_ops) <to_load>: Add argument.
10681 * target.c (target_load): Add argument.
10682 (debug_to_load): Add argument.
10683 (update_current_target): Update.
10684 * remote.c (remote_load): Add 'self' argument.
10685 * remote-sim.c (gdbsim_load): Add 'self' argument.
10686 * remote-mips.c (mips_load): Add 'self' argument.
10687 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10688 * monitor.c (monitor_load): Add 'self' argument.
10689 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10690
0a4f40a2
TT
106912014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10694 (target_terminal_info): Add argument.
10695 * target.c (debug_to_terminal_info): Add argument.
10696 (default_terminal_info): Likewise.
10697 * inflow.c (child_terminal_info): Add 'self' argument.
10698 * inferior.h (child_terminal_info): Add 'self' argument.
10699 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10700
ae3bd431
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10704 argument.
10705 (target_terminal_save_ours): Add argument.
10706 * target.c (debug_to_terminal_save_ours): Add argument.
10707 (update_current_target): Update.
10708 * inflow.c (terminal_save_ours): Add 'self' argument.
10709 * inferior.h (terminal_save_ours): Add 'self' argument.
10710
e3594fd1
TT
107112014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10714 (target_terminal_ours): Add argument.
10715 * target.c (debug_to_terminal_ours): Add argument.
10716 (update_current_target): Update.
10717 * remote.c (remote_terminal_ours): Add 'self' argument.
10718 (remote_close): Update.
10719 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10720 * inflow.c (terminal_ours): Add 'self' argument.
10721 * inferior.h (terminal_ours): Add 'self' argument.
10722 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10723
2e1e1a19
TT
107242014-02-19 Pedro Alves <palves@redhat.com>
10725 Tom Tromey <tromey@redhat.com>
10726
10727 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10728 argument.
10729 (target_terminal_ours_for_output): Add argument.
10730 * target.c (debug_to_terminal_ours_for_output): Add argument.
10731 (update_current_target): Update.
10732 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10733 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10734 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10735
d2f640d4
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target.h (struct target_ops) <to_terminal_inferior>: Add
10739 argument.
10740 * target.c (target_terminal_inferior): Add argument.
10741 (update_current_target): Update.
10742 * remote.c (remote_terminal_inferior): Add 'self' argument.
10743 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10744 * inflow.c (terminal_inferior): Add 'self' argument.
10745 * inferior.h (terminal_inferior): Add 'self' argument.
10746 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10747 (go32_terminal_inferior): Add 'self' argument.
10748
c42bf286
TT
107492014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10752 (target_terminal_init): Add argument.
10753 * target.c (debug_to_terminal_init): Add argument.
10754 (update_current_target): Update.
10755 * inflow.c (terminal_init_inferior): Add 'self' argument.
10756 * inferior.h (terminal_init_inferior): Add 'self' argument.
10757 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10758 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10759
c3a5ff89
TT
107602014-02-19 Tom Tromey <tromey@redhat.com>
10761
10762 * target.h (struct target_ops)
10763 <to_can_accel_watchpoint_condition>: Add argument.
10764 (target_can_accel_watchpoint_condition): Add argument.
10765 * target.c (debug_to_can_accel_watchpoint_condition): Add
10766 argument.
10767 (update_current_target): Update.
10768 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10769 'self' argument.
10770
31568a15
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10774 Add argument.
10775 (target_region_ok_for_hw_watchpoint): Add argument.
10776 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10777 (default_region_ok_for_hw_watchpoint): Add argument.
10778 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10779 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10780 argument.
10781 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10782 argument.
10783 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10784 argument.
10785 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10786 'self' argument.
10787 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10788 'self' argument.
10789 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10790 'self' argument.
10791 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10792 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10793 'self' argument.
10794 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10795 Add 'self' argument.
10796
7bb99c53
TT
107972014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10800 argument.
10801 (target_insert_watchpoint): Add argument.
10802 * target.c (debug_to_insert_watchpoint): Add argument.
10803 (update_current_target): Update.
10804 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10805 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10806 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10807 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10808 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10809 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10810 argument.
10811 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10812 (procfs_insert_hw_watchpoint): Add 'self' argument.
10813 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10814 argument.
10815 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10816 argument.
10817 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10818 argument.
10819 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10820 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10821 argument.
10822 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10823 'self' argument.
10824
11b5219a
TT
108252014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10828 argument.
10829 (target_remove_watchpoint): Add argument.
10830 * target.c (debug_to_remove_watchpoint): Add argument.
10831 (update_current_target): Update.
10832 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10833 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10834 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10835 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10836 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10837 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10838 argument.
10839 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10840 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10841 argument.
10842 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10843 argument.
10844 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10845 argument.
10846 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10847 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10848 argument.
10849 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10850 'self' argument.
10851
a64dc96c
TT
108522014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10855 argument.
10856 (target_remove_hw_breakpoint): Add argument.
10857 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10858 (update_current_target): Update.
10859 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10860 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10861 argument.
10862 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10863 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10864 argument.
10865 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10866 'self' argument.
10867
23a26771
TT
108682014-02-19 Tom Tromey <tromey@redhat.com>
10869
10870 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10871 argument.
10872 (target_insert_hw_breakpoint): Add argument.
10873 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10874 (update_current_target): Update.
10875 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10876 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10877 argument.
10878 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10879 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10880 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10881 argument.
10882 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10883 'self' argument.
10884
5461485a
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10888 argument.
10889 (target_can_use_hardware_watchpoint): Add argument.
10890 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10891 (update_current_target): Update.
10892 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10893 argument.
10894 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10895 argument.
10896 * remote.c (remote_check_watch_resources): Add 'self' argument.
10897 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10898 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10899 argument.
10900 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10901 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10902 argument.
10903 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10904 argument.
10905 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10906 argument.
10907 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10908 argument.
10909 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10910 argument.
10911 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10912 argument.
10913 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10914 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10915 argument.
10916 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10917 'self' argument.
10918
f045800c
TT
109192014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * target.h (struct target_ops) <to_post_attach>: Add argument.
10922 (target_post_attach): Add argument.
10923 * target.c (debug_to_post_attach): Add argument.
10924 (update_current_target): Update.
10925 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10926 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10927 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10928 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10929 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10930
de90e03d
TT
109312014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * windows-nat.c (windows_close): Add 'self' argument.
10934 * tracepoint.c (tfile_close): Add 'self' argument.
10935 * target.h (struct target_ops) <to_close>: Add argument.
10936 * target.c (target_close): Add argument.
10937 (update_current_target): Update.
10938 * remote.c (remote_close): Add 'self' argument.
10939 * remote-sim.c (gdbsim_close): Add 'self' argument.
10940 * remote-mips.c (mips_close): Add 'self' argument.
10941 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10942 * record-full.c (record_full_close): Add 'self' argument.
10943 * record-btrace.c (record_btrace_close): Add 'self' argument.
10944 * monitor.h (monitor_close): Add 'self' argument.
10945 * monitor.c (monitor_close): Add 'self' argument.
10946 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10947 * linux-nat.c (linux_nat_close): Add argument.
10948 * go32-nat.c (go32_close): Add 'self' argument.
10949 * exec.c (exec_close_1): Add 'self' argument.
10950 * ctf.c (ctf_close): Add 'self' argument.
10951 * corelow.c (core_close): Add 'self' argument.
10952 (core_close_cleanup): Update.
10953 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10954 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10955
9dd130a0
TT
109562014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * remote.c (remote_load): New function.
10959 (init_remote_ops): Use it.
10960
46917d26
TT
109612014-02-19 Tom Tromey <tromey@redhat.com>
10962
10963 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10964 argument.
10965 * common/linux-btrace.h (linux_supports_btrace): Update.
10966 * remote.c (remote_supports_btrace): Add "self" argument.
10967 * target-delegates.c: Rebuild.
10968 * target.c (target_supports_btrace): Remove.
10969 * target.h (struct target_ops) <to_supports_btrace>: Add
10970 target_ops argument.
10971 (target_supports_btrace): New define.
10972
6b84065d
TT
109732014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * record-full.c (record_full_beneath_to_resume_ops)
10976 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10977 (record_full_beneath_to_wait)
10978 (record_full_beneath_to_store_registers_ops)
10979 (record_full_beneath_to_store_registers)
10980 (record_full_beneath_to_xfer_partial_ops)
10981 (record_full_beneath_to_xfer_partial)
10982 (record_full_beneath_to_insert_breakpoint_ops)
10983 (record_full_beneath_to_insert_breakpoint)
10984 (record_full_beneath_to_remove_breakpoint_ops)
10985 (record_full_beneath_to_remove_breakpoint)
10986 (record_full_beneath_to_stopped_by_watchpoint)
10987 (record_full_beneath_to_stopped_data_address)
10988 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10989 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10990 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10991 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10992 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10993 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10994 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10995 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10996 (record_full_resume, record_full_wait_1)
10997 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10998 (record_full_store_registers, record_full_xfer_partial)
10999 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11000 (record_full_async, record_full_core_xfer_partial): Use target
11001 delegation.
11002 * target-delegates.c: Rebuild.
11003 * target.c (current_xfer_partial): Remove.
11004 (update_current_target): Do not INHERIT or de_fault
11005 to_insert_breakpoint, to_remove_breakpoint,
11006 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11007 to_is_async_p, to_async. Do not set to_xfer_partial field.
11008 (default_xfer_partial): Simplify.
11009 (current_xfer_partial): Remove.
11010 (target_wait, target_resume): Simplify.
11011 (find_default_can_async_p, find_default_is_async_p): Update.
11012 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11013 to_xfer_partial, to_stopped_by_watchpoint,
11014 to_stopped_data_address.
11015 (target_store_registers): Simplify.
11016 (forward_target_remove_breakpoint)
11017 (forward_target_insert_breakpoint): Remove.
11018 (target_remove_breakpoint, target_insert_breakpoint)
11019 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11020 * target.h (struct target_ops) <to_resume, to_wait,
11021 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11022 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11023 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11024 markup.
11025 (forward_target_remove_breakpoint)
11026 (forward_target_insert_breakpoint): Remove.
11027 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11028 directly.
11029 (record_btrace_insert_breakpoint): Delegate directly.
11030
1101cb7b
TT
110312014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 PR build/7701:
11034 * target-delegates.c: New file.
11035 * target.c: Include target-delegates.c.
11036 (init_dummy_target): Call install_dummy_methods.
11037 (complete_target_initialization): Call install_delegators.
11038 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11039 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11040 * make-target-delegates: New file.
11041
8b06beed
TT
110422014-02-19 Tom Tromey <tromey@redhat.com>
11043
11044 * record.c (find_record_target): Use find_target_at.
11045 * target.c (find_target_at): New function.
11046 * target.h (find_target_at): Declare.
11047
6a109b6b
TT
110482014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11051 Add 'ops' argument.
11052 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11053 'ops' argument.
11054 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11055 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11056 'ops' argument.
11057 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11058 argument.
11059 * linux-nat.c (save_sigtrap): Update.
11060 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11061 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11062 (linux_nat_close): Update.
11063 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11064 argument.
11065 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11066 argument.
11067 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11068 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11069 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11070 (tmp_to_async): Add 'ops' argument.
11071 (record_full_stopped_by_watchpoint, record_full_async)
11072 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11073 argument.
11074 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11075 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11076 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11077 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11078 (remote_is_async_p, remote_async): Add 'ops' argument.
11079 (remote_stopped_data_address): Update.
11080 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11081 * target.c (update_current_target)
11082 (find_default_can_async_p, find_default_is_async_p): Update.
11083 (init_dummy_target): Update.
11084 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11085 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11086 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11087 (target_can_async_p, target_is_async_p, target_async)
11088 (target_stopped_by_watchpoint): Update.
11089
e095146b
YQ
110902014-02-19 Yao Qi <yao@codesourcery.com>
11091
11092 PR gdb/16220
11093 * gdbarch.sh: Remove startup_gdbarch.
11094 * gdbarch.c: Regenerated.
11095 * gdbarch.h: Likewise.
11096
bc3c6b36
KB
110972014-02-17 Kevin Buettner <kevinb@redhat.com>
11098
11099 * rl78-tdep.c (rl78_g10_register_name): New function.
11100 (rl78_return_value): Add g10 support.
11101 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11102 g10.
11103
98dc0167 111042014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11105
11106 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11107 (SUBDIR_GUILE_SRCS): Ditto.
11108 (scm-gsmob.o): Ditto.
11109
842c05cd
YQ
111102014-02-17 Yao Qi <yao@codesourcery.com>
11111
11112 * gnu-nat.c (ILL_RPC): Declare defined function.
11113
25c0bd04
YQ
111142014-02-17 Yao Qi <yao@codesourcery.com>
11115
11116 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11117 mach_msg_type_number_t.
11118 (gnu_write_inferior): Likewise.
11119
a9a758e3
YQ
111202014-02-17 Yao Qi <yao@codesourcery.com>
11121
11122 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11123 in format string.
11124 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11125 (inf_validate_procs, inf_signal): Likewise.
11126 (S_exception_raise_request): Likewise.
11127 (do_mach_notify_dead_name): Likewise.
11128 (steal_exc_port): Likewise.
11129 (gnu_read_inferior): Change 'copy_count''s type to
11130 mach_msg_type_number_t.
11131 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11132 format string.
11133
bae8023e
TS
111342014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11135
c82f56d9
TS
11136 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11137 flag. Adjust all users; in particular...
11138 (gnu_wait): ..., don't decrement its value in here...
11139 (gnu_create_inferior): ..., and instead set the flag in here,
11140 around the startup_inferior call, and call that one with
11141 START_INFERIOR_TRAPS_EXPECTED.
11142
3398af6a
TS
11143 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11144 (ILL_RPC): ... new macro.
11145 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11146 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11147 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11148 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11149 functions with ILL_RPC macro.
11150 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11151 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11152 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11153 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11154 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11155 (S_proc_getlogin_reply, S_proc_getsid_reply)
11156 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11157 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11158 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11159 (S_proc_getnports_reply, S_proc_is_important_reply)
11160 (S_proc_get_code_reply): New stub functions, generated with
11161 ILL_RPC macro.
11162
d47642c9
TS
11163 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11164 collected the type check structures.
11165
bae8023e
TS
11166 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11167
8a55ffb0
DE
111682014-02-14 Doug Evans <dje@google.com>
11169
11170 * target.c (target_write_partial): Fix result type.
11171
c2853f3d
JM
111722014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11173
11174 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11175 the proper offsets to access fpregset_t.
11176
ac61d2db
SA
111772014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11178
11179 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11180 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11181 * h8300-tdep.c (setmachinelist): Remove global.
11182 * hppa-tdep.c (hppa_sigtramp): Remove global.
11183 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11184 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11185 * ravenscar-thread.c (update_target_observer): Remove global.
11186 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11187
9d2d0b8b
TT
111882014-02-12 Tom Tromey <tromey@redhat.com>
11189
11190 * common/rsp-low.c: Update comments.
11191 * common/rsp-low.h: Update comments.
11192
a7191e8b
TT
111932014-02-12 Tom Tromey <tromey@redhat.com>
11194
11195 * common/rsp-low.c (convert_ascii_to_int): Remove.
11196 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11197
ff0e980e
TT
111982014-02-12 Tom Tromey <tromey@redhat.com>
11199
11200 * common/rsp-low.h (unhexify): Don't declare.
11201 * common/rsp-low.c (unhexify): Remove.
11202
e9371aff
TT
112032014-02-12 Tom Tromey <tromey@redhat.com>
11204
11205 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11206 * common/rsp-low.c (convert_int_to_ascii): Remove.
11207
971dc0b8
TT
112082014-02-12 Tom Tromey <tromey@redhat.com>
11209
11210 * common/rsp-low.h (hexify): Don't declare.
11211 * common/rsp-low.c (hexify): Remove.
11212
0a822afb
TT
112132014-02-12 Tom Tromey <tromey@redhat.com>
11214
11215 * common/rsp-low.c (hexify): Never take strlen of argument.
11216
9f1b45b0
TT
112172014-02-12 Tom Tromey <tromey@redhat.com>
11218
11219 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11220 * remote.c (extended_remote_run, remote_rcmd)
11221 (remote_download_trace_state_variable, remote_save_trace_data)
11222 (remote_set_trace_notes): Update.
11223 * tracepoint.c (encode_source_string, tfile_write_status)
11224 (tfile_write_uploaded_tsv): Update.
11225
9c3d6531
TT
112262014-02-12 Tom Tromey <tromey@redhat.com>
11227
11228 * tracepoint.c: Include rsp-low.h.
11229 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11230 * remote.c: Include rsp-low.h.
11231 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11232 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11233 (remote_unescape_input): Move to common/rsp-low.c.
11234 * common/rsp-low.h: New file.
11235 * common/rsp-low.c: New file.
11236 * Makefile.in (SFILES): Add common/rsp-low.c.
11237 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11238 (COMMON_OBS): Add rsp-low.o.
11239 (rsp-low.o): New target.
11240
01fd3ea5
TT
112412014-02-12 Tom Tromey <tromey@redhat.com>
11242
11243 * utils.h: Include print-utils.h.
11244 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11245 (int_string, core_addr_to_string, core_addr_to_string_nz)
11246 (hex_string, hex_string_custom): Don't declare.
11247 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11248 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11249 (hex_string_custom, int_string, core_addr_to_string)
11250 (core_addr_to_string_nz, host_address_to_string): Move to
11251 common/print-utils.c.
11252 * common/print-utils.h: New file.
11253 * common/print-utils.c: New file
11254 * Makefile.in (SFILES): Add common/print-utils.c.
11255 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11256 (COMMON_OBS): Add print-utils.o.
11257 (print-utils.o): New target.
11258
9fb50108
TT
112592014-02-12 Tom Tromey <tromey@redhat.com>
11260
11261 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11262
0548b5db
MK
112632014-02-12 Mark Kettenis <kettenis@gnu.org>
11264
11265 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11266
493443a4
MK
112672014-02-12 Mark Kettenis <kettenis@gnu.org>
11268
11269 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11270 if a PT_IO ptrace request returns sucessfully but indicates that 0
11271 bytes were transferred.
11272
706d0883
PA
112732014-02-12 Pedro Alves <palves@redhat.com>
11274 Kevin Buettner <kevinb@redhat.com>
11275
11276 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11277 TYPE_INSTANCE_FLAG_CODE_SPACE.
11278
5caa2f0b
PA
112792014-02-12 Pedro Alves <palves@redhat.com>
11280
11281 * h8300-tdep.c (pseudo_from_raw_register)
11282 (raw_from_pseudo_register): New functions.
11283 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11284 them.
11285
76fd5f74
PA
112862014-02-12 Pedro Alves <palves@redhat.com>
11287
11288 * h8300-tdep.c (h8300_register_sim_regno): New function.
11289 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11290 gdbarch_register_sim_regno hook.
11291
8f008406
SA
112922014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11293
11294 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11295
195abc10
SA
112962014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11297
11298 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11299
93ffa5b9
MK
113002014-02-12 Mark Kettenis <kettenis@gnu.org>
11301
11302 * obsd-tdep.h (obsd_init_abi): New prototype.
11303 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11304 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11305 (obsd_init_abi): New functions.
11306 * i386obsd-tdep.c: Include "obsd-tdep.h".
11307 (i386obsd_init_abi): Call obsd_init_abi.
11308 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11309 (amd64obsd_init_abi): Call obsd_init_abi.
11310 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11311 obsd-tdep.c to gdb_target_obs.
11312
49caec94
JM
113132014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11314
11315 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11316 double float arguments to 16-byte in the argument slots.
11317
e1402065
DE
113182014-02-11 Doug Evans <xdje42@gmail.com>
11319
11320 * configure.ac: Don't crash if pkg-config is not found and guile
11321 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11322 in guile checks.
11323 * configure: Regenerate.
11324
edcc890f
YQ
113252014-02-11 Yao Qi <yao@codesourcery.com>
11326
11327 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11328 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11329 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11330 * gnu-nat.c (gnu_xfer_memory): Likewise.
11331 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11332 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11333 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11334 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11335
9b409511
YQ
113362014-02-11 Yao Qi <yao@codesourcery.com>
11337
11338 * target.h (enum target_xfer_error): Rename to ...
11339 (enum target_xfer_status): ... it. New. All users updated.
11340 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11341 New.
11342 (TARGET_XFER_STATUS_ERROR_P): New macro.
11343 (target_xfer_error_to_string): Remove declaration.
11344 (target_xfer_status_to_string): Declare.
11345 (target_xfer_partial_ftype): Adjust it.
11346 (struct target_ops) <to_xfer_partial>: Return
11347 target_xfer_status. Add argument xfered_len. Update
11348 comments.
11349 * target.c (target_xfer_error_to_string): Rename to ...
11350 (target_xfer_status_to_string): ... it. New. All callers
11351 updated.
11352 (target_read_live_memory): Likewise. Call target_xfer_partial
11353 instead of target_read.
11354 (memory_xfer_live_readonly_partial): Return
11355 target_xfer_status. Add argument xfered_len.
11356 (raw_memory_xfer_partial): Likewise.
11357 (memory_xfer_partial_1): Likewise.
11358 (memory_xfer_partial): Likewise.
11359 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11360 properly. Update debug message.
11361 (default_xfer_partial, current_xfer_partial): Likewise.
11362 (target_write_partial): Likewise.
11363 (target_read_partial): Likewise. All callers updated.
11364 (read_whatever_is_readable): Likewise.
11365 (target_write_with_progress): Likewise.
11366 (target_read_alloc_1): Likewise.
11367
11368 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11369 * auxv.c (procfs_xfer_auxv): Likewise.
11370 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11371 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11372 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11373 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11374 * corefile.c (read_memory): Adjust.
11375 * corelow.c (core_xfer_partial): Likewise.
11376 * ctf.c (ctf_xfer_partial): Likewise.
11377 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11378 updated.
11379 (darwin_xfer_partial): Likewise.
11380 * exec.c (section_table_xfer_memory_partial): Likewise. All
11381 callers updated.
11382 (exec_xfer_partial): Likewise.
11383 * exec.h (section_table_xfer_memory_partial): Update
11384 declaration.
11385 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11386 negative.
11387 (gnu_xfer_partial): Likewise.
11388 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11389 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11390 (ia64_hpux_xfer_solib_got): Likewise.
11391 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11392 type of 'partial_len' to ULONGEST.
11393 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11394 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11395 (linux_nat_xfer_partial): Likewise.
11396 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11397 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11398 * monitor.c (monitor_xfer_memory): Likewise.
11399 (monitor_xfer_partial): Likewise.
11400 * procfs.c (procfs_xfer_partial): Likewise.
11401 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11402 * record-full.c (record_full_xfer_partial): Likewise.
11403 (record_full_core_xfer_partial): Likewise.
11404 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11405 (gdbsim_xfer_partial): Likewise.
11406 * remote.c (remote_write_bytes_aux): Likewise. All callers
11407 updated.
11408 (remote_write_bytes, remote_read_bytes): Likewise. All
11409 callers updated.
11410 (remote_flash_erase): Likewise. All callers updated.
11411 (remote_write_qxfer): Likewise. All callers updated.
11412 (remote_read_qxfer): Likewise. All callers updated.
11413 (remote_xfer_partial): Likewise.
11414 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11415 (rs6000_xfer_shared_libraries): Likewise.
11416 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11417 (sol_thread_xfer_partial): Likewise.
11418 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11419 (sparc_xfer_partial): Likewise.
11420 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11421 updated.
11422 (spu_xfer_partial): Likewise.
11423 * spu-multiarch.c (spu_xfer_partial): Likewise.
11424 * tracepoint.c (tfile_xfer_partial): Likewise.
11425 * windows-nat.c (windows_xfer_memory): Likewise.
11426 (windows_xfer_shared_libraries): Likewise.
11427 (windows_xfer_partial): Likewise.
11428 * valprint.c: Replace 'target_xfer_error' with
11429 'target_xfer_status' in comments.
11430
a8e63083
JB
114312014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11432
11433 Checked in by Joel Brobecker <brobecker@adacore.com>.
11434 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11435
e86b67d3
JB
114362014-02-11 Joel Brobecker <brobecker@adacore.com>
11437
11438 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11439 function parameters.
11440
4b7d1f7f
WN
114412014-02-10 Will Newton <will.newton@linaro.org>
11442
11443 * elfread.c (elf_rel_plt_read): Look for a .got section if
11444 looking up .got.plt fails.
11445 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11446 on address passed to elf_gnu_ifunc_record_cache.
11447 (elf_gnu_ifunc_resolve_addr): Likewise.
11448 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11449
961842b2
JM
114502014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11451
11452 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11453 (X_RETTURN): New macro.
11454 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11455
11456 * sparc64-tdep.c (sparc64_init_abi): Hook
11457 sparc_in_function_epilogue_p.
11458
3f03e7b1
GB
114592014-02-10 Gary Benson <gbenson@redhat.com>
11460
11461 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11462 Rename name_matcher to symbol_matcher.
11463
96f861ef
GB
114642014-02-10 Gary Benson <gbenson@redhat.com>
11465
11466 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11467 Use expand_symtabs_file_matcher_ftype and
11468 expand_symtabs_symbol_matcher_ftype.
11469
ee01b665
JB
114702014-02-10 Joel Brobecker <brobecker@adacore.com>
11471
11472 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11473 (struct ada_symbol_cache): New.
11474 (ada_free_symbol_cache): Forward declare.
11475 (struct ada_pspace_data): New.
11476 (ada_pspace_data_handle): New static global.
11477 (get_ada_pspace_data, ada_pspace_data_cleanup)
11478 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11479 (cache_space, cache): Delete, now folded inside struct
11480 ada_pspace_data.
11481 (ada_get_symbol_cache): New function.
11482 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11483 implementation.
11484 (_initialize_ada_language): Remove initialization of cache_space.
11485 Move call to observer_attach_inferior_exit up, grouping it
11486 with the other observer registrations inside this function.
11487 Rename command to be more general. Add call to
11488 register_program_space_data_with_cleanup.
11489
143adbbf
JB
114902014-02-10 Joel Brobecker <brobecker@adacore.com>
11491
11492 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11493 ada_new_objfile_observer.
11494 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11495 (_initialize_tasks): Update uses of ada_new_objfile_observer
11496 and ada_tasks_normal_stop_observer.
11497
aa4fb036
JB
114982014-02-10 Joel Brobecker <brobecker@adacore.com>
11499
11500 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11501 returned by the 'Length attribute to integer.
11502
9dee8cc6
JB
115032014-02-10 Joel Brobecker <brobecker@adacore.com>
11504
11505 * ada-lang.c (_initialize_ada_language): Initialize
11506 cache_space obstack.
11507
3d9434b5
JB
115082014-02-10 Joel Brobecker <brobecker@adacore.com>
11509
11510 * ada-lang.c (HASH_SIZE): New macro.
11511 (struct cache_entry): New type.
11512 (cache_space, cache): New static globals.
11513 (ada_clear_symbol_cache, find_entry): New functions.
11514 (lookup_cached_symbol, cache_symbol): Implement.
11515 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11516 (_initialize_ada_language): Attach ada_new_objfile_observer
11517 and ada_free_objfile_observer.
11518
f0c5f9b2
JB
115192014-02-10 Joel Brobecker <brobecker@adacore.com>
11520
11521 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11522 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11523 struct block * parameter.
11524 (ada_lookup_symbol_list_worker): Constify local variable "block".
11525 Remove cast which is no longer necessary.
11526
ed3ef339
DE
115272014-02-10 Doug Evans <xdje42@gmail.com>
11528
11529 Add Guile as an extension language.
11530 * NEWS: Mention Guile scripting.
11531 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11532 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11533 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11534 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11535 (CLIBS): Add GUILE_LIBS.
11536 (install-guile): New rule.
11537 (guile.o): New rule.
11538 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11539 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11540 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11541 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11542 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11543 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11544 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11545 * configure.ac: New option --with-guile.
11546 * configure: Regenerate.
11547 * config.in: Regenerate.
11548 * auto-load.c: Remove #include "python/python.h". Add #include
11549 "gdb/section-scripts.h".
11550 (source_section_scripts): Handle Guile scripts.
11551 (_initialize_auto_load): Add name of Guile objfile script to
11552 scripts-directory help text.
11553 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11554 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11555 (struct breakpoint): New member scm_bp_object.
11556 * defs.h (enum command_control_type): New value guile_control.
11557 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11558 "extension.h".
11559 (show_user): Update comment.
11560 (_initialize_cli_cmds): Update help text for "show user". Update help
11561 text for max-user-call-depth.
11562 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11563 "extension.h".
11564 (multi_line_command_p): Add guile_control.
11565 (print_command_lines): Handle guile_control.
11566 (execute_control_command, recurse_read_control_structure): Ditto.
11567 (process_next_line): Recognize "guile" commands.
11568 * disasm.c (gdb_disassemble_info): Make non-static.
11569 * disasm.h: #include "dis-asm.h".
11570 (struct gdbarch): Add forward decl.
11571 (gdb_disassemble_info): Declare.
11572 * extension.c: #include "guile/guile.h".
11573 (extension_languages): Add guile.
11574 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11575 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11576 * gdbtypes.c (get_unsigned_type_max): New function.
11577 (get_signed_type_minmax): New function.
11578 * gdbtypes.h (get_unsigned_type_max): Declare.
11579 (get_signed_type_minmax): Declare.
11580 * guile/README: New file.
11581 * guile/guile-internal.h: New file.
11582 * guile/guile.c: New file.
11583 * guile/guile.h: New file.
11584 * guile/scm-arch.c: New file.
11585 * guile/scm-auto-load.c: New file.
11586 * guile/scm-block.c: New file.
11587 * guile/scm-breakpoint.c: New file.
11588 * guile/scm-disasm.c: New file.
11589 * guile/scm-exception.c: New file.
11590 * guile/scm-frame.c: New file.
11591 * guile/scm-gsmob.c: New file.
11592 * guile/scm-iterator.c: New file.
11593 * guile/scm-lazy-string.c: New file.
11594 * guile/scm-math.c: New file.
11595 * guile/scm-objfile.c: New file.
11596 * guile/scm-ports.c: New file.
11597 * guile/scm-pretty-print.c: New file.
11598 * guile/scm-safe-call.c: New file.
11599 * guile/scm-string.c: New file.
11600 * guile/scm-symbol.c: New file.
11601 * guile/scm-symtab.c: New file.
11602 * guile/scm-type.c: New file.
11603 * guile/scm-utils.c: New file.
11604 * guile/scm-value.c: New file.
11605 * guile/lib/gdb.scm: New file.
11606 * guile/lib/gdb/boot.scm: New file.
11607 * guile/lib/gdb/experimental.scm: New file.
11608 * guile/lib/gdb/init.scm: New file.
11609 * guile/lib/gdb/iterator.scm: New file.
11610 * guile/lib/gdb/printing.scm: New file.
11611 * guile/lib/gdb/types.scm: New file.
11612 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11613 (VPATH): Add $(GUILE_SRCDIR).
11614 (GUILE_DIR): New variable.
11615 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11616 (all): Add stamp-guile dependency.
11617 (stamp-guile): New rule.
11618 (clean-guile, install-guile, uninstall-guile): New rules.
11619 (install-only): Add install-guile dependency.
11620 (uninstall): Add uninstall-guile dependency.
11621 (clean): Add clean-guile dependency.
11622
ac020ec5
DE
116232014-02-09 Doug Evans <xdje42@gmail.com>
11624
11625 Revert this patch (which I approved, mea culpa).
11626
11627 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11628
11629 * Makefile.in (all-lib): Remove.
11630 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11631
2a081c59
JK
116322014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11633
11634 Fix Python stack corruption.
11635 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11636 gdb_py_longest.
11637
0a6bd22d
MK
116382014-02-08 Mark Kettenis <kettenis@gnu.org>
11639
11640 * Makefile.in (all-lib): Remove.
11641 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11642
1a860409
DE
116432014-02-07 Doug Evans <dje@google.com>
11644
11645 * extension-priv.h (extension_language_script_ops): Add comment.
11646 (extension_language_ops): Add comment.
caf5a491 11647 (active_ext_lang_state): Fix typo in comment.
1a860409 11648
d137e6dc
PA
116492014-02-07 Pedro Alves <palves@redhat.com>
11650
0dcb32c3 11651 PR breakpoints/16292
d137e6dc
PA
11652 * infrun.c (handle_signal_stop) <signal arrives while stepping
11653 over a breakpoint>: Switch back to the stepping thread.
11654
ce6d0892
YQ
116552014-02-07 Yao Qi <yao@codesourcery.com>
11656
11657 * target.c (target_xfer_partial): Return zero if LEN is zero.
11658
2ed4b548
YQ
116592014-02-07 Yao Qi <yao@codesourcery.com>
11660
11661 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11662 (ld_so_xfer_auxv): Likewise.
11663 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11664 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11665 * corelow.c (core_xfer_partial): Likewise.
11666 * ctf.c (ctf_xfer_partial): Likewise.
11667 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11668 (darwin_xfer_partial): Likewise.
11669 * exec.c (exec_xfer_partial): Likewise.
11670 * gnu-nat.c (gnu_xfer_partial): Likewise.
11671 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11672 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11673 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11674 * linux-nat.c (linux_xfer_siginfo): Likewise.
11675 (linux_proc_xfer_spu): Likewise.
11676 * procfs.c (procfs_xfer_partial): Likewise.
11677 * record-full.c (record_full_xfer_partial): Likewise.
11678 (record_full_core_xfer_partial): Likewise.
11679 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11680 * remote.c (remote_write_qxfer): Likewise.
11681 (remote_write_qxfer, remote_read_qxfer): Likewise.
11682 (remote_xfer_partial): Likewise.
11683 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11684 (rs6000_xfer_shared_libraries): Likewise.
11685 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11686 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11687 (spu_xfer_partial): Likewise.
11688 * target.c (memory_xfer_partial_1): Likewise.
11689 * tracepoint.c (tfile_xfer_partial): Likewise.
11690 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11691 (windows_xfer_partial): Likewise.
11692
c09f20e4
YQ
116932014-02-07 Yao Qi <yao@codesourcery.com>
11694
11695 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11696 comments.
11697 (core_xfer_shared_libraries_aix): Likewise.
11698 * gdbarch.c, gdbarch.h: Regenerated.
11699 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11700 ULONGEST. Change 'len_avail' type to ULONGEST.
11701 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11702 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11703 declaration.
11704 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11705
8635b3bf
YQ
117062014-02-07 Yao Qi <yao@codesourcery.com>
11707
11708 * corefile.c (memory_error): Get 'exception' from ERR and pass
11709 'exception' to throw_error.
11710
6dddc817
DE
117112014-02-06 Doug Evans <xdje42@gmail.com>
11712
11713 * configure.ac (libpython checking): Remove all but python.o from
11714 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11715 * configure: Regenerate.
11716
11717 * Makefile.in (SFILES): Add extension.c.
11718 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11719 (COMMON_OBS): Add extension.o.
11720 * extension.h: New file.
11721 * extension-priv.h: New file.
11722 * extension.c: New file.
11723
11724 * python/python-internal.h: #include "extension.h".
11725 (gdbpy_auto_load_enabled): Declare.
11726 (gdbpy_apply_val_pretty_printer): Declare.
11727 (gdbpy_apply_frame_filter): Declare.
11728 (gdbpy_preserve_values): Declare.
11729 (gdbpy_breakpoint_cond_says_stop): Declare.
11730 (gdbpy_breakpoint_has_cond): Declare.
11731 (void source_python_script_for_objfile): Delete.
11732 * python/python.c: #include "extension-priv.h".
11733 Delete inclusion of "observer.h".
11734 (extension_language_python): Moved here and renamed from
11735 script_language_python in py-auto-load.c.
11736 Redefined to be of type extension_language_defn.
11737 (python_extension_script_ops): New global.
11738 (python_extension_ops): New global.
11739 (struct python_env): New member previous_active.
11740 (restore_python_env): Call restore_active_ext_lang.
11741 (ensure_python_env): Call set_active_ext_lang.
11742 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11743 New arg extlang.
11744 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11745 New arg extlang.
11746 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11747 New arg extlang.
11748 (gdbpy_eval_from_control_command): Renamed from
11749 eval_python_from_control_command, made static. New arg extlang.
11750 (gdbpy_source_script) Renamed from source_python_script, made static.
11751 New arg extlang.
11752 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11753 result to int. New arg extlang.
11754 (gdbpy_source_objfile_script): Renamed from
11755 source_python_script_for_objfile, made static. New arg extlang.
11756 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11757 static. New args extlang, extlang_printers. Change result type to
11758 "void".
11759 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11760 static. New arg extlang. Rename arg printers to extlang_printers
11761 and change type to ext_lang_type_printers *.
11762 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11763 static. Replace argument arg with extlang, extlang_printers.
11764 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11765 (!HAVE_PYTHON, source_python_script): Delete.
11766 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11767 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11768 (!HAVE_PYTHON, start_type_printers): Delete.
11769 (!HAVE_PYTHON, apply_type_printers): Delete.
11770 (!HAVE_PYTHON, free_type_printers): Delete.
11771 (_initialize_python): Delete call to observer_attach_before_prompt.
11772 (finalize_python): Set/restore active extension language.
11773 (gdbpy_finish_initialization) Renamed from
11774 finish_python_initialization, made static. New arg extlang.
11775 (gdbpy_initialized): New function.
11776 * python/python.h: #include "extension.h". Delete #include
11777 "value.h", "mi/mi-cmds.h".
11778 (extension_language_python): Declare.
11779 (GDBPY_AUTO_FILE_NAME): Delete.
11780 (enum py_bt_status): Moved to extension.h and renamed to
11781 ext_lang_bt_status.
11782 (enum frame_filter_flags): Moved to extension.h.
11783 (enum py_frame_args): Moved to extension.h and renamed to
11784 ext_lang_frame_args.
11785 (finish_python_initialization): Delete.
11786 (eval_python_from_control_command): Delete.
11787 (source_python_script): Delete.
11788 (apply_val_pretty_printer): Delete.
11789 (apply_frame_filter): Delete.
11790 (preserve_python_values): Delete.
11791 (gdbpy_script_language_defn): Delete.
11792 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11793 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11794
11795 * auto-load.c: #include "extension.h".
11796 (GDB_AUTO_FILE_NAME): Delete.
11797 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11798 (script_language_gdb): Delete, moved to extension.c and renamed to
11799 extension_language_gdb.
11800 (source_gdb_script_for_objfile): Delete.
11801 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11802 (loaded_script): Change type of language member to
11803 struct extension_language_defn *.
11804 (init_loaded_scripts_info): Initialize
11805 unsupported_script_warning_printed.
11806 (maybe_add_script): Make static. Change type of language arg to
11807 struct extension_language_defn *.
11808 (clear_section_scripts): Reset unsupported_script_warning_printed.
11809 (auto_load_objfile_script_1): Rewrite to use extension language API.
11810 (auto_load_objfile_script): Make public. Remove support-compiled-in
11811 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11812 (source_section_scripts): Rewrite to use extension language API.
11813 (load_auto_scripts_for_objfile): Rewrite to use
11814 auto_load_scripts_for_objfile.
11815 (collect_matching_scripts_data): Change type of language member to
11816 struct extension_language_defn *.
11817 (auto_load_info_scripts): Change type of language arg to
11818 struct extension_language_defn *.
11819 (unsupported_script_warning_print): New function.
11820 (script_not_found_warning_print): Make static.
11821 (_initialize_auto_load): Rewrite construction of scripts-directory
11822 help.
11823 * auto-load.h (struct objfile): Add forward decl.
11824 (struct script_language): Delete.
11825 (struct auto_load_pspace_info): Add forward decl.
11826 (struct extension_language_defn): Add forward decl.
11827 (maybe_add_script): Delete.
11828 (auto_load_objfile_script): Declare.
11829 (script_not_found_warning_print): Delete.
11830 (auto_load_info_scripts): Update prototype.
11831 (auto_load_gdb_scripts_enabled): Declare.
11832 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11833 auto_load_python_scripts_enabled and made public.
11834 (script_language_python): Delete, moved to python.c.
11835 (gdbpy_script_language_defn): Delete.
11836 (info_auto_load_python_scripts): Update to use
11837 extension_language_python.
11838
11839 * breakpoint.c (condition_command): Replace call to
11840 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11841 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11842 with call to breakpoint_ext_lang_cond_says_stop.
11843 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11844 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11845 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11846 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11847 New arg slang.
11848 (local_setattro): Print name of extension language with existing
11849 stop condition.
11850
11851 * valprint.c (val_print, value_print): Update to call
11852 apply_ext_lang_val_pretty_printer.
11853 * cp-valprint.c (cp_print_value): Update call to
11854 apply_ext_lang_val_pretty_printer.
11855 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11856 (gdbpy_apply_val_pretty_printer): Renamed from
11857 apply_val_pretty_printer. New arg extlang.
11858 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11859
11860 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11861 extension language API.
11862 * cli/cli-script.c (execute_control_command): Update to call
11863 eval_ext_lang_from_control_command.
11864
11865 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11866 enum ext_lang_bt_status values. Update call to
11867 apply_ext_lang_frame_filter.
11868 (mi_cmd_stack_list_locals): Ditto.
11869 (mi_cmd_stack_list_args): Ditto.
11870 (mi_cmd_stack_list_variables): Ditto.
11871 * mi/mi-main.c: Delete #include "python/python-internal.h".
11872 Add #include "extension.h".
11873 (mi_cmd_list_features): Replace reference to python internal variable
11874 gdb_python_initialized with call to ext_lang_initialized_p.
11875
11876 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11877 Update to use enum ext_lang_frame_args. Update to call
11878 apply_ext_lang_frame_filter.
11879 * python/py-framefilter.c (extract_sym): Update to use enum
11880 ext_lang_bt_status.
11881 (extract_value, py_print_type, py_print_value): Ditto.
11882 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11883 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11884 (py_print_frame): Ditto.
11885 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11886 New arg extlang. Update to use enum ext_lang_bt_status.
11887
11888 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11889 finish_python_initialization. Replace with call to
11890 finish_ext_lang_initialization.
11891
11892 * typeprint.c (do_free_global_table): Update to call
11893 free_ext_lang_type_printers.
11894 (create_global_typedef_table): Update to call
11895 start_ext_lang_type_printers.
11896 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11897 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11898 (type_print_options): Change type of global_printers from "void *"
11899 to "struct ext_lang_type_printers *".
11900
11901 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11902 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11903 (gdbpy_preserve_values): Renamed from preserve_python_values.
11904 New arg extlang.
11905 (!HAVE_PYTHON, preserve_python_values): Delete.
11906
11907 * utils.c (quit_flag): Delete, moved to extension.c.
11908 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11909 extension.c.
11910
11911 * eval.c: Delete #include "python/python.h".
11912 * main.c: Delete #include "python/python.h".
11913
11914 * defs.h: Update comment.
11915
6af79985
JB
119162014-02-06 Joel Brobecker <brobecker@adacore.com>
11917
11918 GDB 7.7 released.
11919
12c5175d
MK
119202014-02-05 Mark Kettenis <kettenis@gnu.org>
11921
11922 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11923 defined.
11924
8dc5b319
YQ
119252014-02-05 Yao Qi <yao@codesourcery.com>
11926
11927 * remote.c (remote_pass_signals): Remove local 'buf' and use
11928 rs->buf.
11929 (remote_program_signals): Likewise.
11930
de7b2893
YQ
119312014-02-05 Yao Qi <yao@codesourcery.com>
11932
11933 * ctf.c: Include "inferior.h" and "gdbthread.h".
11934 (CTF_PID): A new macro.
11935 (ctf_open): Call inferior_appeared and add_thread_silent.
11936 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11937 (ctf_thread_alive): New function.
11938 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11939
66d032ac
YQ
119402014-02-05 Yao Qi <yao@codesourcery.com>
11941
11942 Revert this patch:
11943
11944 2013-05-24 Yao Qi <yao@codesourcery.com>
11945
11946 * tracepoint.c (TFILE_PID): Remove.
11947 (tfile_open): Don't add thread and inferior.
11948 (tfile_close): Don't set 'inferior_ptid'. Don't call
11949 exit_inferior_silent.
11950 (tfile_thread_alive): Remove.
11951 (init_tfile_ops): Don't set field 'to_thread_alive' of
11952 tfile_ops.
11953
f4ccffad
CE
119542014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11955
11956 * remote.c (remote_start_remote): Call remote_check_symbols even
11957 if only symbol-file (not file) has been given.
11958
591a12a1
UW
119592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11960
11961 * gdbarch.sh (skip_entrypoint): New callback.
11962 * gdbarch.c, gdbarch.h: Regenerate.
11963 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11964 * infrun.c (fill_in_stop_func): Likewise.
11965 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11966 (ppc_elfv2_elf_make_msymbol_special): New function.
11967 (ppc_elfv2_skip_entrypoint): Likewise.
11968 (ppc_linux_init_abi): Install them for ELFv2.
11969
cc0e89c5
UW
119702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11971
11972 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11973 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11974 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11975 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11976 structures returned in GPRs.
11977
52f548e4
UW
119782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11979
11980 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11981 offset to the stack parameter list for the ELFv2 ABI.
11982
d4094b6a
UW
119832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11984
11985 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11986 set_gdbarch_convert_from_func_ptr_addr and
11987 set_gdbarch_elf_make_msymbol_special for ELFv1.
11988 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11989 function descriptors on ELFv1.
11990 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11991 set up r12 at function entry.
11992
cd453cd0
UW
119932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11994
11995 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11996 (struct gdbarch_tdep): New member elf_abi.
11997
11998 * rs6000-tdep.c: Include "elf/ppc64.h".
11999 (rs6000_gdbarch_init): Detect ELF ABI version.
12000
0ff3e01f
UW
120012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12002
12003 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12004 within a register pair holding a DFP 128-bit value on little-endian.
12005 (ppc64_sysv_abi_return_value_base): Likewise.
12006 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12007 (dfp_pseudo_register_write): Likewise.
12008
5b757e5d
UW
120092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12010
12011 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12012 offset on little-endian when passing _Decimal32.
12013 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12014
084ee545
UW
120152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12016
12017 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12018 of the overlapped FP register within the VSX register on little-
12019 endian platforms.
12020 (efpr_pseudo_register_write): Likewise.
12021
d63167af
UW
120222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12023
12024 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12025 offset on little-endian when passing small structures.
12026
e765b44c
UW
120272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12028
12029 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12030 (struct ppc64_sysv_argpos): New data structure.
12031 (ppc64_sysv_abi_push_float): Remove.
12032 (ppc64_sysv_abi_push_val): New function.
12033 (ppc64_sysv_abi_push_integer): Likewise.
12034 (ppc64_sysv_abi_push_freg): Likewise.
12035 (ppc64_sysv_abi_push_vreg): Likewise.
12036 (ppc64_sysv_abi_push_param): Likewise.
12037 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12038 (ppc64_sysv_abi_return_value_base): New function.
12039 (ppc64_sysv_abi_return_value): Refactor to use it.
12040
36c24d95
UW
120412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12042
12043 * NEWS: Document new target powerpc64le-*-linux*.
12044
26fd9228
MK
120452014-02-04 Mark Kettenis <kettenis@gnu.org>
12046
12047 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12048 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12049 core dumps.
12050 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12051 register set used in ELF core dumps. Add floating-point register set.
12052
c5bb7362
KB
120532014-02-03 Kevin Buettner <kevinb@redhat.com>
12054
74228e77 12055 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12056 dwarf2_to_gdb[] table using symbolic constants. Adjust
12057 penultimate entry from number representing the PC register
12058 to symbolic constant representing the MDR register. Add
12059 constant for the PC register to the end of the table.
12060
af09351e
MK
120612014-02-03 Mark Kettenis <kettenis@gnu.org>
12062
12063 * bsd-kvm.c: Include <sys/param.h>
12064
8507e05d
MK
120652014-02-03 Mark Kettenis <kettenis@gnu.org>
12066
12067 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12068
ae56bfb8
JB
120692014-01-31 Joel Brobecker <brobecker@adacore.com>
12070
12071 * ada-lang.h (clear_ada_sym_cache): Delete.
12072
718ee4dc
UW
120732014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12074
12075 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12076
401e27fd
JM
120772014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12078
12079 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12080 the sigreturn register save area only if the syscall is
12081 sigreturn.
12082
a7c88acd
JB
120832014-01-29 Joel Brobecker <brobecker@adacore.com>
12084
12085 * valops.c (value_slice): Minor reformatting.
12086
fa0079ea
UW
120872014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12088
12089 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12090
c6044dd1
JB
120912014-01-28 Joel Brobecker <brobecker@adacore.com>
12092
12093 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12094 New static globals.
12095 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12096 (ada_ignore_descriptive_types_p): New static global.
12097 (find_parallel_type_by_descriptive_type): Return immediately
12098 if ada_ignore_descriptive_types_p is set.
12099 (_initialize_ada_language): Register new commands "maintenance
12100 set ada", "maintenance show ada", "maintenance set ada
12101 ignore-descriptive-types" and "maintenance show ada
12102 ignore-descriptive-types".
12103 * NEWS: Add entry for new "maint ada set/show
12104 ignore-descriptive-types" commands.
12105
568e808b
MM
121062014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12107
12108 * record-btrace.c (record_btrace_close): Call btrace_teardown
12109 for all threads.
12110
467d141b
JB
121112014-01-27 Joel Brobecker <brobecker@adacore.com>
12112
12113 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12114 "ui-out.h".
12115
fb151210
JB
121162014-01-27 Joel Brobecker <brobecker@adacore.com>
12117
12118 * ada-typeprint (type_is_full_subrange_of_target_type):
12119 New function.
12120 (print_range): Add parameter bounds_prefered_p. If not set,
12121 try printing range types using the name of their base type.
12122 (print_range_type): Add parameter bounds_prefered_p.
12123 Use it in call to print_range.
12124 (print_array_type, ada_print_type): Update calls to print_range
12125 and print_range_type.
12126
aba02109
JB
121272014-01-27 Joel Brobecker <brobecker@adacore.com>
12128
12129 * ada-typeprint.c (print_array_type, print_choices, print_range)
12130 (print_range_bound, print_dynamic_range_bound, print_range_type):
12131 Remove declaration.
12132
e62e21fd
JB
121332014-01-27 Joel Brobecker <brobecker@adacore.com>
12134
12135 * ada-typeprint.c (print_range): Add missing empty line
12136 after local declaration.
12137
859cf5d1
JB
121382014-01-27 Joel Brobecker <brobecker@adacore.com>
12139
12140 * ada-valprint.c (print_optional_low_bound): Get index_type's
12141 target type for as long as it is a TYPE_CODE_RANGE.
12142
25790f6f
JB
121432014-01-27 Joel Brobecker <brobecker@adacore.com>
12144
12145 * procfs.c (procfs_make_note_section): Remove assertion and
12146 associated comment.
12147
6b6aa828
YQ
121482014-01-24 Yao Qi <yao@codesourcery.com>
12149
12150 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12151 * corelow.c (get_core_siginfo): Likewise.
12152
5d6df423
YQ
121532014-01-24 Yao Qi <yao@codesourcery.com>
12154
12155 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12156 ULONGEST. Don't check 'len' is negative.
12157 (remote_write_bytes): Change type of 'len' to ULONGEST.
12158
83b645b8
TT
121592014-01-23 Tom Tromey <tromey@redhat.com>
12160
12161 PR python/16485:
12162 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12163 Handle exception from frame.block.
12164 (FrameVars.fetch_frame_locals): Likewise.
12165
0740f8d8
TT
121662014-01-23 Tom Tromey <tromey@redhat.com>
12167
12168 PR python/16487:
12169 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12170 on a NULL pointer. Move "goto error" to correct place.
12171
21909fa1
TT
121722014-01-23 Tom Tromey <tromey@redhat.com>
12173
12174 PR python/16491:
12175 * python/py-framefilter.c (apply_frame_filter): Call
12176 ensure_python_env after computing gdbarch.
12177
17fde6d0
YQ
121782014-01-23 Yao Qi <yao@codesourcery.com>
12179
12180 * target.c (raw_memory_xfer_partial): Change argument type
12181 from void * to gdb_byte *.
12182 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12183
87ce2a04
DE
121842014-01-22 Doug Evans <dje@google.com>
12185
12186 New gdbserver option --debug-format=timestamp.
12187 * NEWS: Mention it.
12188
237b092b
AA
121892014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12190
12191 * syscalls/s390x-linux.xml: New file.
12192 * syscalls/s390-linux.xml: New file.
12193 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12194 (XML_SYSCALL_FILENAME_S390X): Likewise.
12195 (op_svc): New enum value for SVC opcode.
12196 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12197 (s390_linux_get_syscall_number): New function.
12198 (s390_gdbarch_init): Register '*get_syscall_number' and the
12199 syscall xml file name.
12200 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12201 "s390-linux.xml" and "s390x-linux.xml".
12202 * NEWS: Announce new feature.
12203
54bff650
BS
122042014-01-22 Baruch Siach <baruch@tkos.co.il>
12205
12206 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12207
14e361d7
PA
122082014-01-22 Pedro Alves <palves@redhat.com>
12209
12210 * xtensa-config.c: Include defs.h.
12211
46bbb3ed
JB
122122014-01-22 Joel Brobecker <brobecker@adacore.com>
12213
12214 * common/common-utils.h: Add "ARI:" comment beside __func__
12215 reference.
12216
3a80edfc
JB
122172014-01-22 Joel Brobecker <brobecker@adacore.com>
12218
12219 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12220 documentation a bit.
12221
4869db5e
RM
122222014-01-21 Roland McGrath <mcgrathr@google.com>
12223
12224 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12225 * configure: Regenerate.
12226 * aclocal.m4: Regenerate.
12227 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12228 New substituted variables.
12229 (install-strip): New target.
12230 (INSTALL_SCRIPT): New substituted variable.
12231 (FLAGS_TO_PASS): Add it.
12232 (install-only): Use $(INSTALL_SCRIPT) rather than
12233 $(INSTALL_PROGRAM) for gcore.
12234
9ea4267d
TT
122352014-01-20 Tom Tromey <tromey@redhat.com>
12236
12237 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12238 together.
12239
1f2bdf09
TT
122402014-01-20 Tom Tromey <tromey@redhat.com>
12241
12242 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12243 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12244 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12245 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12246 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12247 (struct cmd_list_element) <flags>: Remove.
12248 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12249 doc_allocated>: New fields.
12250 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12251 bitfields.
12252 * maint.c (maintenance_do_deprecate): Update.
12253 * top.c (execute_command): Update.
12254
e671835b
BS
122552014-01-20 Baruch Siach <baruch@tkos.co.il>
12256
12257 * xtensa-linux-nat.c: Include asm/ptrace.h.
12258
50367cd2
IB
122592014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12260
12261 * Makefile.in (SFILES): Add d-support.c.
12262 (COMMON_OBS): Add d-support.o.
12263 * d-lang.h (d_parse_symbol): Add comment, now defined in
12264 d-support.c.
12265 * d-lang.c (parse_call_convention)
12266 (parse_attributes, parse_function_types)
12267 (parse_function_args, parse_type, parse_identifier)
12268 (call_convention_p, d_parse_symbol): Move functions to ...
12269 * d-support.c: ... New file.
12270
ec9f644a
IB
122712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12272
12273 * d-lang.h (d_parse_symbol): Add declaration.
12274 * d-lang.c (extract_identifiers)
12275 (extract_type_info): Remove functions.
12276 (parse_call_convention, parse_attributes)
12277 (parse_function_types, parse_function_args)
12278 (parse_type, parse_identifier, call_convention_p)
12279 (d_parse_symbol): New functions.
12280 (d_demangle): Use d_parse_symbol to demangle D symbols.
12281
94b1b47e
IB
122822014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12283
12284 * d-lang.h (struct builtin_d_type): New data type.
12285 (builtin_d_type): Add declaration.
12286 * d-lang.c (d_language_arch_info, build_d_types)
12287 (builtin_d_type): New functions.
12288 (enum d_primitive_types): New data type.
12289 (d_language_defn): Change c_language_arch_info to
12290 d_language_arch_info.
12291 (d_type_data): New static variable.
12292 (_initialize_d_language): Initialize d_type_data.
12293
63778547
IB
122942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12295
12296 * d-lang.h (d_main_name): Add declaration.
12297 * d-lang.c (d_main_name): New function.
12298 * symtab.c (find_main_name): Add call to d_main_name.
12299
3271ba66
IB
123002014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12301
12302 * d-lang.c (d_language_defn): Change macro_expansion_c to
12303 macro_expansion_no.
12304
d36b3012
IB
123052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12306
12307 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12308
c90a6fb7
SDJ
123092014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12310
12311 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12312 gdb_exception" declaration.
12313 * remote.c (getpkt_or_notif_sane): Likewise.
12314
749234e5
DE
123152014-01-17 Doug Evans <dje@google.com>
12316
12317 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12318 function, contents of dirnames_to_char_ptr_vec_append moved here.
12319 (delim_string_to_char_ptr_vec): New function.
12320 (dirnames_to_char_ptr_vec_append): Rewrite.
12321 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12322
df049a58
DE
123232014-01-17 Doug Evans <dje@google.com>
12324
12325 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12326 and moved here ...
12327 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12328 #include "common-utils.h".
12329 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12330 * common/vec.h (VEC_ASSERT_PASS): Update.
12331 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12332 (MACH_CHECK_ERROR): Update.
12333
69f97648
SM
123342014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12335
12336 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12337 comments.
12338 * gdbarch.h: Regenerate.
12339
98b1cfdc
TT
123402014-01-16 Tom Tromey <tromey@redhat.com>
12341
12342 * value.c (struct value) <regnum>: Move earlier.
12343
77a19445
TT
123442014-01-16 Tom Tromey <tromey@redhat.com>
12345
12346 * remote.c (extended_remote_create_inferior): Rename from
12347 extended_remote_create_inferior_1. Add "ops" argument. Remove
12348 old implementation.
12349
62261490
PA
123502014-01-16 Pedro Alves <palves@redhat.com>
12351
12352 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12353 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12354 the backchain.
12355
4d65956b
DE
123562014-01-16 Doug Evans <dje@google.com>
12357
12358 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12359
52834460
MM
123602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12361
12362 * btrace.h (btrace_thread_flag): New.
12363 (struct btrace_thread_info) <flags>: New.
12364 * record-btrace.c (record_btrace_resume_thread)
12365 (record_btrace_find_thread_to_move, btrace_step_no_history)
12366 (btrace_step_stopped, record_btrace_start_replaying)
12367 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12368 (record_btrace_find_resume_thread): New.
12369 (record_btrace_resume, record_btrace_wait): Extend.
12370 (record_btrace_can_execute_reverse): New.
12371 (record_btrace_open): Fail in non-stop mode.
12372 (record_btrace_set_replay): Split into this, ...
12373 (record_btrace_stop_replaying): ... this, ...
12374 (record_btrace_clear_histories): ... and this.
12375 (init_record_btrace_ops): Init to_can_execute_reverse.
12376 * NEWS: Announce it.
12377
118e6252
MM
123782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12379
12380 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12381 (forward_target_decr_pc_after_break)
12382 (target_decr_pc_after_break): New.
12383 * target.c (forward_target_decr_pc_after_break)
12384 (target_decr_pc_after_break): New.
12385 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12386 instead of gdbarch_decr_pc_after_break.
12387 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12388 instead of gdbarch_decr_pc_after_break.
12389 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12390 instead of gdbarch_decr_pc_after_break.
12391 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12392 instead of gdbarch_decr_pc_after_break.
12393 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12394 instead of gdbarch_decr_pc_after_break.
12395 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12396 instead of gdbarch_decr_pc_after_break.
12397
6e07b1d2
MM
123982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12399
12400 * btrace.c: Include regcache.h.
12401 (btrace_add_pc): New.
12402 (btrace_enable): Call btrace_add_pc.
12403 (btrace_is_empty): New.
12404 * btrace.h (btrace_is_empty): New.
12405 * record-btrace.c (require_btrace, record_btrace_info): Call
12406 btrace_is_empty.
12407
969c39fb
MM
124082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12409
12410 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12411 Support delta reads.
12412 (linux_disable_btrace): Change return type.
12413 * common/linux-btrace.h (linux_read_btrace): Change parameters
12414 and return type to allow error reporting. Update users.
12415 (linux_disable_btrace): Change return type. Update users.
12416 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12417 New.
12418 (btrace_error): New.
12419 (btrace_block) <begin>: Comment on BEGIN == 0.
12420 * btrace.c (btrace_compute_ftrace): Start from the end of
12421 the current trace.
12422 (btrace_stitch_trace, btrace_clear_history): New.
12423 (btrace_fetch): Read delta trace, return if replaying.
12424 (btrace_clear): Move clear history code to btrace_clear_history.
12425 (parse_xml_btrace): Throw an error if parsing failed.
12426 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12427 and return type to allow error reporting.
12428 (target_read_btrace): Change parameters and return type to allow
12429 error reporting.
12430 * target.c (target_read_btrace): Update.
12431 * remote.c (remote_read_btrace): Support delta reads. Pass
12432 errors on.
12433 * NEWS: Announce it.
12434
0b722aec
MM
124352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12436
12437 * record.h (record_btrace_frame_unwind)
12438 (record_btrace_tailcall_frame_unwind): New declarations.
12439 * dwarf2-frame: Include record.h
12440 (dwarf2_frame_cfa): Throw an error for btrace frames.
12441 * record-btrace.c: Include hashtab.h.
12442 (btrace_get_bfun_name): New.
12443 (btrace_call_history): Call btrace_get_bfun_name.
12444 (struct btrace_frame_cache): New.
12445 (bfcache): New.
12446 (bfcache_hash, bfcache_eq, bfcache_new): New.
12447 (btrace_get_frame_function): New.
12448 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12449 (record_btrace_frame_this_id): Compute own id.
12450 (record_btrace_frame_prev_register): Provide PC, throw_error
12451 for all other registers.
12452 (record_btrace_frame_sniffer): Detect btrace frames.
12453 (record_btrace_tailcall_frame_sniffer): New.
12454 (record_btrace_frame_dealloc_cache): New.
12455 (record_btrace_frame_unwind): Add new functions.
12456 (record_btrace_tailcall_frame_unwind): New.
12457 (_initialize_record_btrace): Allocate cache.
12458 * btrace.c (btrace_clear): Call reinit_frame_cache.
12459 * NEWS: Announce it.
12460
066ce621
MM
124612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12462
12463 * record-btrace.c (record_btrace_set_replay)
12464 (record_btrace_goto_begin, record_btrace_goto_end)
12465 (record_btrace_goto): New.
12466 (init_record_btrace_ops): Initialize them.
12467 * NEWS: Announce it.
12468
e2887aa3
MM
124692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12470
12471 * record-btrace.c (record_btrace_find_new_threads)
12472 (record_btrace_thread_alive): New.
12473 (init_record_btrace_ops): Initialize to_find_new_threads and
12474 to_thread_alive.
12475
b2f4cfde
MM
124762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12477
12478 * record-btrace.c (record_btrace_resume): New.
12479 (record_btrace_wait): New.
12480 (init_record_btrace_ops): Initialize to_wait and to_resume.
12481
633785ff
MM
124822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12483
12484 * record-btrace.c (record_btrace_xfer_partial)
12485 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12486 (record_btrace_allow_memory_access): New.
12487 (init_record_btrace_ops): Initialize new methods.
12488 * target.c (raw_memory_xfer_partial): Bail out if target reports
12489 that this memory is not available.
12490
3db08215
MM
124912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12492
12493 * target.h (target_ops) <to_insert_breakpoint>
12494 <to_remove_breakpoint>: Add target_ops parameter.
12495 (forward_target_insert_breakpoint): New.
12496 (forward_target_remove_breakpoint): New.
12497 (memory_remove_breakpoint, memory_insert_breakpoint):
12498 Add target_ops parameter.
12499 * target.c (target_insert_breakpoint): Split into this and ...
12500 (forward_target_insert_breakpoint): ... this.
12501 (target_remove_breakpoint): Split into this and ...
12502 (forward_target_remove_breakpoint): ... this.
12503 (debug_to_insert_breakpoint): Add target_ops parameter.
12504 Call forward_target_insert_breakpoint.
12505 (debug_to_remove_breakpoint): Add target_ops parameter.
12506 Call forward_target_remove_breakpoint.
12507 (update_current_target): Do not inherit or default to_insert_breakpoint
12508 and to_remove_breakpoint.
12509 * corelow.c (ignore): Add target_ops parameter.
12510 * exec.c (ignore): Add target_ops parameter.
12511 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12512 Add target_ops parameter.
12513 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12514 Add target_ops parameter.
12515 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12516 Add target_ops parameter.
12517 * record-full.c (record_full_beneath_to_insert_breakpoint)
12518 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12519 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12520 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12521 (record_full_core_remove_breakpoint): Add target_ops parameter.
12522 Update users.
12523 (record_full_beneath_to_insert_breakpoint_ops)
12524 (record_full_beneath_to_remove_breakpoint_ops)
12525 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12526 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12527 tmp_to_remove_breakpoint_ops,
12528 record_full_beneath_to_insert_breakpoint_ops, and
12529 record_full_beneath_to_remove_breakpoint_ops.
12530 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12531 (m32r_remove_breakpoint): Add target_ops parameter.
12532 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12533 Add target_ops parameter.
12534 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12535 Add target_ops parameter.
12536
cecac1ab
MM
125372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12538 Markus Metzger <markus.t.metzger@intel.com>
12539
12540 * record-btrace.c: Include frame-unwind.h.
12541 (record_btrace_frame_unwind_stop_reason)
12542 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12543 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12544 New.
12545 (init_record_btrace_ops): Install it.
12546
824344ca
MM
125472014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12548
12549 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12550 get_prev_frame_1.
12551
32261e52
MM
125522014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12553
12554 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12555 earlier.
12556
ea001bdc
MM
125572014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12558
12559 * frame-unwind.c: Include target.h.
12560 (frame_unwind_try_unwinder): New function with code from ...
12561 (frame_unwind_find_by_frame): ... here. New variable
12562 unwinder_from_target, call also target_get_unwinder)
12563 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12564 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12565 * target.h (struct target_ops): New fields to_get_unwinder and
12566 to_get_tailcall_unwinder.
12567 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12568
1f3ef581
MM
125692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12570
12571 * record-btrace.c (record_btrace_fetch_registers)
12572 (record_btrace_store_registers)
12573 (record_btrace_to_prepare_to_store): New.
12574 (init_record_btrace_ops): Add the above.
12575
f32dbf8c
MM
125762014-01-16 Tom Tromey <tromey@redhat.com>
12577
12578 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12579 * target.h (struct target_ops) <to_prepare_to_store>: Add
12580 argument.
12581 (target_prepare_to_store): Add argument.
12582 * target.c (debug_to_prepare_to_store): Add argument.
12583 (update_current_target): Update.
12584 * remote.c (remote_prepare_to_store): Add 'self' argument.
12585 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12586 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12587 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12588 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12589 argument.
12590 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12591 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12592 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12593 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12594 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12595
07bbe694
MM
125962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12597
12598 * btrace.h (replay) <replay>: New.
12599 (btrace_is_replaying): New.
12600 * btrace.c (btrace_clear): Free replay iterator.
12601 (btrace_is_replaying): New.
12602 * record-btrace.c (record_btrace_is_replaying): New.
12603 (record_btrace_info): Print insn number if replaying.
12604 (record_btrace_insn_history): Start at replay position.
12605 (record_btrace_call_history): Start at replay position.
12606 (init_record_btrace_ops): Init to_record_is_replaying.
12607
0688d04e
MM
126082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12609
12610 * record-btrace.c (record_btrace_insn_history_range): Include
12611 end.
12612 (record_btrace_insn_history_from): Adjust range.
12613 (record_btrace_call_history_range): Include
12614 end.
12615 (record_btrace_call_history_from): Adjust range.
12616 * NEWS: Announce changes.
12617
8710b709
MM
126182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12619
12620 * record.h (enum record_print_flag)
12621 <record_print_indent_calls>: New.
12622 * record.c (get_call_history_modifiers): Recognize /c modifier.
12623 (_initialize_record): Document /c modifier.
12624 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12625 Reorder fields. Optionally indent the function name. Update
12626 all users.
12627 * NEWS: Announce changes.
12628
d0fa7535
MM
126292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12630
12631 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12632
5de9129b
MM
126332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12634
12635 * btrace.c (ftrace_new_function): Start counting at one.
12636 * record-btrace.c (record_btrace_info): Adjust number of calls
12637 and insns.
12638 * NEWS: Announce it.
12639
7acbe133
MM
126402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12641
12642 * record-btrace.c (btrace_call_history_insn_range): Print
12643 insn range as [begin, end].
12644
23a7fe75
MM
126452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12646
12647 * btrace.h (struct btrace_func_link): New.
12648 (enum btrace_function_flag): New.
12649 (struct btrace_inst): Rename to ...
12650 (struct btrace_insn): ...this. Update all users.
12651 (struct btrace_func) <ibegin, iend>: Remove.
12652 (struct btrace_func_link): New.
12653 (struct btrace_func): Rename to ...
12654 (struct btrace_function): ...this. Update all users.
12655 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12656 (number, level, flags>: New.
12657 (struct btrace_insn_iterator): Rename to ...
12658 (struct btrace_insn_history): ...this.
12659 Update all users.
12660 (struct btrace_insn_iterator, btrace_call_iterator): New.
12661 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12662 (struct btrace_target_info) <begin, end, level>
12663 <insn_history, call_history>: New.
12664 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12665 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12666 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12667 (btrace_call_number, btrace_call_begin, btrace_call_end)
12668 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12669 (btrace_find_function_by_number, btrace_set_insn_history)
12670 (btrace_set_call_history): New.
12671 * btrace.c (btrace_init_insn_iterator)
12672 (btrace_init_func_iterator, compute_itrace): Remove.
12673 (ftrace_print_function_name, ftrace_print_filename)
12674 (ftrace_skip_file): Change
12675 parameter to const.
12676 (ftrace_init_func): Remove.
12677 (ftrace_debug): Use new btrace_function fields.
12678 (ftrace_function_switched): Also consider gaining and
12679 losing symbol information).
12680 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12681 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12682 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12683 New.
12684 (ftrace_new_function): Move. Remove debug print.
12685 (ftrace_update_lines, ftrace_update_insns): New.
12686 (ftrace_update_function): Check for call, ret, and jump.
12687 (compute_ftrace): Renamed to ...
12688 (btrace_compute_ftrace): ...this. Rewritten to compute call
12689 stack.
12690 (btrace_fetch, btrace_clear): Updated.
12691 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12692 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12693 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12694 (btrace_call_number, btrace_call_begin, btrace_call_end)
12695 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12696 (btrace_find_function_by_number, btrace_set_insn_history)
12697 (btrace_set_call_history): New.
12698 * record-btrace.c (require_btrace): Use new btrace thread
12699 info fields.
12700 (record_btrace_info, btrace_insn_history)
12701 (record_btrace_insn_history, record_btrace_insn_history_range):
12702 Use new btrace thread info fields and new iterator.
12703 (btrace_func_history_src_line): Rename to ...
12704 (btrace_call_history_src_line): ...this. Use new btrace
12705 thread info fields.
12706 (btrace_func_history): Rename to ...
12707 (btrace_call_history): ...this. Use new btrace thread info
12708 fields and new iterator.
12709 (record_btrace_call_history, record_btrace_call_history_range):
12710 Use new btrace thread info fields and new iterator.
12711
8372a7cb
MM
127122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12713
12714 * frame.h (frame_id_build_unavailable_stack_special): New.
12715 * frame.c (frame_id_build_unavailable_stack_special): New.
12716
c2170eef
MM
127172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12718
12719 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12720 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12721 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12722 to gdbarch.
12723 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12724 (i386_insn_is_jump, i386_jmp_p): New.
12725 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12726 insn_is_jump to gdbarch.
12727 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12728 * gdbarch.h: Regenerated.
12729 * gdbarch.c: Regenerated.
12730 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12731 (default_insn_is_jump): New.
12732 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12733 (default_insn_is_jump): New.
12734
864089d2
MM
127352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12736
12737 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12738 Change to ...
12739 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12740 (btrace_read_type) <btrace_read_new>: Change to ...
12741 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12742
ed9edfb5
MM
127432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12744
12745 * common/linux-btrace.c (linux_read_btrace): Free trace from
12746 previous iteration.
12747
fbcbc3fd
DE
127482014-01-15 Doug Evans <dje@google.com>
12749
12750 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12751 uint32_t.
12752
3d548a53
TT
127532014-01-15 Tom Tromey <tromey@redhat.com>
12754
12755 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12756 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12757 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12758 (set_objfile_main_name): New function.
12759 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12760 language_of_main>: New fields.
12761 (set_objfile_main_name): Declare.
12762 * symtab.c (find_main_name): Loop over objfiles to find the main
12763 name and language.
12764 (set_main_name): Now static.
12765 (get_main_info): Add comment.
12766 * symtab.h (set_main_name): Don't declare.
12767
32ac0d11
TT
127682014-01-15 Tom Tromey <tromey@redhat.com>
12769
12770 * symtab.c (main_progspace_key): New global.
12771 (struct main_info): New.
12772 (name_of_main, language_of_main): Remove.
12773 (get_main_info, main_info_cleanup): New function.
12774 (set_main_name, main_name, main_language): Use get_main_info.
12775 (_initialize_symtab): Initialize main_progspace_key.
12776
9e6c82ad
TT
127772014-01-15 Tom Tromey <tromey@redhat.com>
12778
12779 * dbxread.c (process_one_symbol): Update.
12780 * dwarf2read.c (read_partial_die): Update.
12781 * symfile.c (set_initial_language): Call main_language.
12782 * symtab.c (language_of_main): Now static.
12783 (set_main_name): Add 'lang' parameter.
12784 (find_main_name): Update.
12785 (main_language): New function.
12786 (symtab_observer_executable_changed): Update.
12787 * symtab.h (set_main_name): Update.
12788 (language_of_main): Remove.
12789 (main_language): Declare.
12790
6ef55de7
TT
127912014-01-15 Tom Tromey <tromey@redhat.com>
12792
12793 * symfile.c (init_entry_point_info): Use new "initialized" field.
12794 Update.
12795 * objfiles.h (struct entry_point) <initialized>: New field.
12796 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12797 (struct objfile) <ei>: ...here. Remove.
12798 * objfiles.c (entry_point_address_query): Update.
12799
53eddfa6
TT
128002014-01-15 Tom Tromey <tromey@redhat.com>
12801
12802 * objfiles.c (entry_point_address_query): Relocate entry point
12803 address.
12804 (objfile_relocate1): Do not relocate entry point address.
12805 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12806 <the_bfd_section_index>: New field.
12807 * symfile.c (init_entry_point_info): Find the entry point's
12808 section.
12809
d56e56aa
TT
128102014-01-15 Tom Tromey <tromey@redhat.com>
12811
12812 * solib-frv.c (enable_break): Use entry_point_address_query.
12813
33a97bbe
OJ
128142014-01-15 Omair Javaid <omair.javaid@linaro.org>
12815
12816 * NEWS: Add note on improved process record-replay on
12817 arm*-linux* targets.
12818
c6ec2b30
OJ
128192014-01-15 Omair Javaid <omair.javaid@linaro.org>
12820
12821 * arm-tdep.c (enum arm_record_result): New enum.
12822 (arm_record_unsupported_insn): New function.
12823 (arm_record_coproc_data_proc): Removed.
12824 (thumb2_record_ld_st_multiple): New function.
12825 (thumb2_record_ld_st_dual_ex_tbb): New function.
12826 (thumb2_record_data_proc_sreg_mimm): New function.
12827 (thumb2_record_ps_dest_generic): New function.
12828 (thumb2_record_branch_misc_cntrl): New function.
12829 (thumb2_record_str_single_data): New function.
12830 (thumb2_record_ld_mem_hints): New function.
12831 (thumb2_record_ld_word): New function.
12832 (thumb2_record_lmul_lmla_div): New function.
12833 (thumb2_record_decode_insn_handler): New function.
12834 (decode_insn): Add thumb32 instruction handlers.
12835
97dfe206
OJ
128362014-01-15 Omair Javaid <omair.javaid@linaro.org>
12837
12838 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12839 (struct arm_linux_record_tdep): Declare.
12840 (arm_canonicalize_syscall): New function.
12841 (arm_all_but_pc_registers_record): New function.
12842 (arm_linux_syscall_record): New function.
12843 (arm_linux_init_abi): Add syscall recording constructs.
12844 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12845 decoding. (arm_record_coproc_data_proc): Update arm syscall
12846 decoding.
12847 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12848 <arm_syscall_record>: New field.
12849 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12850 gdb_target_obs.
12851
9904a494
OJ
128522014-01-15 Omair Javaid <omair.javaid@linaro.org>
12853
12854 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12855 register for push instruction recording.
12856
f969241e
OJ
128572014-01-15 Omair Javaid <omair.javaid@linaro.org>
12858
12859 * arm-tdep.c (thumb_record_misc): Update to correct logical
12860 error while recording ldm, ldmia and pop instructions.
12861
bfbbec00
OJ
128622014-01-15 Omair Javaid <omair.javaid@linaro.org>
12863
12864 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12865
e40adcc9
PA
128662014-01-15 Pedro Alves <palves@redhat.com>
12867
12868 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12869 (go32_resume, go32_fetch_registers, store_register)
12870 (go32_store_registers, go32_prepare_to_store)
12871 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12872 (go32_create_inferior, go32_can_run, go32_terminal_init)
12873 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12874 declarations.
12875
b0a16e66
TT
128762014-01-15 Tom Tromey <tromey@redhat.com>
12877
12878 * target.h (async_callback_ftype): New typedef.
12879 (struct target_ops) <to_async>: Use it.
12880
bf7105a4
JB
128812014-01-15 Joel Brobecker <brobecker@adacore.com>
12882
12883 * python/py-value.c (get_field_type): Remove unnecessary curly
12884 braces for single-statement if block.
12885
a8f35c2e
JB
128862014-01-15 Joel Brobecker <brobecker@adacore.com>
12887
12888 * python/py-type.c (convert_field): Add missing empty line
12889 after declarations.
12890
bb4142cf
DE
128912014-01-14 Doug Evans <dje@google.com>
12892
12893 * symfile.h (expand_symtabs_matching): Renamed from
12894 expand_partial_symbol_names. Update prototype.
12895 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12896 * symfile.c (expand_symtabs_matching): Renamed from
12897 expand_partial_symbol_names. New args file_matcher, kind.
12898 Rename arg fun to symbol_matcher.
12899 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12900 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12901 ada_expand_partial_symbol_name.
12902 (ada_make_symbol_completion_list): Update to call
12903 expand_symtabs_matching.
12904 (ada_add_global_exceptions): Call expand_symtabs_matching.
12905 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12906 call map_symbol_filenames.
12907 * symtab.c (sources_info): Update to call map_symbol_filenames.
12908 (search_symbols): Call expand_symtabs_matching.
12909 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12910 (default_make_symbol_completion_list_break_on): Update to call
12911 expand_symtabs_matching.
12912 (make_source_files_completion_list): Update to call
12913 map_symbol_filenames.
12914
206f2a57
DE
129152014-01-14 Doug Evans <dje@google.com>
12916
12917 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12918 (expand_symtabs_symbol_matcher_ftype): New typedef.
12919 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12920 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12921 * symfile.c (expand_partial_symbol_names): Update to use
12922 expand_symtabs_symbol_matcher_ftype.
12923 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12924 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12925 Arg name_matcher renamed to symbol_matcher.
12926 * psymtab.c (recursively_search_psymtabs): Update to use
12927 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12928 sym_matcher.
12929 (expand_symtabs_matching_via_partial): Update to use
12930 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12931 Arg name_matcher renamed to symbol_matcher.
12932
540c2971
DE
129332014-01-14 Doug Evans <dje@google.com>
12934
12935 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12936 (map_partial_symbol_filenames): Ditto.
12937 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12938 (map_partial_symbol_filenames): Ditto.
12939 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12940 (map_partial_symbol_filenames): Ditto.
12941 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12942 (map_partial_symbol_filenames): Ditto.
12943 * symtab.c: Delete #include "psymtab.h".
12944
8213266a
PA
129452014-01-14 Pedro Alves <palves@redhat.com>
12946 Tom Tromey <tromey@redhat.com>
12947
12948 * infrun.c (use_displaced_stepping): Use find_record_target
12949 instead of RECORD_IS_USED.
12950 (adjust_pc_after_break): Use record_full_is_used instead of
12951 RECORD_IS_USED.
12952 * record-btrace.c (record_btrace_open): Call record_preopen
12953 instead of checking RECORD_IS_USED.
12954 * record-full.c (record_full_shortname)
12955 (record_full_core_shortname): New globals.
12956 (record_full_is_used): New function.
12957 (find_full_open): Call record_preopen instead of checking
12958 RECORD_IS_USED.
12959 (init_record_full_ops): Set the target's shortname to
12960 record_full_shortname.
12961 (init_record_full_core_ops): Set the target's shortname to
12962 record_full_core_shortname.
12963 * record-full.h (record_full_is_used): Declare.
12964 * record.c (find_record_target): Make extern.
12965 (record_preopen): New function.
12966 * record.h (RECORD_IS_USED): Delete macro.
12967 (find_record_target, record_preopen): Declare functions.
12968
7ec1862d
YQ
129692014-01-14 Yao Qi <yao@codesourcery.com>
12970
12971 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12972 'len''s type to ULONGEST.
12973 (core_xfer_shared_libraries_aix): Likewise.
12974 * gdbarch.c, gdbarch.h: Regenerated.
12975 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12976 Change type of 'len' to ULONGEST.
12977 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12978 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12979
dea80a27
YQ
129802014-01-14 Yao Qi <yao@codesourcery.com>
12981
12982 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12983 type of 'len' to ULONGEST.
12984 (linux_xfer_osdata_processgroups): Likewise.
12985 (linux_xfer_osdata_threads): Likewise.
12986 (linux_xfer_osdata_fds): Likewise.
12987 (linux_xfer_osdata_isockets): Likewise.
12988 (linux_xfer_osdata_shm): Likewise.
12989 (linux_xfer_osdata_sem): Likewise.
12990 (linux_xfer_osdata_msg): Likewise.
12991 (linux_common_xfer_osdata): Likewise.
12992 (struct osdata_type) <getter>: Likewise.
12993 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12994 the declaration.
12995
b55e14c7
YQ
129962014-01-14 Yao Qi <yao@codesourcery.com>
12997
12998 * target.h (target_xfer_partial_ftype): Update.
12999 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13000 ULONGEST.
13001 * aix-thread.c (aix_thread_xfer_partial): Change type of
13002 argument 'len' to ULONGEST.
13003 * auxv.c (procfs_xfer_auxv): Likewise.
13004 (ld_so_xfer_auxv): Likewise.
13005 (memory_xfer_auxv): Likewise.
13006 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13007 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13008 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13009 * corelow.c (core_xfer_partial): Likewise.
13010 * ctf.c (ctf_xfer_partial): Likewise.
13011 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13012 '%u'.
13013 (darwin_read_dyld_info): Likewise.
13014 (darwin_xfer_partial): Likewise.
13015 * exec.c (section_table_xfer_memory_partial): Likewise.
13016 (exec_xfer_partial): Likewise.
13017 * exec.h (section_table_xfer_memory_partial): Update
13018 declaration.
13019 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13020 instead of plongest.
13021 (gnu_xfer_partial): Likewise.
13022 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13023 (ia64_hpux_xfer_solib_got): Likewise.
13024 (ia64_hpux_xfer_partial): Likewise.
13025 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13026 * inf-ptrace.c (inf_ptrace_xfer_partial):
13027 * inf-ttrace.c (inf_ttrace_xfer_partial):
13028 * linux-nat.c (linux_xfer_siginfo): Likewise.
13029 (linux_nat_xfer_partial): Likewise.
13030 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13031 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13032 * monitor.c (monitor_xfer_memory): Likewise.
13033 (monitor_xfer_partial): Likewise.
13034 * procfs.c (procfs_xfer_partial): Likewise.
13035 * record-full.c (record_full_xfer_partial): Likewise.
13036 (record_full_core_xfer_partial): Likewise.
13037 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13038 instead of plongest.
13039 (gdbsim_xfer_partial): Likewise.
13040 * remote.c (remote_xfer_partial): Likewise.
13041 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13042 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13043 declaration.
13044 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13045 (rs6000_xfer_shared_libraries): Likewise.
13046 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13047 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13048 (sparc_xfer_partial): Likewise.
13049 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13050 (spu_xfer_partial): Likewise.
13051 * spu-multiarch.c (spu_xfer_partial): Likewise.
13052 * target.c (target_read_live_memory): Likewise.
13053 (memory_xfer_live_readonly_partial): Likewise.
13054 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13055 (target_xfer_partial, default_xfer_partial): Likewise.
13056 (current_xfer_partial): Likewise.
13057 * tracepoint.c (tfile_xfer_partial): Likewise.
13058 * windows-nat.c (windows_xfer_memory): Likewise. Call
13059 pulongest instead of plongest.
13060 (windows_xfer_partial): Likewise.
13061 (windows_xfer_shared_libraries): Likewise.
13062
05804640
YQ
130632014-01-14 Yao Qi <yao@codesourcery.com>
13064
13065 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13066 target_xfer_partial_ftype.
13067
b5b08fb4
SC
130682014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13069
13070 PR python/15464
13071 PR python/16113
13072 * valops.c (value_struct_elt_bitpos): New function
13073 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13074 object to 'None' if the field name is an empty string ("").
13075 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13076 attribute to look for a field when 'name' is 'None'.
13077 (get_field_type): New function
13078
13aaf454
DE
130792014-01-13 Doug Evans <dje@google.com>
13080
13081 PR symtab/16426
13082 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13083 (try_open_dwop_file): Ditto.
13084 * gdb_bfd.c: #include "vec.h".
13085 (bfdp): New typedef.
13086 (struct gdb_bfd_data): New member included_bfds.
13087 (gdb_bfd_unref): Unref all included bfds.
13088 (gdb_bfd_record_inclusion): New function.
13089 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13090
c2cec97c
TT
130912014-01-13 Tom Tromey <tromey@redhat.com>
13092
13093 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13094
78e5999d
TT
130952014-01-13 Tom Tromey <tromey@redhat.com>
13096
13097 * defs.h (use_windows): Remove.
13098 * gdb.c (main): Update.
13099 * main.c (captured_main, gdb_main): Update.
13100 * main.h (struct captured_main_args) <use_windows>: Remove.
13101 * top.c (use_windows): Remove.
13102
f2052bbe
TT
131032014-01-13 Tom Tromey <tromey@redhat.com>
13104
13105 * defs.h (deprecated_flush_hook): Remove.
13106
fde4f8ed
JK
131072014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13108
13109 PR threads/16216
13110 * linux-thread-db.c (try_thread_db_load): Add parameter
13111 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13112 (try_thread_db_load_from_pdir_1): Move it there from here.
13113 (try_thread_db_load_from_sdir): Update caller.
13114 (try_thread_db_load_from_dir): Move it there from here.
13115
bdf61915
PP
131162014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13117
13118 * regformats/regdat.sh: Always rewrite the register file.
13119
f71e1a8d
PA
131202014-01-13 Pedro Alves <palves@redhat.com>
13121
13122 * Makefile.in (CHECK_HEADERS): New variable.
13123 (check-headers:): New rule.
13124
42c85435
TT
131252014-01-13 Tom Tromey <tromey@redhat.com>
13126
13127 * cli/cli-setshow.c (do_set_command): Update.
13128 * defs.h (deprecated_set_hook): Remove.
13129 * top.c (deprecated_set_hook): Remove.
13130
f8de5129
PA
131312014-01-13 Pedro Alves <palves@redhat.com>
13132
13133 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13134 the tracepoint if the PC is a pseudo-register.
13135
fc270c35
TT
131362014-01-13 Tom Tromey <tromey@redhat.com>
13137
13138 * defs.h (XCALLOC): Remove.
13139 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13140 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13141 * dwarf2loc.c (allocate_piece_closure): Likewise.
13142 * elfread.c (elf_symfile_segments): Likewise.
13143 (elf_symfile_segments): Likewise.
13144 * gdbtypes.c (copy_type_recursive): Likewise.
13145 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13146 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13147 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13148 XCALLOC.
13149 * mt-tdep.c (mt_gdbarch_init): Likewise.
13150 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13151 XCALLOC.
13152 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13153 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13154 * registry.c (registry_alloc_data): Likewise.
13155 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13156 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13157 * serial.c (serial_fdopen_ops): Likewise.
13158 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13159 XCALLOC.
13160 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13161 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13162 not XCALLOC.
13163
70ba0933
TT
131642014-01-13 Tom Tromey <tromey@redhat.com>
13165
13166 * defs.h (XMALLOC): Remove.
13167 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13168 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13169 * cli-out.c (struct ui_out *): Likewise.
13170 * cli/cli-dump.c (add_dump_command): Likewise.
13171 (add_dump_command): Likewise.
13172 * complaints.c (get_complaints): Likewise.
13173 (find_complaint): Likewise.
13174 * dwarf2-frame.c (execute_cfa_program): Likewise.
13175 * dwarf2read.c (abbrev_table_read_table): Likewise.
13176 * gdbarch.sh: Likewise.
13177 * gdbarch.c: Rebuild.
13178 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13179 * interps.c (interp_new): Likewise.
13180 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13181 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13182 * mi/mi-console.c (mi_console_file_new): Likewise.
13183 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13184 * mi/mi-out.c (mi_out_new): Likewise.
13185 * mi/mi-parse.c (mi_parse): Likewise.
13186 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13187 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13188 * observer.c (xalloc_observer_list_node): Likewise.
13189 * regcache.c (regcache_xmalloc_1): Likewise.
13190 * reggroups.c (reggroup_new): Likewise.
13191 (_initialize_reggroup): Likewise.
13192 * registry.c (register_data_with_cleanup): Likewise.
13193 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13194 * ser-base.c (serial_ttystate): Likewise.
13195 * ser-mingw.c (make_pipe_state): Likewise.
13196 * ser-pipe.c (pipe_open): Likewise.
13197 * serial.c (serial_open): Likewise.
13198 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13199 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13200 (tui_alloc_win_info): Likewise.
13201 (tui_add_content_elements): Likewise.
13202 * tui/tui-file.c (tui_file_new): Likewise.
13203 * tui/tui-out.c (tui_out_new): Likewise.
13204 * ui-file.c (mem_file_new): Likewise.
13205 * ui-out.c (push_level): Likewise.
13206 (make_cleanup_ui_out_end): Likewise.
13207 (append_header_to_list): Likewise.
13208 (ui_out_new): Likewise.
13209 * user-regs.c (user_reg_add_builtin): Likewise.
13210
41bf6aca
TT
132112014-01-13 Tom Tromey <tromey@redhat.com>
13212
13213 * defs.h (XZALLOC): Remove.
13214 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13215 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13216 (get_ada_tasks_inferior_data): Likewise.
13217 * auto-load.c (get_auto_load_pspace_data): Likewise.
13218 * auxv.c (get_auxv_inferior_data): Likewise.
13219 * bfd-target.c (target_bfd_reopen): Likewise.
13220 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13221 (deprecated_insert_raw_breakpoint): Likewise.
13222 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13223 * corelow.c (core_open): Likewise.
13224 * darwin-nat.c (darwin_check_new_threads): Likewise.
13225 (darwin_attach_pid): Likewise.
13226 * dummy-frame.c (dummy_frame_push): Likewise.
13227 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13228 * dwarf2loc.c (allocate_piece_closure): Likewise.
13229 * elfread.c (elf_symfile_segments): Likewise.
13230 * eval.c (ptrmath_type_p): Likewise.
13231 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13232 * gdbtypes.c (alloc_type_arch): Likewise.
13233 (alloc_type_instance): Likewise.
13234 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13235 * inf-child.c (inf_child_can_use_agent): Likewise.
13236 * inflow.c (get_inflow_inferior_data): Likewise.
13237 * infrun.c (save_infcall_suspend_state): Likewise.
13238 * jit.c (jit_reader_load): Likewise.
13239 (get_jit_objfile_data): Likewise.
13240 (get_jit_program_space_data): Likewise.
13241 (jit_object_open_impl): Likewise.
13242 (jit_symtab_open_impl): Likewise.
13243 (jit_block_open_impl): Likewise.
13244 (jit_frame_sniffer): Likewise.
13245 * linux-fork.c (add_fork): Likewise.
13246 * maint.c (make_command_stats_cleanup): Likewise.
13247 * objfiles.c (get_objfile_pspace_data): Likewise.
13248 * opencl-lang.c (struct lval_closure): Likewise.
13249 * osdata.c (osdata_start_osdata): Likewise.
13250 * progspace.c (new_address_space): Likewise.
13251 (add_program_space): Likewise.
13252 * remote-sim.c (get_sim_inferior_data): Likewise.
13253 * sh-tdep.c (sh_gdbarch_init): Likewise.
13254 * skip.c (Ignore): Likewise.
13255 (skip_delete_command): Likewise.
13256 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13257 (library_list_start_library): Likewise.
13258 (solib_aix_current_sos): Likewise.
13259 * solib-darwin.c (get_darwin_info): Likewise.
13260 (darwin_current_sos): Likewise.
13261 * solib-dsbt.c (get_dsbt_info): Likewise.
13262 * solib-ia64-hpux.c (new_so_list): Likewise.
13263 (ia64_hpux_get_solib_linkage_addr): Likewise.
13264 * solib-spu.c (append_ocl_sos): Likewise.
13265 (spu_current_sos): Likewise.
13266 * solib-svr4.c (get_svr4_info): Likewise.
13267 (svr4_keep_data_in_core): Likewise.
13268 (library_list_start_library): Likewise.
13269 (svr4_default_sos): Likewise.
13270 (svr4_read_so_list): Likewise.
13271 * solib-target.c (library_list_start_library): Likewise.
13272 (solib_target_current_sos): Likewise.
13273 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13274 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13275 * symfile.c (default_symfile_segments): Likewise.
13276 * target-descriptions.c (tdesc_data_init): Likewise.
13277 (tdesc_create_reg): Likewise.
13278 (struct tdesc_type *): Likewise.
13279 (tdesc_create_vector): Likewise.
13280 (tdesc_set_struct_size): Likewise.
13281 (struct tdesc_type *): Likewise.
13282 (tdesc_free_feature): Likewise.
13283 (tdesc_create_feature): Likewise.
13284 * windows-nat.c (windows_add_thread): Likewise.
13285 (windows_make_so): Likewise.
13286 * xml-support.c (gdb_xml_body_text): Likewise.
13287 (gdb_xml_create_parser_and_cleanup): Likewise.
13288 (xml_process_xincludes): Likewise.
13289 * xml-syscall.c (allocate_syscalls_info): Likewise.
13290 (syscall_create_syscall_desc): Likewise.
13291
5acfdbae
SDJ
132922014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13293
13294 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13295 function, with code from i386_stap_parse_special_token.
13296 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13297 (i386_stap_parse_special_token): Move code to the two functions
13298 above; simplify it.
13299
0000e5cc
PA
133002014-01-09 Pedro Alves <palves@redhat.com>
13301 Hui Zhu <hui@codesourcery.com>
13302
13303 PR gdb/16101
13304 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13305 bp_err_string. Don't mark the location shlib_disabled if the
13306 error thrown wasn't a generic or memory error. Catch errors
13307 thrown while inserting breakpoints in overlayed code. Output
13308 error message of software breakpoints.
13309 * remote.c (remote_insert_breakpoint): If this breakpoint has
13310 target-side commands but this stub doesn't support Z0 packets,
13311 throw NOT_SUPPORTED_ERROR error.
13312 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13313 * target.h (target_insert_breakpoint): Extend comment.
13314 (target_insert_hw_breakpoint): Add comment.
13315
b7ea362b
PA
133162014-01-08 Pedro Alves <palves@redhat.com>
13317
13318 * remote.c (remote_add_thread): Add threads silently if starting
13319 up.
13320 (remote_notice_new_inferior): If in all-stop, and starting up,
13321 don't call notice_new_inferior.
13322 (get_current_thread): New function, factored out from ...
13323 (add_current_inferior_and_thread): ... this. Adjust.
13324 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13325 found any thread, then select the remote's current thread as GDB's
13326 current thread too.
13327
b7bba001
JB
133282014-01-08 Joel Brobecker <brobecker@adacore.com>
13329
13330 * NEWS: Create a new section for the next release branch.
13331 Rename the section of the current branch, now that it has
13332 been cut.
13333
16dfbded
JB
133342014-01-08 Joel Brobecker <brobecker@adacore.com>
13335
13336 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13337 * version.in: Bump version to 7.7.50.DATE-cvs.
13338
22c90ac1
YQ
133392014-01-08 Yao Qi <yao@codesourcery.com>
13340
13341 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13342 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13343 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13344
d64ad97c
YQ
133452014-01-08 Yao Qi <yao@codesourcery.com>
13346
13347 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13348 return value of bfd_get_filename to symbol_file_add_from_bfd.
13349
f93ba80c
PM
133502014-01-08 Pierre Muller <muller@sourceware.org>
13351
13352 Fix PR16201.
13353 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13354 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13355 to prim_record_mininal_symbol_and_info.
13356 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13357 in call to prim_record_minimal_symbol_and_info.
13358 (read_pe_exported_syms): Set index field of section_data.
13359
a4d9ba85
AP
133602014-01-07 Andrew Pinski <apinski@cavium.com>
13361
13362 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13363 * features/aarch64.c: Regenerate.
13364
1b67eb02
AS
133652014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13366
13367 * target.c (return_null): Define.
13368 (update_current_target): Use it instead of return_zero for
13369 functions that return a pointer.
13370
5e3f4fab
EBM
133712014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13372
13373 * source.c (add_path): Fix check for duplicated paths in the previously
13374 included paths.
13375
e2616788
HK
133762014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13377
13378 * ada-lang.c: Remove duplicated include statements.
13379 * alphabsd-nat.c: Ditto.
13380 * amd64-darwin-tdep.c: Ditto.
13381 * amd64fbsd-nat.c: Ditto.
13382 * auto-load.c: Ditto.
13383 * ax-gdb.c: Ditto.
13384 * breakpoint.c: Ditto.
13385 * dbxread.c: Ditto.
13386 * fork-child.c: Ditto.
13387 * gdb_usleep.c: Ditto.
13388 * i386-darwin-tdep.c: Ditto.
13389 * i386fbsd-nat.c: Ditto.
13390 * infcmd.c: Ditto.
13391 * inferior.c: Ditto.
13392 * jv-lang.c: Ditto.
13393 * linux-nat.c: Ditto.
13394 * linux-tdep.c: Ditto.
13395 * m68kbsd-nat.c: Ditto.
13396 * m68klinux-nat.c: Ditto.
13397 * microblaze-tdep.c: Ditto.
13398 * mips-linux-tdep.c: Ditto.
13399 * mn10300-tdep.c: Ditto.
13400 * nto-tdep.c: Ditto.
13401 * opencl-lang.c: Ditto.
13402 * osdata.c: Ditto.
13403 * printcmd.c: Ditto.
13404 * regcache.c: Ditto.
13405 * remote-m32r-sdi.c: Ditto.
13406 * remote.c: Ditto.
13407 * symfile.c: Ditto.
13408 * symtab.c: Ditto.
13409 * tilegx-linux-nat.c: Ditto.
13410 * tilegx-tdep.c: Ditto.
13411 * tracepoint.c: Ditto.
13412 * valops.c: Ditto.
13413 * vaxbsd-nat.c: Ditto.
13414 * windows-nat.c: Ditto.
13415 * xtensa-tdep.c: Ditto.
13416
bd1f7788
YQ
134172014-01-07 Yao Qi <yao@codesourcery.com>
13418
13419 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13420
79301218
JB
134212014-01-07 Yao Qi <yao@codesourcery.com>
13422 Joel Brobecker <brobecker@adacore.com>
13423
13424 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13425 (pdc_write_regs): Likewise.
13426 (fetch_regs_kernel_thread): Likewise.
13427 (store_regs_kernel_thread): Likewise.
13428
134292014-01-07 Joel Brobecker <brobecker@adacore.com>
13430
13431 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13432 tagged type objects to their actual type.
13433
8e355c5d
JB
134342014-01-07 Joel Brobecker <brobecker@adacore.com>
13435
13436 * ada-valprint.c (print_field_values): Add "language" parameter.
13437 Update calls to print_field_values and print_variant_part.
13438 Pass new parameter "language" in call to val_print instead
13439 of "current_language". Replace call to ada_val_print by call
13440 to val_print.
13441 (print_variant_part): Add "language" parameter.
13442 (ada_val_print_struct_union): Update call to print_field_values.
13443
4fbf5aa5
JB
134442014-01-07 Joel Brobecker <brobecker@adacore.com>
13445
13446 * ada-valprint.c (ui_memcpy): Delete.
13447 (ada_print_floating): Update documentation. Add empty line
13448 between between function documentation and implementation.
13449 Delete variable "buffer". Use ui_file_xstrdup in place of
13450 ui_file_put. Minor adjustments following this change.
13451
71855601
JB
134522014-01-07 Joel Brobecker <brobecker@adacore.com>
13453
13454 * ada-valprint.c (ada_val_print_string): New function,
13455 extracted from ada_val_print_array.
13456 (ada_val_print_array): Replace extracted code by call
13457 to ada_val_print_string followed by a return. Move
13458 "else" branch to the function's top block.
13459
4eb27a30
JB
134602014-01-07 Joel Brobecker <brobecker@adacore.com>
13461
13462 * ada-valprint.c (ada_val_print_array): Move implementation
13463 down. Rename parameter "offset" and "val" into "offset_aligned"
13464 and "original_value" respectively. Add parameter "offset".
13465
34b27950
JB
134662014-01-07 Joel Brobecker <brobecker@adacore.com>
13467
13468 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13469 re-organizing the code. Change the "???" message printed
13470 when target type is a TYPE_CODE_UNDEF into
13471 "<ref to undefined type>".
13472
079e4591
JB
134732014-01-07 Joel Brobecker <brobecker@adacore.com>
13474
13475 * ada-valprint.c (print_record): Delete, implementation inlined...
13476 (ada_val_print_struct_union): ... here. Remove call to
13477 ada_check_typedef in inlined implementation.
13478
8004dfd1
JB
134792014-01-07 Joel Brobecker <brobecker@adacore.com>
13480
13481 * ada-valprint.c (ada_val_print_gnat_array): New function,
13482 extracted from ada_val_print_1;
13483 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13484 (ada_val_print_flt, ada_val_print_struct_union)
13485 (ada_val_print_ref): Likewise.
13486 (ada_val_print_1): Delete variables i and elttype.
13487 Replace extracted-out code by call to corresponding
13488 new functions.
13489
760a2db0
JB
134902014-01-07 Joel Brobecker <brobecker@adacore.com>
13491
13492 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13493
3a92c861
JB
134942014-01-07 Joel Brobecker <brobecker@adacore.com>
13495
13496 * ada-valprint.c (ada_val_print_1): Replace calls to
13497 ada_val_print_1 by calls to val_print.
13498
cd1630f9
JB
134992014-01-07 Joel Brobecker <brobecker@adacore.com>
13500
13501 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13502 Update calls to self accordingly. Replace calls to c_val_print
13503 by calls to val_print.
13504
bdf779a0
JB
135052014-01-07 Joel Brobecker <brobecker@adacore.com>
13506
13507 * ada-valprint.c (print_record): Delete declaration.
13508 (adjust_type_signedness, ada_val_print_1): Likewise.
13509 (ada_val_print): Move function implementation down.
13510 (print_variant_part, print_field_values, print_record):
13511 Move function implementation up.
13512
c0d48811
JB
135132014-01-07 Joel Brobecker <brobecker@adacore.com>
13514
13515 * python/py-type.c (typy_get_name): New function.
13516 (type_object_getset): Add entry for attribute "name".
13517 * NEWS: Add entry mentioning this new attribute.
13518
c26e9cbb
YQ
135192014-01-07 Yao Qi <yao@codesourcery.com>
13520
13521 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13522 statement.
13523
0cc6f43d
YQ
135242014-01-07 Yao Qi <yao@codesourcery.com>
13525
13526 * gnu-nat.c (info_port_rights): Add qualifier const to
13527 argument args.
13528
eec03155
YQ
135292014-01-07 Yao Qi <yao@codesourcery.com>
13530
13531 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13532
f04a82ef
YQ
135332014-01-07 Yao Qi <yao@codesourcery.com>
13534
13535 * gnu-nat.c (make_inf) Update declaration.
13536 (make_inf): Make it static.
13537 (inf_set_traced): Likewise.
13538 (inf_port_to_thread, inf_task_died_status): Likewise.
13539
d57dda0a
YQ
135402014-01-07 Yao Qi <yao@codesourcery.com>
13541
13542 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13543
3aa8c969
YQ
135442014-01-07 Yao Qi <yao@codesourcery.com>
13545
13546 * gnu-nat.c (_initialize_gnu_nat): Declare.
13547
94123b4f
YQ
135482014-01-07 Yao Qi <yao@codesourcery.com>
13549
13550 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13551 'enum bfd_endian'.
13552 (struct gdbarch_info) <byte_order>: Change type to
13553 'enum bfd_endian'.
13554 <byte_order_for_code>: Likewise.
13555 * gdbarch.c, gdbarch.h: Regenerated.
13556
dc81d70a
TT
135572014-01-06 Sasha Smundak <asmundak@google.com>
13558
13559 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13560
cc2f3c35
TT
135612014-01-06 Tom Tromey <tromey@redhat.com>
13562
13563 * doublest.c (convert_doublest_to_floatformat): Use const, not
13564 CONST.
13565 * somread.c (som_symtab_read): Likewise.
13566
adcf2eed
HZ
135672014-01-07 Hui Zhu <hui@codesourcery.com>
13568
13569 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13570 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13571 (gdb_bfd_fopen): Ditto.
13572 (gdb_bfd_openr): Ditto.
13573 (gdb_bfd_openw): Ditto.
13574 (gdb_bfd_openr_iovec): Ditto.
13575 (gdb_bfd_fdopenr): Ditto.
13576 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13577 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13578 with xstrdup.
13579 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13580 with xstrdup.
13581 * symfile-mem.c (symbol_file_add_from_memory): Removed
13582 gdb_bfd_stash_filename.
13583
50722198
DE
135842014-01-03 Doug Evans <dje@google.com>
13585
13586 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13587 output.
13588
2fa4b862
JB
135892014-01-01 Joel Brobecker <brobecker@adacore.com>
13590
13591 Update year range in copyright notice of all files.
13592
28498c42
JB
135932014-01-01 Joel Brobecker <brobecker@adacore.com>
13594
13595 * top.c (print_gdb_version): Set copyright year to 2014.
13596
7b6e1046
JB
135972014-01-01 Joel Brobecker <brobecker@adacore.com>
13598
13599 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13600
df96af55 13601For older changes see ChangeLog-2013.
c906108c
SS
13602\f
13603Local Variables:
13604mode: change-log
13605left-margin: 8
13606fill-column: 74
13607version-control: never
57da7796 13608coding: utf-8
c906108c 13609End:
This page took 2.219684 seconds and 4 git commands to generate.