1 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
3 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
5 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
6 for the breakpoint's address. Don't preinitialize `placed_size'.
7 (insert_bp_location): Set `reqstd_address' rather than
9 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
10 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
12 (bkpt_remove_location): Likewise.
13 (deprecated_insert_raw_breakpoint): Likewise.
14 (deprecated_remove_raw_breakpoint): Likewise.
15 (find_single_step_breakpoint): Likewise.
16 * mem-break.c (default_memory_insert_breakpoint): Use
17 `reqstd_address' for the breakpoint's address. Don't set
18 `placed_address' or `placed_size' if breakpoint contents couldn't
20 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
21 the breakpoint's address.
22 (remote_insert_hw_breakpoint): Likewise. Don't set
23 `placed_address' or `placed_size' if breakpoint couldn't have been
25 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
26 `reqstd_address' for the breakpoint's address.
27 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
28 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
29 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
30 * microblaze-linux-tdep.c
31 (microblaze_linux_memory_remove_breakpoint): Likewise.
32 * monitor.c (monitor_insert_breakpoint): Likewise.
33 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
34 (procfs_insert_hw_breakpoint): Likewise.
35 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
36 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
37 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
38 * remote-mips.c (mips_insert_breakpoint): Likewise.
39 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
41 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
43 * valops.c (value_assign): Check for bit field assignments
44 before calling architecture-specific register value
47 2014-10-03 Pierre Muller <muller@sourceware.org>
49 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
51 2014-10-02 Pedro Alves <palves@redhat.com>
53 * breakpoint.c (breakpoints_should_be_inserted_now): Use
54 threads_are_executing.
55 * breakpoint.h (breakpoints_should_be_inserted_now): Add
57 * gdbthread.h (threads_are_executing): Declare.
58 (handle_signal_stop) <random signals>: Don't print about the
59 signal here if stopping.
60 (end_stepping_range): Don't notify observers here.
61 (normal_stop): Update the thread list. If stopped by a random
62 signal or a stepping range ended, notify observers.
63 * thread.c (threads_executing): New global.
64 (init_thread_list): Clear 'threads_executing'.
65 (set_executing): Set or clear 'threads_executing'.
66 (threads_are_executing): New function.
67 (update_threads_executing): New function.
68 (update_thread_list): Use it.
70 2014-10-02 Pedro Alves <palves@redhat.com>
73 * breakpoint.c (update_breakpoints_after_exec): Don't create
74 overlay, longjmp, std terminate nor exception breakpoints here.
76 2014-10-02 Pedro Alves <palves@redhat.com>
78 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
80 * inferior.c (find_inferior_for_program_space): Give preference to
82 * inferior.h (find_inferior_for_program_space): Update comment.
83 * progspace.c (switch_to_program_space_and_thread): Prefer the
84 current inferior if it's bound to the program space requested. If
85 the inferior found doesn't have a PID yet, don't bother looking up
87 * progspace.h (switch_to_program_space_and_thread): Adjust
89 * thread.c (any_thread_of_process, any_live_thread_of_process):
90 Give preference to the current thread.
92 2014-10-01 Pedro Alves <palves@redhat.com>
94 * breakpoint.c (insert_bp_location): Error out if inserting a
95 software breakpoint at a read-only address.
96 * target.c (memory_xfer_check_region): New function, factored out
98 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
100 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
101 against the memory region attributes.
103 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
105 * NEWS: Announce new exit-code field in -list-thread-groups
107 * inferior.c (exit_inferior_1): Don't clear exit code.
108 (inferior_appeared): Clear exit code.
109 * mi/mi-main.c (print_one_inferior): Add printing of the exit
112 2014-10-01 Pedro Alves <palves@redhat.com>
114 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
115 GENERATED" along with emacs/vi read-only markers.
116 * regformats/aarch64.dat: Regenerate.
117 * regformats/arm-with-iwmmxt.dat: Regenerate.
118 * regformats/arm-with-neon.dat: Regenerate.
119 * regformats/arm-with-vfpv2.dat: Regenerate.
120 * regformats/arm-with-vfpv3.dat: Regenerate.
121 * regformats/i386/amd64-avx-linux.dat: Regenerate.
122 * regformats/i386/amd64-avx.dat: Regenerate.
123 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
124 * regformats/i386/amd64-avx512.dat: Regenerate.
125 * regformats/i386/amd64-linux.dat: Regenerate.
126 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
127 * regformats/i386/amd64-mpx.dat: Regenerate.
128 * regformats/i386/amd64.dat: Regenerate.
129 * regformats/i386/i386-avx-linux.dat: Regenerate.
130 * regformats/i386/i386-avx.dat: Regenerate.
131 * regformats/i386/i386-avx512-linux.dat: Regenerate.
132 * regformats/i386/i386-avx512.dat: Regenerate.
133 * regformats/i386/i386-linux.dat: Regenerate.
134 * regformats/i386/i386-mmx-linux.dat: Regenerate.
135 * regformats/i386/i386-mmx.dat: Regenerate.
136 * regformats/i386/i386-mpx-linux.dat: Regenerate.
137 * regformats/i386/i386-mpx.dat: Regenerate.
138 * regformats/i386/i386.dat: Regenerate.
139 * regformats/i386/x32-avx-linux.dat: Regenerate.
140 * regformats/i386/x32-avx.dat: Regenerate.
141 * regformats/i386/x32-avx512-linux.dat: Regenerate.
142 * regformats/i386/x32-avx512.dat: Regenerate.
143 * regformats/i386/x32-linux.dat: Regenerate.
144 * regformats/i386/x32.dat: Regenerate.
145 * regformats/microblaze-with-stack-protect.dat: Regenerate.
146 * regformats/mips-dsp-linux.dat: Regenerate.
147 * regformats/mips-linux.dat: Regenerate.
148 * regformats/mips64-dsp-linux.dat: Regenerate.
149 * regformats/mips64-linux.dat: Regenerate.
150 * regformats/nios2-linux.dat: Regenerate.
151 * regformats/rs6000/powerpc-32.dat: Regenerate.
152 * regformats/rs6000/powerpc-32l.dat: Regenerate.
153 * regformats/rs6000/powerpc-64l.dat: Regenerate.
154 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
155 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
156 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
157 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
158 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
159 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
160 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
161 * regformats/s390-linux32.dat: Regenerate.
162 * regformats/s390-linux32v1.dat: Regenerate.
163 * regformats/s390-linux32v2.dat: Regenerate.
164 * regformats/s390-linux64.dat: Regenerate.
165 * regformats/s390-linux64v1.dat: Regenerate.
166 * regformats/s390-linux64v2.dat: Regenerate.
167 * regformats/s390-te-linux64.dat: Regenerate.
168 * regformats/s390x-linux64.dat: Regenerate.
169 * regformats/s390x-linux64v1.dat: Regenerate.
170 * regformats/s390x-linux64v2.dat: Regenerate.
171 * regformats/s390x-te-linux64.dat: Regenerate.
172 * regformats/tic6x-c62x-linux.dat: Regenerate.
173 * regformats/tic6x-c62x.dat: Regenerate.
174 * regformats/tic6x-c64x-linux.dat: Regenerate.
175 * regformats/tic6x-c64x.dat: Regenerate.
176 * regformats/tic6x-c64xp-linux.dat: Regenerate.
177 * regformats/tic6x-c64xp.dat: Regenerate.
179 2014-10-01 Pedro Alves <palves@redhat.com>
181 * features/Makefile: Update comments.
182 (XMLTOC): List all xml files we build C files from.
183 (clean-cfiles): New rule.
185 2014-10-01 Pedro Alves <palves@redhat.com>
187 * features/i386/amd64-avx512-linux.c: Regenerate.
188 * features/i386/amd64-avx512.c: Regenerate.
189 * features/i386/x32-avx512-linux.c: Regenerate.
190 * features/i386/x32-avx512.c: Regenerate.
192 2014-10-01 Pedro Alves <palves@redhat.com>
194 * features/Makefile (WHICH): Remove arm-with-m,
195 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
197 2014-10-01 Pedro Alves <palves@redhat.com>
199 * features/Makefile (clean): New rule.
201 2014-10-01 Pedro Alves <palves@redhat.com>
203 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
204 (zmm14h): Add missing end quotes.
206 2014-10-01 Pedro Alves <palves@redhat.com>
208 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
209 * features/aarch64.c: Regenerate.
211 2014-09-30 Don Breazeal <donb@codesourcery.com>
213 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
214 code so as to work with follow_fork_inferior.
215 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
216 (inf_ttrace_create_inferior): Remove reference to
217 inf_ttrace_vfork_ppid.
218 (inf_ttrace_attach): Ditto.
219 (inf_ttrace_detach): Ditto.
220 (inf_ttrace_kill): Use current_inferior instead of
221 inf_ttrace_vfork_ppid.
222 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
223 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
224 inferior away from the parent.
225 * infrun.c (follow_fork): Call follow_fork_inferior instead of
227 (follow_fork_inferior): New function.
228 (follow_inferior_reset_breakpoints): Make function static.
229 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
230 * linux-nat.c (linux_child_follow_fork): Move target-independent
231 code to infrun.c:follow_fork_inferior.
233 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
235 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
236 * gdbarch.c: Regenerate.
237 * gdbarch.h: Likewise.
238 * corelow.c (sniff_core_bfd): Drop presence check for deleted
239 gdbarch method 'regset_from_core_section'.
240 (get_core_register_section): Remove handling for the case that
241 regset == NULL and regset_from_core_section is defined.
242 (get_core_registers): Drop check for deleted method.
243 * procfs.c (procfs_do_thread_registers): Adjust comment.
245 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
247 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
248 (linux_nat_make_corefile_notes): Remove.
249 (linux_target_install_ops): Do not set target method
250 'make_corefile_notes'.
251 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
253 (linux_corefile_thread_callback): Instead of args->collect, call
254 linux_collect_thread_registers.
255 (linux_make_corefile_notes): Remove 'collect' parameter. Return
256 NULL unless there is a regset iterator.
257 (linux_make_corefile_notes_1): Remove.
258 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
259 by linux_make_corefile_notes.
260 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
262 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
264 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
265 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
267 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
269 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
271 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
272 (xtensa_iterate_over_regset_sections): New.
273 (xtensa_gdbarch_init): Adjust gdbarch initialization.
275 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
277 * vax-tdep.c (vax_regset_from_core_section): Remove.
278 (vax_iterate_over_regset_sections): New.
279 (vax_gdbarch_init): Adjust gdbarch initialization.
281 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
283 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
284 (tilegx_regset_from_core_section): Remove.
285 (tilegx_iterate_over_regset_sections): New.
286 (tilegx_linux_init_abi): Adjust gdbarch initialization.
288 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
290 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
291 (sparc_iterate_over_regset_sections): New.
292 (sparc32_gdbarch_init): Adjust gdbarch initialization.
293 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
295 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
296 (sparc64fbsd_init_abi): Call fbsd_init_abi.
297 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
298 target method 'make_corefile_notes'.
300 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
302 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
303 'sizeof_gregset' and 'sizeof_fpregset'.
304 * sh-tdep.c (sh_regset_from_core_section): Remove.
305 (sh_iterate_over_regset_sections): New.
306 (sh_gdbarch_init): Adjust gdbarch initialization.
307 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
309 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
312 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
314 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
315 (score7_linux_iterate_over_regset_sections): New.
316 (score_gdbarch_init): Adjust gdbarch initialization.
318 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
320 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
322 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
323 method 'make_corefile_notes'.
324 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
325 (ppcfbsd_regset_from_core_section): Remove.
326 (ppcfbsd_iterate_over_regset_sections): New.
327 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
329 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
330 (ppcnbsd_iterate_over_regset_sections): New.
331 (ppcnbsd_init_abi): Adjust.
332 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
333 (ppcobsd_iterate_over_regset_sections): New.
334 (ppcobsd_init_abi): Adjust.
335 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
336 (rs6000_aix_iterate_over_regset_sections): New.
337 (rs6000_aix_init_osabi): Adjust.
339 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
341 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
342 (nios2_regset_from_core_section): Remove.
343 (nios2_iterate_over_regset_sections): New.
344 (nios2_linux_init_abi): Adjust gdbarch initialization.
346 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
348 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
349 (am33_iterate_over_regset_sections): New.
350 (am33_linux_init_osabi): Adjust gdbarch initialization.
352 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
354 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
355 (mips_linux_iterate_over_regset_sections): New.
356 (mips_linux_init_abi): Adjust gdbarch initialization.
357 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
358 (mips64obsd_iterate_over_regset_sections): New.
359 (mips64obsd_init_abi): Adjust.
360 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
361 (mipsnbsd_iterate_over_regset_sections): New.
362 (mipsnbsd_init_abi): Adjust.
364 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
366 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
367 (m88k_iterate_over_regset_sections): New.
368 (m88k_gdbarch_init): Adjust gdbarch initialization.
370 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
372 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
373 (ia64_linux_iterate_over_regset_sections): New.
374 (ia64_linux_init_abi): Adjust gdbarch initialization.
376 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
378 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
379 (m68kbsd_iterate_over_regset_sections): New.
380 (m68kbsd_init_abi): Adjust gdbarch initialization.
381 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
382 (m68k_linux_iterate_over_regset_sections): New.
383 (m68k_linux_init_abi): Adjust gdbarch initialization.
385 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
387 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
388 (m32r_linux_regset_from_core_section): Remove.
389 (m32r_linux_iterate_over_regset_sections): New.
390 (m32r_linux_init_abi): Adjust gdbarch initialization.
392 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
394 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
395 (amd64obsd_iterate_over_regset_sections): New.
396 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
397 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
399 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
400 regset_from_core_section initialization.
401 * i386-tdep.c (i386_regset_from_core_section): Remove.
402 (i386_iterate_over_regset_sections): New.
403 (i386_gdbarch_init): Adjust gdbarch initialization.
404 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
405 (i386_iterate_over_regset_sections): New prototype.
406 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
408 (i386obsd_aout_iterate_over_regset_sections): New.
409 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
410 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
412 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
413 (amd64fbsd_init_abi): Call fbsd_init_abi.
414 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
415 (i386fbsd4_init_abi): Call fbsd_init_abi.
416 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
417 target method 'make_corefile_notes'.
418 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
420 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
422 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
423 (hppa_hpux_iterate_over_regset_sections): New.
424 (hppa_hpux_init_abi): Adjust gdbarch initialization.
425 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
426 (hppa_linux_iterate_over_regset_sections): New.
427 (hppa_linux_init_abi): Adjust.
428 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
429 (hppanbsd_iterate_over_regset_sections): New.
430 (hppanbsd_init_abi): Adjust.
431 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
432 (hppaobsd_iterate_over_regset_sections): New.
433 (hppaobsd_init_abi): Adjust.
435 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
437 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
438 (frv_linux_iterate_over_regset_sections): New.
439 (frv_linux_init_abi): Adjust gdbarch initialization.
441 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
443 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
444 (armbsd_iterate_over_regset_sections): New prototype.
445 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
446 (armbsd_iterate_over_regset_sections): New.
447 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
450 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
452 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
453 (alpha_linux_iterate_over_regset_sections): New.
454 (alpha_linux_init_abi): Adjust gdbarch initialization.
455 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
457 (alphanbsd_iterate_over_regset_sections): New prototype.
459 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
461 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
463 (aarch64_linux_iterate_over_regset_sections): New.
464 (aarch64_linux_init_abi): Adjust gdbarch initialization.
466 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
468 * fbsd-tdep.c: New file.
469 * fbsd-tdep.h: New file.
470 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
471 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
472 (ALLDEPFILES): Add fbsd-tdep.c.
474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
476 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
478 * gdbarch.h: Regenerate.
479 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
481 (get_core_register_section): Add parameter 'regset' and use it, if
482 set. Add parameter 'min_size' and verify the bfd section size
484 (get_core_registers_cb): Add parameter 'regset' and pass it to
485 get_core_register section. For the "standard" register sections
486 ".reg" and ".reg2", set an appropriate default for human_name.
487 (get_core_registers): Don't abort when the gdbarch has an iterator
488 but no regset_from_core_section. Add NULL/0 for parameters
489 'regset'/'min_size' in calls to get_core_register_section.
490 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
491 'regset' and use it instead of calling the
492 regset_from_core_section gdbarch method.
493 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
494 * i386-tdep.c (i386_supply_xstateregset)
495 (i386_collect_xstateregset, i386_xstateregset): Moved to
497 (i386_regset_from_core_section): Drop handling for .reg-xfp and
499 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
500 core file support only if the regset iterator hasn't been set.
501 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
502 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
503 Moved from i386-tdep.c and renamed to *_linux*.
504 (i386_linux_iterate_over_regset_sections): Add regset parameter to
505 each callback invocation. Allow any .reg-xstate size when reading
507 * amd64-tdep.c (amd64_supply_xstateregset)
508 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
510 (amd64_regset_from_core_section): Remove.
511 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
512 install an amd64-specific regset_from_core_section gdbarch method.
513 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
514 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
515 Moved from amd64-tdep.c and renamed to *_linux*.
516 (amd64_linux_iterate_over_regset_sections): Add regset parameter
517 to each callback invocation. Allow any .reg-xstate size when
518 reading from a core file.
519 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
520 (arm_linux_iterate_over_regset_sections): Add regset parameter to
521 each callback invocation.
522 (arm_linux_init_abi): No longer set the regset_from_core_section
524 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
525 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
526 each callback invocation.
527 (ppc_linux_init_abi): No longer set the regset_from_core_section
529 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
530 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
531 (s390_regset_from_core_section): Remove.
532 (s390_iterate_over_regset_sections): Add regset parameter to each
534 (s390_gdbarch_init): No longer set the regset_from_core_section
535 gdbarch method. Drop initialization of deleted tdep fields.
537 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
539 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
540 (amd64_linux_iterate_over_regset_sections): New.
541 (amd64_linux_init_abi_common): Don't install the regset section
542 list, but the new iterator in gdbarch.
543 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
544 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
545 (arm_linux_iterate_over_regset_sections): ...here. New function.
546 (arm_linux_init_abi): Set iterator instead of section list.
547 * corelow.c (get_core_registers_cb): New function, logic moved
549 (get_core_registers): ...loop body here. Use new iterator method
550 instead of walking through the regset section list.
551 * gdbarch.sh: Remove 'core_regset_sections'. New method
552 'iterate_over_regset_sections'. New typedef
553 'iterate_over_regset_sections_cb'.
554 * gdbarch.c: Regenerate.
555 * gdbarch.h: Likewise.
556 * i386-linux-tdep.c (i386_linux_regset_sections)
557 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
559 (i386_linux_iterate_over_regset_sections): New.
560 (i386_linux_init_abi): Don't choose a regset section list, but
561 install new iterator in gdbarch.
562 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
563 (linux_collect_regset_section_cb): New function, logic moved
565 (linux_collect_thread_registers): ...loop body here. Use iterator
566 method instead of walking through list.
567 (linux_make_corefile_notes_1): Check for presence of iterator
568 method instead of regset section list.
569 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
570 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
571 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
572 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
573 (ppc_linux_iterate_over_regset_sections): ...here. New function.
574 (ppc_linux_init_abi): Don't choose from above regset section
575 lists, but install new iterator in gdbarch.
576 * regset.h (struct core_regset_section): Remove.
577 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
578 have_linux_v1, have_linux_v2, and have_tdb.
579 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
580 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
581 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
582 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
583 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
584 (s390_iterate_over_regset_sections): ...here. New function. Use
586 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
587 regset section lists, but install new iterator.
589 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
591 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
593 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
595 * progspace.c (print_program_space): Don't prune program spaces
596 before printing them.
598 2014-09-25 Pedro Alves <palves@redhat.com>
600 * infrun.c (user_visible_resume_ptid): Don't check
601 singlestep_breakpoints_inserted_p.
603 2014-09-25 Pedro Alves <palves@redhat.com>
605 * breakpoint.c (should_be_inserted): Add debug output.
607 2014-09-25 Pedro Alves <palves@redhat.com>
609 * infrun.c (stepping_past_instruction_at)
610 (clear_exit_convenience_vars): Point at infrun.h instead of
612 (handle_signal_stop): Fix typo.
614 2014-09-24 Yao Qi <yao@codesourcery.com>
616 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
619 2014-09-22 Gary Benson <gbenson@redhat.com>
621 * target.c (target_stop): Updated comment.
623 2014-09-22 Gary Benson <gbenson@redhat.com>
625 * target/target.h (target_stop_ptid): Renamed as...
626 (target_stop_and_wait): New function. Updated comment.
628 (target_continue_ptid): Renamed as...
629 (target_continue_no_signal): New function. Updated comment.
632 2014-09-22 Pedro Alves <palves@redhat.com>
634 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
636 * breakpoint.c (enum ugll_insert_mode): New enum.
637 (always_inserted_mode): Now a plain boolean.
638 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
639 (breakpoints_always_inserted_mode): Delete.
640 (breakpoints_should_be_inserted_now): New function.
641 (insert_breakpoints): Pass UGLL_INSERT to
642 update_global_location_list instead of calling
643 insert_breakpoint_locations manually.
644 (create_solib_event_breakpoint_1): New, factored out from ...
645 (create_solib_event_breakpoint): ... this.
646 (create_and_insert_solib_event_breakpoint): Use
647 create_solib_event_breakpoint_1 instead of calling
648 insert_breakpoint_locations manually.
649 (update_global_location_list): Change parameter type from boolean
650 to enum ugll_insert_mode. All callers adjusted. Adjust to use
651 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
652 (update_global_location_list_nothrow): Change parameter type from
653 boolean to enum ugll_insert_mode.
654 (_initialize_breakpoint): "breakpoint always-inserted" option is
655 now a boolean command. Update help text.
656 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
657 (breakpoints_should_be_inserted_now): New declaration.
658 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
659 Remove breakpoints_always_inserted_mode check.
660 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
661 * remote.c (remote_start_remote): Likewise.
663 2014-09-22 Pedro Alves <palves@redhat.com>
665 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
666 (insert_breakpoints): Don't call insert_breakpoint_locations here.
667 Instead, pass UGLL_INSERT to update_global_location_list.
668 (update_global_location_list): Change parameter type from boolean
669 to enum ugll_insert_mode. All callers adjusted. Adjust to use
670 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
671 (create_solib_event_breakpoint_1): New, factored out from ...
672 (create_solib_event_breakpoint): ... this.
673 (create_and_insert_solib_event_breakpoint): Use
674 create_solib_event_breakpoint_1 instead of calling
675 insert_breakpoint_locations manually.
676 (update_global_location_list): Handle UGLL_INSERT.
678 2014-09-22 Pedro Alves <palves@redhat.com>
680 * breakpoint.c (enum ugll_insert_mode): New enum.
681 (update_global_location_list)
682 (update_global_location_list_nothrow): Change parameter type from
683 boolean to enum ugll_insert_mode. All callers adjusted.
685 2014-09-19 Joel Brobecker <brobecker@adacore.com>
687 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
688 SystemTap support in GDB.
690 2014-09-19 Don Breazeal <donb@codesourcery.com>
692 * linux-nat.c (linux_handle_extended_wait): Call
693 linux_ptrace_get_extended_event.
694 (wait_lwp): Call linux_is_extended_waitstatus.
695 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
696 and linux_is_extended_waitstatus.
697 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
698 linux_ptrace_get_extended_event.
699 (linux_ptrace_get_extended_event): New function.
700 (linux_is_extended_waitstatus): New function.
701 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
702 (linux_is_extended_waitstatus): New declarations.
704 2014-09-19 Yao Qi <yao@codesourcery.com>
706 * dwarf2read.c (dwarf_decode_lines): Update declaration.
707 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
708 comments. Callers update.
709 (dwarf_decode_lines): Likewise.
710 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
711 comments. Skip the line table if 'lowpc' is greater than
712 'address'. Don't check
713 dwarf2_per_objfile->has_section_at_zero.
715 2014-09-18 Doug Evans <dje@google.com>
717 * NEWS: Mention new "producer" attribute of gdb.Symtab.
718 * python/py-symtab.c (stpy_get_producer): New function.
719 (symtab_object_getset): Add "producer" attribute.
721 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
724 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
725 (do_captured_read_memory_integer): Remove.
726 (safe_read_memory_integer): Use target_read_memory directly instead
727 of catching errors in do_captured_read_memory_integer.
729 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
731 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
734 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
736 * objc-lang.c (find_implementation_from_class): Remove dead code.
738 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
741 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
742 "fprintf_unfiltered (gdb_stdlog...)".
744 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
747 * breakpoint.h (struct watchpoint): New fields val_bitpos and
749 * breakpoint.c (watch_command_1): Use these fields to retain
750 bitfield information.
751 (extract_bitfield_from_watchpoint_value): New function.
752 (watchpoint_check): Use it.
753 (update_watchpoint): Use it. Optimize the address and length of a
754 HW watchpoint pointing to a bitfield.
755 * value.h (unpack_value_bitfield): New prototype.
756 * value.c (unpack_value_bitfield): Make extern.
758 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
760 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
762 * gnu-nat.c (inf_threads): New function.
763 * gnu-nat.h (inf_threads_ftype): New typedef.
764 (inf_threads): New declaration.
765 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
766 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
767 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
768 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
769 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
770 (i386_gnu_dr_get_control): New functions.
771 (reg_addr): New structure.
772 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
773 i386 debugging register hooks.
774 * NEWS: Mention this.
776 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
778 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
779 vector data transfer instructions.
780 (arm_record_coproc_data_proc): Updated.
782 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
784 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
785 arm_record_exreg_ld_st_insn.
786 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
789 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
791 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
792 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
793 processing instructions.
795 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
797 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
798 for advance SIMD struct ld/st insn.
799 (thumb2_record_decode_insn_handler): Replace stub handler with
800 thumb2_record_asimd_struct_ld_st.
802 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
804 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
805 for asimd, vfp and coprocessor insns.
806 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
807 and coprocessor insns.
808 (thumb2_record_coproc_insn): New function.
809 (thumb2_record_decode_insn_handler): Update coprocessor insns record
811 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
814 2014-09-13 Doug Evans <xdje42@gmail.com>
816 * NEWS: Mention new "queue-signal" command.
817 * infcmd.c (queue_signal_command): New function.
818 (_initialize_infcmd): Add new queue-signal command.
820 2014-09-13 Doug Evans <xdje42@gmail.com>
822 * linux-nat.c (wait_lwp): Add debugging printf.
823 (linux_nat_wait_1): Ditto.
825 2014-09-12 Pedro Alves <palves@redhat.com>
827 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
828 (create_and_insert_solib_event_breakpoint): New functions.
829 * breakpoint.h (create_and_insert_solib_event_breakpoint)
830 (remove_solib_event_breakpoints_at_next_stop): New declarations.
831 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
832 (remove_dbx_link_breakpoint): Delete function.
833 (insert_dbx_link_bpt_in_file): Use
834 create_and_insert_solib_event_breakpoint instead of
835 deprecated_insert_raw_breakpoint.
836 (procfs_wait): Don't check whether we hit __dbx_link here.
837 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
839 * solib-irix.c (base_breakpoint): Delete global.
840 (disable_break): Delete function.
841 (enable_break): Use create_solib_event_breakpoint
842 instead of deprecated_insert_raw_breakpoint.
843 (irix_solib_handle_event): New function.
844 (irix_solib_create_inferior_hook): Don't run the target or disable
845 the mapping-complete breakpoint here.
846 (_initialize_irix_solib): Install irix_solib_handle_event as
847 so_ops->handle_event hook.
849 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
850 Ulrich Weigand <uweigand@de.ibm.com>
853 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
854 instead of read_memory_unsigned_integer.
856 2014-09-12 Gary Benson <gbenson@redhat.com>
858 * nat/linux-waitpid.c: Include common-defs.h.
859 [GDBSERVER]: Add FIXME comment.
860 [!GDBSERVER]: Don't include defs.h or signal.h.
861 (linux_debug) [!GDBSERVER]: Remove empty block.
863 2014-09-12 Gary Benson <gbenson@redhat.com>
865 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
866 Don't include defs.h or server.h.
868 2014-09-12 Gary Benson <gbenson@redhat.com>
870 * nat/linux-btrace.c: Include common-defs.h.
871 Don't include defs.h, server.h or gdbthread.h.
872 * nat/linux-btrace.h (struct target_ops): New forward declaration.
874 2014-09-12 Gary Benson <gbenson@redhat.com>
876 * common/agent.c: Include common-defs.h.
877 Don't include defs.h or server.h.
878 * common/buffer.c: Likewise.
879 * common/common-debug.c: Likewise.
880 * common/common-utils.c: Likewise.
881 * common/errors.c: Likewise.
882 * common/filestuff.c: Likewise.
883 * common/format.c: Likewise.
884 * common/gdb_vecs.c: Likewise.
885 * common/print-utils.c: Likewise.
886 * common/ptid.c: Likewise.
887 * common/rsp-low.c: Likewise.
888 * common/signals.c: Likewise.
889 * common/vec.c: Likewise.
890 * common/xml-utils.c: Likewise.
891 * nat/linux-osdata.c: Likewise.
892 * nat/linux-procfs.c: Likewise.
893 * nat/linux-ptrace.c: Likewise.
894 * nat/mips-linux-watch.c: Likewise.
895 * target/waitstatus.c: Likewise.
897 2014-09-12 Tom Tromey <tromey@redhat.com>
898 Gary Benson <gbenson@redhat.com>
900 * common/common-regcache.h: New file.
901 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
902 * regcache.h: Include common-regcache.h.
903 (regcache_read_pc): Don't declare.
904 * regcache.c (get_thread_regcache_for_ptid): New function.
905 * nat/linux-btrace.c: Don't include regcache.h.
906 Include common-regcache.h.
907 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
909 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
911 * regcache.h (struct regset): Declare.
913 2014-09-11 Pedro Alves <palves@redhat.com>
916 * main.c: Include "infrun.h".
917 (catch_command_errors, catch_command_errors_const): Wait for the
918 foreground command to complete.
919 * top.c (maybe_wait_sync_command_done): New function, factored out
921 (maybe_wait_sync_command_done): ... here.
922 * top.h (maybe_wait_sync_command_done): New declaration.
924 2014-09-11 Tom Tromey <tromey@redhat.com>
925 Gary Benson <gbenson@redhat.com>
927 * common/symbol.h: New file.
928 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
929 * minsyms.c (find_minimal_symbol_address): New function.
930 * common/agent.c: Include common/symbol.h.
931 [!GDBSERVER]: Don't include objfiles.h.
932 (agent_look_up_symbols): Use find_minimal_symbol_address.
934 2014-09-11 Gary Benson <gbenson@redhat.com>
936 * target/target.h (target_stop_ptid, target_continue_ptid):
938 * target.c (target_stop_ptid, target_continue_ptid): New
940 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
941 (agent_run_command): Always use target_stop_ptid and
942 target_continue_ptid.
944 2014-09-11 Tom Tromey <tromey@redhat.com>
945 Gary Benson <gbenson@redhat.com>
947 * target/target.h: New file.
948 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
949 * target.h: Include target/target.h.
950 (target_read_memory, target_write_memory): Don't declare.
951 * target.c (target_read_uint32): New function.
952 * common/agent.c: Include target/target.h.
953 [!GDBSERVER]: Don't include target.h.
954 (helper_thread_id): Type changed to uint32_t.
955 (agent_get_helper_thread_id): Use target_read_uint32.
956 (agent_run_command): Always use target_read_memory and
958 (agent_capability): Type changed to uint32_t.
959 (agent_capability_check): Use target_read_uint32.
961 2014-09-11 Gary Benson <gbenson@redhat.com>
963 * common/common-debug.h (show_debug_regs): Declare.
964 * common/common-debug.c (show_debug_regs): Define.
965 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
966 all uses with show_debug_regs. Replace all uses that considered
967 debug_hw_points as a multi-value integer with straight boolean
969 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
970 with show_debug_regs.
971 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
972 all uses with show_debug_regs.
973 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
974 uses with show_debug_regs.
976 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
978 * findvar.c (address_from_register): Handle targets requiring
979 a special conversion routine even for plain pointer types.
981 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
983 * rs6000-nat.c (exec_one_dummy_insn): Remove.
984 (store_register): Do not call exec_one_dummy_insn.
986 2014-09-10 Joel Brobecker <brobecker@adacore.com>
988 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
989 dereference it first. Use value_enclosing_type instead of
991 (ada_array_length): Likewise.
993 2014-09-10 Joel Brobecker <brobecker@adacore.com>
995 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
996 Adjust function implementation and documentation accordingly.
997 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
998 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
999 Update call to ada_value_ptr_subscript.
1001 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1003 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1004 instead of VAL's type.
1006 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1008 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1010 2014-09-09 Doug Evans <xdje42@gmail.com>
1013 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1014 last parameter to pkg-config, not first.
1015 * configure.ac: Pass --with-guile provided pkg-config path to
1016 GDB_GUILE_PROGRAM_NAMES.
1017 * configure: Regenerate.
1019 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1021 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1024 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1026 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1027 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1028 the list of sections determining GDB_OSABI_IRIX.
1030 2014-09-09 James Hogan <james.hogan@imgtec.com>
1032 * MAINTAINERS (Write After Approval): Add "James Hogan".
1034 2014-09-09 James Hogan <james.hogan@imgtec.com>
1036 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1038 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1040 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1042 2014-09-08 Doug Evans <xdje42@gmail.com>
1045 * guile.c: #include <signal.h>.
1046 (_initialize_guile): Block SIGCHLD while initializing Guile.
1048 Replaces the following, which is reverted.
1050 2014-07-26 Doug Evans <xdje42@gmail.com>
1053 * configure.ac: Add check for header gc/gc.h.
1054 Add check for function setenv.
1055 * configure: Regenerate.
1056 * config.in: Regenerate.
1057 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1059 2014-09-08 Doug Evans <xdje42@gmail.com>
1061 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1062 with named constant. Fix style of pointer comparison.
1063 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1065 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1068 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1069 decide whether we display the command on "show user".
1070 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1071 printing command name.
1072 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1073 * cli/cli-decode.c (cli_user_command_p): Create helper function
1074 to verify whether cmd_list_element is a user-defined command.
1076 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1080 Fix goto out of TRY_CATCH.
1082 2014-09-06 Doug Evans <xdje42@gmail.com>
1083 Tom Tromey <tromey@redhat.com>
1086 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1087 $_any_caller_matches.
1088 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1089 * python/lib/gdb/function/caller_is.py: New file.
1091 2014-09-06 Doug Evans <xdje42@gmail.com>
1093 * infcmd.c (program_info): Fix typo.
1095 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1098 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1099 'number'. New variable 'has_digit'. Rewrite code to deal with
1100 subexpressions on SDT probes.
1102 2014-09-04 Pedro Alves <palves@redhat.com>
1104 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1105 the input is only one character long.
1107 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1110 * f-valprint.c (f_val_print): Specify the correct print option to
1111 use when printing integer values.
1113 2014-09-04 Gary Benson <gbenson@redhat.com>
1115 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1116 Remove code to cope with LWPs wrapped as PIDs.
1117 Add assertions to ensure no wrapped LWPs are passed.
1119 2014-09-04 Pedro Alves <palves@redhat.com>
1121 * value.c (value_ranges_copy_adjusted): New function, factored out
1123 (value_contents_copy_raw): ... here.
1124 (unpack_value_bits_as_long_1): Rename back to ...
1125 (unpack_bits_as_long): ... this. Remove 'original_value' and
1126 'result' parameters. Change return type to LONGEST.
1127 (unpack_value_bits_as_long): Delete.
1128 (unpack_value_field_as_long_1): Delete.
1129 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1130 (unpack_value_bitfield): New function.
1131 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1132 (value_fetch_lazy): Use unpack_value_bitfield.
1133 * value.h (unpack_value_bits_as_long): Delete declaration.
1135 2014-09-03 Sasha Smundak <asmundak@google.com>
1137 * python/py-frame.c (frapy_read_register): New function.
1139 2014-09-03 James Hogan <james.hogan@imgtec.com>
1141 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1142 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1144 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1147 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1149 (add_cmd): Set "completer_handle_brkchars" to NULL.
1150 * cli/cli-decode.h (struct cmd_list_element)
1151 <completer_handle_brkchars>: New field.
1152 * command.h (completer_ftype_void): New typedef.
1153 (set_cmd_completer_handle_brkchars): New prototype.
1154 * completer.c (set_gdb_completion_word_break_characters): New
1156 (complete_line_internal): Call "completer_handle_brkchars"
1157 callback from command.
1158 * completer.h: Include "command.h".
1159 (set_gdb_completion_word_break_characters): New prototype.
1160 * python/py-cmd.c (cmdpy_completer_helper): New function.
1161 (cmdpy_completer_handle_brkchars): New function.
1162 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1163 (cmdpy_init): Set completer_handle_brkchars to
1164 cmdpy_completer_handle_brkchars.
1166 2014-09-03 Gary Benson <gbenson@redhat.com>
1168 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1169 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1170 Loop conditions changed to equivalent form.
1171 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1172 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1173 ALL_DEBUG_ADDRESS_REGISTERS.
1175 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1177 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1180 2014-09-02 Doug Evans <dje@google.com>
1182 * typeprint.c (find_global_typedef): Fix comment.
1184 2014-09-02 Gary Benson <gbenson@redhat.com>
1186 * i386-nat.h: Renamed as...
1187 * x86-nat.h: New file. All type, function and variable name
1188 prefixes changed from "i386_" to "x86_". All references updated.
1189 * i386-nat.c: Renamed as...
1190 * x86-nat.c: New file. All type, function and variable name
1191 prefixes changed from "i386_" to "x86_". All references updated.
1192 * common/i386-xstate.h: Renamed as...
1193 * common/x86-xstate.h: New file. All type, function and variable
1194 name prefixes changed from "i386_" to "x86_". All references
1196 * nat/i386-cpuid.h: Renamed as...
1197 * nat/x86-cpuid.h: New file. All type, function and variable name
1198 prefixes changed from "i386_" to "x86_". All references updated.
1199 * nat/i386-gcc-cpuid.h: Renamed as...
1200 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1201 name prefixes changed from "i386_" to "x86_". All references
1203 * nat/i386-dregs.h: Renamed as...
1204 * nat/x86-dregs.h: New file. All type, function and variable name
1205 prefixes changed from "i386_" to "x86_". All references updated.
1206 * nat/i386-dregs.c: Renamed as...
1207 * nat/x86-dregs.c: New file. All type, function and variable name
1208 prefixes changed from "i386_" to "x86_". All references updated.
1210 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1212 * varobj.c (_initialize_varobj): Move to the end of file.
1214 2014-08-29 Gary Benson <gbenson@redhat.com>
1216 * common/common-exceptions.h: New file.
1217 * common/common-exceptions.c: Likewise.
1218 * Makefile.in (SFILES): Add common/common-exceptions.c.
1219 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1220 (COMMON_OBS): Add common-exceptions.o.
1221 (common-exceptions.o): New rule.
1222 * exceptions.h (common-exceptions.h): Include.
1223 (gdb_setjmp.h): Do not include.
1224 (return_reason): Moved to common-exceptions.h.
1225 (enum return_reason): Likewise.
1226 (RETURN_MASK): Likewise.
1227 (typedef return_mask): Likewise.
1228 (enum errors): Likewise.
1229 (struct gdb_exception): Likewise.
1230 (exceptions_state_mc_init): Likewise.
1231 (exceptions_state_mc_action_iter): Likewise.
1232 (exceptions_state_mc_action_iter_1): Likewise.
1233 (TRY_CATCH): Likewise.
1234 (throw_exception): Likewise.
1235 (throw_verror): Likewise.
1236 (throw_vquit): Likewise.
1237 (throw_error): Likewise.
1238 (throw_quit): Likewise.
1239 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1240 (enum catcher_action): Likewise.
1241 (struct catcher): Likewise.
1242 (current_catcher): Likewise.
1243 (catcher_list_size): Likewise.
1244 (exceptions_state_mc_init): Likewise.
1245 (catcher_pop): Likewise.
1246 (exceptions_state_mc): Likewise.
1247 (exceptions_state_mc_action_iter): Likewise.
1248 (exceptions_state_mc_action_iter_1): Likewise.
1249 (throw_exception): Likewise.
1250 (exception_messages): Likewise.
1251 (exception_messages_size): Likewise.
1252 (throw_it): Likewise.
1253 (throw_verror): Likewise.
1254 (throw_vquit): Likewise.
1255 (throw_error): Likewise.
1256 (throw_quit): Likewise.
1257 (prepare_to_throw_exception): New function.
1259 2014-08-29 Gary Benson <gbenson@redhat.com>
1261 * common/gdb_setjmp.h: New file.
1262 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1263 * configure.ac: Move sigsetjmp check...
1264 * common/common.m4: ...here.
1265 * configure: Regenerate.
1266 * cp-support.c (SIGJMP_BUF): Delete.
1267 (SIGSETJMP): Likewise.
1268 (SIGLONGJMP): Likewise.
1269 * exceptions.h (gdb_setjmp.h): Include.
1270 (setjmp.h): Do not include.
1271 (EXCEPTIONS_SIGJMP_BUF): Delete.
1272 (EXCEPTIONS_SIGSETJMP): Likewise.
1273 (EXCEPTIONS_SIGLONGJMP): Likewise.
1274 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1276 * exceptions.c: Likewise.
1278 2014-08-29 Gary Benson <gbenson@redhat.com>
1280 * cleanups.h: Moved to...
1281 * common/cleanups.h: New file.
1282 * cleanups.c: Moved to...
1283 * common/cleanups.c: New file. Include common-defs.h and
1284 cleanups.h. Do not include defs.h.
1285 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1286 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1287 (cleanups.o): New rule.
1289 2014-08-29 Gary Benson <gbenson@redhat.com>
1291 * common/errors.h (internal_warning): New declaration.
1292 (internal_vwarning): Likewise.
1293 * common/errors.c (internal_warning): New function.
1294 * utils.h (internal_warning): Don't declare.
1295 (internal_vwarning): Likewise.
1296 * utils.c (internal_warning): Removed.
1298 2014-08-29 Gary Benson <gbenson@redhat.com>
1300 * main.c (captured_main): Use warning during startup.
1301 Prefix startup warning messages with command name.
1303 2014-08-29 Gary Benson <gbenson@redhat.com>
1305 * main.c (captured_main): Handle usage errors with error.
1307 2014-08-29 Gary Benson <gbenson@redhat.com>
1309 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1310 exit pair with a call to error. Wrap the message with _().
1312 2014-08-29 Gary Benson <gbenson@redhat.com>
1314 * main.c (captured_main): Replace a fprintf/exit
1315 pair with a call to error. Wrap the message with _().
1317 2014-08-29 Gary Benson <gbenson@redhat.com>
1319 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1320 pairs with calls to error. Wrap the message with _().
1322 2014-08-29 Gary Benson <gbenson@redhat.com>
1324 * utils.c (vwarning): Protect calls to target_terminal_ours
1327 2014-08-29 Gary Benson <gbenson@redhat.com>
1329 * exceptions.c (print_flush): Protect calls to
1330 target_terminal_ours and wrap_here.
1332 2014-08-29 Gary Benson <gbenson@redhat.com>
1334 * utils.h (filtered_printing_initialized): New declaration.
1335 * utils.c (abort_with_message): New function.
1336 (internal_vproblem): Use abort_with_message for first level
1337 recursive internal problems, and if gdb_stderr is not set up.
1338 Protect calls to target_terminal_ours, begin_line and query.
1340 2014-08-28 Doug Evans <dje@google.com>
1342 * symtab.c (in_prologue): Move definition to better spot.
1343 (skip_prologue_using_sal): Ditto.
1345 2014-08-28 Doug Evans <dje@google.com>
1347 * symtab.c (find_function_start_sal): Move definition to better spot.
1349 2014-08-28 Yao Qi <yao@codesourcery.com>
1351 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1352 found_stack_adjust in forward scan. Remove condition check
1353 on found_stack_adjust which is always true. Indent the code.
1355 2014-08-28 Yao Qi <yao@codesourcery.com>
1357 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1358 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1359 (dwarf_decode_lines): Remove argument
1360 want_line_info. Remove condition check on want_line_info.
1363 2014-08-27 Doug Evans <dje@google.com>
1365 * dwarf2read.c (dwarf_record_line): Fix typo.
1367 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1369 * target.h (struct target_ops::to_terminal_save_ours): Remove
1371 (target_terminal_save_ours): Remove macro.
1372 * target-delegates.c: Regenerate.
1373 * inf-child.c (inf_child_target): Don't set the nonexistent
1374 field to_terminal_save_ours.
1375 * inferior.h (child_terminal_save_ours): Remove declaration.
1376 * terminal.h (gdb_save_tty_state): New declaration.
1377 * inflow.c (child_terminal_save_ours): Rename to ...
1378 (gdb_save_tty_state): ... this.
1379 * tui/tui.c: Include terminal.h.
1380 (tui_enable): Use gdb_save_tty_state instead of
1381 target_terminal_save_ours.
1382 (tui_disable): Likewise.
1384 2014-08-25 Doug Evans <dje@google.com>
1386 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1387 Pass NULL instead of 0 for context pointer.
1389 2014-08-25 Yao Qi <yao@codesourcery.com>
1391 * dwarf2read.c: Fix grammatical error.
1393 2014-08-24 Yao Qi <yao@codesourcery.com>
1395 * dwarf2read.c (scan_partial_symbols): Update comments.
1396 Rename argument 'need_pc' with 'set_addrmap'.
1397 (add_partial_namespace): Rename argument 'need_pc' with
1399 (add_partial_module): Likewise.
1400 (add_partial_subprogram): Likewise. Update comments.
1401 (dwarf2_name): Fix typo.
1403 2014-08-22 Doug Evans <dje@google.com>
1406 * dwarf2read.c (dwarf_record_line_p): New function.
1407 (dwarf_decode_lines_1): Ignore subsequent line number entries
1408 for the same line if any entry had a non-zero discriminator.
1410 2014-08-22 Doug Evans <dje@google.com>
1412 * buildsym.h (record_line_ftype): New typedef.
1413 (record_line): Use it.
1414 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1415 (dwarf_decode_lines_1): Call them.
1417 2014-08-22 Yao Qi <yao@codesourcery.com>
1419 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1420 (ctf_end): Remove code.
1422 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1424 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1425 (linux_make_corefile_notes): call update_thread_list, protected against
1428 2014-08-21 Pedro Alves <palves@redhat.com>
1430 * infcmd.c (attach_command): Remove comment.
1432 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1434 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1435 unsigned LONGEST to ULONGEST.
1437 2014-08-20 Pedro Alves <palves@redhat.com>
1439 * Makefile.in (check-read1): New rule.
1441 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1443 * value.c (value_from_contents_and_address): Strip resolved_type's
1444 typedef layers before checking its TYPE_DATA_LOCATION.
1446 2014-08-20 Pedro Alves <palves@redhat.com>
1448 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1450 2014-08-20 Yao Qi <yao@codesourcery.com>
1452 * amd64-tdep.c (amd64_classify): Add a blank line after the
1453 example. Move "*/" to a new line.
1454 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1455 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1456 * dwarf2read.c (psymtab_include_file_name): Likewise.
1458 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1459 Pedro Alves <palves@redhat.com>
1463 * ada-lang.c (coerce_unspec_val_to_type): Use
1464 value_contents_copy_raw.
1465 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1466 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1467 * cp-valprint.c (cp_print_value_fields): Let the common printing
1468 code handle optimized out values.
1469 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1470 * d-valprint.c (dynamic_array_type): Use
1471 value_bits_any_optimized_out.
1472 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1473 check_any_valid fields.
1474 (check_pieced_value_bits): Delete and inline ...
1475 (check_pieced_synthetic_pointer): ... here.
1476 (check_pieced_value_validity): Delete.
1477 (check_pieced_value_invalid): Delete.
1478 (pieced_value_funcs): Remove check_validity and check_any_valid
1480 (read_pieced_value): Use mark_value_bits_optimized_out.
1481 (write_pieced_value): Switch to use
1482 mark_value_bytes_optimized_out.
1483 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1484 of assuming the whole value is optimized out.
1485 * findvar.c (read_frame_register_value): Remove special handling
1486 of optimized out registers.
1487 (value_from_register): Use mark_value_bytes_optimized_out.
1488 * frame-unwind.c (frame_unwind_got_optimized): Use
1489 mark_value_bytes_optimized_out.
1490 * jv-valprint.c (java_value_print): Adjust.
1491 (java_print_value_fields): Let the common printing code handle
1492 optimized out values.
1493 * mips-tdep.c (mips_print_register): Remove special handling of
1494 optimized out registers.
1495 * opencl-lang.c (lval_func_check_validity): Delete.
1496 (lval_func_check_any_valid): Delete.
1497 (opencl_value_funcs): Remove check_validity and check_any_valid
1499 * p-valprint.c (pascal_object_print_value_fields): Let the common
1500 printing code handle optimized out values.
1501 * stack.c (read_frame_arg): Remove special handling of optimized
1502 out values. Fetch both VAL and ENTRYVAL before comparing
1503 contents. Adjust to value_available_contents_eq rename.
1504 * valprint.c (valprint_check_validity)
1505 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1506 (val_print_array_elements): Adjust.
1507 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1508 (value_bits_any_optimized_out): New function.
1509 (value_entirely_covered_by_range_vector): New function, factored
1510 out from value_entirely_unavailable.
1511 (value_entirely_unavailable): Reimplement.
1512 (value_entirely_optimized_out): New function.
1513 (insert_into_bit_range_vector): New function, factored out from
1514 mark_value_bits_unavailable.
1515 (mark_value_bits_unavailable): Reimplement.
1516 (struct ranges_and_idx): New struct.
1517 (find_first_range_overlap_and_match): New function, factored out
1518 from value_available_contents_bits_eq.
1519 (value_available_contents_bits_eq): Rename to ...
1520 (value_contents_bits_eq): ... this. Check both unavailable
1521 contents and optimized out contents.
1522 (value_available_contents_eq): Rename to ...
1523 (value_contents_eq): ... this.
1524 (allocate_value_lazy): Remove reference to the old optimized_out
1526 (allocate_optimized_out_value): Use
1527 mark_value_bytes_optimized_out.
1528 (require_not_optimized_out): Adjust to check whether the
1529 optimized_out vec is empty.
1530 (ranges_copy_adjusted): New function, factored out from
1531 value_contents_copy_raw.
1532 (value_contents_copy_raw): Also copy the optimized out ranges.
1533 Assert the destination ranges aren't optimized out.
1534 (value_contents_copy): Update comment, remove call to
1535 require_not_optimized_out.
1536 (value_contents_equal): Adjust to check whether the optimized_out
1538 (set_value_optimized_out, value_optimized_out_const): Delete.
1539 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1541 (value_entirely_optimized_out, value_bits_valid): Delete.
1542 (value_copy): Take a VEC copy of the 'optimized_out' field.
1543 (value_primitive_field): Remove special handling of optimized out.
1544 (value_fetch_lazy): Assert that lazy values have no unavailable
1545 regions. Use value_bits_any_optimized_out. Remove some special
1546 handling for optimized out values.
1547 * value.h: Add intro comment about <optimized out> and
1549 (struct lval_funcs): Remove check_validity and check_any_valid
1551 (set_value_optimized_out, value_optimized_out_const): Remove.
1552 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1554 (value_bits_any_optimized_out): New declaration.
1555 (value_bits_valid): Delete declaration.
1556 (value_available_contents_eq): Rename to ...
1557 (value_contents_eq): ... this, and extend comments.
1559 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1561 Fix -fsanitize=address on unreadable inferior strings.
1562 * valprint.c (val_print_string): Fix access before BUFFER.
1564 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1566 * target.c (target_struct_size): Remove.
1567 (target_struct_allocsize): Remove.
1568 (DEFAULT_ALLOCSIZE): Remove.
1569 (target_ops_p): New typedef.
1570 (DEF_VEC_P (target_ops_p)): New vector type.
1571 (target_structs): Change type to VEC (target_ops_p).
1572 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1573 (find_default_run_target): Rewrite for loop following changes to
1576 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1578 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1579 Adjust code accordingly. Adjust function description comment.
1581 2014-08-19 Yao Qi <yao@codesourcery.com>
1583 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1586 2014-08-19 Alan Modra <amodra@gmail.com>
1588 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1589 * config.in: Regenerate.
1590 * configure: Regenerate.
1592 2014-08-19 Tom Tromey <tromey@redhat.com>
1593 Gary Benson <gbenson@redhat.com>
1595 * common/common-debug.h: New file.
1596 * common/common-debug.c: Likewise.
1597 * debug.c: Likewise.
1598 * Makefile.in (SFILES): Add common/common-debug.c.
1599 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1600 (COMMON_OBS): Add common-debug.o and debug.o.
1601 (common-debug.o): New rule.
1602 * common/common-defs.h: Include common-debug.h.
1603 * common/agent.c (debug_agent_printf): New function.
1604 (DEBUG_AGENT): Redefine.
1605 * nat/i386-dregs.c (debug_printf): Undefine.
1607 2014-08-19 Gary Benson <gbenson@redhat.com>
1609 * common/common-defs.h: Include print-utils.h.
1610 * utils.h: Do not include print-utils.h.
1612 2014-08-19 Tom Tromey <tromey@redhat.com>
1613 Gary Benson <gbenson@redhat.com>
1615 * common/common-types.h: New file.
1616 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1617 * common/common-defs.h: Include common-types.h.
1618 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1621 2014-08-19 Tom Tromey <tromey@redhat.com>
1622 Gary Benson <gbenson@redhat.com>
1624 * common/errors.h: New file.
1625 * common/errors.c: Likewise.
1626 * Makefile.in (SFILES): Add common/errors.c.
1627 (HFILES_NO_SRCDIR): Add common/errors.h.
1628 (COMMON_OBS): Add errors.o.
1629 (errors.o): New rule.
1630 * common/common-defs.h: Include errors.h.
1631 * utils.h (perror_with_name, error, verror, warning, vwarning):
1633 * common/common-utils.h: (malloc_failure, internal_error):
1636 2014-08-19 Gary Benson <gbenson@redhat.com>
1638 * utils.c (internal_vproblem): Always print the message.
1640 2014-08-18 Doug Evans <dje@google.com>
1642 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1644 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1646 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1647 Return 0 if TYPE is dynamic.
1648 (print_range): Add handling of dynamic ranges.
1650 2014-08-18 Keven Boell <keven.boell@intel.com>
1651 Joel Brobecker <brobecker@adacore.com>
1653 * gdbtypes.h (struct main_type): Add field "data_location".
1654 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1655 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1656 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1657 a dynamic data location.
1658 (resolve_dynamic_type): Add DW_AT_data_location handling.
1659 (copy_recursive, copy_type): Copy the data_location information
1661 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1662 * value.c (value_from_contents_and_address): Add
1663 DW_AT_data_location handling.
1665 2014-08-18 Keven Boell <keven.boell@intel.com>
1666 Joel Brobecker <brobecker@adacore.com>
1668 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1669 field "get_object_address".
1670 * dwarf2expr.c (execute_stack_op): Add handling for
1671 DW_OP_push_object_address.
1672 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1673 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1674 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1675 (dwarf_expr_get_obj_addr): New function.
1676 (dwarf_expr_ctx_funcs): Add get_object_address field.
1677 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1678 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1679 (dwarf2_evaluate_property): Add parameter "address". Use it.
1680 (needs_get_obj_addr): New function.
1681 (needs_frame_ctx_funcs): Add get_object_address field.
1682 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1683 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1684 (resolve_dynamic_array): Likewise.
1686 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1688 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1689 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1690 fixed value for records and unions for which some GNAT encodings
1693 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1695 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1696 rewrite to avoid "else if" and "else" constructs. Should be
1697 a no-op in practice.
1699 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1701 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1704 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1707 * eval.c: Update all calls to find_overload_match.
1708 * valarith.c: Likewise.
1709 (value_user_defined_cpp_op, value_user_defined_op): New
1710 argument NOSIDE. Update all callers.
1711 * valops.c (find_overload_match): New argument NOSIDE.
1712 * value.h (find_overload_match): Update signature.
1714 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1716 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1717 'items' methods instead of 'iteritems' method on dictionaries.
1719 2014-08-15 Doug Evans <dje@google.com>
1721 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1724 2014-08-15 Doug Evans <dje@google.com>
1726 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1728 2014-08-15 Doug Evans <dje@google.com>
1730 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1732 2014-08-15 Doug Evans <dje@google.com>
1734 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1737 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1739 * dcache.h: Include target.h, to avoid compile time warnings.
1741 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1743 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1744 frame_info" partial declaration.
1745 * gdbarch.h: Regenerate.
1747 2014-08-15 Yao Qi <yao@codesourcery.com>
1749 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1750 Add parameter 'decode_for_pst_p'. Callers update.
1752 2014-08-13 Yao Qi <yao@codesourcery.com>
1755 * configure.ac: Use local variable 'pos'.
1756 * configure: Regenerated.
1758 2014-08-11 Doug Evans <dje@google.com>
1760 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1761 message, it is redundant with "Reading symbols from ..." message.
1763 2014-08-10 Doug Evans <xdje42@gmail.com>
1765 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1767 2014-08-09 Yao Qi <yao@codesourcery.com>
1770 * remote.c (remote_xfer_partial): Remove dead code.
1772 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1774 * ia64-linux-tdep.c: Include "regset.h".
1775 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1776 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1777 (ia64_linux_supply_fpregset): New function.
1778 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1779 (ia64_linux_regset_from_core_section): New function.
1780 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1783 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1785 * m68klinux-tdep.c: Include "regset.h".
1786 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1787 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1788 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1789 (m68k_linux_regset_from_core_section): New function.
1790 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1793 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1795 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1796 function. Move logic to...
1797 (tilegx_linux_regmap): ... this new register map.
1798 (tilegx_linux_regset): Refer to register map, replace supply
1799 method by regcache_supply_regset, and add collect method.
1800 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1801 TILEGX_FIRST_EASY_REGNUM.
1803 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1805 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1806 that calls regcache_supply_regset and handles the EPC register
1807 separately. Move main logic to...
1808 (score7_linux_gregmap): ... this new register map.
1809 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1810 (score7_linux_gregset): Refer to register map. Add collect method.
1811 (score7_linux_regset_from_core_section): Replace
1812 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1813 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1814 (struct regset): Delete unused forward declaraction.
1815 (struct pt_regs): Delete structure definition.
1816 (elf_gregset_t): Delete typedef.
1818 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1820 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1821 (nios2_core_regset): Add collect method.
1823 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1825 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1826 platform-independent and don't write to read-only input buffer.
1827 (m32r_linux_collect_gregset): New function.
1828 (m32r_linux_gregset): Add collect method.
1830 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1832 * hppa-linux-tdep.c (greg_map): Rename to...
1833 (hppa_linux_gregmap): ... this. Also convert to
1834 regcache_map_entry format.
1835 (hppa_linux_supply_regset): Delete function.
1836 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1837 (hppa_linux_fpregmap): ... this new register map.
1838 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1839 register map, replace supply method by regcache_supply_regset, and
1840 add collect method regcache_collect_regset.
1842 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1844 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1845 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1846 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1847 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1848 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1849 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1850 (frv_linux_supply_gregset): Replace main logic by call to
1851 regcache_supply_regset, but keep clearing gr32-gr63.
1852 (frv_linux_supply_fpregset): Delete function.
1853 (frv_linux_gregset): Refer to appropriate register map and add
1854 regcache_collect_regset as the collect method.
1855 (frv_linux_fpregset): Likewise. Also exchange the supply method
1856 by regcache_supply_regset.
1858 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1860 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1861 by call to alpha_supply_int_regs.
1862 (alpha_linux_collect_gregset): New function.
1863 (alpha_linux_supply_fpregset): Replace logic by call to
1864 alpha_supply_fp_regs.
1865 (alpha_linux_collect_fpregset): New function.
1866 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1868 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1870 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1871 by call to regcache_collect_regset.
1872 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1873 instead of aarch64_linux_supply_gregset/_fpregset.
1874 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1875 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1876 header file instead.
1877 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1878 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1879 functions. Move logic to ...
1880 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1882 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1883 refer to new register maps, replace *_regset_from_core by
1884 regcache_supply_regset, and also use regcache_collect_regset.
1885 * aarch64-linux-tdep.h: Include "regset.h".
1886 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1888 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1889 macros, moved from C source file.
1890 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1891 variable declarations.
1893 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1895 * s390-linux-nat.c: Include "regset.h".
1896 (regmap_gregset): Delete macro.
1897 (s390_64_regmap_gregset): New register map for
1898 regcache_supply/_collect_regset.
1899 (s390_64_gregset): New regset.
1900 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1901 (regmap_fpregset): Delete macro.
1902 (s390_native_supply, s390_native_collect): Delete functions.
1903 (supply_gregset, fill_gregset): Replace s390-specific regmap
1904 handling by a call to regcache_supply/_collect_regset.
1905 (supply_fpregset, fill_fpregset): Call regcache_supply/
1906 _collect_regset instead of s390_native_supply/_collect.
1907 (fetch_regset, store_regset): Likewise. Also change the last
1908 parameter to a regset instead of a regmap.
1909 (s390_linux_fetch_inferior_registers)
1910 (390_linux_store_inferior_registers): Adjust last parameter in
1911 calls to fetch_regset and store_regset.
1912 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1913 (s390_gregmap): ... this. Also make static const and convert to
1914 regcache_map_entry format.
1915 (s390x_regmap_gregset): Delete.
1916 (s390_regmap_fpregset): Rename to...
1917 (s390_fpregmap): ... this. Make static const and convert to
1918 regcache_map_entry format.
1919 (s390_regmap_upper, s390_regmap_last_break)
1920 (s390x_regmap_last_break, s390_regmap_system_call)
1921 (s390_regmap_tdb): Likewise.
1922 (s390_supply_regset, s390_collect_regset): Remove functions.
1923 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1925 (s390_gregset, s390_fpregset, s390_upper_regset)
1926 (s390_last_break_regset, s390x_last_break_regset)
1927 (s390_system_call_regset, s390_tdb_regset): Make global and
1928 replace s390_supply/_collect_regset by regcache_supply/
1930 (s390x_gregset): Delete.
1931 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1932 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1933 (s390_regmap_fpregset, s390_regmap_last_break)
1934 (s390x_regmap_last_break, s390_regmap_system_call)
1935 (s390_regmap_tdb): Delete global variable declarations.
1936 (s390_gregset, s390_fpregset, s390_last_break_regset)
1937 (s390x_last_break_regset, s390_system_call_regset)
1938 (s390_tdb_regset): New global variable declarations.
1940 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1942 * regcache.c: Include "regset.h".
1943 (regcache_transfer_regset): New local function.
1944 (regcache_supply_regset, regcache_collect_regset): New functions.
1945 * regcache.h (struct regcache_map_entry): New structure.
1946 (REGCACHE_MAP_SKIP): New enum value.
1947 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1949 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1951 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1952 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1953 (ppc_linux_collect_gregset ): Likewise.
1954 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1955 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1956 (ppc_collect_vrregset): Likewise.
1957 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1960 2014-08-07 Yao Qi <yao@codesourcery.com>
1962 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1963 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1964 * remote.c (remote_read_bytes): Likewise.
1966 2014-08-07 Yao Qi <yao@codesourcery.com>
1968 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1970 2014-08-07 Yao Qi <yao@codesourcery.com>
1973 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1974 TARGET_XFER_OK instead of 0.
1976 2014-08-07 Gary Benson <gbenson@redhat.com>
1978 * common/common-defs.h: Include errno.h.
1979 * defs.h: Do not include errno.h.
1980 * ada-typeprint.c: Likewise.
1981 * c-typeprint.c: Likewise.
1982 * core-regset.c: Likewise.
1983 * corefile.c: Likewise.
1984 * corelow.c: Likewise.
1985 * event-loop.c: Likewise.
1986 * f-typeprint.c: Likewise.
1987 * gnu-nat.c: Likewise.
1988 * go32-nat.c: Likewise.
1989 * i386gnu-nat.c: Likewise.
1990 * m2-typeprint.c: Likewise.
1991 * nat/linux-btrace.c: Likewise.
1992 * p-typeprint.c: Likewise.
1993 * procfs.c: Likewise.
1994 * remote-sim.c: Likewise.
1995 * rs6000-nat.c: Likewise.
1996 * target.c: Likewise.
1997 * typeprint.c: Likewise.
1998 * ui-file.c: Likewise.
1999 * valops.c: Likewise.
2000 * valprint.c: Likewise.
2002 2014-08-07 Gary Benson <gbenson@redhat.com>
2004 * common/common-defs.h: Include string.h.
2005 * aarch64-tdep.c: Do not include string.h.
2006 * ada-exp.y: Likewise.
2007 * ada-lang.c: Likewise.
2008 * ada-lex.l: Likewise.
2009 * ada-typeprint.c: Likewise.
2010 * ada-valprint.c: Likewise.
2011 * aix-thread.c: Likewise.
2012 * alpha-linux-tdep.c: Likewise.
2013 * alpha-mdebug-tdep.c: Likewise.
2014 * alpha-nat.c: Likewise.
2015 * alpha-osf1-tdep.c: Likewise.
2016 * alpha-tdep.c: Likewise.
2017 * alphanbsd-tdep.c: Likewise.
2018 * amd64-dicos-tdep.c: Likewise.
2019 * amd64-linux-tdep.c: Likewise.
2020 * amd64-nat.c: Likewise.
2021 * amd64-sol2-tdep.c: Likewise.
2022 * amd64fbsd-tdep.c: Likewise.
2023 * amd64obsd-tdep.c: Likewise.
2024 * arch-utils.c: Likewise.
2025 * arm-linux-nat.c: Likewise.
2026 * arm-linux-tdep.c: Likewise.
2027 * arm-tdep.c: Likewise.
2028 * arm-wince-tdep.c: Likewise.
2029 * armbsd-tdep.c: Likewise.
2030 * armnbsd-nat.c: Likewise.
2031 * armnbsd-tdep.c: Likewise.
2032 * armobsd-tdep.c: Likewise.
2033 * avr-tdep.c: Likewise.
2034 * ax-gdb.c: Likewise.
2035 * ax-general.c: Likewise.
2036 * bcache.c: Likewise.
2037 * bfin-tdep.c: Likewise.
2038 * breakpoint.c: Likewise.
2039 * build-id.c: Likewise.
2040 * buildsym.c: Likewise.
2041 * c-exp.y: Likewise.
2042 * c-lang.c: Likewise.
2043 * c-typeprint.c: Likewise.
2044 * c-valprint.c: Likewise.
2045 * charset.c: Likewise.
2046 * cli-out.c: Likewise.
2047 * cli/cli-cmds.c: Likewise.
2048 * cli/cli-decode.c: Likewise.
2049 * cli/cli-dump.c: Likewise.
2050 * cli/cli-interp.c: Likewise.
2051 * cli/cli-logging.c: Likewise.
2052 * cli/cli-script.c: Likewise.
2053 * cli/cli-setshow.c: Likewise.
2054 * cli/cli-utils.c: Likewise.
2055 * coffread.c: Likewise.
2056 * common/agent.c: Likewise.
2057 * common/buffer.c: Likewise.
2058 * common/buffer.h: Likewise.
2059 * common/common-utils.c: Likewise.
2060 * common/filestuff.c: Likewise.
2061 * common/filestuff.c: Likewise.
2062 * common/format.c: Likewise.
2063 * common/print-utils.c: Likewise.
2064 * common/rsp-low.c: Likewise.
2065 * common/signals.c: Likewise.
2066 * common/vec.h: Likewise.
2067 * common/xml-utils.c: Likewise.
2068 * core-regset.c: Likewise.
2069 * corefile.c: Likewise.
2070 * corelow.c: Likewise.
2071 * cp-abi.c: Likewise.
2072 * cp-name-parser.y: Likewise.
2073 * cp-support.c: Likewise.
2074 * cp-valprint.c: Likewise.
2075 * cris-tdep.c: Likewise.
2076 * d-exp.y: Likewise.
2077 * darwin-nat.c: Likewise.
2078 * dbxread.c: Likewise.
2079 * dcache.c: Likewise.
2080 * demangle.c: Likewise.
2081 * dicos-tdep.c: Likewise.
2082 * disasm.c: Likewise.
2083 * doublest.c: Likewise.
2084 * dsrec.c: Likewise.
2085 * dummy-frame.c: Likewise.
2086 * dwarf2-frame.c: Likewise.
2087 * dwarf2loc.c: Likewise.
2088 * dwarf2read.c: Likewise.
2089 * elfread.c: Likewise.
2090 * environ.c: Likewise.
2092 * event-loop.c: Likewise.
2093 * exceptions.c: Likewise.
2095 * expprint.c: Likewise.
2096 * f-exp.y: Likewise.
2097 * f-lang.c: Likewise.
2098 * f-typeprint.c: Likewise.
2099 * f-valprint.c: Likewise.
2100 * fbsd-nat.c: Likewise.
2101 * findcmd.c: Likewise.
2102 * findvar.c: Likewise.
2103 * fork-child.c: Likewise.
2104 * frame.c: Likewise.
2105 * frv-linux-tdep.c: Likewise.
2106 * frv-tdep.c: Likewise.
2108 * gdb_bfd.c: Likewise.
2109 * gdbarch.c: Likewise.
2110 * gdbarch.sh: Likewise.
2111 * gdbtypes.c: Likewise.
2112 * gnu-nat.c: Likewise.
2113 * gnu-v2-abi.c: Likewise.
2114 * gnu-v3-abi.c: Likewise.
2115 * go-exp.y: Likewise.
2116 * go-lang.c: Likewise.
2117 * go32-nat.c: Likewise.
2118 * guile/guile.c: Likewise.
2119 * guile/scm-auto-load.c: Likewise.
2120 * hppa-hpux-tdep.c: Likewise.
2121 * hppa-linux-nat.c: Likewise.
2122 * hppanbsd-tdep.c: Likewise.
2123 * hppaobsd-tdep.c: Likewise.
2124 * i386-cygwin-tdep.c: Likewise.
2125 * i386-dicos-tdep.c: Likewise.
2126 * i386-linux-tdep.c: Likewise.
2127 * i386-nto-tdep.c: Likewise.
2128 * i386-sol2-tdep.c: Likewise.
2129 * i386-tdep.c: Likewise.
2130 * i386bsd-tdep.c: Likewise.
2131 * i386gnu-nat.c: Likewise.
2132 * i386nbsd-tdep.c: Likewise.
2133 * i386obsd-tdep.c: Likewise.
2134 * i387-tdep.c: Likewise.
2135 * ia64-libunwind-tdep.c: Likewise.
2136 * ia64-linux-nat.c: Likewise.
2137 * inf-child.c: Likewise.
2138 * inf-ptrace.c: Likewise.
2139 * inf-ttrace.c: Likewise.
2140 * infcall.c: Likewise.
2141 * infcmd.c: Likewise.
2142 * inflow.c: Likewise.
2143 * infrun.c: Likewise.
2144 * interps.c: Likewise.
2145 * iq2000-tdep.c: Likewise.
2146 * irix5-nat.c: Likewise.
2147 * jv-exp.y: Likewise.
2148 * jv-lang.c: Likewise.
2149 * jv-typeprint.c: Likewise.
2150 * jv-valprint.c: Likewise.
2151 * language.c: Likewise.
2152 * linux-fork.c: Likewise.
2153 * linux-nat.c: Likewise.
2154 * lm32-tdep.c: Likewise.
2155 * m2-exp.y: Likewise.
2156 * m2-typeprint.c: Likewise.
2157 * m32c-tdep.c: Likewise.
2158 * m32r-linux-nat.c: Likewise.
2159 * m32r-linux-tdep.c: Likewise.
2160 * m32r-rom.c: Likewise.
2161 * m32r-tdep.c: Likewise.
2162 * m68hc11-tdep.c: Likewise.
2163 * m68k-tdep.c: Likewise.
2164 * m68kbsd-tdep.c: Likewise.
2165 * m68klinux-nat.c: Likewise.
2166 * m68klinux-tdep.c: Likewise.
2167 * m88k-tdep.c: Likewise.
2168 * machoread.c: Likewise.
2169 * macrocmd.c: Likewise.
2171 * mdebugread.c: Likewise.
2172 * mem-break.c: Likewise.
2173 * memattr.c: Likewise.
2174 * memory-map.c: Likewise.
2175 * mep-tdep.c: Likewise.
2176 * mi/mi-cmd-break.c: Likewise.
2177 * mi/mi-cmd-disas.c: Likewise.
2178 * mi/mi-cmd-env.c: Likewise.
2179 * mi/mi-cmd-stack.c: Likewise.
2180 * mi/mi-cmd-var.c: Likewise.
2181 * mi/mi-cmds.c: Likewise.
2182 * mi/mi-console.c: Likewise.
2183 * mi/mi-getopt.c: Likewise.
2184 * mi/mi-interp.c: Likewise.
2185 * mi/mi-main.c: Likewise.
2186 * mi/mi-parse.c: Likewise.
2187 * microblaze-rom.c: Likewise.
2188 * microblaze-tdep.c: Likewise.
2189 * mingw-hdep.c: Likewise.
2190 * minidebug.c: Likewise.
2191 * minsyms.c: Likewise.
2192 * mips-irix-tdep.c: Likewise.
2193 * mips-linux-tdep.c: Likewise.
2194 * mips-tdep.c: Likewise.
2195 * mips64obsd-tdep.c: Likewise.
2196 * mipsnbsd-tdep.c: Likewise.
2197 * mipsread.c: Likewise.
2198 * mn10300-linux-tdep.c: Likewise.
2199 * mn10300-tdep.c: Likewise.
2200 * monitor.c: Likewise.
2201 * moxie-tdep.c: Likewise.
2202 * mt-tdep.c: Likewise.
2203 * nat/linux-btrace.c: Likewise.
2204 * nat/linux-osdata.c: Likewise.
2205 * nat/linux-procfs.c: Likewise.
2206 * nat/linux-ptrace.c: Likewise.
2207 * nat/linux-waitpid.c: Likewise.
2208 * nbsd-tdep.c: Likewise.
2209 * nios2-linux-tdep.c: Likewise.
2210 * nto-procfs.c: Likewise.
2211 * nto-tdep.c: Likewise.
2212 * objc-lang.c: Likewise.
2213 * objfiles.c: Likewise.
2214 * opencl-lang.c: Likewise.
2215 * osabi.c: Likewise.
2216 * osdata.c: Likewise.
2217 * p-exp.y: Likewise.
2218 * p-lang.c: Likewise.
2219 * p-typeprint.c: Likewise.
2220 * parse.c: Likewise.
2221 * posix-hdep.c: Likewise.
2222 * ppc-linux-nat.c: Likewise.
2223 * ppc-sysv-tdep.c: Likewise.
2224 * ppcfbsd-tdep.c: Likewise.
2225 * ppcnbsd-tdep.c: Likewise.
2226 * ppcobsd-tdep.c: Likewise.
2227 * printcmd.c: Likewise.
2228 * procfs.c: Likewise.
2229 * prologue-value.c: Likewise.
2230 * python/py-auto-load.c: Likewise.
2231 * python/py-gdb-readline.c: Likewise.
2232 * ravenscar-thread.c: Likewise.
2233 * regcache.c: Likewise.
2234 * registry.c: Likewise.
2235 * remote-fileio.c: Likewise.
2236 * remote-m32r-sdi.c: Likewise.
2237 * remote-mips.c: Likewise.
2238 * remote-notif.c: Likewise.
2239 * remote-sim.c: Likewise.
2240 * remote.c: Likewise.
2241 * reverse.c: Likewise.
2242 * rs6000-aix-tdep.c: Likewise.
2243 * ser-base.c: Likewise.
2244 * ser-go32.c: Likewise.
2245 * ser-mingw.c: Likewise.
2246 * ser-pipe.c: Likewise.
2247 * ser-tcp.c: Likewise.
2248 * ser-unix.c: Likewise.
2249 * serial.c: Likewise.
2250 * sh-tdep.c: Likewise.
2251 * sh64-tdep.c: Likewise.
2252 * shnbsd-tdep.c: Likewise.
2254 * sol-thread.c: Likewise.
2255 * solib-dsbt.c: Likewise.
2256 * solib-frv.c: Likewise.
2257 * solib-osf.c: Likewise.
2258 * solib-som.c: Likewise.
2259 * solib-spu.c: Likewise.
2260 * solib-target.c: Likewise.
2261 * solib.c: Likewise.
2262 * somread.c: Likewise.
2263 * source.c: Likewise.
2264 * sparc-nat.c: Likewise.
2265 * sparc-sol2-tdep.c: Likewise.
2266 * sparc-tdep.c: Likewise.
2267 * sparc64-tdep.c: Likewise.
2268 * sparc64fbsd-tdep.c: Likewise.
2269 * sparc64nbsd-tdep.c: Likewise.
2270 * sparcnbsd-tdep.c: Likewise.
2271 * spu-linux-nat.c: Likewise.
2272 * spu-multiarch.c: Likewise.
2273 * spu-tdep.c: Likewise.
2274 * stabsread.c: Likewise.
2275 * stack.c: Likewise.
2276 * std-regs.c: Likewise.
2277 * symfile.c: Likewise.
2278 * symmisc.c: Likewise.
2279 * symtab.c: Likewise.
2280 * target.c: Likewise.
2281 * thread.c: Likewise.
2282 * tilegx-linux-nat.c: Likewise.
2283 * tilegx-tdep.c: Likewise.
2285 * tracepoint.c: Likewise.
2286 * tui/tui-command.c: Likewise.
2287 * tui/tui-data.c: Likewise.
2288 * tui/tui-disasm.c: Likewise.
2289 * tui/tui-file.c: Likewise.
2290 * tui/tui-layout.c: Likewise.
2291 * tui/tui-out.c: Likewise.
2292 * tui/tui-regs.c: Likewise.
2293 * tui/tui-source.c: Likewise.
2294 * tui/tui-stack.c: Likewise.
2295 * tui/tui-win.c: Likewise.
2296 * tui/tui-windata.c: Likewise.
2297 * tui/tui-winsource.c: Likewise.
2298 * typeprint.c: Likewise.
2299 * ui-file.c: Likewise.
2300 * ui-out.c: Likewise.
2301 * user-regs.c: Likewise.
2302 * utils.c: Likewise.
2303 * v850-tdep.c: Likewise.
2304 * valarith.c: Likewise.
2305 * valops.c: Likewise.
2306 * valprint.c: Likewise.
2307 * value.c: Likewise.
2308 * varobj.c: Likewise.
2309 * vax-tdep.c: Likewise.
2310 * vaxnbsd-tdep.c: Likewise.
2311 * vaxobsd-tdep.c: Likewise.
2312 * windows-nat.c: Likewise.
2313 * xcoffread.c: Likewise.
2314 * xml-support.c: Likewise.
2315 * xstormy16-tdep.c: Likewise.
2316 * xtensa-linux-nat.c: Likewise.
2318 2014-08-07 Gary Benson <gbenson@redhat.com>
2320 * common/common-defs.h: Include gdb_assert.h.
2321 * aarch64-tdep.c: Do not include gdb_assert.h.
2322 * addrmap.c: Likewise.
2323 * aix-thread.c: Likewise.
2324 * alpha-linux-tdep.c: Likewise.
2325 * alpha-mdebug-tdep.c: Likewise.
2326 * alphanbsd-tdep.c: Likewise.
2327 * amd64-nat.c: Likewise.
2328 * amd64-tdep.c: Likewise.
2329 * amd64bsd-nat.c: Likewise.
2330 * amd64fbsd-nat.c: Likewise.
2331 * amd64fbsd-tdep.c: Likewise.
2332 * amd64nbsd-nat.c: Likewise.
2333 * amd64nbsd-tdep.c: Likewise.
2334 * amd64obsd-nat.c: Likewise.
2335 * amd64obsd-tdep.c: Likewise.
2336 * arch-utils.c: Likewise.
2337 * arm-tdep.c: Likewise.
2338 * armbsd-tdep.c: Likewise.
2340 * bcache.c: Likewise.
2341 * bfin-tdep.c: Likewise.
2342 * blockframe.c: Likewise.
2343 * breakpoint.c: Likewise.
2344 * bsd-kvm.c: Likewise.
2345 * bsd-uthread.c: Likewise.
2346 * buildsym.c: Likewise.
2347 * c-exp.y: Likewise.
2348 * c-lang.c: Likewise.
2349 * charset.c: Likewise.
2350 * cleanups.c: Likewise.
2351 * cli-out.c: Likewise.
2352 * cli/cli-decode.c: Likewise.
2353 * cli/cli-dump.c: Likewise.
2354 * cli/cli-logging.c: Likewise.
2355 * cli/cli-script.c: Likewise.
2356 * cli/cli-utils.c: Likewise.
2357 * coffread.c: Likewise.
2358 * common/common-utils.c: Likewise.
2359 * common/queue.h: Likewise.
2360 * common/signals.c: Likewise.
2361 * common/vec.h: Likewise.
2362 * complaints.c: Likewise.
2363 * completer.c: Likewise.
2364 * corelow.c: Likewise.
2365 * cp-abi.c: Likewise.
2366 * cp-name-parser.y: Likewise.
2367 * cp-namespace.c: Likewise.
2368 * cp-support.c: Likewise.
2369 * cris-tdep.c: Likewise.
2370 * dbxread.c: Likewise.
2371 * dictionary.c: Likewise.
2372 * doublest.c: Likewise.
2373 * dsrec.c: Likewise.
2374 * dummy-frame.c: Likewise.
2375 * dwarf2-frame-tailcall.c: Likewise.
2376 * dwarf2-frame.c: Likewise.
2377 * dwarf2expr.c: Likewise.
2378 * dwarf2loc.c: Likewise.
2379 * dwarf2read.c: Likewise.
2381 * event-loop.c: Likewise.
2382 * exceptions.c: Likewise.
2383 * expprint.c: Likewise.
2384 * f-valprint.c: Likewise.
2385 * fbsd-nat.c: Likewise.
2386 * findvar.c: Likewise.
2387 * frame-unwind.c: Likewise.
2388 * frame.c: Likewise.
2389 * frv-tdep.c: Likewise.
2390 * gcore.c: Likewise.
2391 * gdb-dlfcn.c: Likewise.
2392 * gdb_bfd.c: Likewise.
2393 * gdbarch.c: Likewise.
2394 * gdbarch.sh: Likewise.
2395 * gdbtypes.c: Likewise.
2396 * gnu-nat.c: Likewise.
2397 * gnu-v3-abi.c: Likewise.
2398 * go-lang.c: Likewise.
2399 * guile/scm-exception.c: Likewise.
2400 * guile/scm-gsmob.c: Likewise.
2401 * guile/scm-lazy-string.c: Likewise.
2402 * guile/scm-math.c: Likewise.
2403 * guile/scm-pretty-print.c: Likewise.
2404 * guile/scm-safe-call.c: Likewise.
2405 * guile/scm-utils.c: Likewise.
2406 * guile/scm-value.c: Likewise.
2407 * h8300-tdep.c: Likewise.
2408 * hppa-hpux-nat.c: Likewise.
2409 * hppa-tdep.c: Likewise.
2410 * hppanbsd-tdep.c: Likewise.
2411 * hppaobsd-tdep.c: Likewise.
2412 * i386-darwin-nat.c: Likewise.
2413 * i386-darwin-tdep.c: Likewise.
2414 * i386-nto-tdep.c: Likewise.
2415 * i386-tdep.c: Likewise.
2416 * i386bsd-nat.c: Likewise.
2417 * i386fbsd-tdep.c: Likewise.
2418 * i386gnu-nat.c: Likewise.
2419 * i386nbsd-tdep.c: Likewise.
2420 * i386obsd-tdep.c: Likewise.
2421 * i387-tdep.c: Likewise.
2422 * ia64-libunwind-tdep.c: Likewise.
2423 * ia64-tdep.c: Likewise.
2424 * inf-ptrace.c: Likewise.
2425 * inf-ttrace.c: Likewise.
2426 * infcall.c: Likewise.
2427 * infcmd.c: Likewise.
2428 * infrun.c: Likewise.
2429 * inline-frame.c: Likewise.
2430 * interps.c: Likewise.
2431 * jv-lang.c: Likewise.
2432 * jv-typeprint.c: Likewise.
2433 * linux-fork.c: Likewise.
2434 * linux-nat.c: Likewise.
2435 * linux-thread-db.c: Likewise.
2436 * m32c-tdep.c: Likewise.
2437 * m32r-linux-nat.c: Likewise.
2438 * m32r-tdep.c: Likewise.
2439 * m68k-tdep.c: Likewise.
2440 * m68kbsd-nat.c: Likewise.
2441 * m68kbsd-tdep.c: Likewise.
2442 * m88k-tdep.c: Likewise.
2443 * machoread.c: Likewise.
2444 * macroexp.c: Likewise.
2445 * macrotab.c: Likewise.
2446 * maint.c: Likewise.
2447 * mdebugread.c: Likewise.
2448 * memory-map.c: Likewise.
2449 * mep-tdep.c: Likewise.
2450 * mi/mi-common.c: Likewise.
2451 * microblaze-tdep.c: Likewise.
2452 * mingw-hdep.c: Likewise.
2453 * mips-linux-nat.c: Likewise.
2454 * mips-linux-tdep.c: Likewise.
2455 * mips-tdep.c: Likewise.
2456 * mips64obsd-tdep.c: Likewise.
2457 * mipsnbsd-tdep.c: Likewise.
2458 * mn10300-linux-tdep.c: Likewise.
2459 * mn10300-tdep.c: Likewise.
2460 * moxie-tdep.c: Likewise.
2461 * mt-tdep.c: Likewise.
2462 * nat/linux-btrace.c: Likewise.
2463 * nat/linux-osdata.c: Likewise.
2464 * nat/linux-ptrace.c: Likewise.
2465 * nat/mips-linux-watch.c: Likewise.
2466 * nios2-linux-tdep.c: Likewise.
2467 * nios2-tdep.c: Likewise.
2468 * objc-lang.c: Likewise.
2469 * objfiles.c: Likewise.
2470 * obsd-nat.c: Likewise.
2471 * opencl-lang.c: Likewise.
2472 * osabi.c: Likewise.
2473 * parse.c: Likewise.
2474 * ppc-linux-nat.c: Likewise.
2475 * ppc-sysv-tdep.c: Likewise.
2476 * ppcfbsd-nat.c: Likewise.
2477 * ppcfbsd-tdep.c: Likewise.
2478 * ppcnbsd-nat.c: Likewise.
2479 * ppcnbsd-tdep.c: Likewise.
2480 * ppcobsd-nat.c: Likewise.
2481 * ppcobsd-tdep.c: Likewise.
2482 * printcmd.c: Likewise.
2483 * procfs.c: Likewise.
2484 * prologue-value.c: Likewise.
2485 * psymtab.c: Likewise.
2486 * python/py-lazy-string.c: Likewise.
2487 * python/py-value.c: Likewise.
2488 * regcache.c: Likewise.
2489 * reggroups.c: Likewise.
2490 * registry.c: Likewise.
2491 * remote-sim.c: Likewise.
2492 * remote.c: Likewise.
2493 * rs6000-aix-tdep.c: Likewise.
2494 * rs6000-tdep.c: Likewise.
2495 * s390-linux-tdep.c: Likewise.
2496 * score-tdep.c: Likewise.
2497 * ser-base.c: Likewise.
2498 * ser-mingw.c: Likewise.
2499 * sh-tdep.c: Likewise.
2500 * sh64-tdep.c: Likewise.
2501 * solib-darwin.c: Likewise.
2502 * solib-spu.c: Likewise.
2503 * solib-svr4.c: Likewise.
2504 * source.c: Likewise.
2505 * sparc-nat.c: Likewise.
2506 * sparc-sol2-tdep.c: Likewise.
2507 * sparc-tdep.c: Likewise.
2508 * sparc64-sol2-tdep.c: Likewise.
2509 * sparc64-tdep.c: Likewise.
2510 * sparc64fbsd-tdep.c: Likewise.
2511 * sparc64nbsd-tdep.c: Likewise.
2512 * sparc64obsd-tdep.c: Likewise.
2513 * sparcnbsd-tdep.c: Likewise.
2514 * sparcobsd-tdep.c: Likewise.
2515 * spu-multiarch.c: Likewise.
2516 * spu-tdep.c: Likewise.
2517 * stabsread.c: Likewise.
2518 * stack.c: Likewise.
2519 * symfile.c: Likewise.
2520 * symtab.c: Likewise.
2521 * target-descriptions.c: Likewise.
2522 * target-memory.c: Likewise.
2523 * target.c: Likewise.
2524 * tic6x-linux-tdep.c: Likewise.
2525 * tic6x-tdep.c: Likewise.
2526 * tilegx-linux-nat.c: Likewise.
2527 * tilegx-tdep.c: Likewise.
2529 * tramp-frame.c: Likewise.
2530 * tui/tui-out.c: Likewise.
2531 * tui/tui-winsource.c: Likewise.
2532 * ui-out.c: Likewise.
2533 * user-regs.c: Likewise.
2534 * utils.c: Likewise.
2535 * v850-tdep.c: Likewise.
2536 * valops.c: Likewise.
2537 * value.c: Likewise.
2538 * varobj.c: Likewise.
2539 * vax-nat.c: Likewise.
2540 * xml-syscall.c: Likewise.
2541 * xml-tdesc.c: Likewise.
2542 * xstormy16-tdep.c: Likewise.
2543 * xtensa-linux-nat.c: Likewise.
2544 * xtensa-tdep.c: Likewise.
2546 2014-08-07 Gary Benson <gbenson@redhat.com>
2548 * common/common-defs.h: Include common-utils.h.
2549 * defs.h: Do not include common-utils.h.
2550 * common/gdb_assert.h: Likewise.
2551 * darwin-nat.h: Likewise.
2552 * nat/linux-btrace.c: Likewise.
2553 * target/waitstatus.h: Likewise.
2555 2014-08-07 Gary Benson <gbenson@redhat.com>
2557 * common/common-defs.h: Include ptid.h.
2558 * defs.h: Do not include ptid.h.
2559 * inferior.h: Likewise.
2560 * infrun.h: Likewise.
2561 * nat/linux-btrace.h: Likewise.
2562 * nat/linux-osdata.h: Likewise.
2563 * target/waitstatus.h: Likewise.
2565 2014-08-07 Gary Benson <gbenson@redhat.com>
2567 * common/common-defs.h: Include gdb_locale.h.
2568 * defs.h: Do not include gdb_locale.h.
2570 2014-08-07 Gary Benson <gbenson@redhat.com>
2572 * common/common-defs.h: Include gdb/signals.h.
2573 * defs.h: Do not include gdb/signals.h.
2575 2014-08-07 Gary Benson <gbenson@redhat.com>
2577 * common/common-defs.h: Include pathmax.h.
2578 * defs.h: Do not include pathmax.h.
2580 2014-08-07 Gary Benson <gbenson@redhat.com>
2582 * common/common-defs.h: Include libiberty.h.
2583 * defs.h: Do not include libiberty.h.
2584 * common/queue.h: Likewise.
2585 * cp-name-parser.y: Likewise.
2586 * mi/mi-cmd-catch.c: Likewise.
2587 * python/python.c: Likewise.
2589 2014-08-07 Gary Benson <gbenson@redhat.com>
2591 * common/common-defs.h: Include ansidecl.h.
2592 * defs.h: Do not include ansidecl.h.
2593 * common/buffer.h: Likewise.
2594 * common/common-utils.h: Likewise.
2596 2014-08-07 Gary Benson <gbenson@redhat.com>
2598 * common/common-defs.h: Include stddef.h.
2599 * defs.h: Do not include stddef.h.
2600 * common/common-utils.h: Likewise.
2601 * amd64fbsd-nat.c: Likewise.
2602 * bcache.c: Likewise.
2603 * charset.c: Likewise.
2604 * common/buffer.h: Likewise.
2605 * common/vec.h: Likewise.
2606 * i386bsd-nat.c: Likewise.
2607 * nat/linux-btrace.h: Likewise.
2608 * ppcfbsd-nat.c: Likewise.
2609 * ppcnbsd-tdep.h: Likewise.
2610 * ppcobsd-nat.c: Likewise.
2611 * ppcobsd-tdep.h: Likewise.
2612 * python/py-gdb-readline.c: Likewise.
2614 2014-08-07 Gary Benson <gbenson@redhat.com>
2616 * common/common-defs.h: Include stdarg.h.
2617 * defs.h: Do not include stdarg.h.
2618 * ada-lang.c: Likewise.
2619 * common/common-utils.h: Likewise.
2620 * guile/scm-string.c: Likewise.
2621 * guile/scm-utils.c: Likewise.
2622 * m32c-tdep.c: Likewise.
2624 2014-08-07 Gary Benson <gbenson@redhat.com>
2626 * common/common-defs.h: Include stdlib.h.
2627 * defs.h: Do not include stdlib.h.
2628 * addrmap.c: Likewise.
2629 * bcache.c: Likewise.
2630 * common/buffer.c: Likewise.
2631 * common/common-utils.c: Likewise.
2632 * cp-name-parser.y: Likewise.
2633 * go32-nat.c: Likewise.
2634 * mn10300-linux-tdep.c: Likewise.
2635 * nat/linux-osdata.c: Likewise.
2636 * tui/tui.c: Likewise.
2637 * windows-nat.c: Likewise.
2639 2014-08-07 Gary Benson <gbenson@redhat.com>
2641 * common/common-defs.h: Include stdio.h.
2642 * defs.h: Do not include stdio.h.
2643 * ada-lang.c: Likewise.
2644 * common/buffer.c: Likewise.
2645 * common/common-utils.c: Likewise.
2646 * cp-name-parser.y: Likewise.
2647 * gnu-nat.c: Likewise.
2648 * go32-nat.c: Likewise.
2649 * i386gnu-nat.c: Likewise.
2650 * proc-api.c: Likewise.
2651 * proc-events.c: Likewise.
2652 * proc-flags.c: Likewise.
2653 * proc-why.c: Likewise.
2654 * python/python-internal.h: Likewise.
2655 * target-memory.c: Likewise.
2656 * tui/tui-io.c: Likewise.
2657 * tui/tui.c: Likewise.
2659 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2661 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2662 (scan_dyntag_auxv): Same.
2664 2014-08-06 Yao Qi <yao@codesourcery.com>
2666 * amd64-linux-nat.c: Remove duplicated include
2668 * i386-linux-nat.c: Likewise.
2670 2014-08-06 Yao Qi <yao@codesourcery.com>
2672 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2673 operand" with "Special opcode" in comments.
2675 2014-08-05 Gary Benson <gbenson@redhat.com>
2677 * interps.c (initialize_interps): Remove prototype.
2678 (interpreter_initialized): Remove static global.
2679 (interp_add): Do not call initialize_interps.
2680 (initialize_interps): Remove function.
2682 2014-08-05 Gary Benson <gbenson@redhat.com>
2684 * utils.c (vwarning): Remove spurious va_end.
2686 2014-08-05 Alan Modra <amodra@gmail.com>
2688 * charset.c (convert_between_encodings): Cast result of obstack_base.
2689 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2690 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2691 (read_unwind_info): Use size_t for some locals.
2692 * jit.c (finalize_symtab): Likewise.
2693 * utils.c (hashtab_obstack_allocate): Likewise.
2694 * symmisc.c (print_objfile_statistics): Update format strings.
2696 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2698 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2699 (Changes in GDB 7.8): ... here.
2701 2014-08-04 Tom Tromey <tromey@redhat.com>
2703 * target.c (set_targetdebug): New function.
2704 (initialize_targets): Pass set_targetdebug when creating "set
2707 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2709 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2710 if detecting a variable-sized field that is not the last field.
2711 Fix struct type length computation.
2713 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2715 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2718 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2720 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2721 Remove "+ 8" offset in computation of CHAIN_VMA.
2723 2014-07-31 Doug Evans <dje@google.com>
2725 * inflow.c (child_terminal_inferior): Add comment.
2726 (child_terminal_ours_for_output): Add comment.
2727 (child_terminal_ours): Add comment.
2728 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2729 (linux_nat_terminal_ours): Add comment.
2731 2014-07-31 Gary Benson <gbenson@redhat.com>
2733 * common/btrace-common.h: Do not include defs.h or server.h.
2734 * nat/mips-linux-watch.h: Likewise.
2735 * gdb-dlfcn.h: Do not include defs.h.
2736 * tracefile.h: Likewise.
2738 2014-07-30 Roland McGrath <mcgrathr@google.com>
2740 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2742 2014-07-30 Tom Tromey <tromey@redhat.com>
2744 * bsd-kvm.c (bsd_kvm_open): Constify.
2745 * corelow.c (core_open): Constify.
2746 * ctf.c (ctf_open): Constify.
2747 * dbug-rom.c (dbug_open): Constify.
2748 * exec.c (exec_open): Constify.
2749 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2750 * microblaze-rom.c (picobug_open): Constify.
2751 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2753 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2754 * record-btrace.c (record_btrace_open): Constify.
2755 * record-full.c (record_full_core_open_1, record_full_open_1)
2756 (record_full_open): Constify.
2757 * remote-m32r-sdi.c (m32r_open): Constify.
2758 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2759 (rockhopper_open, lsi_open): Constify.
2760 * remote-sim.c (gdbsim_open): Constify.
2761 * remote.c (remote_open, extended_remote_open, remote_open_1):
2763 * target.h (struct target_ops) <to_open>: Make "arg" const.
2764 * tracefile-tfile.c (tfile_open): Constify.
2766 2014-07-30 Tom Tromey <tromey@redhat.com>
2768 * breakpoint.c (map_breakpoint_numbers): Update.
2769 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2770 (get_number_const): New function.
2771 (get_number): Rewrite using get_number_const.
2772 (init_number_or_range): Make "string" const.
2773 (number_is_in_list): Make "list" const.
2774 * cli/cli-utils.h (get_number_const): Declare.
2775 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2776 (init_number_or_range, number_is_in_list): Update.
2777 * printcmd.c (map_display_numbers): Update.
2778 * value.c (value_from_history_ref): Constify.
2779 * value.h (value_from_history_ref): Update.
2781 2014-07-30 Tom Tromey <tromey@redhat.com>
2783 * corefile.c (hook_type, call_extra_exec_file_hooks)
2784 (specify_exec_file_hook): Constify.
2785 * exec.c (exec_file_attach): Make "filename" const.
2786 * gdbcore.h (deprecated_exec_file_display_hook)
2787 (specify_exec_file_hook, exec_file_attach): Constify.
2788 * main.c (captured_main): Use catch_command_errors_const.
2790 2014-07-30 Tom Tromey <tromey@redhat.com>
2792 * target.c (open_target): New function.
2793 (add_target_with_completer, add_deprecated_target_alias): Use
2794 set_cmd_sfunc, set_cmd_context.
2795 (debug_to_open): Remove.
2796 (setup_target_debug): Update.
2798 2014-07-30 Yao Qi <yao@codesourcery.com>
2800 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2802 * parse.c (exp_iterate): Update comments.
2804 2014-07-30 Gary Benson <gbenson@redhat.com>
2806 * common/common-defs.h: New file.
2807 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2808 * defs.h: Include common-defs.h.
2809 Do not include config.h or build-gnulib/config.h.
2811 2014-07-30 Gary Benson <gbenson@redhat.com>
2813 * common/common-utils.h: Do not include config.h.
2814 * nat/linux-btrace.h: Likewise.
2816 2014-07-30 Gary Benson <gbenson@redhat.com>
2818 * btrace.c: Include defs.h.
2819 * common/ptid.c: Include defs.h or server.h as appropriate.
2820 * nat/mips-linux-watch.c: Likewise.
2822 2014-07-29 Tom Tromey <tromey@redhat.com>
2824 * target.c (target_is_pushed): Simplify.
2826 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2830 2014-07-29 Yao Qi <yao@codesourcery.com>
2833 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2835 2014-07-28 Doug Evans <xdje42@gmail.com>
2838 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2839 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2842 2014-07-28 Will Newton <will.newton@linaro.org>
2844 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2845 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2846 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2847 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2848 (THUMB2_EABI_SYSCALL): Likewise.
2849 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2851 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2852 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2854 2014-07-27 Doug Evans <xdje42@gmail.com>
2856 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2858 2014-07-27 Doug Evans <xdje42@gmail.com>
2860 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2862 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2863 Doug Evans <xdje42@gmail.com>
2866 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2867 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2868 * configure.ac: Try to use guild to compile an scm file, if it fails
2869 then disable guile support.
2870 * configure: Regenerate.
2871 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2873 (GUILE_COMPILED_FILES): New variable.
2874 (GUILE_FILES) Update.
2875 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2876 (stamp-guile): Compile scm files.
2877 * guile/guile.c (boot_guile_support): New function.
2878 (standard_throw_args_p): New function.
2879 (print_standard_throw_error, print_throw_error): New functions.
2880 (handle_boot_error): New function.
2881 (initialize_scheme_side): Rewrite to call boot_guile_support.
2882 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2883 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2885 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2886 Doug Evans <xdje42@gmail.com>
2889 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2890 * guile/lib/gdb/support.scm: New file.
2891 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2892 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2894 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2896 (%assert-type): Ditto, and renamed to assert-type.
2897 (%exception-print-style): Delete.
2899 2014-07-26 Doug Evans <xdje42@gmail.com>
2902 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2903 * configure: Regenerate.
2904 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2906 (PYTHON_FILES): New variable.
2907 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2908 (GUILE_FILES): New variable.
2909 (stamp-python, install-python, uninstall-python): Handle empty
2911 (stamp-guile, install-guile, uninstall-guile): Ditto.
2913 2014-07-26 Doug Evans <xdje42@gmail.com>
2916 * guile/lib/gdb.scm (pretty-printers): Export.
2917 (set-pretty-printers!): Export.
2918 * guile/lib/gdb/printing.scm (gdb module): Update.
2919 (prepend-pretty-printer!, append-pretty-printer!): Update.
2920 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2921 (pretty_printer_list_var): Delete.
2922 (pretty_printer_list): New static global.
2923 (gdbscm_pretty_printers): New function.
2924 (gdbscm_set_pretty_printers_x): New function.
2925 (ppscm_find_pretty_printer_from_gdb): Update.
2926 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2927 (gdbscm_initialize_pretty_printers): Update.
2929 2014-07-26 Doug Evans <xdje42@gmail.com>
2932 * configure.ac: Add check for header gc/gc.h.
2933 Add check for function setenv.
2934 * configure: Regenerate.
2935 * config.in: Regenerate.
2936 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2938 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2940 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2941 variation in gdbarch matching.
2943 2014-07-25 Tom Tromey <tromey@redhat.com>
2945 * exec.c (using_exec_ops): Remove.
2946 (exec_close_1): Update. Remove extraneous block, reindent.
2947 (add_target_sections): Use target_is_pushed.
2949 2014-07-25 Pedro Alves <palves@redhat.com>
2951 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2952 * monitor.c (monitor_create_inferior): Likewise.
2953 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2954 * remote-sim.c (gdbsim_create_inferior): Likewise.
2955 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2956 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2957 * windows-nat.c (do_initial_windows_stuff): Likewise.
2959 2014-07-25 Pedro Alves <palves@redhat.com>
2961 * NEWS: Mention signal passing and "signal" command changes.
2962 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2964 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2966 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2967 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2968 (jump_command): Adjust clear_proceed_status call.
2969 (signal_command): Warn if other thread that are resumed have
2970 signals that will be delivered. Adjust clear_proceed_status call.
2971 (until_next_command, finish_command)
2972 (proceed_after_attach_callback, attach_command_post_wait)
2973 (attach_command): Adjust clear_proceed_status call.
2974 * infrun.c (proceed_after_vfork_done): Likewise.
2975 (proceed_after_attach_callback): Adjust comment.
2976 (clear_proceed_status_thread): Clear stop_signal if not in pass
2978 (clear_proceed_status_callback): Delete.
2979 (clear_proceed_status): New 'step' parameter. Only clear the
2980 proceed status of threads the command being prepared is about to
2982 (proceed): If passed in an explicit signal, override stop_signal
2983 with it. Don't pass the last stop signal to the thread we're
2985 (init_wait_for_inferior): Adjust clear_proceed_status call.
2986 (switch_back_to_stepped_thread): Clear the signal if it should not
2988 * infrun.h (clear_proceed_status): New 'step' parameter.
2989 (user_visible_resume_ptid): Add comment.
2990 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2991 signal is in pass state.
2992 * remote.c (append_pending_thread_resumptions): Likewise.
2993 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2995 2014-07-25 Tom Tromey <tromey@redhat.com>
2997 * target.h (target_stopped_data_address)
2998 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3001 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3003 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3005 (avr_pointer_to_address): Likewise.
3007 2014-07-24 Tom Tromey <tromey@redhat.com>
3009 * monitor.c (compile_pattern): Update.
3010 * target.h (struct target_ops) <to_shortname, to_longname,
3013 2014-07-24 Tom Tromey <tromey@redhat.com>
3015 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3016 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3017 (add_info_alias, add_com): Make "doc" const.
3018 (print_doc_line): Make "str" const.
3019 (delete_cmd): Update.
3020 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3021 (print_doc_line): Update.
3022 * cli/cli-script.c (document_command): Update.
3023 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3024 (add_com, add_info, add_info_alias): Update.
3025 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3026 * python/py-cmd.c (cmdpy_destroyer): Update.
3028 2014-07-24 Tom Tromey <tromey@redhat.com>
3030 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3031 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3032 (help_cmd_list): Constify.
3033 (lookup_cmd): Update.
3034 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3036 (help_cmd_list, apropos_cmd): Update.
3037 * cli/cli-script.c (show_user): Update.
3038 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3039 * cli/cli-setshow.h (cmd_show_list): Update.
3040 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3041 (cmd_show_list): Update.
3042 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3043 * python/py-cmd.c (cmdpy_destroyer): Update.
3045 2014-07-24 Tom Tromey <tromey@redhat.com>
3047 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3048 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3050 * command.h (deprecate_cmd): Update.
3051 * maint.c (maintenance_do_deprecate): Add casts.
3053 2014-07-24 Tom Tromey <tromey@redhat.com>
3055 * cli/cli-decode.c (help_cmd): Make parameter "const".
3056 * cli/cli-decode.h (help_cmd): Update.
3058 2014-07-24 Tom Tromey <tromey@redhat.com>
3060 * stack.c (up_silently_base, down_silently_base): Make argument
3063 2014-07-24 Tom Tromey <tromey@redhat.com>
3065 * solib.c (solib_add): Make "pattern" const.
3066 * solib.h (solib_add): Update.
3068 2014-07-24 Tom Tromey <tromey@redhat.com>
3070 * remote.c (remote_serial_open, print_packet, putpkt)
3071 (putpkt_binary): Constify.
3072 * remote.h (putpkt): Update.
3074 2014-07-24 Tom Tromey <tromey@redhat.com>
3076 * monitor.c (monitor_open): Make "args" const.
3077 * monitor.h (monitor_open): Update.
3079 2014-07-24 Tom Tromey <tromey@redhat.com>
3081 * maint.c (match_bfd_flags): Make "string" const.
3082 (print_bfd_section_info): Remove casts.
3083 (print_objfile_section_info): Make "string" const.
3085 2014-07-24 Tom Tromey <tromey@redhat.com>
3087 * inf-child.c (inf_child_open_target): Make "arg" const.
3088 * inf-child.h (inf_child_open_target): Update.
3090 2014-07-24 Tom Tromey <tromey@redhat.com>
3092 * environ.c (unset_in_environ): Make "var" const.
3093 * environ.h (unset_in_environ): Update.
3095 2014-07-24 Tom Tromey <tromey@redhat.com>
3097 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3099 (scan_filename_with_cleanup): Likewise.
3100 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3101 Make arguments const.
3102 (restore_command): Update.
3104 2014-07-24 Pedro Alves <palves@redhat.com>
3106 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3108 2014-07-24 Tom Tromey <tromey@redhat.com>
3109 Gary Benson <gbenson@redhat.com>
3111 * nat/linux-ptrace.c (additional_flags): New global.
3112 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3113 additional_flags; don't check GDBSERVER.
3114 (linux_ptrace_set_additional_flags): New function.
3115 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3117 * linux-nat.c (_initialize_linux_nat): Call
3118 linux_ptrace_set_additional_flags.
3120 2014-07-24 Tom Tromey <tromey@redhat.com>
3122 * make-target-delegates (munge_type, write_debugmethod): New
3124 (debug_names): New global.
3125 ($TARGET_DEBUG_PRINTER): New global.
3126 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3128 Write debug methods. Generate init_debug_target.
3129 * target-debug.h: New file.
3130 * target-delegates.c: Rebuild.
3131 * target.c: Include target-debug.h.
3132 (debug_target): Hoist definition.
3133 (target_kill, target_get_section_table, target_memory_map)
3134 (target_flash_erase, target_flash_done, target_detach)
3135 (target_disconnect, target_wait, target_resume)
3136 (target_pass_signals, target_program_signals, target_follow_fork)
3137 (target_mourn_inferior, target_search_memory)
3138 (target_thread_address_space, target_close)
3139 (target_find_new_threads, target_core_of_thread)
3140 (target_verify_memory, target_insert_mask_watchpoint)
3141 (target_remove_mask_watchpoint): Remove targetdebug code.
3142 (debug_to_post_attach, debug_to_prepare_to_store)
3143 (debug_to_files_info, debug_to_insert_breakpoint)
3144 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3145 (debug_to_region_ok_for_hw_watchpoint)
3146 (debug_to_can_accel_watchpoint_condition)
3147 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3148 (debug_to_watchpoint_addr_within_range)
3149 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3150 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3151 (debug_to_terminal_init, debug_to_terminal_inferior)
3152 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3153 (debug_to_terminal_save_ours, debug_to_terminal_info)
3154 (debug_to_load, debug_to_post_startup_inferior)
3155 (debug_to_insert_fork_catchpoint)
3156 (debug_to_remove_fork_catchpoint)
3157 (debug_to_insert_vfork_catchpoint)
3158 (debug_to_remove_vfork_catchpoint)
3159 (debug_to_insert_exec_catchpoint)
3160 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3161 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3162 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3163 (setup_target_debug): Call init_debug_target.
3164 * target.h (TARGET_DEBUG_PRINTER): New macro.
3165 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3166 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3168 2014-07-24 Gary Benson <gbenson@redhat.com>
3170 * exceptions.h (throw_vfatal): Renamed to...
3171 (throw_vquit): New declaration.
3172 (throw_quit): Likewise.
3173 * exceptions.c (throw_vfatal): Renamed to...
3174 (throw_vquit): New function.
3175 (throw_quit): Likewise.
3176 (throw_error): Call throw_verror rather than throw_it.
3177 * utils.h (vfatal): Removed.
3179 * utils.c (vfatal): Removed.
3181 (internal_verror): Replaced call to fatal with call to throw_quit.
3182 (quit): Replaced calls to fatal with calls to throw_quit.
3184 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3186 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3189 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3191 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3192 less than zero in conditional expression.
3194 2014-07-23 Tom Tromey <tromey@redhat.com>
3196 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3197 ($INTRO_PART): Don't match whitespace.
3198 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3200 ($METHOD): Add $METHOD_TRAILER.
3202 (scan_target_h): New sub.
3203 Change main loop not to collect state.
3204 * target-delegates.c: Rebuild.
3206 2014-07-23 Gary Benson <gbenson@redhat.com>
3208 * cp-support.c (gdb_demangle): Fix build on systems without
3211 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3213 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3214 for reference entry value target data value.
3216 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3218 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3219 value_available_contents_eq.
3221 2014-07-22 Pedro Alves <palves@redhat.com>
3223 * value.c (allocate_optimized_out_value): Don't mark value as
3226 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3228 * MAINTAINERS (Write After Approval): Update my email address.
3230 2014-07-20 Doug Evans <dje@google.com>
3233 * remote.c (putpkt_binary): Add text to error message.
3235 2014-07-20 Yao Qi <yao@codesourcery.com>
3237 * eval.c: Remove "Chill" from comments.
3238 * gdbtypes.h: Likewise.
3239 * symtab.h: Likewise.
3241 2014-07-20 Yao Qi <yao@codesourcery.com>
3243 * std-operator.def: Update comments to TERNOP_SLICE.
3245 2014-07-20 Yao Qi <yao@codesourcery.com>
3247 * std-operator.def: Remove BINOP_RANGE.
3248 * breakpoint.c (watchpoint_exp_is_const): Update.
3249 * expprint.c (dump_subexp_body_standard): Likewise.
3250 * eval.c (init_array_element): Remove dead code.
3251 (evaluate_subexp_standard): Likewise.
3253 2014-07-20 Yao Qi <yao@codesourcery.com>
3255 * std-operator.def: Remove BINOP_IN.
3256 * breakpoint.c (watchpoint_exp_is_const): Update.
3257 * eval.c (evaluate_subexp_standard): Likewise.
3258 * expprint.c (dump_subexp_body_standard): Likewise.
3260 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3262 * microblaze-tdep.c (microblaze_register_names): Add
3263 the rshr and rslr register names.
3264 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3265 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3266 Use of tdesc_numbered_register. Use of
3267 microblaze_register_g_packet_guesses. Use of
3268 tdesc_use_registers. Use of set_gdbarch_register_type.
3269 (microblaze_register_g_packet_guesses): New.
3270 * microblaze-tdep.h (microblaze_reg_num): Add
3271 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3272 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3273 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3274 * features/microblaze-core.xml: New file.
3275 * features/microblaze-stack-protect.xml: New file.
3276 * features/microblaze-with-stack-protect.c: New file.
3277 * features/microblaze-with-stack-protect.xml: New file.
3278 * features/microblaze.xml: New file.
3279 * features/microblaze.c: New file.
3280 * features/Makefile (microblaze-with-stack-protect): Add
3281 microblaze-with-stack-protect microblaze and microblaze-expedite.
3282 * regformats/microblaze-with-stack-protect.dat: New file.
3283 * regformats/microblaze.dat: New file.
3284 * doc/gdb.texinfo (MicroBlaze Features): Added.
3286 2014-07-18 Tom Tromey <tromey@redhat.com>
3288 * exec.c (exec_ops): Now static.
3289 * exec.h (exec_ops): Don't declare.
3291 2014-07-18 Tom Tromey <tromey@redhat.com>
3293 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3294 to find_target_beneath.
3295 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3296 find_target_beneath.
3297 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3299 2014-07-18 Tom Tromey <tromey@redhat.com>
3302 * utils.c (quit): Use target_supports_terminal_ours.
3303 * target.h (target_supports_terminal_ours): Declare.
3304 * target.c (target_supports_delete_record): Don't check
3305 to_delete_record against NULL.
3306 (target_supports_terminal_ours): New function.
3308 2014-07-18 Tom Tromey <tromey@redhat.com>
3311 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3312 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3313 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3314 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3315 * windows-nat.c (windows_xfer_partial): Always delegate.
3316 * record-btrace.c (record_btrace_xfer_partial): Simplify
3318 (record_btrace_fetch_registers, record_btrace_store_registers)
3319 (record_btrace_prepare_to_store, record_btrace_resume)
3320 (record_btrace_wait, record_btrace_find_new_threads)
3321 (record_btrace_thread_alive): Likewise.
3322 * procfs.c (procfs_xfer_partial): Always delegate.
3323 * corelow.c (core_xfer_partial): Always delegate.
3324 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3326 2014-07-18 Tom Tromey <tromey@redhat.com>
3328 * exec.c (exec_make_note_section): Move earlier.
3330 2014-07-17 Doug Evans <dje@google.com>
3333 * maint.c (count_symtabs_and_blocks): Handle NULL
3334 current_program_space.
3335 (report_command_stats): Check global enabled flag in addition to
3336 recorded enabled flag.
3337 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3339 2014-07-16 Pedro Alves <palves@redhat.com>
3341 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3343 2014-07-16 Tom Tromey <tromey@redhat.com>
3345 * target.h (struct target_ops) <to_delete_record>: Reformat
3348 2014-07-16 Tom Tromey <tromey@redhat.com>
3350 * target-delegates.c: Rebuild.
3352 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3354 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3355 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3356 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3357 (avr_pointer_to_address): Likewise.
3358 (avr_address_class_type_flags): New function.
3359 (avr_address_class_type_flags_to_name): Likewise.
3360 (avr_address_class_name_to_type_flags): Likewise.
3361 (avr_gdbarch_init): Set address_class_type_flags,
3362 address_class_type_flags_to_name and
3363 address_class_name_to_type_flags.
3365 2014-07-15 Pedro Alves <palves@redhat.com>
3367 * linux-nat.c (kill_callback): Save errno and work with saved
3370 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3372 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3374 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3376 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3377 breakpoint support correctly.
3379 2014-07-14 Pedro Alves <palves@redhat.com>
3381 * utils.c (prompt_for_continue): Call target_terminal_ours.
3383 2014-07-14 Pedro Alves <palves@redhat.com>
3385 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3386 catch_errors. Don't re-enable stdin or notify observers where,
3388 (fetch_inferior_event_wrapper): Delete.
3390 2014-07-14 Pedro Alves <palves@redhat.com>
3393 * top.c: Include "inf-loop.h".
3394 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3396 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3398 (gdb_readline_wrapper): Store whether the target is async, and
3401 2014-07-14 Pedro Alves <palves@redhat.com>
3404 * top.c (gdb_readline_wrapper_line): Tweak comment.
3405 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3406 the input handler callback.
3408 2014-07-14 Pedro Alves <palves@redhat.com>
3411 * main.c: Include event-top.h.
3412 (handle_command_errors): New function.
3413 (catch_command_errors, catch_command_errors_const): Use it.
3415 2014-07-14 Pedro Alves <palves@redhat.com>
3417 * exceptions.c (catch_command_errors, catch_command_errors_const):
3419 * exceptions.h (catch_command_errors_ftype)
3420 (catch_command_errors_const_ftype): Moved to main.c.
3421 (catch_command_errors, catch_command_errors_const): Delete
3423 * main.c (catch_command_errors_ftype)
3424 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3425 (catch_command_errors, catch_command_errors_const)): Moved here
3426 from exceptions.c and make static.
3428 2014-07-14 Pedro Alves <palves@redhat.com>
3430 * exceptions.c (print_any_exception): Delete.
3431 (catch_exceptions_with_msg): Use exception_print instead of
3432 print_any_exception.
3433 (catch_errors): Use exception_fprintf instead of
3434 print_any_exception.
3435 (catch_command_errors, catch_command_errors_const): Use
3436 exception_print instead of print_any_exception.
3438 2014-07-14 Pedro Alves <palves@redhat.com>
3440 * infcall.c (run_inferior_call): Set 'sync_execution' while
3441 running the inferior call.
3443 2014-07-14 Pedro Alves <palves@redhat.com>
3445 * value.c (value_contents_equal): Delete function.
3446 * value.h (value_contents_equal): Delete declaration.
3448 2014-07-14 Tom Tromey <tromey@redhat.com>
3451 * gdbtypes.c (is_dynamic_type_internal): New function, from
3453 (is_dynamic_type): Rewrite.
3454 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3455 (resolve_dynamic_struct): Likewise.
3456 (resolve_dynamic_type_internal): New function, from
3457 resolve_dynamic_type.
3458 (resolve_dynamic_type): Rewrite.
3460 2014-07-14 Tom Tromey <tromey@redhat.com>
3462 * target.c (target_require_runnable): Also check record_stratum.
3465 2014-07-11 Yao Qi <yao@codesourcery.com>
3467 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3468 thumb_instruction_restores_sp return true.
3470 2014-07-11 Yao Qi <yao@codesourcery.com>
3472 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3473 (thumb_in_function_epilogue_p): Call
3474 thumb_instruction_restores_sp.
3476 2014-07-11 Yao Qi <yao@codesourcery.com>
3478 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3480 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3482 2014-07-11 Gary Benson <gbenson@redhat.com>
3484 * amd64-linux-nat.c (gdbcore.h): Remove include.
3485 (regset.h): Likewise.
3486 (nat/linux-btrace.h): Likewise.
3487 (btrace.h): Likewise.
3488 (gdb_assert.h): Likewise.
3489 (string.h): Likewise.
3490 (sys/uio.h): Likewise.
3491 (sys/debugreg.h): Likewise.
3492 (sys/syscall.h): Likewise.
3493 (sys/procfs.h): Likewise.
3494 (sys/user.h): Likewise.
3495 (asm/ptrace.h): Likewise.
3496 (i386-nat.h): Likewise.
3497 * i386-linux-nat.c (i386-nat.h): Likewise.
3498 (regset.h): Likewise.
3499 (target.h): Likewise.
3500 (linux-nat.h): Likewise.
3501 (nat/linux-btrace.h): Likewise.
3502 (btrace.h): Likewise.
3503 (gdb_assert.h): Likewise.
3504 (string.h): Likewise.
3505 (sys/uio.h): Likewise.
3506 (sys/user.h): Likewise.
3507 (sys/procfs.h): Likewise.
3508 (sys/reg.h): Likewise.
3509 (sys/debugreg.h): Likewise.
3510 (ORIG_EAX): Remove definition.
3512 2014-07-11 Gary Benson <gbenson@redhat.com>
3514 * i386-linux-nat.h: New file.
3515 * x86-linux-nat.h: Likewise.
3516 * x86-linux-nat.c: Likewise.
3517 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3518 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3519 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3520 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3521 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3522 (PTRACE_SETREGSET): Likewise.
3523 (arch_lwp_info): Now in x86-linux-nat.c.
3524 (have_ptrace_getregset): Now in x86-linux-nat.h.
3525 (x86_linux_dr_get): Now in x86-linux-nat.c.
3526 (x86_linux_dr_set): Likewise.
3527 (x86_linux_dr_get_addr): Likewise.
3528 (x86_linux_dr_get_control): Likewise.
3529 (x86_linux_dr_get_status): Likewise.
3530 (update_debug_registers_callback): Likewise.
3531 (x86_linux_dr_set_control): Likewise.
3532 (x86_linux_dr_set_addr): Likewise.
3533 (x86_linux_prepare_to_resume): Likewise.
3534 (x86_linux_new_thread): Likewise.
3535 (x86_linux_new_fork): Likewise.
3536 (x86_linux_get_thread_area): Likewise.
3537 (super_post_startup_inferior): Likewise.
3538 (x86_linux_child_post_startup_inferior): Likewise.
3539 (AMD64_LINUX_USER64_CS): Likewise.
3540 (AMD64_LINUX_X32_DS): Likewise.
3541 (x86_linux_read_description): Likewise.
3542 (x86_linux_enable_btrace): Likewise.
3543 (x86_linux_disable_btrace): Likewise.
3544 (x86_linux_teardown_btrace): Likewise.
3545 (x86_linux_read_btrace): Likewise.
3546 (x86_linux_create_target): Likewise.
3547 (x86_linux_add_target): Likewise.
3548 * i386-linux-nat.c (x86-linux-nat.h): New include.
3549 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3550 (PTRACE_SETREGSET): Likewise.
3551 (arch_lwp_info): Now in x86-linux-nat.c.
3552 (have_ptrace_getregset): Now in x86-linux-nat.h.
3553 (x86_linux_dr_get): Now in x86-linux-nat.c.
3554 (x86_linux_dr_set): Likewise.
3555 (x86_linux_dr_get_addr): Likewise.
3556 (x86_linux_dr_get_control): Likewise.
3557 (x86_linux_dr_get_status): Likewise.
3558 (update_debug_registers_callback): Likewise.
3559 (x86_linux_dr_set_control): Likewise.
3560 (x86_linux_dr_set_addr): Likewise.
3561 (x86_linux_prepare_to_resume): Likewise.
3562 (x86_linux_new_thread): Likewise.
3563 (x86_linux_new_fork): Likewise.
3564 (x86_linux_get_thread_area): Likewise.
3565 (super_post_startup_inferior): Likewise.
3566 (x86_linux_child_post_startup_inferior): Likewise.
3567 (AMD64_LINUX_USER64_CS): Likewise.
3568 (AMD64_LINUX_X32_DS): Likewise.
3569 (x86_linux_read_description): Likewise.
3570 (x86_linux_enable_btrace): Likewise.
3571 (x86_linux_disable_btrace): Likewise.
3572 (x86_linux_teardown_btrace): Likewise.
3573 (x86_linux_read_btrace): Likewise.
3574 (x86_linux_create_target): Likewise.
3575 (x86_linux_add_target): Likewise.
3577 2014-07-11 Gary Benson <gbenson@redhat.com>
3579 * amd64-linux-nat.c: Comment and whitespace changes.
3580 * i386-linux-nat.c: Comment and whitespace changes.
3582 2014-07-11 Gary Benson <gbenson@redhat.com>
3584 * amd64-linux-nat.c (x86_linux_create_target): New function.
3585 (x86_linux_add_target): Likewise.
3586 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3587 * i386-linux-nat.c (x86_linux_create_target): New function.
3588 (x86_linux_add_target): Likewise.
3589 (_initialize_i386_linux_nat): Delegate to the above new functions.
3591 2014-07-11 Gary Benson <gbenson@redhat.com>
3593 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3594 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3595 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3596 (ps_get_thread_area): Delegate to the above.
3598 2014-07-11 Gary Benson <gbenson@redhat.com>
3600 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3601 x86_linux_read_description. All uses updated. amd64-specific
3602 code conditionalized. Conditionalized i386-specific code added.
3603 Redundant cast removed.
3604 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3605 x86_linux_read_description. All uses updated. i386-specific
3606 code conditionalized. Conditionalized amd64-specific code added.
3607 One sizeof replaced with the actual type it is describing.
3609 2014-07-11 Gary Benson <gbenson@redhat.com>
3611 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3612 x86_linux_dr_get. All uses updated.
3613 (amd64_linux_dr_set): Renamed to
3614 x86_linux_dr_set. All uses updated.
3615 (amd64_linux_dr_get_addr): Renamed to
3616 x86_linux_dr_get_addr. All uses updated.
3617 (amd64_linux_dr_get_control): Renamed to
3618 x86_linux_dr_get_control. All uses updated.
3619 (amd64_linux_dr_get_status): Renamed to
3620 x86_linux_dr_get_status. All uses updated.
3621 (amd64_linux_dr_set_control): Renamed to
3622 x86_linux_dr_set_control. All uses updated.
3623 (amd64_linux_dr_set_addr): Renamed to
3624 x86_linux_dr_set_addr. All uses updated.
3625 (amd64_linux_prepare_to_resume): Renamed to
3626 x86_linux_prepare_to_resume. All uses updated.
3627 (amd64_linux_new_thread): Renamed to
3628 x86_linux_new_thread. All uses updated.
3629 (amd64_linux_new_fork): Renamed to
3630 x86_linux_new_fork. All uses updated.
3631 (amd64_linux_child_post_startup_inferior): Renamed to
3632 x86_linux_child_post_startup_inferior. All uses updated.
3633 (amd64_linux_enable_btrace): Renamed to
3634 x86_linux_enable_btrace. All uses updated.
3635 (amd64_linux_disable_btrace): Renamed to
3636 x86_linux_disable_btrace. All uses updated.
3637 (amd64_linux_teardown_btrace): Renamed to
3638 x86_linux_teardown_btrace. All uses updated.
3639 (amd64_linux_read_btrace): Renamed to
3640 x86_linux_read_btrace. All uses updated.
3641 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3642 x86_linux_dr_get. All uses updated.
3643 (i386_linux_dr_set): Renamed to
3644 x86_linux_dr_set. All uses updated.
3645 (i386_linux_dr_get_addr): Renamed to
3646 x86_linux_dr_get_addr. All uses updated.
3647 (i386_linux_dr_get_control): Renamed to
3648 x86_linux_dr_get_control. All uses updated.
3649 (i386_linux_dr_get_status): Renamed to
3650 x86_linux_dr_get_status. All uses updated.
3651 (i386_linux_dr_set_control): Renamed to
3652 x86_linux_dr_set_control. All uses updated.
3653 (i386_linux_dr_set_addr): Renamed to
3654 x86_linux_dr_set_addr. All uses updated.
3655 (i386_linux_prepare_to_resume): Renamed to
3656 x86_linux_prepare_to_resume. All uses updated.
3657 (i386_linux_new_thread): Renamed to
3658 x86_linux_new_thread. All uses updated.
3659 (i386_linux_new_fork): Renamed to
3660 x86_linux_new_fork. All uses updated.
3661 (i386_linux_child_post_startup_inferior): Renamed to
3662 x86_linux_child_post_startup_inferior. All uses updated.
3663 (i386_linux_enable_btrace): Renamed to
3664 x86_linux_enable_btrace. All uses updated.
3665 (i386_linux_disable_btrace): Renamed to
3666 x86_linux_disable_btrace. All uses updated.
3667 (i386_linux_teardown_btrace): Renamed to
3668 x86_linux_teardown_btrace. All uses updated.
3669 (i386_linux_read_btrace): Renamed to
3670 x86_linux_read_btrace. All uses updated.
3672 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3674 * remote.c (extended_remote_post_attach): New function.
3675 (init_extended_remote_ops): Install it as to_post_attach method.
3677 2014-07-09 Pedro Alves <palves@redhat.com>
3679 * infcmd.c (attach_command_post_wait): Don't call
3680 target_terminal_inferior here.
3681 (attach_command): Call it here instead.
3683 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3685 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3687 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3688 from varobj.c, with additional checks.
3689 (c_varobj_ops): Fill in is_path_expr_parent field.
3690 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3691 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3693 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3695 (varobj_default_is_path_expr_parent): New function.
3696 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3697 (varobj_default_is_path_expr_parent): Declare new function.
3699 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3701 * infcmd.c (finish_backward): Turn internal error into normal error.
3703 2014-07-07 Pedro Alves <palves@redhat.com>
3706 * remote.c (async_handle_remote_sigint)
3707 (async_handle_remote_sigint_twice): Call
3708 gdb_call_async_signal_handler instead of
3709 mark_async_signal_handler.
3711 2014-07-07 Tom Tromey <tromey@redhat.com>
3713 * target-delegates.c: Rebuild.
3714 * target.c (target_info_record): Remove.
3715 * record.c (info_record_command): Unconditionally call
3717 * target.h (struct target_ops) <to_info_record>: Use
3718 TARGET_DEFAULT_IGNORE.
3719 (target_info_record): Remove.
3721 2014-07-07 Tom Tromey <tromey@redhat.com>
3723 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3724 TARGET_DEFAULT_NORETURN.
3725 * target.c (generic_tls_error): New function.
3726 (target_translate_tls_address): Don't search target stack.
3727 * target-delegates.c: Rebuild.
3728 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3730 * linux-thread-db.c (thread_db_get_thread_local_address):
3731 Unconditionally call beneath target.
3733 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3735 * cli/cli-logging.c (pop_output_files): Assign targerr to
3738 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3740 * MAINTAINERS (Write After Approval): Update my email address.
3742 2014-07-02 Gary Benson <gbenson@redhat.com>
3744 * proc-service.c (ps_xfer_memory): Update comment.
3745 (ps_pstop): Remove unused function.
3746 (ps_pcontinue): Likewise.
3747 (ps_lstop): Likewise.
3748 (ps_lcontinue): Likewise.
3749 (ps_lgetxregsize): Likewise.
3750 (ps_lgetxregs): Likewise.
3751 (ps_lsetxregs): Likewise.
3752 (ps_plog): Likewise.
3753 (ps_ptread): Likewise.
3754 (ps_ptwrite): Likewise.
3756 2014-07-01 Mark Wielaard <mjw@redhat.com>
3758 * dwarf2read.c (add_array_cv_type): New function.
3759 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3760 (read_tag_volatile_type): Likewise.
3762 2014-07-01 Tom Tromey <tromey@redhat.com>
3764 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3765 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3766 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3767 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3768 * command.h (cmd_cfunc_ftype): Move earlier.
3769 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3770 (add_com, add_info): Use cmd_cfunc_ftype.
3772 2014-06-30 Tom Tromey <tromey@redhat.com>
3774 * symtab.c (operator_chars): Make parameters and return type
3776 (file_matches): Make "files" const.
3777 (struct search_symbols_data) <files>: Now const.
3778 (search_symbols): Make "regexp" and "files" parameters const.
3780 (symtab_symbol_info): Remove cast.
3781 (rbreak_command): Update.
3782 * symtab.h (search_symbols): Update.
3784 2014-06-27 Yao Qi <yao@codesourcery.com>
3786 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3787 Change parameter type to 'struct thread_info *'. Caller
3789 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3791 * dummy-frame.c (struct dummy_frame_id): New.
3792 (dummy_frame_id_eq): New function.
3793 (struct dummy_frame) <id>: Change its type to 'struct
3795 (dummy_frame_push): Add parameter ptid and save it in
3797 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3799 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3801 (lookup_dummy_frame): Change parameter type to 'struct
3802 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3803 instead of frame_id_eq.
3804 (dummy_frame_pop): Add parameter ptid. Callers updated.
3805 Update comments. Compose dummy_frame_id and pass it to
3807 (dummy_frame_discard): Add parameter ptid.
3808 (dummy_frame_sniffer): Compose dummy_frame_id and call
3809 dummy_frame_id_eq instead of frame_id_eq.
3810 (fprint_dummy_frames): Print ptid.
3811 * dummy-frame.h: Remove comments.
3812 (dummy_frame_push): Add ptid in declaration.
3813 (dummy_frame_pop, dummy_frame_discard): Likewise.
3815 2014-06-26 Tom Tromey <tromey@redhat.com>
3817 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3818 * command.h (error_no_arg): Update.
3820 2014-06-26 Tom Tromey <tromey@redhat.com>
3822 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3823 (do_show_command): Make "arg" const.
3824 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3826 2014-06-26 Tom Tromey <tromey@redhat.com>
3828 * record-full.c (record_full_get_bookmark): Make "args" const.
3829 (record_full_goto_bookmark): Make "raw_bookmark" const.
3830 * record.c (record_goto): New function.
3831 (cmd_record_goto): Use it. Now static.
3832 * record.h (record_goto): Declare.
3833 (cmd_record_goto): Remove declaration.
3834 * target-delegates.c: Rebuild.
3835 * target.h (struct target_ops) <to_get_bookmark,
3836 to_goto_bookmark>: Make parameter const.
3838 2014-06-26 Tom Tromey <tromey@redhat.com>
3840 * defs.h (generic_load): Update.
3841 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3842 * monitor.c (monitor_load): Make "args" const.
3843 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3844 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3846 (mips_load): Make "file" const.
3847 * remote-sim.c (gdbsim_load): Make "args" const.
3848 * remote.c (remote_load): Make "name" const.
3849 * symfile.c (generic_load): Make "args" const.
3850 * target-delegates.c: Rebuild.
3851 * target.c (target_load): Make "arg" const.
3852 (debug_to_load): Make "args" const.
3853 * target.h (struct target_ops) <to_load>: Make parameter const.
3854 (target_load): Update.
3856 2014-06-26 Tom Tromey <tromey@redhat.com>
3859 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3860 (dwarf2_physname, read_partial_die)
3861 (guess_partial_die_structure_name, fixup_partial_die)
3862 (guess_full_die_structure_name, anonymous_struct_prefix)
3863 (dwarf2_name): Use per-BFD obstack.
3865 2014-06-26 Yao Qi <yao@codesourcery.com>
3867 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3868 dummyframe and this_id into inner block below.
3870 2014-06-26 Yao Qi <yao@codesourcery.com>
3872 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3873 with "signal_pass[0]" in the initialization of signal_pass.
3875 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3877 * record-btrace.c (record_btrace_generating_corefile)
3878 (record_btrace_prepare_to_generate_core)
3879 (record_btrace_done_generating_core): New.
3880 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3881 (record_btrace_store_registers, record_btrace_prepare_to_store):
3882 Forward request when generating a core file.
3883 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3884 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3885 to_done_generating_core.
3887 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3889 * target.h (target_ops) <to_prepare_to_generate_core>
3890 <to_done_generating_core>: New.
3891 (target_prepare_to_generate_core, target_done_generating_core): New.
3892 * target.c (target_prepare_to_generate_core)
3893 (target_done_generating_core): New.
3894 * target-delegates.c: Regenerate.
3895 * gcore.c: (write_gcore_file): Rename to ...
3896 (write_gcore_file_1): ...this.
3897 (write_gcore_file): Call target_prepare_to_generate_core
3898 and target_done_generating_core.
3900 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3902 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3903 * gcore.c (write_gcore_file): Free memory returned from
3904 make_corefile_notes.
3905 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3906 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3908 2014-06-24 Yao Qi <yao@codesourcery.com>
3910 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3911 (arm_linux_init_abi): Set skip_trampoline_code with
3912 gdbarch_skip_trampoline_code instead of
3913 find_solib_trampoline_target.
3915 2014-06-24 Yao Qi <yao@codesourcery.com>
3917 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3918 arm_skip_bx_reg returns non-zero.
3920 2014-06-24 Yao Qi <yao@codesourcery.com>
3922 * arm-tdep.c (arm_skip_bx_reg): New function.
3923 (arm_skip_stub): Call arm_skip_bx_reg.
3925 2014-06-23 Don Breazeal <donb@codesourcery.com>
3927 * MAINTAINERS: Add myself as write-after-approval maintainer.
3929 2014-06-23 Pedro Alves <palves@redhat.com>
3931 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3932 DR_CONTROL before setting DR0..DR3.
3933 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3934 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3935 bits of DR_CONTROL related to the debug register slot being
3936 disabled. If all slots are vacant, clear local slowdown as well,
3937 and assert DR_CONTROL is 0.
3939 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3941 * python/lib/gdb/command/xmethods.py
3942 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3943 current progspace only if the string "progspace" matches LOCUS_RE.
3945 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3947 Fix --with-system-readline with readline-6.3 patch 5.
3948 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3949 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3952 2014-06-20 Tom Tromey <tromey@redhat.com>
3954 * dwarf2read.c (dw2_get_real_path): Use correct type in
3956 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3958 2014-06-20 Gary Benson <gbenson@redhat.com>
3960 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3961 * common/glibc_thread_db.h: Likewise.
3962 * common/i386-cpuid.h: Likewise.
3963 * common/i386-gcc-cpuid.h: Likewise.
3964 * common/linux-btrace.h: Likewise.
3965 * common/linux-osdata.h: Likewise.
3966 * common/linux-procfs.h: Likewise.
3967 * common/linux-ptrace.h: Likewise.
3968 * common/mips-linux-watch.h: Likewise.
3969 * common/linux-btrace.c: Moved to nat.
3970 * common/linux-osdata.c: Likewise.
3971 * common/linux-procfs.c: Likewise.
3972 * common/linux-ptrace.c: Likewise.
3973 * common/mips-linux-watch.c: Likewise.
3974 * nat/gdb_thread_db.h: Moved from common.
3975 * nat/glibc_thread_db.h: Likewise.
3976 * nat/i386-cpuid.h: Likewise.
3977 * nat/i386-gcc-cpuid.h: Likewise.
3978 * nat/linux-btrace.c: Likewise.
3979 * nat/linux-btrace.h: Likewise.
3980 * nat/linux-osdata.c: Likewise.
3981 * nat/linux-osdata.h: Likewise.
3982 * nat/linux-procfs.c: Likewise.
3983 * nat/linux-procfs.h: Likewise.
3984 * nat/linux-ptrace.c: Likewise.
3985 * nat/linux-ptrace.h: Likewise.
3986 * nat/mips-linux-watch.c: Likewise.
3987 * nat/mips-linux-watch.h: Likewise.
3988 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3989 (object file files): Reordered.
3990 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3991 of glibc_thread_db.h.
3993 2014-06-20 Gary Benson <gbenson@redhat.com>
3995 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3996 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3997 (i386_dr_low): Likewise.
3998 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3999 (i386_dr_low_set_addr): Likewise.
4000 (i386_dr_low_get_addr): Likewise.
4001 (i386_dr_low_can_set_control): Likewise.
4002 (i386_dr_low_set_control): Likewise.
4003 (i386_dr_low_get_control): Likewise.
4004 (i386_dr_low_get_status): Likewise.
4005 (i386_get_debug_register_length): Likewise.
4006 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4007 (i386_dr_low): Likewise.
4008 * nat/i386-dregs.c (i386-low.h): Remove include.
4009 (i386-nat.h): Likewise.
4010 (nat/i386-dregs.h): New include.
4011 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4012 (i386_dr_low_set_addr): Likewise.
4013 (i386_dr_low_get_addr): Likewise.
4014 (i386_dr_low_can_set_control): Likewise.
4015 (i386_dr_low_set_control): Likewise.
4016 (i386_dr_low_get_control): Likewise.
4017 (i386_dr_low_get_status): Likewise.
4018 (i386_get_debug_register_length): Likewise.
4019 (debug_hw_points): Likewise.
4021 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4023 * Makefile.in (SFILES): Add d-exp.y.
4024 (YYFILES): Add d-exp.c.
4025 (YYOBJ): Add d-exp.o.
4026 (local-maintainer-clean): Delete d-exp.c.
4027 * d-exp.y: New file.
4028 * d-lang.h (d_parse): New declaration.
4029 (d_error): New declaration.
4030 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4031 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4032 PREC_ORDER operators.
4033 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4035 2014-06-19 Yao Qi <yao@codesourcery.com>
4037 * gdbthread.h (any_running): Remove the declaration.
4038 * thread.c (any_running): Remove.
4040 2014-06-19 Yao Qi <yao@codesourcery.com>
4042 * gdbthread.h (struct thread_info) <state>: Change its type to
4043 'enum thread_state'. Update comments.
4045 2014-06-19 Pedro Alves <palves@redhat.com>
4047 * gdbthread.h (ALL_THREADS): Delete.
4048 (ALL_NON_EXITED_THREADS): New macro.
4049 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4050 instead of ALL_THREADS.
4051 * infrun.c (find_thread_needs_step_over)
4052 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4053 instead of ALL_THREADS.
4054 * record-btrace.c (record_btrace_open)
4055 (record_btrace_stop_recording, record_btrace_close)
4056 (record_btrace_is_replaying, record_btrace_resume)
4057 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4058 * remote.c (append_pending_thread_resumptions): Likewise.
4059 * thread.c (thread_apply_all_command): Likewise.
4061 2014-06-19 Gary Benson <gbenson@redhat.com>
4063 * i386-nat.c (i386_stopped_by_watchpoint):
4064 Use i386_dr_stopped_by_watchpoint.
4065 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4066 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4068 2014-06-19 Gary Benson <gbenson@redhat.com>
4070 * nat/i386-dregs.c: New file.
4071 * Makefile.in (i386-dregs.o): New rule.
4072 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4073 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4074 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4075 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4076 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4077 * config/i386/go32.mh (NATDEPFILES): Likewise.
4078 * config/i386/linux.mh (NATDEPFILES): Likewise.
4079 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4080 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4081 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4082 * i386-nat.h (debug_hw_points): New declaration.
4083 * i386-nat.c (breakpoint.h): Remove include.
4084 (command.h): Likewise.
4085 (target.h): Likewise.
4086 (gdb_assert.h): Likewise.
4087 (debug_hw_points): Made nonstatic.
4088 (debug_printf): Now in i386-dregs.c.
4089 (TARGET_HAS_DR_LEN_8): Likewise.
4090 (DR_CONTROL_SHIFT): Likewise.
4091 (DR_CONTROL_SIZE): Likewise.
4092 (DR_RW_EXECUTE): Likewise.
4093 (DR_RW_WRITE): Likewise.
4094 (DR_RW_READ): Likewise.
4095 (DR_RW_IORW): Likewise.
4096 (DR_LEN_1): Likewise.
4097 (DR_LEN_2): Likewise.
4098 (DR_LEN_4): Likewise.
4099 (DR_LEN_8): Likewise.
4100 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4101 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4102 (DR_ENABLE_SIZE): Likewise.
4103 (DR_LOCAL_SLOWDOWN): Likewise.
4104 (DR_GLOBAL_SLOWDOWN): Likewise.
4105 (DR_CONTROL_RESERVED): Likewise.
4106 (I386_DR_CONTROL_MASK): Likewise.
4107 (I386_DR_VACANT): Likewise.
4108 (I386_DR_LOCAL_ENABLE): Likewise.
4109 (I386_DR_GLOBAL_ENABLE): Likewise.
4110 (I386_DR_DISABLE): Likewise.
4111 (I386_DR_SET_RW_LEN): Likewise.
4112 (I386_DR_GET_RW_LEN): Likewise.
4113 (I386_DR_WATCH_HIT): Likewise.
4114 (i386_wp_op_t): Likewise.
4115 (i386_show_dr): Likewise.
4116 (i386_length_and_rw_bits): Likewise.
4117 (i386_insert_aligned_watchpoint): Likewise.
4118 (i386_remove_aligned_watchpoint): Likewise.
4119 (i386_handle_nonaligned_watchpoint): Likewise.
4120 (i386_update_inferior_debug_regs): Likewise.
4121 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4122 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4123 (i386_region_ok_for_watchpoint):
4124 Use i386_dr_region_ok_for_watchpoint.
4125 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4127 2014-06-19 Gary Benson <gbenson@redhat.com>
4129 * i386-nat.c (i386_insert_hw_breakpoint): Use
4130 i386_insert_watchpoint.
4131 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4133 2014-06-19 Gary Benson <gbenson@redhat.com>
4135 * i386-nat.c (i386_dr_show): Renamed to
4136 i386_show_dr and made static. All uses updated.
4137 (i386_dr_length_and_rw_bits): Renamed to
4138 i386_length_and_rw_bits and made static.
4140 (i386_dr_insert_aligned_watchpoint): Renamed to
4141 i386_insert_aligned_watchpoint and made static.
4143 (i386_dr_remove_aligned_watchpoint): Renamed to
4144 i386_remove_aligned_watchpoint and made static.
4146 (i386_dr_update_inferior_debug_regs): Renamed to
4147 i386_update_inferior_debug_regs and made static.
4149 * nat/i386-dregs.h (i386_dr_show): Removed.
4150 (i386_dr_length_and_rw_bits): Likewise.
4151 (i386_dr_insert_aligned_watchpoint): Likewise.
4152 (i386_dr_remove_aligned_watchpoint): Likewise.
4153 (i386_dr_update_inferior_debug_regs): Likewise.
4155 2014-06-19 Gary Benson <gbenson@redhat.com>
4157 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4158 * configure: Regenerate.
4159 * config.in: Likewise.
4160 * main.c (signal.h): New include.
4161 (setup_alternate_signal_stack): New function.
4162 (captured_main): Call the above.
4163 * cp-support.c (signal.h): New include.
4164 (catch_demangler_crashes): New flag.
4165 (SIGJMP_BUF): New define.
4166 (SIGSETJMP): Likewise.
4167 (SIGLONGJMP): Likewise.
4168 (gdb_demangle_jmp_buf): New static global.
4169 (gdb_demangle_attempt_core_dump): Likewise.
4170 (gdb_demangle_signal_handler): New function.
4171 (gdb_demangle): If catch_demangler_crashes is set, install the
4172 above signal handler before calling bfd_demangle, and restore
4173 the original signal handler afterwards. Display the offending
4174 symbol and call demangler_warning the first time a segmentation
4176 (_initialize_cp_support): New maint set/show command.
4178 2014-06-19 Gary Benson <gbenson@redhat.com>
4180 * utils.h (resource_limit_kind): New enum.
4181 (can_dump_core): New declaration.
4182 (warn_cant_dump_core): Likewise.
4183 (dump_core): Likewise.
4184 * utils.c (dump_core): Made nonstatic. Added new
4185 parameter "limit_kind".
4186 (can_dump_core): Made nonstatic. Moved printing code to...
4187 (warn_cant_dump_core): New function.
4188 (can_dump_core_warn): Likewise.
4189 (internal_vproblem): Replace calls to can_dump_core with
4190 calls to can_dump_core_warn. Supply new argument to each.
4192 2014-06-19 Gary Benson <gbenson@redhat.com>
4194 * utils.h (demangler_vwarning): New declaration.
4195 (demangler_warning): Likewise.
4196 * utils.c (struct internal_problem)
4197 <user_settable_should_quit>: New field.
4198 <user_settable_should_dump_core>: Likewise
4199 (internal_error_problem): Add values for above new fields.
4200 (internal_warning_problem): Likewise.
4201 (demangler_warning_problem): New static global.
4202 (demangler_vwarning): New function.
4203 (demangler_warning): Likewise.
4204 (add_internal_problem_command): Selectively add commands.
4205 (_initialize_utils): New internal problem command.
4206 * maint.c (maintenance_demangler_warning): New function.
4207 (_initialize_maint_cmds): New command.
4209 2014-06-18 Tom Tromey <tromey@redhat.com>
4211 * f-valprint.c (info_common_command_for_block): Update.
4212 * symtab.h (struct general_symbol_info) <common_block>: Now
4215 2014-06-18 Tom Tromey <tromey@redhat.com>
4217 * symtab.h (struct symtab) <blockvector>: Now const.
4218 * ada-lang.c (ada_add_global_exceptions): Update.
4219 * buildsym.c (augment_type_symtab): Update.
4220 * dwarf2read.c (dw2_lookup_symbol): Update.
4221 * jit.c (finalize_symtab): Update.
4222 * jv-lang.c (add_class_symtab_symbol): Update.
4223 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4225 * objfiles.c (objfile_relocate1): Update.
4226 * psymtab.c (lookup_symbol_aux_psymtabs)
4227 (maintenance_check_psymtabs): Update.
4228 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4230 * spu-tdep.c (spu_catch_start): Update.
4231 * symmisc.c (dump_symtab_1): Update.
4232 * symtab.c (lookup_global_symbol_from_objfile)
4233 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4234 (basic_lookup_transparent_type_quick)
4235 (basic_lookup_transparent_type, find_pc_sect_symtab)
4236 (find_pc_sect_line, search_symbols): Update.
4237 * block.c (find_block_in_blockvector): Make "bl" const.
4238 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4240 (blockvector_contains_pc): Make "bv" const.
4241 (block_for_pc_sect): Update.
4242 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4243 (blockvector_contains_pc): Update.
4244 * breakpoint.c (resolve_sal_pc): Update.
4245 * inline-frame.c (block_starting_point_at): Update.
4247 2014-06-18 Tom Tromey <tromey@redhat.com>
4249 * completer.c (complete_line): Make "line_buffer" const.
4250 * completer.h (complete_line): Update.
4252 2014-06-18 Tom Tromey <tromey@redhat.com>
4254 * symtab.c (add_macro_name): Remove unneeded cast.
4256 2014-06-18 Tom Tromey <tromey@redhat.com>
4258 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4259 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4261 2014-06-18 Tom Tromey <tromey@redhat.com>
4263 * probe.c (info_probes_for_ops): Make "arg" const.
4264 * probe.h (info_probes_for_ops): Update.
4266 2014-06-18 Tom Tromey <tromey@redhat.com>
4268 * varobj.c (varobj_create): Update.
4269 * valops.c (value_of_this): Update.
4270 * tracepoint.c (add_local_symbols, scope_info): Update.
4271 * symtab.h (struct general_symbol_info) <block>: Now const.
4272 * symtab.c (skip_prologue_sal)
4273 (default_make_symbol_completion_list_break_on)
4274 (skip_prologue_using_sal): Update.
4275 * stack.h (iterate_over_block_locals)
4276 (iterate_over_block_local_vars): Update.
4277 * stack.c (print_frame_args): Update.
4278 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4280 (get_selected_block): Make return type const.
4281 * python/py-frame.c (frapy_block): Update.
4282 * python/py-block.c (gdbpy_block_for_pc): Update.
4283 * p-exp.y (%union) <bval>: Now const.
4284 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4285 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4286 * m2-exp.y (%union) <bval>: Now const.
4287 * linespec.c (get_current_search_block): Make return type const.
4288 (create_sals_line_offset, find_label_symbols): Update.
4289 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4291 (block_starting_point_at): Make "block" const.
4292 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4293 (check_exception_resume): Update.
4294 * guile/scm-frame.c (gdbscm_frame_block): Update.
4295 * guile/scm-block.c (gdbscm_lookup_block): Update.
4296 * frame.h (get_frame_block): Update.
4297 (get_selected_block): Make return type const.
4298 * frame.c (frame_id_inner): Update.
4299 * f-valprint.c (info_common_command_for_block)
4300 (info_common_command): Update.
4301 * dwarf2loc.c (dwarf2_find_location_expression)
4302 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4303 (locexpr_describe_location_piece): Update.
4304 * c-exp.y (%union) <bval>: Now const.
4305 * breakpoint.c (resolve_sal_pc): Update.
4306 * blockframe.c (get_frame_block):Make return type const.
4307 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4308 (block_innermost_frame): Update.
4309 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4310 (block_for_pc, block_for_pc_sect): Update.
4311 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4313 (block_for_pc_sect, block_for_pc): Make return type const.
4314 * ax-gdb.c (gen_expr): Update.
4315 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4316 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4317 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4318 (ada_read_var_value): Update.
4319 * ada-exp.y (struct name_info) <block>: Now const.
4321 (block_lookup): Constify.
4323 2014-06-18 Gary Benson <gbenson@redhat.com>
4325 * nat/i386-dregs.h: New file.
4326 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4327 * i386-nat.h (i386-dregs.h): New include.
4328 (DR_FIRSTADDR): Now in i386-dregs.h.
4329 (DR_LASTADDR): Likewise.
4330 (DR_NADDR): Likewise.
4331 (DR_STATUS): Likewise.
4332 (DR_CONTROL): Likewise.
4333 (i386_debug_reg_state): Likewise.
4334 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4336 2014-06-18 Don Breazeal <donb@codesourcery.com>
4338 * breakpoint.c (set_longjmp_breakpoint): Call
4339 momentary_breakpoint_from_master with additional argument.
4340 (set_longjmp_breakpoint_for_call_dummy): Call
4341 momentary_breakpoint_from_master with additional argument.
4342 (set_std_terminate_breakpoint): Call
4343 momentary_breakpoint_from_master with additional argument.
4344 (momentary_breakpoint_from_master): Add argument to function
4345 definition and use it to initialize structure member flag.
4346 (clone_momentary_breakpoint): Call
4347 momentary_breakpoint_from_master with additional argument.
4348 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4349 member flags set in momentary_breakpoint_from_master.
4351 2014-06-18 Gary Benson <gbenson@redhat.com>
4353 * i386-nat.c (i386_show_dr): Renamed to
4354 i386_dr_show and made nonstatic. All uses updated.
4355 (i386_length_and_rw_bits): Renamed to
4356 i386_dr_length_and_rw_bits and made nonstatic.
4358 (i386_insert_aligned_watchpoint): Renamed to
4359 i386_dr_insert_aligned_watchpoint and made nonstatic.
4361 (i386_remove_aligned_watchpoint): Renamed to
4362 i386_dr_remove_aligned_watchpoint and made nonstatic.
4364 (i386_update_inferior_debug_regs): Renamed to
4365 i386_dr_update_inferior_debug_regs and made nonstatic.
4368 2014-06-18 Gary Benson <gbenson@redhat.com>
4370 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4371 (i386_dr_low_can_set_control): Likewise.
4372 (i386_dr_low_set_addr): Likewise.
4373 (i386_dr_low_set_control): Likewise.
4374 (i386_dr_low_get_addr): Likewise.
4375 (i386_dr_low_get_status): Likewise.
4376 (i386_dr_low_get_control): Likewise.
4377 (i386_insert_aligned_watchpoint): Use new macros.
4378 (i386_update_inferior_debug_regs): Likewise.
4379 (i386_stopped_data_address): Likewise.
4381 2014-06-18 Gary Benson <gbenson@redhat.com>
4383 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4384 New parameter. All uses updated.
4386 2014-06-18 Gary Benson <gbenson@redhat.com>
4388 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4391 2014-06-18 Gary Benson <gbenson@redhat.com>
4393 * i386-nat.c (debug_printf): New macro.
4394 (i386_get_debug_register_length): Likewise.
4395 (TARGET_HAS_DR_LEN_8): Use above macro.
4396 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4397 and printf_unfiltered. Use phex to format values.
4399 2014-06-18 Gary Benson <gbenson@redhat.com>
4401 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4404 2014-06-18 Gary Benson <gbenson@redhat.com>
4406 * i386-nat.c: Comment changes.
4408 2014-06-18 Gary Benson <gbenson@redhat.com>
4410 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4412 2014-06-18 Gary Benson <gbenson@redhat.com>
4414 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4415 (i386_insert_aligned_watchpoint): Likewise.
4416 (i386_remove_aligned_watchpoint): Likewise.
4417 (i386_handle_nonaligned_watchpoint): Likewise.
4419 2014-06-18 Gary Benson <gbenson@redhat.com>
4421 * i386-nat.c: Whitespace changes.
4423 2014-06-17 Samuel Bronson <naesten@gmail.com>
4425 * MAINTAINERS: Update Roland McGrath's email address.
4426 Thanks to Sergio Durigan Junior for pointing out that he left
4427 Red Hat a while ago, and giving me a current address.
4429 2014-06-17 Tom Tromey <tromey@redhat.com>
4431 * utils.h (savestring): Remove declaration.
4433 2014-06-17 Tom Tromey <tromey@redhat.com>
4435 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4437 2014-06-16 Keith Seitz <keiths@redhat.com>
4440 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4441 to update the varobj if inferior_ptid is null_ptid.
4443 2014-06-16 Tom Tromey <tromey@redhat.com>
4445 * target.h (struct target_ops) <to_info_proc>: Make parameter
4447 (target_info_proc): Update.
4448 * target.c (target_info_proc): Make "args" const.
4449 * procfs.c (procfs_info_proc): Update.
4450 * linux-tdep.c (linux_info_proc): Update.
4451 (linux_core_info_proc_mappings): Make "args" const.
4452 (linux_core_info_proc): Update.
4453 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4454 * gdbarch.c: Rebuild.
4455 * gdbarch.h: Rebuild.
4456 * corelow.c (core_info_proc): Update.
4458 2014-06-16 Tom Tromey <tromey@redhat.com>
4460 * target.h (struct target_ops) <to_disconnect>: Make parameter
4462 (target_disconnect): Update.
4463 * target.c (target_disconnect): Make "args" const.
4464 * target-delegates.c: Rebuild.
4465 * remote.c (remote_disconnect): Update.
4466 * record.h (record_disconnect): Update.
4467 * record.c (record_disconnect): Update.
4468 * inf-child.c (inf_child_disconnect): Update.
4470 2014-06-16 Tom Tromey <tromey@redhat.com>
4472 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4473 * target.c (debug_to_rcmd, default_rcmd): Update.
4474 * target-delegates.c: Rebuild.
4475 * remote.c (remote_rcmd): Update.
4476 * monitor.c (monitor_rcmd): Update.
4478 2014-06-16 Pedro Alves <palves@redhat.com>
4480 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4481 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4482 have OBJF_SHARED set.
4483 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4484 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4485 instead of OBJF_USERLOADED.
4486 * objfiles.h (OBJF_SHARED): Update comment.
4487 (userloaded_objfile_contains_address_p): Rename to ...
4488 (shared_objfile_contains_address_p): ... this, and update
4490 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4492 (remove_symbol_file_command): Skip objfiles that don't have
4495 2014-06-16 Tom Tromey <tromey@redhat.com>
4497 * minsyms.h (prim_record_minimal_symbol)
4498 (prim_record_minimal_symbol_and_info): Update comments.
4500 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4502 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4503 or --without-guile, according to how GDB was built.
4505 2014-06-13 Tom Tromey <tromey@redhat.com>
4507 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4509 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4511 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4513 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4514 help_list.Pass all_commands, not -1, to help_list.
4515 * cli/cli-dump.c (dump_command, append_command)
4516 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4517 (binary_dump_command, binary_append_command): Pass all_commands,
4518 not -1, to help_list.
4519 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4521 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4523 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4525 * top.c (set_history): Pass all_commands, not -1, to help_list.
4526 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4527 all_commands, not -1, to help_list.
4528 * symfile.c (overlay_command): Pass all_commands, not -1, to
4530 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4532 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4534 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4536 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4537 not -1, to help_list.
4538 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4539 not -1, to help_list.
4540 * maint.c (maintenance_command, maintenance_info_command)
4541 (maintenance_print_command, maintenance_set_cmd): Pass
4542 all_commands, not -1, to help_list.
4543 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4545 * language.c (set_check): Pass all_commands, not -1, to help_list.
4546 * infcmd.c (unset_command): Pass all_commands, not -1, to
4548 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4550 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4552 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4554 * breakpoint.c (save_command): Pass all_commands, not -1, to
4556 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4557 all_commands, not -1, to help_list.
4559 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4561 * regcache.c (struct register_to_invalidate): New structure.
4562 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4564 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4566 2014-06-12 Yao Qi <yao@codesourcery.com>
4568 * varobj.c (varobj_get_num_children): Call
4569 varobj_is_dynamic_p.
4570 (varobj_list_children): Likewise.
4571 (varobj_update): Likewise. Update comments.
4573 2014-06-12 Yao Qi <yao@codesourcery.com>
4575 * varobj.c (varobj_pretty_printed_p): Rename to ...
4576 (varobj_is_dynamic_p): ... this. New function.
4577 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4578 (varobj_is_dynamic_p): Declare.
4579 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4580 (mi_print_value_p, varobj_update_one): Likewise.
4582 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4583 Yao Qi <yao@codesourcery.com>
4585 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4586 (varobj_get_iterator): Wrap up code for pretty-printer by
4587 "#if HAVE_PYTHON" and "#endif".
4588 (update_dynamic_varobj_children): Likewise.
4590 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4591 Yao Qi <yao@codesourcery.com>
4593 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4594 gdb_python_initialized is false. Move some code from varobj.c.
4595 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4596 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4597 (struct varobj_item): Moved to varobj-iter.h".
4598 (varobj_clear_saved_item): New function.
4599 (update_dynamic_varobj_children): Move python-related code to
4601 (free_variable): Call varobj_clear_saved_item and
4604 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4605 Yao Qi <yao@codesourcery.com>
4607 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4608 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4609 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4610 (py-varobj.o): New rule.
4611 * python/py-varobj.c: New file.
4612 * python/python-internal.h (py_varobj_get_iterator): Declare.
4613 * varobj-iter.h: New file.
4614 * varobj.c: Include "varobj-iter.h"
4615 (struct varobj) <child_iter>: Change its type from "PyObject *"
4616 to "struct varobj_iter *".
4617 <saved_item>: Likewise.
4618 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4619 [HAVE_PYTHON] (varobj_get_iterator): New function.
4620 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4621 python-specific code to python/py-varobj.c.
4622 (install_visualizer): Call varobj_iter_delete instead of
4624 * varobj.h (varobj_ensure_python_env): Declare.
4626 2014-06-12 Yao Qi <yao@codesourcery.com>
4628 * varobj.c (struct varobj_item): New structure.
4629 (create_child_with_value): Update declaration.
4630 (varobj_add_child): Replace arguments 'name' and 'value' with
4631 'item'. All callers updated.
4632 (install_dynamic_child): Likewise.
4633 (update_dynamic_varobj_children): Likewise.
4634 (varobj_add_child): Likewise.
4635 (create_child_with_value): Likewise.
4637 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4639 * NEWS: Create a new section for the next release branch.
4640 Rename the section of the current branch, now that it has
4643 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4645 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4646 * version.in: Bump version to 7.8.50.DATE-cvs.
4648 2014-06-11 Pedro Alves <palves@redhat.com>
4651 * ser-mingw.c (net_windows_socket_check_pending): New function.
4652 (net_windows_select_thread): Ignore spurious wakeups. Use
4653 net_windows_socket_check_pending.
4654 (net_windows_wait_handle): Check for pending events with
4655 ioctlsocket, through net_windows_socket_check_pending, instead of
4656 checking the socket's event.
4658 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4660 * python/python-internal.h (gdb_PyObject_GetAttrString)
4661 (gdb_PyObject_HasAttrString): New inline function definitions.
4662 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4663 char * of the second argument to PyObject_GetAttrString.
4665 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4667 * serial.c (serial_write): Fix index of character to be printed
4668 in call to serial_logchar when serial debug traces are enabled.
4670 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4672 * gdbtypes (resolve_dynamic_range): Add function description.
4674 2014-06-09 Pedro Alves <palves@redhat.com>
4676 * linux-nat.c (linux_child_follow_fork): Initialize status with
4677 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4678 inner block. Only pass the signal to PTRACE_DETACH if in pass
4681 2014-06-09 Gary Benson <gbenson@redhat.com>
4683 * common/signals.c (gdb_signal_from_host): Reorder to separate
4684 the always-available ANSI-standard signals from the signals that
4686 (do_gdb_signal_to_host): Likewise.
4687 * proc-events.c (signal_table): Likewise.
4689 2014-06-08 Hui Zhu <hui@codesourcery.com>
4691 * common/linux-ptrace.c (linux_disable_event_reporting): New
4693 * common/linux-ptrace.h (linux_disable_event_reporting): New
4695 * linux-nat.c (linux_child_follow_fork): Do a single step before
4698 2014-06-07 Keith Seitz <keiths@redhat.com>
4702 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4703 from symbol_matches_domain in symtab.c. All local callers
4704 of symbol_matches_domain updated.
4705 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4706 search STRUCT_DOMAIN.
4707 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4708 independently. standard_lookup will do that automatically.
4709 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4710 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4711 (cp_lookup_symbol_in_namespace): Likewise.
4712 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4713 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4714 may return a STRUCT_DOMAIN match.
4715 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4716 * cp-support.c: Include language.h.
4717 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4719 * psymtab.c (match_partial_symbol): Compare the requested
4720 domain with the symbol's domain directly.
4721 (lookup_partial_symbol): Likewise.
4722 * symtab.c (lookup_symbol_in_language): Explain when/why
4723 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4724 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4725 appropriate languages.
4726 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4727 and moved to ada-lang.c
4728 (lookup_block_symbol): Explain that this function only returns
4729 symbol matching the requested DOMAIN.
4730 Compare the requested domain with the symbol's domain directly.
4731 (iterate_over_symbols): Compare the requested domain with the
4732 symbol's domain directly.
4733 * symtab.h (symbol_matches_domain): Remove.
4735 2014-06-06 Doug Evans <xdje42@gmail.com>
4737 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4738 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4739 (gdbscm_guile_version_is_at_least): Declare.
4740 (gdbscm_scm_string_to_int): Declare.
4741 * guile/guile.c (gdbscm_guile_major_version): New global.
4742 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4743 (guile_datadir): New static global.
4744 (gdbscm_guile_data_directory): New function.
4745 (initialize_scheme_side): Update.
4746 (misc_guile_functions): Add guile-data-directory.
4747 (initialize_gdb_module): Fetch guile version number.
4748 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4749 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4750 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4751 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4753 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4754 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4755 * guile/scm-value.c (gdbscm_value_to_string): Only call
4756 scm_port_conversion_strategy if Guile version >= 2.0.6.
4758 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4760 * main.c (print_gdb_help): Add -q and --silent.
4762 2014-06-06 Gary Benson <gbenson@redhat.com>
4764 * common/signals.c: Remove preprocessor conditionals for
4765 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4766 SIGSEGV and SIGTERM.
4767 * proc-events.c: Likewise.
4769 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4771 * symfile.c (symfile_free_objfile): Remove restriction to
4773 * symfile-mem.c (symbol_file_add_from_memory): Call
4774 add_target_sections_of_objfile.
4776 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4778 * guile/scm-value.c (gdbscm_history_append_x): Use
4779 'vlscm_get_value_smob_arg_unsafe' instead of
4780 'vlscm_scm_to_value'.
4782 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4785 * utils.c (printchar): Don't escape at all if quoter is NUL.
4786 Update function documentation to clarify effect of parameter
4788 * remote.c (escape_buffer): Pass '\\' as the quoter to
4789 fputstrn_unfiltered.
4790 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4791 generate the output.
4792 (mi_solib_unloaded): Same.
4794 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4796 * development.sh: Delete.
4797 * Makefile.in (config.status): Adjust dependency on development.sh.
4798 * configure.ac: Adjust development.sh source call.
4799 * configure: Regenerate.
4801 2014-06-04 Doug Evans <xdje42@gmail.com>
4803 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4804 is_scheme_bkpt, spec.
4805 (bpscm_make_breakpoint_smob): Initialize new members.
4806 (gdbscm_create_breakpoint_x): Split into two ...
4807 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4808 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4809 (scheme_function breakpoint_functions): Update.
4810 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4811 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4812 register-breakpoint!.
4814 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4817 * mem-break.c (z_type_supported): Return zero if
4818 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4820 2014-06-04 Tom Tromey <tromey@redhat.com>
4822 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4823 value_from_contents_and_address_unresolved.
4824 (ada_template_to_fixed_record_type_1): Likewise.
4825 (ada_which_variant_applies): Likewise.
4826 * value.h (value_from_contents_and_address_unresolved): Declare.
4827 * value.c (value_from_contents_and_address_unresolved): New
4829 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4830 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4831 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4833 2014-06-04 Tom Tromey <tromey@redhat.com>
4835 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4837 2014-06-04 Tom Tromey <tromey@redhat.com>
4839 * procfs.c (procfs_attach): Make "args" const.
4840 * windows-nat.c (windows_attach): Make "args" const.
4841 * nto-procfs.c (procfs_attach): Make "args" const.
4842 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4843 * go32-nat.c (go32_attach): Make "args" const.
4844 * gnu-nat.c (gnu_attach): Make "args" const.
4845 * darwin-nat.c (darwin_attach): Make "args" const.
4846 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4847 * linux-nat.c (linux_nat_attach): Make "args" const.
4848 * remote.c (extended_remote_attach_1, extended_remote_attach):
4850 * target.h (struct target_ops) <to_attach>: Make "args" const.
4851 (find_default_attach): Likewise.
4852 * utils.c (parse_pid_to_attach): Make "args" const.
4853 * utils.h (parse_pid_to_attach): Update.
4855 2014-06-04 Tom Tromey <tromey@redhat.com>
4857 * target-delegates.c: Rebuild.
4858 * target.c (default_thread_address_space): New function.
4859 (target_thread_address_space): Simplify.
4860 * target.h (struct target_ops) <to_thread_address_space>: Add
4861 TARGET_DEFAULT_FUNC.
4863 2014-06-04 Doug Evans <xdje42@gmail.com>
4865 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4867 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4869 * record-btrace.c: Include event-loop.h and inf-loop.h.
4870 (record_btrace_resume_exec_dir)
4871 (record_btrace_async_inferior_event_handler)
4872 (record_btrace_handle_async_inferior_event): New.
4873 (record_btrace_open): Create async event handler.
4874 (record_btrace_close): Delete async event handler.
4875 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4876 Mark async event handler.
4877 (record_btrace_execution_direction): New.
4878 (init_record_btrace_ops): Initialize to_execution_direction.
4880 2014-06-03 Doug Evans <xdje42@gmail.com>
4882 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4883 (gdbscm_make_parameter): Ditto.
4885 2014-06-03 Doug Evans <dje@google.com>
4887 * exec.c (exec_close_1): Call clear_section_table instead of
4888 resize_section_table.
4889 (clear_section_table): New function.
4890 (resize_section_table): Make static. Rename arg num_added to
4892 * exec.h (clear_section_table): Declare.
4893 (resize_section_table): Delete.
4894 * progspace.c (release_program_space): Call clear_section_table
4895 instead of resize_section_table.
4897 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4899 * NEWS (Python Scripting): Add entry about the new xmethods
4902 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4904 * python/py-xmethods.c: New file.
4905 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4906 (objfpy_dealloc): XDECREF on the new xmethods field.
4907 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4909 (objfpy_get_xmethods): New function.
4910 (objfile_getset): New entry 'xmethods'.
4911 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4912 (pspy_dealloc): XDECREF on the new xmethods field.
4913 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4915 (pspy_get_xmethods): New function.
4916 (pspace_getset): New entry 'xmethods'.
4917 * python/python-internal.h: Add declarations for new functions.
4918 * python/python.c (_initialize_python): Invoke
4919 gdbpy_initialize_xmethods.
4920 * python/lib/gdb/__init__.py (xmethods): New
4922 * python/lib/gdb/xmethod.py: New file.
4923 * python/lib/gdb/command/xmethods.py: New file.
4925 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4927 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4928 best match method returned by find_overload_match is an xmethod.
4929 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4930 the best matching operator returned by find_overload_match is an
4932 * valops.c: #include "extension.h".
4933 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4934 Return void. The list of matching source methods is returned in
4935 "fn_list" and a vector of matching debug method workers is
4936 returned in "xm_worker_vec". Update all callers.
4937 (value_find_oload_method_list): Likewise.
4938 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4939 non-NULL, then the index of the best matching method in this
4940 vector is returned. Update all callers.
4941 (find_overload_match): Include xmethods while performing overload
4944 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4946 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4947 * extension-priv.h (struct extension_language_ops): Add the
4949 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4950 get_matching_xmethod_workers, get_xmethod_argtypes,
4951 invoke_xmethod, free_xmethod_worker,
4952 free_xmethod_worker_vec): New functions.
4953 * extension.h: #include "common/vec.h".
4954 New function declarations.
4955 (struct xmethod_worker): New struct.
4956 (VEC (xmethod_worker_ptr)): New vector type.
4957 (xmethod_worker_ptr): New typedef.
4958 (xmethod_worker_vec): Likewise.
4959 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4961 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4962 (struct builtin_type): New field "xmethod".
4963 * valarith.c (value_ptradd): Assert that the value argument is not
4965 * valops.c (value_must_coerce_to_target): Return 0 for
4966 lval_xcallable values.
4967 * value.c (struct value): New field XM_WORKER in the field
4969 (value_address, value_raw_address): Return 0 for lval_xcallable
4971 (set_value_address): Assert that the value is not an
4973 (value_free): Free the associated xmethod worker when freeing
4974 lval_xcallable values.
4975 (set_value_component_location): Assert that the WHOLE value is not
4977 (value_of_xmethod, call_xmethod): New functions.
4978 * value.h: Declare "struct xmethod_worker".
4979 Declare new functions value_of_xmethod, call_xmethod.
4981 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4982 Pedro Alves <palves@redhat.com>
4984 PR breakpoints/17000
4985 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4986 New function, extracted from software_breakpoint_inserted_here_p.
4987 (software_breakpoint_inserted_here_p): Replace factored out code
4988 by call to find_non_raw_software_breakpoint_inserted_here.
4989 (bp_target_info_copy_insertion_state): New function.
4990 (bkpt_insert_location): Handle the case of a single-step
4991 breakpoint already inserted at the same address.
4992 (bkpt_remove_location): Handle the case of a single-step
4993 breakpoint still inserted at the same address.
4994 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4995 breakpoint already inserted at the same address.
4996 (deprecated_remove_raw_breakpoint): Handle the case of a
4997 non-raw breakpoint still inserted at the same address.
4998 (find_single_step_breakpoint): New function, extracted from
4999 single_step_breakpoint_inserted_here_p.
5000 (find_single_step_breakpoint): New function,
5001 factored out from single_step_breakpoint_inserted_here_p.
5002 (single_step_breakpoint_inserted_here_p): Reimplement.
5004 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5006 Pushed by Joel Brobecker <brobecker@adacore.com>
5007 * source.c (show_substitute_path_command): Fix display of matching
5010 2014-06-03 Gary Benson <gbenson@redhat.com>
5012 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5014 2014-06-02 Doug Evans <xdje42@gmail.com>
5016 Add parameter support for Guile.
5017 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5018 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5019 (scm-param.o): New rule.
5020 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5021 (gdbscm_misc_error): Declare.
5022 (gdbscm_canonicalize_command_name): Declare.
5023 (gdbscm_scm_to_host_string): Declare.
5024 (gdbscm_scm_from_host_string): Declare.
5025 (gdbscm_initialize_parameters): Declare.
5026 * guile/guile.c (initialize_gdb_module): Call
5027 gdbscm_initialize_parameters.
5028 * guile/lib/gdb.scm: Export parameter symbols.
5029 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5030 cmdscm_canonicalize_name and made public. All callers updated.
5031 * guile/scm-exception.c (gdbscm_misc_error): New function.
5032 * guile/scm-param.c: New file.
5033 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5034 (gdbscm_scm_to_host_string): New function.
5035 (gdbscm_scm_from_host_string): New function.
5036 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5038 2014-06-02 Doug Evans <xdje42@gmail.com>
5040 Add command support for Guile.
5041 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5042 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5043 (scm-cmd.o): New rule.
5044 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5045 (gdbscm_user_error_p): Declare.
5046 (gdbscm_parse_command_name): Declare.
5047 (gdbscm_valid_command_class_p): Declare.
5048 (gdbscm_initialize_commands): Declare.
5049 * guile/guile.c (initialize_gdb_module): Call
5050 gdbscm_initialize_commands.
5051 * guile/lib/gdb.scm: Export command symbols.
5052 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5053 (throw-user-error): New function.
5054 * guile/scm-cmd.c: New file.
5055 * guile/scm-exception.c (user_error_symbol): New static global.
5056 (gdbscm_user_error_p): New function.
5057 (gdbscm_initialize_exceptions): Set user_error_symbol.
5058 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5060 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5062 * top.c (command_loop): Handle comments here...
5063 (command_line_input): ... not here.
5065 2014-06-02 Doug Evans <xdje42@gmail.com>
5067 Add progspace support for Guile.
5068 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5069 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5070 (scm-progspace.o): New rule.
5071 * guile/guile-internal.h (pspace_smob): New typedef.
5072 (psscm_pspace_smob_pretty_printers): Declare.
5073 (psscm_pspace_smob_from_pspace): Declare.
5074 (psscm_scm_from_pspace): Declare.
5075 * guile/guile.c (initialize_gdb_module): Call
5076 gdbscm_initialize_pspaces.
5077 * guile/lib/gdb.scm: Export progspace symbols.
5078 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5080 (append-pretty-printer!): Ditto.
5081 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5083 * guile/scm-progspace.c: New file.
5085 2014-06-03 Alan Modra <amodra@gmail.com>
5087 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5088 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5090 2014-06-02 Doug Evans <dje@google.com>
5092 Add support for skeletonless type units.
5093 * dwarf2read.c (struct dwarf2_per_objfile): New member
5094 n_allocated_type_units.
5095 (struct dwarf2_per_objfile) <tu_stats>: New member
5096 nr_all_type_units_reallocs.
5097 (create_signatured_type_table_from_index): Initialize
5098 n_allocated_type_units
5099 (create_all_type_units): Ditto.
5100 (add_type_unit): Move up in file. New arg slot.
5101 All callers updated. Increase space for all_type_units more
5103 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5104 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5105 (lookup_dwp_signatured_type): Ditto.
5106 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5107 All callers updated.
5108 (build_type_psymtabs_1): Leave type_unit_groups as
5109 NULL if no TUs present.
5110 (print_tu_stats): New function.
5111 (process_skeletonless_type_unit): New function.
5112 (process_dwo_file_for_skeletonless_type_units): New
5114 (process_skeletonless_type_units): New function.
5115 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5116 Call print tu_stats if debugging enabled.
5118 2014-06-02 Pedro Alves <palves@redhat.com>
5120 * breakpoint.c (build_target_command_list): Don't build a command
5121 list if we have any duplicate location that isn't a dprintf.
5123 2014-06-02 Pedro Alves <palves@redhat.com>
5125 * breakpoint.c (dprintf_breakpoint_hit): New function.
5126 (initialize_breakpoint_ops): Install it as dprintf's
5127 breakpoint_hit method.
5129 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5131 * source.c (substitute_path_rule_matches): Simplify using
5132 filename_ncmp instead of FILENAME_CMP.
5134 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5136 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5138 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5140 * configure.ac: When Guile is available, check for the
5141 availability of 'scm_new_smob'.
5142 * configure, config.h.in: Regenerate.
5143 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5146 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5148 * frame.c (struct frame_info): Add stop_string field.
5149 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5150 (get_prev_frame_always): Old content moved into
5151 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5152 TRY_CATCH, handle MEMORY_ERROR exceptions.
5153 (frame_stop_reason_string): New function definition.
5154 * frame.h (unwind_stop_reason_to_string): Extend comment to
5155 mention frame_stop_reason_string.
5156 (frame_stop_reason_string): New function declaration.
5157 * stack.c (frame_info): Switch to frame_stop_reason_string.
5158 (backtrace_command_1): Switch to frame_stop_reason_string.
5159 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5160 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5161 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5163 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5165 * frame.c (frame_stop_reason_string): Rename to ...
5166 (unwind_stop_reason_to_string): this.
5167 * frame.h (frame_stop_reason_string): Rename to ...
5168 (unwind_stop_reason_to_string): this.
5169 * stack.c (frame_info): Update call to frame_stop_reason_string.
5170 (backtrace_command_1): Likewise.
5171 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5172 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5174 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5176 * frame.c (remove_prev_frame): New function.
5177 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5180 2014-05-29 Pedro Alves <palves@redhat.com>
5182 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5183 and make it const. When a single-step decays to a continue,
5184 clear 'step', not 'hw_step'. Pass whether the caller wanted
5185 to step to user_visible_resume_ptid, not what we ask the
5188 2014-05-29 Pedro Alves <palves@redhat.com>
5190 * infrun.c (process_event_stop_test, handle_step_into_function)
5191 (handle_step_into_function_backward): Adjust.
5192 Don't set the even thread's stop_step and call stop_waiting before
5193 calling end_stepping_range. Instead do that ...
5194 (end_stepping_range): ... here. Take an ecs pointer parameter.
5196 2014-05-29 Pedro Alves <palves@redhat.com>
5198 * infrun.c (stop_stepping): Rename to ...
5199 (stop_waiting): ... this.
5200 (proceed): Update comment.
5201 (process_event_stop_test, handle_inferior_event)
5202 (handle_signal_stop, handle_step_into_function)
5203 (handle_step_into_function_backward): Update.
5205 2014-05-29 Pedro Alves <palves@redhat.com>
5207 * infcall.c (run_inferior_call): Don't check whether the current
5208 thread is running after the proceed call.
5210 2014-05-29 Pedro Alves <palves@redhat.com>
5211 Tom Tromey <tromey@redhat.com>
5213 * NEWS: Mention "maint set target-async", "set mi-async", and that
5214 background execution commands are now always available.
5215 * target.h (target_async_permitted): Update comment.
5216 * target.c (target_async_permitted, target_async_permitted_1):
5218 (set_target_async_command): Rename to ...
5219 (maint_set_target_async_command): ... this.
5220 (show_target_async_command): Rename to ...
5221 (maint_show_target_async_command): ... this.
5222 (_initialize_target): Adjust.
5223 * infcmd.c (prepare_execution_command): Make extern.
5224 * inferior.h (prepare_execution_command): Declare.
5225 * infrun.c (set_observer_mode): Leave target async alone.
5226 * mi/mi-interp.c (mi_interpreter_init): Install
5227 mi_on_sync_execution_done as sync_execution_done observer.
5228 (mi_on_sync_execution_done): New function.
5229 (mi_execute_command_input_handler): Don't print the prompt if we
5230 just started a synchronous command with an async target.
5231 (mi_on_resume): Check sync_execution before printing prompt.
5232 * mi/mi-main.h (mi_async_p): Declare.
5233 * mi/mi-main.c: Include gdbcmd.h.
5234 (mi_async_p): New function.
5235 (mi_async, mi_async_1): New globals.
5236 (set_mi_async_command, show_mi_async_command, mi_async): New
5238 (exec_continue): Call prepare_execution_command.
5239 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5240 (mi_execute_async_cli_command): Use mi_async_p.
5241 (_initialize_mi_main): Install "set mi-async". Make
5242 "target-async" a deprecated alias.
5244 2014-05-29 Pedro Alves <palves@redhat.com>
5246 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5247 (_initialize_cli_interp): Adjust.
5248 * event-loop.c: Include "observer.h".
5249 (start_event_loop): Notify 'command_error' observers instead of
5250 calling display_gdb_prompt. Remove FIXME comment.
5251 * event-top.c (display_gdb_prompt): Remove call into the
5253 * inf-loop.c: Include "observer.h".
5254 (inferior_event_handler): Notify 'command_error' observers instead
5255 of calling display_gdb_prompt.
5256 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5257 observers instead of calling display_gdb_prompt.
5258 * interps.c (interp_set): Don't call display_gdb_prompt.
5259 (current_interp_display_prompt_p): Delete.
5260 * interps.h (interp_prompt_p): Delete declaration.
5261 (interp_prompt_p_ftype): Delete.
5262 (struct interp_procs) <prompt_proc_p>: Delete field.
5263 (current_interp_display_prompt_p): Delete declaration.
5264 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5265 (_initialize_mi_interp): Adjust.
5266 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5267 'command_error' observers.
5268 (tui_on_sync_execution_done, tui_on_command_error): New
5270 (tui_display_prompt_p): Delete.
5271 (_initialize_tui_interp): Adjust.
5273 2014-05-29 Pedro Alves <palves@redhat.com>
5276 * cli/cli-interp.c: Include infrun.h and observer.h.
5277 (cli_uiout, cli_interp): New globals.
5278 (cli_on_signal_received, cli_on_end_stepping_range)
5279 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5281 (cli_interpreter_init): Install them as 'end_stepping_range',
5282 'signal_received' 'signal_exited', 'exited' and 'no_history'
5284 (_initialize_cli_interp): Remove cli_interp local.
5285 * infrun.c (handle_inferior_event): Call the several stop reason
5286 observers instead of printing the stop reason directly.
5287 (end_stepping_range): New function.
5288 (print_end_stepping_range_reason, print_signal_exited_reason)
5289 (print_exited_reason, print_signal_received_reason)
5290 (print_no_history_reason): Make static, and add an uiout
5291 parameter. Print to that instead of to CURRENT_UIOUT.
5292 * infrun.h (print_end_stepping_range_reason)
5293 (print_signal_exited_reason, print_exited_reason)
5294 (print_signal_received_reason print_no_history_reason): New
5296 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5298 <cli_uiout>: New field.
5299 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5300 uiout for CLI output. Install 'signal_received',
5301 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5303 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5304 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5305 (mi_on_no_history): New functions.
5306 (ui_out_free_cleanup): Delete function.
5307 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5308 instead use the one already stored in the MI interpreter data.
5309 (mi_ui_out): Adjust.
5310 * tui/tui-interp.c: Include infrun.h and observer.h.
5311 (tui_interp): New global.
5312 (tui_on_signal_received, tui_on_end_stepping_range)
5313 (tui_on_signal_exited, tui_on_exited)
5314 (tui_on_no_history): New functions.
5315 (tui_init): Install them as 'end_stepping_range',
5316 'signal_received' 'signal_exited', 'exited' and 'no_history'
5318 (_initialize_tui_interp): Delete tui_interp local.
5320 2014-05-29 Pedro Alves <palves@redhat.com>
5323 * linux-nat.c (linux_nat_resume_callback): Rename the second
5324 parameter to 'except'. Skip LP if it points to EXCEPT.
5325 (linux_nat_resume): Don't mark the event lwp as not stopped
5326 before resuming sibling lwps. Instead ask
5327 linux_nat_resume_callback to skip the event lwp. Mark it as not
5328 stopped after actually resuming it.
5329 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5331 (wait_lwp): Mark the lwp as stopped here.
5332 (stop_wait_callback): Mark the lwp as not stopped right after
5333 resuming it. Don't mark lwps as stopped here.
5334 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5335 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5337 2014-05-29 Pedro Alves <palves@redhat.com>
5340 * infrun.c (resume): Determine how much to resume depending on
5341 whether the caller wanted a step, not whether we can hardware step
5342 the target. Mark all threads that we intend to run as running,
5343 unless we're calling an inferior function.
5344 (normal_stop): If the thread is running an infcall, don't finish
5346 * target.c (target_resume): Don't mark threads as running here.
5348 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5350 * serial.c (_initialize_serial): Remove support for
5351 the "set remotebaud" and "show remotebaud" commands.
5352 * NEWS: Add entry documenting the removal of that command.
5354 2014-05-28 Yao Qi <yao@codesourcery.com>
5356 * charset.c: Fix typo in comments.
5358 2014-05-27 Gary Benson <gbenson@redhat.com>
5360 * utils.c (internal_vproblem): Prompt for a bug report.
5362 2014-05-26 Andy Wingo <wingo@igalia.com>
5364 * guile/scm-arch.c (arscm_mark_arch_smob):
5365 * guile/scm-block.c (bkscm_mark_block_smob)
5366 (bkscm_mark_block_syms_progress_smob):
5367 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5368 * guile/scm-exception.c (exscm_mark_exception_smob):
5369 * guile/scm-frame.c (frscm_mark_frame_smob):
5370 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5371 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5372 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5373 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5374 (ppscm_mark_pretty_printer_worker_smob):
5375 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5376 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5377 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5378 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5380 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5383 2014-05-26 Andy Wingo <wingo@igalia.com>
5384 Doug Evans <xdje42@gmail.com>
5386 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5387 empty_base_class. All uses updated.
5388 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5389 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5391 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5392 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5393 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5394 (gdbscm_gsmob_has_property_p, add_property_name)
5395 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5396 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5397 (gdb-object-has-property?, gdb-object-properties): Remove.
5398 (gdb-object-kind): Renamed from gsmob-kind.
5400 2014-05-26 Andy Wingo <wingo@igalia.com>
5402 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5403 * configure: Regenerate.
5405 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5407 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5409 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5411 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5412 (replay_memory_access_read_only, replay_memory_access_read_write)
5413 (replay_memory_access_types, replay_memory_access)
5414 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5415 (cmd_set_record_btrace, cmd_show_record_btrace)
5416 (cmd_show_replay_memory_access): New.
5417 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5418 (record_btrace_remove_breakpoint): Replace
5419 record_btrace_allow_memory_access with replay_memory_access.
5420 (_initialize_record_btrace): Add commands.
5421 * NEWS: Announce it.
5423 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5425 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5427 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5429 * MAINTAINERS (Write After Approval): Move self back from
5432 2014-05-22 Pedro Alves <palves@redhat.com>
5434 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5435 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5436 (disable_randomization, enum exec_direction_kind)
5437 (execution_direction, stop_registers, start_remote)
5438 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5439 (wait_for_inferior, normal_stop, get_last_target_status)
5440 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5441 (insert_step_resume_breakpoint_at_sal)
5442 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5443 (set_step_info, print_stop_event, signal_stop_state)
5444 (signal_print_state, signal_pass_state, signal_stop_update)
5445 (signal_print_update, signal_pass_update)
5446 (update_signals_program_target, clear_exit_convenience_vars)
5447 (displaced_step_dump_bytes, update_observer_mode)
5448 (signal_catch_update, gdb_signal_from_command): Move
5450 * infrun.h: ... to this new file.
5451 * amd64-tdep.c: Include infrun.h.
5452 * annotate.c: Include infrun.h.
5453 * arch-utils.c: Include infrun.h.
5454 * arm-linux-tdep.c: Include infrun.h.
5455 * arm-tdep.c: Include infrun.h.
5456 * break-catch-sig.c: Include infrun.h.
5457 * breakpoint.c: Include infrun.h.
5458 * common/agent.c: Include infrun.h instead of inferior.h.
5459 * corelow.c: Include infrun.h.
5460 * event-top.c: Include infrun.h.
5461 * go32-nat.c: Include infrun.h.
5462 * i386-tdep.c: Include infrun.h.
5463 * inf-loop.c: Include infrun.h.
5464 * infcall.c: Include infrun.h.
5465 * infcmd.c: Include infrun.h.
5466 * infrun.c: Include infrun.h.
5467 * linux-fork.c: Include infrun.h.
5468 * linux-nat.c: Include infrun.h.
5469 * linux-thread-db.c: Include infrun.h.
5470 * monitor.c: Include infrun.h.
5471 * nto-tdep.c: Include infrun.h.
5472 * procfs.c: Include infrun.h.
5473 * record-btrace.c: Include infrun.h.
5474 * record-full.c: Include infrun.h.
5475 * remote-m32r-sdi.c: Include infrun.h.
5476 * remote-mips.c: Include infrun.h.
5477 * remote-notif.c: Include infrun.h.
5478 * remote-sim.c: Include infrun.h.
5479 * remote.c: Include infrun.h.
5480 * reverse.c: Include infrun.h.
5481 * rs6000-tdep.c: Include infrun.h.
5482 * s390-linux-tdep.c: Include infrun.h.
5483 * solib-irix.c: Include infrun.h.
5484 * solib-osf.c: Include infrun.h.
5485 * solib-svr4.c: Include infrun.h.
5486 * target.c: Include infrun.h.
5487 * top.c: Include infrun.h.
5488 * windows-nat.c: Include infrun.h.
5489 * mi/mi-interp.c: Include infrun.h.
5490 * mi/mi-main.c: Include infrun.h.
5491 * python/py-threadevent.c: Include infrun.h.
5493 2014-05-22 Pedro Alves <palves@redhat.com>
5495 * infrun.c (handle_inferior_event): Store the exit code for
5496 --return-child-result here, instead of ...
5497 (print_exited_reason): ... here.
5499 2014-05-21 Pedro Alves <palves@redhat.com>
5502 * gdbthread.h (struct thread_control_state): New field
5504 * infrun.c (follow_fork): Copy the new thread control field to the
5506 (clear_proceed_status_thread): Clear the new thread control field.
5507 (proceed): Set the new thread control field.
5508 * interps.h (command_interp): Declare.
5509 * interps.c (command_interpreter): New global.
5510 (command_interp): New function.
5511 (interp_exec): Set `command_interpreter' while here.
5512 * cli-out.c (cli_uiout_dtor): New function.
5513 (cli_ui_out_impl): Install it.
5514 * mi/mi-interp.c: Include cli-out.h.
5515 (mi_cmd_interpreter_exec): Add comment.
5516 (restore_current_uiout_cleanup): New function.
5517 (ui_out_free_cleanup): New function.
5518 (mi_on_normal_stop): If finishing an execution command started by
5519 a CLI command, or any kind of breakpoint-like event triggered,
5520 print the stop event to the output (CLI) stream.
5521 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5523 2014-05-21 Pedro Alves <palves@redhat.com>
5525 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5526 current source line having changed.
5527 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5528 * infrun.c (normal_stop): Adjust call to
5529 set_current_sal_from_frame.
5530 * source.c (clear_lines_listed_range): New function.
5531 (set_current_source_symtab_and_line, identify_source_line): Clear
5532 the lines listed range.
5533 (line_info): Handle the first "info line" after the current source
5534 line having changed.
5535 * stack.c (print_stack_frame): Remove center handling.
5536 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5539 2014-05-21 Pedro Alves <palves@redhat.com>
5541 * inf-child.c (inf_child_mourn_inferior): New function.
5542 * inf-child.h (inf_child_mourn_inferior): New declaration.
5543 * darwin-nat.c (darwin_mourn_inferior): Use
5544 inf_child_mourn_inferior.
5545 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5546 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5547 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5548 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5549 * windows-nat.c (windows_mourn_inferior): Likewise.
5551 2014-05-21 Doug Evans <xdje42@gmail.com>
5553 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5555 2014-05-21 Doug Evans <xdje42@gmail.com>
5557 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5558 (gdbscm_out_of_range_error): Ditto.
5559 (gdbscm_memory_error): Ditto.
5560 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5561 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5562 (gdbscm_out_of_range_error): Update.
5563 (gdbscm_memory_error): Update.
5564 (gdbscm_scm_to_target_string_unsafe): Delete.
5566 2014-05-21 Pedro Alves <palves@redhat.com>
5568 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5570 (inf_child_open_target): New function.
5571 (inf_child_open): Use inf_child_open_target to push the target
5572 instead of erroring out.
5573 (inf_child_disconnect, inf_child_close)
5574 (inf_child_maybe_unpush_target): New functions.
5575 (inf_child_target): Install inf_child_disconnect and
5576 inf_child_close. Store a pointer to the returned object.
5577 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5579 * target.c (auto_connect_native_target): New global.
5580 (show_default_run_target): New function.
5581 (find_default_run_target): Return NULL if automatically connecting
5582 to the native target is disabled.
5583 (_initialize_target): Install set/show auto-connect-native-target.
5584 * NEWS: Mention "set auto-connect-native-target", and "target
5586 * linux-nat.c (super_close): New global.
5587 (linux_nat_close): Call super_close.
5588 (linux_nat_add_target): Store a pointer to the base class's
5590 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5591 inf_child_maybe_unpush.
5592 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5594 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5595 the inferior. Use inf_child_maybe_unpush_target.
5596 (inf_ttrace_attach): Don't push the target if it is already
5598 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5599 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5600 after mourning the inferior. Use inf_child_maybe_unpush_target.
5601 (darwin_attach_pid): Don't push the target if it is already
5603 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5604 mourning the inferior. Use inf_child_maybe_unpush_target.
5605 (gnu_detach): Use inf_child_maybe_unpush_target.
5606 * go32-nat.c (go32_create_inferior): Don't push the target if it
5608 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5609 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5610 (procfs_open): Rename to ...
5611 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5612 comments. Can target_preopen before changing node. Call
5613 inf_child_open_target to push the target explicitly.
5614 (procfs_attach): Don't push the target if it is already pushed.
5615 (procfs_detach): Use inf_child_maybe_unpush_target.
5616 (procfs_create_inferior): Don't push the target if it is already
5618 (nto_native_ops): New global.
5619 (procfs_open): Reimplement.
5620 (procfs_native_open): New function.
5621 (init_procfs_targets): Install procfs_native_open as to_open of
5622 "target native". Store a pointer to the "native" target in
5624 * procfs.c (procfs_attach): Don't push the target if it is already
5626 (procfs_detach): Use inf_child_maybe_unpush_target.
5627 (procfs_mourn_inferior): Only unpush the target after mourning the
5628 inferior. Use inf_child_maybe_unpush_target.
5629 (procfs_init_inferior): Don't push the target if it is already
5631 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5632 if it is already pushed.
5634 2014-05-21 Pedro Alves <palves@redhat.com>
5636 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5637 and "procfs" targets are now called "native" instead.
5639 2014-05-21 Pedro Alves <palves@redhat.com>
5641 * go32-nat.c (go32_open): Delete.
5642 (go32_target): Don't override the to_open method.
5644 2014-05-21 Pedro Alves <palves@redhat.com>
5646 * nto-procfs.c (procfs_can_run): New function.
5647 (nto_procfs_ops): New global.
5648 (init_procfs_targets): New, based on procfs_target. Install
5649 "target native" in addition to "target procfs".
5650 (_initialize_procfs): Call init_procfs_targets instead of adding
5653 2014-05-21 Pedro Alves <palves@redhat.com>
5655 * windows-nat.c (windows_target): Don't override to_shortname,
5656 to_longname or to_doc.
5658 2014-05-21 Pedro Alves <palves@redhat.com>
5660 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5663 2014-05-21 Pedro Alves <palves@redhat.com>
5665 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5666 to_shortname, to_longname or to_doc.
5668 2014-05-21 Pedro Alves <palves@redhat.com>
5670 * go32-nat.c (go32_target): Don't override to_shortname,
5671 to_longname or to_doc.
5673 2014-05-21 Pedro Alves <palves@redhat.com>
5675 * inf-child.c (inf_child_open): Remove mention of "child".
5676 (inf_child_target): Rename target to "native" instead of "child".
5678 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5680 * Makefile.in (SFILES): Delete "regset.c".
5681 (COMMON_OBS): Delete "regset.o".
5683 * regset.h (regset_alloc): Delete prototype.
5685 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5687 * sparc-linux-tdep.c (sparc32_linux_gregset)
5688 (sparc32_linux_fpregset): New static regset structures.
5689 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5690 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5692 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5693 (sparc64_linux_fpregset): New static regset structures.
5694 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5695 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5696 New static regset structures.
5697 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5698 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5699 New static regset structures.
5700 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5701 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5702 New static regset structures.
5703 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5704 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5705 New static regset structures.
5706 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5708 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5710 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5711 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5712 register maps ("regmaps") from "*regset" to "*regmap". Do this
5713 for all regmap types and variables.
5714 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5715 (sparc32_linux_supply_core_gregset)
5716 (sparc32_linux_collect_core_gregset)
5717 (sparc32_linux_supply_core_fpregset)
5718 (sparc32_linux_collect_core_fpregset): Likewise.
5719 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5720 (sparc_gregmap, sparc_fpregmap): ... these.
5721 (sparc_supply_gregset, sparc_collect_gregset)
5722 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5723 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5724 (_initialize_sparc_nat): Rename regmaps.
5725 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5726 (sparc_gregmap, sparc_fpregmap): ... these.
5727 (sparc_supply_gregset, sparc_collect_gregset)
5728 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5729 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5731 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5732 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5734 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5736 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5737 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5738 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5740 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5741 (sparc32_bsd_fpregset): Rename to...
5742 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5743 (sparc32_bsd_fpregmap): ... these.
5744 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5745 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5746 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5747 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5748 (struct sparc_gregmap, struct sparc_fpregmap)
5749 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5750 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5751 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5752 (sparc32_supply_regset, sparc32_collect_gregset)
5753 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5755 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5756 (sparc64_linux_ptrace_gregmap): ... this.
5757 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5758 (_initialize_sparc64_linux_nat): Rename regmaps.
5759 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5760 (sparc64_linux_core_gregmap): ... this.
5761 (sparc64_linux_supply_core_gregset)
5762 (sparc64_linux_collect_core_gregset)
5763 (sparc64_linux_supply_core_fpregset)
5764 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5765 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5766 (sparc64_sol2_fpregset): Rename to...
5767 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5768 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5769 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5771 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5772 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5773 (sparc64_bsd_fpregset): Rename to...
5774 (struct sparc_gregmap, sparc64_sol2_gregmap)
5775 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5776 (sparc64_bsd_fpregmap): ... these.
5777 (sparc64_supply_gregset, sparc64_collect_gregset)
5778 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5780 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5781 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5782 (sparc64fbsd_gregmap): ... this.
5783 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5784 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5786 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5787 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5788 (sparc64nbsd_collect_fpregset): Likewise.
5789 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5790 (sparc64nbsd_gregmap): ... this.
5791 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5793 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5794 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5795 (sparc64obsd_gregmap): ... this.
5796 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5798 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5799 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5800 (sparc32nbsd_gregmap): ... this.
5801 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5804 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5806 * score-tdep.c (score7_linux_gregset): New static regset
5808 (score7_linux_regset_from_core_section): Remove dynamic regset
5810 (score_gdbarch_init): Drop allocation of tdep structure.
5811 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5813 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5815 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5817 (am33_regset_from_core_section): Remove dynamic regset
5820 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5822 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5823 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5825 (mips_linux_regset_from_core_section): Remove dynamic regset
5827 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5828 'gregset64', 'fpregset', and 'fpregset64'.
5829 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5830 deleted tdep fields.
5832 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5834 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5836 (amd64_regset_from_core_section): Remove dynamic regset
5838 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5840 (amd64obsd_regset_from_core_section): Remove dynamic regset
5842 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5844 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5845 x86-common regset supply function.
5846 * i386-tdep.c (i386_collect_gregset): Make static.
5847 (i386_gregset): New global regset structure.
5848 (i386_fpregset, i386_xstateregset): New static regset structures.
5849 (i386_regset_from_core_section): Remove dynamic regset
5851 (i386_gdbarch_init): Remove initialization of tdep fields
5852 'gregset', 'fpregset', and 'xstateregset'.
5853 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5854 'fpregset', and 'xstateregset'.
5855 (i386_collect_gregset): Remove prototype.
5856 (i386_gregset): New declaration.
5857 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5859 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5862 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5864 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5865 (arm_linux_vfpregset): New static regset structures.
5866 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5868 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5869 and 'vfpregset' fields.
5871 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5873 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5874 (aarch64_linux_fpregset): New static regset structures.
5875 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5876 of regset structures.
5877 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5880 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5882 * regset.h (struct regset): Remove gdbarch field.
5883 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5884 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5885 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5887 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5888 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5889 (ppc32_linux_vsxregset): Likewise.
5890 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5891 via the regcache instead of the regset.
5892 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5893 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5894 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5895 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5898 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5900 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5901 Constify structures.
5902 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5903 (alphanbsd_aout_gregset): Likewise.
5904 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5905 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5907 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5908 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5910 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5911 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5912 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5913 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5914 * m88k-tdep.c (m88k_gregset): Likewise.
5915 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5916 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5917 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5918 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5919 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5920 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5921 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5922 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5923 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5925 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5926 * sh-tdep.h (sh_corefile_gregset): Likewise.
5927 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5928 * vax-tdep.c (vax_gregset): Likewise.
5930 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5932 Fix TLS access for -static -pthread.
5933 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5934 (try_thread_db_load_1): Initialize it.
5935 (thread_db_get_thread_local_address): Call it if LM is zero.
5936 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5937 * target.h (struct target_ops) (to_get_thread_local_address): Add
5938 load_module_addr comment.
5940 2014-05-21 Pedro Alves <palves@redhat.com>
5942 * dcache.c (dcache_read_memory_partial): If reading the cache line
5943 fails, fallback to reading just the memory the caller wanted.
5945 2014-05-20 Doug Evans <dje@google.com>
5947 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5948 instead of get_current_arch.
5950 2014-05-20 Pedro Alves <palves@redhat.com>
5952 * NEWS: Mention that compare-sections now works with all targets.
5954 * remote.c (PACKET_qCRC): New enum value.
5955 (remote_verify_memory): Don't send qCRC if the target has no
5956 execution. Use packet_support/packet_ok. If the target doesn't
5957 support the qCRC packet, fallback to a deep memory copy.
5958 (compare_sections_command): Say "target image" instead of "remote
5960 (_initialize_remote): Add PACKET_qCRC to the list of config
5961 packets that have no associated command. Extend comment.
5962 * target.c (simple_verify_memory, default_verify_memory): New
5964 * target.h (struct target_ops) <to_verify_memory>: Default to
5965 default_verify_memory.
5966 (simple_verify_memory): New declaration.
5967 * target-delegates.c: Regenerate.
5969 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5971 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5973 2014-05-20 Hui Zhu <hui@codesourcery.com>
5974 Yao Qi <yao@codesourcery.com>
5977 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5978 and change address of sp and pc.
5980 2014-05-19 Tom Tromey <tromey@redhat.com>
5982 * gdbtypes.c (rank_function): Use XNEWVEC.
5983 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5985 2014-05-19 Doug Evans <dje@google.com>
5987 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5988 build_type_unit_groups and moved closer to only caller. Remove
5989 arguments. All references updated. Remove outdated .gdb_index
5991 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5992 build_type_psymtabs_1.
5994 2014-05-19 Doug Evans <dje@google.com>
5996 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5997 n_type_unit_groups, all_type_unit_groups. All uses removed.
5998 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5999 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6000 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6001 (add_type_unit_group_to_table): Delete.
6003 2014-05-19 Doug Evans <dje@google.com>
6005 * eval.c (evaluate_subexp_standard): Add some comments.
6007 2014-05-17 Doug Evans <xdje42@gmail.com>
6009 * progspace.c (remove_program_space): Delete, unused.
6010 * progspace.h (remove_program_space): Ditto.
6012 2014-05-17 Doug Evans <xdje42@gmail.com>
6014 * inferior.c (prune_inferiors): Fix comment.
6015 (remove_inferior_command): Call prune_program_spaces.
6017 2014-05-16 Doug Evans <dje@google.com>
6019 New command line option -D.
6021 * main.c (set_gdb_data_directory): New function.
6022 (captured_main): Recognize -D. Flag error for --data-directory "".
6023 Call set_gdb_data_directory.
6024 (print_gdb_help): Print --data-directory, -D.
6025 * main.h (set_gdb_data_directory): Declare.
6026 * top.c (staged_gdb_datadir): New static global.
6027 (set_gdb_datadir): Call set_gdb_data_directory
6028 (show_gdb_datadir): New function.
6029 (init_main): Update init of data-directory parameter.
6031 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6033 Import the "dirfd" gnulib module.
6034 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6035 * gnulib/aclocal.m4: Update.
6036 * gnulib/config.in: Update.
6037 * gnulib/configure: Update.
6038 * gnulib/import/Makefile.am: Update.
6039 * gnulib/import/Makefile.in: Update.
6040 * gnulib/import/dirfd.c: New.
6041 * gnulib/import/m4/dirfd.m4: New.
6042 * gnulib/import/m4/gnulib-cache.m4: Update.
6043 * gnulib/import/m4/gnulib-comp.m4: Update.
6045 2014-05-16 Pierre Muller <muller@sourceware.org>
6046 Yao Qi <yao@codesourcery.com>
6048 * valprint.c (print_wchar): Move the code on checking whether
6049 W is a printable wide char to the default branch of switch
6050 statement below. Call wchar_printable instead of gdb_iswprint.
6052 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6054 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6055 ldr.w and ldrd instructions.
6057 2014-05-15 Doug Evans <dje@google.com>
6059 * dwarf2read.c (read_structure_type): Delete outdated comments.
6061 2014-05-14 Tom Tromey <tromey@redhat.com>
6063 * macrocmd.c (print_macro_definition): Reindent.
6065 2014-05-13 Doug Evans <xdje42@gmail.com>
6067 * python/py-cmd.c (cmdpy_completer): Add comment.
6068 (completers): Make const.
6070 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6072 * infrun.c (resume): Remove should_resume (unused). Move up
6073 declaration of resume_ptid.
6075 2014-05-13 Tom Tromey <tromey@redhat.com>
6077 * language.h (unop_type_check): Remove.
6078 (binop_type_check): Don't declare.
6080 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6082 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6083 call to regcache_raw_collect.
6085 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6087 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6088 mi_console->quote as the quoting character.
6090 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6092 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6094 2014-04-29 Tom Tromey <tromey@redhat.com>
6096 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6097 "show debug varobj".
6099 2014-05-07 Kyle McMartin <kyle@redhat.com>
6101 Pushed by Joel Brobecker <brobecker@adacore.com>.
6102 * aarch64-tdep.c (aarch64_software_single_step): New function.
6103 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6104 with aarch64_software_single_step.
6106 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6110 2014-05-05 Keith Seitz <keiths@redhat.com>
6112 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6113 variable or history value is successfully parsed.
6115 2014-05-05 Yao Qi <yao@codesourcery.com>
6116 Pedro Alves <palves@redhat.com>
6118 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6119 address of blocks that intersects the requested range. Trim
6120 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6122 * ctf.c (ctf_xfer_partial): Likewise.
6124 2014-05-05 Yao Qi <yao@codesourcery.com>
6126 * printcmd.c (display_command): Remove the check to
6127 target_has_execution.
6129 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6131 * ppcobsd-nat.c: Include "obsd-nat.h".
6132 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6134 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6136 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6138 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6139 and 16-bit signed and unsigned arguments. Update comment.
6140 (stap_parse_probe_arguments): Extend code to handle such
6141 arguments. Use warning instead of complaint to notify about
6142 unrecognized bitness.
6144 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6146 PR breakpoints/16889
6147 * stap-probe.c (stap_parse_probe_arguments): Simplify
6148 check for non-prefixed probes (i.e., probes whose
6149 arguments do not start with "N@"). Always set the
6150 argument type to a sane value.
6152 2014-05-01 David Taylor <dtaylor@emc.com>
6154 * remote.c (compare_sections_command): Add -r option to compare
6155 all loadable read-only sections.
6157 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6159 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6160 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6162 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6163 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6164 Remove unused CORE_ADDR argument. Update all callers.
6166 2014-04-29 Pedro Alves <palves@redhat.com>
6168 * remote.c (struct packet_config) <detect>: Extend comment.
6169 (add_packet_config_cmd): Don't set the config's detect or support
6171 (init_all_packet_configs): Also initialize the config's 'detect'
6173 (reset_all_packet_configs_support): New function.
6174 (remote_open_1): Call reset_all_packet_configs_support instead of
6175 init_all_packet_configs.
6176 (_initialize_remote): Initialize all packet configs. Assert that
6177 all packets have an associated command, except a few known
6180 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6182 * dwarf2read.c (read_subrange_type): Handle dynamic
6183 DW_AT_lower_bound attributes.
6185 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6187 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6188 dynamic bounds before computing its upper bound.
6189 (ada_discrete_type_low_bound): Same as above with the lower bound.
6191 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6193 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6194 range types. Adjust the array handling implementation to
6195 take advantage of this change.
6196 (resolve_dynamic_range): New function, mostly extracted from
6197 resolve_dynamic_bounds.
6198 (resolve_dynamic_array): New function, mostly extracted from
6199 resolve_dynamic_bounds.
6200 (resolve_dynamic_bounds): Delete.
6201 (resolve_dynamic_type): Reimplement. Add handling of
6202 TYPE_CODE_RANGE types.
6204 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6206 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6207 handling of parallel ___XA types.
6209 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6211 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6212 unnecessary second call to static_unwrap_type.
6214 2014-04-27 Hui Zhu <hui@codesourcery.com>
6216 * stack.c (print_frame_info): Call do_gdb_disassembly with
6217 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6219 2014-04-26 Doug Evans <xdje42@gmail.com>
6221 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6223 2014-04-25 Pedro Alves <palves@redhat.com>
6226 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6227 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6228 and newline from built string.
6229 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6230 (linux_ptrace_attach_fail_reason): ... this.
6231 * linux-nat.c (linux_nat_attach): Adjust to use
6232 linux_ptrace_attach_fail_reason.
6234 2014-04-25 Pedro Alves <palves@redhat.com>
6236 * remote.c (struct remote_state): Remove multi_process_aware,
6237 non_stop_aware, cond_tracepoints, cond_breakpoints,
6238 breakpoint_commands, fast_tracepoints, static_tracepoints,
6239 install_in_trace, disconnected_tracing,
6240 enable_disable_tracepoints, string_tracing, and
6241 augmented_libraries_svr4_read fields.
6242 (remote_multi_process_p): Move further below in the file.
6243 (struct packet_config): Add comments.
6244 (update_packet_config): Delete function.
6245 (show_packet_config_cmd): Use packet_config_support.
6246 (add_packet_config_cmd): Use NULL as set callback.
6247 (packet_ok): "set remote foo-packet"-style commands no longer
6248 change config->supported -- adjust.
6249 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6250 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6251 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6252 (PACKET_QNonStop, PACKET_multiprocess_feature)
6253 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6254 (PACKET_DisconnectedTracing_feature)
6255 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6256 (set_remote_protocol_packet_cmd): Delete function.
6257 (packet_config_support, packet_support): New functions.
6258 (set_remote_protocol_Z_packet_cmd): Don't call
6259 update_packet_config.
6260 (remote_query_attached, remote_pass_signals)
6261 (remote_program_signals, remote_threads_info)
6262 (remote_threads_extra_info, remote_start_remote): Use
6264 (remote_start_remote): Use packet_config_support and
6266 (init_all_packet_configs): Set all packets to unknown support,
6267 instead of calling update_packet_config.
6268 (remote_check_symbols): Use packet_support.
6269 (remote_supported_packet): Unconditionally set the packet config's
6271 (remote_multi_process_feature, remote_non_stop_feature)
6272 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6273 (remote_breakpoint_commands_feature)
6274 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6275 (remote_install_in_trace_feature)
6276 (remote_disconnected_tracing_feature)
6277 (remote_enable_disable_tracepoint_feature)
6278 (remote_string_tracing_feature)
6279 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6280 (remote_protocol_features): Adjust to use remote_supported_packet
6281 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6282 "ConditionalTracepoints", "ConditionalBreakpoints",
6283 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6284 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6285 "EnableDisableTracepoints", and "tracenz".
6286 (remote_query_supported): Use packet_support.
6287 (remote_open_1): Adjust.
6288 (extended_remote_attach_1): Use packet_support. Switch on the
6289 result of packet_ok instead of checking whether the packet ended
6291 (remote_vcont_resume): Use packet_support.
6292 (remote_resume, remote_stop_ns, fetch_register_using_p)
6293 (remote_prepare_to_store, store_register_using_P)
6294 (check_binary_download, remote_write_bytes): Use packet_support.
6295 (remote_vkill): Use packet_support. Switch on the result of
6296 packet_ok instead of checking whether the packet ended up
6298 (extended_remote_supports_disable_randomization): Use
6300 (extended_remote_run): Switch on the result of packet_ok instead
6301 of checking whether the packet ended up disabled.
6302 (remote_insert_breakpoint, remote_remove_breakpoint)
6303 (remote_insert_watchpoint, remote_remove_watchpoint)
6304 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6306 (remote_search_memory): Use packet_config_support.
6307 (remote_get_thread_local_address, remote_get_tib_address)
6308 (remote_hostio_send_command, remote_can_execute_reverse): Use
6310 (remote_supports_cond_tracepoints)
6311 (remote_supports_cond_breakpoints)
6312 (remote_supports_fast_tracepoints)
6313 (remote_supports_static_tracepoints)
6314 (remote_supports_install_in_trace)
6315 (remote_supports_enable_disable_tracepoint)
6316 (remote_supports_string_tracing)
6317 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6318 the packet config says the feature is enabled or disabled.
6319 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6320 (remote_get_trace_status): Use packet_support.
6321 (remote_set_disconnected_tracing): Adjust to check whether the
6322 feature is enabled with packet_support.
6323 (remote_set_trace_buffer_size, remote_use_agent)
6324 (remote_can_use_agent, remote_supports_btrace): Use
6326 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6327 Use packet_config_support.
6328 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6329 the packet config says the feature is enabled or disabled.
6330 (set_range_stepping): Use packet_support.
6332 2014-04-25 Tom Tromey <tromey@redhat.com>
6334 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6337 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6339 * NEWS: Mention support for C99 variable length arrays.
6341 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6343 * ada-lang.c (standard_exc): Expand introductory comment.
6345 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6346 Walfred Tedeschi <walfred.tedeschi@intel.com>
6348 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6350 (amd64_linux_read_description): Add code to handle AVX512 xstate
6351 mask and return respective tdesc.
6352 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6353 and features/i386/x32-avx512-linux.c.
6354 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6355 (amd64_linux_core_read_description): Add code to handle AVX512
6356 xstate mask and return respective tdesc.
6357 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6358 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6360 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6361 (tdesc_amd64_avx512_linux): New prototype.
6362 (tdesc_x32_avx512_linux): Likewise.
6363 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6364 features/i386/x32-avx512.c.
6365 (amd64_ymm_avx512_names): New register names for pseudo
6367 (amd64_ymmh_avx512_names): New register names for raw registers
6369 (amd64_k_names): New register names for K registers.
6370 (amd64_zmmh_names): New register names for ZMM raw registers.
6371 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6372 (amd64_xmm_avx512_names): New register names for XMM16-31
6374 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6376 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6377 if feature is present.
6378 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6379 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6380 (AMD64_NUM_REGS): Adjust to new number of registers.
6381 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6382 registers supplied via XSTATE by AVX512 registers.
6383 (i386_linux_read_description): Add case for AVX512.
6384 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6385 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6386 (i386_linux_core_read_description): Add case for AVX512.
6387 (i386_linux_init_abi): Install supported register note section
6389 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6391 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6392 registers to be number of zmm7h + 1.
6393 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6394 * i386-tdep.c: Include features/i386/i386-avx512.c.
6395 (i386_zmm_names): Add ZMM pseudo register names array.
6396 (i386_zmmh_names): Add ZMM raw register names array.
6397 (i386_k_names): Add K raw register names array.
6398 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6399 registers. AVX512 has 16 more ZMM registers than there are YMM
6401 (i386_zmmh_regnum_p): Add function to look up register number of
6403 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6404 (i386_k_regnum_p): Likewise for K raw registers.
6405 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6406 registers added by AVX512.
6407 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6408 registers added by AVX512.
6409 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6411 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6412 (i386_pseudo_register_name): Add ZMM pseudo registers.
6413 (i386_zmm_type): Construct and return vector registers type for ZMM
6415 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6416 ZMM0-31 pseudo registers and K registers.
6417 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6418 and YMM16-31 registers from register cache.
6419 (i386_pseudo_register_write): Add code to write K, ZMM and
6421 (i386_register_reggroup_p): Add code to include/exclude AVX512
6422 registers in/from respective register groups.
6423 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6424 registers if feature is present in xcr0.
6425 (i386_gdbarch_init): Add code to initialize AVX512 feature
6426 variables in tdep structure, wire in pseudo registers and call
6427 initialize_tdesc_i386_avx512.
6428 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6430 (i386_regnum): Add AVX512 registers.
6431 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6432 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6433 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6434 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6436 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6437 (i386_ymm_avx512_regnum_p): Likewise.
6438 (i386_k_regnum_p): Likewise.
6439 (i386_zmm_regnum_p): Likewise.
6440 (i386_zmmh_regnum_p): Likewise.
6441 * i387-tdep.c : Update year in copyright notice.
6442 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6444 (XSAVE_YMM_AVX512_ADDR): New macro.
6445 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6447 (XSAVE_XMM_AVX512_ADDR): New macro.
6448 (xsave_avx512_k_offset): New table for K register offsets in
6450 (XSAVE_AVX512_K_ADDR): New macro.
6451 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6453 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6454 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6456 (i387_collect_xsave): Add code to collect AVX512 registers from
6458 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6459 of XMM16-31 registers.
6460 (I387_NUM_K_REGS): New define for number of K registers.
6461 (I387_K0_REGNUM): New define for K0 register number.
6462 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6463 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6464 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6466 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6467 (I387_XMM16_REGNUM): New define for XMM16 register number.
6468 (I387_YMM0_REGNUM): New define for YMM0 register number.
6469 (I387_KEND_REGNUM): New define for last K register number.
6470 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6471 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6473 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6475 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6477 * features/Makefile: Add AVX512 related files.
6478 * features/i386/32bit-avx512.xml: New file.
6479 * features/i386/64bit-avx512.xml: Likewise.
6480 * features/i386/amd64-avx512-linux.c: Likewise.
6481 * features/i386/amd64-avx512-linux.xml: Likewise.
6482 * features/i386/amd64-avx512.c: Likewise.
6483 * features/i386/amd64-avx512.xml: Likewise.
6484 * features/i386/i386-avx512-linux.c: Likewise.
6485 * features/i386/i386-avx512-linux.xml: Likewise.
6486 * features/i386/i386-avx512.c: Likewise.
6487 * features/i386/i386-avx512.xml: Likewise.
6488 * features/i386/x32-avx512-linux.c: Likewise.
6489 * features/i386/x32-avx512-linux.xml: Likewise.
6490 * features/i386/x32-avx512.c: Likewise.
6491 * features/i386/x32-avx512.xml: Likewise.
6492 * regformats/i386/amd64-avx512-linux.dat: New file.
6493 * regformats/i386/amd64-avx512.dat: Likewise.
6494 * regformats/i386/i386-avx512-linux.dat: Likewise.
6495 * regformats/i386/i386-avx512.dat: Likewise.
6496 * regformats/i386/x32-avx512-linux.dat: Likewise.
6497 * regformats/i386/x32-avx512.dat: Likewise.
6498 * NEWS: Add note about new support for AVX512.
6501 2014-04-23 Pedro Alves <palves@redhat.com>
6503 * breakpoint.c (insert_bp_location): Tolerate errors if the
6504 breakpoint is set in a user-loaded objfile.
6505 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6506 location is marked shlib_disabled. If the breakpoint is set in a
6507 user-loaded objfile is a GDB-side memory breakpoint, validate it
6508 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6509 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6511 * mem-break.c (memory_validate_breakpoint): New function.
6512 * objfiles.c (userloaded_objfile_contains_address_p): New
6514 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6515 * target.h (memory_validate_breakpoint): New declaration.
6517 2014-04-23 Pedro Alves <palves@redhat.com>
6519 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6520 the breakpoint is set in a shared library, only suppress
6521 errors for software breakpoints, not hardware breakpoints.
6523 2014-04-22 Pedro Alves <palves@redhat.com>
6525 * infrun.c (schedlock_applies): New function, factored out from
6526 find_thread_needs_step_over.
6527 (find_thread_needs_step_over): Use it.
6528 (switch_back_to_stepped_thread): Always clear trap_expected if the
6529 step over is finished. Return early if scheduler locking applies.
6530 Look for the stepping thread and a potential step-over thread with
6532 (currently_stepping_or_nexting_callback): Delete.
6534 2014-04-22 Nick Clifton <nickc@redhat.com>
6536 * NEWS: Mention that ARM sim now supports tracing.
6538 2014-04-22 Yao Qi <yao@codesourcery.com>
6540 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6542 * tracefile.c (tracefile_fetch_registers): ... it. New
6544 * tracefile.h (tracefile_fetch_registers): Declare.
6545 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6546 tracefile_fetch_registers.
6548 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6551 * windows-nat.c (thread_rec): Don't display a warning when
6552 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6553 fails for any reason, set th->suspended to -1, so that we don't
6554 try to resume such a thread. Also, don't return NULL in these
6555 cases, to avoid completely ruin the session due to "PC register is
6556 not available" error.
6557 (do_windows_fetch_inferior_registers): Check errors in
6558 GetThreadContext call.
6559 (windows_continue): Accept an additional argument KILLED; if not
6560 zero, ignore errors in the SetThreadContext call, since the
6561 inferior was killed and is shutting down.
6562 (windows_resume, get_windows_debug_event)
6563 (windows_create_inferior, windows_mourn_inferior)
6564 (windows_kill_inferior): All callers of windows_continue changed
6565 to adjust to its new calling sequence.
6567 2014-04-19 Yao Qi <yao@codesourcery.com>
6569 * ctf.c (ctf_open): Call post_create_inferior.
6571 2014-04-19 Yao Qi <yao@codesourcery.com>
6573 * ctf.c (handle_id): New static variable.
6574 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6575 value. Get the declaration of event "register" and get length
6576 of field "contents".
6578 2014-04-19 Yao Qi <yao@codesourcery.com>
6580 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6582 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6584 * valops.c (oload_method_static): Remove unnecessary argument
6585 METHOD. Update all callers.
6587 2014-04-18 Pedro alves <palves@redhat.com>
6588 Tom Tromey <tromey@redhat.com>
6591 * frame.c (get_prev_frame_1): Rename to ...
6592 (get_prev_frame_always): ... this, and make extern. Adjust.
6593 (skip_artificial_frames): Use get_prev_frame_always.
6594 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6595 (get_frame_unwind_stop_reason): Adjust to rename.
6596 * frame.h (get_prev_frame_always): Declare.
6597 * inline-frame.c: Include frame.h.
6598 (inline_frame_this_id): Use get_prev_frame_always.
6600 2014-04-18 Tristan Gingold <gingold@adacore.com>
6602 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6603 code by using bfd_mach_o_get_base_address.
6605 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6607 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6608 (spu_ax_pseudo_register_collect): New function.
6609 (spu_ax_pseudo_register_push_stack): Likewise.
6610 (spu_dwarf_reg_to_regnum): Likewise.
6611 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6613 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6615 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6616 Replace FRAME argument with FRAME_ID.
6617 * gdbarch.c, gdbarch.h: Regenerate.
6618 * findvar.c (default_value_from_register): Add GDBARCH argument;
6619 replace FRAME by FRAME_ID. No longer call get_frame_id.
6620 (value_from_register): Update call to gdbarch_value_from_register.
6621 * value.h (default_value_from_register): Update prototype.
6622 * s390-linux-tdep.c (s390_value_from_register): Update interface
6623 and call to default_value_from_register.
6624 * spu-tdep.c (spu_value_from_register): Likewise.
6626 * findvar.c (address_from_register): Remove TYPE argument.
6627 Do not call value_from_register; use gdbarch_value_from_register
6628 with null_frame_id instead.
6629 * value.h (address_from_register): Update prototype.
6630 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6631 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6632 address_from_register interface change.
6634 2014-04-17 Yao Qi <yao@codesourcery.com>
6636 * gdbtypes.h: Update comments to link to types and macros'
6639 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6641 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6643 2014-04-16 Keith Seitz <keiths@redhat.com>
6646 * dwarf2read.c (skip_one_die): Check that all relative-offset
6647 sibling DIEs fall within range of the current reader's buffer.
6648 (read_partial_die): Likewise.
6650 2014-04-16 Keith Seitz <keiths@redhat.com>
6653 * cp-namespace.c (lookup_symbol_file): If the type name of
6654 `this' is NULL, return immediately.
6656 2014-04-14 Keith Seitz <keiths@redhat.com>
6659 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6660 from symbol_matches_domain in symtab.c. All local callers
6661 of symbol_matches_domain updated.
6662 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6663 search STRUCT_DOMAIN.
6664 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6665 independently. standard_lookup will do that automatically.
6666 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6667 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6668 (cp_lookup_symbol_in_namespace): Likewise.
6669 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6670 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6671 may return a STRUCT_DOMAIN match.
6672 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6673 * cp-support.c: Include language.h.
6674 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6676 * psymtab.c (match_partial_symbol): Compare the requested
6677 domain with the symbol's domain directly.
6678 (lookup_partial_symbol): Likewise.
6679 * symtab.c (lookup_symbol_in_language): Explain when/why
6680 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6681 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6682 appropriate languages.
6683 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6684 and moved to ada-lang.c
6685 (lookup_block_symbol): Explain that this function only returns
6686 symbol matching the requested DOMAIN.
6687 Compare the requested domain with the symbol's domain directly.
6688 (iterate_over_symbols): Compare the requested domain with the
6689 symbol's domain directly.
6690 * symtab.h (symbol_matches_domain): Remove.
6692 2014-04-14 Tom Tromey <tromey@redhat.com>
6695 * c-exp.y (type_aggregate_p): New function.
6696 (qualified_name, classify_inner_name): Use it.
6697 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6698 and TYPE_TARGET_TYPE of an enum type.
6699 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6701 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6702 handle TYPE_DECLARED_CLASS.
6703 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6705 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6706 * valops.c (enum_constant_from_type): New function.
6707 (value_aggregate_elt): Use it.
6708 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6711 2014-04-14 Tom Tromey <tromey@redhat.com>
6713 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6714 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6716 * value.h (value_aggregate_elt): Update.
6718 2014-04-14 Tom Tromey <tromey@redhat.com>
6720 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6722 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6724 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6725 (evaluate_subexp_standard): Pass noside argument.
6726 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6727 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6728 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6729 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6730 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6732 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6734 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6735 points to a constant blob.
6737 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6739 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6740 property and store it as the high bound and flag the range accordingly.
6741 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6742 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6743 * gdbtypes.h (enum range_flags): New enum.
6744 (struct range_bounds): Add flags member.
6746 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6748 * c-typeprint.c (c_type_print_varspec_suffix): Added
6749 check for not yet resolved high bound. If unresolved, print
6750 "variable length" string to the console instead of random
6753 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6755 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6757 (ada_template_to_fixed_record_type_1): Likewise.
6758 (ada_to_fixed_type_1): Likewise.
6759 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6760 (cp_print_value): Likewise.
6761 * d-valprint.c (dynamic_array_type): Likewise.
6762 * findvar.c (address_of_variable): Likewise.
6763 * jv-valprint.c (java_value_print): Likewise.
6764 * valops.c (value_ind): Likewise.
6765 * value.c (coerce_ref): Likewise.
6767 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6769 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6770 value and retrieve the dynamic type size.
6772 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6774 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6775 passed to sizeof is dynamic evaluate the argument to compute the length.
6777 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6778 Joel Brobecker <brobecker@adacore.com>
6780 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6781 (dwarf2_evaluate_property): New function.
6782 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6783 * dwarf2read.c (attr_to_dynamic_prop): New function.
6784 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6786 * gdbtypes.c: Include dwarf2loc.h.
6787 (is_dynamic_type): New function.
6788 (resolve_dynamic_type): New function.
6789 (resolve_dynamic_bounds): New function.
6790 (get_type_length): New function.
6791 (check_typedef): Use get_type_length to compute type length.
6792 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6793 (TYPE_LOW_BOUND_KIND): New macro.
6794 (is_dynamic_type): New function prototype.
6795 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6796 to resolve dynamic properties of the type. Update comment.
6797 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6799 2014-04-14 Richard Henderson <rth@redhat.com>
6801 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6803 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6804 Doug Evans <xdje42@gmail.com>
6806 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6807 dereference TYPE_CODE_REF values.
6809 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6811 Revert the following changes due to regressions:
6813 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6814 (dwarf2_evaluate_property): New function.
6815 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6816 * dwarf2read.c (attr_to_dynamic_prop): New function.
6817 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6819 * gdbtypes.c: Include dwarf2loc.h.
6820 (is_dynamic_type): New function.
6821 (resolve_dynamic_type): New function.
6822 (resolve_dynamic_bounds): New function.
6823 (get_type_length): New function.
6824 (check_typedef): Use get_type_length to compute type length.
6825 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6826 (TYPE_LOW_BOUND_KIND): New macro.
6827 (is_dynamic_type): New function prototype.
6828 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6829 to resolve dynamic properties of the type. Update comment.
6830 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6832 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6833 passed to sizeof is dynamic evaluate the argument to compute the length.
6835 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6836 value and retrieve the dynamic type size.
6838 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6839 (ada_template_to_fixed_record_type_1): Likewise.
6840 (ada_to_fixed_type_1): Likewise.
6841 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6842 (cp_print_value): Likewise.
6843 * d-valprint.c (dynamic_array_type): Likewise.
6844 * eval.c (evaluate_subexp_with_coercion): Likewise.
6845 * findvar.c (address_of_variable): Likewise.
6846 * jv-valprint.c (java_value_print): Likewise.
6847 * valops.c (value_ind): Likewise.
6848 * value.c (coerce_ref): Likewise.
6850 * c-typeprint.c (c_type_print_varspec_suffix): Added
6851 check for not yet resolved high bound. If unresolved, print
6852 "variable length" string to the console instead of random
6855 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6856 property and store it as the high bound and flag the range accordingly.
6857 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6858 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6859 * gdbtypes.h (enum range_flags): New enum.
6860 (struct range_bounds): Add flags member.
6862 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6863 points to a constant blob.
6865 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6866 (evaluate_subexp_standard): Pass noside argument.
6867 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6868 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6869 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6870 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6871 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6873 2014-04-11 Keith Seitz <keiths@redhat.com>
6876 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6877 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6880 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6882 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6883 (evaluate_subexp_standard): Pass noside argument.
6884 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6885 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6886 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6887 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6888 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6890 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6892 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6893 points to a constant blob.
6895 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6897 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6898 property and store it as the high bound and flag the range accordingly.
6899 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6900 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6901 * gdbtypes.h (enum range_flags): New enum.
6902 (struct range_bounds): Add flags member.
6904 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6906 * c-typeprint.c (c_type_print_varspec_suffix): Added
6907 check for not yet resolved high bound. If unresolved, print
6908 "variable length" string to the console instead of random
6911 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6913 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6914 (ada_template_to_fixed_record_type_1): Likewise.
6915 (ada_to_fixed_type_1): Likewise.
6916 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6917 (cp_print_value): Likewise.
6918 * d-valprint.c (dynamic_array_type): Likewise.
6919 * eval.c (evaluate_subexp_with_coercion): Likewise.
6920 * findvar.c (address_of_variable): Likewise.
6921 * jv-valprint.c (java_value_print): Likewise.
6922 * valops.c (value_ind): Likewise.
6923 * value.c (coerce_ref): Likewise.
6925 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6927 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6928 value and retrieve the dynamic type size.
6930 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6932 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6933 passed to sizeof is dynamic evaluate the argument to compute the length.
6935 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6937 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6938 (dwarf2_evaluate_property): New function.
6939 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6940 * dwarf2read.c (attr_to_dynamic_prop): New function.
6941 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6943 * gdbtypes.c: Include dwarf2loc.h.
6944 (is_dynamic_type): New function.
6945 (resolve_dynamic_type): New function.
6946 (resolve_dynamic_bounds): New function.
6947 (get_type_length): New function.
6948 (check_typedef): Use get_type_length to compute type length.
6949 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6950 (TYPE_LOW_BOUND_KIND): New macro.
6951 (is_dynamic_type): New function prototype.
6952 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6953 to resolve dynamic properties of the type. Update comment.
6954 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6956 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6958 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6959 declaring high/low bounds and change uses accordingly. Call
6960 create_range_type instead of create_static_range_type.
6961 * gdbtypes.c (create_range_type): New function.
6962 (create_range_type): Convert bounds into struct bound_prop and pass
6963 them to create_range_type.
6964 * gdbtypes.h (struct bound_prop): New struct.
6965 (create_range_type): New function prototype.
6966 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6967 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6968 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6970 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6972 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6974 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6975 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6976 * ada-lang.c: All uses of create_range_type updated.
6977 * coffread.c: All uses of create_range_type updated.
6978 * dwarf2read.c: All uses of create_range_type updated.
6979 * f-exp.y: All uses of create_range_type updated.
6980 * m2-valprint.c: All uses of create_range_type updated.
6981 * mdebugread.c: All uses of create_range_type updated.
6982 * stabsread.c: All uses of create_range_type updated.
6983 * valops.c: All uses of create_range_type updated.
6984 * valprint.c: All uses of create_range_type updated.
6986 2014-04-10 Pedro Alves <palves@redhat.com>
6988 * breakpoint.c (single_step_breakpoints)
6989 (single_step_gdbarch): Move up in the file.
6990 (one_breakpoint_xfer_memory): New function, factored out from ...
6991 (breakpoint_xfer_memory): ... here. Also process single-step
6994 2014-04-09 Tristan Gingold <gingold@adacore.com>
6996 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6998 (darwin_decode_exception_message): Free port only after use.
7000 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7002 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7003 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7004 when setting the size of call_length.
7006 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7008 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7009 dereference TYPE_CODE_REF values.
7011 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7013 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7014 end of warning message.
7016 2014-04-03 Doug Evans <dje@google.com>
7018 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7019 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7021 2014-04-02 Alan Modra <amodra@gmail.com>
7023 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7024 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7025 (struct symbol_file_add_from_memory_args): Add size field.
7026 (find_vdso_size): New function.
7027 (add_vsyscall_page): Attempt to find vdso size.
7029 2014-04-01 Doug Evans <dje@google.com>
7031 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7033 2014-04-01 Tristan Gingold <gingold@adacore.com>
7035 * darwin-nat.c (darwin_encode_reply): Add prototype.
7036 (darwin_decode_exception_message): Reply to unknown inferiors.
7037 (darwin_decode_message): Handle message by id. Ignore message
7038 to unknown inferior.
7039 (darwin_wait): Discard unknown messages, add debug trace.
7041 2014-03-31 Doug Evans <dje@google.com>
7043 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7046 2014-03-31 Doug Evans <dje@google.com>
7048 New option "set print symbol-loading".
7050 * solib.c (solib_read_symbols): Only print symbol loading messages
7052 (solib_add): If symbol loading is in "brief" mode, notify user
7053 symbols are being loaded.
7054 (reload_shared_libraries_1): Ditto.
7055 * symfile.c (print_symbol_loading_off): New static global.
7056 (print_symbol_loading_brief): New static global.
7057 (print_symbol_loading_full): New static global.
7058 (print_symbol_loading_enums): New static global.
7059 (print_symbol_loading): New static global.
7060 (print_symbol_loading_p): New function.
7061 (symbol_file_add_with_addrs): Only print symbol loading messages
7063 (_initialize_symfile): Register "print symbol-loading" set/show
7065 * symfile.h (print_symbol_loading_p): Declare.
7067 2014-03-30 Doug Evans <xdje42@gmail.com>
7069 * infrun.c (set_last_target_status): New function.
7070 (handle_inferior_event): Call it.
7072 2014-03-30 Doug Evans <xdje42@gmail.com>
7074 * inferior.h (enum stop_kind): Improve comment.
7076 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7078 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7079 a reference, strip the reference layer before calling
7080 the lang_ops value_has_mutated callback.
7082 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7084 Remove some globals from our parser.
7085 * language.c (unk_lang_parser): Add "struct parser_state"
7087 * language.h (struct language_defn) <la_parser>: Likewise.
7088 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7089 (initialize_expout): Add "struct parser_state" argument.
7090 Rewrite function to use the parser state.
7091 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7092 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7093 write_exp_elt_longcst, write_exp_elt_dblcst,
7094 write_exp_elt_decfloatcst, write_exp_elt_type,
7095 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7096 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7097 write_dollar_variable): Likewise.
7098 (parse_exp_in_context_1): Use parser state.
7099 (insert_type_address_space): Add "struct parser_state" argument.
7101 (increase_expout_size): New function.
7102 * parser-defs.h: Forward declare "struct language_defn" and
7103 "struct parser_state".
7104 (expout, expout_size, expout_ptr): Remove extern declarations.
7105 (parse_gdbarch, parse_language): Rewrite macro declarations to
7106 accept the parser state.
7107 (struct parser_state): New struct.
7108 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7109 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7110 write_exp_elt_decfloatcst, write_exp_elt_type,
7111 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7112 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7113 write_exp_msymbol, write_dollar_variable,
7114 mark_struct_expression, insert_type_address_space): Add "struct
7115 parser_state" argument.
7116 (increase_expout_size): New function.
7117 * utils.c (do_clear_parser_state): New function.
7118 (make_cleanup_clear_parser_state): Likewise.
7119 * utils.h (make_cleanup_clear_parser_state): New function
7121 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7122 Update calls to write_exp* in order to pass the parser state.
7123 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7124 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7125 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7126 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7127 * stap-probe.c (stap_parse_register_operand): Likewise.
7128 (stap_parse_single_operand): Likewise.
7129 (stap_parse_argument_1): Likewise.
7130 (stap_parse_argument): Use parser state.
7131 * stap-probe.h: Include "parser-defs.h".
7132 (struct stap_parse_info) <pstate>: New field.
7133 * c-exp.y (parse_type): Rewrite to use parser state.
7134 (yyparse): Redefine to c_parse_internal.
7135 (pstate): New global variable.
7136 (parse_number): Add "struct parser_state" argument.
7137 (write_destructor_name): Likewise.
7138 (type_exp): Update calls to write_exp* and similars in order to
7140 (exp1, exp, variable, qualified_name, space_identifier,
7141 typename, typebase): Likewise.
7142 (write_destructor_name, parse_number, lex_one_token,
7143 classify_name, classify_inner_name, c_parse): Add "struct
7144 parser_state" argument. Update function to use parser state.
7145 * c-lang.h: Forward declare "struct parser_state".
7146 (c_parse): Add "struct parser_state" argument.
7147 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7148 (yyparse): Redefine macro to ada_parse_internal.
7149 (pstate): New variable.
7150 (write_int, write_object_renaming, write_var_or_type,
7151 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7152 type_int, type_long, type_long_long, type_float, type_double,
7153 type_long_double, type_char, type_boolean, type_system_address):
7154 Add "struct parser_state" argument.
7155 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7156 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7157 var_or_type, aggregate, aggregate_component_list,
7158 positional_list, others, component_group,
7159 component_associations): Update calls to write_exp* and similar
7160 functions in order to use parser state.
7161 (ada_parse, write_var_from_sym, write_int,
7162 write_exp_op_with_string, write_object_renaming,
7163 find_primitive_type, write_selectors, write_ambiguous_var,
7164 write_var_or_type, write_name_assoc, type_int, type_long,
7165 type_long_long, type_float, type_double, type_long_double,
7166 type_char, type_boolean, type_system_address): Add "struct
7167 parser_state" argument. Adjust function to use parser state.
7168 * ada-lang.c (parse): Likewise.
7169 * ada-lang.h: Forward declare "struct parser_state".
7170 (ada_parse): Add "struct parser_state" argument.
7171 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7172 calls to both functions.
7173 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7175 (yyparse): Redefine macro to f_parse_internal.
7176 (pstate): New variable.
7177 (parse_number): Add "struct parser_state" argument.
7178 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7179 and similars in order to use parser state.
7180 (parse_number): Adjust code to use parser state.
7182 (f_parse): New function.
7183 * f-lang.h: Forward declare "struct parser_state".
7184 (f_parse): Add "struct parser_state" argument.
7185 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7187 (yyparse): Redefine macro for java_parse_internal.
7188 (pstate): New variable.
7189 (push_expression_name, push_expression_name, insert_exp): Add
7190 "struct parser_state" argument.
7191 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7192 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7193 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7194 PostIncrementExpression, PostDecrementExpression,
7195 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7196 UnaryExpressionNotPlusMinus, CastExpression,
7197 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7198 RelationalExpression, EqualityExpression, AndExpression,
7199 ExclusiveOrExpression, InclusiveOrExpression,
7200 ConditionalAndExpression, ConditionalOrExpression,
7201 ConditionalExpression, Assignment, LeftHandSide): Update
7202 calls to write_exp* and similars in order to use parser state.
7203 (parse_number): Ajust code to use parser state.
7205 (java_parse): New function.
7206 (push_variable): Add "struct parser_state" argument. Adjust
7207 code to user parser state.
7208 (push_fieldnames, push_qualified_expression_name,
7209 push_expression_name, insert_exp): Likewise.
7210 * jv-lang.h: Forward declare "struct parser_state".
7211 (java_parse): Add "struct parser_state" argument.
7212 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7214 (yyparse): Redefine macro to m2_parse_internal.
7215 (pstate): New variable.
7216 (type_exp, exp, fblock, variable, type): Update calls to
7217 write_exp* and similars to use parser state.
7219 (m2_parse): New function.
7220 * m2-lang.h: Forward declare "struct parser_state".
7221 (m2_parse): Add "struct parser_state" argument.
7222 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7223 * objc-lang.h: Forward declare "struct parser_state".
7224 (end_msglist): Add "struct parser_state" argument.
7225 * p-exp.y (parse_type): Rewrite macro to use parser state.
7226 (yyparse): Redefine macro to pascal_parse_internal.
7227 (pstate): New variable.
7228 (parse_number): Add "struct parser_state" argument.
7229 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7230 write_exp* and similars in order to use parser state.
7231 (parse_number, yylex): Adjust code to use parser state.
7232 (pascal_parse): New function.
7233 * p-lang.h: Forward declare "struct parser_state".
7234 (pascal_parse): Add "struct parser_state" argument.
7235 * go-exp.y (parse_type): Rewrite macro to use parser state.
7236 (yyparse): Redefine macro to go_parse_internal.
7237 (pstate): New variable.
7238 (parse_number): Add "struct parser_state" argument.
7239 (type_exp, exp1, exp, variable, type): Update calls to
7240 write_exp* and similars in order to use parser state.
7241 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7242 to use parser state.
7243 (go_parse): Likewise.
7244 * go-lang.h: Forward declare "struct parser_state".
7245 (go_parse): Add "struct parser_state" argument.
7247 2014-03-27 Doug Evans <dje@google.com>
7249 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7251 2014-03-27 Doug Evans <dje@google.com>
7253 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7254 Remove argument abbrev_section. All callers updated.
7256 2014-03-27 Doug Evans <dje@google.com>
7258 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7259 addr_base, ranges_base.
7261 2014-03-26 Keith Seitz <keiths@redhat.com>
7263 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7264 types, not VAR_DOMAIN.
7266 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7268 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7270 * features/nios2-linux.c: Regenerated.
7271 * features/nios2.c: Regenerated.
7273 2014-03-25 Pedro Alves <palves@redhat.com>
7275 * cli/cli-script.c (script_from_file): Force the interpreter to
7278 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7280 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7281 small stack allocation.
7283 2014-03-24 Tristan Gingold <gingold@adacore.com>
7285 * darwin-nat.c (exc_server): Remove unused prototype.
7286 (darwin_dump_message): Correctly display data on x86_64.
7287 (darwin_encode_reply): Fix style.
7288 Add comments and fix indentation.
7290 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7292 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7294 2014-03-22 Doug Evans <xdje42@gmail.com>
7296 * infcmd.c: Whitespace fixes.
7297 (interrupt_command): Merge two function comments into one.
7299 2014-03-22 Doug Evans <xdje42@gmail.com>
7301 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7304 2014-03-22 Yao Qi <yao@codesourcery.com>
7306 * remote.c (target_read_live_memory): Remove.
7307 (memory_xfer_live_readonly_partial): Rename it to
7308 remote_xfer_live_readonly_partial. Remove argument 'object'.
7309 All callers updated. Call remote_read_bytes_1
7310 instead of target_read_live_memory.
7311 * tracepoint.c (set_traceframe_number): Remove.
7312 (make_cleanup_restore_traceframe_number): Likewise .
7313 * tracepoint.h (set_traceframe_number): Remove declaration.
7314 (make_cleanup_restore_traceframe_number): Likewise.
7316 2014-03-22 Yao Qi <yao@codesourcery.com>
7318 * remote.c (remote_read_bytes): Move code on reading from the
7320 (remote_read_bytes_1): ... here. New function.
7322 2014-03-22 Yao Qi <yao@codesourcery.com>
7324 * ctf.c (ctf_xfer_partial): Check the return value of
7325 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7326 return TARGET_XFER_UNAVAILABLE.
7327 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7328 * target.c (target_read_live_memory): Move it to remote.c.
7329 (memory_xfer_live_readonly_partial): Likewise.
7330 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7331 * remote.c (target_read_live_memory): Moved from target.c.
7332 (memory_xfer_live_readonly_partial): Likewise.
7333 (remote_read_bytes): Factored out from
7334 memory_xfer_partial_1.
7336 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7338 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7341 2014-03-21 Pedro Alves <palves@redhat.com>
7343 * infrun.c (normal_stop): Extend comment.
7345 2014-03-21 Hui Zhu <hui@codesourcery.com>
7346 Pedro Alves <palves@redhat.com>
7348 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7350 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7351 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7352 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7354 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7356 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7357 `z' formatted output modifier.
7359 2014-03-20 Tom Tromey <tromey@redhat.com>
7360 Sergio Durigan Junior <sergiodj@redhat.com>
7362 * probe.c (parse_probes): Turn assert into an ordinary error.
7363 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7364 exceptions when parsing probes. Rearrange the code for clarity.
7366 2014-03-20 Tom Tromey <tromey@redhat.com>
7369 * top.c (execute_command): Only dispatch events if the command
7372 2014-03-20 Tom Tromey <tromey@redhat.com>
7375 * infcall.c: Include event-top.h.
7376 (run_inferior_call): Call async_disable_stdin if needed.
7378 2014-03-20 Pedro Alves <palves@redhat.com>
7380 * infrun.c (prepare_to_proceed): Delete.
7381 (thread_still_needs_step_over): New function.
7382 (find_thread_needs_step_over): New function.
7383 (proceed): If the current thread needs a step-over, set its
7384 steping_over_breakpoint flag. Adjust to use
7385 find_thread_needs_step_over instead of prepare_to_proceed.
7386 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7387 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7389 (switch_back_to_stepped_thread): Step over breakpoints of all
7390 threads not the stepping thread, before switching back to the
7393 2014-03-20 Pedro Alves <palves@redhat.com>
7395 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7397 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7398 * infrun.c (saved_singlestep_ptid)
7399 (stepping_past_singlestep_breakpoint): Delete.
7400 (resume): Remove stepping_past_singlestep_breakpoint handling.
7401 (proceed): Store the prev_pc of the stepping thread too.
7402 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7404 (enum infwait_states): Delete infwait_thread_hop_state.
7405 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7407 (handle_inferior_event): Adjust.
7408 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7409 handling and the thread-hop code. Before removing single-step
7410 breakpoints, check whether the thread hit a single-step breakpoint
7411 of another thread. If it did, the trap is not a random signal.
7412 (switch_back_to_stepped_thread): If the event thread hit a
7413 single-step breakpoint, unblock it before switching to the
7414 stepping thread. Handle the case of the stepped thread having
7416 (keep_going): Handle the case of the current thread moving past a
7417 single-step breakpoint.
7419 2014-03-20 Pedro Alves <palves@redhat.com>
7422 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7423 are being stepped over.
7424 (breakpoint_address_match): Make extern.
7425 * breakpoint.h (breakpoint_address_match): New declaration.
7426 * inferior.h (stepping_past_instruction_at): New declaration.
7427 * infrun.c (struct step_over_info): New type.
7428 (step_over_info): New global.
7429 (set_step_over_info, clear_step_over_info)
7430 (stepping_past_instruction_at): New functions.
7431 (handle_inferior_event): Clear the step-over info when
7432 trap_expected is cleared.
7433 (resume): Remove now stale comment.
7434 (clear_proceed_status): Clear step-over info.
7435 (proceed): Adjust step-over handling to set or clear the step-over
7436 info instead of removing all breakpoints.
7437 (handle_signal_stop): When setting up a thread-hop, don't remove
7439 (stop_stepping): Clear step-over info.
7440 (keep_going): Adjust step-over handling to set or clear step-over
7441 info and then always inserting breakpoints, instead of removing
7442 all breakpoints when stepping over one.
7444 2014-03-20 Pedro Alves <palves@redhat.com>
7446 * infrun.c (previous_inferior_ptid): Adjust comment.
7447 (deferred_step_ptid): Delete.
7448 (infrun_thread_ptid_changed, prepare_to_proceed)
7449 (init_wait_for_inferior): Adjust.
7450 (handle_signal_stop): Delete deferred_step_ptid handling.
7452 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7455 * defs.h (sync_quit_force_run): New declaration.
7456 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7457 * event-top.c (async_sigterm_handler): New declaration.
7458 (async_sigterm_token): New variable.
7459 (async_init_signals): Create also async_sigterm_token.
7460 (async_sigterm_handler): New function.
7461 (sync_quit_force_run): New variable.
7462 (handle_sigterm): Replace quit_force call by other calls.
7463 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7465 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7467 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7468 offset into SPE pseudo registers.
7470 2014-03-18 Pedro Alves <palves@redhat.com>
7473 * inferior.h (print_stop_event): Declare.
7474 * infrun.c (print_stop_event): New, factored out from ...
7475 (normal_stop): ... this.
7476 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7477 of bpstat_print/print_stack_frame.
7479 2014-03-17 Tom Tromey <tromey@redhat.com>
7481 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7483 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7485 * ada-lang.c (decode_constrained_packed_array): Perform a
7486 minimal coercion for reference with coerce_ref instead of
7489 2014-03-17 Tristan Gingold <gingold@adacore.com>
7491 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7492 (darwin_solib_create_inferior_hook): Emit a warning if version
7495 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7497 * python/py-value.c (get_field_flag): Cast flag_name argument to
7498 PyObject_GetAttrString to support Python 2.4.
7500 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7502 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7503 (Global Maintainers): Remove Jan Kratochvil.
7505 2014-03-14 Pedro Alves <palves@redhat.com>
7507 * inferior.h (terminal_ours_for_output): Rename to ...
7508 (child_terminal_ours_for_output): ... this.
7509 (terminal_save_ours): Rename to ...
7510 (child_terminal_save_ours): ... this.
7511 (terminal_ours): Rename to ...
7512 (child_terminal_ours): ... this.
7513 (terminal_inferior): Rename to ...
7514 (child_terminal_inferior): ... this.
7515 (terminal_init_inferior): Rename to ...
7516 (child_terminal_init_inferior): ... this.
7517 (terminal_init_inferior_with_pgrp): Rename to ...
7518 (child_terminal_init_inferior_with_pgrp): ... this.
7519 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7520 (child_terminal_init_with_pgrp): ... this.
7521 (terminal_save_ours): Rename to ...
7522 (child_terminal_save_ours): ... this.
7523 (terminal_init_inferior): Rename to ...
7524 (child_terminal_init): ... this. Adjust.
7525 (terminal_inferior): Rename to ...
7526 (child_terminal_inferior): ... this.
7527 (terminal_ours_for_output): Rename to ...
7528 (child_terminal_ours_for_output): ... this. Adjust.
7529 (terminal_ours): Rename to ...
7530 (child_terminal_ours): ... this.
7531 (terminal_ours_1): Rename to ...
7532 (child_terminal_ours_1): ... this. Adjust.
7533 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7534 * windows-nat.c (do_initial_windows_stuff): Adjust.
7535 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7536 (gnu_terminal_init): ... this. Adjust.
7537 (gnu_target): Adjust.
7538 * inf-child.c (inf_child_target): Adjust.
7540 2014-03-13 Doug Evans <xdje42@gmail.com>
7543 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7546 2014-03-13 Doug Evans <xdje42@gmail.com>
7548 * value.c (record_latest_value): Call release_value_or_incref
7549 instead of release_value.
7551 2014-03-13 Pedro Alves <palves@redhat.com>
7553 * procfs.c (procfs_target): Don't override to_shortname,
7554 to_longname or to_doc.
7556 2014-03-13 Pedro Alves <palves@redhat.com>
7558 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7559 Unix in user visible strings.
7561 2014-03-12 Stan Shebs <stan@codesourcery.com>
7563 * gdbtypes.h: Annotate comments for Doxygen, add a page
7564 block comment with some general info.
7566 2014-03-12 Pedro Alves <palves@redhat.com>
7568 * infcmd.c (prepare_execution_command): New function, factored out
7569 from several execution commands.
7570 (run_command_1, continue_command, step_1, jump_command)
7571 (signal_command, until_command, advance_command, finish_command)
7572 (attach_command): Use prepare_execution_command.
7574 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7576 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7579 (struct arm_linux_thread_points): Removed.
7580 (struct arm_linux_process_info): New.
7581 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7582 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7583 (arm_linux_find_breakpoints_by_tid): Removed.
7584 (struct arch_lwp_info): New.
7585 (arm_linux_find_process_pid): New functions.
7586 (arm_linux_add_process): New functions.
7587 (arm_linux_process_info_get): New functions.
7588 (arm_linux_forget_process): New function.
7589 (arm_linux_get_debug_reg_state): New function.
7590 (struct update_registers_data): New.
7591 (update_registers_callback): New function.
7592 (arm_linux_insert_hw_breakpoint1): Updated.
7593 (arm_linux_remove_hw_breakpoint1): Updated.
7594 (arm_linux_insert_hw_breakpoint): Updated.
7595 (arm_linux_remove_hw_breakpoint): Updated.
7596 (arm_linux_insert_watchpoint): Updated.
7597 (arm_linux_remove_watchpoint): Updated.
7598 (arm_linux_new_thread): Updated.
7599 (arm_linux_prepare_to_resume): New function.
7600 (arm_linux_new_fork): New function.
7601 (_initialize_arm_linux_nat): Updated.
7603 2014-03-12 Pedro Alves <palves@redhat.com>
7605 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7607 2014-03-12 Tom Tromey <tromey@redhat.com>
7609 * inf-child.c (return_zero): New function.
7610 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7611 * aix-thread.c (aix_thread_inferior_created): New function.
7612 (aix_thread_attach): Remove.
7613 (init_aix_thread_ops): Don't set to_attach.
7614 (_initialize_aix_thread): Register inferior_created observer.
7615 * corelow.c (init_core_ops): Don't set to_attach or
7617 * exec.c (init_exec_ops): Don't set to_attach or
7619 * infcmd.c (run_command_1): Use find_run_target. Make direct
7621 (attach_command): Use find_attach_target. Make direct target
7623 * record-btrace.c (init_record_btrace_ops): Don't set
7625 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7627 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7628 set to_create_inferior.
7629 * target.c (complete_target_initialization): Add assertion.
7630 (target_create_inferior): Remove.
7631 (find_default_attach, find_default_create_inferior): Remove.
7632 (find_attach_target, find_run_target): New functions.
7633 (find_default_is_async_p, find_default_can_async_p)
7634 (target_supports_non_stop, target_attach): Remove.
7635 (init_dummy_target): Don't set to_create_inferior or
7636 to_supports_non_stop.
7637 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7638 TARGET_DEFAULT_FUNC.
7639 <to_create_inferior>: Add comment.
7640 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7641 TARGET_DEFAULT_RETURN.
7642 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7643 (find_attach_target, find_run_target): Declare.
7644 (target_create_inferior): Remove.
7645 (target_has_execution_1): Update comment.
7646 (target_supports_non_stop): Remove.
7647 * target-delegates.c: Rebuild.
7649 2014-03-12 Pedro Alves <palves@redhat.com>
7651 * inf-child.h: Update comment to not mention Unix.
7653 2014-03-12 Pedro Alves <palves@redhat.com>
7655 * inf-child.c: Update top comment to not mention Unix. Add
7656 generic comment describing how this target is meant to be used.
7657 (inf_child_post_attach, inf_child_post_startup_inferior)
7658 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7661 2014-03-12 Pedro Alves <palves@redhat.com>
7663 * nto-procfs.c: Include inf-child.h.
7664 (procfs_ops): Delete global.
7665 (procfs_can_run): Delete method.
7666 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7667 target pointer instead of referencing procfs_ops.
7668 (procfs_prepare_to_store): Delete.
7669 (init_procfs_ops): Delete function.
7670 (procfs_target): New function, based on init_procfs_ops, but
7671 inherit inf_child_target.
7672 (_initialize_procfs): Use procfs_target.
7674 2014-03-12 Pedro Alves <palves@redhat.com>
7676 * windows-nat.c: Include inf-child.h.
7677 (windows_ops): Delete global.
7678 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7680 (init_windows_ops): Delete function.
7681 (windows_target): New function, based on init_windows_ops, but
7682 inherit inf_child_target.
7683 (_initialize_windows_nat): Use windows_target. Install x86
7684 specific target methods here.
7686 2014-03-10 Doug Evans <xdje42@gmail.com>
7688 * guile/guile.c (call_initialize_gdb_module): New function.
7689 (initialize_guile): Replace call to scm_init_guile with call to
7692 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7694 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7695 in call to TYPE_CODE macro.
7697 2014-03-10 Jerome Guitton <guitton@adacore.com>
7699 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7700 Resolve tagged types to full view.
7702 2014-03-10 Hui Zhu <hui@codesourcery.com>
7704 * target.h (target_insert_breakpoint): Remove "hardware" from its
7707 2014-03-07 Doug Evans <dje@google.com>
7709 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7711 2014-03-07 Doug Evans <dje@google.com>
7713 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7714 Remove unused local comp_dir_attr. Assert exactly one of
7715 stub_comp_unit_die, stub_comp_dir is non-NULL.
7717 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7719 * target.h (complete_target_initialization, add_target):
7722 2014-03-07 Pedro Alves <palves@redhat.com>
7724 * go32-nat.c: Include inf-child.h.
7725 (go32_ops): Delete global.
7726 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7728 (go32_create_inferior): Push the passed in target pointer instead
7729 of referencing go32_ops.
7730 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7731 (go32_target): New function, based on init_go32_ops, but inherit
7733 (_initialize_go32_nat): Use go32_target. Move parts of
7736 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7738 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7739 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7740 SYMBOL_VALUE_ADDRESS.
7741 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7743 2014-03-06 Yao Qi <yao@codesourcery.com>
7745 * breakpoint.c (get_tracepoint_by_number): Remove argument
7746 optional_p. All callers updated. Adjust comments. Update
7748 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7750 2014-03-06 Yao Qi <yao@codesourcery.com>
7752 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7753 early if get_number returns zero. Use 'p' instead of 'args'.
7755 2014-03-06 Yao Qi <yao@codesourcery.com>
7757 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7760 2014-03-06 Yao Qi <yao@codesourcery.com>
7762 PR breakpoints/16508
7763 * tracepoint.c (check_trace_running): New function.
7764 (trace_find_command): Move code to check_trace_running and
7765 call check_trace_running.
7766 (trace_find_pc_command): Likewise.
7767 (trace_find_tracepoint_command): Likewise.
7768 (trace_find_line_command): Likewise.
7769 (trace_find_range_command): Likewise.
7770 * tracepoint.h (check_trace_running): Likewise.
7771 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7773 2014-03-06 Yao Qi <yao@codesourcery.com>
7775 * target.h (struct target_ops) <to_traceframe_info>: Use
7776 TARGET_DEFAULT_NORETURN (tcomplain ()).
7777 * target-delegates.c: Regenerated.
7779 2014-03-05 Pedro Alves <palves@redhat.com>
7782 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7783 void. Update comment.
7784 (dcache_xfer_memory): Delete.
7785 (dcache_read_memory_partial): New, based on the read bits of
7787 (dcache_update): Add status parameter. Use ULONGEST for len, and
7788 adjust. Discard cache lines if the reason for the update was
7790 * dcache.h (dcache_xfer_memory): Delete declaration.
7791 (dcache_read_memory_partial): New declaration.
7792 (dcache_update): Update prototype.
7793 * target.c (raw_memory_xfer_partial): Update the dcache here.
7794 (memory_xfer_partial_1): Don't handle dcache writes here.
7796 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7798 * remote-sim.c (gdbsim_load): Add const to prog.
7800 2014-03-03 Tom Tromey <tromey@redhat.com>
7802 * elfread.c (probe_key): Change to bfd_data.
7803 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7804 now per-BFD, not per-objfile.
7805 * stap-probe.c (stap_probe_destroy): Update comment.
7806 (handle_stap_probe): Allocate on the per-BFD obstack.
7808 2014-03-03 Tom Tromey <tromey@redhat.com>
7810 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7811 * breakpoint.c (create_longjmp_master_breakpoint): Use
7813 (add_location_to_breakpoint, bkpt_probe_insert_location)
7814 (bkpt_probe_remove_location): Update.
7815 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7816 * elfread.c (elf_symfile_relocate_probe): Remove.
7817 (elf_probe_fns): Update.
7818 (insert_exception_resume_breakpoint): Change type of "probe"
7819 parameter to bound_probe.
7820 (check_exception_resume): Update.
7821 * objfiles.c (objfile_relocate1): Don't relocate probes.
7822 * probe.c (bound_probe_s): New typedef.
7823 (parse_probes): Use get_probe_address. Set sal's objfile.
7824 (find_probe_by_pc): Return a bound_probe.
7825 (collect_probes): Return a VEC(bound_probe_s).
7826 (compare_probes): Update.
7827 (gen_ui_out_table_header_info): Change type of "probes"
7829 (info_probes_for_ops): Update.
7830 (get_probe_address): New function.
7831 (probe_safe_evaluate_at_pc): Update.
7832 * probe.h (struct probe_ops) <get_probe_address>: New field.
7833 <set_semaphore, clear_semaphore>: Add objfile parameter.
7834 (struct probe) <objfile>: Remove field.
7836 <address>: Update comment.
7837 (struct bound_probe): New.
7838 (find_probe_by_pc): Return a bound_probe.
7839 (get_probe_address): Declare.
7840 * solib-svr4.c (struct probe_and_action) <address>: New field.
7841 (hash_probe_and_action, equal_probe_and_action): Update.
7842 (register_solib_event_probe): Add address parameter.
7843 (solib_event_probe_at): Update.
7844 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7846 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7847 (stap_get_probe_address): New function.
7848 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7849 (compile_probe_arg): Update.
7850 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7852 (handle_stap_probe): Don't relocate the probe.
7853 (stap_relocate): Remove.
7854 (stap_gen_info_probes_table_values): Update.
7855 (stap_probe_ops): Remove stap_relocate.
7856 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7857 (debug_sym_probe_fns): Update.
7858 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7859 * symtab.c (init_sal): Use memset.
7860 * symtab.h (struct symtab_and_line) <objfile>: New field.
7861 * tracepoint.c (start_tracing, stop_tracing): Update.
7863 2014-03-03 Tom Tromey <tromey@redhat.com>
7865 * probe.h (parse_probes, find_probe_by_pc)
7866 (find_probes_in_objfile): Fix comments.
7868 2014-03-02 Doug Evans <xdje42@gmail.com>
7870 * infrun.c (handle_signal_stop): Replace test for
7871 TARGET_WAITKIND_STOPPED with an assert.
7873 2014-03-02 Doug Evans <xdje42@gmail.com>
7875 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7877 2014-03-02 Doug Evans <xdje42@gmail.com>
7879 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7881 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7883 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7885 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7887 * i386obsd-nat.c: Include "obsd-nat.h".
7888 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7890 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7892 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7894 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7896 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7898 * mips64obsd-nat.c: Include "obsd-nath".
7899 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7901 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7903 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7905 * amd64obsd-nat.c: Include "obsd-nat,h.
7906 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7908 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7910 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7912 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7913 (find_overload_match): Update call to find_oload_champ.
7914 (find_oload_champ_namespace_loop): Likewise
7916 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7918 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7920 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7921 * config/sparc/obsd64.mh: New file.
7922 * sparc64obsd-nat.c: New file.
7924 * obsd-nat.h: New file.
7925 * obsd-nat.c: New file.
7926 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7927 (ALLDEPFILES): Add obsd-nat.c.
7929 2014-02-28 Tom Tromey <tromey@redhat.com>
7931 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7932 * cli-out.h (cli_ui_out_impl): Now const.
7933 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7934 * ui-out.c (struct ui_out) <impl>: Now const.
7935 (default_ui_out_impl): Now const.
7936 (ui_out_new): Make 'impl' parameter const.
7937 * ui-out.h (ui_out_new): Update.
7939 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7941 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7943 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7945 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7947 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7949 Additional PR 8882 fix.
7950 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7952 2014-02-27 Pedro Alves <palves@redhat.com>
7954 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7957 2014-02-27 Pedro Alves <palves@redhat.com>
7960 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7961 * nat/linux-waitpid.c: Include string.h.
7962 (status_to_str): Moved here and made extern.
7963 * nat/linux-waitpid.h (status_to_str): New declaration.
7965 2014-02-27 Hui Zhu <hui@codesourcery.com>
7968 * infrun.c (ptid_match): Move ...
7969 * common/ptid.c (ptid_match): ... here.
7970 * inferior.h (ptid_match): Move ...
7971 * common/ptid.h (ptid_match): ... here.
7973 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7975 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7976 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7979 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7981 * obsd-tdep.c (obsd_auxv_parse): New function.
7982 (obsd_init_abi): Set auxv_parse.
7984 * gdbarch.sh (auxv_parse): New.
7985 * gdbarch.h: Regenerated.
7986 * gdbarch.c: Regenerated.
7987 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7989 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7991 * guile/scm-value.c (gdbscm_history_append_x): New function.
7992 (value_functions): Add it.
7994 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7996 * dwarf2read.c (attr_value_as_address): New function.
7997 (dwarf2_find_base_address, read_call_site_scope): Use
7998 attr_value_as_address in place of DW_ADDR.
7999 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8000 the low and high addresses. Slight rework of the handling
8001 of the high pc being a constant form, and limit it to
8002 DWARF verson 4 or higher.
8003 (dwarf2_record_block_ranges): Likewise.
8004 (read_partial_die): Likewise.
8005 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8007 2014-02-26 Tom Tromey <tromey@redhat.com>
8009 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8011 2014-02-26 Tom Tromey <tromey@redhat.com>
8013 * elfread.c (elf_read_minimal_symbols): Return early if
8014 minimal symbols have already been read. Add "ei" parameter.
8015 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8016 * minsyms.c (prim_record_minimal_symbol_full): Update.
8017 * objfiles.h (struct objstats) <n_minsyms>: Move...
8018 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8019 * symmisc.c (print_objfile_statistics): Update.
8021 2014-02-26 Tom Tromey <tromey@redhat.com>
8023 * elfread.c (elf_read_minimal_symbols): New function, from
8025 (elf_symfile_read): Call it.
8027 2014-02-26 Tom Tromey <tromey@redhat.com>
8029 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8030 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8031 (lookup_minimal_symbol_solib_trampoline)
8032 (lookup_minimal_symbol_by_pc_section_1)
8033 (lookup_minimal_symbol_and_objfile): Update.
8034 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8035 Don't allocate a minimal symbol if minsyms have already been read.
8036 (build_minimal_symbol_hash_tables): Update.
8037 (install_minimal_symbols): Do nothing if minsyms already read.
8038 Use the per-BFD obstack.
8039 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8040 * objfiles.c (allocate_objfile): Call
8041 terminate_minimal_symbol_table later.
8042 (have_minimal_symbols): Update.
8043 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8044 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8045 Move from struct objfile.
8046 <minsyms_read>: New field.
8047 (struct objfile) <msymbols, minimal_symbol_count,
8048 msymbol_hash, msymbol_demangled_hash>: Move.
8049 (ALL_OBJFILE_MSYMBOLS): Update.
8050 * symfile.c (read_symbols): Set minsyms_read.
8051 (reread_symbols): Update.
8052 * symmisc.c (dump_objfile, dump_msymbols): Update.
8054 2014-02-26 Tom Tromey <tromey@redhat.com>
8056 * minsyms.c (msymbols_sort): Remove.
8057 * minsyms.h (msymbols_sort): Remove.
8058 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8059 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8060 * elfread.c (elf_symtab_read): Don't add section offsets.
8061 * xcoffread.c (record_minimal_symbol): Don't add section offset
8062 to minimal symbol address.
8063 * somread.c (text_offset, data_offset): Remove.
8064 (som_symtab_read): Don't add section offsets to minimal symbol
8066 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8067 Don't add section offsets to minimal symbols.
8068 * coffread.c (coff_symtab_read): Don't add section offsets
8069 to minimal symbol addresses.
8070 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8071 to minimal symbol addresses.
8072 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8073 section offset to minimal symbol addresses.
8074 * mdebugread.c (parse_partial_symbols): Don't add section
8075 offset to minimal symbol addresses.
8076 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8077 offset to minimal symbol addresses.
8079 2014-02-26 Tom Tromey <tromey@redhat.com>
8081 * ada-lang.c (ada_main_name): Update.
8082 (ada_add_standard_exceptions): Update.
8083 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8084 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8085 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8086 * auxv.c (ld_so_xfer_auxv): Update.
8087 * avr-tdep.c (avr_scan_prologue): Update.
8088 * ax-gdb.c (gen_var_ref): Update.
8089 * blockframe.c (get_pc_function_start)
8090 (find_pc_partial_function_gnu_ifunc): Update.
8091 * breakpoint.c (create_overlay_event_breakpoint)
8092 (create_longjmp_master_breakpoint)
8093 (create_std_terminate_master_breakpoint)
8094 (create_exception_master_breakpoint): Update.
8095 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8096 * c-valprint.c (c_val_print): Update.
8097 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8098 * common/agent.c (agent_look_up_symbols): Update.
8099 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8100 * dwarf2loc.c (call_site_to_target_addr): Update.
8101 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8102 * elfread.c (elf_gnu_ifunc_record_cache)
8103 (elf_gnu_ifunc_resolve_by_got): Update.
8104 * findvar.c (default_read_var_value): Update.
8105 * frame.c (inside_main_func): Update.
8106 * frv-tdep.c (frv_frame_this_id): Update.
8107 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8108 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8110 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8111 (hppa_hpux_find_dummy_bpaddr): Update.
8112 * hppa-tdep.c (hppa_symbol_address): Update.
8113 * infcmd.c (until_next_command): Update.
8114 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8116 * linespec.c (minsym_found, add_minsym): Update.
8117 * linux-nat.c (get_signo): Update.
8118 * linux-thread-db.c (inferior_has_bug): Update.
8119 * m32c-tdep.c (m32c_return_value)
8120 (m32c_m16c_address_to_pointer): Update.
8121 * m32r-tdep.c (m32r_frame_this_id): Update.
8122 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8123 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8124 * maint.c (maintenance_translate_address): Update.
8125 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8126 (frob_address): New function.
8127 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8128 frob_address. Rename parameter to "pc_in".
8129 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8131 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8133 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8134 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8135 * objc-lang.c (find_objc_msgsend): Update.
8136 * objfiles.c (objfile_relocate1): Update.
8137 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8138 * p-valprint.c (pascal_val_print): Update.
8139 * parse.c (write_exp_msymbol): Update.
8140 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8141 (ppc_elfv2_skip_entrypoint): Update.
8142 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8143 * printcmd.c (build_address_symbolic, msym_info)
8144 (address_info): Update.
8145 * proc-service.c (ps_pglobal_lookup): Update.
8146 * psymtab.c (find_pc_sect_psymtab_closer)
8147 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8148 Change msymbol parameter to bound_minimal_symbol.
8149 * ravenscar-thread.c (get_running_thread_id): Update.
8150 * remote.c (remote_check_symbols): Update.
8151 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8153 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8154 * solib-dsbt.c (lm_base): Update.
8155 * solib-frv.c (lm_base, main_got): Update.
8156 * solib-irix.c (locate_base): Update.
8157 * solib-som.c (som_solib_create_inferior_hook)
8158 (link_map_start): Update.
8159 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8160 * solib-svr4.c (elf_locate_base, enable_break): Update.
8161 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8162 (flush_ea_cache): Update.
8163 * stabsread.c (define_symbol, scan_file_globals): Update.
8164 * stack.c (find_frame_funname): Update.
8165 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8166 (debug_qf_find_pc_sect_symtab): Update.
8167 * symfile.c (simple_read_overlay_table)
8168 (simple_overlay_update): Update.
8169 * symfile.h (struct quick_symbol_functions)
8170 <find_pc_sect_symtab>: Change type of msymbol to
8171 bound_minimal_symbol.
8172 * symmisc.c (dump_msymbols): Update.
8173 * symtab.c (find_pc_sect_symtab_via_partial)
8174 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8175 (search_symbols, print_msymbol_info): Update.
8176 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8177 (MSYMBOL_VALUE_ADDRESS): Redefine.
8178 (BMSYMBOL_VALUE_ADDRESS): New macro.
8179 * tracepoint.c (scope_info): Update.
8180 * tui/tui-disasm.c (tui_find_disassembly_address)
8181 (tui_get_begin_asm_address): Update.
8182 * valops.c (find_function_in_inferior): Update.
8183 * value.c (value_static_field, value_fn_field): Update.
8185 2014-02-26 Tom Tromey <tromey@redhat.com>
8187 * ada-lang.c (ada_update_initial_language): Update.
8188 (ada_main_name, ada_has_this_exception_support): Update.
8189 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8190 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8191 * arm-tdep.c (arm_skip_stub): Update.
8192 * auxv.c (ld_so_xfer_auxv): Update.
8193 * avr-tdep.c (avr_scan_prologue): Update.
8194 * ax-gdb.c (gen_var_ref): Update.
8195 * breakpoint.c (struct breakpoint_objfile_data)
8196 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8197 type to bound_minimal_symbol.
8198 (create_overlay_event_breakpoint)
8199 (create_longjmp_master_breakpoint)
8200 (create_std_terminate_master_breakpoint)
8201 (create_exception_master_breakpoint): Update.
8202 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8203 * c-exp.y (classify_name): Update.
8204 * coffread.c (coff_symfile_read): Update.
8205 * common/agent.c (agent_look_up_symbols): Update.
8206 * d-lang.c (d_main_name): Update.
8207 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8208 * dec-thread.c (enable_dec_thread): Update.
8209 * dwarf2loc.c (call_site_to_target_addr): Update.
8210 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8211 * eval.c (evaluate_subexp_standard): Update.
8212 * findvar.c (struct minsym_lookup_data) <result>: Change type
8213 to bound_minimal_symbol.
8215 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8216 * frame.c (inside_main_func): Update.
8217 * frv-tdep.c (frv_frame_this_id): Update.
8218 * gcore.c (call_target_sbrk): Update.
8219 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8220 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8222 * go-lang.c (go_main_name): Update.
8223 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8224 (hppa_hpux_find_import_stub_for_addr): Update.
8225 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8226 Update. Change return type.
8227 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8229 * jit.c (jit_breakpoint_re_set_internal): Update.
8230 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8232 * linux-nat.c (get_signo): Update.
8233 * linux-thread-db.c (inferior_has_bug): Update
8234 * m32c-tdep.c (m32c_return_value)
8235 (m32c_m16c_address_to_pointer): Update.
8236 * m32r-tdep.c (m32r_frame_this_id): Update.
8237 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8238 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8239 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8240 lookup_minimal_symbol. Change return type.
8241 (lookup_minimal_symbol): Remove.
8242 (lookup_bound_minimal_symbol): Update.
8243 (lookup_minimal_symbol_text): Change return type.
8244 (lookup_minimal_symbol_solib_trampoline): Change return type.
8245 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8246 (lookup_minimal_symbol_solib_trampoline): Change return type.
8247 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8248 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8249 (value_nsstring, find_imps): Update.
8250 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8251 * p-lang.c (pascal_main_name): Update.
8252 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8253 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8254 * proc-service.c (ps_pglobal_lookup): Update.
8255 * ravenscar-thread.c (get_running_thread_msymbol): Change
8257 (has_ravenscar_runtime, get_running_thread_id): Update.
8258 * remote.c (remote_check_symbols): Update.
8259 * sol-thread.c (ps_pglobal_lookup): Update.
8260 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8261 * solib-dsbt.c (lm_base): Update.
8262 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8264 * solib-irix.c (locate_base): Update.
8265 * solib-som.c (som_solib_create_inferior_hook)
8266 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8268 * solib-spu.c (spu_enable_break): Update.
8269 * solib-svr4.c (elf_locate_base, enable_break): Update.
8270 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8271 (flush_ea_cache): Update.
8272 * stabsread.c (define_symbol): Update.
8273 * symfile.c (simple_read_overlay_table): Update.
8274 * symtab.c (find_pc_sect_line): Update.
8275 * tracepoint.c (scope_info): Update.
8276 * tui-disasm.c (tui_get_begin_asm_address): Update.
8277 * value.c (value_static_field): Update.
8279 2014-02-26 Tom Tromey <tromey@redhat.com>
8281 * minsyms.c (prim_record_minimal_symbol_full): Use
8282 SET_MSYMBOL_VALUE_ADDRESS.
8283 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8284 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8285 SET_MSYMBOL_VALUE_ADDRESS.
8286 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8287 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8289 2014-02-26 Tom Tromey <tromey@redhat.com>
8291 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8292 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8293 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8294 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8295 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8296 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8297 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8298 * ada-lang.c (ada_main_name): Update.
8299 (ada_lookup_simple_minsym): Update.
8300 (ada_make_symbol_completion_list): Update.
8301 (ada_add_standard_exceptions): Update.
8302 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8303 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8304 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8305 * arm-tdep.c (skip_prologue_function): Update.
8306 (arm_skip_stack_protector, arm_skip_stub): Update.
8307 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8308 (arm_wince_skip_main_prologue): Update.
8309 * auxv.c (ld_so_xfer_auxv): Update.
8310 * avr-tdep.c (avr_scan_prologue): Update.
8311 * ax-gdb.c (gen_var_ref): Update.
8312 * block.c (call_site_for_pc): Update.
8313 * blockframe.c (get_pc_function_start): Update.
8314 (find_pc_partial_function_gnu_ifunc): Update.
8315 * breakpoint.c (create_overlay_event_breakpoint): Update.
8316 (create_longjmp_master_breakpoint): Update.
8317 (create_std_terminate_master_breakpoint): Update.
8318 (create_exception_master_breakpoint): Update.
8319 (resolve_sal_pc): Update.
8320 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8321 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8323 * c-valprint.c (c_val_print): Update.
8324 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8325 * coffread.c (coff_symfile_read): Update.
8326 * common/agent.c (agent_look_up_symbols): Update.
8327 * dbxread.c (find_stab_function_addr): Update.
8328 (end_psymtab): Update.
8329 * dwarf2loc.c (call_site_to_target_addr): Update.
8330 (func_verify_no_selftailcall): Update.
8331 (tailcall_dump): Update.
8332 (call_site_find_chain_1): Update.
8333 (dwarf_expr_reg_to_entry_parameter): Update.
8334 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8335 (elf_gnu_ifunc_resolve_by_got): Update.
8336 * f-valprint.c (info_common_command): Update.
8337 * findvar.c (read_var_value): Update.
8338 * frame.c (get_prev_frame_1): Update.
8339 (inside_main_func): Update.
8340 * frv-tdep.c (frv_skip_main_prologue): Update.
8341 (frv_frame_this_id): Update.
8342 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8343 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8344 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8345 (gnuv3_skip_trampoline): Update.
8346 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8347 (hppa64_hpux_in_solib_call_trampoline): Update.
8348 (hppa_hpux_skip_trampoline_code): Update.
8349 (hppa64_hpux_search_dummy_call_sequence): Update.
8350 (hppa_hpux_find_import_stub_for_addr): Update.
8351 (hppa_hpux_find_dummy_bpaddr): Update.
8352 * hppa-tdep.c (hppa_symbol_address)
8353 (hppa_lookup_stub_minimal_symbol): Update.
8354 * i386-tdep.c (i386_skip_main_prologue): Update.
8355 (i386_pe_skip_trampoline_code): Update.
8356 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8357 * infcall.c (get_function_name): Update.
8358 * infcmd.c (until_next_command): Update.
8359 * jit.c (jit_breakpoint_re_set_internal): Update.
8360 (jit_inferior_init): Update.
8361 * linespec.c (minsym_found): Update.
8362 (add_minsym): Update.
8363 * linux-fork.c (info_checkpoints_command): Update.
8364 * linux-nat.c (get_signo): Update.
8365 * linux-thread-db.c (inferior_has_bug): Update.
8366 * m32c-tdep.c (m32c_return_value): Update.
8367 (m32c_m16c_address_to_pointer): Update.
8368 (m32c_m16c_pointer_to_address): Update.
8369 * m32r-tdep.c (m32r_frame_this_id): Update.
8370 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8371 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8372 * maint.c (maintenance_translate_address): Update.
8373 * minsyms.c (add_minsym_to_hash_table): Update.
8374 (add_minsym_to_demangled_hash_table): Update.
8375 (msymbol_objfile): Update.
8376 (lookup_minimal_symbol): Update.
8377 (iterate_over_minimal_symbols): Update.
8378 (lookup_minimal_symbol_text): Update.
8379 (lookup_minimal_symbol_by_pc_name): Update.
8380 (lookup_minimal_symbol_solib_trampoline): Update.
8381 (lookup_minimal_symbol_by_pc_section_1): Update.
8382 (lookup_minimal_symbol_and_objfile): Update.
8383 (prim_record_minimal_symbol_full): Update.
8384 (compare_minimal_symbols): Update.
8385 (compact_minimal_symbols): Update.
8386 (build_minimal_symbol_hash_tables): Update.
8387 (install_minimal_symbols): Update.
8388 (terminate_minimal_symbol_table): Update.
8389 (find_solib_trampoline_target): Update.
8390 (minimal_symbol_upper_bound): Update.
8391 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8392 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8393 (mips_skip_pic_trampoline_code): Update.
8394 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8395 * objc-lang.c (selectors_info): Update.
8396 (classes_info): Update.
8397 (find_methods): Update.
8398 (find_imps): Update.
8399 (find_objc_msgsend): Update.
8400 * objfiles.c (objfile_relocate1): Update.
8401 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8402 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8403 * p-valprint.c (pascal_val_print): Update.
8404 * parse.c (write_exp_msymbol): Update.
8405 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8406 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8407 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8408 * printcmd.c (build_address_symbolic): Update.
8410 (address_info): Update.
8411 * proc-service.c (ps_pglobal_lookup): Update.
8412 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8413 (find_pc_sect_psymtab): Update.
8414 * python/py-framefilter.c (py_print_frame): Update.
8415 * ravenscar-thread.c (get_running_thread_id): Update.
8416 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8418 * remote.c (remote_check_symbols): Update.
8419 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8420 (rs6000_skip_trampoline_code): Update.
8421 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8422 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8423 * solib-dsbt.c (lm_base): Update.
8424 * solib-frv.c (lm_base): Update.
8426 * solib-irix.c (locate_base): Update.
8427 * solib-som.c (som_solib_create_inferior_hook): Update.
8428 (som_solib_desire_dynamic_linker_symbols): Update.
8429 (link_map_start): Update.
8430 * solib-spu.c (spu_enable_break): Update.
8431 (ocl_enable_break): Update.
8432 * solib-svr4.c (elf_locate_base): Update.
8433 (enable_break): Update.
8434 * spu-tdep.c (spu_get_overlay_table): Update.
8435 (spu_catch_start): Update.
8436 (flush_ea_cache): Update.
8437 * stabsread.c (define_symbol): Update.
8438 (scan_file_globals): Update.
8439 * stack.c (find_frame_funname): Update.
8440 (frame_info): Update.
8441 * symfile.c (simple_read_overlay_table): Update.
8442 (simple_overlay_update): Update.
8443 * symmisc.c (dump_msymbols): Update.
8444 * symtab.c (fixup_section): Update.
8445 (find_pc_sect_line): Update.
8446 (skip_prologue_sal): Update.
8447 (search_symbols): Update.
8448 (print_msymbol_info): Update.
8449 (rbreak_command): Update.
8450 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8451 (completion_list_objc_symbol): Update.
8452 (default_make_symbol_completion_list_break_on): Update.
8453 * tracepoint.c (scope_info): Update.
8454 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8455 (tui_get_begin_asm_address): Update.
8456 * valops.c (find_function_in_inferior): Update.
8457 * value.c (value_static_field): Update.
8458 (value_fn_field): Update.
8460 2014-02-26 Tom Tromey <tromey@redhat.com>
8462 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8463 bound minimal symbols. Move code that knows about minsym
8465 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8467 * minsyms.h (minimal_symbol_upper_bound): Declare.
8468 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8469 minimal_symbol_upper_bound.
8471 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8473 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8474 Use the type's name if its basic type does not have a tag.
8476 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8478 * dwarf2read.c (read_subrange_type): Add comment.
8480 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8482 * dwarf2read.c (update_enumeration_type_from_children): New
8483 function, mostly extracted from process_structure_scope.
8484 (read_enumeration_type): Call update_enumeration_type_from_children.
8485 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8486 and flag_flag_enum fields.
8488 2014-02-26 Pedro Alves <palves@redhat.com>
8490 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8491 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8492 to_xfer_partial method.
8494 2014-02-26 Pedro Alves <palves@redhat.com>
8496 * target.c (complete_target_initialization): Don't install
8497 default_xfer_partial as to_xfer_partial hook.
8499 (update_current_target): Don't INHERIT nor de_fault
8500 deprecated_xfer_memory. Delete de_fault macro.
8501 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8502 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8503 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8506 2014-02-26 Pedro Alves <palves@redhat.com>
8508 * go32-nat.c (my_write_child): New function.
8509 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8510 (go32_xfer_partial): New function.
8511 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8512 Instead install a to_xfer_partial hook.
8514 2014-02-26 Pedro Alves <palves@redhat.com>
8516 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8517 to_xfer_partial helper. Rewrite.
8518 (procfs_xfer_partial): New function.
8519 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8520 Install a to_xfer_partial hook.
8522 2014-02-26 Pedro Alves <palves@redhat.com>
8524 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8525 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8526 (m32r_xfer_partial): New function.
8527 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8528 Install a to_xfer_partial hook.
8530 2014-02-26 Pedro Alves <palves@redhat.com>
8532 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8534 (mips_xfer_partial): New function.
8535 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8536 hook. Install a to_xfer_partial hook.
8538 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8540 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8541 * gdbtypes.c (create_array_type_with_stride): New function,
8542 renaming create_array_type, but with an added parameter
8543 called "bit_stride".
8544 (create_array_type): Re-implement using
8545 create_array_type_with_stride.
8546 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8547 and DW_AT_bit_stride attributes.
8549 2014-02-26 Pedro Alves <palves@redhat.com>
8551 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8552 task-specific breakpoints.
8554 2014-02-25 Pedro Alves <palves@redhat.com>
8556 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8557 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8559 2014-02-25 Stan Shebs <stan@codesourcery.com>
8561 * defs.h: Annotate comments for Doxygen.
8563 2014-02-25 Tom Tromey <tromey@redhat.com>
8565 * target.h (target_ignore): Don't declare.
8566 * target.c (target_ignore): Remove.
8568 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8571 * auto-load.c (auto_load_objfile_script_1): Change filename to
8574 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8576 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8577 documentation. Adjust prototype to match the target_ops
8578 to_xfer_partial method. Adjust implementation accordingly.
8580 2014-02-25 Hui Zhu <hui@codesourcery.com>
8582 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8585 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8587 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8588 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8589 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8590 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8591 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8592 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8593 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8594 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8596 (rl78_register_type): Use a data pointer type for SP and
8597 new pseudo registers mentioned above. Use a 16 bit integer
8598 type for all other register pairs.
8599 (rl78_register_name, rl78_g10_register_name): Update for
8600 new pseudo registers.
8601 (rl78_pseudo_register_read): Likewise.
8602 (rl78_pseudo_register_write): Likewise.
8603 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8604 to the newly added pseudo registers.
8606 2014-02-24 Doug Evans <dje@google.com>
8608 * value.c (record_latest_value): Fix comment.
8609 * printcmd.c (print_command_1): Remove code to handle -1 return from
8610 record_latest_value.
8612 2014-02-24 Pedro Alves <palves@redhat.com>
8614 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8615 deprecated_xfer_memory hook.
8616 (procfs_xfer_partial): Call procfs_xfer_memory instead
8617 of the deprecated_xfer_memory target hook.
8618 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8621 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8623 * windows-nat.c (windows_xfer_shared_libraries): Return
8624 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8625 requested object is TARGET_OBJECT_LIBRARIES.
8627 2014-02-24 Yao Qi <yao@codesourcery.com>
8629 * target.h (enum target_xfer_status)
8630 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8631 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8633 * corefile.c (memory_error_message): User updated.
8634 * exec.c (section_table_read_available_memory): Likewise.
8635 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8636 * target.c (target_xfer_status_to_string): Likewise.
8637 (raw_memory_xfer_partial): Likewise.
8638 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8639 * valops.c (read_value_memory): Likewise.
8640 * exec.h: Update comments.
8642 2014-02-24 Yao Qi <yao@codesourcery.com>
8644 * target.c (target_xfer_status_to_string): Rename argument err
8646 * target.h (target_xfer_status_to_string): Update declaration.
8647 Replace target_xfer_error_to_string with
8648 target_xfer_status_to_string in comment.
8650 2014-02-24 Yao Qi <yao@codesourcery.com>
8652 * mips-linux-nat.c (super_close): Update its type.
8653 (mips_linux_close): Pass 'self' to super_close.
8655 2014-02-24 Yao Qi <yao@codesourcery.com>
8657 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8658 * corefile.c (read_memory): Adjusted.
8659 * target.c (target_write_with_progress): Adjusted.
8661 2014-02-23 Yao Qi <yao@codesourcery.com>
8665 2013-10-25 Yao Qi <yao@codesourcery.com>
8667 * remote.c (remote_traceframe_info): Return early if
8668 traceframe is not selected.
8670 2013-07-19 Yao Qi <yao@codesourcery.com>
8672 * target.c (update_current_target): Change the default action
8673 of 'to_traceframe_info' from tcomplain to return_zero.
8674 * target.h (struct target_ops) <to_traceframe_info>: Add more
8677 2014-02-23 Yao Qi <yao@codesourcery.com>
8679 * valops.c (read_value_memory): Rewrite it. Call
8680 target_xfer_partial in a loop.
8681 * exec.h (section_table_available_memory): Remove declaration.
8682 Move comments to ...
8683 * exec.c (section_table_available_memory): ... here. Make it
8686 2014-02-23 Yao Qi <yao@codesourcery.com>
8688 * exec.c (section_table_read_available_memory): New function.
8689 * exec.h (section_table_read_available_memory): Declare.
8690 * ctf.c (ctf_xfer_partial): Call
8691 section_table_read_available_memory.
8692 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8694 2014-02-23 Yao Qi <yao@codesourcery.com>
8696 * ctf.c (ctf_xfer_partial): Move code to ...
8697 * exec.c (exec_read_partial_read_only): ... it. New function.
8698 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8699 * tracefile.c: Include "exec.h".
8700 * exec.h (exec_read_partial_read_only): Declare.
8702 2014-02-23 Yao Qi <yao@codesourcery.com>
8704 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8705 (tfile_has_memory): Remove.
8706 (init_tfile_ops): Don't set fields to_has_all_memory and
8707 to_has_memory of tfile_ops.
8708 * tracefile.c (tracefile_has_all_memory): New function.
8709 (tracefile_has_memory): New function.
8710 (init_tracefile_ops): Initialize fields to_has_all_memory and
8711 to_has_memory of 'ops'.
8713 2014-02-23 Yao Qi <yao@codesourcery.com>
8715 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8716 (ctf_thread_alive, ctf_get_trace_status): Remove.
8717 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8719 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8720 (tfile_has_stack, tfile_has_registers): Remove.
8721 (tfile_thread_alive): Remove.
8722 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8724 * tracefile.c (tracefile_has_stack): New function.
8725 (tracefile_has_registers): New function.
8726 (tracefile_thread_alive): New function.
8727 (tracefile_get_trace_status): New function.
8728 (init_tracefile_ops): New function.
8729 * tracefile.h (init_tracefile_ops): Declare.
8731 2014-02-23 Yao Qi <yao@codesourcery.com>
8733 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8734 (O_LARGEFILE): Likewise.
8735 (tfile_ops): Likewise.
8736 (TRACE_HEADER_SIZE): Likewise.
8737 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8738 (cur_data_size): Likewise.
8739 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8740 (tfile_close, tfile_files_info): Likewise.
8741 (tfile_get_trace_status): Likewise.
8742 (tfile_get_tracepoint_status): Likewise.
8743 (tfile_get_traceframe_address): Likewise.
8744 (tfile_trace_find, match_blocktype): Likewise.
8745 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8746 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8747 (tfile_get_trace_state_variable_value): Likewise.
8748 (tfile_has_all_memory, tfile_has_memory): Likewise.
8749 (tfile_has_stack, tfile_has_registers): Likewise.
8750 (tfile_thread_alive, build_traceframe_info): Likewise.
8751 (tfile_traceframe_info, init_tfile_ops): Likewise.
8752 (_initialize_tracepoint): Don't call init_tfile_ops
8753 and add_target_with_completer.
8754 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8755 exec.h, completer.h and filenames.h.
8756 (_initialize_tracefile_tfile): New function.
8758 2014-02-23 Yao Qi <yao@codesourcery.com>
8760 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8762 (HFILES_NO_SRCDIR): Add tracefile.h.
8763 * ctf.c: Include "tracefile.h".
8764 * tracefile.h: New file.
8765 * tracefile.c: New file
8766 * tracefile-tfile.c: New file.
8767 * tracepoint.c: Include "tracefile.h".
8768 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8769 (stop_reason_names): Add const.
8770 (trace_file_writer_xfree): Move it to tracefile.c.
8771 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8772 (trace_save_ctf): Likewise.
8773 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8774 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8775 (tfile_write_header, tfile_write_regblock_type): Likewise.
8776 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8777 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8778 (tfile_write_raw_data, tfile_end): Likewise.
8779 (tfile_trace_file_writer_new): Likewise.
8780 (free_uploaded_tp): Make it extern.
8781 (free_uploaded_tsv): Make it extern.
8782 (_initialize_tracepoint): Move code to register command 'tsave'
8784 * tracepoint.h (stop_reason_names): Declare.
8785 (struct trace_frame_write_ops): Move it to tracefile.h.
8786 (struct trace_file_write_ops): Likewise.
8787 (struct trace_file_writer): Likewise.
8788 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8790 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8793 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8795 (get_cores_used_by_process): New parameter num_cores, use it.
8796 (linux_xfer_osdata_processes): Pass num_cores to it.
8797 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8800 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8802 * target.c (memory_xfer_partial): Fix length arg in call to
8803 breakpoint_xfer_memory.
8805 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8808 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8809 number comes after the + or - signs. Adjust length of register
8810 name to be extracted.
8812 2014-02-20 Tom Tromey <tromey@redhat.com>
8814 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8815 (ada_varobj_ops): Mark "extern".
8817 2014-02-20 Tom Tromey <tromey@redhat.com>
8819 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8821 2014-02-20 Doug Evans <xdje42@gmail.com>
8823 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8824 All callers updated.
8825 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8826 All callers updated.
8827 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8828 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8830 2014-02-20 lin zuojian <manjian2006@gmail.com>
8831 Joel Brobecker <brobecker@adacore.com>
8832 Doug Evans <xdje42@gmail.com>
8835 * dwarf2read.c (struct die_info): New member in_process.
8836 (reset_die_in_process): New function.
8837 (process_die): Set it at the start, reset when returning.
8838 (inherit_abstract_dies): Only call process_die if origin_child_die
8839 not already being processed.
8841 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8843 * windows-nat.c (handle_unload_dll): Add function documentation.
8844 (do_initial_windows_stuff): Add comment explaining why we wait
8845 until after inferior initialization has finished before
8846 processing all DLLs.
8848 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8850 * windows-nat.c (get_module_name): Delete.
8851 (windows_get_exec_module_filename): New function, mostly
8852 inspired from get_module_name.
8853 (windows_pid_to_exec_file): Replace call to get_module_name
8854 by call to windows_get_exec_module_filename.
8856 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8858 * windows-nat.c (handle_load_dll): Rewrite this function's
8859 introductory comment. Remove code using get_module_name
8860 to get the DLL's name.
8862 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8864 * windows-nat.c (get_windows_debug_event): Ignore
8865 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8866 if windows_initialization_done == 0.
8867 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8868 Adjust implementation to always load all DLLs.
8869 (do_initial_windows_stuff): Replace call to
8870 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8872 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8874 * windows-nat.c (_initialize_windows_nat): Deprecate the
8875 "dll-symbols" command. Turn the "add-shared-symbol-files"
8876 and "assf" aliases into commands, and deprecate them as well.
8877 * NEWS: Add entry explaining that "dll-symbols" and its two
8878 aliases are now deprecated.
8880 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8882 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8883 new-line in debug string. Remove trailing spaces.
8885 2014-02-19 Stan Shebs <stan@codesourcery.com>
8887 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8889 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8891 * NEWS: Add entry for the new feature
8892 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8895 2014-02-19 Stan Shebs <stan@codesourcery.com>
8897 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8899 2014-02-19 Pedro Alves <palves@redhat.com>
8901 * common/ptid.h (struct ptid): Mention that process_stratum
8902 targets should prefer ptid.lwp.
8904 2014-02-19 Pedro Alves <palves@redhat.com>
8906 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8907 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8908 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8909 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8910 store remote thread ids rather than ptid.tid.
8911 (_initialize_remote): Adjust.
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8915 * target.c (target_get_unwinder): Rewrite.
8916 (target_get_tailcall_unwinder): Rewrite.
8917 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8918 (record_btrace_to_get_tailcall_unwinder): New function.
8919 (init_record_btrace_ops): Update.
8920 * target.h (struct target_ops) <to_get_unwinder,
8921 to_get_tailcall_unwinder>: Now function pointers. Use
8922 TARGET_DEFAULT_RETURN.
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8926 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8928 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8932 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8934 * target-delegates.c: Rebuild.
8935 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8936 TARGET_DEFAULT_FUNC.
8937 * target.c (default_target_decr_pc_after_break): Rename from
8938 forward_target_decr_pc_after_break. Simplify.
8939 (target_decr_pc_after_break): Rely on delegation.
8941 2014-02-19 Tom Tromey <tromey@redhat.com>
8943 * target.c (update_current_target): Do not INHERIT to_doc or
8944 to_magic. Do not de_fault to_open or to_close.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * gcore.h (objfile_find_memory_regions): Declare.
8949 * gcore.c (objfile_find_memory_regions): No longer static. Add
8951 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8952 * exec.c: Include gcore.h.
8953 (exec_set_find_memory_regions): Remove.
8954 (exec_find_memory_regions): Remove.
8955 (exec_do_find_memory_regions): Remove.
8956 (init_exec_ops): Update.
8957 * defs.h (exec_set_find_memory_regions): Remove.
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target-delegates.c: Rebuild.
8962 * target.h (struct target_ops) <to_extra_thread_info,
8963 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8964 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8965 not 0, in TARGET_DEFAULT_RETURN.
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8969 * target.c (complete_target_initialization): Remove casts. Use
8970 return_zero_has_execution.
8971 (return_zero): Add "ignore" argument.
8972 (return_zero_has_execution): New function.
8973 (init_dummy_target): Remove casts. Use
8974 return_zero_has_execution.
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8978 * target.c (update_current_target): Update comments. Do not
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8985 * corelow.c (core_read_description): Delegate when needed.
8986 * remote.c (remote_read_description): Delegate when needed.
8987 * target-delegates.c: Rebuild.
8988 * target.c (target_read_description): Rewrite.
8989 * target.h (struct target_ops) <to_read_description>: Update
8990 comment. Use TARGET_DEFAULT_RETURN.
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8994 * target-delegates.c: Rebuild.
8995 * target.c (update_current_target): Don't inherit or default
8997 (find_default_run_target): Check against delegate_can_run.
8998 * target.h (struct target_ops) <to_can_run>: Use
8999 TARGET_DEFAULT_RETURN.
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9003 * target-delegates.c: Rebuild.
9004 * target.c (target_disconnect): Unconditionally delegate.
9005 * target.h (struct target_ops) <to_disconnect>: Use
9006 TARGET_DEFAULT_NORETURN.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * record.c (record_stop): Unconditionally delegate.
9011 * target-delegates.c: Rebuild.
9012 * target.c (target_stop_recording): Unconditionally delegate.
9013 * target.h (struct target_ops) <to_stop_recording>: Use
9014 TARGET_DEFAULT_IGNORE.
9016 2014-02-19 Tom Tromey <tromey@redhat.com>
9018 * target-delegates.c: Rebuild.
9019 * target.c (target_enable_btrace): Unconditionally delegate.
9020 * target.h (struct target_ops) <to_enable_btrace>: Use
9021 TARGET_DEFAULT_NORETURN.
9023 2014-02-19 Tom Tromey <tromey@redhat.com>
9025 * target-delegates.c: Rebuild.
9026 * target.c (target_read_btrace): Unconditionally delegate.
9027 * target.h (struct target_ops) <to_read_btrace>: Use
9028 TARGET_DEFAULT_NORETURN.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target-delegates.c: Rebuild.
9033 * target.c (target_teardown_btrace): Unconditionally delegate.
9034 * target.h (struct target_ops) <to_teardown_btrace>: Use
9035 TARGET_DEFAULT_NORETURN.
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9039 * target-delegates.c: Rebuild.
9040 * target.c (target_disable_btrace): Unconditionally delegate.
9041 * target.h (struct target_ops) <to_disable_btrace>: Use
9042 TARGET_DEFAULT_NORETURN.
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9046 * target-delegates.c: Rebuild.
9047 * target.c (default_search_memory): New function.
9048 (simple_search_memory): Update comment.
9049 (target_search_memory): Unconditionally delegate.
9050 * target.h (struct target_ops) <to_search_memory>: Use
9051 TARGET_DEFAULT_FUNC.
9053 2014-02-19 Tom Tromey <tromey@redhat.com>
9055 * auxv.c (default_auxv_parse): No longer static.
9056 (target_auxv_parse): Unconditionally delegate.
9057 * auxv.h (default_auxv_parse): Declare.
9058 * target-delegates.c: Rebuild.
9059 * target.c: Include auxv.h.
9060 * target.h (struct target_ops) <to_auxv_parse>: Use
9061 TARGET_DEFAULT_FUNC.
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9065 * target-delegates.c: Rebuild.
9066 * target.c (target_memory_map): Unconditionally delegate.
9067 * target.h (struct target_ops) <to_memory_map>: Use
9068 TARGET_DEFAULT_RETURN.
9070 2014-02-19 Tom Tromey <tromey@redhat.com>
9072 * target-delegates.c: Rebuild.
9073 * target.c (target_thread_alive): Unconditionally delegate.
9074 * target.h (struct target_ops) <to_thread_alive>: Use
9075 TARGET_DEFAULT_RETURN.
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9079 * target-delegates.c: Rebuild.
9080 * target.c (target_save_record): Unconditionally delegate.
9081 * target.h (struct target_ops) <to_save_record>: Use
9082 TARGET_DEFAULT_NORETURN.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target-delegates.c: Rebuild.
9087 * target.c (target_delete_record): Unconditionally delegate.
9088 * target.h (struct target_ops) <to_delete_record>: Use
9089 TARGET_DEFAULT_NORETURN.
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9093 * target-delegates.c: Rebuild.
9094 * target.c (target_record_is_replaying): Unconditionally
9096 * target.h (struct target_ops) <to_record_is_replaying>: Use
9097 TARGET_DEFAULT_RETURN.
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9101 * target-delegates.c: Rebuild.
9102 * target.c (target_goto_record_begin): Unconditionally delegate.
9103 * target.h (struct target_ops) <to_goto_record_begin>: Use
9104 TARGET_DEFAULT_NORETURN.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target-delegates.c: Rebuild.
9109 * target.c (target_goto_record_end): Unconditionally delegate.
9110 * target.h (struct target_ops) <to_goto_record_end>: Use
9111 TARGET_DEFAULT_NORETURN.
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target-delegates.c: Rebuild.
9116 * target.c (target_goto_record): Unconditionally delegate.
9117 * target.h (struct target_ops) <to_goto_record>: Use
9118 TARGET_DEFAULT_NORETURN.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target-delegates.c: Rebuild.
9123 * target.c (target_insn_history): Unconditionally delegate.
9124 * target.h (struct target_ops) <to_insn_history>: Use
9125 TARGET_DEFAULT_NORETURN.
9127 2014-02-19 Tom Tromey <tromey@redhat.com>
9129 * target-delegates.c: Rebuild.
9130 * target.c (target_insn_history_from): Unconditionally delegate.
9131 * target.h (struct target_ops) <to_insn_history_from>: Use
9132 TARGET_DEFAULT_NORETURN.
9134 2014-02-19 Tom Tromey <tromey@redhat.com>
9136 * target-delegates.c: Rebuild.
9137 * target.c (target_insn_history_range): Unconditionally delegate.
9138 * target.h (struct target_ops) <to_insn_history_range>: Use
9139 TARGET_DEFAULT_NORETURN.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target-delegates.c: Rebuild.
9144 * target.c (target_call_history): Unconditionally delegate.
9145 * target.h (struct target_ops) <to_call_history>: Use
9146 TARGET_DEFAULT_NORETURN.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * target-delegates.c: Rebuild.
9151 * target.c (target_call_history_from): Unconditionally delegate.
9152 * target.h (struct target_ops) <to_call_history_from>: Use
9153 TARGET_DEFAULT_NORETURN.
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9157 * target-delegates.c: Rebuild.
9158 * target.c (target_call_history_range): Unconditionally delegate.
9159 * target.h (struct target_ops) <to_call_history_range>: Use
9160 TARGET_DEFAULT_NORETURN.
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target-delegates.c: Rebuild.
9165 * target.c (target_verify_memory): Unconditionally delegate.
9166 * target.h (struct target_ops) <to_verify_memory>: Use
9167 TARGET_DEFAULT_NORETURN.
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9171 * target-delegates.c: Rebuild.
9172 * target.c (target_core_of_thread): Unconditionally delegate.
9173 * target.h (struct target_ops) <to_core_of_thread>: Use
9174 TARGET_DEFAULT_RETURN.
9176 2014-02-19 Tom Tromey <tromey@redhat.com>
9178 * target-delegates.c: Rebuild.
9179 * target.c (target_flash_done): Unconditionally delegate.
9180 * target.h (struct target_ops) <to_flash_done>: Use
9181 TARGET_DEFAULT_NORETURN.
9183 2014-02-19 Tom Tromey <tromey@redhat.com>
9185 * target-delegates.c: Rebuild.
9186 * target.c (target_flash_erase): Unconditionally delegate.
9187 * target.h (struct target_ops) <to_flash_erase>: Use
9188 TARGET_DEFAULT_NORETURN.
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9192 * target-delegates.c: Rebuild.
9193 * target.c (target_get_section_table): Unconditionally delegate.
9194 * target.h (struct target_ops) <to_get_section_table>: Use
9195 TARGET_DEFAULT_RETURN.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * target-delegates.c: Rebuild.
9200 * target.c (target_pid_to_str): Unconditionally delegate.
9201 (init_dummy_target): Don't initialize to_pid_to_str.
9202 (default_pid_to_str): Rename from dummy_pid_to_str.
9203 * target.h (struct target_ops) <to_pid_to_str>: Use
9204 TARGET_DEFAULT_FUNC.
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9208 * target-delegates.c: Rebuild.
9209 * target.c (target_find_new_threads): Unconditionally delegate.
9210 * target.h (struct target_ops) <to_find_new_threads>: Use
9211 TARGET_DEFAULT_RETURN.
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target-delegates.c: Rebuild.
9216 * target.c (target_program_signals): Unconditionally delegate.
9217 * target.h (struct target_ops) <to_program_signals>: Use
9218 TARGET_DEFAULT_IGNORE.
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * target-delegates.c: Rebuild.
9223 * target.c (target_pass_signals): Unconditionally delegate.
9224 * target.h (struct target_ops) <to_pass_signals>: Use
9225 TARGET_DEFAULT_IGNORE.
9227 2014-02-19 Tom Tromey <tromey@redhat.com>
9229 * target-delegates.c: Rebuild.
9230 * target.c (default_mourn_inferior): New function.
9231 (target_mourn_inferior): Unconditionally delegate.
9232 * target.h (struct target_ops) <to_mourn_inferior>: Use
9233 TARGET_DEFAULT_FUNC.
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9237 * target-delegates.c: Rebuild.
9238 * target.c (default_follow_fork): New function.
9239 (target_follow_fork): Unconditionally delegate.
9240 * target.h (struct target_ops) <to_follow_fork>: Use
9241 TARGET_DEFAULT_FUNC.
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target-delegates.c: Rebuild.
9246 * target.c (target_kill): Unconditionally delegate.
9247 * target.h (struct target_ops) <to_kill>: Use
9248 TARGET_DEFAULT_NORETURN.
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9252 * target-delegates.c: Rebuild.
9253 * target.c (target_masked_watch_num_registers): Unconditionally
9255 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9256 Use TARGET_DEFAULT_RETURN.
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target-delegates.c: Rebuild.
9261 * target.c (target_remove_mask_watchpoint): Unconditionally
9263 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9264 TARGET_DEFAULT_RETURN.
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * target-delegates.c: Rebuild.
9269 * target.c (target_insert_mask_watchpoint): Unconditionally
9271 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9272 TARGET_DEFAULT_RETURN.
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * target-delegates.c: Rebuild.
9277 * target.c (target_ranged_break_num_registers): Unconditionally
9279 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9280 Use TARGET_DEFAULT_RETURN.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * target-delegates.c: Rebuild.
9285 * target.c (target_fetch_registers): Unconditionally delegate.
9286 * target.h (struct target_ops) <to_fetch_registers>: Use
9287 TARGET_DEFAULT_NORETURN.
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9291 * target-delegates.c: Rebuild.
9292 * target.c (update_current_target): Don't inherit or default
9294 * target.h (struct target_ops) <to_stop>: Use
9295 TARGET_DEFAULT_IGNORE.
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9299 * target-delegates.c: Rebuild.
9300 * target.c (update_current_target): Don't inherit or default
9301 to_can_run_breakpoint_commands.
9302 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9303 Use TARGET_DEFAULT_RETURN.
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9307 * target-delegates.c: Rebuild.
9308 * target.c (update_current_target): Don't inherit or default
9309 to_supports_evaluation_of_breakpoint_conditions.
9310 * target.h (struct target_ops)
9311 <to_supports_evaluation_of_breakpoint_conditions>: Use
9312 TARGET_DEFAULT_RETURN.
9314 2014-02-19 Tom Tromey <tromey@redhat.com>
9316 * target-delegates.c: Rebuild.
9317 * target.c (update_current_target): Don't inherit or default
9318 to_augmented_libraries_svr4_read.
9319 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9320 Use TARGET_DEFAULT_RETURN.
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9324 * target-delegates.c: Rebuild.
9325 * target.c (update_current_target): Don't inherit or default
9327 * target.h (struct target_ops) <to_can_use_agent>: Use
9328 TARGET_DEFAULT_RETURN.
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target-delegates.c: Rebuild.
9333 * target.c (update_current_target): Don't inherit or default
9335 * target.h (struct target_ops) <to_use_agent>: Use
9336 TARGET_DEFAULT_NORETURN.
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9340 * target-delegates.c: Rebuild.
9341 * target.c (update_current_target): Don't inherit or default
9343 (return_null): Remove.
9344 * target.h (struct target_ops) <to_traceframe_info>: Use
9345 TARGET_DEFAULT_RETURN.
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9349 * target-delegates.c: Rebuild.
9350 * target.c (update_current_target): Don't inherit or default
9351 to_static_tracepoint_markers_by_strid.
9352 * target.h (struct target_ops)
9353 <to_static_tracepoint_markers_by_strid>: Use
9354 TARGET_DEFAULT_NORETURN.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target-delegates.c: Rebuild.
9359 * target.c (update_current_target): Don't inherit or default
9360 to_static_tracepoint_marker_at.
9361 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9362 Use TARGET_DEFAULT_RETURN.
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target-delegates.c: Rebuild.
9367 * target.c (update_current_target): Don't inherit or default
9369 * target.h (struct target_ops) <to_set_permissions>: Use
9370 TARGET_DEFAULT_IGNORE.
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9374 * target-delegates.c: Rebuild.
9375 * target.c (update_current_target): Don't inherit or default
9377 * target.h (struct target_ops) <to_get_tib_address>: Use
9378 TARGET_DEFAULT_NORETURN.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target-delegates.c: Rebuild.
9383 * target.c (update_current_target): Don't inherit or default
9385 * target.h (struct target_ops) <to_set_trace_notes>: Use
9386 TARGET_DEFAULT_RETURN.
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9390 * target-delegates.c: Rebuild.
9391 * target.c (update_current_target): Don't initialize
9392 to_set_trace_buffer_size.
9393 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9394 TARGET_DEFAULT_IGNORE.
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9398 * target-delegates.c: Rebuild.
9399 * target.c (update_current_target): Don't inherit or default
9400 to_set_circular_trace_buffer.
9401 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9402 TARGET_DEFAULT_IGNORE.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target-delegates.c: Rebuild.
9407 * target.c (update_current_target): Don't inherit or default
9408 to_set_disconnected_tracing.
9409 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9410 TARGET_DEFAULT_IGNORE.
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target-delegates.c: Rebuild.
9415 * target.c (update_current_target): Don't inherit or default
9416 to_get_min_fast_tracepoint_insn_len.
9417 (return_minus_one): Remove.
9418 * target.h (struct target_ops)
9419 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target-delegates.c: Rebuild.
9424 * target.c (update_current_target): Don't inherit or default
9425 to_get_raw_trace_data.
9426 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9427 TARGET_DEFAULT_NORETURN.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target-delegates.c: Rebuild.
9432 * target.c (update_current_target): Don't inherit or default
9433 to_upload_trace_state_variables.
9434 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9435 Use TARGET_DEFAULT_RETURN.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target-delegates.c: Rebuild.
9440 * target.c (update_current_target): Don't inherit or default
9441 to_upload_tracepoints.
9442 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9443 TARGET_DEFAULT_RETURN.
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9447 * target-delegates.c: Rebuild.
9448 * target.c (update_current_target): Don't inherit or default
9450 * target.h (struct target_ops) <to_save_trace_data>: Use
9451 TARGET_DEFAULT_NORETURN.
9453 2014-02-19 Tom Tromey <tromey@redhat.com>
9455 * target-delegates.c: Rebuild.
9456 * target.c (update_current_target): Don't inherit or default
9457 to_get_trace_state_variable_value.
9458 * target.h (struct target_ops)
9459 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * target-delegates.c: Rebuild.
9464 * target.c (update_current_target): Don't inherit or default
9466 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target-delegates.c: Rebuild.
9471 * target.c (update_current_target): Don't inherit or default
9473 * target.h (struct target_ops) <to_trace_stop>: Use
9474 TARGET_DEFAULT_NORETURN.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target-delegates.c: Rebuild.
9479 * target.c (update_current_target): Don't inherit or default
9480 to_get_tracepoint_status.
9481 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9482 TARGET_DEFAULT_NORETURN.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * target-delegates.c: Rebuild.
9487 * target.c (update_current_target): Don't inherit or default
9488 to_get_trace_status.
9489 * target.h (struct target_ops) <to_get_trace_status>: Use
9490 TARGET_DEFAULT_RETURN.
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * target-delegates.c: Rebuild.
9495 * target.c (update_current_target): Don't inherit or default
9497 * target.h (struct target_ops) <to_trace_start>: Use
9498 TARGET_DEFAULT_NORETURN.
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9502 * target-delegates.c: Rebuild.
9503 * target.c (update_current_target): Don't inherit or default
9504 to_trace_set_readonly_regions.
9505 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9506 Use TARGET_DEFAULT_NORETURN.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target-delegates.c: Rebuild.
9511 * target.c (update_current_target): Don't inherit or default
9512 to_disable_tracepoint.
9513 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9514 TARGET_DEFAULT_NORETURN.
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9518 * target-delegates.c: Rebuild.
9519 * target.c (update_current_target): Don't inherit or default
9520 to_enable_tracepoint.
9521 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9522 TARGET_DEFAULT_NORETURN.
9524 2014-02-19 Tom Tromey <tromey@redhat.com>
9526 * target-delegates.c: Rebuild.
9527 * target.c (update_current_target): Don't inherit or default
9528 to_download_trace_state_variable.
9529 * target.h (struct target_ops) <to_download_trace_state_variable>:
9530 Use TARGET_DEFAULT_NORETURN.
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9534 * target-delegates.c: Rebuild.
9535 * target.c (update_current_target): Don't inherit or default
9536 to_can_download_tracepoint.
9537 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9538 TARGET_DEFAULT_RETURN.
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target-delegates.c: Rebuild.
9543 * target.c (update_current_target): Don't inherit or default
9544 to_download_tracepoint.
9545 * target.h (struct target_ops) <to_download_tracepoint>: Use
9546 TARGET_DEFAULT_NORETURN.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * target-delegates.c: Rebuild.
9551 * target.c (update_current_target): Don't inherit or default
9553 * target.h (struct target_ops) <to_trace_init>: Use
9554 TARGET_DEFAULT_RETURN.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target-delegates.c: Rebuild.
9559 * target.c (update_current_target): Don't inherit or default
9560 to_supports_string_tracing.
9561 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9562 TARGET_DEFAULT_RETURN.
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9566 * target-delegates.c: Rebuild.
9567 * target.c (update_current_target): Don't inherit or default
9568 to_supports_enable_disable_tracepoint.
9569 * target.h (struct target_ops)
9570 <to_supports_enable_disable_tracepoint>: Use
9571 TARGET_DEFAULT_RETURN.
9573 2014-02-19 Tom Tromey <tromey@redhat.com>
9575 * target-delegates.c: Rebuild.
9576 * target.c (update_current_target): Don't inherit or default
9577 to_supports_multi_process.
9578 * target.h (struct target_ops) <to_supports_multi_process>: Use
9579 TARGET_DEFAULT_RETURN.
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9583 * target-delegates.c: Rebuild.
9584 * target.c (update_current_target): Don't inherit or default
9585 to_get_ada_task_ptid.
9586 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9587 TARGET_DEFAULT_FUNC.
9589 2014-02-19 Tom Tromey <tromey@redhat.com>
9591 * target-delegates.c: Rebuild.
9592 * target.c (update_current_target): Don't inherit or default
9593 to_thread_architecture.
9594 * target.h (struct target_ops) <to_thread_architecture>: Use
9595 TARGET_DEFAULT_FUNC.
9597 2014-02-19 Tom Tromey <tromey@redhat.com>
9599 * target-delegates.c: Rebuild.
9600 * target.c (update_current_target): Don't inherit or default
9601 to_execution_direction.
9602 * target.h (struct target_ops) <to_execution_direction>: Use
9603 TARGET_DEFAULT_FUNC.
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9607 * target-delegates.c: Rebuild.
9608 * target.c (update_current_target): Don't inherit or default
9609 to_can_execute_reverse.
9610 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9611 TARGET_DEFAULT_RETURN.
9612 (target_can_execute_reverse): Unconditionally delegate.
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9616 * target-delegates.c: Rebuild.
9617 * target.c (update_current_target): Don't inherit or default
9619 (dummy_goto_bookmark): Remove.
9620 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9621 * target.h (struct target_ops) <to_goto_bookmark>: Use
9622 TARGET_DEFAULT_NORETURN.
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9626 * target-delegates.c: Rebuild.
9627 * target.c (update_current_target): Don't inherit or default
9629 (dummy_get_bookmark): Remove.
9630 (init_dummy_target): Don't inherit or default to_get_bookmark.
9631 * target.h (struct target_ops) <to_get_bookmark>: Use
9632 TARGET_DEFAULT_NORETURN
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9636 * target-delegates.c: Rebuild.
9637 * target.c (update_current_target): Don't inherit or default
9638 to_make_corefile_notes.
9639 (init_dummy_target): Don't initialize to_make_corefile_notes.
9640 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9641 TARGET_DEFAULT_FUNC.
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target-delegates.c: Rebuild.
9646 * target.c (update_current_target): Don't inherit or default
9647 to_find_memory_regions.
9648 (init_dummy_target): Don't initialize to_find_memory_regions.
9649 * target.h (struct target_ops) <to_find_memory_regions>: Use
9650 TARGET_DEFAULT_FUNC.
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9654 * target-delegates.c: Rebuild.
9655 * target.c (update_current_target): Don't inherit or default
9657 * target.h (struct target_ops) <to_log_command>: Use
9658 TARGET_DEFAULT_IGNORE.
9659 (target_log_command): Unconditionally delegate.
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9663 * target-delegates.c: Rebuild.
9664 * target.c (update_current_target): Don't inherit or default
9665 to_pid_to_exec_file.
9666 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9667 TARGET_DEFAULT_RETURN.
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9671 * target-delegates.c: Rebuild.
9672 * target.c (update_current_target): Don't inherit or default
9674 (target_thread_name): Unconditionally delegate.
9675 * target.h (struct target_ops) <to_thread_name>: Use
9676 TARGET_DEFAULT_RETURN.
9678 2014-02-19 Tom Tromey <tromey@redhat.com>
9680 * target-delegates.c: Rebuild.
9681 * target.c (update_current_target): Don't inherit or default
9682 to_extra_thread_info.
9683 * target.h (struct target_ops) <to_extra_thread_info>: Use
9684 TARGET_DEFAULT_RETURN.
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9688 * target-delegates.c: Rebuild.
9689 * target.c (update_current_target): Don't inherit or default
9691 * target.h (struct target_ops) <to_has_exited>: Use
9692 TARGET_DEFAULT_RETURN..
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9696 * target-delegates.c: Rebuild.
9697 * target.c (update_current_target): Don't inherit or default
9698 to_set_syscall_catchpoint.
9699 (return_one): Remove.
9700 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9701 TARGET_DEFAULT_RETURN.
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9705 * target-delegates.c: Rebuild.
9706 * target.c (update_current_target): Don't inherit or default
9707 to_insert_exec_catchpoint.
9708 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9709 TARGET_DEFAULT_RETURN.
9711 2014-01-08 Tom Tromey <tromey@redhat.com>
9713 * target-delegates.c: Rebuild.
9714 * target.c (update_current_target): Don't inherit or default
9715 to_insert_exec_catchpoint.
9716 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9717 TARGET_DEFAULT_RETURN.
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9721 * target-delegates.c: Rebuild.
9722 * target.c (update_current_target): Don't inherit or default
9723 to_remove_vfork_catchpoint.
9724 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9725 TARGET_DEFAULT_RETURN.
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9729 * target-delegates.c: Rebuild.
9730 * target.c (update_current_target): Don't inherit or default
9731 to_insert_vfork_catchpoint.
9732 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9733 TARGET_DEFAULT_RETURN.
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target-delegates.c: Rebuild.
9738 * target.c (update_current_target): Don't inherit or default
9739 to_remove_fork_catchpoint.
9740 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9741 TARGET_DEFAULT_RETURN.
9743 2014-02-19 Tom Tromey <tromey@redhat.com>
9745 * target-delegates.c: Rebuild.
9746 * target.c (update_current_target): Don't inherit or default
9747 to_insert_fork_catchpoint.
9748 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9749 TARGET_DEFAULT_RETURN.
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9753 * target-delegates.c: Rebuild.
9754 * target.c (update_current_target): Don't inherit or default
9755 to_post_startup_inferior.
9756 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9757 TARGET_DEFAULT_IGNORE.
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9761 * target-delegates.c: Rebuild.
9762 * target.c (update_current_target): Don't inherit or default
9764 * target.h (struct target_ops) <to_load>: Use
9765 TARGET_DEFAULT_NORETURN.
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9769 * target-delegates.c: Rebuild.
9770 * target.c (update_current_target): Don't inherit or default
9772 * target.h (struct target_ops) <to_terminal_info>: Use
9773 TARGET_DEFAULT_FUNC.
9775 2014-02-19 Tom Tromey <tromey@redhat.com>
9777 * target-delegates.c: Rebuild.
9778 * target.c (update_current_target): Don't inherit or default
9779 to_terminal_save_ours.
9780 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9781 TARGET_DEFAULT_IGNORE.
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9785 * target-delegates.c: Rebuild.
9786 * target.c (update_current_target): Don't inherit or default
9788 * target.h (struct target_ops) <to_terminal_ours>: Use
9789 TARGET_DEFAULT_IGNORE.
9791 2014-02-19 Tom Tromey <tromey@redhat.com>
9793 * target-delegates.c: Rebuild.
9794 * target.c (update_current_target): Don't inherit or default
9795 to_terminal_ours_for_output.
9796 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9797 TARGET_DEFAULT_IGNORE.
9799 2014-02-19 Tom Tromey <tromey@redhat.com>
9801 * target-delegates.c: Rebuild.
9802 * target.c (update_current_target): Don't inherit or default
9803 to_terminal_inferior.
9804 * target.h (struct target_ops) <to_terminal_inferior>: Use
9805 TARGET_DEFAULT_IGNORE.
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9809 * target-delegates.c: Rebuild.
9810 * target.c (update_current_target): Don't inherit or default
9812 * target.h (struct target_ops) <to_terminal_init>: Use
9813 TARGET_DEFAULT_IGNORE.
9815 2014-02-19 Tom Tromey <tromey@redhat.com>
9817 * target-delegates.c: Rebuild.
9818 * target.c (update_current_target): Don't inherit or default
9819 to_can_accel_watchpoint_condition.
9820 * target.h (struct target_ops)
9821 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9825 * target-delegates.c: Rebuild.
9826 * target.c (update_current_target): Don't inherit or default
9827 to_region_ok_for_hw_watchpoint.
9828 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9829 Use TARGET_DEFAULT_FUNC.
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9833 * target-delegates.c: Rebuild.
9834 * target.c (update_current_target): Don't inherit or default
9835 to_watchpoint_addr_within_range.
9836 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9837 Use TARGET_DEFAULT_FUNC.
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * target-delegates.c: Rebuild.
9842 * target.c (update_current_target): Don't inherit or default
9843 to_remove_watchpoint.
9844 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9845 TARGET_DEFAULT_NORETURN.
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target-delegates.c: Rebuild.
9850 * target.c (update_current_target): Don't inherit or default
9851 to_insert_watchpoint.
9852 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9853 TARGET_DEFAULT_RETURN.
9855 2014-02-19 Tom Tromey <tromey@redhat.com>
9857 * target-delegates.c: Rebuild.
9858 * target.c (update_current_target): Don't inherit or default
9859 to_remove_hw_breakpoint.
9860 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9861 TARGET_DEFAULT_RETURN.
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9865 * target-delegates.c: Rebuild.
9866 * target.c (update_current_target): Don't inherit or default
9867 to_insert_hw_breakpoint.
9868 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9869 TARGET_DEFAULT_RETURN.
9871 2014-02-19 Tom Tromey <tromey@redhat.com>
9873 * target-delegates.c: Rebuild.
9874 * target.c (update_current_target): Don't inherit or default
9875 to_can_use_hw_breakpoint.
9876 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9877 TARGET_DEFAULT_RETURN.
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * target-delegates.c: Rebuild.
9882 * target.c (update_current_target): Don't inherit or default
9884 * target.h (struct target_ops) <to_files_info>: Use
9885 TARGET_DEFAULT_IGNORE.
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9889 * target-delegates.c: Rebuild.
9890 * target.c (update_current_target): Don't inherit or default
9892 * target.h (struct target_ops) <to_store>: Use
9893 TARGET_DEFAULT_NORETURN.
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9897 * target-delegates.c: Rebuild.
9898 * target.c (update_current_target): Don't inherit or default
9900 * target.h (struct target_ops) <to_post_attach>: Use
9901 TARGET_DEFAULT_IGNORE.
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target-delegates.c: Rebuild.
9906 * target.c (update_current_target): Don't inherit or default
9908 (default_rcmd): New function.
9909 (do_monitor_command): Unconditionally delegate.
9910 * target.h (struct target_ops) <to_rmcd>: Use
9911 TARGET_DEFAULT_FUNC.
9913 2014-02-19 Tom Tromey <tromey@redhat.com>
9915 * target-delegates.c: Rebuild.
9916 * target.c (init_dummy_target): Don't initialize to_attach.
9917 (target_attach): Unconditionally delegate.
9918 * target.h (struct target_ops) <to_attach>: Use
9919 TARGET_DEFAULT_FUNC.
9921 2014-02-19 Tom Tromey <tromey@redhat.com>
9923 * target-delegates.c: Rebuild.
9924 * target.c (target_detach): Unconditionally delegate.
9925 (init_dummy_target): Don't initialize to_detach.
9926 * target.h (struct target_ops) <to_detach>: Use
9927 TARGET_DEFAULT_IGNORE.
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9931 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9933 (target_augmented_libraries_svr4_read): Add argument.
9934 * target.c (update_current_target): Update.
9935 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9940 * target.h (struct target_ops) <to_call_history_range>: Add
9942 * target.c (target_call_history_range): Add argument.
9943 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9945 (record_btrace_call_history_from): Update.
9947 2014-02-19 Tom Tromey <tromey@redhat.com>
9949 * target.h (struct target_ops) <to_call_history_from>: Add
9951 * target.c (target_call_history_from): Add argument.
9952 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9955 2014-02-19 Tom Tromey <tromey@redhat.com>
9957 * target.h (struct target_ops) <to_call_history>: Add argument.
9958 * target.c (target_call_history): Add argument.
9959 * record-btrace.c (record_btrace_call_history): Add 'self'
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9964 * target.h (struct target_ops) <to_insn_history_range>: Add
9966 * target.c (target_insn_history_range): Add argument.
9967 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9969 (record_btrace_insn_history_from): Update.
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9973 * target.h (struct target_ops) <to_insn_history_from>: Add
9975 * target.c (target_insn_history_from): Add argument.
9976 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target.h (struct target_ops) <to_insn_history>: Add argument.
9982 * target.c (target_insn_history): Add argument.
9983 * record-btrace.c (record_btrace_insn_history): Add 'self'
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target.h (struct target_ops) <to_goto_record>: Add argument.
9989 * target.c (target_goto_record): Add argument.
9990 * record-full.c (record_full_goto): Add 'self' argument.
9991 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9995 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9996 * target.c (target_goto_record_end): Add argument.
9997 * record-full.c (record_full_goto_end): Add 'self' argument.
9998 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10000 2014-02-19 Tom Tromey <tromey@redhat.com>
10002 * target.h (struct target_ops) <to_goto_record_begin>: Add
10004 * target.c (target_goto_record_begin): Add argument.
10005 * record-full.c (record_full_goto_begin): Add 'self' argument.
10006 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10011 * target.h (struct target_ops) <to_record_is_replaying>: Add
10013 * target.c (target_record_is_replaying): Add argument.
10014 * record-full.c (record_full_is_replaying): Add 'self' argument.
10015 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10017 (record_btrace_xfer_partial, record_btrace_store_registers)
10018 (record_btrace_prepare_to_store, record_btrace_resume)
10019 (record_btrace_wait, record_btrace_decr_pc_after_break)
10020 (record_btrace_find_new_threads, record_btrace_thread_alive):
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target.h (struct target_ops) <to_delete_record>: Add argument.
10026 * target.c (target_delete_record): Add argument.
10027 * record-full.c (record_full_delete): Add 'self' argument.
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10031 * target.h (struct target_ops) <to_save_record>: Add argument.
10032 * target.c (target_save_record): Add argument.
10033 * record-full.c (record_full_save): Add 'self' argument.
10034 (record_full_save): Add 'self' argument.
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10038 * target.h (struct target_ops) <to_info_record>: Add argument.
10039 * target.c (target_info_record): Add argument.
10040 * record.c (info_record_command): Add argument.
10041 * record-full.c (record_full_info): Add 'self' argument.
10042 * record-btrace.c (record_btrace_info): Add 'self' argument.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10047 * target.c (target_stop_recording): Add argument.
10048 * record.c (record_stop): Add argument.
10049 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10055 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10056 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10058 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10059 (_initialize_amd64_linux_nat): Use it.
10060 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10061 (_initialize_i386_linux_nat): Use it.
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10065 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10066 * target.c (target_teardown_btrace): Add argument.
10067 * remote.c (remote_teardown_btrace): Add 'self' argument.
10068 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10070 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10073 2014-02-19 Tom Tromey <tromey@redhat.com>
10075 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10076 * target.c (target_disable_btrace): Add argument.
10077 * remote.c (remote_disable_btrace): Add 'self' argument.
10078 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10080 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10083 2014-02-19 Tom Tromey <tromey@redhat.com>
10085 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10086 * target.c (target_enable_btrace): Add argument.
10087 * remote.c (remote_enable_btrace): Add 'self' argument.
10088 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10090 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10096 (target_can_use_agent): Add argument.
10097 * target.c (update_current_target): Update.
10098 * remote.c (remote_can_use_agent): Add 'self' argument.
10099 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10103 * target.h (struct target_ops) <to_use_agent>: Add argument.
10104 (target_use_agent): Add argument.
10105 * target.c (update_current_target): Update.
10106 * remote.c (remote_use_agent): Add 'self' argument.
10107 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10112 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10113 (target_traceframe_info): Add argument.
10114 * target.c (update_current_target): Update.
10115 * remote.c (remote_traceframe_info): Add 'self' argument.
10116 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * target.h (target_static_tracepoint_markers_by_strid): Add
10122 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10124 * target.c (update_current_target): Update.
10125 * remote.c (struct target_ops)
10126 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10127 * linux-nat.c (struct target_ops)
10128 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10132 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10134 (target_static_tracepoint_marker_at): Add argument.
10135 * target.c (update_current_target): Update.
10136 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10141 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10142 (target_set_permissions): Add argument.
10143 * target.c (update_current_target): Update.
10144 * remote.c (remote_set_permissions): Add 'self' argument.
10145 (remote_start_remote): Update.
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10149 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10150 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10151 (target_get_tib_address): Add argument.
10152 * target.c (update_current_target): Update.
10153 * remote.c (remote_get_tib_address): Add 'self' argument.
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10158 (target_set_trace_notes): Add argument.
10159 * target.c (update_current_target): Update.
10160 * remote.c (remote_set_trace_notes): Add 'self' argument.
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10164 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10166 (target_set_trace_buffer_size): Add argument.
10167 * target.c (update_current_target): Update.
10168 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10174 (target_set_circular_trace_buffer): Add argument.
10175 * target.c (update_current_target): Update.
10176 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10181 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10183 (target_set_disconnected_tracing): Add argument.
10184 * target.c (update_current_target): Update.
10185 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10187 2014-02-19 Tom Tromey <tromey@redhat.com>
10189 * target.h (struct target_ops)
10190 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10191 (target_get_min_fast_tracepoint_insn_len): Add argument.
10192 * target.c (update_current_target): Update.
10193 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10198 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10200 (target_get_raw_trace_data): Add argument.
10201 * target.c (update_current_target): Update.
10202 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10206 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10208 (target_upload_trace_state_variables): Add argument.
10209 * target.c (update_current_target): Update.
10210 * remote.c (remote_upload_trace_state_variables): Add 'self'
10212 (remote_start_remote): Update.
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10216 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10218 (target_upload_tracepoints): Add argument.
10219 * target.c (update_current_target): Update.
10220 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10221 (remote_start_remote): Update.
10223 2014-02-19 Tom Tromey <tromey@redhat.com>
10225 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10226 (target_save_trace_data): Add argument.
10227 * target.c (update_current_target): Update.
10228 * remote.c (remote_save_trace_data): Add 'self' argument.
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10232 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10234 * target.h (struct target_ops)
10235 <to_get_trace_state_variable_value>: Add argument.
10236 (target_get_trace_state_variable_value): Add argument.
10237 * target.c (update_current_target): Update.
10238 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10240 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10244 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10245 * target.h (struct target_ops) <to_trace_find>: Add argument.
10246 (target_trace_find): Add argument.
10247 * target.c (update_current_target): Update.
10248 * remote.c (remote_trace_find): Add 'self' argument.
10249 * ctf.c (ctf_trace_find): Add 'self' argument.
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10254 (target_trace_stop): Add argument.
10255 * target.c (update_current_target): Update.
10256 * remote.c (remote_trace_stop): Add 'self' argument.
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10260 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10261 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10263 (target_get_tracepoint_status): Add argument.
10264 * target.c (update_current_target): Update.
10265 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10270 * target.h (struct target_ops) <to_get_trace_status>: Add
10272 (target_get_trace_status): Add argument.
10273 * target.c (update_current_target): Update.
10274 * remote.c (remote_get_trace_status): Add 'self' argument.
10275 (remote_start_remote, remote_can_download_tracepoint): Update.
10276 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10280 * target.h (struct target_ops) <to_trace_start>: Add argument.
10281 (target_trace_start): Add argument.
10282 * target.c (update_current_target): Update.
10283 * remote.c (remote_trace_start): Add 'self' argument.
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10289 (target_trace_set_readonly_regions): Add argument.
10290 * target.c (update_current_target): Update.
10291 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10298 (target_disable_tracepoint): Add argument.
10299 * target.c (update_current_target): Update.
10300 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10304 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10306 (target_enable_tracepoint): Add argument.
10307 * target.c (update_current_target): Update.
10308 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10310 2014-02-19 Tom Tromey <tromey@redhat.com>
10312 * target.h (struct target_ops) <to_download_trace_state_variable>:
10314 (target_download_trace_state_variable): Add argument.
10315 * target.c (update_current_target): Update.
10316 * remote.c (remote_download_trace_state_variable): Add 'self'
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10323 (target_can_download_tracepoint): Add argument.
10324 * target.c (update_current_target): Update.
10325 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target.h (struct target_ops) <to_download_tracepoint>: Add
10331 (target_download_tracepoint): Add argument.
10332 * target.c (update_current_target): Update.
10333 * remote.c (remote_download_tracepoint): Add 'self' argument.
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10337 * target.h (struct target_ops) <to_trace_init>: Add argument.
10338 (target_trace_init): Add argument.
10339 * target.c (update_current_target): Update.
10340 * remote.c (remote_trace_init): Add 'self' argument.
10342 2014-02-19 Tom Tromey <tromey@redhat.com>
10344 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10345 * target.c (target_fileio_readlink): Add argument.
10346 * remote.c (remote_hostio_readlink): Add 'self' argument.
10347 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10352 * target.c (target_fileio_unlink): Add argument.
10353 * remote.c (remote_hostio_unlink): Add 'self' argument.
10354 (remote_file_delete): Update.
10355 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10360 * target.c (target_fileio_close): Add argument.
10361 * remote.c (remote_hostio_close): Add 'self' argument.
10362 (remote_hostio_close_cleanup): Update.
10363 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10365 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10369 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10370 * target.c (target_fileio_pread): Add argument.
10371 * remote.c (remote_hostio_pread): Add 'self' argument.
10372 (remote_bfd_iovec_pread, remote_file_get): Update.
10373 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10377 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10378 * target.c (target_fileio_pwrite): Add argument.
10379 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10380 (remote_file_put): Update.
10381 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10386 * target.c (target_fileio_open): Add argument.
10387 * remote.c (remote_hostio_open): Add 'self' argument.
10388 (remote_bfd_iovec_open): Add 'self' argument.
10389 (remote_file_put): Add 'self' argument.
10390 (remote_file_get): Add 'self' argument.
10391 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10395 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10397 (target_can_run_breakpoint_commands): Add argument.
10398 * target.c (update_current_target): Update.
10399 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10401 (remote_insert_breakpoint): Add 'self' argument.
10402 (remote_insert_hw_breakpoint): Add 'self' argument.
10403 (remote_can_run_breakpoint_commands): Add 'self' argument.
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10407 * target.h (struct target_ops)
10408 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10409 (target_supports_evaluation_of_breakpoint_conditions): Add
10411 * target.c (update_current_target): Update.
10412 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10414 (remote_insert_breakpoint): Add 'self' argument.
10415 (remote_insert_hw_breakpoint): Add 'self' argument.
10416 (remote_supports_cond_breakpoints): Add 'self' argument.
10418 2014-02-19 Tom Tromey <tromey@redhat.com>
10420 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10422 (target_supports_string_tracing): Add argument.
10423 * target.c (update_current_target): Update.
10424 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10426 2014-02-19 Tom Tromey <tromey@redhat.com>
10428 * target.h (struct target_ops)
10429 <to_supports_disable_randomization>: Add argument.
10430 * target.c (find_default_supports_disable_randomization): Add
10432 (target_supports_disable_randomization): Add argument.
10433 (find_default_supports_disable_randomization): Add 'self'
10435 * remote.c (extended_remote_supports_disable_randomization): Add
10437 (remote_supports_disable_randomization): Add 'self' argument.
10438 (extended_remote_create_inferior): Update.
10439 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10442 2014-02-19 Tom Tromey <tromey@redhat.com>
10444 * target.h (struct target_ops)
10445 <to_supports_enable_disable_tracepoint>: Add argument.
10446 (target_supports_enable_disable_tracepoint): Add argument.
10447 * target.c (update_current_target): Update.
10448 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target.h (struct target_ops) <to_supports_multi_process>: Add
10455 (target_supports_multi_process): Add argument.
10456 * target.c (update_current_target): Update.
10457 * remote.c (remote_supports_multi_process): Add 'self' argument.
10458 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10460 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10465 * target.h (struct target_ops) <to_execution_direction>: Add
10467 (target_execution_direction): Add argument.
10468 * target.c (default_execution_direction): Add 'self' argument.
10469 * record-full.c (record_full_execution_direction): Add 'self'
10472 2014-02-19 Tom Tromey <tromey@redhat.com>
10474 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10476 (target_can_execute_reverse): Add argument.
10477 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10478 * record-full.c (record_full_can_execute_reverse): Add 'self'
10480 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10485 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10486 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10488 (target_get_ada_task_ptid): Add argument.
10489 * target.c (update_current_target): Update.
10490 (default_get_ada_task_ptid): Add 'self' argument.
10491 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10492 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10493 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10495 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10497 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10499 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10501 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10502 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10507 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10508 (target_goto_bookmark): Add argument.
10509 * target.c (dummy_goto_bookmark): Add 'self' argument.
10510 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10512 2014-02-19 Tom Tromey <tromey@redhat.com>
10514 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10515 (target_get_bookmark): Add argument.
10516 * target.c (dummy_get_bookmark): Add 'self' argument.
10517 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10521 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10523 (target_make_corefile_notes): Add argument.
10524 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10525 * procfs.c (procfs_make_note_section): Add 'self' argument.
10526 (procfs_make_note_section): Add 'self' argument.
10527 (procfs_make_note_section): Add 'self' argument.
10528 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10530 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10531 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10532 * exec.c (exec_make_note_section): Add 'self' argument.
10533 (exec_make_note_section): Add 'self' argument.
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10537 * target.h (struct target_ops) <to_find_memory_regions>: Add
10539 (target_find_memory_regions): Add argument.
10540 * target.c (dummy_find_memory_regions): Add 'self' argument.
10541 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10542 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10543 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10544 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10545 * exec. (exec_do_find_memory_regions): New global.
10546 (exec_set_find_memory_regions): Rewrite.
10547 (exec_find_memory_regions): New function.
10548 (init_exec_ops): Use exec_find_memory_regions.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * target.h (struct target_ops) <to_supports_non_stop>: Add
10554 * target.c (find_default_supports_non_stop): Add argument.
10555 (target_supports_non_stop): Add argument.
10556 (find_default_supports_non_stop): Add 'self' argument.
10557 * remote.c (remote_supports_non_stop): Add 'self' argument.
10558 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10562 * target.h (struct target_ops) <to_log_command>: Add argument.
10563 (target_log_command): Add argument.
10564 * serial.h (serial_log_command): Add 'self' argument.
10565 * serial.c (serial_log_command): Add 'self' argument.
10567 2014-02-19 Tom Tromey <tromey@redhat.com>
10569 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10570 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10572 (target_pid_to_exec_file): Add argument.
10573 * target.c (debug_to_pid_to_exec_file): Add argument.
10574 (update_current_target): Update.
10575 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10576 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10577 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10578 (linux_handle_extended_wait): Update.
10579 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10580 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10581 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10582 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10586 * target.h (struct target_ops) <to_rcmd>: Add argument.
10587 (target_rcmd): Add argument.
10588 * target.c (debug_to_rcmd): Add argument.
10589 (update_current_target, do_monitor_command): Update.
10590 * remote.c (remote_rcmd): Add 'self' argument.
10591 * monitor.c (monitor_rcmd): Add 'self' argument.
10593 2014-02-19 Tom Tromey <tromey@redhat.com>
10595 * windows-nat.c (windows_stop): Add 'self' argument.
10596 * target.h (struct target_ops) <to_stop>: Add argument.
10597 * target.c (target_stop): Add argument.
10598 (debug_to_stop): Add argument.
10599 (update_current_target): Update.
10600 * remote.c (remote_stop): Add 'self' argument.
10601 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10602 (gdbsim_cntrl_c): Update.
10603 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10604 * procfs.c (procfs_stop): Add 'self' argument.
10605 * nto-procfs.c (procfs_stop): Add 'self' argument.
10606 * monitor.c (monitor_stop): Add 'self' argument.
10607 (monitor_open): Update.
10608 * linux-nat.c (linux_nat_stop): Add argument.
10609 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10610 * gnu-nat.c (gnu_stop): Add 'self' argument.
10611 * darwin-nat.c (darwin_stop): Add 'self' argument.
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10615 * target.h (struct target_ops) <to_thread_name>: Add argument.
10616 * target.c (target_thread_name): Add argument.
10617 (update_current_target): Update.
10618 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10620 2014-02-19 Tom Tromey <tromey@redhat.com>
10622 * target.h (struct target_ops) <to_extra_thread_info>: Add
10624 (target_extra_thread_info): Add argument.
10625 * target.c (update_current_target): Update.
10626 * remote.c (remote_threads_extra_info): Add 'self' argument.
10627 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10629 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10630 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10631 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10633 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10635 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10637 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10642 * target.h (struct target_ops) <to_program_signals>: Add argument.
10643 * target.c (target_program_signals): Add argument.
10644 * remote.c (remote_program_signals): Add 'self' argument.
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10649 * target.c (target_pass_signals): Add argument.
10650 * remote.c (remote_pass_signals): Add 'self' argument.
10651 (remote_start_remote): Update.
10652 * procfs.c (procfs_pass_signals): Add 'self' argument.
10653 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10654 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10655 (linux_nat_create_inferior, linux_nat_attach): Update.
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10659 * windows-nat.c (windows_can_run): Add 'self' argument.
10660 * target.h (struct target_ops) <to_can_run>: Add argument.
10661 (target_can_run): Add argument.
10662 * target.c (debug_to_can_run): Add argument.
10663 (update_current_target): Update.
10664 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10665 * inf-child.c (inf_child_can_run): Add 'self' argument.
10666 * go32-nat.c (go32_can_run): Add 'self' argument.
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10670 * target.h (struct target_ops) <to_has_exited>: Add argument.
10671 (target_has_exited): Add argument.
10672 * target.c (debug_to_has_exited): Add argument.
10673 (update_current_target): Update.
10675 2014-02-19 Tom Tromey <tromey@redhat.com>
10677 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10679 (target_set_syscall_catchpoint): Add argument.
10680 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10682 * target.c (update_current_target): Update.
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10686 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10688 (target_remove_exec_catchpoint): Add argument.
10689 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10690 (update_current_target): Update.
10691 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10696 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10698 (target_insert_exec_catchpoint): Add argument.
10699 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10700 (update_current_target): Update.
10701 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10708 (target_remove_vfork_catchpoint): Add argument.
10709 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10710 (update_current_target): Update.
10711 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10716 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10718 (target_insert_vfork_catchpoint): Add argument.
10719 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10720 (update_current_target): Update.
10721 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10724 2014-02-19 Tom Tromey <tromey@redhat.com>
10726 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10728 (target_remove_fork_catchpoint): Add argument.
10729 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10730 (update_current_target): Update.
10731 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10736 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10738 (target_insert_fork_catchpoint): Add argument.
10739 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10740 (update_current_target): Update.
10741 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10748 (target_post_startup_inferior): Add argument.
10749 * target.c (debug_to_post_startup_inferior): Add argument.
10750 (update_current_target): Update.
10751 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10753 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10755 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10757 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10759 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10761 (super_post_startup_inferior): Likewise.
10762 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10764 (super_post_startup_inferior): Likewise.
10765 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10766 Add 'self' argument.
10767 (super_post_startup_inferior): Likewise.
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10771 * target.h (struct target_ops) <to_load>: Add argument.
10772 * target.c (target_load): Add argument.
10773 (debug_to_load): Add argument.
10774 (update_current_target): Update.
10775 * remote.c (remote_load): Add 'self' argument.
10776 * remote-sim.c (gdbsim_load): Add 'self' argument.
10777 * remote-mips.c (mips_load): Add 'self' argument.
10778 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10779 * monitor.c (monitor_load): Add 'self' argument.
10780 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10784 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10785 (target_terminal_info): Add argument.
10786 * target.c (debug_to_terminal_info): Add argument.
10787 (default_terminal_info): Likewise.
10788 * inflow.c (child_terminal_info): Add 'self' argument.
10789 * inferior.h (child_terminal_info): Add 'self' argument.
10790 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10794 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10796 (target_terminal_save_ours): Add argument.
10797 * target.c (debug_to_terminal_save_ours): Add argument.
10798 (update_current_target): Update.
10799 * inflow.c (terminal_save_ours): Add 'self' argument.
10800 * inferior.h (terminal_save_ours): Add 'self' argument.
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10804 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10805 (target_terminal_ours): Add argument.
10806 * target.c (debug_to_terminal_ours): Add argument.
10807 (update_current_target): Update.
10808 * remote.c (remote_terminal_ours): Add 'self' argument.
10809 (remote_close): Update.
10810 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10811 * inflow.c (terminal_ours): Add 'self' argument.
10812 * inferior.h (terminal_ours): Add 'self' argument.
10813 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10815 2014-02-19 Pedro Alves <palves@redhat.com>
10816 Tom Tromey <tromey@redhat.com>
10818 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10820 (target_terminal_ours_for_output): Add argument.
10821 * target.c (debug_to_terminal_ours_for_output): Add argument.
10822 (update_current_target): Update.
10823 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10824 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10825 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10827 2014-02-19 Tom Tromey <tromey@redhat.com>
10829 * target.h (struct target_ops) <to_terminal_inferior>: Add
10831 * target.c (target_terminal_inferior): Add argument.
10832 (update_current_target): Update.
10833 * remote.c (remote_terminal_inferior): Add 'self' argument.
10834 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10835 * inflow.c (terminal_inferior): Add 'self' argument.
10836 * inferior.h (terminal_inferior): Add 'self' argument.
10837 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10838 (go32_terminal_inferior): Add 'self' argument.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10843 (target_terminal_init): Add argument.
10844 * target.c (debug_to_terminal_init): Add argument.
10845 (update_current_target): Update.
10846 * inflow.c (terminal_init_inferior): Add 'self' argument.
10847 * inferior.h (terminal_init_inferior): Add 'self' argument.
10848 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10849 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10851 2014-02-19 Tom Tromey <tromey@redhat.com>
10853 * target.h (struct target_ops)
10854 <to_can_accel_watchpoint_condition>: Add argument.
10855 (target_can_accel_watchpoint_condition): Add argument.
10856 * target.c (debug_to_can_accel_watchpoint_condition): Add
10858 (update_current_target): Update.
10859 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10864 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10866 (target_region_ok_for_hw_watchpoint): Add argument.
10867 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10868 (default_region_ok_for_hw_watchpoint): Add argument.
10869 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10870 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10872 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10874 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10876 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10878 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10880 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10882 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10883 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10885 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10886 Add 'self' argument.
10888 2014-02-19 Tom Tromey <tromey@redhat.com>
10890 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10892 (target_insert_watchpoint): Add argument.
10893 * target.c (debug_to_insert_watchpoint): Add argument.
10894 (update_current_target): Update.
10895 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10896 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10897 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10898 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10899 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10900 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10902 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10903 (procfs_insert_hw_watchpoint): Add 'self' argument.
10904 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10906 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10908 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10910 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10911 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10913 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10916 2014-02-19 Tom Tromey <tromey@redhat.com>
10918 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10920 (target_remove_watchpoint): Add argument.
10921 * target.c (debug_to_remove_watchpoint): Add argument.
10922 (update_current_target): Update.
10923 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10924 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10925 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10926 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10927 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10928 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10930 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10931 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10933 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10935 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10937 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10938 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10940 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10945 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10947 (target_remove_hw_breakpoint): Add argument.
10948 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10949 (update_current_target): Update.
10950 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10951 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10953 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10954 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10956 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10961 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10963 (target_insert_hw_breakpoint): Add argument.
10964 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10965 (update_current_target): Update.
10966 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10967 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10969 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10970 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10971 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10973 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10980 (target_can_use_hardware_watchpoint): Add argument.
10981 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10982 (update_current_target): Update.
10983 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10985 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10987 * remote.c (remote_check_watch_resources): Add 'self' argument.
10988 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10989 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10991 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10992 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10994 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10996 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10998 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11000 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11002 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11004 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11005 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11007 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target.h (struct target_ops) <to_post_attach>: Add argument.
11013 (target_post_attach): Add argument.
11014 * target.c (debug_to_post_attach): Add argument.
11015 (update_current_target): Update.
11016 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11017 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11018 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11019 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11020 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * windows-nat.c (windows_close): Add 'self' argument.
11025 * tracepoint.c (tfile_close): Add 'self' argument.
11026 * target.h (struct target_ops) <to_close>: Add argument.
11027 * target.c (target_close): Add argument.
11028 (update_current_target): Update.
11029 * remote.c (remote_close): Add 'self' argument.
11030 * remote-sim.c (gdbsim_close): Add 'self' argument.
11031 * remote-mips.c (mips_close): Add 'self' argument.
11032 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11033 * record-full.c (record_full_close): Add 'self' argument.
11034 * record-btrace.c (record_btrace_close): Add 'self' argument.
11035 * monitor.h (monitor_close): Add 'self' argument.
11036 * monitor.c (monitor_close): Add 'self' argument.
11037 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11038 * linux-nat.c (linux_nat_close): Add argument.
11039 * go32-nat.c (go32_close): Add 'self' argument.
11040 * exec.c (exec_close_1): Add 'self' argument.
11041 * ctf.c (ctf_close): Add 'self' argument.
11042 * corelow.c (core_close): Add 'self' argument.
11043 (core_close_cleanup): Update.
11044 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11045 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11049 * remote.c (remote_load): New function.
11050 (init_remote_ops): Use it.
11052 2014-02-19 Tom Tromey <tromey@redhat.com>
11054 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11056 * common/linux-btrace.h (linux_supports_btrace): Update.
11057 * remote.c (remote_supports_btrace): Add "self" argument.
11058 * target-delegates.c: Rebuild.
11059 * target.c (target_supports_btrace): Remove.
11060 * target.h (struct target_ops) <to_supports_btrace>: Add
11061 target_ops argument.
11062 (target_supports_btrace): New define.
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * record-full.c (record_full_beneath_to_resume_ops)
11067 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11068 (record_full_beneath_to_wait)
11069 (record_full_beneath_to_store_registers_ops)
11070 (record_full_beneath_to_store_registers)
11071 (record_full_beneath_to_xfer_partial_ops)
11072 (record_full_beneath_to_xfer_partial)
11073 (record_full_beneath_to_insert_breakpoint_ops)
11074 (record_full_beneath_to_insert_breakpoint)
11075 (record_full_beneath_to_remove_breakpoint_ops)
11076 (record_full_beneath_to_remove_breakpoint)
11077 (record_full_beneath_to_stopped_by_watchpoint)
11078 (record_full_beneath_to_stopped_data_address)
11079 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11080 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11081 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11082 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11083 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11084 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11085 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11086 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11087 (record_full_resume, record_full_wait_1)
11088 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11089 (record_full_store_registers, record_full_xfer_partial)
11090 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11091 (record_full_async, record_full_core_xfer_partial): Use target
11093 * target-delegates.c: Rebuild.
11094 * target.c (current_xfer_partial): Remove.
11095 (update_current_target): Do not INHERIT or de_fault
11096 to_insert_breakpoint, to_remove_breakpoint,
11097 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11098 to_is_async_p, to_async. Do not set to_xfer_partial field.
11099 (default_xfer_partial): Simplify.
11100 (current_xfer_partial): Remove.
11101 (target_wait, target_resume): Simplify.
11102 (find_default_can_async_p, find_default_is_async_p): Update.
11103 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11104 to_xfer_partial, to_stopped_by_watchpoint,
11105 to_stopped_data_address.
11106 (target_store_registers): Simplify.
11107 (forward_target_remove_breakpoint)
11108 (forward_target_insert_breakpoint): Remove.
11109 (target_remove_breakpoint, target_insert_breakpoint)
11110 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11111 * target.h (struct target_ops) <to_resume, to_wait,
11112 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11113 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11114 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11116 (forward_target_remove_breakpoint)
11117 (forward_target_insert_breakpoint): Remove.
11118 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11120 (record_btrace_insert_breakpoint): Delegate directly.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11125 * target-delegates.c: New file.
11126 * target.c: Include target-delegates.c.
11127 (init_dummy_target): Call install_dummy_methods.
11128 (complete_target_initialization): Call install_delegators.
11129 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11130 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11131 * make-target-delegates: New file.
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11135 * record.c (find_record_target): Use find_target_at.
11136 * target.c (find_target_at): New function.
11137 * target.h (find_target_at): Declare.
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11141 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11142 Add 'ops' argument.
11143 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11145 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11146 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11148 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11150 * linux-nat.c (save_sigtrap): Update.
11151 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11152 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11153 (linux_nat_close): Update.
11154 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11156 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11158 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11159 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11160 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11161 (tmp_to_async): Add 'ops' argument.
11162 (record_full_stopped_by_watchpoint, record_full_async)
11163 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11165 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11166 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11167 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11168 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11169 (remote_is_async_p, remote_async): Add 'ops' argument.
11170 (remote_stopped_data_address): Update.
11171 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11172 * target.c (update_current_target)
11173 (find_default_can_async_p, find_default_is_async_p): Update.
11174 (init_dummy_target): Update.
11175 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11176 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11177 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11178 (target_can_async_p, target_is_async_p, target_async)
11179 (target_stopped_by_watchpoint): Update.
11181 2014-02-19 Yao Qi <yao@codesourcery.com>
11184 * gdbarch.sh: Remove startup_gdbarch.
11185 * gdbarch.c: Regenerated.
11186 * gdbarch.h: Likewise.
11188 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11190 * rl78-tdep.c (rl78_g10_register_name): New function.
11191 (rl78_return_value): Add g10 support.
11192 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11195 2014-02-17 Doug Evans <xdje42@gmail.com>
11197 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11198 (SUBDIR_GUILE_SRCS): Ditto.
11199 (scm-gsmob.o): Ditto.
11201 2014-02-17 Yao Qi <yao@codesourcery.com>
11203 * gnu-nat.c (ILL_RPC): Declare defined function.
11205 2014-02-17 Yao Qi <yao@codesourcery.com>
11207 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11208 mach_msg_type_number_t.
11209 (gnu_write_inferior): Likewise.
11211 2014-02-17 Yao Qi <yao@codesourcery.com>
11213 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11215 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11216 (inf_validate_procs, inf_signal): Likewise.
11217 (S_exception_raise_request): Likewise.
11218 (do_mach_notify_dead_name): Likewise.
11219 (steal_exc_port): Likewise.
11220 (gnu_read_inferior): Change 'copy_count''s type to
11221 mach_msg_type_number_t.
11222 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11225 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11227 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11228 flag. Adjust all users; in particular...
11229 (gnu_wait): ..., don't decrement its value in here...
11230 (gnu_create_inferior): ..., and instead set the flag in here,
11231 around the startup_inferior call, and call that one with
11232 START_INFERIOR_TRAPS_EXPECTED.
11234 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11235 (ILL_RPC): ... new macro.
11236 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11237 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11238 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11239 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11240 functions with ILL_RPC macro.
11241 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11242 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11243 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11244 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11245 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11246 (S_proc_getlogin_reply, S_proc_getsid_reply)
11247 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11248 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11249 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11250 (S_proc_getnports_reply, S_proc_is_important_reply)
11251 (S_proc_get_code_reply): New stub functions, generated with
11254 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11255 collected the type check structures.
11257 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11259 2014-02-14 Doug Evans <dje@google.com>
11261 * target.c (target_write_partial): Fix result type.
11263 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11265 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11266 the proper offsets to access fpregset_t.
11268 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11270 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11271 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11272 * h8300-tdep.c (setmachinelist): Remove global.
11273 * hppa-tdep.c (hppa_sigtramp): Remove global.
11274 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11275 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11276 * ravenscar-thread.c (update_target_observer): Remove global.
11277 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11279 2014-02-12 Tom Tromey <tromey@redhat.com>
11281 * common/rsp-low.c: Update comments.
11282 * common/rsp-low.h: Update comments.
11284 2014-02-12 Tom Tromey <tromey@redhat.com>
11286 * common/rsp-low.c (convert_ascii_to_int): Remove.
11287 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11289 2014-02-12 Tom Tromey <tromey@redhat.com>
11291 * common/rsp-low.h (unhexify): Don't declare.
11292 * common/rsp-low.c (unhexify): Remove.
11294 2014-02-12 Tom Tromey <tromey@redhat.com>
11296 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11297 * common/rsp-low.c (convert_int_to_ascii): Remove.
11299 2014-02-12 Tom Tromey <tromey@redhat.com>
11301 * common/rsp-low.h (hexify): Don't declare.
11302 * common/rsp-low.c (hexify): Remove.
11304 2014-02-12 Tom Tromey <tromey@redhat.com>
11306 * common/rsp-low.c (hexify): Never take strlen of argument.
11308 2014-02-12 Tom Tromey <tromey@redhat.com>
11310 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11311 * remote.c (extended_remote_run, remote_rcmd)
11312 (remote_download_trace_state_variable, remote_save_trace_data)
11313 (remote_set_trace_notes): Update.
11314 * tracepoint.c (encode_source_string, tfile_write_status)
11315 (tfile_write_uploaded_tsv): Update.
11317 2014-02-12 Tom Tromey <tromey@redhat.com>
11319 * tracepoint.c: Include rsp-low.h.
11320 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11321 * remote.c: Include rsp-low.h.
11322 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11323 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11324 (remote_unescape_input): Move to common/rsp-low.c.
11325 * common/rsp-low.h: New file.
11326 * common/rsp-low.c: New file.
11327 * Makefile.in (SFILES): Add common/rsp-low.c.
11328 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11329 (COMMON_OBS): Add rsp-low.o.
11330 (rsp-low.o): New target.
11332 2014-02-12 Tom Tromey <tromey@redhat.com>
11334 * utils.h: Include print-utils.h.
11335 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11336 (int_string, core_addr_to_string, core_addr_to_string_nz)
11337 (hex_string, hex_string_custom): Don't declare.
11338 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11339 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11340 (hex_string_custom, int_string, core_addr_to_string)
11341 (core_addr_to_string_nz, host_address_to_string): Move to
11342 common/print-utils.c.
11343 * common/print-utils.h: New file.
11344 * common/print-utils.c: New file
11345 * Makefile.in (SFILES): Add common/print-utils.c.
11346 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11347 (COMMON_OBS): Add print-utils.o.
11348 (print-utils.o): New target.
11350 2014-02-12 Tom Tromey <tromey@redhat.com>
11352 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11354 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11356 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11358 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11360 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11361 if a PT_IO ptrace request returns sucessfully but indicates that 0
11362 bytes were transferred.
11364 2014-02-12 Pedro Alves <palves@redhat.com>
11365 Kevin Buettner <kevinb@redhat.com>
11367 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11368 TYPE_INSTANCE_FLAG_CODE_SPACE.
11370 2014-02-12 Pedro Alves <palves@redhat.com>
11372 * h8300-tdep.c (pseudo_from_raw_register)
11373 (raw_from_pseudo_register): New functions.
11374 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11377 2014-02-12 Pedro Alves <palves@redhat.com>
11379 * h8300-tdep.c (h8300_register_sim_regno): New function.
11380 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11381 gdbarch_register_sim_regno hook.
11383 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11385 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11387 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11389 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11391 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11393 * obsd-tdep.h (obsd_init_abi): New prototype.
11394 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11395 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11396 (obsd_init_abi): New functions.
11397 * i386obsd-tdep.c: Include "obsd-tdep.h".
11398 (i386obsd_init_abi): Call obsd_init_abi.
11399 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11400 (amd64obsd_init_abi): Call obsd_init_abi.
11401 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11402 obsd-tdep.c to gdb_target_obs.
11404 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11406 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11407 double float arguments to 16-byte in the argument slots.
11409 2014-02-11 Doug Evans <xdje42@gmail.com>
11411 * configure.ac: Don't crash if pkg-config is not found and guile
11412 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11414 * configure: Regenerate.
11416 2014-02-11 Yao Qi <yao@codesourcery.com>
11418 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11419 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11420 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11421 * gnu-nat.c (gnu_xfer_memory): Likewise.
11422 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11423 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11424 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11425 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11427 2014-02-11 Yao Qi <yao@codesourcery.com>
11429 * target.h (enum target_xfer_error): Rename to ...
11430 (enum target_xfer_status): ... it. New. All users updated.
11431 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11433 (TARGET_XFER_STATUS_ERROR_P): New macro.
11434 (target_xfer_error_to_string): Remove declaration.
11435 (target_xfer_status_to_string): Declare.
11436 (target_xfer_partial_ftype): Adjust it.
11437 (struct target_ops) <to_xfer_partial>: Return
11438 target_xfer_status. Add argument xfered_len. Update
11440 * target.c (target_xfer_error_to_string): Rename to ...
11441 (target_xfer_status_to_string): ... it. New. All callers
11443 (target_read_live_memory): Likewise. Call target_xfer_partial
11444 instead of target_read.
11445 (memory_xfer_live_readonly_partial): Return
11446 target_xfer_status. Add argument xfered_len.
11447 (raw_memory_xfer_partial): Likewise.
11448 (memory_xfer_partial_1): Likewise.
11449 (memory_xfer_partial): Likewise.
11450 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11451 properly. Update debug message.
11452 (default_xfer_partial, current_xfer_partial): Likewise.
11453 (target_write_partial): Likewise.
11454 (target_read_partial): Likewise. All callers updated.
11455 (read_whatever_is_readable): Likewise.
11456 (target_write_with_progress): Likewise.
11457 (target_read_alloc_1): Likewise.
11459 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11460 * auxv.c (procfs_xfer_auxv): Likewise.
11461 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11462 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11463 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11464 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11465 * corefile.c (read_memory): Adjust.
11466 * corelow.c (core_xfer_partial): Likewise.
11467 * ctf.c (ctf_xfer_partial): Likewise.
11468 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11470 (darwin_xfer_partial): Likewise.
11471 * exec.c (section_table_xfer_memory_partial): Likewise. All
11473 (exec_xfer_partial): Likewise.
11474 * exec.h (section_table_xfer_memory_partial): Update
11476 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11478 (gnu_xfer_partial): Likewise.
11479 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11480 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11481 (ia64_hpux_xfer_solib_got): Likewise.
11482 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11483 type of 'partial_len' to ULONGEST.
11484 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11485 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11486 (linux_nat_xfer_partial): Likewise.
11487 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11488 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11489 * monitor.c (monitor_xfer_memory): Likewise.
11490 (monitor_xfer_partial): Likewise.
11491 * procfs.c (procfs_xfer_partial): Likewise.
11492 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11493 * record-full.c (record_full_xfer_partial): Likewise.
11494 (record_full_core_xfer_partial): Likewise.
11495 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11496 (gdbsim_xfer_partial): Likewise.
11497 * remote.c (remote_write_bytes_aux): Likewise. All callers
11499 (remote_write_bytes, remote_read_bytes): Likewise. All
11501 (remote_flash_erase): Likewise. All callers updated.
11502 (remote_write_qxfer): Likewise. All callers updated.
11503 (remote_read_qxfer): Likewise. All callers updated.
11504 (remote_xfer_partial): Likewise.
11505 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11506 (rs6000_xfer_shared_libraries): Likewise.
11507 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11508 (sol_thread_xfer_partial): Likewise.
11509 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11510 (sparc_xfer_partial): Likewise.
11511 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11513 (spu_xfer_partial): Likewise.
11514 * spu-multiarch.c (spu_xfer_partial): Likewise.
11515 * tracepoint.c (tfile_xfer_partial): Likewise.
11516 * windows-nat.c (windows_xfer_memory): Likewise.
11517 (windows_xfer_shared_libraries): Likewise.
11518 (windows_xfer_partial): Likewise.
11519 * valprint.c: Replace 'target_xfer_error' with
11520 'target_xfer_status' in comments.
11522 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11524 Checked in by Joel Brobecker <brobecker@adacore.com>.
11525 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11527 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11529 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11530 function parameters.
11532 2014-02-10 Will Newton <will.newton@linaro.org>
11534 * elfread.c (elf_rel_plt_read): Look for a .got section if
11535 looking up .got.plt fails.
11536 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11537 on address passed to elf_gnu_ifunc_record_cache.
11538 (elf_gnu_ifunc_resolve_addr): Likewise.
11539 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11541 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11543 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11544 (X_RETTURN): New macro.
11545 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11547 * sparc64-tdep.c (sparc64_init_abi): Hook
11548 sparc_in_function_epilogue_p.
11550 2014-02-10 Gary Benson <gbenson@redhat.com>
11552 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11553 Rename name_matcher to symbol_matcher.
11555 2014-02-10 Gary Benson <gbenson@redhat.com>
11557 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11558 Use expand_symtabs_file_matcher_ftype and
11559 expand_symtabs_symbol_matcher_ftype.
11561 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11563 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11564 (struct ada_symbol_cache): New.
11565 (ada_free_symbol_cache): Forward declare.
11566 (struct ada_pspace_data): New.
11567 (ada_pspace_data_handle): New static global.
11568 (get_ada_pspace_data, ada_pspace_data_cleanup)
11569 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11570 (cache_space, cache): Delete, now folded inside struct
11572 (ada_get_symbol_cache): New function.
11573 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11575 (_initialize_ada_language): Remove initialization of cache_space.
11576 Move call to observer_attach_inferior_exit up, grouping it
11577 with the other observer registrations inside this function.
11578 Rename command to be more general. Add call to
11579 register_program_space_data_with_cleanup.
11581 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11583 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11584 ada_new_objfile_observer.
11585 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11586 (_initialize_tasks): Update uses of ada_new_objfile_observer
11587 and ada_tasks_normal_stop_observer.
11589 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11591 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11592 returned by the 'Length attribute to integer.
11594 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11596 * ada-lang.c (_initialize_ada_language): Initialize
11597 cache_space obstack.
11599 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11601 * ada-lang.c (HASH_SIZE): New macro.
11602 (struct cache_entry): New type.
11603 (cache_space, cache): New static globals.
11604 (ada_clear_symbol_cache, find_entry): New functions.
11605 (lookup_cached_symbol, cache_symbol): Implement.
11606 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11607 (_initialize_ada_language): Attach ada_new_objfile_observer
11608 and ada_free_objfile_observer.
11610 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11612 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11613 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11614 struct block * parameter.
11615 (ada_lookup_symbol_list_worker): Constify local variable "block".
11616 Remove cast which is no longer necessary.
11618 2014-02-10 Doug Evans <xdje42@gmail.com>
11620 Add Guile as an extension language.
11621 * NEWS: Mention Guile scripting.
11622 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11623 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11624 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11625 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11626 (CLIBS): Add GUILE_LIBS.
11627 (install-guile): New rule.
11628 (guile.o): New rule.
11629 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11630 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11631 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11632 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11633 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11634 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11635 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11636 * configure.ac: New option --with-guile.
11637 * configure: Regenerate.
11638 * config.in: Regenerate.
11639 * auto-load.c: Remove #include "python/python.h". Add #include
11640 "gdb/section-scripts.h".
11641 (source_section_scripts): Handle Guile scripts.
11642 (_initialize_auto_load): Add name of Guile objfile script to
11643 scripts-directory help text.
11644 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11645 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11646 (struct breakpoint): New member scm_bp_object.
11647 * defs.h (enum command_control_type): New value guile_control.
11648 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11650 (show_user): Update comment.
11651 (_initialize_cli_cmds): Update help text for "show user". Update help
11652 text for max-user-call-depth.
11653 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11655 (multi_line_command_p): Add guile_control.
11656 (print_command_lines): Handle guile_control.
11657 (execute_control_command, recurse_read_control_structure): Ditto.
11658 (process_next_line): Recognize "guile" commands.
11659 * disasm.c (gdb_disassemble_info): Make non-static.
11660 * disasm.h: #include "dis-asm.h".
11661 (struct gdbarch): Add forward decl.
11662 (gdb_disassemble_info): Declare.
11663 * extension.c: #include "guile/guile.h".
11664 (extension_languages): Add guile.
11665 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11666 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11667 * gdbtypes.c (get_unsigned_type_max): New function.
11668 (get_signed_type_minmax): New function.
11669 * gdbtypes.h (get_unsigned_type_max): Declare.
11670 (get_signed_type_minmax): Declare.
11671 * guile/README: New file.
11672 * guile/guile-internal.h: New file.
11673 * guile/guile.c: New file.
11674 * guile/guile.h: New file.
11675 * guile/scm-arch.c: New file.
11676 * guile/scm-auto-load.c: New file.
11677 * guile/scm-block.c: New file.
11678 * guile/scm-breakpoint.c: New file.
11679 * guile/scm-disasm.c: New file.
11680 * guile/scm-exception.c: New file.
11681 * guile/scm-frame.c: New file.
11682 * guile/scm-gsmob.c: New file.
11683 * guile/scm-iterator.c: New file.
11684 * guile/scm-lazy-string.c: New file.
11685 * guile/scm-math.c: New file.
11686 * guile/scm-objfile.c: New file.
11687 * guile/scm-ports.c: New file.
11688 * guile/scm-pretty-print.c: New file.
11689 * guile/scm-safe-call.c: New file.
11690 * guile/scm-string.c: New file.
11691 * guile/scm-symbol.c: New file.
11692 * guile/scm-symtab.c: New file.
11693 * guile/scm-type.c: New file.
11694 * guile/scm-utils.c: New file.
11695 * guile/scm-value.c: New file.
11696 * guile/lib/gdb.scm: New file.
11697 * guile/lib/gdb/boot.scm: New file.
11698 * guile/lib/gdb/experimental.scm: New file.
11699 * guile/lib/gdb/init.scm: New file.
11700 * guile/lib/gdb/iterator.scm: New file.
11701 * guile/lib/gdb/printing.scm: New file.
11702 * guile/lib/gdb/types.scm: New file.
11703 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11704 (VPATH): Add $(GUILE_SRCDIR).
11705 (GUILE_DIR): New variable.
11706 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11707 (all): Add stamp-guile dependency.
11708 (stamp-guile): New rule.
11709 (clean-guile, install-guile, uninstall-guile): New rules.
11710 (install-only): Add install-guile dependency.
11711 (uninstall): Add uninstall-guile dependency.
11712 (clean): Add clean-guile dependency.
11714 2014-02-09 Doug Evans <xdje42@gmail.com>
11716 Revert this patch (which I approved, mea culpa).
11718 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11720 * Makefile.in (all-lib): Remove.
11721 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11723 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11725 Fix Python stack corruption.
11726 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11729 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11731 * Makefile.in (all-lib): Remove.
11732 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11734 2014-02-07 Doug Evans <dje@google.com>
11736 * extension-priv.h (extension_language_script_ops): Add comment.
11737 (extension_language_ops): Add comment.
11738 (active_ext_lang_state): Fix typo in comment.
11740 2014-02-07 Pedro Alves <palves@redhat.com>
11742 PR breakpoints/16292
11743 * infrun.c (handle_signal_stop) <signal arrives while stepping
11744 over a breakpoint>: Switch back to the stepping thread.
11746 2014-02-07 Yao Qi <yao@codesourcery.com>
11748 * target.c (target_xfer_partial): Return zero if LEN is zero.
11750 2014-02-07 Yao Qi <yao@codesourcery.com>
11752 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11753 (ld_so_xfer_auxv): Likewise.
11754 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11755 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11756 * corelow.c (core_xfer_partial): Likewise.
11757 * ctf.c (ctf_xfer_partial): Likewise.
11758 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11759 (darwin_xfer_partial): Likewise.
11760 * exec.c (exec_xfer_partial): Likewise.
11761 * gnu-nat.c (gnu_xfer_partial): Likewise.
11762 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11763 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11764 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11765 * linux-nat.c (linux_xfer_siginfo): Likewise.
11766 (linux_proc_xfer_spu): Likewise.
11767 * procfs.c (procfs_xfer_partial): Likewise.
11768 * record-full.c (record_full_xfer_partial): Likewise.
11769 (record_full_core_xfer_partial): Likewise.
11770 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11771 * remote.c (remote_write_qxfer): Likewise.
11772 (remote_write_qxfer, remote_read_qxfer): Likewise.
11773 (remote_xfer_partial): Likewise.
11774 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11775 (rs6000_xfer_shared_libraries): Likewise.
11776 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11777 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11778 (spu_xfer_partial): Likewise.
11779 * target.c (memory_xfer_partial_1): Likewise.
11780 * tracepoint.c (tfile_xfer_partial): Likewise.
11781 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11782 (windows_xfer_partial): Likewise.
11784 2014-02-07 Yao Qi <yao@codesourcery.com>
11786 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11788 (core_xfer_shared_libraries_aix): Likewise.
11789 * gdbarch.c, gdbarch.h: Regenerated.
11790 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11791 ULONGEST. Change 'len_avail' type to ULONGEST.
11792 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11793 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11795 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11797 2014-02-07 Yao Qi <yao@codesourcery.com>
11799 * corefile.c (memory_error): Get 'exception' from ERR and pass
11800 'exception' to throw_error.
11802 2014-02-06 Doug Evans <xdje42@gmail.com>
11804 * configure.ac (libpython checking): Remove all but python.o from
11805 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11806 * configure: Regenerate.
11808 * Makefile.in (SFILES): Add extension.c.
11809 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11810 (COMMON_OBS): Add extension.o.
11811 * extension.h: New file.
11812 * extension-priv.h: New file.
11813 * extension.c: New file.
11815 * python/python-internal.h: #include "extension.h".
11816 (gdbpy_auto_load_enabled): Declare.
11817 (gdbpy_apply_val_pretty_printer): Declare.
11818 (gdbpy_apply_frame_filter): Declare.
11819 (gdbpy_preserve_values): Declare.
11820 (gdbpy_breakpoint_cond_says_stop): Declare.
11821 (gdbpy_breakpoint_has_cond): Declare.
11822 (void source_python_script_for_objfile): Delete.
11823 * python/python.c: #include "extension-priv.h".
11824 Delete inclusion of "observer.h".
11825 (extension_language_python): Moved here and renamed from
11826 script_language_python in py-auto-load.c.
11827 Redefined to be of type extension_language_defn.
11828 (python_extension_script_ops): New global.
11829 (python_extension_ops): New global.
11830 (struct python_env): New member previous_active.
11831 (restore_python_env): Call restore_active_ext_lang.
11832 (ensure_python_env): Call set_active_ext_lang.
11833 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11835 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11837 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11839 (gdbpy_eval_from_control_command): Renamed from
11840 eval_python_from_control_command, made static. New arg extlang.
11841 (gdbpy_source_script) Renamed from source_python_script, made static.
11843 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11844 result to int. New arg extlang.
11845 (gdbpy_source_objfile_script): Renamed from
11846 source_python_script_for_objfile, made static. New arg extlang.
11847 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11848 static. New args extlang, extlang_printers. Change result type to
11850 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11851 static. New arg extlang. Rename arg printers to extlang_printers
11852 and change type to ext_lang_type_printers *.
11853 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11854 static. Replace argument arg with extlang, extlang_printers.
11855 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11856 (!HAVE_PYTHON, source_python_script): Delete.
11857 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11858 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11859 (!HAVE_PYTHON, start_type_printers): Delete.
11860 (!HAVE_PYTHON, apply_type_printers): Delete.
11861 (!HAVE_PYTHON, free_type_printers): Delete.
11862 (_initialize_python): Delete call to observer_attach_before_prompt.
11863 (finalize_python): Set/restore active extension language.
11864 (gdbpy_finish_initialization) Renamed from
11865 finish_python_initialization, made static. New arg extlang.
11866 (gdbpy_initialized): New function.
11867 * python/python.h: #include "extension.h". Delete #include
11868 "value.h", "mi/mi-cmds.h".
11869 (extension_language_python): Declare.
11870 (GDBPY_AUTO_FILE_NAME): Delete.
11871 (enum py_bt_status): Moved to extension.h and renamed to
11872 ext_lang_bt_status.
11873 (enum frame_filter_flags): Moved to extension.h.
11874 (enum py_frame_args): Moved to extension.h and renamed to
11875 ext_lang_frame_args.
11876 (finish_python_initialization): Delete.
11877 (eval_python_from_control_command): Delete.
11878 (source_python_script): Delete.
11879 (apply_val_pretty_printer): Delete.
11880 (apply_frame_filter): Delete.
11881 (preserve_python_values): Delete.
11882 (gdbpy_script_language_defn): Delete.
11883 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11884 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11886 * auto-load.c: #include "extension.h".
11887 (GDB_AUTO_FILE_NAME): Delete.
11888 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11889 (script_language_gdb): Delete, moved to extension.c and renamed to
11890 extension_language_gdb.
11891 (source_gdb_script_for_objfile): Delete.
11892 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11893 (loaded_script): Change type of language member to
11894 struct extension_language_defn *.
11895 (init_loaded_scripts_info): Initialize
11896 unsupported_script_warning_printed.
11897 (maybe_add_script): Make static. Change type of language arg to
11898 struct extension_language_defn *.
11899 (clear_section_scripts): Reset unsupported_script_warning_printed.
11900 (auto_load_objfile_script_1): Rewrite to use extension language API.
11901 (auto_load_objfile_script): Make public. Remove support-compiled-in
11902 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11903 (source_section_scripts): Rewrite to use extension language API.
11904 (load_auto_scripts_for_objfile): Rewrite to use
11905 auto_load_scripts_for_objfile.
11906 (collect_matching_scripts_data): Change type of language member to
11907 struct extension_language_defn *.
11908 (auto_load_info_scripts): Change type of language arg to
11909 struct extension_language_defn *.
11910 (unsupported_script_warning_print): New function.
11911 (script_not_found_warning_print): Make static.
11912 (_initialize_auto_load): Rewrite construction of scripts-directory
11914 * auto-load.h (struct objfile): Add forward decl.
11915 (struct script_language): Delete.
11916 (struct auto_load_pspace_info): Add forward decl.
11917 (struct extension_language_defn): Add forward decl.
11918 (maybe_add_script): Delete.
11919 (auto_load_objfile_script): Declare.
11920 (script_not_found_warning_print): Delete.
11921 (auto_load_info_scripts): Update prototype.
11922 (auto_load_gdb_scripts_enabled): Declare.
11923 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11924 auto_load_python_scripts_enabled and made public.
11925 (script_language_python): Delete, moved to python.c.
11926 (gdbpy_script_language_defn): Delete.
11927 (info_auto_load_python_scripts): Update to use
11928 extension_language_python.
11930 * breakpoint.c (condition_command): Replace call to
11931 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11932 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11933 with call to breakpoint_ext_lang_cond_says_stop.
11934 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11935 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11936 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11937 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11939 (local_setattro): Print name of extension language with existing
11942 * valprint.c (val_print, value_print): Update to call
11943 apply_ext_lang_val_pretty_printer.
11944 * cp-valprint.c (cp_print_value): Update call to
11945 apply_ext_lang_val_pretty_printer.
11946 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11947 (gdbpy_apply_val_pretty_printer): Renamed from
11948 apply_val_pretty_printer. New arg extlang.
11949 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11951 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11952 extension language API.
11953 * cli/cli-script.c (execute_control_command): Update to call
11954 eval_ext_lang_from_control_command.
11956 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11957 enum ext_lang_bt_status values. Update call to
11958 apply_ext_lang_frame_filter.
11959 (mi_cmd_stack_list_locals): Ditto.
11960 (mi_cmd_stack_list_args): Ditto.
11961 (mi_cmd_stack_list_variables): Ditto.
11962 * mi/mi-main.c: Delete #include "python/python-internal.h".
11963 Add #include "extension.h".
11964 (mi_cmd_list_features): Replace reference to python internal variable
11965 gdb_python_initialized with call to ext_lang_initialized_p.
11967 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11968 Update to use enum ext_lang_frame_args. Update to call
11969 apply_ext_lang_frame_filter.
11970 * python/py-framefilter.c (extract_sym): Update to use enum
11971 ext_lang_bt_status.
11972 (extract_value, py_print_type, py_print_value): Ditto.
11973 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11974 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11975 (py_print_frame): Ditto.
11976 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11977 New arg extlang. Update to use enum ext_lang_bt_status.
11979 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11980 finish_python_initialization. Replace with call to
11981 finish_ext_lang_initialization.
11983 * typeprint.c (do_free_global_table): Update to call
11984 free_ext_lang_type_printers.
11985 (create_global_typedef_table): Update to call
11986 start_ext_lang_type_printers.
11987 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11988 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11989 (type_print_options): Change type of global_printers from "void *"
11990 to "struct ext_lang_type_printers *".
11992 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11993 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11994 (gdbpy_preserve_values): Renamed from preserve_python_values.
11996 (!HAVE_PYTHON, preserve_python_values): Delete.
11998 * utils.c (quit_flag): Delete, moved to extension.c.
11999 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12002 * eval.c: Delete #include "python/python.h".
12003 * main.c: Delete #include "python/python.h".
12005 * defs.h: Update comment.
12007 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12011 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12013 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12016 2014-02-05 Yao Qi <yao@codesourcery.com>
12018 * remote.c (remote_pass_signals): Remove local 'buf' and use
12020 (remote_program_signals): Likewise.
12022 2014-02-05 Yao Qi <yao@codesourcery.com>
12024 * ctf.c: Include "inferior.h" and "gdbthread.h".
12025 (CTF_PID): A new macro.
12026 (ctf_open): Call inferior_appeared and add_thread_silent.
12027 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12028 (ctf_thread_alive): New function.
12029 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12031 2014-02-05 Yao Qi <yao@codesourcery.com>
12035 2013-05-24 Yao Qi <yao@codesourcery.com>
12037 * tracepoint.c (TFILE_PID): Remove.
12038 (tfile_open): Don't add thread and inferior.
12039 (tfile_close): Don't set 'inferior_ptid'. Don't call
12040 exit_inferior_silent.
12041 (tfile_thread_alive): Remove.
12042 (init_tfile_ops): Don't set field 'to_thread_alive' of
12045 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12047 * remote.c (remote_start_remote): Call remote_check_symbols even
12048 if only symbol-file (not file) has been given.
12050 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12052 * gdbarch.sh (skip_entrypoint): New callback.
12053 * gdbarch.c, gdbarch.h: Regenerate.
12054 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12055 * infrun.c (fill_in_stop_func): Likewise.
12056 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12057 (ppc_elfv2_elf_make_msymbol_special): New function.
12058 (ppc_elfv2_skip_entrypoint): Likewise.
12059 (ppc_linux_init_abi): Install them for ELFv2.
12061 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12063 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12064 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12065 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12066 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12067 structures returned in GPRs.
12069 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12071 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12072 offset to the stack parameter list for the ELFv2 ABI.
12074 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12076 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12077 set_gdbarch_convert_from_func_ptr_addr and
12078 set_gdbarch_elf_make_msymbol_special for ELFv1.
12079 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12080 function descriptors on ELFv1.
12081 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12082 set up r12 at function entry.
12084 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12086 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12087 (struct gdbarch_tdep): New member elf_abi.
12089 * rs6000-tdep.c: Include "elf/ppc64.h".
12090 (rs6000_gdbarch_init): Detect ELF ABI version.
12092 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12094 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12095 within a register pair holding a DFP 128-bit value on little-endian.
12096 (ppc64_sysv_abi_return_value_base): Likewise.
12097 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12098 (dfp_pseudo_register_write): Likewise.
12100 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12102 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12103 offset on little-endian when passing _Decimal32.
12104 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12106 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12108 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12109 of the overlapped FP register within the VSX register on little-
12111 (efpr_pseudo_register_write): Likewise.
12113 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12115 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12116 offset on little-endian when passing small structures.
12118 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12120 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12121 (struct ppc64_sysv_argpos): New data structure.
12122 (ppc64_sysv_abi_push_float): Remove.
12123 (ppc64_sysv_abi_push_val): New function.
12124 (ppc64_sysv_abi_push_integer): Likewise.
12125 (ppc64_sysv_abi_push_freg): Likewise.
12126 (ppc64_sysv_abi_push_vreg): Likewise.
12127 (ppc64_sysv_abi_push_param): Likewise.
12128 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12129 (ppc64_sysv_abi_return_value_base): New function.
12130 (ppc64_sysv_abi_return_value): Refactor to use it.
12132 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12134 * NEWS: Document new target powerpc64le-*-linux*.
12136 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12138 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12139 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12141 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12142 register set used in ELF core dumps. Add floating-point register set.
12144 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12146 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12147 dwarf2_to_gdb[] table using symbolic constants. Adjust
12148 penultimate entry from number representing the PC register
12149 to symbolic constant representing the MDR register. Add
12150 constant for the PC register to the end of the table.
12152 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12154 * bsd-kvm.c: Include <sys/param.h>
12156 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12158 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12160 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12162 * ada-lang.h (clear_ada_sym_cache): Delete.
12164 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12166 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12168 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12170 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12171 the sigreturn register save area only if the syscall is
12174 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12176 * valops.c (value_slice): Minor reformatting.
12178 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12180 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12182 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12184 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12185 New static globals.
12186 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12187 (ada_ignore_descriptive_types_p): New static global.
12188 (find_parallel_type_by_descriptive_type): Return immediately
12189 if ada_ignore_descriptive_types_p is set.
12190 (_initialize_ada_language): Register new commands "maintenance
12191 set ada", "maintenance show ada", "maintenance set ada
12192 ignore-descriptive-types" and "maintenance show ada
12193 ignore-descriptive-types".
12194 * NEWS: Add entry for new "maint ada set/show
12195 ignore-descriptive-types" commands.
12197 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12199 * record-btrace.c (record_btrace_close): Call btrace_teardown
12202 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12204 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12207 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12209 * ada-typeprint (type_is_full_subrange_of_target_type):
12211 (print_range): Add parameter bounds_prefered_p. If not set,
12212 try printing range types using the name of their base type.
12213 (print_range_type): Add parameter bounds_prefered_p.
12214 Use it in call to print_range.
12215 (print_array_type, ada_print_type): Update calls to print_range
12216 and print_range_type.
12218 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12220 * ada-typeprint.c (print_array_type, print_choices, print_range)
12221 (print_range_bound, print_dynamic_range_bound, print_range_type):
12222 Remove declaration.
12224 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12226 * ada-typeprint.c (print_range): Add missing empty line
12227 after local declaration.
12229 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12231 * ada-valprint.c (print_optional_low_bound): Get index_type's
12232 target type for as long as it is a TYPE_CODE_RANGE.
12234 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12236 * procfs.c (procfs_make_note_section): Remove assertion and
12237 associated comment.
12239 2014-01-24 Yao Qi <yao@codesourcery.com>
12241 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12242 * corelow.c (get_core_siginfo): Likewise.
12244 2014-01-24 Yao Qi <yao@codesourcery.com>
12246 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12247 ULONGEST. Don't check 'len' is negative.
12248 (remote_write_bytes): Change type of 'len' to ULONGEST.
12250 2014-01-23 Tom Tromey <tromey@redhat.com>
12253 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12254 Handle exception from frame.block.
12255 (FrameVars.fetch_frame_locals): Likewise.
12257 2014-01-23 Tom Tromey <tromey@redhat.com>
12260 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12261 on a NULL pointer. Move "goto error" to correct place.
12263 2014-01-23 Tom Tromey <tromey@redhat.com>
12266 * python/py-framefilter.c (apply_frame_filter): Call
12267 ensure_python_env after computing gdbarch.
12269 2014-01-23 Yao Qi <yao@codesourcery.com>
12271 * target.c (raw_memory_xfer_partial): Change argument type
12272 from void * to gdb_byte *.
12273 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12275 2014-01-22 Doug Evans <dje@google.com>
12277 New gdbserver option --debug-format=timestamp.
12278 * NEWS: Mention it.
12280 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12282 * syscalls/s390x-linux.xml: New file.
12283 * syscalls/s390-linux.xml: New file.
12284 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12285 (XML_SYSCALL_FILENAME_S390X): Likewise.
12286 (op_svc): New enum value for SVC opcode.
12287 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12288 (s390_linux_get_syscall_number): New function.
12289 (s390_gdbarch_init): Register '*get_syscall_number' and the
12290 syscall xml file name.
12291 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12292 "s390-linux.xml" and "s390x-linux.xml".
12293 * NEWS: Announce new feature.
12295 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12297 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12299 2014-01-22 Pedro Alves <palves@redhat.com>
12301 * xtensa-config.c: Include defs.h.
12303 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12305 * common/common-utils.h: Add "ARI:" comment beside __func__
12308 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12310 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12311 documentation a bit.
12313 2014-01-21 Roland McGrath <mcgrathr@google.com>
12315 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12316 * configure: Regenerate.
12317 * aclocal.m4: Regenerate.
12318 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12319 New substituted variables.
12320 (install-strip): New target.
12321 (INSTALL_SCRIPT): New substituted variable.
12322 (FLAGS_TO_PASS): Add it.
12323 (install-only): Use $(INSTALL_SCRIPT) rather than
12324 $(INSTALL_PROGRAM) for gcore.
12326 2014-01-20 Tom Tromey <tromey@redhat.com>
12328 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12331 2014-01-20 Tom Tromey <tromey@redhat.com>
12333 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12334 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12335 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12336 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12337 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12338 (struct cmd_list_element) <flags>: Remove.
12339 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12340 doc_allocated>: New fields.
12341 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12343 * maint.c (maintenance_do_deprecate): Update.
12344 * top.c (execute_command): Update.
12346 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12348 * xtensa-linux-nat.c: Include asm/ptrace.h.
12350 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12352 * Makefile.in (SFILES): Add d-support.c.
12353 (COMMON_OBS): Add d-support.o.
12354 * d-lang.h (d_parse_symbol): Add comment, now defined in
12356 * d-lang.c (parse_call_convention)
12357 (parse_attributes, parse_function_types)
12358 (parse_function_args, parse_type, parse_identifier)
12359 (call_convention_p, d_parse_symbol): Move functions to ...
12360 * d-support.c: ... New file.
12362 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12364 * d-lang.h (d_parse_symbol): Add declaration.
12365 * d-lang.c (extract_identifiers)
12366 (extract_type_info): Remove functions.
12367 (parse_call_convention, parse_attributes)
12368 (parse_function_types, parse_function_args)
12369 (parse_type, parse_identifier, call_convention_p)
12370 (d_parse_symbol): New functions.
12371 (d_demangle): Use d_parse_symbol to demangle D symbols.
12373 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12375 * d-lang.h (struct builtin_d_type): New data type.
12376 (builtin_d_type): Add declaration.
12377 * d-lang.c (d_language_arch_info, build_d_types)
12378 (builtin_d_type): New functions.
12379 (enum d_primitive_types): New data type.
12380 (d_language_defn): Change c_language_arch_info to
12381 d_language_arch_info.
12382 (d_type_data): New static variable.
12383 (_initialize_d_language): Initialize d_type_data.
12385 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12387 * d-lang.h (d_main_name): Add declaration.
12388 * d-lang.c (d_main_name): New function.
12389 * symtab.c (find_main_name): Add call to d_main_name.
12391 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12393 * d-lang.c (d_language_defn): Change macro_expansion_c to
12394 macro_expansion_no.
12396 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12398 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12400 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12402 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12403 gdb_exception" declaration.
12404 * remote.c (getpkt_or_notif_sane): Likewise.
12406 2014-01-17 Doug Evans <dje@google.com>
12408 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12409 function, contents of dirnames_to_char_ptr_vec_append moved here.
12410 (delim_string_to_char_ptr_vec): New function.
12411 (dirnames_to_char_ptr_vec_append): Rewrite.
12412 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12414 2014-01-17 Doug Evans <dje@google.com>
12416 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12418 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12419 #include "common-utils.h".
12420 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12421 * common/vec.h (VEC_ASSERT_PASS): Update.
12422 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12423 (MACH_CHECK_ERROR): Update.
12425 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12427 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12429 * gdbarch.h: Regenerate.
12431 2014-01-16 Tom Tromey <tromey@redhat.com>
12433 * value.c (struct value) <regnum>: Move earlier.
12435 2014-01-16 Tom Tromey <tromey@redhat.com>
12437 * remote.c (extended_remote_create_inferior): Rename from
12438 extended_remote_create_inferior_1. Add "ops" argument. Remove
12439 old implementation.
12441 2014-01-16 Pedro Alves <palves@redhat.com>
12443 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12444 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12447 2014-01-16 Doug Evans <dje@google.com>
12449 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12453 * btrace.h (btrace_thread_flag): New.
12454 (struct btrace_thread_info) <flags>: New.
12455 * record-btrace.c (record_btrace_resume_thread)
12456 (record_btrace_find_thread_to_move, btrace_step_no_history)
12457 (btrace_step_stopped, record_btrace_start_replaying)
12458 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12459 (record_btrace_find_resume_thread): New.
12460 (record_btrace_resume, record_btrace_wait): Extend.
12461 (record_btrace_can_execute_reverse): New.
12462 (record_btrace_open): Fail in non-stop mode.
12463 (record_btrace_set_replay): Split into this, ...
12464 (record_btrace_stop_replaying): ... this, ...
12465 (record_btrace_clear_histories): ... and this.
12466 (init_record_btrace_ops): Init to_can_execute_reverse.
12467 * NEWS: Announce it.
12469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12471 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12472 (forward_target_decr_pc_after_break)
12473 (target_decr_pc_after_break): New.
12474 * target.c (forward_target_decr_pc_after_break)
12475 (target_decr_pc_after_break): New.
12476 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12477 instead of gdbarch_decr_pc_after_break.
12478 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12479 instead of gdbarch_decr_pc_after_break.
12480 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12481 instead of gdbarch_decr_pc_after_break.
12482 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12483 instead of gdbarch_decr_pc_after_break.
12484 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12485 instead of gdbarch_decr_pc_after_break.
12486 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12487 instead of gdbarch_decr_pc_after_break.
12489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12491 * btrace.c: Include regcache.h.
12492 (btrace_add_pc): New.
12493 (btrace_enable): Call btrace_add_pc.
12494 (btrace_is_empty): New.
12495 * btrace.h (btrace_is_empty): New.
12496 * record-btrace.c (require_btrace, record_btrace_info): Call
12499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12501 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12502 Support delta reads.
12503 (linux_disable_btrace): Change return type.
12504 * common/linux-btrace.h (linux_read_btrace): Change parameters
12505 and return type to allow error reporting. Update users.
12506 (linux_disable_btrace): Change return type. Update users.
12507 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12509 (btrace_error): New.
12510 (btrace_block) <begin>: Comment on BEGIN == 0.
12511 * btrace.c (btrace_compute_ftrace): Start from the end of
12513 (btrace_stitch_trace, btrace_clear_history): New.
12514 (btrace_fetch): Read delta trace, return if replaying.
12515 (btrace_clear): Move clear history code to btrace_clear_history.
12516 (parse_xml_btrace): Throw an error if parsing failed.
12517 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12518 and return type to allow error reporting.
12519 (target_read_btrace): Change parameters and return type to allow
12521 * target.c (target_read_btrace): Update.
12522 * remote.c (remote_read_btrace): Support delta reads. Pass
12524 * NEWS: Announce it.
12526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12528 * record.h (record_btrace_frame_unwind)
12529 (record_btrace_tailcall_frame_unwind): New declarations.
12530 * dwarf2-frame: Include record.h
12531 (dwarf2_frame_cfa): Throw an error for btrace frames.
12532 * record-btrace.c: Include hashtab.h.
12533 (btrace_get_bfun_name): New.
12534 (btrace_call_history): Call btrace_get_bfun_name.
12535 (struct btrace_frame_cache): New.
12537 (bfcache_hash, bfcache_eq, bfcache_new): New.
12538 (btrace_get_frame_function): New.
12539 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12540 (record_btrace_frame_this_id): Compute own id.
12541 (record_btrace_frame_prev_register): Provide PC, throw_error
12542 for all other registers.
12543 (record_btrace_frame_sniffer): Detect btrace frames.
12544 (record_btrace_tailcall_frame_sniffer): New.
12545 (record_btrace_frame_dealloc_cache): New.
12546 (record_btrace_frame_unwind): Add new functions.
12547 (record_btrace_tailcall_frame_unwind): New.
12548 (_initialize_record_btrace): Allocate cache.
12549 * btrace.c (btrace_clear): Call reinit_frame_cache.
12550 * NEWS: Announce it.
12552 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12554 * record-btrace.c (record_btrace_set_replay)
12555 (record_btrace_goto_begin, record_btrace_goto_end)
12556 (record_btrace_goto): New.
12557 (init_record_btrace_ops): Initialize them.
12558 * NEWS: Announce it.
12560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12562 * record-btrace.c (record_btrace_find_new_threads)
12563 (record_btrace_thread_alive): New.
12564 (init_record_btrace_ops): Initialize to_find_new_threads and
12567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12569 * record-btrace.c (record_btrace_resume): New.
12570 (record_btrace_wait): New.
12571 (init_record_btrace_ops): Initialize to_wait and to_resume.
12573 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12575 * record-btrace.c (record_btrace_xfer_partial)
12576 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12577 (record_btrace_allow_memory_access): New.
12578 (init_record_btrace_ops): Initialize new methods.
12579 * target.c (raw_memory_xfer_partial): Bail out if target reports
12580 that this memory is not available.
12582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12584 * target.h (target_ops) <to_insert_breakpoint>
12585 <to_remove_breakpoint>: Add target_ops parameter.
12586 (forward_target_insert_breakpoint): New.
12587 (forward_target_remove_breakpoint): New.
12588 (memory_remove_breakpoint, memory_insert_breakpoint):
12589 Add target_ops parameter.
12590 * target.c (target_insert_breakpoint): Split into this and ...
12591 (forward_target_insert_breakpoint): ... this.
12592 (target_remove_breakpoint): Split into this and ...
12593 (forward_target_remove_breakpoint): ... this.
12594 (debug_to_insert_breakpoint): Add target_ops parameter.
12595 Call forward_target_insert_breakpoint.
12596 (debug_to_remove_breakpoint): Add target_ops parameter.
12597 Call forward_target_remove_breakpoint.
12598 (update_current_target): Do not inherit or default to_insert_breakpoint
12599 and to_remove_breakpoint.
12600 * corelow.c (ignore): Add target_ops parameter.
12601 * exec.c (ignore): Add target_ops parameter.
12602 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12603 Add target_ops parameter.
12604 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12605 Add target_ops parameter.
12606 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12607 Add target_ops parameter.
12608 * record-full.c (record_full_beneath_to_insert_breakpoint)
12609 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12610 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12611 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12612 (record_full_core_remove_breakpoint): Add target_ops parameter.
12614 (record_full_beneath_to_insert_breakpoint_ops)
12615 (record_full_beneath_to_remove_breakpoint_ops)
12616 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12617 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12618 tmp_to_remove_breakpoint_ops,
12619 record_full_beneath_to_insert_breakpoint_ops, and
12620 record_full_beneath_to_remove_breakpoint_ops.
12621 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12622 (m32r_remove_breakpoint): Add target_ops parameter.
12623 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12624 Add target_ops parameter.
12625 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12626 Add target_ops parameter.
12628 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12629 Markus Metzger <markus.t.metzger@intel.com>
12631 * record-btrace.c: Include frame-unwind.h.
12632 (record_btrace_frame_unwind_stop_reason)
12633 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12634 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12636 (init_record_btrace_ops): Install it.
12638 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12640 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12643 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12645 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12648 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12650 * frame-unwind.c: Include target.h.
12651 (frame_unwind_try_unwinder): New function with code from ...
12652 (frame_unwind_find_by_frame): ... here. New variable
12653 unwinder_from_target, call also target_get_unwinder)
12654 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12655 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12656 * target.h (struct target_ops): New fields to_get_unwinder and
12657 to_get_tailcall_unwinder.
12658 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12662 * record-btrace.c (record_btrace_fetch_registers)
12663 (record_btrace_store_registers)
12664 (record_btrace_to_prepare_to_store): New.
12665 (init_record_btrace_ops): Add the above.
12667 2014-01-16 Tom Tromey <tromey@redhat.com>
12669 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12670 * target.h (struct target_ops) <to_prepare_to_store>: Add
12672 (target_prepare_to_store): Add argument.
12673 * target.c (debug_to_prepare_to_store): Add argument.
12674 (update_current_target): Update.
12675 * remote.c (remote_prepare_to_store): Add 'self' argument.
12676 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12677 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12678 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12679 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12681 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12682 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12683 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12684 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12685 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12689 * btrace.h (replay) <replay>: New.
12690 (btrace_is_replaying): New.
12691 * btrace.c (btrace_clear): Free replay iterator.
12692 (btrace_is_replaying): New.
12693 * record-btrace.c (record_btrace_is_replaying): New.
12694 (record_btrace_info): Print insn number if replaying.
12695 (record_btrace_insn_history): Start at replay position.
12696 (record_btrace_call_history): Start at replay position.
12697 (init_record_btrace_ops): Init to_record_is_replaying.
12699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12701 * record-btrace.c (record_btrace_insn_history_range): Include
12703 (record_btrace_insn_history_from): Adjust range.
12704 (record_btrace_call_history_range): Include
12706 (record_btrace_call_history_from): Adjust range.
12707 * NEWS: Announce changes.
12709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12711 * record.h (enum record_print_flag)
12712 <record_print_indent_calls>: New.
12713 * record.c (get_call_history_modifiers): Recognize /c modifier.
12714 (_initialize_record): Document /c modifier.
12715 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12716 Reorder fields. Optionally indent the function name. Update
12718 * NEWS: Announce changes.
12720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12722 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12724 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12726 * btrace.c (ftrace_new_function): Start counting at one.
12727 * record-btrace.c (record_btrace_info): Adjust number of calls
12729 * NEWS: Announce it.
12731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12733 * record-btrace.c (btrace_call_history_insn_range): Print
12734 insn range as [begin, end].
12736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12738 * btrace.h (struct btrace_func_link): New.
12739 (enum btrace_function_flag): New.
12740 (struct btrace_inst): Rename to ...
12741 (struct btrace_insn): ...this. Update all users.
12742 (struct btrace_func) <ibegin, iend>: Remove.
12743 (struct btrace_func_link): New.
12744 (struct btrace_func): Rename to ...
12745 (struct btrace_function): ...this. Update all users.
12746 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12747 (number, level, flags>: New.
12748 (struct btrace_insn_iterator): Rename to ...
12749 (struct btrace_insn_history): ...this.
12751 (struct btrace_insn_iterator, btrace_call_iterator): New.
12752 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12753 (struct btrace_target_info) <begin, end, level>
12754 <insn_history, call_history>: New.
12755 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12756 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12757 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12758 (btrace_call_number, btrace_call_begin, btrace_call_end)
12759 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12760 (btrace_find_function_by_number, btrace_set_insn_history)
12761 (btrace_set_call_history): New.
12762 * btrace.c (btrace_init_insn_iterator)
12763 (btrace_init_func_iterator, compute_itrace): Remove.
12764 (ftrace_print_function_name, ftrace_print_filename)
12765 (ftrace_skip_file): Change
12766 parameter to const.
12767 (ftrace_init_func): Remove.
12768 (ftrace_debug): Use new btrace_function fields.
12769 (ftrace_function_switched): Also consider gaining and
12770 losing symbol information).
12771 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12772 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12773 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12775 (ftrace_new_function): Move. Remove debug print.
12776 (ftrace_update_lines, ftrace_update_insns): New.
12777 (ftrace_update_function): Check for call, ret, and jump.
12778 (compute_ftrace): Renamed to ...
12779 (btrace_compute_ftrace): ...this. Rewritten to compute call
12781 (btrace_fetch, btrace_clear): Updated.
12782 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12783 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12784 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12785 (btrace_call_number, btrace_call_begin, btrace_call_end)
12786 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12787 (btrace_find_function_by_number, btrace_set_insn_history)
12788 (btrace_set_call_history): New.
12789 * record-btrace.c (require_btrace): Use new btrace thread
12791 (record_btrace_info, btrace_insn_history)
12792 (record_btrace_insn_history, record_btrace_insn_history_range):
12793 Use new btrace thread info fields and new iterator.
12794 (btrace_func_history_src_line): Rename to ...
12795 (btrace_call_history_src_line): ...this. Use new btrace
12796 thread info fields.
12797 (btrace_func_history): Rename to ...
12798 (btrace_call_history): ...this. Use new btrace thread info
12799 fields and new iterator.
12800 (record_btrace_call_history, record_btrace_call_history_range):
12801 Use new btrace thread info fields and new iterator.
12803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12805 * frame.h (frame_id_build_unavailable_stack_special): New.
12806 * frame.c (frame_id_build_unavailable_stack_special): New.
12808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12810 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12811 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12812 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12814 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12815 (i386_insn_is_jump, i386_jmp_p): New.
12816 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12817 insn_is_jump to gdbarch.
12818 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12819 * gdbarch.h: Regenerated.
12820 * gdbarch.c: Regenerated.
12821 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12822 (default_insn_is_jump): New.
12823 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12824 (default_insn_is_jump): New.
12826 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12828 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12830 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12831 (btrace_read_type) <btrace_read_new>: Change to ...
12832 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12836 * common/linux-btrace.c (linux_read_btrace): Free trace from
12837 previous iteration.
12839 2014-01-15 Doug Evans <dje@google.com>
12841 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12844 2014-01-15 Tom Tromey <tromey@redhat.com>
12846 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12847 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12848 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12849 (set_objfile_main_name): New function.
12850 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12851 language_of_main>: New fields.
12852 (set_objfile_main_name): Declare.
12853 * symtab.c (find_main_name): Loop over objfiles to find the main
12855 (set_main_name): Now static.
12856 (get_main_info): Add comment.
12857 * symtab.h (set_main_name): Don't declare.
12859 2014-01-15 Tom Tromey <tromey@redhat.com>
12861 * symtab.c (main_progspace_key): New global.
12862 (struct main_info): New.
12863 (name_of_main, language_of_main): Remove.
12864 (get_main_info, main_info_cleanup): New function.
12865 (set_main_name, main_name, main_language): Use get_main_info.
12866 (_initialize_symtab): Initialize main_progspace_key.
12868 2014-01-15 Tom Tromey <tromey@redhat.com>
12870 * dbxread.c (process_one_symbol): Update.
12871 * dwarf2read.c (read_partial_die): Update.
12872 * symfile.c (set_initial_language): Call main_language.
12873 * symtab.c (language_of_main): Now static.
12874 (set_main_name): Add 'lang' parameter.
12875 (find_main_name): Update.
12876 (main_language): New function.
12877 (symtab_observer_executable_changed): Update.
12878 * symtab.h (set_main_name): Update.
12879 (language_of_main): Remove.
12880 (main_language): Declare.
12882 2014-01-15 Tom Tromey <tromey@redhat.com>
12884 * symfile.c (init_entry_point_info): Use new "initialized" field.
12886 * objfiles.h (struct entry_point) <initialized>: New field.
12887 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12888 (struct objfile) <ei>: ...here. Remove.
12889 * objfiles.c (entry_point_address_query): Update.
12891 2014-01-15 Tom Tromey <tromey@redhat.com>
12893 * objfiles.c (entry_point_address_query): Relocate entry point
12895 (objfile_relocate1): Do not relocate entry point address.
12896 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12897 <the_bfd_section_index>: New field.
12898 * symfile.c (init_entry_point_info): Find the entry point's
12901 2014-01-15 Tom Tromey <tromey@redhat.com>
12903 * solib-frv.c (enable_break): Use entry_point_address_query.
12905 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12907 * NEWS: Add note on improved process record-replay on
12908 arm*-linux* targets.
12910 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12912 * arm-tdep.c (enum arm_record_result): New enum.
12913 (arm_record_unsupported_insn): New function.
12914 (arm_record_coproc_data_proc): Removed.
12915 (thumb2_record_ld_st_multiple): New function.
12916 (thumb2_record_ld_st_dual_ex_tbb): New function.
12917 (thumb2_record_data_proc_sreg_mimm): New function.
12918 (thumb2_record_ps_dest_generic): New function.
12919 (thumb2_record_branch_misc_cntrl): New function.
12920 (thumb2_record_str_single_data): New function.
12921 (thumb2_record_ld_mem_hints): New function.
12922 (thumb2_record_ld_word): New function.
12923 (thumb2_record_lmul_lmla_div): New function.
12924 (thumb2_record_decode_insn_handler): New function.
12925 (decode_insn): Add thumb32 instruction handlers.
12927 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12929 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12930 (struct arm_linux_record_tdep): Declare.
12931 (arm_canonicalize_syscall): New function.
12932 (arm_all_but_pc_registers_record): New function.
12933 (arm_linux_syscall_record): New function.
12934 (arm_linux_init_abi): Add syscall recording constructs.
12935 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12936 decoding. (arm_record_coproc_data_proc): Update arm syscall
12938 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12939 <arm_syscall_record>: New field.
12940 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12943 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12945 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12946 register for push instruction recording.
12948 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12950 * arm-tdep.c (thumb_record_misc): Update to correct logical
12951 error while recording ldm, ldmia and pop instructions.
12953 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12955 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12957 2014-01-15 Pedro Alves <palves@redhat.com>
12959 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12960 (go32_resume, go32_fetch_registers, store_register)
12961 (go32_store_registers, go32_prepare_to_store)
12962 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12963 (go32_create_inferior, go32_can_run, go32_terminal_init)
12964 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12967 2014-01-15 Tom Tromey <tromey@redhat.com>
12969 * target.h (async_callback_ftype): New typedef.
12970 (struct target_ops) <to_async>: Use it.
12972 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12974 * python/py-value.c (get_field_type): Remove unnecessary curly
12975 braces for single-statement if block.
12977 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12979 * python/py-type.c (convert_field): Add missing empty line
12980 after declarations.
12982 2014-01-14 Doug Evans <dje@google.com>
12984 * symfile.h (expand_symtabs_matching): Renamed from
12985 expand_partial_symbol_names. Update prototype.
12986 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12987 * symfile.c (expand_symtabs_matching): Renamed from
12988 expand_partial_symbol_names. New args file_matcher, kind.
12989 Rename arg fun to symbol_matcher.
12990 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12991 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12992 ada_expand_partial_symbol_name.
12993 (ada_make_symbol_completion_list): Update to call
12994 expand_symtabs_matching.
12995 (ada_add_global_exceptions): Call expand_symtabs_matching.
12996 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12997 call map_symbol_filenames.
12998 * symtab.c (sources_info): Update to call map_symbol_filenames.
12999 (search_symbols): Call expand_symtabs_matching.
13000 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13001 (default_make_symbol_completion_list_break_on): Update to call
13002 expand_symtabs_matching.
13003 (make_source_files_completion_list): Update to call
13004 map_symbol_filenames.
13006 2014-01-14 Doug Evans <dje@google.com>
13008 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13009 (expand_symtabs_symbol_matcher_ftype): New typedef.
13010 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13011 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13012 * symfile.c (expand_partial_symbol_names): Update to use
13013 expand_symtabs_symbol_matcher_ftype.
13014 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13015 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13016 Arg name_matcher renamed to symbol_matcher.
13017 * psymtab.c (recursively_search_psymtabs): Update to use
13018 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13020 (expand_symtabs_matching_via_partial): Update to use
13021 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13022 Arg name_matcher renamed to symbol_matcher.
13024 2014-01-14 Doug Evans <dje@google.com>
13026 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13027 (map_partial_symbol_filenames): Ditto.
13028 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13029 (map_partial_symbol_filenames): Ditto.
13030 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13031 (map_partial_symbol_filenames): Ditto.
13032 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13033 (map_partial_symbol_filenames): Ditto.
13034 * symtab.c: Delete #include "psymtab.h".
13036 2014-01-14 Pedro Alves <palves@redhat.com>
13037 Tom Tromey <tromey@redhat.com>
13039 * infrun.c (use_displaced_stepping): Use find_record_target
13040 instead of RECORD_IS_USED.
13041 (adjust_pc_after_break): Use record_full_is_used instead of
13043 * record-btrace.c (record_btrace_open): Call record_preopen
13044 instead of checking RECORD_IS_USED.
13045 * record-full.c (record_full_shortname)
13046 (record_full_core_shortname): New globals.
13047 (record_full_is_used): New function.
13048 (find_full_open): Call record_preopen instead of checking
13050 (init_record_full_ops): Set the target's shortname to
13051 record_full_shortname.
13052 (init_record_full_core_ops): Set the target's shortname to
13053 record_full_core_shortname.
13054 * record-full.h (record_full_is_used): Declare.
13055 * record.c (find_record_target): Make extern.
13056 (record_preopen): New function.
13057 * record.h (RECORD_IS_USED): Delete macro.
13058 (find_record_target, record_preopen): Declare functions.
13060 2014-01-14 Yao Qi <yao@codesourcery.com>
13062 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13063 'len''s type to ULONGEST.
13064 (core_xfer_shared_libraries_aix): Likewise.
13065 * gdbarch.c, gdbarch.h: Regenerated.
13066 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13067 Change type of 'len' to ULONGEST.
13068 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13069 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13071 2014-01-14 Yao Qi <yao@codesourcery.com>
13073 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13074 type of 'len' to ULONGEST.
13075 (linux_xfer_osdata_processgroups): Likewise.
13076 (linux_xfer_osdata_threads): Likewise.
13077 (linux_xfer_osdata_fds): Likewise.
13078 (linux_xfer_osdata_isockets): Likewise.
13079 (linux_xfer_osdata_shm): Likewise.
13080 (linux_xfer_osdata_sem): Likewise.
13081 (linux_xfer_osdata_msg): Likewise.
13082 (linux_common_xfer_osdata): Likewise.
13083 (struct osdata_type) <getter>: Likewise.
13084 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13087 2014-01-14 Yao Qi <yao@codesourcery.com>
13089 * target.h (target_xfer_partial_ftype): Update.
13090 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13092 * aix-thread.c (aix_thread_xfer_partial): Change type of
13093 argument 'len' to ULONGEST.
13094 * auxv.c (procfs_xfer_auxv): Likewise.
13095 (ld_so_xfer_auxv): Likewise.
13096 (memory_xfer_auxv): Likewise.
13097 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13098 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13099 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13100 * corelow.c (core_xfer_partial): Likewise.
13101 * ctf.c (ctf_xfer_partial): Likewise.
13102 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13104 (darwin_read_dyld_info): Likewise.
13105 (darwin_xfer_partial): Likewise.
13106 * exec.c (section_table_xfer_memory_partial): Likewise.
13107 (exec_xfer_partial): Likewise.
13108 * exec.h (section_table_xfer_memory_partial): Update
13110 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13111 instead of plongest.
13112 (gnu_xfer_partial): Likewise.
13113 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13114 (ia64_hpux_xfer_solib_got): Likewise.
13115 (ia64_hpux_xfer_partial): Likewise.
13116 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13117 * inf-ptrace.c (inf_ptrace_xfer_partial):
13118 * inf-ttrace.c (inf_ttrace_xfer_partial):
13119 * linux-nat.c (linux_xfer_siginfo): Likewise.
13120 (linux_nat_xfer_partial): Likewise.
13121 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13122 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13123 * monitor.c (monitor_xfer_memory): Likewise.
13124 (monitor_xfer_partial): Likewise.
13125 * procfs.c (procfs_xfer_partial): Likewise.
13126 * record-full.c (record_full_xfer_partial): Likewise.
13127 (record_full_core_xfer_partial): Likewise.
13128 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13129 instead of plongest.
13130 (gdbsim_xfer_partial): Likewise.
13131 * remote.c (remote_xfer_partial): Likewise.
13132 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13133 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13135 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13136 (rs6000_xfer_shared_libraries): Likewise.
13137 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13138 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13139 (sparc_xfer_partial): Likewise.
13140 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13141 (spu_xfer_partial): Likewise.
13142 * spu-multiarch.c (spu_xfer_partial): Likewise.
13143 * target.c (target_read_live_memory): Likewise.
13144 (memory_xfer_live_readonly_partial): Likewise.
13145 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13146 (target_xfer_partial, default_xfer_partial): Likewise.
13147 (current_xfer_partial): Likewise.
13148 * tracepoint.c (tfile_xfer_partial): Likewise.
13149 * windows-nat.c (windows_xfer_memory): Likewise. Call
13150 pulongest instead of plongest.
13151 (windows_xfer_partial): Likewise.
13152 (windows_xfer_shared_libraries): Likewise.
13154 2014-01-14 Yao Qi <yao@codesourcery.com>
13156 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13157 target_xfer_partial_ftype.
13159 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13163 * valops.c (value_struct_elt_bitpos): New function
13164 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13165 object to 'None' if the field name is an empty string ("").
13166 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13167 attribute to look for a field when 'name' is 'None'.
13168 (get_field_type): New function
13170 2014-01-13 Doug Evans <dje@google.com>
13173 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13174 (try_open_dwop_file): Ditto.
13175 * gdb_bfd.c: #include "vec.h".
13176 (bfdp): New typedef.
13177 (struct gdb_bfd_data): New member included_bfds.
13178 (gdb_bfd_unref): Unref all included bfds.
13179 (gdb_bfd_record_inclusion): New function.
13180 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13182 2014-01-13 Tom Tromey <tromey@redhat.com>
13184 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13186 2014-01-13 Tom Tromey <tromey@redhat.com>
13188 * defs.h (use_windows): Remove.
13189 * gdb.c (main): Update.
13190 * main.c (captured_main, gdb_main): Update.
13191 * main.h (struct captured_main_args) <use_windows>: Remove.
13192 * top.c (use_windows): Remove.
13194 2014-01-13 Tom Tromey <tromey@redhat.com>
13196 * defs.h (deprecated_flush_hook): Remove.
13198 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13201 * linux-thread-db.c (try_thread_db_load): Add parameter
13202 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13203 (try_thread_db_load_from_pdir_1): Move it there from here.
13204 (try_thread_db_load_from_sdir): Update caller.
13205 (try_thread_db_load_from_dir): Move it there from here.
13207 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13209 * regformats/regdat.sh: Always rewrite the register file.
13211 2014-01-13 Pedro Alves <palves@redhat.com>
13213 * Makefile.in (CHECK_HEADERS): New variable.
13214 (check-headers:): New rule.
13216 2014-01-13 Tom Tromey <tromey@redhat.com>
13218 * cli/cli-setshow.c (do_set_command): Update.
13219 * defs.h (deprecated_set_hook): Remove.
13220 * top.c (deprecated_set_hook): Remove.
13222 2014-01-13 Pedro Alves <palves@redhat.com>
13224 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13225 the tracepoint if the PC is a pseudo-register.
13227 2014-01-13 Tom Tromey <tromey@redhat.com>
13229 * defs.h (XCALLOC): Remove.
13230 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13231 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13232 * dwarf2loc.c (allocate_piece_closure): Likewise.
13233 * elfread.c (elf_symfile_segments): Likewise.
13234 (elf_symfile_segments): Likewise.
13235 * gdbtypes.c (copy_type_recursive): Likewise.
13236 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13237 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13238 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13240 * mt-tdep.c (mt_gdbarch_init): Likewise.
13241 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13243 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13244 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13245 * registry.c (registry_alloc_data): Likewise.
13246 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13247 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13248 * serial.c (serial_fdopen_ops): Likewise.
13249 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13251 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13252 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13255 2014-01-13 Tom Tromey <tromey@redhat.com>
13257 * defs.h (XMALLOC): Remove.
13258 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13259 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13260 * cli-out.c (struct ui_out *): Likewise.
13261 * cli/cli-dump.c (add_dump_command): Likewise.
13262 (add_dump_command): Likewise.
13263 * complaints.c (get_complaints): Likewise.
13264 (find_complaint): Likewise.
13265 * dwarf2-frame.c (execute_cfa_program): Likewise.
13266 * dwarf2read.c (abbrev_table_read_table): Likewise.
13267 * gdbarch.sh: Likewise.
13268 * gdbarch.c: Rebuild.
13269 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13270 * interps.c (interp_new): Likewise.
13271 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13272 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13273 * mi/mi-console.c (mi_console_file_new): Likewise.
13274 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13275 * mi/mi-out.c (mi_out_new): Likewise.
13276 * mi/mi-parse.c (mi_parse): Likewise.
13277 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13278 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13279 * observer.c (xalloc_observer_list_node): Likewise.
13280 * regcache.c (regcache_xmalloc_1): Likewise.
13281 * reggroups.c (reggroup_new): Likewise.
13282 (_initialize_reggroup): Likewise.
13283 * registry.c (register_data_with_cleanup): Likewise.
13284 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13285 * ser-base.c (serial_ttystate): Likewise.
13286 * ser-mingw.c (make_pipe_state): Likewise.
13287 * ser-pipe.c (pipe_open): Likewise.
13288 * serial.c (serial_open): Likewise.
13289 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13290 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13291 (tui_alloc_win_info): Likewise.
13292 (tui_add_content_elements): Likewise.
13293 * tui/tui-file.c (tui_file_new): Likewise.
13294 * tui/tui-out.c (tui_out_new): Likewise.
13295 * ui-file.c (mem_file_new): Likewise.
13296 * ui-out.c (push_level): Likewise.
13297 (make_cleanup_ui_out_end): Likewise.
13298 (append_header_to_list): Likewise.
13299 (ui_out_new): Likewise.
13300 * user-regs.c (user_reg_add_builtin): Likewise.
13302 2014-01-13 Tom Tromey <tromey@redhat.com>
13304 * defs.h (XZALLOC): Remove.
13305 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13306 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13307 (get_ada_tasks_inferior_data): Likewise.
13308 * auto-load.c (get_auto_load_pspace_data): Likewise.
13309 * auxv.c (get_auxv_inferior_data): Likewise.
13310 * bfd-target.c (target_bfd_reopen): Likewise.
13311 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13312 (deprecated_insert_raw_breakpoint): Likewise.
13313 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13314 * corelow.c (core_open): Likewise.
13315 * darwin-nat.c (darwin_check_new_threads): Likewise.
13316 (darwin_attach_pid): Likewise.
13317 * dummy-frame.c (dummy_frame_push): Likewise.
13318 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13319 * dwarf2loc.c (allocate_piece_closure): Likewise.
13320 * elfread.c (elf_symfile_segments): Likewise.
13321 * eval.c (ptrmath_type_p): Likewise.
13322 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13323 * gdbtypes.c (alloc_type_arch): Likewise.
13324 (alloc_type_instance): Likewise.
13325 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13326 * inf-child.c (inf_child_can_use_agent): Likewise.
13327 * inflow.c (get_inflow_inferior_data): Likewise.
13328 * infrun.c (save_infcall_suspend_state): Likewise.
13329 * jit.c (jit_reader_load): Likewise.
13330 (get_jit_objfile_data): Likewise.
13331 (get_jit_program_space_data): Likewise.
13332 (jit_object_open_impl): Likewise.
13333 (jit_symtab_open_impl): Likewise.
13334 (jit_block_open_impl): Likewise.
13335 (jit_frame_sniffer): Likewise.
13336 * linux-fork.c (add_fork): Likewise.
13337 * maint.c (make_command_stats_cleanup): Likewise.
13338 * objfiles.c (get_objfile_pspace_data): Likewise.
13339 * opencl-lang.c (struct lval_closure): Likewise.
13340 * osdata.c (osdata_start_osdata): Likewise.
13341 * progspace.c (new_address_space): Likewise.
13342 (add_program_space): Likewise.
13343 * remote-sim.c (get_sim_inferior_data): Likewise.
13344 * sh-tdep.c (sh_gdbarch_init): Likewise.
13345 * skip.c (Ignore): Likewise.
13346 (skip_delete_command): Likewise.
13347 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13348 (library_list_start_library): Likewise.
13349 (solib_aix_current_sos): Likewise.
13350 * solib-darwin.c (get_darwin_info): Likewise.
13351 (darwin_current_sos): Likewise.
13352 * solib-dsbt.c (get_dsbt_info): Likewise.
13353 * solib-ia64-hpux.c (new_so_list): Likewise.
13354 (ia64_hpux_get_solib_linkage_addr): Likewise.
13355 * solib-spu.c (append_ocl_sos): Likewise.
13356 (spu_current_sos): Likewise.
13357 * solib-svr4.c (get_svr4_info): Likewise.
13358 (svr4_keep_data_in_core): Likewise.
13359 (library_list_start_library): Likewise.
13360 (svr4_default_sos): Likewise.
13361 (svr4_read_so_list): Likewise.
13362 * solib-target.c (library_list_start_library): Likewise.
13363 (solib_target_current_sos): Likewise.
13364 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13365 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13366 * symfile.c (default_symfile_segments): Likewise.
13367 * target-descriptions.c (tdesc_data_init): Likewise.
13368 (tdesc_create_reg): Likewise.
13369 (struct tdesc_type *): Likewise.
13370 (tdesc_create_vector): Likewise.
13371 (tdesc_set_struct_size): Likewise.
13372 (struct tdesc_type *): Likewise.
13373 (tdesc_free_feature): Likewise.
13374 (tdesc_create_feature): Likewise.
13375 * windows-nat.c (windows_add_thread): Likewise.
13376 (windows_make_so): Likewise.
13377 * xml-support.c (gdb_xml_body_text): Likewise.
13378 (gdb_xml_create_parser_and_cleanup): Likewise.
13379 (xml_process_xincludes): Likewise.
13380 * xml-syscall.c (allocate_syscalls_info): Likewise.
13381 (syscall_create_syscall_desc): Likewise.
13383 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13385 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13386 function, with code from i386_stap_parse_special_token.
13387 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13388 (i386_stap_parse_special_token): Move code to the two functions
13389 above; simplify it.
13391 2014-01-09 Pedro Alves <palves@redhat.com>
13392 Hui Zhu <hui@codesourcery.com>
13395 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13396 bp_err_string. Don't mark the location shlib_disabled if the
13397 error thrown wasn't a generic or memory error. Catch errors
13398 thrown while inserting breakpoints in overlayed code. Output
13399 error message of software breakpoints.
13400 * remote.c (remote_insert_breakpoint): If this breakpoint has
13401 target-side commands but this stub doesn't support Z0 packets,
13402 throw NOT_SUPPORTED_ERROR error.
13403 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13404 * target.h (target_insert_breakpoint): Extend comment.
13405 (target_insert_hw_breakpoint): Add comment.
13407 2014-01-08 Pedro Alves <palves@redhat.com>
13409 * remote.c (remote_add_thread): Add threads silently if starting
13411 (remote_notice_new_inferior): If in all-stop, and starting up,
13412 don't call notice_new_inferior.
13413 (get_current_thread): New function, factored out from ...
13414 (add_current_inferior_and_thread): ... this. Adjust.
13415 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13416 found any thread, then select the remote's current thread as GDB's
13417 current thread too.
13419 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13421 * NEWS: Create a new section for the next release branch.
13422 Rename the section of the current branch, now that it has
13425 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13427 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13428 * version.in: Bump version to 7.7.50.DATE-cvs.
13430 2014-01-08 Yao Qi <yao@codesourcery.com>
13432 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13433 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13434 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13436 2014-01-08 Yao Qi <yao@codesourcery.com>
13438 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13439 return value of bfd_get_filename to symbol_file_add_from_bfd.
13441 2014-01-08 Pierre Muller <muller@sourceware.org>
13444 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13445 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13446 to prim_record_mininal_symbol_and_info.
13447 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13448 in call to prim_record_minimal_symbol_and_info.
13449 (read_pe_exported_syms): Set index field of section_data.
13451 2014-01-07 Andrew Pinski <apinski@cavium.com>
13453 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13454 * features/aarch64.c: Regenerate.
13456 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13458 * target.c (return_null): Define.
13459 (update_current_target): Use it instead of return_zero for
13460 functions that return a pointer.
13462 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13464 * source.c (add_path): Fix check for duplicated paths in the previously
13467 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13469 * ada-lang.c: Remove duplicated include statements.
13470 * alphabsd-nat.c: Ditto.
13471 * amd64-darwin-tdep.c: Ditto.
13472 * amd64fbsd-nat.c: Ditto.
13473 * auto-load.c: Ditto.
13475 * breakpoint.c: Ditto.
13476 * dbxread.c: Ditto.
13477 * fork-child.c: Ditto.
13478 * gdb_usleep.c: Ditto.
13479 * i386-darwin-tdep.c: Ditto.
13480 * i386fbsd-nat.c: Ditto.
13482 * inferior.c: Ditto.
13483 * jv-lang.c: Ditto.
13484 * linux-nat.c: Ditto.
13485 * linux-tdep.c: Ditto.
13486 * m68kbsd-nat.c: Ditto.
13487 * m68klinux-nat.c: Ditto.
13488 * microblaze-tdep.c: Ditto.
13489 * mips-linux-tdep.c: Ditto.
13490 * mn10300-tdep.c: Ditto.
13491 * nto-tdep.c: Ditto.
13492 * opencl-lang.c: Ditto.
13494 * printcmd.c: Ditto.
13495 * regcache.c: Ditto.
13496 * remote-m32r-sdi.c: Ditto.
13498 * symfile.c: Ditto.
13500 * tilegx-linux-nat.c: Ditto.
13501 * tilegx-tdep.c: Ditto.
13502 * tracepoint.c: Ditto.
13504 * vaxbsd-nat.c: Ditto.
13505 * windows-nat.c: Ditto.
13506 * xtensa-tdep.c: Ditto.
13508 2014-01-07 Yao Qi <yao@codesourcery.com>
13510 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13512 2014-01-07 Yao Qi <yao@codesourcery.com>
13513 Joel Brobecker <brobecker@adacore.com>
13515 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13516 (pdc_write_regs): Likewise.
13517 (fetch_regs_kernel_thread): Likewise.
13518 (store_regs_kernel_thread): Likewise.
13520 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13522 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13523 tagged type objects to their actual type.
13525 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13527 * ada-valprint.c (print_field_values): Add "language" parameter.
13528 Update calls to print_field_values and print_variant_part.
13529 Pass new parameter "language" in call to val_print instead
13530 of "current_language". Replace call to ada_val_print by call
13532 (print_variant_part): Add "language" parameter.
13533 (ada_val_print_struct_union): Update call to print_field_values.
13535 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13537 * ada-valprint.c (ui_memcpy): Delete.
13538 (ada_print_floating): Update documentation. Add empty line
13539 between between function documentation and implementation.
13540 Delete variable "buffer". Use ui_file_xstrdup in place of
13541 ui_file_put. Minor adjustments following this change.
13543 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13545 * ada-valprint.c (ada_val_print_string): New function,
13546 extracted from ada_val_print_array.
13547 (ada_val_print_array): Replace extracted code by call
13548 to ada_val_print_string followed by a return. Move
13549 "else" branch to the function's top block.
13551 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13553 * ada-valprint.c (ada_val_print_array): Move implementation
13554 down. Rename parameter "offset" and "val" into "offset_aligned"
13555 and "original_value" respectively. Add parameter "offset".
13557 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13559 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13560 re-organizing the code. Change the "???" message printed
13561 when target type is a TYPE_CODE_UNDEF into
13562 "<ref to undefined type>".
13564 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13566 * ada-valprint.c (print_record): Delete, implementation inlined...
13567 (ada_val_print_struct_union): ... here. Remove call to
13568 ada_check_typedef in inlined implementation.
13570 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13572 * ada-valprint.c (ada_val_print_gnat_array): New function,
13573 extracted from ada_val_print_1;
13574 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13575 (ada_val_print_flt, ada_val_print_struct_union)
13576 (ada_val_print_ref): Likewise.
13577 (ada_val_print_1): Delete variables i and elttype.
13578 Replace extracted-out code by call to corresponding
13581 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13583 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13585 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13587 * ada-valprint.c (ada_val_print_1): Replace calls to
13588 ada_val_print_1 by calls to val_print.
13590 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13592 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13593 Update calls to self accordingly. Replace calls to c_val_print
13594 by calls to val_print.
13596 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13598 * ada-valprint.c (print_record): Delete declaration.
13599 (adjust_type_signedness, ada_val_print_1): Likewise.
13600 (ada_val_print): Move function implementation down.
13601 (print_variant_part, print_field_values, print_record):
13602 Move function implementation up.
13604 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13606 * python/py-type.c (typy_get_name): New function.
13607 (type_object_getset): Add entry for attribute "name".
13608 * NEWS: Add entry mentioning this new attribute.
13610 2014-01-07 Yao Qi <yao@codesourcery.com>
13612 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13615 2014-01-07 Yao Qi <yao@codesourcery.com>
13617 * gnu-nat.c (info_port_rights): Add qualifier const to
13620 2014-01-07 Yao Qi <yao@codesourcery.com>
13622 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13624 2014-01-07 Yao Qi <yao@codesourcery.com>
13626 * gnu-nat.c (make_inf) Update declaration.
13627 (make_inf): Make it static.
13628 (inf_set_traced): Likewise.
13629 (inf_port_to_thread, inf_task_died_status): Likewise.
13631 2014-01-07 Yao Qi <yao@codesourcery.com>
13633 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13635 2014-01-07 Yao Qi <yao@codesourcery.com>
13637 * gnu-nat.c (_initialize_gnu_nat): Declare.
13639 2014-01-07 Yao Qi <yao@codesourcery.com>
13641 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13643 (struct gdbarch_info) <byte_order>: Change type to
13645 <byte_order_for_code>: Likewise.
13646 * gdbarch.c, gdbarch.h: Regenerated.
13648 2014-01-06 Sasha Smundak <asmundak@google.com>
13650 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13652 2014-01-06 Tom Tromey <tromey@redhat.com>
13654 * doublest.c (convert_doublest_to_floatformat): Use const, not
13656 * somread.c (som_symtab_read): Likewise.
13658 2014-01-07 Hui Zhu <hui@codesourcery.com>
13660 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13661 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13662 (gdb_bfd_fopen): Ditto.
13663 (gdb_bfd_openr): Ditto.
13664 (gdb_bfd_openw): Ditto.
13665 (gdb_bfd_openr_iovec): Ditto.
13666 (gdb_bfd_fdopenr): Ditto.
13667 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13668 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13670 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13672 * symfile-mem.c (symbol_file_add_from_memory): Removed
13673 gdb_bfd_stash_filename.
13675 2014-01-03 Doug Evans <dje@google.com>
13677 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13680 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13682 Update year range in copyright notice of all files.
13684 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13686 * top.c (print_gdb_version): Set copyright year to 2014.
13688 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13690 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13692 For older changes see ChangeLog-2013.
13698 version-control: never