]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
PR17431: following execs with "breakpoint always-inserted on"
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-02 Pedro Alves <palves@redhat.com>
2
3 PR breakpoints/17431
4 * breakpoint.c (update_breakpoints_after_exec): Don't create
5 overlay, longjmp, std terminate nor exception breakpoints here.
6
7 2014-10-02 Pedro Alves <palves@redhat.com>
8
9 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
10 Adjust comments.
11 * inferior.c (find_inferior_for_program_space): Give preference to
12 the current inferior.
13 * inferior.h (find_inferior_for_program_space): Update comment.
14 * progspace.c (switch_to_program_space_and_thread): Prefer the
15 current inferior if it's bound to the program space requested. If
16 the inferior found doesn't have a PID yet, don't bother looking up
17 a thread.
18 * progspace.h (switch_to_program_space_and_thread): Adjust
19 comment.
20 * thread.c (any_thread_of_process, any_live_thread_of_process):
21 Give preference to the current thread.
22
23 2014-10-01 Pedro Alves <palves@redhat.com>
24
25 * breakpoint.c (insert_bp_location): Error out if inserting a
26 software breakpoint at a read-only address.
27 * target.c (memory_xfer_check_region): New function, factored out
28 from ...
29 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
30 ULONGEST.
31 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
32 against the memory region attributes.
33
34 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
35
36 * NEWS: Announce new exit-code field in -list-thread-groups
37 output.
38 * inferior.c (exit_inferior_1): Don't clear exit code.
39 (inferior_appeared): Clear exit code.
40 * mi/mi-main.c (print_one_inferior): Add printing of the exit
41 code.
42
43 2014-10-01 Pedro Alves <palves@redhat.com>
44
45 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
46 GENERATED" along with emacs/vi read-only markers.
47 * regformats/aarch64.dat: Regenerate.
48 * regformats/arm-with-iwmmxt.dat: Regenerate.
49 * regformats/arm-with-neon.dat: Regenerate.
50 * regformats/arm-with-vfpv2.dat: Regenerate.
51 * regformats/arm-with-vfpv3.dat: Regenerate.
52 * regformats/i386/amd64-avx-linux.dat: Regenerate.
53 * regformats/i386/amd64-avx.dat: Regenerate.
54 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
55 * regformats/i386/amd64-avx512.dat: Regenerate.
56 * regformats/i386/amd64-linux.dat: Regenerate.
57 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
58 * regformats/i386/amd64-mpx.dat: Regenerate.
59 * regformats/i386/amd64.dat: Regenerate.
60 * regformats/i386/i386-avx-linux.dat: Regenerate.
61 * regformats/i386/i386-avx.dat: Regenerate.
62 * regformats/i386/i386-avx512-linux.dat: Regenerate.
63 * regformats/i386/i386-avx512.dat: Regenerate.
64 * regformats/i386/i386-linux.dat: Regenerate.
65 * regformats/i386/i386-mmx-linux.dat: Regenerate.
66 * regformats/i386/i386-mmx.dat: Regenerate.
67 * regformats/i386/i386-mpx-linux.dat: Regenerate.
68 * regformats/i386/i386-mpx.dat: Regenerate.
69 * regformats/i386/i386.dat: Regenerate.
70 * regformats/i386/x32-avx-linux.dat: Regenerate.
71 * regformats/i386/x32-avx.dat: Regenerate.
72 * regformats/i386/x32-avx512-linux.dat: Regenerate.
73 * regformats/i386/x32-avx512.dat: Regenerate.
74 * regformats/i386/x32-linux.dat: Regenerate.
75 * regformats/i386/x32.dat: Regenerate.
76 * regformats/microblaze-with-stack-protect.dat: Regenerate.
77 * regformats/mips-dsp-linux.dat: Regenerate.
78 * regformats/mips-linux.dat: Regenerate.
79 * regformats/mips64-dsp-linux.dat: Regenerate.
80 * regformats/mips64-linux.dat: Regenerate.
81 * regformats/nios2-linux.dat: Regenerate.
82 * regformats/rs6000/powerpc-32.dat: Regenerate.
83 * regformats/rs6000/powerpc-32l.dat: Regenerate.
84 * regformats/rs6000/powerpc-64l.dat: Regenerate.
85 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
86 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
87 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
88 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
89 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
90 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
91 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
92 * regformats/s390-linux32.dat: Regenerate.
93 * regformats/s390-linux32v1.dat: Regenerate.
94 * regformats/s390-linux32v2.dat: Regenerate.
95 * regformats/s390-linux64.dat: Regenerate.
96 * regformats/s390-linux64v1.dat: Regenerate.
97 * regformats/s390-linux64v2.dat: Regenerate.
98 * regformats/s390-te-linux64.dat: Regenerate.
99 * regformats/s390x-linux64.dat: Regenerate.
100 * regformats/s390x-linux64v1.dat: Regenerate.
101 * regformats/s390x-linux64v2.dat: Regenerate.
102 * regformats/s390x-te-linux64.dat: Regenerate.
103 * regformats/tic6x-c62x-linux.dat: Regenerate.
104 * regformats/tic6x-c62x.dat: Regenerate.
105 * regformats/tic6x-c64x-linux.dat: Regenerate.
106 * regformats/tic6x-c64x.dat: Regenerate.
107 * regformats/tic6x-c64xp-linux.dat: Regenerate.
108 * regformats/tic6x-c64xp.dat: Regenerate.
109
110 2014-10-01 Pedro Alves <palves@redhat.com>
111
112 * features/Makefile: Update comments.
113 (XMLTOC): List all xml files we build C files from.
114 (clean-cfiles): New rule.
115
116 2014-10-01 Pedro Alves <palves@redhat.com>
117
118 * features/i386/amd64-avx512-linux.c: Regenerate.
119 * features/i386/amd64-avx512.c: Regenerate.
120 * features/i386/x32-avx512-linux.c: Regenerate.
121 * features/i386/x32-avx512.c: Regenerate.
122
123 2014-10-01 Pedro Alves <palves@redhat.com>
124
125 * features/Makefile (WHICH): Remove arm-with-m,
126 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
127
128 2014-10-01 Pedro Alves <palves@redhat.com>
129
130 * features/Makefile (clean): New rule.
131
132 2014-10-01 Pedro Alves <palves@redhat.com>
133
134 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
135 (zmm14h): Add missing end quotes.
136
137 2014-10-01 Pedro Alves <palves@redhat.com>
138
139 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
140 * features/aarch64.c: Regenerate.
141
142 2014-09-30 Don Breazeal <donb@codesourcery.com>
143
144 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
145 code so as to work with follow_fork_inferior.
146 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
147 (inf_ttrace_create_inferior): Remove reference to
148 inf_ttrace_vfork_ppid.
149 (inf_ttrace_attach): Ditto.
150 (inf_ttrace_detach): Ditto.
151 (inf_ttrace_kill): Use current_inferior instead of
152 inf_ttrace_vfork_ppid.
153 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
154 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
155 inferior away from the parent.
156 * infrun.c (follow_fork): Call follow_fork_inferior instead of
157 target_follow_fork.
158 (follow_fork_inferior): New function.
159 (follow_inferior_reset_breakpoints): Make function static.
160 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
161 * linux-nat.c (linux_child_follow_fork): Move target-independent
162 code to infrun.c:follow_fork_inferior.
163
164 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
165
166 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
167 * gdbarch.c: Regenerate.
168 * gdbarch.h: Likewise.
169 * corelow.c (sniff_core_bfd): Drop presence check for deleted
170 gdbarch method 'regset_from_core_section'.
171 (get_core_register_section): Remove handling for the case that
172 regset == NULL and regset_from_core_section is defined.
173 (get_core_registers): Drop check for deleted method.
174 * procfs.c (procfs_do_thread_registers): Adjust comment.
175
176 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
177
178 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
179 (linux_nat_make_corefile_notes): Remove.
180 (linux_target_install_ops): Do not set target method
181 'make_corefile_notes'.
182 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
183 Remove field.
184 (linux_corefile_thread_callback): Instead of args->collect, call
185 linux_collect_thread_registers.
186 (linux_make_corefile_notes): Remove 'collect' parameter. Return
187 NULL unless there is a regset iterator.
188 (linux_make_corefile_notes_1): Remove.
189 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
190 by linux_make_corefile_notes.
191 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
192
193 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
194
195 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
196 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
197 Remove.
198 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
199
200 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
201
202 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
203 (xtensa_iterate_over_regset_sections): New.
204 (xtensa_gdbarch_init): Adjust gdbarch initialization.
205
206 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
207
208 * vax-tdep.c (vax_regset_from_core_section): Remove.
209 (vax_iterate_over_regset_sections): New.
210 (vax_gdbarch_init): Adjust gdbarch initialization.
211
212 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
213
214 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
215 (tilegx_regset_from_core_section): Remove.
216 (tilegx_iterate_over_regset_sections): New.
217 (tilegx_linux_init_abi): Adjust gdbarch initialization.
218
219 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
220
221 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
222 (sparc_iterate_over_regset_sections): New.
223 (sparc32_gdbarch_init): Adjust gdbarch initialization.
224 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
225 targets.
226 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
227 (sparc64fbsd_init_abi): Call fbsd_init_abi.
228 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
229 target method 'make_corefile_notes'.
230
231 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
232
233 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
234 'sizeof_gregset' and 'sizeof_fpregset'.
235 * sh-tdep.c (sh_regset_from_core_section): Remove.
236 (sh_iterate_over_regset_sections): New.
237 (sh_gdbarch_init): Adjust gdbarch initialization.
238 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
239 sizeof_fpregset.
240 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
241 'sizeof_gregset'.
242
243 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
244
245 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
246 (score7_linux_iterate_over_regset_sections): New.
247 (score_gdbarch_init): Adjust gdbarch initialization.
248
249 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
250
251 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
252 FreeBSD targets.
253 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
254 method 'make_corefile_notes'.
255 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
256 (ppcfbsd_regset_from_core_section): Remove.
257 (ppcfbsd_iterate_over_regset_sections): New.
258 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
259 initialization.
260 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
261 (ppcnbsd_iterate_over_regset_sections): New.
262 (ppcnbsd_init_abi): Adjust.
263 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
264 (ppcobsd_iterate_over_regset_sections): New.
265 (ppcobsd_init_abi): Adjust.
266 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
267 (rs6000_aix_iterate_over_regset_sections): New.
268 (rs6000_aix_init_osabi): Adjust.
269
270 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
271
272 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
273 (nios2_regset_from_core_section): Remove.
274 (nios2_iterate_over_regset_sections): New.
275 (nios2_linux_init_abi): Adjust gdbarch initialization.
276
277 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
278
279 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
280 (am33_iterate_over_regset_sections): New.
281 (am33_linux_init_osabi): Adjust gdbarch initialization.
282
283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
284
285 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
286 (mips_linux_iterate_over_regset_sections): New.
287 (mips_linux_init_abi): Adjust gdbarch initialization.
288 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
289 (mips64obsd_iterate_over_regset_sections): New.
290 (mips64obsd_init_abi): Adjust.
291 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
292 (mipsnbsd_iterate_over_regset_sections): New.
293 (mipsnbsd_init_abi): Adjust.
294
295 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
296
297 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
298 (m88k_iterate_over_regset_sections): New.
299 (m88k_gdbarch_init): Adjust gdbarch initialization.
300
301 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
302
303 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
304 (ia64_linux_iterate_over_regset_sections): New.
305 (ia64_linux_init_abi): Adjust gdbarch initialization.
306
307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
308
309 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
310 (m68kbsd_iterate_over_regset_sections): New.
311 (m68kbsd_init_abi): Adjust gdbarch initialization.
312 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
313 (m68k_linux_iterate_over_regset_sections): New.
314 (m68k_linux_init_abi): Adjust gdbarch initialization.
315
316 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
317
318 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
319 (m32r_linux_regset_from_core_section): Remove.
320 (m32r_linux_iterate_over_regset_sections): New.
321 (m32r_linux_init_abi): Adjust gdbarch initialization.
322
323 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
324
325 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
326 (amd64obsd_iterate_over_regset_sections): New.
327 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
328 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
329 Remove.
330 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
331 regset_from_core_section initialization.
332 * i386-tdep.c (i386_regset_from_core_section): Remove.
333 (i386_iterate_over_regset_sections): New.
334 (i386_gdbarch_init): Adjust gdbarch initialization.
335 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
336 (i386_iterate_over_regset_sections): New prototype.
337 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
338 Remove.
339 (i386obsd_aout_iterate_over_regset_sections): New.
340 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
341 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
342 targets.
343 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
344 (amd64fbsd_init_abi): Call fbsd_init_abi.
345 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
346 (i386fbsd4_init_abi): Call fbsd_init_abi.
347 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
348 target method 'make_corefile_notes'.
349 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
350
351 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
352
353 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
354 (hppa_hpux_iterate_over_regset_sections): New.
355 (hppa_hpux_init_abi): Adjust gdbarch initialization.
356 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
357 (hppa_linux_iterate_over_regset_sections): New.
358 (hppa_linux_init_abi): Adjust.
359 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
360 (hppanbsd_iterate_over_regset_sections): New.
361 (hppanbsd_init_abi): Adjust.
362 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
363 (hppaobsd_iterate_over_regset_sections): New.
364 (hppaobsd_init_abi): Adjust.
365
366 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
367
368 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
369 (frv_linux_iterate_over_regset_sections): New.
370 (frv_linux_init_abi): Adjust gdbarch initialization.
371
372 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
373
374 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
375 (armbsd_iterate_over_regset_sections): New prototype.
376 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
377 (armbsd_iterate_over_regset_sections): New.
378 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
379 initialization.
380
381 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
382
383 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
384 (alpha_linux_iterate_over_regset_sections): New.
385 (alpha_linux_init_abi): Adjust gdbarch initialization.
386 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
387 prototype.
388 (alphanbsd_iterate_over_regset_sections): New prototype.
389
390 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
391
392 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
393 Remove.
394 (aarch64_linux_iterate_over_regset_sections): New.
395 (aarch64_linux_init_abi): Adjust gdbarch initialization.
396
397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
398
399 * fbsd-tdep.c: New file.
400 * fbsd-tdep.h: New file.
401 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
402 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
403 (ALLDEPFILES): Add fbsd-tdep.c.
404
405 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
406
407 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
408 parameter.
409 * gdbarch.h: Regenerate.
410 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
411 iterator.
412 (get_core_register_section): Add parameter 'regset' and use it, if
413 set. Add parameter 'min_size' and verify the bfd section size
414 against it.
415 (get_core_registers_cb): Add parameter 'regset' and pass it to
416 get_core_register section. For the "standard" register sections
417 ".reg" and ".reg2", set an appropriate default for human_name.
418 (get_core_registers): Don't abort when the gdbarch has an iterator
419 but no regset_from_core_section. Add NULL/0 for parameters
420 'regset'/'min_size' in calls to get_core_register_section.
421 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
422 'regset' and use it instead of calling the
423 regset_from_core_section gdbarch method.
424 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
425 * i386-tdep.c (i386_supply_xstateregset)
426 (i386_collect_xstateregset, i386_xstateregset): Moved to
427 i386-linux-tdep.c.
428 (i386_regset_from_core_section): Drop handling for .reg-xfp and
429 .reg-xstate.
430 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
431 core file support only if the regset iterator hasn't been set.
432 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
433 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
434 Moved from i386-tdep.c and renamed to *_linux*.
435 (i386_linux_iterate_over_regset_sections): Add regset parameter to
436 each callback invocation. Allow any .reg-xstate size when reading
437 from a core file.
438 * amd64-tdep.c (amd64_supply_xstateregset)
439 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
440 amd64-linux-tdep.c.
441 (amd64_regset_from_core_section): Remove.
442 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
443 install an amd64-specific regset_from_core_section gdbarch method.
444 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
445 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
446 Moved from amd64-tdep.c and renamed to *_linux*.
447 (amd64_linux_iterate_over_regset_sections): Add regset parameter
448 to each callback invocation. Allow any .reg-xstate size when
449 reading from a core file.
450 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
451 (arm_linux_iterate_over_regset_sections): Add regset parameter to
452 each callback invocation.
453 (arm_linux_init_abi): No longer set the regset_from_core_section
454 gdbarch method.
455 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
456 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
457 each callback invocation.
458 (ppc_linux_init_abi): No longer set the regset_from_core_section
459 gdbarch method.
460 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
461 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
462 (s390_regset_from_core_section): Remove.
463 (s390_iterate_over_regset_sections): Add regset parameter to each
464 callback invocation.
465 (s390_gdbarch_init): No longer set the regset_from_core_section
466 gdbarch method. Drop initialization of deleted tdep fields.
467
468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
469
470 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
471 (amd64_linux_iterate_over_regset_sections): New.
472 (amd64_linux_init_abi_common): Don't install the regset section
473 list, but the new iterator in gdbarch.
474 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
475 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
476 (arm_linux_iterate_over_regset_sections): ...here. New function.
477 (arm_linux_init_abi): Set iterator instead of section list.
478 * corelow.c (get_core_registers_cb): New function, logic moved
479 from...
480 (get_core_registers): ...loop body here. Use new iterator method
481 instead of walking through the regset section list.
482 * gdbarch.sh: Remove 'core_regset_sections'. New method
483 'iterate_over_regset_sections'. New typedef
484 'iterate_over_regset_sections_cb'.
485 * gdbarch.c: Regenerate.
486 * gdbarch.h: Likewise.
487 * i386-linux-tdep.c (i386_linux_regset_sections)
488 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
489 Remove.
490 (i386_linux_iterate_over_regset_sections): New.
491 (i386_linux_init_abi): Don't choose a regset section list, but
492 install new iterator in gdbarch.
493 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
494 (linux_collect_regset_section_cb): New function, logic moved
495 from...
496 (linux_collect_thread_registers): ...loop body here. Use iterator
497 method instead of walking through list.
498 (linux_make_corefile_notes_1): Check for presence of iterator
499 method instead of regset section list.
500 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
501 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
502 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
503 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
504 (ppc_linux_iterate_over_regset_sections): ...here. New function.
505 (ppc_linux_init_abi): Don't choose from above regset section
506 lists, but install new iterator in gdbarch.
507 * regset.h (struct core_regset_section): Remove.
508 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
509 have_linux_v1, have_linux_v2, and have_tdb.
510 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
511 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
512 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
513 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
514 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
515 (s390_iterate_over_regset_sections): ...here. New function. Use
516 new tdep fields.
517 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
518 regset section lists, but install new iterator.
519
520 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
521
522 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
523
524 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
525
526 * progspace.c (print_program_space): Don't prune program spaces
527 before printing them.
528
529 2014-09-25 Pedro Alves <palves@redhat.com>
530
531 * infrun.c (user_visible_resume_ptid): Don't check
532 singlestep_breakpoints_inserted_p.
533
534 2014-09-25 Pedro Alves <palves@redhat.com>
535
536 * breakpoint.c (should_be_inserted): Add debug output.
537
538 2014-09-25 Pedro Alves <palves@redhat.com>
539
540 * infrun.c (stepping_past_instruction_at)
541 (clear_exit_convenience_vars): Point at infrun.h instead of
542 inferior.h.
543 (handle_signal_stop): Fix typo.
544
545 2014-09-24 Yao Qi <yao@codesourcery.com>
546
547 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
548 bitmask.
549
550 2014-09-22 Gary Benson <gbenson@redhat.com>
551
552 * target.c (target_stop): Updated comment.
553
554 2014-09-22 Gary Benson <gbenson@redhat.com>
555
556 * target/target.h (target_stop_ptid): Renamed as...
557 (target_stop_and_wait): New function. Updated comment.
558 All uses updated.
559 (target_continue_ptid): Renamed as...
560 (target_continue_no_signal): New function. Updated comment.
561 All uses updated.
562
563 2014-09-22 Pedro Alves <palves@redhat.com>
564
565 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
566 and "auto" merged.
567 * breakpoint.c (enum ugll_insert_mode): New enum.
568 (always_inserted_mode): Now a plain boolean.
569 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
570 (breakpoints_always_inserted_mode): Delete.
571 (breakpoints_should_be_inserted_now): New function.
572 (insert_breakpoints): Pass UGLL_INSERT to
573 update_global_location_list instead of calling
574 insert_breakpoint_locations manually.
575 (create_solib_event_breakpoint_1): New, factored out from ...
576 (create_solib_event_breakpoint): ... this.
577 (create_and_insert_solib_event_breakpoint): Use
578 create_solib_event_breakpoint_1 instead of calling
579 insert_breakpoint_locations manually.
580 (update_global_location_list): Change parameter type from boolean
581 to enum ugll_insert_mode. All callers adjusted. Adjust to use
582 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
583 (update_global_location_list_nothrow): Change parameter type from
584 boolean to enum ugll_insert_mode.
585 (_initialize_breakpoint): "breakpoint always-inserted" option is
586 now a boolean command. Update help text.
587 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
588 (breakpoints_should_be_inserted_now): New declaration.
589 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
590 Remove breakpoints_always_inserted_mode check.
591 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
592 * remote.c (remote_start_remote): Likewise.
593
594 2014-09-22 Pedro Alves <palves@redhat.com>
595
596 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
597 (insert_breakpoints): Don't call insert_breakpoint_locations here.
598 Instead, pass UGLL_INSERT to update_global_location_list.
599 (update_global_location_list): Change parameter type from boolean
600 to enum ugll_insert_mode. All callers adjusted. Adjust to use
601 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
602 (create_solib_event_breakpoint_1): New, factored out from ...
603 (create_solib_event_breakpoint): ... this.
604 (create_and_insert_solib_event_breakpoint): Use
605 create_solib_event_breakpoint_1 instead of calling
606 insert_breakpoint_locations manually.
607 (update_global_location_list): Handle UGLL_INSERT.
608
609 2014-09-22 Pedro Alves <palves@redhat.com>
610
611 * breakpoint.c (enum ugll_insert_mode): New enum.
612 (update_global_location_list)
613 (update_global_location_list_nothrow): Change parameter type from
614 boolean to enum ugll_insert_mode. All callers adjusted.
615
616 2014-09-19 Joel Brobecker <brobecker@adacore.com>
617
618 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
619 SystemTap support in GDB.
620
621 2014-09-19 Don Breazeal <donb@codesourcery.com>
622
623 * linux-nat.c (linux_handle_extended_wait): Call
624 linux_ptrace_get_extended_event.
625 (wait_lwp): Call linux_is_extended_waitstatus.
626 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
627 and linux_is_extended_waitstatus.
628 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
629 linux_ptrace_get_extended_event.
630 (linux_ptrace_get_extended_event): New function.
631 (linux_is_extended_waitstatus): New function.
632 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
633 (linux_is_extended_waitstatus): New declarations.
634
635 2014-09-19 Yao Qi <yao@codesourcery.com>
636
637 * dwarf2read.c (dwarf_decode_lines): Update declaration.
638 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
639 comments. Callers update.
640 (dwarf_decode_lines): Likewise.
641 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
642 comments. Skip the line table if 'lowpc' is greater than
643 'address'. Don't check
644 dwarf2_per_objfile->has_section_at_zero.
645
646 2014-09-18 Doug Evans <dje@google.com>
647
648 * NEWS: Mention new "producer" attribute of gdb.Symtab.
649 * python/py-symtab.c (stpy_get_producer): New function.
650 (symtab_object_getset): Add "producer" attribute.
651
652 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
653
654 PR gdb/17384
655 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
656 (do_captured_read_memory_integer): Remove.
657 (safe_read_memory_integer): Use target_read_memory directly instead
658 of catching errors in do_captured_read_memory_integer.
659
660 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
661
662 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
663 not gdb/doc.
664
665 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
666
667 * objc-lang.c (find_implementation_from_class): Remove dead code.
668
669 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
670
671 PR cli/7233
672 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
673 "fprintf_unfiltered (gdb_stdlog...)".
674
675 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
676
677 PR breakpoints/12526
678 * breakpoint.h (struct watchpoint): New fields val_bitpos and
679 val_bitsize.
680 * breakpoint.c (watch_command_1): Use these fields to retain
681 bitfield information.
682 (extract_bitfield_from_watchpoint_value): New function.
683 (watchpoint_check): Use it.
684 (update_watchpoint): Use it. Optimize the address and length of a
685 HW watchpoint pointing to a bitfield.
686 * value.h (unpack_value_bitfield): New prototype.
687 * value.c (unpack_value_bitfield): Make extern.
688
689 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
690
691 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
692 x86-dregs.o.
693 * gnu-nat.c (inf_threads): New function.
694 * gnu-nat.h (inf_threads_ftype): New typedef.
695 (inf_threads): New declaration.
696 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
697 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
698 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
699 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
700 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
701 (i386_gnu_dr_get_control): New functions.
702 (reg_addr): New structure.
703 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
704 i386 debugging register hooks.
705 * NEWS: Mention this.
706
707 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
708
709 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
710 vector data transfer instructions.
711 (arm_record_coproc_data_proc): Updated.
712
713 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
714
715 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
716 arm_record_exreg_ld_st_insn.
717 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
718 load/store insns.
719
720 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
721
722 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
723 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
724 processing instructions.
725
726 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
727
728 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
729 for advance SIMD struct ld/st insn.
730 (thumb2_record_decode_insn_handler): Replace stub handler with
731 thumb2_record_asimd_struct_ld_st.
732
733 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
734
735 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
736 for asimd, vfp and coprocessor insns.
737 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
738 and coprocessor insns.
739 (thumb2_record_coproc_insn): New function.
740 (thumb2_record_decode_insn_handler): Update coprocessor insns record
741 handlers.
742 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
743 opcode 110 insns.
744
745 2014-09-13 Doug Evans <xdje42@gmail.com>
746
747 * NEWS: Mention new "queue-signal" command.
748 * infcmd.c (queue_signal_command): New function.
749 (_initialize_infcmd): Add new queue-signal command.
750
751 2014-09-13 Doug Evans <xdje42@gmail.com>
752
753 * linux-nat.c (wait_lwp): Add debugging printf.
754 (linux_nat_wait_1): Ditto.
755
756 2014-09-12 Pedro Alves <palves@redhat.com>
757
758 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
759 (create_and_insert_solib_event_breakpoint): New functions.
760 * breakpoint.h (create_and_insert_solib_event_breakpoint)
761 (remove_solib_event_breakpoints_at_next_stop): New declarations.
762 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
763 (remove_dbx_link_breakpoint): Delete function.
764 (insert_dbx_link_bpt_in_file): Use
765 create_and_insert_solib_event_breakpoint instead of
766 deprecated_insert_raw_breakpoint.
767 (procfs_wait): Don't check whether we hit __dbx_link here.
768 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
769 here.
770 * solib-irix.c (base_breakpoint): Delete global.
771 (disable_break): Delete function.
772 (enable_break): Use create_solib_event_breakpoint
773 instead of deprecated_insert_raw_breakpoint.
774 (irix_solib_handle_event): New function.
775 (irix_solib_create_inferior_hook): Don't run the target or disable
776 the mapping-complete breakpoint here.
777 (_initialize_irix_solib): Install irix_solib_handle_event as
778 so_ops->handle_event hook.
779
780 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
781 Ulrich Weigand  <uweigand@de.ibm.com>
782
783 PR tdep/17379
784 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
785 instead of read_memory_unsigned_integer.
786
787 2014-09-12 Gary Benson <gbenson@redhat.com>
788
789 * nat/linux-waitpid.c: Include common-defs.h.
790 [GDBSERVER]: Add FIXME comment.
791 [!GDBSERVER]: Don't include defs.h or signal.h.
792 (linux_debug) [!GDBSERVER]: Remove empty block.
793
794 2014-09-12 Gary Benson <gbenson@redhat.com>
795
796 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
797 Don't include defs.h or server.h.
798
799 2014-09-12 Gary Benson <gbenson@redhat.com>
800
801 * nat/linux-btrace.c: Include common-defs.h.
802 Don't include defs.h, server.h or gdbthread.h.
803 * nat/linux-btrace.h (struct target_ops): New forward declaration.
804
805 2014-09-12 Gary Benson <gbenson@redhat.com>
806
807 * common/agent.c: Include common-defs.h.
808 Don't include defs.h or server.h.
809 * common/buffer.c: Likewise.
810 * common/common-debug.c: Likewise.
811 * common/common-utils.c: Likewise.
812 * common/errors.c: Likewise.
813 * common/filestuff.c: Likewise.
814 * common/format.c: Likewise.
815 * common/gdb_vecs.c: Likewise.
816 * common/print-utils.c: Likewise.
817 * common/ptid.c: Likewise.
818 * common/rsp-low.c: Likewise.
819 * common/signals.c: Likewise.
820 * common/vec.c: Likewise.
821 * common/xml-utils.c: Likewise.
822 * nat/linux-osdata.c: Likewise.
823 * nat/linux-procfs.c: Likewise.
824 * nat/linux-ptrace.c: Likewise.
825 * nat/mips-linux-watch.c: Likewise.
826 * target/waitstatus.c: Likewise.
827
828 2014-09-12 Tom Tromey <tromey@redhat.com>
829 Gary Benson <gbenson@redhat.com>
830
831 * common/common-regcache.h: New file.
832 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
833 * regcache.h: Include common-regcache.h.
834 (regcache_read_pc): Don't declare.
835 * regcache.c (get_thread_regcache_for_ptid): New function.
836 * nat/linux-btrace.c: Don't include regcache.h.
837 Include common-regcache.h.
838 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
839
840 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
841
842 * regcache.h (struct regset): Declare.
843
844 2014-09-11 Pedro Alves <palves@redhat.com>
845
846 PR gdb/17347
847 * main.c: Include "infrun.h".
848 (catch_command_errors, catch_command_errors_const): Wait for the
849 foreground command to complete.
850 * top.c (maybe_wait_sync_command_done): New function, factored out
851 from ...
852 (maybe_wait_sync_command_done): ... here.
853 * top.h (maybe_wait_sync_command_done): New declaration.
854
855 2014-09-11 Tom Tromey <tromey@redhat.com>
856 Gary Benson <gbenson@redhat.com>
857
858 * common/symbol.h: New file.
859 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
860 * minsyms.c (find_minimal_symbol_address): New function.
861 * common/agent.c: Include common/symbol.h.
862 [!GDBSERVER]: Don't include objfiles.h.
863 (agent_look_up_symbols): Use find_minimal_symbol_address.
864
865 2014-09-11 Gary Benson <gbenson@redhat.com>
866
867 * target/target.h (target_stop_ptid, target_continue_ptid):
868 Declare.
869 * target.c (target_stop_ptid, target_continue_ptid): New
870 functions.
871 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
872 (agent_run_command): Always use target_stop_ptid and
873 target_continue_ptid.
874
875 2014-09-11 Tom Tromey <tromey@redhat.com>
876 Gary Benson <gbenson@redhat.com>
877
878 * target/target.h: New file.
879 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
880 * target.h: Include target/target.h.
881 (target_read_memory, target_write_memory): Don't declare.
882 * target.c (target_read_uint32): New function.
883 * common/agent.c: Include target/target.h.
884 [!GDBSERVER]: Don't include target.h.
885 (helper_thread_id): Type changed to uint32_t.
886 (agent_get_helper_thread_id): Use target_read_uint32.
887 (agent_run_command): Always use target_read_memory and
888 target_write_memory.
889 (agent_capability): Type changed to uint32_t.
890 (agent_capability_check): Use target_read_uint32.
891
892 2014-09-11 Gary Benson <gbenson@redhat.com>
893
894 * common/common-debug.h (show_debug_regs): Declare.
895 * common/common-debug.c (show_debug_regs): Define.
896 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
897 all uses with show_debug_regs. Replace all uses that considered
898 debug_hw_points as a multi-value integer with straight boolean
899 uses.
900 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
901 with show_debug_regs.
902 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
903 all uses with show_debug_regs.
904 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
905 uses with show_debug_regs.
906
907 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
908
909 * findvar.c (address_from_register): Handle targets requiring
910 a special conversion routine even for plain pointer types.
911
912 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
913
914 * rs6000-nat.c (exec_one_dummy_insn): Remove.
915 (store_register): Do not call exec_one_dummy_insn.
916
917 2014-09-10 Joel Brobecker <brobecker@adacore.com>
918
919 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
920 dereference it first. Use value_enclosing_type instead of
921 value_type.
922 (ada_array_length): Likewise.
923
924 2014-09-10 Joel Brobecker <brobecker@adacore.com>
925
926 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
927 Adjust function implementation and documentation accordingly.
928 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
929 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
930 Update call to ada_value_ptr_subscript.
931
932 2014-09-10 Joel Brobecker <brobecker@adacore.com>
933
934 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
935 instead of VAL's type.
936
937 2014-09-10 Joel Brobecker <brobecker@adacore.com>
938
939 * amd64-linux-nat.c: Add <sys/uio.h> #include.
940
941 2014-09-09 Doug Evans <xdje42@gmail.com>
942
943 PR guile/17367
944 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
945 last parameter to pkg-config, not first.
946 * configure.ac: Pass --with-guile provided pkg-config path to
947 GDB_GUILE_PROGRAM_NAMES.
948 * configure: Regenerate.
949
950 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
951
952 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
953 Bertazi".
954
955 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
956
957 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
958 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
959 the list of sections determining GDB_OSABI_IRIX.
960
961 2014-09-09 James Hogan <james.hogan@imgtec.com>
962
963 * MAINTAINERS (Write After Approval): Add "James Hogan".
964
965 2014-09-09 James Hogan <james.hogan@imgtec.com>
966
967 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
968
969 2014-09-09 Joel Brobecker <brobecker@adacore.com>
970
971 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
972
973 2014-09-08 Doug Evans <xdje42@gmail.com>
974
975 PR 17247
976 * guile.c: #include <signal.h>.
977 (_initialize_guile): Block SIGCHLD while initializing Guile.
978
979 Replaces the following, which is reverted.
980
981 2014-07-26 Doug Evans <xdje42@gmail.com>
982
983 PR 17185
984 * configure.ac: Add check for header gc/gc.h.
985 Add check for function setenv.
986 * configure: Regenerate.
987 * config.in: Regenerate.
988 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
989
990 2014-09-08 Doug Evans <xdje42@gmail.com>
991
992 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
993 with named constant. Fix style of pointer comparison.
994 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
995
996 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
997
998 PR gdb/17035
999 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1000 decide whether we display the command on "show user".
1001 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1002 printing command name.
1003 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1004 * cli/cli-decode.c (cli_user_command_p): Create helper function
1005 to verify whether cmd_list_element is a user-defined command.
1006
1007 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1008
1009 PR python/17355
1010 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1011 Fix goto out of TRY_CATCH.
1012
1013 2014-09-06 Doug Evans <xdje42@gmail.com>
1014 Tom Tromey <tromey@redhat.com>
1015
1016 PR 15276
1017 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1018 $_any_caller_matches.
1019 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1020 * python/lib/gdb/function/caller_is.py: New file.
1021
1022 2014-09-06 Doug Evans <xdje42@gmail.com>
1023
1024 * infcmd.c (program_info): Fix typo.
1025
1026 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1027
1028 PR gdb/17235
1029 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1030 'number'. New variable 'has_digit'. Rewrite code to deal with
1031 subexpressions on SDT probes.
1032
1033 2014-09-04 Pedro Alves <palves@redhat.com>
1034
1035 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1036 the input is only one character long.
1037
1038 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1039
1040 PR fortran/17237
1041 * f-valprint.c (f_val_print): Specify the correct print option to
1042 use when printing integer values.
1043
1044 2014-09-04 Gary Benson <gbenson@redhat.com>
1045
1046 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1047 Remove code to cope with LWPs wrapped as PIDs.
1048 Add assertions to ensure no wrapped LWPs are passed.
1049
1050 2014-09-04 Pedro Alves <palves@redhat.com>
1051
1052 * value.c (value_ranges_copy_adjusted): New function, factored out
1053 from ...
1054 (value_contents_copy_raw): ... here.
1055 (unpack_value_bits_as_long_1): Rename back to ...
1056 (unpack_bits_as_long): ... this. Remove 'original_value' and
1057 'result' parameters. Change return type to LONGEST.
1058 (unpack_value_bits_as_long): Delete.
1059 (unpack_value_field_as_long_1): Delete.
1060 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1061 (unpack_value_bitfield): New function.
1062 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1063 (value_fetch_lazy): Use unpack_value_bitfield.
1064 * value.h (unpack_value_bits_as_long): Delete declaration.
1065
1066 2014-09-03 Sasha Smundak <asmundak@google.com>
1067
1068 * python/py-frame.c (frapy_read_register): New function.
1069
1070 2014-09-03 James Hogan <james.hogan@imgtec.com>
1071
1072 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1073 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1074
1075 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1076
1077 PR python/16699
1078 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1079 function.
1080 (add_cmd): Set "completer_handle_brkchars" to NULL.
1081 * cli/cli-decode.h (struct cmd_list_element)
1082 <completer_handle_brkchars>: New field.
1083 * command.h (completer_ftype_void): New typedef.
1084 (set_cmd_completer_handle_brkchars): New prototype.
1085 * completer.c (set_gdb_completion_word_break_characters): New
1086 function.
1087 (complete_line_internal): Call "completer_handle_brkchars"
1088 callback from command.
1089 * completer.h: Include "command.h".
1090 (set_gdb_completion_word_break_characters): New prototype.
1091 * python/py-cmd.c (cmdpy_completer_helper): New function.
1092 (cmdpy_completer_handle_brkchars): New function.
1093 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1094 (cmdpy_init): Set completer_handle_brkchars to
1095 cmdpy_completer_handle_brkchars.
1096
1097 2014-09-03 Gary Benson <gbenson@redhat.com>
1098
1099 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1100 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1101 Loop conditions changed to equivalent form.
1102 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1103 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1104 ALL_DEBUG_ADDRESS_REGISTERS.
1105
1106 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1107
1108 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1109 description fix.
1110
1111 2014-09-02 Doug Evans <dje@google.com>
1112
1113 * typeprint.c (find_global_typedef): Fix comment.
1114
1115 2014-09-02 Gary Benson <gbenson@redhat.com>
1116
1117 * i386-nat.h: Renamed as...
1118 * x86-nat.h: New file. All type, function and variable name
1119 prefixes changed from "i386_" to "x86_". All references updated.
1120 * i386-nat.c: Renamed as...
1121 * x86-nat.c: New file. All type, function and variable name
1122 prefixes changed from "i386_" to "x86_". All references updated.
1123 * common/i386-xstate.h: Renamed as...
1124 * common/x86-xstate.h: New file. All type, function and variable
1125 name prefixes changed from "i386_" to "x86_". All references
1126 updated.
1127 * nat/i386-cpuid.h: Renamed as...
1128 * nat/x86-cpuid.h: New file. All type, function and variable name
1129 prefixes changed from "i386_" to "x86_". All references updated.
1130 * nat/i386-gcc-cpuid.h: Renamed as...
1131 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1132 name prefixes changed from "i386_" to "x86_". All references
1133 updated.
1134 * nat/i386-dregs.h: Renamed as...
1135 * nat/x86-dregs.h: New file. All type, function and variable name
1136 prefixes changed from "i386_" to "x86_". All references updated.
1137 * nat/i386-dregs.c: Renamed as...
1138 * nat/x86-dregs.c: New file. All type, function and variable name
1139 prefixes changed from "i386_" to "x86_". All references updated.
1140
1141 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1142
1143 * varobj.c (_initialize_varobj): Move to the end of file.
1144
1145 2014-08-29 Gary Benson <gbenson@redhat.com>
1146
1147 * common/common-exceptions.h: New file.
1148 * common/common-exceptions.c: Likewise.
1149 * Makefile.in (SFILES): Add common/common-exceptions.c.
1150 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1151 (COMMON_OBS): Add common-exceptions.o.
1152 (common-exceptions.o): New rule.
1153 * exceptions.h (common-exceptions.h): Include.
1154 (gdb_setjmp.h): Do not include.
1155 (return_reason): Moved to common-exceptions.h.
1156 (enum return_reason): Likewise.
1157 (RETURN_MASK): Likewise.
1158 (typedef return_mask): Likewise.
1159 (enum errors): Likewise.
1160 (struct gdb_exception): Likewise.
1161 (exceptions_state_mc_init): Likewise.
1162 (exceptions_state_mc_action_iter): Likewise.
1163 (exceptions_state_mc_action_iter_1): Likewise.
1164 (TRY_CATCH): Likewise.
1165 (throw_exception): Likewise.
1166 (throw_verror): Likewise.
1167 (throw_vquit): Likewise.
1168 (throw_error): Likewise.
1169 (throw_quit): Likewise.
1170 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1171 (enum catcher_action): Likewise.
1172 (struct catcher): Likewise.
1173 (current_catcher): Likewise.
1174 (catcher_list_size): Likewise.
1175 (exceptions_state_mc_init): Likewise.
1176 (catcher_pop): Likewise.
1177 (exceptions_state_mc): Likewise.
1178 (exceptions_state_mc_action_iter): Likewise.
1179 (exceptions_state_mc_action_iter_1): Likewise.
1180 (throw_exception): Likewise.
1181 (exception_messages): Likewise.
1182 (exception_messages_size): Likewise.
1183 (throw_it): Likewise.
1184 (throw_verror): Likewise.
1185 (throw_vquit): Likewise.
1186 (throw_error): Likewise.
1187 (throw_quit): Likewise.
1188 (prepare_to_throw_exception): New function.
1189
1190 2014-08-29 Gary Benson <gbenson@redhat.com>
1191
1192 * common/gdb_setjmp.h: New file.
1193 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1194 * configure.ac: Move sigsetjmp check...
1195 * common/common.m4: ...here.
1196 * configure: Regenerate.
1197 * cp-support.c (SIGJMP_BUF): Delete.
1198 (SIGSETJMP): Likewise.
1199 (SIGLONGJMP): Likewise.
1200 * exceptions.h (gdb_setjmp.h): Include.
1201 (setjmp.h): Do not include.
1202 (EXCEPTIONS_SIGJMP_BUF): Delete.
1203 (EXCEPTIONS_SIGSETJMP): Likewise.
1204 (EXCEPTIONS_SIGLONGJMP): Likewise.
1205 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1206 from gdb_setjmp.h.
1207 * exceptions.c: Likewise.
1208
1209 2014-08-29 Gary Benson <gbenson@redhat.com>
1210
1211 * cleanups.h: Moved to...
1212 * common/cleanups.h: New file.
1213 * cleanups.c: Moved to...
1214 * common/cleanups.c: New file. Include common-defs.h and
1215 cleanups.h. Do not include defs.h.
1216 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1217 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1218 (cleanups.o): New rule.
1219
1220 2014-08-29 Gary Benson <gbenson@redhat.com>
1221
1222 * common/errors.h (internal_warning): New declaration.
1223 (internal_vwarning): Likewise.
1224 * common/errors.c (internal_warning): New function.
1225 * utils.h (internal_warning): Don't declare.
1226 (internal_vwarning): Likewise.
1227 * utils.c (internal_warning): Removed.
1228
1229 2014-08-29 Gary Benson <gbenson@redhat.com>
1230
1231 * main.c (captured_main): Use warning during startup.
1232 Prefix startup warning messages with command name.
1233
1234 2014-08-29 Gary Benson <gbenson@redhat.com>
1235
1236 * main.c (captured_main): Handle usage errors with error.
1237
1238 2014-08-29 Gary Benson <gbenson@redhat.com>
1239
1240 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1241 exit pair with a call to error. Wrap the message with _().
1242
1243 2014-08-29 Gary Benson <gbenson@redhat.com>
1244
1245 * main.c (captured_main): Replace a fprintf/exit
1246 pair with a call to error. Wrap the message with _().
1247
1248 2014-08-29 Gary Benson <gbenson@redhat.com>
1249
1250 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1251 pairs with calls to error. Wrap the message with _().
1252
1253 2014-08-29 Gary Benson <gbenson@redhat.com>
1254
1255 * utils.c (vwarning): Protect calls to target_terminal_ours
1256 and wrap_here.
1257
1258 2014-08-29 Gary Benson <gbenson@redhat.com>
1259
1260 * exceptions.c (print_flush): Protect calls to
1261 target_terminal_ours and wrap_here.
1262
1263 2014-08-29 Gary Benson <gbenson@redhat.com>
1264
1265 * utils.h (filtered_printing_initialized): New declaration.
1266 * utils.c (abort_with_message): New function.
1267 (internal_vproblem): Use abort_with_message for first level
1268 recursive internal problems, and if gdb_stderr is not set up.
1269 Protect calls to target_terminal_ours, begin_line and query.
1270
1271 2014-08-28 Doug Evans <dje@google.com>
1272
1273 * symtab.c (in_prologue): Move definition to better spot.
1274 (skip_prologue_using_sal): Ditto.
1275
1276 2014-08-28 Doug Evans <dje@google.com>
1277
1278 * symtab.c (find_function_start_sal): Move definition to better spot.
1279
1280 2014-08-28 Yao Qi <yao@codesourcery.com>
1281
1282 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1283 found_stack_adjust in forward scan. Remove condition check
1284 on found_stack_adjust which is always true. Indent the code.
1285
1286 2014-08-28 Yao Qi <yao@codesourcery.com>
1287
1288 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1289 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1290 (dwarf_decode_lines): Remove argument
1291 want_line_info. Remove condition check on want_line_info.
1292 Callers update.
1293
1294 2014-08-27 Doug Evans <dje@google.com>
1295
1296 * dwarf2read.c (dwarf_record_line): Fix typo.
1297
1298 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1299
1300 * target.h (struct target_ops::to_terminal_save_ours): Remove
1301 declaration.
1302 (target_terminal_save_ours): Remove macro.
1303 * target-delegates.c: Regenerate.
1304 * inf-child.c (inf_child_target): Don't set the nonexistent
1305 field to_terminal_save_ours.
1306 * inferior.h (child_terminal_save_ours): Remove declaration.
1307 * terminal.h (gdb_save_tty_state): New declaration.
1308 * inflow.c (child_terminal_save_ours): Rename to ...
1309 (gdb_save_tty_state): ... this.
1310 * tui/tui.c: Include terminal.h.
1311 (tui_enable): Use gdb_save_tty_state instead of
1312 target_terminal_save_ours.
1313 (tui_disable): Likewise.
1314
1315 2014-08-25 Doug Evans <dje@google.com>
1316
1317 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1318 Pass NULL instead of 0 for context pointer.
1319
1320 2014-08-25 Yao Qi <yao@codesourcery.com>
1321
1322 * dwarf2read.c: Fix grammatical error.
1323
1324 2014-08-24 Yao Qi <yao@codesourcery.com>
1325
1326 * dwarf2read.c (scan_partial_symbols): Update comments.
1327 Rename argument 'need_pc' with 'set_addrmap'.
1328 (add_partial_namespace): Rename argument 'need_pc' with
1329 'set_addrmap'.
1330 (add_partial_module): Likewise.
1331 (add_partial_subprogram): Likewise. Update comments.
1332 (dwarf2_name): Fix typo.
1333
1334 2014-08-22 Doug Evans <dje@google.com>
1335
1336 PR 17276
1337 * dwarf2read.c (dwarf_record_line_p): New function.
1338 (dwarf_decode_lines_1): Ignore subsequent line number entries
1339 for the same line if any entry had a non-zero discriminator.
1340
1341 2014-08-22 Doug Evans <dje@google.com>
1342
1343 * buildsym.h (record_line_ftype): New typedef.
1344 (record_line): Use it.
1345 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1346 (dwarf_decode_lines_1): Call them.
1347
1348 2014-08-22 Yao Qi <yao@codesourcery.com>
1349
1350 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1351 (ctf_end): Remove code.
1352
1353 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1356 (linux_make_corefile_notes): call update_thread_list, protected against
1357 exceptions.
1358
1359 2014-08-21 Pedro Alves <palves@redhat.com>
1360
1361 * infcmd.c (attach_command): Remove comment.
1362
1363 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1364
1365 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1366 unsigned LONGEST to ULONGEST.
1367
1368 2014-08-20 Pedro Alves <palves@redhat.com>
1369
1370 * Makefile.in (check-read1): New rule.
1371
1372 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1373
1374 * value.c (value_from_contents_and_address): Strip resolved_type's
1375 typedef layers before checking its TYPE_DATA_LOCATION.
1376
1377 2014-08-20 Pedro Alves <palves@redhat.com>
1378
1379 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1380
1381 2014-08-20 Yao Qi <yao@codesourcery.com>
1382
1383 * amd64-tdep.c (amd64_classify): Add a blank line after the
1384 example. Move "*/" to a new line.
1385 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1386 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1387 * dwarf2read.c (psymtab_include_file_name): Likewise.
1388
1389 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1390 Pedro Alves <palves@redhat.com>
1391
1392 PR symtab/14604
1393 PR symtab/14605
1394 * ada-lang.c (coerce_unspec_val_to_type): Use
1395 value_contents_copy_raw.
1396 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1397 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1398 * cp-valprint.c (cp_print_value_fields): Let the common printing
1399 code handle optimized out values.
1400 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1401 * d-valprint.c (dynamic_array_type): Use
1402 value_bits_any_optimized_out.
1403 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1404 check_any_valid fields.
1405 (check_pieced_value_bits): Delete and inline ...
1406 (check_pieced_synthetic_pointer): ... here.
1407 (check_pieced_value_validity): Delete.
1408 (check_pieced_value_invalid): Delete.
1409 (pieced_value_funcs): Remove check_validity and check_any_valid
1410 fields.
1411 (read_pieced_value): Use mark_value_bits_optimized_out.
1412 (write_pieced_value): Switch to use
1413 mark_value_bytes_optimized_out.
1414 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1415 of assuming the whole value is optimized out.
1416 * findvar.c (read_frame_register_value): Remove special handling
1417 of optimized out registers.
1418 (value_from_register): Use mark_value_bytes_optimized_out.
1419 * frame-unwind.c (frame_unwind_got_optimized): Use
1420 mark_value_bytes_optimized_out.
1421 * jv-valprint.c (java_value_print): Adjust.
1422 (java_print_value_fields): Let the common printing code handle
1423 optimized out values.
1424 * mips-tdep.c (mips_print_register): Remove special handling of
1425 optimized out registers.
1426 * opencl-lang.c (lval_func_check_validity): Delete.
1427 (lval_func_check_any_valid): Delete.
1428 (opencl_value_funcs): Remove check_validity and check_any_valid
1429 fields.
1430 * p-valprint.c (pascal_object_print_value_fields): Let the common
1431 printing code handle optimized out values.
1432 * stack.c (read_frame_arg): Remove special handling of optimized
1433 out values. Fetch both VAL and ENTRYVAL before comparing
1434 contents. Adjust to value_available_contents_eq rename.
1435 * valprint.c (valprint_check_validity)
1436 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1437 (val_print_array_elements): Adjust.
1438 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1439 (value_bits_any_optimized_out): New function.
1440 (value_entirely_covered_by_range_vector): New function, factored
1441 out from value_entirely_unavailable.
1442 (value_entirely_unavailable): Reimplement.
1443 (value_entirely_optimized_out): New function.
1444 (insert_into_bit_range_vector): New function, factored out from
1445 mark_value_bits_unavailable.
1446 (mark_value_bits_unavailable): Reimplement.
1447 (struct ranges_and_idx): New struct.
1448 (find_first_range_overlap_and_match): New function, factored out
1449 from value_available_contents_bits_eq.
1450 (value_available_contents_bits_eq): Rename to ...
1451 (value_contents_bits_eq): ... this. Check both unavailable
1452 contents and optimized out contents.
1453 (value_available_contents_eq): Rename to ...
1454 (value_contents_eq): ... this.
1455 (allocate_value_lazy): Remove reference to the old optimized_out
1456 boolean.
1457 (allocate_optimized_out_value): Use
1458 mark_value_bytes_optimized_out.
1459 (require_not_optimized_out): Adjust to check whether the
1460 optimized_out vec is empty.
1461 (ranges_copy_adjusted): New function, factored out from
1462 value_contents_copy_raw.
1463 (value_contents_copy_raw): Also copy the optimized out ranges.
1464 Assert the destination ranges aren't optimized out.
1465 (value_contents_copy): Update comment, remove call to
1466 require_not_optimized_out.
1467 (value_contents_equal): Adjust to check whether the optimized_out
1468 vec is empty.
1469 (set_value_optimized_out, value_optimized_out_const): Delete.
1470 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1471 New functions.
1472 (value_entirely_optimized_out, value_bits_valid): Delete.
1473 (value_copy): Take a VEC copy of the 'optimized_out' field.
1474 (value_primitive_field): Remove special handling of optimized out.
1475 (value_fetch_lazy): Assert that lazy values have no unavailable
1476 regions. Use value_bits_any_optimized_out. Remove some special
1477 handling for optimized out values.
1478 * value.h: Add intro comment about <optimized out> and
1479 <unavailable>.
1480 (struct lval_funcs): Remove check_validity and check_any_valid
1481 fields.
1482 (set_value_optimized_out, value_optimized_out_const): Remove.
1483 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1484 New declarations.
1485 (value_bits_any_optimized_out): New declaration.
1486 (value_bits_valid): Delete declaration.
1487 (value_available_contents_eq): Rename to ...
1488 (value_contents_eq): ... this, and extend comments.
1489
1490 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1491
1492 Fix -fsanitize=address on unreadable inferior strings.
1493 * valprint.c (val_print_string): Fix access before BUFFER.
1494
1495 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1496
1497 * target.c (target_struct_size): Remove.
1498 (target_struct_allocsize): Remove.
1499 (DEFAULT_ALLOCSIZE): Remove.
1500 (target_ops_p): New typedef.
1501 (DEF_VEC_P (target_ops_p)): New vector type.
1502 (target_structs): Change type to VEC (target_ops_p).
1503 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1504 (find_default_run_target): Rewrite for loop following changes to
1505 target_structs.
1506
1507 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1508
1509 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1510 Adjust code accordingly. Adjust function description comment.
1511
1512 2014-08-19 Yao Qi <yao@codesourcery.com>
1513
1514 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1515 types.
1516
1517 2014-08-19 Alan Modra <amodra@gmail.com>
1518
1519 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1520 * config.in: Regenerate.
1521 * configure: Regenerate.
1522
1523 2014-08-19 Tom Tromey <tromey@redhat.com>
1524 Gary Benson <gbenson@redhat.com>
1525
1526 * common/common-debug.h: New file.
1527 * common/common-debug.c: Likewise.
1528 * debug.c: Likewise.
1529 * Makefile.in (SFILES): Add common/common-debug.c.
1530 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1531 (COMMON_OBS): Add common-debug.o and debug.o.
1532 (common-debug.o): New rule.
1533 * common/common-defs.h: Include common-debug.h.
1534 * common/agent.c (debug_agent_printf): New function.
1535 (DEBUG_AGENT): Redefine.
1536 * nat/i386-dregs.c (debug_printf): Undefine.
1537
1538 2014-08-19 Gary Benson <gbenson@redhat.com>
1539
1540 * common/common-defs.h: Include print-utils.h.
1541 * utils.h: Do not include print-utils.h.
1542
1543 2014-08-19 Tom Tromey <tromey@redhat.com>
1544 Gary Benson <gbenson@redhat.com>
1545
1546 * common/common-types.h: New file.
1547 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1548 * common/common-defs.h: Include common-types.h.
1549 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1550 (ULONGEST): Remove.
1551
1552 2014-08-19 Tom Tromey <tromey@redhat.com>
1553 Gary Benson <gbenson@redhat.com>
1554
1555 * common/errors.h: New file.
1556 * common/errors.c: Likewise.
1557 * Makefile.in (SFILES): Add common/errors.c.
1558 (HFILES_NO_SRCDIR): Add common/errors.h.
1559 (COMMON_OBS): Add errors.o.
1560 (errors.o): New rule.
1561 * common/common-defs.h: Include errors.h.
1562 * utils.h (perror_with_name, error, verror, warning, vwarning):
1563 Don't declare.
1564 * common/common-utils.h: (malloc_failure, internal_error):
1565 Likewise.
1566
1567 2014-08-19 Gary Benson <gbenson@redhat.com>
1568
1569 * utils.c (internal_vproblem): Always print the message.
1570
1571 2014-08-18 Doug Evans <dje@google.com>
1572
1573 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1574
1575 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1576
1577 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1578 Return 0 if TYPE is dynamic.
1579 (print_range): Add handling of dynamic ranges.
1580
1581 2014-08-18 Keven Boell <keven.boell@intel.com>
1582 Joel Brobecker <brobecker@adacore.com>
1583
1584 * gdbtypes.h (struct main_type): Add field "data_location".
1585 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1586 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1587 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1588 a dynamic data location.
1589 (resolve_dynamic_type): Add DW_AT_data_location handling.
1590 (copy_recursive, copy_type): Copy the data_location information
1591 when present.
1592 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1593 * value.c (value_from_contents_and_address): Add
1594 DW_AT_data_location handling.
1595
1596 2014-08-18 Keven Boell <keven.boell@intel.com>
1597 Joel Brobecker <brobecker@adacore.com>
1598
1599 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1600 field "get_object_address".
1601 * dwarf2expr.c (execute_stack_op): Add handling for
1602 DW_OP_push_object_address.
1603 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1604 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1605 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1606 (dwarf_expr_get_obj_addr): New function.
1607 (dwarf_expr_ctx_funcs): Add get_object_address field.
1608 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1609 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1610 (dwarf2_evaluate_property): Add parameter "address". Use it.
1611 (needs_get_obj_addr): New function.
1612 (needs_frame_ctx_funcs): Add get_object_address field.
1613 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1614 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1615 (resolve_dynamic_array): Likewise.
1616
1617 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1618
1619 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1620 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1621 fixed value for records and unions for which some GNAT encodings
1622 are present.
1623
1624 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1625
1626 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1627 rewrite to avoid "else if" and "else" constructs. Should be
1628 a no-op in practice.
1629
1630 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1631
1632 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1633 of lexical block.
1634
1635 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1636
1637 PR c++/17132
1638 * eval.c: Update all calls to find_overload_match.
1639 * valarith.c: Likewise.
1640 (value_user_defined_cpp_op, value_user_defined_op): New
1641 argument NOSIDE. Update all callers.
1642 * valops.c (find_overload_match): New argument NOSIDE.
1643 * value.h (find_overload_match): Update signature.
1644
1645 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1646
1647 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1648 'items' methods instead of 'iteritems' method on dictionaries.
1649
1650 2014-08-15 Doug Evans <dje@google.com>
1651
1652 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1653 closer to use.
1654
1655 2014-08-15 Doug Evans <dje@google.com>
1656
1657 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1658
1659 2014-08-15 Doug Evans <dje@google.com>
1660
1661 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1662
1663 2014-08-15 Doug Evans <dje@google.com>
1664
1665 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1666 unused.
1667
1668 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1669
1670 * dcache.h: Include target.h, to avoid compile time warnings.
1671
1672 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1673
1674 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1675 frame_info" partial declaration.
1676 * gdbarch.h: Regenerate.
1677
1678 2014-08-15 Yao Qi <yao@codesourcery.com>
1679
1680 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1681 Add parameter 'decode_for_pst_p'. Callers update.
1682
1683 2014-08-13 Yao Qi <yao@codesourcery.com>
1684
1685 PR build/17104
1686 * configure.ac: Use local variable 'pos'.
1687 * configure: Regenerated.
1688
1689 2014-08-11 Doug Evans <dje@google.com>
1690
1691 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1692 message, it is redundant with "Reading symbols from ..." message.
1693
1694 2014-08-10 Doug Evans <xdje42@gmail.com>
1695
1696 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1697
1698 2014-08-09 Yao Qi <yao@codesourcery.com>
1699
1700 PR remote/9053
1701 * remote.c (remote_xfer_partial): Remove dead code.
1702
1703 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1704
1705 * ia64-linux-tdep.c: Include "regset.h".
1706 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1707 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1708 (ia64_linux_supply_fpregset): New function.
1709 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1710 (ia64_linux_regset_from_core_section): New function.
1711 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1712 method.
1713
1714 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1715
1716 * m68klinux-tdep.c: Include "regset.h".
1717 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1718 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1719 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1720 (m68k_linux_regset_from_core_section): New function.
1721 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1722 method.
1723
1724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1725
1726 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1727 function. Move logic to...
1728 (tilegx_linux_regmap): ... this new register map.
1729 (tilegx_linux_regset): Refer to register map, replace supply
1730 method by regcache_supply_regset, and add collect method.
1731 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1732 TILEGX_FIRST_EASY_REGNUM.
1733
1734 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1735
1736 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1737 that calls regcache_supply_regset and handles the EPC register
1738 separately. Move main logic to...
1739 (score7_linux_gregmap): ... this new register map.
1740 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1741 (score7_linux_gregset): Refer to register map. Add collect method.
1742 (score7_linux_regset_from_core_section): Replace
1743 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1744 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1745 (struct regset): Delete unused forward declaraction.
1746 (struct pt_regs): Delete structure definition.
1747 (elf_gregset_t): Delete typedef.
1748
1749 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1750
1751 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1752 (nios2_core_regset): Add collect method.
1753
1754 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1755
1756 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1757 platform-independent and don't write to read-only input buffer.
1758 (m32r_linux_collect_gregset): New function.
1759 (m32r_linux_gregset): Add collect method.
1760
1761 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1762
1763 * hppa-linux-tdep.c (greg_map): Rename to...
1764 (hppa_linux_gregmap): ... this. Also convert to
1765 regcache_map_entry format.
1766 (hppa_linux_supply_regset): Delete function.
1767 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1768 (hppa_linux_fpregmap): ... this new register map.
1769 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1770 register map, replace supply method by regcache_supply_regset, and
1771 add collect method regcache_collect_regset.
1772
1773 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1774
1775 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1776 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1777 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1778 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1779 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1780 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1781 (frv_linux_supply_gregset): Replace main logic by call to
1782 regcache_supply_regset, but keep clearing gr32-gr63.
1783 (frv_linux_supply_fpregset): Delete function.
1784 (frv_linux_gregset): Refer to appropriate register map and add
1785 regcache_collect_regset as the collect method.
1786 (frv_linux_fpregset): Likewise. Also exchange the supply method
1787 by regcache_supply_regset.
1788
1789 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1790
1791 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1792 by call to alpha_supply_int_regs.
1793 (alpha_linux_collect_gregset): New function.
1794 (alpha_linux_supply_fpregset): Replace logic by call to
1795 alpha_supply_fp_regs.
1796 (alpha_linux_collect_fpregset): New function.
1797 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1798
1799 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1800
1801 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1802 by call to regcache_collect_regset.
1803 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1804 instead of aarch64_linux_supply_gregset/_fpregset.
1805 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1806 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1807 header file instead.
1808 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1809 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1810 functions. Move logic to ...
1811 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1812 register maps.
1813 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1814 refer to new register maps, replace *_regset_from_core by
1815 regcache_supply_regset, and also use regcache_collect_regset.
1816 * aarch64-linux-tdep.h: Include "regset.h".
1817 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1818 Delete prototypes.
1819 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1820 macros, moved from C source file.
1821 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1822 variable declarations.
1823
1824 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1825
1826 * s390-linux-nat.c: Include "regset.h".
1827 (regmap_gregset): Delete macro.
1828 (s390_64_regmap_gregset): New register map for
1829 regcache_supply/_collect_regset.
1830 (s390_64_gregset): New regset.
1831 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1832 (regmap_fpregset): Delete macro.
1833 (s390_native_supply, s390_native_collect): Delete functions.
1834 (supply_gregset, fill_gregset): Replace s390-specific regmap
1835 handling by a call to regcache_supply/_collect_regset.
1836 (supply_fpregset, fill_fpregset): Call regcache_supply/
1837 _collect_regset instead of s390_native_supply/_collect.
1838 (fetch_regset, store_regset): Likewise. Also change the last
1839 parameter to a regset instead of a regmap.
1840 (s390_linux_fetch_inferior_registers)
1841 (390_linux_store_inferior_registers): Adjust last parameter in
1842 calls to fetch_regset and store_regset.
1843 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1844 (s390_gregmap): ... this. Also make static const and convert to
1845 regcache_map_entry format.
1846 (s390x_regmap_gregset): Delete.
1847 (s390_regmap_fpregset): Rename to...
1848 (s390_fpregmap): ... this. Make static const and convert to
1849 regcache_map_entry format.
1850 (s390_regmap_upper, s390_regmap_last_break)
1851 (s390x_regmap_last_break, s390_regmap_system_call)
1852 (s390_regmap_tdb): Likewise.
1853 (s390_supply_regset, s390_collect_regset): Remove functions.
1854 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1855 s390_supply_regset.
1856 (s390_gregset, s390_fpregset, s390_upper_regset)
1857 (s390_last_break_regset, s390x_last_break_regset)
1858 (s390_system_call_regset, s390_tdb_regset): Make global and
1859 replace s390_supply/_collect_regset by regcache_supply/
1860 _collect_regset.
1861 (s390x_gregset): Delete.
1862 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1863 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1864 (s390_regmap_fpregset, s390_regmap_last_break)
1865 (s390x_regmap_last_break, s390_regmap_system_call)
1866 (s390_regmap_tdb): Delete global variable declarations.
1867 (s390_gregset, s390_fpregset, s390_last_break_regset)
1868 (s390x_last_break_regset, s390_system_call_regset)
1869 (s390_tdb_regset): New global variable declarations.
1870
1871 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1872
1873 * regcache.c: Include "regset.h".
1874 (regcache_transfer_regset): New local function.
1875 (regcache_supply_regset, regcache_collect_regset): New functions.
1876 * regcache.h (struct regcache_map_entry): New structure.
1877 (REGCACHE_MAP_SKIP): New enum value.
1878 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1879
1880 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1881
1882 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1883 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1884 (ppc_linux_collect_gregset ): Likewise.
1885 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1886 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1887 (ppc_collect_vrregset): Likewise.
1888 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1889 Likewise.
1890
1891 2014-08-07 Yao Qi <yao@codesourcery.com>
1892
1893 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1894 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1895 * remote.c (remote_read_bytes): Likewise.
1896
1897 2014-08-07 Yao Qi <yao@codesourcery.com>
1898
1899 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1900
1901 2014-08-07 Yao Qi <yao@codesourcery.com>
1902
1903 PR remote/17230
1904 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1905 TARGET_XFER_OK instead of 0.
1906
1907 2014-08-07 Gary Benson <gbenson@redhat.com>
1908
1909 * common/common-defs.h: Include errno.h.
1910 * defs.h: Do not include errno.h.
1911 * ada-typeprint.c: Likewise.
1912 * c-typeprint.c: Likewise.
1913 * core-regset.c: Likewise.
1914 * corefile.c: Likewise.
1915 * corelow.c: Likewise.
1916 * event-loop.c: Likewise.
1917 * f-typeprint.c: Likewise.
1918 * gnu-nat.c: Likewise.
1919 * go32-nat.c: Likewise.
1920 * i386gnu-nat.c: Likewise.
1921 * m2-typeprint.c: Likewise.
1922 * nat/linux-btrace.c: Likewise.
1923 * p-typeprint.c: Likewise.
1924 * procfs.c: Likewise.
1925 * remote-sim.c: Likewise.
1926 * rs6000-nat.c: Likewise.
1927 * target.c: Likewise.
1928 * typeprint.c: Likewise.
1929 * ui-file.c: Likewise.
1930 * valops.c: Likewise.
1931 * valprint.c: Likewise.
1932
1933 2014-08-07 Gary Benson <gbenson@redhat.com>
1934
1935 * common/common-defs.h: Include string.h.
1936 * aarch64-tdep.c: Do not include string.h.
1937 * ada-exp.y: Likewise.
1938 * ada-lang.c: Likewise.
1939 * ada-lex.l: Likewise.
1940 * ada-typeprint.c: Likewise.
1941 * ada-valprint.c: Likewise.
1942 * aix-thread.c: Likewise.
1943 * alpha-linux-tdep.c: Likewise.
1944 * alpha-mdebug-tdep.c: Likewise.
1945 * alpha-nat.c: Likewise.
1946 * alpha-osf1-tdep.c: Likewise.
1947 * alpha-tdep.c: Likewise.
1948 * alphanbsd-tdep.c: Likewise.
1949 * amd64-dicos-tdep.c: Likewise.
1950 * amd64-linux-tdep.c: Likewise.
1951 * amd64-nat.c: Likewise.
1952 * amd64-sol2-tdep.c: Likewise.
1953 * amd64fbsd-tdep.c: Likewise.
1954 * amd64obsd-tdep.c: Likewise.
1955 * arch-utils.c: Likewise.
1956 * arm-linux-nat.c: Likewise.
1957 * arm-linux-tdep.c: Likewise.
1958 * arm-tdep.c: Likewise.
1959 * arm-wince-tdep.c: Likewise.
1960 * armbsd-tdep.c: Likewise.
1961 * armnbsd-nat.c: Likewise.
1962 * armnbsd-tdep.c: Likewise.
1963 * armobsd-tdep.c: Likewise.
1964 * avr-tdep.c: Likewise.
1965 * ax-gdb.c: Likewise.
1966 * ax-general.c: Likewise.
1967 * bcache.c: Likewise.
1968 * bfin-tdep.c: Likewise.
1969 * breakpoint.c: Likewise.
1970 * build-id.c: Likewise.
1971 * buildsym.c: Likewise.
1972 * c-exp.y: Likewise.
1973 * c-lang.c: Likewise.
1974 * c-typeprint.c: Likewise.
1975 * c-valprint.c: Likewise.
1976 * charset.c: Likewise.
1977 * cli-out.c: Likewise.
1978 * cli/cli-cmds.c: Likewise.
1979 * cli/cli-decode.c: Likewise.
1980 * cli/cli-dump.c: Likewise.
1981 * cli/cli-interp.c: Likewise.
1982 * cli/cli-logging.c: Likewise.
1983 * cli/cli-script.c: Likewise.
1984 * cli/cli-setshow.c: Likewise.
1985 * cli/cli-utils.c: Likewise.
1986 * coffread.c: Likewise.
1987 * common/agent.c: Likewise.
1988 * common/buffer.c: Likewise.
1989 * common/buffer.h: Likewise.
1990 * common/common-utils.c: Likewise.
1991 * common/filestuff.c: Likewise.
1992 * common/filestuff.c: Likewise.
1993 * common/format.c: Likewise.
1994 * common/print-utils.c: Likewise.
1995 * common/rsp-low.c: Likewise.
1996 * common/signals.c: Likewise.
1997 * common/vec.h: Likewise.
1998 * common/xml-utils.c: Likewise.
1999 * core-regset.c: Likewise.
2000 * corefile.c: Likewise.
2001 * corelow.c: Likewise.
2002 * cp-abi.c: Likewise.
2003 * cp-name-parser.y: Likewise.
2004 * cp-support.c: Likewise.
2005 * cp-valprint.c: Likewise.
2006 * cris-tdep.c: Likewise.
2007 * d-exp.y: Likewise.
2008 * darwin-nat.c: Likewise.
2009 * dbxread.c: Likewise.
2010 * dcache.c: Likewise.
2011 * demangle.c: Likewise.
2012 * dicos-tdep.c: Likewise.
2013 * disasm.c: Likewise.
2014 * doublest.c: Likewise.
2015 * dsrec.c: Likewise.
2016 * dummy-frame.c: Likewise.
2017 * dwarf2-frame.c: Likewise.
2018 * dwarf2loc.c: Likewise.
2019 * dwarf2read.c: Likewise.
2020 * elfread.c: Likewise.
2021 * environ.c: Likewise.
2022 * eval.c: Likewise.
2023 * event-loop.c: Likewise.
2024 * exceptions.c: Likewise.
2025 * exec.c: Likewise.
2026 * expprint.c: Likewise.
2027 * f-exp.y: Likewise.
2028 * f-lang.c: Likewise.
2029 * f-typeprint.c: Likewise.
2030 * f-valprint.c: Likewise.
2031 * fbsd-nat.c: Likewise.
2032 * findcmd.c: Likewise.
2033 * findvar.c: Likewise.
2034 * fork-child.c: Likewise.
2035 * frame.c: Likewise.
2036 * frv-linux-tdep.c: Likewise.
2037 * frv-tdep.c: Likewise.
2038 * gdb.c: Likewise.
2039 * gdb_bfd.c: Likewise.
2040 * gdbarch.c: Likewise.
2041 * gdbarch.sh: Likewise.
2042 * gdbtypes.c: Likewise.
2043 * gnu-nat.c: Likewise.
2044 * gnu-v2-abi.c: Likewise.
2045 * gnu-v3-abi.c: Likewise.
2046 * go-exp.y: Likewise.
2047 * go-lang.c: Likewise.
2048 * go32-nat.c: Likewise.
2049 * guile/guile.c: Likewise.
2050 * guile/scm-auto-load.c: Likewise.
2051 * hppa-hpux-tdep.c: Likewise.
2052 * hppa-linux-nat.c: Likewise.
2053 * hppanbsd-tdep.c: Likewise.
2054 * hppaobsd-tdep.c: Likewise.
2055 * i386-cygwin-tdep.c: Likewise.
2056 * i386-dicos-tdep.c: Likewise.
2057 * i386-linux-tdep.c: Likewise.
2058 * i386-nto-tdep.c: Likewise.
2059 * i386-sol2-tdep.c: Likewise.
2060 * i386-tdep.c: Likewise.
2061 * i386bsd-tdep.c: Likewise.
2062 * i386gnu-nat.c: Likewise.
2063 * i386nbsd-tdep.c: Likewise.
2064 * i386obsd-tdep.c: Likewise.
2065 * i387-tdep.c: Likewise.
2066 * ia64-libunwind-tdep.c: Likewise.
2067 * ia64-linux-nat.c: Likewise.
2068 * inf-child.c: Likewise.
2069 * inf-ptrace.c: Likewise.
2070 * inf-ttrace.c: Likewise.
2071 * infcall.c: Likewise.
2072 * infcmd.c: Likewise.
2073 * inflow.c: Likewise.
2074 * infrun.c: Likewise.
2075 * interps.c: Likewise.
2076 * iq2000-tdep.c: Likewise.
2077 * irix5-nat.c: Likewise.
2078 * jv-exp.y: Likewise.
2079 * jv-lang.c: Likewise.
2080 * jv-typeprint.c: Likewise.
2081 * jv-valprint.c: Likewise.
2082 * language.c: Likewise.
2083 * linux-fork.c: Likewise.
2084 * linux-nat.c: Likewise.
2085 * lm32-tdep.c: Likewise.
2086 * m2-exp.y: Likewise.
2087 * m2-typeprint.c: Likewise.
2088 * m32c-tdep.c: Likewise.
2089 * m32r-linux-nat.c: Likewise.
2090 * m32r-linux-tdep.c: Likewise.
2091 * m32r-rom.c: Likewise.
2092 * m32r-tdep.c: Likewise.
2093 * m68hc11-tdep.c: Likewise.
2094 * m68k-tdep.c: Likewise.
2095 * m68kbsd-tdep.c: Likewise.
2096 * m68klinux-nat.c: Likewise.
2097 * m68klinux-tdep.c: Likewise.
2098 * m88k-tdep.c: Likewise.
2099 * machoread.c: Likewise.
2100 * macrocmd.c: Likewise.
2101 * main.c: Likewise.
2102 * mdebugread.c: Likewise.
2103 * mem-break.c: Likewise.
2104 * memattr.c: Likewise.
2105 * memory-map.c: Likewise.
2106 * mep-tdep.c: Likewise.
2107 * mi/mi-cmd-break.c: Likewise.
2108 * mi/mi-cmd-disas.c: Likewise.
2109 * mi/mi-cmd-env.c: Likewise.
2110 * mi/mi-cmd-stack.c: Likewise.
2111 * mi/mi-cmd-var.c: Likewise.
2112 * mi/mi-cmds.c: Likewise.
2113 * mi/mi-console.c: Likewise.
2114 * mi/mi-getopt.c: Likewise.
2115 * mi/mi-interp.c: Likewise.
2116 * mi/mi-main.c: Likewise.
2117 * mi/mi-parse.c: Likewise.
2118 * microblaze-rom.c: Likewise.
2119 * microblaze-tdep.c: Likewise.
2120 * mingw-hdep.c: Likewise.
2121 * minidebug.c: Likewise.
2122 * minsyms.c: Likewise.
2123 * mips-irix-tdep.c: Likewise.
2124 * mips-linux-tdep.c: Likewise.
2125 * mips-tdep.c: Likewise.
2126 * mips64obsd-tdep.c: Likewise.
2127 * mipsnbsd-tdep.c: Likewise.
2128 * mipsread.c: Likewise.
2129 * mn10300-linux-tdep.c: Likewise.
2130 * mn10300-tdep.c: Likewise.
2131 * monitor.c: Likewise.
2132 * moxie-tdep.c: Likewise.
2133 * mt-tdep.c: Likewise.
2134 * nat/linux-btrace.c: Likewise.
2135 * nat/linux-osdata.c: Likewise.
2136 * nat/linux-procfs.c: Likewise.
2137 * nat/linux-ptrace.c: Likewise.
2138 * nat/linux-waitpid.c: Likewise.
2139 * nbsd-tdep.c: Likewise.
2140 * nios2-linux-tdep.c: Likewise.
2141 * nto-procfs.c: Likewise.
2142 * nto-tdep.c: Likewise.
2143 * objc-lang.c: Likewise.
2144 * objfiles.c: Likewise.
2145 * opencl-lang.c: Likewise.
2146 * osabi.c: Likewise.
2147 * osdata.c: Likewise.
2148 * p-exp.y: Likewise.
2149 * p-lang.c: Likewise.
2150 * p-typeprint.c: Likewise.
2151 * parse.c: Likewise.
2152 * posix-hdep.c: Likewise.
2153 * ppc-linux-nat.c: Likewise.
2154 * ppc-sysv-tdep.c: Likewise.
2155 * ppcfbsd-tdep.c: Likewise.
2156 * ppcnbsd-tdep.c: Likewise.
2157 * ppcobsd-tdep.c: Likewise.
2158 * printcmd.c: Likewise.
2159 * procfs.c: Likewise.
2160 * prologue-value.c: Likewise.
2161 * python/py-auto-load.c: Likewise.
2162 * python/py-gdb-readline.c: Likewise.
2163 * ravenscar-thread.c: Likewise.
2164 * regcache.c: Likewise.
2165 * registry.c: Likewise.
2166 * remote-fileio.c: Likewise.
2167 * remote-m32r-sdi.c: Likewise.
2168 * remote-mips.c: Likewise.
2169 * remote-notif.c: Likewise.
2170 * remote-sim.c: Likewise.
2171 * remote.c: Likewise.
2172 * reverse.c: Likewise.
2173 * rs6000-aix-tdep.c: Likewise.
2174 * ser-base.c: Likewise.
2175 * ser-go32.c: Likewise.
2176 * ser-mingw.c: Likewise.
2177 * ser-pipe.c: Likewise.
2178 * ser-tcp.c: Likewise.
2179 * ser-unix.c: Likewise.
2180 * serial.c: Likewise.
2181 * sh-tdep.c: Likewise.
2182 * sh64-tdep.c: Likewise.
2183 * shnbsd-tdep.c: Likewise.
2184 * skip.c: Likewise.
2185 * sol-thread.c: Likewise.
2186 * solib-dsbt.c: Likewise.
2187 * solib-frv.c: Likewise.
2188 * solib-osf.c: Likewise.
2189 * solib-som.c: Likewise.
2190 * solib-spu.c: Likewise.
2191 * solib-target.c: Likewise.
2192 * solib.c: Likewise.
2193 * somread.c: Likewise.
2194 * source.c: Likewise.
2195 * sparc-nat.c: Likewise.
2196 * sparc-sol2-tdep.c: Likewise.
2197 * sparc-tdep.c: Likewise.
2198 * sparc64-tdep.c: Likewise.
2199 * sparc64fbsd-tdep.c: Likewise.
2200 * sparc64nbsd-tdep.c: Likewise.
2201 * sparcnbsd-tdep.c: Likewise.
2202 * spu-linux-nat.c: Likewise.
2203 * spu-multiarch.c: Likewise.
2204 * spu-tdep.c: Likewise.
2205 * stabsread.c: Likewise.
2206 * stack.c: Likewise.
2207 * std-regs.c: Likewise.
2208 * symfile.c: Likewise.
2209 * symmisc.c: Likewise.
2210 * symtab.c: Likewise.
2211 * target.c: Likewise.
2212 * thread.c: Likewise.
2213 * tilegx-linux-nat.c: Likewise.
2214 * tilegx-tdep.c: Likewise.
2215 * top.c: Likewise.
2216 * tracepoint.c: Likewise.
2217 * tui/tui-command.c: Likewise.
2218 * tui/tui-data.c: Likewise.
2219 * tui/tui-disasm.c: Likewise.
2220 * tui/tui-file.c: Likewise.
2221 * tui/tui-layout.c: Likewise.
2222 * tui/tui-out.c: Likewise.
2223 * tui/tui-regs.c: Likewise.
2224 * tui/tui-source.c: Likewise.
2225 * tui/tui-stack.c: Likewise.
2226 * tui/tui-win.c: Likewise.
2227 * tui/tui-windata.c: Likewise.
2228 * tui/tui-winsource.c: Likewise.
2229 * typeprint.c: Likewise.
2230 * ui-file.c: Likewise.
2231 * ui-out.c: Likewise.
2232 * user-regs.c: Likewise.
2233 * utils.c: Likewise.
2234 * v850-tdep.c: Likewise.
2235 * valarith.c: Likewise.
2236 * valops.c: Likewise.
2237 * valprint.c: Likewise.
2238 * value.c: Likewise.
2239 * varobj.c: Likewise.
2240 * vax-tdep.c: Likewise.
2241 * vaxnbsd-tdep.c: Likewise.
2242 * vaxobsd-tdep.c: Likewise.
2243 * windows-nat.c: Likewise.
2244 * xcoffread.c: Likewise.
2245 * xml-support.c: Likewise.
2246 * xstormy16-tdep.c: Likewise.
2247 * xtensa-linux-nat.c: Likewise.
2248
2249 2014-08-07 Gary Benson <gbenson@redhat.com>
2250
2251 * common/common-defs.h: Include gdb_assert.h.
2252 * aarch64-tdep.c: Do not include gdb_assert.h.
2253 * addrmap.c: Likewise.
2254 * aix-thread.c: Likewise.
2255 * alpha-linux-tdep.c: Likewise.
2256 * alpha-mdebug-tdep.c: Likewise.
2257 * alphanbsd-tdep.c: Likewise.
2258 * amd64-nat.c: Likewise.
2259 * amd64-tdep.c: Likewise.
2260 * amd64bsd-nat.c: Likewise.
2261 * amd64fbsd-nat.c: Likewise.
2262 * amd64fbsd-tdep.c: Likewise.
2263 * amd64nbsd-nat.c: Likewise.
2264 * amd64nbsd-tdep.c: Likewise.
2265 * amd64obsd-nat.c: Likewise.
2266 * amd64obsd-tdep.c: Likewise.
2267 * arch-utils.c: Likewise.
2268 * arm-tdep.c: Likewise.
2269 * armbsd-tdep.c: Likewise.
2270 * auxv.c: Likewise.
2271 * bcache.c: Likewise.
2272 * bfin-tdep.c: Likewise.
2273 * blockframe.c: Likewise.
2274 * breakpoint.c: Likewise.
2275 * bsd-kvm.c: Likewise.
2276 * bsd-uthread.c: Likewise.
2277 * buildsym.c: Likewise.
2278 * c-exp.y: Likewise.
2279 * c-lang.c: Likewise.
2280 * charset.c: Likewise.
2281 * cleanups.c: Likewise.
2282 * cli-out.c: Likewise.
2283 * cli/cli-decode.c: Likewise.
2284 * cli/cli-dump.c: Likewise.
2285 * cli/cli-logging.c: Likewise.
2286 * cli/cli-script.c: Likewise.
2287 * cli/cli-utils.c: Likewise.
2288 * coffread.c: Likewise.
2289 * common/common-utils.c: Likewise.
2290 * common/queue.h: Likewise.
2291 * common/signals.c: Likewise.
2292 * common/vec.h: Likewise.
2293 * complaints.c: Likewise.
2294 * completer.c: Likewise.
2295 * corelow.c: Likewise.
2296 * cp-abi.c: Likewise.
2297 * cp-name-parser.y: Likewise.
2298 * cp-namespace.c: Likewise.
2299 * cp-support.c: Likewise.
2300 * cris-tdep.c: Likewise.
2301 * dbxread.c: Likewise.
2302 * dictionary.c: Likewise.
2303 * doublest.c: Likewise.
2304 * dsrec.c: Likewise.
2305 * dummy-frame.c: Likewise.
2306 * dwarf2-frame-tailcall.c: Likewise.
2307 * dwarf2-frame.c: Likewise.
2308 * dwarf2expr.c: Likewise.
2309 * dwarf2loc.c: Likewise.
2310 * dwarf2read.c: Likewise.
2311 * eval.c: Likewise.
2312 * event-loop.c: Likewise.
2313 * exceptions.c: Likewise.
2314 * expprint.c: Likewise.
2315 * f-valprint.c: Likewise.
2316 * fbsd-nat.c: Likewise.
2317 * findvar.c: Likewise.
2318 * frame-unwind.c: Likewise.
2319 * frame.c: Likewise.
2320 * frv-tdep.c: Likewise.
2321 * gcore.c: Likewise.
2322 * gdb-dlfcn.c: Likewise.
2323 * gdb_bfd.c: Likewise.
2324 * gdbarch.c: Likewise.
2325 * gdbarch.sh: Likewise.
2326 * gdbtypes.c: Likewise.
2327 * gnu-nat.c: Likewise.
2328 * gnu-v3-abi.c: Likewise.
2329 * go-lang.c: Likewise.
2330 * guile/scm-exception.c: Likewise.
2331 * guile/scm-gsmob.c: Likewise.
2332 * guile/scm-lazy-string.c: Likewise.
2333 * guile/scm-math.c: Likewise.
2334 * guile/scm-pretty-print.c: Likewise.
2335 * guile/scm-safe-call.c: Likewise.
2336 * guile/scm-utils.c: Likewise.
2337 * guile/scm-value.c: Likewise.
2338 * h8300-tdep.c: Likewise.
2339 * hppa-hpux-nat.c: Likewise.
2340 * hppa-tdep.c: Likewise.
2341 * hppanbsd-tdep.c: Likewise.
2342 * hppaobsd-tdep.c: Likewise.
2343 * i386-darwin-nat.c: Likewise.
2344 * i386-darwin-tdep.c: Likewise.
2345 * i386-nto-tdep.c: Likewise.
2346 * i386-tdep.c: Likewise.
2347 * i386bsd-nat.c: Likewise.
2348 * i386fbsd-tdep.c: Likewise.
2349 * i386gnu-nat.c: Likewise.
2350 * i386nbsd-tdep.c: Likewise.
2351 * i386obsd-tdep.c: Likewise.
2352 * i387-tdep.c: Likewise.
2353 * ia64-libunwind-tdep.c: Likewise.
2354 * ia64-tdep.c: Likewise.
2355 * inf-ptrace.c: Likewise.
2356 * inf-ttrace.c: Likewise.
2357 * infcall.c: Likewise.
2358 * infcmd.c: Likewise.
2359 * infrun.c: Likewise.
2360 * inline-frame.c: Likewise.
2361 * interps.c: Likewise.
2362 * jv-lang.c: Likewise.
2363 * jv-typeprint.c: Likewise.
2364 * linux-fork.c: Likewise.
2365 * linux-nat.c: Likewise.
2366 * linux-thread-db.c: Likewise.
2367 * m32c-tdep.c: Likewise.
2368 * m32r-linux-nat.c: Likewise.
2369 * m32r-tdep.c: Likewise.
2370 * m68k-tdep.c: Likewise.
2371 * m68kbsd-nat.c: Likewise.
2372 * m68kbsd-tdep.c: Likewise.
2373 * m88k-tdep.c: Likewise.
2374 * machoread.c: Likewise.
2375 * macroexp.c: Likewise.
2376 * macrotab.c: Likewise.
2377 * maint.c: Likewise.
2378 * mdebugread.c: Likewise.
2379 * memory-map.c: Likewise.
2380 * mep-tdep.c: Likewise.
2381 * mi/mi-common.c: Likewise.
2382 * microblaze-tdep.c: Likewise.
2383 * mingw-hdep.c: Likewise.
2384 * mips-linux-nat.c: Likewise.
2385 * mips-linux-tdep.c: Likewise.
2386 * mips-tdep.c: Likewise.
2387 * mips64obsd-tdep.c: Likewise.
2388 * mipsnbsd-tdep.c: Likewise.
2389 * mn10300-linux-tdep.c: Likewise.
2390 * mn10300-tdep.c: Likewise.
2391 * moxie-tdep.c: Likewise.
2392 * mt-tdep.c: Likewise.
2393 * nat/linux-btrace.c: Likewise.
2394 * nat/linux-osdata.c: Likewise.
2395 * nat/linux-ptrace.c: Likewise.
2396 * nat/mips-linux-watch.c: Likewise.
2397 * nios2-linux-tdep.c: Likewise.
2398 * nios2-tdep.c: Likewise.
2399 * objc-lang.c: Likewise.
2400 * objfiles.c: Likewise.
2401 * obsd-nat.c: Likewise.
2402 * opencl-lang.c: Likewise.
2403 * osabi.c: Likewise.
2404 * parse.c: Likewise.
2405 * ppc-linux-nat.c: Likewise.
2406 * ppc-sysv-tdep.c: Likewise.
2407 * ppcfbsd-nat.c: Likewise.
2408 * ppcfbsd-tdep.c: Likewise.
2409 * ppcnbsd-nat.c: Likewise.
2410 * ppcnbsd-tdep.c: Likewise.
2411 * ppcobsd-nat.c: Likewise.
2412 * ppcobsd-tdep.c: Likewise.
2413 * printcmd.c: Likewise.
2414 * procfs.c: Likewise.
2415 * prologue-value.c: Likewise.
2416 * psymtab.c: Likewise.
2417 * python/py-lazy-string.c: Likewise.
2418 * python/py-value.c: Likewise.
2419 * regcache.c: Likewise.
2420 * reggroups.c: Likewise.
2421 * registry.c: Likewise.
2422 * remote-sim.c: Likewise.
2423 * remote.c: Likewise.
2424 * rs6000-aix-tdep.c: Likewise.
2425 * rs6000-tdep.c: Likewise.
2426 * s390-linux-tdep.c: Likewise.
2427 * score-tdep.c: Likewise.
2428 * ser-base.c: Likewise.
2429 * ser-mingw.c: Likewise.
2430 * sh-tdep.c: Likewise.
2431 * sh64-tdep.c: Likewise.
2432 * solib-darwin.c: Likewise.
2433 * solib-spu.c: Likewise.
2434 * solib-svr4.c: Likewise.
2435 * source.c: Likewise.
2436 * sparc-nat.c: Likewise.
2437 * sparc-sol2-tdep.c: Likewise.
2438 * sparc-tdep.c: Likewise.
2439 * sparc64-sol2-tdep.c: Likewise.
2440 * sparc64-tdep.c: Likewise.
2441 * sparc64fbsd-tdep.c: Likewise.
2442 * sparc64nbsd-tdep.c: Likewise.
2443 * sparc64obsd-tdep.c: Likewise.
2444 * sparcnbsd-tdep.c: Likewise.
2445 * sparcobsd-tdep.c: Likewise.
2446 * spu-multiarch.c: Likewise.
2447 * spu-tdep.c: Likewise.
2448 * stabsread.c: Likewise.
2449 * stack.c: Likewise.
2450 * symfile.c: Likewise.
2451 * symtab.c: Likewise.
2452 * target-descriptions.c: Likewise.
2453 * target-memory.c: Likewise.
2454 * target.c: Likewise.
2455 * tic6x-linux-tdep.c: Likewise.
2456 * tic6x-tdep.c: Likewise.
2457 * tilegx-linux-nat.c: Likewise.
2458 * tilegx-tdep.c: Likewise.
2459 * top.c: Likewise.
2460 * tramp-frame.c: Likewise.
2461 * tui/tui-out.c: Likewise.
2462 * tui/tui-winsource.c: Likewise.
2463 * ui-out.c: Likewise.
2464 * user-regs.c: Likewise.
2465 * utils.c: Likewise.
2466 * v850-tdep.c: Likewise.
2467 * valops.c: Likewise.
2468 * value.c: Likewise.
2469 * varobj.c: Likewise.
2470 * vax-nat.c: Likewise.
2471 * xml-syscall.c: Likewise.
2472 * xml-tdesc.c: Likewise.
2473 * xstormy16-tdep.c: Likewise.
2474 * xtensa-linux-nat.c: Likewise.
2475 * xtensa-tdep.c: Likewise.
2476
2477 2014-08-07 Gary Benson <gbenson@redhat.com>
2478
2479 * common/common-defs.h: Include common-utils.h.
2480 * defs.h: Do not include common-utils.h.
2481 * common/gdb_assert.h: Likewise.
2482 * darwin-nat.h: Likewise.
2483 * nat/linux-btrace.c: Likewise.
2484 * target/waitstatus.h: Likewise.
2485
2486 2014-08-07 Gary Benson <gbenson@redhat.com>
2487
2488 * common/common-defs.h: Include ptid.h.
2489 * defs.h: Do not include ptid.h.
2490 * inferior.h: Likewise.
2491 * infrun.h: Likewise.
2492 * nat/linux-btrace.h: Likewise.
2493 * nat/linux-osdata.h: Likewise.
2494 * target/waitstatus.h: Likewise.
2495
2496 2014-08-07 Gary Benson <gbenson@redhat.com>
2497
2498 * common/common-defs.h: Include gdb_locale.h.
2499 * defs.h: Do not include gdb_locale.h.
2500
2501 2014-08-07 Gary Benson <gbenson@redhat.com>
2502
2503 * common/common-defs.h: Include gdb/signals.h.
2504 * defs.h: Do not include gdb/signals.h.
2505
2506 2014-08-07 Gary Benson <gbenson@redhat.com>
2507
2508 * common/common-defs.h: Include pathmax.h.
2509 * defs.h: Do not include pathmax.h.
2510
2511 2014-08-07 Gary Benson <gbenson@redhat.com>
2512
2513 * common/common-defs.h: Include libiberty.h.
2514 * defs.h: Do not include libiberty.h.
2515 * common/queue.h: Likewise.
2516 * cp-name-parser.y: Likewise.
2517 * mi/mi-cmd-catch.c: Likewise.
2518 * python/python.c: Likewise.
2519
2520 2014-08-07 Gary Benson <gbenson@redhat.com>
2521
2522 * common/common-defs.h: Include ansidecl.h.
2523 * defs.h: Do not include ansidecl.h.
2524 * common/buffer.h: Likewise.
2525 * common/common-utils.h: Likewise.
2526
2527 2014-08-07 Gary Benson <gbenson@redhat.com>
2528
2529 * common/common-defs.h: Include stddef.h.
2530 * defs.h: Do not include stddef.h.
2531 * common/common-utils.h: Likewise.
2532 * amd64fbsd-nat.c: Likewise.
2533 * bcache.c: Likewise.
2534 * charset.c: Likewise.
2535 * common/buffer.h: Likewise.
2536 * common/vec.h: Likewise.
2537 * i386bsd-nat.c: Likewise.
2538 * nat/linux-btrace.h: Likewise.
2539 * ppcfbsd-nat.c: Likewise.
2540 * ppcnbsd-tdep.h: Likewise.
2541 * ppcobsd-nat.c: Likewise.
2542 * ppcobsd-tdep.h: Likewise.
2543 * python/py-gdb-readline.c: Likewise.
2544
2545 2014-08-07 Gary Benson <gbenson@redhat.com>
2546
2547 * common/common-defs.h: Include stdarg.h.
2548 * defs.h: Do not include stdarg.h.
2549 * ada-lang.c: Likewise.
2550 * common/common-utils.h: Likewise.
2551 * guile/scm-string.c: Likewise.
2552 * guile/scm-utils.c: Likewise.
2553 * m32c-tdep.c: Likewise.
2554
2555 2014-08-07 Gary Benson <gbenson@redhat.com>
2556
2557 * common/common-defs.h: Include stdlib.h.
2558 * defs.h: Do not include stdlib.h.
2559 * addrmap.c: Likewise.
2560 * bcache.c: Likewise.
2561 * common/buffer.c: Likewise.
2562 * common/common-utils.c: Likewise.
2563 * cp-name-parser.y: Likewise.
2564 * go32-nat.c: Likewise.
2565 * mn10300-linux-tdep.c: Likewise.
2566 * nat/linux-osdata.c: Likewise.
2567 * tui/tui.c: Likewise.
2568 * windows-nat.c: Likewise.
2569
2570 2014-08-07 Gary Benson <gbenson@redhat.com>
2571
2572 * common/common-defs.h: Include stdio.h.
2573 * defs.h: Do not include stdio.h.
2574 * ada-lang.c: Likewise.
2575 * common/buffer.c: Likewise.
2576 * common/common-utils.c: Likewise.
2577 * cp-name-parser.y: Likewise.
2578 * gnu-nat.c: Likewise.
2579 * go32-nat.c: Likewise.
2580 * i386gnu-nat.c: Likewise.
2581 * proc-api.c: Likewise.
2582 * proc-events.c: Likewise.
2583 * proc-flags.c: Likewise.
2584 * proc-why.c: Likewise.
2585 * python/python-internal.h: Likewise.
2586 * target-memory.c: Likewise.
2587 * tui/tui-io.c: Likewise.
2588 * tui/tui.c: Likewise.
2589
2590 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2591
2592 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2593 (scan_dyntag_auxv): Same.
2594
2595 2014-08-06 Yao Qi <yao@codesourcery.com>
2596
2597 * amd64-linux-nat.c: Remove duplicated include
2598 "x86-linux-nat.h".
2599 * i386-linux-nat.c: Likewise.
2600
2601 2014-08-06 Yao Qi <yao@codesourcery.com>
2602
2603 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2604 operand" with "Special opcode" in comments.
2605
2606 2014-08-05 Gary Benson <gbenson@redhat.com>
2607
2608 * interps.c (initialize_interps): Remove prototype.
2609 (interpreter_initialized): Remove static global.
2610 (interp_add): Do not call initialize_interps.
2611 (initialize_interps): Remove function.
2612
2613 2014-08-05 Gary Benson <gbenson@redhat.com>
2614
2615 * utils.c (vwarning): Remove spurious va_end.
2616
2617 2014-08-05 Alan Modra <amodra@gmail.com>
2618
2619 * charset.c (convert_between_encodings): Cast result of obstack_base.
2620 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2621 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2622 (read_unwind_info): Use size_t for some locals.
2623 * jit.c (finalize_symtab): Likewise.
2624 * utils.c (hashtab_obstack_allocate): Likewise.
2625 * symmisc.c (print_objfile_statistics): Update format strings.
2626
2627 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2628
2629 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2630 (Changes in GDB 7.8): ... here.
2631
2632 2014-08-04 Tom Tromey <tromey@redhat.com>
2633
2634 * target.c (set_targetdebug): New function.
2635 (initialize_targets): Pass set_targetdebug when creating "set
2636 debug target".
2637
2638 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2639
2640 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2641 if detecting a variable-sized field that is not the last field.
2642 Fix struct type length computation.
2643
2644 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2645
2646 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2647 Add debug trace.
2648
2649 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2650
2651 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2652 Remove "+ 8" offset in computation of CHAIN_VMA.
2653
2654 2014-07-31 Doug Evans <dje@google.com>
2655
2656 * inflow.c (child_terminal_inferior): Add comment.
2657 (child_terminal_ours_for_output): Add comment.
2658 (child_terminal_ours): Add comment.
2659 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2660 (linux_nat_terminal_ours): Add comment.
2661
2662 2014-07-31 Gary Benson <gbenson@redhat.com>
2663
2664 * common/btrace-common.h: Do not include defs.h or server.h.
2665 * nat/mips-linux-watch.h: Likewise.
2666 * gdb-dlfcn.h: Do not include defs.h.
2667 * tracefile.h: Likewise.
2668
2669 2014-07-30 Roland McGrath <mcgrathr@google.com>
2670
2671 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2672
2673 2014-07-30 Tom Tromey <tromey@redhat.com>
2674
2675 * bsd-kvm.c (bsd_kvm_open): Constify.
2676 * corelow.c (core_open): Constify.
2677 * ctf.c (ctf_open): Constify.
2678 * dbug-rom.c (dbug_open): Constify.
2679 * exec.c (exec_open): Constify.
2680 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2681 * microblaze-rom.c (picobug_open): Constify.
2682 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2683 Constify.
2684 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2685 * record-btrace.c (record_btrace_open): Constify.
2686 * record-full.c (record_full_core_open_1, record_full_open_1)
2687 (record_full_open): Constify.
2688 * remote-m32r-sdi.c (m32r_open): Constify.
2689 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2690 (rockhopper_open, lsi_open): Constify.
2691 * remote-sim.c (gdbsim_open): Constify.
2692 * remote.c (remote_open, extended_remote_open, remote_open_1):
2693 Constify.
2694 * target.h (struct target_ops) <to_open>: Make "arg" const.
2695 * tracefile-tfile.c (tfile_open): Constify.
2696
2697 2014-07-30 Tom Tromey <tromey@redhat.com>
2698
2699 * breakpoint.c (map_breakpoint_numbers): Update.
2700 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2701 (get_number_const): New function.
2702 (get_number): Rewrite using get_number_const.
2703 (init_number_or_range): Make "string" const.
2704 (number_is_in_list): Make "list" const.
2705 * cli/cli-utils.h (get_number_const): Declare.
2706 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2707 (init_number_or_range, number_is_in_list): Update.
2708 * printcmd.c (map_display_numbers): Update.
2709 * value.c (value_from_history_ref): Constify.
2710 * value.h (value_from_history_ref): Update.
2711
2712 2014-07-30 Tom Tromey <tromey@redhat.com>
2713
2714 * corefile.c (hook_type, call_extra_exec_file_hooks)
2715 (specify_exec_file_hook): Constify.
2716 * exec.c (exec_file_attach): Make "filename" const.
2717 * gdbcore.h (deprecated_exec_file_display_hook)
2718 (specify_exec_file_hook, exec_file_attach): Constify.
2719 * main.c (captured_main): Use catch_command_errors_const.
2720
2721 2014-07-30 Tom Tromey <tromey@redhat.com>
2722
2723 * target.c (open_target): New function.
2724 (add_target_with_completer, add_deprecated_target_alias): Use
2725 set_cmd_sfunc, set_cmd_context.
2726 (debug_to_open): Remove.
2727 (setup_target_debug): Update.
2728
2729 2014-07-30 Yao Qi <yao@codesourcery.com>
2730
2731 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2732 comments.
2733 * parse.c (exp_iterate): Update comments.
2734
2735 2014-07-30 Gary Benson <gbenson@redhat.com>
2736
2737 * common/common-defs.h: New file.
2738 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2739 * defs.h: Include common-defs.h.
2740 Do not include config.h or build-gnulib/config.h.
2741
2742 2014-07-30 Gary Benson <gbenson@redhat.com>
2743
2744 * common/common-utils.h: Do not include config.h.
2745 * nat/linux-btrace.h: Likewise.
2746
2747 2014-07-30 Gary Benson <gbenson@redhat.com>
2748
2749 * btrace.c: Include defs.h.
2750 * common/ptid.c: Include defs.h or server.h as appropriate.
2751 * nat/mips-linux-watch.c: Likewise.
2752
2753 2014-07-29 Tom Tromey <tromey@redhat.com>
2754
2755 * target.c (target_is_pushed): Simplify.
2756
2757 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2758
2759 GDB 7.8 released.
2760
2761 2014-07-29 Yao Qi <yao@codesourcery.com>
2762
2763 PR gdb/17206
2764 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2765
2766 2014-07-28 Doug Evans <xdje42@gmail.com>
2767
2768 PR guile/17203
2769 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2770 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2771 parameters.
2772
2773 2014-07-28 Will Newton <will.newton@linaro.org>
2774
2775 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2776 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2777 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2778 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2779 (THUMB2_EABI_SYSCALL): Likewise.
2780 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2781 struct tramp_frame.
2782 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2783 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2784
2785 2014-07-27 Doug Evans <xdje42@gmail.com>
2786
2787 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2788
2789 2014-07-27 Doug Evans <xdje42@gmail.com>
2790
2791 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2792
2793 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2794 Doug Evans <xdje42@gmail.com>
2795
2796 PR guile/17146
2797 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2798 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2799 * configure.ac: Try to use guild to compile an scm file, if it fails
2800 then disable guile support.
2801 * configure: Regenerate.
2802 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2803 GUILE_FILE_LIST.
2804 (GUILE_COMPILED_FILES): New variable.
2805 (GUILE_FILES) Update.
2806 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2807 (stamp-guile): Compile scm files.
2808 * guile/guile.c (boot_guile_support): New function.
2809 (standard_throw_args_p): New function.
2810 (print_standard_throw_error, print_throw_error): New functions.
2811 (handle_boot_error): New function.
2812 (initialize_scheme_side): Rewrite to call boot_guile_support.
2813 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2814 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2815
2816 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2817 Doug Evans <xdje42@gmail.com>
2818
2819 PR guile/17146
2820 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2821 * guile/lib/gdb/support.scm: New file.
2822 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2823 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2824 All uses updated.
2825 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2826 All uses updated.
2827 (%assert-type): Ditto, and renamed to assert-type.
2828 (%exception-print-style): Delete.
2829
2830 2014-07-26 Doug Evans <xdje42@gmail.com>
2831
2832 PR build/17105
2833 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2834 * configure: Regenerate.
2835 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2836 PYTHON_FILES.
2837 (PYTHON_FILES): New variable.
2838 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2839 (GUILE_FILES): New variable.
2840 (stamp-python, install-python, uninstall-python): Handle empty
2841 file list.
2842 (stamp-guile, install-guile, uninstall-guile): Ditto.
2843
2844 2014-07-26 Doug Evans <xdje42@gmail.com>
2845
2846 PR guile/17177
2847 * guile/lib/gdb.scm (pretty-printers): Export.
2848 (set-pretty-printers!): Export.
2849 * guile/lib/gdb/printing.scm (gdb module): Update.
2850 (prepend-pretty-printer!, append-pretty-printer!): Update.
2851 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2852 (pretty_printer_list_var): Delete.
2853 (pretty_printer_list): New static global.
2854 (gdbscm_pretty_printers): New function.
2855 (gdbscm_set_pretty_printers_x): New function.
2856 (ppscm_find_pretty_printer_from_gdb): Update.
2857 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2858 (gdbscm_initialize_pretty_printers): Update.
2859
2860 2014-07-26 Doug Evans <xdje42@gmail.com>
2861
2862 PR 17185
2863 * configure.ac: Add check for header gc/gc.h.
2864 Add check for function setenv.
2865 * configure: Regenerate.
2866 * config.in: Regenerate.
2867 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2868
2869 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2870
2871 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2872 variation in gdbarch matching.
2873
2874 2014-07-25 Tom Tromey <tromey@redhat.com>
2875
2876 * exec.c (using_exec_ops): Remove.
2877 (exec_close_1): Update. Remove extraneous block, reindent.
2878 (add_target_sections): Use target_is_pushed.
2879
2880 2014-07-25 Pedro Alves <palves@redhat.com>
2881
2882 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2883 * monitor.c (monitor_create_inferior): Likewise.
2884 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2885 * remote-sim.c (gdbsim_create_inferior): Likewise.
2886 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2887 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2888 * windows-nat.c (do_initial_windows_stuff): Likewise.
2889
2890 2014-07-25 Pedro Alves <palves@redhat.com>
2891
2892 * NEWS: Mention signal passing and "signal" command changes.
2893 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2894 comment.
2895 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2896 call.
2897 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2898 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2899 (jump_command): Adjust clear_proceed_status call.
2900 (signal_command): Warn if other thread that are resumed have
2901 signals that will be delivered. Adjust clear_proceed_status call.
2902 (until_next_command, finish_command)
2903 (proceed_after_attach_callback, attach_command_post_wait)
2904 (attach_command): Adjust clear_proceed_status call.
2905 * infrun.c (proceed_after_vfork_done): Likewise.
2906 (proceed_after_attach_callback): Adjust comment.
2907 (clear_proceed_status_thread): Clear stop_signal if not in pass
2908 state.
2909 (clear_proceed_status_callback): Delete.
2910 (clear_proceed_status): New 'step' parameter. Only clear the
2911 proceed status of threads the command being prepared is about to
2912 resume.
2913 (proceed): If passed in an explicit signal, override stop_signal
2914 with it. Don't pass the last stop signal to the thread we're
2915 resuming.
2916 (init_wait_for_inferior): Adjust clear_proceed_status call.
2917 (switch_back_to_stepped_thread): Clear the signal if it should not
2918 be passed.
2919 * infrun.h (clear_proceed_status): New 'step' parameter.
2920 (user_visible_resume_ptid): Add comment.
2921 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2922 signal is in pass state.
2923 * remote.c (append_pending_thread_resumptions): Likewise.
2924 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2925
2926 2014-07-25 Tom Tromey <tromey@redhat.com>
2927
2928 * target.h (target_stopped_data_address)
2929 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2930 parentheses.
2931
2932 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2933
2934 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2935 comments.
2936 (avr_pointer_to_address): Likewise.
2937
2938 2014-07-24 Tom Tromey <tromey@redhat.com>
2939
2940 * monitor.c (compile_pattern): Update.
2941 * target.h (struct target_ops) <to_shortname, to_longname,
2942 to_doc>: Now const.
2943
2944 2014-07-24 Tom Tromey <tromey@redhat.com>
2945
2946 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2947 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2948 (add_info_alias, add_com): Make "doc" const.
2949 (print_doc_line): Make "str" const.
2950 (delete_cmd): Update.
2951 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2952 (print_doc_line): Update.
2953 * cli/cli-script.c (document_command): Update.
2954 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2955 (add_com, add_info, add_info_alias): Update.
2956 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2957 * python/py-cmd.c (cmdpy_destroyer): Update.
2958
2959 2014-07-24 Tom Tromey <tromey@redhat.com>
2960
2961 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2962 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2963 (help_cmd_list): Constify.
2964 (lookup_cmd): Update.
2965 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2966 const.
2967 (help_cmd_list, apropos_cmd): Update.
2968 * cli/cli-script.c (show_user): Update.
2969 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2970 * cli/cli-setshow.h (cmd_show_list): Update.
2971 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2972 (cmd_show_list): Update.
2973 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2974 * python/py-cmd.c (cmdpy_destroyer): Update.
2975
2976 2014-07-24 Tom Tromey <tromey@redhat.com>
2977
2978 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2979 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2980 const.
2981 * command.h (deprecate_cmd): Update.
2982 * maint.c (maintenance_do_deprecate): Add casts.
2983
2984 2014-07-24 Tom Tromey <tromey@redhat.com>
2985
2986 * cli/cli-decode.c (help_cmd): Make parameter "const".
2987 * cli/cli-decode.h (help_cmd): Update.
2988
2989 2014-07-24 Tom Tromey <tromey@redhat.com>
2990
2991 * stack.c (up_silently_base, down_silently_base): Make argument
2992 const.
2993
2994 2014-07-24 Tom Tromey <tromey@redhat.com>
2995
2996 * solib.c (solib_add): Make "pattern" const.
2997 * solib.h (solib_add): Update.
2998
2999 2014-07-24 Tom Tromey <tromey@redhat.com>
3000
3001 * remote.c (remote_serial_open, print_packet, putpkt)
3002 (putpkt_binary): Constify.
3003 * remote.h (putpkt): Update.
3004
3005 2014-07-24 Tom Tromey <tromey@redhat.com>
3006
3007 * monitor.c (monitor_open): Make "args" const.
3008 * monitor.h (monitor_open): Update.
3009
3010 2014-07-24 Tom Tromey <tromey@redhat.com>
3011
3012 * maint.c (match_bfd_flags): Make "string" const.
3013 (print_bfd_section_info): Remove casts.
3014 (print_objfile_section_info): Make "string" const.
3015
3016 2014-07-24 Tom Tromey <tromey@redhat.com>
3017
3018 * inf-child.c (inf_child_open_target): Make "arg" const.
3019 * inf-child.h (inf_child_open_target): Update.
3020
3021 2014-07-24 Tom Tromey <tromey@redhat.com>
3022
3023 * environ.c (unset_in_environ): Make "var" const.
3024 * environ.h (unset_in_environ): Update.
3025
3026 2014-07-24 Tom Tromey <tromey@redhat.com>
3027
3028 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3029 Make "cmd" const.
3030 (scan_filename_with_cleanup): Likewise.
3031 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3032 Make arguments const.
3033 (restore_command): Update.
3034
3035 2014-07-24 Pedro Alves <palves@redhat.com>
3036
3037 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3038
3039 2014-07-24 Tom Tromey <tromey@redhat.com>
3040 Gary Benson <gbenson@redhat.com>
3041
3042 * nat/linux-ptrace.c (additional_flags): New global.
3043 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3044 additional_flags; don't check GDBSERVER.
3045 (linux_ptrace_set_additional_flags): New function.
3046 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3047 Declare.
3048 * linux-nat.c (_initialize_linux_nat): Call
3049 linux_ptrace_set_additional_flags.
3050
3051 2014-07-24 Tom Tromey <tromey@redhat.com>
3052
3053 * make-target-delegates (munge_type, write_debugmethod): New
3054 functions.
3055 (debug_names): New global.
3056 ($TARGET_DEBUG_PRINTER): New global.
3057 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3058 name.
3059 Write debug methods. Generate init_debug_target.
3060 * target-debug.h: New file.
3061 * target-delegates.c: Rebuild.
3062 * target.c: Include target-debug.h.
3063 (debug_target): Hoist definition.
3064 (target_kill, target_get_section_table, target_memory_map)
3065 (target_flash_erase, target_flash_done, target_detach)
3066 (target_disconnect, target_wait, target_resume)
3067 (target_pass_signals, target_program_signals, target_follow_fork)
3068 (target_mourn_inferior, target_search_memory)
3069 (target_thread_address_space, target_close)
3070 (target_find_new_threads, target_core_of_thread)
3071 (target_verify_memory, target_insert_mask_watchpoint)
3072 (target_remove_mask_watchpoint): Remove targetdebug code.
3073 (debug_to_post_attach, debug_to_prepare_to_store)
3074 (debug_to_files_info, debug_to_insert_breakpoint)
3075 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3076 (debug_to_region_ok_for_hw_watchpoint)
3077 (debug_to_can_accel_watchpoint_condition)
3078 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3079 (debug_to_watchpoint_addr_within_range)
3080 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3081 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3082 (debug_to_terminal_init, debug_to_terminal_inferior)
3083 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3084 (debug_to_terminal_save_ours, debug_to_terminal_info)
3085 (debug_to_load, debug_to_post_startup_inferior)
3086 (debug_to_insert_fork_catchpoint)
3087 (debug_to_remove_fork_catchpoint)
3088 (debug_to_insert_vfork_catchpoint)
3089 (debug_to_remove_vfork_catchpoint)
3090 (debug_to_insert_exec_catchpoint)
3091 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3092 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3093 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3094 (setup_target_debug): Call init_debug_target.
3095 * target.h (TARGET_DEBUG_PRINTER): New macro.
3096 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3097 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3098
3099 2014-07-24 Gary Benson <gbenson@redhat.com>
3100
3101 * exceptions.h (throw_vfatal): Renamed to...
3102 (throw_vquit): New declaration.
3103 (throw_quit): Likewise.
3104 * exceptions.c (throw_vfatal): Renamed to...
3105 (throw_vquit): New function.
3106 (throw_quit): Likewise.
3107 (throw_error): Call throw_verror rather than throw_it.
3108 * utils.h (vfatal): Removed.
3109 (fatal): Likewise.
3110 * utils.c (vfatal): Removed.
3111 (fatal): Likewise.
3112 (internal_verror): Replaced call to fatal with call to throw_quit.
3113 (quit): Replaced calls to fatal with calls to throw_quit.
3114
3115 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3116
3117 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3118 target_read_code.
3119
3120 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3121
3122 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3123 less than zero in conditional expression.
3124
3125 2014-07-23 Tom Tromey <tromey@redhat.com>
3126
3127 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3128 ($INTRO_PART): Don't match whitespace.
3129 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3130 argument matching.
3131 ($METHOD): Add $METHOD_TRAILER.
3132 (trim): Rewrite.
3133 (scan_target_h): New sub.
3134 Change main loop not to collect state.
3135 * target-delegates.c: Rebuild.
3136
3137 2014-07-23 Gary Benson <gbenson@redhat.com>
3138
3139 * cp-support.c (gdb_demangle): Fix build on systems without
3140 sigaltstack.
3141
3142 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3143
3144 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3145 for reference entry value target data value.
3146
3147 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3148
3149 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3150 value_available_contents_eq.
3151
3152 2014-07-22 Pedro Alves <palves@redhat.com>
3153
3154 * value.c (allocate_optimized_out_value): Don't mark value as
3155 non-lazy.
3156
3157 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3158
3159 * MAINTAINERS (Write After Approval): Update my email address.
3160
3161 2014-07-20 Doug Evans <dje@google.com>
3162
3163 PR server/17147
3164 * remote.c (putpkt_binary): Add text to error message.
3165
3166 2014-07-20 Yao Qi <yao@codesourcery.com>
3167
3168 * eval.c: Remove "Chill" from comments.
3169 * gdbtypes.h: Likewise.
3170 * symtab.h: Likewise.
3171
3172 2014-07-20 Yao Qi <yao@codesourcery.com>
3173
3174 * std-operator.def: Update comments to TERNOP_SLICE.
3175
3176 2014-07-20 Yao Qi <yao@codesourcery.com>
3177
3178 * std-operator.def: Remove BINOP_RANGE.
3179 * breakpoint.c (watchpoint_exp_is_const): Update.
3180 * expprint.c (dump_subexp_body_standard): Likewise.
3181 * eval.c (init_array_element): Remove dead code.
3182 (evaluate_subexp_standard): Likewise.
3183
3184 2014-07-20 Yao Qi <yao@codesourcery.com>
3185
3186 * std-operator.def: Remove BINOP_IN.
3187 * breakpoint.c (watchpoint_exp_is_const): Update.
3188 * eval.c (evaluate_subexp_standard): Likewise.
3189 * expprint.c (dump_subexp_body_standard): Likewise.
3190
3191 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3192
3193 * microblaze-tdep.c (microblaze_register_names): Add
3194 the rshr and rslr register names.
3195 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3196 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3197 Use of tdesc_numbered_register. Use of
3198 microblaze_register_g_packet_guesses. Use of
3199 tdesc_use_registers. Use of set_gdbarch_register_type.
3200 (microblaze_register_g_packet_guesses): New.
3201 * microblaze-tdep.h (microblaze_reg_num): Add
3202 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3203 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3204 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3205 * features/microblaze-core.xml: New file.
3206 * features/microblaze-stack-protect.xml: New file.
3207 * features/microblaze-with-stack-protect.c: New file.
3208 * features/microblaze-with-stack-protect.xml: New file.
3209 * features/microblaze.xml: New file.
3210 * features/microblaze.c: New file.
3211 * features/Makefile (microblaze-with-stack-protect): Add
3212 microblaze-with-stack-protect microblaze and microblaze-expedite.
3213 * regformats/microblaze-with-stack-protect.dat: New file.
3214 * regformats/microblaze.dat: New file.
3215 * doc/gdb.texinfo (MicroBlaze Features): Added.
3216
3217 2014-07-18 Tom Tromey <tromey@redhat.com>
3218
3219 * exec.c (exec_ops): Now static.
3220 * exec.h (exec_ops): Don't declare.
3221
3222 2014-07-18 Tom Tromey <tromey@redhat.com>
3223
3224 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3225 to find_target_beneath.
3226 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3227 find_target_beneath.
3228 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3229
3230 2014-07-18 Tom Tromey <tromey@redhat.com>
3231
3232 PR gdb/17130:
3233 * utils.c (quit): Use target_supports_terminal_ours.
3234 * target.h (target_supports_terminal_ours): Declare.
3235 * target.c (target_supports_delete_record): Don't check
3236 to_delete_record against NULL.
3237 (target_supports_terminal_ours): New function.
3238
3239 2014-07-18 Tom Tromey <tromey@redhat.com>
3240
3241 PR gdb/17130:
3242 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3243 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3244 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3245 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3246 * windows-nat.c (windows_xfer_partial): Always delegate.
3247 * record-btrace.c (record_btrace_xfer_partial): Simplify
3248 delegation.
3249 (record_btrace_fetch_registers, record_btrace_store_registers)
3250 (record_btrace_prepare_to_store, record_btrace_resume)
3251 (record_btrace_wait, record_btrace_find_new_threads)
3252 (record_btrace_thread_alive): Likewise.
3253 * procfs.c (procfs_xfer_partial): Always delegate.
3254 * corelow.c (core_xfer_partial): Always delegate.
3255 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3256
3257 2014-07-18 Tom Tromey <tromey@redhat.com>
3258
3259 * exec.c (exec_make_note_section): Move earlier.
3260
3261 2014-07-17 Doug Evans <dje@google.com>
3262
3263 PR gdb/17170
3264 * maint.c (count_symtabs_and_blocks): Handle NULL
3265 current_program_space.
3266 (report_command_stats): Check global enabled flag in addition to
3267 recorded enabled flag.
3268 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3269
3270 2014-07-16 Pedro Alves <palves@redhat.com>
3271
3272 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3273
3274 2014-07-16 Tom Tromey <tromey@redhat.com>
3275
3276 * target.h (struct target_ops) <to_delete_record>: Reformat
3277 comment.
3278
3279 2014-07-16 Tom Tromey <tromey@redhat.com>
3280
3281 * target-delegates.c: Rebuild.
3282
3283 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3284
3285 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3286 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3287 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3288 (avr_pointer_to_address): Likewise.
3289 (avr_address_class_type_flags): New function.
3290 (avr_address_class_type_flags_to_name): Likewise.
3291 (avr_address_class_name_to_type_flags): Likewise.
3292 (avr_gdbarch_init): Set address_class_type_flags,
3293 address_class_type_flags_to_name and
3294 address_class_name_to_type_flags.
3295
3296 2014-07-15 Pedro Alves <palves@redhat.com>
3297
3298 * linux-nat.c (kill_callback): Save errno and work with saved
3299 copy.
3300
3301 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3302
3303 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3304
3305 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3306
3307 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3308 breakpoint support correctly.
3309
3310 2014-07-14 Pedro Alves <palves@redhat.com>
3311
3312 * utils.c (prompt_for_continue): Call target_terminal_ours.
3313
3314 2014-07-14 Pedro Alves <palves@redhat.com>
3315
3316 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3317 catch_errors. Don't re-enable stdin or notify observers where,
3318 and rethrow error.
3319 (fetch_inferior_event_wrapper): Delete.
3320
3321 2014-07-14 Pedro Alves <palves@redhat.com>
3322
3323 PR gdb/17072
3324 * top.c: Include "inf-loop.h".
3325 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3326 field.
3327 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3328 was async before.
3329 (gdb_readline_wrapper): Store whether the target is async, and
3330 make it sync.
3331
3332 2014-07-14 Pedro Alves <palves@redhat.com>
3333
3334 PR gdb/17072
3335 * top.c (gdb_readline_wrapper_line): Tweak comment.
3336 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3337 the input handler callback.
3338
3339 2014-07-14 Pedro Alves <palves@redhat.com>
3340
3341 PR gdb/17072
3342 * main.c: Include event-top.h.
3343 (handle_command_errors): New function.
3344 (catch_command_errors, catch_command_errors_const): Use it.
3345
3346 2014-07-14 Pedro Alves <palves@redhat.com>
3347
3348 * exceptions.c (catch_command_errors, catch_command_errors_const):
3349 Moved to main.c.
3350 * exceptions.h (catch_command_errors_ftype)
3351 (catch_command_errors_const_ftype): Moved to main.c.
3352 (catch_command_errors, catch_command_errors_const): Delete
3353 declarations.
3354 * main.c (catch_command_errors_ftype)
3355 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3356 (catch_command_errors, catch_command_errors_const)): Moved here
3357 from exceptions.c and make static.
3358
3359 2014-07-14 Pedro Alves <palves@redhat.com>
3360
3361 * exceptions.c (print_any_exception): Delete.
3362 (catch_exceptions_with_msg): Use exception_print instead of
3363 print_any_exception.
3364 (catch_errors): Use exception_fprintf instead of
3365 print_any_exception.
3366 (catch_command_errors, catch_command_errors_const): Use
3367 exception_print instead of print_any_exception.
3368
3369 2014-07-14 Pedro Alves <palves@redhat.com>
3370
3371 * infcall.c (run_inferior_call): Set 'sync_execution' while
3372 running the inferior call.
3373
3374 2014-07-14 Pedro Alves <palves@redhat.com>
3375
3376 * value.c (value_contents_equal): Delete function.
3377 * value.h (value_contents_equal): Delete declaration.
3378
3379 2014-07-14 Tom Tromey <tromey@redhat.com>
3380
3381 PR exp/17106:
3382 * gdbtypes.c (is_dynamic_type_internal): New function, from
3383 is_dynamic_type.
3384 (is_dynamic_type): Rewrite.
3385 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3386 (resolve_dynamic_struct): Likewise.
3387 (resolve_dynamic_type_internal): New function, from
3388 resolve_dynamic_type.
3389 (resolve_dynamic_type): Rewrite.
3390
3391 2014-07-14 Tom Tromey <tromey@redhat.com>
3392
3393 * target.c (target_require_runnable): Also check record_stratum.
3394 Update comment.
3395
3396 2014-07-11 Yao Qi <yao@codesourcery.com>
3397
3398 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3399 thumb_instruction_restores_sp return true.
3400
3401 2014-07-11 Yao Qi <yao@codesourcery.com>
3402
3403 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3404 (thumb_in_function_epilogue_p): Call
3405 thumb_instruction_restores_sp.
3406
3407 2014-07-11 Yao Qi <yao@codesourcery.com>
3408
3409 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3410 'add sp, #imm'.
3411 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3412
3413 2014-07-11 Gary Benson <gbenson@redhat.com>
3414
3415 * amd64-linux-nat.c (gdbcore.h): Remove include.
3416 (regset.h): Likewise.
3417 (nat/linux-btrace.h): Likewise.
3418 (btrace.h): Likewise.
3419 (gdb_assert.h): Likewise.
3420 (string.h): Likewise.
3421 (sys/uio.h): Likewise.
3422 (sys/debugreg.h): Likewise.
3423 (sys/syscall.h): Likewise.
3424 (sys/procfs.h): Likewise.
3425 (sys/user.h): Likewise.
3426 (asm/ptrace.h): Likewise.
3427 (i386-nat.h): Likewise.
3428 * i386-linux-nat.c (i386-nat.h): Likewise.
3429 (regset.h): Likewise.
3430 (target.h): Likewise.
3431 (linux-nat.h): Likewise.
3432 (nat/linux-btrace.h): Likewise.
3433 (btrace.h): Likewise.
3434 (gdb_assert.h): Likewise.
3435 (string.h): Likewise.
3436 (sys/uio.h): Likewise.
3437 (sys/user.h): Likewise.
3438 (sys/procfs.h): Likewise.
3439 (sys/reg.h): Likewise.
3440 (sys/debugreg.h): Likewise.
3441 (ORIG_EAX): Remove definition.
3442
3443 2014-07-11 Gary Benson <gbenson@redhat.com>
3444
3445 * i386-linux-nat.h: New file.
3446 * x86-linux-nat.h: Likewise.
3447 * x86-linux-nat.c: Likewise.
3448 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3449 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3450 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3451 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3452 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3453 (PTRACE_SETREGSET): Likewise.
3454 (arch_lwp_info): Now in x86-linux-nat.c.
3455 (have_ptrace_getregset): Now in x86-linux-nat.h.
3456 (x86_linux_dr_get): Now in x86-linux-nat.c.
3457 (x86_linux_dr_set): Likewise.
3458 (x86_linux_dr_get_addr): Likewise.
3459 (x86_linux_dr_get_control): Likewise.
3460 (x86_linux_dr_get_status): Likewise.
3461 (update_debug_registers_callback): Likewise.
3462 (x86_linux_dr_set_control): Likewise.
3463 (x86_linux_dr_set_addr): Likewise.
3464 (x86_linux_prepare_to_resume): Likewise.
3465 (x86_linux_new_thread): Likewise.
3466 (x86_linux_new_fork): Likewise.
3467 (x86_linux_get_thread_area): Likewise.
3468 (super_post_startup_inferior): Likewise.
3469 (x86_linux_child_post_startup_inferior): Likewise.
3470 (AMD64_LINUX_USER64_CS): Likewise.
3471 (AMD64_LINUX_X32_DS): Likewise.
3472 (x86_linux_read_description): Likewise.
3473 (x86_linux_enable_btrace): Likewise.
3474 (x86_linux_disable_btrace): Likewise.
3475 (x86_linux_teardown_btrace): Likewise.
3476 (x86_linux_read_btrace): Likewise.
3477 (x86_linux_create_target): Likewise.
3478 (x86_linux_add_target): Likewise.
3479 * i386-linux-nat.c (x86-linux-nat.h): New include.
3480 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3481 (PTRACE_SETREGSET): Likewise.
3482 (arch_lwp_info): Now in x86-linux-nat.c.
3483 (have_ptrace_getregset): Now in x86-linux-nat.h.
3484 (x86_linux_dr_get): Now in x86-linux-nat.c.
3485 (x86_linux_dr_set): Likewise.
3486 (x86_linux_dr_get_addr): Likewise.
3487 (x86_linux_dr_get_control): Likewise.
3488 (x86_linux_dr_get_status): Likewise.
3489 (update_debug_registers_callback): Likewise.
3490 (x86_linux_dr_set_control): Likewise.
3491 (x86_linux_dr_set_addr): Likewise.
3492 (x86_linux_prepare_to_resume): Likewise.
3493 (x86_linux_new_thread): Likewise.
3494 (x86_linux_new_fork): Likewise.
3495 (x86_linux_get_thread_area): Likewise.
3496 (super_post_startup_inferior): Likewise.
3497 (x86_linux_child_post_startup_inferior): Likewise.
3498 (AMD64_LINUX_USER64_CS): Likewise.
3499 (AMD64_LINUX_X32_DS): Likewise.
3500 (x86_linux_read_description): Likewise.
3501 (x86_linux_enable_btrace): Likewise.
3502 (x86_linux_disable_btrace): Likewise.
3503 (x86_linux_teardown_btrace): Likewise.
3504 (x86_linux_read_btrace): Likewise.
3505 (x86_linux_create_target): Likewise.
3506 (x86_linux_add_target): Likewise.
3507
3508 2014-07-11 Gary Benson <gbenson@redhat.com>
3509
3510 * amd64-linux-nat.c: Comment and whitespace changes.
3511 * i386-linux-nat.c: Comment and whitespace changes.
3512
3513 2014-07-11 Gary Benson <gbenson@redhat.com>
3514
3515 * amd64-linux-nat.c (x86_linux_create_target): New function.
3516 (x86_linux_add_target): Likewise.
3517 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3518 * i386-linux-nat.c (x86_linux_create_target): New function.
3519 (x86_linux_add_target): Likewise.
3520 (_initialize_i386_linux_nat): Delegate to the above new functions.
3521
3522 2014-07-11 Gary Benson <gbenson@redhat.com>
3523
3524 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3525 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3526 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3527 (ps_get_thread_area): Delegate to the above.
3528
3529 2014-07-11 Gary Benson <gbenson@redhat.com>
3530
3531 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3532 x86_linux_read_description. All uses updated. amd64-specific
3533 code conditionalized. Conditionalized i386-specific code added.
3534 Redundant cast removed.
3535 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3536 x86_linux_read_description. All uses updated. i386-specific
3537 code conditionalized. Conditionalized amd64-specific code added.
3538 One sizeof replaced with the actual type it is describing.
3539
3540 2014-07-11 Gary Benson <gbenson@redhat.com>
3541
3542 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3543 x86_linux_dr_get. All uses updated.
3544 (amd64_linux_dr_set): Renamed to
3545 x86_linux_dr_set. All uses updated.
3546 (amd64_linux_dr_get_addr): Renamed to
3547 x86_linux_dr_get_addr. All uses updated.
3548 (amd64_linux_dr_get_control): Renamed to
3549 x86_linux_dr_get_control. All uses updated.
3550 (amd64_linux_dr_get_status): Renamed to
3551 x86_linux_dr_get_status. All uses updated.
3552 (amd64_linux_dr_set_control): Renamed to
3553 x86_linux_dr_set_control. All uses updated.
3554 (amd64_linux_dr_set_addr): Renamed to
3555 x86_linux_dr_set_addr. All uses updated.
3556 (amd64_linux_prepare_to_resume): Renamed to
3557 x86_linux_prepare_to_resume. All uses updated.
3558 (amd64_linux_new_thread): Renamed to
3559 x86_linux_new_thread. All uses updated.
3560 (amd64_linux_new_fork): Renamed to
3561 x86_linux_new_fork. All uses updated.
3562 (amd64_linux_child_post_startup_inferior): Renamed to
3563 x86_linux_child_post_startup_inferior. All uses updated.
3564 (amd64_linux_enable_btrace): Renamed to
3565 x86_linux_enable_btrace. All uses updated.
3566 (amd64_linux_disable_btrace): Renamed to
3567 x86_linux_disable_btrace. All uses updated.
3568 (amd64_linux_teardown_btrace): Renamed to
3569 x86_linux_teardown_btrace. All uses updated.
3570 (amd64_linux_read_btrace): Renamed to
3571 x86_linux_read_btrace. All uses updated.
3572 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3573 x86_linux_dr_get. All uses updated.
3574 (i386_linux_dr_set): Renamed to
3575 x86_linux_dr_set. All uses updated.
3576 (i386_linux_dr_get_addr): Renamed to
3577 x86_linux_dr_get_addr. All uses updated.
3578 (i386_linux_dr_get_control): Renamed to
3579 x86_linux_dr_get_control. All uses updated.
3580 (i386_linux_dr_get_status): Renamed to
3581 x86_linux_dr_get_status. All uses updated.
3582 (i386_linux_dr_set_control): Renamed to
3583 x86_linux_dr_set_control. All uses updated.
3584 (i386_linux_dr_set_addr): Renamed to
3585 x86_linux_dr_set_addr. All uses updated.
3586 (i386_linux_prepare_to_resume): Renamed to
3587 x86_linux_prepare_to_resume. All uses updated.
3588 (i386_linux_new_thread): Renamed to
3589 x86_linux_new_thread. All uses updated.
3590 (i386_linux_new_fork): Renamed to
3591 x86_linux_new_fork. All uses updated.
3592 (i386_linux_child_post_startup_inferior): Renamed to
3593 x86_linux_child_post_startup_inferior. All uses updated.
3594 (i386_linux_enable_btrace): Renamed to
3595 x86_linux_enable_btrace. All uses updated.
3596 (i386_linux_disable_btrace): Renamed to
3597 x86_linux_disable_btrace. All uses updated.
3598 (i386_linux_teardown_btrace): Renamed to
3599 x86_linux_teardown_btrace. All uses updated.
3600 (i386_linux_read_btrace): Renamed to
3601 x86_linux_read_btrace. All uses updated.
3602
3603 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3604
3605 * remote.c (extended_remote_post_attach): New function.
3606 (init_extended_remote_ops): Install it as to_post_attach method.
3607
3608 2014-07-09 Pedro Alves <palves@redhat.com>
3609
3610 * infcmd.c (attach_command_post_wait): Don't call
3611 target_terminal_inferior here.
3612 (attach_command): Call it here instead.
3613
3614 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3615
3616 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3617 field.
3618 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3619 from varobj.c, with additional checks.
3620 (c_varobj_ops): Fill in is_path_expr_parent field.
3621 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3622 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3623 field.
3624 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3625 ops method.
3626 (varobj_default_is_path_expr_parent): New function.
3627 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3628 (varobj_default_is_path_expr_parent): Declare new function.
3629
3630 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3631
3632 * infcmd.c (finish_backward): Turn internal error into normal error.
3633
3634 2014-07-07 Pedro Alves <palves@redhat.com>
3635
3636 PR gdb/17096
3637 * remote.c (async_handle_remote_sigint)
3638 (async_handle_remote_sigint_twice): Call
3639 gdb_call_async_signal_handler instead of
3640 mark_async_signal_handler.
3641
3642 2014-07-07 Tom Tromey <tromey@redhat.com>
3643
3644 * target-delegates.c: Rebuild.
3645 * target.c (target_info_record): Remove.
3646 * record.c (info_record_command): Unconditionally call
3647 to_info_record.
3648 * target.h (struct target_ops) <to_info_record>: Use
3649 TARGET_DEFAULT_IGNORE.
3650 (target_info_record): Remove.
3651
3652 2014-07-07 Tom Tromey <tromey@redhat.com>
3653
3654 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3655 TARGET_DEFAULT_NORETURN.
3656 * target.c (generic_tls_error): New function.
3657 (target_translate_tls_address): Don't search target stack.
3658 * target-delegates.c: Rebuild.
3659 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3660 stack.
3661 * linux-thread-db.c (thread_db_get_thread_local_address):
3662 Unconditionally call beneath target.
3663
3664 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3665
3666 * cli/cli-logging.c (pop_output_files): Assign targerr to
3667 gdb_stdtargerr.
3668
3669 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * MAINTAINERS (Write After Approval): Update my email address.
3672
3673 2014-07-02 Gary Benson <gbenson@redhat.com>
3674
3675 * proc-service.c (ps_xfer_memory): Update comment.
3676 (ps_pstop): Remove unused function.
3677 (ps_pcontinue): Likewise.
3678 (ps_lstop): Likewise.
3679 (ps_lcontinue): Likewise.
3680 (ps_lgetxregsize): Likewise.
3681 (ps_lgetxregs): Likewise.
3682 (ps_lsetxregs): Likewise.
3683 (ps_plog): Likewise.
3684 (ps_ptread): Likewise.
3685 (ps_ptwrite): Likewise.
3686
3687 2014-07-01 Mark Wielaard <mjw@redhat.com>
3688
3689 * dwarf2read.c (add_array_cv_type): New function.
3690 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3691 (read_tag_volatile_type): Likewise.
3692
3693 2014-07-01 Tom Tromey <tromey@redhat.com>
3694
3695 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3696 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3697 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3698 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3699 * command.h (cmd_cfunc_ftype): Move earlier.
3700 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3701 (add_com, add_info): Use cmd_cfunc_ftype.
3702
3703 2014-06-30 Tom Tromey <tromey@redhat.com>
3704
3705 * symtab.c (operator_chars): Make parameters and return type
3706 const.
3707 (file_matches): Make "files" const.
3708 (struct search_symbols_data) <files>: Now const.
3709 (search_symbols): Make "regexp" and "files" parameters const.
3710 Update.
3711 (symtab_symbol_info): Remove cast.
3712 (rbreak_command): Update.
3713 * symtab.h (search_symbols): Update.
3714
3715 2014-06-27 Yao Qi <yao@codesourcery.com>
3716
3717 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3718 Change parameter type to 'struct thread_info *'. Caller
3719 updated.
3720 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3721 Update declaration.
3722 * dummy-frame.c (struct dummy_frame_id): New.
3723 (dummy_frame_id_eq): New function.
3724 (struct dummy_frame) <id>: Change its type to 'struct
3725 dummy_frame_id'.
3726 (dummy_frame_push): Add parameter ptid and save it in
3727 dummy_frame_id.
3728 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3729 inferior_ptid.
3730 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3731 to inferior_ptid.
3732 (lookup_dummy_frame): Change parameter type to 'struct
3733 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3734 instead of frame_id_eq.
3735 (dummy_frame_pop): Add parameter ptid. Callers updated.
3736 Update comments. Compose dummy_frame_id and pass it to
3737 lookup_dummy_frame.
3738 (dummy_frame_discard): Add parameter ptid.
3739 (dummy_frame_sniffer): Compose dummy_frame_id and call
3740 dummy_frame_id_eq instead of frame_id_eq.
3741 (fprint_dummy_frames): Print ptid.
3742 * dummy-frame.h: Remove comments.
3743 (dummy_frame_push): Add ptid in declaration.
3744 (dummy_frame_pop, dummy_frame_discard): Likewise.
3745
3746 2014-06-26 Tom Tromey <tromey@redhat.com>
3747
3748 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3749 * command.h (error_no_arg): Update.
3750
3751 2014-06-26 Tom Tromey <tromey@redhat.com>
3752
3753 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3754 (do_show_command): Make "arg" const.
3755 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3756
3757 2014-06-26 Tom Tromey <tromey@redhat.com>
3758
3759 * record-full.c (record_full_get_bookmark): Make "args" const.
3760 (record_full_goto_bookmark): Make "raw_bookmark" const.
3761 * record.c (record_goto): New function.
3762 (cmd_record_goto): Use it. Now static.
3763 * record.h (record_goto): Declare.
3764 (cmd_record_goto): Remove declaration.
3765 * target-delegates.c: Rebuild.
3766 * target.h (struct target_ops) <to_get_bookmark,
3767 to_goto_bookmark>: Make parameter const.
3768
3769 2014-06-26 Tom Tromey <tromey@redhat.com>
3770
3771 * defs.h (generic_load): Update.
3772 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3773 * monitor.c (monitor_load): Make "args" const.
3774 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3775 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3776 const.
3777 (mips_load): Make "file" const.
3778 * remote-sim.c (gdbsim_load): Make "args" const.
3779 * remote.c (remote_load): Make "name" const.
3780 * symfile.c (generic_load): Make "args" const.
3781 * target-delegates.c: Rebuild.
3782 * target.c (target_load): Make "arg" const.
3783 (debug_to_load): Make "args" const.
3784 * target.h (struct target_ops) <to_load>: Make parameter const.
3785 (target_load): Update.
3786
3787 2014-06-26 Tom Tromey <tromey@redhat.com>
3788
3789 PR symtab/16902:
3790 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3791 (dwarf2_physname, read_partial_die)
3792 (guess_partial_die_structure_name, fixup_partial_die)
3793 (guess_full_die_structure_name, anonymous_struct_prefix)
3794 (dwarf2_name): Use per-BFD obstack.
3795
3796 2014-06-26 Yao Qi <yao@codesourcery.com>
3797
3798 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3799 dummyframe and this_id into inner block below.
3800
3801 2014-06-26 Yao Qi <yao@codesourcery.com>
3802
3803 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3804 with "signal_pass[0]" in the initialization of signal_pass.
3805
3806 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3807
3808 * record-btrace.c (record_btrace_generating_corefile)
3809 (record_btrace_prepare_to_generate_core)
3810 (record_btrace_done_generating_core): New.
3811 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3812 (record_btrace_store_registers, record_btrace_prepare_to_store):
3813 Forward request when generating a core file.
3814 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3815 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3816 to_done_generating_core.
3817
3818 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3819
3820 * target.h (target_ops) <to_prepare_to_generate_core>
3821 <to_done_generating_core>: New.
3822 (target_prepare_to_generate_core, target_done_generating_core): New.
3823 * target.c (target_prepare_to_generate_core)
3824 (target_done_generating_core): New.
3825 * target-delegates.c: Regenerate.
3826 * gcore.c: (write_gcore_file): Rename to ...
3827 (write_gcore_file_1): ...this.
3828 (write_gcore_file): Call target_prepare_to_generate_core
3829 and target_done_generating_core.
3830
3831 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3832
3833 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3834 * gcore.c (write_gcore_file): Free memory returned from
3835 make_corefile_notes.
3836 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3837 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3838
3839 2014-06-24 Yao Qi <yao@codesourcery.com>
3840
3841 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3842 (arm_linux_init_abi): Set skip_trampoline_code with
3843 gdbarch_skip_trampoline_code instead of
3844 find_solib_trampoline_target.
3845
3846 2014-06-24 Yao Qi <yao@codesourcery.com>
3847
3848 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3849 arm_skip_bx_reg returns non-zero.
3850
3851 2014-06-24 Yao Qi <yao@codesourcery.com>
3852
3853 * arm-tdep.c (arm_skip_bx_reg): New function.
3854 (arm_skip_stub): Call arm_skip_bx_reg.
3855
3856 2014-06-23 Don Breazeal <donb@codesourcery.com>
3857
3858 * MAINTAINERS: Add myself as write-after-approval maintainer.
3859
3860 2014-06-23 Pedro Alves <palves@redhat.com>
3861
3862 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3863 DR_CONTROL before setting DR0..DR3.
3864 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3865 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3866 bits of DR_CONTROL related to the debug register slot being
3867 disabled. If all slots are vacant, clear local slowdown as well,
3868 and assert DR_CONTROL is 0.
3869
3870 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3871
3872 * python/lib/gdb/command/xmethods.py
3873 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3874 current progspace only if the string "progspace" matches LOCUS_RE.
3875
3876 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3877
3878 Fix --with-system-readline with readline-6.3 patch 5.
3879 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3880 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3881 types.
3882
3883 2014-06-20 Tom Tromey <tromey@redhat.com>
3884
3885 * dwarf2read.c (dw2_get_real_path): Use correct type in
3886 OBSTACK_CALLOC.
3887 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3888
3889 2014-06-20 Gary Benson <gbenson@redhat.com>
3890
3891 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3892 * common/glibc_thread_db.h: Likewise.
3893 * common/i386-cpuid.h: Likewise.
3894 * common/i386-gcc-cpuid.h: Likewise.
3895 * common/linux-btrace.h: Likewise.
3896 * common/linux-osdata.h: Likewise.
3897 * common/linux-procfs.h: Likewise.
3898 * common/linux-ptrace.h: Likewise.
3899 * common/mips-linux-watch.h: Likewise.
3900 * common/linux-btrace.c: Moved to nat.
3901 * common/linux-osdata.c: Likewise.
3902 * common/linux-procfs.c: Likewise.
3903 * common/linux-ptrace.c: Likewise.
3904 * common/mips-linux-watch.c: Likewise.
3905 * nat/gdb_thread_db.h: Moved from common.
3906 * nat/glibc_thread_db.h: Likewise.
3907 * nat/i386-cpuid.h: Likewise.
3908 * nat/i386-gcc-cpuid.h: Likewise.
3909 * nat/linux-btrace.c: Likewise.
3910 * nat/linux-btrace.h: Likewise.
3911 * nat/linux-osdata.c: Likewise.
3912 * nat/linux-osdata.h: Likewise.
3913 * nat/linux-procfs.c: Likewise.
3914 * nat/linux-procfs.h: Likewise.
3915 * nat/linux-ptrace.c: Likewise.
3916 * nat/linux-ptrace.h: Likewise.
3917 * nat/mips-linux-watch.c: Likewise.
3918 * nat/mips-linux-watch.h: Likewise.
3919 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3920 (object file files): Reordered.
3921 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3922 of glibc_thread_db.h.
3923
3924 2014-06-20 Gary Benson <gbenson@redhat.com>
3925
3926 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3927 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3928 (i386_dr_low): Likewise.
3929 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3930 (i386_dr_low_set_addr): Likewise.
3931 (i386_dr_low_get_addr): Likewise.
3932 (i386_dr_low_can_set_control): Likewise.
3933 (i386_dr_low_set_control): Likewise.
3934 (i386_dr_low_get_control): Likewise.
3935 (i386_dr_low_get_status): Likewise.
3936 (i386_get_debug_register_length): Likewise.
3937 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3938 (i386_dr_low): Likewise.
3939 * nat/i386-dregs.c (i386-low.h): Remove include.
3940 (i386-nat.h): Likewise.
3941 (nat/i386-dregs.h): New include.
3942 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3943 (i386_dr_low_set_addr): Likewise.
3944 (i386_dr_low_get_addr): Likewise.
3945 (i386_dr_low_can_set_control): Likewise.
3946 (i386_dr_low_set_control): Likewise.
3947 (i386_dr_low_get_control): Likewise.
3948 (i386_dr_low_get_status): Likewise.
3949 (i386_get_debug_register_length): Likewise.
3950 (debug_hw_points): Likewise.
3951
3952 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3953
3954 * Makefile.in (SFILES): Add d-exp.y.
3955 (YYFILES): Add d-exp.c.
3956 (YYOBJ): Add d-exp.o.
3957 (local-maintainer-clean): Delete d-exp.c.
3958 * d-exp.y: New file.
3959 * d-lang.h (d_parse): New declaration.
3960 (d_error): New declaration.
3961 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3962 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3963 PREC_ORDER operators.
3964 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3965
3966 2014-06-19 Yao Qi <yao@codesourcery.com>
3967
3968 * gdbthread.h (any_running): Remove the declaration.
3969 * thread.c (any_running): Remove.
3970
3971 2014-06-19 Yao Qi <yao@codesourcery.com>
3972
3973 * gdbthread.h (struct thread_info) <state>: Change its type to
3974 'enum thread_state'. Update comments.
3975
3976 2014-06-19 Pedro Alves <palves@redhat.com>
3977
3978 * gdbthread.h (ALL_THREADS): Delete.
3979 (ALL_NON_EXITED_THREADS): New macro.
3980 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3981 instead of ALL_THREADS.
3982 * infrun.c (find_thread_needs_step_over)
3983 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3984 instead of ALL_THREADS.
3985 * record-btrace.c (record_btrace_open)
3986 (record_btrace_stop_recording, record_btrace_close)
3987 (record_btrace_is_replaying, record_btrace_resume)
3988 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3989 * remote.c (append_pending_thread_resumptions): Likewise.
3990 * thread.c (thread_apply_all_command): Likewise.
3991
3992 2014-06-19 Gary Benson <gbenson@redhat.com>
3993
3994 * i386-nat.c (i386_stopped_by_watchpoint):
3995 Use i386_dr_stopped_by_watchpoint.
3996 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3997 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3998
3999 2014-06-19 Gary Benson <gbenson@redhat.com>
4000
4001 * nat/i386-dregs.c: New file.
4002 * Makefile.in (i386-dregs.o): New rule.
4003 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4004 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4005 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4006 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4007 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4008 * config/i386/go32.mh (NATDEPFILES): Likewise.
4009 * config/i386/linux.mh (NATDEPFILES): Likewise.
4010 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4011 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4012 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4013 * i386-nat.h (debug_hw_points): New declaration.
4014 * i386-nat.c (breakpoint.h): Remove include.
4015 (command.h): Likewise.
4016 (target.h): Likewise.
4017 (gdb_assert.h): Likewise.
4018 (debug_hw_points): Made nonstatic.
4019 (debug_printf): Now in i386-dregs.c.
4020 (TARGET_HAS_DR_LEN_8): Likewise.
4021 (DR_CONTROL_SHIFT): Likewise.
4022 (DR_CONTROL_SIZE): Likewise.
4023 (DR_RW_EXECUTE): Likewise.
4024 (DR_RW_WRITE): Likewise.
4025 (DR_RW_READ): Likewise.
4026 (DR_RW_IORW): Likewise.
4027 (DR_LEN_1): Likewise.
4028 (DR_LEN_2): Likewise.
4029 (DR_LEN_4): Likewise.
4030 (DR_LEN_8): Likewise.
4031 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4032 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4033 (DR_ENABLE_SIZE): Likewise.
4034 (DR_LOCAL_SLOWDOWN): Likewise.
4035 (DR_GLOBAL_SLOWDOWN): Likewise.
4036 (DR_CONTROL_RESERVED): Likewise.
4037 (I386_DR_CONTROL_MASK): Likewise.
4038 (I386_DR_VACANT): Likewise.
4039 (I386_DR_LOCAL_ENABLE): Likewise.
4040 (I386_DR_GLOBAL_ENABLE): Likewise.
4041 (I386_DR_DISABLE): Likewise.
4042 (I386_DR_SET_RW_LEN): Likewise.
4043 (I386_DR_GET_RW_LEN): Likewise.
4044 (I386_DR_WATCH_HIT): Likewise.
4045 (i386_wp_op_t): Likewise.
4046 (i386_show_dr): Likewise.
4047 (i386_length_and_rw_bits): Likewise.
4048 (i386_insert_aligned_watchpoint): Likewise.
4049 (i386_remove_aligned_watchpoint): Likewise.
4050 (i386_handle_nonaligned_watchpoint): Likewise.
4051 (i386_update_inferior_debug_regs): Likewise.
4052 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4053 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4054 (i386_region_ok_for_watchpoint):
4055 Use i386_dr_region_ok_for_watchpoint.
4056 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4057
4058 2014-06-19 Gary Benson <gbenson@redhat.com>
4059
4060 * i386-nat.c (i386_insert_hw_breakpoint): Use
4061 i386_insert_watchpoint.
4062 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4063
4064 2014-06-19 Gary Benson <gbenson@redhat.com>
4065
4066 * i386-nat.c (i386_dr_show): Renamed to
4067 i386_show_dr and made static. All uses updated.
4068 (i386_dr_length_and_rw_bits): Renamed to
4069 i386_length_and_rw_bits and made static.
4070 All uses updated.
4071 (i386_dr_insert_aligned_watchpoint): Renamed to
4072 i386_insert_aligned_watchpoint and made static.
4073 All uses updated.
4074 (i386_dr_remove_aligned_watchpoint): Renamed to
4075 i386_remove_aligned_watchpoint and made static.
4076 All uses updated.
4077 (i386_dr_update_inferior_debug_regs): Renamed to
4078 i386_update_inferior_debug_regs and made static.
4079 All uses updated.
4080 * nat/i386-dregs.h (i386_dr_show): Removed.
4081 (i386_dr_length_and_rw_bits): Likewise.
4082 (i386_dr_insert_aligned_watchpoint): Likewise.
4083 (i386_dr_remove_aligned_watchpoint): Likewise.
4084 (i386_dr_update_inferior_debug_regs): Likewise.
4085
4086 2014-06-19 Gary Benson <gbenson@redhat.com>
4087
4088 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4089 * configure: Regenerate.
4090 * config.in: Likewise.
4091 * main.c (signal.h): New include.
4092 (setup_alternate_signal_stack): New function.
4093 (captured_main): Call the above.
4094 * cp-support.c (signal.h): New include.
4095 (catch_demangler_crashes): New flag.
4096 (SIGJMP_BUF): New define.
4097 (SIGSETJMP): Likewise.
4098 (SIGLONGJMP): Likewise.
4099 (gdb_demangle_jmp_buf): New static global.
4100 (gdb_demangle_attempt_core_dump): Likewise.
4101 (gdb_demangle_signal_handler): New function.
4102 (gdb_demangle): If catch_demangler_crashes is set, install the
4103 above signal handler before calling bfd_demangle, and restore
4104 the original signal handler afterwards. Display the offending
4105 symbol and call demangler_warning the first time a segmentation
4106 fault is caught.
4107 (_initialize_cp_support): New maint set/show command.
4108
4109 2014-06-19 Gary Benson <gbenson@redhat.com>
4110
4111 * utils.h (resource_limit_kind): New enum.
4112 (can_dump_core): New declaration.
4113 (warn_cant_dump_core): Likewise.
4114 (dump_core): Likewise.
4115 * utils.c (dump_core): Made nonstatic. Added new
4116 parameter "limit_kind".
4117 (can_dump_core): Made nonstatic. Moved printing code to...
4118 (warn_cant_dump_core): New function.
4119 (can_dump_core_warn): Likewise.
4120 (internal_vproblem): Replace calls to can_dump_core with
4121 calls to can_dump_core_warn. Supply new argument to each.
4122
4123 2014-06-19 Gary Benson <gbenson@redhat.com>
4124
4125 * utils.h (demangler_vwarning): New declaration.
4126 (demangler_warning): Likewise.
4127 * utils.c (struct internal_problem)
4128 <user_settable_should_quit>: New field.
4129 <user_settable_should_dump_core>: Likewise
4130 (internal_error_problem): Add values for above new fields.
4131 (internal_warning_problem): Likewise.
4132 (demangler_warning_problem): New static global.
4133 (demangler_vwarning): New function.
4134 (demangler_warning): Likewise.
4135 (add_internal_problem_command): Selectively add commands.
4136 (_initialize_utils): New internal problem command.
4137 * maint.c (maintenance_demangler_warning): New function.
4138 (_initialize_maint_cmds): New command.
4139
4140 2014-06-18 Tom Tromey <tromey@redhat.com>
4141
4142 * f-valprint.c (info_common_command_for_block): Update.
4143 * symtab.h (struct general_symbol_info) <common_block>: Now
4144 const.
4145
4146 2014-06-18 Tom Tromey <tromey@redhat.com>
4147
4148 * symtab.h (struct symtab) <blockvector>: Now const.
4149 * ada-lang.c (ada_add_global_exceptions): Update.
4150 * buildsym.c (augment_type_symtab): Update.
4151 * dwarf2read.c (dw2_lookup_symbol): Update.
4152 * jit.c (finalize_symtab): Update.
4153 * jv-lang.c (add_class_symtab_symbol): Update.
4154 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4155 Update.
4156 * objfiles.c (objfile_relocate1): Update.
4157 * psymtab.c (lookup_symbol_aux_psymtabs)
4158 (maintenance_check_psymtabs): Update.
4159 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4160 Update.
4161 * spu-tdep.c (spu_catch_start): Update.
4162 * symmisc.c (dump_symtab_1): Update.
4163 * symtab.c (lookup_global_symbol_from_objfile)
4164 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4165 (basic_lookup_transparent_type_quick)
4166 (basic_lookup_transparent_type, find_pc_sect_symtab)
4167 (find_pc_sect_line, search_symbols): Update.
4168 * block.c (find_block_in_blockvector): Make "bl" const.
4169 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4170 const.
4171 (blockvector_contains_pc): Make "bv" const.
4172 (block_for_pc_sect): Update.
4173 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4174 (blockvector_contains_pc): Update.
4175 * breakpoint.c (resolve_sal_pc): Update.
4176 * inline-frame.c (block_starting_point_at): Update.
4177
4178 2014-06-18 Tom Tromey <tromey@redhat.com>
4179
4180 * completer.c (complete_line): Make "line_buffer" const.
4181 * completer.h (complete_line): Update.
4182
4183 2014-06-18 Tom Tromey <tromey@redhat.com>
4184
4185 * symtab.c (add_macro_name): Remove unneeded cast.
4186
4187 2014-06-18 Tom Tromey <tromey@redhat.com>
4188
4189 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4190 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4191
4192 2014-06-18 Tom Tromey <tromey@redhat.com>
4193
4194 * probe.c (info_probes_for_ops): Make "arg" const.
4195 * probe.h (info_probes_for_ops): Update.
4196
4197 2014-06-18 Tom Tromey <tromey@redhat.com>
4198
4199 * varobj.c (varobj_create): Update.
4200 * valops.c (value_of_this): Update.
4201 * tracepoint.c (add_local_symbols, scope_info): Update.
4202 * symtab.h (struct general_symbol_info) <block>: Now const.
4203 * symtab.c (skip_prologue_sal)
4204 (default_make_symbol_completion_list_break_on)
4205 (skip_prologue_using_sal): Update.
4206 * stack.h (iterate_over_block_locals)
4207 (iterate_over_block_local_vars): Update.
4208 * stack.c (print_frame_args): Update.
4209 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4210 parameter const.
4211 (get_selected_block): Make return type const.
4212 * python/py-frame.c (frapy_block): Update.
4213 * python/py-block.c (gdbpy_block_for_pc): Update.
4214 * p-exp.y (%union) <bval>: Now const.
4215 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4216 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4217 * m2-exp.y (%union) <bval>: Now const.
4218 * linespec.c (get_current_search_block): Make return type const.
4219 (create_sals_line_offset, find_label_symbols): Update.
4220 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4221 Update.
4222 (block_starting_point_at): Make "block" const.
4223 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4224 (check_exception_resume): Update.
4225 * guile/scm-frame.c (gdbscm_frame_block): Update.
4226 * guile/scm-block.c (gdbscm_lookup_block): Update.
4227 * frame.h (get_frame_block): Update.
4228 (get_selected_block): Make return type const.
4229 * frame.c (frame_id_inner): Update.
4230 * f-valprint.c (info_common_command_for_block)
4231 (info_common_command): Update.
4232 * dwarf2loc.c (dwarf2_find_location_expression)
4233 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4234 (locexpr_describe_location_piece): Update.
4235 * c-exp.y (%union) <bval>: Now const.
4236 * breakpoint.c (resolve_sal_pc): Update.
4237 * blockframe.c (get_frame_block):Make return type const.
4238 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4239 (block_innermost_frame): Update.
4240 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4241 (block_for_pc, block_for_pc_sect): Update.
4242 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4243 'pblock' const.
4244 (block_for_pc_sect, block_for_pc): Make return type const.
4245 * ax-gdb.c (gen_expr): Update.
4246 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4247 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4248 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4249 (ada_read_var_value): Update.
4250 * ada-exp.y (struct name_info) <block>: Now const.
4251 (%union): Likewise.
4252 (block_lookup): Constify.
4253
4254 2014-06-18 Gary Benson <gbenson@redhat.com>
4255
4256 * nat/i386-dregs.h: New file.
4257 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4258 * i386-nat.h (i386-dregs.h): New include.
4259 (DR_FIRSTADDR): Now in i386-dregs.h.
4260 (DR_LASTADDR): Likewise.
4261 (DR_NADDR): Likewise.
4262 (DR_STATUS): Likewise.
4263 (DR_CONTROL): Likewise.
4264 (i386_debug_reg_state): Likewise.
4265 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4266
4267 2014-06-18 Don Breazeal <donb@codesourcery.com>
4268
4269 * breakpoint.c (set_longjmp_breakpoint): Call
4270 momentary_breakpoint_from_master with additional argument.
4271 (set_longjmp_breakpoint_for_call_dummy): Call
4272 momentary_breakpoint_from_master with additional argument.
4273 (set_std_terminate_breakpoint): Call
4274 momentary_breakpoint_from_master with additional argument.
4275 (momentary_breakpoint_from_master): Add argument to function
4276 definition and use it to initialize structure member flag.
4277 (clone_momentary_breakpoint): Call
4278 momentary_breakpoint_from_master with additional argument.
4279 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4280 member flags set in momentary_breakpoint_from_master.
4281
4282 2014-06-18 Gary Benson <gbenson@redhat.com>
4283
4284 * i386-nat.c (i386_show_dr): Renamed to
4285 i386_dr_show and made nonstatic. All uses updated.
4286 (i386_length_and_rw_bits): Renamed to
4287 i386_dr_length_and_rw_bits and made nonstatic.
4288 All uses updated.
4289 (i386_insert_aligned_watchpoint): Renamed to
4290 i386_dr_insert_aligned_watchpoint and made nonstatic.
4291 All uses updated.
4292 (i386_remove_aligned_watchpoint): Renamed to
4293 i386_dr_remove_aligned_watchpoint and made nonstatic.
4294 All uses updated.
4295 (i386_update_inferior_debug_regs): Renamed to
4296 i386_dr_update_inferior_debug_regs and made nonstatic.
4297 All uses updated.
4298
4299 2014-06-18 Gary Benson <gbenson@redhat.com>
4300
4301 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4302 (i386_dr_low_can_set_control): Likewise.
4303 (i386_dr_low_set_addr): Likewise.
4304 (i386_dr_low_set_control): Likewise.
4305 (i386_dr_low_get_addr): Likewise.
4306 (i386_dr_low_get_status): Likewise.
4307 (i386_dr_low_get_control): Likewise.
4308 (i386_insert_aligned_watchpoint): Use new macros.
4309 (i386_update_inferior_debug_regs): Likewise.
4310 (i386_stopped_data_address): Likewise.
4311
4312 2014-06-18 Gary Benson <gbenson@redhat.com>
4313
4314 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4315 New parameter. All uses updated.
4316
4317 2014-06-18 Gary Benson <gbenson@redhat.com>
4318
4319 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4320 All uses updated.
4321
4322 2014-06-18 Gary Benson <gbenson@redhat.com>
4323
4324 * i386-nat.c (debug_printf): New macro.
4325 (i386_get_debug_register_length): Likewise.
4326 (TARGET_HAS_DR_LEN_8): Use above macro.
4327 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4328 and printf_unfiltered. Use phex to format values.
4329
4330 2014-06-18 Gary Benson <gbenson@redhat.com>
4331
4332 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4333 Make const.
4334
4335 2014-06-18 Gary Benson <gbenson@redhat.com>
4336
4337 * i386-nat.c: Comment changes.
4338
4339 2014-06-18 Gary Benson <gbenson@redhat.com>
4340
4341 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4342
4343 2014-06-18 Gary Benson <gbenson@redhat.com>
4344
4345 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4346 (i386_insert_aligned_watchpoint): Likewise.
4347 (i386_remove_aligned_watchpoint): Likewise.
4348 (i386_handle_nonaligned_watchpoint): Likewise.
4349
4350 2014-06-18 Gary Benson <gbenson@redhat.com>
4351
4352 * i386-nat.c: Whitespace changes.
4353
4354 2014-06-17 Samuel Bronson <naesten@gmail.com>
4355
4356 * MAINTAINERS: Update Roland McGrath's email address.
4357 Thanks to Sergio Durigan Junior for pointing out that he left
4358 Red Hat a while ago, and giving me a current address.
4359
4360 2014-06-17 Tom Tromey <tromey@redhat.com>
4361
4362 * utils.h (savestring): Remove declaration.
4363
4364 2014-06-17 Tom Tromey <tromey@redhat.com>
4365
4366 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4367
4368 2014-06-16 Keith Seitz <keiths@redhat.com>
4369
4370 PR mi/15863
4371 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4372 to update the varobj if inferior_ptid is null_ptid.
4373
4374 2014-06-16 Tom Tromey <tromey@redhat.com>
4375
4376 * target.h (struct target_ops) <to_info_proc>: Make parameter
4377 const.
4378 (target_info_proc): Update.
4379 * target.c (target_info_proc): Make "args" const.
4380 * procfs.c (procfs_info_proc): Update.
4381 * linux-tdep.c (linux_info_proc): Update.
4382 (linux_core_info_proc_mappings): Make "args" const.
4383 (linux_core_info_proc): Update.
4384 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4385 * gdbarch.c: Rebuild.
4386 * gdbarch.h: Rebuild.
4387 * corelow.c (core_info_proc): Update.
4388
4389 2014-06-16 Tom Tromey <tromey@redhat.com>
4390
4391 * target.h (struct target_ops) <to_disconnect>: Make parameter
4392 const.
4393 (target_disconnect): Update.
4394 * target.c (target_disconnect): Make "args" const.
4395 * target-delegates.c: Rebuild.
4396 * remote.c (remote_disconnect): Update.
4397 * record.h (record_disconnect): Update.
4398 * record.c (record_disconnect): Update.
4399 * inf-child.c (inf_child_disconnect): Update.
4400
4401 2014-06-16 Tom Tromey <tromey@redhat.com>
4402
4403 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4404 * target.c (debug_to_rcmd, default_rcmd): Update.
4405 * target-delegates.c: Rebuild.
4406 * remote.c (remote_rcmd): Update.
4407 * monitor.c (monitor_rcmd): Update.
4408
4409 2014-06-16 Pedro Alves <palves@redhat.com>
4410
4411 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4412 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4413 have OBJF_SHARED set.
4414 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4415 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4416 instead of OBJF_USERLOADED.
4417 * objfiles.h (OBJF_SHARED): Update comment.
4418 (userloaded_objfile_contains_address_p): Rename to ...
4419 (shared_objfile_contains_address_p): ... this, and update
4420 comments.
4421 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4422 new objfile.
4423 (remove_symbol_file_command): Skip objfiles that don't have
4424 OBJF_SHARED set.
4425
4426 2014-06-16 Tom Tromey <tromey@redhat.com>
4427
4428 * minsyms.h (prim_record_minimal_symbol)
4429 (prim_record_minimal_symbol_and_info): Update comments.
4430
4431 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4432
4433 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4434 or --without-guile, according to how GDB was built.
4435
4436 2014-06-13 Tom Tromey <tromey@redhat.com>
4437
4438 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4439 to help_list.
4440 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4441 to help_list.
4442 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4443 help_list.
4444 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4445 help_list.Pass all_commands, not -1, to help_list.
4446 * cli/cli-dump.c (dump_command, append_command)
4447 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4448 (binary_dump_command, binary_append_command): Pass all_commands,
4449 not -1, to help_list.
4450 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4451 -1, to help_list.
4452 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4453 -1, to help_list.
4454 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4455 help_list.
4456 * top.c (set_history): Pass all_commands, not -1, to help_list.
4457 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4458 all_commands, not -1, to help_list.
4459 * symfile.c (overlay_command): Pass all_commands, not -1, to
4460 help_list.
4461 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4462 help_list.
4463 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4464 help_list.
4465 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4466 -1, to help_list.
4467 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4468 not -1, to help_list.
4469 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4470 not -1, to help_list.
4471 * maint.c (maintenance_command, maintenance_info_command)
4472 (maintenance_print_command, maintenance_set_cmd): Pass
4473 all_commands, not -1, to help_list.
4474 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4475 help_list.
4476 * language.c (set_check): Pass all_commands, not -1, to help_list.
4477 * infcmd.c (unset_command): Pass all_commands, not -1, to
4478 help_list.
4479 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4480 help_list.
4481 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4482 help_list.
4483 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4484 help_list.
4485 * breakpoint.c (save_command): Pass all_commands, not -1, to
4486 help_list.
4487 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4488 all_commands, not -1, to help_list.
4489
4490 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4491
4492 * regcache.c (struct register_to_invalidate): New structure.
4493 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4494 functions.
4495 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4496
4497 2014-06-12 Yao Qi <yao@codesourcery.com>
4498
4499 * varobj.c (varobj_get_num_children): Call
4500 varobj_is_dynamic_p.
4501 (varobj_list_children): Likewise.
4502 (varobj_update): Likewise. Update comments.
4503
4504 2014-06-12 Yao Qi <yao@codesourcery.com>
4505
4506 * varobj.c (varobj_pretty_printed_p): Rename to ...
4507 (varobj_is_dynamic_p): ... this. New function.
4508 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4509 (varobj_is_dynamic_p): Declare.
4510 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4511 (mi_print_value_p, varobj_update_one): Likewise.
4512
4513 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4514 Yao Qi <yao@codesourcery.com>
4515
4516 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4517 (varobj_get_iterator): Wrap up code for pretty-printer by
4518 "#if HAVE_PYTHON" and "#endif".
4519 (update_dynamic_varobj_children): Likewise.
4520
4521 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4522 Yao Qi <yao@codesourcery.com>
4523
4524 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4525 gdb_python_initialized is false. Move some code from varobj.c.
4526 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4527 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4528 (struct varobj_item): Moved to varobj-iter.h".
4529 (varobj_clear_saved_item): New function.
4530 (update_dynamic_varobj_children): Move python-related code to
4531 py-varobj.c.
4532 (free_variable): Call varobj_clear_saved_item and
4533 varobj_iter_delete.
4534
4535 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4536 Yao Qi <yao@codesourcery.com>
4537
4538 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4539 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4540 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4541 (py-varobj.o): New rule.
4542 * python/py-varobj.c: New file.
4543 * python/python-internal.h (py_varobj_get_iterator): Declare.
4544 * varobj-iter.h: New file.
4545 * varobj.c: Include "varobj-iter.h"
4546 (struct varobj) <child_iter>: Change its type from "PyObject *"
4547 to "struct varobj_iter *".
4548 <saved_item>: Likewise.
4549 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4550 [HAVE_PYTHON] (varobj_get_iterator): New function.
4551 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4552 python-specific code to python/py-varobj.c.
4553 (install_visualizer): Call varobj_iter_delete instead of
4554 Py_XDECREF.
4555 * varobj.h (varobj_ensure_python_env): Declare.
4556
4557 2014-06-12 Yao Qi <yao@codesourcery.com>
4558
4559 * varobj.c (struct varobj_item): New structure.
4560 (create_child_with_value): Update declaration.
4561 (varobj_add_child): Replace arguments 'name' and 'value' with
4562 'item'. All callers updated.
4563 (install_dynamic_child): Likewise.
4564 (update_dynamic_varobj_children): Likewise.
4565 (varobj_add_child): Likewise.
4566 (create_child_with_value): Likewise.
4567
4568 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4569
4570 * NEWS: Create a new section for the next release branch.
4571 Rename the section of the current branch, now that it has
4572 been cut.
4573
4574 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4575
4576 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4577 * version.in: Bump version to 7.8.50.DATE-cvs.
4578
4579 2014-06-11 Pedro Alves <palves@redhat.com>
4580
4581 PR remote/17028
4582 * ser-mingw.c (net_windows_socket_check_pending): New function.
4583 (net_windows_select_thread): Ignore spurious wakeups. Use
4584 net_windows_socket_check_pending.
4585 (net_windows_wait_handle): Check for pending events with
4586 ioctlsocket, through net_windows_socket_check_pending, instead of
4587 checking the socket's event.
4588
4589 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4590
4591 * python/python-internal.h (gdb_PyObject_GetAttrString)
4592 (gdb_PyObject_HasAttrString): New inline function definitions.
4593 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4594 char * of the second argument to PyObject_GetAttrString.
4595
4596 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4597
4598 * serial.c (serial_write): Fix index of character to be printed
4599 in call to serial_logchar when serial debug traces are enabled.
4600
4601 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4602
4603 * gdbtypes (resolve_dynamic_range): Add function description.
4604
4605 2014-06-09 Pedro Alves <palves@redhat.com>
4606
4607 * linux-nat.c (linux_child_follow_fork): Initialize status with
4608 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4609 inner block. Only pass the signal to PTRACE_DETACH if in pass
4610 state.
4611
4612 2014-06-09 Gary Benson <gbenson@redhat.com>
4613
4614 * common/signals.c (gdb_signal_from_host): Reorder to separate
4615 the always-available ANSI-standard signals from the signals that
4616 require checking.
4617 (do_gdb_signal_to_host): Likewise.
4618 * proc-events.c (signal_table): Likewise.
4619
4620 2014-06-08 Hui Zhu <hui@codesourcery.com>
4621
4622 * common/linux-ptrace.c (linux_disable_event_reporting): New
4623 function.
4624 * common/linux-ptrace.h (linux_disable_event_reporting): New
4625 declaration.
4626 * linux-nat.c (linux_child_follow_fork): Do a single step before
4627 detach.
4628
4629 2014-06-07 Keith Seitz <keiths@redhat.com>
4630
4631 Revert:
4632 PR c++/16253
4633 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4634 from symbol_matches_domain in symtab.c. All local callers
4635 of symbol_matches_domain updated.
4636 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4637 search STRUCT_DOMAIN.
4638 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4639 independently. standard_lookup will do that automatically.
4640 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4641 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4642 (cp_lookup_symbol_in_namespace): Likewise.
4643 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4644 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4645 may return a STRUCT_DOMAIN match.
4646 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4647 * cp-support.c: Include language.h.
4648 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4649 VAR_DOMAIN.
4650 * psymtab.c (match_partial_symbol): Compare the requested
4651 domain with the symbol's domain directly.
4652 (lookup_partial_symbol): Likewise.
4653 * symtab.c (lookup_symbol_in_language): Explain when/why
4654 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4655 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4656 appropriate languages.
4657 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4658 and moved to ada-lang.c
4659 (lookup_block_symbol): Explain that this function only returns
4660 symbol matching the requested DOMAIN.
4661 Compare the requested domain with the symbol's domain directly.
4662 (iterate_over_symbols): Compare the requested domain with the
4663 symbol's domain directly.
4664 * symtab.h (symbol_matches_domain): Remove.
4665
4666 2014-06-06 Doug Evans <xdje42@gmail.com>
4667
4668 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4669 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4670 (gdbscm_guile_version_is_at_least): Declare.
4671 (gdbscm_scm_string_to_int): Declare.
4672 * guile/guile.c (gdbscm_guile_major_version): New global.
4673 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4674 (guile_datadir): New static global.
4675 (gdbscm_guile_data_directory): New function.
4676 (initialize_scheme_side): Update.
4677 (misc_guile_functions): Add guile-data-directory.
4678 (initialize_gdb_module): Fetch guile version number.
4679 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4680 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4681 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4682 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4683 comments.
4684 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4685 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4686 * guile/scm-value.c (gdbscm_value_to_string): Only call
4687 scm_port_conversion_strategy if Guile version >= 2.0.6.
4688
4689 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4690
4691 * main.c (print_gdb_help): Add -q and --silent.
4692
4693 2014-06-06 Gary Benson <gbenson@redhat.com>
4694
4695 * common/signals.c: Remove preprocessor conditionals for
4696 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4697 SIGSEGV and SIGTERM.
4698 * proc-events.c: Likewise.
4699
4700 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4701
4702 * symfile.c (symfile_free_objfile): Remove restriction to
4703 OBJF_USERLOADED.
4704 * symfile-mem.c (symbol_file_add_from_memory): Call
4705 add_target_sections_of_objfile.
4706
4707 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4708
4709 * guile/scm-value.c (gdbscm_history_append_x): Use
4710 'vlscm_get_value_smob_arg_unsafe' instead of
4711 'vlscm_scm_to_value'.
4712
4713 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4714
4715 PR mi/15806
4716 * utils.c (printchar): Don't escape at all if quoter is NUL.
4717 Update function documentation to clarify effect of parameter
4718 QUOTER.
4719 * remote.c (escape_buffer): Pass '\\' as the quoter to
4720 fputstrn_unfiltered.
4721 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4722 generate the output.
4723 (mi_solib_unloaded): Same.
4724
4725 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4726
4727 * development.sh: Delete.
4728 * Makefile.in (config.status): Adjust dependency on development.sh.
4729 * configure.ac: Adjust development.sh source call.
4730 * configure: Regenerate.
4731
4732 2014-06-04 Doug Evans <xdje42@gmail.com>
4733
4734 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4735 is_scheme_bkpt, spec.
4736 (bpscm_make_breakpoint_smob): Initialize new members.
4737 (gdbscm_create_breakpoint_x): Split into two ...
4738 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4739 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4740 (scheme_function breakpoint_functions): Update.
4741 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4742 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4743 register-breakpoint!.
4744
4745 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4746
4747 PR server/17023
4748 * mem-break.c (z_type_supported): Return zero if
4749 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4750
4751 2014-06-04 Tom Tromey <tromey@redhat.com>
4752
4753 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4754 value_from_contents_and_address_unresolved.
4755 (ada_template_to_fixed_record_type_1): Likewise.
4756 (ada_which_variant_applies): Likewise.
4757 * value.h (value_from_contents_and_address_unresolved): Declare.
4758 * value.c (value_from_contents_and_address_unresolved): New
4759 function.
4760 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4761 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4762 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4763
4764 2014-06-04 Tom Tromey <tromey@redhat.com>
4765
4766 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4767
4768 2014-06-04 Tom Tromey <tromey@redhat.com>
4769
4770 * procfs.c (procfs_attach): Make "args" const.
4771 * windows-nat.c (windows_attach): Make "args" const.
4772 * nto-procfs.c (procfs_attach): Make "args" const.
4773 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4774 * go32-nat.c (go32_attach): Make "args" const.
4775 * gnu-nat.c (gnu_attach): Make "args" const.
4776 * darwin-nat.c (darwin_attach): Make "args" const.
4777 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4778 * linux-nat.c (linux_nat_attach): Make "args" const.
4779 * remote.c (extended_remote_attach_1, extended_remote_attach):
4780 Make "args" const.
4781 * target.h (struct target_ops) <to_attach>: Make "args" const.
4782 (find_default_attach): Likewise.
4783 * utils.c (parse_pid_to_attach): Make "args" const.
4784 * utils.h (parse_pid_to_attach): Update.
4785
4786 2014-06-04 Tom Tromey <tromey@redhat.com>
4787
4788 * target-delegates.c: Rebuild.
4789 * target.c (default_thread_address_space): New function.
4790 (target_thread_address_space): Simplify.
4791 * target.h (struct target_ops) <to_thread_address_space>: Add
4792 TARGET_DEFAULT_FUNC.
4793
4794 2014-06-04 Doug Evans <xdje42@gmail.com>
4795
4796 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4797
4798 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4799
4800 * record-btrace.c: Include event-loop.h and inf-loop.h.
4801 (record_btrace_resume_exec_dir)
4802 (record_btrace_async_inferior_event_handler)
4803 (record_btrace_handle_async_inferior_event): New.
4804 (record_btrace_open): Create async event handler.
4805 (record_btrace_close): Delete async event handler.
4806 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4807 Mark async event handler.
4808 (record_btrace_execution_direction): New.
4809 (init_record_btrace_ops): Initialize to_execution_direction.
4810
4811 2014-06-03 Doug Evans <xdje42@gmail.com>
4812
4813 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4814 (gdbscm_make_parameter): Ditto.
4815
4816 2014-06-03 Doug Evans <dje@google.com>
4817
4818 * exec.c (exec_close_1): Call clear_section_table instead of
4819 resize_section_table.
4820 (clear_section_table): New function.
4821 (resize_section_table): Make static. Rename arg num_added to
4822 adjustment.
4823 * exec.h (clear_section_table): Declare.
4824 (resize_section_table): Delete.
4825 * progspace.c (release_program_space): Call clear_section_table
4826 instead of resize_section_table.
4827
4828 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4829
4830 * NEWS (Python Scripting): Add entry about the new xmethods
4831 feature.
4832
4833 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4834
4835 * python/py-xmethods.c: New file.
4836 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4837 (objfpy_dealloc): XDECREF on the new xmethods field.
4838 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4839 field.
4840 (objfpy_get_xmethods): New function.
4841 (objfile_getset): New entry 'xmethods'.
4842 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4843 (pspy_dealloc): XDECREF on the new xmethods field.
4844 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4845 field.
4846 (pspy_get_xmethods): New function.
4847 (pspace_getset): New entry 'xmethods'.
4848 * python/python-internal.h: Add declarations for new functions.
4849 * python/python.c (_initialize_python): Invoke
4850 gdbpy_initialize_xmethods.
4851 * python/lib/gdb/__init__.py (xmethods): New
4852 attribute.
4853 * python/lib/gdb/xmethod.py: New file.
4854 * python/lib/gdb/command/xmethods.py: New file.
4855
4856 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4857
4858 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4859 best match method returned by find_overload_match is an xmethod.
4860 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4861 the best matching operator returned by find_overload_match is an
4862 xmethod.
4863 * valops.c: #include "extension.h".
4864 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4865 Return void. The list of matching source methods is returned in
4866 "fn_list" and a vector of matching debug method workers is
4867 returned in "xm_worker_vec". Update all callers.
4868 (value_find_oload_method_list): Likewise.
4869 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4870 non-NULL, then the index of the best matching method in this
4871 vector is returned. Update all callers.
4872 (find_overload_match): Include xmethods while performing overload
4873 resolution.
4874
4875 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4876
4877 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4878 * extension-priv.h (struct extension_language_ops): Add the
4879 xmethod interface.
4880 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4881 get_matching_xmethod_workers, get_xmethod_argtypes,
4882 invoke_xmethod, free_xmethod_worker,
4883 free_xmethod_worker_vec): New functions.
4884 * extension.h: #include "common/vec.h".
4885 New function declarations.
4886 (struct xmethod_worker): New struct.
4887 (VEC (xmethod_worker_ptr)): New vector type.
4888 (xmethod_worker_ptr): New typedef.
4889 (xmethod_worker_vec): Likewise.
4890 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4891 builtin_type.
4892 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4893 (struct builtin_type): New field "xmethod".
4894 * valarith.c (value_ptradd): Assert that the value argument is not
4895 lval_xcallable.
4896 * valops.c (value_must_coerce_to_target): Return 0 for
4897 lval_xcallable values.
4898 * value.c (struct value): New field XM_WORKER in the field
4899 LOCATION.
4900 (value_address, value_raw_address): Return 0 for lval_xcallable
4901 values.
4902 (set_value_address): Assert that the value is not an
4903 lval_xcallable.
4904 (value_free): Free the associated xmethod worker when freeing
4905 lval_xcallable values.
4906 (set_value_component_location): Assert that the WHOLE value is not
4907 lval_xcallable.
4908 (value_of_xmethod, call_xmethod): New functions.
4909 * value.h: Declare "struct xmethod_worker".
4910 Declare new functions value_of_xmethod, call_xmethod.
4911
4912 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4913 Pedro Alves <palves@redhat.com>
4914
4915 PR breakpoints/17000
4916 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4917 New function, extracted from software_breakpoint_inserted_here_p.
4918 (software_breakpoint_inserted_here_p): Replace factored out code
4919 by call to find_non_raw_software_breakpoint_inserted_here.
4920 (bp_target_info_copy_insertion_state): New function.
4921 (bkpt_insert_location): Handle the case of a single-step
4922 breakpoint already inserted at the same address.
4923 (bkpt_remove_location): Handle the case of a single-step
4924 breakpoint still inserted at the same address.
4925 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4926 breakpoint already inserted at the same address.
4927 (deprecated_remove_raw_breakpoint): Handle the case of a
4928 non-raw breakpoint still inserted at the same address.
4929 (find_single_step_breakpoint): New function, extracted from
4930 single_step_breakpoint_inserted_here_p.
4931 (find_single_step_breakpoint): New function,
4932 factored out from single_step_breakpoint_inserted_here_p.
4933 (single_step_breakpoint_inserted_here_p): Reimplement.
4934
4935 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4936
4937 Pushed by Joel Brobecker <brobecker@adacore.com>
4938 * source.c (show_substitute_path_command): Fix display of matching
4939 substitution rules.
4940
4941 2014-06-03 Gary Benson <gbenson@redhat.com>
4942
4943 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4944
4945 2014-06-02 Doug Evans <xdje42@gmail.com>
4946
4947 Add parameter support for Guile.
4948 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4949 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4950 (scm-param.o): New rule.
4951 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4952 (gdbscm_misc_error): Declare.
4953 (gdbscm_canonicalize_command_name): Declare.
4954 (gdbscm_scm_to_host_string): Declare.
4955 (gdbscm_scm_from_host_string): Declare.
4956 (gdbscm_initialize_parameters): Declare.
4957 * guile/guile.c (initialize_gdb_module): Call
4958 gdbscm_initialize_parameters.
4959 * guile/lib/gdb.scm: Export parameter symbols.
4960 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4961 cmdscm_canonicalize_name and made public. All callers updated.
4962 * guile/scm-exception.c (gdbscm_misc_error): New function.
4963 * guile/scm-param.c: New file.
4964 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4965 (gdbscm_scm_to_host_string): New function.
4966 (gdbscm_scm_from_host_string): New function.
4967 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4968
4969 2014-06-02 Doug Evans <xdje42@gmail.com>
4970
4971 Add command support for Guile.
4972 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4973 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4974 (scm-cmd.o): New rule.
4975 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4976 (gdbscm_user_error_p): Declare.
4977 (gdbscm_parse_command_name): Declare.
4978 (gdbscm_valid_command_class_p): Declare.
4979 (gdbscm_initialize_commands): Declare.
4980 * guile/guile.c (initialize_gdb_module): Call
4981 gdbscm_initialize_commands.
4982 * guile/lib/gdb.scm: Export command symbols.
4983 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4984 (throw-user-error): New function.
4985 * guile/scm-cmd.c: New file.
4986 * guile/scm-exception.c (user_error_symbol): New static global.
4987 (gdbscm_user_error_p): New function.
4988 (gdbscm_initialize_exceptions): Set user_error_symbol.
4989 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4990
4991 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4992
4993 * top.c (command_loop): Handle comments here...
4994 (command_line_input): ... not here.
4995
4996 2014-06-02 Doug Evans <xdje42@gmail.com>
4997
4998 Add progspace support for Guile.
4999 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5000 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5001 (scm-progspace.o): New rule.
5002 * guile/guile-internal.h (pspace_smob): New typedef.
5003 (psscm_pspace_smob_pretty_printers): Declare.
5004 (psscm_pspace_smob_from_pspace): Declare.
5005 (psscm_scm_from_pspace): Declare.
5006 * guile/guile.c (initialize_gdb_module): Call
5007 gdbscm_initialize_pspaces.
5008 * guile/lib/gdb.scm: Export progspace symbols.
5009 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5010 support.
5011 (append-pretty-printer!): Ditto.
5012 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5013 Implement.
5014 * guile/scm-progspace.c: New file.
5015
5016 2014-06-03 Alan Modra <amodra@gmail.com>
5017
5018 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5019 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5020
5021 2014-06-02 Doug Evans <dje@google.com>
5022
5023 Add support for skeletonless type units.
5024 * dwarf2read.c (struct dwarf2_per_objfile): New member
5025 n_allocated_type_units.
5026 (struct dwarf2_per_objfile) <tu_stats>: New member
5027 nr_all_type_units_reallocs.
5028 (create_signatured_type_table_from_index): Initialize
5029 n_allocated_type_units
5030 (create_all_type_units): Ditto.
5031 (add_type_unit): Move up in file. New arg slot.
5032 All callers updated. Increase space for all_type_units more
5033 efficiently.
5034 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5035 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5036 (lookup_dwp_signatured_type): Ditto.
5037 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5038 All callers updated.
5039 (build_type_psymtabs_1): Leave type_unit_groups as
5040 NULL if no TUs present.
5041 (print_tu_stats): New function.
5042 (process_skeletonless_type_unit): New function.
5043 (process_dwo_file_for_skeletonless_type_units): New
5044 function.
5045 (process_skeletonless_type_units): New function.
5046 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5047 Call print tu_stats if debugging enabled.
5048
5049 2014-06-02 Pedro Alves <palves@redhat.com>
5050
5051 * breakpoint.c (build_target_command_list): Don't build a command
5052 list if we have any duplicate location that isn't a dprintf.
5053
5054 2014-06-02 Pedro Alves <palves@redhat.com>
5055
5056 * breakpoint.c (dprintf_breakpoint_hit): New function.
5057 (initialize_breakpoint_ops): Install it as dprintf's
5058 breakpoint_hit method.
5059
5060 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5061
5062 * source.c (substitute_path_rule_matches): Simplify using
5063 filename_ncmp instead of FILENAME_CMP.
5064
5065 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5066
5067 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5068
5069 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5070
5071 * configure.ac: When Guile is available, check for the
5072 availability of 'scm_new_smob'.
5073 * configure, config.h.in: Regenerate.
5074 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5075 function.
5076
5077 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5078
5079 * frame.c (struct frame_info): Add stop_string field.
5080 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5081 (get_prev_frame_always): Old content moved into
5082 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5083 TRY_CATCH, handle MEMORY_ERROR exceptions.
5084 (frame_stop_reason_string): New function definition.
5085 * frame.h (unwind_stop_reason_to_string): Extend comment to
5086 mention frame_stop_reason_string.
5087 (frame_stop_reason_string): New function declaration.
5088 * stack.c (frame_info): Switch to frame_stop_reason_string.
5089 (backtrace_command_1): Switch to frame_stop_reason_string.
5090 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5091 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5092 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5093
5094 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5095
5096 * frame.c (frame_stop_reason_string): Rename to ...
5097 (unwind_stop_reason_to_string): this.
5098 * frame.h (frame_stop_reason_string): Rename to ...
5099 (unwind_stop_reason_to_string): this.
5100 * stack.c (frame_info): Update call to frame_stop_reason_string.
5101 (backtrace_command_1): Likewise.
5102 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5103 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5104
5105 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5106
5107 * frame.c (remove_prev_frame): New function.
5108 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5109 remove_prev_frame.
5110
5111 2014-05-29 Pedro Alves <palves@redhat.com>
5112
5113 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5114 and make it const. When a single-step decays to a continue,
5115 clear 'step', not 'hw_step'. Pass whether the caller wanted
5116 to step to user_visible_resume_ptid, not what we ask the
5117 target to do.
5118
5119 2014-05-29 Pedro Alves <palves@redhat.com>
5120
5121 * infrun.c (process_event_stop_test, handle_step_into_function)
5122 (handle_step_into_function_backward): Adjust.
5123 Don't set the even thread's stop_step and call stop_waiting before
5124 calling end_stepping_range. Instead do that ...
5125 (end_stepping_range): ... here. Take an ecs pointer parameter.
5126
5127 2014-05-29 Pedro Alves <palves@redhat.com>
5128
5129 * infrun.c (stop_stepping): Rename to ...
5130 (stop_waiting): ... this.
5131 (proceed): Update comment.
5132 (process_event_stop_test, handle_inferior_event)
5133 (handle_signal_stop, handle_step_into_function)
5134 (handle_step_into_function_backward): Update.
5135
5136 2014-05-29 Pedro Alves <palves@redhat.com>
5137
5138 * infcall.c (run_inferior_call): Don't check whether the current
5139 thread is running after the proceed call.
5140
5141 2014-05-29 Pedro Alves <palves@redhat.com>
5142 Tom Tromey <tromey@redhat.com>
5143
5144 * NEWS: Mention "maint set target-async", "set mi-async", and that
5145 background execution commands are now always available.
5146 * target.h (target_async_permitted): Update comment.
5147 * target.c (target_async_permitted, target_async_permitted_1):
5148 Default to 1.
5149 (set_target_async_command): Rename to ...
5150 (maint_set_target_async_command): ... this.
5151 (show_target_async_command): Rename to ...
5152 (maint_show_target_async_command): ... this.
5153 (_initialize_target): Adjust.
5154 * infcmd.c (prepare_execution_command): Make extern.
5155 * inferior.h (prepare_execution_command): Declare.
5156 * infrun.c (set_observer_mode): Leave target async alone.
5157 * mi/mi-interp.c (mi_interpreter_init): Install
5158 mi_on_sync_execution_done as sync_execution_done observer.
5159 (mi_on_sync_execution_done): New function.
5160 (mi_execute_command_input_handler): Don't print the prompt if we
5161 just started a synchronous command with an async target.
5162 (mi_on_resume): Check sync_execution before printing prompt.
5163 * mi/mi-main.h (mi_async_p): Declare.
5164 * mi/mi-main.c: Include gdbcmd.h.
5165 (mi_async_p): New function.
5166 (mi_async, mi_async_1): New globals.
5167 (set_mi_async_command, show_mi_async_command, mi_async): New
5168 functions.
5169 (exec_continue): Call prepare_execution_command.
5170 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5171 (mi_execute_async_cli_command): Use mi_async_p.
5172 (_initialize_mi_main): Install "set mi-async". Make
5173 "target-async" a deprecated alias.
5174
5175 2014-05-29 Pedro Alves <palves@redhat.com>
5176
5177 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5178 (_initialize_cli_interp): Adjust.
5179 * event-loop.c: Include "observer.h".
5180 (start_event_loop): Notify 'command_error' observers instead of
5181 calling display_gdb_prompt. Remove FIXME comment.
5182 * event-top.c (display_gdb_prompt): Remove call into the
5183 interpreters.
5184 * inf-loop.c: Include "observer.h".
5185 (inferior_event_handler): Notify 'command_error' observers instead
5186 of calling display_gdb_prompt.
5187 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5188 observers instead of calling display_gdb_prompt.
5189 * interps.c (interp_set): Don't call display_gdb_prompt.
5190 (current_interp_display_prompt_p): Delete.
5191 * interps.h (interp_prompt_p): Delete declaration.
5192 (interp_prompt_p_ftype): Delete.
5193 (struct interp_procs) <prompt_proc_p>: Delete field.
5194 (current_interp_display_prompt_p): Delete declaration.
5195 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5196 (_initialize_mi_interp): Adjust.
5197 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5198 'command_error' observers.
5199 (tui_on_sync_execution_done, tui_on_command_error): New
5200 functions.
5201 (tui_display_prompt_p): Delete.
5202 (_initialize_tui_interp): Adjust.
5203
5204 2014-05-29 Pedro Alves <palves@redhat.com>
5205
5206 PR gdb/13860
5207 * cli/cli-interp.c: Include infrun.h and observer.h.
5208 (cli_uiout, cli_interp): New globals.
5209 (cli_on_signal_received, cli_on_end_stepping_range)
5210 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5211 functions.
5212 (cli_interpreter_init): Install them as 'end_stepping_range',
5213 'signal_received' 'signal_exited', 'exited' and 'no_history'
5214 observers.
5215 (_initialize_cli_interp): Remove cli_interp local.
5216 * infrun.c (handle_inferior_event): Call the several stop reason
5217 observers instead of printing the stop reason directly.
5218 (end_stepping_range): New function.
5219 (print_end_stepping_range_reason, print_signal_exited_reason)
5220 (print_exited_reason, print_signal_received_reason)
5221 (print_no_history_reason): Make static, and add an uiout
5222 parameter. Print to that instead of to CURRENT_UIOUT.
5223 * infrun.h (print_end_stepping_range_reason)
5224 (print_signal_exited_reason, print_exited_reason)
5225 (print_signal_received_reason print_no_history_reason): New
5226 declarations.
5227 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5228 'mi_uiout'.
5229 <cli_uiout>: New field.
5230 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5231 uiout for CLI output. Install 'signal_received',
5232 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5233 observers.
5234 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5235 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5236 (mi_on_no_history): New functions.
5237 (ui_out_free_cleanup): Delete function.
5238 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5239 instead use the one already stored in the MI interpreter data.
5240 (mi_ui_out): Adjust.
5241 * tui/tui-interp.c: Include infrun.h and observer.h.
5242 (tui_interp): New global.
5243 (tui_on_signal_received, tui_on_end_stepping_range)
5244 (tui_on_signal_exited, tui_on_exited)
5245 (tui_on_no_history): New functions.
5246 (tui_init): Install them as 'end_stepping_range',
5247 'signal_received' 'signal_exited', 'exited' and 'no_history'
5248 observers.
5249 (_initialize_tui_interp): Delete tui_interp local.
5250
5251 2014-05-29 Pedro Alves <palves@redhat.com>
5252
5253 PR gdb/15713
5254 * linux-nat.c (linux_nat_resume_callback): Rename the second
5255 parameter to 'except'. Skip LP if it points to EXCEPT.
5256 (linux_nat_resume): Don't mark the event lwp as not stopped
5257 before resuming sibling lwps. Instead ask
5258 linux_nat_resume_callback to skip the event lwp. Mark it as not
5259 stopped after actually resuming it.
5260 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5261 resuming it.
5262 (wait_lwp): Mark the lwp as stopped here.
5263 (stop_wait_callback): Mark the lwp as not stopped right after
5264 resuming it. Don't mark lwps as stopped here.
5265 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5266 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5267
5268 2014-05-29 Pedro Alves <palves@redhat.com>
5269
5270 PR PR15693
5271 * infrun.c (resume): Determine how much to resume depending on
5272 whether the caller wanted a step, not whether we can hardware step
5273 the target. Mark all threads that we intend to run as running,
5274 unless we're calling an inferior function.
5275 (normal_stop): If the thread is running an infcall, don't finish
5276 thread state.
5277 * target.c (target_resume): Don't mark threads as running here.
5278
5279 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5280
5281 * serial.c (_initialize_serial): Remove support for
5282 the "set remotebaud" and "show remotebaud" commands.
5283 * NEWS: Add entry documenting the removal of that command.
5284
5285 2014-05-28 Yao Qi <yao@codesourcery.com>
5286
5287 * charset.c: Fix typo in comments.
5288
5289 2014-05-27 Gary Benson <gbenson@redhat.com>
5290
5291 * utils.c (internal_vproblem): Prompt for a bug report.
5292
5293 2014-05-26 Andy Wingo <wingo@igalia.com>
5294
5295 * guile/scm-arch.c (arscm_mark_arch_smob):
5296 * guile/scm-block.c (bkscm_mark_block_smob)
5297 (bkscm_mark_block_syms_progress_smob):
5298 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5299 * guile/scm-exception.c (exscm_mark_exception_smob):
5300 * guile/scm-frame.c (frscm_mark_frame_smob):
5301 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5302 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5303 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5304 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5305 (ppscm_mark_pretty_printer_worker_smob):
5306 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5307 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5308 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5309 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5310 mark functions.
5311 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5312 function.
5313
5314 2014-05-26 Andy Wingo <wingo@igalia.com>
5315 Doug Evans <xdje42@gmail.com>
5316
5317 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5318 empty_base_class. All uses updated.
5319 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5320 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5321 Adapt all callers.
5322 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5323 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5324 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5325 (gdbscm_gsmob_has_property_p, add_property_name)
5326 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5327 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5328 (gdb-object-has-property?, gdb-object-properties): Remove.
5329 (gdb-object-kind): Renamed from gsmob-kind.
5330
5331 2014-05-26 Andy Wingo <wingo@igalia.com>
5332
5333 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5334 * configure: Regenerate.
5335
5336 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5337
5338 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5339
5340 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5341
5342 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5343 (replay_memory_access_read_only, replay_memory_access_read_write)
5344 (replay_memory_access_types, replay_memory_access)
5345 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5346 (cmd_set_record_btrace, cmd_show_record_btrace)
5347 (cmd_show_replay_memory_access): New.
5348 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5349 (record_btrace_remove_breakpoint): Replace
5350 record_btrace_allow_memory_access with replay_memory_access.
5351 (_initialize_record_btrace): Add commands.
5352 * NEWS: Announce it.
5353
5354 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5355
5356 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5357
5358 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5359
5360 * MAINTAINERS (Write After Approval): Move self back from
5361 paper trail.
5362
5363 2014-05-22 Pedro Alves <palves@redhat.com>
5364
5365 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5366 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5367 (disable_randomization, enum exec_direction_kind)
5368 (execution_direction, stop_registers, start_remote)
5369 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5370 (wait_for_inferior, normal_stop, get_last_target_status)
5371 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5372 (insert_step_resume_breakpoint_at_sal)
5373 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5374 (set_step_info, print_stop_event, signal_stop_state)
5375 (signal_print_state, signal_pass_state, signal_stop_update)
5376 (signal_print_update, signal_pass_update)
5377 (update_signals_program_target, clear_exit_convenience_vars)
5378 (displaced_step_dump_bytes, update_observer_mode)
5379 (signal_catch_update, gdb_signal_from_command): Move
5380 declarations ...
5381 * infrun.h: ... to this new file.
5382 * amd64-tdep.c: Include infrun.h.
5383 * annotate.c: Include infrun.h.
5384 * arch-utils.c: Include infrun.h.
5385 * arm-linux-tdep.c: Include infrun.h.
5386 * arm-tdep.c: Include infrun.h.
5387 * break-catch-sig.c: Include infrun.h.
5388 * breakpoint.c: Include infrun.h.
5389 * common/agent.c: Include infrun.h instead of inferior.h.
5390 * corelow.c: Include infrun.h.
5391 * event-top.c: Include infrun.h.
5392 * go32-nat.c: Include infrun.h.
5393 * i386-tdep.c: Include infrun.h.
5394 * inf-loop.c: Include infrun.h.
5395 * infcall.c: Include infrun.h.
5396 * infcmd.c: Include infrun.h.
5397 * infrun.c: Include infrun.h.
5398 * linux-fork.c: Include infrun.h.
5399 * linux-nat.c: Include infrun.h.
5400 * linux-thread-db.c: Include infrun.h.
5401 * monitor.c: Include infrun.h.
5402 * nto-tdep.c: Include infrun.h.
5403 * procfs.c: Include infrun.h.
5404 * record-btrace.c: Include infrun.h.
5405 * record-full.c: Include infrun.h.
5406 * remote-m32r-sdi.c: Include infrun.h.
5407 * remote-mips.c: Include infrun.h.
5408 * remote-notif.c: Include infrun.h.
5409 * remote-sim.c: Include infrun.h.
5410 * remote.c: Include infrun.h.
5411 * reverse.c: Include infrun.h.
5412 * rs6000-tdep.c: Include infrun.h.
5413 * s390-linux-tdep.c: Include infrun.h.
5414 * solib-irix.c: Include infrun.h.
5415 * solib-osf.c: Include infrun.h.
5416 * solib-svr4.c: Include infrun.h.
5417 * target.c: Include infrun.h.
5418 * top.c: Include infrun.h.
5419 * windows-nat.c: Include infrun.h.
5420 * mi/mi-interp.c: Include infrun.h.
5421 * mi/mi-main.c: Include infrun.h.
5422 * python/py-threadevent.c: Include infrun.h.
5423
5424 2014-05-22 Pedro Alves <palves@redhat.com>
5425
5426 * infrun.c (handle_inferior_event): Store the exit code for
5427 --return-child-result here, instead of ...
5428 (print_exited_reason): ... here.
5429
5430 2014-05-21 Pedro Alves <palves@redhat.com>
5431
5432 PR gdb/13860
5433 * gdbthread.h (struct thread_control_state): New field
5434 `command_interp'.
5435 * infrun.c (follow_fork): Copy the new thread control field to the
5436 child fork thread.
5437 (clear_proceed_status_thread): Clear the new thread control field.
5438 (proceed): Set the new thread control field.
5439 * interps.h (command_interp): Declare.
5440 * interps.c (command_interpreter): New global.
5441 (command_interp): New function.
5442 (interp_exec): Set `command_interpreter' while here.
5443 * cli-out.c (cli_uiout_dtor): New function.
5444 (cli_ui_out_impl): Install it.
5445 * mi/mi-interp.c: Include cli-out.h.
5446 (mi_cmd_interpreter_exec): Add comment.
5447 (restore_current_uiout_cleanup): New function.
5448 (ui_out_free_cleanup): New function.
5449 (mi_on_normal_stop): If finishing an execution command started by
5450 a CLI command, or any kind of breakpoint-like event triggered,
5451 print the stop event to the output (CLI) stream.
5452 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5453
5454 2014-05-21 Pedro Alves <palves@redhat.com>
5455
5456 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5457 current source line having changed.
5458 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5459 * infrun.c (normal_stop): Adjust call to
5460 set_current_sal_from_frame.
5461 * source.c (clear_lines_listed_range): New function.
5462 (set_current_source_symtab_and_line, identify_source_line): Clear
5463 the lines listed range.
5464 (line_info): Handle the first "info line" after the current source
5465 line having changed.
5466 * stack.c (print_stack_frame): Remove center handling.
5467 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5468 center sal.line.
5469
5470 2014-05-21 Pedro Alves <palves@redhat.com>
5471
5472 * inf-child.c (inf_child_mourn_inferior): New function.
5473 * inf-child.h (inf_child_mourn_inferior): New declaration.
5474 * darwin-nat.c (darwin_mourn_inferior): Use
5475 inf_child_mourn_inferior.
5476 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5477 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5478 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5479 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5480 * windows-nat.c (windows_mourn_inferior): Likewise.
5481
5482 2014-05-21 Doug Evans <xdje42@gmail.com>
5483
5484 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5485
5486 2014-05-21 Doug Evans <xdje42@gmail.com>
5487
5488 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5489 (gdbscm_out_of_range_error): Ditto.
5490 (gdbscm_memory_error): Ditto.
5491 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5492 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5493 (gdbscm_out_of_range_error): Update.
5494 (gdbscm_memory_error): Update.
5495 (gdbscm_scm_to_target_string_unsafe): Delete.
5496
5497 2014-05-21 Pedro Alves <palves@redhat.com>
5498
5499 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5500 globals.
5501 (inf_child_open_target): New function.
5502 (inf_child_open): Use inf_child_open_target to push the target
5503 instead of erroring out.
5504 (inf_child_disconnect, inf_child_close)
5505 (inf_child_maybe_unpush_target): New functions.
5506 (inf_child_target): Install inf_child_disconnect and
5507 inf_child_close. Store a pointer to the returned object.
5508 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5509 declarations.
5510 * target.c (auto_connect_native_target): New global.
5511 (show_default_run_target): New function.
5512 (find_default_run_target): Return NULL if automatically connecting
5513 to the native target is disabled.
5514 (_initialize_target): Install set/show auto-connect-native-target.
5515 * NEWS: Mention "set auto-connect-native-target", and "target
5516 native".
5517 * linux-nat.c (super_close): New global.
5518 (linux_nat_close): Call super_close.
5519 (linux_nat_add_target): Store a pointer to the base class's
5520 to_close method.
5521 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5522 inf_child_maybe_unpush.
5523 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5524 already pushed.
5525 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5526 the inferior. Use inf_child_maybe_unpush_target.
5527 (inf_ttrace_attach): Don't push the target if it is already
5528 pushed.
5529 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5530 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5531 after mourning the inferior. Use inf_child_maybe_unpush_target.
5532 (darwin_attach_pid): Don't push the target if it is already
5533 pushed.
5534 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5535 mourning the inferior. Use inf_child_maybe_unpush_target.
5536 (gnu_detach): Use inf_child_maybe_unpush_target.
5537 * go32-nat.c (go32_create_inferior): Don't push the target if it
5538 is already pushed.
5539 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5540 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5541 (procfs_open): Rename to ...
5542 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5543 comments. Can target_preopen before changing node. Call
5544 inf_child_open_target to push the target explicitly.
5545 (procfs_attach): Don't push the target if it is already pushed.
5546 (procfs_detach): Use inf_child_maybe_unpush_target.
5547 (procfs_create_inferior): Don't push the target if it is already
5548 pushed.
5549 (nto_native_ops): New global.
5550 (procfs_open): Reimplement.
5551 (procfs_native_open): New function.
5552 (init_procfs_targets): Install procfs_native_open as to_open of
5553 "target native". Store a pointer to the "native" target in
5554 nto_native_ops.
5555 * procfs.c (procfs_attach): Don't push the target if it is already
5556 pushed.
5557 (procfs_detach): Use inf_child_maybe_unpush_target.
5558 (procfs_mourn_inferior): Only unpush the target after mourning the
5559 inferior. Use inf_child_maybe_unpush_target.
5560 (procfs_init_inferior): Don't push the target if it is already
5561 pushed.
5562 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5563 if it is already pushed.
5564
5565 2014-05-21 Pedro Alves <palves@redhat.com>
5566
5567 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5568 and "procfs" targets are now called "native" instead.
5569
5570 2014-05-21 Pedro Alves <palves@redhat.com>
5571
5572 * go32-nat.c (go32_open): Delete.
5573 (go32_target): Don't override the to_open method.
5574
5575 2014-05-21 Pedro Alves <palves@redhat.com>
5576
5577 * nto-procfs.c (procfs_can_run): New function.
5578 (nto_procfs_ops): New global.
5579 (init_procfs_targets): New, based on procfs_target. Install
5580 "target native" in addition to "target procfs".
5581 (_initialize_procfs): Call init_procfs_targets instead of adding
5582 the target here.
5583
5584 2014-05-21 Pedro Alves <palves@redhat.com>
5585
5586 * windows-nat.c (windows_target): Don't override to_shortname,
5587 to_longname or to_doc.
5588
5589 2014-05-21 Pedro Alves <palves@redhat.com>
5590
5591 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5592 to_doc.
5593
5594 2014-05-21 Pedro Alves <palves@redhat.com>
5595
5596 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5597 to_shortname, to_longname or to_doc.
5598
5599 2014-05-21 Pedro Alves <palves@redhat.com>
5600
5601 * go32-nat.c (go32_target): Don't override to_shortname,
5602 to_longname or to_doc.
5603
5604 2014-05-21 Pedro Alves <palves@redhat.com>
5605
5606 * inf-child.c (inf_child_open): Remove mention of "child".
5607 (inf_child_target): Rename target to "native" instead of "child".
5608
5609 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5610
5611 * Makefile.in (SFILES): Delete "regset.c".
5612 (COMMON_OBS): Delete "regset.o".
5613 * regset.c: Remove.
5614 * regset.h (regset_alloc): Delete prototype.
5615
5616 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5617
5618 * sparc-linux-tdep.c (sparc32_linux_gregset)
5619 (sparc32_linux_fpregset): New static regset structures.
5620 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5621 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5622 'fpregset' fields.
5623 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5624 (sparc64_linux_fpregset): New static regset structures.
5625 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5626 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5627 New static regset structures.
5628 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5629 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5630 New static regset structures.
5631 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5632 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5633 New static regset structures.
5634 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5635 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5636 New static regset structures.
5637 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5638
5639 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5640
5641 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5642 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5643 register maps ("regmaps") from "*regset" to "*regmap". Do this
5644 for all regmap types and variables.
5645 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5646 (sparc32_linux_supply_core_gregset)
5647 (sparc32_linux_collect_core_gregset)
5648 (sparc32_linux_supply_core_fpregset)
5649 (sparc32_linux_collect_core_fpregset): Likewise.
5650 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5651 (sparc_gregmap, sparc_fpregmap): ... these.
5652 (sparc_supply_gregset, sparc_collect_gregset)
5653 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5654 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5655 (_initialize_sparc_nat): Rename regmaps.
5656 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5657 (sparc_gregmap, sparc_fpregmap): ... these.
5658 (sparc_supply_gregset, sparc_collect_gregset)
5659 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5660 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5661 Rename macros to...
5662 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5663 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5664 Likewise.
5665 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5666 Rename to...
5667 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5668 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5669 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5670 regmaps.
5671 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5672 (sparc32_bsd_fpregset): Rename to...
5673 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5674 (sparc32_bsd_fpregmap): ... these.
5675 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5676 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5677 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5678 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5679 (struct sparc_gregmap, struct sparc_fpregmap)
5680 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5681 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5682 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5683 (sparc32_supply_regset, sparc32_collect_gregset)
5684 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5685 prototypes.
5686 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5687 (sparc64_linux_ptrace_gregmap): ... this.
5688 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5689 (_initialize_sparc64_linux_nat): Rename regmaps.
5690 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5691 (sparc64_linux_core_gregmap): ... this.
5692 (sparc64_linux_supply_core_gregset)
5693 (sparc64_linux_collect_core_gregset)
5694 (sparc64_linux_supply_core_fpregset)
5695 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5696 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5697 (sparc64_sol2_fpregset): Rename to...
5698 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5699 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5700 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5701 regmaps.
5702 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5703 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5704 (sparc64_bsd_fpregset): Rename to...
5705 (struct sparc_gregmap, sparc64_sol2_gregmap)
5706 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5707 (sparc64_bsd_fpregmap): ... these.
5708 (sparc64_supply_gregset, sparc64_collect_gregset)
5709 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5710 prototypes.
5711 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5712 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5713 (sparc64fbsd_gregmap): ... this.
5714 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5715 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5716 Rename regmaps.
5717 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5718 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5719 (sparc64nbsd_collect_fpregset): Likewise.
5720 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5721 (sparc64nbsd_gregmap): ... this.
5722 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5723 regmaps.
5724 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5725 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5726 (sparc64obsd_gregmap): ... this.
5727 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5728 regmaps.
5729 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5730 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5731 (sparc32nbsd_gregmap): ... this.
5732 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5733 regmaps.
5734
5735 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5736
5737 * score-tdep.c (score7_linux_gregset): New static regset
5738 structure.
5739 (score7_linux_regset_from_core_section): Remove dynamic regset
5740 allocation.
5741 (score_gdbarch_init): Drop allocation of tdep structure.
5742 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5743
5744 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5745
5746 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5747 regset structures.
5748 (am33_regset_from_core_section): Remove dynamic regset
5749 allocations.
5750
5751 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5752
5753 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5754 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5755 structures.
5756 (mips_linux_regset_from_core_section): Remove dynamic regset
5757 allocations.
5758 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5759 'gregset64', 'fpregset', and 'fpregset64'.
5760 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5761 deleted tdep fields.
5762
5763 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5764
5765 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5766 regset structures.
5767 (amd64_regset_from_core_section): Remove dynamic regset
5768 allocations.
5769 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5770 structure.
5771 (amd64obsd_regset_from_core_section): Remove dynamic regset
5772 allocation.
5773 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5774 Likewise.
5775 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5776 x86-common regset supply function.
5777 * i386-tdep.c (i386_collect_gregset): Make static.
5778 (i386_gregset): New global regset structure.
5779 (i386_fpregset, i386_xstateregset): New static regset structures.
5780 (i386_regset_from_core_section): Remove dynamic regset
5781 allocations.
5782 (i386_gdbarch_init): Remove initialization of tdep fields
5783 'gregset', 'fpregset', and 'xstateregset'.
5784 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5785 'fpregset', and 'xstateregset'.
5786 (i386_collect_gregset): Remove prototype.
5787 (i386_gregset): New declaration.
5788 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5789 structure.
5790 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5791 allocation.
5792
5793 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5794
5795 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5796 (arm_linux_vfpregset): New static regset structures.
5797 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5798 regset structures.
5799 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5800 and 'vfpregset' fields.
5801
5802 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5803
5804 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5805 (aarch64_linux_fpregset): New static regset structures.
5806 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5807 of regset structures.
5808 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5809 'fpregset' fields.
5810
5811 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5812
5813 * regset.h (struct regset): Remove gdbarch field.
5814 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5815 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5816 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5817 Likewise.
5818 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5819 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5820 (ppc32_linux_vsxregset): Likewise.
5821 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5822 via the regcache instead of the regset.
5823 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5824 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5825 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5826 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5827 Likewise.
5828
5829 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5830
5831 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5832 Constify structures.
5833 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5834 (alphanbsd_aout_gregset): Likewise.
5835 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5836 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5837 Likewise.
5838 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5839 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5840 Likewise.
5841 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5842 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5843 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5844 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5845 * m88k-tdep.c (m88k_gregset): Likewise.
5846 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5847 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5848 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5849 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5850 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5851 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5852 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5853 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5854 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5855 Likewise.
5856 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5857 * sh-tdep.h (sh_corefile_gregset): Likewise.
5858 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5859 * vax-tdep.c (vax_gregset): Likewise.
5860
5861 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5862
5863 Fix TLS access for -static -pthread.
5864 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5865 (try_thread_db_load_1): Initialize it.
5866 (thread_db_get_thread_local_address): Call it if LM is zero.
5867 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5868 * target.h (struct target_ops) (to_get_thread_local_address): Add
5869 load_module_addr comment.
5870
5871 2014-05-21 Pedro Alves <palves@redhat.com>
5872
5873 * dcache.c (dcache_read_memory_partial): If reading the cache line
5874 fails, fallback to reading just the memory the caller wanted.
5875
5876 2014-05-20 Doug Evans <dje@google.com>
5877
5878 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5879 instead of get_current_arch.
5880
5881 2014-05-20 Pedro Alves <palves@redhat.com>
5882
5883 * NEWS: Mention that compare-sections now works with all targets.
5884
5885 * remote.c (PACKET_qCRC): New enum value.
5886 (remote_verify_memory): Don't send qCRC if the target has no
5887 execution. Use packet_support/packet_ok. If the target doesn't
5888 support the qCRC packet, fallback to a deep memory copy.
5889 (compare_sections_command): Say "target image" instead of "remote
5890 executable".
5891 (_initialize_remote): Add PACKET_qCRC to the list of config
5892 packets that have no associated command. Extend comment.
5893 * target.c (simple_verify_memory, default_verify_memory): New
5894 function.
5895 * target.h (struct target_ops) <to_verify_memory>: Default to
5896 default_verify_memory.
5897 (simple_verify_memory): New declaration.
5898 * target-delegates.c: Regenerate.
5899
5900 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5901
5902 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5903
5904 2014-05-20 Hui Zhu <hui@codesourcery.com>
5905 Yao Qi <yao@codesourcery.com>
5906
5907 PR backtrace/16558
5908 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5909 and change address of sp and pc.
5910
5911 2014-05-19 Tom Tromey <tromey@redhat.com>
5912
5913 * gdbtypes.c (rank_function): Use XNEWVEC.
5914 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5915
5916 2014-05-19 Doug Evans <dje@google.com>
5917
5918 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5919 build_type_unit_groups and moved closer to only caller. Remove
5920 arguments. All references updated. Remove outdated .gdb_index
5921 comment.
5922 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5923 build_type_psymtabs_1.
5924
5925 2014-05-19 Doug Evans <dje@google.com>
5926
5927 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5928 n_type_unit_groups, all_type_unit_groups. All uses removed.
5929 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5930 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5931 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5932 (add_type_unit_group_to_table): Delete.
5933
5934 2014-05-19 Doug Evans <dje@google.com>
5935
5936 * eval.c (evaluate_subexp_standard): Add some comments.
5937
5938 2014-05-17 Doug Evans <xdje42@gmail.com>
5939
5940 * progspace.c (remove_program_space): Delete, unused.
5941 * progspace.h (remove_program_space): Ditto.
5942
5943 2014-05-17 Doug Evans <xdje42@gmail.com>
5944
5945 * inferior.c (prune_inferiors): Fix comment.
5946 (remove_inferior_command): Call prune_program_spaces.
5947
5948 2014-05-16 Doug Evans <dje@google.com>
5949
5950 New command line option -D.
5951 * NEWS: Mention it.
5952 * main.c (set_gdb_data_directory): New function.
5953 (captured_main): Recognize -D. Flag error for --data-directory "".
5954 Call set_gdb_data_directory.
5955 (print_gdb_help): Print --data-directory, -D.
5956 * main.h (set_gdb_data_directory): Declare.
5957 * top.c (staged_gdb_datadir): New static global.
5958 (set_gdb_datadir): Call set_gdb_data_directory
5959 (show_gdb_datadir): New function.
5960 (init_main): Update init of data-directory parameter.
5961
5962 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5963
5964 Import the "dirfd" gnulib module.
5965 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5966 * gnulib/aclocal.m4: Update.
5967 * gnulib/config.in: Update.
5968 * gnulib/configure: Update.
5969 * gnulib/import/Makefile.am: Update.
5970 * gnulib/import/Makefile.in: Update.
5971 * gnulib/import/dirfd.c: New.
5972 * gnulib/import/m4/dirfd.m4: New.
5973 * gnulib/import/m4/gnulib-cache.m4: Update.
5974 * gnulib/import/m4/gnulib-comp.m4: Update.
5975
5976 2014-05-16 Pierre Muller <muller@sourceware.org>
5977 Yao Qi <yao@codesourcery.com>
5978
5979 * valprint.c (print_wchar): Move the code on checking whether
5980 W is a printable wide char to the default branch of switch
5981 statement below. Call wchar_printable instead of gdb_iswprint.
5982
5983 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5984
5985 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5986 ldr.w and ldrd instructions.
5987
5988 2014-05-15 Doug Evans <dje@google.com>
5989
5990 * dwarf2read.c (read_structure_type): Delete outdated comments.
5991
5992 2014-05-14 Tom Tromey <tromey@redhat.com>
5993
5994 * macrocmd.c (print_macro_definition): Reindent.
5995
5996 2014-05-13 Doug Evans <xdje42@gmail.com>
5997
5998 * python/py-cmd.c (cmdpy_completer): Add comment.
5999 (completers): Make const.
6000
6001 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6002
6003 * infrun.c (resume): Remove should_resume (unused). Move up
6004 declaration of resume_ptid.
6005
6006 2014-05-13 Tom Tromey <tromey@redhat.com>
6007
6008 * language.h (unop_type_check): Remove.
6009 (binop_type_check): Don't declare.
6010
6011 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6012
6013 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6014 call to regcache_raw_collect.
6015
6016 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6017
6018 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6019 mi_console->quote as the quoting character.
6020
6021 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6022
6023 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6024
6025 2014-04-29 Tom Tromey <tromey@redhat.com>
6026
6027 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6028 "show debug varobj".
6029
6030 2014-05-07 Kyle McMartin <kyle@redhat.com>
6031
6032 Pushed by Joel Brobecker <brobecker@adacore.com>.
6033 * aarch64-tdep.c (aarch64_software_single_step): New function.
6034 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6035 with aarch64_software_single_step.
6036
6037 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6038
6039 GDB 7.7.1 released.
6040
6041 2014-05-05 Keith Seitz <keiths@redhat.com>
6042
6043 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6044 variable or history value is successfully parsed.
6045
6046 2014-05-05 Yao Qi <yao@codesourcery.com>
6047 Pedro Alves <palves@redhat.com>
6048
6049 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6050 address of blocks that intersects the requested range. Trim
6051 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6052 sections.
6053 * ctf.c (ctf_xfer_partial): Likewise.
6054
6055 2014-05-05 Yao Qi <yao@codesourcery.com>
6056
6057 * printcmd.c (display_command): Remove the check to
6058 target_has_execution.
6059
6060 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6061
6062 * ppcobsd-nat.c: Include "obsd-nat.h".
6063 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6064 add_target.
6065 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6066
6067 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6068
6069 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6070 and 16-bit signed and unsigned arguments. Update comment.
6071 (stap_parse_probe_arguments): Extend code to handle such
6072 arguments. Use warning instead of complaint to notify about
6073 unrecognized bitness.
6074
6075 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6076
6077 PR breakpoints/16889
6078 * stap-probe.c (stap_parse_probe_arguments): Simplify
6079 check for non-prefixed probes (i.e., probes whose
6080 arguments do not start with "N@"). Always set the
6081 argument type to a sane value.
6082
6083 2014-05-01 David Taylor <dtaylor@emc.com>
6084
6085 * remote.c (compare_sections_command): Add -r option to compare
6086 all loadable read-only sections.
6087
6088 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6089
6090 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6091 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6092 Update all callers.
6093 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6094 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6095 Remove unused CORE_ADDR argument. Update all callers.
6096
6097 2014-04-29 Pedro Alves <palves@redhat.com>
6098
6099 * remote.c (struct packet_config) <detect>: Extend comment.
6100 (add_packet_config_cmd): Don't set the config's detect or support
6101 fields here.
6102 (init_all_packet_configs): Also initialize the config's 'detect'
6103 field.
6104 (reset_all_packet_configs_support): New function.
6105 (remote_open_1): Call reset_all_packet_configs_support instead of
6106 init_all_packet_configs.
6107 (_initialize_remote): Initialize all packet configs. Assert that
6108 all packets have an associated command, except a few known
6109 outliers.
6110
6111 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6112
6113 * dwarf2read.c (read_subrange_type): Handle dynamic
6114 DW_AT_lower_bound attributes.
6115
6116 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6117
6118 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6119 dynamic bounds before computing its upper bound.
6120 (ada_discrete_type_low_bound): Same as above with the lower bound.
6121
6122 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6123
6124 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6125 range types. Adjust the array handling implementation to
6126 take advantage of this change.
6127 (resolve_dynamic_range): New function, mostly extracted from
6128 resolve_dynamic_bounds.
6129 (resolve_dynamic_array): New function, mostly extracted from
6130 resolve_dynamic_bounds.
6131 (resolve_dynamic_bounds): Delete.
6132 (resolve_dynamic_type): Reimplement. Add handling of
6133 TYPE_CODE_RANGE types.
6134
6135 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6136
6137 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6138 handling of parallel ___XA types.
6139
6140 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6141
6142 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6143 unnecessary second call to static_unwrap_type.
6144
6145 2014-04-27 Hui Zhu <hui@codesourcery.com>
6146
6147 * stack.c (print_frame_info): Call do_gdb_disassembly with
6148 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6149
6150 2014-04-26 Doug Evans <xdje42@gmail.com>
6151
6152 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6153
6154 2014-04-25 Pedro Alves <palves@redhat.com>
6155
6156 PR server/16255
6157 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6158 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6159 and newline from built string.
6160 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6161 (linux_ptrace_attach_fail_reason): ... this.
6162 * linux-nat.c (linux_nat_attach): Adjust to use
6163 linux_ptrace_attach_fail_reason.
6164
6165 2014-04-25 Pedro Alves <palves@redhat.com>
6166
6167 * remote.c (struct remote_state): Remove multi_process_aware,
6168 non_stop_aware, cond_tracepoints, cond_breakpoints,
6169 breakpoint_commands, fast_tracepoints, static_tracepoints,
6170 install_in_trace, disconnected_tracing,
6171 enable_disable_tracepoints, string_tracing, and
6172 augmented_libraries_svr4_read fields.
6173 (remote_multi_process_p): Move further below in the file.
6174 (struct packet_config): Add comments.
6175 (update_packet_config): Delete function.
6176 (show_packet_config_cmd): Use packet_config_support.
6177 (add_packet_config_cmd): Use NULL as set callback.
6178 (packet_ok): "set remote foo-packet"-style commands no longer
6179 change config->supported -- adjust.
6180 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6181 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6182 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6183 (PACKET_QNonStop, PACKET_multiprocess_feature)
6184 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6185 (PACKET_DisconnectedTracing_feature)
6186 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6187 (set_remote_protocol_packet_cmd): Delete function.
6188 (packet_config_support, packet_support): New functions.
6189 (set_remote_protocol_Z_packet_cmd): Don't call
6190 update_packet_config.
6191 (remote_query_attached, remote_pass_signals)
6192 (remote_program_signals, remote_threads_info)
6193 (remote_threads_extra_info, remote_start_remote): Use
6194 packet_support.
6195 (remote_start_remote): Use packet_config_support and
6196 packet_support.
6197 (init_all_packet_configs): Set all packets to unknown support,
6198 instead of calling update_packet_config.
6199 (remote_check_symbols): Use packet_support.
6200 (remote_supported_packet): Unconditionally set the packet config's
6201 support status.
6202 (remote_multi_process_feature, remote_non_stop_feature)
6203 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6204 (remote_breakpoint_commands_feature)
6205 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6206 (remote_install_in_trace_feature)
6207 (remote_disconnected_tracing_feature)
6208 (remote_enable_disable_tracepoint_feature)
6209 (remote_string_tracing_feature)
6210 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6211 (remote_protocol_features): Adjust to use remote_supported_packet
6212 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6213 "ConditionalTracepoints", "ConditionalBreakpoints",
6214 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6215 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6216 "EnableDisableTracepoints", and "tracenz".
6217 (remote_query_supported): Use packet_support.
6218 (remote_open_1): Adjust.
6219 (extended_remote_attach_1): Use packet_support. Switch on the
6220 result of packet_ok instead of checking whether the packet ended
6221 up disabled.
6222 (remote_vcont_resume): Use packet_support.
6223 (remote_resume, remote_stop_ns, fetch_register_using_p)
6224 (remote_prepare_to_store, store_register_using_P)
6225 (check_binary_download, remote_write_bytes): Use packet_support.
6226 (remote_vkill): Use packet_support. Switch on the result of
6227 packet_ok instead of checking whether the packet ended up
6228 disabled.
6229 (extended_remote_supports_disable_randomization): Use
6230 packet_support.
6231 (extended_remote_run): Switch on the result of packet_ok instead
6232 of checking whether the packet ended up disabled.
6233 (remote_insert_breakpoint, remote_remove_breakpoint)
6234 (remote_insert_watchpoint, remote_remove_watchpoint)
6235 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6236 packet_support.
6237 (remote_search_memory): Use packet_config_support.
6238 (remote_get_thread_local_address, remote_get_tib_address)
6239 (remote_hostio_send_command, remote_can_execute_reverse): Use
6240 packet_support.
6241 (remote_supports_cond_tracepoints)
6242 (remote_supports_cond_breakpoints)
6243 (remote_supports_fast_tracepoints)
6244 (remote_supports_static_tracepoints)
6245 (remote_supports_install_in_trace)
6246 (remote_supports_enable_disable_tracepoint)
6247 (remote_supports_string_tracing)
6248 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6249 the packet config says the feature is enabled or disabled.
6250 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6251 (remote_get_trace_status): Use packet_support.
6252 (remote_set_disconnected_tracing): Adjust to check whether the
6253 feature is enabled with packet_support.
6254 (remote_set_trace_buffer_size, remote_use_agent)
6255 (remote_can_use_agent, remote_supports_btrace): Use
6256 packet_support.
6257 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6258 Use packet_config_support.
6259 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6260 the packet config says the feature is enabled or disabled.
6261 (set_range_stepping): Use packet_support.
6262
6263 2014-04-25 Tom Tromey <tromey@redhat.com>
6264
6265 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6266 argument.
6267
6268 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6269
6270 * NEWS: Mention support for C99 variable length arrays.
6271
6272 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6273
6274 * ada-lang.c (standard_exc): Expand introductory comment.
6275
6276 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6277 Walfred Tedeschi <walfred.tedeschi@intel.com>
6278
6279 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6280 AVX512 registers.
6281 (amd64_linux_read_description): Add code to handle AVX512 xstate
6282 mask and return respective tdesc.
6283 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6284 and features/i386/x32-avx512-linux.c.
6285 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6286 (amd64_linux_core_read_description): Add code to handle AVX512
6287 xstate mask and return respective tdesc.
6288 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6289 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6290 calculation.
6291 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6292 (tdesc_amd64_avx512_linux): New prototype.
6293 (tdesc_x32_avx512_linux): Likewise.
6294 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6295 features/i386/x32-avx512.c.
6296 (amd64_ymm_avx512_names): New register names for pseudo
6297 registers YMM16-31.
6298 (amd64_ymmh_avx512_names): New register names for raw registers
6299 YMMH16-31.
6300 (amd64_k_names): New register names for K registers.
6301 (amd64_zmmh_names): New register names for ZMM raw registers.
6302 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6303 (amd64_xmm_avx512_names): New register names for XMM16-31
6304 registers.
6305 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6306 registers.
6307 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6308 if feature is present.
6309 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6310 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6311 (AMD64_NUM_REGS): Adjust to new number of registers.
6312 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6313 registers supplied via XSTATE by AVX512 registers.
6314 (i386_linux_read_description): Add case for AVX512.
6315 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6316 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6317 (i386_linux_core_read_description): Add case for AVX512.
6318 (i386_linux_init_abi): Install supported register note section
6319 for AVX512.
6320 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6321 AVX512.
6322 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6323 registers to be number of zmm7h + 1.
6324 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6325 * i386-tdep.c: Include features/i386/i386-avx512.c.
6326 (i386_zmm_names): Add ZMM pseudo register names array.
6327 (i386_zmmh_names): Add ZMM raw register names array.
6328 (i386_k_names): Add K raw register names array.
6329 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6330 registers. AVX512 has 16 more ZMM registers than there are YMM
6331 registers.
6332 (i386_zmmh_regnum_p): Add function to look up register number of
6333 ZMM raw registers.
6334 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6335 (i386_k_regnum_p): Likewise for K raw registers.
6336 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6337 registers added by AVX512.
6338 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6339 registers added by AVX512.
6340 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6341 added by AVX512.
6342 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6343 (i386_pseudo_register_name): Add ZMM pseudo registers.
6344 (i386_zmm_type): Construct and return vector registers type for ZMM
6345 registers.
6346 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6347 ZMM0-31 pseudo registers and K registers.
6348 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6349 and YMM16-31 registers from register cache.
6350 (i386_pseudo_register_write): Add code to write K, ZMM and
6351 YMM16-31 registers.
6352 (i386_register_reggroup_p): Add code to include/exclude AVX512
6353 registers in/from respective register groups.
6354 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6355 registers if feature is present in xcr0.
6356 (i386_gdbarch_init): Add code to initialize AVX512 feature
6357 variables in tdep structure, wire in pseudo registers and call
6358 initialize_tdesc_i386_avx512.
6359 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6360 variables.
6361 (i386_regnum): Add AVX512 registers.
6362 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6363 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6364 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6365 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6366 512 bits wide.
6367 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6368 (i386_ymm_avx512_regnum_p): Likewise.
6369 (i386_k_regnum_p): Likewise.
6370 (i386_zmm_regnum_p): Likewise.
6371 (i386_zmmh_regnum_p): Likewise.
6372 * i387-tdep.c : Update year in copyright notice.
6373 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6374 XSAVE buffer.
6375 (XSAVE_YMM_AVX512_ADDR): New macro.
6376 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6377 XSAVE buffer.
6378 (XSAVE_XMM_AVX512_ADDR): New macro.
6379 (xsave_avx512_k_offset): New table for K register offsets in
6380 XSAVE buffer.
6381 (XSAVE_AVX512_K_ADDR): New macro.
6382 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6383 in XSAVE buffer.
6384 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6385 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6386 buffer.
6387 (i387_collect_xsave): Add code to collect AVX512 registers from
6388 XSAVE buffer.
6389 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6390 of XMM16-31 registers.
6391 (I387_NUM_K_REGS): New define for number of K registers.
6392 (I387_K0_REGNUM): New define for K0 register number.
6393 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6394 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6395 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6396 registers.
6397 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6398 (I387_XMM16_REGNUM): New define for XMM16 register number.
6399 (I387_YMM0_REGNUM): New define for YMM0 register number.
6400 (I387_KEND_REGNUM): New define for last K register number.
6401 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6402 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6403 number.
6404 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6405 number.
6406 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6407 size.
6408 * features/Makefile: Add AVX512 related files.
6409 * features/i386/32bit-avx512.xml: New file.
6410 * features/i386/64bit-avx512.xml: Likewise.
6411 * features/i386/amd64-avx512-linux.c: Likewise.
6412 * features/i386/amd64-avx512-linux.xml: Likewise.
6413 * features/i386/amd64-avx512.c: Likewise.
6414 * features/i386/amd64-avx512.xml: Likewise.
6415 * features/i386/i386-avx512-linux.c: Likewise.
6416 * features/i386/i386-avx512-linux.xml: Likewise.
6417 * features/i386/i386-avx512.c: Likewise.
6418 * features/i386/i386-avx512.xml: Likewise.
6419 * features/i386/x32-avx512-linux.c: Likewise.
6420 * features/i386/x32-avx512-linux.xml: Likewise.
6421 * features/i386/x32-avx512.c: Likewise.
6422 * features/i386/x32-avx512.xml: Likewise.
6423 * regformats/i386/amd64-avx512-linux.dat: New file.
6424 * regformats/i386/amd64-avx512.dat: Likewise.
6425 * regformats/i386/i386-avx512-linux.dat: Likewise.
6426 * regformats/i386/i386-avx512.dat: Likewise.
6427 * regformats/i386/x32-avx512-linux.dat: Likewise.
6428 * regformats/i386/x32-avx512.dat: Likewise.
6429 * NEWS: Add note about new support for AVX512.
6430
6431
6432 2014-04-23 Pedro Alves <palves@redhat.com>
6433
6434 * breakpoint.c (insert_bp_location): Tolerate errors if the
6435 breakpoint is set in a user-loaded objfile.
6436 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6437 location is marked shlib_disabled. If the breakpoint is set in a
6438 user-loaded objfile is a GDB-side memory breakpoint, validate it
6439 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6440 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6441 flag.
6442 * mem-break.c (memory_validate_breakpoint): New function.
6443 * objfiles.c (userloaded_objfile_contains_address_p): New
6444 function.
6445 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6446 * target.h (memory_validate_breakpoint): New declaration.
6447
6448 2014-04-23 Pedro Alves <palves@redhat.com>
6449
6450 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6451 the breakpoint is set in a shared library, only suppress
6452 errors for software breakpoints, not hardware breakpoints.
6453
6454 2014-04-22 Pedro Alves <palves@redhat.com>
6455
6456 * infrun.c (schedlock_applies): New function, factored out from
6457 find_thread_needs_step_over.
6458 (find_thread_needs_step_over): Use it.
6459 (switch_back_to_stepped_thread): Always clear trap_expected if the
6460 step over is finished. Return early if scheduler locking applies.
6461 Look for the stepping thread and a potential step-over thread with
6462 a single loop.
6463 (currently_stepping_or_nexting_callback): Delete.
6464
6465 2014-04-22 Nick Clifton <nickc@redhat.com>
6466
6467 * NEWS: Mention that ARM sim now supports tracing.
6468
6469 2014-04-22 Yao Qi <yao@codesourcery.com>
6470
6471 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6472 to ...
6473 * tracefile.c (tracefile_fetch_registers): ... it. New
6474 function.
6475 * tracefile.h (tracefile_fetch_registers): Declare.
6476 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6477 tracefile_fetch_registers.
6478
6479 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6480
6481 PR gdb/14018
6482 * windows-nat.c (thread_rec): Don't display a warning when
6483 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6484 fails for any reason, set th->suspended to -1, so that we don't
6485 try to resume such a thread. Also, don't return NULL in these
6486 cases, to avoid completely ruin the session due to "PC register is
6487 not available" error.
6488 (do_windows_fetch_inferior_registers): Check errors in
6489 GetThreadContext call.
6490 (windows_continue): Accept an additional argument KILLED; if not
6491 zero, ignore errors in the SetThreadContext call, since the
6492 inferior was killed and is shutting down.
6493 (windows_resume, get_windows_debug_event)
6494 (windows_create_inferior, windows_mourn_inferior)
6495 (windows_kill_inferior): All callers of windows_continue changed
6496 to adjust to its new calling sequence.
6497
6498 2014-04-19 Yao Qi <yao@codesourcery.com>
6499
6500 * ctf.c (ctf_open): Call post_create_inferior.
6501
6502 2014-04-19 Yao Qi <yao@codesourcery.com>
6503
6504 * ctf.c (handle_id): New static variable.
6505 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6506 value. Get the declaration of event "register" and get length
6507 of field "contents".
6508
6509 2014-04-19 Yao Qi <yao@codesourcery.com>
6510
6511 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6512
6513 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6514
6515 * valops.c (oload_method_static): Remove unnecessary argument
6516 METHOD. Update all callers.
6517
6518 2014-04-18 Pedro alves <palves@redhat.com>
6519 Tom Tromey <tromey@redhat.com>
6520
6521 PR backtrace/15558
6522 * frame.c (get_prev_frame_1): Rename to ...
6523 (get_prev_frame_always): ... this, and make extern. Adjust.
6524 (skip_artificial_frames): Use get_prev_frame_always.
6525 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6526 (get_frame_unwind_stop_reason): Adjust to rename.
6527 * frame.h (get_prev_frame_always): Declare.
6528 * inline-frame.c: Include frame.h.
6529 (inline_frame_this_id): Use get_prev_frame_always.
6530
6531 2014-04-18 Tristan Gingold <gingold@adacore.com>
6532
6533 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6534 code by using bfd_mach_o_get_base_address.
6535
6536 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6537
6538 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6539 (spu_ax_pseudo_register_collect): New function.
6540 (spu_ax_pseudo_register_push_stack): Likewise.
6541 (spu_dwarf_reg_to_regnum): Likewise.
6542 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6543
6544 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6545
6546 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6547 Replace FRAME argument with FRAME_ID.
6548 * gdbarch.c, gdbarch.h: Regenerate.
6549 * findvar.c (default_value_from_register): Add GDBARCH argument;
6550 replace FRAME by FRAME_ID. No longer call get_frame_id.
6551 (value_from_register): Update call to gdbarch_value_from_register.
6552 * value.h (default_value_from_register): Update prototype.
6553 * s390-linux-tdep.c (s390_value_from_register): Update interface
6554 and call to default_value_from_register.
6555 * spu-tdep.c (spu_value_from_register): Likewise.
6556
6557 * findvar.c (address_from_register): Remove TYPE argument.
6558 Do not call value_from_register; use gdbarch_value_from_register
6559 with null_frame_id instead.
6560 * value.h (address_from_register): Update prototype.
6561 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6562 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6563 address_from_register interface change.
6564
6565 2014-04-17 Yao Qi <yao@codesourcery.com>
6566
6567 * gdbtypes.h: Update comments to link to types and macros'
6568 definitions.
6569
6570 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6571
6572 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6573
6574 2014-04-16 Keith Seitz <keiths@redhat.com>
6575
6576 PR gdb/15827
6577 * dwarf2read.c (skip_one_die): Check that all relative-offset
6578 sibling DIEs fall within range of the current reader's buffer.
6579 (read_partial_die): Likewise.
6580
6581 2014-04-16 Keith Seitz <keiths@redhat.com>
6582
6583 PR c++/16597
6584 * cp-namespace.c (lookup_symbol_file): If the type name of
6585 `this' is NULL, return immediately.
6586
6587 2014-04-14 Keith Seitz <keiths@redhat.com>
6588
6589 PR c++/16253
6590 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6591 from symbol_matches_domain in symtab.c. All local callers
6592 of symbol_matches_domain updated.
6593 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6594 search STRUCT_DOMAIN.
6595 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6596 independently. standard_lookup will do that automatically.
6597 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6598 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6599 (cp_lookup_symbol_in_namespace): Likewise.
6600 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6601 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6602 may return a STRUCT_DOMAIN match.
6603 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6604 * cp-support.c: Include language.h.
6605 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6606 VAR_DOMAIN.
6607 * psymtab.c (match_partial_symbol): Compare the requested
6608 domain with the symbol's domain directly.
6609 (lookup_partial_symbol): Likewise.
6610 * symtab.c (lookup_symbol_in_language): Explain when/why
6611 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6612 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6613 appropriate languages.
6614 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6615 and moved to ada-lang.c
6616 (lookup_block_symbol): Explain that this function only returns
6617 symbol matching the requested DOMAIN.
6618 Compare the requested domain with the symbol's domain directly.
6619 (iterate_over_symbols): Compare the requested domain with the
6620 symbol's domain directly.
6621 * symtab.h (symbol_matches_domain): Remove.
6622
6623 2014-04-14 Tom Tromey <tromey@redhat.com>
6624
6625 PR c++/15246:
6626 * c-exp.y (type_aggregate_p): New function.
6627 (qualified_name, classify_inner_name): Use it.
6628 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6629 and TYPE_TARGET_TYPE of an enum type.
6630 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6631 an enum type.
6632 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6633 handle TYPE_DECLARED_CLASS.
6634 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6635 types.
6636 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6637 * valops.c (enum_constant_from_type): New function.
6638 (value_aggregate_elt): Use it.
6639 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6640 TYPE_CODE_ENUM.
6641
6642 2014-04-14 Tom Tromey <tromey@redhat.com>
6643
6644 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6645 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6646 const.
6647 * value.h (value_aggregate_elt): Update.
6648
6649 2014-04-14 Tom Tromey <tromey@redhat.com>
6650
6651 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6652
6653 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6654
6655 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6656 (evaluate_subexp_standard): Pass noside argument.
6657 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6658 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6659 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6660 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6661 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6662
6663 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6664
6665 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6666 points to a constant blob.
6667
6668 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6669
6670 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6671 property and store it as the high bound and flag the range accordingly.
6672 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6673 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6674 * gdbtypes.h (enum range_flags): New enum.
6675 (struct range_bounds): Add flags member.
6676
6677 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6678
6679 * c-typeprint.c (c_type_print_varspec_suffix): Added
6680 check for not yet resolved high bound. If unresolved, print
6681 "variable length" string to the console instead of random
6682 length.
6683
6684 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6685
6686 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6687 value.
6688 (ada_template_to_fixed_record_type_1): Likewise.
6689 (ada_to_fixed_type_1): Likewise.
6690 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6691 (cp_print_value): Likewise.
6692 * d-valprint.c (dynamic_array_type): Likewise.
6693 * findvar.c (address_of_variable): Likewise.
6694 * jv-valprint.c (java_value_print): Likewise.
6695 * valops.c (value_ind): Likewise.
6696 * value.c (coerce_ref): Likewise.
6697
6698 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6699
6700 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6701 value and retrieve the dynamic type size.
6702
6703 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6704
6705 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6706 passed to sizeof is dynamic evaluate the argument to compute the length.
6707
6708 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6709 Joel Brobecker <brobecker@adacore.com>
6710
6711 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6712 (dwarf2_evaluate_property): New function.
6713 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6714 * dwarf2read.c (attr_to_dynamic_prop): New function.
6715 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6716 attribute.
6717 * gdbtypes.c: Include dwarf2loc.h.
6718 (is_dynamic_type): New function.
6719 (resolve_dynamic_type): New function.
6720 (resolve_dynamic_bounds): New function.
6721 (get_type_length): New function.
6722 (check_typedef): Use get_type_length to compute type length.
6723 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6724 (TYPE_LOW_BOUND_KIND): New macro.
6725 (is_dynamic_type): New function prototype.
6726 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6727 to resolve dynamic properties of the type. Update comment.
6728 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6729
6730 2014-04-14 Richard Henderson <rth@redhat.com>
6731
6732 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6733
6734 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6735 Doug Evans <xdje42@gmail.com>
6736
6737 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6738 dereference TYPE_CODE_REF values.
6739
6740 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6741
6742 Revert the following changes due to regressions:
6743
6744 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6745 (dwarf2_evaluate_property): New function.
6746 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6747 * dwarf2read.c (attr_to_dynamic_prop): New function.
6748 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6749 attribute.
6750 * gdbtypes.c: Include dwarf2loc.h.
6751 (is_dynamic_type): New function.
6752 (resolve_dynamic_type): New function.
6753 (resolve_dynamic_bounds): New function.
6754 (get_type_length): New function.
6755 (check_typedef): Use get_type_length to compute type length.
6756 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6757 (TYPE_LOW_BOUND_KIND): New macro.
6758 (is_dynamic_type): New function prototype.
6759 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6760 to resolve dynamic properties of the type. Update comment.
6761 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6762
6763 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6764 passed to sizeof is dynamic evaluate the argument to compute the length.
6765
6766 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6767 value and retrieve the dynamic type size.
6768
6769 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6770 (ada_template_to_fixed_record_type_1): Likewise.
6771 (ada_to_fixed_type_1): Likewise.
6772 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6773 (cp_print_value): Likewise.
6774 * d-valprint.c (dynamic_array_type): Likewise.
6775 * eval.c (evaluate_subexp_with_coercion): Likewise.
6776 * findvar.c (address_of_variable): Likewise.
6777 * jv-valprint.c (java_value_print): Likewise.
6778 * valops.c (value_ind): Likewise.
6779 * value.c (coerce_ref): Likewise.
6780
6781 * c-typeprint.c (c_type_print_varspec_suffix): Added
6782 check for not yet resolved high bound. If unresolved, print
6783 "variable length" string to the console instead of random
6784 length.
6785
6786 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6787 property and store it as the high bound and flag the range accordingly.
6788 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6789 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6790 * gdbtypes.h (enum range_flags): New enum.
6791 (struct range_bounds): Add flags member.
6792
6793 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6794 points to a constant blob.
6795
6796 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6797 (evaluate_subexp_standard): Pass noside argument.
6798 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6799 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6800 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6801 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6802 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6803
6804 2014-04-11 Keith Seitz <keiths@redhat.com>
6805
6806 PR c++/16675
6807 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6808 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6809 reference types.
6810
6811 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6812
6813 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6814 (evaluate_subexp_standard): Pass noside argument.
6815 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6816 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6817 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6818 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6819 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6820
6821 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6822
6823 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6824 points to a constant blob.
6825
6826 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6827
6828 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6829 property and store it as the high bound and flag the range accordingly.
6830 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6831 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6832 * gdbtypes.h (enum range_flags): New enum.
6833 (struct range_bounds): Add flags member.
6834
6835 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6836
6837 * c-typeprint.c (c_type_print_varspec_suffix): Added
6838 check for not yet resolved high bound. If unresolved, print
6839 "variable length" string to the console instead of random
6840 length.
6841
6842 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6843
6844 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6845 (ada_template_to_fixed_record_type_1): Likewise.
6846 (ada_to_fixed_type_1): Likewise.
6847 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6848 (cp_print_value): Likewise.
6849 * d-valprint.c (dynamic_array_type): Likewise.
6850 * eval.c (evaluate_subexp_with_coercion): Likewise.
6851 * findvar.c (address_of_variable): Likewise.
6852 * jv-valprint.c (java_value_print): Likewise.
6853 * valops.c (value_ind): Likewise.
6854 * value.c (coerce_ref): Likewise.
6855
6856 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6857
6858 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6859 value and retrieve the dynamic type size.
6860
6861 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6862
6863 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6864 passed to sizeof is dynamic evaluate the argument to compute the length.
6865
6866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6867
6868 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6869 (dwarf2_evaluate_property): New function.
6870 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6871 * dwarf2read.c (attr_to_dynamic_prop): New function.
6872 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6873 attribute.
6874 * gdbtypes.c: Include dwarf2loc.h.
6875 (is_dynamic_type): New function.
6876 (resolve_dynamic_type): New function.
6877 (resolve_dynamic_bounds): New function.
6878 (get_type_length): New function.
6879 (check_typedef): Use get_type_length to compute type length.
6880 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6881 (TYPE_LOW_BOUND_KIND): New macro.
6882 (is_dynamic_type): New function prototype.
6883 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6884 to resolve dynamic properties of the type. Update comment.
6885 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6886
6887 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6888
6889 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6890 declaring high/low bounds and change uses accordingly. Call
6891 create_range_type instead of create_static_range_type.
6892 * gdbtypes.c (create_range_type): New function.
6893 (create_range_type): Convert bounds into struct bound_prop and pass
6894 them to create_range_type.
6895 * gdbtypes.h (struct bound_prop): New struct.
6896 (create_range_type): New function prototype.
6897 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6898 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6899 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6900 part of the bound.
6901 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6902
6903 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6904
6905 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6906 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6907 * ada-lang.c: All uses of create_range_type updated.
6908 * coffread.c: All uses of create_range_type updated.
6909 * dwarf2read.c: All uses of create_range_type updated.
6910 * f-exp.y: All uses of create_range_type updated.
6911 * m2-valprint.c: All uses of create_range_type updated.
6912 * mdebugread.c: All uses of create_range_type updated.
6913 * stabsread.c: All uses of create_range_type updated.
6914 * valops.c: All uses of create_range_type updated.
6915 * valprint.c: All uses of create_range_type updated.
6916
6917 2014-04-10 Pedro Alves <palves@redhat.com>
6918
6919 * breakpoint.c (single_step_breakpoints)
6920 (single_step_gdbarch): Move up in the file.
6921 (one_breakpoint_xfer_memory): New function, factored out from ...
6922 (breakpoint_xfer_memory): ... here. Also process single-step
6923 breakpoints.
6924
6925 2014-04-09 Tristan Gingold <gingold@adacore.com>
6926
6927 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6928 comments.
6929 (darwin_decode_exception_message): Free port only after use.
6930
6931 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6932
6933 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6934 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6935 when setting the size of call_length.
6936
6937 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6938
6939 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6940 dereference TYPE_CODE_REF values.
6941
6942 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6943
6944 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6945 end of warning message.
6946
6947 2014-04-03 Doug Evans <dje@google.com>
6948
6949 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6950 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6951
6952 2014-04-02 Alan Modra <amodra@gmail.com>
6953
6954 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6955 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6956 (struct symbol_file_add_from_memory_args): Add size field.
6957 (find_vdso_size): New function.
6958 (add_vsyscall_page): Attempt to find vdso size.
6959
6960 2014-04-01 Doug Evans <dje@google.com>
6961
6962 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6963
6964 2014-04-01 Tristan Gingold <gingold@adacore.com>
6965
6966 * darwin-nat.c (darwin_encode_reply): Add prototype.
6967 (darwin_decode_exception_message): Reply to unknown inferiors.
6968 (darwin_decode_message): Handle message by id. Ignore message
6969 to unknown inferior.
6970 (darwin_wait): Discard unknown messages, add debug trace.
6971
6972 2014-03-31 Doug Evans <dje@google.com>
6973
6974 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6975 comp_dir_string.
6976
6977 2014-03-31 Doug Evans <dje@google.com>
6978
6979 New option "set print symbol-loading".
6980 * NEWS: Mention it.
6981 * solib.c (solib_read_symbols): Only print symbol loading messages
6982 if requested.
6983 (solib_add): If symbol loading is in "brief" mode, notify user
6984 symbols are being loaded.
6985 (reload_shared_libraries_1): Ditto.
6986 * symfile.c (print_symbol_loading_off): New static global.
6987 (print_symbol_loading_brief): New static global.
6988 (print_symbol_loading_full): New static global.
6989 (print_symbol_loading_enums): New static global.
6990 (print_symbol_loading): New static global.
6991 (print_symbol_loading_p): New function.
6992 (symbol_file_add_with_addrs): Only print symbol loading messages
6993 if requested.
6994 (_initialize_symfile): Register "print symbol-loading" set/show
6995 command.
6996 * symfile.h (print_symbol_loading_p): Declare.
6997
6998 2014-03-30 Doug Evans <xdje42@gmail.com>
6999
7000 * infrun.c (set_last_target_status): New function.
7001 (handle_inferior_event): Call it.
7002
7003 2014-03-30 Doug Evans <xdje42@gmail.com>
7004
7005 * inferior.h (enum stop_kind): Improve comment.
7006
7007 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7008
7009 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7010 a reference, strip the reference layer before calling
7011 the lang_ops value_has_mutated callback.
7012
7013 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7014
7015 Remove some globals from our parser.
7016 * language.c (unk_lang_parser): Add "struct parser_state"
7017 argument.
7018 * language.h (struct language_defn) <la_parser>: Likewise.
7019 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7020 (initialize_expout): Add "struct parser_state" argument.
7021 Rewrite function to use the parser state.
7022 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7023 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7024 write_exp_elt_longcst, write_exp_elt_dblcst,
7025 write_exp_elt_decfloatcst, write_exp_elt_type,
7026 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7027 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7028 write_dollar_variable): Likewise.
7029 (parse_exp_in_context_1): Use parser state.
7030 (insert_type_address_space): Add "struct parser_state" argument.
7031 Use parser state.
7032 (increase_expout_size): New function.
7033 * parser-defs.h: Forward declare "struct language_defn" and
7034 "struct parser_state".
7035 (expout, expout_size, expout_ptr): Remove extern declarations.
7036 (parse_gdbarch, parse_language): Rewrite macro declarations to
7037 accept the parser state.
7038 (struct parser_state): New struct.
7039 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7040 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7041 write_exp_elt_decfloatcst, write_exp_elt_type,
7042 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7043 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7044 write_exp_msymbol, write_dollar_variable,
7045 mark_struct_expression, insert_type_address_space): Add "struct
7046 parser_state" argument.
7047 (increase_expout_size): New function.
7048 * utils.c (do_clear_parser_state): New function.
7049 (make_cleanup_clear_parser_state): Likewise.
7050 * utils.h (make_cleanup_clear_parser_state): New function
7051 prototype.
7052 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7053 Update calls to write_exp* in order to pass the parser state.
7054 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7055 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7056 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7057 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7058 * stap-probe.c (stap_parse_register_operand): Likewise.
7059 (stap_parse_single_operand): Likewise.
7060 (stap_parse_argument_1): Likewise.
7061 (stap_parse_argument): Use parser state.
7062 * stap-probe.h: Include "parser-defs.h".
7063 (struct stap_parse_info) <pstate>: New field.
7064 * c-exp.y (parse_type): Rewrite to use parser state.
7065 (yyparse): Redefine to c_parse_internal.
7066 (pstate): New global variable.
7067 (parse_number): Add "struct parser_state" argument.
7068 (write_destructor_name): Likewise.
7069 (type_exp): Update calls to write_exp* and similars in order to
7070 use parser state.
7071 (exp1, exp, variable, qualified_name, space_identifier,
7072 typename, typebase): Likewise.
7073 (write_destructor_name, parse_number, lex_one_token,
7074 classify_name, classify_inner_name, c_parse): Add "struct
7075 parser_state" argument. Update function to use parser state.
7076 * c-lang.h: Forward declare "struct parser_state".
7077 (c_parse): Add "struct parser_state" argument.
7078 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7079 (yyparse): Redefine macro to ada_parse_internal.
7080 (pstate): New variable.
7081 (write_int, write_object_renaming, write_var_or_type,
7082 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7083 type_int, type_long, type_long_long, type_float, type_double,
7084 type_long_double, type_char, type_boolean, type_system_address):
7085 Add "struct parser_state" argument.
7086 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7087 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7088 var_or_type, aggregate, aggregate_component_list,
7089 positional_list, others, component_group,
7090 component_associations): Update calls to write_exp* and similar
7091 functions in order to use parser state.
7092 (ada_parse, write_var_from_sym, write_int,
7093 write_exp_op_with_string, write_object_renaming,
7094 find_primitive_type, write_selectors, write_ambiguous_var,
7095 write_var_or_type, write_name_assoc, type_int, type_long,
7096 type_long_long, type_float, type_double, type_long_double,
7097 type_char, type_boolean, type_system_address): Add "struct
7098 parser_state" argument. Adjust function to use parser state.
7099 * ada-lang.c (parse): Likewise.
7100 * ada-lang.h: Forward declare "struct parser_state".
7101 (ada_parse): Add "struct parser_state" argument.
7102 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7103 calls to both functions.
7104 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7105 parser state.
7106 (yyparse): Redefine macro to f_parse_internal.
7107 (pstate): New variable.
7108 (parse_number): Add "struct parser_state" argument.
7109 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7110 and similars in order to use parser state.
7111 (parse_number): Adjust code to use parser state.
7112 (yylex): Likewise.
7113 (f_parse): New function.
7114 * f-lang.h: Forward declare "struct parser_state".
7115 (f_parse): Add "struct parser_state" argument.
7116 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7117 parser state.
7118 (yyparse): Redefine macro for java_parse_internal.
7119 (pstate): New variable.
7120 (push_expression_name, push_expression_name, insert_exp): Add
7121 "struct parser_state" argument.
7122 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7123 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7124 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7125 PostIncrementExpression, PostDecrementExpression,
7126 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7127 UnaryExpressionNotPlusMinus, CastExpression,
7128 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7129 RelationalExpression, EqualityExpression, AndExpression,
7130 ExclusiveOrExpression, InclusiveOrExpression,
7131 ConditionalAndExpression, ConditionalOrExpression,
7132 ConditionalExpression, Assignment, LeftHandSide): Update
7133 calls to write_exp* and similars in order to use parser state.
7134 (parse_number): Ajust code to use parser state.
7135 (yylex): Likewise.
7136 (java_parse): New function.
7137 (push_variable): Add "struct parser_state" argument. Adjust
7138 code to user parser state.
7139 (push_fieldnames, push_qualified_expression_name,
7140 push_expression_name, insert_exp): Likewise.
7141 * jv-lang.h: Forward declare "struct parser_state".
7142 (java_parse): Add "struct parser_state" argument.
7143 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7144 parser state.
7145 (yyparse): Redefine macro to m2_parse_internal.
7146 (pstate): New variable.
7147 (type_exp, exp, fblock, variable, type): Update calls to
7148 write_exp* and similars to use parser state.
7149 (yylex): Likewise.
7150 (m2_parse): New function.
7151 * m2-lang.h: Forward declare "struct parser_state".
7152 (m2_parse): Add "struct parser_state" argument.
7153 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7154 * objc-lang.h: Forward declare "struct parser_state".
7155 (end_msglist): Add "struct parser_state" argument.
7156 * p-exp.y (parse_type): Rewrite macro to use parser state.
7157 (yyparse): Redefine macro to pascal_parse_internal.
7158 (pstate): New variable.
7159 (parse_number): Add "struct parser_state" argument.
7160 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7161 write_exp* and similars in order to use parser state.
7162 (parse_number, yylex): Adjust code to use parser state.
7163 (pascal_parse): New function.
7164 * p-lang.h: Forward declare "struct parser_state".
7165 (pascal_parse): Add "struct parser_state" argument.
7166 * go-exp.y (parse_type): Rewrite macro to use parser state.
7167 (yyparse): Redefine macro to go_parse_internal.
7168 (pstate): New variable.
7169 (parse_number): Add "struct parser_state" argument.
7170 (type_exp, exp1, exp, variable, type): Update calls to
7171 write_exp* and similars in order to use parser state.
7172 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7173 to use parser state.
7174 (go_parse): Likewise.
7175 * go-lang.h: Forward declare "struct parser_state".
7176 (go_parse): Add "struct parser_state" argument.
7177
7178 2014-03-27 Doug Evans <dje@google.com>
7179
7180 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7181
7182 2014-03-27 Doug Evans <dje@google.com>
7183
7184 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7185 Remove argument abbrev_section. All callers updated.
7186
7187 2014-03-27 Doug Evans <dje@google.com>
7188
7189 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7190 addr_base, ranges_base.
7191
7192 2014-03-26 Keith Seitz <keiths@redhat.com>
7193
7194 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7195 types, not VAR_DOMAIN.
7196
7197 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7198
7199 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7200 "ra" registers.
7201 * features/nios2-linux.c: Regenerated.
7202 * features/nios2.c: Regenerated.
7203
7204 2014-03-25 Pedro Alves <palves@redhat.com>
7205
7206 * cli/cli-script.c (script_from_file): Force the interpreter to
7207 sync mode.
7208
7209 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7210
7211 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7212 small stack allocation.
7213
7214 2014-03-24 Tristan Gingold <gingold@adacore.com>
7215
7216 * darwin-nat.c (exc_server): Remove unused prototype.
7217 (darwin_dump_message): Correctly display data on x86_64.
7218 (darwin_encode_reply): Fix style.
7219 Add comments and fix indentation.
7220
7221 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7222
7223 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7224
7225 2014-03-22 Doug Evans <xdje42@gmail.com>
7226
7227 * infcmd.c: Whitespace fixes.
7228 (interrupt_command): Merge two function comments into one.
7229
7230 2014-03-22 Doug Evans <xdje42@gmail.com>
7231
7232 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7233 All uses updated.
7234
7235 2014-03-22 Yao Qi <yao@codesourcery.com>
7236
7237 * remote.c (target_read_live_memory): Remove.
7238 (memory_xfer_live_readonly_partial): Rename it to
7239 remote_xfer_live_readonly_partial. Remove argument 'object'.
7240 All callers updated. Call remote_read_bytes_1
7241 instead of target_read_live_memory.
7242 * tracepoint.c (set_traceframe_number): Remove.
7243 (make_cleanup_restore_traceframe_number): Likewise .
7244 * tracepoint.h (set_traceframe_number): Remove declaration.
7245 (make_cleanup_restore_traceframe_number): Likewise.
7246
7247 2014-03-22 Yao Qi <yao@codesourcery.com>
7248
7249 * remote.c (remote_read_bytes): Move code on reading from the
7250 remote stub to ...
7251 (remote_read_bytes_1): ... here. New function.
7252
7253 2014-03-22 Yao Qi <yao@codesourcery.com>
7254
7255 * ctf.c (ctf_xfer_partial): Check the return value of
7256 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7257 return TARGET_XFER_UNAVAILABLE.
7258 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7259 * target.c (target_read_live_memory): Move it to remote.c.
7260 (memory_xfer_live_readonly_partial): Likewise.
7261 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7262 * remote.c (target_read_live_memory): Moved from target.c.
7263 (memory_xfer_live_readonly_partial): Likewise.
7264 (remote_read_bytes): Factored out from
7265 memory_xfer_partial_1.
7266
7267 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7268
7269 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7270 NULL pointer.
7271
7272 2014-03-21 Pedro Alves <palves@redhat.com>
7273
7274 * infrun.c (normal_stop): Extend comment.
7275
7276 2014-03-21 Hui Zhu <hui@codesourcery.com>
7277 Pedro Alves <palves@redhat.com>
7278
7279 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7280 static buffer.
7281 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7282 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7283 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7284
7285 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7286
7287 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7288 `z' formatted output modifier.
7289
7290 2014-03-20 Tom Tromey <tromey@redhat.com>
7291 Sergio Durigan Junior <sergiodj@redhat.com>
7292
7293 * probe.c (parse_probes): Turn assert into an ordinary error.
7294 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7295 exceptions when parsing probes. Rearrange the code for clarity.
7296
7297 2014-03-20 Tom Tromey <tromey@redhat.com>
7298
7299 PR gdb/14135
7300 * top.c (execute_command): Only dispatch events if the command
7301 started the target.
7302
7303 2014-03-20 Tom Tromey <tromey@redhat.com>
7304
7305 PR cli/15718
7306 * infcall.c: Include event-top.h.
7307 (run_inferior_call): Call async_disable_stdin if needed.
7308
7309 2014-03-20 Pedro Alves <palves@redhat.com>
7310
7311 * infrun.c (prepare_to_proceed): Delete.
7312 (thread_still_needs_step_over): New function.
7313 (find_thread_needs_step_over): New function.
7314 (proceed): If the current thread needs a step-over, set its
7315 steping_over_breakpoint flag. Adjust to use
7316 find_thread_needs_step_over instead of prepare_to_proceed.
7317 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7318 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7319 breakpoint.
7320 (switch_back_to_stepped_thread): Step over breakpoints of all
7321 threads not the stepping thread, before switching back to the
7322 stepping thread.
7323
7324 2014-03-20 Pedro Alves <palves@redhat.com>
7325
7326 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7327 extern.
7328 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7329 * infrun.c (saved_singlestep_ptid)
7330 (stepping_past_singlestep_breakpoint): Delete.
7331 (resume): Remove stepping_past_singlestep_breakpoint handling.
7332 (proceed): Store the prev_pc of the stepping thread too.
7333 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7334 singlestep_pc.
7335 (enum infwait_states): Delete infwait_thread_hop_state.
7336 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7337 field.
7338 (handle_inferior_event): Adjust.
7339 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7340 handling and the thread-hop code. Before removing single-step
7341 breakpoints, check whether the thread hit a single-step breakpoint
7342 of another thread. If it did, the trap is not a random signal.
7343 (switch_back_to_stepped_thread): If the event thread hit a
7344 single-step breakpoint, unblock it before switching to the
7345 stepping thread. Handle the case of the stepped thread having
7346 advanced already.
7347 (keep_going): Handle the case of the current thread moving past a
7348 single-step breakpoint.
7349
7350 2014-03-20 Pedro Alves <palves@redhat.com>
7351
7352 PR breakpoints/7143
7353 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7354 are being stepped over.
7355 (breakpoint_address_match): Make extern.
7356 * breakpoint.h (breakpoint_address_match): New declaration.
7357 * inferior.h (stepping_past_instruction_at): New declaration.
7358 * infrun.c (struct step_over_info): New type.
7359 (step_over_info): New global.
7360 (set_step_over_info, clear_step_over_info)
7361 (stepping_past_instruction_at): New functions.
7362 (handle_inferior_event): Clear the step-over info when
7363 trap_expected is cleared.
7364 (resume): Remove now stale comment.
7365 (clear_proceed_status): Clear step-over info.
7366 (proceed): Adjust step-over handling to set or clear the step-over
7367 info instead of removing all breakpoints.
7368 (handle_signal_stop): When setting up a thread-hop, don't remove
7369 breakpoints here.
7370 (stop_stepping): Clear step-over info.
7371 (keep_going): Adjust step-over handling to set or clear step-over
7372 info and then always inserting breakpoints, instead of removing
7373 all breakpoints when stepping over one.
7374
7375 2014-03-20 Pedro Alves <palves@redhat.com>
7376
7377 * infrun.c (previous_inferior_ptid): Adjust comment.
7378 (deferred_step_ptid): Delete.
7379 (infrun_thread_ptid_changed, prepare_to_proceed)
7380 (init_wait_for_inferior): Adjust.
7381 (handle_signal_stop): Delete deferred_step_ptid handling.
7382
7383 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7384
7385 PR gdb/15358
7386 * defs.h (sync_quit_force_run): New declaration.
7387 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7388 * event-top.c (async_sigterm_handler): New declaration.
7389 (async_sigterm_token): New variable.
7390 (async_init_signals): Create also async_sigterm_token.
7391 (async_sigterm_handler): New function.
7392 (sync_quit_force_run): New variable.
7393 (handle_sigterm): Replace quit_force call by other calls.
7394 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7395
7396 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7397
7398 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7399 offset into SPE pseudo registers.
7400
7401 2014-03-18 Pedro Alves <palves@redhat.com>
7402
7403 PR gdb/13860
7404 * inferior.h (print_stop_event): Declare.
7405 * infrun.c (print_stop_event): New, factored out from ...
7406 (normal_stop): ... this.
7407 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7408 of bpstat_print/print_stack_frame.
7409
7410 2014-03-17 Tom Tromey <tromey@redhat.com>
7411
7412 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7413
7414 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7415
7416 * ada-lang.c (decode_constrained_packed_array): Perform a
7417 minimal coercion for reference with coerce_ref instead of
7418 ada_coerce_ref.
7419
7420 2014-03-17 Tristan Gingold <gingold@adacore.com>
7421
7422 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7423 (darwin_solib_create_inferior_hook): Emit a warning if version
7424 is unhandled.
7425
7426 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7427
7428 * python/py-value.c (get_field_flag): Cast flag_name argument to
7429 PyObject_GetAttrString to support Python 2.4.
7430
7431 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7432
7433 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7434 (Global Maintainers): Remove Jan Kratochvil.
7435
7436 2014-03-14 Pedro Alves <palves@redhat.com>
7437
7438 * inferior.h (terminal_ours_for_output): Rename to ...
7439 (child_terminal_ours_for_output): ... this.
7440 (terminal_save_ours): Rename to ...
7441 (child_terminal_save_ours): ... this.
7442 (terminal_ours): Rename to ...
7443 (child_terminal_ours): ... this.
7444 (terminal_inferior): Rename to ...
7445 (child_terminal_inferior): ... this.
7446 (terminal_init_inferior): Rename to ...
7447 (child_terminal_init_inferior): ... this.
7448 (terminal_init_inferior_with_pgrp): Rename to ...
7449 (child_terminal_init_inferior_with_pgrp): ... this.
7450 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7451 (child_terminal_init_with_pgrp): ... this.
7452 (terminal_save_ours): Rename to ...
7453 (child_terminal_save_ours): ... this.
7454 (terminal_init_inferior): Rename to ...
7455 (child_terminal_init): ... this. Adjust.
7456 (terminal_inferior): Rename to ...
7457 (child_terminal_inferior): ... this.
7458 (terminal_ours_for_output): Rename to ...
7459 (child_terminal_ours_for_output): ... this. Adjust.
7460 (terminal_ours): Rename to ...
7461 (child_terminal_ours): ... this.
7462 (terminal_ours_1): Rename to ...
7463 (child_terminal_ours_1): ... this. Adjust.
7464 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7465 * windows-nat.c (do_initial_windows_stuff): Adjust.
7466 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7467 (gnu_terminal_init): ... this. Adjust.
7468 (gnu_target): Adjust.
7469 * inf-child.c (inf_child_target): Adjust.
7470
7471 2014-03-13 Doug Evans <xdje42@gmail.com>
7472
7473 PR guile/16612
7474 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7475 new eq?-hashtab.
7476
7477 2014-03-13 Doug Evans <xdje42@gmail.com>
7478
7479 * value.c (record_latest_value): Call release_value_or_incref
7480 instead of release_value.
7481
7482 2014-03-13 Pedro Alves <palves@redhat.com>
7483
7484 * procfs.c (procfs_target): Don't override to_shortname,
7485 to_longname or to_doc.
7486
7487 2014-03-13 Pedro Alves <palves@redhat.com>
7488
7489 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7490 Unix in user visible strings.
7491
7492 2014-03-12 Stan Shebs <stan@codesourcery.com>
7493
7494 * gdbtypes.h: Annotate comments for Doxygen, add a page
7495 block comment with some general info.
7496
7497 2014-03-12 Pedro Alves <palves@redhat.com>
7498
7499 * infcmd.c (prepare_execution_command): New function, factored out
7500 from several execution commands.
7501 (run_command_1, continue_command, step_1, jump_command)
7502 (signal_command, until_command, advance_command, finish_command)
7503 (attach_command): Use prepare_execution_command.
7504
7505 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7506
7507 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7508 (MAX_BPTS): Define.
7509 (MAX_WPTS): Define.
7510 (struct arm_linux_thread_points): Removed.
7511 (struct arm_linux_process_info): New.
7512 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7513 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7514 (arm_linux_find_breakpoints_by_tid): Removed.
7515 (struct arch_lwp_info): New.
7516 (arm_linux_find_process_pid): New functions.
7517 (arm_linux_add_process): New functions.
7518 (arm_linux_process_info_get): New functions.
7519 (arm_linux_forget_process): New function.
7520 (arm_linux_get_debug_reg_state): New function.
7521 (struct update_registers_data): New.
7522 (update_registers_callback): New function.
7523 (arm_linux_insert_hw_breakpoint1): Updated.
7524 (arm_linux_remove_hw_breakpoint1): Updated.
7525 (arm_linux_insert_hw_breakpoint): Updated.
7526 (arm_linux_remove_hw_breakpoint): Updated.
7527 (arm_linux_insert_watchpoint): Updated.
7528 (arm_linux_remove_watchpoint): Updated.
7529 (arm_linux_new_thread): Updated.
7530 (arm_linux_prepare_to_resume): New function.
7531 (arm_linux_new_fork): New function.
7532 (_initialize_arm_linux_nat): Updated.
7533
7534 2014-03-12 Pedro Alves <palves@redhat.com>
7535
7536 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7537
7538 2014-03-12 Tom Tromey <tromey@redhat.com>
7539
7540 * inf-child.c (return_zero): New function.
7541 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7542 * aix-thread.c (aix_thread_inferior_created): New function.
7543 (aix_thread_attach): Remove.
7544 (init_aix_thread_ops): Don't set to_attach.
7545 (_initialize_aix_thread): Register inferior_created observer.
7546 * corelow.c (init_core_ops): Don't set to_attach or
7547 to_create_inferior.
7548 * exec.c (init_exec_ops): Don't set to_attach or
7549 to_create_inferior.
7550 * infcmd.c (run_command_1): Use find_run_target. Make direct
7551 target calls.
7552 (attach_command): Use find_attach_target. Make direct target
7553 calls.
7554 * record-btrace.c (init_record_btrace_ops): Don't set
7555 to_create_inferior.
7556 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7557 Remove.
7558 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7559 set to_create_inferior.
7560 * target.c (complete_target_initialization): Add assertion.
7561 (target_create_inferior): Remove.
7562 (find_default_attach, find_default_create_inferior): Remove.
7563 (find_attach_target, find_run_target): New functions.
7564 (find_default_is_async_p, find_default_can_async_p)
7565 (target_supports_non_stop, target_attach): Remove.
7566 (init_dummy_target): Don't set to_create_inferior or
7567 to_supports_non_stop.
7568 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7569 TARGET_DEFAULT_FUNC.
7570 <to_create_inferior>: Add comment.
7571 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7572 TARGET_DEFAULT_RETURN.
7573 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7574 (find_attach_target, find_run_target): Declare.
7575 (target_create_inferior): Remove.
7576 (target_has_execution_1): Update comment.
7577 (target_supports_non_stop): Remove.
7578 * target-delegates.c: Rebuild.
7579
7580 2014-03-12 Pedro Alves <palves@redhat.com>
7581
7582 * inf-child.h: Update comment to not mention Unix.
7583
7584 2014-03-12 Pedro Alves <palves@redhat.com>
7585
7586 * inf-child.c: Update top comment to not mention Unix. Add
7587 generic comment describing how this target is meant to be used.
7588 (inf_child_post_attach, inf_child_post_startup_inferior)
7589 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7590 Unix in comment.
7591
7592 2014-03-12 Pedro Alves <palves@redhat.com>
7593
7594 * nto-procfs.c: Include inf-child.h.
7595 (procfs_ops): Delete global.
7596 (procfs_can_run): Delete method.
7597 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7598 target pointer instead of referencing procfs_ops.
7599 (procfs_prepare_to_store): Delete.
7600 (init_procfs_ops): Delete function.
7601 (procfs_target): New function, based on init_procfs_ops, but
7602 inherit inf_child_target.
7603 (_initialize_procfs): Use procfs_target.
7604
7605 2014-03-12 Pedro Alves <palves@redhat.com>
7606
7607 * windows-nat.c: Include inf-child.h.
7608 (windows_ops): Delete global.
7609 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7610 methods.
7611 (init_windows_ops): Delete function.
7612 (windows_target): New function, based on init_windows_ops, but
7613 inherit inf_child_target.
7614 (_initialize_windows_nat): Use windows_target. Install x86
7615 specific target methods here.
7616
7617 2014-03-10 Doug Evans <xdje42@gmail.com>
7618
7619 * guile/guile.c (call_initialize_gdb_module): New function.
7620 (initialize_guile): Replace call to scm_init_guile with call to
7621 scm_with_guile.
7622
7623 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7624
7625 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7626 in call to TYPE_CODE macro.
7627
7628 2014-03-10 Jerome Guitton <guitton@adacore.com>
7629
7630 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7631 Resolve tagged types to full view.
7632
7633 2014-03-10 Hui Zhu <hui@codesourcery.com>
7634
7635 * target.h (target_insert_breakpoint): Remove "hardware" from its
7636 comments.
7637
7638 2014-03-07 Doug Evans <dje@google.com>
7639
7640 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7641
7642 2014-03-07 Doug Evans <dje@google.com>
7643
7644 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7645 Remove unused local comp_dir_attr. Assert exactly one of
7646 stub_comp_unit_die, stub_comp_dir is non-NULL.
7647
7648 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7649
7650 * target.h (complete_target_initialization, add_target):
7651 Add comment.
7652
7653 2014-03-07 Pedro Alves <palves@redhat.com>
7654
7655 * go32-nat.c: Include inf-child.h.
7656 (go32_ops): Delete global.
7657 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7658 Delete methods.
7659 (go32_create_inferior): Push the passed in target pointer instead
7660 of referencing go32_ops.
7661 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7662 (go32_target): New function, based on init_go32_ops, but inherit
7663 inf_child_target.
7664 (_initialize_go32_nat): Use go32_target. Move parts of
7665 init_go32_ops here.
7666
7667 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7668
7669 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7670 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7671 SYMBOL_VALUE_ADDRESS.
7672 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7673
7674 2014-03-06 Yao Qi <yao@codesourcery.com>
7675
7676 * breakpoint.c (get_tracepoint_by_number): Remove argument
7677 optional_p. All callers updated. Adjust comments. Update
7678 output message.
7679 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7680
7681 2014-03-06 Yao Qi <yao@codesourcery.com>
7682
7683 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7684 early if get_number returns zero. Use 'p' instead of 'args'.
7685
7686 2014-03-06 Yao Qi <yao@codesourcery.com>
7687
7688 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7689 message.
7690
7691 2014-03-06 Yao Qi <yao@codesourcery.com>
7692
7693 PR breakpoints/16508
7694 * tracepoint.c (check_trace_running): New function.
7695 (trace_find_command): Move code to check_trace_running and
7696 call check_trace_running.
7697 (trace_find_pc_command): Likewise.
7698 (trace_find_tracepoint_command): Likewise.
7699 (trace_find_line_command): Likewise.
7700 (trace_find_range_command): Likewise.
7701 * tracepoint.h (check_trace_running): Likewise.
7702 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7703
7704 2014-03-06 Yao Qi <yao@codesourcery.com>
7705
7706 * target.h (struct target_ops) <to_traceframe_info>: Use
7707 TARGET_DEFAULT_NORETURN (tcomplain ()).
7708 * target-delegates.c: Regenerated.
7709
7710 2014-03-05 Pedro Alves <palves@redhat.com>
7711
7712 PR gdb/16575
7713 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7714 void. Update comment.
7715 (dcache_xfer_memory): Delete.
7716 (dcache_read_memory_partial): New, based on the read bits of
7717 dcache_xfer_memory.
7718 (dcache_update): Add status parameter. Use ULONGEST for len, and
7719 adjust. Discard cache lines if the reason for the update was
7720 error.
7721 * dcache.h (dcache_xfer_memory): Delete declaration.
7722 (dcache_read_memory_partial): New declaration.
7723 (dcache_update): Update prototype.
7724 * target.c (raw_memory_xfer_partial): Update the dcache here.
7725 (memory_xfer_partial_1): Don't handle dcache writes here.
7726
7727 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7728
7729 * remote-sim.c (gdbsim_load): Add const to prog.
7730
7731 2014-03-03 Tom Tromey <tromey@redhat.com>
7732
7733 * elfread.c (probe_key): Change to bfd_data.
7734 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7735 now per-BFD, not per-objfile.
7736 * stap-probe.c (stap_probe_destroy): Update comment.
7737 (handle_stap_probe): Allocate on the per-BFD obstack.
7738
7739 2014-03-03 Tom Tromey <tromey@redhat.com>
7740
7741 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7742 * breakpoint.c (create_longjmp_master_breakpoint): Use
7743 get_probe_address.
7744 (add_location_to_breakpoint, bkpt_probe_insert_location)
7745 (bkpt_probe_remove_location): Update.
7746 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7747 * elfread.c (elf_symfile_relocate_probe): Remove.
7748 (elf_probe_fns): Update.
7749 (insert_exception_resume_breakpoint): Change type of "probe"
7750 parameter to bound_probe.
7751 (check_exception_resume): Update.
7752 * objfiles.c (objfile_relocate1): Don't relocate probes.
7753 * probe.c (bound_probe_s): New typedef.
7754 (parse_probes): Use get_probe_address. Set sal's objfile.
7755 (find_probe_by_pc): Return a bound_probe.
7756 (collect_probes): Return a VEC(bound_probe_s).
7757 (compare_probes): Update.
7758 (gen_ui_out_table_header_info): Change type of "probes"
7759 parameter. Update.
7760 (info_probes_for_ops): Update.
7761 (get_probe_address): New function.
7762 (probe_safe_evaluate_at_pc): Update.
7763 * probe.h (struct probe_ops) <get_probe_address>: New field.
7764 <set_semaphore, clear_semaphore>: Add objfile parameter.
7765 (struct probe) <objfile>: Remove field.
7766 <arch>: New field.
7767 <address>: Update comment.
7768 (struct bound_probe): New.
7769 (find_probe_by_pc): Return a bound_probe.
7770 (get_probe_address): Declare.
7771 * solib-svr4.c (struct probe_and_action) <address>: New field.
7772 (hash_probe_and_action, equal_probe_and_action): Update.
7773 (register_solib_event_probe): Add address parameter.
7774 (solib_event_probe_at): Update.
7775 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7776 get_probe_address.
7777 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7778 (stap_get_probe_address): New function.
7779 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7780 (compile_probe_arg): Update.
7781 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7782 address.
7783 (handle_stap_probe): Don't relocate the probe.
7784 (stap_relocate): Remove.
7785 (stap_gen_info_probes_table_values): Update.
7786 (stap_probe_ops): Remove stap_relocate.
7787 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7788 (debug_sym_probe_fns): Update.
7789 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7790 * symtab.c (init_sal): Use memset.
7791 * symtab.h (struct symtab_and_line) <objfile>: New field.
7792 * tracepoint.c (start_tracing, stop_tracing): Update.
7793
7794 2014-03-03 Tom Tromey <tromey@redhat.com>
7795
7796 * probe.h (parse_probes, find_probe_by_pc)
7797 (find_probes_in_objfile): Fix comments.
7798
7799 2014-03-02 Doug Evans <xdje42@gmail.com>
7800
7801 * infrun.c (handle_signal_stop): Replace test for
7802 TARGET_WAITKIND_STOPPED with an assert.
7803
7804 2014-03-02 Doug Evans <xdje42@gmail.com>
7805
7806 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7807
7808 2014-03-02 Doug Evans <xdje42@gmail.com>
7809
7810 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7811
7812 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7813
7814 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7815
7816 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7817
7818 * i386obsd-nat.c: Include "obsd-nat.h".
7819 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7820 add_target.
7821 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7822
7823 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7824
7825 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7826
7827 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7828
7829 * mips64obsd-nat.c: Include "obsd-nath".
7830 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7831 add_target
7832 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7833
7834 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7835
7836 * amd64obsd-nat.c: Include "obsd-nat,h.
7837 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7838 add_target.
7839 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7840
7841 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7842
7843 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7844 (find_overload_match): Update call to find_oload_champ.
7845 (find_oload_champ_namespace_loop): Likewise
7846
7847 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7848
7849 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7850
7851 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7852 * config/sparc/obsd64.mh: New file.
7853 * sparc64obsd-nat.c: New file.
7854
7855 * obsd-nat.h: New file.
7856 * obsd-nat.c: New file.
7857 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7858 (ALLDEPFILES): Add obsd-nat.c.
7859
7860 2014-02-28 Tom Tromey <tromey@redhat.com>
7861
7862 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7863 * cli-out.h (cli_ui_out_impl): Now const.
7864 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7865 * ui-out.c (struct ui_out) <impl>: Now const.
7866 (default_ui_out_impl): Now const.
7867 (ui_out_new): Make 'impl' parameter const.
7868 * ui-out.h (ui_out_new): Update.
7869
7870 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7871
7872 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7873
7874 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7875
7876 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7877
7878 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 Additional PR 8882 fix.
7881 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7882
7883 2014-02-27 Pedro Alves <palves@redhat.com>
7884
7885 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7886 isn't set.
7887
7888 2014-02-27 Pedro Alves <palves@redhat.com>
7889
7890 PR 12702
7891 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7892 * nat/linux-waitpid.c: Include string.h.
7893 (status_to_str): Moved here and made extern.
7894 * nat/linux-waitpid.h (status_to_str): New declaration.
7895
7896 2014-02-27 Hui Zhu <hui@codesourcery.com>
7897
7898 PR 12702
7899 * infrun.c (ptid_match): Move ...
7900 * common/ptid.c (ptid_match): ... here.
7901 * inferior.h (ptid_match): Move ...
7902 * common/ptid.h (ptid_match): ... here.
7903
7904 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7905
7906 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7907 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7908 gdb_target_obs.
7909
7910 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7911
7912 * obsd-tdep.c (obsd_auxv_parse): New function.
7913 (obsd_init_abi): Set auxv_parse.
7914
7915 * gdbarch.sh (auxv_parse): New.
7916 * gdbarch.h: Regenerated.
7917 * gdbarch.c: Regenerated.
7918 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7919
7920 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7921
7922 * guile/scm-value.c (gdbscm_history_append_x): New function.
7923 (value_functions): Add it.
7924
7925 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7926
7927 * dwarf2read.c (attr_value_as_address): New function.
7928 (dwarf2_find_base_address, read_call_site_scope): Use
7929 attr_value_as_address in place of DW_ADDR.
7930 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7931 the low and high addresses. Slight rework of the handling
7932 of the high pc being a constant form, and limit it to
7933 DWARF verson 4 or higher.
7934 (dwarf2_record_block_ranges): Likewise.
7935 (read_partial_die): Likewise.
7936 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7937
7938 2014-02-26 Tom Tromey <tromey@redhat.com>
7939
7940 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7941
7942 2014-02-26 Tom Tromey <tromey@redhat.com>
7943
7944 * elfread.c (elf_read_minimal_symbols): Return early if
7945 minimal symbols have already been read. Add "ei" parameter.
7946 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7947 * minsyms.c (prim_record_minimal_symbol_full): Update.
7948 * objfiles.h (struct objstats) <n_minsyms>: Move...
7949 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7950 * symmisc.c (print_objfile_statistics): Update.
7951
7952 2014-02-26 Tom Tromey <tromey@redhat.com>
7953
7954 * elfread.c (elf_read_minimal_symbols): New function, from
7955 elf_symfile_read.
7956 (elf_symfile_read): Call it.
7957
7958 2014-02-26 Tom Tromey <tromey@redhat.com>
7959
7960 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7961 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7962 (lookup_minimal_symbol_solib_trampoline)
7963 (lookup_minimal_symbol_by_pc_section_1)
7964 (lookup_minimal_symbol_and_objfile): Update.
7965 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7966 Don't allocate a minimal symbol if minsyms have already been read.
7967 (build_minimal_symbol_hash_tables): Update.
7968 (install_minimal_symbols): Do nothing if minsyms already read.
7969 Use the per-BFD obstack.
7970 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7971 * objfiles.c (allocate_objfile): Call
7972 terminate_minimal_symbol_table later.
7973 (have_minimal_symbols): Update.
7974 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7975 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7976 Move from struct objfile.
7977 <minsyms_read>: New field.
7978 (struct objfile) <msymbols, minimal_symbol_count,
7979 msymbol_hash, msymbol_demangled_hash>: Move.
7980 (ALL_OBJFILE_MSYMBOLS): Update.
7981 * symfile.c (read_symbols): Set minsyms_read.
7982 (reread_symbols): Update.
7983 * symmisc.c (dump_objfile, dump_msymbols): Update.
7984
7985 2014-02-26 Tom Tromey <tromey@redhat.com>
7986
7987 * minsyms.c (msymbols_sort): Remove.
7988 * minsyms.h (msymbols_sort): Remove.
7989 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7990 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7991 * elfread.c (elf_symtab_read): Don't add section offsets.
7992 * xcoffread.c (record_minimal_symbol): Don't add section offset
7993 to minimal symbol address.
7994 * somread.c (text_offset, data_offset): Remove.
7995 (som_symtab_read): Don't add section offsets to minimal symbol
7996 addresses.
7997 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7998 Don't add section offsets to minimal symbols.
7999 * coffread.c (coff_symtab_read): Don't add section offsets
8000 to minimal symbol addresses.
8001 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8002 to minimal symbol addresses.
8003 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8004 section offset to minimal symbol addresses.
8005 * mdebugread.c (parse_partial_symbols): Don't add section
8006 offset to minimal symbol addresses.
8007 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8008 offset to minimal symbol addresses.
8009
8010 2014-02-26 Tom Tromey <tromey@redhat.com>
8011
8012 * ada-lang.c (ada_main_name): Update.
8013 (ada_add_standard_exceptions): Update.
8014 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8015 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8016 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8017 * auxv.c (ld_so_xfer_auxv): Update.
8018 * avr-tdep.c (avr_scan_prologue): Update.
8019 * ax-gdb.c (gen_var_ref): Update.
8020 * blockframe.c (get_pc_function_start)
8021 (find_pc_partial_function_gnu_ifunc): Update.
8022 * breakpoint.c (create_overlay_event_breakpoint)
8023 (create_longjmp_master_breakpoint)
8024 (create_std_terminate_master_breakpoint)
8025 (create_exception_master_breakpoint): Update.
8026 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8027 * c-valprint.c (c_val_print): Update.
8028 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8029 * common/agent.c (agent_look_up_symbols): Update.
8030 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8031 * dwarf2loc.c (call_site_to_target_addr): Update.
8032 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8033 * elfread.c (elf_gnu_ifunc_record_cache)
8034 (elf_gnu_ifunc_resolve_by_got): Update.
8035 * findvar.c (default_read_var_value): Update.
8036 * frame.c (inside_main_func): Update.
8037 * frv-tdep.c (frv_frame_this_id): Update.
8038 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8039 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8040 Update.
8041 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8042 (hppa_hpux_find_dummy_bpaddr): Update.
8043 * hppa-tdep.c (hppa_symbol_address): Update.
8044 * infcmd.c (until_next_command): Update.
8045 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8046 Update.
8047 * linespec.c (minsym_found, add_minsym): Update.
8048 * linux-nat.c (get_signo): Update.
8049 * linux-thread-db.c (inferior_has_bug): Update.
8050 * m32c-tdep.c (m32c_return_value)
8051 (m32c_m16c_address_to_pointer): Update.
8052 * m32r-tdep.c (m32r_frame_this_id): Update.
8053 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8054 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8055 * maint.c (maintenance_translate_address): Update.
8056 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8057 (frob_address): New function.
8058 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8059 frob_address. Rename parameter to "pc_in".
8060 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8061 addresses.
8062 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8063 Update.
8064 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8065 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8066 * objc-lang.c (find_objc_msgsend): Update.
8067 * objfiles.c (objfile_relocate1): Update.
8068 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8069 * p-valprint.c (pascal_val_print): Update.
8070 * parse.c (write_exp_msymbol): Update.
8071 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8072 (ppc_elfv2_skip_entrypoint): Update.
8073 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8074 * printcmd.c (build_address_symbolic, msym_info)
8075 (address_info): Update.
8076 * proc-service.c (ps_pglobal_lookup): Update.
8077 * psymtab.c (find_pc_sect_psymtab_closer)
8078 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8079 Change msymbol parameter to bound_minimal_symbol.
8080 * ravenscar-thread.c (get_running_thread_id): Update.
8081 * remote.c (remote_check_symbols): Update.
8082 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8083 address.
8084 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8085 * solib-dsbt.c (lm_base): Update.
8086 * solib-frv.c (lm_base, main_got): Update.
8087 * solib-irix.c (locate_base): Update.
8088 * solib-som.c (som_solib_create_inferior_hook)
8089 (link_map_start): Update.
8090 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8091 * solib-svr4.c (elf_locate_base, enable_break): Update.
8092 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8093 (flush_ea_cache): Update.
8094 * stabsread.c (define_symbol, scan_file_globals): Update.
8095 * stack.c (find_frame_funname): Update.
8096 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8097 (debug_qf_find_pc_sect_symtab): Update.
8098 * symfile.c (simple_read_overlay_table)
8099 (simple_overlay_update): Update.
8100 * symfile.h (struct quick_symbol_functions)
8101 <find_pc_sect_symtab>: Change type of msymbol to
8102 bound_minimal_symbol.
8103 * symmisc.c (dump_msymbols): Update.
8104 * symtab.c (find_pc_sect_symtab_via_partial)
8105 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8106 (search_symbols, print_msymbol_info): Update.
8107 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8108 (MSYMBOL_VALUE_ADDRESS): Redefine.
8109 (BMSYMBOL_VALUE_ADDRESS): New macro.
8110 * tracepoint.c (scope_info): Update.
8111 * tui/tui-disasm.c (tui_find_disassembly_address)
8112 (tui_get_begin_asm_address): Update.
8113 * valops.c (find_function_in_inferior): Update.
8114 * value.c (value_static_field, value_fn_field): Update.
8115
8116 2014-02-26 Tom Tromey <tromey@redhat.com>
8117
8118 * ada-lang.c (ada_update_initial_language): Update.
8119 (ada_main_name, ada_has_this_exception_support): Update.
8120 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8121 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8122 * arm-tdep.c (arm_skip_stub): Update.
8123 * auxv.c (ld_so_xfer_auxv): Update.
8124 * avr-tdep.c (avr_scan_prologue): Update.
8125 * ax-gdb.c (gen_var_ref): Update.
8126 * breakpoint.c (struct breakpoint_objfile_data)
8127 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8128 type to bound_minimal_symbol.
8129 (create_overlay_event_breakpoint)
8130 (create_longjmp_master_breakpoint)
8131 (create_std_terminate_master_breakpoint)
8132 (create_exception_master_breakpoint): Update.
8133 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8134 * c-exp.y (classify_name): Update.
8135 * coffread.c (coff_symfile_read): Update.
8136 * common/agent.c (agent_look_up_symbols): Update.
8137 * d-lang.c (d_main_name): Update.
8138 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8139 * dec-thread.c (enable_dec_thread): Update.
8140 * dwarf2loc.c (call_site_to_target_addr): Update.
8141 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8142 * eval.c (evaluate_subexp_standard): Update.
8143 * findvar.c (struct minsym_lookup_data) <result>: Change type
8144 to bound_minimal_symbol.
8145 <objfile>: Remove.
8146 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8147 * frame.c (inside_main_func): Update.
8148 * frv-tdep.c (frv_frame_this_id): Update.
8149 * gcore.c (call_target_sbrk): Update.
8150 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8151 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8152 Update.
8153 * go-lang.c (go_main_name): Update.
8154 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8155 (hppa_hpux_find_import_stub_for_addr): Update.
8156 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8157 Update. Change return type.
8158 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8159 type.
8160 * jit.c (jit_breakpoint_re_set_internal): Update.
8161 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8162 Update.
8163 * linux-nat.c (get_signo): Update.
8164 * linux-thread-db.c (inferior_has_bug): Update
8165 * m32c-tdep.c (m32c_return_value)
8166 (m32c_m16c_address_to_pointer): Update.
8167 * m32r-tdep.c (m32r_frame_this_id): Update.
8168 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8169 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8170 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8171 lookup_minimal_symbol. Change return type.
8172 (lookup_minimal_symbol): Remove.
8173 (lookup_bound_minimal_symbol): Update.
8174 (lookup_minimal_symbol_text): Change return type.
8175 (lookup_minimal_symbol_solib_trampoline): Change return type.
8176 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8177 (lookup_minimal_symbol_solib_trampoline): Change return type.
8178 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8179 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8180 (value_nsstring, find_imps): Update.
8181 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8182 * p-lang.c (pascal_main_name): Update.
8183 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8184 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8185 * proc-service.c (ps_pglobal_lookup): Update.
8186 * ravenscar-thread.c (get_running_thread_msymbol): Change
8187 return type.
8188 (has_ravenscar_runtime, get_running_thread_id): Update.
8189 * remote.c (remote_check_symbols): Update.
8190 * sol-thread.c (ps_pglobal_lookup): Update.
8191 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8192 * solib-dsbt.c (lm_base): Update.
8193 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8194 Update.
8195 * solib-irix.c (locate_base): Update.
8196 * solib-som.c (som_solib_create_inferior_hook)
8197 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8198 Update.
8199 * solib-spu.c (spu_enable_break): Update.
8200 * solib-svr4.c (elf_locate_base, enable_break): Update.
8201 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8202 (flush_ea_cache): Update.
8203 * stabsread.c (define_symbol): Update.
8204 * symfile.c (simple_read_overlay_table): Update.
8205 * symtab.c (find_pc_sect_line): Update.
8206 * tracepoint.c (scope_info): Update.
8207 * tui-disasm.c (tui_get_begin_asm_address): Update.
8208 * value.c (value_static_field): Update.
8209
8210 2014-02-26 Tom Tromey <tromey@redhat.com>
8211
8212 * minsyms.c (prim_record_minimal_symbol_full): Use
8213 SET_MSYMBOL_VALUE_ADDRESS.
8214 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8215 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8216 SET_MSYMBOL_VALUE_ADDRESS.
8217 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8218 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8219
8220 2014-02-26 Tom Tromey <tromey@redhat.com>
8221
8222 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8223 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8224 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8225 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8226 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8227 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8228 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8229 * ada-lang.c (ada_main_name): Update.
8230 (ada_lookup_simple_minsym): Update.
8231 (ada_make_symbol_completion_list): Update.
8232 (ada_add_standard_exceptions): Update.
8233 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8234 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8235 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8236 * arm-tdep.c (skip_prologue_function): Update.
8237 (arm_skip_stack_protector, arm_skip_stub): Update.
8238 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8239 (arm_wince_skip_main_prologue): Update.
8240 * auxv.c (ld_so_xfer_auxv): Update.
8241 * avr-tdep.c (avr_scan_prologue): Update.
8242 * ax-gdb.c (gen_var_ref): Update.
8243 * block.c (call_site_for_pc): Update.
8244 * blockframe.c (get_pc_function_start): Update.
8245 (find_pc_partial_function_gnu_ifunc): Update.
8246 * breakpoint.c (create_overlay_event_breakpoint): Update.
8247 (create_longjmp_master_breakpoint): Update.
8248 (create_std_terminate_master_breakpoint): Update.
8249 (create_exception_master_breakpoint): Update.
8250 (resolve_sal_pc): Update.
8251 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8252 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8253 Update.
8254 * c-valprint.c (c_val_print): Update.
8255 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8256 * coffread.c (coff_symfile_read): Update.
8257 * common/agent.c (agent_look_up_symbols): Update.
8258 * dbxread.c (find_stab_function_addr): Update.
8259 (end_psymtab): Update.
8260 * dwarf2loc.c (call_site_to_target_addr): Update.
8261 (func_verify_no_selftailcall): Update.
8262 (tailcall_dump): Update.
8263 (call_site_find_chain_1): Update.
8264 (dwarf_expr_reg_to_entry_parameter): Update.
8265 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8266 (elf_gnu_ifunc_resolve_by_got): Update.
8267 * f-valprint.c (info_common_command): Update.
8268 * findvar.c (read_var_value): Update.
8269 * frame.c (get_prev_frame_1): Update.
8270 (inside_main_func): Update.
8271 * frv-tdep.c (frv_skip_main_prologue): Update.
8272 (frv_frame_this_id): Update.
8273 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8274 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8275 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8276 (gnuv3_skip_trampoline): Update.
8277 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8278 (hppa64_hpux_in_solib_call_trampoline): Update.
8279 (hppa_hpux_skip_trampoline_code): Update.
8280 (hppa64_hpux_search_dummy_call_sequence): Update.
8281 (hppa_hpux_find_import_stub_for_addr): Update.
8282 (hppa_hpux_find_dummy_bpaddr): Update.
8283 * hppa-tdep.c (hppa_symbol_address)
8284 (hppa_lookup_stub_minimal_symbol): Update.
8285 * i386-tdep.c (i386_skip_main_prologue): Update.
8286 (i386_pe_skip_trampoline_code): Update.
8287 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8288 * infcall.c (get_function_name): Update.
8289 * infcmd.c (until_next_command): Update.
8290 * jit.c (jit_breakpoint_re_set_internal): Update.
8291 (jit_inferior_init): Update.
8292 * linespec.c (minsym_found): Update.
8293 (add_minsym): Update.
8294 * linux-fork.c (info_checkpoints_command): Update.
8295 * linux-nat.c (get_signo): Update.
8296 * linux-thread-db.c (inferior_has_bug): Update.
8297 * m32c-tdep.c (m32c_return_value): Update.
8298 (m32c_m16c_address_to_pointer): Update.
8299 (m32c_m16c_pointer_to_address): Update.
8300 * m32r-tdep.c (m32r_frame_this_id): Update.
8301 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8302 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8303 * maint.c (maintenance_translate_address): Update.
8304 * minsyms.c (add_minsym_to_hash_table): Update.
8305 (add_minsym_to_demangled_hash_table): Update.
8306 (msymbol_objfile): Update.
8307 (lookup_minimal_symbol): Update.
8308 (iterate_over_minimal_symbols): Update.
8309 (lookup_minimal_symbol_text): Update.
8310 (lookup_minimal_symbol_by_pc_name): Update.
8311 (lookup_minimal_symbol_solib_trampoline): Update.
8312 (lookup_minimal_symbol_by_pc_section_1): Update.
8313 (lookup_minimal_symbol_and_objfile): Update.
8314 (prim_record_minimal_symbol_full): Update.
8315 (compare_minimal_symbols): Update.
8316 (compact_minimal_symbols): Update.
8317 (build_minimal_symbol_hash_tables): Update.
8318 (install_minimal_symbols): Update.
8319 (terminate_minimal_symbol_table): Update.
8320 (find_solib_trampoline_target): Update.
8321 (minimal_symbol_upper_bound): Update.
8322 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8323 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8324 (mips_skip_pic_trampoline_code): Update.
8325 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8326 * objc-lang.c (selectors_info): Update.
8327 (classes_info): Update.
8328 (find_methods): Update.
8329 (find_imps): Update.
8330 (find_objc_msgsend): Update.
8331 * objfiles.c (objfile_relocate1): Update.
8332 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8333 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8334 * p-valprint.c (pascal_val_print): Update.
8335 * parse.c (write_exp_msymbol): Update.
8336 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8337 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8338 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8339 * printcmd.c (build_address_symbolic): Update.
8340 (sym_info): Update.
8341 (address_info): Update.
8342 * proc-service.c (ps_pglobal_lookup): Update.
8343 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8344 (find_pc_sect_psymtab): Update.
8345 * python/py-framefilter.c (py_print_frame): Update.
8346 * ravenscar-thread.c (get_running_thread_id): Update.
8347 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8348 Update.
8349 * remote.c (remote_check_symbols): Update.
8350 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8351 (rs6000_skip_trampoline_code): Update.
8352 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8353 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8354 * solib-dsbt.c (lm_base): Update.
8355 * solib-frv.c (lm_base): Update.
8356 (main_got): Update.
8357 * solib-irix.c (locate_base): Update.
8358 * solib-som.c (som_solib_create_inferior_hook): Update.
8359 (som_solib_desire_dynamic_linker_symbols): Update.
8360 (link_map_start): Update.
8361 * solib-spu.c (spu_enable_break): Update.
8362 (ocl_enable_break): Update.
8363 * solib-svr4.c (elf_locate_base): Update.
8364 (enable_break): Update.
8365 * spu-tdep.c (spu_get_overlay_table): Update.
8366 (spu_catch_start): Update.
8367 (flush_ea_cache): Update.
8368 * stabsread.c (define_symbol): Update.
8369 (scan_file_globals): Update.
8370 * stack.c (find_frame_funname): Update.
8371 (frame_info): Update.
8372 * symfile.c (simple_read_overlay_table): Update.
8373 (simple_overlay_update): Update.
8374 * symmisc.c (dump_msymbols): Update.
8375 * symtab.c (fixup_section): Update.
8376 (find_pc_sect_line): Update.
8377 (skip_prologue_sal): Update.
8378 (search_symbols): Update.
8379 (print_msymbol_info): Update.
8380 (rbreak_command): Update.
8381 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8382 (completion_list_objc_symbol): Update.
8383 (default_make_symbol_completion_list_break_on): Update.
8384 * tracepoint.c (scope_info): Update.
8385 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8386 (tui_get_begin_asm_address): Update.
8387 * valops.c (find_function_in_inferior): Update.
8388 * value.c (value_static_field): Update.
8389 (value_fn_field): Update.
8390
8391 2014-02-26 Tom Tromey <tromey@redhat.com>
8392
8393 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8394 bound minimal symbols. Move code that knows about minsym
8395 table layout...
8396 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8397 function.
8398 * minsyms.h (minimal_symbol_upper_bound): Declare.
8399 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8400 minimal_symbol_upper_bound.
8401
8402 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8403
8404 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8405 Use the type's name if its basic type does not have a tag.
8406
8407 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8408
8409 * dwarf2read.c (read_subrange_type): Add comment.
8410
8411 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8412
8413 * dwarf2read.c (update_enumeration_type_from_children): New
8414 function, mostly extracted from process_structure_scope.
8415 (read_enumeration_type): Call update_enumeration_type_from_children.
8416 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8417 and flag_flag_enum fields.
8418
8419 2014-02-26 Pedro Alves <palves@redhat.com>
8420
8421 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8422 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8423 to_xfer_partial method.
8424
8425 2014-02-26 Pedro Alves <palves@redhat.com>
8426
8427 * target.c (complete_target_initialization): Don't install
8428 default_xfer_partial as to_xfer_partial hook.
8429 (nomemory): Delete.
8430 (update_current_target): Don't INHERIT nor de_fault
8431 deprecated_xfer_memory. Delete de_fault macro.
8432 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8433 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8434 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8435 field.
8436
8437 2014-02-26 Pedro Alves <palves@redhat.com>
8438
8439 * go32-nat.c (my_write_child): New function.
8440 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8441 (go32_xfer_partial): New function.
8442 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8443 Instead install a to_xfer_partial hook.
8444
8445 2014-02-26 Pedro Alves <palves@redhat.com>
8446
8447 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8448 to_xfer_partial helper. Rewrite.
8449 (procfs_xfer_partial): New function.
8450 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8451 Install a to_xfer_partial hook.
8452
8453 2014-02-26 Pedro Alves <palves@redhat.com>
8454
8455 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8456 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8457 (m32r_xfer_partial): New function.
8458 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8459 Install a to_xfer_partial hook.
8460
8461 2014-02-26 Pedro Alves <palves@redhat.com>
8462
8463 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8464 helper.
8465 (mips_xfer_partial): New function.
8466 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8467 hook. Install a to_xfer_partial hook.
8468
8469 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8470
8471 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8472 * gdbtypes.c (create_array_type_with_stride): New function,
8473 renaming create_array_type, but with an added parameter
8474 called "bit_stride".
8475 (create_array_type): Re-implement using
8476 create_array_type_with_stride.
8477 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8478 and DW_AT_bit_stride attributes.
8479
8480 2014-02-26 Pedro Alves <palves@redhat.com>
8481
8482 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8483 task-specific breakpoints.
8484
8485 2014-02-25 Pedro Alves <palves@redhat.com>
8486
8487 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8488 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8489
8490 2014-02-25 Stan Shebs <stan@codesourcery.com>
8491
8492 * defs.h: Annotate comments for Doxygen.
8493
8494 2014-02-25 Tom Tromey <tromey@redhat.com>
8495
8496 * target.h (target_ignore): Don't declare.
8497 * target.c (target_ignore): Remove.
8498
8499 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8500
8501 PR gdb/16626
8502 * auto-load.c (auto_load_objfile_script_1): Change filename to
8503 debugfile.
8504
8505 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8506
8507 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8508 documentation. Adjust prototype to match the target_ops
8509 to_xfer_partial method. Adjust implementation accordingly.
8510
8511 2014-02-25 Hui Zhu <hui@codesourcery.com>
8512
8513 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8514 to_traceframe_info.
8515
8516 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8517
8518 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8519 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8520 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8521 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8522 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8523 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8524 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8525 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8526 New constants.
8527 (rl78_register_type): Use a data pointer type for SP and
8528 new pseudo registers mentioned above. Use a 16 bit integer
8529 type for all other register pairs.
8530 (rl78_register_name, rl78_g10_register_name): Update for
8531 new pseudo registers.
8532 (rl78_pseudo_register_read): Likewise.
8533 (rl78_pseudo_register_write): Likewise.
8534 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8535 to the newly added pseudo registers.
8536
8537 2014-02-24 Doug Evans <dje@google.com>
8538
8539 * value.c (record_latest_value): Fix comment.
8540 * printcmd.c (print_command_1): Remove code to handle -1 return from
8541 record_latest_value.
8542
8543 2014-02-24 Pedro Alves <palves@redhat.com>
8544
8545 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8546 deprecated_xfer_memory hook.
8547 (procfs_xfer_partial): Call procfs_xfer_memory instead
8548 of the deprecated_xfer_memory target hook.
8549 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8550 helper.
8551
8552 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8553
8554 * windows-nat.c (windows_xfer_shared_libraries): Return
8555 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8556 requested object is TARGET_OBJECT_LIBRARIES.
8557
8558 2014-02-24 Yao Qi <yao@codesourcery.com>
8559
8560 * target.h (enum target_xfer_status)
8561 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8562 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8563 explicitly. New.
8564 * corefile.c (memory_error_message): User updated.
8565 * exec.c (section_table_read_available_memory): Likewise.
8566 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8567 * target.c (target_xfer_status_to_string): Likewise.
8568 (raw_memory_xfer_partial): Likewise.
8569 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8570 * valops.c (read_value_memory): Likewise.
8571 * exec.h: Update comments.
8572
8573 2014-02-24 Yao Qi <yao@codesourcery.com>
8574
8575 * target.c (target_xfer_status_to_string): Rename argument err
8576 to status.
8577 * target.h (target_xfer_status_to_string): Update declaration.
8578 Replace target_xfer_error_to_string with
8579 target_xfer_status_to_string in comment.
8580
8581 2014-02-24 Yao Qi <yao@codesourcery.com>
8582
8583 * mips-linux-nat.c (super_close): Update its type.
8584 (mips_linux_close): Pass 'self' to super_close.
8585
8586 2014-02-24 Yao Qi <yao@codesourcery.com>
8587
8588 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8589 * corefile.c (read_memory): Adjusted.
8590 * target.c (target_write_with_progress): Adjusted.
8591
8592 2014-02-23 Yao Qi <yao@codesourcery.com>
8593
8594 Revert two patches:
8595
8596 2013-10-25 Yao Qi <yao@codesourcery.com>
8597
8598 * remote.c (remote_traceframe_info): Return early if
8599 traceframe is not selected.
8600
8601 2013-07-19 Yao Qi <yao@codesourcery.com>
8602
8603 * target.c (update_current_target): Change the default action
8604 of 'to_traceframe_info' from tcomplain to return_zero.
8605 * target.h (struct target_ops) <to_traceframe_info>: Add more
8606 comments.
8607
8608 2014-02-23 Yao Qi <yao@codesourcery.com>
8609
8610 * valops.c (read_value_memory): Rewrite it. Call
8611 target_xfer_partial in a loop.
8612 * exec.h (section_table_available_memory): Remove declaration.
8613 Move comments to ...
8614 * exec.c (section_table_available_memory): ... here. Make it
8615 static.
8616
8617 2014-02-23 Yao Qi <yao@codesourcery.com>
8618
8619 * exec.c (section_table_read_available_memory): New function.
8620 * exec.h (section_table_read_available_memory): Declare.
8621 * ctf.c (ctf_xfer_partial): Call
8622 section_table_read_available_memory.
8623 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8624
8625 2014-02-23 Yao Qi <yao@codesourcery.com>
8626
8627 * ctf.c (ctf_xfer_partial): Move code to ...
8628 * exec.c (exec_read_partial_read_only): ... it. New function.
8629 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8630 * tracefile.c: Include "exec.h".
8631 * exec.h (exec_read_partial_read_only): Declare.
8632
8633 2014-02-23 Yao Qi <yao@codesourcery.com>
8634
8635 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8636 (tfile_has_memory): Remove.
8637 (init_tfile_ops): Don't set fields to_has_all_memory and
8638 to_has_memory of tfile_ops.
8639 * tracefile.c (tracefile_has_all_memory): New function.
8640 (tracefile_has_memory): New function.
8641 (init_tracefile_ops): Initialize fields to_has_all_memory and
8642 to_has_memory of 'ops'.
8643
8644 2014-02-23 Yao Qi <yao@codesourcery.com>
8645
8646 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8647 (ctf_thread_alive, ctf_get_trace_status): Remove.
8648 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8649 init_tracefile_ops.
8650 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8651 (tfile_has_stack, tfile_has_registers): Remove.
8652 (tfile_thread_alive): Remove.
8653 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8654 init_tracefile_ops.
8655 * tracefile.c (tracefile_has_stack): New function.
8656 (tracefile_has_registers): New function.
8657 (tracefile_thread_alive): New function.
8658 (tracefile_get_trace_status): New function.
8659 (init_tracefile_ops): New function.
8660 * tracefile.h (init_tracefile_ops): Declare.
8661
8662 2014-02-23 Yao Qi <yao@codesourcery.com>
8663
8664 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8665 (O_LARGEFILE): Likewise.
8666 (tfile_ops): Likewise.
8667 (TRACE_HEADER_SIZE): Likewise.
8668 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8669 (cur_data_size): Likewise.
8670 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8671 (tfile_close, tfile_files_info): Likewise.
8672 (tfile_get_trace_status): Likewise.
8673 (tfile_get_tracepoint_status): Likewise.
8674 (tfile_get_traceframe_address): Likewise.
8675 (tfile_trace_find, match_blocktype): Likewise.
8676 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8677 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8678 (tfile_get_trace_state_variable_value): Likewise.
8679 (tfile_has_all_memory, tfile_has_memory): Likewise.
8680 (tfile_has_stack, tfile_has_registers): Likewise.
8681 (tfile_thread_alive, build_traceframe_info): Likewise.
8682 (tfile_traceframe_info, init_tfile_ops): Likewise.
8683 (_initialize_tracepoint): Don't call init_tfile_ops
8684 and add_target_with_completer.
8685 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8686 exec.h, completer.h and filenames.h.
8687 (_initialize_tracefile_tfile): New function.
8688
8689 2014-02-23 Yao Qi <yao@codesourcery.com>
8690
8691 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8692 tracefile-tfile.o.
8693 (HFILES_NO_SRCDIR): Add tracefile.h.
8694 * ctf.c: Include "tracefile.h".
8695 * tracefile.h: New file.
8696 * tracefile.c: New file
8697 * tracefile-tfile.c: New file.
8698 * tracepoint.c: Include "tracefile.h".
8699 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8700 (stop_reason_names): Add const.
8701 (trace_file_writer_xfree): Move it to tracefile.c.
8702 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8703 (trace_save_ctf): Likewise.
8704 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8705 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8706 (tfile_write_header, tfile_write_regblock_type): Likewise.
8707 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8708 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8709 (tfile_write_raw_data, tfile_end): Likewise.
8710 (tfile_trace_file_writer_new): Likewise.
8711 (free_uploaded_tp): Make it extern.
8712 (free_uploaded_tsv): Make it extern.
8713 (_initialize_tracepoint): Move code to register command 'tsave'
8714 to tracefile.c.
8715 * tracepoint.h (stop_reason_names): Declare.
8716 (struct trace_frame_write_ops): Move it to tracefile.h.
8717 (struct trace_file_write_ops): Likewise.
8718 (struct trace_file_writer): Likewise.
8719 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8720
8721 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8722
8723 PR gdb/16594
8724 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8725 process name.
8726 (get_cores_used_by_process): New parameter num_cores, use it.
8727 (linux_xfer_osdata_processes): Pass num_cores to it.
8728 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8729 process name.
8730
8731 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8732
8733 * target.c (memory_xfer_partial): Fix length arg in call to
8734 breakpoint_xfer_memory.
8735
8736 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8737
8738 PR tdep/16397
8739 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8740 number comes after the + or - signs. Adjust length of register
8741 name to be extracted.
8742
8743 2014-02-20 Tom Tromey <tromey@redhat.com>
8744
8745 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8746 (ada_varobj_ops): Mark "extern".
8747
8748 2014-02-20 Tom Tromey <tromey@redhat.com>
8749
8750 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8751
8752 2014-02-20 Doug Evans <xdje42@gmail.com>
8753
8754 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8755 All callers updated.
8756 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8757 All callers updated.
8758 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8759 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8760
8761 2014-02-20 lin zuojian <manjian2006@gmail.com>
8762 Joel Brobecker <brobecker@adacore.com>
8763 Doug Evans <xdje42@gmail.com>
8764
8765 PR symtab/16581
8766 * dwarf2read.c (struct die_info): New member in_process.
8767 (reset_die_in_process): New function.
8768 (process_die): Set it at the start, reset when returning.
8769 (inherit_abstract_dies): Only call process_die if origin_child_die
8770 not already being processed.
8771
8772 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8773
8774 * windows-nat.c (handle_unload_dll): Add function documentation.
8775 (do_initial_windows_stuff): Add comment explaining why we wait
8776 until after inferior initialization has finished before
8777 processing all DLLs.
8778
8779 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8780
8781 * windows-nat.c (get_module_name): Delete.
8782 (windows_get_exec_module_filename): New function, mostly
8783 inspired from get_module_name.
8784 (windows_pid_to_exec_file): Replace call to get_module_name
8785 by call to windows_get_exec_module_filename.
8786
8787 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8788
8789 * windows-nat.c (handle_load_dll): Rewrite this function's
8790 introductory comment. Remove code using get_module_name
8791 to get the DLL's name.
8792
8793 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8794
8795 * windows-nat.c (get_windows_debug_event): Ignore
8796 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8797 if windows_initialization_done == 0.
8798 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8799 Adjust implementation to always load all DLLs.
8800 (do_initial_windows_stuff): Replace call to
8801 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8802
8803 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8804
8805 * windows-nat.c (_initialize_windows_nat): Deprecate the
8806 "dll-symbols" command. Turn the "add-shared-symbol-files"
8807 and "assf" aliases into commands, and deprecate them as well.
8808 * NEWS: Add entry explaining that "dll-symbols" and its two
8809 aliases are now deprecated.
8810
8811 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8812
8813 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8814 new-line in debug string. Remove trailing spaces.
8815
8816 2014-02-19 Stan Shebs <stan@codesourcery.com>
8817
8818 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8819
8820 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8821
8822 * NEWS: Add entry for the new feature
8823 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8824 and class values.
8825
8826 2014-02-19 Stan Shebs <stan@codesourcery.com>
8827
8828 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8829
8830 2014-02-19 Pedro Alves <palves@redhat.com>
8831
8832 * common/ptid.h (struct ptid): Mention that process_stratum
8833 targets should prefer ptid.lwp.
8834
8835 2014-02-19 Pedro Alves <palves@redhat.com>
8836
8837 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8838 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8839 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8840 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8841 store remote thread ids rather than ptid.tid.
8842 (_initialize_remote): Adjust.
8843
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8845
8846 * target.c (target_get_unwinder): Rewrite.
8847 (target_get_tailcall_unwinder): Rewrite.
8848 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8849 (record_btrace_to_get_tailcall_unwinder): New function.
8850 (init_record_btrace_ops): Update.
8851 * target.h (struct target_ops) <to_get_unwinder,
8852 to_get_tailcall_unwinder>: Now function pointers. Use
8853 TARGET_DEFAULT_RETURN.
8854
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8858 argument.
8859 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8860
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8862
8863 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8864 directly.
8865 * target-delegates.c: Rebuild.
8866 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8867 TARGET_DEFAULT_FUNC.
8868 * target.c (default_target_decr_pc_after_break): Rename from
8869 forward_target_decr_pc_after_break. Simplify.
8870 (target_decr_pc_after_break): Rely on delegation.
8871
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target.c (update_current_target): Do not INHERIT to_doc or
8875 to_magic. Do not de_fault to_open or to_close.
8876
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8878
8879 * gcore.h (objfile_find_memory_regions): Declare.
8880 * gcore.c (objfile_find_memory_regions): No longer static. Add
8881 "self" argument.
8882 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8883 * exec.c: Include gcore.h.
8884 (exec_set_find_memory_regions): Remove.
8885 (exec_find_memory_regions): Remove.
8886 (exec_do_find_memory_regions): Remove.
8887 (init_exec_ops): Update.
8888 * defs.h (exec_set_find_memory_regions): Remove.
8889
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * target-delegates.c: Rebuild.
8893 * target.h (struct target_ops) <to_extra_thread_info,
8894 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8895 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8896 not 0, in TARGET_DEFAULT_RETURN.
8897
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target.c (complete_target_initialization): Remove casts. Use
8901 return_zero_has_execution.
8902 (return_zero): Add "ignore" argument.
8903 (return_zero_has_execution): New function.
8904 (init_dummy_target): Remove casts. Use
8905 return_zero_has_execution.
8906
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target.c (update_current_target): Update comments. Do not
8910 INHERIT to_stratum.
8911
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8915 needed.
8916 * corelow.c (core_read_description): Delegate when needed.
8917 * remote.c (remote_read_description): Delegate when needed.
8918 * target-delegates.c: Rebuild.
8919 * target.c (target_read_description): Rewrite.
8920 * target.h (struct target_ops) <to_read_description>: Update
8921 comment. Use TARGET_DEFAULT_RETURN.
8922
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8924
8925 * target-delegates.c: Rebuild.
8926 * target.c (update_current_target): Don't inherit or default
8927 to_can_run.
8928 (find_default_run_target): Check against delegate_can_run.
8929 * target.h (struct target_ops) <to_can_run>: Use
8930 TARGET_DEFAULT_RETURN.
8931
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target-delegates.c: Rebuild.
8935 * target.c (target_disconnect): Unconditionally delegate.
8936 * target.h (struct target_ops) <to_disconnect>: Use
8937 TARGET_DEFAULT_NORETURN.
8938
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * record.c (record_stop): Unconditionally delegate.
8942 * target-delegates.c: Rebuild.
8943 * target.c (target_stop_recording): Unconditionally delegate.
8944 * target.h (struct target_ops) <to_stop_recording>: Use
8945 TARGET_DEFAULT_IGNORE.
8946
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target-delegates.c: Rebuild.
8950 * target.c (target_enable_btrace): Unconditionally delegate.
8951 * target.h (struct target_ops) <to_enable_btrace>: Use
8952 TARGET_DEFAULT_NORETURN.
8953
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target-delegates.c: Rebuild.
8957 * target.c (target_read_btrace): Unconditionally delegate.
8958 * target.h (struct target_ops) <to_read_btrace>: Use
8959 TARGET_DEFAULT_NORETURN.
8960
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8962
8963 * target-delegates.c: Rebuild.
8964 * target.c (target_teardown_btrace): Unconditionally delegate.
8965 * target.h (struct target_ops) <to_teardown_btrace>: Use
8966 TARGET_DEFAULT_NORETURN.
8967
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8969
8970 * target-delegates.c: Rebuild.
8971 * target.c (target_disable_btrace): Unconditionally delegate.
8972 * target.h (struct target_ops) <to_disable_btrace>: Use
8973 TARGET_DEFAULT_NORETURN.
8974
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8976
8977 * target-delegates.c: Rebuild.
8978 * target.c (default_search_memory): New function.
8979 (simple_search_memory): Update comment.
8980 (target_search_memory): Unconditionally delegate.
8981 * target.h (struct target_ops) <to_search_memory>: Use
8982 TARGET_DEFAULT_FUNC.
8983
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * auxv.c (default_auxv_parse): No longer static.
8987 (target_auxv_parse): Unconditionally delegate.
8988 * auxv.h (default_auxv_parse): Declare.
8989 * target-delegates.c: Rebuild.
8990 * target.c: Include auxv.h.
8991 * target.h (struct target_ops) <to_auxv_parse>: Use
8992 TARGET_DEFAULT_FUNC.
8993
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target-delegates.c: Rebuild.
8997 * target.c (target_memory_map): Unconditionally delegate.
8998 * target.h (struct target_ops) <to_memory_map>: Use
8999 TARGET_DEFAULT_RETURN.
9000
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9002
9003 * target-delegates.c: Rebuild.
9004 * target.c (target_thread_alive): Unconditionally delegate.
9005 * target.h (struct target_ops) <to_thread_alive>: Use
9006 TARGET_DEFAULT_RETURN.
9007
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * target-delegates.c: Rebuild.
9011 * target.c (target_save_record): Unconditionally delegate.
9012 * target.h (struct target_ops) <to_save_record>: Use
9013 TARGET_DEFAULT_NORETURN.
9014
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target-delegates.c: Rebuild.
9018 * target.c (target_delete_record): Unconditionally delegate.
9019 * target.h (struct target_ops) <to_delete_record>: Use
9020 TARGET_DEFAULT_NORETURN.
9021
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target-delegates.c: Rebuild.
9025 * target.c (target_record_is_replaying): Unconditionally
9026 delegate.
9027 * target.h (struct target_ops) <to_record_is_replaying>: Use
9028 TARGET_DEFAULT_RETURN.
9029
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target-delegates.c: Rebuild.
9033 * target.c (target_goto_record_begin): Unconditionally delegate.
9034 * target.h (struct target_ops) <to_goto_record_begin>: Use
9035 TARGET_DEFAULT_NORETURN.
9036
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9038
9039 * target-delegates.c: Rebuild.
9040 * target.c (target_goto_record_end): Unconditionally delegate.
9041 * target.h (struct target_ops) <to_goto_record_end>: Use
9042 TARGET_DEFAULT_NORETURN.
9043
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9045
9046 * target-delegates.c: Rebuild.
9047 * target.c (target_goto_record): Unconditionally delegate.
9048 * target.h (struct target_ops) <to_goto_record>: Use
9049 TARGET_DEFAULT_NORETURN.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target-delegates.c: Rebuild.
9054 * target.c (target_insn_history): Unconditionally delegate.
9055 * target.h (struct target_ops) <to_insn_history>: Use
9056 TARGET_DEFAULT_NORETURN.
9057
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9059
9060 * target-delegates.c: Rebuild.
9061 * target.c (target_insn_history_from): Unconditionally delegate.
9062 * target.h (struct target_ops) <to_insn_history_from>: Use
9063 TARGET_DEFAULT_NORETURN.
9064
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target-delegates.c: Rebuild.
9068 * target.c (target_insn_history_range): Unconditionally delegate.
9069 * target.h (struct target_ops) <to_insn_history_range>: Use
9070 TARGET_DEFAULT_NORETURN.
9071
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target-delegates.c: Rebuild.
9075 * target.c (target_call_history): Unconditionally delegate.
9076 * target.h (struct target_ops) <to_call_history>: Use
9077 TARGET_DEFAULT_NORETURN.
9078
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9080
9081 * target-delegates.c: Rebuild.
9082 * target.c (target_call_history_from): Unconditionally delegate.
9083 * target.h (struct target_ops) <to_call_history_from>: Use
9084 TARGET_DEFAULT_NORETURN.
9085
9086 2014-02-19 Tom Tromey <tromey@redhat.com>
9087
9088 * target-delegates.c: Rebuild.
9089 * target.c (target_call_history_range): Unconditionally delegate.
9090 * target.h (struct target_ops) <to_call_history_range>: Use
9091 TARGET_DEFAULT_NORETURN.
9092
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * target-delegates.c: Rebuild.
9096 * target.c (target_verify_memory): Unconditionally delegate.
9097 * target.h (struct target_ops) <to_verify_memory>: Use
9098 TARGET_DEFAULT_NORETURN.
9099
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9101
9102 * target-delegates.c: Rebuild.
9103 * target.c (target_core_of_thread): Unconditionally delegate.
9104 * target.h (struct target_ops) <to_core_of_thread>: Use
9105 TARGET_DEFAULT_RETURN.
9106
9107 2014-02-19 Tom Tromey <tromey@redhat.com>
9108
9109 * target-delegates.c: Rebuild.
9110 * target.c (target_flash_done): Unconditionally delegate.
9111 * target.h (struct target_ops) <to_flash_done>: Use
9112 TARGET_DEFAULT_NORETURN.
9113
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target-delegates.c: Rebuild.
9117 * target.c (target_flash_erase): Unconditionally delegate.
9118 * target.h (struct target_ops) <to_flash_erase>: Use
9119 TARGET_DEFAULT_NORETURN.
9120
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target-delegates.c: Rebuild.
9124 * target.c (target_get_section_table): Unconditionally delegate.
9125 * target.h (struct target_ops) <to_get_section_table>: Use
9126 TARGET_DEFAULT_RETURN.
9127
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target-delegates.c: Rebuild.
9131 * target.c (target_pid_to_str): Unconditionally delegate.
9132 (init_dummy_target): Don't initialize to_pid_to_str.
9133 (default_pid_to_str): Rename from dummy_pid_to_str.
9134 * target.h (struct target_ops) <to_pid_to_str>: Use
9135 TARGET_DEFAULT_FUNC.
9136
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9138
9139 * target-delegates.c: Rebuild.
9140 * target.c (target_find_new_threads): Unconditionally delegate.
9141 * target.h (struct target_ops) <to_find_new_threads>: Use
9142 TARGET_DEFAULT_RETURN.
9143
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * target-delegates.c: Rebuild.
9147 * target.c (target_program_signals): Unconditionally delegate.
9148 * target.h (struct target_ops) <to_program_signals>: Use
9149 TARGET_DEFAULT_IGNORE.
9150
9151 2014-02-19 Tom Tromey <tromey@redhat.com>
9152
9153 * target-delegates.c: Rebuild.
9154 * target.c (target_pass_signals): Unconditionally delegate.
9155 * target.h (struct target_ops) <to_pass_signals>: Use
9156 TARGET_DEFAULT_IGNORE.
9157
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * target-delegates.c: Rebuild.
9161 * target.c (default_mourn_inferior): New function.
9162 (target_mourn_inferior): Unconditionally delegate.
9163 * target.h (struct target_ops) <to_mourn_inferior>: Use
9164 TARGET_DEFAULT_FUNC.
9165
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * target-delegates.c: Rebuild.
9169 * target.c (default_follow_fork): New function.
9170 (target_follow_fork): Unconditionally delegate.
9171 * target.h (struct target_ops) <to_follow_fork>: Use
9172 TARGET_DEFAULT_FUNC.
9173
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9175
9176 * target-delegates.c: Rebuild.
9177 * target.c (target_kill): Unconditionally delegate.
9178 * target.h (struct target_ops) <to_kill>: Use
9179 TARGET_DEFAULT_NORETURN.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target-delegates.c: Rebuild.
9184 * target.c (target_masked_watch_num_registers): Unconditionally
9185 delegate.
9186 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9187 Use TARGET_DEFAULT_RETURN.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target-delegates.c: Rebuild.
9192 * target.c (target_remove_mask_watchpoint): Unconditionally
9193 delegate.
9194 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9195 TARGET_DEFAULT_RETURN.
9196
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (target_insert_mask_watchpoint): Unconditionally
9201 delegate.
9202 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9203 TARGET_DEFAULT_RETURN.
9204
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (target_ranged_break_num_registers): Unconditionally
9209 delegate.
9210 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9211 Use TARGET_DEFAULT_RETURN.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target-delegates.c: Rebuild.
9216 * target.c (target_fetch_registers): Unconditionally delegate.
9217 * target.h (struct target_ops) <to_fetch_registers>: Use
9218 TARGET_DEFAULT_NORETURN.
9219
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * target-delegates.c: Rebuild.
9223 * target.c (update_current_target): Don't inherit or default
9224 to_stop.
9225 * target.h (struct target_ops) <to_stop>: Use
9226 TARGET_DEFAULT_IGNORE.
9227
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target-delegates.c: Rebuild.
9231 * target.c (update_current_target): Don't inherit or default
9232 to_can_run_breakpoint_commands.
9233 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9234 Use TARGET_DEFAULT_RETURN.
9235
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target-delegates.c: Rebuild.
9239 * target.c (update_current_target): Don't inherit or default
9240 to_supports_evaluation_of_breakpoint_conditions.
9241 * target.h (struct target_ops)
9242 <to_supports_evaluation_of_breakpoint_conditions>: Use
9243 TARGET_DEFAULT_RETURN.
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_augmented_libraries_svr4_read.
9250 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9251 Use TARGET_DEFAULT_RETURN.
9252
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target-delegates.c: Rebuild.
9256 * target.c (update_current_target): Don't inherit or default
9257 to_can_use_agent.
9258 * target.h (struct target_ops) <to_can_use_agent>: Use
9259 TARGET_DEFAULT_RETURN.
9260
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target-delegates.c: Rebuild.
9264 * target.c (update_current_target): Don't inherit or default
9265 to_use_agent.
9266 * target.h (struct target_ops) <to_use_agent>: Use
9267 TARGET_DEFAULT_NORETURN.
9268
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target-delegates.c: Rebuild.
9272 * target.c (update_current_target): Don't inherit or default
9273 to_traceframe_info.
9274 (return_null): Remove.
9275 * target.h (struct target_ops) <to_traceframe_info>: Use
9276 TARGET_DEFAULT_RETURN.
9277
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target-delegates.c: Rebuild.
9281 * target.c (update_current_target): Don't inherit or default
9282 to_static_tracepoint_markers_by_strid.
9283 * target.h (struct target_ops)
9284 <to_static_tracepoint_markers_by_strid>: Use
9285 TARGET_DEFAULT_NORETURN.
9286
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target-delegates.c: Rebuild.
9290 * target.c (update_current_target): Don't inherit or default
9291 to_static_tracepoint_marker_at.
9292 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9293 Use TARGET_DEFAULT_RETURN.
9294
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target-delegates.c: Rebuild.
9298 * target.c (update_current_target): Don't inherit or default
9299 to_set_permissions.
9300 * target.h (struct target_ops) <to_set_permissions>: Use
9301 TARGET_DEFAULT_IGNORE.
9302
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target-delegates.c: Rebuild.
9306 * target.c (update_current_target): Don't inherit or default
9307 to_get_tib_address.
9308 * target.h (struct target_ops) <to_get_tib_address>: Use
9309 TARGET_DEFAULT_NORETURN.
9310
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target-delegates.c: Rebuild.
9314 * target.c (update_current_target): Don't inherit or default
9315 to_set_trace_notes.
9316 * target.h (struct target_ops) <to_set_trace_notes>: Use
9317 TARGET_DEFAULT_RETURN.
9318
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target-delegates.c: Rebuild.
9322 * target.c (update_current_target): Don't initialize
9323 to_set_trace_buffer_size.
9324 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9325 TARGET_DEFAULT_IGNORE.
9326
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9328
9329 * target-delegates.c: Rebuild.
9330 * target.c (update_current_target): Don't inherit or default
9331 to_set_circular_trace_buffer.
9332 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9333 TARGET_DEFAULT_IGNORE.
9334
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target-delegates.c: Rebuild.
9338 * target.c (update_current_target): Don't inherit or default
9339 to_set_disconnected_tracing.
9340 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9341 TARGET_DEFAULT_IGNORE.
9342
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target-delegates.c: Rebuild.
9346 * target.c (update_current_target): Don't inherit or default
9347 to_get_min_fast_tracepoint_insn_len.
9348 (return_minus_one): Remove.
9349 * target.h (struct target_ops)
9350 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9351
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target-delegates.c: Rebuild.
9355 * target.c (update_current_target): Don't inherit or default
9356 to_get_raw_trace_data.
9357 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9358 TARGET_DEFAULT_NORETURN.
9359
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target-delegates.c: Rebuild.
9363 * target.c (update_current_target): Don't inherit or default
9364 to_upload_trace_state_variables.
9365 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9366 Use TARGET_DEFAULT_RETURN.
9367
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target-delegates.c: Rebuild.
9371 * target.c (update_current_target): Don't inherit or default
9372 to_upload_tracepoints.
9373 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9374 TARGET_DEFAULT_RETURN.
9375
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target-delegates.c: Rebuild.
9379 * target.c (update_current_target): Don't inherit or default
9380 to_save_trace_data.
9381 * target.h (struct target_ops) <to_save_trace_data>: Use
9382 TARGET_DEFAULT_NORETURN.
9383
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9385
9386 * target-delegates.c: Rebuild.
9387 * target.c (update_current_target): Don't inherit or default
9388 to_get_trace_state_variable_value.
9389 * target.h (struct target_ops)
9390 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9391
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9393
9394 * target-delegates.c: Rebuild.
9395 * target.c (update_current_target): Don't inherit or default
9396 to_trace_find.
9397 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9398
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target-delegates.c: Rebuild.
9402 * target.c (update_current_target): Don't inherit or default
9403 to_trace_stop.
9404 * target.h (struct target_ops) <to_trace_stop>: Use
9405 TARGET_DEFAULT_NORETURN.
9406
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target-delegates.c: Rebuild.
9410 * target.c (update_current_target): Don't inherit or default
9411 to_get_tracepoint_status.
9412 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9413 TARGET_DEFAULT_NORETURN.
9414
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target-delegates.c: Rebuild.
9418 * target.c (update_current_target): Don't inherit or default
9419 to_get_trace_status.
9420 * target.h (struct target_ops) <to_get_trace_status>: Use
9421 TARGET_DEFAULT_RETURN.
9422
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target-delegates.c: Rebuild.
9426 * target.c (update_current_target): Don't inherit or default
9427 to_trace_start.
9428 * target.h (struct target_ops) <to_trace_start>: Use
9429 TARGET_DEFAULT_NORETURN.
9430
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target-delegates.c: Rebuild.
9434 * target.c (update_current_target): Don't inherit or default
9435 to_trace_set_readonly_regions.
9436 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9437 Use TARGET_DEFAULT_NORETURN.
9438
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * target-delegates.c: Rebuild.
9442 * target.c (update_current_target): Don't inherit or default
9443 to_disable_tracepoint.
9444 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9445 TARGET_DEFAULT_NORETURN.
9446
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target-delegates.c: Rebuild.
9450 * target.c (update_current_target): Don't inherit or default
9451 to_enable_tracepoint.
9452 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9453 TARGET_DEFAULT_NORETURN.
9454
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target-delegates.c: Rebuild.
9458 * target.c (update_current_target): Don't inherit or default
9459 to_download_trace_state_variable.
9460 * target.h (struct target_ops) <to_download_trace_state_variable>:
9461 Use TARGET_DEFAULT_NORETURN.
9462
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target-delegates.c: Rebuild.
9466 * target.c (update_current_target): Don't inherit or default
9467 to_can_download_tracepoint.
9468 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9469 TARGET_DEFAULT_RETURN.
9470
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target-delegates.c: Rebuild.
9474 * target.c (update_current_target): Don't inherit or default
9475 to_download_tracepoint.
9476 * target.h (struct target_ops) <to_download_tracepoint>: Use
9477 TARGET_DEFAULT_NORETURN.
9478
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target-delegates.c: Rebuild.
9482 * target.c (update_current_target): Don't inherit or default
9483 to_trace_init.
9484 * target.h (struct target_ops) <to_trace_init>: Use
9485 TARGET_DEFAULT_RETURN.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target-delegates.c: Rebuild.
9490 * target.c (update_current_target): Don't inherit or default
9491 to_supports_string_tracing.
9492 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9493 TARGET_DEFAULT_RETURN.
9494
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target-delegates.c: Rebuild.
9498 * target.c (update_current_target): Don't inherit or default
9499 to_supports_enable_disable_tracepoint.
9500 * target.h (struct target_ops)
9501 <to_supports_enable_disable_tracepoint>: Use
9502 TARGET_DEFAULT_RETURN.
9503
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9505
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9508 to_supports_multi_process.
9509 * target.h (struct target_ops) <to_supports_multi_process>: Use
9510 TARGET_DEFAULT_RETURN.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_get_ada_task_ptid.
9517 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9518 TARGET_DEFAULT_FUNC.
9519
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target-delegates.c: Rebuild.
9523 * target.c (update_current_target): Don't inherit or default
9524 to_thread_architecture.
9525 * target.h (struct target_ops) <to_thread_architecture>: Use
9526 TARGET_DEFAULT_FUNC.
9527
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9532 to_execution_direction.
9533 * target.h (struct target_ops) <to_execution_direction>: Use
9534 TARGET_DEFAULT_FUNC.
9535
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9537
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_can_execute_reverse.
9541 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9542 TARGET_DEFAULT_RETURN.
9543 (target_can_execute_reverse): Unconditionally delegate.
9544
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target-delegates.c: Rebuild.
9548 * target.c (update_current_target): Don't inherit or default
9549 to_goto_bookmark.
9550 (dummy_goto_bookmark): Remove.
9551 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9552 * target.h (struct target_ops) <to_goto_bookmark>: Use
9553 TARGET_DEFAULT_NORETURN.
9554
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9556
9557 * target-delegates.c: Rebuild.
9558 * target.c (update_current_target): Don't inherit or default
9559 to_get_bookmark.
9560 (dummy_get_bookmark): Remove.
9561 (init_dummy_target): Don't inherit or default to_get_bookmark.
9562 * target.h (struct target_ops) <to_get_bookmark>: Use
9563 TARGET_DEFAULT_NORETURN
9564
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9566
9567 * target-delegates.c: Rebuild.
9568 * target.c (update_current_target): Don't inherit or default
9569 to_make_corefile_notes.
9570 (init_dummy_target): Don't initialize to_make_corefile_notes.
9571 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9572 TARGET_DEFAULT_FUNC.
9573
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * target-delegates.c: Rebuild.
9577 * target.c (update_current_target): Don't inherit or default
9578 to_find_memory_regions.
9579 (init_dummy_target): Don't initialize to_find_memory_regions.
9580 * target.h (struct target_ops) <to_find_memory_regions>: Use
9581 TARGET_DEFAULT_FUNC.
9582
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * target-delegates.c: Rebuild.
9586 * target.c (update_current_target): Don't inherit or default
9587 to_log_command.
9588 * target.h (struct target_ops) <to_log_command>: Use
9589 TARGET_DEFAULT_IGNORE.
9590 (target_log_command): Unconditionally delegate.
9591
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target-delegates.c: Rebuild.
9595 * target.c (update_current_target): Don't inherit or default
9596 to_pid_to_exec_file.
9597 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9598 TARGET_DEFAULT_RETURN.
9599
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target-delegates.c: Rebuild.
9603 * target.c (update_current_target): Don't inherit or default
9604 to_thread_name.
9605 (target_thread_name): Unconditionally delegate.
9606 * target.h (struct target_ops) <to_thread_name>: Use
9607 TARGET_DEFAULT_RETURN.
9608
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9610
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't inherit or default
9613 to_extra_thread_info.
9614 * target.h (struct target_ops) <to_extra_thread_info>: Use
9615 TARGET_DEFAULT_RETURN.
9616
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9621 to_has_exited.
9622 * target.h (struct target_ops) <to_has_exited>: Use
9623 TARGET_DEFAULT_RETURN..
9624
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * target-delegates.c: Rebuild.
9628 * target.c (update_current_target): Don't inherit or default
9629 to_set_syscall_catchpoint.
9630 (return_one): Remove.
9631 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9632 TARGET_DEFAULT_RETURN.
9633
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target-delegates.c: Rebuild.
9637 * target.c (update_current_target): Don't inherit or default
9638 to_insert_exec_catchpoint.
9639 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9640 TARGET_DEFAULT_RETURN.
9641
9642 2014-01-08 Tom Tromey <tromey@redhat.com>
9643
9644 * target-delegates.c: Rebuild.
9645 * target.c (update_current_target): Don't inherit or default
9646 to_insert_exec_catchpoint.
9647 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9648 TARGET_DEFAULT_RETURN.
9649
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9651
9652 * target-delegates.c: Rebuild.
9653 * target.c (update_current_target): Don't inherit or default
9654 to_remove_vfork_catchpoint.
9655 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9656 TARGET_DEFAULT_RETURN.
9657
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9659
9660 * target-delegates.c: Rebuild.
9661 * target.c (update_current_target): Don't inherit or default
9662 to_insert_vfork_catchpoint.
9663 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9664 TARGET_DEFAULT_RETURN.
9665
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9667
9668 * target-delegates.c: Rebuild.
9669 * target.c (update_current_target): Don't inherit or default
9670 to_remove_fork_catchpoint.
9671 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9672 TARGET_DEFAULT_RETURN.
9673
9674 2014-02-19 Tom Tromey <tromey@redhat.com>
9675
9676 * target-delegates.c: Rebuild.
9677 * target.c (update_current_target): Don't inherit or default
9678 to_insert_fork_catchpoint.
9679 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9680 TARGET_DEFAULT_RETURN.
9681
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9683
9684 * target-delegates.c: Rebuild.
9685 * target.c (update_current_target): Don't inherit or default
9686 to_post_startup_inferior.
9687 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9688 TARGET_DEFAULT_IGNORE.
9689
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target-delegates.c: Rebuild.
9693 * target.c (update_current_target): Don't inherit or default
9694 to_load.
9695 * target.h (struct target_ops) <to_load>: Use
9696 TARGET_DEFAULT_NORETURN.
9697
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9699
9700 * target-delegates.c: Rebuild.
9701 * target.c (update_current_target): Don't inherit or default
9702 to_terminal_info.
9703 * target.h (struct target_ops) <to_terminal_info>: Use
9704 TARGET_DEFAULT_FUNC.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target-delegates.c: Rebuild.
9709 * target.c (update_current_target): Don't inherit or default
9710 to_terminal_save_ours.
9711 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9712 TARGET_DEFAULT_IGNORE.
9713
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * target-delegates.c: Rebuild.
9717 * target.c (update_current_target): Don't inherit or default
9718 to_terminal_ours.
9719 * target.h (struct target_ops) <to_terminal_ours>: Use
9720 TARGET_DEFAULT_IGNORE.
9721
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9723
9724 * target-delegates.c: Rebuild.
9725 * target.c (update_current_target): Don't inherit or default
9726 to_terminal_ours_for_output.
9727 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9728 TARGET_DEFAULT_IGNORE.
9729
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9731
9732 * target-delegates.c: Rebuild.
9733 * target.c (update_current_target): Don't inherit or default
9734 to_terminal_inferior.
9735 * target.h (struct target_ops) <to_terminal_inferior>: Use
9736 TARGET_DEFAULT_IGNORE.
9737
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target-delegates.c: Rebuild.
9741 * target.c (update_current_target): Don't inherit or default
9742 to_terminal_init.
9743 * target.h (struct target_ops) <to_terminal_init>: Use
9744 TARGET_DEFAULT_IGNORE.
9745
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9747
9748 * target-delegates.c: Rebuild.
9749 * target.c (update_current_target): Don't inherit or default
9750 to_can_accel_watchpoint_condition.
9751 * target.h (struct target_ops)
9752 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9753
9754 2014-02-19 Tom Tromey <tromey@redhat.com>
9755
9756 * target-delegates.c: Rebuild.
9757 * target.c (update_current_target): Don't inherit or default
9758 to_region_ok_for_hw_watchpoint.
9759 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9760 Use TARGET_DEFAULT_FUNC.
9761
9762 2014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target-delegates.c: Rebuild.
9765 * target.c (update_current_target): Don't inherit or default
9766 to_watchpoint_addr_within_range.
9767 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9768 Use TARGET_DEFAULT_FUNC.
9769
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target-delegates.c: Rebuild.
9773 * target.c (update_current_target): Don't inherit or default
9774 to_remove_watchpoint.
9775 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9776 TARGET_DEFAULT_NORETURN.
9777
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9779
9780 * target-delegates.c: Rebuild.
9781 * target.c (update_current_target): Don't inherit or default
9782 to_insert_watchpoint.
9783 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9784 TARGET_DEFAULT_RETURN.
9785
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target-delegates.c: Rebuild.
9789 * target.c (update_current_target): Don't inherit or default
9790 to_remove_hw_breakpoint.
9791 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9792 TARGET_DEFAULT_RETURN.
9793
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (update_current_target): Don't inherit or default
9798 to_insert_hw_breakpoint.
9799 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9800 TARGET_DEFAULT_RETURN.
9801
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target-delegates.c: Rebuild.
9805 * target.c (update_current_target): Don't inherit or default
9806 to_can_use_hw_breakpoint.
9807 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9808 TARGET_DEFAULT_RETURN.
9809
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target-delegates.c: Rebuild.
9813 * target.c (update_current_target): Don't inherit or default
9814 to_files_info.
9815 * target.h (struct target_ops) <to_files_info>: Use
9816 TARGET_DEFAULT_IGNORE.
9817
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * target-delegates.c: Rebuild.
9821 * target.c (update_current_target): Don't inherit or default
9822 to_store.
9823 * target.h (struct target_ops) <to_store>: Use
9824 TARGET_DEFAULT_NORETURN.
9825
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * target-delegates.c: Rebuild.
9829 * target.c (update_current_target): Don't inherit or default
9830 to_post_attach.
9831 * target.h (struct target_ops) <to_post_attach>: Use
9832 TARGET_DEFAULT_IGNORE.
9833
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9835
9836 * target-delegates.c: Rebuild.
9837 * target.c (update_current_target): Don't inherit or default
9838 to_rcmd.
9839 (default_rcmd): New function.
9840 (do_monitor_command): Unconditionally delegate.
9841 * target.h (struct target_ops) <to_rmcd>: Use
9842 TARGET_DEFAULT_FUNC.
9843
9844 2014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target-delegates.c: Rebuild.
9847 * target.c (init_dummy_target): Don't initialize to_attach.
9848 (target_attach): Unconditionally delegate.
9849 * target.h (struct target_ops) <to_attach>: Use
9850 TARGET_DEFAULT_FUNC.
9851
9852 2014-02-19 Tom Tromey <tromey@redhat.com>
9853
9854 * target-delegates.c: Rebuild.
9855 * target.c (target_detach): Unconditionally delegate.
9856 (init_dummy_target): Don't initialize to_detach.
9857 * target.h (struct target_ops) <to_detach>: Use
9858 TARGET_DEFAULT_IGNORE.
9859
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9863 Add argument.
9864 (target_augmented_libraries_svr4_read): Add argument.
9865 * target.c (update_current_target): Update.
9866 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9867 argument.
9868
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9870
9871 * target.h (struct target_ops) <to_call_history_range>: Add
9872 argument.
9873 * target.c (target_call_history_range): Add argument.
9874 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9875 argument.
9876 (record_btrace_call_history_from): Update.
9877
9878 2014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * target.h (struct target_ops) <to_call_history_from>: Add
9881 argument.
9882 * target.c (target_call_history_from): Add argument.
9883 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9884 argument.
9885
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * target.h (struct target_ops) <to_call_history>: Add argument.
9889 * target.c (target_call_history): Add argument.
9890 * record-btrace.c (record_btrace_call_history): Add 'self'
9891 argument.
9892
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target.h (struct target_ops) <to_insn_history_range>: Add
9896 argument.
9897 * target.c (target_insn_history_range): Add argument.
9898 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9899 argument.
9900 (record_btrace_insn_history_from): Update.
9901
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target.h (struct target_ops) <to_insn_history_from>: Add
9905 argument.
9906 * target.c (target_insn_history_from): Add argument.
9907 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9908 argument.
9909
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target.h (struct target_ops) <to_insn_history>: Add argument.
9913 * target.c (target_insn_history): Add argument.
9914 * record-btrace.c (record_btrace_insn_history): Add 'self'
9915 argument.
9916
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target.h (struct target_ops) <to_goto_record>: Add argument.
9920 * target.c (target_goto_record): Add argument.
9921 * record-full.c (record_full_goto): Add 'self' argument.
9922 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9923
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9927 * target.c (target_goto_record_end): Add argument.
9928 * record-full.c (record_full_goto_end): Add 'self' argument.
9929 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9930
9931 2014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target.h (struct target_ops) <to_goto_record_begin>: Add
9934 argument.
9935 * target.c (target_goto_record_begin): Add argument.
9936 * record-full.c (record_full_goto_begin): Add 'self' argument.
9937 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9938 argument.
9939
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target.h (struct target_ops) <to_record_is_replaying>: Add
9943 argument.
9944 * target.c (target_record_is_replaying): Add argument.
9945 * record-full.c (record_full_is_replaying): Add 'self' argument.
9946 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9947 argument.
9948 (record_btrace_xfer_partial, record_btrace_store_registers)
9949 (record_btrace_prepare_to_store, record_btrace_resume)
9950 (record_btrace_wait, record_btrace_decr_pc_after_break)
9951 (record_btrace_find_new_threads, record_btrace_thread_alive):
9952 Update.
9953
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target.h (struct target_ops) <to_delete_record>: Add argument.
9957 * target.c (target_delete_record): Add argument.
9958 * record-full.c (record_full_delete): Add 'self' argument.
9959
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target.h (struct target_ops) <to_save_record>: Add argument.
9963 * target.c (target_save_record): Add argument.
9964 * record-full.c (record_full_save): Add 'self' argument.
9965 (record_full_save): Add 'self' argument.
9966
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target.h (struct target_ops) <to_info_record>: Add argument.
9970 * target.c (target_info_record): Add argument.
9971 * record.c (info_record_command): Add argument.
9972 * record-full.c (record_full_info): Add 'self' argument.
9973 * record-btrace.c (record_btrace_info): Add 'self' argument.
9974
9975 2014-02-19 Tom Tromey <tromey@redhat.com>
9976
9977 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9978 * target.c (target_stop_recording): Add argument.
9979 * record.c (record_stop): Add argument.
9980 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9981 argument.
9982
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9986 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9987 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9988 argument.
9989 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9990 (_initialize_amd64_linux_nat): Use it.
9991 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9992 (_initialize_i386_linux_nat): Use it.
9993
9994 2014-02-19 Tom Tromey <tromey@redhat.com>
9995
9996 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9997 * target.c (target_teardown_btrace): Add argument.
9998 * remote.c (remote_teardown_btrace): Add 'self' argument.
9999 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10000 argument.
10001 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10002 argument.
10003
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10007 * target.c (target_disable_btrace): Add argument.
10008 * remote.c (remote_disable_btrace): Add 'self' argument.
10009 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10010 argument.
10011 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10012 argument.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10017 * target.c (target_enable_btrace): Add argument.
10018 * remote.c (remote_enable_btrace): Add 'self' argument.
10019 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10020 argument.
10021 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10022 argument.
10023
10024 2014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10027 (target_can_use_agent): Add argument.
10028 * target.c (update_current_target): Update.
10029 * remote.c (remote_can_use_agent): Add 'self' argument.
10030 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10031
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target.h (struct target_ops) <to_use_agent>: Add argument.
10035 (target_use_agent): Add argument.
10036 * target.c (update_current_target): Update.
10037 * remote.c (remote_use_agent): Add 'self' argument.
10038 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10039
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10043 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10044 (target_traceframe_info): Add argument.
10045 * target.c (update_current_target): Update.
10046 * remote.c (remote_traceframe_info): Add 'self' argument.
10047 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10048
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target.h (target_static_tracepoint_markers_by_strid): Add
10052 argument.
10053 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10054 'self' argument.
10055 * target.c (update_current_target): Update.
10056 * remote.c (struct target_ops)
10057 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10058 * linux-nat.c (struct target_ops)
10059 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10060
10061 2014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10064 Add argument.
10065 (target_static_tracepoint_marker_at): Add argument.
10066 * target.c (update_current_target): Update.
10067 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10068 argument.
10069
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10073 (target_set_permissions): Add argument.
10074 * target.c (update_current_target): Update.
10075 * remote.c (remote_set_permissions): Add 'self' argument.
10076 (remote_start_remote): Update.
10077
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10081 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10082 (target_get_tib_address): Add argument.
10083 * target.c (update_current_target): Update.
10084 * remote.c (remote_get_tib_address): Add 'self' argument.
10085
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10089 (target_set_trace_notes): Add argument.
10090 * target.c (update_current_target): Update.
10091 * remote.c (remote_set_trace_notes): Add 'self' argument.
10092
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10094
10095 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10096 argument.
10097 (target_set_trace_buffer_size): Add argument.
10098 * target.c (update_current_target): Update.
10099 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10100
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10104 argument.
10105 (target_set_circular_trace_buffer): Add argument.
10106 * target.c (update_current_target): Update.
10107 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10108 argument.
10109
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10113 argument.
10114 (target_set_disconnected_tracing): Add argument.
10115 * target.c (update_current_target): Update.
10116 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10117
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target.h (struct target_ops)
10121 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10122 (target_get_min_fast_tracepoint_insn_len): Add argument.
10123 * target.c (update_current_target): Update.
10124 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10125 argument.
10126
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10128
10129 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10130 argument.
10131 (target_get_raw_trace_data): Add argument.
10132 * target.c (update_current_target): Update.
10133 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10134
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10138 Add argument.
10139 (target_upload_trace_state_variables): Add argument.
10140 * target.c (update_current_target): Update.
10141 * remote.c (remote_upload_trace_state_variables): Add 'self'
10142 argument.
10143 (remote_start_remote): Update.
10144
10145 2014-02-19 Tom Tromey <tromey@redhat.com>
10146
10147 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10148 argument.
10149 (target_upload_tracepoints): Add argument.
10150 * target.c (update_current_target): Update.
10151 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10152 (remote_start_remote): Update.
10153
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10155
10156 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10157 (target_save_trace_data): Add argument.
10158 * target.c (update_current_target): Update.
10159 * remote.c (remote_save_trace_data): Add 'self' argument.
10160
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10162
10163 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10164 argument.
10165 * target.h (struct target_ops)
10166 <to_get_trace_state_variable_value>: Add argument.
10167 (target_get_trace_state_variable_value): Add argument.
10168 * target.c (update_current_target): Update.
10169 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10170 argument.
10171 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10172
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10176 * target.h (struct target_ops) <to_trace_find>: Add argument.
10177 (target_trace_find): Add argument.
10178 * target.c (update_current_target): Update.
10179 * remote.c (remote_trace_find): Add 'self' argument.
10180 * ctf.c (ctf_trace_find): Add 'self' argument.
10181
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10185 (target_trace_stop): Add argument.
10186 * target.c (update_current_target): Update.
10187 * remote.c (remote_trace_stop): Add 'self' argument.
10188
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10192 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10193 argument.
10194 (target_get_tracepoint_status): Add argument.
10195 * target.c (update_current_target): Update.
10196 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10197
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10201 * target.h (struct target_ops) <to_get_trace_status>: Add
10202 argument.
10203 (target_get_trace_status): Add argument.
10204 * target.c (update_current_target): Update.
10205 * remote.c (remote_get_trace_status): Add 'self' argument.
10206 (remote_start_remote, remote_can_download_tracepoint): Update.
10207 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10208
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target.h (struct target_ops) <to_trace_start>: Add argument.
10212 (target_trace_start): Add argument.
10213 * target.c (update_current_target): Update.
10214 * remote.c (remote_trace_start): Add 'self' argument.
10215
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10219 Add argument.
10220 (target_trace_set_readonly_regions): Add argument.
10221 * target.c (update_current_target): Update.
10222 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10223 argument.
10224
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10228 argument.
10229 (target_disable_tracepoint): Add argument.
10230 * target.c (update_current_target): Update.
10231 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10232
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10236 argument.
10237 (target_enable_tracepoint): Add argument.
10238 * target.c (update_current_target): Update.
10239 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10240
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target.h (struct target_ops) <to_download_trace_state_variable>:
10244 Add argument.
10245 (target_download_trace_state_variable): Add argument.
10246 * target.c (update_current_target): Update.
10247 * remote.c (remote_download_trace_state_variable): Add 'self'
10248 argument.
10249
10250 2014-02-19 Tom Tromey <tromey@redhat.com>
10251
10252 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10253 argument.
10254 (target_can_download_tracepoint): Add argument.
10255 * target.c (update_current_target): Update.
10256 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10257
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10259
10260 * target.h (struct target_ops) <to_download_tracepoint>: Add
10261 argument.
10262 (target_download_tracepoint): Add argument.
10263 * target.c (update_current_target): Update.
10264 * remote.c (remote_download_tracepoint): Add 'self' argument.
10265
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target.h (struct target_ops) <to_trace_init>: Add argument.
10269 (target_trace_init): Add argument.
10270 * target.c (update_current_target): Update.
10271 * remote.c (remote_trace_init): Add 'self' argument.
10272
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10276 * target.c (target_fileio_readlink): Add argument.
10277 * remote.c (remote_hostio_readlink): Add 'self' argument.
10278 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10279
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10283 * target.c (target_fileio_unlink): Add argument.
10284 * remote.c (remote_hostio_unlink): Add 'self' argument.
10285 (remote_file_delete): Update.
10286 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10287
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10291 * target.c (target_fileio_close): Add argument.
10292 * remote.c (remote_hostio_close): Add 'self' argument.
10293 (remote_hostio_close_cleanup): Update.
10294 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10295 Update.
10296 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10297
10298 2014-02-19 Tom Tromey <tromey@redhat.com>
10299
10300 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10301 * target.c (target_fileio_pread): Add argument.
10302 * remote.c (remote_hostio_pread): Add 'self' argument.
10303 (remote_bfd_iovec_pread, remote_file_get): Update.
10304 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10305
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10309 * target.c (target_fileio_pwrite): Add argument.
10310 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10311 (remote_file_put): Update.
10312 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10313
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10317 * target.c (target_fileio_open): Add argument.
10318 * remote.c (remote_hostio_open): Add 'self' argument.
10319 (remote_bfd_iovec_open): Add 'self' argument.
10320 (remote_file_put): Add 'self' argument.
10321 (remote_file_get): Add 'self' argument.
10322 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10323
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10325
10326 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10327 Add argument.
10328 (target_can_run_breakpoint_commands): Add argument.
10329 * target.c (update_current_target): Update.
10330 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10331 argument.
10332 (remote_insert_breakpoint): Add 'self' argument.
10333 (remote_insert_hw_breakpoint): Add 'self' argument.
10334 (remote_can_run_breakpoint_commands): Add 'self' argument.
10335
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target.h (struct target_ops)
10339 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10340 (target_supports_evaluation_of_breakpoint_conditions): Add
10341 argument.
10342 * target.c (update_current_target): Update.
10343 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10344 argument.
10345 (remote_insert_breakpoint): Add 'self' argument.
10346 (remote_insert_hw_breakpoint): Add 'self' argument.
10347 (remote_supports_cond_breakpoints): Add 'self' argument.
10348
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10352 argument.
10353 (target_supports_string_tracing): Add argument.
10354 * target.c (update_current_target): Update.
10355 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10356
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target.h (struct target_ops)
10360 <to_supports_disable_randomization>: Add argument.
10361 * target.c (find_default_supports_disable_randomization): Add
10362 argument.
10363 (target_supports_disable_randomization): Add argument.
10364 (find_default_supports_disable_randomization): Add 'self'
10365 argument.
10366 * remote.c (extended_remote_supports_disable_randomization): Add
10367 'self' argument.
10368 (remote_supports_disable_randomization): Add 'self' argument.
10369 (extended_remote_create_inferior): Update.
10370 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10371 'self' argument.
10372
10373 2014-02-19 Tom Tromey <tromey@redhat.com>
10374
10375 * target.h (struct target_ops)
10376 <to_supports_enable_disable_tracepoint>: Add argument.
10377 (target_supports_enable_disable_tracepoint): Add argument.
10378 * target.c (update_current_target): Update.
10379 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10380 argument.
10381
10382 2014-02-19 Tom Tromey <tromey@redhat.com>
10383
10384 * target.h (struct target_ops) <to_supports_multi_process>: Add
10385 argument.
10386 (target_supports_multi_process): Add argument.
10387 * target.c (update_current_target): Update.
10388 * remote.c (remote_supports_multi_process): Add 'self' argument.
10389 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10390 argument.
10391 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10392 argument.
10393
10394 2014-02-19 Tom Tromey <tromey@redhat.com>
10395
10396 * target.h (struct target_ops) <to_execution_direction>: Add
10397 argument.
10398 (target_execution_direction): Add argument.
10399 * target.c (default_execution_direction): Add 'self' argument.
10400 * record-full.c (record_full_execution_direction): Add 'self'
10401 argument.
10402
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10406 argument.
10407 (target_can_execute_reverse): Add argument.
10408 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10409 * record-full.c (record_full_can_execute_reverse): Add 'self'
10410 argument.
10411 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10412 argument.
10413
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10417 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10418 argument.
10419 (target_get_ada_task_ptid): Add argument.
10420 * target.c (update_current_target): Update.
10421 (default_get_ada_task_ptid): Add 'self' argument.
10422 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10423 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10424 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10425 argument.
10426 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10427 argument.
10428 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10429 argument.
10430 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10431 argument.
10432 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10433 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10434 argument.
10435
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10439 (target_goto_bookmark): Add argument.
10440 * target.c (dummy_goto_bookmark): Add 'self' argument.
10441 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10442
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10446 (target_get_bookmark): Add argument.
10447 * target.c (dummy_get_bookmark): Add 'self' argument.
10448 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10449
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10453 argument.
10454 (target_make_corefile_notes): Add argument.
10455 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10456 * procfs.c (procfs_make_note_section): Add 'self' argument.
10457 (procfs_make_note_section): Add 'self' argument.
10458 (procfs_make_note_section): Add 'self' argument.
10459 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10460 argument.
10461 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10462 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10463 * exec.c (exec_make_note_section): Add 'self' argument.
10464 (exec_make_note_section): Add 'self' argument.
10465
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * target.h (struct target_ops) <to_find_memory_regions>: Add
10469 argument.
10470 (target_find_memory_regions): Add argument.
10471 * target.c (dummy_find_memory_regions): Add 'self' argument.
10472 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10473 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10474 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10475 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10476 * exec. (exec_do_find_memory_regions): New global.
10477 (exec_set_find_memory_regions): Rewrite.
10478 (exec_find_memory_regions): New function.
10479 (init_exec_ops): Use exec_find_memory_regions.
10480
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target.h (struct target_ops) <to_supports_non_stop>: Add
10484 argument.
10485 * target.c (find_default_supports_non_stop): Add argument.
10486 (target_supports_non_stop): Add argument.
10487 (find_default_supports_non_stop): Add 'self' argument.
10488 * remote.c (remote_supports_non_stop): Add 'self' argument.
10489 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10490
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10492
10493 * target.h (struct target_ops) <to_log_command>: Add argument.
10494 (target_log_command): Add argument.
10495 * serial.h (serial_log_command): Add 'self' argument.
10496 * serial.c (serial_log_command): Add 'self' argument.
10497
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10501 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10502 argument.
10503 (target_pid_to_exec_file): Add argument.
10504 * target.c (debug_to_pid_to_exec_file): Add argument.
10505 (update_current_target): Update.
10506 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10507 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10508 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10509 (linux_handle_extended_wait): Update.
10510 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10511 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10512 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10513 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10514
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target.h (struct target_ops) <to_rcmd>: Add argument.
10518 (target_rcmd): Add argument.
10519 * target.c (debug_to_rcmd): Add argument.
10520 (update_current_target, do_monitor_command): Update.
10521 * remote.c (remote_rcmd): Add 'self' argument.
10522 * monitor.c (monitor_rcmd): Add 'self' argument.
10523
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10525
10526 * windows-nat.c (windows_stop): Add 'self' argument.
10527 * target.h (struct target_ops) <to_stop>: Add argument.
10528 * target.c (target_stop): Add argument.
10529 (debug_to_stop): Add argument.
10530 (update_current_target): Update.
10531 * remote.c (remote_stop): Add 'self' argument.
10532 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10533 (gdbsim_cntrl_c): Update.
10534 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10535 * procfs.c (procfs_stop): Add 'self' argument.
10536 * nto-procfs.c (procfs_stop): Add 'self' argument.
10537 * monitor.c (monitor_stop): Add 'self' argument.
10538 (monitor_open): Update.
10539 * linux-nat.c (linux_nat_stop): Add argument.
10540 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10541 * gnu-nat.c (gnu_stop): Add 'self' argument.
10542 * darwin-nat.c (darwin_stop): Add 'self' argument.
10543
10544 2014-02-19 Tom Tromey <tromey@redhat.com>
10545
10546 * target.h (struct target_ops) <to_thread_name>: Add argument.
10547 * target.c (target_thread_name): Add argument.
10548 (update_current_target): Update.
10549 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10550
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * target.h (struct target_ops) <to_extra_thread_info>: Add
10554 argument.
10555 (target_extra_thread_info): Add argument.
10556 * target.c (update_current_target): Update.
10557 * remote.c (remote_threads_extra_info): Add 'self' argument.
10558 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10559 argument.
10560 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10561 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10562 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10563 argument.
10564 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10565 argument.
10566 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10567 argument.
10568 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10569 argument.
10570
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target.h (struct target_ops) <to_program_signals>: Add argument.
10574 * target.c (target_program_signals): Add argument.
10575 * remote.c (remote_program_signals): Add 'self' argument.
10576
10577 2014-02-19 Tom Tromey <tromey@redhat.com>
10578
10579 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10580 * target.c (target_pass_signals): Add argument.
10581 * remote.c (remote_pass_signals): Add 'self' argument.
10582 (remote_start_remote): Update.
10583 * procfs.c (procfs_pass_signals): Add 'self' argument.
10584 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10585 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10586 (linux_nat_create_inferior, linux_nat_attach): Update.
10587
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * windows-nat.c (windows_can_run): Add 'self' argument.
10591 * target.h (struct target_ops) <to_can_run>: Add argument.
10592 (target_can_run): Add argument.
10593 * target.c (debug_to_can_run): Add argument.
10594 (update_current_target): Update.
10595 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10596 * inf-child.c (inf_child_can_run): Add 'self' argument.
10597 * go32-nat.c (go32_can_run): Add 'self' argument.
10598
10599 2014-02-19 Tom Tromey <tromey@redhat.com>
10600
10601 * target.h (struct target_ops) <to_has_exited>: Add argument.
10602 (target_has_exited): Add argument.
10603 * target.c (debug_to_has_exited): Add argument.
10604 (update_current_target): Update.
10605
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10607
10608 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10609 argument.
10610 (target_set_syscall_catchpoint): Add argument.
10611 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10612 argument.
10613 * target.c (update_current_target): Update.
10614
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10618 argument.
10619 (target_remove_exec_catchpoint): Add argument.
10620 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10621 (update_current_target): Update.
10622 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10623 argument.
10624
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10626
10627 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10628 argument.
10629 (target_insert_exec_catchpoint): Add argument.
10630 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10631 (update_current_target): Update.
10632 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10633 argument.
10634
10635 2014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10638 argument.
10639 (target_remove_vfork_catchpoint): Add argument.
10640 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10641 (update_current_target): Update.
10642 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10643 argument.
10644
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10646
10647 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10648 argument.
10649 (target_insert_vfork_catchpoint): Add argument.
10650 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10651 (update_current_target): Update.
10652 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10653 argument.
10654
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10658 argument.
10659 (target_remove_fork_catchpoint): Add argument.
10660 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10661 (update_current_target): Update.
10662 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10663 argument.
10664
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10666
10667 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10668 argument.
10669 (target_insert_fork_catchpoint): Add argument.
10670 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10671 (update_current_target): Update.
10672 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10673 argument.
10674
10675 2014-02-19 Tom Tromey <tromey@redhat.com>
10676
10677 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10678 argument.
10679 (target_post_startup_inferior): Add argument.
10680 * target.c (debug_to_post_startup_inferior): Add argument.
10681 (update_current_target): Update.
10682 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10683 argument.
10684 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10685 argument.
10686 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10687 argument.
10688 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10689 argument.
10690 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10691 'self' argument.
10692 (super_post_startup_inferior): Likewise.
10693 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10694 'self' argument.
10695 (super_post_startup_inferior): Likewise.
10696 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10697 Add 'self' argument.
10698 (super_post_startup_inferior): Likewise.
10699
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target.h (struct target_ops) <to_load>: Add argument.
10703 * target.c (target_load): Add argument.
10704 (debug_to_load): Add argument.
10705 (update_current_target): Update.
10706 * remote.c (remote_load): Add 'self' argument.
10707 * remote-sim.c (gdbsim_load): Add 'self' argument.
10708 * remote-mips.c (mips_load): Add 'self' argument.
10709 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10710 * monitor.c (monitor_load): Add 'self' argument.
10711 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10712
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10714
10715 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10716 (target_terminal_info): Add argument.
10717 * target.c (debug_to_terminal_info): Add argument.
10718 (default_terminal_info): Likewise.
10719 * inflow.c (child_terminal_info): Add 'self' argument.
10720 * inferior.h (child_terminal_info): Add 'self' argument.
10721 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10722
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10724
10725 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10726 argument.
10727 (target_terminal_save_ours): Add argument.
10728 * target.c (debug_to_terminal_save_ours): Add argument.
10729 (update_current_target): Update.
10730 * inflow.c (terminal_save_ours): Add 'self' argument.
10731 * inferior.h (terminal_save_ours): Add 'self' argument.
10732
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10736 (target_terminal_ours): Add argument.
10737 * target.c (debug_to_terminal_ours): Add argument.
10738 (update_current_target): Update.
10739 * remote.c (remote_terminal_ours): Add 'self' argument.
10740 (remote_close): Update.
10741 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10742 * inflow.c (terminal_ours): Add 'self' argument.
10743 * inferior.h (terminal_ours): Add 'self' argument.
10744 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10745
10746 2014-02-19 Pedro Alves <palves@redhat.com>
10747 Tom Tromey <tromey@redhat.com>
10748
10749 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10750 argument.
10751 (target_terminal_ours_for_output): Add argument.
10752 * target.c (debug_to_terminal_ours_for_output): Add argument.
10753 (update_current_target): Update.
10754 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10755 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10756 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10757
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target.h (struct target_ops) <to_terminal_inferior>: Add
10761 argument.
10762 * target.c (target_terminal_inferior): Add argument.
10763 (update_current_target): Update.
10764 * remote.c (remote_terminal_inferior): Add 'self' argument.
10765 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10766 * inflow.c (terminal_inferior): Add 'self' argument.
10767 * inferior.h (terminal_inferior): Add 'self' argument.
10768 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10769 (go32_terminal_inferior): Add 'self' argument.
10770
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10774 (target_terminal_init): Add argument.
10775 * target.c (debug_to_terminal_init): Add argument.
10776 (update_current_target): Update.
10777 * inflow.c (terminal_init_inferior): Add 'self' argument.
10778 * inferior.h (terminal_init_inferior): Add 'self' argument.
10779 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10780 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10781
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10783
10784 * target.h (struct target_ops)
10785 <to_can_accel_watchpoint_condition>: Add argument.
10786 (target_can_accel_watchpoint_condition): Add argument.
10787 * target.c (debug_to_can_accel_watchpoint_condition): Add
10788 argument.
10789 (update_current_target): Update.
10790 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10791 'self' argument.
10792
10793 2014-02-19 Tom Tromey <tromey@redhat.com>
10794
10795 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10796 Add argument.
10797 (target_region_ok_for_hw_watchpoint): Add argument.
10798 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10799 (default_region_ok_for_hw_watchpoint): Add argument.
10800 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10801 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10802 argument.
10803 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10804 argument.
10805 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10806 argument.
10807 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10808 'self' argument.
10809 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10810 'self' argument.
10811 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10812 'self' argument.
10813 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10814 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10815 'self' argument.
10816 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10817 Add 'self' argument.
10818
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10822 argument.
10823 (target_insert_watchpoint): Add argument.
10824 * target.c (debug_to_insert_watchpoint): Add argument.
10825 (update_current_target): Update.
10826 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10827 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10828 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10829 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10830 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10831 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10832 argument.
10833 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10834 (procfs_insert_hw_watchpoint): Add 'self' argument.
10835 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10836 argument.
10837 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10838 argument.
10839 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10840 argument.
10841 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10842 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10843 argument.
10844 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10845 'self' argument.
10846
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10850 argument.
10851 (target_remove_watchpoint): Add argument.
10852 * target.c (debug_to_remove_watchpoint): Add argument.
10853 (update_current_target): Update.
10854 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10855 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10856 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10857 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10858 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10859 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10860 argument.
10861 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10862 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10863 argument.
10864 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10865 argument.
10866 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10867 argument.
10868 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10869 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10870 argument.
10871 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10872 'self' argument.
10873
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10877 argument.
10878 (target_remove_hw_breakpoint): Add argument.
10879 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10880 (update_current_target): Update.
10881 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10882 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10883 argument.
10884 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10885 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10886 argument.
10887 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10888 'self' argument.
10889
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10893 argument.
10894 (target_insert_hw_breakpoint): Add argument.
10895 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10896 (update_current_target): Update.
10897 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10898 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10899 argument.
10900 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10901 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10902 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10903 argument.
10904 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10905 'self' argument.
10906
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10910 argument.
10911 (target_can_use_hardware_watchpoint): Add argument.
10912 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10913 (update_current_target): Update.
10914 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10915 argument.
10916 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10917 argument.
10918 * remote.c (remote_check_watch_resources): Add 'self' argument.
10919 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10920 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10921 argument.
10922 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10923 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10924 argument.
10925 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10926 argument.
10927 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10928 argument.
10929 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10930 argument.
10931 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10932 argument.
10933 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10934 argument.
10935 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10936 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10937 argument.
10938 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10939 'self' argument.
10940
10941 2014-02-19 Tom Tromey <tromey@redhat.com>
10942
10943 * target.h (struct target_ops) <to_post_attach>: Add argument.
10944 (target_post_attach): Add argument.
10945 * target.c (debug_to_post_attach): Add argument.
10946 (update_current_target): Update.
10947 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10948 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10949 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10950 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10951 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10952
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10954
10955 * windows-nat.c (windows_close): Add 'self' argument.
10956 * tracepoint.c (tfile_close): Add 'self' argument.
10957 * target.h (struct target_ops) <to_close>: Add argument.
10958 * target.c (target_close): Add argument.
10959 (update_current_target): Update.
10960 * remote.c (remote_close): Add 'self' argument.
10961 * remote-sim.c (gdbsim_close): Add 'self' argument.
10962 * remote-mips.c (mips_close): Add 'self' argument.
10963 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10964 * record-full.c (record_full_close): Add 'self' argument.
10965 * record-btrace.c (record_btrace_close): Add 'self' argument.
10966 * monitor.h (monitor_close): Add 'self' argument.
10967 * monitor.c (monitor_close): Add 'self' argument.
10968 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10969 * linux-nat.c (linux_nat_close): Add argument.
10970 * go32-nat.c (go32_close): Add 'self' argument.
10971 * exec.c (exec_close_1): Add 'self' argument.
10972 * ctf.c (ctf_close): Add 'self' argument.
10973 * corelow.c (core_close): Add 'self' argument.
10974 (core_close_cleanup): Update.
10975 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10976 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10977
10978 2014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * remote.c (remote_load): New function.
10981 (init_remote_ops): Use it.
10982
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10986 argument.
10987 * common/linux-btrace.h (linux_supports_btrace): Update.
10988 * remote.c (remote_supports_btrace): Add "self" argument.
10989 * target-delegates.c: Rebuild.
10990 * target.c (target_supports_btrace): Remove.
10991 * target.h (struct target_ops) <to_supports_btrace>: Add
10992 target_ops argument.
10993 (target_supports_btrace): New define.
10994
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * record-full.c (record_full_beneath_to_resume_ops)
10998 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10999 (record_full_beneath_to_wait)
11000 (record_full_beneath_to_store_registers_ops)
11001 (record_full_beneath_to_store_registers)
11002 (record_full_beneath_to_xfer_partial_ops)
11003 (record_full_beneath_to_xfer_partial)
11004 (record_full_beneath_to_insert_breakpoint_ops)
11005 (record_full_beneath_to_insert_breakpoint)
11006 (record_full_beneath_to_remove_breakpoint_ops)
11007 (record_full_beneath_to_remove_breakpoint)
11008 (record_full_beneath_to_stopped_by_watchpoint)
11009 (record_full_beneath_to_stopped_data_address)
11010 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11011 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11012 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11013 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11014 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11015 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11016 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11017 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11018 (record_full_resume, record_full_wait_1)
11019 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11020 (record_full_store_registers, record_full_xfer_partial)
11021 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11022 (record_full_async, record_full_core_xfer_partial): Use target
11023 delegation.
11024 * target-delegates.c: Rebuild.
11025 * target.c (current_xfer_partial): Remove.
11026 (update_current_target): Do not INHERIT or de_fault
11027 to_insert_breakpoint, to_remove_breakpoint,
11028 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11029 to_is_async_p, to_async. Do not set to_xfer_partial field.
11030 (default_xfer_partial): Simplify.
11031 (current_xfer_partial): Remove.
11032 (target_wait, target_resume): Simplify.
11033 (find_default_can_async_p, find_default_is_async_p): Update.
11034 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11035 to_xfer_partial, to_stopped_by_watchpoint,
11036 to_stopped_data_address.
11037 (target_store_registers): Simplify.
11038 (forward_target_remove_breakpoint)
11039 (forward_target_insert_breakpoint): Remove.
11040 (target_remove_breakpoint, target_insert_breakpoint)
11041 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11042 * target.h (struct target_ops) <to_resume, to_wait,
11043 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11044 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11045 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11046 markup.
11047 (forward_target_remove_breakpoint)
11048 (forward_target_insert_breakpoint): Remove.
11049 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11050 directly.
11051 (record_btrace_insert_breakpoint): Delegate directly.
11052
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11054
11055 PR build/7701:
11056 * target-delegates.c: New file.
11057 * target.c: Include target-delegates.c.
11058 (init_dummy_target): Call install_dummy_methods.
11059 (complete_target_initialization): Call install_delegators.
11060 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11061 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11062 * make-target-delegates: New file.
11063
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * record.c (find_record_target): Use find_target_at.
11067 * target.c (find_target_at): New function.
11068 * target.h (find_target_at): Declare.
11069
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11073 Add 'ops' argument.
11074 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11075 'ops' argument.
11076 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11077 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11078 'ops' argument.
11079 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11080 argument.
11081 * linux-nat.c (save_sigtrap): Update.
11082 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11083 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11084 (linux_nat_close): Update.
11085 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11086 argument.
11087 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11088 argument.
11089 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11090 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11091 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11092 (tmp_to_async): Add 'ops' argument.
11093 (record_full_stopped_by_watchpoint, record_full_async)
11094 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11095 argument.
11096 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11097 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11098 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11099 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11100 (remote_is_async_p, remote_async): Add 'ops' argument.
11101 (remote_stopped_data_address): Update.
11102 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11103 * target.c (update_current_target)
11104 (find_default_can_async_p, find_default_is_async_p): Update.
11105 (init_dummy_target): Update.
11106 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11107 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11108 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11109 (target_can_async_p, target_is_async_p, target_async)
11110 (target_stopped_by_watchpoint): Update.
11111
11112 2014-02-19 Yao Qi <yao@codesourcery.com>
11113
11114 PR gdb/16220
11115 * gdbarch.sh: Remove startup_gdbarch.
11116 * gdbarch.c: Regenerated.
11117 * gdbarch.h: Likewise.
11118
11119 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11120
11121 * rl78-tdep.c (rl78_g10_register_name): New function.
11122 (rl78_return_value): Add g10 support.
11123 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11124 g10.
11125
11126 2014-02-17 Doug Evans <xdje42@gmail.com>
11127
11128 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11129 (SUBDIR_GUILE_SRCS): Ditto.
11130 (scm-gsmob.o): Ditto.
11131
11132 2014-02-17 Yao Qi <yao@codesourcery.com>
11133
11134 * gnu-nat.c (ILL_RPC): Declare defined function.
11135
11136 2014-02-17 Yao Qi <yao@codesourcery.com>
11137
11138 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11139 mach_msg_type_number_t.
11140 (gnu_write_inferior): Likewise.
11141
11142 2014-02-17 Yao Qi <yao@codesourcery.com>
11143
11144 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11145 in format string.
11146 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11147 (inf_validate_procs, inf_signal): Likewise.
11148 (S_exception_raise_request): Likewise.
11149 (do_mach_notify_dead_name): Likewise.
11150 (steal_exc_port): Likewise.
11151 (gnu_read_inferior): Change 'copy_count''s type to
11152 mach_msg_type_number_t.
11153 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11154 format string.
11155
11156 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11157
11158 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11159 flag. Adjust all users; in particular...
11160 (gnu_wait): ..., don't decrement its value in here...
11161 (gnu_create_inferior): ..., and instead set the flag in here,
11162 around the startup_inferior call, and call that one with
11163 START_INFERIOR_TRAPS_EXPECTED.
11164
11165 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11166 (ILL_RPC): ... new macro.
11167 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11168 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11169 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11170 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11171 functions with ILL_RPC macro.
11172 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11173 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11174 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11175 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11176 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11177 (S_proc_getlogin_reply, S_proc_getsid_reply)
11178 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11179 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11180 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11181 (S_proc_getnports_reply, S_proc_is_important_reply)
11182 (S_proc_get_code_reply): New stub functions, generated with
11183 ILL_RPC macro.
11184
11185 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11186 collected the type check structures.
11187
11188 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11189
11190 2014-02-14 Doug Evans <dje@google.com>
11191
11192 * target.c (target_write_partial): Fix result type.
11193
11194 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11195
11196 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11197 the proper offsets to access fpregset_t.
11198
11199 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11200
11201 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11202 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11203 * h8300-tdep.c (setmachinelist): Remove global.
11204 * hppa-tdep.c (hppa_sigtramp): Remove global.
11205 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11206 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11207 * ravenscar-thread.c (update_target_observer): Remove global.
11208 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11209
11210 2014-02-12 Tom Tromey <tromey@redhat.com>
11211
11212 * common/rsp-low.c: Update comments.
11213 * common/rsp-low.h: Update comments.
11214
11215 2014-02-12 Tom Tromey <tromey@redhat.com>
11216
11217 * common/rsp-low.c (convert_ascii_to_int): Remove.
11218 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11219
11220 2014-02-12 Tom Tromey <tromey@redhat.com>
11221
11222 * common/rsp-low.h (unhexify): Don't declare.
11223 * common/rsp-low.c (unhexify): Remove.
11224
11225 2014-02-12 Tom Tromey <tromey@redhat.com>
11226
11227 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11228 * common/rsp-low.c (convert_int_to_ascii): Remove.
11229
11230 2014-02-12 Tom Tromey <tromey@redhat.com>
11231
11232 * common/rsp-low.h (hexify): Don't declare.
11233 * common/rsp-low.c (hexify): Remove.
11234
11235 2014-02-12 Tom Tromey <tromey@redhat.com>
11236
11237 * common/rsp-low.c (hexify): Never take strlen of argument.
11238
11239 2014-02-12 Tom Tromey <tromey@redhat.com>
11240
11241 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11242 * remote.c (extended_remote_run, remote_rcmd)
11243 (remote_download_trace_state_variable, remote_save_trace_data)
11244 (remote_set_trace_notes): Update.
11245 * tracepoint.c (encode_source_string, tfile_write_status)
11246 (tfile_write_uploaded_tsv): Update.
11247
11248 2014-02-12 Tom Tromey <tromey@redhat.com>
11249
11250 * tracepoint.c: Include rsp-low.h.
11251 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11252 * remote.c: Include rsp-low.h.
11253 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11254 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11255 (remote_unescape_input): Move to common/rsp-low.c.
11256 * common/rsp-low.h: New file.
11257 * common/rsp-low.c: New file.
11258 * Makefile.in (SFILES): Add common/rsp-low.c.
11259 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11260 (COMMON_OBS): Add rsp-low.o.
11261 (rsp-low.o): New target.
11262
11263 2014-02-12 Tom Tromey <tromey@redhat.com>
11264
11265 * utils.h: Include print-utils.h.
11266 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11267 (int_string, core_addr_to_string, core_addr_to_string_nz)
11268 (hex_string, hex_string_custom): Don't declare.
11269 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11270 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11271 (hex_string_custom, int_string, core_addr_to_string)
11272 (core_addr_to_string_nz, host_address_to_string): Move to
11273 common/print-utils.c.
11274 * common/print-utils.h: New file.
11275 * common/print-utils.c: New file
11276 * Makefile.in (SFILES): Add common/print-utils.c.
11277 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11278 (COMMON_OBS): Add print-utils.o.
11279 (print-utils.o): New target.
11280
11281 2014-02-12 Tom Tromey <tromey@redhat.com>
11282
11283 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11284
11285 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11286
11287 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11288
11289 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11290
11291 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11292 if a PT_IO ptrace request returns sucessfully but indicates that 0
11293 bytes were transferred.
11294
11295 2014-02-12 Pedro Alves <palves@redhat.com>
11296 Kevin Buettner <kevinb@redhat.com>
11297
11298 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11299 TYPE_INSTANCE_FLAG_CODE_SPACE.
11300
11301 2014-02-12 Pedro Alves <palves@redhat.com>
11302
11303 * h8300-tdep.c (pseudo_from_raw_register)
11304 (raw_from_pseudo_register): New functions.
11305 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11306 them.
11307
11308 2014-02-12 Pedro Alves <palves@redhat.com>
11309
11310 * h8300-tdep.c (h8300_register_sim_regno): New function.
11311 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11312 gdbarch_register_sim_regno hook.
11313
11314 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11315
11316 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11317
11318 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11319
11320 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11321
11322 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11323
11324 * obsd-tdep.h (obsd_init_abi): New prototype.
11325 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11326 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11327 (obsd_init_abi): New functions.
11328 * i386obsd-tdep.c: Include "obsd-tdep.h".
11329 (i386obsd_init_abi): Call obsd_init_abi.
11330 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11331 (amd64obsd_init_abi): Call obsd_init_abi.
11332 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11333 obsd-tdep.c to gdb_target_obs.
11334
11335 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11336
11337 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11338 double float arguments to 16-byte in the argument slots.
11339
11340 2014-02-11 Doug Evans <xdje42@gmail.com>
11341
11342 * configure.ac: Don't crash if pkg-config is not found and guile
11343 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11344 in guile checks.
11345 * configure: Regenerate.
11346
11347 2014-02-11 Yao Qi <yao@codesourcery.com>
11348
11349 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11350 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11351 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11352 * gnu-nat.c (gnu_xfer_memory): Likewise.
11353 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11354 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11355 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11356 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11357
11358 2014-02-11 Yao Qi <yao@codesourcery.com>
11359
11360 * target.h (enum target_xfer_error): Rename to ...
11361 (enum target_xfer_status): ... it. New. All users updated.
11362 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11363 New.
11364 (TARGET_XFER_STATUS_ERROR_P): New macro.
11365 (target_xfer_error_to_string): Remove declaration.
11366 (target_xfer_status_to_string): Declare.
11367 (target_xfer_partial_ftype): Adjust it.
11368 (struct target_ops) <to_xfer_partial>: Return
11369 target_xfer_status. Add argument xfered_len. Update
11370 comments.
11371 * target.c (target_xfer_error_to_string): Rename to ...
11372 (target_xfer_status_to_string): ... it. New. All callers
11373 updated.
11374 (target_read_live_memory): Likewise. Call target_xfer_partial
11375 instead of target_read.
11376 (memory_xfer_live_readonly_partial): Return
11377 target_xfer_status. Add argument xfered_len.
11378 (raw_memory_xfer_partial): Likewise.
11379 (memory_xfer_partial_1): Likewise.
11380 (memory_xfer_partial): Likewise.
11381 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11382 properly. Update debug message.
11383 (default_xfer_partial, current_xfer_partial): Likewise.
11384 (target_write_partial): Likewise.
11385 (target_read_partial): Likewise. All callers updated.
11386 (read_whatever_is_readable): Likewise.
11387 (target_write_with_progress): Likewise.
11388 (target_read_alloc_1): Likewise.
11389
11390 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11391 * auxv.c (procfs_xfer_auxv): Likewise.
11392 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11393 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11394 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11395 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11396 * corefile.c (read_memory): Adjust.
11397 * corelow.c (core_xfer_partial): Likewise.
11398 * ctf.c (ctf_xfer_partial): Likewise.
11399 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11400 updated.
11401 (darwin_xfer_partial): Likewise.
11402 * exec.c (section_table_xfer_memory_partial): Likewise. All
11403 callers updated.
11404 (exec_xfer_partial): Likewise.
11405 * exec.h (section_table_xfer_memory_partial): Update
11406 declaration.
11407 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11408 negative.
11409 (gnu_xfer_partial): Likewise.
11410 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11411 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11412 (ia64_hpux_xfer_solib_got): Likewise.
11413 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11414 type of 'partial_len' to ULONGEST.
11415 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11416 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11417 (linux_nat_xfer_partial): Likewise.
11418 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11419 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11420 * monitor.c (monitor_xfer_memory): Likewise.
11421 (monitor_xfer_partial): Likewise.
11422 * procfs.c (procfs_xfer_partial): Likewise.
11423 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11424 * record-full.c (record_full_xfer_partial): Likewise.
11425 (record_full_core_xfer_partial): Likewise.
11426 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11427 (gdbsim_xfer_partial): Likewise.
11428 * remote.c (remote_write_bytes_aux): Likewise. All callers
11429 updated.
11430 (remote_write_bytes, remote_read_bytes): Likewise. All
11431 callers updated.
11432 (remote_flash_erase): Likewise. All callers updated.
11433 (remote_write_qxfer): Likewise. All callers updated.
11434 (remote_read_qxfer): Likewise. All callers updated.
11435 (remote_xfer_partial): Likewise.
11436 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11437 (rs6000_xfer_shared_libraries): Likewise.
11438 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11439 (sol_thread_xfer_partial): Likewise.
11440 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11441 (sparc_xfer_partial): Likewise.
11442 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11443 updated.
11444 (spu_xfer_partial): Likewise.
11445 * spu-multiarch.c (spu_xfer_partial): Likewise.
11446 * tracepoint.c (tfile_xfer_partial): Likewise.
11447 * windows-nat.c (windows_xfer_memory): Likewise.
11448 (windows_xfer_shared_libraries): Likewise.
11449 (windows_xfer_partial): Likewise.
11450 * valprint.c: Replace 'target_xfer_error' with
11451 'target_xfer_status' in comments.
11452
11453 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11454
11455 Checked in by Joel Brobecker <brobecker@adacore.com>.
11456 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11457
11458 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11459
11460 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11461 function parameters.
11462
11463 2014-02-10 Will Newton <will.newton@linaro.org>
11464
11465 * elfread.c (elf_rel_plt_read): Look for a .got section if
11466 looking up .got.plt fails.
11467 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11468 on address passed to elf_gnu_ifunc_record_cache.
11469 (elf_gnu_ifunc_resolve_addr): Likewise.
11470 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11471
11472 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11473
11474 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11475 (X_RETTURN): New macro.
11476 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11477
11478 * sparc64-tdep.c (sparc64_init_abi): Hook
11479 sparc_in_function_epilogue_p.
11480
11481 2014-02-10 Gary Benson <gbenson@redhat.com>
11482
11483 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11484 Rename name_matcher to symbol_matcher.
11485
11486 2014-02-10 Gary Benson <gbenson@redhat.com>
11487
11488 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11489 Use expand_symtabs_file_matcher_ftype and
11490 expand_symtabs_symbol_matcher_ftype.
11491
11492 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11493
11494 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11495 (struct ada_symbol_cache): New.
11496 (ada_free_symbol_cache): Forward declare.
11497 (struct ada_pspace_data): New.
11498 (ada_pspace_data_handle): New static global.
11499 (get_ada_pspace_data, ada_pspace_data_cleanup)
11500 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11501 (cache_space, cache): Delete, now folded inside struct
11502 ada_pspace_data.
11503 (ada_get_symbol_cache): New function.
11504 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11505 implementation.
11506 (_initialize_ada_language): Remove initialization of cache_space.
11507 Move call to observer_attach_inferior_exit up, grouping it
11508 with the other observer registrations inside this function.
11509 Rename command to be more general. Add call to
11510 register_program_space_data_with_cleanup.
11511
11512 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11513
11514 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11515 ada_new_objfile_observer.
11516 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11517 (_initialize_tasks): Update uses of ada_new_objfile_observer
11518 and ada_tasks_normal_stop_observer.
11519
11520 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11521
11522 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11523 returned by the 'Length attribute to integer.
11524
11525 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11526
11527 * ada-lang.c (_initialize_ada_language): Initialize
11528 cache_space obstack.
11529
11530 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11531
11532 * ada-lang.c (HASH_SIZE): New macro.
11533 (struct cache_entry): New type.
11534 (cache_space, cache): New static globals.
11535 (ada_clear_symbol_cache, find_entry): New functions.
11536 (lookup_cached_symbol, cache_symbol): Implement.
11537 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11538 (_initialize_ada_language): Attach ada_new_objfile_observer
11539 and ada_free_objfile_observer.
11540
11541 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11542
11543 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11544 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11545 struct block * parameter.
11546 (ada_lookup_symbol_list_worker): Constify local variable "block".
11547 Remove cast which is no longer necessary.
11548
11549 2014-02-10 Doug Evans <xdje42@gmail.com>
11550
11551 Add Guile as an extension language.
11552 * NEWS: Mention Guile scripting.
11553 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11554 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11555 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11556 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11557 (CLIBS): Add GUILE_LIBS.
11558 (install-guile): New rule.
11559 (guile.o): New rule.
11560 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11561 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11562 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11563 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11564 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11565 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11566 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11567 * configure.ac: New option --with-guile.
11568 * configure: Regenerate.
11569 * config.in: Regenerate.
11570 * auto-load.c: Remove #include "python/python.h". Add #include
11571 "gdb/section-scripts.h".
11572 (source_section_scripts): Handle Guile scripts.
11573 (_initialize_auto_load): Add name of Guile objfile script to
11574 scripts-directory help text.
11575 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11576 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11577 (struct breakpoint): New member scm_bp_object.
11578 * defs.h (enum command_control_type): New value guile_control.
11579 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11580 "extension.h".
11581 (show_user): Update comment.
11582 (_initialize_cli_cmds): Update help text for "show user". Update help
11583 text for max-user-call-depth.
11584 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11585 "extension.h".
11586 (multi_line_command_p): Add guile_control.
11587 (print_command_lines): Handle guile_control.
11588 (execute_control_command, recurse_read_control_structure): Ditto.
11589 (process_next_line): Recognize "guile" commands.
11590 * disasm.c (gdb_disassemble_info): Make non-static.
11591 * disasm.h: #include "dis-asm.h".
11592 (struct gdbarch): Add forward decl.
11593 (gdb_disassemble_info): Declare.
11594 * extension.c: #include "guile/guile.h".
11595 (extension_languages): Add guile.
11596 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11597 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11598 * gdbtypes.c (get_unsigned_type_max): New function.
11599 (get_signed_type_minmax): New function.
11600 * gdbtypes.h (get_unsigned_type_max): Declare.
11601 (get_signed_type_minmax): Declare.
11602 * guile/README: New file.
11603 * guile/guile-internal.h: New file.
11604 * guile/guile.c: New file.
11605 * guile/guile.h: New file.
11606 * guile/scm-arch.c: New file.
11607 * guile/scm-auto-load.c: New file.
11608 * guile/scm-block.c: New file.
11609 * guile/scm-breakpoint.c: New file.
11610 * guile/scm-disasm.c: New file.
11611 * guile/scm-exception.c: New file.
11612 * guile/scm-frame.c: New file.
11613 * guile/scm-gsmob.c: New file.
11614 * guile/scm-iterator.c: New file.
11615 * guile/scm-lazy-string.c: New file.
11616 * guile/scm-math.c: New file.
11617 * guile/scm-objfile.c: New file.
11618 * guile/scm-ports.c: New file.
11619 * guile/scm-pretty-print.c: New file.
11620 * guile/scm-safe-call.c: New file.
11621 * guile/scm-string.c: New file.
11622 * guile/scm-symbol.c: New file.
11623 * guile/scm-symtab.c: New file.
11624 * guile/scm-type.c: New file.
11625 * guile/scm-utils.c: New file.
11626 * guile/scm-value.c: New file.
11627 * guile/lib/gdb.scm: New file.
11628 * guile/lib/gdb/boot.scm: New file.
11629 * guile/lib/gdb/experimental.scm: New file.
11630 * guile/lib/gdb/init.scm: New file.
11631 * guile/lib/gdb/iterator.scm: New file.
11632 * guile/lib/gdb/printing.scm: New file.
11633 * guile/lib/gdb/types.scm: New file.
11634 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11635 (VPATH): Add $(GUILE_SRCDIR).
11636 (GUILE_DIR): New variable.
11637 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11638 (all): Add stamp-guile dependency.
11639 (stamp-guile): New rule.
11640 (clean-guile, install-guile, uninstall-guile): New rules.
11641 (install-only): Add install-guile dependency.
11642 (uninstall): Add uninstall-guile dependency.
11643 (clean): Add clean-guile dependency.
11644
11645 2014-02-09 Doug Evans <xdje42@gmail.com>
11646
11647 Revert this patch (which I approved, mea culpa).
11648
11649 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11650
11651 * Makefile.in (all-lib): Remove.
11652 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11653
11654 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11655
11656 Fix Python stack corruption.
11657 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11658 gdb_py_longest.
11659
11660 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11661
11662 * Makefile.in (all-lib): Remove.
11663 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11664
11665 2014-02-07 Doug Evans <dje@google.com>
11666
11667 * extension-priv.h (extension_language_script_ops): Add comment.
11668 (extension_language_ops): Add comment.
11669 (active_ext_lang_state): Fix typo in comment.
11670
11671 2014-02-07 Pedro Alves <palves@redhat.com>
11672
11673 PR breakpoints/16292
11674 * infrun.c (handle_signal_stop) <signal arrives while stepping
11675 over a breakpoint>: Switch back to the stepping thread.
11676
11677 2014-02-07 Yao Qi <yao@codesourcery.com>
11678
11679 * target.c (target_xfer_partial): Return zero if LEN is zero.
11680
11681 2014-02-07 Yao Qi <yao@codesourcery.com>
11682
11683 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11684 (ld_so_xfer_auxv): Likewise.
11685 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11686 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11687 * corelow.c (core_xfer_partial): Likewise.
11688 * ctf.c (ctf_xfer_partial): Likewise.
11689 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11690 (darwin_xfer_partial): Likewise.
11691 * exec.c (exec_xfer_partial): Likewise.
11692 * gnu-nat.c (gnu_xfer_partial): Likewise.
11693 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11694 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11695 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11696 * linux-nat.c (linux_xfer_siginfo): Likewise.
11697 (linux_proc_xfer_spu): Likewise.
11698 * procfs.c (procfs_xfer_partial): Likewise.
11699 * record-full.c (record_full_xfer_partial): Likewise.
11700 (record_full_core_xfer_partial): Likewise.
11701 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11702 * remote.c (remote_write_qxfer): Likewise.
11703 (remote_write_qxfer, remote_read_qxfer): Likewise.
11704 (remote_xfer_partial): Likewise.
11705 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11706 (rs6000_xfer_shared_libraries): Likewise.
11707 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11708 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11709 (spu_xfer_partial): Likewise.
11710 * target.c (memory_xfer_partial_1): Likewise.
11711 * tracepoint.c (tfile_xfer_partial): Likewise.
11712 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11713 (windows_xfer_partial): Likewise.
11714
11715 2014-02-07 Yao Qi <yao@codesourcery.com>
11716
11717 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11718 comments.
11719 (core_xfer_shared_libraries_aix): Likewise.
11720 * gdbarch.c, gdbarch.h: Regenerated.
11721 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11722 ULONGEST. Change 'len_avail' type to ULONGEST.
11723 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11724 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11725 declaration.
11726 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11727
11728 2014-02-07 Yao Qi <yao@codesourcery.com>
11729
11730 * corefile.c (memory_error): Get 'exception' from ERR and pass
11731 'exception' to throw_error.
11732
11733 2014-02-06 Doug Evans <xdje42@gmail.com>
11734
11735 * configure.ac (libpython checking): Remove all but python.o from
11736 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11737 * configure: Regenerate.
11738
11739 * Makefile.in (SFILES): Add extension.c.
11740 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11741 (COMMON_OBS): Add extension.o.
11742 * extension.h: New file.
11743 * extension-priv.h: New file.
11744 * extension.c: New file.
11745
11746 * python/python-internal.h: #include "extension.h".
11747 (gdbpy_auto_load_enabled): Declare.
11748 (gdbpy_apply_val_pretty_printer): Declare.
11749 (gdbpy_apply_frame_filter): Declare.
11750 (gdbpy_preserve_values): Declare.
11751 (gdbpy_breakpoint_cond_says_stop): Declare.
11752 (gdbpy_breakpoint_has_cond): Declare.
11753 (void source_python_script_for_objfile): Delete.
11754 * python/python.c: #include "extension-priv.h".
11755 Delete inclusion of "observer.h".
11756 (extension_language_python): Moved here and renamed from
11757 script_language_python in py-auto-load.c.
11758 Redefined to be of type extension_language_defn.
11759 (python_extension_script_ops): New global.
11760 (python_extension_ops): New global.
11761 (struct python_env): New member previous_active.
11762 (restore_python_env): Call restore_active_ext_lang.
11763 (ensure_python_env): Call set_active_ext_lang.
11764 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11765 New arg extlang.
11766 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11767 New arg extlang.
11768 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11769 New arg extlang.
11770 (gdbpy_eval_from_control_command): Renamed from
11771 eval_python_from_control_command, made static. New arg extlang.
11772 (gdbpy_source_script) Renamed from source_python_script, made static.
11773 New arg extlang.
11774 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11775 result to int. New arg extlang.
11776 (gdbpy_source_objfile_script): Renamed from
11777 source_python_script_for_objfile, made static. New arg extlang.
11778 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11779 static. New args extlang, extlang_printers. Change result type to
11780 "void".
11781 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11782 static. New arg extlang. Rename arg printers to extlang_printers
11783 and change type to ext_lang_type_printers *.
11784 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11785 static. Replace argument arg with extlang, extlang_printers.
11786 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11787 (!HAVE_PYTHON, source_python_script): Delete.
11788 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11789 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11790 (!HAVE_PYTHON, start_type_printers): Delete.
11791 (!HAVE_PYTHON, apply_type_printers): Delete.
11792 (!HAVE_PYTHON, free_type_printers): Delete.
11793 (_initialize_python): Delete call to observer_attach_before_prompt.
11794 (finalize_python): Set/restore active extension language.
11795 (gdbpy_finish_initialization) Renamed from
11796 finish_python_initialization, made static. New arg extlang.
11797 (gdbpy_initialized): New function.
11798 * python/python.h: #include "extension.h". Delete #include
11799 "value.h", "mi/mi-cmds.h".
11800 (extension_language_python): Declare.
11801 (GDBPY_AUTO_FILE_NAME): Delete.
11802 (enum py_bt_status): Moved to extension.h and renamed to
11803 ext_lang_bt_status.
11804 (enum frame_filter_flags): Moved to extension.h.
11805 (enum py_frame_args): Moved to extension.h and renamed to
11806 ext_lang_frame_args.
11807 (finish_python_initialization): Delete.
11808 (eval_python_from_control_command): Delete.
11809 (source_python_script): Delete.
11810 (apply_val_pretty_printer): Delete.
11811 (apply_frame_filter): Delete.
11812 (preserve_python_values): Delete.
11813 (gdbpy_script_language_defn): Delete.
11814 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11815 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11816
11817 * auto-load.c: #include "extension.h".
11818 (GDB_AUTO_FILE_NAME): Delete.
11819 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11820 (script_language_gdb): Delete, moved to extension.c and renamed to
11821 extension_language_gdb.
11822 (source_gdb_script_for_objfile): Delete.
11823 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11824 (loaded_script): Change type of language member to
11825 struct extension_language_defn *.
11826 (init_loaded_scripts_info): Initialize
11827 unsupported_script_warning_printed.
11828 (maybe_add_script): Make static. Change type of language arg to
11829 struct extension_language_defn *.
11830 (clear_section_scripts): Reset unsupported_script_warning_printed.
11831 (auto_load_objfile_script_1): Rewrite to use extension language API.
11832 (auto_load_objfile_script): Make public. Remove support-compiled-in
11833 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11834 (source_section_scripts): Rewrite to use extension language API.
11835 (load_auto_scripts_for_objfile): Rewrite to use
11836 auto_load_scripts_for_objfile.
11837 (collect_matching_scripts_data): Change type of language member to
11838 struct extension_language_defn *.
11839 (auto_load_info_scripts): Change type of language arg to
11840 struct extension_language_defn *.
11841 (unsupported_script_warning_print): New function.
11842 (script_not_found_warning_print): Make static.
11843 (_initialize_auto_load): Rewrite construction of scripts-directory
11844 help.
11845 * auto-load.h (struct objfile): Add forward decl.
11846 (struct script_language): Delete.
11847 (struct auto_load_pspace_info): Add forward decl.
11848 (struct extension_language_defn): Add forward decl.
11849 (maybe_add_script): Delete.
11850 (auto_load_objfile_script): Declare.
11851 (script_not_found_warning_print): Delete.
11852 (auto_load_info_scripts): Update prototype.
11853 (auto_load_gdb_scripts_enabled): Declare.
11854 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11855 auto_load_python_scripts_enabled and made public.
11856 (script_language_python): Delete, moved to python.c.
11857 (gdbpy_script_language_defn): Delete.
11858 (info_auto_load_python_scripts): Update to use
11859 extension_language_python.
11860
11861 * breakpoint.c (condition_command): Replace call to
11862 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11863 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11864 with call to breakpoint_ext_lang_cond_says_stop.
11865 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11866 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11867 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11868 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11869 New arg slang.
11870 (local_setattro): Print name of extension language with existing
11871 stop condition.
11872
11873 * valprint.c (val_print, value_print): Update to call
11874 apply_ext_lang_val_pretty_printer.
11875 * cp-valprint.c (cp_print_value): Update call to
11876 apply_ext_lang_val_pretty_printer.
11877 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11878 (gdbpy_apply_val_pretty_printer): Renamed from
11879 apply_val_pretty_printer. New arg extlang.
11880 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11881
11882 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11883 extension language API.
11884 * cli/cli-script.c (execute_control_command): Update to call
11885 eval_ext_lang_from_control_command.
11886
11887 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11888 enum ext_lang_bt_status values. Update call to
11889 apply_ext_lang_frame_filter.
11890 (mi_cmd_stack_list_locals): Ditto.
11891 (mi_cmd_stack_list_args): Ditto.
11892 (mi_cmd_stack_list_variables): Ditto.
11893 * mi/mi-main.c: Delete #include "python/python-internal.h".
11894 Add #include "extension.h".
11895 (mi_cmd_list_features): Replace reference to python internal variable
11896 gdb_python_initialized with call to ext_lang_initialized_p.
11897
11898 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11899 Update to use enum ext_lang_frame_args. Update to call
11900 apply_ext_lang_frame_filter.
11901 * python/py-framefilter.c (extract_sym): Update to use enum
11902 ext_lang_bt_status.
11903 (extract_value, py_print_type, py_print_value): Ditto.
11904 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11905 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11906 (py_print_frame): Ditto.
11907 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11908 New arg extlang. Update to use enum ext_lang_bt_status.
11909
11910 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11911 finish_python_initialization. Replace with call to
11912 finish_ext_lang_initialization.
11913
11914 * typeprint.c (do_free_global_table): Update to call
11915 free_ext_lang_type_printers.
11916 (create_global_typedef_table): Update to call
11917 start_ext_lang_type_printers.
11918 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11919 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11920 (type_print_options): Change type of global_printers from "void *"
11921 to "struct ext_lang_type_printers *".
11922
11923 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11924 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11925 (gdbpy_preserve_values): Renamed from preserve_python_values.
11926 New arg extlang.
11927 (!HAVE_PYTHON, preserve_python_values): Delete.
11928
11929 * utils.c (quit_flag): Delete, moved to extension.c.
11930 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11931 extension.c.
11932
11933 * eval.c: Delete #include "python/python.h".
11934 * main.c: Delete #include "python/python.h".
11935
11936 * defs.h: Update comment.
11937
11938 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11939
11940 GDB 7.7 released.
11941
11942 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11943
11944 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11945 defined.
11946
11947 2014-02-05 Yao Qi <yao@codesourcery.com>
11948
11949 * remote.c (remote_pass_signals): Remove local 'buf' and use
11950 rs->buf.
11951 (remote_program_signals): Likewise.
11952
11953 2014-02-05 Yao Qi <yao@codesourcery.com>
11954
11955 * ctf.c: Include "inferior.h" and "gdbthread.h".
11956 (CTF_PID): A new macro.
11957 (ctf_open): Call inferior_appeared and add_thread_silent.
11958 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11959 (ctf_thread_alive): New function.
11960 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11961
11962 2014-02-05 Yao Qi <yao@codesourcery.com>
11963
11964 Revert this patch:
11965
11966 2013-05-24 Yao Qi <yao@codesourcery.com>
11967
11968 * tracepoint.c (TFILE_PID): Remove.
11969 (tfile_open): Don't add thread and inferior.
11970 (tfile_close): Don't set 'inferior_ptid'. Don't call
11971 exit_inferior_silent.
11972 (tfile_thread_alive): Remove.
11973 (init_tfile_ops): Don't set field 'to_thread_alive' of
11974 tfile_ops.
11975
11976 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11977
11978 * remote.c (remote_start_remote): Call remote_check_symbols even
11979 if only symbol-file (not file) has been given.
11980
11981 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11982
11983 * gdbarch.sh (skip_entrypoint): New callback.
11984 * gdbarch.c, gdbarch.h: Regenerate.
11985 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11986 * infrun.c (fill_in_stop_func): Likewise.
11987 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11988 (ppc_elfv2_elf_make_msymbol_special): New function.
11989 (ppc_elfv2_skip_entrypoint): Likewise.
11990 (ppc_linux_init_abi): Install them for ELFv2.
11991
11992 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11993
11994 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11995 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11996 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11997 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11998 structures returned in GPRs.
11999
12000 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12001
12002 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12003 offset to the stack parameter list for the ELFv2 ABI.
12004
12005 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12006
12007 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12008 set_gdbarch_convert_from_func_ptr_addr and
12009 set_gdbarch_elf_make_msymbol_special for ELFv1.
12010 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12011 function descriptors on ELFv1.
12012 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12013 set up r12 at function entry.
12014
12015 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12016
12017 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12018 (struct gdbarch_tdep): New member elf_abi.
12019
12020 * rs6000-tdep.c: Include "elf/ppc64.h".
12021 (rs6000_gdbarch_init): Detect ELF ABI version.
12022
12023 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12024
12025 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12026 within a register pair holding a DFP 128-bit value on little-endian.
12027 (ppc64_sysv_abi_return_value_base): Likewise.
12028 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12029 (dfp_pseudo_register_write): Likewise.
12030
12031 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12032
12033 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12034 offset on little-endian when passing _Decimal32.
12035 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12036
12037 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12038
12039 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12040 of the overlapped FP register within the VSX register on little-
12041 endian platforms.
12042 (efpr_pseudo_register_write): Likewise.
12043
12044 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12045
12046 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12047 offset on little-endian when passing small structures.
12048
12049 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12050
12051 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12052 (struct ppc64_sysv_argpos): New data structure.
12053 (ppc64_sysv_abi_push_float): Remove.
12054 (ppc64_sysv_abi_push_val): New function.
12055 (ppc64_sysv_abi_push_integer): Likewise.
12056 (ppc64_sysv_abi_push_freg): Likewise.
12057 (ppc64_sysv_abi_push_vreg): Likewise.
12058 (ppc64_sysv_abi_push_param): Likewise.
12059 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12060 (ppc64_sysv_abi_return_value_base): New function.
12061 (ppc64_sysv_abi_return_value): Refactor to use it.
12062
12063 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12064
12065 * NEWS: Document new target powerpc64le-*-linux*.
12066
12067 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12068
12069 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12070 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12071 core dumps.
12072 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12073 register set used in ELF core dumps. Add floating-point register set.
12074
12075 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12076
12077 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12078 dwarf2_to_gdb[] table using symbolic constants. Adjust
12079 penultimate entry from number representing the PC register
12080 to symbolic constant representing the MDR register. Add
12081 constant for the PC register to the end of the table.
12082
12083 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12084
12085 * bsd-kvm.c: Include <sys/param.h>
12086
12087 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12088
12089 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12090
12091 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12092
12093 * ada-lang.h (clear_ada_sym_cache): Delete.
12094
12095 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12096
12097 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12098
12099 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12100
12101 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12102 the sigreturn register save area only if the syscall is
12103 sigreturn.
12104
12105 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12106
12107 * valops.c (value_slice): Minor reformatting.
12108
12109 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12110
12111 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12112
12113 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12114
12115 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12116 New static globals.
12117 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12118 (ada_ignore_descriptive_types_p): New static global.
12119 (find_parallel_type_by_descriptive_type): Return immediately
12120 if ada_ignore_descriptive_types_p is set.
12121 (_initialize_ada_language): Register new commands "maintenance
12122 set ada", "maintenance show ada", "maintenance set ada
12123 ignore-descriptive-types" and "maintenance show ada
12124 ignore-descriptive-types".
12125 * NEWS: Add entry for new "maint ada set/show
12126 ignore-descriptive-types" commands.
12127
12128 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12129
12130 * record-btrace.c (record_btrace_close): Call btrace_teardown
12131 for all threads.
12132
12133 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12134
12135 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12136 "ui-out.h".
12137
12138 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12139
12140 * ada-typeprint (type_is_full_subrange_of_target_type):
12141 New function.
12142 (print_range): Add parameter bounds_prefered_p. If not set,
12143 try printing range types using the name of their base type.
12144 (print_range_type): Add parameter bounds_prefered_p.
12145 Use it in call to print_range.
12146 (print_array_type, ada_print_type): Update calls to print_range
12147 and print_range_type.
12148
12149 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12150
12151 * ada-typeprint.c (print_array_type, print_choices, print_range)
12152 (print_range_bound, print_dynamic_range_bound, print_range_type):
12153 Remove declaration.
12154
12155 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12156
12157 * ada-typeprint.c (print_range): Add missing empty line
12158 after local declaration.
12159
12160 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12161
12162 * ada-valprint.c (print_optional_low_bound): Get index_type's
12163 target type for as long as it is a TYPE_CODE_RANGE.
12164
12165 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12166
12167 * procfs.c (procfs_make_note_section): Remove assertion and
12168 associated comment.
12169
12170 2014-01-24 Yao Qi <yao@codesourcery.com>
12171
12172 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12173 * corelow.c (get_core_siginfo): Likewise.
12174
12175 2014-01-24 Yao Qi <yao@codesourcery.com>
12176
12177 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12178 ULONGEST. Don't check 'len' is negative.
12179 (remote_write_bytes): Change type of 'len' to ULONGEST.
12180
12181 2014-01-23 Tom Tromey <tromey@redhat.com>
12182
12183 PR python/16485:
12184 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12185 Handle exception from frame.block.
12186 (FrameVars.fetch_frame_locals): Likewise.
12187
12188 2014-01-23 Tom Tromey <tromey@redhat.com>
12189
12190 PR python/16487:
12191 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12192 on a NULL pointer. Move "goto error" to correct place.
12193
12194 2014-01-23 Tom Tromey <tromey@redhat.com>
12195
12196 PR python/16491:
12197 * python/py-framefilter.c (apply_frame_filter): Call
12198 ensure_python_env after computing gdbarch.
12199
12200 2014-01-23 Yao Qi <yao@codesourcery.com>
12201
12202 * target.c (raw_memory_xfer_partial): Change argument type
12203 from void * to gdb_byte *.
12204 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12205
12206 2014-01-22 Doug Evans <dje@google.com>
12207
12208 New gdbserver option --debug-format=timestamp.
12209 * NEWS: Mention it.
12210
12211 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12212
12213 * syscalls/s390x-linux.xml: New file.
12214 * syscalls/s390-linux.xml: New file.
12215 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12216 (XML_SYSCALL_FILENAME_S390X): Likewise.
12217 (op_svc): New enum value for SVC opcode.
12218 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12219 (s390_linux_get_syscall_number): New function.
12220 (s390_gdbarch_init): Register '*get_syscall_number' and the
12221 syscall xml file name.
12222 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12223 "s390-linux.xml" and "s390x-linux.xml".
12224 * NEWS: Announce new feature.
12225
12226 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12227
12228 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12229
12230 2014-01-22 Pedro Alves <palves@redhat.com>
12231
12232 * xtensa-config.c: Include defs.h.
12233
12234 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12235
12236 * common/common-utils.h: Add "ARI:" comment beside __func__
12237 reference.
12238
12239 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12240
12241 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12242 documentation a bit.
12243
12244 2014-01-21 Roland McGrath <mcgrathr@google.com>
12245
12246 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12247 * configure: Regenerate.
12248 * aclocal.m4: Regenerate.
12249 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12250 New substituted variables.
12251 (install-strip): New target.
12252 (INSTALL_SCRIPT): New substituted variable.
12253 (FLAGS_TO_PASS): Add it.
12254 (install-only): Use $(INSTALL_SCRIPT) rather than
12255 $(INSTALL_PROGRAM) for gcore.
12256
12257 2014-01-20 Tom Tromey <tromey@redhat.com>
12258
12259 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12260 together.
12261
12262 2014-01-20 Tom Tromey <tromey@redhat.com>
12263
12264 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12265 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12266 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12267 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12268 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12269 (struct cmd_list_element) <flags>: Remove.
12270 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12271 doc_allocated>: New fields.
12272 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12273 bitfields.
12274 * maint.c (maintenance_do_deprecate): Update.
12275 * top.c (execute_command): Update.
12276
12277 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12278
12279 * xtensa-linux-nat.c: Include asm/ptrace.h.
12280
12281 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12282
12283 * Makefile.in (SFILES): Add d-support.c.
12284 (COMMON_OBS): Add d-support.o.
12285 * d-lang.h (d_parse_symbol): Add comment, now defined in
12286 d-support.c.
12287 * d-lang.c (parse_call_convention)
12288 (parse_attributes, parse_function_types)
12289 (parse_function_args, parse_type, parse_identifier)
12290 (call_convention_p, d_parse_symbol): Move functions to ...
12291 * d-support.c: ... New file.
12292
12293 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12294
12295 * d-lang.h (d_parse_symbol): Add declaration.
12296 * d-lang.c (extract_identifiers)
12297 (extract_type_info): Remove functions.
12298 (parse_call_convention, parse_attributes)
12299 (parse_function_types, parse_function_args)
12300 (parse_type, parse_identifier, call_convention_p)
12301 (d_parse_symbol): New functions.
12302 (d_demangle): Use d_parse_symbol to demangle D symbols.
12303
12304 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12305
12306 * d-lang.h (struct builtin_d_type): New data type.
12307 (builtin_d_type): Add declaration.
12308 * d-lang.c (d_language_arch_info, build_d_types)
12309 (builtin_d_type): New functions.
12310 (enum d_primitive_types): New data type.
12311 (d_language_defn): Change c_language_arch_info to
12312 d_language_arch_info.
12313 (d_type_data): New static variable.
12314 (_initialize_d_language): Initialize d_type_data.
12315
12316 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12317
12318 * d-lang.h (d_main_name): Add declaration.
12319 * d-lang.c (d_main_name): New function.
12320 * symtab.c (find_main_name): Add call to d_main_name.
12321
12322 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12323
12324 * d-lang.c (d_language_defn): Change macro_expansion_c to
12325 macro_expansion_no.
12326
12327 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12328
12329 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12330
12331 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12332
12333 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12334 gdb_exception" declaration.
12335 * remote.c (getpkt_or_notif_sane): Likewise.
12336
12337 2014-01-17 Doug Evans <dje@google.com>
12338
12339 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12340 function, contents of dirnames_to_char_ptr_vec_append moved here.
12341 (delim_string_to_char_ptr_vec): New function.
12342 (dirnames_to_char_ptr_vec_append): Rewrite.
12343 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12344
12345 2014-01-17 Doug Evans <dje@google.com>
12346
12347 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12348 and moved here ...
12349 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12350 #include "common-utils.h".
12351 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12352 * common/vec.h (VEC_ASSERT_PASS): Update.
12353 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12354 (MACH_CHECK_ERROR): Update.
12355
12356 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12357
12358 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12359 comments.
12360 * gdbarch.h: Regenerate.
12361
12362 2014-01-16 Tom Tromey <tromey@redhat.com>
12363
12364 * value.c (struct value) <regnum>: Move earlier.
12365
12366 2014-01-16 Tom Tromey <tromey@redhat.com>
12367
12368 * remote.c (extended_remote_create_inferior): Rename from
12369 extended_remote_create_inferior_1. Add "ops" argument. Remove
12370 old implementation.
12371
12372 2014-01-16 Pedro Alves <palves@redhat.com>
12373
12374 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12375 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12376 the backchain.
12377
12378 2014-01-16 Doug Evans <dje@google.com>
12379
12380 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12381
12382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12383
12384 * btrace.h (btrace_thread_flag): New.
12385 (struct btrace_thread_info) <flags>: New.
12386 * record-btrace.c (record_btrace_resume_thread)
12387 (record_btrace_find_thread_to_move, btrace_step_no_history)
12388 (btrace_step_stopped, record_btrace_start_replaying)
12389 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12390 (record_btrace_find_resume_thread): New.
12391 (record_btrace_resume, record_btrace_wait): Extend.
12392 (record_btrace_can_execute_reverse): New.
12393 (record_btrace_open): Fail in non-stop mode.
12394 (record_btrace_set_replay): Split into this, ...
12395 (record_btrace_stop_replaying): ... this, ...
12396 (record_btrace_clear_histories): ... and this.
12397 (init_record_btrace_ops): Init to_can_execute_reverse.
12398 * NEWS: Announce it.
12399
12400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12401
12402 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12403 (forward_target_decr_pc_after_break)
12404 (target_decr_pc_after_break): New.
12405 * target.c (forward_target_decr_pc_after_break)
12406 (target_decr_pc_after_break): New.
12407 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12408 instead of gdbarch_decr_pc_after_break.
12409 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12410 instead of gdbarch_decr_pc_after_break.
12411 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12412 instead of gdbarch_decr_pc_after_break.
12413 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12414 instead of gdbarch_decr_pc_after_break.
12415 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12416 instead of gdbarch_decr_pc_after_break.
12417 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12418 instead of gdbarch_decr_pc_after_break.
12419
12420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12421
12422 * btrace.c: Include regcache.h.
12423 (btrace_add_pc): New.
12424 (btrace_enable): Call btrace_add_pc.
12425 (btrace_is_empty): New.
12426 * btrace.h (btrace_is_empty): New.
12427 * record-btrace.c (require_btrace, record_btrace_info): Call
12428 btrace_is_empty.
12429
12430 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12431
12432 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12433 Support delta reads.
12434 (linux_disable_btrace): Change return type.
12435 * common/linux-btrace.h (linux_read_btrace): Change parameters
12436 and return type to allow error reporting. Update users.
12437 (linux_disable_btrace): Change return type. Update users.
12438 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12439 New.
12440 (btrace_error): New.
12441 (btrace_block) <begin>: Comment on BEGIN == 0.
12442 * btrace.c (btrace_compute_ftrace): Start from the end of
12443 the current trace.
12444 (btrace_stitch_trace, btrace_clear_history): New.
12445 (btrace_fetch): Read delta trace, return if replaying.
12446 (btrace_clear): Move clear history code to btrace_clear_history.
12447 (parse_xml_btrace): Throw an error if parsing failed.
12448 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12449 and return type to allow error reporting.
12450 (target_read_btrace): Change parameters and return type to allow
12451 error reporting.
12452 * target.c (target_read_btrace): Update.
12453 * remote.c (remote_read_btrace): Support delta reads. Pass
12454 errors on.
12455 * NEWS: Announce it.
12456
12457 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12458
12459 * record.h (record_btrace_frame_unwind)
12460 (record_btrace_tailcall_frame_unwind): New declarations.
12461 * dwarf2-frame: Include record.h
12462 (dwarf2_frame_cfa): Throw an error for btrace frames.
12463 * record-btrace.c: Include hashtab.h.
12464 (btrace_get_bfun_name): New.
12465 (btrace_call_history): Call btrace_get_bfun_name.
12466 (struct btrace_frame_cache): New.
12467 (bfcache): New.
12468 (bfcache_hash, bfcache_eq, bfcache_new): New.
12469 (btrace_get_frame_function): New.
12470 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12471 (record_btrace_frame_this_id): Compute own id.
12472 (record_btrace_frame_prev_register): Provide PC, throw_error
12473 for all other registers.
12474 (record_btrace_frame_sniffer): Detect btrace frames.
12475 (record_btrace_tailcall_frame_sniffer): New.
12476 (record_btrace_frame_dealloc_cache): New.
12477 (record_btrace_frame_unwind): Add new functions.
12478 (record_btrace_tailcall_frame_unwind): New.
12479 (_initialize_record_btrace): Allocate cache.
12480 * btrace.c (btrace_clear): Call reinit_frame_cache.
12481 * NEWS: Announce it.
12482
12483 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12484
12485 * record-btrace.c (record_btrace_set_replay)
12486 (record_btrace_goto_begin, record_btrace_goto_end)
12487 (record_btrace_goto): New.
12488 (init_record_btrace_ops): Initialize them.
12489 * NEWS: Announce it.
12490
12491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12492
12493 * record-btrace.c (record_btrace_find_new_threads)
12494 (record_btrace_thread_alive): New.
12495 (init_record_btrace_ops): Initialize to_find_new_threads and
12496 to_thread_alive.
12497
12498 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12499
12500 * record-btrace.c (record_btrace_resume): New.
12501 (record_btrace_wait): New.
12502 (init_record_btrace_ops): Initialize to_wait and to_resume.
12503
12504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12505
12506 * record-btrace.c (record_btrace_xfer_partial)
12507 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12508 (record_btrace_allow_memory_access): New.
12509 (init_record_btrace_ops): Initialize new methods.
12510 * target.c (raw_memory_xfer_partial): Bail out if target reports
12511 that this memory is not available.
12512
12513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12514
12515 * target.h (target_ops) <to_insert_breakpoint>
12516 <to_remove_breakpoint>: Add target_ops parameter.
12517 (forward_target_insert_breakpoint): New.
12518 (forward_target_remove_breakpoint): New.
12519 (memory_remove_breakpoint, memory_insert_breakpoint):
12520 Add target_ops parameter.
12521 * target.c (target_insert_breakpoint): Split into this and ...
12522 (forward_target_insert_breakpoint): ... this.
12523 (target_remove_breakpoint): Split into this and ...
12524 (forward_target_remove_breakpoint): ... this.
12525 (debug_to_insert_breakpoint): Add target_ops parameter.
12526 Call forward_target_insert_breakpoint.
12527 (debug_to_remove_breakpoint): Add target_ops parameter.
12528 Call forward_target_remove_breakpoint.
12529 (update_current_target): Do not inherit or default to_insert_breakpoint
12530 and to_remove_breakpoint.
12531 * corelow.c (ignore): Add target_ops parameter.
12532 * exec.c (ignore): Add target_ops parameter.
12533 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12534 Add target_ops parameter.
12535 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12536 Add target_ops parameter.
12537 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12538 Add target_ops parameter.
12539 * record-full.c (record_full_beneath_to_insert_breakpoint)
12540 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12541 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12542 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12543 (record_full_core_remove_breakpoint): Add target_ops parameter.
12544 Update users.
12545 (record_full_beneath_to_insert_breakpoint_ops)
12546 (record_full_beneath_to_remove_breakpoint_ops)
12547 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12548 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12549 tmp_to_remove_breakpoint_ops,
12550 record_full_beneath_to_insert_breakpoint_ops, and
12551 record_full_beneath_to_remove_breakpoint_ops.
12552 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12553 (m32r_remove_breakpoint): Add target_ops parameter.
12554 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12555 Add target_ops parameter.
12556 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12557 Add target_ops parameter.
12558
12559 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12560 Markus Metzger <markus.t.metzger@intel.com>
12561
12562 * record-btrace.c: Include frame-unwind.h.
12563 (record_btrace_frame_unwind_stop_reason)
12564 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12565 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12566 New.
12567 (init_record_btrace_ops): Install it.
12568
12569 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12570
12571 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12572 get_prev_frame_1.
12573
12574 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12575
12576 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12577 earlier.
12578
12579 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12580
12581 * frame-unwind.c: Include target.h.
12582 (frame_unwind_try_unwinder): New function with code from ...
12583 (frame_unwind_find_by_frame): ... here. New variable
12584 unwinder_from_target, call also target_get_unwinder)
12585 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12586 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12587 * target.h (struct target_ops): New fields to_get_unwinder and
12588 to_get_tailcall_unwinder.
12589 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12590
12591 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12592
12593 * record-btrace.c (record_btrace_fetch_registers)
12594 (record_btrace_store_registers)
12595 (record_btrace_to_prepare_to_store): New.
12596 (init_record_btrace_ops): Add the above.
12597
12598 2014-01-16 Tom Tromey <tromey@redhat.com>
12599
12600 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12601 * target.h (struct target_ops) <to_prepare_to_store>: Add
12602 argument.
12603 (target_prepare_to_store): Add argument.
12604 * target.c (debug_to_prepare_to_store): Add argument.
12605 (update_current_target): Update.
12606 * remote.c (remote_prepare_to_store): Add 'self' argument.
12607 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12608 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12609 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12610 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12611 argument.
12612 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12613 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12614 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12615 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12616 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12617
12618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12619
12620 * btrace.h (replay) <replay>: New.
12621 (btrace_is_replaying): New.
12622 * btrace.c (btrace_clear): Free replay iterator.
12623 (btrace_is_replaying): New.
12624 * record-btrace.c (record_btrace_is_replaying): New.
12625 (record_btrace_info): Print insn number if replaying.
12626 (record_btrace_insn_history): Start at replay position.
12627 (record_btrace_call_history): Start at replay position.
12628 (init_record_btrace_ops): Init to_record_is_replaying.
12629
12630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12631
12632 * record-btrace.c (record_btrace_insn_history_range): Include
12633 end.
12634 (record_btrace_insn_history_from): Adjust range.
12635 (record_btrace_call_history_range): Include
12636 end.
12637 (record_btrace_call_history_from): Adjust range.
12638 * NEWS: Announce changes.
12639
12640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12641
12642 * record.h (enum record_print_flag)
12643 <record_print_indent_calls>: New.
12644 * record.c (get_call_history_modifiers): Recognize /c modifier.
12645 (_initialize_record): Document /c modifier.
12646 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12647 Reorder fields. Optionally indent the function name. Update
12648 all users.
12649 * NEWS: Announce changes.
12650
12651 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12652
12653 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12654
12655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12656
12657 * btrace.c (ftrace_new_function): Start counting at one.
12658 * record-btrace.c (record_btrace_info): Adjust number of calls
12659 and insns.
12660 * NEWS: Announce it.
12661
12662 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12663
12664 * record-btrace.c (btrace_call_history_insn_range): Print
12665 insn range as [begin, end].
12666
12667 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12668
12669 * btrace.h (struct btrace_func_link): New.
12670 (enum btrace_function_flag): New.
12671 (struct btrace_inst): Rename to ...
12672 (struct btrace_insn): ...this. Update all users.
12673 (struct btrace_func) <ibegin, iend>: Remove.
12674 (struct btrace_func_link): New.
12675 (struct btrace_func): Rename to ...
12676 (struct btrace_function): ...this. Update all users.
12677 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12678 (number, level, flags>: New.
12679 (struct btrace_insn_iterator): Rename to ...
12680 (struct btrace_insn_history): ...this.
12681 Update all users.
12682 (struct btrace_insn_iterator, btrace_call_iterator): New.
12683 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12684 (struct btrace_target_info) <begin, end, level>
12685 <insn_history, call_history>: New.
12686 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12687 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12688 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12689 (btrace_call_number, btrace_call_begin, btrace_call_end)
12690 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12691 (btrace_find_function_by_number, btrace_set_insn_history)
12692 (btrace_set_call_history): New.
12693 * btrace.c (btrace_init_insn_iterator)
12694 (btrace_init_func_iterator, compute_itrace): Remove.
12695 (ftrace_print_function_name, ftrace_print_filename)
12696 (ftrace_skip_file): Change
12697 parameter to const.
12698 (ftrace_init_func): Remove.
12699 (ftrace_debug): Use new btrace_function fields.
12700 (ftrace_function_switched): Also consider gaining and
12701 losing symbol information).
12702 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12703 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12704 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12705 New.
12706 (ftrace_new_function): Move. Remove debug print.
12707 (ftrace_update_lines, ftrace_update_insns): New.
12708 (ftrace_update_function): Check for call, ret, and jump.
12709 (compute_ftrace): Renamed to ...
12710 (btrace_compute_ftrace): ...this. Rewritten to compute call
12711 stack.
12712 (btrace_fetch, btrace_clear): Updated.
12713 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12714 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12715 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12716 (btrace_call_number, btrace_call_begin, btrace_call_end)
12717 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12718 (btrace_find_function_by_number, btrace_set_insn_history)
12719 (btrace_set_call_history): New.
12720 * record-btrace.c (require_btrace): Use new btrace thread
12721 info fields.
12722 (record_btrace_info, btrace_insn_history)
12723 (record_btrace_insn_history, record_btrace_insn_history_range):
12724 Use new btrace thread info fields and new iterator.
12725 (btrace_func_history_src_line): Rename to ...
12726 (btrace_call_history_src_line): ...this. Use new btrace
12727 thread info fields.
12728 (btrace_func_history): Rename to ...
12729 (btrace_call_history): ...this. Use new btrace thread info
12730 fields and new iterator.
12731 (record_btrace_call_history, record_btrace_call_history_range):
12732 Use new btrace thread info fields and new iterator.
12733
12734 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12735
12736 * frame.h (frame_id_build_unavailable_stack_special): New.
12737 * frame.c (frame_id_build_unavailable_stack_special): New.
12738
12739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12740
12741 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12742 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12743 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12744 to gdbarch.
12745 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12746 (i386_insn_is_jump, i386_jmp_p): New.
12747 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12748 insn_is_jump to gdbarch.
12749 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12750 * gdbarch.h: Regenerated.
12751 * gdbarch.c: Regenerated.
12752 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12753 (default_insn_is_jump): New.
12754 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12755 (default_insn_is_jump): New.
12756
12757 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12758
12759 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12760 Change to ...
12761 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12762 (btrace_read_type) <btrace_read_new>: Change to ...
12763 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12764
12765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12766
12767 * common/linux-btrace.c (linux_read_btrace): Free trace from
12768 previous iteration.
12769
12770 2014-01-15 Doug Evans <dje@google.com>
12771
12772 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12773 uint32_t.
12774
12775 2014-01-15 Tom Tromey <tromey@redhat.com>
12776
12777 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12778 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12779 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12780 (set_objfile_main_name): New function.
12781 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12782 language_of_main>: New fields.
12783 (set_objfile_main_name): Declare.
12784 * symtab.c (find_main_name): Loop over objfiles to find the main
12785 name and language.
12786 (set_main_name): Now static.
12787 (get_main_info): Add comment.
12788 * symtab.h (set_main_name): Don't declare.
12789
12790 2014-01-15 Tom Tromey <tromey@redhat.com>
12791
12792 * symtab.c (main_progspace_key): New global.
12793 (struct main_info): New.
12794 (name_of_main, language_of_main): Remove.
12795 (get_main_info, main_info_cleanup): New function.
12796 (set_main_name, main_name, main_language): Use get_main_info.
12797 (_initialize_symtab): Initialize main_progspace_key.
12798
12799 2014-01-15 Tom Tromey <tromey@redhat.com>
12800
12801 * dbxread.c (process_one_symbol): Update.
12802 * dwarf2read.c (read_partial_die): Update.
12803 * symfile.c (set_initial_language): Call main_language.
12804 * symtab.c (language_of_main): Now static.
12805 (set_main_name): Add 'lang' parameter.
12806 (find_main_name): Update.
12807 (main_language): New function.
12808 (symtab_observer_executable_changed): Update.
12809 * symtab.h (set_main_name): Update.
12810 (language_of_main): Remove.
12811 (main_language): Declare.
12812
12813 2014-01-15 Tom Tromey <tromey@redhat.com>
12814
12815 * symfile.c (init_entry_point_info): Use new "initialized" field.
12816 Update.
12817 * objfiles.h (struct entry_point) <initialized>: New field.
12818 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12819 (struct objfile) <ei>: ...here. Remove.
12820 * objfiles.c (entry_point_address_query): Update.
12821
12822 2014-01-15 Tom Tromey <tromey@redhat.com>
12823
12824 * objfiles.c (entry_point_address_query): Relocate entry point
12825 address.
12826 (objfile_relocate1): Do not relocate entry point address.
12827 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12828 <the_bfd_section_index>: New field.
12829 * symfile.c (init_entry_point_info): Find the entry point's
12830 section.
12831
12832 2014-01-15 Tom Tromey <tromey@redhat.com>
12833
12834 * solib-frv.c (enable_break): Use entry_point_address_query.
12835
12836 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12837
12838 * NEWS: Add note on improved process record-replay on
12839 arm*-linux* targets.
12840
12841 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12842
12843 * arm-tdep.c (enum arm_record_result): New enum.
12844 (arm_record_unsupported_insn): New function.
12845 (arm_record_coproc_data_proc): Removed.
12846 (thumb2_record_ld_st_multiple): New function.
12847 (thumb2_record_ld_st_dual_ex_tbb): New function.
12848 (thumb2_record_data_proc_sreg_mimm): New function.
12849 (thumb2_record_ps_dest_generic): New function.
12850 (thumb2_record_branch_misc_cntrl): New function.
12851 (thumb2_record_str_single_data): New function.
12852 (thumb2_record_ld_mem_hints): New function.
12853 (thumb2_record_ld_word): New function.
12854 (thumb2_record_lmul_lmla_div): New function.
12855 (thumb2_record_decode_insn_handler): New function.
12856 (decode_insn): Add thumb32 instruction handlers.
12857
12858 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12859
12860 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12861 (struct arm_linux_record_tdep): Declare.
12862 (arm_canonicalize_syscall): New function.
12863 (arm_all_but_pc_registers_record): New function.
12864 (arm_linux_syscall_record): New function.
12865 (arm_linux_init_abi): Add syscall recording constructs.
12866 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12867 decoding. (arm_record_coproc_data_proc): Update arm syscall
12868 decoding.
12869 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12870 <arm_syscall_record>: New field.
12871 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12872 gdb_target_obs.
12873
12874 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12875
12876 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12877 register for push instruction recording.
12878
12879 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12880
12881 * arm-tdep.c (thumb_record_misc): Update to correct logical
12882 error while recording ldm, ldmia and pop instructions.
12883
12884 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12885
12886 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12887
12888 2014-01-15 Pedro Alves <palves@redhat.com>
12889
12890 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12891 (go32_resume, go32_fetch_registers, store_register)
12892 (go32_store_registers, go32_prepare_to_store)
12893 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12894 (go32_create_inferior, go32_can_run, go32_terminal_init)
12895 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12896 declarations.
12897
12898 2014-01-15 Tom Tromey <tromey@redhat.com>
12899
12900 * target.h (async_callback_ftype): New typedef.
12901 (struct target_ops) <to_async>: Use it.
12902
12903 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12904
12905 * python/py-value.c (get_field_type): Remove unnecessary curly
12906 braces for single-statement if block.
12907
12908 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12909
12910 * python/py-type.c (convert_field): Add missing empty line
12911 after declarations.
12912
12913 2014-01-14 Doug Evans <dje@google.com>
12914
12915 * symfile.h (expand_symtabs_matching): Renamed from
12916 expand_partial_symbol_names. Update prototype.
12917 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12918 * symfile.c (expand_symtabs_matching): Renamed from
12919 expand_partial_symbol_names. New args file_matcher, kind.
12920 Rename arg fun to symbol_matcher.
12921 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12922 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12923 ada_expand_partial_symbol_name.
12924 (ada_make_symbol_completion_list): Update to call
12925 expand_symtabs_matching.
12926 (ada_add_global_exceptions): Call expand_symtabs_matching.
12927 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12928 call map_symbol_filenames.
12929 * symtab.c (sources_info): Update to call map_symbol_filenames.
12930 (search_symbols): Call expand_symtabs_matching.
12931 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12932 (default_make_symbol_completion_list_break_on): Update to call
12933 expand_symtabs_matching.
12934 (make_source_files_completion_list): Update to call
12935 map_symbol_filenames.
12936
12937 2014-01-14 Doug Evans <dje@google.com>
12938
12939 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12940 (expand_symtabs_symbol_matcher_ftype): New typedef.
12941 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12942 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12943 * symfile.c (expand_partial_symbol_names): Update to use
12944 expand_symtabs_symbol_matcher_ftype.
12945 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12946 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12947 Arg name_matcher renamed to symbol_matcher.
12948 * psymtab.c (recursively_search_psymtabs): Update to use
12949 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12950 sym_matcher.
12951 (expand_symtabs_matching_via_partial): Update to use
12952 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12953 Arg name_matcher renamed to symbol_matcher.
12954
12955 2014-01-14 Doug Evans <dje@google.com>
12956
12957 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12958 (map_partial_symbol_filenames): Ditto.
12959 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12960 (map_partial_symbol_filenames): Ditto.
12961 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12962 (map_partial_symbol_filenames): Ditto.
12963 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12964 (map_partial_symbol_filenames): Ditto.
12965 * symtab.c: Delete #include "psymtab.h".
12966
12967 2014-01-14 Pedro Alves <palves@redhat.com>
12968 Tom Tromey <tromey@redhat.com>
12969
12970 * infrun.c (use_displaced_stepping): Use find_record_target
12971 instead of RECORD_IS_USED.
12972 (adjust_pc_after_break): Use record_full_is_used instead of
12973 RECORD_IS_USED.
12974 * record-btrace.c (record_btrace_open): Call record_preopen
12975 instead of checking RECORD_IS_USED.
12976 * record-full.c (record_full_shortname)
12977 (record_full_core_shortname): New globals.
12978 (record_full_is_used): New function.
12979 (find_full_open): Call record_preopen instead of checking
12980 RECORD_IS_USED.
12981 (init_record_full_ops): Set the target's shortname to
12982 record_full_shortname.
12983 (init_record_full_core_ops): Set the target's shortname to
12984 record_full_core_shortname.
12985 * record-full.h (record_full_is_used): Declare.
12986 * record.c (find_record_target): Make extern.
12987 (record_preopen): New function.
12988 * record.h (RECORD_IS_USED): Delete macro.
12989 (find_record_target, record_preopen): Declare functions.
12990
12991 2014-01-14 Yao Qi <yao@codesourcery.com>
12992
12993 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12994 'len''s type to ULONGEST.
12995 (core_xfer_shared_libraries_aix): Likewise.
12996 * gdbarch.c, gdbarch.h: Regenerated.
12997 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12998 Change type of 'len' to ULONGEST.
12999 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13000 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13001
13002 2014-01-14 Yao Qi <yao@codesourcery.com>
13003
13004 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13005 type of 'len' to ULONGEST.
13006 (linux_xfer_osdata_processgroups): Likewise.
13007 (linux_xfer_osdata_threads): Likewise.
13008 (linux_xfer_osdata_fds): Likewise.
13009 (linux_xfer_osdata_isockets): Likewise.
13010 (linux_xfer_osdata_shm): Likewise.
13011 (linux_xfer_osdata_sem): Likewise.
13012 (linux_xfer_osdata_msg): Likewise.
13013 (linux_common_xfer_osdata): Likewise.
13014 (struct osdata_type) <getter>: Likewise.
13015 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13016 the declaration.
13017
13018 2014-01-14 Yao Qi <yao@codesourcery.com>
13019
13020 * target.h (target_xfer_partial_ftype): Update.
13021 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13022 ULONGEST.
13023 * aix-thread.c (aix_thread_xfer_partial): Change type of
13024 argument 'len' to ULONGEST.
13025 * auxv.c (procfs_xfer_auxv): Likewise.
13026 (ld_so_xfer_auxv): Likewise.
13027 (memory_xfer_auxv): Likewise.
13028 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13029 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13030 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13031 * corelow.c (core_xfer_partial): Likewise.
13032 * ctf.c (ctf_xfer_partial): Likewise.
13033 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13034 '%u'.
13035 (darwin_read_dyld_info): Likewise.
13036 (darwin_xfer_partial): Likewise.
13037 * exec.c (section_table_xfer_memory_partial): Likewise.
13038 (exec_xfer_partial): Likewise.
13039 * exec.h (section_table_xfer_memory_partial): Update
13040 declaration.
13041 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13042 instead of plongest.
13043 (gnu_xfer_partial): Likewise.
13044 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13045 (ia64_hpux_xfer_solib_got): Likewise.
13046 (ia64_hpux_xfer_partial): Likewise.
13047 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13048 * inf-ptrace.c (inf_ptrace_xfer_partial):
13049 * inf-ttrace.c (inf_ttrace_xfer_partial):
13050 * linux-nat.c (linux_xfer_siginfo): Likewise.
13051 (linux_nat_xfer_partial): Likewise.
13052 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13053 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13054 * monitor.c (monitor_xfer_memory): Likewise.
13055 (monitor_xfer_partial): Likewise.
13056 * procfs.c (procfs_xfer_partial): Likewise.
13057 * record-full.c (record_full_xfer_partial): Likewise.
13058 (record_full_core_xfer_partial): Likewise.
13059 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13060 instead of plongest.
13061 (gdbsim_xfer_partial): Likewise.
13062 * remote.c (remote_xfer_partial): Likewise.
13063 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13064 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13065 declaration.
13066 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13067 (rs6000_xfer_shared_libraries): Likewise.
13068 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13069 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13070 (sparc_xfer_partial): Likewise.
13071 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13072 (spu_xfer_partial): Likewise.
13073 * spu-multiarch.c (spu_xfer_partial): Likewise.
13074 * target.c (target_read_live_memory): Likewise.
13075 (memory_xfer_live_readonly_partial): Likewise.
13076 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13077 (target_xfer_partial, default_xfer_partial): Likewise.
13078 (current_xfer_partial): Likewise.
13079 * tracepoint.c (tfile_xfer_partial): Likewise.
13080 * windows-nat.c (windows_xfer_memory): Likewise. Call
13081 pulongest instead of plongest.
13082 (windows_xfer_partial): Likewise.
13083 (windows_xfer_shared_libraries): Likewise.
13084
13085 2014-01-14 Yao Qi <yao@codesourcery.com>
13086
13087 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13088 target_xfer_partial_ftype.
13089
13090 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13091
13092 PR python/15464
13093 PR python/16113
13094 * valops.c (value_struct_elt_bitpos): New function
13095 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13096 object to 'None' if the field name is an empty string ("").
13097 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13098 attribute to look for a field when 'name' is 'None'.
13099 (get_field_type): New function
13100
13101 2014-01-13 Doug Evans <dje@google.com>
13102
13103 PR symtab/16426
13104 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13105 (try_open_dwop_file): Ditto.
13106 * gdb_bfd.c: #include "vec.h".
13107 (bfdp): New typedef.
13108 (struct gdb_bfd_data): New member included_bfds.
13109 (gdb_bfd_unref): Unref all included bfds.
13110 (gdb_bfd_record_inclusion): New function.
13111 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13112
13113 2014-01-13 Tom Tromey <tromey@redhat.com>
13114
13115 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13116
13117 2014-01-13 Tom Tromey <tromey@redhat.com>
13118
13119 * defs.h (use_windows): Remove.
13120 * gdb.c (main): Update.
13121 * main.c (captured_main, gdb_main): Update.
13122 * main.h (struct captured_main_args) <use_windows>: Remove.
13123 * top.c (use_windows): Remove.
13124
13125 2014-01-13 Tom Tromey <tromey@redhat.com>
13126
13127 * defs.h (deprecated_flush_hook): Remove.
13128
13129 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13130
13131 PR threads/16216
13132 * linux-thread-db.c (try_thread_db_load): Add parameter
13133 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13134 (try_thread_db_load_from_pdir_1): Move it there from here.
13135 (try_thread_db_load_from_sdir): Update caller.
13136 (try_thread_db_load_from_dir): Move it there from here.
13137
13138 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13139
13140 * regformats/regdat.sh: Always rewrite the register file.
13141
13142 2014-01-13 Pedro Alves <palves@redhat.com>
13143
13144 * Makefile.in (CHECK_HEADERS): New variable.
13145 (check-headers:): New rule.
13146
13147 2014-01-13 Tom Tromey <tromey@redhat.com>
13148
13149 * cli/cli-setshow.c (do_set_command): Update.
13150 * defs.h (deprecated_set_hook): Remove.
13151 * top.c (deprecated_set_hook): Remove.
13152
13153 2014-01-13 Pedro Alves <palves@redhat.com>
13154
13155 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13156 the tracepoint if the PC is a pseudo-register.
13157
13158 2014-01-13 Tom Tromey <tromey@redhat.com>
13159
13160 * defs.h (XCALLOC): Remove.
13161 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13162 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13163 * dwarf2loc.c (allocate_piece_closure): Likewise.
13164 * elfread.c (elf_symfile_segments): Likewise.
13165 (elf_symfile_segments): Likewise.
13166 * gdbtypes.c (copy_type_recursive): Likewise.
13167 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13168 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13169 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13170 XCALLOC.
13171 * mt-tdep.c (mt_gdbarch_init): Likewise.
13172 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13173 XCALLOC.
13174 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13175 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13176 * registry.c (registry_alloc_data): Likewise.
13177 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13178 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13179 * serial.c (serial_fdopen_ops): Likewise.
13180 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13181 XCALLOC.
13182 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13183 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13184 not XCALLOC.
13185
13186 2014-01-13 Tom Tromey <tromey@redhat.com>
13187
13188 * defs.h (XMALLOC): Remove.
13189 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13190 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13191 * cli-out.c (struct ui_out *): Likewise.
13192 * cli/cli-dump.c (add_dump_command): Likewise.
13193 (add_dump_command): Likewise.
13194 * complaints.c (get_complaints): Likewise.
13195 (find_complaint): Likewise.
13196 * dwarf2-frame.c (execute_cfa_program): Likewise.
13197 * dwarf2read.c (abbrev_table_read_table): Likewise.
13198 * gdbarch.sh: Likewise.
13199 * gdbarch.c: Rebuild.
13200 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13201 * interps.c (interp_new): Likewise.
13202 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13203 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13204 * mi/mi-console.c (mi_console_file_new): Likewise.
13205 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13206 * mi/mi-out.c (mi_out_new): Likewise.
13207 * mi/mi-parse.c (mi_parse): Likewise.
13208 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13209 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13210 * observer.c (xalloc_observer_list_node): Likewise.
13211 * regcache.c (regcache_xmalloc_1): Likewise.
13212 * reggroups.c (reggroup_new): Likewise.
13213 (_initialize_reggroup): Likewise.
13214 * registry.c (register_data_with_cleanup): Likewise.
13215 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13216 * ser-base.c (serial_ttystate): Likewise.
13217 * ser-mingw.c (make_pipe_state): Likewise.
13218 * ser-pipe.c (pipe_open): Likewise.
13219 * serial.c (serial_open): Likewise.
13220 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13221 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13222 (tui_alloc_win_info): Likewise.
13223 (tui_add_content_elements): Likewise.
13224 * tui/tui-file.c (tui_file_new): Likewise.
13225 * tui/tui-out.c (tui_out_new): Likewise.
13226 * ui-file.c (mem_file_new): Likewise.
13227 * ui-out.c (push_level): Likewise.
13228 (make_cleanup_ui_out_end): Likewise.
13229 (append_header_to_list): Likewise.
13230 (ui_out_new): Likewise.
13231 * user-regs.c (user_reg_add_builtin): Likewise.
13232
13233 2014-01-13 Tom Tromey <tromey@redhat.com>
13234
13235 * defs.h (XZALLOC): Remove.
13236 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13237 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13238 (get_ada_tasks_inferior_data): Likewise.
13239 * auto-load.c (get_auto_load_pspace_data): Likewise.
13240 * auxv.c (get_auxv_inferior_data): Likewise.
13241 * bfd-target.c (target_bfd_reopen): Likewise.
13242 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13243 (deprecated_insert_raw_breakpoint): Likewise.
13244 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13245 * corelow.c (core_open): Likewise.
13246 * darwin-nat.c (darwin_check_new_threads): Likewise.
13247 (darwin_attach_pid): Likewise.
13248 * dummy-frame.c (dummy_frame_push): Likewise.
13249 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13250 * dwarf2loc.c (allocate_piece_closure): Likewise.
13251 * elfread.c (elf_symfile_segments): Likewise.
13252 * eval.c (ptrmath_type_p): Likewise.
13253 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13254 * gdbtypes.c (alloc_type_arch): Likewise.
13255 (alloc_type_instance): Likewise.
13256 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13257 * inf-child.c (inf_child_can_use_agent): Likewise.
13258 * inflow.c (get_inflow_inferior_data): Likewise.
13259 * infrun.c (save_infcall_suspend_state): Likewise.
13260 * jit.c (jit_reader_load): Likewise.
13261 (get_jit_objfile_data): Likewise.
13262 (get_jit_program_space_data): Likewise.
13263 (jit_object_open_impl): Likewise.
13264 (jit_symtab_open_impl): Likewise.
13265 (jit_block_open_impl): Likewise.
13266 (jit_frame_sniffer): Likewise.
13267 * linux-fork.c (add_fork): Likewise.
13268 * maint.c (make_command_stats_cleanup): Likewise.
13269 * objfiles.c (get_objfile_pspace_data): Likewise.
13270 * opencl-lang.c (struct lval_closure): Likewise.
13271 * osdata.c (osdata_start_osdata): Likewise.
13272 * progspace.c (new_address_space): Likewise.
13273 (add_program_space): Likewise.
13274 * remote-sim.c (get_sim_inferior_data): Likewise.
13275 * sh-tdep.c (sh_gdbarch_init): Likewise.
13276 * skip.c (Ignore): Likewise.
13277 (skip_delete_command): Likewise.
13278 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13279 (library_list_start_library): Likewise.
13280 (solib_aix_current_sos): Likewise.
13281 * solib-darwin.c (get_darwin_info): Likewise.
13282 (darwin_current_sos): Likewise.
13283 * solib-dsbt.c (get_dsbt_info): Likewise.
13284 * solib-ia64-hpux.c (new_so_list): Likewise.
13285 (ia64_hpux_get_solib_linkage_addr): Likewise.
13286 * solib-spu.c (append_ocl_sos): Likewise.
13287 (spu_current_sos): Likewise.
13288 * solib-svr4.c (get_svr4_info): Likewise.
13289 (svr4_keep_data_in_core): Likewise.
13290 (library_list_start_library): Likewise.
13291 (svr4_default_sos): Likewise.
13292 (svr4_read_so_list): Likewise.
13293 * solib-target.c (library_list_start_library): Likewise.
13294 (solib_target_current_sos): Likewise.
13295 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13296 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13297 * symfile.c (default_symfile_segments): Likewise.
13298 * target-descriptions.c (tdesc_data_init): Likewise.
13299 (tdesc_create_reg): Likewise.
13300 (struct tdesc_type *): Likewise.
13301 (tdesc_create_vector): Likewise.
13302 (tdesc_set_struct_size): Likewise.
13303 (struct tdesc_type *): Likewise.
13304 (tdesc_free_feature): Likewise.
13305 (tdesc_create_feature): Likewise.
13306 * windows-nat.c (windows_add_thread): Likewise.
13307 (windows_make_so): Likewise.
13308 * xml-support.c (gdb_xml_body_text): Likewise.
13309 (gdb_xml_create_parser_and_cleanup): Likewise.
13310 (xml_process_xincludes): Likewise.
13311 * xml-syscall.c (allocate_syscalls_info): Likewise.
13312 (syscall_create_syscall_desc): Likewise.
13313
13314 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13315
13316 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13317 function, with code from i386_stap_parse_special_token.
13318 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13319 (i386_stap_parse_special_token): Move code to the two functions
13320 above; simplify it.
13321
13322 2014-01-09 Pedro Alves <palves@redhat.com>
13323 Hui Zhu <hui@codesourcery.com>
13324
13325 PR gdb/16101
13326 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13327 bp_err_string. Don't mark the location shlib_disabled if the
13328 error thrown wasn't a generic or memory error. Catch errors
13329 thrown while inserting breakpoints in overlayed code. Output
13330 error message of software breakpoints.
13331 * remote.c (remote_insert_breakpoint): If this breakpoint has
13332 target-side commands but this stub doesn't support Z0 packets,
13333 throw NOT_SUPPORTED_ERROR error.
13334 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13335 * target.h (target_insert_breakpoint): Extend comment.
13336 (target_insert_hw_breakpoint): Add comment.
13337
13338 2014-01-08 Pedro Alves <palves@redhat.com>
13339
13340 * remote.c (remote_add_thread): Add threads silently if starting
13341 up.
13342 (remote_notice_new_inferior): If in all-stop, and starting up,
13343 don't call notice_new_inferior.
13344 (get_current_thread): New function, factored out from ...
13345 (add_current_inferior_and_thread): ... this. Adjust.
13346 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13347 found any thread, then select the remote's current thread as GDB's
13348 current thread too.
13349
13350 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13351
13352 * NEWS: Create a new section for the next release branch.
13353 Rename the section of the current branch, now that it has
13354 been cut.
13355
13356 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13357
13358 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13359 * version.in: Bump version to 7.7.50.DATE-cvs.
13360
13361 2014-01-08 Yao Qi <yao@codesourcery.com>
13362
13363 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13364 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13365 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13366
13367 2014-01-08 Yao Qi <yao@codesourcery.com>
13368
13369 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13370 return value of bfd_get_filename to symbol_file_add_from_bfd.
13371
13372 2014-01-08 Pierre Muller <muller@sourceware.org>
13373
13374 Fix PR16201.
13375 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13376 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13377 to prim_record_mininal_symbol_and_info.
13378 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13379 in call to prim_record_minimal_symbol_and_info.
13380 (read_pe_exported_syms): Set index field of section_data.
13381
13382 2014-01-07 Andrew Pinski <apinski@cavium.com>
13383
13384 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13385 * features/aarch64.c: Regenerate.
13386
13387 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13388
13389 * target.c (return_null): Define.
13390 (update_current_target): Use it instead of return_zero for
13391 functions that return a pointer.
13392
13393 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13394
13395 * source.c (add_path): Fix check for duplicated paths in the previously
13396 included paths.
13397
13398 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13399
13400 * ada-lang.c: Remove duplicated include statements.
13401 * alphabsd-nat.c: Ditto.
13402 * amd64-darwin-tdep.c: Ditto.
13403 * amd64fbsd-nat.c: Ditto.
13404 * auto-load.c: Ditto.
13405 * ax-gdb.c: Ditto.
13406 * breakpoint.c: Ditto.
13407 * dbxread.c: Ditto.
13408 * fork-child.c: Ditto.
13409 * gdb_usleep.c: Ditto.
13410 * i386-darwin-tdep.c: Ditto.
13411 * i386fbsd-nat.c: Ditto.
13412 * infcmd.c: Ditto.
13413 * inferior.c: Ditto.
13414 * jv-lang.c: Ditto.
13415 * linux-nat.c: Ditto.
13416 * linux-tdep.c: Ditto.
13417 * m68kbsd-nat.c: Ditto.
13418 * m68klinux-nat.c: Ditto.
13419 * microblaze-tdep.c: Ditto.
13420 * mips-linux-tdep.c: Ditto.
13421 * mn10300-tdep.c: Ditto.
13422 * nto-tdep.c: Ditto.
13423 * opencl-lang.c: Ditto.
13424 * osdata.c: Ditto.
13425 * printcmd.c: Ditto.
13426 * regcache.c: Ditto.
13427 * remote-m32r-sdi.c: Ditto.
13428 * remote.c: Ditto.
13429 * symfile.c: Ditto.
13430 * symtab.c: Ditto.
13431 * tilegx-linux-nat.c: Ditto.
13432 * tilegx-tdep.c: Ditto.
13433 * tracepoint.c: Ditto.
13434 * valops.c: Ditto.
13435 * vaxbsd-nat.c: Ditto.
13436 * windows-nat.c: Ditto.
13437 * xtensa-tdep.c: Ditto.
13438
13439 2014-01-07 Yao Qi <yao@codesourcery.com>
13440
13441 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13442
13443 2014-01-07 Yao Qi <yao@codesourcery.com>
13444 Joel Brobecker <brobecker@adacore.com>
13445
13446 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13447 (pdc_write_regs): Likewise.
13448 (fetch_regs_kernel_thread): Likewise.
13449 (store_regs_kernel_thread): Likewise.
13450
13451 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13452
13453 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13454 tagged type objects to their actual type.
13455
13456 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13457
13458 * ada-valprint.c (print_field_values): Add "language" parameter.
13459 Update calls to print_field_values and print_variant_part.
13460 Pass new parameter "language" in call to val_print instead
13461 of "current_language". Replace call to ada_val_print by call
13462 to val_print.
13463 (print_variant_part): Add "language" parameter.
13464 (ada_val_print_struct_union): Update call to print_field_values.
13465
13466 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13467
13468 * ada-valprint.c (ui_memcpy): Delete.
13469 (ada_print_floating): Update documentation. Add empty line
13470 between between function documentation and implementation.
13471 Delete variable "buffer". Use ui_file_xstrdup in place of
13472 ui_file_put. Minor adjustments following this change.
13473
13474 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13475
13476 * ada-valprint.c (ada_val_print_string): New function,
13477 extracted from ada_val_print_array.
13478 (ada_val_print_array): Replace extracted code by call
13479 to ada_val_print_string followed by a return. Move
13480 "else" branch to the function's top block.
13481
13482 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13483
13484 * ada-valprint.c (ada_val_print_array): Move implementation
13485 down. Rename parameter "offset" and "val" into "offset_aligned"
13486 and "original_value" respectively. Add parameter "offset".
13487
13488 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13489
13490 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13491 re-organizing the code. Change the "???" message printed
13492 when target type is a TYPE_CODE_UNDEF into
13493 "<ref to undefined type>".
13494
13495 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13496
13497 * ada-valprint.c (print_record): Delete, implementation inlined...
13498 (ada_val_print_struct_union): ... here. Remove call to
13499 ada_check_typedef in inlined implementation.
13500
13501 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13502
13503 * ada-valprint.c (ada_val_print_gnat_array): New function,
13504 extracted from ada_val_print_1;
13505 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13506 (ada_val_print_flt, ada_val_print_struct_union)
13507 (ada_val_print_ref): Likewise.
13508 (ada_val_print_1): Delete variables i and elttype.
13509 Replace extracted-out code by call to corresponding
13510 new functions.
13511
13512 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13513
13514 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13515
13516 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13517
13518 * ada-valprint.c (ada_val_print_1): Replace calls to
13519 ada_val_print_1 by calls to val_print.
13520
13521 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13522
13523 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13524 Update calls to self accordingly. Replace calls to c_val_print
13525 by calls to val_print.
13526
13527 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13528
13529 * ada-valprint.c (print_record): Delete declaration.
13530 (adjust_type_signedness, ada_val_print_1): Likewise.
13531 (ada_val_print): Move function implementation down.
13532 (print_variant_part, print_field_values, print_record):
13533 Move function implementation up.
13534
13535 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13536
13537 * python/py-type.c (typy_get_name): New function.
13538 (type_object_getset): Add entry for attribute "name".
13539 * NEWS: Add entry mentioning this new attribute.
13540
13541 2014-01-07 Yao Qi <yao@codesourcery.com>
13542
13543 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13544 statement.
13545
13546 2014-01-07 Yao Qi <yao@codesourcery.com>
13547
13548 * gnu-nat.c (info_port_rights): Add qualifier const to
13549 argument args.
13550
13551 2014-01-07 Yao Qi <yao@codesourcery.com>
13552
13553 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13554
13555 2014-01-07 Yao Qi <yao@codesourcery.com>
13556
13557 * gnu-nat.c (make_inf) Update declaration.
13558 (make_inf): Make it static.
13559 (inf_set_traced): Likewise.
13560 (inf_port_to_thread, inf_task_died_status): Likewise.
13561
13562 2014-01-07 Yao Qi <yao@codesourcery.com>
13563
13564 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13565
13566 2014-01-07 Yao Qi <yao@codesourcery.com>
13567
13568 * gnu-nat.c (_initialize_gnu_nat): Declare.
13569
13570 2014-01-07 Yao Qi <yao@codesourcery.com>
13571
13572 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13573 'enum bfd_endian'.
13574 (struct gdbarch_info) <byte_order>: Change type to
13575 'enum bfd_endian'.
13576 <byte_order_for_code>: Likewise.
13577 * gdbarch.c, gdbarch.h: Regenerated.
13578
13579 2014-01-06 Sasha Smundak <asmundak@google.com>
13580
13581 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13582
13583 2014-01-06 Tom Tromey <tromey@redhat.com>
13584
13585 * doublest.c (convert_doublest_to_floatformat): Use const, not
13586 CONST.
13587 * somread.c (som_symtab_read): Likewise.
13588
13589 2014-01-07 Hui Zhu <hui@codesourcery.com>
13590
13591 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13592 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13593 (gdb_bfd_fopen): Ditto.
13594 (gdb_bfd_openr): Ditto.
13595 (gdb_bfd_openw): Ditto.
13596 (gdb_bfd_openr_iovec): Ditto.
13597 (gdb_bfd_fdopenr): Ditto.
13598 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13599 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13600 with xstrdup.
13601 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13602 with xstrdup.
13603 * symfile-mem.c (symbol_file_add_from_memory): Removed
13604 gdb_bfd_stash_filename.
13605
13606 2014-01-03 Doug Evans <dje@google.com>
13607
13608 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13609 output.
13610
13611 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13612
13613 Update year range in copyright notice of all files.
13614
13615 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13616
13617 * top.c (print_gdb_version): Set copyright year to 2014.
13618
13619 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13620
13621 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13622
13623 For older changes see ChangeLog-2013.
13624 \f
13625 Local Variables:
13626 mode: change-log
13627 left-margin: 8
13628 fill-column: 74
13629 version-control: never
13630 coding: utf-8
13631 End: