1 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
3 * mips-tdep.c (micromips_instruction_has_delay_slot): When
4 !mustbe32 also return 1 for 32-bit instructions.
5 (mips16_instruction_has_delay_slot): Likewise. Add an
8 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
10 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
13 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
15 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
17 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
18 for the breakpoint's address. Don't preinitialize `placed_size'.
19 (insert_bp_location): Set `reqstd_address' rather than
21 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
22 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
24 (bkpt_remove_location): Likewise.
25 (deprecated_insert_raw_breakpoint): Likewise.
26 (deprecated_remove_raw_breakpoint): Likewise.
27 (find_single_step_breakpoint): Likewise.
28 * mem-break.c (default_memory_insert_breakpoint): Use
29 `reqstd_address' for the breakpoint's address. Don't set
30 `placed_address' or `placed_size' if breakpoint contents couldn't
32 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
33 the breakpoint's address.
34 (remote_insert_hw_breakpoint): Likewise. Don't set
35 `placed_address' or `placed_size' if breakpoint couldn't have been
37 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
38 `reqstd_address' for the breakpoint's address.
39 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
40 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
41 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
42 * microblaze-linux-tdep.c
43 (microblaze_linux_memory_remove_breakpoint): Likewise.
44 * monitor.c (monitor_insert_breakpoint): Likewise.
45 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
46 (procfs_insert_hw_breakpoint): Likewise.
47 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
48 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
49 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
50 * remote-mips.c (mips_insert_breakpoint): Likewise.
51 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
53 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
55 * valops.c (value_assign): Check for bit field assignments
56 before calling architecture-specific register value
59 2014-10-03 Pierre Muller <muller@sourceware.org>
61 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
63 2014-10-02 Pedro Alves <palves@redhat.com>
65 * breakpoint.c (breakpoints_should_be_inserted_now): Use
66 threads_are_executing.
67 * breakpoint.h (breakpoints_should_be_inserted_now): Add
69 * gdbthread.h (threads_are_executing): Declare.
70 (handle_signal_stop) <random signals>: Don't print about the
71 signal here if stopping.
72 (end_stepping_range): Don't notify observers here.
73 (normal_stop): Update the thread list. If stopped by a random
74 signal or a stepping range ended, notify observers.
75 * thread.c (threads_executing): New global.
76 (init_thread_list): Clear 'threads_executing'.
77 (set_executing): Set or clear 'threads_executing'.
78 (threads_are_executing): New function.
79 (update_threads_executing): New function.
80 (update_thread_list): Use it.
82 2014-10-02 Pedro Alves <palves@redhat.com>
85 * breakpoint.c (update_breakpoints_after_exec): Don't create
86 overlay, longjmp, std terminate nor exception breakpoints here.
88 2014-10-02 Pedro Alves <palves@redhat.com>
90 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
92 * inferior.c (find_inferior_for_program_space): Give preference to
94 * inferior.h (find_inferior_for_program_space): Update comment.
95 * progspace.c (switch_to_program_space_and_thread): Prefer the
96 current inferior if it's bound to the program space requested. If
97 the inferior found doesn't have a PID yet, don't bother looking up
99 * progspace.h (switch_to_program_space_and_thread): Adjust
101 * thread.c (any_thread_of_process, any_live_thread_of_process):
102 Give preference to the current thread.
104 2014-10-01 Pedro Alves <palves@redhat.com>
106 * breakpoint.c (insert_bp_location): Error out if inserting a
107 software breakpoint at a read-only address.
108 * target.c (memory_xfer_check_region): New function, factored out
110 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
112 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
113 against the memory region attributes.
115 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
117 * NEWS: Announce new exit-code field in -list-thread-groups
119 * inferior.c (exit_inferior_1): Don't clear exit code.
120 (inferior_appeared): Clear exit code.
121 * mi/mi-main.c (print_one_inferior): Add printing of the exit
124 2014-10-01 Pedro Alves <palves@redhat.com>
126 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
127 GENERATED" along with emacs/vi read-only markers.
128 * regformats/aarch64.dat: Regenerate.
129 * regformats/arm-with-iwmmxt.dat: Regenerate.
130 * regformats/arm-with-neon.dat: Regenerate.
131 * regformats/arm-with-vfpv2.dat: Regenerate.
132 * regformats/arm-with-vfpv3.dat: Regenerate.
133 * regformats/i386/amd64-avx-linux.dat: Regenerate.
134 * regformats/i386/amd64-avx.dat: Regenerate.
135 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
136 * regformats/i386/amd64-avx512.dat: Regenerate.
137 * regformats/i386/amd64-linux.dat: Regenerate.
138 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
139 * regformats/i386/amd64-mpx.dat: Regenerate.
140 * regformats/i386/amd64.dat: Regenerate.
141 * regformats/i386/i386-avx-linux.dat: Regenerate.
142 * regformats/i386/i386-avx.dat: Regenerate.
143 * regformats/i386/i386-avx512-linux.dat: Regenerate.
144 * regformats/i386/i386-avx512.dat: Regenerate.
145 * regformats/i386/i386-linux.dat: Regenerate.
146 * regformats/i386/i386-mmx-linux.dat: Regenerate.
147 * regformats/i386/i386-mmx.dat: Regenerate.
148 * regformats/i386/i386-mpx-linux.dat: Regenerate.
149 * regformats/i386/i386-mpx.dat: Regenerate.
150 * regformats/i386/i386.dat: Regenerate.
151 * regformats/i386/x32-avx-linux.dat: Regenerate.
152 * regformats/i386/x32-avx.dat: Regenerate.
153 * regformats/i386/x32-avx512-linux.dat: Regenerate.
154 * regformats/i386/x32-avx512.dat: Regenerate.
155 * regformats/i386/x32-linux.dat: Regenerate.
156 * regformats/i386/x32.dat: Regenerate.
157 * regformats/microblaze-with-stack-protect.dat: Regenerate.
158 * regformats/mips-dsp-linux.dat: Regenerate.
159 * regformats/mips-linux.dat: Regenerate.
160 * regformats/mips64-dsp-linux.dat: Regenerate.
161 * regformats/mips64-linux.dat: Regenerate.
162 * regformats/nios2-linux.dat: Regenerate.
163 * regformats/rs6000/powerpc-32.dat: Regenerate.
164 * regformats/rs6000/powerpc-32l.dat: Regenerate.
165 * regformats/rs6000/powerpc-64l.dat: Regenerate.
166 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
167 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
168 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
169 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
170 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
171 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
172 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
173 * regformats/s390-linux32.dat: Regenerate.
174 * regformats/s390-linux32v1.dat: Regenerate.
175 * regformats/s390-linux32v2.dat: Regenerate.
176 * regformats/s390-linux64.dat: Regenerate.
177 * regformats/s390-linux64v1.dat: Regenerate.
178 * regformats/s390-linux64v2.dat: Regenerate.
179 * regformats/s390-te-linux64.dat: Regenerate.
180 * regformats/s390x-linux64.dat: Regenerate.
181 * regformats/s390x-linux64v1.dat: Regenerate.
182 * regformats/s390x-linux64v2.dat: Regenerate.
183 * regformats/s390x-te-linux64.dat: Regenerate.
184 * regformats/tic6x-c62x-linux.dat: Regenerate.
185 * regformats/tic6x-c62x.dat: Regenerate.
186 * regformats/tic6x-c64x-linux.dat: Regenerate.
187 * regformats/tic6x-c64x.dat: Regenerate.
188 * regformats/tic6x-c64xp-linux.dat: Regenerate.
189 * regformats/tic6x-c64xp.dat: Regenerate.
191 2014-10-01 Pedro Alves <palves@redhat.com>
193 * features/Makefile: Update comments.
194 (XMLTOC): List all xml files we build C files from.
195 (clean-cfiles): New rule.
197 2014-10-01 Pedro Alves <palves@redhat.com>
199 * features/i386/amd64-avx512-linux.c: Regenerate.
200 * features/i386/amd64-avx512.c: Regenerate.
201 * features/i386/x32-avx512-linux.c: Regenerate.
202 * features/i386/x32-avx512.c: Regenerate.
204 2014-10-01 Pedro Alves <palves@redhat.com>
206 * features/Makefile (WHICH): Remove arm-with-m,
207 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
209 2014-10-01 Pedro Alves <palves@redhat.com>
211 * features/Makefile (clean): New rule.
213 2014-10-01 Pedro Alves <palves@redhat.com>
215 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
216 (zmm14h): Add missing end quotes.
218 2014-10-01 Pedro Alves <palves@redhat.com>
220 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
221 * features/aarch64.c: Regenerate.
223 2014-09-30 Don Breazeal <donb@codesourcery.com>
225 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
226 code so as to work with follow_fork_inferior.
227 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
228 (inf_ttrace_create_inferior): Remove reference to
229 inf_ttrace_vfork_ppid.
230 (inf_ttrace_attach): Ditto.
231 (inf_ttrace_detach): Ditto.
232 (inf_ttrace_kill): Use current_inferior instead of
233 inf_ttrace_vfork_ppid.
234 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
235 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
236 inferior away from the parent.
237 * infrun.c (follow_fork): Call follow_fork_inferior instead of
239 (follow_fork_inferior): New function.
240 (follow_inferior_reset_breakpoints): Make function static.
241 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
242 * linux-nat.c (linux_child_follow_fork): Move target-independent
243 code to infrun.c:follow_fork_inferior.
245 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
247 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
248 * gdbarch.c: Regenerate.
249 * gdbarch.h: Likewise.
250 * corelow.c (sniff_core_bfd): Drop presence check for deleted
251 gdbarch method 'regset_from_core_section'.
252 (get_core_register_section): Remove handling for the case that
253 regset == NULL and regset_from_core_section is defined.
254 (get_core_registers): Drop check for deleted method.
255 * procfs.c (procfs_do_thread_registers): Adjust comment.
257 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
259 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
260 (linux_nat_make_corefile_notes): Remove.
261 (linux_target_install_ops): Do not set target method
262 'make_corefile_notes'.
263 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
265 (linux_corefile_thread_callback): Instead of args->collect, call
266 linux_collect_thread_registers.
267 (linux_make_corefile_notes): Remove 'collect' parameter. Return
268 NULL unless there is a regset iterator.
269 (linux_make_corefile_notes_1): Remove.
270 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
271 by linux_make_corefile_notes.
272 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
274 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
276 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
277 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
279 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
281 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
283 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
284 (xtensa_iterate_over_regset_sections): New.
285 (xtensa_gdbarch_init): Adjust gdbarch initialization.
287 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
289 * vax-tdep.c (vax_regset_from_core_section): Remove.
290 (vax_iterate_over_regset_sections): New.
291 (vax_gdbarch_init): Adjust gdbarch initialization.
293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
295 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
296 (tilegx_regset_from_core_section): Remove.
297 (tilegx_iterate_over_regset_sections): New.
298 (tilegx_linux_init_abi): Adjust gdbarch initialization.
300 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
302 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
303 (sparc_iterate_over_regset_sections): New.
304 (sparc32_gdbarch_init): Adjust gdbarch initialization.
305 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
307 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
308 (sparc64fbsd_init_abi): Call fbsd_init_abi.
309 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
310 target method 'make_corefile_notes'.
312 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
314 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
315 'sizeof_gregset' and 'sizeof_fpregset'.
316 * sh-tdep.c (sh_regset_from_core_section): Remove.
317 (sh_iterate_over_regset_sections): New.
318 (sh_gdbarch_init): Adjust gdbarch initialization.
319 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
321 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
324 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
326 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
327 (score7_linux_iterate_over_regset_sections): New.
328 (score_gdbarch_init): Adjust gdbarch initialization.
330 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
332 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
334 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
335 method 'make_corefile_notes'.
336 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
337 (ppcfbsd_regset_from_core_section): Remove.
338 (ppcfbsd_iterate_over_regset_sections): New.
339 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
341 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
342 (ppcnbsd_iterate_over_regset_sections): New.
343 (ppcnbsd_init_abi): Adjust.
344 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
345 (ppcobsd_iterate_over_regset_sections): New.
346 (ppcobsd_init_abi): Adjust.
347 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
348 (rs6000_aix_iterate_over_regset_sections): New.
349 (rs6000_aix_init_osabi): Adjust.
351 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
353 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
354 (nios2_regset_from_core_section): Remove.
355 (nios2_iterate_over_regset_sections): New.
356 (nios2_linux_init_abi): Adjust gdbarch initialization.
358 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
360 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
361 (am33_iterate_over_regset_sections): New.
362 (am33_linux_init_osabi): Adjust gdbarch initialization.
364 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
366 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
367 (mips_linux_iterate_over_regset_sections): New.
368 (mips_linux_init_abi): Adjust gdbarch initialization.
369 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
370 (mips64obsd_iterate_over_regset_sections): New.
371 (mips64obsd_init_abi): Adjust.
372 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
373 (mipsnbsd_iterate_over_regset_sections): New.
374 (mipsnbsd_init_abi): Adjust.
376 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
378 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
379 (m88k_iterate_over_regset_sections): New.
380 (m88k_gdbarch_init): Adjust gdbarch initialization.
382 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
384 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
385 (ia64_linux_iterate_over_regset_sections): New.
386 (ia64_linux_init_abi): Adjust gdbarch initialization.
388 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
390 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
391 (m68kbsd_iterate_over_regset_sections): New.
392 (m68kbsd_init_abi): Adjust gdbarch initialization.
393 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
394 (m68k_linux_iterate_over_regset_sections): New.
395 (m68k_linux_init_abi): Adjust gdbarch initialization.
397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
399 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
400 (m32r_linux_regset_from_core_section): Remove.
401 (m32r_linux_iterate_over_regset_sections): New.
402 (m32r_linux_init_abi): Adjust gdbarch initialization.
404 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
406 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
407 (amd64obsd_iterate_over_regset_sections): New.
408 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
409 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
411 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
412 regset_from_core_section initialization.
413 * i386-tdep.c (i386_regset_from_core_section): Remove.
414 (i386_iterate_over_regset_sections): New.
415 (i386_gdbarch_init): Adjust gdbarch initialization.
416 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
417 (i386_iterate_over_regset_sections): New prototype.
418 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
420 (i386obsd_aout_iterate_over_regset_sections): New.
421 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
422 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
424 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
425 (amd64fbsd_init_abi): Call fbsd_init_abi.
426 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
427 (i386fbsd4_init_abi): Call fbsd_init_abi.
428 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
429 target method 'make_corefile_notes'.
430 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
432 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
434 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
435 (hppa_hpux_iterate_over_regset_sections): New.
436 (hppa_hpux_init_abi): Adjust gdbarch initialization.
437 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
438 (hppa_linux_iterate_over_regset_sections): New.
439 (hppa_linux_init_abi): Adjust.
440 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
441 (hppanbsd_iterate_over_regset_sections): New.
442 (hppanbsd_init_abi): Adjust.
443 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
444 (hppaobsd_iterate_over_regset_sections): New.
445 (hppaobsd_init_abi): Adjust.
447 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
449 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
450 (frv_linux_iterate_over_regset_sections): New.
451 (frv_linux_init_abi): Adjust gdbarch initialization.
453 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
455 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
456 (armbsd_iterate_over_regset_sections): New prototype.
457 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
458 (armbsd_iterate_over_regset_sections): New.
459 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
462 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
464 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
465 (alpha_linux_iterate_over_regset_sections): New.
466 (alpha_linux_init_abi): Adjust gdbarch initialization.
467 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
469 (alphanbsd_iterate_over_regset_sections): New prototype.
471 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
473 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
475 (aarch64_linux_iterate_over_regset_sections): New.
476 (aarch64_linux_init_abi): Adjust gdbarch initialization.
478 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
480 * fbsd-tdep.c: New file.
481 * fbsd-tdep.h: New file.
482 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
483 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
484 (ALLDEPFILES): Add fbsd-tdep.c.
486 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
488 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
490 * gdbarch.h: Regenerate.
491 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
493 (get_core_register_section): Add parameter 'regset' and use it, if
494 set. Add parameter 'min_size' and verify the bfd section size
496 (get_core_registers_cb): Add parameter 'regset' and pass it to
497 get_core_register section. For the "standard" register sections
498 ".reg" and ".reg2", set an appropriate default for human_name.
499 (get_core_registers): Don't abort when the gdbarch has an iterator
500 but no regset_from_core_section. Add NULL/0 for parameters
501 'regset'/'min_size' in calls to get_core_register_section.
502 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
503 'regset' and use it instead of calling the
504 regset_from_core_section gdbarch method.
505 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
506 * i386-tdep.c (i386_supply_xstateregset)
507 (i386_collect_xstateregset, i386_xstateregset): Moved to
509 (i386_regset_from_core_section): Drop handling for .reg-xfp and
511 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
512 core file support only if the regset iterator hasn't been set.
513 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
514 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
515 Moved from i386-tdep.c and renamed to *_linux*.
516 (i386_linux_iterate_over_regset_sections): Add regset parameter to
517 each callback invocation. Allow any .reg-xstate size when reading
519 * amd64-tdep.c (amd64_supply_xstateregset)
520 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
522 (amd64_regset_from_core_section): Remove.
523 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
524 install an amd64-specific regset_from_core_section gdbarch method.
525 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
526 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
527 Moved from amd64-tdep.c and renamed to *_linux*.
528 (amd64_linux_iterate_over_regset_sections): Add regset parameter
529 to each callback invocation. Allow any .reg-xstate size when
530 reading from a core file.
531 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
532 (arm_linux_iterate_over_regset_sections): Add regset parameter to
533 each callback invocation.
534 (arm_linux_init_abi): No longer set the regset_from_core_section
536 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
537 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
538 each callback invocation.
539 (ppc_linux_init_abi): No longer set the regset_from_core_section
541 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
542 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
543 (s390_regset_from_core_section): Remove.
544 (s390_iterate_over_regset_sections): Add regset parameter to each
546 (s390_gdbarch_init): No longer set the regset_from_core_section
547 gdbarch method. Drop initialization of deleted tdep fields.
549 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
551 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
552 (amd64_linux_iterate_over_regset_sections): New.
553 (amd64_linux_init_abi_common): Don't install the regset section
554 list, but the new iterator in gdbarch.
555 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
556 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
557 (arm_linux_iterate_over_regset_sections): ...here. New function.
558 (arm_linux_init_abi): Set iterator instead of section list.
559 * corelow.c (get_core_registers_cb): New function, logic moved
561 (get_core_registers): ...loop body here. Use new iterator method
562 instead of walking through the regset section list.
563 * gdbarch.sh: Remove 'core_regset_sections'. New method
564 'iterate_over_regset_sections'. New typedef
565 'iterate_over_regset_sections_cb'.
566 * gdbarch.c: Regenerate.
567 * gdbarch.h: Likewise.
568 * i386-linux-tdep.c (i386_linux_regset_sections)
569 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
571 (i386_linux_iterate_over_regset_sections): New.
572 (i386_linux_init_abi): Don't choose a regset section list, but
573 install new iterator in gdbarch.
574 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
575 (linux_collect_regset_section_cb): New function, logic moved
577 (linux_collect_thread_registers): ...loop body here. Use iterator
578 method instead of walking through list.
579 (linux_make_corefile_notes_1): Check for presence of iterator
580 method instead of regset section list.
581 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
582 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
583 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
584 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
585 (ppc_linux_iterate_over_regset_sections): ...here. New function.
586 (ppc_linux_init_abi): Don't choose from above regset section
587 lists, but install new iterator in gdbarch.
588 * regset.h (struct core_regset_section): Remove.
589 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
590 have_linux_v1, have_linux_v2, and have_tdb.
591 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
592 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
593 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
594 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
595 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
596 (s390_iterate_over_regset_sections): ...here. New function. Use
598 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
599 regset section lists, but install new iterator.
601 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
603 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
605 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
607 * progspace.c (print_program_space): Don't prune program spaces
608 before printing them.
610 2014-09-25 Pedro Alves <palves@redhat.com>
612 * infrun.c (user_visible_resume_ptid): Don't check
613 singlestep_breakpoints_inserted_p.
615 2014-09-25 Pedro Alves <palves@redhat.com>
617 * breakpoint.c (should_be_inserted): Add debug output.
619 2014-09-25 Pedro Alves <palves@redhat.com>
621 * infrun.c (stepping_past_instruction_at)
622 (clear_exit_convenience_vars): Point at infrun.h instead of
624 (handle_signal_stop): Fix typo.
626 2014-09-24 Yao Qi <yao@codesourcery.com>
628 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
631 2014-09-22 Gary Benson <gbenson@redhat.com>
633 * target.c (target_stop): Updated comment.
635 2014-09-22 Gary Benson <gbenson@redhat.com>
637 * target/target.h (target_stop_ptid): Renamed as...
638 (target_stop_and_wait): New function. Updated comment.
640 (target_continue_ptid): Renamed as...
641 (target_continue_no_signal): New function. Updated comment.
644 2014-09-22 Pedro Alves <palves@redhat.com>
646 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
648 * breakpoint.c (enum ugll_insert_mode): New enum.
649 (always_inserted_mode): Now a plain boolean.
650 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
651 (breakpoints_always_inserted_mode): Delete.
652 (breakpoints_should_be_inserted_now): New function.
653 (insert_breakpoints): Pass UGLL_INSERT to
654 update_global_location_list instead of calling
655 insert_breakpoint_locations manually.
656 (create_solib_event_breakpoint_1): New, factored out from ...
657 (create_solib_event_breakpoint): ... this.
658 (create_and_insert_solib_event_breakpoint): Use
659 create_solib_event_breakpoint_1 instead of calling
660 insert_breakpoint_locations manually.
661 (update_global_location_list): Change parameter type from boolean
662 to enum ugll_insert_mode. All callers adjusted. Adjust to use
663 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
664 (update_global_location_list_nothrow): Change parameter type from
665 boolean to enum ugll_insert_mode.
666 (_initialize_breakpoint): "breakpoint always-inserted" option is
667 now a boolean command. Update help text.
668 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
669 (breakpoints_should_be_inserted_now): New declaration.
670 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
671 Remove breakpoints_always_inserted_mode check.
672 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
673 * remote.c (remote_start_remote): Likewise.
675 2014-09-22 Pedro Alves <palves@redhat.com>
677 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
678 (insert_breakpoints): Don't call insert_breakpoint_locations here.
679 Instead, pass UGLL_INSERT to update_global_location_list.
680 (update_global_location_list): Change parameter type from boolean
681 to enum ugll_insert_mode. All callers adjusted. Adjust to use
682 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
683 (create_solib_event_breakpoint_1): New, factored out from ...
684 (create_solib_event_breakpoint): ... this.
685 (create_and_insert_solib_event_breakpoint): Use
686 create_solib_event_breakpoint_1 instead of calling
687 insert_breakpoint_locations manually.
688 (update_global_location_list): Handle UGLL_INSERT.
690 2014-09-22 Pedro Alves <palves@redhat.com>
692 * breakpoint.c (enum ugll_insert_mode): New enum.
693 (update_global_location_list)
694 (update_global_location_list_nothrow): Change parameter type from
695 boolean to enum ugll_insert_mode. All callers adjusted.
697 2014-09-19 Joel Brobecker <brobecker@adacore.com>
699 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
700 SystemTap support in GDB.
702 2014-09-19 Don Breazeal <donb@codesourcery.com>
704 * linux-nat.c (linux_handle_extended_wait): Call
705 linux_ptrace_get_extended_event.
706 (wait_lwp): Call linux_is_extended_waitstatus.
707 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
708 and linux_is_extended_waitstatus.
709 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
710 linux_ptrace_get_extended_event.
711 (linux_ptrace_get_extended_event): New function.
712 (linux_is_extended_waitstatus): New function.
713 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
714 (linux_is_extended_waitstatus): New declarations.
716 2014-09-19 Yao Qi <yao@codesourcery.com>
718 * dwarf2read.c (dwarf_decode_lines): Update declaration.
719 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
720 comments. Callers update.
721 (dwarf_decode_lines): Likewise.
722 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
723 comments. Skip the line table if 'lowpc' is greater than
724 'address'. Don't check
725 dwarf2_per_objfile->has_section_at_zero.
727 2014-09-18 Doug Evans <dje@google.com>
729 * NEWS: Mention new "producer" attribute of gdb.Symtab.
730 * python/py-symtab.c (stpy_get_producer): New function.
731 (symtab_object_getset): Add "producer" attribute.
733 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
736 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
737 (do_captured_read_memory_integer): Remove.
738 (safe_read_memory_integer): Use target_read_memory directly instead
739 of catching errors in do_captured_read_memory_integer.
741 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
743 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
746 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
748 * objc-lang.c (find_implementation_from_class): Remove dead code.
750 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
753 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
754 "fprintf_unfiltered (gdb_stdlog...)".
756 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
759 * breakpoint.h (struct watchpoint): New fields val_bitpos and
761 * breakpoint.c (watch_command_1): Use these fields to retain
762 bitfield information.
763 (extract_bitfield_from_watchpoint_value): New function.
764 (watchpoint_check): Use it.
765 (update_watchpoint): Use it. Optimize the address and length of a
766 HW watchpoint pointing to a bitfield.
767 * value.h (unpack_value_bitfield): New prototype.
768 * value.c (unpack_value_bitfield): Make extern.
770 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
772 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
774 * gnu-nat.c (inf_threads): New function.
775 * gnu-nat.h (inf_threads_ftype): New typedef.
776 (inf_threads): New declaration.
777 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
778 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
779 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
780 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
781 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
782 (i386_gnu_dr_get_control): New functions.
783 (reg_addr): New structure.
784 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
785 i386 debugging register hooks.
786 * NEWS: Mention this.
788 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
790 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
791 vector data transfer instructions.
792 (arm_record_coproc_data_proc): Updated.
794 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
796 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
797 arm_record_exreg_ld_st_insn.
798 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
801 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
803 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
804 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
805 processing instructions.
807 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
809 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
810 for advance SIMD struct ld/st insn.
811 (thumb2_record_decode_insn_handler): Replace stub handler with
812 thumb2_record_asimd_struct_ld_st.
814 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
816 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
817 for asimd, vfp and coprocessor insns.
818 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
819 and coprocessor insns.
820 (thumb2_record_coproc_insn): New function.
821 (thumb2_record_decode_insn_handler): Update coprocessor insns record
823 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
826 2014-09-13 Doug Evans <xdje42@gmail.com>
828 * NEWS: Mention new "queue-signal" command.
829 * infcmd.c (queue_signal_command): New function.
830 (_initialize_infcmd): Add new queue-signal command.
832 2014-09-13 Doug Evans <xdje42@gmail.com>
834 * linux-nat.c (wait_lwp): Add debugging printf.
835 (linux_nat_wait_1): Ditto.
837 2014-09-12 Pedro Alves <palves@redhat.com>
839 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
840 (create_and_insert_solib_event_breakpoint): New functions.
841 * breakpoint.h (create_and_insert_solib_event_breakpoint)
842 (remove_solib_event_breakpoints_at_next_stop): New declarations.
843 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
844 (remove_dbx_link_breakpoint): Delete function.
845 (insert_dbx_link_bpt_in_file): Use
846 create_and_insert_solib_event_breakpoint instead of
847 deprecated_insert_raw_breakpoint.
848 (procfs_wait): Don't check whether we hit __dbx_link here.
849 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
851 * solib-irix.c (base_breakpoint): Delete global.
852 (disable_break): Delete function.
853 (enable_break): Use create_solib_event_breakpoint
854 instead of deprecated_insert_raw_breakpoint.
855 (irix_solib_handle_event): New function.
856 (irix_solib_create_inferior_hook): Don't run the target or disable
857 the mapping-complete breakpoint here.
858 (_initialize_irix_solib): Install irix_solib_handle_event as
859 so_ops->handle_event hook.
861 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
862 Ulrich Weigand <uweigand@de.ibm.com>
865 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
866 instead of read_memory_unsigned_integer.
868 2014-09-12 Gary Benson <gbenson@redhat.com>
870 * nat/linux-waitpid.c: Include common-defs.h.
871 [GDBSERVER]: Add FIXME comment.
872 [!GDBSERVER]: Don't include defs.h or signal.h.
873 (linux_debug) [!GDBSERVER]: Remove empty block.
875 2014-09-12 Gary Benson <gbenson@redhat.com>
877 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
878 Don't include defs.h or server.h.
880 2014-09-12 Gary Benson <gbenson@redhat.com>
882 * nat/linux-btrace.c: Include common-defs.h.
883 Don't include defs.h, server.h or gdbthread.h.
884 * nat/linux-btrace.h (struct target_ops): New forward declaration.
886 2014-09-12 Gary Benson <gbenson@redhat.com>
888 * common/agent.c: Include common-defs.h.
889 Don't include defs.h or server.h.
890 * common/buffer.c: Likewise.
891 * common/common-debug.c: Likewise.
892 * common/common-utils.c: Likewise.
893 * common/errors.c: Likewise.
894 * common/filestuff.c: Likewise.
895 * common/format.c: Likewise.
896 * common/gdb_vecs.c: Likewise.
897 * common/print-utils.c: Likewise.
898 * common/ptid.c: Likewise.
899 * common/rsp-low.c: Likewise.
900 * common/signals.c: Likewise.
901 * common/vec.c: Likewise.
902 * common/xml-utils.c: Likewise.
903 * nat/linux-osdata.c: Likewise.
904 * nat/linux-procfs.c: Likewise.
905 * nat/linux-ptrace.c: Likewise.
906 * nat/mips-linux-watch.c: Likewise.
907 * target/waitstatus.c: Likewise.
909 2014-09-12 Tom Tromey <tromey@redhat.com>
910 Gary Benson <gbenson@redhat.com>
912 * common/common-regcache.h: New file.
913 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
914 * regcache.h: Include common-regcache.h.
915 (regcache_read_pc): Don't declare.
916 * regcache.c (get_thread_regcache_for_ptid): New function.
917 * nat/linux-btrace.c: Don't include regcache.h.
918 Include common-regcache.h.
919 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
921 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
923 * regcache.h (struct regset): Declare.
925 2014-09-11 Pedro Alves <palves@redhat.com>
928 * main.c: Include "infrun.h".
929 (catch_command_errors, catch_command_errors_const): Wait for the
930 foreground command to complete.
931 * top.c (maybe_wait_sync_command_done): New function, factored out
933 (maybe_wait_sync_command_done): ... here.
934 * top.h (maybe_wait_sync_command_done): New declaration.
936 2014-09-11 Tom Tromey <tromey@redhat.com>
937 Gary Benson <gbenson@redhat.com>
939 * common/symbol.h: New file.
940 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
941 * minsyms.c (find_minimal_symbol_address): New function.
942 * common/agent.c: Include common/symbol.h.
943 [!GDBSERVER]: Don't include objfiles.h.
944 (agent_look_up_symbols): Use find_minimal_symbol_address.
946 2014-09-11 Gary Benson <gbenson@redhat.com>
948 * target/target.h (target_stop_ptid, target_continue_ptid):
950 * target.c (target_stop_ptid, target_continue_ptid): New
952 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
953 (agent_run_command): Always use target_stop_ptid and
954 target_continue_ptid.
956 2014-09-11 Tom Tromey <tromey@redhat.com>
957 Gary Benson <gbenson@redhat.com>
959 * target/target.h: New file.
960 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
961 * target.h: Include target/target.h.
962 (target_read_memory, target_write_memory): Don't declare.
963 * target.c (target_read_uint32): New function.
964 * common/agent.c: Include target/target.h.
965 [!GDBSERVER]: Don't include target.h.
966 (helper_thread_id): Type changed to uint32_t.
967 (agent_get_helper_thread_id): Use target_read_uint32.
968 (agent_run_command): Always use target_read_memory and
970 (agent_capability): Type changed to uint32_t.
971 (agent_capability_check): Use target_read_uint32.
973 2014-09-11 Gary Benson <gbenson@redhat.com>
975 * common/common-debug.h (show_debug_regs): Declare.
976 * common/common-debug.c (show_debug_regs): Define.
977 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
978 all uses with show_debug_regs. Replace all uses that considered
979 debug_hw_points as a multi-value integer with straight boolean
981 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
982 with show_debug_regs.
983 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
984 all uses with show_debug_regs.
985 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
986 uses with show_debug_regs.
988 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
990 * findvar.c (address_from_register): Handle targets requiring
991 a special conversion routine even for plain pointer types.
993 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
995 * rs6000-nat.c (exec_one_dummy_insn): Remove.
996 (store_register): Do not call exec_one_dummy_insn.
998 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1000 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1001 dereference it first. Use value_enclosing_type instead of
1003 (ada_array_length): Likewise.
1005 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1007 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1008 Adjust function implementation and documentation accordingly.
1009 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1010 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1011 Update call to ada_value_ptr_subscript.
1013 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1015 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1016 instead of VAL's type.
1018 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1020 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1022 2014-09-09 Doug Evans <xdje42@gmail.com>
1025 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1026 last parameter to pkg-config, not first.
1027 * configure.ac: Pass --with-guile provided pkg-config path to
1028 GDB_GUILE_PROGRAM_NAMES.
1029 * configure: Regenerate.
1031 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1033 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1036 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1038 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1039 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1040 the list of sections determining GDB_OSABI_IRIX.
1042 2014-09-09 James Hogan <james.hogan@imgtec.com>
1044 * MAINTAINERS (Write After Approval): Add "James Hogan".
1046 2014-09-09 James Hogan <james.hogan@imgtec.com>
1048 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1050 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1052 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1054 2014-09-08 Doug Evans <xdje42@gmail.com>
1057 * guile.c: #include <signal.h>.
1058 (_initialize_guile): Block SIGCHLD while initializing Guile.
1060 Replaces the following, which is reverted.
1062 2014-07-26 Doug Evans <xdje42@gmail.com>
1065 * configure.ac: Add check for header gc/gc.h.
1066 Add check for function setenv.
1067 * configure: Regenerate.
1068 * config.in: Regenerate.
1069 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1071 2014-09-08 Doug Evans <xdje42@gmail.com>
1073 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1074 with named constant. Fix style of pointer comparison.
1075 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1077 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1080 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1081 decide whether we display the command on "show user".
1082 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1083 printing command name.
1084 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1085 * cli/cli-decode.c (cli_user_command_p): Create helper function
1086 to verify whether cmd_list_element is a user-defined command.
1088 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1091 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1092 Fix goto out of TRY_CATCH.
1094 2014-09-06 Doug Evans <xdje42@gmail.com>
1095 Tom Tromey <tromey@redhat.com>
1098 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1099 $_any_caller_matches.
1100 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1101 * python/lib/gdb/function/caller_is.py: New file.
1103 2014-09-06 Doug Evans <xdje42@gmail.com>
1105 * infcmd.c (program_info): Fix typo.
1107 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1110 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1111 'number'. New variable 'has_digit'. Rewrite code to deal with
1112 subexpressions on SDT probes.
1114 2014-09-04 Pedro Alves <palves@redhat.com>
1116 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1117 the input is only one character long.
1119 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1122 * f-valprint.c (f_val_print): Specify the correct print option to
1123 use when printing integer values.
1125 2014-09-04 Gary Benson <gbenson@redhat.com>
1127 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1128 Remove code to cope with LWPs wrapped as PIDs.
1129 Add assertions to ensure no wrapped LWPs are passed.
1131 2014-09-04 Pedro Alves <palves@redhat.com>
1133 * value.c (value_ranges_copy_adjusted): New function, factored out
1135 (value_contents_copy_raw): ... here.
1136 (unpack_value_bits_as_long_1): Rename back to ...
1137 (unpack_bits_as_long): ... this. Remove 'original_value' and
1138 'result' parameters. Change return type to LONGEST.
1139 (unpack_value_bits_as_long): Delete.
1140 (unpack_value_field_as_long_1): Delete.
1141 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1142 (unpack_value_bitfield): New function.
1143 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1144 (value_fetch_lazy): Use unpack_value_bitfield.
1145 * value.h (unpack_value_bits_as_long): Delete declaration.
1147 2014-09-03 Sasha Smundak <asmundak@google.com>
1149 * python/py-frame.c (frapy_read_register): New function.
1151 2014-09-03 James Hogan <james.hogan@imgtec.com>
1153 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1154 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1156 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1159 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1161 (add_cmd): Set "completer_handle_brkchars" to NULL.
1162 * cli/cli-decode.h (struct cmd_list_element)
1163 <completer_handle_brkchars>: New field.
1164 * command.h (completer_ftype_void): New typedef.
1165 (set_cmd_completer_handle_brkchars): New prototype.
1166 * completer.c (set_gdb_completion_word_break_characters): New
1168 (complete_line_internal): Call "completer_handle_brkchars"
1169 callback from command.
1170 * completer.h: Include "command.h".
1171 (set_gdb_completion_word_break_characters): New prototype.
1172 * python/py-cmd.c (cmdpy_completer_helper): New function.
1173 (cmdpy_completer_handle_brkchars): New function.
1174 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1175 (cmdpy_init): Set completer_handle_brkchars to
1176 cmdpy_completer_handle_brkchars.
1178 2014-09-03 Gary Benson <gbenson@redhat.com>
1180 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1181 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1182 Loop conditions changed to equivalent form.
1183 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1184 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1185 ALL_DEBUG_ADDRESS_REGISTERS.
1187 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1189 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1192 2014-09-02 Doug Evans <dje@google.com>
1194 * typeprint.c (find_global_typedef): Fix comment.
1196 2014-09-02 Gary Benson <gbenson@redhat.com>
1198 * i386-nat.h: Renamed as...
1199 * x86-nat.h: New file. All type, function and variable name
1200 prefixes changed from "i386_" to "x86_". All references updated.
1201 * i386-nat.c: Renamed as...
1202 * x86-nat.c: New file. All type, function and variable name
1203 prefixes changed from "i386_" to "x86_". All references updated.
1204 * common/i386-xstate.h: Renamed as...
1205 * common/x86-xstate.h: New file. All type, function and variable
1206 name prefixes changed from "i386_" to "x86_". All references
1208 * nat/i386-cpuid.h: Renamed as...
1209 * nat/x86-cpuid.h: New file. All type, function and variable name
1210 prefixes changed from "i386_" to "x86_". All references updated.
1211 * nat/i386-gcc-cpuid.h: Renamed as...
1212 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1213 name prefixes changed from "i386_" to "x86_". All references
1215 * nat/i386-dregs.h: Renamed as...
1216 * nat/x86-dregs.h: New file. All type, function and variable name
1217 prefixes changed from "i386_" to "x86_". All references updated.
1218 * nat/i386-dregs.c: Renamed as...
1219 * nat/x86-dregs.c: New file. All type, function and variable name
1220 prefixes changed from "i386_" to "x86_". All references updated.
1222 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1224 * varobj.c (_initialize_varobj): Move to the end of file.
1226 2014-08-29 Gary Benson <gbenson@redhat.com>
1228 * common/common-exceptions.h: New file.
1229 * common/common-exceptions.c: Likewise.
1230 * Makefile.in (SFILES): Add common/common-exceptions.c.
1231 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1232 (COMMON_OBS): Add common-exceptions.o.
1233 (common-exceptions.o): New rule.
1234 * exceptions.h (common-exceptions.h): Include.
1235 (gdb_setjmp.h): Do not include.
1236 (return_reason): Moved to common-exceptions.h.
1237 (enum return_reason): Likewise.
1238 (RETURN_MASK): Likewise.
1239 (typedef return_mask): Likewise.
1240 (enum errors): Likewise.
1241 (struct gdb_exception): Likewise.
1242 (exceptions_state_mc_init): Likewise.
1243 (exceptions_state_mc_action_iter): Likewise.
1244 (exceptions_state_mc_action_iter_1): Likewise.
1245 (TRY_CATCH): Likewise.
1246 (throw_exception): Likewise.
1247 (throw_verror): Likewise.
1248 (throw_vquit): Likewise.
1249 (throw_error): Likewise.
1250 (throw_quit): Likewise.
1251 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1252 (enum catcher_action): Likewise.
1253 (struct catcher): Likewise.
1254 (current_catcher): Likewise.
1255 (catcher_list_size): Likewise.
1256 (exceptions_state_mc_init): Likewise.
1257 (catcher_pop): Likewise.
1258 (exceptions_state_mc): Likewise.
1259 (exceptions_state_mc_action_iter): Likewise.
1260 (exceptions_state_mc_action_iter_1): Likewise.
1261 (throw_exception): Likewise.
1262 (exception_messages): Likewise.
1263 (exception_messages_size): Likewise.
1264 (throw_it): Likewise.
1265 (throw_verror): Likewise.
1266 (throw_vquit): Likewise.
1267 (throw_error): Likewise.
1268 (throw_quit): Likewise.
1269 (prepare_to_throw_exception): New function.
1271 2014-08-29 Gary Benson <gbenson@redhat.com>
1273 * common/gdb_setjmp.h: New file.
1274 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1275 * configure.ac: Move sigsetjmp check...
1276 * common/common.m4: ...here.
1277 * configure: Regenerate.
1278 * cp-support.c (SIGJMP_BUF): Delete.
1279 (SIGSETJMP): Likewise.
1280 (SIGLONGJMP): Likewise.
1281 * exceptions.h (gdb_setjmp.h): Include.
1282 (setjmp.h): Do not include.
1283 (EXCEPTIONS_SIGJMP_BUF): Delete.
1284 (EXCEPTIONS_SIGSETJMP): Likewise.
1285 (EXCEPTIONS_SIGLONGJMP): Likewise.
1286 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1288 * exceptions.c: Likewise.
1290 2014-08-29 Gary Benson <gbenson@redhat.com>
1292 * cleanups.h: Moved to...
1293 * common/cleanups.h: New file.
1294 * cleanups.c: Moved to...
1295 * common/cleanups.c: New file. Include common-defs.h and
1296 cleanups.h. Do not include defs.h.
1297 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1298 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1299 (cleanups.o): New rule.
1301 2014-08-29 Gary Benson <gbenson@redhat.com>
1303 * common/errors.h (internal_warning): New declaration.
1304 (internal_vwarning): Likewise.
1305 * common/errors.c (internal_warning): New function.
1306 * utils.h (internal_warning): Don't declare.
1307 (internal_vwarning): Likewise.
1308 * utils.c (internal_warning): Removed.
1310 2014-08-29 Gary Benson <gbenson@redhat.com>
1312 * main.c (captured_main): Use warning during startup.
1313 Prefix startup warning messages with command name.
1315 2014-08-29 Gary Benson <gbenson@redhat.com>
1317 * main.c (captured_main): Handle usage errors with error.
1319 2014-08-29 Gary Benson <gbenson@redhat.com>
1321 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1322 exit pair with a call to error. Wrap the message with _().
1324 2014-08-29 Gary Benson <gbenson@redhat.com>
1326 * main.c (captured_main): Replace a fprintf/exit
1327 pair with a call to error. Wrap the message with _().
1329 2014-08-29 Gary Benson <gbenson@redhat.com>
1331 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1332 pairs with calls to error. Wrap the message with _().
1334 2014-08-29 Gary Benson <gbenson@redhat.com>
1336 * utils.c (vwarning): Protect calls to target_terminal_ours
1339 2014-08-29 Gary Benson <gbenson@redhat.com>
1341 * exceptions.c (print_flush): Protect calls to
1342 target_terminal_ours and wrap_here.
1344 2014-08-29 Gary Benson <gbenson@redhat.com>
1346 * utils.h (filtered_printing_initialized): New declaration.
1347 * utils.c (abort_with_message): New function.
1348 (internal_vproblem): Use abort_with_message for first level
1349 recursive internal problems, and if gdb_stderr is not set up.
1350 Protect calls to target_terminal_ours, begin_line and query.
1352 2014-08-28 Doug Evans <dje@google.com>
1354 * symtab.c (in_prologue): Move definition to better spot.
1355 (skip_prologue_using_sal): Ditto.
1357 2014-08-28 Doug Evans <dje@google.com>
1359 * symtab.c (find_function_start_sal): Move definition to better spot.
1361 2014-08-28 Yao Qi <yao@codesourcery.com>
1363 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1364 found_stack_adjust in forward scan. Remove condition check
1365 on found_stack_adjust which is always true. Indent the code.
1367 2014-08-28 Yao Qi <yao@codesourcery.com>
1369 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1370 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1371 (dwarf_decode_lines): Remove argument
1372 want_line_info. Remove condition check on want_line_info.
1375 2014-08-27 Doug Evans <dje@google.com>
1377 * dwarf2read.c (dwarf_record_line): Fix typo.
1379 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1381 * target.h (struct target_ops::to_terminal_save_ours): Remove
1383 (target_terminal_save_ours): Remove macro.
1384 * target-delegates.c: Regenerate.
1385 * inf-child.c (inf_child_target): Don't set the nonexistent
1386 field to_terminal_save_ours.
1387 * inferior.h (child_terminal_save_ours): Remove declaration.
1388 * terminal.h (gdb_save_tty_state): New declaration.
1389 * inflow.c (child_terminal_save_ours): Rename to ...
1390 (gdb_save_tty_state): ... this.
1391 * tui/tui.c: Include terminal.h.
1392 (tui_enable): Use gdb_save_tty_state instead of
1393 target_terminal_save_ours.
1394 (tui_disable): Likewise.
1396 2014-08-25 Doug Evans <dje@google.com>
1398 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1399 Pass NULL instead of 0 for context pointer.
1401 2014-08-25 Yao Qi <yao@codesourcery.com>
1403 * dwarf2read.c: Fix grammatical error.
1405 2014-08-24 Yao Qi <yao@codesourcery.com>
1407 * dwarf2read.c (scan_partial_symbols): Update comments.
1408 Rename argument 'need_pc' with 'set_addrmap'.
1409 (add_partial_namespace): Rename argument 'need_pc' with
1411 (add_partial_module): Likewise.
1412 (add_partial_subprogram): Likewise. Update comments.
1413 (dwarf2_name): Fix typo.
1415 2014-08-22 Doug Evans <dje@google.com>
1418 * dwarf2read.c (dwarf_record_line_p): New function.
1419 (dwarf_decode_lines_1): Ignore subsequent line number entries
1420 for the same line if any entry had a non-zero discriminator.
1422 2014-08-22 Doug Evans <dje@google.com>
1424 * buildsym.h (record_line_ftype): New typedef.
1425 (record_line): Use it.
1426 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1427 (dwarf_decode_lines_1): Call them.
1429 2014-08-22 Yao Qi <yao@codesourcery.com>
1431 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1432 (ctf_end): Remove code.
1434 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1436 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1437 (linux_make_corefile_notes): call update_thread_list, protected against
1440 2014-08-21 Pedro Alves <palves@redhat.com>
1442 * infcmd.c (attach_command): Remove comment.
1444 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1446 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1447 unsigned LONGEST to ULONGEST.
1449 2014-08-20 Pedro Alves <palves@redhat.com>
1451 * Makefile.in (check-read1): New rule.
1453 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1455 * value.c (value_from_contents_and_address): Strip resolved_type's
1456 typedef layers before checking its TYPE_DATA_LOCATION.
1458 2014-08-20 Pedro Alves <palves@redhat.com>
1460 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1462 2014-08-20 Yao Qi <yao@codesourcery.com>
1464 * amd64-tdep.c (amd64_classify): Add a blank line after the
1465 example. Move "*/" to a new line.
1466 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1467 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1468 * dwarf2read.c (psymtab_include_file_name): Likewise.
1470 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1471 Pedro Alves <palves@redhat.com>
1475 * ada-lang.c (coerce_unspec_val_to_type): Use
1476 value_contents_copy_raw.
1477 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1478 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1479 * cp-valprint.c (cp_print_value_fields): Let the common printing
1480 code handle optimized out values.
1481 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1482 * d-valprint.c (dynamic_array_type): Use
1483 value_bits_any_optimized_out.
1484 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1485 check_any_valid fields.
1486 (check_pieced_value_bits): Delete and inline ...
1487 (check_pieced_synthetic_pointer): ... here.
1488 (check_pieced_value_validity): Delete.
1489 (check_pieced_value_invalid): Delete.
1490 (pieced_value_funcs): Remove check_validity and check_any_valid
1492 (read_pieced_value): Use mark_value_bits_optimized_out.
1493 (write_pieced_value): Switch to use
1494 mark_value_bytes_optimized_out.
1495 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1496 of assuming the whole value is optimized out.
1497 * findvar.c (read_frame_register_value): Remove special handling
1498 of optimized out registers.
1499 (value_from_register): Use mark_value_bytes_optimized_out.
1500 * frame-unwind.c (frame_unwind_got_optimized): Use
1501 mark_value_bytes_optimized_out.
1502 * jv-valprint.c (java_value_print): Adjust.
1503 (java_print_value_fields): Let the common printing code handle
1504 optimized out values.
1505 * mips-tdep.c (mips_print_register): Remove special handling of
1506 optimized out registers.
1507 * opencl-lang.c (lval_func_check_validity): Delete.
1508 (lval_func_check_any_valid): Delete.
1509 (opencl_value_funcs): Remove check_validity and check_any_valid
1511 * p-valprint.c (pascal_object_print_value_fields): Let the common
1512 printing code handle optimized out values.
1513 * stack.c (read_frame_arg): Remove special handling of optimized
1514 out values. Fetch both VAL and ENTRYVAL before comparing
1515 contents. Adjust to value_available_contents_eq rename.
1516 * valprint.c (valprint_check_validity)
1517 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1518 (val_print_array_elements): Adjust.
1519 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1520 (value_bits_any_optimized_out): New function.
1521 (value_entirely_covered_by_range_vector): New function, factored
1522 out from value_entirely_unavailable.
1523 (value_entirely_unavailable): Reimplement.
1524 (value_entirely_optimized_out): New function.
1525 (insert_into_bit_range_vector): New function, factored out from
1526 mark_value_bits_unavailable.
1527 (mark_value_bits_unavailable): Reimplement.
1528 (struct ranges_and_idx): New struct.
1529 (find_first_range_overlap_and_match): New function, factored out
1530 from value_available_contents_bits_eq.
1531 (value_available_contents_bits_eq): Rename to ...
1532 (value_contents_bits_eq): ... this. Check both unavailable
1533 contents and optimized out contents.
1534 (value_available_contents_eq): Rename to ...
1535 (value_contents_eq): ... this.
1536 (allocate_value_lazy): Remove reference to the old optimized_out
1538 (allocate_optimized_out_value): Use
1539 mark_value_bytes_optimized_out.
1540 (require_not_optimized_out): Adjust to check whether the
1541 optimized_out vec is empty.
1542 (ranges_copy_adjusted): New function, factored out from
1543 value_contents_copy_raw.
1544 (value_contents_copy_raw): Also copy the optimized out ranges.
1545 Assert the destination ranges aren't optimized out.
1546 (value_contents_copy): Update comment, remove call to
1547 require_not_optimized_out.
1548 (value_contents_equal): Adjust to check whether the optimized_out
1550 (set_value_optimized_out, value_optimized_out_const): Delete.
1551 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1553 (value_entirely_optimized_out, value_bits_valid): Delete.
1554 (value_copy): Take a VEC copy of the 'optimized_out' field.
1555 (value_primitive_field): Remove special handling of optimized out.
1556 (value_fetch_lazy): Assert that lazy values have no unavailable
1557 regions. Use value_bits_any_optimized_out. Remove some special
1558 handling for optimized out values.
1559 * value.h: Add intro comment about <optimized out> and
1561 (struct lval_funcs): Remove check_validity and check_any_valid
1563 (set_value_optimized_out, value_optimized_out_const): Remove.
1564 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1566 (value_bits_any_optimized_out): New declaration.
1567 (value_bits_valid): Delete declaration.
1568 (value_available_contents_eq): Rename to ...
1569 (value_contents_eq): ... this, and extend comments.
1571 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1573 Fix -fsanitize=address on unreadable inferior strings.
1574 * valprint.c (val_print_string): Fix access before BUFFER.
1576 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1578 * target.c (target_struct_size): Remove.
1579 (target_struct_allocsize): Remove.
1580 (DEFAULT_ALLOCSIZE): Remove.
1581 (target_ops_p): New typedef.
1582 (DEF_VEC_P (target_ops_p)): New vector type.
1583 (target_structs): Change type to VEC (target_ops_p).
1584 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1585 (find_default_run_target): Rewrite for loop following changes to
1588 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1590 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1591 Adjust code accordingly. Adjust function description comment.
1593 2014-08-19 Yao Qi <yao@codesourcery.com>
1595 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1598 2014-08-19 Alan Modra <amodra@gmail.com>
1600 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1601 * config.in: Regenerate.
1602 * configure: Regenerate.
1604 2014-08-19 Tom Tromey <tromey@redhat.com>
1605 Gary Benson <gbenson@redhat.com>
1607 * common/common-debug.h: New file.
1608 * common/common-debug.c: Likewise.
1609 * debug.c: Likewise.
1610 * Makefile.in (SFILES): Add common/common-debug.c.
1611 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1612 (COMMON_OBS): Add common-debug.o and debug.o.
1613 (common-debug.o): New rule.
1614 * common/common-defs.h: Include common-debug.h.
1615 * common/agent.c (debug_agent_printf): New function.
1616 (DEBUG_AGENT): Redefine.
1617 * nat/i386-dregs.c (debug_printf): Undefine.
1619 2014-08-19 Gary Benson <gbenson@redhat.com>
1621 * common/common-defs.h: Include print-utils.h.
1622 * utils.h: Do not include print-utils.h.
1624 2014-08-19 Tom Tromey <tromey@redhat.com>
1625 Gary Benson <gbenson@redhat.com>
1627 * common/common-types.h: New file.
1628 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1629 * common/common-defs.h: Include common-types.h.
1630 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1633 2014-08-19 Tom Tromey <tromey@redhat.com>
1634 Gary Benson <gbenson@redhat.com>
1636 * common/errors.h: New file.
1637 * common/errors.c: Likewise.
1638 * Makefile.in (SFILES): Add common/errors.c.
1639 (HFILES_NO_SRCDIR): Add common/errors.h.
1640 (COMMON_OBS): Add errors.o.
1641 (errors.o): New rule.
1642 * common/common-defs.h: Include errors.h.
1643 * utils.h (perror_with_name, error, verror, warning, vwarning):
1645 * common/common-utils.h: (malloc_failure, internal_error):
1648 2014-08-19 Gary Benson <gbenson@redhat.com>
1650 * utils.c (internal_vproblem): Always print the message.
1652 2014-08-18 Doug Evans <dje@google.com>
1654 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1656 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1658 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1659 Return 0 if TYPE is dynamic.
1660 (print_range): Add handling of dynamic ranges.
1662 2014-08-18 Keven Boell <keven.boell@intel.com>
1663 Joel Brobecker <brobecker@adacore.com>
1665 * gdbtypes.h (struct main_type): Add field "data_location".
1666 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1667 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1668 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1669 a dynamic data location.
1670 (resolve_dynamic_type): Add DW_AT_data_location handling.
1671 (copy_recursive, copy_type): Copy the data_location information
1673 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1674 * value.c (value_from_contents_and_address): Add
1675 DW_AT_data_location handling.
1677 2014-08-18 Keven Boell <keven.boell@intel.com>
1678 Joel Brobecker <brobecker@adacore.com>
1680 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1681 field "get_object_address".
1682 * dwarf2expr.c (execute_stack_op): Add handling for
1683 DW_OP_push_object_address.
1684 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1685 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1686 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1687 (dwarf_expr_get_obj_addr): New function.
1688 (dwarf_expr_ctx_funcs): Add get_object_address field.
1689 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1690 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1691 (dwarf2_evaluate_property): Add parameter "address". Use it.
1692 (needs_get_obj_addr): New function.
1693 (needs_frame_ctx_funcs): Add get_object_address field.
1694 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1695 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1696 (resolve_dynamic_array): Likewise.
1698 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1700 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1701 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1702 fixed value for records and unions for which some GNAT encodings
1705 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1707 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1708 rewrite to avoid "else if" and "else" constructs. Should be
1709 a no-op in practice.
1711 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1713 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1716 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1719 * eval.c: Update all calls to find_overload_match.
1720 * valarith.c: Likewise.
1721 (value_user_defined_cpp_op, value_user_defined_op): New
1722 argument NOSIDE. Update all callers.
1723 * valops.c (find_overload_match): New argument NOSIDE.
1724 * value.h (find_overload_match): Update signature.
1726 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1728 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1729 'items' methods instead of 'iteritems' method on dictionaries.
1731 2014-08-15 Doug Evans <dje@google.com>
1733 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1736 2014-08-15 Doug Evans <dje@google.com>
1738 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1740 2014-08-15 Doug Evans <dje@google.com>
1742 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1744 2014-08-15 Doug Evans <dje@google.com>
1746 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1749 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1751 * dcache.h: Include target.h, to avoid compile time warnings.
1753 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1755 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1756 frame_info" partial declaration.
1757 * gdbarch.h: Regenerate.
1759 2014-08-15 Yao Qi <yao@codesourcery.com>
1761 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1762 Add parameter 'decode_for_pst_p'. Callers update.
1764 2014-08-13 Yao Qi <yao@codesourcery.com>
1767 * configure.ac: Use local variable 'pos'.
1768 * configure: Regenerated.
1770 2014-08-11 Doug Evans <dje@google.com>
1772 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1773 message, it is redundant with "Reading symbols from ..." message.
1775 2014-08-10 Doug Evans <xdje42@gmail.com>
1777 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1779 2014-08-09 Yao Qi <yao@codesourcery.com>
1782 * remote.c (remote_xfer_partial): Remove dead code.
1784 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1786 * ia64-linux-tdep.c: Include "regset.h".
1787 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1788 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1789 (ia64_linux_supply_fpregset): New function.
1790 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1791 (ia64_linux_regset_from_core_section): New function.
1792 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1795 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1797 * m68klinux-tdep.c: Include "regset.h".
1798 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1799 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1800 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1801 (m68k_linux_regset_from_core_section): New function.
1802 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1805 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1807 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1808 function. Move logic to...
1809 (tilegx_linux_regmap): ... this new register map.
1810 (tilegx_linux_regset): Refer to register map, replace supply
1811 method by regcache_supply_regset, and add collect method.
1812 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1813 TILEGX_FIRST_EASY_REGNUM.
1815 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1817 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1818 that calls regcache_supply_regset and handles the EPC register
1819 separately. Move main logic to...
1820 (score7_linux_gregmap): ... this new register map.
1821 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1822 (score7_linux_gregset): Refer to register map. Add collect method.
1823 (score7_linux_regset_from_core_section): Replace
1824 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1825 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1826 (struct regset): Delete unused forward declaraction.
1827 (struct pt_regs): Delete structure definition.
1828 (elf_gregset_t): Delete typedef.
1830 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1832 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1833 (nios2_core_regset): Add collect method.
1835 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1837 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1838 platform-independent and don't write to read-only input buffer.
1839 (m32r_linux_collect_gregset): New function.
1840 (m32r_linux_gregset): Add collect method.
1842 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1844 * hppa-linux-tdep.c (greg_map): Rename to...
1845 (hppa_linux_gregmap): ... this. Also convert to
1846 regcache_map_entry format.
1847 (hppa_linux_supply_regset): Delete function.
1848 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1849 (hppa_linux_fpregmap): ... this new register map.
1850 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1851 register map, replace supply method by regcache_supply_regset, and
1852 add collect method regcache_collect_regset.
1854 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1856 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1857 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1858 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1859 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1860 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1861 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1862 (frv_linux_supply_gregset): Replace main logic by call to
1863 regcache_supply_regset, but keep clearing gr32-gr63.
1864 (frv_linux_supply_fpregset): Delete function.
1865 (frv_linux_gregset): Refer to appropriate register map and add
1866 regcache_collect_regset as the collect method.
1867 (frv_linux_fpregset): Likewise. Also exchange the supply method
1868 by regcache_supply_regset.
1870 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1872 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1873 by call to alpha_supply_int_regs.
1874 (alpha_linux_collect_gregset): New function.
1875 (alpha_linux_supply_fpregset): Replace logic by call to
1876 alpha_supply_fp_regs.
1877 (alpha_linux_collect_fpregset): New function.
1878 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1880 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1882 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1883 by call to regcache_collect_regset.
1884 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1885 instead of aarch64_linux_supply_gregset/_fpregset.
1886 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1887 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1888 header file instead.
1889 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1890 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1891 functions. Move logic to ...
1892 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1894 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1895 refer to new register maps, replace *_regset_from_core by
1896 regcache_supply_regset, and also use regcache_collect_regset.
1897 * aarch64-linux-tdep.h: Include "regset.h".
1898 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1900 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1901 macros, moved from C source file.
1902 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1903 variable declarations.
1905 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1907 * s390-linux-nat.c: Include "regset.h".
1908 (regmap_gregset): Delete macro.
1909 (s390_64_regmap_gregset): New register map for
1910 regcache_supply/_collect_regset.
1911 (s390_64_gregset): New regset.
1912 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1913 (regmap_fpregset): Delete macro.
1914 (s390_native_supply, s390_native_collect): Delete functions.
1915 (supply_gregset, fill_gregset): Replace s390-specific regmap
1916 handling by a call to regcache_supply/_collect_regset.
1917 (supply_fpregset, fill_fpregset): Call regcache_supply/
1918 _collect_regset instead of s390_native_supply/_collect.
1919 (fetch_regset, store_regset): Likewise. Also change the last
1920 parameter to a regset instead of a regmap.
1921 (s390_linux_fetch_inferior_registers)
1922 (390_linux_store_inferior_registers): Adjust last parameter in
1923 calls to fetch_regset and store_regset.
1924 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1925 (s390_gregmap): ... this. Also make static const and convert to
1926 regcache_map_entry format.
1927 (s390x_regmap_gregset): Delete.
1928 (s390_regmap_fpregset): Rename to...
1929 (s390_fpregmap): ... this. Make static const and convert to
1930 regcache_map_entry format.
1931 (s390_regmap_upper, s390_regmap_last_break)
1932 (s390x_regmap_last_break, s390_regmap_system_call)
1933 (s390_regmap_tdb): Likewise.
1934 (s390_supply_regset, s390_collect_regset): Remove functions.
1935 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1937 (s390_gregset, s390_fpregset, s390_upper_regset)
1938 (s390_last_break_regset, s390x_last_break_regset)
1939 (s390_system_call_regset, s390_tdb_regset): Make global and
1940 replace s390_supply/_collect_regset by regcache_supply/
1942 (s390x_gregset): Delete.
1943 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1944 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1945 (s390_regmap_fpregset, s390_regmap_last_break)
1946 (s390x_regmap_last_break, s390_regmap_system_call)
1947 (s390_regmap_tdb): Delete global variable declarations.
1948 (s390_gregset, s390_fpregset, s390_last_break_regset)
1949 (s390x_last_break_regset, s390_system_call_regset)
1950 (s390_tdb_regset): New global variable declarations.
1952 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1954 * regcache.c: Include "regset.h".
1955 (regcache_transfer_regset): New local function.
1956 (regcache_supply_regset, regcache_collect_regset): New functions.
1957 * regcache.h (struct regcache_map_entry): New structure.
1958 (REGCACHE_MAP_SKIP): New enum value.
1959 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1961 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1963 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1964 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1965 (ppc_linux_collect_gregset ): Likewise.
1966 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1967 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1968 (ppc_collect_vrregset): Likewise.
1969 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1972 2014-08-07 Yao Qi <yao@codesourcery.com>
1974 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1975 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1976 * remote.c (remote_read_bytes): Likewise.
1978 2014-08-07 Yao Qi <yao@codesourcery.com>
1980 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1982 2014-08-07 Yao Qi <yao@codesourcery.com>
1985 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1986 TARGET_XFER_OK instead of 0.
1988 2014-08-07 Gary Benson <gbenson@redhat.com>
1990 * common/common-defs.h: Include errno.h.
1991 * defs.h: Do not include errno.h.
1992 * ada-typeprint.c: Likewise.
1993 * c-typeprint.c: Likewise.
1994 * core-regset.c: Likewise.
1995 * corefile.c: Likewise.
1996 * corelow.c: Likewise.
1997 * event-loop.c: Likewise.
1998 * f-typeprint.c: Likewise.
1999 * gnu-nat.c: Likewise.
2000 * go32-nat.c: Likewise.
2001 * i386gnu-nat.c: Likewise.
2002 * m2-typeprint.c: Likewise.
2003 * nat/linux-btrace.c: Likewise.
2004 * p-typeprint.c: Likewise.
2005 * procfs.c: Likewise.
2006 * remote-sim.c: Likewise.
2007 * rs6000-nat.c: Likewise.
2008 * target.c: Likewise.
2009 * typeprint.c: Likewise.
2010 * ui-file.c: Likewise.
2011 * valops.c: Likewise.
2012 * valprint.c: Likewise.
2014 2014-08-07 Gary Benson <gbenson@redhat.com>
2016 * common/common-defs.h: Include string.h.
2017 * aarch64-tdep.c: Do not include string.h.
2018 * ada-exp.y: Likewise.
2019 * ada-lang.c: Likewise.
2020 * ada-lex.l: Likewise.
2021 * ada-typeprint.c: Likewise.
2022 * ada-valprint.c: Likewise.
2023 * aix-thread.c: Likewise.
2024 * alpha-linux-tdep.c: Likewise.
2025 * alpha-mdebug-tdep.c: Likewise.
2026 * alpha-nat.c: Likewise.
2027 * alpha-osf1-tdep.c: Likewise.
2028 * alpha-tdep.c: Likewise.
2029 * alphanbsd-tdep.c: Likewise.
2030 * amd64-dicos-tdep.c: Likewise.
2031 * amd64-linux-tdep.c: Likewise.
2032 * amd64-nat.c: Likewise.
2033 * amd64-sol2-tdep.c: Likewise.
2034 * amd64fbsd-tdep.c: Likewise.
2035 * amd64obsd-tdep.c: Likewise.
2036 * arch-utils.c: Likewise.
2037 * arm-linux-nat.c: Likewise.
2038 * arm-linux-tdep.c: Likewise.
2039 * arm-tdep.c: Likewise.
2040 * arm-wince-tdep.c: Likewise.
2041 * armbsd-tdep.c: Likewise.
2042 * armnbsd-nat.c: Likewise.
2043 * armnbsd-tdep.c: Likewise.
2044 * armobsd-tdep.c: Likewise.
2045 * avr-tdep.c: Likewise.
2046 * ax-gdb.c: Likewise.
2047 * ax-general.c: Likewise.
2048 * bcache.c: Likewise.
2049 * bfin-tdep.c: Likewise.
2050 * breakpoint.c: Likewise.
2051 * build-id.c: Likewise.
2052 * buildsym.c: Likewise.
2053 * c-exp.y: Likewise.
2054 * c-lang.c: Likewise.
2055 * c-typeprint.c: Likewise.
2056 * c-valprint.c: Likewise.
2057 * charset.c: Likewise.
2058 * cli-out.c: Likewise.
2059 * cli/cli-cmds.c: Likewise.
2060 * cli/cli-decode.c: Likewise.
2061 * cli/cli-dump.c: Likewise.
2062 * cli/cli-interp.c: Likewise.
2063 * cli/cli-logging.c: Likewise.
2064 * cli/cli-script.c: Likewise.
2065 * cli/cli-setshow.c: Likewise.
2066 * cli/cli-utils.c: Likewise.
2067 * coffread.c: Likewise.
2068 * common/agent.c: Likewise.
2069 * common/buffer.c: Likewise.
2070 * common/buffer.h: Likewise.
2071 * common/common-utils.c: Likewise.
2072 * common/filestuff.c: Likewise.
2073 * common/filestuff.c: Likewise.
2074 * common/format.c: Likewise.
2075 * common/print-utils.c: Likewise.
2076 * common/rsp-low.c: Likewise.
2077 * common/signals.c: Likewise.
2078 * common/vec.h: Likewise.
2079 * common/xml-utils.c: Likewise.
2080 * core-regset.c: Likewise.
2081 * corefile.c: Likewise.
2082 * corelow.c: Likewise.
2083 * cp-abi.c: Likewise.
2084 * cp-name-parser.y: Likewise.
2085 * cp-support.c: Likewise.
2086 * cp-valprint.c: Likewise.
2087 * cris-tdep.c: Likewise.
2088 * d-exp.y: Likewise.
2089 * darwin-nat.c: Likewise.
2090 * dbxread.c: Likewise.
2091 * dcache.c: Likewise.
2092 * demangle.c: Likewise.
2093 * dicos-tdep.c: Likewise.
2094 * disasm.c: Likewise.
2095 * doublest.c: Likewise.
2096 * dsrec.c: Likewise.
2097 * dummy-frame.c: Likewise.
2098 * dwarf2-frame.c: Likewise.
2099 * dwarf2loc.c: Likewise.
2100 * dwarf2read.c: Likewise.
2101 * elfread.c: Likewise.
2102 * environ.c: Likewise.
2104 * event-loop.c: Likewise.
2105 * exceptions.c: Likewise.
2107 * expprint.c: Likewise.
2108 * f-exp.y: Likewise.
2109 * f-lang.c: Likewise.
2110 * f-typeprint.c: Likewise.
2111 * f-valprint.c: Likewise.
2112 * fbsd-nat.c: Likewise.
2113 * findcmd.c: Likewise.
2114 * findvar.c: Likewise.
2115 * fork-child.c: Likewise.
2116 * frame.c: Likewise.
2117 * frv-linux-tdep.c: Likewise.
2118 * frv-tdep.c: Likewise.
2120 * gdb_bfd.c: Likewise.
2121 * gdbarch.c: Likewise.
2122 * gdbarch.sh: Likewise.
2123 * gdbtypes.c: Likewise.
2124 * gnu-nat.c: Likewise.
2125 * gnu-v2-abi.c: Likewise.
2126 * gnu-v3-abi.c: Likewise.
2127 * go-exp.y: Likewise.
2128 * go-lang.c: Likewise.
2129 * go32-nat.c: Likewise.
2130 * guile/guile.c: Likewise.
2131 * guile/scm-auto-load.c: Likewise.
2132 * hppa-hpux-tdep.c: Likewise.
2133 * hppa-linux-nat.c: Likewise.
2134 * hppanbsd-tdep.c: Likewise.
2135 * hppaobsd-tdep.c: Likewise.
2136 * i386-cygwin-tdep.c: Likewise.
2137 * i386-dicos-tdep.c: Likewise.
2138 * i386-linux-tdep.c: Likewise.
2139 * i386-nto-tdep.c: Likewise.
2140 * i386-sol2-tdep.c: Likewise.
2141 * i386-tdep.c: Likewise.
2142 * i386bsd-tdep.c: Likewise.
2143 * i386gnu-nat.c: Likewise.
2144 * i386nbsd-tdep.c: Likewise.
2145 * i386obsd-tdep.c: Likewise.
2146 * i387-tdep.c: Likewise.
2147 * ia64-libunwind-tdep.c: Likewise.
2148 * ia64-linux-nat.c: Likewise.
2149 * inf-child.c: Likewise.
2150 * inf-ptrace.c: Likewise.
2151 * inf-ttrace.c: Likewise.
2152 * infcall.c: Likewise.
2153 * infcmd.c: Likewise.
2154 * inflow.c: Likewise.
2155 * infrun.c: Likewise.
2156 * interps.c: Likewise.
2157 * iq2000-tdep.c: Likewise.
2158 * irix5-nat.c: Likewise.
2159 * jv-exp.y: Likewise.
2160 * jv-lang.c: Likewise.
2161 * jv-typeprint.c: Likewise.
2162 * jv-valprint.c: Likewise.
2163 * language.c: Likewise.
2164 * linux-fork.c: Likewise.
2165 * linux-nat.c: Likewise.
2166 * lm32-tdep.c: Likewise.
2167 * m2-exp.y: Likewise.
2168 * m2-typeprint.c: Likewise.
2169 * m32c-tdep.c: Likewise.
2170 * m32r-linux-nat.c: Likewise.
2171 * m32r-linux-tdep.c: Likewise.
2172 * m32r-rom.c: Likewise.
2173 * m32r-tdep.c: Likewise.
2174 * m68hc11-tdep.c: Likewise.
2175 * m68k-tdep.c: Likewise.
2176 * m68kbsd-tdep.c: Likewise.
2177 * m68klinux-nat.c: Likewise.
2178 * m68klinux-tdep.c: Likewise.
2179 * m88k-tdep.c: Likewise.
2180 * machoread.c: Likewise.
2181 * macrocmd.c: Likewise.
2183 * mdebugread.c: Likewise.
2184 * mem-break.c: Likewise.
2185 * memattr.c: Likewise.
2186 * memory-map.c: Likewise.
2187 * mep-tdep.c: Likewise.
2188 * mi/mi-cmd-break.c: Likewise.
2189 * mi/mi-cmd-disas.c: Likewise.
2190 * mi/mi-cmd-env.c: Likewise.
2191 * mi/mi-cmd-stack.c: Likewise.
2192 * mi/mi-cmd-var.c: Likewise.
2193 * mi/mi-cmds.c: Likewise.
2194 * mi/mi-console.c: Likewise.
2195 * mi/mi-getopt.c: Likewise.
2196 * mi/mi-interp.c: Likewise.
2197 * mi/mi-main.c: Likewise.
2198 * mi/mi-parse.c: Likewise.
2199 * microblaze-rom.c: Likewise.
2200 * microblaze-tdep.c: Likewise.
2201 * mingw-hdep.c: Likewise.
2202 * minidebug.c: Likewise.
2203 * minsyms.c: Likewise.
2204 * mips-irix-tdep.c: Likewise.
2205 * mips-linux-tdep.c: Likewise.
2206 * mips-tdep.c: Likewise.
2207 * mips64obsd-tdep.c: Likewise.
2208 * mipsnbsd-tdep.c: Likewise.
2209 * mipsread.c: Likewise.
2210 * mn10300-linux-tdep.c: Likewise.
2211 * mn10300-tdep.c: Likewise.
2212 * monitor.c: Likewise.
2213 * moxie-tdep.c: Likewise.
2214 * mt-tdep.c: Likewise.
2215 * nat/linux-btrace.c: Likewise.
2216 * nat/linux-osdata.c: Likewise.
2217 * nat/linux-procfs.c: Likewise.
2218 * nat/linux-ptrace.c: Likewise.
2219 * nat/linux-waitpid.c: Likewise.
2220 * nbsd-tdep.c: Likewise.
2221 * nios2-linux-tdep.c: Likewise.
2222 * nto-procfs.c: Likewise.
2223 * nto-tdep.c: Likewise.
2224 * objc-lang.c: Likewise.
2225 * objfiles.c: Likewise.
2226 * opencl-lang.c: Likewise.
2227 * osabi.c: Likewise.
2228 * osdata.c: Likewise.
2229 * p-exp.y: Likewise.
2230 * p-lang.c: Likewise.
2231 * p-typeprint.c: Likewise.
2232 * parse.c: Likewise.
2233 * posix-hdep.c: Likewise.
2234 * ppc-linux-nat.c: Likewise.
2235 * ppc-sysv-tdep.c: Likewise.
2236 * ppcfbsd-tdep.c: Likewise.
2237 * ppcnbsd-tdep.c: Likewise.
2238 * ppcobsd-tdep.c: Likewise.
2239 * printcmd.c: Likewise.
2240 * procfs.c: Likewise.
2241 * prologue-value.c: Likewise.
2242 * python/py-auto-load.c: Likewise.
2243 * python/py-gdb-readline.c: Likewise.
2244 * ravenscar-thread.c: Likewise.
2245 * regcache.c: Likewise.
2246 * registry.c: Likewise.
2247 * remote-fileio.c: Likewise.
2248 * remote-m32r-sdi.c: Likewise.
2249 * remote-mips.c: Likewise.
2250 * remote-notif.c: Likewise.
2251 * remote-sim.c: Likewise.
2252 * remote.c: Likewise.
2253 * reverse.c: Likewise.
2254 * rs6000-aix-tdep.c: Likewise.
2255 * ser-base.c: Likewise.
2256 * ser-go32.c: Likewise.
2257 * ser-mingw.c: Likewise.
2258 * ser-pipe.c: Likewise.
2259 * ser-tcp.c: Likewise.
2260 * ser-unix.c: Likewise.
2261 * serial.c: Likewise.
2262 * sh-tdep.c: Likewise.
2263 * sh64-tdep.c: Likewise.
2264 * shnbsd-tdep.c: Likewise.
2266 * sol-thread.c: Likewise.
2267 * solib-dsbt.c: Likewise.
2268 * solib-frv.c: Likewise.
2269 * solib-osf.c: Likewise.
2270 * solib-som.c: Likewise.
2271 * solib-spu.c: Likewise.
2272 * solib-target.c: Likewise.
2273 * solib.c: Likewise.
2274 * somread.c: Likewise.
2275 * source.c: Likewise.
2276 * sparc-nat.c: Likewise.
2277 * sparc-sol2-tdep.c: Likewise.
2278 * sparc-tdep.c: Likewise.
2279 * sparc64-tdep.c: Likewise.
2280 * sparc64fbsd-tdep.c: Likewise.
2281 * sparc64nbsd-tdep.c: Likewise.
2282 * sparcnbsd-tdep.c: Likewise.
2283 * spu-linux-nat.c: Likewise.
2284 * spu-multiarch.c: Likewise.
2285 * spu-tdep.c: Likewise.
2286 * stabsread.c: Likewise.
2287 * stack.c: Likewise.
2288 * std-regs.c: Likewise.
2289 * symfile.c: Likewise.
2290 * symmisc.c: Likewise.
2291 * symtab.c: Likewise.
2292 * target.c: Likewise.
2293 * thread.c: Likewise.
2294 * tilegx-linux-nat.c: Likewise.
2295 * tilegx-tdep.c: Likewise.
2297 * tracepoint.c: Likewise.
2298 * tui/tui-command.c: Likewise.
2299 * tui/tui-data.c: Likewise.
2300 * tui/tui-disasm.c: Likewise.
2301 * tui/tui-file.c: Likewise.
2302 * tui/tui-layout.c: Likewise.
2303 * tui/tui-out.c: Likewise.
2304 * tui/tui-regs.c: Likewise.
2305 * tui/tui-source.c: Likewise.
2306 * tui/tui-stack.c: Likewise.
2307 * tui/tui-win.c: Likewise.
2308 * tui/tui-windata.c: Likewise.
2309 * tui/tui-winsource.c: Likewise.
2310 * typeprint.c: Likewise.
2311 * ui-file.c: Likewise.
2312 * ui-out.c: Likewise.
2313 * user-regs.c: Likewise.
2314 * utils.c: Likewise.
2315 * v850-tdep.c: Likewise.
2316 * valarith.c: Likewise.
2317 * valops.c: Likewise.
2318 * valprint.c: Likewise.
2319 * value.c: Likewise.
2320 * varobj.c: Likewise.
2321 * vax-tdep.c: Likewise.
2322 * vaxnbsd-tdep.c: Likewise.
2323 * vaxobsd-tdep.c: Likewise.
2324 * windows-nat.c: Likewise.
2325 * xcoffread.c: Likewise.
2326 * xml-support.c: Likewise.
2327 * xstormy16-tdep.c: Likewise.
2328 * xtensa-linux-nat.c: Likewise.
2330 2014-08-07 Gary Benson <gbenson@redhat.com>
2332 * common/common-defs.h: Include gdb_assert.h.
2333 * aarch64-tdep.c: Do not include gdb_assert.h.
2334 * addrmap.c: Likewise.
2335 * aix-thread.c: Likewise.
2336 * alpha-linux-tdep.c: Likewise.
2337 * alpha-mdebug-tdep.c: Likewise.
2338 * alphanbsd-tdep.c: Likewise.
2339 * amd64-nat.c: Likewise.
2340 * amd64-tdep.c: Likewise.
2341 * amd64bsd-nat.c: Likewise.
2342 * amd64fbsd-nat.c: Likewise.
2343 * amd64fbsd-tdep.c: Likewise.
2344 * amd64nbsd-nat.c: Likewise.
2345 * amd64nbsd-tdep.c: Likewise.
2346 * amd64obsd-nat.c: Likewise.
2347 * amd64obsd-tdep.c: Likewise.
2348 * arch-utils.c: Likewise.
2349 * arm-tdep.c: Likewise.
2350 * armbsd-tdep.c: Likewise.
2352 * bcache.c: Likewise.
2353 * bfin-tdep.c: Likewise.
2354 * blockframe.c: Likewise.
2355 * breakpoint.c: Likewise.
2356 * bsd-kvm.c: Likewise.
2357 * bsd-uthread.c: Likewise.
2358 * buildsym.c: Likewise.
2359 * c-exp.y: Likewise.
2360 * c-lang.c: Likewise.
2361 * charset.c: Likewise.
2362 * cleanups.c: Likewise.
2363 * cli-out.c: Likewise.
2364 * cli/cli-decode.c: Likewise.
2365 * cli/cli-dump.c: Likewise.
2366 * cli/cli-logging.c: Likewise.
2367 * cli/cli-script.c: Likewise.
2368 * cli/cli-utils.c: Likewise.
2369 * coffread.c: Likewise.
2370 * common/common-utils.c: Likewise.
2371 * common/queue.h: Likewise.
2372 * common/signals.c: Likewise.
2373 * common/vec.h: Likewise.
2374 * complaints.c: Likewise.
2375 * completer.c: Likewise.
2376 * corelow.c: Likewise.
2377 * cp-abi.c: Likewise.
2378 * cp-name-parser.y: Likewise.
2379 * cp-namespace.c: Likewise.
2380 * cp-support.c: Likewise.
2381 * cris-tdep.c: Likewise.
2382 * dbxread.c: Likewise.
2383 * dictionary.c: Likewise.
2384 * doublest.c: Likewise.
2385 * dsrec.c: Likewise.
2386 * dummy-frame.c: Likewise.
2387 * dwarf2-frame-tailcall.c: Likewise.
2388 * dwarf2-frame.c: Likewise.
2389 * dwarf2expr.c: Likewise.
2390 * dwarf2loc.c: Likewise.
2391 * dwarf2read.c: Likewise.
2393 * event-loop.c: Likewise.
2394 * exceptions.c: Likewise.
2395 * expprint.c: Likewise.
2396 * f-valprint.c: Likewise.
2397 * fbsd-nat.c: Likewise.
2398 * findvar.c: Likewise.
2399 * frame-unwind.c: Likewise.
2400 * frame.c: Likewise.
2401 * frv-tdep.c: Likewise.
2402 * gcore.c: Likewise.
2403 * gdb-dlfcn.c: Likewise.
2404 * gdb_bfd.c: Likewise.
2405 * gdbarch.c: Likewise.
2406 * gdbarch.sh: Likewise.
2407 * gdbtypes.c: Likewise.
2408 * gnu-nat.c: Likewise.
2409 * gnu-v3-abi.c: Likewise.
2410 * go-lang.c: Likewise.
2411 * guile/scm-exception.c: Likewise.
2412 * guile/scm-gsmob.c: Likewise.
2413 * guile/scm-lazy-string.c: Likewise.
2414 * guile/scm-math.c: Likewise.
2415 * guile/scm-pretty-print.c: Likewise.
2416 * guile/scm-safe-call.c: Likewise.
2417 * guile/scm-utils.c: Likewise.
2418 * guile/scm-value.c: Likewise.
2419 * h8300-tdep.c: Likewise.
2420 * hppa-hpux-nat.c: Likewise.
2421 * hppa-tdep.c: Likewise.
2422 * hppanbsd-tdep.c: Likewise.
2423 * hppaobsd-tdep.c: Likewise.
2424 * i386-darwin-nat.c: Likewise.
2425 * i386-darwin-tdep.c: Likewise.
2426 * i386-nto-tdep.c: Likewise.
2427 * i386-tdep.c: Likewise.
2428 * i386bsd-nat.c: Likewise.
2429 * i386fbsd-tdep.c: Likewise.
2430 * i386gnu-nat.c: Likewise.
2431 * i386nbsd-tdep.c: Likewise.
2432 * i386obsd-tdep.c: Likewise.
2433 * i387-tdep.c: Likewise.
2434 * ia64-libunwind-tdep.c: Likewise.
2435 * ia64-tdep.c: Likewise.
2436 * inf-ptrace.c: Likewise.
2437 * inf-ttrace.c: Likewise.
2438 * infcall.c: Likewise.
2439 * infcmd.c: Likewise.
2440 * infrun.c: Likewise.
2441 * inline-frame.c: Likewise.
2442 * interps.c: Likewise.
2443 * jv-lang.c: Likewise.
2444 * jv-typeprint.c: Likewise.
2445 * linux-fork.c: Likewise.
2446 * linux-nat.c: Likewise.
2447 * linux-thread-db.c: Likewise.
2448 * m32c-tdep.c: Likewise.
2449 * m32r-linux-nat.c: Likewise.
2450 * m32r-tdep.c: Likewise.
2451 * m68k-tdep.c: Likewise.
2452 * m68kbsd-nat.c: Likewise.
2453 * m68kbsd-tdep.c: Likewise.
2454 * m88k-tdep.c: Likewise.
2455 * machoread.c: Likewise.
2456 * macroexp.c: Likewise.
2457 * macrotab.c: Likewise.
2458 * maint.c: Likewise.
2459 * mdebugread.c: Likewise.
2460 * memory-map.c: Likewise.
2461 * mep-tdep.c: Likewise.
2462 * mi/mi-common.c: Likewise.
2463 * microblaze-tdep.c: Likewise.
2464 * mingw-hdep.c: Likewise.
2465 * mips-linux-nat.c: Likewise.
2466 * mips-linux-tdep.c: Likewise.
2467 * mips-tdep.c: Likewise.
2468 * mips64obsd-tdep.c: Likewise.
2469 * mipsnbsd-tdep.c: Likewise.
2470 * mn10300-linux-tdep.c: Likewise.
2471 * mn10300-tdep.c: Likewise.
2472 * moxie-tdep.c: Likewise.
2473 * mt-tdep.c: Likewise.
2474 * nat/linux-btrace.c: Likewise.
2475 * nat/linux-osdata.c: Likewise.
2476 * nat/linux-ptrace.c: Likewise.
2477 * nat/mips-linux-watch.c: Likewise.
2478 * nios2-linux-tdep.c: Likewise.
2479 * nios2-tdep.c: Likewise.
2480 * objc-lang.c: Likewise.
2481 * objfiles.c: Likewise.
2482 * obsd-nat.c: Likewise.
2483 * opencl-lang.c: Likewise.
2484 * osabi.c: Likewise.
2485 * parse.c: Likewise.
2486 * ppc-linux-nat.c: Likewise.
2487 * ppc-sysv-tdep.c: Likewise.
2488 * ppcfbsd-nat.c: Likewise.
2489 * ppcfbsd-tdep.c: Likewise.
2490 * ppcnbsd-nat.c: Likewise.
2491 * ppcnbsd-tdep.c: Likewise.
2492 * ppcobsd-nat.c: Likewise.
2493 * ppcobsd-tdep.c: Likewise.
2494 * printcmd.c: Likewise.
2495 * procfs.c: Likewise.
2496 * prologue-value.c: Likewise.
2497 * psymtab.c: Likewise.
2498 * python/py-lazy-string.c: Likewise.
2499 * python/py-value.c: Likewise.
2500 * regcache.c: Likewise.
2501 * reggroups.c: Likewise.
2502 * registry.c: Likewise.
2503 * remote-sim.c: Likewise.
2504 * remote.c: Likewise.
2505 * rs6000-aix-tdep.c: Likewise.
2506 * rs6000-tdep.c: Likewise.
2507 * s390-linux-tdep.c: Likewise.
2508 * score-tdep.c: Likewise.
2509 * ser-base.c: Likewise.
2510 * ser-mingw.c: Likewise.
2511 * sh-tdep.c: Likewise.
2512 * sh64-tdep.c: Likewise.
2513 * solib-darwin.c: Likewise.
2514 * solib-spu.c: Likewise.
2515 * solib-svr4.c: Likewise.
2516 * source.c: Likewise.
2517 * sparc-nat.c: Likewise.
2518 * sparc-sol2-tdep.c: Likewise.
2519 * sparc-tdep.c: Likewise.
2520 * sparc64-sol2-tdep.c: Likewise.
2521 * sparc64-tdep.c: Likewise.
2522 * sparc64fbsd-tdep.c: Likewise.
2523 * sparc64nbsd-tdep.c: Likewise.
2524 * sparc64obsd-tdep.c: Likewise.
2525 * sparcnbsd-tdep.c: Likewise.
2526 * sparcobsd-tdep.c: Likewise.
2527 * spu-multiarch.c: Likewise.
2528 * spu-tdep.c: Likewise.
2529 * stabsread.c: Likewise.
2530 * stack.c: Likewise.
2531 * symfile.c: Likewise.
2532 * symtab.c: Likewise.
2533 * target-descriptions.c: Likewise.
2534 * target-memory.c: Likewise.
2535 * target.c: Likewise.
2536 * tic6x-linux-tdep.c: Likewise.
2537 * tic6x-tdep.c: Likewise.
2538 * tilegx-linux-nat.c: Likewise.
2539 * tilegx-tdep.c: Likewise.
2541 * tramp-frame.c: Likewise.
2542 * tui/tui-out.c: Likewise.
2543 * tui/tui-winsource.c: Likewise.
2544 * ui-out.c: Likewise.
2545 * user-regs.c: Likewise.
2546 * utils.c: Likewise.
2547 * v850-tdep.c: Likewise.
2548 * valops.c: Likewise.
2549 * value.c: Likewise.
2550 * varobj.c: Likewise.
2551 * vax-nat.c: Likewise.
2552 * xml-syscall.c: Likewise.
2553 * xml-tdesc.c: Likewise.
2554 * xstormy16-tdep.c: Likewise.
2555 * xtensa-linux-nat.c: Likewise.
2556 * xtensa-tdep.c: Likewise.
2558 2014-08-07 Gary Benson <gbenson@redhat.com>
2560 * common/common-defs.h: Include common-utils.h.
2561 * defs.h: Do not include common-utils.h.
2562 * common/gdb_assert.h: Likewise.
2563 * darwin-nat.h: Likewise.
2564 * nat/linux-btrace.c: Likewise.
2565 * target/waitstatus.h: Likewise.
2567 2014-08-07 Gary Benson <gbenson@redhat.com>
2569 * common/common-defs.h: Include ptid.h.
2570 * defs.h: Do not include ptid.h.
2571 * inferior.h: Likewise.
2572 * infrun.h: Likewise.
2573 * nat/linux-btrace.h: Likewise.
2574 * nat/linux-osdata.h: Likewise.
2575 * target/waitstatus.h: Likewise.
2577 2014-08-07 Gary Benson <gbenson@redhat.com>
2579 * common/common-defs.h: Include gdb_locale.h.
2580 * defs.h: Do not include gdb_locale.h.
2582 2014-08-07 Gary Benson <gbenson@redhat.com>
2584 * common/common-defs.h: Include gdb/signals.h.
2585 * defs.h: Do not include gdb/signals.h.
2587 2014-08-07 Gary Benson <gbenson@redhat.com>
2589 * common/common-defs.h: Include pathmax.h.
2590 * defs.h: Do not include pathmax.h.
2592 2014-08-07 Gary Benson <gbenson@redhat.com>
2594 * common/common-defs.h: Include libiberty.h.
2595 * defs.h: Do not include libiberty.h.
2596 * common/queue.h: Likewise.
2597 * cp-name-parser.y: Likewise.
2598 * mi/mi-cmd-catch.c: Likewise.
2599 * python/python.c: Likewise.
2601 2014-08-07 Gary Benson <gbenson@redhat.com>
2603 * common/common-defs.h: Include ansidecl.h.
2604 * defs.h: Do not include ansidecl.h.
2605 * common/buffer.h: Likewise.
2606 * common/common-utils.h: Likewise.
2608 2014-08-07 Gary Benson <gbenson@redhat.com>
2610 * common/common-defs.h: Include stddef.h.
2611 * defs.h: Do not include stddef.h.
2612 * common/common-utils.h: Likewise.
2613 * amd64fbsd-nat.c: Likewise.
2614 * bcache.c: Likewise.
2615 * charset.c: Likewise.
2616 * common/buffer.h: Likewise.
2617 * common/vec.h: Likewise.
2618 * i386bsd-nat.c: Likewise.
2619 * nat/linux-btrace.h: Likewise.
2620 * ppcfbsd-nat.c: Likewise.
2621 * ppcnbsd-tdep.h: Likewise.
2622 * ppcobsd-nat.c: Likewise.
2623 * ppcobsd-tdep.h: Likewise.
2624 * python/py-gdb-readline.c: Likewise.
2626 2014-08-07 Gary Benson <gbenson@redhat.com>
2628 * common/common-defs.h: Include stdarg.h.
2629 * defs.h: Do not include stdarg.h.
2630 * ada-lang.c: Likewise.
2631 * common/common-utils.h: Likewise.
2632 * guile/scm-string.c: Likewise.
2633 * guile/scm-utils.c: Likewise.
2634 * m32c-tdep.c: Likewise.
2636 2014-08-07 Gary Benson <gbenson@redhat.com>
2638 * common/common-defs.h: Include stdlib.h.
2639 * defs.h: Do not include stdlib.h.
2640 * addrmap.c: Likewise.
2641 * bcache.c: Likewise.
2642 * common/buffer.c: Likewise.
2643 * common/common-utils.c: Likewise.
2644 * cp-name-parser.y: Likewise.
2645 * go32-nat.c: Likewise.
2646 * mn10300-linux-tdep.c: Likewise.
2647 * nat/linux-osdata.c: Likewise.
2648 * tui/tui.c: Likewise.
2649 * windows-nat.c: Likewise.
2651 2014-08-07 Gary Benson <gbenson@redhat.com>
2653 * common/common-defs.h: Include stdio.h.
2654 * defs.h: Do not include stdio.h.
2655 * ada-lang.c: Likewise.
2656 * common/buffer.c: Likewise.
2657 * common/common-utils.c: Likewise.
2658 * cp-name-parser.y: Likewise.
2659 * gnu-nat.c: Likewise.
2660 * go32-nat.c: Likewise.
2661 * i386gnu-nat.c: Likewise.
2662 * proc-api.c: Likewise.
2663 * proc-events.c: Likewise.
2664 * proc-flags.c: Likewise.
2665 * proc-why.c: Likewise.
2666 * python/python-internal.h: Likewise.
2667 * target-memory.c: Likewise.
2668 * tui/tui-io.c: Likewise.
2669 * tui/tui.c: Likewise.
2671 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2673 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2674 (scan_dyntag_auxv): Same.
2676 2014-08-06 Yao Qi <yao@codesourcery.com>
2678 * amd64-linux-nat.c: Remove duplicated include
2680 * i386-linux-nat.c: Likewise.
2682 2014-08-06 Yao Qi <yao@codesourcery.com>
2684 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2685 operand" with "Special opcode" in comments.
2687 2014-08-05 Gary Benson <gbenson@redhat.com>
2689 * interps.c (initialize_interps): Remove prototype.
2690 (interpreter_initialized): Remove static global.
2691 (interp_add): Do not call initialize_interps.
2692 (initialize_interps): Remove function.
2694 2014-08-05 Gary Benson <gbenson@redhat.com>
2696 * utils.c (vwarning): Remove spurious va_end.
2698 2014-08-05 Alan Modra <amodra@gmail.com>
2700 * charset.c (convert_between_encodings): Cast result of obstack_base.
2701 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2702 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2703 (read_unwind_info): Use size_t for some locals.
2704 * jit.c (finalize_symtab): Likewise.
2705 * utils.c (hashtab_obstack_allocate): Likewise.
2706 * symmisc.c (print_objfile_statistics): Update format strings.
2708 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2710 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2711 (Changes in GDB 7.8): ... here.
2713 2014-08-04 Tom Tromey <tromey@redhat.com>
2715 * target.c (set_targetdebug): New function.
2716 (initialize_targets): Pass set_targetdebug when creating "set
2719 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2721 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2722 if detecting a variable-sized field that is not the last field.
2723 Fix struct type length computation.
2725 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2727 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2730 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2732 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2733 Remove "+ 8" offset in computation of CHAIN_VMA.
2735 2014-07-31 Doug Evans <dje@google.com>
2737 * inflow.c (child_terminal_inferior): Add comment.
2738 (child_terminal_ours_for_output): Add comment.
2739 (child_terminal_ours): Add comment.
2740 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2741 (linux_nat_terminal_ours): Add comment.
2743 2014-07-31 Gary Benson <gbenson@redhat.com>
2745 * common/btrace-common.h: Do not include defs.h or server.h.
2746 * nat/mips-linux-watch.h: Likewise.
2747 * gdb-dlfcn.h: Do not include defs.h.
2748 * tracefile.h: Likewise.
2750 2014-07-30 Roland McGrath <mcgrathr@google.com>
2752 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2754 2014-07-30 Tom Tromey <tromey@redhat.com>
2756 * bsd-kvm.c (bsd_kvm_open): Constify.
2757 * corelow.c (core_open): Constify.
2758 * ctf.c (ctf_open): Constify.
2759 * dbug-rom.c (dbug_open): Constify.
2760 * exec.c (exec_open): Constify.
2761 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2762 * microblaze-rom.c (picobug_open): Constify.
2763 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2765 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2766 * record-btrace.c (record_btrace_open): Constify.
2767 * record-full.c (record_full_core_open_1, record_full_open_1)
2768 (record_full_open): Constify.
2769 * remote-m32r-sdi.c (m32r_open): Constify.
2770 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2771 (rockhopper_open, lsi_open): Constify.
2772 * remote-sim.c (gdbsim_open): Constify.
2773 * remote.c (remote_open, extended_remote_open, remote_open_1):
2775 * target.h (struct target_ops) <to_open>: Make "arg" const.
2776 * tracefile-tfile.c (tfile_open): Constify.
2778 2014-07-30 Tom Tromey <tromey@redhat.com>
2780 * breakpoint.c (map_breakpoint_numbers): Update.
2781 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2782 (get_number_const): New function.
2783 (get_number): Rewrite using get_number_const.
2784 (init_number_or_range): Make "string" const.
2785 (number_is_in_list): Make "list" const.
2786 * cli/cli-utils.h (get_number_const): Declare.
2787 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2788 (init_number_or_range, number_is_in_list): Update.
2789 * printcmd.c (map_display_numbers): Update.
2790 * value.c (value_from_history_ref): Constify.
2791 * value.h (value_from_history_ref): Update.
2793 2014-07-30 Tom Tromey <tromey@redhat.com>
2795 * corefile.c (hook_type, call_extra_exec_file_hooks)
2796 (specify_exec_file_hook): Constify.
2797 * exec.c (exec_file_attach): Make "filename" const.
2798 * gdbcore.h (deprecated_exec_file_display_hook)
2799 (specify_exec_file_hook, exec_file_attach): Constify.
2800 * main.c (captured_main): Use catch_command_errors_const.
2802 2014-07-30 Tom Tromey <tromey@redhat.com>
2804 * target.c (open_target): New function.
2805 (add_target_with_completer, add_deprecated_target_alias): Use
2806 set_cmd_sfunc, set_cmd_context.
2807 (debug_to_open): Remove.
2808 (setup_target_debug): Update.
2810 2014-07-30 Yao Qi <yao@codesourcery.com>
2812 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2814 * parse.c (exp_iterate): Update comments.
2816 2014-07-30 Gary Benson <gbenson@redhat.com>
2818 * common/common-defs.h: New file.
2819 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2820 * defs.h: Include common-defs.h.
2821 Do not include config.h or build-gnulib/config.h.
2823 2014-07-30 Gary Benson <gbenson@redhat.com>
2825 * common/common-utils.h: Do not include config.h.
2826 * nat/linux-btrace.h: Likewise.
2828 2014-07-30 Gary Benson <gbenson@redhat.com>
2830 * btrace.c: Include defs.h.
2831 * common/ptid.c: Include defs.h or server.h as appropriate.
2832 * nat/mips-linux-watch.c: Likewise.
2834 2014-07-29 Tom Tromey <tromey@redhat.com>
2836 * target.c (target_is_pushed): Simplify.
2838 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2842 2014-07-29 Yao Qi <yao@codesourcery.com>
2845 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2847 2014-07-28 Doug Evans <xdje42@gmail.com>
2850 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2851 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2854 2014-07-28 Will Newton <will.newton@linaro.org>
2856 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2857 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2858 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2859 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2860 (THUMB2_EABI_SYSCALL): Likewise.
2861 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2863 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2864 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2866 2014-07-27 Doug Evans <xdje42@gmail.com>
2868 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2870 2014-07-27 Doug Evans <xdje42@gmail.com>
2872 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2874 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2875 Doug Evans <xdje42@gmail.com>
2878 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2879 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2880 * configure.ac: Try to use guild to compile an scm file, if it fails
2881 then disable guile support.
2882 * configure: Regenerate.
2883 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2885 (GUILE_COMPILED_FILES): New variable.
2886 (GUILE_FILES) Update.
2887 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2888 (stamp-guile): Compile scm files.
2889 * guile/guile.c (boot_guile_support): New function.
2890 (standard_throw_args_p): New function.
2891 (print_standard_throw_error, print_throw_error): New functions.
2892 (handle_boot_error): New function.
2893 (initialize_scheme_side): Rewrite to call boot_guile_support.
2894 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2895 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2897 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2898 Doug Evans <xdje42@gmail.com>
2901 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2902 * guile/lib/gdb/support.scm: New file.
2903 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2904 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2906 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2908 (%assert-type): Ditto, and renamed to assert-type.
2909 (%exception-print-style): Delete.
2911 2014-07-26 Doug Evans <xdje42@gmail.com>
2914 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2915 * configure: Regenerate.
2916 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2918 (PYTHON_FILES): New variable.
2919 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2920 (GUILE_FILES): New variable.
2921 (stamp-python, install-python, uninstall-python): Handle empty
2923 (stamp-guile, install-guile, uninstall-guile): Ditto.
2925 2014-07-26 Doug Evans <xdje42@gmail.com>
2928 * guile/lib/gdb.scm (pretty-printers): Export.
2929 (set-pretty-printers!): Export.
2930 * guile/lib/gdb/printing.scm (gdb module): Update.
2931 (prepend-pretty-printer!, append-pretty-printer!): Update.
2932 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2933 (pretty_printer_list_var): Delete.
2934 (pretty_printer_list): New static global.
2935 (gdbscm_pretty_printers): New function.
2936 (gdbscm_set_pretty_printers_x): New function.
2937 (ppscm_find_pretty_printer_from_gdb): Update.
2938 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2939 (gdbscm_initialize_pretty_printers): Update.
2941 2014-07-26 Doug Evans <xdje42@gmail.com>
2944 * configure.ac: Add check for header gc/gc.h.
2945 Add check for function setenv.
2946 * configure: Regenerate.
2947 * config.in: Regenerate.
2948 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2950 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2952 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2953 variation in gdbarch matching.
2955 2014-07-25 Tom Tromey <tromey@redhat.com>
2957 * exec.c (using_exec_ops): Remove.
2958 (exec_close_1): Update. Remove extraneous block, reindent.
2959 (add_target_sections): Use target_is_pushed.
2961 2014-07-25 Pedro Alves <palves@redhat.com>
2963 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2964 * monitor.c (monitor_create_inferior): Likewise.
2965 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2966 * remote-sim.c (gdbsim_create_inferior): Likewise.
2967 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2968 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2969 * windows-nat.c (do_initial_windows_stuff): Likewise.
2971 2014-07-25 Pedro Alves <palves@redhat.com>
2973 * NEWS: Mention signal passing and "signal" command changes.
2974 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2976 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2978 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2979 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2980 (jump_command): Adjust clear_proceed_status call.
2981 (signal_command): Warn if other thread that are resumed have
2982 signals that will be delivered. Adjust clear_proceed_status call.
2983 (until_next_command, finish_command)
2984 (proceed_after_attach_callback, attach_command_post_wait)
2985 (attach_command): Adjust clear_proceed_status call.
2986 * infrun.c (proceed_after_vfork_done): Likewise.
2987 (proceed_after_attach_callback): Adjust comment.
2988 (clear_proceed_status_thread): Clear stop_signal if not in pass
2990 (clear_proceed_status_callback): Delete.
2991 (clear_proceed_status): New 'step' parameter. Only clear the
2992 proceed status of threads the command being prepared is about to
2994 (proceed): If passed in an explicit signal, override stop_signal
2995 with it. Don't pass the last stop signal to the thread we're
2997 (init_wait_for_inferior): Adjust clear_proceed_status call.
2998 (switch_back_to_stepped_thread): Clear the signal if it should not
3000 * infrun.h (clear_proceed_status): New 'step' parameter.
3001 (user_visible_resume_ptid): Add comment.
3002 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3003 signal is in pass state.
3004 * remote.c (append_pending_thread_resumptions): Likewise.
3005 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3007 2014-07-25 Tom Tromey <tromey@redhat.com>
3009 * target.h (target_stopped_data_address)
3010 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3013 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3015 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3017 (avr_pointer_to_address): Likewise.
3019 2014-07-24 Tom Tromey <tromey@redhat.com>
3021 * monitor.c (compile_pattern): Update.
3022 * target.h (struct target_ops) <to_shortname, to_longname,
3025 2014-07-24 Tom Tromey <tromey@redhat.com>
3027 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3028 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3029 (add_info_alias, add_com): Make "doc" const.
3030 (print_doc_line): Make "str" const.
3031 (delete_cmd): Update.
3032 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3033 (print_doc_line): Update.
3034 * cli/cli-script.c (document_command): Update.
3035 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3036 (add_com, add_info, add_info_alias): Update.
3037 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3038 * python/py-cmd.c (cmdpy_destroyer): Update.
3040 2014-07-24 Tom Tromey <tromey@redhat.com>
3042 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3043 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3044 (help_cmd_list): Constify.
3045 (lookup_cmd): Update.
3046 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3048 (help_cmd_list, apropos_cmd): Update.
3049 * cli/cli-script.c (show_user): Update.
3050 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3051 * cli/cli-setshow.h (cmd_show_list): Update.
3052 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3053 (cmd_show_list): Update.
3054 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3055 * python/py-cmd.c (cmdpy_destroyer): Update.
3057 2014-07-24 Tom Tromey <tromey@redhat.com>
3059 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3060 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3062 * command.h (deprecate_cmd): Update.
3063 * maint.c (maintenance_do_deprecate): Add casts.
3065 2014-07-24 Tom Tromey <tromey@redhat.com>
3067 * cli/cli-decode.c (help_cmd): Make parameter "const".
3068 * cli/cli-decode.h (help_cmd): Update.
3070 2014-07-24 Tom Tromey <tromey@redhat.com>
3072 * stack.c (up_silently_base, down_silently_base): Make argument
3075 2014-07-24 Tom Tromey <tromey@redhat.com>
3077 * solib.c (solib_add): Make "pattern" const.
3078 * solib.h (solib_add): Update.
3080 2014-07-24 Tom Tromey <tromey@redhat.com>
3082 * remote.c (remote_serial_open, print_packet, putpkt)
3083 (putpkt_binary): Constify.
3084 * remote.h (putpkt): Update.
3086 2014-07-24 Tom Tromey <tromey@redhat.com>
3088 * monitor.c (monitor_open): Make "args" const.
3089 * monitor.h (monitor_open): Update.
3091 2014-07-24 Tom Tromey <tromey@redhat.com>
3093 * maint.c (match_bfd_flags): Make "string" const.
3094 (print_bfd_section_info): Remove casts.
3095 (print_objfile_section_info): Make "string" const.
3097 2014-07-24 Tom Tromey <tromey@redhat.com>
3099 * inf-child.c (inf_child_open_target): Make "arg" const.
3100 * inf-child.h (inf_child_open_target): Update.
3102 2014-07-24 Tom Tromey <tromey@redhat.com>
3104 * environ.c (unset_in_environ): Make "var" const.
3105 * environ.h (unset_in_environ): Update.
3107 2014-07-24 Tom Tromey <tromey@redhat.com>
3109 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3111 (scan_filename_with_cleanup): Likewise.
3112 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3113 Make arguments const.
3114 (restore_command): Update.
3116 2014-07-24 Pedro Alves <palves@redhat.com>
3118 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3120 2014-07-24 Tom Tromey <tromey@redhat.com>
3121 Gary Benson <gbenson@redhat.com>
3123 * nat/linux-ptrace.c (additional_flags): New global.
3124 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3125 additional_flags; don't check GDBSERVER.
3126 (linux_ptrace_set_additional_flags): New function.
3127 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3129 * linux-nat.c (_initialize_linux_nat): Call
3130 linux_ptrace_set_additional_flags.
3132 2014-07-24 Tom Tromey <tromey@redhat.com>
3134 * make-target-delegates (munge_type, write_debugmethod): New
3136 (debug_names): New global.
3137 ($TARGET_DEBUG_PRINTER): New global.
3138 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3140 Write debug methods. Generate init_debug_target.
3141 * target-debug.h: New file.
3142 * target-delegates.c: Rebuild.
3143 * target.c: Include target-debug.h.
3144 (debug_target): Hoist definition.
3145 (target_kill, target_get_section_table, target_memory_map)
3146 (target_flash_erase, target_flash_done, target_detach)
3147 (target_disconnect, target_wait, target_resume)
3148 (target_pass_signals, target_program_signals, target_follow_fork)
3149 (target_mourn_inferior, target_search_memory)
3150 (target_thread_address_space, target_close)
3151 (target_find_new_threads, target_core_of_thread)
3152 (target_verify_memory, target_insert_mask_watchpoint)
3153 (target_remove_mask_watchpoint): Remove targetdebug code.
3154 (debug_to_post_attach, debug_to_prepare_to_store)
3155 (debug_to_files_info, debug_to_insert_breakpoint)
3156 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3157 (debug_to_region_ok_for_hw_watchpoint)
3158 (debug_to_can_accel_watchpoint_condition)
3159 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3160 (debug_to_watchpoint_addr_within_range)
3161 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3162 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3163 (debug_to_terminal_init, debug_to_terminal_inferior)
3164 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3165 (debug_to_terminal_save_ours, debug_to_terminal_info)
3166 (debug_to_load, debug_to_post_startup_inferior)
3167 (debug_to_insert_fork_catchpoint)
3168 (debug_to_remove_fork_catchpoint)
3169 (debug_to_insert_vfork_catchpoint)
3170 (debug_to_remove_vfork_catchpoint)
3171 (debug_to_insert_exec_catchpoint)
3172 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3173 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3174 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3175 (setup_target_debug): Call init_debug_target.
3176 * target.h (TARGET_DEBUG_PRINTER): New macro.
3177 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3178 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3180 2014-07-24 Gary Benson <gbenson@redhat.com>
3182 * exceptions.h (throw_vfatal): Renamed to...
3183 (throw_vquit): New declaration.
3184 (throw_quit): Likewise.
3185 * exceptions.c (throw_vfatal): Renamed to...
3186 (throw_vquit): New function.
3187 (throw_quit): Likewise.
3188 (throw_error): Call throw_verror rather than throw_it.
3189 * utils.h (vfatal): Removed.
3191 * utils.c (vfatal): Removed.
3193 (internal_verror): Replaced call to fatal with call to throw_quit.
3194 (quit): Replaced calls to fatal with calls to throw_quit.
3196 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3198 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3201 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3203 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3204 less than zero in conditional expression.
3206 2014-07-23 Tom Tromey <tromey@redhat.com>
3208 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3209 ($INTRO_PART): Don't match whitespace.
3210 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3212 ($METHOD): Add $METHOD_TRAILER.
3214 (scan_target_h): New sub.
3215 Change main loop not to collect state.
3216 * target-delegates.c: Rebuild.
3218 2014-07-23 Gary Benson <gbenson@redhat.com>
3220 * cp-support.c (gdb_demangle): Fix build on systems without
3223 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3225 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3226 for reference entry value target data value.
3228 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3230 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3231 value_available_contents_eq.
3233 2014-07-22 Pedro Alves <palves@redhat.com>
3235 * value.c (allocate_optimized_out_value): Don't mark value as
3238 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3240 * MAINTAINERS (Write After Approval): Update my email address.
3242 2014-07-20 Doug Evans <dje@google.com>
3245 * remote.c (putpkt_binary): Add text to error message.
3247 2014-07-20 Yao Qi <yao@codesourcery.com>
3249 * eval.c: Remove "Chill" from comments.
3250 * gdbtypes.h: Likewise.
3251 * symtab.h: Likewise.
3253 2014-07-20 Yao Qi <yao@codesourcery.com>
3255 * std-operator.def: Update comments to TERNOP_SLICE.
3257 2014-07-20 Yao Qi <yao@codesourcery.com>
3259 * std-operator.def: Remove BINOP_RANGE.
3260 * breakpoint.c (watchpoint_exp_is_const): Update.
3261 * expprint.c (dump_subexp_body_standard): Likewise.
3262 * eval.c (init_array_element): Remove dead code.
3263 (evaluate_subexp_standard): Likewise.
3265 2014-07-20 Yao Qi <yao@codesourcery.com>
3267 * std-operator.def: Remove BINOP_IN.
3268 * breakpoint.c (watchpoint_exp_is_const): Update.
3269 * eval.c (evaluate_subexp_standard): Likewise.
3270 * expprint.c (dump_subexp_body_standard): Likewise.
3272 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3274 * microblaze-tdep.c (microblaze_register_names): Add
3275 the rshr and rslr register names.
3276 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3277 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3278 Use of tdesc_numbered_register. Use of
3279 microblaze_register_g_packet_guesses. Use of
3280 tdesc_use_registers. Use of set_gdbarch_register_type.
3281 (microblaze_register_g_packet_guesses): New.
3282 * microblaze-tdep.h (microblaze_reg_num): Add
3283 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3284 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3285 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3286 * features/microblaze-core.xml: New file.
3287 * features/microblaze-stack-protect.xml: New file.
3288 * features/microblaze-with-stack-protect.c: New file.
3289 * features/microblaze-with-stack-protect.xml: New file.
3290 * features/microblaze.xml: New file.
3291 * features/microblaze.c: New file.
3292 * features/Makefile (microblaze-with-stack-protect): Add
3293 microblaze-with-stack-protect microblaze and microblaze-expedite.
3294 * regformats/microblaze-with-stack-protect.dat: New file.
3295 * regformats/microblaze.dat: New file.
3296 * doc/gdb.texinfo (MicroBlaze Features): Added.
3298 2014-07-18 Tom Tromey <tromey@redhat.com>
3300 * exec.c (exec_ops): Now static.
3301 * exec.h (exec_ops): Don't declare.
3303 2014-07-18 Tom Tromey <tromey@redhat.com>
3305 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3306 to find_target_beneath.
3307 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3308 find_target_beneath.
3309 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3311 2014-07-18 Tom Tromey <tromey@redhat.com>
3314 * utils.c (quit): Use target_supports_terminal_ours.
3315 * target.h (target_supports_terminal_ours): Declare.
3316 * target.c (target_supports_delete_record): Don't check
3317 to_delete_record against NULL.
3318 (target_supports_terminal_ours): New function.
3320 2014-07-18 Tom Tromey <tromey@redhat.com>
3323 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3324 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3325 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3326 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3327 * windows-nat.c (windows_xfer_partial): Always delegate.
3328 * record-btrace.c (record_btrace_xfer_partial): Simplify
3330 (record_btrace_fetch_registers, record_btrace_store_registers)
3331 (record_btrace_prepare_to_store, record_btrace_resume)
3332 (record_btrace_wait, record_btrace_find_new_threads)
3333 (record_btrace_thread_alive): Likewise.
3334 * procfs.c (procfs_xfer_partial): Always delegate.
3335 * corelow.c (core_xfer_partial): Always delegate.
3336 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3338 2014-07-18 Tom Tromey <tromey@redhat.com>
3340 * exec.c (exec_make_note_section): Move earlier.
3342 2014-07-17 Doug Evans <dje@google.com>
3345 * maint.c (count_symtabs_and_blocks): Handle NULL
3346 current_program_space.
3347 (report_command_stats): Check global enabled flag in addition to
3348 recorded enabled flag.
3349 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3351 2014-07-16 Pedro Alves <palves@redhat.com>
3353 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3355 2014-07-16 Tom Tromey <tromey@redhat.com>
3357 * target.h (struct target_ops) <to_delete_record>: Reformat
3360 2014-07-16 Tom Tromey <tromey@redhat.com>
3362 * target-delegates.c: Rebuild.
3364 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3366 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3367 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3368 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3369 (avr_pointer_to_address): Likewise.
3370 (avr_address_class_type_flags): New function.
3371 (avr_address_class_type_flags_to_name): Likewise.
3372 (avr_address_class_name_to_type_flags): Likewise.
3373 (avr_gdbarch_init): Set address_class_type_flags,
3374 address_class_type_flags_to_name and
3375 address_class_name_to_type_flags.
3377 2014-07-15 Pedro Alves <palves@redhat.com>
3379 * linux-nat.c (kill_callback): Save errno and work with saved
3382 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3384 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3386 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3388 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3389 breakpoint support correctly.
3391 2014-07-14 Pedro Alves <palves@redhat.com>
3393 * utils.c (prompt_for_continue): Call target_terminal_ours.
3395 2014-07-14 Pedro Alves <palves@redhat.com>
3397 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3398 catch_errors. Don't re-enable stdin or notify observers where,
3400 (fetch_inferior_event_wrapper): Delete.
3402 2014-07-14 Pedro Alves <palves@redhat.com>
3405 * top.c: Include "inf-loop.h".
3406 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3408 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3410 (gdb_readline_wrapper): Store whether the target is async, and
3413 2014-07-14 Pedro Alves <palves@redhat.com>
3416 * top.c (gdb_readline_wrapper_line): Tweak comment.
3417 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3418 the input handler callback.
3420 2014-07-14 Pedro Alves <palves@redhat.com>
3423 * main.c: Include event-top.h.
3424 (handle_command_errors): New function.
3425 (catch_command_errors, catch_command_errors_const): Use it.
3427 2014-07-14 Pedro Alves <palves@redhat.com>
3429 * exceptions.c (catch_command_errors, catch_command_errors_const):
3431 * exceptions.h (catch_command_errors_ftype)
3432 (catch_command_errors_const_ftype): Moved to main.c.
3433 (catch_command_errors, catch_command_errors_const): Delete
3435 * main.c (catch_command_errors_ftype)
3436 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3437 (catch_command_errors, catch_command_errors_const)): Moved here
3438 from exceptions.c and make static.
3440 2014-07-14 Pedro Alves <palves@redhat.com>
3442 * exceptions.c (print_any_exception): Delete.
3443 (catch_exceptions_with_msg): Use exception_print instead of
3444 print_any_exception.
3445 (catch_errors): Use exception_fprintf instead of
3446 print_any_exception.
3447 (catch_command_errors, catch_command_errors_const): Use
3448 exception_print instead of print_any_exception.
3450 2014-07-14 Pedro Alves <palves@redhat.com>
3452 * infcall.c (run_inferior_call): Set 'sync_execution' while
3453 running the inferior call.
3455 2014-07-14 Pedro Alves <palves@redhat.com>
3457 * value.c (value_contents_equal): Delete function.
3458 * value.h (value_contents_equal): Delete declaration.
3460 2014-07-14 Tom Tromey <tromey@redhat.com>
3463 * gdbtypes.c (is_dynamic_type_internal): New function, from
3465 (is_dynamic_type): Rewrite.
3466 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3467 (resolve_dynamic_struct): Likewise.
3468 (resolve_dynamic_type_internal): New function, from
3469 resolve_dynamic_type.
3470 (resolve_dynamic_type): Rewrite.
3472 2014-07-14 Tom Tromey <tromey@redhat.com>
3474 * target.c (target_require_runnable): Also check record_stratum.
3477 2014-07-11 Yao Qi <yao@codesourcery.com>
3479 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3480 thumb_instruction_restores_sp return true.
3482 2014-07-11 Yao Qi <yao@codesourcery.com>
3484 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3485 (thumb_in_function_epilogue_p): Call
3486 thumb_instruction_restores_sp.
3488 2014-07-11 Yao Qi <yao@codesourcery.com>
3490 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3492 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3494 2014-07-11 Gary Benson <gbenson@redhat.com>
3496 * amd64-linux-nat.c (gdbcore.h): Remove include.
3497 (regset.h): Likewise.
3498 (nat/linux-btrace.h): Likewise.
3499 (btrace.h): Likewise.
3500 (gdb_assert.h): Likewise.
3501 (string.h): Likewise.
3502 (sys/uio.h): Likewise.
3503 (sys/debugreg.h): Likewise.
3504 (sys/syscall.h): Likewise.
3505 (sys/procfs.h): Likewise.
3506 (sys/user.h): Likewise.
3507 (asm/ptrace.h): Likewise.
3508 (i386-nat.h): Likewise.
3509 * i386-linux-nat.c (i386-nat.h): Likewise.
3510 (regset.h): Likewise.
3511 (target.h): Likewise.
3512 (linux-nat.h): Likewise.
3513 (nat/linux-btrace.h): Likewise.
3514 (btrace.h): Likewise.
3515 (gdb_assert.h): Likewise.
3516 (string.h): Likewise.
3517 (sys/uio.h): Likewise.
3518 (sys/user.h): Likewise.
3519 (sys/procfs.h): Likewise.
3520 (sys/reg.h): Likewise.
3521 (sys/debugreg.h): Likewise.
3522 (ORIG_EAX): Remove definition.
3524 2014-07-11 Gary Benson <gbenson@redhat.com>
3526 * i386-linux-nat.h: New file.
3527 * x86-linux-nat.h: Likewise.
3528 * x86-linux-nat.c: Likewise.
3529 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3530 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3531 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3532 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3533 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3534 (PTRACE_SETREGSET): Likewise.
3535 (arch_lwp_info): Now in x86-linux-nat.c.
3536 (have_ptrace_getregset): Now in x86-linux-nat.h.
3537 (x86_linux_dr_get): Now in x86-linux-nat.c.
3538 (x86_linux_dr_set): Likewise.
3539 (x86_linux_dr_get_addr): Likewise.
3540 (x86_linux_dr_get_control): Likewise.
3541 (x86_linux_dr_get_status): Likewise.
3542 (update_debug_registers_callback): Likewise.
3543 (x86_linux_dr_set_control): Likewise.
3544 (x86_linux_dr_set_addr): Likewise.
3545 (x86_linux_prepare_to_resume): Likewise.
3546 (x86_linux_new_thread): Likewise.
3547 (x86_linux_new_fork): Likewise.
3548 (x86_linux_get_thread_area): Likewise.
3549 (super_post_startup_inferior): Likewise.
3550 (x86_linux_child_post_startup_inferior): Likewise.
3551 (AMD64_LINUX_USER64_CS): Likewise.
3552 (AMD64_LINUX_X32_DS): Likewise.
3553 (x86_linux_read_description): Likewise.
3554 (x86_linux_enable_btrace): Likewise.
3555 (x86_linux_disable_btrace): Likewise.
3556 (x86_linux_teardown_btrace): Likewise.
3557 (x86_linux_read_btrace): Likewise.
3558 (x86_linux_create_target): Likewise.
3559 (x86_linux_add_target): Likewise.
3560 * i386-linux-nat.c (x86-linux-nat.h): New include.
3561 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3562 (PTRACE_SETREGSET): Likewise.
3563 (arch_lwp_info): Now in x86-linux-nat.c.
3564 (have_ptrace_getregset): Now in x86-linux-nat.h.
3565 (x86_linux_dr_get): Now in x86-linux-nat.c.
3566 (x86_linux_dr_set): Likewise.
3567 (x86_linux_dr_get_addr): Likewise.
3568 (x86_linux_dr_get_control): Likewise.
3569 (x86_linux_dr_get_status): Likewise.
3570 (update_debug_registers_callback): Likewise.
3571 (x86_linux_dr_set_control): Likewise.
3572 (x86_linux_dr_set_addr): Likewise.
3573 (x86_linux_prepare_to_resume): Likewise.
3574 (x86_linux_new_thread): Likewise.
3575 (x86_linux_new_fork): Likewise.
3576 (x86_linux_get_thread_area): Likewise.
3577 (super_post_startup_inferior): Likewise.
3578 (x86_linux_child_post_startup_inferior): Likewise.
3579 (AMD64_LINUX_USER64_CS): Likewise.
3580 (AMD64_LINUX_X32_DS): Likewise.
3581 (x86_linux_read_description): Likewise.
3582 (x86_linux_enable_btrace): Likewise.
3583 (x86_linux_disable_btrace): Likewise.
3584 (x86_linux_teardown_btrace): Likewise.
3585 (x86_linux_read_btrace): Likewise.
3586 (x86_linux_create_target): Likewise.
3587 (x86_linux_add_target): Likewise.
3589 2014-07-11 Gary Benson <gbenson@redhat.com>
3591 * amd64-linux-nat.c: Comment and whitespace changes.
3592 * i386-linux-nat.c: Comment and whitespace changes.
3594 2014-07-11 Gary Benson <gbenson@redhat.com>
3596 * amd64-linux-nat.c (x86_linux_create_target): New function.
3597 (x86_linux_add_target): Likewise.
3598 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3599 * i386-linux-nat.c (x86_linux_create_target): New function.
3600 (x86_linux_add_target): Likewise.
3601 (_initialize_i386_linux_nat): Delegate to the above new functions.
3603 2014-07-11 Gary Benson <gbenson@redhat.com>
3605 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3606 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3607 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3608 (ps_get_thread_area): Delegate to the above.
3610 2014-07-11 Gary Benson <gbenson@redhat.com>
3612 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3613 x86_linux_read_description. All uses updated. amd64-specific
3614 code conditionalized. Conditionalized i386-specific code added.
3615 Redundant cast removed.
3616 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3617 x86_linux_read_description. All uses updated. i386-specific
3618 code conditionalized. Conditionalized amd64-specific code added.
3619 One sizeof replaced with the actual type it is describing.
3621 2014-07-11 Gary Benson <gbenson@redhat.com>
3623 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3624 x86_linux_dr_get. All uses updated.
3625 (amd64_linux_dr_set): Renamed to
3626 x86_linux_dr_set. All uses updated.
3627 (amd64_linux_dr_get_addr): Renamed to
3628 x86_linux_dr_get_addr. All uses updated.
3629 (amd64_linux_dr_get_control): Renamed to
3630 x86_linux_dr_get_control. All uses updated.
3631 (amd64_linux_dr_get_status): Renamed to
3632 x86_linux_dr_get_status. All uses updated.
3633 (amd64_linux_dr_set_control): Renamed to
3634 x86_linux_dr_set_control. All uses updated.
3635 (amd64_linux_dr_set_addr): Renamed to
3636 x86_linux_dr_set_addr. All uses updated.
3637 (amd64_linux_prepare_to_resume): Renamed to
3638 x86_linux_prepare_to_resume. All uses updated.
3639 (amd64_linux_new_thread): Renamed to
3640 x86_linux_new_thread. All uses updated.
3641 (amd64_linux_new_fork): Renamed to
3642 x86_linux_new_fork. All uses updated.
3643 (amd64_linux_child_post_startup_inferior): Renamed to
3644 x86_linux_child_post_startup_inferior. All uses updated.
3645 (amd64_linux_enable_btrace): Renamed to
3646 x86_linux_enable_btrace. All uses updated.
3647 (amd64_linux_disable_btrace): Renamed to
3648 x86_linux_disable_btrace. All uses updated.
3649 (amd64_linux_teardown_btrace): Renamed to
3650 x86_linux_teardown_btrace. All uses updated.
3651 (amd64_linux_read_btrace): Renamed to
3652 x86_linux_read_btrace. All uses updated.
3653 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3654 x86_linux_dr_get. All uses updated.
3655 (i386_linux_dr_set): Renamed to
3656 x86_linux_dr_set. All uses updated.
3657 (i386_linux_dr_get_addr): Renamed to
3658 x86_linux_dr_get_addr. All uses updated.
3659 (i386_linux_dr_get_control): Renamed to
3660 x86_linux_dr_get_control. All uses updated.
3661 (i386_linux_dr_get_status): Renamed to
3662 x86_linux_dr_get_status. All uses updated.
3663 (i386_linux_dr_set_control): Renamed to
3664 x86_linux_dr_set_control. All uses updated.
3665 (i386_linux_dr_set_addr): Renamed to
3666 x86_linux_dr_set_addr. All uses updated.
3667 (i386_linux_prepare_to_resume): Renamed to
3668 x86_linux_prepare_to_resume. All uses updated.
3669 (i386_linux_new_thread): Renamed to
3670 x86_linux_new_thread. All uses updated.
3671 (i386_linux_new_fork): Renamed to
3672 x86_linux_new_fork. All uses updated.
3673 (i386_linux_child_post_startup_inferior): Renamed to
3674 x86_linux_child_post_startup_inferior. All uses updated.
3675 (i386_linux_enable_btrace): Renamed to
3676 x86_linux_enable_btrace. All uses updated.
3677 (i386_linux_disable_btrace): Renamed to
3678 x86_linux_disable_btrace. All uses updated.
3679 (i386_linux_teardown_btrace): Renamed to
3680 x86_linux_teardown_btrace. All uses updated.
3681 (i386_linux_read_btrace): Renamed to
3682 x86_linux_read_btrace. All uses updated.
3684 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3686 * remote.c (extended_remote_post_attach): New function.
3687 (init_extended_remote_ops): Install it as to_post_attach method.
3689 2014-07-09 Pedro Alves <palves@redhat.com>
3691 * infcmd.c (attach_command_post_wait): Don't call
3692 target_terminal_inferior here.
3693 (attach_command): Call it here instead.
3695 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3697 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3699 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3700 from varobj.c, with additional checks.
3701 (c_varobj_ops): Fill in is_path_expr_parent field.
3702 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3703 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3705 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3707 (varobj_default_is_path_expr_parent): New function.
3708 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3709 (varobj_default_is_path_expr_parent): Declare new function.
3711 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3713 * infcmd.c (finish_backward): Turn internal error into normal error.
3715 2014-07-07 Pedro Alves <palves@redhat.com>
3718 * remote.c (async_handle_remote_sigint)
3719 (async_handle_remote_sigint_twice): Call
3720 gdb_call_async_signal_handler instead of
3721 mark_async_signal_handler.
3723 2014-07-07 Tom Tromey <tromey@redhat.com>
3725 * target-delegates.c: Rebuild.
3726 * target.c (target_info_record): Remove.
3727 * record.c (info_record_command): Unconditionally call
3729 * target.h (struct target_ops) <to_info_record>: Use
3730 TARGET_DEFAULT_IGNORE.
3731 (target_info_record): Remove.
3733 2014-07-07 Tom Tromey <tromey@redhat.com>
3735 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3736 TARGET_DEFAULT_NORETURN.
3737 * target.c (generic_tls_error): New function.
3738 (target_translate_tls_address): Don't search target stack.
3739 * target-delegates.c: Rebuild.
3740 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3742 * linux-thread-db.c (thread_db_get_thread_local_address):
3743 Unconditionally call beneath target.
3745 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3747 * cli/cli-logging.c (pop_output_files): Assign targerr to
3750 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3752 * MAINTAINERS (Write After Approval): Update my email address.
3754 2014-07-02 Gary Benson <gbenson@redhat.com>
3756 * proc-service.c (ps_xfer_memory): Update comment.
3757 (ps_pstop): Remove unused function.
3758 (ps_pcontinue): Likewise.
3759 (ps_lstop): Likewise.
3760 (ps_lcontinue): Likewise.
3761 (ps_lgetxregsize): Likewise.
3762 (ps_lgetxregs): Likewise.
3763 (ps_lsetxregs): Likewise.
3764 (ps_plog): Likewise.
3765 (ps_ptread): Likewise.
3766 (ps_ptwrite): Likewise.
3768 2014-07-01 Mark Wielaard <mjw@redhat.com>
3770 * dwarf2read.c (add_array_cv_type): New function.
3771 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3772 (read_tag_volatile_type): Likewise.
3774 2014-07-01 Tom Tromey <tromey@redhat.com>
3776 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3777 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3778 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3779 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3780 * command.h (cmd_cfunc_ftype): Move earlier.
3781 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3782 (add_com, add_info): Use cmd_cfunc_ftype.
3784 2014-06-30 Tom Tromey <tromey@redhat.com>
3786 * symtab.c (operator_chars): Make parameters and return type
3788 (file_matches): Make "files" const.
3789 (struct search_symbols_data) <files>: Now const.
3790 (search_symbols): Make "regexp" and "files" parameters const.
3792 (symtab_symbol_info): Remove cast.
3793 (rbreak_command): Update.
3794 * symtab.h (search_symbols): Update.
3796 2014-06-27 Yao Qi <yao@codesourcery.com>
3798 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3799 Change parameter type to 'struct thread_info *'. Caller
3801 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3803 * dummy-frame.c (struct dummy_frame_id): New.
3804 (dummy_frame_id_eq): New function.
3805 (struct dummy_frame) <id>: Change its type to 'struct
3807 (dummy_frame_push): Add parameter ptid and save it in
3809 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3811 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3813 (lookup_dummy_frame): Change parameter type to 'struct
3814 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3815 instead of frame_id_eq.
3816 (dummy_frame_pop): Add parameter ptid. Callers updated.
3817 Update comments. Compose dummy_frame_id and pass it to
3819 (dummy_frame_discard): Add parameter ptid.
3820 (dummy_frame_sniffer): Compose dummy_frame_id and call
3821 dummy_frame_id_eq instead of frame_id_eq.
3822 (fprint_dummy_frames): Print ptid.
3823 * dummy-frame.h: Remove comments.
3824 (dummy_frame_push): Add ptid in declaration.
3825 (dummy_frame_pop, dummy_frame_discard): Likewise.
3827 2014-06-26 Tom Tromey <tromey@redhat.com>
3829 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3830 * command.h (error_no_arg): Update.
3832 2014-06-26 Tom Tromey <tromey@redhat.com>
3834 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3835 (do_show_command): Make "arg" const.
3836 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3838 2014-06-26 Tom Tromey <tromey@redhat.com>
3840 * record-full.c (record_full_get_bookmark): Make "args" const.
3841 (record_full_goto_bookmark): Make "raw_bookmark" const.
3842 * record.c (record_goto): New function.
3843 (cmd_record_goto): Use it. Now static.
3844 * record.h (record_goto): Declare.
3845 (cmd_record_goto): Remove declaration.
3846 * target-delegates.c: Rebuild.
3847 * target.h (struct target_ops) <to_get_bookmark,
3848 to_goto_bookmark>: Make parameter const.
3850 2014-06-26 Tom Tromey <tromey@redhat.com>
3852 * defs.h (generic_load): Update.
3853 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3854 * monitor.c (monitor_load): Make "args" const.
3855 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3856 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3858 (mips_load): Make "file" const.
3859 * remote-sim.c (gdbsim_load): Make "args" const.
3860 * remote.c (remote_load): Make "name" const.
3861 * symfile.c (generic_load): Make "args" const.
3862 * target-delegates.c: Rebuild.
3863 * target.c (target_load): Make "arg" const.
3864 (debug_to_load): Make "args" const.
3865 * target.h (struct target_ops) <to_load>: Make parameter const.
3866 (target_load): Update.
3868 2014-06-26 Tom Tromey <tromey@redhat.com>
3871 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3872 (dwarf2_physname, read_partial_die)
3873 (guess_partial_die_structure_name, fixup_partial_die)
3874 (guess_full_die_structure_name, anonymous_struct_prefix)
3875 (dwarf2_name): Use per-BFD obstack.
3877 2014-06-26 Yao Qi <yao@codesourcery.com>
3879 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3880 dummyframe and this_id into inner block below.
3882 2014-06-26 Yao Qi <yao@codesourcery.com>
3884 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3885 with "signal_pass[0]" in the initialization of signal_pass.
3887 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3889 * record-btrace.c (record_btrace_generating_corefile)
3890 (record_btrace_prepare_to_generate_core)
3891 (record_btrace_done_generating_core): New.
3892 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3893 (record_btrace_store_registers, record_btrace_prepare_to_store):
3894 Forward request when generating a core file.
3895 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3896 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3897 to_done_generating_core.
3899 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3901 * target.h (target_ops) <to_prepare_to_generate_core>
3902 <to_done_generating_core>: New.
3903 (target_prepare_to_generate_core, target_done_generating_core): New.
3904 * target.c (target_prepare_to_generate_core)
3905 (target_done_generating_core): New.
3906 * target-delegates.c: Regenerate.
3907 * gcore.c: (write_gcore_file): Rename to ...
3908 (write_gcore_file_1): ...this.
3909 (write_gcore_file): Call target_prepare_to_generate_core
3910 and target_done_generating_core.
3912 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3914 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3915 * gcore.c (write_gcore_file): Free memory returned from
3916 make_corefile_notes.
3917 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3918 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3920 2014-06-24 Yao Qi <yao@codesourcery.com>
3922 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3923 (arm_linux_init_abi): Set skip_trampoline_code with
3924 gdbarch_skip_trampoline_code instead of
3925 find_solib_trampoline_target.
3927 2014-06-24 Yao Qi <yao@codesourcery.com>
3929 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3930 arm_skip_bx_reg returns non-zero.
3932 2014-06-24 Yao Qi <yao@codesourcery.com>
3934 * arm-tdep.c (arm_skip_bx_reg): New function.
3935 (arm_skip_stub): Call arm_skip_bx_reg.
3937 2014-06-23 Don Breazeal <donb@codesourcery.com>
3939 * MAINTAINERS: Add myself as write-after-approval maintainer.
3941 2014-06-23 Pedro Alves <palves@redhat.com>
3943 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3944 DR_CONTROL before setting DR0..DR3.
3945 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3946 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3947 bits of DR_CONTROL related to the debug register slot being
3948 disabled. If all slots are vacant, clear local slowdown as well,
3949 and assert DR_CONTROL is 0.
3951 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3953 * python/lib/gdb/command/xmethods.py
3954 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3955 current progspace only if the string "progspace" matches LOCUS_RE.
3957 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3959 Fix --with-system-readline with readline-6.3 patch 5.
3960 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3961 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3964 2014-06-20 Tom Tromey <tromey@redhat.com>
3966 * dwarf2read.c (dw2_get_real_path): Use correct type in
3968 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3970 2014-06-20 Gary Benson <gbenson@redhat.com>
3972 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3973 * common/glibc_thread_db.h: Likewise.
3974 * common/i386-cpuid.h: Likewise.
3975 * common/i386-gcc-cpuid.h: Likewise.
3976 * common/linux-btrace.h: Likewise.
3977 * common/linux-osdata.h: Likewise.
3978 * common/linux-procfs.h: Likewise.
3979 * common/linux-ptrace.h: Likewise.
3980 * common/mips-linux-watch.h: Likewise.
3981 * common/linux-btrace.c: Moved to nat.
3982 * common/linux-osdata.c: Likewise.
3983 * common/linux-procfs.c: Likewise.
3984 * common/linux-ptrace.c: Likewise.
3985 * common/mips-linux-watch.c: Likewise.
3986 * nat/gdb_thread_db.h: Moved from common.
3987 * nat/glibc_thread_db.h: Likewise.
3988 * nat/i386-cpuid.h: Likewise.
3989 * nat/i386-gcc-cpuid.h: Likewise.
3990 * nat/linux-btrace.c: Likewise.
3991 * nat/linux-btrace.h: Likewise.
3992 * nat/linux-osdata.c: Likewise.
3993 * nat/linux-osdata.h: Likewise.
3994 * nat/linux-procfs.c: Likewise.
3995 * nat/linux-procfs.h: Likewise.
3996 * nat/linux-ptrace.c: Likewise.
3997 * nat/linux-ptrace.h: Likewise.
3998 * nat/mips-linux-watch.c: Likewise.
3999 * nat/mips-linux-watch.h: Likewise.
4000 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4001 (object file files): Reordered.
4002 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4003 of glibc_thread_db.h.
4005 2014-06-20 Gary Benson <gbenson@redhat.com>
4007 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4008 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4009 (i386_dr_low): Likewise.
4010 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4011 (i386_dr_low_set_addr): Likewise.
4012 (i386_dr_low_get_addr): Likewise.
4013 (i386_dr_low_can_set_control): Likewise.
4014 (i386_dr_low_set_control): Likewise.
4015 (i386_dr_low_get_control): Likewise.
4016 (i386_dr_low_get_status): Likewise.
4017 (i386_get_debug_register_length): Likewise.
4018 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4019 (i386_dr_low): Likewise.
4020 * nat/i386-dregs.c (i386-low.h): Remove include.
4021 (i386-nat.h): Likewise.
4022 (nat/i386-dregs.h): New include.
4023 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4024 (i386_dr_low_set_addr): Likewise.
4025 (i386_dr_low_get_addr): Likewise.
4026 (i386_dr_low_can_set_control): Likewise.
4027 (i386_dr_low_set_control): Likewise.
4028 (i386_dr_low_get_control): Likewise.
4029 (i386_dr_low_get_status): Likewise.
4030 (i386_get_debug_register_length): Likewise.
4031 (debug_hw_points): Likewise.
4033 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4035 * Makefile.in (SFILES): Add d-exp.y.
4036 (YYFILES): Add d-exp.c.
4037 (YYOBJ): Add d-exp.o.
4038 (local-maintainer-clean): Delete d-exp.c.
4039 * d-exp.y: New file.
4040 * d-lang.h (d_parse): New declaration.
4041 (d_error): New declaration.
4042 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4043 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4044 PREC_ORDER operators.
4045 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4047 2014-06-19 Yao Qi <yao@codesourcery.com>
4049 * gdbthread.h (any_running): Remove the declaration.
4050 * thread.c (any_running): Remove.
4052 2014-06-19 Yao Qi <yao@codesourcery.com>
4054 * gdbthread.h (struct thread_info) <state>: Change its type to
4055 'enum thread_state'. Update comments.
4057 2014-06-19 Pedro Alves <palves@redhat.com>
4059 * gdbthread.h (ALL_THREADS): Delete.
4060 (ALL_NON_EXITED_THREADS): New macro.
4061 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4062 instead of ALL_THREADS.
4063 * infrun.c (find_thread_needs_step_over)
4064 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4065 instead of ALL_THREADS.
4066 * record-btrace.c (record_btrace_open)
4067 (record_btrace_stop_recording, record_btrace_close)
4068 (record_btrace_is_replaying, record_btrace_resume)
4069 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4070 * remote.c (append_pending_thread_resumptions): Likewise.
4071 * thread.c (thread_apply_all_command): Likewise.
4073 2014-06-19 Gary Benson <gbenson@redhat.com>
4075 * i386-nat.c (i386_stopped_by_watchpoint):
4076 Use i386_dr_stopped_by_watchpoint.
4077 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4078 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4080 2014-06-19 Gary Benson <gbenson@redhat.com>
4082 * nat/i386-dregs.c: New file.
4083 * Makefile.in (i386-dregs.o): New rule.
4084 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4085 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4086 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4087 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4088 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4089 * config/i386/go32.mh (NATDEPFILES): Likewise.
4090 * config/i386/linux.mh (NATDEPFILES): Likewise.
4091 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4092 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4093 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4094 * i386-nat.h (debug_hw_points): New declaration.
4095 * i386-nat.c (breakpoint.h): Remove include.
4096 (command.h): Likewise.
4097 (target.h): Likewise.
4098 (gdb_assert.h): Likewise.
4099 (debug_hw_points): Made nonstatic.
4100 (debug_printf): Now in i386-dregs.c.
4101 (TARGET_HAS_DR_LEN_8): Likewise.
4102 (DR_CONTROL_SHIFT): Likewise.
4103 (DR_CONTROL_SIZE): Likewise.
4104 (DR_RW_EXECUTE): Likewise.
4105 (DR_RW_WRITE): Likewise.
4106 (DR_RW_READ): Likewise.
4107 (DR_RW_IORW): Likewise.
4108 (DR_LEN_1): Likewise.
4109 (DR_LEN_2): Likewise.
4110 (DR_LEN_4): Likewise.
4111 (DR_LEN_8): Likewise.
4112 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4113 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4114 (DR_ENABLE_SIZE): Likewise.
4115 (DR_LOCAL_SLOWDOWN): Likewise.
4116 (DR_GLOBAL_SLOWDOWN): Likewise.
4117 (DR_CONTROL_RESERVED): Likewise.
4118 (I386_DR_CONTROL_MASK): Likewise.
4119 (I386_DR_VACANT): Likewise.
4120 (I386_DR_LOCAL_ENABLE): Likewise.
4121 (I386_DR_GLOBAL_ENABLE): Likewise.
4122 (I386_DR_DISABLE): Likewise.
4123 (I386_DR_SET_RW_LEN): Likewise.
4124 (I386_DR_GET_RW_LEN): Likewise.
4125 (I386_DR_WATCH_HIT): Likewise.
4126 (i386_wp_op_t): Likewise.
4127 (i386_show_dr): Likewise.
4128 (i386_length_and_rw_bits): Likewise.
4129 (i386_insert_aligned_watchpoint): Likewise.
4130 (i386_remove_aligned_watchpoint): Likewise.
4131 (i386_handle_nonaligned_watchpoint): Likewise.
4132 (i386_update_inferior_debug_regs): Likewise.
4133 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4134 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4135 (i386_region_ok_for_watchpoint):
4136 Use i386_dr_region_ok_for_watchpoint.
4137 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4139 2014-06-19 Gary Benson <gbenson@redhat.com>
4141 * i386-nat.c (i386_insert_hw_breakpoint): Use
4142 i386_insert_watchpoint.
4143 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4145 2014-06-19 Gary Benson <gbenson@redhat.com>
4147 * i386-nat.c (i386_dr_show): Renamed to
4148 i386_show_dr and made static. All uses updated.
4149 (i386_dr_length_and_rw_bits): Renamed to
4150 i386_length_and_rw_bits and made static.
4152 (i386_dr_insert_aligned_watchpoint): Renamed to
4153 i386_insert_aligned_watchpoint and made static.
4155 (i386_dr_remove_aligned_watchpoint): Renamed to
4156 i386_remove_aligned_watchpoint and made static.
4158 (i386_dr_update_inferior_debug_regs): Renamed to
4159 i386_update_inferior_debug_regs and made static.
4161 * nat/i386-dregs.h (i386_dr_show): Removed.
4162 (i386_dr_length_and_rw_bits): Likewise.
4163 (i386_dr_insert_aligned_watchpoint): Likewise.
4164 (i386_dr_remove_aligned_watchpoint): Likewise.
4165 (i386_dr_update_inferior_debug_regs): Likewise.
4167 2014-06-19 Gary Benson <gbenson@redhat.com>
4169 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4170 * configure: Regenerate.
4171 * config.in: Likewise.
4172 * main.c (signal.h): New include.
4173 (setup_alternate_signal_stack): New function.
4174 (captured_main): Call the above.
4175 * cp-support.c (signal.h): New include.
4176 (catch_demangler_crashes): New flag.
4177 (SIGJMP_BUF): New define.
4178 (SIGSETJMP): Likewise.
4179 (SIGLONGJMP): Likewise.
4180 (gdb_demangle_jmp_buf): New static global.
4181 (gdb_demangle_attempt_core_dump): Likewise.
4182 (gdb_demangle_signal_handler): New function.
4183 (gdb_demangle): If catch_demangler_crashes is set, install the
4184 above signal handler before calling bfd_demangle, and restore
4185 the original signal handler afterwards. Display the offending
4186 symbol and call demangler_warning the first time a segmentation
4188 (_initialize_cp_support): New maint set/show command.
4190 2014-06-19 Gary Benson <gbenson@redhat.com>
4192 * utils.h (resource_limit_kind): New enum.
4193 (can_dump_core): New declaration.
4194 (warn_cant_dump_core): Likewise.
4195 (dump_core): Likewise.
4196 * utils.c (dump_core): Made nonstatic. Added new
4197 parameter "limit_kind".
4198 (can_dump_core): Made nonstatic. Moved printing code to...
4199 (warn_cant_dump_core): New function.
4200 (can_dump_core_warn): Likewise.
4201 (internal_vproblem): Replace calls to can_dump_core with
4202 calls to can_dump_core_warn. Supply new argument to each.
4204 2014-06-19 Gary Benson <gbenson@redhat.com>
4206 * utils.h (demangler_vwarning): New declaration.
4207 (demangler_warning): Likewise.
4208 * utils.c (struct internal_problem)
4209 <user_settable_should_quit>: New field.
4210 <user_settable_should_dump_core>: Likewise
4211 (internal_error_problem): Add values for above new fields.
4212 (internal_warning_problem): Likewise.
4213 (demangler_warning_problem): New static global.
4214 (demangler_vwarning): New function.
4215 (demangler_warning): Likewise.
4216 (add_internal_problem_command): Selectively add commands.
4217 (_initialize_utils): New internal problem command.
4218 * maint.c (maintenance_demangler_warning): New function.
4219 (_initialize_maint_cmds): New command.
4221 2014-06-18 Tom Tromey <tromey@redhat.com>
4223 * f-valprint.c (info_common_command_for_block): Update.
4224 * symtab.h (struct general_symbol_info) <common_block>: Now
4227 2014-06-18 Tom Tromey <tromey@redhat.com>
4229 * symtab.h (struct symtab) <blockvector>: Now const.
4230 * ada-lang.c (ada_add_global_exceptions): Update.
4231 * buildsym.c (augment_type_symtab): Update.
4232 * dwarf2read.c (dw2_lookup_symbol): Update.
4233 * jit.c (finalize_symtab): Update.
4234 * jv-lang.c (add_class_symtab_symbol): Update.
4235 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4237 * objfiles.c (objfile_relocate1): Update.
4238 * psymtab.c (lookup_symbol_aux_psymtabs)
4239 (maintenance_check_psymtabs): Update.
4240 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4242 * spu-tdep.c (spu_catch_start): Update.
4243 * symmisc.c (dump_symtab_1): Update.
4244 * symtab.c (lookup_global_symbol_from_objfile)
4245 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4246 (basic_lookup_transparent_type_quick)
4247 (basic_lookup_transparent_type, find_pc_sect_symtab)
4248 (find_pc_sect_line, search_symbols): Update.
4249 * block.c (find_block_in_blockvector): Make "bl" const.
4250 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4252 (blockvector_contains_pc): Make "bv" const.
4253 (block_for_pc_sect): Update.
4254 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4255 (blockvector_contains_pc): Update.
4256 * breakpoint.c (resolve_sal_pc): Update.
4257 * inline-frame.c (block_starting_point_at): Update.
4259 2014-06-18 Tom Tromey <tromey@redhat.com>
4261 * completer.c (complete_line): Make "line_buffer" const.
4262 * completer.h (complete_line): Update.
4264 2014-06-18 Tom Tromey <tromey@redhat.com>
4266 * symtab.c (add_macro_name): Remove unneeded cast.
4268 2014-06-18 Tom Tromey <tromey@redhat.com>
4270 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4271 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4273 2014-06-18 Tom Tromey <tromey@redhat.com>
4275 * probe.c (info_probes_for_ops): Make "arg" const.
4276 * probe.h (info_probes_for_ops): Update.
4278 2014-06-18 Tom Tromey <tromey@redhat.com>
4280 * varobj.c (varobj_create): Update.
4281 * valops.c (value_of_this): Update.
4282 * tracepoint.c (add_local_symbols, scope_info): Update.
4283 * symtab.h (struct general_symbol_info) <block>: Now const.
4284 * symtab.c (skip_prologue_sal)
4285 (default_make_symbol_completion_list_break_on)
4286 (skip_prologue_using_sal): Update.
4287 * stack.h (iterate_over_block_locals)
4288 (iterate_over_block_local_vars): Update.
4289 * stack.c (print_frame_args): Update.
4290 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4292 (get_selected_block): Make return type const.
4293 * python/py-frame.c (frapy_block): Update.
4294 * python/py-block.c (gdbpy_block_for_pc): Update.
4295 * p-exp.y (%union) <bval>: Now const.
4296 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4297 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4298 * m2-exp.y (%union) <bval>: Now const.
4299 * linespec.c (get_current_search_block): Make return type const.
4300 (create_sals_line_offset, find_label_symbols): Update.
4301 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4303 (block_starting_point_at): Make "block" const.
4304 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4305 (check_exception_resume): Update.
4306 * guile/scm-frame.c (gdbscm_frame_block): Update.
4307 * guile/scm-block.c (gdbscm_lookup_block): Update.
4308 * frame.h (get_frame_block): Update.
4309 (get_selected_block): Make return type const.
4310 * frame.c (frame_id_inner): Update.
4311 * f-valprint.c (info_common_command_for_block)
4312 (info_common_command): Update.
4313 * dwarf2loc.c (dwarf2_find_location_expression)
4314 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4315 (locexpr_describe_location_piece): Update.
4316 * c-exp.y (%union) <bval>: Now const.
4317 * breakpoint.c (resolve_sal_pc): Update.
4318 * blockframe.c (get_frame_block):Make return type const.
4319 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4320 (block_innermost_frame): Update.
4321 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4322 (block_for_pc, block_for_pc_sect): Update.
4323 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4325 (block_for_pc_sect, block_for_pc): Make return type const.
4326 * ax-gdb.c (gen_expr): Update.
4327 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4328 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4329 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4330 (ada_read_var_value): Update.
4331 * ada-exp.y (struct name_info) <block>: Now const.
4333 (block_lookup): Constify.
4335 2014-06-18 Gary Benson <gbenson@redhat.com>
4337 * nat/i386-dregs.h: New file.
4338 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4339 * i386-nat.h (i386-dregs.h): New include.
4340 (DR_FIRSTADDR): Now in i386-dregs.h.
4341 (DR_LASTADDR): Likewise.
4342 (DR_NADDR): Likewise.
4343 (DR_STATUS): Likewise.
4344 (DR_CONTROL): Likewise.
4345 (i386_debug_reg_state): Likewise.
4346 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4348 2014-06-18 Don Breazeal <donb@codesourcery.com>
4350 * breakpoint.c (set_longjmp_breakpoint): Call
4351 momentary_breakpoint_from_master with additional argument.
4352 (set_longjmp_breakpoint_for_call_dummy): Call
4353 momentary_breakpoint_from_master with additional argument.
4354 (set_std_terminate_breakpoint): Call
4355 momentary_breakpoint_from_master with additional argument.
4356 (momentary_breakpoint_from_master): Add argument to function
4357 definition and use it to initialize structure member flag.
4358 (clone_momentary_breakpoint): Call
4359 momentary_breakpoint_from_master with additional argument.
4360 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4361 member flags set in momentary_breakpoint_from_master.
4363 2014-06-18 Gary Benson <gbenson@redhat.com>
4365 * i386-nat.c (i386_show_dr): Renamed to
4366 i386_dr_show and made nonstatic. All uses updated.
4367 (i386_length_and_rw_bits): Renamed to
4368 i386_dr_length_and_rw_bits and made nonstatic.
4370 (i386_insert_aligned_watchpoint): Renamed to
4371 i386_dr_insert_aligned_watchpoint and made nonstatic.
4373 (i386_remove_aligned_watchpoint): Renamed to
4374 i386_dr_remove_aligned_watchpoint and made nonstatic.
4376 (i386_update_inferior_debug_regs): Renamed to
4377 i386_dr_update_inferior_debug_regs and made nonstatic.
4380 2014-06-18 Gary Benson <gbenson@redhat.com>
4382 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4383 (i386_dr_low_can_set_control): Likewise.
4384 (i386_dr_low_set_addr): Likewise.
4385 (i386_dr_low_set_control): Likewise.
4386 (i386_dr_low_get_addr): Likewise.
4387 (i386_dr_low_get_status): Likewise.
4388 (i386_dr_low_get_control): Likewise.
4389 (i386_insert_aligned_watchpoint): Use new macros.
4390 (i386_update_inferior_debug_regs): Likewise.
4391 (i386_stopped_data_address): Likewise.
4393 2014-06-18 Gary Benson <gbenson@redhat.com>
4395 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4396 New parameter. All uses updated.
4398 2014-06-18 Gary Benson <gbenson@redhat.com>
4400 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4403 2014-06-18 Gary Benson <gbenson@redhat.com>
4405 * i386-nat.c (debug_printf): New macro.
4406 (i386_get_debug_register_length): Likewise.
4407 (TARGET_HAS_DR_LEN_8): Use above macro.
4408 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4409 and printf_unfiltered. Use phex to format values.
4411 2014-06-18 Gary Benson <gbenson@redhat.com>
4413 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4416 2014-06-18 Gary Benson <gbenson@redhat.com>
4418 * i386-nat.c: Comment changes.
4420 2014-06-18 Gary Benson <gbenson@redhat.com>
4422 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4424 2014-06-18 Gary Benson <gbenson@redhat.com>
4426 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4427 (i386_insert_aligned_watchpoint): Likewise.
4428 (i386_remove_aligned_watchpoint): Likewise.
4429 (i386_handle_nonaligned_watchpoint): Likewise.
4431 2014-06-18 Gary Benson <gbenson@redhat.com>
4433 * i386-nat.c: Whitespace changes.
4435 2014-06-17 Samuel Bronson <naesten@gmail.com>
4437 * MAINTAINERS: Update Roland McGrath's email address.
4438 Thanks to Sergio Durigan Junior for pointing out that he left
4439 Red Hat a while ago, and giving me a current address.
4441 2014-06-17 Tom Tromey <tromey@redhat.com>
4443 * utils.h (savestring): Remove declaration.
4445 2014-06-17 Tom Tromey <tromey@redhat.com>
4447 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4449 2014-06-16 Keith Seitz <keiths@redhat.com>
4452 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4453 to update the varobj if inferior_ptid is null_ptid.
4455 2014-06-16 Tom Tromey <tromey@redhat.com>
4457 * target.h (struct target_ops) <to_info_proc>: Make parameter
4459 (target_info_proc): Update.
4460 * target.c (target_info_proc): Make "args" const.
4461 * procfs.c (procfs_info_proc): Update.
4462 * linux-tdep.c (linux_info_proc): Update.
4463 (linux_core_info_proc_mappings): Make "args" const.
4464 (linux_core_info_proc): Update.
4465 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4466 * gdbarch.c: Rebuild.
4467 * gdbarch.h: Rebuild.
4468 * corelow.c (core_info_proc): Update.
4470 2014-06-16 Tom Tromey <tromey@redhat.com>
4472 * target.h (struct target_ops) <to_disconnect>: Make parameter
4474 (target_disconnect): Update.
4475 * target.c (target_disconnect): Make "args" const.
4476 * target-delegates.c: Rebuild.
4477 * remote.c (remote_disconnect): Update.
4478 * record.h (record_disconnect): Update.
4479 * record.c (record_disconnect): Update.
4480 * inf-child.c (inf_child_disconnect): Update.
4482 2014-06-16 Tom Tromey <tromey@redhat.com>
4484 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4485 * target.c (debug_to_rcmd, default_rcmd): Update.
4486 * target-delegates.c: Rebuild.
4487 * remote.c (remote_rcmd): Update.
4488 * monitor.c (monitor_rcmd): Update.
4490 2014-06-16 Pedro Alves <palves@redhat.com>
4492 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4493 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4494 have OBJF_SHARED set.
4495 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4496 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4497 instead of OBJF_USERLOADED.
4498 * objfiles.h (OBJF_SHARED): Update comment.
4499 (userloaded_objfile_contains_address_p): Rename to ...
4500 (shared_objfile_contains_address_p): ... this, and update
4502 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4504 (remove_symbol_file_command): Skip objfiles that don't have
4507 2014-06-16 Tom Tromey <tromey@redhat.com>
4509 * minsyms.h (prim_record_minimal_symbol)
4510 (prim_record_minimal_symbol_and_info): Update comments.
4512 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4514 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4515 or --without-guile, according to how GDB was built.
4517 2014-06-13 Tom Tromey <tromey@redhat.com>
4519 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4521 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4523 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4525 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4526 help_list.Pass all_commands, not -1, to help_list.
4527 * cli/cli-dump.c (dump_command, append_command)
4528 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4529 (binary_dump_command, binary_append_command): Pass all_commands,
4530 not -1, to help_list.
4531 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4533 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4535 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4537 * top.c (set_history): Pass all_commands, not -1, to help_list.
4538 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4539 all_commands, not -1, to help_list.
4540 * symfile.c (overlay_command): Pass all_commands, not -1, to
4542 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4544 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4546 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4548 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4549 not -1, to help_list.
4550 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4551 not -1, to help_list.
4552 * maint.c (maintenance_command, maintenance_info_command)
4553 (maintenance_print_command, maintenance_set_cmd): Pass
4554 all_commands, not -1, to help_list.
4555 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4557 * language.c (set_check): Pass all_commands, not -1, to help_list.
4558 * infcmd.c (unset_command): Pass all_commands, not -1, to
4560 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4562 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4564 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4566 * breakpoint.c (save_command): Pass all_commands, not -1, to
4568 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4569 all_commands, not -1, to help_list.
4571 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4573 * regcache.c (struct register_to_invalidate): New structure.
4574 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4576 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4578 2014-06-12 Yao Qi <yao@codesourcery.com>
4580 * varobj.c (varobj_get_num_children): Call
4581 varobj_is_dynamic_p.
4582 (varobj_list_children): Likewise.
4583 (varobj_update): Likewise. Update comments.
4585 2014-06-12 Yao Qi <yao@codesourcery.com>
4587 * varobj.c (varobj_pretty_printed_p): Rename to ...
4588 (varobj_is_dynamic_p): ... this. New function.
4589 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4590 (varobj_is_dynamic_p): Declare.
4591 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4592 (mi_print_value_p, varobj_update_one): Likewise.
4594 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4595 Yao Qi <yao@codesourcery.com>
4597 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4598 (varobj_get_iterator): Wrap up code for pretty-printer by
4599 "#if HAVE_PYTHON" and "#endif".
4600 (update_dynamic_varobj_children): Likewise.
4602 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4603 Yao Qi <yao@codesourcery.com>
4605 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4606 gdb_python_initialized is false. Move some code from varobj.c.
4607 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4608 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4609 (struct varobj_item): Moved to varobj-iter.h".
4610 (varobj_clear_saved_item): New function.
4611 (update_dynamic_varobj_children): Move python-related code to
4613 (free_variable): Call varobj_clear_saved_item and
4616 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4617 Yao Qi <yao@codesourcery.com>
4619 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4620 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4621 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4622 (py-varobj.o): New rule.
4623 * python/py-varobj.c: New file.
4624 * python/python-internal.h (py_varobj_get_iterator): Declare.
4625 * varobj-iter.h: New file.
4626 * varobj.c: Include "varobj-iter.h"
4627 (struct varobj) <child_iter>: Change its type from "PyObject *"
4628 to "struct varobj_iter *".
4629 <saved_item>: Likewise.
4630 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4631 [HAVE_PYTHON] (varobj_get_iterator): New function.
4632 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4633 python-specific code to python/py-varobj.c.
4634 (install_visualizer): Call varobj_iter_delete instead of
4636 * varobj.h (varobj_ensure_python_env): Declare.
4638 2014-06-12 Yao Qi <yao@codesourcery.com>
4640 * varobj.c (struct varobj_item): New structure.
4641 (create_child_with_value): Update declaration.
4642 (varobj_add_child): Replace arguments 'name' and 'value' with
4643 'item'. All callers updated.
4644 (install_dynamic_child): Likewise.
4645 (update_dynamic_varobj_children): Likewise.
4646 (varobj_add_child): Likewise.
4647 (create_child_with_value): Likewise.
4649 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4651 * NEWS: Create a new section for the next release branch.
4652 Rename the section of the current branch, now that it has
4655 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4657 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4658 * version.in: Bump version to 7.8.50.DATE-cvs.
4660 2014-06-11 Pedro Alves <palves@redhat.com>
4663 * ser-mingw.c (net_windows_socket_check_pending): New function.
4664 (net_windows_select_thread): Ignore spurious wakeups. Use
4665 net_windows_socket_check_pending.
4666 (net_windows_wait_handle): Check for pending events with
4667 ioctlsocket, through net_windows_socket_check_pending, instead of
4668 checking the socket's event.
4670 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4672 * python/python-internal.h (gdb_PyObject_GetAttrString)
4673 (gdb_PyObject_HasAttrString): New inline function definitions.
4674 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4675 char * of the second argument to PyObject_GetAttrString.
4677 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4679 * serial.c (serial_write): Fix index of character to be printed
4680 in call to serial_logchar when serial debug traces are enabled.
4682 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4684 * gdbtypes (resolve_dynamic_range): Add function description.
4686 2014-06-09 Pedro Alves <palves@redhat.com>
4688 * linux-nat.c (linux_child_follow_fork): Initialize status with
4689 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4690 inner block. Only pass the signal to PTRACE_DETACH if in pass
4693 2014-06-09 Gary Benson <gbenson@redhat.com>
4695 * common/signals.c (gdb_signal_from_host): Reorder to separate
4696 the always-available ANSI-standard signals from the signals that
4698 (do_gdb_signal_to_host): Likewise.
4699 * proc-events.c (signal_table): Likewise.
4701 2014-06-08 Hui Zhu <hui@codesourcery.com>
4703 * common/linux-ptrace.c (linux_disable_event_reporting): New
4705 * common/linux-ptrace.h (linux_disable_event_reporting): New
4707 * linux-nat.c (linux_child_follow_fork): Do a single step before
4710 2014-06-07 Keith Seitz <keiths@redhat.com>
4714 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4715 from symbol_matches_domain in symtab.c. All local callers
4716 of symbol_matches_domain updated.
4717 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4718 search STRUCT_DOMAIN.
4719 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4720 independently. standard_lookup will do that automatically.
4721 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4722 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4723 (cp_lookup_symbol_in_namespace): Likewise.
4724 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4725 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4726 may return a STRUCT_DOMAIN match.
4727 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4728 * cp-support.c: Include language.h.
4729 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4731 * psymtab.c (match_partial_symbol): Compare the requested
4732 domain with the symbol's domain directly.
4733 (lookup_partial_symbol): Likewise.
4734 * symtab.c (lookup_symbol_in_language): Explain when/why
4735 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4736 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4737 appropriate languages.
4738 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4739 and moved to ada-lang.c
4740 (lookup_block_symbol): Explain that this function only returns
4741 symbol matching the requested DOMAIN.
4742 Compare the requested domain with the symbol's domain directly.
4743 (iterate_over_symbols): Compare the requested domain with the
4744 symbol's domain directly.
4745 * symtab.h (symbol_matches_domain): Remove.
4747 2014-06-06 Doug Evans <xdje42@gmail.com>
4749 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4750 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4751 (gdbscm_guile_version_is_at_least): Declare.
4752 (gdbscm_scm_string_to_int): Declare.
4753 * guile/guile.c (gdbscm_guile_major_version): New global.
4754 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4755 (guile_datadir): New static global.
4756 (gdbscm_guile_data_directory): New function.
4757 (initialize_scheme_side): Update.
4758 (misc_guile_functions): Add guile-data-directory.
4759 (initialize_gdb_module): Fetch guile version number.
4760 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4761 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4762 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4763 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4765 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4766 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4767 * guile/scm-value.c (gdbscm_value_to_string): Only call
4768 scm_port_conversion_strategy if Guile version >= 2.0.6.
4770 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4772 * main.c (print_gdb_help): Add -q and --silent.
4774 2014-06-06 Gary Benson <gbenson@redhat.com>
4776 * common/signals.c: Remove preprocessor conditionals for
4777 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4778 SIGSEGV and SIGTERM.
4779 * proc-events.c: Likewise.
4781 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4783 * symfile.c (symfile_free_objfile): Remove restriction to
4785 * symfile-mem.c (symbol_file_add_from_memory): Call
4786 add_target_sections_of_objfile.
4788 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4790 * guile/scm-value.c (gdbscm_history_append_x): Use
4791 'vlscm_get_value_smob_arg_unsafe' instead of
4792 'vlscm_scm_to_value'.
4794 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4797 * utils.c (printchar): Don't escape at all if quoter is NUL.
4798 Update function documentation to clarify effect of parameter
4800 * remote.c (escape_buffer): Pass '\\' as the quoter to
4801 fputstrn_unfiltered.
4802 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4803 generate the output.
4804 (mi_solib_unloaded): Same.
4806 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4808 * development.sh: Delete.
4809 * Makefile.in (config.status): Adjust dependency on development.sh.
4810 * configure.ac: Adjust development.sh source call.
4811 * configure: Regenerate.
4813 2014-06-04 Doug Evans <xdje42@gmail.com>
4815 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4816 is_scheme_bkpt, spec.
4817 (bpscm_make_breakpoint_smob): Initialize new members.
4818 (gdbscm_create_breakpoint_x): Split into two ...
4819 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4820 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4821 (scheme_function breakpoint_functions): Update.
4822 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4823 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4824 register-breakpoint!.
4826 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4829 * mem-break.c (z_type_supported): Return zero if
4830 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4832 2014-06-04 Tom Tromey <tromey@redhat.com>
4834 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4835 value_from_contents_and_address_unresolved.
4836 (ada_template_to_fixed_record_type_1): Likewise.
4837 (ada_which_variant_applies): Likewise.
4838 * value.h (value_from_contents_and_address_unresolved): Declare.
4839 * value.c (value_from_contents_and_address_unresolved): New
4841 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4842 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4843 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4845 2014-06-04 Tom Tromey <tromey@redhat.com>
4847 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4849 2014-06-04 Tom Tromey <tromey@redhat.com>
4851 * procfs.c (procfs_attach): Make "args" const.
4852 * windows-nat.c (windows_attach): Make "args" const.
4853 * nto-procfs.c (procfs_attach): Make "args" const.
4854 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4855 * go32-nat.c (go32_attach): Make "args" const.
4856 * gnu-nat.c (gnu_attach): Make "args" const.
4857 * darwin-nat.c (darwin_attach): Make "args" const.
4858 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4859 * linux-nat.c (linux_nat_attach): Make "args" const.
4860 * remote.c (extended_remote_attach_1, extended_remote_attach):
4862 * target.h (struct target_ops) <to_attach>: Make "args" const.
4863 (find_default_attach): Likewise.
4864 * utils.c (parse_pid_to_attach): Make "args" const.
4865 * utils.h (parse_pid_to_attach): Update.
4867 2014-06-04 Tom Tromey <tromey@redhat.com>
4869 * target-delegates.c: Rebuild.
4870 * target.c (default_thread_address_space): New function.
4871 (target_thread_address_space): Simplify.
4872 * target.h (struct target_ops) <to_thread_address_space>: Add
4873 TARGET_DEFAULT_FUNC.
4875 2014-06-04 Doug Evans <xdje42@gmail.com>
4877 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4879 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4881 * record-btrace.c: Include event-loop.h and inf-loop.h.
4882 (record_btrace_resume_exec_dir)
4883 (record_btrace_async_inferior_event_handler)
4884 (record_btrace_handle_async_inferior_event): New.
4885 (record_btrace_open): Create async event handler.
4886 (record_btrace_close): Delete async event handler.
4887 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4888 Mark async event handler.
4889 (record_btrace_execution_direction): New.
4890 (init_record_btrace_ops): Initialize to_execution_direction.
4892 2014-06-03 Doug Evans <xdje42@gmail.com>
4894 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4895 (gdbscm_make_parameter): Ditto.
4897 2014-06-03 Doug Evans <dje@google.com>
4899 * exec.c (exec_close_1): Call clear_section_table instead of
4900 resize_section_table.
4901 (clear_section_table): New function.
4902 (resize_section_table): Make static. Rename arg num_added to
4904 * exec.h (clear_section_table): Declare.
4905 (resize_section_table): Delete.
4906 * progspace.c (release_program_space): Call clear_section_table
4907 instead of resize_section_table.
4909 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4911 * NEWS (Python Scripting): Add entry about the new xmethods
4914 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4916 * python/py-xmethods.c: New file.
4917 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4918 (objfpy_dealloc): XDECREF on the new xmethods field.
4919 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4921 (objfpy_get_xmethods): New function.
4922 (objfile_getset): New entry 'xmethods'.
4923 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4924 (pspy_dealloc): XDECREF on the new xmethods field.
4925 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4927 (pspy_get_xmethods): New function.
4928 (pspace_getset): New entry 'xmethods'.
4929 * python/python-internal.h: Add declarations for new functions.
4930 * python/python.c (_initialize_python): Invoke
4931 gdbpy_initialize_xmethods.
4932 * python/lib/gdb/__init__.py (xmethods): New
4934 * python/lib/gdb/xmethod.py: New file.
4935 * python/lib/gdb/command/xmethods.py: New file.
4937 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4939 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4940 best match method returned by find_overload_match is an xmethod.
4941 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4942 the best matching operator returned by find_overload_match is an
4944 * valops.c: #include "extension.h".
4945 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4946 Return void. The list of matching source methods is returned in
4947 "fn_list" and a vector of matching debug method workers is
4948 returned in "xm_worker_vec". Update all callers.
4949 (value_find_oload_method_list): Likewise.
4950 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4951 non-NULL, then the index of the best matching method in this
4952 vector is returned. Update all callers.
4953 (find_overload_match): Include xmethods while performing overload
4956 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4958 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4959 * extension-priv.h (struct extension_language_ops): Add the
4961 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4962 get_matching_xmethod_workers, get_xmethod_argtypes,
4963 invoke_xmethod, free_xmethod_worker,
4964 free_xmethod_worker_vec): New functions.
4965 * extension.h: #include "common/vec.h".
4966 New function declarations.
4967 (struct xmethod_worker): New struct.
4968 (VEC (xmethod_worker_ptr)): New vector type.
4969 (xmethod_worker_ptr): New typedef.
4970 (xmethod_worker_vec): Likewise.
4971 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4973 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4974 (struct builtin_type): New field "xmethod".
4975 * valarith.c (value_ptradd): Assert that the value argument is not
4977 * valops.c (value_must_coerce_to_target): Return 0 for
4978 lval_xcallable values.
4979 * value.c (struct value): New field XM_WORKER in the field
4981 (value_address, value_raw_address): Return 0 for lval_xcallable
4983 (set_value_address): Assert that the value is not an
4985 (value_free): Free the associated xmethod worker when freeing
4986 lval_xcallable values.
4987 (set_value_component_location): Assert that the WHOLE value is not
4989 (value_of_xmethod, call_xmethod): New functions.
4990 * value.h: Declare "struct xmethod_worker".
4991 Declare new functions value_of_xmethod, call_xmethod.
4993 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4994 Pedro Alves <palves@redhat.com>
4996 PR breakpoints/17000
4997 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4998 New function, extracted from software_breakpoint_inserted_here_p.
4999 (software_breakpoint_inserted_here_p): Replace factored out code
5000 by call to find_non_raw_software_breakpoint_inserted_here.
5001 (bp_target_info_copy_insertion_state): New function.
5002 (bkpt_insert_location): Handle the case of a single-step
5003 breakpoint already inserted at the same address.
5004 (bkpt_remove_location): Handle the case of a single-step
5005 breakpoint still inserted at the same address.
5006 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5007 breakpoint already inserted at the same address.
5008 (deprecated_remove_raw_breakpoint): Handle the case of a
5009 non-raw breakpoint still inserted at the same address.
5010 (find_single_step_breakpoint): New function, extracted from
5011 single_step_breakpoint_inserted_here_p.
5012 (find_single_step_breakpoint): New function,
5013 factored out from single_step_breakpoint_inserted_here_p.
5014 (single_step_breakpoint_inserted_here_p): Reimplement.
5016 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5018 Pushed by Joel Brobecker <brobecker@adacore.com>
5019 * source.c (show_substitute_path_command): Fix display of matching
5022 2014-06-03 Gary Benson <gbenson@redhat.com>
5024 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5026 2014-06-02 Doug Evans <xdje42@gmail.com>
5028 Add parameter support for Guile.
5029 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5030 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5031 (scm-param.o): New rule.
5032 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5033 (gdbscm_misc_error): Declare.
5034 (gdbscm_canonicalize_command_name): Declare.
5035 (gdbscm_scm_to_host_string): Declare.
5036 (gdbscm_scm_from_host_string): Declare.
5037 (gdbscm_initialize_parameters): Declare.
5038 * guile/guile.c (initialize_gdb_module): Call
5039 gdbscm_initialize_parameters.
5040 * guile/lib/gdb.scm: Export parameter symbols.
5041 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5042 cmdscm_canonicalize_name and made public. All callers updated.
5043 * guile/scm-exception.c (gdbscm_misc_error): New function.
5044 * guile/scm-param.c: New file.
5045 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5046 (gdbscm_scm_to_host_string): New function.
5047 (gdbscm_scm_from_host_string): New function.
5048 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5050 2014-06-02 Doug Evans <xdje42@gmail.com>
5052 Add command support for Guile.
5053 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5054 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5055 (scm-cmd.o): New rule.
5056 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5057 (gdbscm_user_error_p): Declare.
5058 (gdbscm_parse_command_name): Declare.
5059 (gdbscm_valid_command_class_p): Declare.
5060 (gdbscm_initialize_commands): Declare.
5061 * guile/guile.c (initialize_gdb_module): Call
5062 gdbscm_initialize_commands.
5063 * guile/lib/gdb.scm: Export command symbols.
5064 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5065 (throw-user-error): New function.
5066 * guile/scm-cmd.c: New file.
5067 * guile/scm-exception.c (user_error_symbol): New static global.
5068 (gdbscm_user_error_p): New function.
5069 (gdbscm_initialize_exceptions): Set user_error_symbol.
5070 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5072 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5074 * top.c (command_loop): Handle comments here...
5075 (command_line_input): ... not here.
5077 2014-06-02 Doug Evans <xdje42@gmail.com>
5079 Add progspace support for Guile.
5080 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5081 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5082 (scm-progspace.o): New rule.
5083 * guile/guile-internal.h (pspace_smob): New typedef.
5084 (psscm_pspace_smob_pretty_printers): Declare.
5085 (psscm_pspace_smob_from_pspace): Declare.
5086 (psscm_scm_from_pspace): Declare.
5087 * guile/guile.c (initialize_gdb_module): Call
5088 gdbscm_initialize_pspaces.
5089 * guile/lib/gdb.scm: Export progspace symbols.
5090 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5092 (append-pretty-printer!): Ditto.
5093 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5095 * guile/scm-progspace.c: New file.
5097 2014-06-03 Alan Modra <amodra@gmail.com>
5099 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5100 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5102 2014-06-02 Doug Evans <dje@google.com>
5104 Add support for skeletonless type units.
5105 * dwarf2read.c (struct dwarf2_per_objfile): New member
5106 n_allocated_type_units.
5107 (struct dwarf2_per_objfile) <tu_stats>: New member
5108 nr_all_type_units_reallocs.
5109 (create_signatured_type_table_from_index): Initialize
5110 n_allocated_type_units
5111 (create_all_type_units): Ditto.
5112 (add_type_unit): Move up in file. New arg slot.
5113 All callers updated. Increase space for all_type_units more
5115 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5116 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5117 (lookup_dwp_signatured_type): Ditto.
5118 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5119 All callers updated.
5120 (build_type_psymtabs_1): Leave type_unit_groups as
5121 NULL if no TUs present.
5122 (print_tu_stats): New function.
5123 (process_skeletonless_type_unit): New function.
5124 (process_dwo_file_for_skeletonless_type_units): New
5126 (process_skeletonless_type_units): New function.
5127 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5128 Call print tu_stats if debugging enabled.
5130 2014-06-02 Pedro Alves <palves@redhat.com>
5132 * breakpoint.c (build_target_command_list): Don't build a command
5133 list if we have any duplicate location that isn't a dprintf.
5135 2014-06-02 Pedro Alves <palves@redhat.com>
5137 * breakpoint.c (dprintf_breakpoint_hit): New function.
5138 (initialize_breakpoint_ops): Install it as dprintf's
5139 breakpoint_hit method.
5141 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5143 * source.c (substitute_path_rule_matches): Simplify using
5144 filename_ncmp instead of FILENAME_CMP.
5146 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5148 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5150 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5152 * configure.ac: When Guile is available, check for the
5153 availability of 'scm_new_smob'.
5154 * configure, config.h.in: Regenerate.
5155 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5158 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5160 * frame.c (struct frame_info): Add stop_string field.
5161 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5162 (get_prev_frame_always): Old content moved into
5163 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5164 TRY_CATCH, handle MEMORY_ERROR exceptions.
5165 (frame_stop_reason_string): New function definition.
5166 * frame.h (unwind_stop_reason_to_string): Extend comment to
5167 mention frame_stop_reason_string.
5168 (frame_stop_reason_string): New function declaration.
5169 * stack.c (frame_info): Switch to frame_stop_reason_string.
5170 (backtrace_command_1): Switch to frame_stop_reason_string.
5171 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5172 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5173 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5175 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5177 * frame.c (frame_stop_reason_string): Rename to ...
5178 (unwind_stop_reason_to_string): this.
5179 * frame.h (frame_stop_reason_string): Rename to ...
5180 (unwind_stop_reason_to_string): this.
5181 * stack.c (frame_info): Update call to frame_stop_reason_string.
5182 (backtrace_command_1): Likewise.
5183 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5184 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5186 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5188 * frame.c (remove_prev_frame): New function.
5189 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5192 2014-05-29 Pedro Alves <palves@redhat.com>
5194 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5195 and make it const. When a single-step decays to a continue,
5196 clear 'step', not 'hw_step'. Pass whether the caller wanted
5197 to step to user_visible_resume_ptid, not what we ask the
5200 2014-05-29 Pedro Alves <palves@redhat.com>
5202 * infrun.c (process_event_stop_test, handle_step_into_function)
5203 (handle_step_into_function_backward): Adjust.
5204 Don't set the even thread's stop_step and call stop_waiting before
5205 calling end_stepping_range. Instead do that ...
5206 (end_stepping_range): ... here. Take an ecs pointer parameter.
5208 2014-05-29 Pedro Alves <palves@redhat.com>
5210 * infrun.c (stop_stepping): Rename to ...
5211 (stop_waiting): ... this.
5212 (proceed): Update comment.
5213 (process_event_stop_test, handle_inferior_event)
5214 (handle_signal_stop, handle_step_into_function)
5215 (handle_step_into_function_backward): Update.
5217 2014-05-29 Pedro Alves <palves@redhat.com>
5219 * infcall.c (run_inferior_call): Don't check whether the current
5220 thread is running after the proceed call.
5222 2014-05-29 Pedro Alves <palves@redhat.com>
5223 Tom Tromey <tromey@redhat.com>
5225 * NEWS: Mention "maint set target-async", "set mi-async", and that
5226 background execution commands are now always available.
5227 * target.h (target_async_permitted): Update comment.
5228 * target.c (target_async_permitted, target_async_permitted_1):
5230 (set_target_async_command): Rename to ...
5231 (maint_set_target_async_command): ... this.
5232 (show_target_async_command): Rename to ...
5233 (maint_show_target_async_command): ... this.
5234 (_initialize_target): Adjust.
5235 * infcmd.c (prepare_execution_command): Make extern.
5236 * inferior.h (prepare_execution_command): Declare.
5237 * infrun.c (set_observer_mode): Leave target async alone.
5238 * mi/mi-interp.c (mi_interpreter_init): Install
5239 mi_on_sync_execution_done as sync_execution_done observer.
5240 (mi_on_sync_execution_done): New function.
5241 (mi_execute_command_input_handler): Don't print the prompt if we
5242 just started a synchronous command with an async target.
5243 (mi_on_resume): Check sync_execution before printing prompt.
5244 * mi/mi-main.h (mi_async_p): Declare.
5245 * mi/mi-main.c: Include gdbcmd.h.
5246 (mi_async_p): New function.
5247 (mi_async, mi_async_1): New globals.
5248 (set_mi_async_command, show_mi_async_command, mi_async): New
5250 (exec_continue): Call prepare_execution_command.
5251 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5252 (mi_execute_async_cli_command): Use mi_async_p.
5253 (_initialize_mi_main): Install "set mi-async". Make
5254 "target-async" a deprecated alias.
5256 2014-05-29 Pedro Alves <palves@redhat.com>
5258 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5259 (_initialize_cli_interp): Adjust.
5260 * event-loop.c: Include "observer.h".
5261 (start_event_loop): Notify 'command_error' observers instead of
5262 calling display_gdb_prompt. Remove FIXME comment.
5263 * event-top.c (display_gdb_prompt): Remove call into the
5265 * inf-loop.c: Include "observer.h".
5266 (inferior_event_handler): Notify 'command_error' observers instead
5267 of calling display_gdb_prompt.
5268 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5269 observers instead of calling display_gdb_prompt.
5270 * interps.c (interp_set): Don't call display_gdb_prompt.
5271 (current_interp_display_prompt_p): Delete.
5272 * interps.h (interp_prompt_p): Delete declaration.
5273 (interp_prompt_p_ftype): Delete.
5274 (struct interp_procs) <prompt_proc_p>: Delete field.
5275 (current_interp_display_prompt_p): Delete declaration.
5276 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5277 (_initialize_mi_interp): Adjust.
5278 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5279 'command_error' observers.
5280 (tui_on_sync_execution_done, tui_on_command_error): New
5282 (tui_display_prompt_p): Delete.
5283 (_initialize_tui_interp): Adjust.
5285 2014-05-29 Pedro Alves <palves@redhat.com>
5288 * cli/cli-interp.c: Include infrun.h and observer.h.
5289 (cli_uiout, cli_interp): New globals.
5290 (cli_on_signal_received, cli_on_end_stepping_range)
5291 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5293 (cli_interpreter_init): Install them as 'end_stepping_range',
5294 'signal_received' 'signal_exited', 'exited' and 'no_history'
5296 (_initialize_cli_interp): Remove cli_interp local.
5297 * infrun.c (handle_inferior_event): Call the several stop reason
5298 observers instead of printing the stop reason directly.
5299 (end_stepping_range): New function.
5300 (print_end_stepping_range_reason, print_signal_exited_reason)
5301 (print_exited_reason, print_signal_received_reason)
5302 (print_no_history_reason): Make static, and add an uiout
5303 parameter. Print to that instead of to CURRENT_UIOUT.
5304 * infrun.h (print_end_stepping_range_reason)
5305 (print_signal_exited_reason, print_exited_reason)
5306 (print_signal_received_reason print_no_history_reason): New
5308 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5310 <cli_uiout>: New field.
5311 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5312 uiout for CLI output. Install 'signal_received',
5313 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5315 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5316 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5317 (mi_on_no_history): New functions.
5318 (ui_out_free_cleanup): Delete function.
5319 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5320 instead use the one already stored in the MI interpreter data.
5321 (mi_ui_out): Adjust.
5322 * tui/tui-interp.c: Include infrun.h and observer.h.
5323 (tui_interp): New global.
5324 (tui_on_signal_received, tui_on_end_stepping_range)
5325 (tui_on_signal_exited, tui_on_exited)
5326 (tui_on_no_history): New functions.
5327 (tui_init): Install them as 'end_stepping_range',
5328 'signal_received' 'signal_exited', 'exited' and 'no_history'
5330 (_initialize_tui_interp): Delete tui_interp local.
5332 2014-05-29 Pedro Alves <palves@redhat.com>
5335 * linux-nat.c (linux_nat_resume_callback): Rename the second
5336 parameter to 'except'. Skip LP if it points to EXCEPT.
5337 (linux_nat_resume): Don't mark the event lwp as not stopped
5338 before resuming sibling lwps. Instead ask
5339 linux_nat_resume_callback to skip the event lwp. Mark it as not
5340 stopped after actually resuming it.
5341 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5343 (wait_lwp): Mark the lwp as stopped here.
5344 (stop_wait_callback): Mark the lwp as not stopped right after
5345 resuming it. Don't mark lwps as stopped here.
5346 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5347 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5349 2014-05-29 Pedro Alves <palves@redhat.com>
5352 * infrun.c (resume): Determine how much to resume depending on
5353 whether the caller wanted a step, not whether we can hardware step
5354 the target. Mark all threads that we intend to run as running,
5355 unless we're calling an inferior function.
5356 (normal_stop): If the thread is running an infcall, don't finish
5358 * target.c (target_resume): Don't mark threads as running here.
5360 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5362 * serial.c (_initialize_serial): Remove support for
5363 the "set remotebaud" and "show remotebaud" commands.
5364 * NEWS: Add entry documenting the removal of that command.
5366 2014-05-28 Yao Qi <yao@codesourcery.com>
5368 * charset.c: Fix typo in comments.
5370 2014-05-27 Gary Benson <gbenson@redhat.com>
5372 * utils.c (internal_vproblem): Prompt for a bug report.
5374 2014-05-26 Andy Wingo <wingo@igalia.com>
5376 * guile/scm-arch.c (arscm_mark_arch_smob):
5377 * guile/scm-block.c (bkscm_mark_block_smob)
5378 (bkscm_mark_block_syms_progress_smob):
5379 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5380 * guile/scm-exception.c (exscm_mark_exception_smob):
5381 * guile/scm-frame.c (frscm_mark_frame_smob):
5382 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5383 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5384 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5385 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5386 (ppscm_mark_pretty_printer_worker_smob):
5387 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5388 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5389 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5390 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5392 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5395 2014-05-26 Andy Wingo <wingo@igalia.com>
5396 Doug Evans <xdje42@gmail.com>
5398 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5399 empty_base_class. All uses updated.
5400 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5401 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5403 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5404 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5405 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5406 (gdbscm_gsmob_has_property_p, add_property_name)
5407 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5408 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5409 (gdb-object-has-property?, gdb-object-properties): Remove.
5410 (gdb-object-kind): Renamed from gsmob-kind.
5412 2014-05-26 Andy Wingo <wingo@igalia.com>
5414 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5415 * configure: Regenerate.
5417 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5419 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5421 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5423 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5424 (replay_memory_access_read_only, replay_memory_access_read_write)
5425 (replay_memory_access_types, replay_memory_access)
5426 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5427 (cmd_set_record_btrace, cmd_show_record_btrace)
5428 (cmd_show_replay_memory_access): New.
5429 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5430 (record_btrace_remove_breakpoint): Replace
5431 record_btrace_allow_memory_access with replay_memory_access.
5432 (_initialize_record_btrace): Add commands.
5433 * NEWS: Announce it.
5435 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5437 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5439 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5441 * MAINTAINERS (Write After Approval): Move self back from
5444 2014-05-22 Pedro Alves <palves@redhat.com>
5446 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5447 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5448 (disable_randomization, enum exec_direction_kind)
5449 (execution_direction, stop_registers, start_remote)
5450 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5451 (wait_for_inferior, normal_stop, get_last_target_status)
5452 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5453 (insert_step_resume_breakpoint_at_sal)
5454 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5455 (set_step_info, print_stop_event, signal_stop_state)
5456 (signal_print_state, signal_pass_state, signal_stop_update)
5457 (signal_print_update, signal_pass_update)
5458 (update_signals_program_target, clear_exit_convenience_vars)
5459 (displaced_step_dump_bytes, update_observer_mode)
5460 (signal_catch_update, gdb_signal_from_command): Move
5462 * infrun.h: ... to this new file.
5463 * amd64-tdep.c: Include infrun.h.
5464 * annotate.c: Include infrun.h.
5465 * arch-utils.c: Include infrun.h.
5466 * arm-linux-tdep.c: Include infrun.h.
5467 * arm-tdep.c: Include infrun.h.
5468 * break-catch-sig.c: Include infrun.h.
5469 * breakpoint.c: Include infrun.h.
5470 * common/agent.c: Include infrun.h instead of inferior.h.
5471 * corelow.c: Include infrun.h.
5472 * event-top.c: Include infrun.h.
5473 * go32-nat.c: Include infrun.h.
5474 * i386-tdep.c: Include infrun.h.
5475 * inf-loop.c: Include infrun.h.
5476 * infcall.c: Include infrun.h.
5477 * infcmd.c: Include infrun.h.
5478 * infrun.c: Include infrun.h.
5479 * linux-fork.c: Include infrun.h.
5480 * linux-nat.c: Include infrun.h.
5481 * linux-thread-db.c: Include infrun.h.
5482 * monitor.c: Include infrun.h.
5483 * nto-tdep.c: Include infrun.h.
5484 * procfs.c: Include infrun.h.
5485 * record-btrace.c: Include infrun.h.
5486 * record-full.c: Include infrun.h.
5487 * remote-m32r-sdi.c: Include infrun.h.
5488 * remote-mips.c: Include infrun.h.
5489 * remote-notif.c: Include infrun.h.
5490 * remote-sim.c: Include infrun.h.
5491 * remote.c: Include infrun.h.
5492 * reverse.c: Include infrun.h.
5493 * rs6000-tdep.c: Include infrun.h.
5494 * s390-linux-tdep.c: Include infrun.h.
5495 * solib-irix.c: Include infrun.h.
5496 * solib-osf.c: Include infrun.h.
5497 * solib-svr4.c: Include infrun.h.
5498 * target.c: Include infrun.h.
5499 * top.c: Include infrun.h.
5500 * windows-nat.c: Include infrun.h.
5501 * mi/mi-interp.c: Include infrun.h.
5502 * mi/mi-main.c: Include infrun.h.
5503 * python/py-threadevent.c: Include infrun.h.
5505 2014-05-22 Pedro Alves <palves@redhat.com>
5507 * infrun.c (handle_inferior_event): Store the exit code for
5508 --return-child-result here, instead of ...
5509 (print_exited_reason): ... here.
5511 2014-05-21 Pedro Alves <palves@redhat.com>
5514 * gdbthread.h (struct thread_control_state): New field
5516 * infrun.c (follow_fork): Copy the new thread control field to the
5518 (clear_proceed_status_thread): Clear the new thread control field.
5519 (proceed): Set the new thread control field.
5520 * interps.h (command_interp): Declare.
5521 * interps.c (command_interpreter): New global.
5522 (command_interp): New function.
5523 (interp_exec): Set `command_interpreter' while here.
5524 * cli-out.c (cli_uiout_dtor): New function.
5525 (cli_ui_out_impl): Install it.
5526 * mi/mi-interp.c: Include cli-out.h.
5527 (mi_cmd_interpreter_exec): Add comment.
5528 (restore_current_uiout_cleanup): New function.
5529 (ui_out_free_cleanup): New function.
5530 (mi_on_normal_stop): If finishing an execution command started by
5531 a CLI command, or any kind of breakpoint-like event triggered,
5532 print the stop event to the output (CLI) stream.
5533 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5535 2014-05-21 Pedro Alves <palves@redhat.com>
5537 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5538 current source line having changed.
5539 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5540 * infrun.c (normal_stop): Adjust call to
5541 set_current_sal_from_frame.
5542 * source.c (clear_lines_listed_range): New function.
5543 (set_current_source_symtab_and_line, identify_source_line): Clear
5544 the lines listed range.
5545 (line_info): Handle the first "info line" after the current source
5546 line having changed.
5547 * stack.c (print_stack_frame): Remove center handling.
5548 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5551 2014-05-21 Pedro Alves <palves@redhat.com>
5553 * inf-child.c (inf_child_mourn_inferior): New function.
5554 * inf-child.h (inf_child_mourn_inferior): New declaration.
5555 * darwin-nat.c (darwin_mourn_inferior): Use
5556 inf_child_mourn_inferior.
5557 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5558 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5559 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5560 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5561 * windows-nat.c (windows_mourn_inferior): Likewise.
5563 2014-05-21 Doug Evans <xdje42@gmail.com>
5565 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5567 2014-05-21 Doug Evans <xdje42@gmail.com>
5569 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5570 (gdbscm_out_of_range_error): Ditto.
5571 (gdbscm_memory_error): Ditto.
5572 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5573 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5574 (gdbscm_out_of_range_error): Update.
5575 (gdbscm_memory_error): Update.
5576 (gdbscm_scm_to_target_string_unsafe): Delete.
5578 2014-05-21 Pedro Alves <palves@redhat.com>
5580 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5582 (inf_child_open_target): New function.
5583 (inf_child_open): Use inf_child_open_target to push the target
5584 instead of erroring out.
5585 (inf_child_disconnect, inf_child_close)
5586 (inf_child_maybe_unpush_target): New functions.
5587 (inf_child_target): Install inf_child_disconnect and
5588 inf_child_close. Store a pointer to the returned object.
5589 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5591 * target.c (auto_connect_native_target): New global.
5592 (show_default_run_target): New function.
5593 (find_default_run_target): Return NULL if automatically connecting
5594 to the native target is disabled.
5595 (_initialize_target): Install set/show auto-connect-native-target.
5596 * NEWS: Mention "set auto-connect-native-target", and "target
5598 * linux-nat.c (super_close): New global.
5599 (linux_nat_close): Call super_close.
5600 (linux_nat_add_target): Store a pointer to the base class's
5602 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5603 inf_child_maybe_unpush.
5604 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5606 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5607 the inferior. Use inf_child_maybe_unpush_target.
5608 (inf_ttrace_attach): Don't push the target if it is already
5610 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5611 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5612 after mourning the inferior. Use inf_child_maybe_unpush_target.
5613 (darwin_attach_pid): Don't push the target if it is already
5615 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5616 mourning the inferior. Use inf_child_maybe_unpush_target.
5617 (gnu_detach): Use inf_child_maybe_unpush_target.
5618 * go32-nat.c (go32_create_inferior): Don't push the target if it
5620 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5621 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5622 (procfs_open): Rename to ...
5623 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5624 comments. Can target_preopen before changing node. Call
5625 inf_child_open_target to push the target explicitly.
5626 (procfs_attach): Don't push the target if it is already pushed.
5627 (procfs_detach): Use inf_child_maybe_unpush_target.
5628 (procfs_create_inferior): Don't push the target if it is already
5630 (nto_native_ops): New global.
5631 (procfs_open): Reimplement.
5632 (procfs_native_open): New function.
5633 (init_procfs_targets): Install procfs_native_open as to_open of
5634 "target native". Store a pointer to the "native" target in
5636 * procfs.c (procfs_attach): Don't push the target if it is already
5638 (procfs_detach): Use inf_child_maybe_unpush_target.
5639 (procfs_mourn_inferior): Only unpush the target after mourning the
5640 inferior. Use inf_child_maybe_unpush_target.
5641 (procfs_init_inferior): Don't push the target if it is already
5643 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5644 if it is already pushed.
5646 2014-05-21 Pedro Alves <palves@redhat.com>
5648 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5649 and "procfs" targets are now called "native" instead.
5651 2014-05-21 Pedro Alves <palves@redhat.com>
5653 * go32-nat.c (go32_open): Delete.
5654 (go32_target): Don't override the to_open method.
5656 2014-05-21 Pedro Alves <palves@redhat.com>
5658 * nto-procfs.c (procfs_can_run): New function.
5659 (nto_procfs_ops): New global.
5660 (init_procfs_targets): New, based on procfs_target. Install
5661 "target native" in addition to "target procfs".
5662 (_initialize_procfs): Call init_procfs_targets instead of adding
5665 2014-05-21 Pedro Alves <palves@redhat.com>
5667 * windows-nat.c (windows_target): Don't override to_shortname,
5668 to_longname or to_doc.
5670 2014-05-21 Pedro Alves <palves@redhat.com>
5672 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5675 2014-05-21 Pedro Alves <palves@redhat.com>
5677 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5678 to_shortname, to_longname or to_doc.
5680 2014-05-21 Pedro Alves <palves@redhat.com>
5682 * go32-nat.c (go32_target): Don't override to_shortname,
5683 to_longname or to_doc.
5685 2014-05-21 Pedro Alves <palves@redhat.com>
5687 * inf-child.c (inf_child_open): Remove mention of "child".
5688 (inf_child_target): Rename target to "native" instead of "child".
5690 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5692 * Makefile.in (SFILES): Delete "regset.c".
5693 (COMMON_OBS): Delete "regset.o".
5695 * regset.h (regset_alloc): Delete prototype.
5697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5699 * sparc-linux-tdep.c (sparc32_linux_gregset)
5700 (sparc32_linux_fpregset): New static regset structures.
5701 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5702 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5704 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5705 (sparc64_linux_fpregset): New static regset structures.
5706 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5707 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5708 New static regset structures.
5709 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5710 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5711 New static regset structures.
5712 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5713 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5714 New static regset structures.
5715 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5716 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5717 New static regset structures.
5718 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5720 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5722 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5723 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5724 register maps ("regmaps") from "*regset" to "*regmap". Do this
5725 for all regmap types and variables.
5726 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5727 (sparc32_linux_supply_core_gregset)
5728 (sparc32_linux_collect_core_gregset)
5729 (sparc32_linux_supply_core_fpregset)
5730 (sparc32_linux_collect_core_fpregset): Likewise.
5731 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5732 (sparc_gregmap, sparc_fpregmap): ... these.
5733 (sparc_supply_gregset, sparc_collect_gregset)
5734 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5735 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5736 (_initialize_sparc_nat): Rename regmaps.
5737 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5738 (sparc_gregmap, sparc_fpregmap): ... these.
5739 (sparc_supply_gregset, sparc_collect_gregset)
5740 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5741 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5743 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5744 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5746 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5748 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5749 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5750 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5752 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5753 (sparc32_bsd_fpregset): Rename to...
5754 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5755 (sparc32_bsd_fpregmap): ... these.
5756 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5757 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5758 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5759 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5760 (struct sparc_gregmap, struct sparc_fpregmap)
5761 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5762 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5763 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5764 (sparc32_supply_regset, sparc32_collect_gregset)
5765 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5767 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5768 (sparc64_linux_ptrace_gregmap): ... this.
5769 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5770 (_initialize_sparc64_linux_nat): Rename regmaps.
5771 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5772 (sparc64_linux_core_gregmap): ... this.
5773 (sparc64_linux_supply_core_gregset)
5774 (sparc64_linux_collect_core_gregset)
5775 (sparc64_linux_supply_core_fpregset)
5776 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5777 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5778 (sparc64_sol2_fpregset): Rename to...
5779 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5780 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5781 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5783 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5784 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5785 (sparc64_bsd_fpregset): Rename to...
5786 (struct sparc_gregmap, sparc64_sol2_gregmap)
5787 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5788 (sparc64_bsd_fpregmap): ... these.
5789 (sparc64_supply_gregset, sparc64_collect_gregset)
5790 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5792 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5793 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5794 (sparc64fbsd_gregmap): ... this.
5795 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5796 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5798 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5799 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5800 (sparc64nbsd_collect_fpregset): Likewise.
5801 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5802 (sparc64nbsd_gregmap): ... this.
5803 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5805 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5806 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5807 (sparc64obsd_gregmap): ... this.
5808 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5810 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5811 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5812 (sparc32nbsd_gregmap): ... this.
5813 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5816 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5818 * score-tdep.c (score7_linux_gregset): New static regset
5820 (score7_linux_regset_from_core_section): Remove dynamic regset
5822 (score_gdbarch_init): Drop allocation of tdep structure.
5823 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5825 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5827 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5829 (am33_regset_from_core_section): Remove dynamic regset
5832 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5834 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5835 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5837 (mips_linux_regset_from_core_section): Remove dynamic regset
5839 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5840 'gregset64', 'fpregset', and 'fpregset64'.
5841 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5842 deleted tdep fields.
5844 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5846 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5848 (amd64_regset_from_core_section): Remove dynamic regset
5850 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5852 (amd64obsd_regset_from_core_section): Remove dynamic regset
5854 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5856 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5857 x86-common regset supply function.
5858 * i386-tdep.c (i386_collect_gregset): Make static.
5859 (i386_gregset): New global regset structure.
5860 (i386_fpregset, i386_xstateregset): New static regset structures.
5861 (i386_regset_from_core_section): Remove dynamic regset
5863 (i386_gdbarch_init): Remove initialization of tdep fields
5864 'gregset', 'fpregset', and 'xstateregset'.
5865 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5866 'fpregset', and 'xstateregset'.
5867 (i386_collect_gregset): Remove prototype.
5868 (i386_gregset): New declaration.
5869 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5871 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5874 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5876 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5877 (arm_linux_vfpregset): New static regset structures.
5878 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5880 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5881 and 'vfpregset' fields.
5883 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5885 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5886 (aarch64_linux_fpregset): New static regset structures.
5887 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5888 of regset structures.
5889 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5892 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5894 * regset.h (struct regset): Remove gdbarch field.
5895 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5896 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5897 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5899 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5900 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5901 (ppc32_linux_vsxregset): Likewise.
5902 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5903 via the regcache instead of the regset.
5904 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5905 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5906 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5907 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5910 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5912 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5913 Constify structures.
5914 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5915 (alphanbsd_aout_gregset): Likewise.
5916 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5917 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5919 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5920 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5922 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5923 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5924 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5925 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5926 * m88k-tdep.c (m88k_gregset): Likewise.
5927 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5928 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5929 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5930 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5931 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5932 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5933 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5934 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5935 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5937 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5938 * sh-tdep.h (sh_corefile_gregset): Likewise.
5939 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5940 * vax-tdep.c (vax_gregset): Likewise.
5942 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5944 Fix TLS access for -static -pthread.
5945 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5946 (try_thread_db_load_1): Initialize it.
5947 (thread_db_get_thread_local_address): Call it if LM is zero.
5948 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5949 * target.h (struct target_ops) (to_get_thread_local_address): Add
5950 load_module_addr comment.
5952 2014-05-21 Pedro Alves <palves@redhat.com>
5954 * dcache.c (dcache_read_memory_partial): If reading the cache line
5955 fails, fallback to reading just the memory the caller wanted.
5957 2014-05-20 Doug Evans <dje@google.com>
5959 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5960 instead of get_current_arch.
5962 2014-05-20 Pedro Alves <palves@redhat.com>
5964 * NEWS: Mention that compare-sections now works with all targets.
5966 * remote.c (PACKET_qCRC): New enum value.
5967 (remote_verify_memory): Don't send qCRC if the target has no
5968 execution. Use packet_support/packet_ok. If the target doesn't
5969 support the qCRC packet, fallback to a deep memory copy.
5970 (compare_sections_command): Say "target image" instead of "remote
5972 (_initialize_remote): Add PACKET_qCRC to the list of config
5973 packets that have no associated command. Extend comment.
5974 * target.c (simple_verify_memory, default_verify_memory): New
5976 * target.h (struct target_ops) <to_verify_memory>: Default to
5977 default_verify_memory.
5978 (simple_verify_memory): New declaration.
5979 * target-delegates.c: Regenerate.
5981 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5983 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5985 2014-05-20 Hui Zhu <hui@codesourcery.com>
5986 Yao Qi <yao@codesourcery.com>
5989 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5990 and change address of sp and pc.
5992 2014-05-19 Tom Tromey <tromey@redhat.com>
5994 * gdbtypes.c (rank_function): Use XNEWVEC.
5995 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5997 2014-05-19 Doug Evans <dje@google.com>
5999 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6000 build_type_unit_groups and moved closer to only caller. Remove
6001 arguments. All references updated. Remove outdated .gdb_index
6003 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6004 build_type_psymtabs_1.
6006 2014-05-19 Doug Evans <dje@google.com>
6008 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6009 n_type_unit_groups, all_type_unit_groups. All uses removed.
6010 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6011 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6012 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6013 (add_type_unit_group_to_table): Delete.
6015 2014-05-19 Doug Evans <dje@google.com>
6017 * eval.c (evaluate_subexp_standard): Add some comments.
6019 2014-05-17 Doug Evans <xdje42@gmail.com>
6021 * progspace.c (remove_program_space): Delete, unused.
6022 * progspace.h (remove_program_space): Ditto.
6024 2014-05-17 Doug Evans <xdje42@gmail.com>
6026 * inferior.c (prune_inferiors): Fix comment.
6027 (remove_inferior_command): Call prune_program_spaces.
6029 2014-05-16 Doug Evans <dje@google.com>
6031 New command line option -D.
6033 * main.c (set_gdb_data_directory): New function.
6034 (captured_main): Recognize -D. Flag error for --data-directory "".
6035 Call set_gdb_data_directory.
6036 (print_gdb_help): Print --data-directory, -D.
6037 * main.h (set_gdb_data_directory): Declare.
6038 * top.c (staged_gdb_datadir): New static global.
6039 (set_gdb_datadir): Call set_gdb_data_directory
6040 (show_gdb_datadir): New function.
6041 (init_main): Update init of data-directory parameter.
6043 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6045 Import the "dirfd" gnulib module.
6046 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6047 * gnulib/aclocal.m4: Update.
6048 * gnulib/config.in: Update.
6049 * gnulib/configure: Update.
6050 * gnulib/import/Makefile.am: Update.
6051 * gnulib/import/Makefile.in: Update.
6052 * gnulib/import/dirfd.c: New.
6053 * gnulib/import/m4/dirfd.m4: New.
6054 * gnulib/import/m4/gnulib-cache.m4: Update.
6055 * gnulib/import/m4/gnulib-comp.m4: Update.
6057 2014-05-16 Pierre Muller <muller@sourceware.org>
6058 Yao Qi <yao@codesourcery.com>
6060 * valprint.c (print_wchar): Move the code on checking whether
6061 W is a printable wide char to the default branch of switch
6062 statement below. Call wchar_printable instead of gdb_iswprint.
6064 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6066 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6067 ldr.w and ldrd instructions.
6069 2014-05-15 Doug Evans <dje@google.com>
6071 * dwarf2read.c (read_structure_type): Delete outdated comments.
6073 2014-05-14 Tom Tromey <tromey@redhat.com>
6075 * macrocmd.c (print_macro_definition): Reindent.
6077 2014-05-13 Doug Evans <xdje42@gmail.com>
6079 * python/py-cmd.c (cmdpy_completer): Add comment.
6080 (completers): Make const.
6082 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6084 * infrun.c (resume): Remove should_resume (unused). Move up
6085 declaration of resume_ptid.
6087 2014-05-13 Tom Tromey <tromey@redhat.com>
6089 * language.h (unop_type_check): Remove.
6090 (binop_type_check): Don't declare.
6092 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6094 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6095 call to regcache_raw_collect.
6097 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6099 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6100 mi_console->quote as the quoting character.
6102 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6104 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6106 2014-04-29 Tom Tromey <tromey@redhat.com>
6108 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6109 "show debug varobj".
6111 2014-05-07 Kyle McMartin <kyle@redhat.com>
6113 Pushed by Joel Brobecker <brobecker@adacore.com>.
6114 * aarch64-tdep.c (aarch64_software_single_step): New function.
6115 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6116 with aarch64_software_single_step.
6118 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6122 2014-05-05 Keith Seitz <keiths@redhat.com>
6124 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6125 variable or history value is successfully parsed.
6127 2014-05-05 Yao Qi <yao@codesourcery.com>
6128 Pedro Alves <palves@redhat.com>
6130 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6131 address of blocks that intersects the requested range. Trim
6132 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6134 * ctf.c (ctf_xfer_partial): Likewise.
6136 2014-05-05 Yao Qi <yao@codesourcery.com>
6138 * printcmd.c (display_command): Remove the check to
6139 target_has_execution.
6141 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6143 * ppcobsd-nat.c: Include "obsd-nat.h".
6144 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6146 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6148 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6150 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6151 and 16-bit signed and unsigned arguments. Update comment.
6152 (stap_parse_probe_arguments): Extend code to handle such
6153 arguments. Use warning instead of complaint to notify about
6154 unrecognized bitness.
6156 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6158 PR breakpoints/16889
6159 * stap-probe.c (stap_parse_probe_arguments): Simplify
6160 check for non-prefixed probes (i.e., probes whose
6161 arguments do not start with "N@"). Always set the
6162 argument type to a sane value.
6164 2014-05-01 David Taylor <dtaylor@emc.com>
6166 * remote.c (compare_sections_command): Add -r option to compare
6167 all loadable read-only sections.
6169 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6171 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6172 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6174 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6175 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6176 Remove unused CORE_ADDR argument. Update all callers.
6178 2014-04-29 Pedro Alves <palves@redhat.com>
6180 * remote.c (struct packet_config) <detect>: Extend comment.
6181 (add_packet_config_cmd): Don't set the config's detect or support
6183 (init_all_packet_configs): Also initialize the config's 'detect'
6185 (reset_all_packet_configs_support): New function.
6186 (remote_open_1): Call reset_all_packet_configs_support instead of
6187 init_all_packet_configs.
6188 (_initialize_remote): Initialize all packet configs. Assert that
6189 all packets have an associated command, except a few known
6192 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6194 * dwarf2read.c (read_subrange_type): Handle dynamic
6195 DW_AT_lower_bound attributes.
6197 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6199 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6200 dynamic bounds before computing its upper bound.
6201 (ada_discrete_type_low_bound): Same as above with the lower bound.
6203 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6205 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6206 range types. Adjust the array handling implementation to
6207 take advantage of this change.
6208 (resolve_dynamic_range): New function, mostly extracted from
6209 resolve_dynamic_bounds.
6210 (resolve_dynamic_array): New function, mostly extracted from
6211 resolve_dynamic_bounds.
6212 (resolve_dynamic_bounds): Delete.
6213 (resolve_dynamic_type): Reimplement. Add handling of
6214 TYPE_CODE_RANGE types.
6216 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6218 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6219 handling of parallel ___XA types.
6221 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6223 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6224 unnecessary second call to static_unwrap_type.
6226 2014-04-27 Hui Zhu <hui@codesourcery.com>
6228 * stack.c (print_frame_info): Call do_gdb_disassembly with
6229 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6231 2014-04-26 Doug Evans <xdje42@gmail.com>
6233 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6235 2014-04-25 Pedro Alves <palves@redhat.com>
6238 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6239 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6240 and newline from built string.
6241 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6242 (linux_ptrace_attach_fail_reason): ... this.
6243 * linux-nat.c (linux_nat_attach): Adjust to use
6244 linux_ptrace_attach_fail_reason.
6246 2014-04-25 Pedro Alves <palves@redhat.com>
6248 * remote.c (struct remote_state): Remove multi_process_aware,
6249 non_stop_aware, cond_tracepoints, cond_breakpoints,
6250 breakpoint_commands, fast_tracepoints, static_tracepoints,
6251 install_in_trace, disconnected_tracing,
6252 enable_disable_tracepoints, string_tracing, and
6253 augmented_libraries_svr4_read fields.
6254 (remote_multi_process_p): Move further below in the file.
6255 (struct packet_config): Add comments.
6256 (update_packet_config): Delete function.
6257 (show_packet_config_cmd): Use packet_config_support.
6258 (add_packet_config_cmd): Use NULL as set callback.
6259 (packet_ok): "set remote foo-packet"-style commands no longer
6260 change config->supported -- adjust.
6261 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6262 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6263 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6264 (PACKET_QNonStop, PACKET_multiprocess_feature)
6265 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6266 (PACKET_DisconnectedTracing_feature)
6267 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6268 (set_remote_protocol_packet_cmd): Delete function.
6269 (packet_config_support, packet_support): New functions.
6270 (set_remote_protocol_Z_packet_cmd): Don't call
6271 update_packet_config.
6272 (remote_query_attached, remote_pass_signals)
6273 (remote_program_signals, remote_threads_info)
6274 (remote_threads_extra_info, remote_start_remote): Use
6276 (remote_start_remote): Use packet_config_support and
6278 (init_all_packet_configs): Set all packets to unknown support,
6279 instead of calling update_packet_config.
6280 (remote_check_symbols): Use packet_support.
6281 (remote_supported_packet): Unconditionally set the packet config's
6283 (remote_multi_process_feature, remote_non_stop_feature)
6284 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6285 (remote_breakpoint_commands_feature)
6286 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6287 (remote_install_in_trace_feature)
6288 (remote_disconnected_tracing_feature)
6289 (remote_enable_disable_tracepoint_feature)
6290 (remote_string_tracing_feature)
6291 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6292 (remote_protocol_features): Adjust to use remote_supported_packet
6293 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6294 "ConditionalTracepoints", "ConditionalBreakpoints",
6295 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6296 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6297 "EnableDisableTracepoints", and "tracenz".
6298 (remote_query_supported): Use packet_support.
6299 (remote_open_1): Adjust.
6300 (extended_remote_attach_1): Use packet_support. Switch on the
6301 result of packet_ok instead of checking whether the packet ended
6303 (remote_vcont_resume): Use packet_support.
6304 (remote_resume, remote_stop_ns, fetch_register_using_p)
6305 (remote_prepare_to_store, store_register_using_P)
6306 (check_binary_download, remote_write_bytes): Use packet_support.
6307 (remote_vkill): Use packet_support. Switch on the result of
6308 packet_ok instead of checking whether the packet ended up
6310 (extended_remote_supports_disable_randomization): Use
6312 (extended_remote_run): Switch on the result of packet_ok instead
6313 of checking whether the packet ended up disabled.
6314 (remote_insert_breakpoint, remote_remove_breakpoint)
6315 (remote_insert_watchpoint, remote_remove_watchpoint)
6316 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6318 (remote_search_memory): Use packet_config_support.
6319 (remote_get_thread_local_address, remote_get_tib_address)
6320 (remote_hostio_send_command, remote_can_execute_reverse): Use
6322 (remote_supports_cond_tracepoints)
6323 (remote_supports_cond_breakpoints)
6324 (remote_supports_fast_tracepoints)
6325 (remote_supports_static_tracepoints)
6326 (remote_supports_install_in_trace)
6327 (remote_supports_enable_disable_tracepoint)
6328 (remote_supports_string_tracing)
6329 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6330 the packet config says the feature is enabled or disabled.
6331 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6332 (remote_get_trace_status): Use packet_support.
6333 (remote_set_disconnected_tracing): Adjust to check whether the
6334 feature is enabled with packet_support.
6335 (remote_set_trace_buffer_size, remote_use_agent)
6336 (remote_can_use_agent, remote_supports_btrace): Use
6338 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6339 Use packet_config_support.
6340 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6341 the packet config says the feature is enabled or disabled.
6342 (set_range_stepping): Use packet_support.
6344 2014-04-25 Tom Tromey <tromey@redhat.com>
6346 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6349 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6351 * NEWS: Mention support for C99 variable length arrays.
6353 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6355 * ada-lang.c (standard_exc): Expand introductory comment.
6357 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6358 Walfred Tedeschi <walfred.tedeschi@intel.com>
6360 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6362 (amd64_linux_read_description): Add code to handle AVX512 xstate
6363 mask and return respective tdesc.
6364 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6365 and features/i386/x32-avx512-linux.c.
6366 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6367 (amd64_linux_core_read_description): Add code to handle AVX512
6368 xstate mask and return respective tdesc.
6369 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6370 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6372 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6373 (tdesc_amd64_avx512_linux): New prototype.
6374 (tdesc_x32_avx512_linux): Likewise.
6375 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6376 features/i386/x32-avx512.c.
6377 (amd64_ymm_avx512_names): New register names for pseudo
6379 (amd64_ymmh_avx512_names): New register names for raw registers
6381 (amd64_k_names): New register names for K registers.
6382 (amd64_zmmh_names): New register names for ZMM raw registers.
6383 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6384 (amd64_xmm_avx512_names): New register names for XMM16-31
6386 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6388 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6389 if feature is present.
6390 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6391 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6392 (AMD64_NUM_REGS): Adjust to new number of registers.
6393 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6394 registers supplied via XSTATE by AVX512 registers.
6395 (i386_linux_read_description): Add case for AVX512.
6396 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6397 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6398 (i386_linux_core_read_description): Add case for AVX512.
6399 (i386_linux_init_abi): Install supported register note section
6401 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6403 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6404 registers to be number of zmm7h + 1.
6405 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6406 * i386-tdep.c: Include features/i386/i386-avx512.c.
6407 (i386_zmm_names): Add ZMM pseudo register names array.
6408 (i386_zmmh_names): Add ZMM raw register names array.
6409 (i386_k_names): Add K raw register names array.
6410 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6411 registers. AVX512 has 16 more ZMM registers than there are YMM
6413 (i386_zmmh_regnum_p): Add function to look up register number of
6415 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6416 (i386_k_regnum_p): Likewise for K raw registers.
6417 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6418 registers added by AVX512.
6419 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6420 registers added by AVX512.
6421 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6423 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6424 (i386_pseudo_register_name): Add ZMM pseudo registers.
6425 (i386_zmm_type): Construct and return vector registers type for ZMM
6427 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6428 ZMM0-31 pseudo registers and K registers.
6429 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6430 and YMM16-31 registers from register cache.
6431 (i386_pseudo_register_write): Add code to write K, ZMM and
6433 (i386_register_reggroup_p): Add code to include/exclude AVX512
6434 registers in/from respective register groups.
6435 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6436 registers if feature is present in xcr0.
6437 (i386_gdbarch_init): Add code to initialize AVX512 feature
6438 variables in tdep structure, wire in pseudo registers and call
6439 initialize_tdesc_i386_avx512.
6440 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6442 (i386_regnum): Add AVX512 registers.
6443 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6444 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6445 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6446 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6448 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6449 (i386_ymm_avx512_regnum_p): Likewise.
6450 (i386_k_regnum_p): Likewise.
6451 (i386_zmm_regnum_p): Likewise.
6452 (i386_zmmh_regnum_p): Likewise.
6453 * i387-tdep.c : Update year in copyright notice.
6454 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6456 (XSAVE_YMM_AVX512_ADDR): New macro.
6457 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6459 (XSAVE_XMM_AVX512_ADDR): New macro.
6460 (xsave_avx512_k_offset): New table for K register offsets in
6462 (XSAVE_AVX512_K_ADDR): New macro.
6463 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6465 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6466 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6468 (i387_collect_xsave): Add code to collect AVX512 registers from
6470 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6471 of XMM16-31 registers.
6472 (I387_NUM_K_REGS): New define for number of K registers.
6473 (I387_K0_REGNUM): New define for K0 register number.
6474 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6475 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6476 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6478 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6479 (I387_XMM16_REGNUM): New define for XMM16 register number.
6480 (I387_YMM0_REGNUM): New define for YMM0 register number.
6481 (I387_KEND_REGNUM): New define for last K register number.
6482 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6483 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6485 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6487 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6489 * features/Makefile: Add AVX512 related files.
6490 * features/i386/32bit-avx512.xml: New file.
6491 * features/i386/64bit-avx512.xml: Likewise.
6492 * features/i386/amd64-avx512-linux.c: Likewise.
6493 * features/i386/amd64-avx512-linux.xml: Likewise.
6494 * features/i386/amd64-avx512.c: Likewise.
6495 * features/i386/amd64-avx512.xml: Likewise.
6496 * features/i386/i386-avx512-linux.c: Likewise.
6497 * features/i386/i386-avx512-linux.xml: Likewise.
6498 * features/i386/i386-avx512.c: Likewise.
6499 * features/i386/i386-avx512.xml: Likewise.
6500 * features/i386/x32-avx512-linux.c: Likewise.
6501 * features/i386/x32-avx512-linux.xml: Likewise.
6502 * features/i386/x32-avx512.c: Likewise.
6503 * features/i386/x32-avx512.xml: Likewise.
6504 * regformats/i386/amd64-avx512-linux.dat: New file.
6505 * regformats/i386/amd64-avx512.dat: Likewise.
6506 * regformats/i386/i386-avx512-linux.dat: Likewise.
6507 * regformats/i386/i386-avx512.dat: Likewise.
6508 * regformats/i386/x32-avx512-linux.dat: Likewise.
6509 * regformats/i386/x32-avx512.dat: Likewise.
6510 * NEWS: Add note about new support for AVX512.
6513 2014-04-23 Pedro Alves <palves@redhat.com>
6515 * breakpoint.c (insert_bp_location): Tolerate errors if the
6516 breakpoint is set in a user-loaded objfile.
6517 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6518 location is marked shlib_disabled. If the breakpoint is set in a
6519 user-loaded objfile is a GDB-side memory breakpoint, validate it
6520 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6521 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6523 * mem-break.c (memory_validate_breakpoint): New function.
6524 * objfiles.c (userloaded_objfile_contains_address_p): New
6526 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6527 * target.h (memory_validate_breakpoint): New declaration.
6529 2014-04-23 Pedro Alves <palves@redhat.com>
6531 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6532 the breakpoint is set in a shared library, only suppress
6533 errors for software breakpoints, not hardware breakpoints.
6535 2014-04-22 Pedro Alves <palves@redhat.com>
6537 * infrun.c (schedlock_applies): New function, factored out from
6538 find_thread_needs_step_over.
6539 (find_thread_needs_step_over): Use it.
6540 (switch_back_to_stepped_thread): Always clear trap_expected if the
6541 step over is finished. Return early if scheduler locking applies.
6542 Look for the stepping thread and a potential step-over thread with
6544 (currently_stepping_or_nexting_callback): Delete.
6546 2014-04-22 Nick Clifton <nickc@redhat.com>
6548 * NEWS: Mention that ARM sim now supports tracing.
6550 2014-04-22 Yao Qi <yao@codesourcery.com>
6552 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6554 * tracefile.c (tracefile_fetch_registers): ... it. New
6556 * tracefile.h (tracefile_fetch_registers): Declare.
6557 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6558 tracefile_fetch_registers.
6560 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6563 * windows-nat.c (thread_rec): Don't display a warning when
6564 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6565 fails for any reason, set th->suspended to -1, so that we don't
6566 try to resume such a thread. Also, don't return NULL in these
6567 cases, to avoid completely ruin the session due to "PC register is
6568 not available" error.
6569 (do_windows_fetch_inferior_registers): Check errors in
6570 GetThreadContext call.
6571 (windows_continue): Accept an additional argument KILLED; if not
6572 zero, ignore errors in the SetThreadContext call, since the
6573 inferior was killed and is shutting down.
6574 (windows_resume, get_windows_debug_event)
6575 (windows_create_inferior, windows_mourn_inferior)
6576 (windows_kill_inferior): All callers of windows_continue changed
6577 to adjust to its new calling sequence.
6579 2014-04-19 Yao Qi <yao@codesourcery.com>
6581 * ctf.c (ctf_open): Call post_create_inferior.
6583 2014-04-19 Yao Qi <yao@codesourcery.com>
6585 * ctf.c (handle_id): New static variable.
6586 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6587 value. Get the declaration of event "register" and get length
6588 of field "contents".
6590 2014-04-19 Yao Qi <yao@codesourcery.com>
6592 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6594 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6596 * valops.c (oload_method_static): Remove unnecessary argument
6597 METHOD. Update all callers.
6599 2014-04-18 Pedro alves <palves@redhat.com>
6600 Tom Tromey <tromey@redhat.com>
6603 * frame.c (get_prev_frame_1): Rename to ...
6604 (get_prev_frame_always): ... this, and make extern. Adjust.
6605 (skip_artificial_frames): Use get_prev_frame_always.
6606 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6607 (get_frame_unwind_stop_reason): Adjust to rename.
6608 * frame.h (get_prev_frame_always): Declare.
6609 * inline-frame.c: Include frame.h.
6610 (inline_frame_this_id): Use get_prev_frame_always.
6612 2014-04-18 Tristan Gingold <gingold@adacore.com>
6614 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6615 code by using bfd_mach_o_get_base_address.
6617 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6619 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6620 (spu_ax_pseudo_register_collect): New function.
6621 (spu_ax_pseudo_register_push_stack): Likewise.
6622 (spu_dwarf_reg_to_regnum): Likewise.
6623 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6625 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6627 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6628 Replace FRAME argument with FRAME_ID.
6629 * gdbarch.c, gdbarch.h: Regenerate.
6630 * findvar.c (default_value_from_register): Add GDBARCH argument;
6631 replace FRAME by FRAME_ID. No longer call get_frame_id.
6632 (value_from_register): Update call to gdbarch_value_from_register.
6633 * value.h (default_value_from_register): Update prototype.
6634 * s390-linux-tdep.c (s390_value_from_register): Update interface
6635 and call to default_value_from_register.
6636 * spu-tdep.c (spu_value_from_register): Likewise.
6638 * findvar.c (address_from_register): Remove TYPE argument.
6639 Do not call value_from_register; use gdbarch_value_from_register
6640 with null_frame_id instead.
6641 * value.h (address_from_register): Update prototype.
6642 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6643 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6644 address_from_register interface change.
6646 2014-04-17 Yao Qi <yao@codesourcery.com>
6648 * gdbtypes.h: Update comments to link to types and macros'
6651 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6653 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6655 2014-04-16 Keith Seitz <keiths@redhat.com>
6658 * dwarf2read.c (skip_one_die): Check that all relative-offset
6659 sibling DIEs fall within range of the current reader's buffer.
6660 (read_partial_die): Likewise.
6662 2014-04-16 Keith Seitz <keiths@redhat.com>
6665 * cp-namespace.c (lookup_symbol_file): If the type name of
6666 `this' is NULL, return immediately.
6668 2014-04-14 Keith Seitz <keiths@redhat.com>
6671 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6672 from symbol_matches_domain in symtab.c. All local callers
6673 of symbol_matches_domain updated.
6674 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6675 search STRUCT_DOMAIN.
6676 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6677 independently. standard_lookup will do that automatically.
6678 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6679 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6680 (cp_lookup_symbol_in_namespace): Likewise.
6681 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6682 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6683 may return a STRUCT_DOMAIN match.
6684 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6685 * cp-support.c: Include language.h.
6686 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6688 * psymtab.c (match_partial_symbol): Compare the requested
6689 domain with the symbol's domain directly.
6690 (lookup_partial_symbol): Likewise.
6691 * symtab.c (lookup_symbol_in_language): Explain when/why
6692 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6693 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6694 appropriate languages.
6695 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6696 and moved to ada-lang.c
6697 (lookup_block_symbol): Explain that this function only returns
6698 symbol matching the requested DOMAIN.
6699 Compare the requested domain with the symbol's domain directly.
6700 (iterate_over_symbols): Compare the requested domain with the
6701 symbol's domain directly.
6702 * symtab.h (symbol_matches_domain): Remove.
6704 2014-04-14 Tom Tromey <tromey@redhat.com>
6707 * c-exp.y (type_aggregate_p): New function.
6708 (qualified_name, classify_inner_name): Use it.
6709 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6710 and TYPE_TARGET_TYPE of an enum type.
6711 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6713 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6714 handle TYPE_DECLARED_CLASS.
6715 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6717 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6718 * valops.c (enum_constant_from_type): New function.
6719 (value_aggregate_elt): Use it.
6720 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6723 2014-04-14 Tom Tromey <tromey@redhat.com>
6725 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6726 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6728 * value.h (value_aggregate_elt): Update.
6730 2014-04-14 Tom Tromey <tromey@redhat.com>
6732 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6734 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6736 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6737 (evaluate_subexp_standard): Pass noside argument.
6738 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6739 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6740 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6741 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6742 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6744 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6746 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6747 points to a constant blob.
6749 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6751 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6752 property and store it as the high bound and flag the range accordingly.
6753 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6754 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6755 * gdbtypes.h (enum range_flags): New enum.
6756 (struct range_bounds): Add flags member.
6758 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6760 * c-typeprint.c (c_type_print_varspec_suffix): Added
6761 check for not yet resolved high bound. If unresolved, print
6762 "variable length" string to the console instead of random
6765 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6767 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6769 (ada_template_to_fixed_record_type_1): Likewise.
6770 (ada_to_fixed_type_1): Likewise.
6771 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6772 (cp_print_value): Likewise.
6773 * d-valprint.c (dynamic_array_type): Likewise.
6774 * findvar.c (address_of_variable): Likewise.
6775 * jv-valprint.c (java_value_print): Likewise.
6776 * valops.c (value_ind): Likewise.
6777 * value.c (coerce_ref): Likewise.
6779 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6781 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6782 value and retrieve the dynamic type size.
6784 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6786 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6787 passed to sizeof is dynamic evaluate the argument to compute the length.
6789 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6790 Joel Brobecker <brobecker@adacore.com>
6792 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6793 (dwarf2_evaluate_property): New function.
6794 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6795 * dwarf2read.c (attr_to_dynamic_prop): New function.
6796 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6798 * gdbtypes.c: Include dwarf2loc.h.
6799 (is_dynamic_type): New function.
6800 (resolve_dynamic_type): New function.
6801 (resolve_dynamic_bounds): New function.
6802 (get_type_length): New function.
6803 (check_typedef): Use get_type_length to compute type length.
6804 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6805 (TYPE_LOW_BOUND_KIND): New macro.
6806 (is_dynamic_type): New function prototype.
6807 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6808 to resolve dynamic properties of the type. Update comment.
6809 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6811 2014-04-14 Richard Henderson <rth@redhat.com>
6813 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6815 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6816 Doug Evans <xdje42@gmail.com>
6818 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6819 dereference TYPE_CODE_REF values.
6821 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6823 Revert the following changes due to regressions:
6825 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6826 (dwarf2_evaluate_property): New function.
6827 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6828 * dwarf2read.c (attr_to_dynamic_prop): New function.
6829 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6831 * gdbtypes.c: Include dwarf2loc.h.
6832 (is_dynamic_type): New function.
6833 (resolve_dynamic_type): New function.
6834 (resolve_dynamic_bounds): New function.
6835 (get_type_length): New function.
6836 (check_typedef): Use get_type_length to compute type length.
6837 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6838 (TYPE_LOW_BOUND_KIND): New macro.
6839 (is_dynamic_type): New function prototype.
6840 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6841 to resolve dynamic properties of the type. Update comment.
6842 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6844 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6845 passed to sizeof is dynamic evaluate the argument to compute the length.
6847 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6848 value and retrieve the dynamic type size.
6850 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6851 (ada_template_to_fixed_record_type_1): Likewise.
6852 (ada_to_fixed_type_1): Likewise.
6853 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6854 (cp_print_value): Likewise.
6855 * d-valprint.c (dynamic_array_type): Likewise.
6856 * eval.c (evaluate_subexp_with_coercion): Likewise.
6857 * findvar.c (address_of_variable): Likewise.
6858 * jv-valprint.c (java_value_print): Likewise.
6859 * valops.c (value_ind): Likewise.
6860 * value.c (coerce_ref): Likewise.
6862 * c-typeprint.c (c_type_print_varspec_suffix): Added
6863 check for not yet resolved high bound. If unresolved, print
6864 "variable length" string to the console instead of random
6867 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6868 property and store it as the high bound and flag the range accordingly.
6869 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6870 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6871 * gdbtypes.h (enum range_flags): New enum.
6872 (struct range_bounds): Add flags member.
6874 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6875 points to a constant blob.
6877 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6878 (evaluate_subexp_standard): Pass noside argument.
6879 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6880 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6881 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6882 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6883 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6885 2014-04-11 Keith Seitz <keiths@redhat.com>
6888 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6889 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6892 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6894 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6895 (evaluate_subexp_standard): Pass noside argument.
6896 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6897 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6898 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6899 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6900 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6902 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6904 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6905 points to a constant blob.
6907 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6909 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6910 property and store it as the high bound and flag the range accordingly.
6911 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6912 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6913 * gdbtypes.h (enum range_flags): New enum.
6914 (struct range_bounds): Add flags member.
6916 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6918 * c-typeprint.c (c_type_print_varspec_suffix): Added
6919 check for not yet resolved high bound. If unresolved, print
6920 "variable length" string to the console instead of random
6923 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6925 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6926 (ada_template_to_fixed_record_type_1): Likewise.
6927 (ada_to_fixed_type_1): Likewise.
6928 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6929 (cp_print_value): Likewise.
6930 * d-valprint.c (dynamic_array_type): Likewise.
6931 * eval.c (evaluate_subexp_with_coercion): Likewise.
6932 * findvar.c (address_of_variable): Likewise.
6933 * jv-valprint.c (java_value_print): Likewise.
6934 * valops.c (value_ind): Likewise.
6935 * value.c (coerce_ref): Likewise.
6937 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6939 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6940 value and retrieve the dynamic type size.
6942 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6944 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6945 passed to sizeof is dynamic evaluate the argument to compute the length.
6947 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6949 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6950 (dwarf2_evaluate_property): New function.
6951 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6952 * dwarf2read.c (attr_to_dynamic_prop): New function.
6953 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6955 * gdbtypes.c: Include dwarf2loc.h.
6956 (is_dynamic_type): New function.
6957 (resolve_dynamic_type): New function.
6958 (resolve_dynamic_bounds): New function.
6959 (get_type_length): New function.
6960 (check_typedef): Use get_type_length to compute type length.
6961 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6962 (TYPE_LOW_BOUND_KIND): New macro.
6963 (is_dynamic_type): New function prototype.
6964 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6965 to resolve dynamic properties of the type. Update comment.
6966 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6968 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6970 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6971 declaring high/low bounds and change uses accordingly. Call
6972 create_range_type instead of create_static_range_type.
6973 * gdbtypes.c (create_range_type): New function.
6974 (create_range_type): Convert bounds into struct bound_prop and pass
6975 them to create_range_type.
6976 * gdbtypes.h (struct bound_prop): New struct.
6977 (create_range_type): New function prototype.
6978 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6979 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6980 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6982 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6984 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6986 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6987 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6988 * ada-lang.c: All uses of create_range_type updated.
6989 * coffread.c: All uses of create_range_type updated.
6990 * dwarf2read.c: All uses of create_range_type updated.
6991 * f-exp.y: All uses of create_range_type updated.
6992 * m2-valprint.c: All uses of create_range_type updated.
6993 * mdebugread.c: All uses of create_range_type updated.
6994 * stabsread.c: All uses of create_range_type updated.
6995 * valops.c: All uses of create_range_type updated.
6996 * valprint.c: All uses of create_range_type updated.
6998 2014-04-10 Pedro Alves <palves@redhat.com>
7000 * breakpoint.c (single_step_breakpoints)
7001 (single_step_gdbarch): Move up in the file.
7002 (one_breakpoint_xfer_memory): New function, factored out from ...
7003 (breakpoint_xfer_memory): ... here. Also process single-step
7006 2014-04-09 Tristan Gingold <gingold@adacore.com>
7008 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7010 (darwin_decode_exception_message): Free port only after use.
7012 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7014 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7015 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7016 when setting the size of call_length.
7018 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7020 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7021 dereference TYPE_CODE_REF values.
7023 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7025 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7026 end of warning message.
7028 2014-04-03 Doug Evans <dje@google.com>
7030 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7031 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7033 2014-04-02 Alan Modra <amodra@gmail.com>
7035 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7036 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7037 (struct symbol_file_add_from_memory_args): Add size field.
7038 (find_vdso_size): New function.
7039 (add_vsyscall_page): Attempt to find vdso size.
7041 2014-04-01 Doug Evans <dje@google.com>
7043 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7045 2014-04-01 Tristan Gingold <gingold@adacore.com>
7047 * darwin-nat.c (darwin_encode_reply): Add prototype.
7048 (darwin_decode_exception_message): Reply to unknown inferiors.
7049 (darwin_decode_message): Handle message by id. Ignore message
7050 to unknown inferior.
7051 (darwin_wait): Discard unknown messages, add debug trace.
7053 2014-03-31 Doug Evans <dje@google.com>
7055 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7058 2014-03-31 Doug Evans <dje@google.com>
7060 New option "set print symbol-loading".
7062 * solib.c (solib_read_symbols): Only print symbol loading messages
7064 (solib_add): If symbol loading is in "brief" mode, notify user
7065 symbols are being loaded.
7066 (reload_shared_libraries_1): Ditto.
7067 * symfile.c (print_symbol_loading_off): New static global.
7068 (print_symbol_loading_brief): New static global.
7069 (print_symbol_loading_full): New static global.
7070 (print_symbol_loading_enums): New static global.
7071 (print_symbol_loading): New static global.
7072 (print_symbol_loading_p): New function.
7073 (symbol_file_add_with_addrs): Only print symbol loading messages
7075 (_initialize_symfile): Register "print symbol-loading" set/show
7077 * symfile.h (print_symbol_loading_p): Declare.
7079 2014-03-30 Doug Evans <xdje42@gmail.com>
7081 * infrun.c (set_last_target_status): New function.
7082 (handle_inferior_event): Call it.
7084 2014-03-30 Doug Evans <xdje42@gmail.com>
7086 * inferior.h (enum stop_kind): Improve comment.
7088 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7090 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7091 a reference, strip the reference layer before calling
7092 the lang_ops value_has_mutated callback.
7094 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7096 Remove some globals from our parser.
7097 * language.c (unk_lang_parser): Add "struct parser_state"
7099 * language.h (struct language_defn) <la_parser>: Likewise.
7100 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7101 (initialize_expout): Add "struct parser_state" argument.
7102 Rewrite function to use the parser state.
7103 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7104 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7105 write_exp_elt_longcst, write_exp_elt_dblcst,
7106 write_exp_elt_decfloatcst, write_exp_elt_type,
7107 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7108 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7109 write_dollar_variable): Likewise.
7110 (parse_exp_in_context_1): Use parser state.
7111 (insert_type_address_space): Add "struct parser_state" argument.
7113 (increase_expout_size): New function.
7114 * parser-defs.h: Forward declare "struct language_defn" and
7115 "struct parser_state".
7116 (expout, expout_size, expout_ptr): Remove extern declarations.
7117 (parse_gdbarch, parse_language): Rewrite macro declarations to
7118 accept the parser state.
7119 (struct parser_state): New struct.
7120 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7121 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7122 write_exp_elt_decfloatcst, write_exp_elt_type,
7123 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7124 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7125 write_exp_msymbol, write_dollar_variable,
7126 mark_struct_expression, insert_type_address_space): Add "struct
7127 parser_state" argument.
7128 (increase_expout_size): New function.
7129 * utils.c (do_clear_parser_state): New function.
7130 (make_cleanup_clear_parser_state): Likewise.
7131 * utils.h (make_cleanup_clear_parser_state): New function
7133 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7134 Update calls to write_exp* in order to pass the parser state.
7135 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7136 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7137 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7138 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7139 * stap-probe.c (stap_parse_register_operand): Likewise.
7140 (stap_parse_single_operand): Likewise.
7141 (stap_parse_argument_1): Likewise.
7142 (stap_parse_argument): Use parser state.
7143 * stap-probe.h: Include "parser-defs.h".
7144 (struct stap_parse_info) <pstate>: New field.
7145 * c-exp.y (parse_type): Rewrite to use parser state.
7146 (yyparse): Redefine to c_parse_internal.
7147 (pstate): New global variable.
7148 (parse_number): Add "struct parser_state" argument.
7149 (write_destructor_name): Likewise.
7150 (type_exp): Update calls to write_exp* and similars in order to
7152 (exp1, exp, variable, qualified_name, space_identifier,
7153 typename, typebase): Likewise.
7154 (write_destructor_name, parse_number, lex_one_token,
7155 classify_name, classify_inner_name, c_parse): Add "struct
7156 parser_state" argument. Update function to use parser state.
7157 * c-lang.h: Forward declare "struct parser_state".
7158 (c_parse): Add "struct parser_state" argument.
7159 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7160 (yyparse): Redefine macro to ada_parse_internal.
7161 (pstate): New variable.
7162 (write_int, write_object_renaming, write_var_or_type,
7163 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7164 type_int, type_long, type_long_long, type_float, type_double,
7165 type_long_double, type_char, type_boolean, type_system_address):
7166 Add "struct parser_state" argument.
7167 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7168 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7169 var_or_type, aggregate, aggregate_component_list,
7170 positional_list, others, component_group,
7171 component_associations): Update calls to write_exp* and similar
7172 functions in order to use parser state.
7173 (ada_parse, write_var_from_sym, write_int,
7174 write_exp_op_with_string, write_object_renaming,
7175 find_primitive_type, write_selectors, write_ambiguous_var,
7176 write_var_or_type, write_name_assoc, type_int, type_long,
7177 type_long_long, type_float, type_double, type_long_double,
7178 type_char, type_boolean, type_system_address): Add "struct
7179 parser_state" argument. Adjust function to use parser state.
7180 * ada-lang.c (parse): Likewise.
7181 * ada-lang.h: Forward declare "struct parser_state".
7182 (ada_parse): Add "struct parser_state" argument.
7183 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7184 calls to both functions.
7185 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7187 (yyparse): Redefine macro to f_parse_internal.
7188 (pstate): New variable.
7189 (parse_number): Add "struct parser_state" argument.
7190 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7191 and similars in order to use parser state.
7192 (parse_number): Adjust code to use parser state.
7194 (f_parse): New function.
7195 * f-lang.h: Forward declare "struct parser_state".
7196 (f_parse): Add "struct parser_state" argument.
7197 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7199 (yyparse): Redefine macro for java_parse_internal.
7200 (pstate): New variable.
7201 (push_expression_name, push_expression_name, insert_exp): Add
7202 "struct parser_state" argument.
7203 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7204 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7205 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7206 PostIncrementExpression, PostDecrementExpression,
7207 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7208 UnaryExpressionNotPlusMinus, CastExpression,
7209 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7210 RelationalExpression, EqualityExpression, AndExpression,
7211 ExclusiveOrExpression, InclusiveOrExpression,
7212 ConditionalAndExpression, ConditionalOrExpression,
7213 ConditionalExpression, Assignment, LeftHandSide): Update
7214 calls to write_exp* and similars in order to use parser state.
7215 (parse_number): Ajust code to use parser state.
7217 (java_parse): New function.
7218 (push_variable): Add "struct parser_state" argument. Adjust
7219 code to user parser state.
7220 (push_fieldnames, push_qualified_expression_name,
7221 push_expression_name, insert_exp): Likewise.
7222 * jv-lang.h: Forward declare "struct parser_state".
7223 (java_parse): Add "struct parser_state" argument.
7224 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7226 (yyparse): Redefine macro to m2_parse_internal.
7227 (pstate): New variable.
7228 (type_exp, exp, fblock, variable, type): Update calls to
7229 write_exp* and similars to use parser state.
7231 (m2_parse): New function.
7232 * m2-lang.h: Forward declare "struct parser_state".
7233 (m2_parse): Add "struct parser_state" argument.
7234 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7235 * objc-lang.h: Forward declare "struct parser_state".
7236 (end_msglist): Add "struct parser_state" argument.
7237 * p-exp.y (parse_type): Rewrite macro to use parser state.
7238 (yyparse): Redefine macro to pascal_parse_internal.
7239 (pstate): New variable.
7240 (parse_number): Add "struct parser_state" argument.
7241 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7242 write_exp* and similars in order to use parser state.
7243 (parse_number, yylex): Adjust code to use parser state.
7244 (pascal_parse): New function.
7245 * p-lang.h: Forward declare "struct parser_state".
7246 (pascal_parse): Add "struct parser_state" argument.
7247 * go-exp.y (parse_type): Rewrite macro to use parser state.
7248 (yyparse): Redefine macro to go_parse_internal.
7249 (pstate): New variable.
7250 (parse_number): Add "struct parser_state" argument.
7251 (type_exp, exp1, exp, variable, type): Update calls to
7252 write_exp* and similars in order to use parser state.
7253 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7254 to use parser state.
7255 (go_parse): Likewise.
7256 * go-lang.h: Forward declare "struct parser_state".
7257 (go_parse): Add "struct parser_state" argument.
7259 2014-03-27 Doug Evans <dje@google.com>
7261 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7263 2014-03-27 Doug Evans <dje@google.com>
7265 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7266 Remove argument abbrev_section. All callers updated.
7268 2014-03-27 Doug Evans <dje@google.com>
7270 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7271 addr_base, ranges_base.
7273 2014-03-26 Keith Seitz <keiths@redhat.com>
7275 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7276 types, not VAR_DOMAIN.
7278 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7280 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7282 * features/nios2-linux.c: Regenerated.
7283 * features/nios2.c: Regenerated.
7285 2014-03-25 Pedro Alves <palves@redhat.com>
7287 * cli/cli-script.c (script_from_file): Force the interpreter to
7290 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7292 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7293 small stack allocation.
7295 2014-03-24 Tristan Gingold <gingold@adacore.com>
7297 * darwin-nat.c (exc_server): Remove unused prototype.
7298 (darwin_dump_message): Correctly display data on x86_64.
7299 (darwin_encode_reply): Fix style.
7300 Add comments and fix indentation.
7302 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7304 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7306 2014-03-22 Doug Evans <xdje42@gmail.com>
7308 * infcmd.c: Whitespace fixes.
7309 (interrupt_command): Merge two function comments into one.
7311 2014-03-22 Doug Evans <xdje42@gmail.com>
7313 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7316 2014-03-22 Yao Qi <yao@codesourcery.com>
7318 * remote.c (target_read_live_memory): Remove.
7319 (memory_xfer_live_readonly_partial): Rename it to
7320 remote_xfer_live_readonly_partial. Remove argument 'object'.
7321 All callers updated. Call remote_read_bytes_1
7322 instead of target_read_live_memory.
7323 * tracepoint.c (set_traceframe_number): Remove.
7324 (make_cleanup_restore_traceframe_number): Likewise .
7325 * tracepoint.h (set_traceframe_number): Remove declaration.
7326 (make_cleanup_restore_traceframe_number): Likewise.
7328 2014-03-22 Yao Qi <yao@codesourcery.com>
7330 * remote.c (remote_read_bytes): Move code on reading from the
7332 (remote_read_bytes_1): ... here. New function.
7334 2014-03-22 Yao Qi <yao@codesourcery.com>
7336 * ctf.c (ctf_xfer_partial): Check the return value of
7337 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7338 return TARGET_XFER_UNAVAILABLE.
7339 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7340 * target.c (target_read_live_memory): Move it to remote.c.
7341 (memory_xfer_live_readonly_partial): Likewise.
7342 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7343 * remote.c (target_read_live_memory): Moved from target.c.
7344 (memory_xfer_live_readonly_partial): Likewise.
7345 (remote_read_bytes): Factored out from
7346 memory_xfer_partial_1.
7348 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7350 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7353 2014-03-21 Pedro Alves <palves@redhat.com>
7355 * infrun.c (normal_stop): Extend comment.
7357 2014-03-21 Hui Zhu <hui@codesourcery.com>
7358 Pedro Alves <palves@redhat.com>
7360 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7362 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7363 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7364 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7366 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7368 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7369 `z' formatted output modifier.
7371 2014-03-20 Tom Tromey <tromey@redhat.com>
7372 Sergio Durigan Junior <sergiodj@redhat.com>
7374 * probe.c (parse_probes): Turn assert into an ordinary error.
7375 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7376 exceptions when parsing probes. Rearrange the code for clarity.
7378 2014-03-20 Tom Tromey <tromey@redhat.com>
7381 * top.c (execute_command): Only dispatch events if the command
7384 2014-03-20 Tom Tromey <tromey@redhat.com>
7387 * infcall.c: Include event-top.h.
7388 (run_inferior_call): Call async_disable_stdin if needed.
7390 2014-03-20 Pedro Alves <palves@redhat.com>
7392 * infrun.c (prepare_to_proceed): Delete.
7393 (thread_still_needs_step_over): New function.
7394 (find_thread_needs_step_over): New function.
7395 (proceed): If the current thread needs a step-over, set its
7396 steping_over_breakpoint flag. Adjust to use
7397 find_thread_needs_step_over instead of prepare_to_proceed.
7398 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7399 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7401 (switch_back_to_stepped_thread): Step over breakpoints of all
7402 threads not the stepping thread, before switching back to the
7405 2014-03-20 Pedro Alves <palves@redhat.com>
7407 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7409 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7410 * infrun.c (saved_singlestep_ptid)
7411 (stepping_past_singlestep_breakpoint): Delete.
7412 (resume): Remove stepping_past_singlestep_breakpoint handling.
7413 (proceed): Store the prev_pc of the stepping thread too.
7414 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7416 (enum infwait_states): Delete infwait_thread_hop_state.
7417 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7419 (handle_inferior_event): Adjust.
7420 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7421 handling and the thread-hop code. Before removing single-step
7422 breakpoints, check whether the thread hit a single-step breakpoint
7423 of another thread. If it did, the trap is not a random signal.
7424 (switch_back_to_stepped_thread): If the event thread hit a
7425 single-step breakpoint, unblock it before switching to the
7426 stepping thread. Handle the case of the stepped thread having
7428 (keep_going): Handle the case of the current thread moving past a
7429 single-step breakpoint.
7431 2014-03-20 Pedro Alves <palves@redhat.com>
7434 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7435 are being stepped over.
7436 (breakpoint_address_match): Make extern.
7437 * breakpoint.h (breakpoint_address_match): New declaration.
7438 * inferior.h (stepping_past_instruction_at): New declaration.
7439 * infrun.c (struct step_over_info): New type.
7440 (step_over_info): New global.
7441 (set_step_over_info, clear_step_over_info)
7442 (stepping_past_instruction_at): New functions.
7443 (handle_inferior_event): Clear the step-over info when
7444 trap_expected is cleared.
7445 (resume): Remove now stale comment.
7446 (clear_proceed_status): Clear step-over info.
7447 (proceed): Adjust step-over handling to set or clear the step-over
7448 info instead of removing all breakpoints.
7449 (handle_signal_stop): When setting up a thread-hop, don't remove
7451 (stop_stepping): Clear step-over info.
7452 (keep_going): Adjust step-over handling to set or clear step-over
7453 info and then always inserting breakpoints, instead of removing
7454 all breakpoints when stepping over one.
7456 2014-03-20 Pedro Alves <palves@redhat.com>
7458 * infrun.c (previous_inferior_ptid): Adjust comment.
7459 (deferred_step_ptid): Delete.
7460 (infrun_thread_ptid_changed, prepare_to_proceed)
7461 (init_wait_for_inferior): Adjust.
7462 (handle_signal_stop): Delete deferred_step_ptid handling.
7464 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7467 * defs.h (sync_quit_force_run): New declaration.
7468 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7469 * event-top.c (async_sigterm_handler): New declaration.
7470 (async_sigterm_token): New variable.
7471 (async_init_signals): Create also async_sigterm_token.
7472 (async_sigterm_handler): New function.
7473 (sync_quit_force_run): New variable.
7474 (handle_sigterm): Replace quit_force call by other calls.
7475 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7477 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7479 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7480 offset into SPE pseudo registers.
7482 2014-03-18 Pedro Alves <palves@redhat.com>
7485 * inferior.h (print_stop_event): Declare.
7486 * infrun.c (print_stop_event): New, factored out from ...
7487 (normal_stop): ... this.
7488 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7489 of bpstat_print/print_stack_frame.
7491 2014-03-17 Tom Tromey <tromey@redhat.com>
7493 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7495 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7497 * ada-lang.c (decode_constrained_packed_array): Perform a
7498 minimal coercion for reference with coerce_ref instead of
7501 2014-03-17 Tristan Gingold <gingold@adacore.com>
7503 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7504 (darwin_solib_create_inferior_hook): Emit a warning if version
7507 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7509 * python/py-value.c (get_field_flag): Cast flag_name argument to
7510 PyObject_GetAttrString to support Python 2.4.
7512 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7514 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7515 (Global Maintainers): Remove Jan Kratochvil.
7517 2014-03-14 Pedro Alves <palves@redhat.com>
7519 * inferior.h (terminal_ours_for_output): Rename to ...
7520 (child_terminal_ours_for_output): ... this.
7521 (terminal_save_ours): Rename to ...
7522 (child_terminal_save_ours): ... this.
7523 (terminal_ours): Rename to ...
7524 (child_terminal_ours): ... this.
7525 (terminal_inferior): Rename to ...
7526 (child_terminal_inferior): ... this.
7527 (terminal_init_inferior): Rename to ...
7528 (child_terminal_init_inferior): ... this.
7529 (terminal_init_inferior_with_pgrp): Rename to ...
7530 (child_terminal_init_inferior_with_pgrp): ... this.
7531 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7532 (child_terminal_init_with_pgrp): ... this.
7533 (terminal_save_ours): Rename to ...
7534 (child_terminal_save_ours): ... this.
7535 (terminal_init_inferior): Rename to ...
7536 (child_terminal_init): ... this. Adjust.
7537 (terminal_inferior): Rename to ...
7538 (child_terminal_inferior): ... this.
7539 (terminal_ours_for_output): Rename to ...
7540 (child_terminal_ours_for_output): ... this. Adjust.
7541 (terminal_ours): Rename to ...
7542 (child_terminal_ours): ... this.
7543 (terminal_ours_1): Rename to ...
7544 (child_terminal_ours_1): ... this. Adjust.
7545 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7546 * windows-nat.c (do_initial_windows_stuff): Adjust.
7547 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7548 (gnu_terminal_init): ... this. Adjust.
7549 (gnu_target): Adjust.
7550 * inf-child.c (inf_child_target): Adjust.
7552 2014-03-13 Doug Evans <xdje42@gmail.com>
7555 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7558 2014-03-13 Doug Evans <xdje42@gmail.com>
7560 * value.c (record_latest_value): Call release_value_or_incref
7561 instead of release_value.
7563 2014-03-13 Pedro Alves <palves@redhat.com>
7565 * procfs.c (procfs_target): Don't override to_shortname,
7566 to_longname or to_doc.
7568 2014-03-13 Pedro Alves <palves@redhat.com>
7570 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7571 Unix in user visible strings.
7573 2014-03-12 Stan Shebs <stan@codesourcery.com>
7575 * gdbtypes.h: Annotate comments for Doxygen, add a page
7576 block comment with some general info.
7578 2014-03-12 Pedro Alves <palves@redhat.com>
7580 * infcmd.c (prepare_execution_command): New function, factored out
7581 from several execution commands.
7582 (run_command_1, continue_command, step_1, jump_command)
7583 (signal_command, until_command, advance_command, finish_command)
7584 (attach_command): Use prepare_execution_command.
7586 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7588 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7591 (struct arm_linux_thread_points): Removed.
7592 (struct arm_linux_process_info): New.
7593 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7594 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7595 (arm_linux_find_breakpoints_by_tid): Removed.
7596 (struct arch_lwp_info): New.
7597 (arm_linux_find_process_pid): New functions.
7598 (arm_linux_add_process): New functions.
7599 (arm_linux_process_info_get): New functions.
7600 (arm_linux_forget_process): New function.
7601 (arm_linux_get_debug_reg_state): New function.
7602 (struct update_registers_data): New.
7603 (update_registers_callback): New function.
7604 (arm_linux_insert_hw_breakpoint1): Updated.
7605 (arm_linux_remove_hw_breakpoint1): Updated.
7606 (arm_linux_insert_hw_breakpoint): Updated.
7607 (arm_linux_remove_hw_breakpoint): Updated.
7608 (arm_linux_insert_watchpoint): Updated.
7609 (arm_linux_remove_watchpoint): Updated.
7610 (arm_linux_new_thread): Updated.
7611 (arm_linux_prepare_to_resume): New function.
7612 (arm_linux_new_fork): New function.
7613 (_initialize_arm_linux_nat): Updated.
7615 2014-03-12 Pedro Alves <palves@redhat.com>
7617 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7619 2014-03-12 Tom Tromey <tromey@redhat.com>
7621 * inf-child.c (return_zero): New function.
7622 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7623 * aix-thread.c (aix_thread_inferior_created): New function.
7624 (aix_thread_attach): Remove.
7625 (init_aix_thread_ops): Don't set to_attach.
7626 (_initialize_aix_thread): Register inferior_created observer.
7627 * corelow.c (init_core_ops): Don't set to_attach or
7629 * exec.c (init_exec_ops): Don't set to_attach or
7631 * infcmd.c (run_command_1): Use find_run_target. Make direct
7633 (attach_command): Use find_attach_target. Make direct target
7635 * record-btrace.c (init_record_btrace_ops): Don't set
7637 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7639 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7640 set to_create_inferior.
7641 * target.c (complete_target_initialization): Add assertion.
7642 (target_create_inferior): Remove.
7643 (find_default_attach, find_default_create_inferior): Remove.
7644 (find_attach_target, find_run_target): New functions.
7645 (find_default_is_async_p, find_default_can_async_p)
7646 (target_supports_non_stop, target_attach): Remove.
7647 (init_dummy_target): Don't set to_create_inferior or
7648 to_supports_non_stop.
7649 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7650 TARGET_DEFAULT_FUNC.
7651 <to_create_inferior>: Add comment.
7652 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7653 TARGET_DEFAULT_RETURN.
7654 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7655 (find_attach_target, find_run_target): Declare.
7656 (target_create_inferior): Remove.
7657 (target_has_execution_1): Update comment.
7658 (target_supports_non_stop): Remove.
7659 * target-delegates.c: Rebuild.
7661 2014-03-12 Pedro Alves <palves@redhat.com>
7663 * inf-child.h: Update comment to not mention Unix.
7665 2014-03-12 Pedro Alves <palves@redhat.com>
7667 * inf-child.c: Update top comment to not mention Unix. Add
7668 generic comment describing how this target is meant to be used.
7669 (inf_child_post_attach, inf_child_post_startup_inferior)
7670 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7673 2014-03-12 Pedro Alves <palves@redhat.com>
7675 * nto-procfs.c: Include inf-child.h.
7676 (procfs_ops): Delete global.
7677 (procfs_can_run): Delete method.
7678 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7679 target pointer instead of referencing procfs_ops.
7680 (procfs_prepare_to_store): Delete.
7681 (init_procfs_ops): Delete function.
7682 (procfs_target): New function, based on init_procfs_ops, but
7683 inherit inf_child_target.
7684 (_initialize_procfs): Use procfs_target.
7686 2014-03-12 Pedro Alves <palves@redhat.com>
7688 * windows-nat.c: Include inf-child.h.
7689 (windows_ops): Delete global.
7690 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7692 (init_windows_ops): Delete function.
7693 (windows_target): New function, based on init_windows_ops, but
7694 inherit inf_child_target.
7695 (_initialize_windows_nat): Use windows_target. Install x86
7696 specific target methods here.
7698 2014-03-10 Doug Evans <xdje42@gmail.com>
7700 * guile/guile.c (call_initialize_gdb_module): New function.
7701 (initialize_guile): Replace call to scm_init_guile with call to
7704 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7706 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7707 in call to TYPE_CODE macro.
7709 2014-03-10 Jerome Guitton <guitton@adacore.com>
7711 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7712 Resolve tagged types to full view.
7714 2014-03-10 Hui Zhu <hui@codesourcery.com>
7716 * target.h (target_insert_breakpoint): Remove "hardware" from its
7719 2014-03-07 Doug Evans <dje@google.com>
7721 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7723 2014-03-07 Doug Evans <dje@google.com>
7725 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7726 Remove unused local comp_dir_attr. Assert exactly one of
7727 stub_comp_unit_die, stub_comp_dir is non-NULL.
7729 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7731 * target.h (complete_target_initialization, add_target):
7734 2014-03-07 Pedro Alves <palves@redhat.com>
7736 * go32-nat.c: Include inf-child.h.
7737 (go32_ops): Delete global.
7738 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7740 (go32_create_inferior): Push the passed in target pointer instead
7741 of referencing go32_ops.
7742 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7743 (go32_target): New function, based on init_go32_ops, but inherit
7745 (_initialize_go32_nat): Use go32_target. Move parts of
7748 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7750 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7751 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7752 SYMBOL_VALUE_ADDRESS.
7753 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7755 2014-03-06 Yao Qi <yao@codesourcery.com>
7757 * breakpoint.c (get_tracepoint_by_number): Remove argument
7758 optional_p. All callers updated. Adjust comments. Update
7760 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7762 2014-03-06 Yao Qi <yao@codesourcery.com>
7764 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7765 early if get_number returns zero. Use 'p' instead of 'args'.
7767 2014-03-06 Yao Qi <yao@codesourcery.com>
7769 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7772 2014-03-06 Yao Qi <yao@codesourcery.com>
7774 PR breakpoints/16508
7775 * tracepoint.c (check_trace_running): New function.
7776 (trace_find_command): Move code to check_trace_running and
7777 call check_trace_running.
7778 (trace_find_pc_command): Likewise.
7779 (trace_find_tracepoint_command): Likewise.
7780 (trace_find_line_command): Likewise.
7781 (trace_find_range_command): Likewise.
7782 * tracepoint.h (check_trace_running): Likewise.
7783 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7785 2014-03-06 Yao Qi <yao@codesourcery.com>
7787 * target.h (struct target_ops) <to_traceframe_info>: Use
7788 TARGET_DEFAULT_NORETURN (tcomplain ()).
7789 * target-delegates.c: Regenerated.
7791 2014-03-05 Pedro Alves <palves@redhat.com>
7794 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7795 void. Update comment.
7796 (dcache_xfer_memory): Delete.
7797 (dcache_read_memory_partial): New, based on the read bits of
7799 (dcache_update): Add status parameter. Use ULONGEST for len, and
7800 adjust. Discard cache lines if the reason for the update was
7802 * dcache.h (dcache_xfer_memory): Delete declaration.
7803 (dcache_read_memory_partial): New declaration.
7804 (dcache_update): Update prototype.
7805 * target.c (raw_memory_xfer_partial): Update the dcache here.
7806 (memory_xfer_partial_1): Don't handle dcache writes here.
7808 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7810 * remote-sim.c (gdbsim_load): Add const to prog.
7812 2014-03-03 Tom Tromey <tromey@redhat.com>
7814 * elfread.c (probe_key): Change to bfd_data.
7815 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7816 now per-BFD, not per-objfile.
7817 * stap-probe.c (stap_probe_destroy): Update comment.
7818 (handle_stap_probe): Allocate on the per-BFD obstack.
7820 2014-03-03 Tom Tromey <tromey@redhat.com>
7822 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7823 * breakpoint.c (create_longjmp_master_breakpoint): Use
7825 (add_location_to_breakpoint, bkpt_probe_insert_location)
7826 (bkpt_probe_remove_location): Update.
7827 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7828 * elfread.c (elf_symfile_relocate_probe): Remove.
7829 (elf_probe_fns): Update.
7830 (insert_exception_resume_breakpoint): Change type of "probe"
7831 parameter to bound_probe.
7832 (check_exception_resume): Update.
7833 * objfiles.c (objfile_relocate1): Don't relocate probes.
7834 * probe.c (bound_probe_s): New typedef.
7835 (parse_probes): Use get_probe_address. Set sal's objfile.
7836 (find_probe_by_pc): Return a bound_probe.
7837 (collect_probes): Return a VEC(bound_probe_s).
7838 (compare_probes): Update.
7839 (gen_ui_out_table_header_info): Change type of "probes"
7841 (info_probes_for_ops): Update.
7842 (get_probe_address): New function.
7843 (probe_safe_evaluate_at_pc): Update.
7844 * probe.h (struct probe_ops) <get_probe_address>: New field.
7845 <set_semaphore, clear_semaphore>: Add objfile parameter.
7846 (struct probe) <objfile>: Remove field.
7848 <address>: Update comment.
7849 (struct bound_probe): New.
7850 (find_probe_by_pc): Return a bound_probe.
7851 (get_probe_address): Declare.
7852 * solib-svr4.c (struct probe_and_action) <address>: New field.
7853 (hash_probe_and_action, equal_probe_and_action): Update.
7854 (register_solib_event_probe): Add address parameter.
7855 (solib_event_probe_at): Update.
7856 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7858 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7859 (stap_get_probe_address): New function.
7860 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7861 (compile_probe_arg): Update.
7862 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7864 (handle_stap_probe): Don't relocate the probe.
7865 (stap_relocate): Remove.
7866 (stap_gen_info_probes_table_values): Update.
7867 (stap_probe_ops): Remove stap_relocate.
7868 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7869 (debug_sym_probe_fns): Update.
7870 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7871 * symtab.c (init_sal): Use memset.
7872 * symtab.h (struct symtab_and_line) <objfile>: New field.
7873 * tracepoint.c (start_tracing, stop_tracing): Update.
7875 2014-03-03 Tom Tromey <tromey@redhat.com>
7877 * probe.h (parse_probes, find_probe_by_pc)
7878 (find_probes_in_objfile): Fix comments.
7880 2014-03-02 Doug Evans <xdje42@gmail.com>
7882 * infrun.c (handle_signal_stop): Replace test for
7883 TARGET_WAITKIND_STOPPED with an assert.
7885 2014-03-02 Doug Evans <xdje42@gmail.com>
7887 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7889 2014-03-02 Doug Evans <xdje42@gmail.com>
7891 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7893 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7895 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7897 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7899 * i386obsd-nat.c: Include "obsd-nat.h".
7900 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7902 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7904 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7906 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7908 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7910 * mips64obsd-nat.c: Include "obsd-nath".
7911 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7913 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7915 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7917 * amd64obsd-nat.c: Include "obsd-nat,h.
7918 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7920 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7922 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7924 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7925 (find_overload_match): Update call to find_oload_champ.
7926 (find_oload_champ_namespace_loop): Likewise
7928 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7930 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7932 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7933 * config/sparc/obsd64.mh: New file.
7934 * sparc64obsd-nat.c: New file.
7936 * obsd-nat.h: New file.
7937 * obsd-nat.c: New file.
7938 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7939 (ALLDEPFILES): Add obsd-nat.c.
7941 2014-02-28 Tom Tromey <tromey@redhat.com>
7943 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7944 * cli-out.h (cli_ui_out_impl): Now const.
7945 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7946 * ui-out.c (struct ui_out) <impl>: Now const.
7947 (default_ui_out_impl): Now const.
7948 (ui_out_new): Make 'impl' parameter const.
7949 * ui-out.h (ui_out_new): Update.
7951 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7953 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7955 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7957 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7959 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7961 Additional PR 8882 fix.
7962 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7964 2014-02-27 Pedro Alves <palves@redhat.com>
7966 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7969 2014-02-27 Pedro Alves <palves@redhat.com>
7972 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7973 * nat/linux-waitpid.c: Include string.h.
7974 (status_to_str): Moved here and made extern.
7975 * nat/linux-waitpid.h (status_to_str): New declaration.
7977 2014-02-27 Hui Zhu <hui@codesourcery.com>
7980 * infrun.c (ptid_match): Move ...
7981 * common/ptid.c (ptid_match): ... here.
7982 * inferior.h (ptid_match): Move ...
7983 * common/ptid.h (ptid_match): ... here.
7985 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7987 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7988 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7991 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7993 * obsd-tdep.c (obsd_auxv_parse): New function.
7994 (obsd_init_abi): Set auxv_parse.
7996 * gdbarch.sh (auxv_parse): New.
7997 * gdbarch.h: Regenerated.
7998 * gdbarch.c: Regenerated.
7999 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8001 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8003 * guile/scm-value.c (gdbscm_history_append_x): New function.
8004 (value_functions): Add it.
8006 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8008 * dwarf2read.c (attr_value_as_address): New function.
8009 (dwarf2_find_base_address, read_call_site_scope): Use
8010 attr_value_as_address in place of DW_ADDR.
8011 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8012 the low and high addresses. Slight rework of the handling
8013 of the high pc being a constant form, and limit it to
8014 DWARF verson 4 or higher.
8015 (dwarf2_record_block_ranges): Likewise.
8016 (read_partial_die): Likewise.
8017 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8019 2014-02-26 Tom Tromey <tromey@redhat.com>
8021 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8023 2014-02-26 Tom Tromey <tromey@redhat.com>
8025 * elfread.c (elf_read_minimal_symbols): Return early if
8026 minimal symbols have already been read. Add "ei" parameter.
8027 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8028 * minsyms.c (prim_record_minimal_symbol_full): Update.
8029 * objfiles.h (struct objstats) <n_minsyms>: Move...
8030 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8031 * symmisc.c (print_objfile_statistics): Update.
8033 2014-02-26 Tom Tromey <tromey@redhat.com>
8035 * elfread.c (elf_read_minimal_symbols): New function, from
8037 (elf_symfile_read): Call it.
8039 2014-02-26 Tom Tromey <tromey@redhat.com>
8041 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8042 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8043 (lookup_minimal_symbol_solib_trampoline)
8044 (lookup_minimal_symbol_by_pc_section_1)
8045 (lookup_minimal_symbol_and_objfile): Update.
8046 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8047 Don't allocate a minimal symbol if minsyms have already been read.
8048 (build_minimal_symbol_hash_tables): Update.
8049 (install_minimal_symbols): Do nothing if minsyms already read.
8050 Use the per-BFD obstack.
8051 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8052 * objfiles.c (allocate_objfile): Call
8053 terminate_minimal_symbol_table later.
8054 (have_minimal_symbols): Update.
8055 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8056 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8057 Move from struct objfile.
8058 <minsyms_read>: New field.
8059 (struct objfile) <msymbols, minimal_symbol_count,
8060 msymbol_hash, msymbol_demangled_hash>: Move.
8061 (ALL_OBJFILE_MSYMBOLS): Update.
8062 * symfile.c (read_symbols): Set minsyms_read.
8063 (reread_symbols): Update.
8064 * symmisc.c (dump_objfile, dump_msymbols): Update.
8066 2014-02-26 Tom Tromey <tromey@redhat.com>
8068 * minsyms.c (msymbols_sort): Remove.
8069 * minsyms.h (msymbols_sort): Remove.
8070 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8071 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8072 * elfread.c (elf_symtab_read): Don't add section offsets.
8073 * xcoffread.c (record_minimal_symbol): Don't add section offset
8074 to minimal symbol address.
8075 * somread.c (text_offset, data_offset): Remove.
8076 (som_symtab_read): Don't add section offsets to minimal symbol
8078 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8079 Don't add section offsets to minimal symbols.
8080 * coffread.c (coff_symtab_read): Don't add section offsets
8081 to minimal symbol addresses.
8082 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8083 to minimal symbol addresses.
8084 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8085 section offset to minimal symbol addresses.
8086 * mdebugread.c (parse_partial_symbols): Don't add section
8087 offset to minimal symbol addresses.
8088 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8089 offset to minimal symbol addresses.
8091 2014-02-26 Tom Tromey <tromey@redhat.com>
8093 * ada-lang.c (ada_main_name): Update.
8094 (ada_add_standard_exceptions): Update.
8095 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8096 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8097 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8098 * auxv.c (ld_so_xfer_auxv): Update.
8099 * avr-tdep.c (avr_scan_prologue): Update.
8100 * ax-gdb.c (gen_var_ref): Update.
8101 * blockframe.c (get_pc_function_start)
8102 (find_pc_partial_function_gnu_ifunc): Update.
8103 * breakpoint.c (create_overlay_event_breakpoint)
8104 (create_longjmp_master_breakpoint)
8105 (create_std_terminate_master_breakpoint)
8106 (create_exception_master_breakpoint): Update.
8107 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8108 * c-valprint.c (c_val_print): Update.
8109 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8110 * common/agent.c (agent_look_up_symbols): Update.
8111 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8112 * dwarf2loc.c (call_site_to_target_addr): Update.
8113 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8114 * elfread.c (elf_gnu_ifunc_record_cache)
8115 (elf_gnu_ifunc_resolve_by_got): Update.
8116 * findvar.c (default_read_var_value): Update.
8117 * frame.c (inside_main_func): Update.
8118 * frv-tdep.c (frv_frame_this_id): Update.
8119 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8120 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8122 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8123 (hppa_hpux_find_dummy_bpaddr): Update.
8124 * hppa-tdep.c (hppa_symbol_address): Update.
8125 * infcmd.c (until_next_command): Update.
8126 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8128 * linespec.c (minsym_found, add_minsym): Update.
8129 * linux-nat.c (get_signo): Update.
8130 * linux-thread-db.c (inferior_has_bug): Update.
8131 * m32c-tdep.c (m32c_return_value)
8132 (m32c_m16c_address_to_pointer): Update.
8133 * m32r-tdep.c (m32r_frame_this_id): Update.
8134 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8135 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8136 * maint.c (maintenance_translate_address): Update.
8137 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8138 (frob_address): New function.
8139 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8140 frob_address. Rename parameter to "pc_in".
8141 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8143 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8145 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8146 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8147 * objc-lang.c (find_objc_msgsend): Update.
8148 * objfiles.c (objfile_relocate1): Update.
8149 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8150 * p-valprint.c (pascal_val_print): Update.
8151 * parse.c (write_exp_msymbol): Update.
8152 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8153 (ppc_elfv2_skip_entrypoint): Update.
8154 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8155 * printcmd.c (build_address_symbolic, msym_info)
8156 (address_info): Update.
8157 * proc-service.c (ps_pglobal_lookup): Update.
8158 * psymtab.c (find_pc_sect_psymtab_closer)
8159 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8160 Change msymbol parameter to bound_minimal_symbol.
8161 * ravenscar-thread.c (get_running_thread_id): Update.
8162 * remote.c (remote_check_symbols): Update.
8163 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8165 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8166 * solib-dsbt.c (lm_base): Update.
8167 * solib-frv.c (lm_base, main_got): Update.
8168 * solib-irix.c (locate_base): Update.
8169 * solib-som.c (som_solib_create_inferior_hook)
8170 (link_map_start): Update.
8171 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8172 * solib-svr4.c (elf_locate_base, enable_break): Update.
8173 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8174 (flush_ea_cache): Update.
8175 * stabsread.c (define_symbol, scan_file_globals): Update.
8176 * stack.c (find_frame_funname): Update.
8177 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8178 (debug_qf_find_pc_sect_symtab): Update.
8179 * symfile.c (simple_read_overlay_table)
8180 (simple_overlay_update): Update.
8181 * symfile.h (struct quick_symbol_functions)
8182 <find_pc_sect_symtab>: Change type of msymbol to
8183 bound_minimal_symbol.
8184 * symmisc.c (dump_msymbols): Update.
8185 * symtab.c (find_pc_sect_symtab_via_partial)
8186 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8187 (search_symbols, print_msymbol_info): Update.
8188 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8189 (MSYMBOL_VALUE_ADDRESS): Redefine.
8190 (BMSYMBOL_VALUE_ADDRESS): New macro.
8191 * tracepoint.c (scope_info): Update.
8192 * tui/tui-disasm.c (tui_find_disassembly_address)
8193 (tui_get_begin_asm_address): Update.
8194 * valops.c (find_function_in_inferior): Update.
8195 * value.c (value_static_field, value_fn_field): Update.
8197 2014-02-26 Tom Tromey <tromey@redhat.com>
8199 * ada-lang.c (ada_update_initial_language): Update.
8200 (ada_main_name, ada_has_this_exception_support): Update.
8201 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8202 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8203 * arm-tdep.c (arm_skip_stub): Update.
8204 * auxv.c (ld_so_xfer_auxv): Update.
8205 * avr-tdep.c (avr_scan_prologue): Update.
8206 * ax-gdb.c (gen_var_ref): Update.
8207 * breakpoint.c (struct breakpoint_objfile_data)
8208 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8209 type to bound_minimal_symbol.
8210 (create_overlay_event_breakpoint)
8211 (create_longjmp_master_breakpoint)
8212 (create_std_terminate_master_breakpoint)
8213 (create_exception_master_breakpoint): Update.
8214 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8215 * c-exp.y (classify_name): Update.
8216 * coffread.c (coff_symfile_read): Update.
8217 * common/agent.c (agent_look_up_symbols): Update.
8218 * d-lang.c (d_main_name): Update.
8219 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8220 * dec-thread.c (enable_dec_thread): Update.
8221 * dwarf2loc.c (call_site_to_target_addr): Update.
8222 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8223 * eval.c (evaluate_subexp_standard): Update.
8224 * findvar.c (struct minsym_lookup_data) <result>: Change type
8225 to bound_minimal_symbol.
8227 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8228 * frame.c (inside_main_func): Update.
8229 * frv-tdep.c (frv_frame_this_id): Update.
8230 * gcore.c (call_target_sbrk): Update.
8231 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8232 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8234 * go-lang.c (go_main_name): Update.
8235 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8236 (hppa_hpux_find_import_stub_for_addr): Update.
8237 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8238 Update. Change return type.
8239 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8241 * jit.c (jit_breakpoint_re_set_internal): Update.
8242 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8244 * linux-nat.c (get_signo): Update.
8245 * linux-thread-db.c (inferior_has_bug): Update
8246 * m32c-tdep.c (m32c_return_value)
8247 (m32c_m16c_address_to_pointer): Update.
8248 * m32r-tdep.c (m32r_frame_this_id): Update.
8249 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8250 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8251 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8252 lookup_minimal_symbol. Change return type.
8253 (lookup_minimal_symbol): Remove.
8254 (lookup_bound_minimal_symbol): Update.
8255 (lookup_minimal_symbol_text): Change return type.
8256 (lookup_minimal_symbol_solib_trampoline): Change return type.
8257 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8258 (lookup_minimal_symbol_solib_trampoline): Change return type.
8259 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8260 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8261 (value_nsstring, find_imps): Update.
8262 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8263 * p-lang.c (pascal_main_name): Update.
8264 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8265 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8266 * proc-service.c (ps_pglobal_lookup): Update.
8267 * ravenscar-thread.c (get_running_thread_msymbol): Change
8269 (has_ravenscar_runtime, get_running_thread_id): Update.
8270 * remote.c (remote_check_symbols): Update.
8271 * sol-thread.c (ps_pglobal_lookup): Update.
8272 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8273 * solib-dsbt.c (lm_base): Update.
8274 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8276 * solib-irix.c (locate_base): Update.
8277 * solib-som.c (som_solib_create_inferior_hook)
8278 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8280 * solib-spu.c (spu_enable_break): Update.
8281 * solib-svr4.c (elf_locate_base, enable_break): Update.
8282 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8283 (flush_ea_cache): Update.
8284 * stabsread.c (define_symbol): Update.
8285 * symfile.c (simple_read_overlay_table): Update.
8286 * symtab.c (find_pc_sect_line): Update.
8287 * tracepoint.c (scope_info): Update.
8288 * tui-disasm.c (tui_get_begin_asm_address): Update.
8289 * value.c (value_static_field): Update.
8291 2014-02-26 Tom Tromey <tromey@redhat.com>
8293 * minsyms.c (prim_record_minimal_symbol_full): Use
8294 SET_MSYMBOL_VALUE_ADDRESS.
8295 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8296 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8297 SET_MSYMBOL_VALUE_ADDRESS.
8298 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8299 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8301 2014-02-26 Tom Tromey <tromey@redhat.com>
8303 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8304 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8305 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8306 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8307 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8308 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8309 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8310 * ada-lang.c (ada_main_name): Update.
8311 (ada_lookup_simple_minsym): Update.
8312 (ada_make_symbol_completion_list): Update.
8313 (ada_add_standard_exceptions): Update.
8314 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8315 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8316 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8317 * arm-tdep.c (skip_prologue_function): Update.
8318 (arm_skip_stack_protector, arm_skip_stub): Update.
8319 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8320 (arm_wince_skip_main_prologue): Update.
8321 * auxv.c (ld_so_xfer_auxv): Update.
8322 * avr-tdep.c (avr_scan_prologue): Update.
8323 * ax-gdb.c (gen_var_ref): Update.
8324 * block.c (call_site_for_pc): Update.
8325 * blockframe.c (get_pc_function_start): Update.
8326 (find_pc_partial_function_gnu_ifunc): Update.
8327 * breakpoint.c (create_overlay_event_breakpoint): Update.
8328 (create_longjmp_master_breakpoint): Update.
8329 (create_std_terminate_master_breakpoint): Update.
8330 (create_exception_master_breakpoint): Update.
8331 (resolve_sal_pc): Update.
8332 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8333 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8335 * c-valprint.c (c_val_print): Update.
8336 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8337 * coffread.c (coff_symfile_read): Update.
8338 * common/agent.c (agent_look_up_symbols): Update.
8339 * dbxread.c (find_stab_function_addr): Update.
8340 (end_psymtab): Update.
8341 * dwarf2loc.c (call_site_to_target_addr): Update.
8342 (func_verify_no_selftailcall): Update.
8343 (tailcall_dump): Update.
8344 (call_site_find_chain_1): Update.
8345 (dwarf_expr_reg_to_entry_parameter): Update.
8346 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8347 (elf_gnu_ifunc_resolve_by_got): Update.
8348 * f-valprint.c (info_common_command): Update.
8349 * findvar.c (read_var_value): Update.
8350 * frame.c (get_prev_frame_1): Update.
8351 (inside_main_func): Update.
8352 * frv-tdep.c (frv_skip_main_prologue): Update.
8353 (frv_frame_this_id): Update.
8354 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8356 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8357 (gnuv3_skip_trampoline): Update.
8358 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8359 (hppa64_hpux_in_solib_call_trampoline): Update.
8360 (hppa_hpux_skip_trampoline_code): Update.
8361 (hppa64_hpux_search_dummy_call_sequence): Update.
8362 (hppa_hpux_find_import_stub_for_addr): Update.
8363 (hppa_hpux_find_dummy_bpaddr): Update.
8364 * hppa-tdep.c (hppa_symbol_address)
8365 (hppa_lookup_stub_minimal_symbol): Update.
8366 * i386-tdep.c (i386_skip_main_prologue): Update.
8367 (i386_pe_skip_trampoline_code): Update.
8368 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8369 * infcall.c (get_function_name): Update.
8370 * infcmd.c (until_next_command): Update.
8371 * jit.c (jit_breakpoint_re_set_internal): Update.
8372 (jit_inferior_init): Update.
8373 * linespec.c (minsym_found): Update.
8374 (add_minsym): Update.
8375 * linux-fork.c (info_checkpoints_command): Update.
8376 * linux-nat.c (get_signo): Update.
8377 * linux-thread-db.c (inferior_has_bug): Update.
8378 * m32c-tdep.c (m32c_return_value): Update.
8379 (m32c_m16c_address_to_pointer): Update.
8380 (m32c_m16c_pointer_to_address): Update.
8381 * m32r-tdep.c (m32r_frame_this_id): Update.
8382 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8383 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8384 * maint.c (maintenance_translate_address): Update.
8385 * minsyms.c (add_minsym_to_hash_table): Update.
8386 (add_minsym_to_demangled_hash_table): Update.
8387 (msymbol_objfile): Update.
8388 (lookup_minimal_symbol): Update.
8389 (iterate_over_minimal_symbols): Update.
8390 (lookup_minimal_symbol_text): Update.
8391 (lookup_minimal_symbol_by_pc_name): Update.
8392 (lookup_minimal_symbol_solib_trampoline): Update.
8393 (lookup_minimal_symbol_by_pc_section_1): Update.
8394 (lookup_minimal_symbol_and_objfile): Update.
8395 (prim_record_minimal_symbol_full): Update.
8396 (compare_minimal_symbols): Update.
8397 (compact_minimal_symbols): Update.
8398 (build_minimal_symbol_hash_tables): Update.
8399 (install_minimal_symbols): Update.
8400 (terminate_minimal_symbol_table): Update.
8401 (find_solib_trampoline_target): Update.
8402 (minimal_symbol_upper_bound): Update.
8403 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8404 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8405 (mips_skip_pic_trampoline_code): Update.
8406 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8407 * objc-lang.c (selectors_info): Update.
8408 (classes_info): Update.
8409 (find_methods): Update.
8410 (find_imps): Update.
8411 (find_objc_msgsend): Update.
8412 * objfiles.c (objfile_relocate1): Update.
8413 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8414 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8415 * p-valprint.c (pascal_val_print): Update.
8416 * parse.c (write_exp_msymbol): Update.
8417 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8418 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8419 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8420 * printcmd.c (build_address_symbolic): Update.
8422 (address_info): Update.
8423 * proc-service.c (ps_pglobal_lookup): Update.
8424 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8425 (find_pc_sect_psymtab): Update.
8426 * python/py-framefilter.c (py_print_frame): Update.
8427 * ravenscar-thread.c (get_running_thread_id): Update.
8428 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8430 * remote.c (remote_check_symbols): Update.
8431 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8432 (rs6000_skip_trampoline_code): Update.
8433 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8434 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8435 * solib-dsbt.c (lm_base): Update.
8436 * solib-frv.c (lm_base): Update.
8438 * solib-irix.c (locate_base): Update.
8439 * solib-som.c (som_solib_create_inferior_hook): Update.
8440 (som_solib_desire_dynamic_linker_symbols): Update.
8441 (link_map_start): Update.
8442 * solib-spu.c (spu_enable_break): Update.
8443 (ocl_enable_break): Update.
8444 * solib-svr4.c (elf_locate_base): Update.
8445 (enable_break): Update.
8446 * spu-tdep.c (spu_get_overlay_table): Update.
8447 (spu_catch_start): Update.
8448 (flush_ea_cache): Update.
8449 * stabsread.c (define_symbol): Update.
8450 (scan_file_globals): Update.
8451 * stack.c (find_frame_funname): Update.
8452 (frame_info): Update.
8453 * symfile.c (simple_read_overlay_table): Update.
8454 (simple_overlay_update): Update.
8455 * symmisc.c (dump_msymbols): Update.
8456 * symtab.c (fixup_section): Update.
8457 (find_pc_sect_line): Update.
8458 (skip_prologue_sal): Update.
8459 (search_symbols): Update.
8460 (print_msymbol_info): Update.
8461 (rbreak_command): Update.
8462 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8463 (completion_list_objc_symbol): Update.
8464 (default_make_symbol_completion_list_break_on): Update.
8465 * tracepoint.c (scope_info): Update.
8466 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8467 (tui_get_begin_asm_address): Update.
8468 * valops.c (find_function_in_inferior): Update.
8469 * value.c (value_static_field): Update.
8470 (value_fn_field): Update.
8472 2014-02-26 Tom Tromey <tromey@redhat.com>
8474 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8475 bound minimal symbols. Move code that knows about minsym
8477 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8479 * minsyms.h (minimal_symbol_upper_bound): Declare.
8480 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8481 minimal_symbol_upper_bound.
8483 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8485 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8486 Use the type's name if its basic type does not have a tag.
8488 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8490 * dwarf2read.c (read_subrange_type): Add comment.
8492 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8494 * dwarf2read.c (update_enumeration_type_from_children): New
8495 function, mostly extracted from process_structure_scope.
8496 (read_enumeration_type): Call update_enumeration_type_from_children.
8497 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8498 and flag_flag_enum fields.
8500 2014-02-26 Pedro Alves <palves@redhat.com>
8502 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8503 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8504 to_xfer_partial method.
8506 2014-02-26 Pedro Alves <palves@redhat.com>
8508 * target.c (complete_target_initialization): Don't install
8509 default_xfer_partial as to_xfer_partial hook.
8511 (update_current_target): Don't INHERIT nor de_fault
8512 deprecated_xfer_memory. Delete de_fault macro.
8513 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8514 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8515 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8518 2014-02-26 Pedro Alves <palves@redhat.com>
8520 * go32-nat.c (my_write_child): New function.
8521 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8522 (go32_xfer_partial): New function.
8523 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8524 Instead install a to_xfer_partial hook.
8526 2014-02-26 Pedro Alves <palves@redhat.com>
8528 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8529 to_xfer_partial helper. Rewrite.
8530 (procfs_xfer_partial): New function.
8531 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8532 Install a to_xfer_partial hook.
8534 2014-02-26 Pedro Alves <palves@redhat.com>
8536 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8537 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8538 (m32r_xfer_partial): New function.
8539 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8540 Install a to_xfer_partial hook.
8542 2014-02-26 Pedro Alves <palves@redhat.com>
8544 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8546 (mips_xfer_partial): New function.
8547 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8548 hook. Install a to_xfer_partial hook.
8550 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8552 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8553 * gdbtypes.c (create_array_type_with_stride): New function,
8554 renaming create_array_type, but with an added parameter
8555 called "bit_stride".
8556 (create_array_type): Re-implement using
8557 create_array_type_with_stride.
8558 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8559 and DW_AT_bit_stride attributes.
8561 2014-02-26 Pedro Alves <palves@redhat.com>
8563 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8564 task-specific breakpoints.
8566 2014-02-25 Pedro Alves <palves@redhat.com>
8568 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8569 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8571 2014-02-25 Stan Shebs <stan@codesourcery.com>
8573 * defs.h: Annotate comments for Doxygen.
8575 2014-02-25 Tom Tromey <tromey@redhat.com>
8577 * target.h (target_ignore): Don't declare.
8578 * target.c (target_ignore): Remove.
8580 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8583 * auto-load.c (auto_load_objfile_script_1): Change filename to
8586 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8588 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8589 documentation. Adjust prototype to match the target_ops
8590 to_xfer_partial method. Adjust implementation accordingly.
8592 2014-02-25 Hui Zhu <hui@codesourcery.com>
8594 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8597 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8599 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8600 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8601 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8602 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8603 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8604 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8605 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8606 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8608 (rl78_register_type): Use a data pointer type for SP and
8609 new pseudo registers mentioned above. Use a 16 bit integer
8610 type for all other register pairs.
8611 (rl78_register_name, rl78_g10_register_name): Update for
8612 new pseudo registers.
8613 (rl78_pseudo_register_read): Likewise.
8614 (rl78_pseudo_register_write): Likewise.
8615 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8616 to the newly added pseudo registers.
8618 2014-02-24 Doug Evans <dje@google.com>
8620 * value.c (record_latest_value): Fix comment.
8621 * printcmd.c (print_command_1): Remove code to handle -1 return from
8622 record_latest_value.
8624 2014-02-24 Pedro Alves <palves@redhat.com>
8626 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8627 deprecated_xfer_memory hook.
8628 (procfs_xfer_partial): Call procfs_xfer_memory instead
8629 of the deprecated_xfer_memory target hook.
8630 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8633 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8635 * windows-nat.c (windows_xfer_shared_libraries): Return
8636 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8637 requested object is TARGET_OBJECT_LIBRARIES.
8639 2014-02-24 Yao Qi <yao@codesourcery.com>
8641 * target.h (enum target_xfer_status)
8642 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8643 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8645 * corefile.c (memory_error_message): User updated.
8646 * exec.c (section_table_read_available_memory): Likewise.
8647 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8648 * target.c (target_xfer_status_to_string): Likewise.
8649 (raw_memory_xfer_partial): Likewise.
8650 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8651 * valops.c (read_value_memory): Likewise.
8652 * exec.h: Update comments.
8654 2014-02-24 Yao Qi <yao@codesourcery.com>
8656 * target.c (target_xfer_status_to_string): Rename argument err
8658 * target.h (target_xfer_status_to_string): Update declaration.
8659 Replace target_xfer_error_to_string with
8660 target_xfer_status_to_string in comment.
8662 2014-02-24 Yao Qi <yao@codesourcery.com>
8664 * mips-linux-nat.c (super_close): Update its type.
8665 (mips_linux_close): Pass 'self' to super_close.
8667 2014-02-24 Yao Qi <yao@codesourcery.com>
8669 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8670 * corefile.c (read_memory): Adjusted.
8671 * target.c (target_write_with_progress): Adjusted.
8673 2014-02-23 Yao Qi <yao@codesourcery.com>
8677 2013-10-25 Yao Qi <yao@codesourcery.com>
8679 * remote.c (remote_traceframe_info): Return early if
8680 traceframe is not selected.
8682 2013-07-19 Yao Qi <yao@codesourcery.com>
8684 * target.c (update_current_target): Change the default action
8685 of 'to_traceframe_info' from tcomplain to return_zero.
8686 * target.h (struct target_ops) <to_traceframe_info>: Add more
8689 2014-02-23 Yao Qi <yao@codesourcery.com>
8691 * valops.c (read_value_memory): Rewrite it. Call
8692 target_xfer_partial in a loop.
8693 * exec.h (section_table_available_memory): Remove declaration.
8694 Move comments to ...
8695 * exec.c (section_table_available_memory): ... here. Make it
8698 2014-02-23 Yao Qi <yao@codesourcery.com>
8700 * exec.c (section_table_read_available_memory): New function.
8701 * exec.h (section_table_read_available_memory): Declare.
8702 * ctf.c (ctf_xfer_partial): Call
8703 section_table_read_available_memory.
8704 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8706 2014-02-23 Yao Qi <yao@codesourcery.com>
8708 * ctf.c (ctf_xfer_partial): Move code to ...
8709 * exec.c (exec_read_partial_read_only): ... it. New function.
8710 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8711 * tracefile.c: Include "exec.h".
8712 * exec.h (exec_read_partial_read_only): Declare.
8714 2014-02-23 Yao Qi <yao@codesourcery.com>
8716 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8717 (tfile_has_memory): Remove.
8718 (init_tfile_ops): Don't set fields to_has_all_memory and
8719 to_has_memory of tfile_ops.
8720 * tracefile.c (tracefile_has_all_memory): New function.
8721 (tracefile_has_memory): New function.
8722 (init_tracefile_ops): Initialize fields to_has_all_memory and
8723 to_has_memory of 'ops'.
8725 2014-02-23 Yao Qi <yao@codesourcery.com>
8727 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8728 (ctf_thread_alive, ctf_get_trace_status): Remove.
8729 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8731 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8732 (tfile_has_stack, tfile_has_registers): Remove.
8733 (tfile_thread_alive): Remove.
8734 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8736 * tracefile.c (tracefile_has_stack): New function.
8737 (tracefile_has_registers): New function.
8738 (tracefile_thread_alive): New function.
8739 (tracefile_get_trace_status): New function.
8740 (init_tracefile_ops): New function.
8741 * tracefile.h (init_tracefile_ops): Declare.
8743 2014-02-23 Yao Qi <yao@codesourcery.com>
8745 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8746 (O_LARGEFILE): Likewise.
8747 (tfile_ops): Likewise.
8748 (TRACE_HEADER_SIZE): Likewise.
8749 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8750 (cur_data_size): Likewise.
8751 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8752 (tfile_close, tfile_files_info): Likewise.
8753 (tfile_get_trace_status): Likewise.
8754 (tfile_get_tracepoint_status): Likewise.
8755 (tfile_get_traceframe_address): Likewise.
8756 (tfile_trace_find, match_blocktype): Likewise.
8757 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8758 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8759 (tfile_get_trace_state_variable_value): Likewise.
8760 (tfile_has_all_memory, tfile_has_memory): Likewise.
8761 (tfile_has_stack, tfile_has_registers): Likewise.
8762 (tfile_thread_alive, build_traceframe_info): Likewise.
8763 (tfile_traceframe_info, init_tfile_ops): Likewise.
8764 (_initialize_tracepoint): Don't call init_tfile_ops
8765 and add_target_with_completer.
8766 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8767 exec.h, completer.h and filenames.h.
8768 (_initialize_tracefile_tfile): New function.
8770 2014-02-23 Yao Qi <yao@codesourcery.com>
8772 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8774 (HFILES_NO_SRCDIR): Add tracefile.h.
8775 * ctf.c: Include "tracefile.h".
8776 * tracefile.h: New file.
8777 * tracefile.c: New file
8778 * tracefile-tfile.c: New file.
8779 * tracepoint.c: Include "tracefile.h".
8780 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8781 (stop_reason_names): Add const.
8782 (trace_file_writer_xfree): Move it to tracefile.c.
8783 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8784 (trace_save_ctf): Likewise.
8785 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8786 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8787 (tfile_write_header, tfile_write_regblock_type): Likewise.
8788 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8789 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8790 (tfile_write_raw_data, tfile_end): Likewise.
8791 (tfile_trace_file_writer_new): Likewise.
8792 (free_uploaded_tp): Make it extern.
8793 (free_uploaded_tsv): Make it extern.
8794 (_initialize_tracepoint): Move code to register command 'tsave'
8796 * tracepoint.h (stop_reason_names): Declare.
8797 (struct trace_frame_write_ops): Move it to tracefile.h.
8798 (struct trace_file_write_ops): Likewise.
8799 (struct trace_file_writer): Likewise.
8800 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8802 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8805 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8807 (get_cores_used_by_process): New parameter num_cores, use it.
8808 (linux_xfer_osdata_processes): Pass num_cores to it.
8809 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8812 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8814 * target.c (memory_xfer_partial): Fix length arg in call to
8815 breakpoint_xfer_memory.
8817 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8820 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8821 number comes after the + or - signs. Adjust length of register
8822 name to be extracted.
8824 2014-02-20 Tom Tromey <tromey@redhat.com>
8826 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8827 (ada_varobj_ops): Mark "extern".
8829 2014-02-20 Tom Tromey <tromey@redhat.com>
8831 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8833 2014-02-20 Doug Evans <xdje42@gmail.com>
8835 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8836 All callers updated.
8837 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8838 All callers updated.
8839 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8840 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8842 2014-02-20 lin zuojian <manjian2006@gmail.com>
8843 Joel Brobecker <brobecker@adacore.com>
8844 Doug Evans <xdje42@gmail.com>
8847 * dwarf2read.c (struct die_info): New member in_process.
8848 (reset_die_in_process): New function.
8849 (process_die): Set it at the start, reset when returning.
8850 (inherit_abstract_dies): Only call process_die if origin_child_die
8851 not already being processed.
8853 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8855 * windows-nat.c (handle_unload_dll): Add function documentation.
8856 (do_initial_windows_stuff): Add comment explaining why we wait
8857 until after inferior initialization has finished before
8858 processing all DLLs.
8860 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8862 * windows-nat.c (get_module_name): Delete.
8863 (windows_get_exec_module_filename): New function, mostly
8864 inspired from get_module_name.
8865 (windows_pid_to_exec_file): Replace call to get_module_name
8866 by call to windows_get_exec_module_filename.
8868 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8870 * windows-nat.c (handle_load_dll): Rewrite this function's
8871 introductory comment. Remove code using get_module_name
8872 to get the DLL's name.
8874 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8876 * windows-nat.c (get_windows_debug_event): Ignore
8877 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8878 if windows_initialization_done == 0.
8879 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8880 Adjust implementation to always load all DLLs.
8881 (do_initial_windows_stuff): Replace call to
8882 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8884 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8886 * windows-nat.c (_initialize_windows_nat): Deprecate the
8887 "dll-symbols" command. Turn the "add-shared-symbol-files"
8888 and "assf" aliases into commands, and deprecate them as well.
8889 * NEWS: Add entry explaining that "dll-symbols" and its two
8890 aliases are now deprecated.
8892 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8894 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8895 new-line in debug string. Remove trailing spaces.
8897 2014-02-19 Stan Shebs <stan@codesourcery.com>
8899 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8901 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8903 * NEWS: Add entry for the new feature
8904 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8907 2014-02-19 Stan Shebs <stan@codesourcery.com>
8909 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8911 2014-02-19 Pedro Alves <palves@redhat.com>
8913 * common/ptid.h (struct ptid): Mention that process_stratum
8914 targets should prefer ptid.lwp.
8916 2014-02-19 Pedro Alves <palves@redhat.com>
8918 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8919 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8920 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8921 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8922 store remote thread ids rather than ptid.tid.
8923 (_initialize_remote): Adjust.
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8927 * target.c (target_get_unwinder): Rewrite.
8928 (target_get_tailcall_unwinder): Rewrite.
8929 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8930 (record_btrace_to_get_tailcall_unwinder): New function.
8931 (init_record_btrace_ops): Update.
8932 * target.h (struct target_ops) <to_get_unwinder,
8933 to_get_tailcall_unwinder>: Now function pointers. Use
8934 TARGET_DEFAULT_RETURN.
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8938 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8940 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8946 * target-delegates.c: Rebuild.
8947 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8948 TARGET_DEFAULT_FUNC.
8949 * target.c (default_target_decr_pc_after_break): Rename from
8950 forward_target_decr_pc_after_break. Simplify.
8951 (target_decr_pc_after_break): Rely on delegation.
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8955 * target.c (update_current_target): Do not INHERIT to_doc or
8956 to_magic. Do not de_fault to_open or to_close.
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * gcore.h (objfile_find_memory_regions): Declare.
8961 * gcore.c (objfile_find_memory_regions): No longer static. Add
8963 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8964 * exec.c: Include gcore.h.
8965 (exec_set_find_memory_regions): Remove.
8966 (exec_find_memory_regions): Remove.
8967 (exec_do_find_memory_regions): Remove.
8968 (init_exec_ops): Update.
8969 * defs.h (exec_set_find_memory_regions): Remove.
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8973 * target-delegates.c: Rebuild.
8974 * target.h (struct target_ops) <to_extra_thread_info,
8975 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8976 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8977 not 0, in TARGET_DEFAULT_RETURN.
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * target.c (complete_target_initialization): Remove casts. Use
8982 return_zero_has_execution.
8983 (return_zero): Add "ignore" argument.
8984 (return_zero_has_execution): New function.
8985 (init_dummy_target): Remove casts. Use
8986 return_zero_has_execution.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target.c (update_current_target): Update comments. Do not
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8995 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8997 * corelow.c (core_read_description): Delegate when needed.
8998 * remote.c (remote_read_description): Delegate when needed.
8999 * target-delegates.c: Rebuild.
9000 * target.c (target_read_description): Rewrite.
9001 * target.h (struct target_ops) <to_read_description>: Update
9002 comment. Use TARGET_DEFAULT_RETURN.
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't inherit or default
9009 (find_default_run_target): Check against delegate_can_run.
9010 * target.h (struct target_ops) <to_can_run>: Use
9011 TARGET_DEFAULT_RETURN.
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9015 * target-delegates.c: Rebuild.
9016 * target.c (target_disconnect): Unconditionally delegate.
9017 * target.h (struct target_ops) <to_disconnect>: Use
9018 TARGET_DEFAULT_NORETURN.
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9022 * record.c (record_stop): Unconditionally delegate.
9023 * target-delegates.c: Rebuild.
9024 * target.c (target_stop_recording): Unconditionally delegate.
9025 * target.h (struct target_ops) <to_stop_recording>: Use
9026 TARGET_DEFAULT_IGNORE.
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * target-delegates.c: Rebuild.
9031 * target.c (target_enable_btrace): Unconditionally delegate.
9032 * target.h (struct target_ops) <to_enable_btrace>: Use
9033 TARGET_DEFAULT_NORETURN.
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9037 * target-delegates.c: Rebuild.
9038 * target.c (target_read_btrace): Unconditionally delegate.
9039 * target.h (struct target_ops) <to_read_btrace>: Use
9040 TARGET_DEFAULT_NORETURN.
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target-delegates.c: Rebuild.
9045 * target.c (target_teardown_btrace): Unconditionally delegate.
9046 * target.h (struct target_ops) <to_teardown_btrace>: Use
9047 TARGET_DEFAULT_NORETURN.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target-delegates.c: Rebuild.
9052 * target.c (target_disable_btrace): Unconditionally delegate.
9053 * target.h (struct target_ops) <to_disable_btrace>: Use
9054 TARGET_DEFAULT_NORETURN.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target-delegates.c: Rebuild.
9059 * target.c (default_search_memory): New function.
9060 (simple_search_memory): Update comment.
9061 (target_search_memory): Unconditionally delegate.
9062 * target.h (struct target_ops) <to_search_memory>: Use
9063 TARGET_DEFAULT_FUNC.
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * auxv.c (default_auxv_parse): No longer static.
9068 (target_auxv_parse): Unconditionally delegate.
9069 * auxv.h (default_auxv_parse): Declare.
9070 * target-delegates.c: Rebuild.
9071 * target.c: Include auxv.h.
9072 * target.h (struct target_ops) <to_auxv_parse>: Use
9073 TARGET_DEFAULT_FUNC.
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9077 * target-delegates.c: Rebuild.
9078 * target.c (target_memory_map): Unconditionally delegate.
9079 * target.h (struct target_ops) <to_memory_map>: Use
9080 TARGET_DEFAULT_RETURN.
9082 2014-02-19 Tom Tromey <tromey@redhat.com>
9084 * target-delegates.c: Rebuild.
9085 * target.c (target_thread_alive): Unconditionally delegate.
9086 * target.h (struct target_ops) <to_thread_alive>: Use
9087 TARGET_DEFAULT_RETURN.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target-delegates.c: Rebuild.
9092 * target.c (target_save_record): Unconditionally delegate.
9093 * target.h (struct target_ops) <to_save_record>: Use
9094 TARGET_DEFAULT_NORETURN.
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9098 * target-delegates.c: Rebuild.
9099 * target.c (target_delete_record): Unconditionally delegate.
9100 * target.h (struct target_ops) <to_delete_record>: Use
9101 TARGET_DEFAULT_NORETURN.
9103 2014-02-19 Tom Tromey <tromey@redhat.com>
9105 * target-delegates.c: Rebuild.
9106 * target.c (target_record_is_replaying): Unconditionally
9108 * target.h (struct target_ops) <to_record_is_replaying>: Use
9109 TARGET_DEFAULT_RETURN.
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * target-delegates.c: Rebuild.
9114 * target.c (target_goto_record_begin): Unconditionally delegate.
9115 * target.h (struct target_ops) <to_goto_record_begin>: Use
9116 TARGET_DEFAULT_NORETURN.
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9120 * target-delegates.c: Rebuild.
9121 * target.c (target_goto_record_end): Unconditionally delegate.
9122 * target.h (struct target_ops) <to_goto_record_end>: Use
9123 TARGET_DEFAULT_NORETURN.
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9127 * target-delegates.c: Rebuild.
9128 * target.c (target_goto_record): Unconditionally delegate.
9129 * target.h (struct target_ops) <to_goto_record>: Use
9130 TARGET_DEFAULT_NORETURN.
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9134 * target-delegates.c: Rebuild.
9135 * target.c (target_insn_history): Unconditionally delegate.
9136 * target.h (struct target_ops) <to_insn_history>: Use
9137 TARGET_DEFAULT_NORETURN.
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9141 * target-delegates.c: Rebuild.
9142 * target.c (target_insn_history_from): Unconditionally delegate.
9143 * target.h (struct target_ops) <to_insn_history_from>: Use
9144 TARGET_DEFAULT_NORETURN.
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * target-delegates.c: Rebuild.
9149 * target.c (target_insn_history_range): Unconditionally delegate.
9150 * target.h (struct target_ops) <to_insn_history_range>: Use
9151 TARGET_DEFAULT_NORETURN.
9153 2014-02-19 Tom Tromey <tromey@redhat.com>
9155 * target-delegates.c: Rebuild.
9156 * target.c (target_call_history): Unconditionally delegate.
9157 * target.h (struct target_ops) <to_call_history>: Use
9158 TARGET_DEFAULT_NORETURN.
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9162 * target-delegates.c: Rebuild.
9163 * target.c (target_call_history_from): Unconditionally delegate.
9164 * target.h (struct target_ops) <to_call_history_from>: Use
9165 TARGET_DEFAULT_NORETURN.
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * target-delegates.c: Rebuild.
9170 * target.c (target_call_history_range): Unconditionally delegate.
9171 * target.h (struct target_ops) <to_call_history_range>: Use
9172 TARGET_DEFAULT_NORETURN.
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9176 * target-delegates.c: Rebuild.
9177 * target.c (target_verify_memory): Unconditionally delegate.
9178 * target.h (struct target_ops) <to_verify_memory>: Use
9179 TARGET_DEFAULT_NORETURN.
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9183 * target-delegates.c: Rebuild.
9184 * target.c (target_core_of_thread): Unconditionally delegate.
9185 * target.h (struct target_ops) <to_core_of_thread>: Use
9186 TARGET_DEFAULT_RETURN.
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9190 * target-delegates.c: Rebuild.
9191 * target.c (target_flash_done): Unconditionally delegate.
9192 * target.h (struct target_ops) <to_flash_done>: Use
9193 TARGET_DEFAULT_NORETURN.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target-delegates.c: Rebuild.
9198 * target.c (target_flash_erase): Unconditionally delegate.
9199 * target.h (struct target_ops) <to_flash_erase>: Use
9200 TARGET_DEFAULT_NORETURN.
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9204 * target-delegates.c: Rebuild.
9205 * target.c (target_get_section_table): Unconditionally delegate.
9206 * target.h (struct target_ops) <to_get_section_table>: Use
9207 TARGET_DEFAULT_RETURN.
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9211 * target-delegates.c: Rebuild.
9212 * target.c (target_pid_to_str): Unconditionally delegate.
9213 (init_dummy_target): Don't initialize to_pid_to_str.
9214 (default_pid_to_str): Rename from dummy_pid_to_str.
9215 * target.h (struct target_ops) <to_pid_to_str>: Use
9216 TARGET_DEFAULT_FUNC.
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9220 * target-delegates.c: Rebuild.
9221 * target.c (target_find_new_threads): Unconditionally delegate.
9222 * target.h (struct target_ops) <to_find_new_threads>: Use
9223 TARGET_DEFAULT_RETURN.
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target-delegates.c: Rebuild.
9228 * target.c (target_program_signals): Unconditionally delegate.
9229 * target.h (struct target_ops) <to_program_signals>: Use
9230 TARGET_DEFAULT_IGNORE.
9232 2014-02-19 Tom Tromey <tromey@redhat.com>
9234 * target-delegates.c: Rebuild.
9235 * target.c (target_pass_signals): Unconditionally delegate.
9236 * target.h (struct target_ops) <to_pass_signals>: Use
9237 TARGET_DEFAULT_IGNORE.
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9241 * target-delegates.c: Rebuild.
9242 * target.c (default_mourn_inferior): New function.
9243 (target_mourn_inferior): Unconditionally delegate.
9244 * target.h (struct target_ops) <to_mourn_inferior>: Use
9245 TARGET_DEFAULT_FUNC.
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9249 * target-delegates.c: Rebuild.
9250 * target.c (default_follow_fork): New function.
9251 (target_follow_fork): Unconditionally delegate.
9252 * target.h (struct target_ops) <to_follow_fork>: Use
9253 TARGET_DEFAULT_FUNC.
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9257 * target-delegates.c: Rebuild.
9258 * target.c (target_kill): Unconditionally delegate.
9259 * target.h (struct target_ops) <to_kill>: Use
9260 TARGET_DEFAULT_NORETURN.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_masked_watch_num_registers): Unconditionally
9267 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9268 Use TARGET_DEFAULT_RETURN.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * target-delegates.c: Rebuild.
9273 * target.c (target_remove_mask_watchpoint): Unconditionally
9275 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9276 TARGET_DEFAULT_RETURN.
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target-delegates.c: Rebuild.
9281 * target.c (target_insert_mask_watchpoint): Unconditionally
9283 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9284 TARGET_DEFAULT_RETURN.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target-delegates.c: Rebuild.
9289 * target.c (target_ranged_break_num_registers): Unconditionally
9291 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9292 Use TARGET_DEFAULT_RETURN.
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9296 * target-delegates.c: Rebuild.
9297 * target.c (target_fetch_registers): Unconditionally delegate.
9298 * target.h (struct target_ops) <to_fetch_registers>: Use
9299 TARGET_DEFAULT_NORETURN.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9306 * target.h (struct target_ops) <to_stop>: Use
9307 TARGET_DEFAULT_IGNORE.
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * target-delegates.c: Rebuild.
9312 * target.c (update_current_target): Don't inherit or default
9313 to_can_run_breakpoint_commands.
9314 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9315 Use TARGET_DEFAULT_RETURN.
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_supports_evaluation_of_breakpoint_conditions.
9322 * target.h (struct target_ops)
9323 <to_supports_evaluation_of_breakpoint_conditions>: Use
9324 TARGET_DEFAULT_RETURN.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target-delegates.c: Rebuild.
9329 * target.c (update_current_target): Don't inherit or default
9330 to_augmented_libraries_svr4_read.
9331 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9332 Use TARGET_DEFAULT_RETURN.
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9336 * target-delegates.c: Rebuild.
9337 * target.c (update_current_target): Don't inherit or default
9339 * target.h (struct target_ops) <to_can_use_agent>: Use
9340 TARGET_DEFAULT_RETURN.
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target-delegates.c: Rebuild.
9345 * target.c (update_current_target): Don't inherit or default
9347 * target.h (struct target_ops) <to_use_agent>: Use
9348 TARGET_DEFAULT_NORETURN.
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9352 * target-delegates.c: Rebuild.
9353 * target.c (update_current_target): Don't inherit or default
9355 (return_null): Remove.
9356 * target.h (struct target_ops) <to_traceframe_info>: Use
9357 TARGET_DEFAULT_RETURN.
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target-delegates.c: Rebuild.
9362 * target.c (update_current_target): Don't inherit or default
9363 to_static_tracepoint_markers_by_strid.
9364 * target.h (struct target_ops)
9365 <to_static_tracepoint_markers_by_strid>: Use
9366 TARGET_DEFAULT_NORETURN.
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target-delegates.c: Rebuild.
9371 * target.c (update_current_target): Don't inherit or default
9372 to_static_tracepoint_marker_at.
9373 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9374 Use TARGET_DEFAULT_RETURN.
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9378 * target-delegates.c: Rebuild.
9379 * target.c (update_current_target): Don't inherit or default
9381 * target.h (struct target_ops) <to_set_permissions>: Use
9382 TARGET_DEFAULT_IGNORE.
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9386 * target-delegates.c: Rebuild.
9387 * target.c (update_current_target): Don't inherit or default
9389 * target.h (struct target_ops) <to_get_tib_address>: Use
9390 TARGET_DEFAULT_NORETURN.
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9394 * target-delegates.c: Rebuild.
9395 * target.c (update_current_target): Don't inherit or default
9397 * target.h (struct target_ops) <to_set_trace_notes>: Use
9398 TARGET_DEFAULT_RETURN.
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9402 * target-delegates.c: Rebuild.
9403 * target.c (update_current_target): Don't initialize
9404 to_set_trace_buffer_size.
9405 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9406 TARGET_DEFAULT_IGNORE.
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target-delegates.c: Rebuild.
9411 * target.c (update_current_target): Don't inherit or default
9412 to_set_circular_trace_buffer.
9413 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9414 TARGET_DEFAULT_IGNORE.
9416 2014-02-19 Tom Tromey <tromey@redhat.com>
9418 * target-delegates.c: Rebuild.
9419 * target.c (update_current_target): Don't inherit or default
9420 to_set_disconnected_tracing.
9421 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9422 TARGET_DEFAULT_IGNORE.
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9426 * target-delegates.c: Rebuild.
9427 * target.c (update_current_target): Don't inherit or default
9428 to_get_min_fast_tracepoint_insn_len.
9429 (return_minus_one): Remove.
9430 * target.h (struct target_ops)
9431 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9435 * target-delegates.c: Rebuild.
9436 * target.c (update_current_target): Don't inherit or default
9437 to_get_raw_trace_data.
9438 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9439 TARGET_DEFAULT_NORETURN.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target-delegates.c: Rebuild.
9444 * target.c (update_current_target): Don't inherit or default
9445 to_upload_trace_state_variables.
9446 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9447 Use TARGET_DEFAULT_RETURN.
9449 2014-02-19 Tom Tromey <tromey@redhat.com>
9451 * target-delegates.c: Rebuild.
9452 * target.c (update_current_target): Don't inherit or default
9453 to_upload_tracepoints.
9454 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9455 TARGET_DEFAULT_RETURN.
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9459 * target-delegates.c: Rebuild.
9460 * target.c (update_current_target): Don't inherit or default
9462 * target.h (struct target_ops) <to_save_trace_data>: Use
9463 TARGET_DEFAULT_NORETURN.
9465 2014-02-19 Tom Tromey <tromey@redhat.com>
9467 * target-delegates.c: Rebuild.
9468 * target.c (update_current_target): Don't inherit or default
9469 to_get_trace_state_variable_value.
9470 * target.h (struct target_ops)
9471 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9475 * target-delegates.c: Rebuild.
9476 * target.c (update_current_target): Don't inherit or default
9478 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9482 * target-delegates.c: Rebuild.
9483 * target.c (update_current_target): Don't inherit or default
9485 * target.h (struct target_ops) <to_trace_stop>: Use
9486 TARGET_DEFAULT_NORETURN.
9488 2014-02-19 Tom Tromey <tromey@redhat.com>
9490 * target-delegates.c: Rebuild.
9491 * target.c (update_current_target): Don't inherit or default
9492 to_get_tracepoint_status.
9493 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9494 TARGET_DEFAULT_NORETURN.
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target-delegates.c: Rebuild.
9499 * target.c (update_current_target): Don't inherit or default
9500 to_get_trace_status.
9501 * target.h (struct target_ops) <to_get_trace_status>: Use
9502 TARGET_DEFAULT_RETURN.
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9509 * target.h (struct target_ops) <to_trace_start>: Use
9510 TARGET_DEFAULT_NORETURN.
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_trace_set_readonly_regions.
9517 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9518 Use TARGET_DEFAULT_NORETURN.
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target-delegates.c: Rebuild.
9523 * target.c (update_current_target): Don't inherit or default
9524 to_disable_tracepoint.
9525 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9526 TARGET_DEFAULT_NORETURN.
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9532 to_enable_tracepoint.
9533 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9534 TARGET_DEFAULT_NORETURN.
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_download_trace_state_variable.
9541 * target.h (struct target_ops) <to_download_trace_state_variable>:
9542 Use TARGET_DEFAULT_NORETURN.
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9548 to_can_download_tracepoint.
9549 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9550 TARGET_DEFAULT_RETURN.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * target-delegates.c: Rebuild.
9555 * target.c (update_current_target): Don't inherit or default
9556 to_download_tracepoint.
9557 * target.h (struct target_ops) <to_download_tracepoint>: Use
9558 TARGET_DEFAULT_NORETURN.
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target-delegates.c: Rebuild.
9563 * target.c (update_current_target): Don't inherit or default
9565 * target.h (struct target_ops) <to_trace_init>: Use
9566 TARGET_DEFAULT_RETURN.
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9570 * target-delegates.c: Rebuild.
9571 * target.c (update_current_target): Don't inherit or default
9572 to_supports_string_tracing.
9573 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9574 TARGET_DEFAULT_RETURN.
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target-delegates.c: Rebuild.
9579 * target.c (update_current_target): Don't inherit or default
9580 to_supports_enable_disable_tracepoint.
9581 * target.h (struct target_ops)
9582 <to_supports_enable_disable_tracepoint>: Use
9583 TARGET_DEFAULT_RETURN.
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9587 * target-delegates.c: Rebuild.
9588 * target.c (update_current_target): Don't inherit or default
9589 to_supports_multi_process.
9590 * target.h (struct target_ops) <to_supports_multi_process>: Use
9591 TARGET_DEFAULT_RETURN.
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target-delegates.c: Rebuild.
9596 * target.c (update_current_target): Don't inherit or default
9597 to_get_ada_task_ptid.
9598 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9599 TARGET_DEFAULT_FUNC.
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9603 * target-delegates.c: Rebuild.
9604 * target.c (update_current_target): Don't inherit or default
9605 to_thread_architecture.
9606 * target.h (struct target_ops) <to_thread_architecture>: Use
9607 TARGET_DEFAULT_FUNC.
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't inherit or default
9613 to_execution_direction.
9614 * target.h (struct target_ops) <to_execution_direction>: Use
9615 TARGET_DEFAULT_FUNC.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9621 to_can_execute_reverse.
9622 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9623 TARGET_DEFAULT_RETURN.
9624 (target_can_execute_reverse): Unconditionally delegate.
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9628 * target-delegates.c: Rebuild.
9629 * target.c (update_current_target): Don't inherit or default
9631 (dummy_goto_bookmark): Remove.
9632 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9633 * target.h (struct target_ops) <to_goto_bookmark>: Use
9634 TARGET_DEFAULT_NORETURN.
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9638 * target-delegates.c: Rebuild.
9639 * target.c (update_current_target): Don't inherit or default
9641 (dummy_get_bookmark): Remove.
9642 (init_dummy_target): Don't inherit or default to_get_bookmark.
9643 * target.h (struct target_ops) <to_get_bookmark>: Use
9644 TARGET_DEFAULT_NORETURN
9646 2014-02-19 Tom Tromey <tromey@redhat.com>
9648 * target-delegates.c: Rebuild.
9649 * target.c (update_current_target): Don't inherit or default
9650 to_make_corefile_notes.
9651 (init_dummy_target): Don't initialize to_make_corefile_notes.
9652 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9653 TARGET_DEFAULT_FUNC.
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9657 * target-delegates.c: Rebuild.
9658 * target.c (update_current_target): Don't inherit or default
9659 to_find_memory_regions.
9660 (init_dummy_target): Don't initialize to_find_memory_regions.
9661 * target.h (struct target_ops) <to_find_memory_regions>: Use
9662 TARGET_DEFAULT_FUNC.
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * target-delegates.c: Rebuild.
9667 * target.c (update_current_target): Don't inherit or default
9669 * target.h (struct target_ops) <to_log_command>: Use
9670 TARGET_DEFAULT_IGNORE.
9671 (target_log_command): Unconditionally delegate.
9673 2014-02-19 Tom Tromey <tromey@redhat.com>
9675 * target-delegates.c: Rebuild.
9676 * target.c (update_current_target): Don't inherit or default
9677 to_pid_to_exec_file.
9678 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9679 TARGET_DEFAULT_RETURN.
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target-delegates.c: Rebuild.
9684 * target.c (update_current_target): Don't inherit or default
9686 (target_thread_name): Unconditionally delegate.
9687 * target.h (struct target_ops) <to_thread_name>: Use
9688 TARGET_DEFAULT_RETURN.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * target-delegates.c: Rebuild.
9693 * target.c (update_current_target): Don't inherit or default
9694 to_extra_thread_info.
9695 * target.h (struct target_ops) <to_extra_thread_info>: Use
9696 TARGET_DEFAULT_RETURN.
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9700 * target-delegates.c: Rebuild.
9701 * target.c (update_current_target): Don't inherit or default
9703 * target.h (struct target_ops) <to_has_exited>: Use
9704 TARGET_DEFAULT_RETURN..
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9708 * target-delegates.c: Rebuild.
9709 * target.c (update_current_target): Don't inherit or default
9710 to_set_syscall_catchpoint.
9711 (return_one): Remove.
9712 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9713 TARGET_DEFAULT_RETURN.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9719 to_insert_exec_catchpoint.
9720 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9721 TARGET_DEFAULT_RETURN.
9723 2014-01-08 Tom Tromey <tromey@redhat.com>
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9727 to_insert_exec_catchpoint.
9728 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9729 TARGET_DEFAULT_RETURN.
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't inherit or default
9735 to_remove_vfork_catchpoint.
9736 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9737 TARGET_DEFAULT_RETURN.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9743 to_insert_vfork_catchpoint.
9744 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9745 TARGET_DEFAULT_RETURN.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9751 to_remove_fork_catchpoint.
9752 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9753 TARGET_DEFAULT_RETURN.
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9759 to_insert_fork_catchpoint.
9760 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9761 TARGET_DEFAULT_RETURN.
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9765 * target-delegates.c: Rebuild.
9766 * target.c (update_current_target): Don't inherit or default
9767 to_post_startup_inferior.
9768 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9769 TARGET_DEFAULT_IGNORE.
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9773 * target-delegates.c: Rebuild.
9774 * target.c (update_current_target): Don't inherit or default
9776 * target.h (struct target_ops) <to_load>: Use
9777 TARGET_DEFAULT_NORETURN.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target-delegates.c: Rebuild.
9782 * target.c (update_current_target): Don't inherit or default
9784 * target.h (struct target_ops) <to_terminal_info>: Use
9785 TARGET_DEFAULT_FUNC.
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9789 * target-delegates.c: Rebuild.
9790 * target.c (update_current_target): Don't inherit or default
9791 to_terminal_save_ours.
9792 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9793 TARGET_DEFAULT_IGNORE.
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9797 * target-delegates.c: Rebuild.
9798 * target.c (update_current_target): Don't inherit or default
9800 * target.h (struct target_ops) <to_terminal_ours>: Use
9801 TARGET_DEFAULT_IGNORE.
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9805 * target-delegates.c: Rebuild.
9806 * target.c (update_current_target): Don't inherit or default
9807 to_terminal_ours_for_output.
9808 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9809 TARGET_DEFAULT_IGNORE.
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * target-delegates.c: Rebuild.
9814 * target.c (update_current_target): Don't inherit or default
9815 to_terminal_inferior.
9816 * target.h (struct target_ops) <to_terminal_inferior>: Use
9817 TARGET_DEFAULT_IGNORE.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target-delegates.c: Rebuild.
9822 * target.c (update_current_target): Don't inherit or default
9824 * target.h (struct target_ops) <to_terminal_init>: Use
9825 TARGET_DEFAULT_IGNORE.
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target-delegates.c: Rebuild.
9830 * target.c (update_current_target): Don't inherit or default
9831 to_can_accel_watchpoint_condition.
9832 * target.h (struct target_ops)
9833 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target-delegates.c: Rebuild.
9838 * target.c (update_current_target): Don't inherit or default
9839 to_region_ok_for_hw_watchpoint.
9840 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9841 Use TARGET_DEFAULT_FUNC.
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9845 * target-delegates.c: Rebuild.
9846 * target.c (update_current_target): Don't inherit or default
9847 to_watchpoint_addr_within_range.
9848 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9849 Use TARGET_DEFAULT_FUNC.
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * target-delegates.c: Rebuild.
9854 * target.c (update_current_target): Don't inherit or default
9855 to_remove_watchpoint.
9856 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9857 TARGET_DEFAULT_NORETURN.
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9861 * target-delegates.c: Rebuild.
9862 * target.c (update_current_target): Don't inherit or default
9863 to_insert_watchpoint.
9864 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9865 TARGET_DEFAULT_RETURN.
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9869 * target-delegates.c: Rebuild.
9870 * target.c (update_current_target): Don't inherit or default
9871 to_remove_hw_breakpoint.
9872 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9873 TARGET_DEFAULT_RETURN.
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9877 * target-delegates.c: Rebuild.
9878 * target.c (update_current_target): Don't inherit or default
9879 to_insert_hw_breakpoint.
9880 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9881 TARGET_DEFAULT_RETURN.
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9885 * target-delegates.c: Rebuild.
9886 * target.c (update_current_target): Don't inherit or default
9887 to_can_use_hw_breakpoint.
9888 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9889 TARGET_DEFAULT_RETURN.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9896 * target.h (struct target_ops) <to_files_info>: Use
9897 TARGET_DEFAULT_IGNORE.
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9901 * target-delegates.c: Rebuild.
9902 * target.c (update_current_target): Don't inherit or default
9904 * target.h (struct target_ops) <to_store>: Use
9905 TARGET_DEFAULT_NORETURN.
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9909 * target-delegates.c: Rebuild.
9910 * target.c (update_current_target): Don't inherit or default
9912 * target.h (struct target_ops) <to_post_attach>: Use
9913 TARGET_DEFAULT_IGNORE.
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * target-delegates.c: Rebuild.
9918 * target.c (update_current_target): Don't inherit or default
9920 (default_rcmd): New function.
9921 (do_monitor_command): Unconditionally delegate.
9922 * target.h (struct target_ops) <to_rmcd>: Use
9923 TARGET_DEFAULT_FUNC.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target-delegates.c: Rebuild.
9928 * target.c (init_dummy_target): Don't initialize to_attach.
9929 (target_attach): Unconditionally delegate.
9930 * target.h (struct target_ops) <to_attach>: Use
9931 TARGET_DEFAULT_FUNC.
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target-delegates.c: Rebuild.
9936 * target.c (target_detach): Unconditionally delegate.
9937 (init_dummy_target): Don't initialize to_detach.
9938 * target.h (struct target_ops) <to_detach>: Use
9939 TARGET_DEFAULT_IGNORE.
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9943 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9945 (target_augmented_libraries_svr4_read): Add argument.
9946 * target.c (update_current_target): Update.
9947 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * target.h (struct target_ops) <to_call_history_range>: Add
9954 * target.c (target_call_history_range): Add argument.
9955 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9957 (record_btrace_call_history_from): Update.
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9961 * target.h (struct target_ops) <to_call_history_from>: Add
9963 * target.c (target_call_history_from): Add argument.
9964 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9969 * target.h (struct target_ops) <to_call_history>: Add argument.
9970 * target.c (target_call_history): Add argument.
9971 * record-btrace.c (record_btrace_call_history): Add 'self'
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * target.h (struct target_ops) <to_insn_history_range>: Add
9978 * target.c (target_insn_history_range): Add argument.
9979 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9981 (record_btrace_insn_history_from): Update.
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9985 * target.h (struct target_ops) <to_insn_history_from>: Add
9987 * target.c (target_insn_history_from): Add argument.
9988 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target.h (struct target_ops) <to_insn_history>: Add argument.
9994 * target.c (target_insn_history): Add argument.
9995 * record-btrace.c (record_btrace_insn_history): Add 'self'
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target.h (struct target_ops) <to_goto_record>: Add argument.
10001 * target.c (target_goto_record): Add argument.
10002 * record-full.c (record_full_goto): Add 'self' argument.
10003 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10005 2014-02-19 Tom Tromey <tromey@redhat.com>
10007 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10008 * target.c (target_goto_record_end): Add argument.
10009 * record-full.c (record_full_goto_end): Add 'self' argument.
10010 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target.h (struct target_ops) <to_goto_record_begin>: Add
10016 * target.c (target_goto_record_begin): Add argument.
10017 * record-full.c (record_full_goto_begin): Add 'self' argument.
10018 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target.h (struct target_ops) <to_record_is_replaying>: Add
10025 * target.c (target_record_is_replaying): Add argument.
10026 * record-full.c (record_full_is_replaying): Add 'self' argument.
10027 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10029 (record_btrace_xfer_partial, record_btrace_store_registers)
10030 (record_btrace_prepare_to_store, record_btrace_resume)
10031 (record_btrace_wait, record_btrace_decr_pc_after_break)
10032 (record_btrace_find_new_threads, record_btrace_thread_alive):
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10037 * target.h (struct target_ops) <to_delete_record>: Add argument.
10038 * target.c (target_delete_record): Add argument.
10039 * record-full.c (record_full_delete): Add 'self' argument.
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10043 * target.h (struct target_ops) <to_save_record>: Add argument.
10044 * target.c (target_save_record): Add argument.
10045 * record-full.c (record_full_save): Add 'self' argument.
10046 (record_full_save): Add 'self' argument.
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10050 * target.h (struct target_ops) <to_info_record>: Add argument.
10051 * target.c (target_info_record): Add argument.
10052 * record.c (info_record_command): Add argument.
10053 * record-full.c (record_full_info): Add 'self' argument.
10054 * record-btrace.c (record_btrace_info): Add 'self' argument.
10056 2014-02-19 Tom Tromey <tromey@redhat.com>
10058 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10059 * target.c (target_stop_recording): Add argument.
10060 * record.c (record_stop): Add argument.
10061 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10067 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10068 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10070 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10071 (_initialize_amd64_linux_nat): Use it.
10072 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10073 (_initialize_i386_linux_nat): Use it.
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10077 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10078 * target.c (target_teardown_btrace): Add argument.
10079 * remote.c (remote_teardown_btrace): Add 'self' argument.
10080 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10082 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10087 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10088 * target.c (target_disable_btrace): Add argument.
10089 * remote.c (remote_disable_btrace): Add 'self' argument.
10090 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10092 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10097 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10098 * target.c (target_enable_btrace): Add argument.
10099 * remote.c (remote_enable_btrace): Add 'self' argument.
10100 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10102 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10105 2014-02-19 Tom Tromey <tromey@redhat.com>
10107 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10108 (target_can_use_agent): Add argument.
10109 * target.c (update_current_target): Update.
10110 * remote.c (remote_can_use_agent): Add 'self' argument.
10111 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * target.h (struct target_ops) <to_use_agent>: Add argument.
10116 (target_use_agent): Add argument.
10117 * target.c (update_current_target): Update.
10118 * remote.c (remote_use_agent): Add 'self' argument.
10119 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10123 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10124 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10125 (target_traceframe_info): Add argument.
10126 * target.c (update_current_target): Update.
10127 * remote.c (remote_traceframe_info): Add 'self' argument.
10128 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10132 * target.h (target_static_tracepoint_markers_by_strid): Add
10134 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10136 * target.c (update_current_target): Update.
10137 * remote.c (struct target_ops)
10138 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10139 * linux-nat.c (struct target_ops)
10140 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10146 (target_static_tracepoint_marker_at): Add argument.
10147 * target.c (update_current_target): Update.
10148 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10154 (target_set_permissions): Add argument.
10155 * target.c (update_current_target): Update.
10156 * remote.c (remote_set_permissions): Add 'self' argument.
10157 (remote_start_remote): Update.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10162 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10163 (target_get_tib_address): Add argument.
10164 * target.c (update_current_target): Update.
10165 * remote.c (remote_get_tib_address): Add 'self' argument.
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10169 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10170 (target_set_trace_notes): Add argument.
10171 * target.c (update_current_target): Update.
10172 * remote.c (remote_set_trace_notes): Add 'self' argument.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10178 (target_set_trace_buffer_size): Add argument.
10179 * target.c (update_current_target): Update.
10180 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10186 (target_set_circular_trace_buffer): Add argument.
10187 * target.c (update_current_target): Update.
10188 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10193 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10195 (target_set_disconnected_tracing): Add argument.
10196 * target.c (update_current_target): Update.
10197 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10201 * target.h (struct target_ops)
10202 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10203 (target_get_min_fast_tracepoint_insn_len): Add argument.
10204 * target.c (update_current_target): Update.
10205 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10212 (target_get_raw_trace_data): Add argument.
10213 * target.c (update_current_target): Update.
10214 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10218 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10220 (target_upload_trace_state_variables): Add argument.
10221 * target.c (update_current_target): Update.
10222 * remote.c (remote_upload_trace_state_variables): Add 'self'
10224 (remote_start_remote): Update.
10226 2014-02-19 Tom Tromey <tromey@redhat.com>
10228 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10230 (target_upload_tracepoints): Add argument.
10231 * target.c (update_current_target): Update.
10232 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10233 (remote_start_remote): Update.
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10238 (target_save_trace_data): Add argument.
10239 * target.c (update_current_target): Update.
10240 * remote.c (remote_save_trace_data): Add 'self' argument.
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10244 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10246 * target.h (struct target_ops)
10247 <to_get_trace_state_variable_value>: Add argument.
10248 (target_get_trace_state_variable_value): Add argument.
10249 * target.c (update_current_target): Update.
10250 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10252 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10257 * target.h (struct target_ops) <to_trace_find>: Add argument.
10258 (target_trace_find): Add argument.
10259 * target.c (update_current_target): Update.
10260 * remote.c (remote_trace_find): Add 'self' argument.
10261 * ctf.c (ctf_trace_find): Add 'self' argument.
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10265 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10266 (target_trace_stop): Add argument.
10267 * target.c (update_current_target): Update.
10268 * remote.c (remote_trace_stop): Add 'self' argument.
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10272 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10273 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10275 (target_get_tracepoint_status): Add argument.
10276 * target.c (update_current_target): Update.
10277 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10279 2014-02-19 Tom Tromey <tromey@redhat.com>
10281 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10282 * target.h (struct target_ops) <to_get_trace_status>: Add
10284 (target_get_trace_status): Add argument.
10285 * target.c (update_current_target): Update.
10286 * remote.c (remote_get_trace_status): Add 'self' argument.
10287 (remote_start_remote, remote_can_download_tracepoint): Update.
10288 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10292 * target.h (struct target_ops) <to_trace_start>: Add argument.
10293 (target_trace_start): Add argument.
10294 * target.c (update_current_target): Update.
10295 * remote.c (remote_trace_start): Add 'self' argument.
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10299 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10301 (target_trace_set_readonly_regions): Add argument.
10302 * target.c (update_current_target): Update.
10303 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10308 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10310 (target_disable_tracepoint): Add argument.
10311 * target.c (update_current_target): Update.
10312 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10316 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10318 (target_enable_tracepoint): Add argument.
10319 * target.c (update_current_target): Update.
10320 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10324 * target.h (struct target_ops) <to_download_trace_state_variable>:
10326 (target_download_trace_state_variable): Add argument.
10327 * target.c (update_current_target): Update.
10328 * remote.c (remote_download_trace_state_variable): Add 'self'
10331 2014-02-19 Tom Tromey <tromey@redhat.com>
10333 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10335 (target_can_download_tracepoint): Add argument.
10336 * target.c (update_current_target): Update.
10337 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10339 2014-02-19 Tom Tromey <tromey@redhat.com>
10341 * target.h (struct target_ops) <to_download_tracepoint>: Add
10343 (target_download_tracepoint): Add argument.
10344 * target.c (update_current_target): Update.
10345 * remote.c (remote_download_tracepoint): Add 'self' argument.
10347 2014-02-19 Tom Tromey <tromey@redhat.com>
10349 * target.h (struct target_ops) <to_trace_init>: Add argument.
10350 (target_trace_init): Add argument.
10351 * target.c (update_current_target): Update.
10352 * remote.c (remote_trace_init): Add 'self' argument.
10354 2014-02-19 Tom Tromey <tromey@redhat.com>
10356 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10357 * target.c (target_fileio_readlink): Add argument.
10358 * remote.c (remote_hostio_readlink): Add 'self' argument.
10359 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10363 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10364 * target.c (target_fileio_unlink): Add argument.
10365 * remote.c (remote_hostio_unlink): Add 'self' argument.
10366 (remote_file_delete): Update.
10367 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10372 * target.c (target_fileio_close): Add argument.
10373 * remote.c (remote_hostio_close): Add 'self' argument.
10374 (remote_hostio_close_cleanup): Update.
10375 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10377 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10382 * target.c (target_fileio_pread): Add argument.
10383 * remote.c (remote_hostio_pread): Add 'self' argument.
10384 (remote_bfd_iovec_pread, remote_file_get): Update.
10385 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10390 * target.c (target_fileio_pwrite): Add argument.
10391 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10392 (remote_file_put): Update.
10393 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10398 * target.c (target_fileio_open): Add argument.
10399 * remote.c (remote_hostio_open): Add 'self' argument.
10400 (remote_bfd_iovec_open): Add 'self' argument.
10401 (remote_file_put): Add 'self' argument.
10402 (remote_file_get): Add 'self' argument.
10403 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10407 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10409 (target_can_run_breakpoint_commands): Add argument.
10410 * target.c (update_current_target): Update.
10411 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10413 (remote_insert_breakpoint): Add 'self' argument.
10414 (remote_insert_hw_breakpoint): Add 'self' argument.
10415 (remote_can_run_breakpoint_commands): Add 'self' argument.
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10419 * target.h (struct target_ops)
10420 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10421 (target_supports_evaluation_of_breakpoint_conditions): Add
10423 * target.c (update_current_target): Update.
10424 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10426 (remote_insert_breakpoint): Add 'self' argument.
10427 (remote_insert_hw_breakpoint): Add 'self' argument.
10428 (remote_supports_cond_breakpoints): Add 'self' argument.
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10432 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10434 (target_supports_string_tracing): Add argument.
10435 * target.c (update_current_target): Update.
10436 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10440 * target.h (struct target_ops)
10441 <to_supports_disable_randomization>: Add argument.
10442 * target.c (find_default_supports_disable_randomization): Add
10444 (target_supports_disable_randomization): Add argument.
10445 (find_default_supports_disable_randomization): Add 'self'
10447 * remote.c (extended_remote_supports_disable_randomization): Add
10449 (remote_supports_disable_randomization): Add 'self' argument.
10450 (extended_remote_create_inferior): Update.
10451 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10454 2014-02-19 Tom Tromey <tromey@redhat.com>
10456 * target.h (struct target_ops)
10457 <to_supports_enable_disable_tracepoint>: Add argument.
10458 (target_supports_enable_disable_tracepoint): Add argument.
10459 * target.c (update_current_target): Update.
10460 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10465 * target.h (struct target_ops) <to_supports_multi_process>: Add
10467 (target_supports_multi_process): Add argument.
10468 * target.c (update_current_target): Update.
10469 * remote.c (remote_supports_multi_process): Add 'self' argument.
10470 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10472 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10477 * target.h (struct target_ops) <to_execution_direction>: Add
10479 (target_execution_direction): Add argument.
10480 * target.c (default_execution_direction): Add 'self' argument.
10481 * record-full.c (record_full_execution_direction): Add 'self'
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10486 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10488 (target_can_execute_reverse): Add argument.
10489 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10490 * record-full.c (record_full_can_execute_reverse): Add 'self'
10492 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10498 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10500 (target_get_ada_task_ptid): Add argument.
10501 * target.c (update_current_target): Update.
10502 (default_get_ada_task_ptid): Add 'self' argument.
10503 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10504 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10505 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10507 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10509 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10511 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10513 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10514 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10520 (target_goto_bookmark): Add argument.
10521 * target.c (dummy_goto_bookmark): Add 'self' argument.
10522 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10527 (target_get_bookmark): Add argument.
10528 * target.c (dummy_get_bookmark): Add 'self' argument.
10529 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10533 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10535 (target_make_corefile_notes): Add argument.
10536 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10537 * procfs.c (procfs_make_note_section): Add 'self' argument.
10538 (procfs_make_note_section): Add 'self' argument.
10539 (procfs_make_note_section): Add 'self' argument.
10540 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10542 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10543 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10544 * exec.c (exec_make_note_section): Add 'self' argument.
10545 (exec_make_note_section): Add 'self' argument.
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10549 * target.h (struct target_ops) <to_find_memory_regions>: Add
10551 (target_find_memory_regions): Add argument.
10552 * target.c (dummy_find_memory_regions): Add 'self' argument.
10553 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10554 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10555 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10556 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10557 * exec. (exec_do_find_memory_regions): New global.
10558 (exec_set_find_memory_regions): Rewrite.
10559 (exec_find_memory_regions): New function.
10560 (init_exec_ops): Use exec_find_memory_regions.
10562 2014-02-19 Tom Tromey <tromey@redhat.com>
10564 * target.h (struct target_ops) <to_supports_non_stop>: Add
10566 * target.c (find_default_supports_non_stop): Add argument.
10567 (target_supports_non_stop): Add argument.
10568 (find_default_supports_non_stop): Add 'self' argument.
10569 * remote.c (remote_supports_non_stop): Add 'self' argument.
10570 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10574 * target.h (struct target_ops) <to_log_command>: Add argument.
10575 (target_log_command): Add argument.
10576 * serial.h (serial_log_command): Add 'self' argument.
10577 * serial.c (serial_log_command): Add 'self' argument.
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10581 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10582 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10584 (target_pid_to_exec_file): Add argument.
10585 * target.c (debug_to_pid_to_exec_file): Add argument.
10586 (update_current_target): Update.
10587 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10588 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10589 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10590 (linux_handle_extended_wait): Update.
10591 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10592 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10593 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10594 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10598 * target.h (struct target_ops) <to_rcmd>: Add argument.
10599 (target_rcmd): Add argument.
10600 * target.c (debug_to_rcmd): Add argument.
10601 (update_current_target, do_monitor_command): Update.
10602 * remote.c (remote_rcmd): Add 'self' argument.
10603 * monitor.c (monitor_rcmd): Add 'self' argument.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * windows-nat.c (windows_stop): Add 'self' argument.
10608 * target.h (struct target_ops) <to_stop>: Add argument.
10609 * target.c (target_stop): Add argument.
10610 (debug_to_stop): Add argument.
10611 (update_current_target): Update.
10612 * remote.c (remote_stop): Add 'self' argument.
10613 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10614 (gdbsim_cntrl_c): Update.
10615 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10616 * procfs.c (procfs_stop): Add 'self' argument.
10617 * nto-procfs.c (procfs_stop): Add 'self' argument.
10618 * monitor.c (monitor_stop): Add 'self' argument.
10619 (monitor_open): Update.
10620 * linux-nat.c (linux_nat_stop): Add argument.
10621 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10622 * gnu-nat.c (gnu_stop): Add 'self' argument.
10623 * darwin-nat.c (darwin_stop): Add 'self' argument.
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target.h (struct target_ops) <to_thread_name>: Add argument.
10628 * target.c (target_thread_name): Add argument.
10629 (update_current_target): Update.
10630 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * target.h (struct target_ops) <to_extra_thread_info>: Add
10636 (target_extra_thread_info): Add argument.
10637 * target.c (update_current_target): Update.
10638 * remote.c (remote_threads_extra_info): Add 'self' argument.
10639 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10641 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10642 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10643 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10645 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10647 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10649 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10652 2014-02-19 Tom Tromey <tromey@redhat.com>
10654 * target.h (struct target_ops) <to_program_signals>: Add argument.
10655 * target.c (target_program_signals): Add argument.
10656 * remote.c (remote_program_signals): Add 'self' argument.
10658 2014-02-19 Tom Tromey <tromey@redhat.com>
10660 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10661 * target.c (target_pass_signals): Add argument.
10662 * remote.c (remote_pass_signals): Add 'self' argument.
10663 (remote_start_remote): Update.
10664 * procfs.c (procfs_pass_signals): Add 'self' argument.
10665 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10666 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10667 (linux_nat_create_inferior, linux_nat_attach): Update.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * windows-nat.c (windows_can_run): Add 'self' argument.
10672 * target.h (struct target_ops) <to_can_run>: Add argument.
10673 (target_can_run): Add argument.
10674 * target.c (debug_to_can_run): Add argument.
10675 (update_current_target): Update.
10676 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10677 * inf-child.c (inf_child_can_run): Add 'self' argument.
10678 * go32-nat.c (go32_can_run): Add 'self' argument.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * target.h (struct target_ops) <to_has_exited>: Add argument.
10683 (target_has_exited): Add argument.
10684 * target.c (debug_to_has_exited): Add argument.
10685 (update_current_target): Update.
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10689 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10691 (target_set_syscall_catchpoint): Add argument.
10692 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10694 * target.c (update_current_target): Update.
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10700 (target_remove_exec_catchpoint): Add argument.
10701 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10702 (update_current_target): Update.
10703 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10706 2014-02-19 Tom Tromey <tromey@redhat.com>
10708 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10710 (target_insert_exec_catchpoint): Add argument.
10711 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10712 (update_current_target): Update.
10713 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10716 2014-02-19 Tom Tromey <tromey@redhat.com>
10718 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10720 (target_remove_vfork_catchpoint): Add argument.
10721 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10722 (update_current_target): Update.
10723 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10730 (target_insert_vfork_catchpoint): Add argument.
10731 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10732 (update_current_target): Update.
10733 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10740 (target_remove_fork_catchpoint): Add argument.
10741 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10742 (update_current_target): Update.
10743 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10748 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10750 (target_insert_fork_catchpoint): Add argument.
10751 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10752 (update_current_target): Update.
10753 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10758 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10760 (target_post_startup_inferior): Add argument.
10761 * target.c (debug_to_post_startup_inferior): Add argument.
10762 (update_current_target): Update.
10763 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10765 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10767 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10769 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10771 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10773 (super_post_startup_inferior): Likewise.
10774 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10776 (super_post_startup_inferior): Likewise.
10777 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10778 Add 'self' argument.
10779 (super_post_startup_inferior): Likewise.
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10783 * target.h (struct target_ops) <to_load>: Add argument.
10784 * target.c (target_load): Add argument.
10785 (debug_to_load): Add argument.
10786 (update_current_target): Update.
10787 * remote.c (remote_load): Add 'self' argument.
10788 * remote-sim.c (gdbsim_load): Add 'self' argument.
10789 * remote-mips.c (mips_load): Add 'self' argument.
10790 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10791 * monitor.c (monitor_load): Add 'self' argument.
10792 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10797 (target_terminal_info): Add argument.
10798 * target.c (debug_to_terminal_info): Add argument.
10799 (default_terminal_info): Likewise.
10800 * inflow.c (child_terminal_info): Add 'self' argument.
10801 * inferior.h (child_terminal_info): Add 'self' argument.
10802 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10806 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10808 (target_terminal_save_ours): Add argument.
10809 * target.c (debug_to_terminal_save_ours): Add argument.
10810 (update_current_target): Update.
10811 * inflow.c (terminal_save_ours): Add 'self' argument.
10812 * inferior.h (terminal_save_ours): Add 'self' argument.
10814 2014-02-19 Tom Tromey <tromey@redhat.com>
10816 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10817 (target_terminal_ours): Add argument.
10818 * target.c (debug_to_terminal_ours): Add argument.
10819 (update_current_target): Update.
10820 * remote.c (remote_terminal_ours): Add 'self' argument.
10821 (remote_close): Update.
10822 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10823 * inflow.c (terminal_ours): Add 'self' argument.
10824 * inferior.h (terminal_ours): Add 'self' argument.
10825 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10827 2014-02-19 Pedro Alves <palves@redhat.com>
10828 Tom Tromey <tromey@redhat.com>
10830 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10832 (target_terminal_ours_for_output): Add argument.
10833 * target.c (debug_to_terminal_ours_for_output): Add argument.
10834 (update_current_target): Update.
10835 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10836 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10837 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10841 * target.h (struct target_ops) <to_terminal_inferior>: Add
10843 * target.c (target_terminal_inferior): Add argument.
10844 (update_current_target): Update.
10845 * remote.c (remote_terminal_inferior): Add 'self' argument.
10846 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10847 * inflow.c (terminal_inferior): Add 'self' argument.
10848 * inferior.h (terminal_inferior): Add 'self' argument.
10849 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10850 (go32_terminal_inferior): Add 'self' argument.
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10854 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10855 (target_terminal_init): Add argument.
10856 * target.c (debug_to_terminal_init): Add argument.
10857 (update_current_target): Update.
10858 * inflow.c (terminal_init_inferior): Add 'self' argument.
10859 * inferior.h (terminal_init_inferior): Add 'self' argument.
10860 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10861 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10865 * target.h (struct target_ops)
10866 <to_can_accel_watchpoint_condition>: Add argument.
10867 (target_can_accel_watchpoint_condition): Add argument.
10868 * target.c (debug_to_can_accel_watchpoint_condition): Add
10870 (update_current_target): Update.
10871 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10876 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10878 (target_region_ok_for_hw_watchpoint): Add argument.
10879 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10880 (default_region_ok_for_hw_watchpoint): Add argument.
10881 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10882 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10884 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10886 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10888 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10890 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10892 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10894 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10895 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10897 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10898 Add 'self' argument.
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10902 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10904 (target_insert_watchpoint): Add argument.
10905 * target.c (debug_to_insert_watchpoint): Add argument.
10906 (update_current_target): Update.
10907 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10908 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10909 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10910 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10911 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10912 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10914 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10915 (procfs_insert_hw_watchpoint): Add 'self' argument.
10916 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10918 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10920 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10922 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10923 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10925 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10932 (target_remove_watchpoint): Add argument.
10933 * target.c (debug_to_remove_watchpoint): Add argument.
10934 (update_current_target): Update.
10935 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10936 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10937 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10938 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10939 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10940 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10942 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10943 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10945 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10947 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10949 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10950 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10952 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10955 2014-02-19 Tom Tromey <tromey@redhat.com>
10957 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10959 (target_remove_hw_breakpoint): Add argument.
10960 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10961 (update_current_target): Update.
10962 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10963 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10965 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10966 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10968 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10973 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10975 (target_insert_hw_breakpoint): Add argument.
10976 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10977 (update_current_target): Update.
10978 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10979 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10981 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10982 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10983 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10985 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10992 (target_can_use_hardware_watchpoint): Add argument.
10993 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10994 (update_current_target): Update.
10995 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10997 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10999 * remote.c (remote_check_watch_resources): Add 'self' argument.
11000 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11001 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11003 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11004 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11006 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11008 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11010 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11012 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11014 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11016 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11017 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11019 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target.h (struct target_ops) <to_post_attach>: Add argument.
11025 (target_post_attach): Add argument.
11026 * target.c (debug_to_post_attach): Add argument.
11027 (update_current_target): Update.
11028 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11029 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11030 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11031 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11032 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * windows-nat.c (windows_close): Add 'self' argument.
11037 * tracepoint.c (tfile_close): Add 'self' argument.
11038 * target.h (struct target_ops) <to_close>: Add argument.
11039 * target.c (target_close): Add argument.
11040 (update_current_target): Update.
11041 * remote.c (remote_close): Add 'self' argument.
11042 * remote-sim.c (gdbsim_close): Add 'self' argument.
11043 * remote-mips.c (mips_close): Add 'self' argument.
11044 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11045 * record-full.c (record_full_close): Add 'self' argument.
11046 * record-btrace.c (record_btrace_close): Add 'self' argument.
11047 * monitor.h (monitor_close): Add 'self' argument.
11048 * monitor.c (monitor_close): Add 'self' argument.
11049 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11050 * linux-nat.c (linux_nat_close): Add argument.
11051 * go32-nat.c (go32_close): Add 'self' argument.
11052 * exec.c (exec_close_1): Add 'self' argument.
11053 * ctf.c (ctf_close): Add 'self' argument.
11054 * corelow.c (core_close): Add 'self' argument.
11055 (core_close_cleanup): Update.
11056 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11057 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * remote.c (remote_load): New function.
11062 (init_remote_ops): Use it.
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11068 * common/linux-btrace.h (linux_supports_btrace): Update.
11069 * remote.c (remote_supports_btrace): Add "self" argument.
11070 * target-delegates.c: Rebuild.
11071 * target.c (target_supports_btrace): Remove.
11072 * target.h (struct target_ops) <to_supports_btrace>: Add
11073 target_ops argument.
11074 (target_supports_btrace): New define.
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * record-full.c (record_full_beneath_to_resume_ops)
11079 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11080 (record_full_beneath_to_wait)
11081 (record_full_beneath_to_store_registers_ops)
11082 (record_full_beneath_to_store_registers)
11083 (record_full_beneath_to_xfer_partial_ops)
11084 (record_full_beneath_to_xfer_partial)
11085 (record_full_beneath_to_insert_breakpoint_ops)
11086 (record_full_beneath_to_insert_breakpoint)
11087 (record_full_beneath_to_remove_breakpoint_ops)
11088 (record_full_beneath_to_remove_breakpoint)
11089 (record_full_beneath_to_stopped_by_watchpoint)
11090 (record_full_beneath_to_stopped_data_address)
11091 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11092 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11093 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11094 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11095 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11096 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11097 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11098 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11099 (record_full_resume, record_full_wait_1)
11100 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11101 (record_full_store_registers, record_full_xfer_partial)
11102 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11103 (record_full_async, record_full_core_xfer_partial): Use target
11105 * target-delegates.c: Rebuild.
11106 * target.c (current_xfer_partial): Remove.
11107 (update_current_target): Do not INHERIT or de_fault
11108 to_insert_breakpoint, to_remove_breakpoint,
11109 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11110 to_is_async_p, to_async. Do not set to_xfer_partial field.
11111 (default_xfer_partial): Simplify.
11112 (current_xfer_partial): Remove.
11113 (target_wait, target_resume): Simplify.
11114 (find_default_can_async_p, find_default_is_async_p): Update.
11115 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11116 to_xfer_partial, to_stopped_by_watchpoint,
11117 to_stopped_data_address.
11118 (target_store_registers): Simplify.
11119 (forward_target_remove_breakpoint)
11120 (forward_target_insert_breakpoint): Remove.
11121 (target_remove_breakpoint, target_insert_breakpoint)
11122 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11123 * target.h (struct target_ops) <to_resume, to_wait,
11124 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11125 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11126 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11128 (forward_target_remove_breakpoint)
11129 (forward_target_insert_breakpoint): Remove.
11130 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11132 (record_btrace_insert_breakpoint): Delegate directly.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11137 * target-delegates.c: New file.
11138 * target.c: Include target-delegates.c.
11139 (init_dummy_target): Call install_dummy_methods.
11140 (complete_target_initialization): Call install_delegators.
11141 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11142 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11143 * make-target-delegates: New file.
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11147 * record.c (find_record_target): Use find_target_at.
11148 * target.c (find_target_at): New function.
11149 * target.h (find_target_at): Declare.
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11153 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11154 Add 'ops' argument.
11155 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11157 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11158 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11160 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11162 * linux-nat.c (save_sigtrap): Update.
11163 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11164 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11165 (linux_nat_close): Update.
11166 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11168 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11170 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11171 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11172 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11173 (tmp_to_async): Add 'ops' argument.
11174 (record_full_stopped_by_watchpoint, record_full_async)
11175 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11177 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11178 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11179 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11180 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11181 (remote_is_async_p, remote_async): Add 'ops' argument.
11182 (remote_stopped_data_address): Update.
11183 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11184 * target.c (update_current_target)
11185 (find_default_can_async_p, find_default_is_async_p): Update.
11186 (init_dummy_target): Update.
11187 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11188 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11189 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11190 (target_can_async_p, target_is_async_p, target_async)
11191 (target_stopped_by_watchpoint): Update.
11193 2014-02-19 Yao Qi <yao@codesourcery.com>
11196 * gdbarch.sh: Remove startup_gdbarch.
11197 * gdbarch.c: Regenerated.
11198 * gdbarch.h: Likewise.
11200 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11202 * rl78-tdep.c (rl78_g10_register_name): New function.
11203 (rl78_return_value): Add g10 support.
11204 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11207 2014-02-17 Doug Evans <xdje42@gmail.com>
11209 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11210 (SUBDIR_GUILE_SRCS): Ditto.
11211 (scm-gsmob.o): Ditto.
11213 2014-02-17 Yao Qi <yao@codesourcery.com>
11215 * gnu-nat.c (ILL_RPC): Declare defined function.
11217 2014-02-17 Yao Qi <yao@codesourcery.com>
11219 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11220 mach_msg_type_number_t.
11221 (gnu_write_inferior): Likewise.
11223 2014-02-17 Yao Qi <yao@codesourcery.com>
11225 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11227 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11228 (inf_validate_procs, inf_signal): Likewise.
11229 (S_exception_raise_request): Likewise.
11230 (do_mach_notify_dead_name): Likewise.
11231 (steal_exc_port): Likewise.
11232 (gnu_read_inferior): Change 'copy_count''s type to
11233 mach_msg_type_number_t.
11234 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11237 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11239 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11240 flag. Adjust all users; in particular...
11241 (gnu_wait): ..., don't decrement its value in here...
11242 (gnu_create_inferior): ..., and instead set the flag in here,
11243 around the startup_inferior call, and call that one with
11244 START_INFERIOR_TRAPS_EXPECTED.
11246 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11247 (ILL_RPC): ... new macro.
11248 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11249 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11250 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11251 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11252 functions with ILL_RPC macro.
11253 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11254 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11255 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11256 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11257 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11258 (S_proc_getlogin_reply, S_proc_getsid_reply)
11259 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11260 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11261 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11262 (S_proc_getnports_reply, S_proc_is_important_reply)
11263 (S_proc_get_code_reply): New stub functions, generated with
11266 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11267 collected the type check structures.
11269 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11271 2014-02-14 Doug Evans <dje@google.com>
11273 * target.c (target_write_partial): Fix result type.
11275 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11277 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11278 the proper offsets to access fpregset_t.
11280 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11282 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11283 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11284 * h8300-tdep.c (setmachinelist): Remove global.
11285 * hppa-tdep.c (hppa_sigtramp): Remove global.
11286 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11287 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11288 * ravenscar-thread.c (update_target_observer): Remove global.
11289 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11291 2014-02-12 Tom Tromey <tromey@redhat.com>
11293 * common/rsp-low.c: Update comments.
11294 * common/rsp-low.h: Update comments.
11296 2014-02-12 Tom Tromey <tromey@redhat.com>
11298 * common/rsp-low.c (convert_ascii_to_int): Remove.
11299 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11301 2014-02-12 Tom Tromey <tromey@redhat.com>
11303 * common/rsp-low.h (unhexify): Don't declare.
11304 * common/rsp-low.c (unhexify): Remove.
11306 2014-02-12 Tom Tromey <tromey@redhat.com>
11308 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11309 * common/rsp-low.c (convert_int_to_ascii): Remove.
11311 2014-02-12 Tom Tromey <tromey@redhat.com>
11313 * common/rsp-low.h (hexify): Don't declare.
11314 * common/rsp-low.c (hexify): Remove.
11316 2014-02-12 Tom Tromey <tromey@redhat.com>
11318 * common/rsp-low.c (hexify): Never take strlen of argument.
11320 2014-02-12 Tom Tromey <tromey@redhat.com>
11322 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11323 * remote.c (extended_remote_run, remote_rcmd)
11324 (remote_download_trace_state_variable, remote_save_trace_data)
11325 (remote_set_trace_notes): Update.
11326 * tracepoint.c (encode_source_string, tfile_write_status)
11327 (tfile_write_uploaded_tsv): Update.
11329 2014-02-12 Tom Tromey <tromey@redhat.com>
11331 * tracepoint.c: Include rsp-low.h.
11332 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11333 * remote.c: Include rsp-low.h.
11334 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11335 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11336 (remote_unescape_input): Move to common/rsp-low.c.
11337 * common/rsp-low.h: New file.
11338 * common/rsp-low.c: New file.
11339 * Makefile.in (SFILES): Add common/rsp-low.c.
11340 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11341 (COMMON_OBS): Add rsp-low.o.
11342 (rsp-low.o): New target.
11344 2014-02-12 Tom Tromey <tromey@redhat.com>
11346 * utils.h: Include print-utils.h.
11347 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11348 (int_string, core_addr_to_string, core_addr_to_string_nz)
11349 (hex_string, hex_string_custom): Don't declare.
11350 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11351 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11352 (hex_string_custom, int_string, core_addr_to_string)
11353 (core_addr_to_string_nz, host_address_to_string): Move to
11354 common/print-utils.c.
11355 * common/print-utils.h: New file.
11356 * common/print-utils.c: New file
11357 * Makefile.in (SFILES): Add common/print-utils.c.
11358 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11359 (COMMON_OBS): Add print-utils.o.
11360 (print-utils.o): New target.
11362 2014-02-12 Tom Tromey <tromey@redhat.com>
11364 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11366 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11368 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11370 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11372 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11373 if a PT_IO ptrace request returns sucessfully but indicates that 0
11374 bytes were transferred.
11376 2014-02-12 Pedro Alves <palves@redhat.com>
11377 Kevin Buettner <kevinb@redhat.com>
11379 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11380 TYPE_INSTANCE_FLAG_CODE_SPACE.
11382 2014-02-12 Pedro Alves <palves@redhat.com>
11384 * h8300-tdep.c (pseudo_from_raw_register)
11385 (raw_from_pseudo_register): New functions.
11386 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11389 2014-02-12 Pedro Alves <palves@redhat.com>
11391 * h8300-tdep.c (h8300_register_sim_regno): New function.
11392 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11393 gdbarch_register_sim_regno hook.
11395 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11397 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11399 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11401 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11403 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11405 * obsd-tdep.h (obsd_init_abi): New prototype.
11406 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11407 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11408 (obsd_init_abi): New functions.
11409 * i386obsd-tdep.c: Include "obsd-tdep.h".
11410 (i386obsd_init_abi): Call obsd_init_abi.
11411 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11412 (amd64obsd_init_abi): Call obsd_init_abi.
11413 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11414 obsd-tdep.c to gdb_target_obs.
11416 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11418 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11419 double float arguments to 16-byte in the argument slots.
11421 2014-02-11 Doug Evans <xdje42@gmail.com>
11423 * configure.ac: Don't crash if pkg-config is not found and guile
11424 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11426 * configure: Regenerate.
11428 2014-02-11 Yao Qi <yao@codesourcery.com>
11430 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11431 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11432 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11433 * gnu-nat.c (gnu_xfer_memory): Likewise.
11434 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11435 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11436 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11437 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11439 2014-02-11 Yao Qi <yao@codesourcery.com>
11441 * target.h (enum target_xfer_error): Rename to ...
11442 (enum target_xfer_status): ... it. New. All users updated.
11443 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11445 (TARGET_XFER_STATUS_ERROR_P): New macro.
11446 (target_xfer_error_to_string): Remove declaration.
11447 (target_xfer_status_to_string): Declare.
11448 (target_xfer_partial_ftype): Adjust it.
11449 (struct target_ops) <to_xfer_partial>: Return
11450 target_xfer_status. Add argument xfered_len. Update
11452 * target.c (target_xfer_error_to_string): Rename to ...
11453 (target_xfer_status_to_string): ... it. New. All callers
11455 (target_read_live_memory): Likewise. Call target_xfer_partial
11456 instead of target_read.
11457 (memory_xfer_live_readonly_partial): Return
11458 target_xfer_status. Add argument xfered_len.
11459 (raw_memory_xfer_partial): Likewise.
11460 (memory_xfer_partial_1): Likewise.
11461 (memory_xfer_partial): Likewise.
11462 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11463 properly. Update debug message.
11464 (default_xfer_partial, current_xfer_partial): Likewise.
11465 (target_write_partial): Likewise.
11466 (target_read_partial): Likewise. All callers updated.
11467 (read_whatever_is_readable): Likewise.
11468 (target_write_with_progress): Likewise.
11469 (target_read_alloc_1): Likewise.
11471 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11472 * auxv.c (procfs_xfer_auxv): Likewise.
11473 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11474 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11475 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11476 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11477 * corefile.c (read_memory): Adjust.
11478 * corelow.c (core_xfer_partial): Likewise.
11479 * ctf.c (ctf_xfer_partial): Likewise.
11480 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11482 (darwin_xfer_partial): Likewise.
11483 * exec.c (section_table_xfer_memory_partial): Likewise. All
11485 (exec_xfer_partial): Likewise.
11486 * exec.h (section_table_xfer_memory_partial): Update
11488 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11490 (gnu_xfer_partial): Likewise.
11491 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11492 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11493 (ia64_hpux_xfer_solib_got): Likewise.
11494 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11495 type of 'partial_len' to ULONGEST.
11496 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11497 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11498 (linux_nat_xfer_partial): Likewise.
11499 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11500 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11501 * monitor.c (monitor_xfer_memory): Likewise.
11502 (monitor_xfer_partial): Likewise.
11503 * procfs.c (procfs_xfer_partial): Likewise.
11504 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11505 * record-full.c (record_full_xfer_partial): Likewise.
11506 (record_full_core_xfer_partial): Likewise.
11507 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11508 (gdbsim_xfer_partial): Likewise.
11509 * remote.c (remote_write_bytes_aux): Likewise. All callers
11511 (remote_write_bytes, remote_read_bytes): Likewise. All
11513 (remote_flash_erase): Likewise. All callers updated.
11514 (remote_write_qxfer): Likewise. All callers updated.
11515 (remote_read_qxfer): Likewise. All callers updated.
11516 (remote_xfer_partial): Likewise.
11517 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11518 (rs6000_xfer_shared_libraries): Likewise.
11519 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11520 (sol_thread_xfer_partial): Likewise.
11521 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11522 (sparc_xfer_partial): Likewise.
11523 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11525 (spu_xfer_partial): Likewise.
11526 * spu-multiarch.c (spu_xfer_partial): Likewise.
11527 * tracepoint.c (tfile_xfer_partial): Likewise.
11528 * windows-nat.c (windows_xfer_memory): Likewise.
11529 (windows_xfer_shared_libraries): Likewise.
11530 (windows_xfer_partial): Likewise.
11531 * valprint.c: Replace 'target_xfer_error' with
11532 'target_xfer_status' in comments.
11534 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11536 Checked in by Joel Brobecker <brobecker@adacore.com>.
11537 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11539 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11541 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11542 function parameters.
11544 2014-02-10 Will Newton <will.newton@linaro.org>
11546 * elfread.c (elf_rel_plt_read): Look for a .got section if
11547 looking up .got.plt fails.
11548 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11549 on address passed to elf_gnu_ifunc_record_cache.
11550 (elf_gnu_ifunc_resolve_addr): Likewise.
11551 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11553 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11555 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11556 (X_RETTURN): New macro.
11557 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11559 * sparc64-tdep.c (sparc64_init_abi): Hook
11560 sparc_in_function_epilogue_p.
11562 2014-02-10 Gary Benson <gbenson@redhat.com>
11564 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11565 Rename name_matcher to symbol_matcher.
11567 2014-02-10 Gary Benson <gbenson@redhat.com>
11569 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11570 Use expand_symtabs_file_matcher_ftype and
11571 expand_symtabs_symbol_matcher_ftype.
11573 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11575 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11576 (struct ada_symbol_cache): New.
11577 (ada_free_symbol_cache): Forward declare.
11578 (struct ada_pspace_data): New.
11579 (ada_pspace_data_handle): New static global.
11580 (get_ada_pspace_data, ada_pspace_data_cleanup)
11581 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11582 (cache_space, cache): Delete, now folded inside struct
11584 (ada_get_symbol_cache): New function.
11585 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11587 (_initialize_ada_language): Remove initialization of cache_space.
11588 Move call to observer_attach_inferior_exit up, grouping it
11589 with the other observer registrations inside this function.
11590 Rename command to be more general. Add call to
11591 register_program_space_data_with_cleanup.
11593 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11595 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11596 ada_new_objfile_observer.
11597 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11598 (_initialize_tasks): Update uses of ada_new_objfile_observer
11599 and ada_tasks_normal_stop_observer.
11601 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11603 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11604 returned by the 'Length attribute to integer.
11606 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11608 * ada-lang.c (_initialize_ada_language): Initialize
11609 cache_space obstack.
11611 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11613 * ada-lang.c (HASH_SIZE): New macro.
11614 (struct cache_entry): New type.
11615 (cache_space, cache): New static globals.
11616 (ada_clear_symbol_cache, find_entry): New functions.
11617 (lookup_cached_symbol, cache_symbol): Implement.
11618 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11619 (_initialize_ada_language): Attach ada_new_objfile_observer
11620 and ada_free_objfile_observer.
11622 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11624 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11625 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11626 struct block * parameter.
11627 (ada_lookup_symbol_list_worker): Constify local variable "block".
11628 Remove cast which is no longer necessary.
11630 2014-02-10 Doug Evans <xdje42@gmail.com>
11632 Add Guile as an extension language.
11633 * NEWS: Mention Guile scripting.
11634 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11635 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11636 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11637 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11638 (CLIBS): Add GUILE_LIBS.
11639 (install-guile): New rule.
11640 (guile.o): New rule.
11641 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11642 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11643 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11644 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11645 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11646 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11647 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11648 * configure.ac: New option --with-guile.
11649 * configure: Regenerate.
11650 * config.in: Regenerate.
11651 * auto-load.c: Remove #include "python/python.h". Add #include
11652 "gdb/section-scripts.h".
11653 (source_section_scripts): Handle Guile scripts.
11654 (_initialize_auto_load): Add name of Guile objfile script to
11655 scripts-directory help text.
11656 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11657 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11658 (struct breakpoint): New member scm_bp_object.
11659 * defs.h (enum command_control_type): New value guile_control.
11660 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11662 (show_user): Update comment.
11663 (_initialize_cli_cmds): Update help text for "show user". Update help
11664 text for max-user-call-depth.
11665 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11667 (multi_line_command_p): Add guile_control.
11668 (print_command_lines): Handle guile_control.
11669 (execute_control_command, recurse_read_control_structure): Ditto.
11670 (process_next_line): Recognize "guile" commands.
11671 * disasm.c (gdb_disassemble_info): Make non-static.
11672 * disasm.h: #include "dis-asm.h".
11673 (struct gdbarch): Add forward decl.
11674 (gdb_disassemble_info): Declare.
11675 * extension.c: #include "guile/guile.h".
11676 (extension_languages): Add guile.
11677 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11678 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11679 * gdbtypes.c (get_unsigned_type_max): New function.
11680 (get_signed_type_minmax): New function.
11681 * gdbtypes.h (get_unsigned_type_max): Declare.
11682 (get_signed_type_minmax): Declare.
11683 * guile/README: New file.
11684 * guile/guile-internal.h: New file.
11685 * guile/guile.c: New file.
11686 * guile/guile.h: New file.
11687 * guile/scm-arch.c: New file.
11688 * guile/scm-auto-load.c: New file.
11689 * guile/scm-block.c: New file.
11690 * guile/scm-breakpoint.c: New file.
11691 * guile/scm-disasm.c: New file.
11692 * guile/scm-exception.c: New file.
11693 * guile/scm-frame.c: New file.
11694 * guile/scm-gsmob.c: New file.
11695 * guile/scm-iterator.c: New file.
11696 * guile/scm-lazy-string.c: New file.
11697 * guile/scm-math.c: New file.
11698 * guile/scm-objfile.c: New file.
11699 * guile/scm-ports.c: New file.
11700 * guile/scm-pretty-print.c: New file.
11701 * guile/scm-safe-call.c: New file.
11702 * guile/scm-string.c: New file.
11703 * guile/scm-symbol.c: New file.
11704 * guile/scm-symtab.c: New file.
11705 * guile/scm-type.c: New file.
11706 * guile/scm-utils.c: New file.
11707 * guile/scm-value.c: New file.
11708 * guile/lib/gdb.scm: New file.
11709 * guile/lib/gdb/boot.scm: New file.
11710 * guile/lib/gdb/experimental.scm: New file.
11711 * guile/lib/gdb/init.scm: New file.
11712 * guile/lib/gdb/iterator.scm: New file.
11713 * guile/lib/gdb/printing.scm: New file.
11714 * guile/lib/gdb/types.scm: New file.
11715 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11716 (VPATH): Add $(GUILE_SRCDIR).
11717 (GUILE_DIR): New variable.
11718 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11719 (all): Add stamp-guile dependency.
11720 (stamp-guile): New rule.
11721 (clean-guile, install-guile, uninstall-guile): New rules.
11722 (install-only): Add install-guile dependency.
11723 (uninstall): Add uninstall-guile dependency.
11724 (clean): Add clean-guile dependency.
11726 2014-02-09 Doug Evans <xdje42@gmail.com>
11728 Revert this patch (which I approved, mea culpa).
11730 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11732 * Makefile.in (all-lib): Remove.
11733 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11735 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11737 Fix Python stack corruption.
11738 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11741 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11743 * Makefile.in (all-lib): Remove.
11744 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11746 2014-02-07 Doug Evans <dje@google.com>
11748 * extension-priv.h (extension_language_script_ops): Add comment.
11749 (extension_language_ops): Add comment.
11750 (active_ext_lang_state): Fix typo in comment.
11752 2014-02-07 Pedro Alves <palves@redhat.com>
11754 PR breakpoints/16292
11755 * infrun.c (handle_signal_stop) <signal arrives while stepping
11756 over a breakpoint>: Switch back to the stepping thread.
11758 2014-02-07 Yao Qi <yao@codesourcery.com>
11760 * target.c (target_xfer_partial): Return zero if LEN is zero.
11762 2014-02-07 Yao Qi <yao@codesourcery.com>
11764 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11765 (ld_so_xfer_auxv): Likewise.
11766 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11767 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11768 * corelow.c (core_xfer_partial): Likewise.
11769 * ctf.c (ctf_xfer_partial): Likewise.
11770 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11771 (darwin_xfer_partial): Likewise.
11772 * exec.c (exec_xfer_partial): Likewise.
11773 * gnu-nat.c (gnu_xfer_partial): Likewise.
11774 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11775 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11776 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11777 * linux-nat.c (linux_xfer_siginfo): Likewise.
11778 (linux_proc_xfer_spu): Likewise.
11779 * procfs.c (procfs_xfer_partial): Likewise.
11780 * record-full.c (record_full_xfer_partial): Likewise.
11781 (record_full_core_xfer_partial): Likewise.
11782 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11783 * remote.c (remote_write_qxfer): Likewise.
11784 (remote_write_qxfer, remote_read_qxfer): Likewise.
11785 (remote_xfer_partial): Likewise.
11786 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11787 (rs6000_xfer_shared_libraries): Likewise.
11788 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11789 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11790 (spu_xfer_partial): Likewise.
11791 * target.c (memory_xfer_partial_1): Likewise.
11792 * tracepoint.c (tfile_xfer_partial): Likewise.
11793 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11794 (windows_xfer_partial): Likewise.
11796 2014-02-07 Yao Qi <yao@codesourcery.com>
11798 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11800 (core_xfer_shared_libraries_aix): Likewise.
11801 * gdbarch.c, gdbarch.h: Regenerated.
11802 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11803 ULONGEST. Change 'len_avail' type to ULONGEST.
11804 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11805 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11807 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11809 2014-02-07 Yao Qi <yao@codesourcery.com>
11811 * corefile.c (memory_error): Get 'exception' from ERR and pass
11812 'exception' to throw_error.
11814 2014-02-06 Doug Evans <xdje42@gmail.com>
11816 * configure.ac (libpython checking): Remove all but python.o from
11817 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11818 * configure: Regenerate.
11820 * Makefile.in (SFILES): Add extension.c.
11821 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11822 (COMMON_OBS): Add extension.o.
11823 * extension.h: New file.
11824 * extension-priv.h: New file.
11825 * extension.c: New file.
11827 * python/python-internal.h: #include "extension.h".
11828 (gdbpy_auto_load_enabled): Declare.
11829 (gdbpy_apply_val_pretty_printer): Declare.
11830 (gdbpy_apply_frame_filter): Declare.
11831 (gdbpy_preserve_values): Declare.
11832 (gdbpy_breakpoint_cond_says_stop): Declare.
11833 (gdbpy_breakpoint_has_cond): Declare.
11834 (void source_python_script_for_objfile): Delete.
11835 * python/python.c: #include "extension-priv.h".
11836 Delete inclusion of "observer.h".
11837 (extension_language_python): Moved here and renamed from
11838 script_language_python in py-auto-load.c.
11839 Redefined to be of type extension_language_defn.
11840 (python_extension_script_ops): New global.
11841 (python_extension_ops): New global.
11842 (struct python_env): New member previous_active.
11843 (restore_python_env): Call restore_active_ext_lang.
11844 (ensure_python_env): Call set_active_ext_lang.
11845 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11847 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11849 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11851 (gdbpy_eval_from_control_command): Renamed from
11852 eval_python_from_control_command, made static. New arg extlang.
11853 (gdbpy_source_script) Renamed from source_python_script, made static.
11855 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11856 result to int. New arg extlang.
11857 (gdbpy_source_objfile_script): Renamed from
11858 source_python_script_for_objfile, made static. New arg extlang.
11859 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11860 static. New args extlang, extlang_printers. Change result type to
11862 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11863 static. New arg extlang. Rename arg printers to extlang_printers
11864 and change type to ext_lang_type_printers *.
11865 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11866 static. Replace argument arg with extlang, extlang_printers.
11867 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11868 (!HAVE_PYTHON, source_python_script): Delete.
11869 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11870 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11871 (!HAVE_PYTHON, start_type_printers): Delete.
11872 (!HAVE_PYTHON, apply_type_printers): Delete.
11873 (!HAVE_PYTHON, free_type_printers): Delete.
11874 (_initialize_python): Delete call to observer_attach_before_prompt.
11875 (finalize_python): Set/restore active extension language.
11876 (gdbpy_finish_initialization) Renamed from
11877 finish_python_initialization, made static. New arg extlang.
11878 (gdbpy_initialized): New function.
11879 * python/python.h: #include "extension.h". Delete #include
11880 "value.h", "mi/mi-cmds.h".
11881 (extension_language_python): Declare.
11882 (GDBPY_AUTO_FILE_NAME): Delete.
11883 (enum py_bt_status): Moved to extension.h and renamed to
11884 ext_lang_bt_status.
11885 (enum frame_filter_flags): Moved to extension.h.
11886 (enum py_frame_args): Moved to extension.h and renamed to
11887 ext_lang_frame_args.
11888 (finish_python_initialization): Delete.
11889 (eval_python_from_control_command): Delete.
11890 (source_python_script): Delete.
11891 (apply_val_pretty_printer): Delete.
11892 (apply_frame_filter): Delete.
11893 (preserve_python_values): Delete.
11894 (gdbpy_script_language_defn): Delete.
11895 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11896 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11898 * auto-load.c: #include "extension.h".
11899 (GDB_AUTO_FILE_NAME): Delete.
11900 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11901 (script_language_gdb): Delete, moved to extension.c and renamed to
11902 extension_language_gdb.
11903 (source_gdb_script_for_objfile): Delete.
11904 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11905 (loaded_script): Change type of language member to
11906 struct extension_language_defn *.
11907 (init_loaded_scripts_info): Initialize
11908 unsupported_script_warning_printed.
11909 (maybe_add_script): Make static. Change type of language arg to
11910 struct extension_language_defn *.
11911 (clear_section_scripts): Reset unsupported_script_warning_printed.
11912 (auto_load_objfile_script_1): Rewrite to use extension language API.
11913 (auto_load_objfile_script): Make public. Remove support-compiled-in
11914 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11915 (source_section_scripts): Rewrite to use extension language API.
11916 (load_auto_scripts_for_objfile): Rewrite to use
11917 auto_load_scripts_for_objfile.
11918 (collect_matching_scripts_data): Change type of language member to
11919 struct extension_language_defn *.
11920 (auto_load_info_scripts): Change type of language arg to
11921 struct extension_language_defn *.
11922 (unsupported_script_warning_print): New function.
11923 (script_not_found_warning_print): Make static.
11924 (_initialize_auto_load): Rewrite construction of scripts-directory
11926 * auto-load.h (struct objfile): Add forward decl.
11927 (struct script_language): Delete.
11928 (struct auto_load_pspace_info): Add forward decl.
11929 (struct extension_language_defn): Add forward decl.
11930 (maybe_add_script): Delete.
11931 (auto_load_objfile_script): Declare.
11932 (script_not_found_warning_print): Delete.
11933 (auto_load_info_scripts): Update prototype.
11934 (auto_load_gdb_scripts_enabled): Declare.
11935 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11936 auto_load_python_scripts_enabled and made public.
11937 (script_language_python): Delete, moved to python.c.
11938 (gdbpy_script_language_defn): Delete.
11939 (info_auto_load_python_scripts): Update to use
11940 extension_language_python.
11942 * breakpoint.c (condition_command): Replace call to
11943 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11944 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11945 with call to breakpoint_ext_lang_cond_says_stop.
11946 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11947 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11948 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11949 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11951 (local_setattro): Print name of extension language with existing
11954 * valprint.c (val_print, value_print): Update to call
11955 apply_ext_lang_val_pretty_printer.
11956 * cp-valprint.c (cp_print_value): Update call to
11957 apply_ext_lang_val_pretty_printer.
11958 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11959 (gdbpy_apply_val_pretty_printer): Renamed from
11960 apply_val_pretty_printer. New arg extlang.
11961 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11963 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11964 extension language API.
11965 * cli/cli-script.c (execute_control_command): Update to call
11966 eval_ext_lang_from_control_command.
11968 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11969 enum ext_lang_bt_status values. Update call to
11970 apply_ext_lang_frame_filter.
11971 (mi_cmd_stack_list_locals): Ditto.
11972 (mi_cmd_stack_list_args): Ditto.
11973 (mi_cmd_stack_list_variables): Ditto.
11974 * mi/mi-main.c: Delete #include "python/python-internal.h".
11975 Add #include "extension.h".
11976 (mi_cmd_list_features): Replace reference to python internal variable
11977 gdb_python_initialized with call to ext_lang_initialized_p.
11979 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11980 Update to use enum ext_lang_frame_args. Update to call
11981 apply_ext_lang_frame_filter.
11982 * python/py-framefilter.c (extract_sym): Update to use enum
11983 ext_lang_bt_status.
11984 (extract_value, py_print_type, py_print_value): Ditto.
11985 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11986 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11987 (py_print_frame): Ditto.
11988 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11989 New arg extlang. Update to use enum ext_lang_bt_status.
11991 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11992 finish_python_initialization. Replace with call to
11993 finish_ext_lang_initialization.
11995 * typeprint.c (do_free_global_table): Update to call
11996 free_ext_lang_type_printers.
11997 (create_global_typedef_table): Update to call
11998 start_ext_lang_type_printers.
11999 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12000 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12001 (type_print_options): Change type of global_printers from "void *"
12002 to "struct ext_lang_type_printers *".
12004 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12005 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12006 (gdbpy_preserve_values): Renamed from preserve_python_values.
12008 (!HAVE_PYTHON, preserve_python_values): Delete.
12010 * utils.c (quit_flag): Delete, moved to extension.c.
12011 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12014 * eval.c: Delete #include "python/python.h".
12015 * main.c: Delete #include "python/python.h".
12017 * defs.h: Update comment.
12019 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12023 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12025 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12028 2014-02-05 Yao Qi <yao@codesourcery.com>
12030 * remote.c (remote_pass_signals): Remove local 'buf' and use
12032 (remote_program_signals): Likewise.
12034 2014-02-05 Yao Qi <yao@codesourcery.com>
12036 * ctf.c: Include "inferior.h" and "gdbthread.h".
12037 (CTF_PID): A new macro.
12038 (ctf_open): Call inferior_appeared and add_thread_silent.
12039 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12040 (ctf_thread_alive): New function.
12041 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12043 2014-02-05 Yao Qi <yao@codesourcery.com>
12047 2013-05-24 Yao Qi <yao@codesourcery.com>
12049 * tracepoint.c (TFILE_PID): Remove.
12050 (tfile_open): Don't add thread and inferior.
12051 (tfile_close): Don't set 'inferior_ptid'. Don't call
12052 exit_inferior_silent.
12053 (tfile_thread_alive): Remove.
12054 (init_tfile_ops): Don't set field 'to_thread_alive' of
12057 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12059 * remote.c (remote_start_remote): Call remote_check_symbols even
12060 if only symbol-file (not file) has been given.
12062 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12064 * gdbarch.sh (skip_entrypoint): New callback.
12065 * gdbarch.c, gdbarch.h: Regenerate.
12066 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12067 * infrun.c (fill_in_stop_func): Likewise.
12068 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12069 (ppc_elfv2_elf_make_msymbol_special): New function.
12070 (ppc_elfv2_skip_entrypoint): Likewise.
12071 (ppc_linux_init_abi): Install them for ELFv2.
12073 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12075 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12076 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12077 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12078 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12079 structures returned in GPRs.
12081 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12083 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12084 offset to the stack parameter list for the ELFv2 ABI.
12086 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12088 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12089 set_gdbarch_convert_from_func_ptr_addr and
12090 set_gdbarch_elf_make_msymbol_special for ELFv1.
12091 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12092 function descriptors on ELFv1.
12093 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12094 set up r12 at function entry.
12096 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12098 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12099 (struct gdbarch_tdep): New member elf_abi.
12101 * rs6000-tdep.c: Include "elf/ppc64.h".
12102 (rs6000_gdbarch_init): Detect ELF ABI version.
12104 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12106 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12107 within a register pair holding a DFP 128-bit value on little-endian.
12108 (ppc64_sysv_abi_return_value_base): Likewise.
12109 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12110 (dfp_pseudo_register_write): Likewise.
12112 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12114 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12115 offset on little-endian when passing _Decimal32.
12116 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12118 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12120 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12121 of the overlapped FP register within the VSX register on little-
12123 (efpr_pseudo_register_write): Likewise.
12125 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12127 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12128 offset on little-endian when passing small structures.
12130 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12132 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12133 (struct ppc64_sysv_argpos): New data structure.
12134 (ppc64_sysv_abi_push_float): Remove.
12135 (ppc64_sysv_abi_push_val): New function.
12136 (ppc64_sysv_abi_push_integer): Likewise.
12137 (ppc64_sysv_abi_push_freg): Likewise.
12138 (ppc64_sysv_abi_push_vreg): Likewise.
12139 (ppc64_sysv_abi_push_param): Likewise.
12140 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12141 (ppc64_sysv_abi_return_value_base): New function.
12142 (ppc64_sysv_abi_return_value): Refactor to use it.
12144 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12146 * NEWS: Document new target powerpc64le-*-linux*.
12148 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12150 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12151 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12153 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12154 register set used in ELF core dumps. Add floating-point register set.
12156 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12158 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12159 dwarf2_to_gdb[] table using symbolic constants. Adjust
12160 penultimate entry from number representing the PC register
12161 to symbolic constant representing the MDR register. Add
12162 constant for the PC register to the end of the table.
12164 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12166 * bsd-kvm.c: Include <sys/param.h>
12168 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12170 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12172 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12174 * ada-lang.h (clear_ada_sym_cache): Delete.
12176 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12178 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12180 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12182 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12183 the sigreturn register save area only if the syscall is
12186 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12188 * valops.c (value_slice): Minor reformatting.
12190 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12192 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12194 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12196 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12197 New static globals.
12198 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12199 (ada_ignore_descriptive_types_p): New static global.
12200 (find_parallel_type_by_descriptive_type): Return immediately
12201 if ada_ignore_descriptive_types_p is set.
12202 (_initialize_ada_language): Register new commands "maintenance
12203 set ada", "maintenance show ada", "maintenance set ada
12204 ignore-descriptive-types" and "maintenance show ada
12205 ignore-descriptive-types".
12206 * NEWS: Add entry for new "maint ada set/show
12207 ignore-descriptive-types" commands.
12209 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12211 * record-btrace.c (record_btrace_close): Call btrace_teardown
12214 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12216 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12219 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12221 * ada-typeprint (type_is_full_subrange_of_target_type):
12223 (print_range): Add parameter bounds_prefered_p. If not set,
12224 try printing range types using the name of their base type.
12225 (print_range_type): Add parameter bounds_prefered_p.
12226 Use it in call to print_range.
12227 (print_array_type, ada_print_type): Update calls to print_range
12228 and print_range_type.
12230 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12232 * ada-typeprint.c (print_array_type, print_choices, print_range)
12233 (print_range_bound, print_dynamic_range_bound, print_range_type):
12234 Remove declaration.
12236 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12238 * ada-typeprint.c (print_range): Add missing empty line
12239 after local declaration.
12241 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12243 * ada-valprint.c (print_optional_low_bound): Get index_type's
12244 target type for as long as it is a TYPE_CODE_RANGE.
12246 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12248 * procfs.c (procfs_make_note_section): Remove assertion and
12249 associated comment.
12251 2014-01-24 Yao Qi <yao@codesourcery.com>
12253 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12254 * corelow.c (get_core_siginfo): Likewise.
12256 2014-01-24 Yao Qi <yao@codesourcery.com>
12258 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12259 ULONGEST. Don't check 'len' is negative.
12260 (remote_write_bytes): Change type of 'len' to ULONGEST.
12262 2014-01-23 Tom Tromey <tromey@redhat.com>
12265 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12266 Handle exception from frame.block.
12267 (FrameVars.fetch_frame_locals): Likewise.
12269 2014-01-23 Tom Tromey <tromey@redhat.com>
12272 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12273 on a NULL pointer. Move "goto error" to correct place.
12275 2014-01-23 Tom Tromey <tromey@redhat.com>
12278 * python/py-framefilter.c (apply_frame_filter): Call
12279 ensure_python_env after computing gdbarch.
12281 2014-01-23 Yao Qi <yao@codesourcery.com>
12283 * target.c (raw_memory_xfer_partial): Change argument type
12284 from void * to gdb_byte *.
12285 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12287 2014-01-22 Doug Evans <dje@google.com>
12289 New gdbserver option --debug-format=timestamp.
12290 * NEWS: Mention it.
12292 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12294 * syscalls/s390x-linux.xml: New file.
12295 * syscalls/s390-linux.xml: New file.
12296 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12297 (XML_SYSCALL_FILENAME_S390X): Likewise.
12298 (op_svc): New enum value for SVC opcode.
12299 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12300 (s390_linux_get_syscall_number): New function.
12301 (s390_gdbarch_init): Register '*get_syscall_number' and the
12302 syscall xml file name.
12303 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12304 "s390-linux.xml" and "s390x-linux.xml".
12305 * NEWS: Announce new feature.
12307 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12309 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12311 2014-01-22 Pedro Alves <palves@redhat.com>
12313 * xtensa-config.c: Include defs.h.
12315 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12317 * common/common-utils.h: Add "ARI:" comment beside __func__
12320 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12322 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12323 documentation a bit.
12325 2014-01-21 Roland McGrath <mcgrathr@google.com>
12327 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12328 * configure: Regenerate.
12329 * aclocal.m4: Regenerate.
12330 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12331 New substituted variables.
12332 (install-strip): New target.
12333 (INSTALL_SCRIPT): New substituted variable.
12334 (FLAGS_TO_PASS): Add it.
12335 (install-only): Use $(INSTALL_SCRIPT) rather than
12336 $(INSTALL_PROGRAM) for gcore.
12338 2014-01-20 Tom Tromey <tromey@redhat.com>
12340 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12343 2014-01-20 Tom Tromey <tromey@redhat.com>
12345 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12346 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12347 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12348 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12349 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12350 (struct cmd_list_element) <flags>: Remove.
12351 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12352 doc_allocated>: New fields.
12353 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12355 * maint.c (maintenance_do_deprecate): Update.
12356 * top.c (execute_command): Update.
12358 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12360 * xtensa-linux-nat.c: Include asm/ptrace.h.
12362 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12364 * Makefile.in (SFILES): Add d-support.c.
12365 (COMMON_OBS): Add d-support.o.
12366 * d-lang.h (d_parse_symbol): Add comment, now defined in
12368 * d-lang.c (parse_call_convention)
12369 (parse_attributes, parse_function_types)
12370 (parse_function_args, parse_type, parse_identifier)
12371 (call_convention_p, d_parse_symbol): Move functions to ...
12372 * d-support.c: ... New file.
12374 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12376 * d-lang.h (d_parse_symbol): Add declaration.
12377 * d-lang.c (extract_identifiers)
12378 (extract_type_info): Remove functions.
12379 (parse_call_convention, parse_attributes)
12380 (parse_function_types, parse_function_args)
12381 (parse_type, parse_identifier, call_convention_p)
12382 (d_parse_symbol): New functions.
12383 (d_demangle): Use d_parse_symbol to demangle D symbols.
12385 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12387 * d-lang.h (struct builtin_d_type): New data type.
12388 (builtin_d_type): Add declaration.
12389 * d-lang.c (d_language_arch_info, build_d_types)
12390 (builtin_d_type): New functions.
12391 (enum d_primitive_types): New data type.
12392 (d_language_defn): Change c_language_arch_info to
12393 d_language_arch_info.
12394 (d_type_data): New static variable.
12395 (_initialize_d_language): Initialize d_type_data.
12397 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12399 * d-lang.h (d_main_name): Add declaration.
12400 * d-lang.c (d_main_name): New function.
12401 * symtab.c (find_main_name): Add call to d_main_name.
12403 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12405 * d-lang.c (d_language_defn): Change macro_expansion_c to
12406 macro_expansion_no.
12408 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12410 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12412 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12414 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12415 gdb_exception" declaration.
12416 * remote.c (getpkt_or_notif_sane): Likewise.
12418 2014-01-17 Doug Evans <dje@google.com>
12420 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12421 function, contents of dirnames_to_char_ptr_vec_append moved here.
12422 (delim_string_to_char_ptr_vec): New function.
12423 (dirnames_to_char_ptr_vec_append): Rewrite.
12424 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12426 2014-01-17 Doug Evans <dje@google.com>
12428 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12430 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12431 #include "common-utils.h".
12432 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12433 * common/vec.h (VEC_ASSERT_PASS): Update.
12434 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12435 (MACH_CHECK_ERROR): Update.
12437 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12439 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12441 * gdbarch.h: Regenerate.
12443 2014-01-16 Tom Tromey <tromey@redhat.com>
12445 * value.c (struct value) <regnum>: Move earlier.
12447 2014-01-16 Tom Tromey <tromey@redhat.com>
12449 * remote.c (extended_remote_create_inferior): Rename from
12450 extended_remote_create_inferior_1. Add "ops" argument. Remove
12451 old implementation.
12453 2014-01-16 Pedro Alves <palves@redhat.com>
12455 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12456 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12459 2014-01-16 Doug Evans <dje@google.com>
12461 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12463 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12465 * btrace.h (btrace_thread_flag): New.
12466 (struct btrace_thread_info) <flags>: New.
12467 * record-btrace.c (record_btrace_resume_thread)
12468 (record_btrace_find_thread_to_move, btrace_step_no_history)
12469 (btrace_step_stopped, record_btrace_start_replaying)
12470 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12471 (record_btrace_find_resume_thread): New.
12472 (record_btrace_resume, record_btrace_wait): Extend.
12473 (record_btrace_can_execute_reverse): New.
12474 (record_btrace_open): Fail in non-stop mode.
12475 (record_btrace_set_replay): Split into this, ...
12476 (record_btrace_stop_replaying): ... this, ...
12477 (record_btrace_clear_histories): ... and this.
12478 (init_record_btrace_ops): Init to_can_execute_reverse.
12479 * NEWS: Announce it.
12481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12483 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12484 (forward_target_decr_pc_after_break)
12485 (target_decr_pc_after_break): New.
12486 * target.c (forward_target_decr_pc_after_break)
12487 (target_decr_pc_after_break): New.
12488 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12489 instead of gdbarch_decr_pc_after_break.
12490 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12491 instead of gdbarch_decr_pc_after_break.
12492 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12493 instead of gdbarch_decr_pc_after_break.
12494 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12495 instead of gdbarch_decr_pc_after_break.
12496 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12497 instead of gdbarch_decr_pc_after_break.
12498 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12499 instead of gdbarch_decr_pc_after_break.
12501 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12503 * btrace.c: Include regcache.h.
12504 (btrace_add_pc): New.
12505 (btrace_enable): Call btrace_add_pc.
12506 (btrace_is_empty): New.
12507 * btrace.h (btrace_is_empty): New.
12508 * record-btrace.c (require_btrace, record_btrace_info): Call
12511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12513 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12514 Support delta reads.
12515 (linux_disable_btrace): Change return type.
12516 * common/linux-btrace.h (linux_read_btrace): Change parameters
12517 and return type to allow error reporting. Update users.
12518 (linux_disable_btrace): Change return type. Update users.
12519 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12521 (btrace_error): New.
12522 (btrace_block) <begin>: Comment on BEGIN == 0.
12523 * btrace.c (btrace_compute_ftrace): Start from the end of
12525 (btrace_stitch_trace, btrace_clear_history): New.
12526 (btrace_fetch): Read delta trace, return if replaying.
12527 (btrace_clear): Move clear history code to btrace_clear_history.
12528 (parse_xml_btrace): Throw an error if parsing failed.
12529 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12530 and return type to allow error reporting.
12531 (target_read_btrace): Change parameters and return type to allow
12533 * target.c (target_read_btrace): Update.
12534 * remote.c (remote_read_btrace): Support delta reads. Pass
12536 * NEWS: Announce it.
12538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12540 * record.h (record_btrace_frame_unwind)
12541 (record_btrace_tailcall_frame_unwind): New declarations.
12542 * dwarf2-frame: Include record.h
12543 (dwarf2_frame_cfa): Throw an error for btrace frames.
12544 * record-btrace.c: Include hashtab.h.
12545 (btrace_get_bfun_name): New.
12546 (btrace_call_history): Call btrace_get_bfun_name.
12547 (struct btrace_frame_cache): New.
12549 (bfcache_hash, bfcache_eq, bfcache_new): New.
12550 (btrace_get_frame_function): New.
12551 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12552 (record_btrace_frame_this_id): Compute own id.
12553 (record_btrace_frame_prev_register): Provide PC, throw_error
12554 for all other registers.
12555 (record_btrace_frame_sniffer): Detect btrace frames.
12556 (record_btrace_tailcall_frame_sniffer): New.
12557 (record_btrace_frame_dealloc_cache): New.
12558 (record_btrace_frame_unwind): Add new functions.
12559 (record_btrace_tailcall_frame_unwind): New.
12560 (_initialize_record_btrace): Allocate cache.
12561 * btrace.c (btrace_clear): Call reinit_frame_cache.
12562 * NEWS: Announce it.
12564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12566 * record-btrace.c (record_btrace_set_replay)
12567 (record_btrace_goto_begin, record_btrace_goto_end)
12568 (record_btrace_goto): New.
12569 (init_record_btrace_ops): Initialize them.
12570 * NEWS: Announce it.
12572 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12574 * record-btrace.c (record_btrace_find_new_threads)
12575 (record_btrace_thread_alive): New.
12576 (init_record_btrace_ops): Initialize to_find_new_threads and
12579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12581 * record-btrace.c (record_btrace_resume): New.
12582 (record_btrace_wait): New.
12583 (init_record_btrace_ops): Initialize to_wait and to_resume.
12585 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12587 * record-btrace.c (record_btrace_xfer_partial)
12588 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12589 (record_btrace_allow_memory_access): New.
12590 (init_record_btrace_ops): Initialize new methods.
12591 * target.c (raw_memory_xfer_partial): Bail out if target reports
12592 that this memory is not available.
12594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12596 * target.h (target_ops) <to_insert_breakpoint>
12597 <to_remove_breakpoint>: Add target_ops parameter.
12598 (forward_target_insert_breakpoint): New.
12599 (forward_target_remove_breakpoint): New.
12600 (memory_remove_breakpoint, memory_insert_breakpoint):
12601 Add target_ops parameter.
12602 * target.c (target_insert_breakpoint): Split into this and ...
12603 (forward_target_insert_breakpoint): ... this.
12604 (target_remove_breakpoint): Split into this and ...
12605 (forward_target_remove_breakpoint): ... this.
12606 (debug_to_insert_breakpoint): Add target_ops parameter.
12607 Call forward_target_insert_breakpoint.
12608 (debug_to_remove_breakpoint): Add target_ops parameter.
12609 Call forward_target_remove_breakpoint.
12610 (update_current_target): Do not inherit or default to_insert_breakpoint
12611 and to_remove_breakpoint.
12612 * corelow.c (ignore): Add target_ops parameter.
12613 * exec.c (ignore): Add target_ops parameter.
12614 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12615 Add target_ops parameter.
12616 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12617 Add target_ops parameter.
12618 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12619 Add target_ops parameter.
12620 * record-full.c (record_full_beneath_to_insert_breakpoint)
12621 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12622 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12623 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12624 (record_full_core_remove_breakpoint): Add target_ops parameter.
12626 (record_full_beneath_to_insert_breakpoint_ops)
12627 (record_full_beneath_to_remove_breakpoint_ops)
12628 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12629 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12630 tmp_to_remove_breakpoint_ops,
12631 record_full_beneath_to_insert_breakpoint_ops, and
12632 record_full_beneath_to_remove_breakpoint_ops.
12633 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12634 (m32r_remove_breakpoint): Add target_ops parameter.
12635 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12636 Add target_ops parameter.
12637 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12638 Add target_ops parameter.
12640 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12641 Markus Metzger <markus.t.metzger@intel.com>
12643 * record-btrace.c: Include frame-unwind.h.
12644 (record_btrace_frame_unwind_stop_reason)
12645 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12646 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12648 (init_record_btrace_ops): Install it.
12650 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12652 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12655 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12657 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12660 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12662 * frame-unwind.c: Include target.h.
12663 (frame_unwind_try_unwinder): New function with code from ...
12664 (frame_unwind_find_by_frame): ... here. New variable
12665 unwinder_from_target, call also target_get_unwinder)
12666 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12667 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12668 * target.h (struct target_ops): New fields to_get_unwinder and
12669 to_get_tailcall_unwinder.
12670 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12674 * record-btrace.c (record_btrace_fetch_registers)
12675 (record_btrace_store_registers)
12676 (record_btrace_to_prepare_to_store): New.
12677 (init_record_btrace_ops): Add the above.
12679 2014-01-16 Tom Tromey <tromey@redhat.com>
12681 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12682 * target.h (struct target_ops) <to_prepare_to_store>: Add
12684 (target_prepare_to_store): Add argument.
12685 * target.c (debug_to_prepare_to_store): Add argument.
12686 (update_current_target): Update.
12687 * remote.c (remote_prepare_to_store): Add 'self' argument.
12688 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12689 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12690 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12691 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12693 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12694 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12695 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12696 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12697 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12701 * btrace.h (replay) <replay>: New.
12702 (btrace_is_replaying): New.
12703 * btrace.c (btrace_clear): Free replay iterator.
12704 (btrace_is_replaying): New.
12705 * record-btrace.c (record_btrace_is_replaying): New.
12706 (record_btrace_info): Print insn number if replaying.
12707 (record_btrace_insn_history): Start at replay position.
12708 (record_btrace_call_history): Start at replay position.
12709 (init_record_btrace_ops): Init to_record_is_replaying.
12711 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12713 * record-btrace.c (record_btrace_insn_history_range): Include
12715 (record_btrace_insn_history_from): Adjust range.
12716 (record_btrace_call_history_range): Include
12718 (record_btrace_call_history_from): Adjust range.
12719 * NEWS: Announce changes.
12721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12723 * record.h (enum record_print_flag)
12724 <record_print_indent_calls>: New.
12725 * record.c (get_call_history_modifiers): Recognize /c modifier.
12726 (_initialize_record): Document /c modifier.
12727 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12728 Reorder fields. Optionally indent the function name. Update
12730 * NEWS: Announce changes.
12732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12734 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12738 * btrace.c (ftrace_new_function): Start counting at one.
12739 * record-btrace.c (record_btrace_info): Adjust number of calls
12741 * NEWS: Announce it.
12743 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12745 * record-btrace.c (btrace_call_history_insn_range): Print
12746 insn range as [begin, end].
12748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12750 * btrace.h (struct btrace_func_link): New.
12751 (enum btrace_function_flag): New.
12752 (struct btrace_inst): Rename to ...
12753 (struct btrace_insn): ...this. Update all users.
12754 (struct btrace_func) <ibegin, iend>: Remove.
12755 (struct btrace_func_link): New.
12756 (struct btrace_func): Rename to ...
12757 (struct btrace_function): ...this. Update all users.
12758 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12759 (number, level, flags>: New.
12760 (struct btrace_insn_iterator): Rename to ...
12761 (struct btrace_insn_history): ...this.
12763 (struct btrace_insn_iterator, btrace_call_iterator): New.
12764 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12765 (struct btrace_target_info) <begin, end, level>
12766 <insn_history, call_history>: New.
12767 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12768 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12769 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12770 (btrace_call_number, btrace_call_begin, btrace_call_end)
12771 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12772 (btrace_find_function_by_number, btrace_set_insn_history)
12773 (btrace_set_call_history): New.
12774 * btrace.c (btrace_init_insn_iterator)
12775 (btrace_init_func_iterator, compute_itrace): Remove.
12776 (ftrace_print_function_name, ftrace_print_filename)
12777 (ftrace_skip_file): Change
12778 parameter to const.
12779 (ftrace_init_func): Remove.
12780 (ftrace_debug): Use new btrace_function fields.
12781 (ftrace_function_switched): Also consider gaining and
12782 losing symbol information).
12783 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12784 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12785 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12787 (ftrace_new_function): Move. Remove debug print.
12788 (ftrace_update_lines, ftrace_update_insns): New.
12789 (ftrace_update_function): Check for call, ret, and jump.
12790 (compute_ftrace): Renamed to ...
12791 (btrace_compute_ftrace): ...this. Rewritten to compute call
12793 (btrace_fetch, btrace_clear): Updated.
12794 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12795 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12796 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12797 (btrace_call_number, btrace_call_begin, btrace_call_end)
12798 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12799 (btrace_find_function_by_number, btrace_set_insn_history)
12800 (btrace_set_call_history): New.
12801 * record-btrace.c (require_btrace): Use new btrace thread
12803 (record_btrace_info, btrace_insn_history)
12804 (record_btrace_insn_history, record_btrace_insn_history_range):
12805 Use new btrace thread info fields and new iterator.
12806 (btrace_func_history_src_line): Rename to ...
12807 (btrace_call_history_src_line): ...this. Use new btrace
12808 thread info fields.
12809 (btrace_func_history): Rename to ...
12810 (btrace_call_history): ...this. Use new btrace thread info
12811 fields and new iterator.
12812 (record_btrace_call_history, record_btrace_call_history_range):
12813 Use new btrace thread info fields and new iterator.
12815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12817 * frame.h (frame_id_build_unavailable_stack_special): New.
12818 * frame.c (frame_id_build_unavailable_stack_special): New.
12820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12822 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12823 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12824 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12826 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12827 (i386_insn_is_jump, i386_jmp_p): New.
12828 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12829 insn_is_jump to gdbarch.
12830 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12831 * gdbarch.h: Regenerated.
12832 * gdbarch.c: Regenerated.
12833 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12834 (default_insn_is_jump): New.
12835 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12836 (default_insn_is_jump): New.
12838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12840 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12842 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12843 (btrace_read_type) <btrace_read_new>: Change to ...
12844 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12848 * common/linux-btrace.c (linux_read_btrace): Free trace from
12849 previous iteration.
12851 2014-01-15 Doug Evans <dje@google.com>
12853 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12856 2014-01-15 Tom Tromey <tromey@redhat.com>
12858 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12859 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12860 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12861 (set_objfile_main_name): New function.
12862 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12863 language_of_main>: New fields.
12864 (set_objfile_main_name): Declare.
12865 * symtab.c (find_main_name): Loop over objfiles to find the main
12867 (set_main_name): Now static.
12868 (get_main_info): Add comment.
12869 * symtab.h (set_main_name): Don't declare.
12871 2014-01-15 Tom Tromey <tromey@redhat.com>
12873 * symtab.c (main_progspace_key): New global.
12874 (struct main_info): New.
12875 (name_of_main, language_of_main): Remove.
12876 (get_main_info, main_info_cleanup): New function.
12877 (set_main_name, main_name, main_language): Use get_main_info.
12878 (_initialize_symtab): Initialize main_progspace_key.
12880 2014-01-15 Tom Tromey <tromey@redhat.com>
12882 * dbxread.c (process_one_symbol): Update.
12883 * dwarf2read.c (read_partial_die): Update.
12884 * symfile.c (set_initial_language): Call main_language.
12885 * symtab.c (language_of_main): Now static.
12886 (set_main_name): Add 'lang' parameter.
12887 (find_main_name): Update.
12888 (main_language): New function.
12889 (symtab_observer_executable_changed): Update.
12890 * symtab.h (set_main_name): Update.
12891 (language_of_main): Remove.
12892 (main_language): Declare.
12894 2014-01-15 Tom Tromey <tromey@redhat.com>
12896 * symfile.c (init_entry_point_info): Use new "initialized" field.
12898 * objfiles.h (struct entry_point) <initialized>: New field.
12899 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12900 (struct objfile) <ei>: ...here. Remove.
12901 * objfiles.c (entry_point_address_query): Update.
12903 2014-01-15 Tom Tromey <tromey@redhat.com>
12905 * objfiles.c (entry_point_address_query): Relocate entry point
12907 (objfile_relocate1): Do not relocate entry point address.
12908 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12909 <the_bfd_section_index>: New field.
12910 * symfile.c (init_entry_point_info): Find the entry point's
12913 2014-01-15 Tom Tromey <tromey@redhat.com>
12915 * solib-frv.c (enable_break): Use entry_point_address_query.
12917 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12919 * NEWS: Add note on improved process record-replay on
12920 arm*-linux* targets.
12922 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12924 * arm-tdep.c (enum arm_record_result): New enum.
12925 (arm_record_unsupported_insn): New function.
12926 (arm_record_coproc_data_proc): Removed.
12927 (thumb2_record_ld_st_multiple): New function.
12928 (thumb2_record_ld_st_dual_ex_tbb): New function.
12929 (thumb2_record_data_proc_sreg_mimm): New function.
12930 (thumb2_record_ps_dest_generic): New function.
12931 (thumb2_record_branch_misc_cntrl): New function.
12932 (thumb2_record_str_single_data): New function.
12933 (thumb2_record_ld_mem_hints): New function.
12934 (thumb2_record_ld_word): New function.
12935 (thumb2_record_lmul_lmla_div): New function.
12936 (thumb2_record_decode_insn_handler): New function.
12937 (decode_insn): Add thumb32 instruction handlers.
12939 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12941 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12942 (struct arm_linux_record_tdep): Declare.
12943 (arm_canonicalize_syscall): New function.
12944 (arm_all_but_pc_registers_record): New function.
12945 (arm_linux_syscall_record): New function.
12946 (arm_linux_init_abi): Add syscall recording constructs.
12947 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12948 decoding. (arm_record_coproc_data_proc): Update arm syscall
12950 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12951 <arm_syscall_record>: New field.
12952 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12955 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12957 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12958 register for push instruction recording.
12960 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12962 * arm-tdep.c (thumb_record_misc): Update to correct logical
12963 error while recording ldm, ldmia and pop instructions.
12965 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12967 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12969 2014-01-15 Pedro Alves <palves@redhat.com>
12971 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12972 (go32_resume, go32_fetch_registers, store_register)
12973 (go32_store_registers, go32_prepare_to_store)
12974 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12975 (go32_create_inferior, go32_can_run, go32_terminal_init)
12976 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12979 2014-01-15 Tom Tromey <tromey@redhat.com>
12981 * target.h (async_callback_ftype): New typedef.
12982 (struct target_ops) <to_async>: Use it.
12984 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12986 * python/py-value.c (get_field_type): Remove unnecessary curly
12987 braces for single-statement if block.
12989 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12991 * python/py-type.c (convert_field): Add missing empty line
12992 after declarations.
12994 2014-01-14 Doug Evans <dje@google.com>
12996 * symfile.h (expand_symtabs_matching): Renamed from
12997 expand_partial_symbol_names. Update prototype.
12998 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12999 * symfile.c (expand_symtabs_matching): Renamed from
13000 expand_partial_symbol_names. New args file_matcher, kind.
13001 Rename arg fun to symbol_matcher.
13002 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13003 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13004 ada_expand_partial_symbol_name.
13005 (ada_make_symbol_completion_list): Update to call
13006 expand_symtabs_matching.
13007 (ada_add_global_exceptions): Call expand_symtabs_matching.
13008 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13009 call map_symbol_filenames.
13010 * symtab.c (sources_info): Update to call map_symbol_filenames.
13011 (search_symbols): Call expand_symtabs_matching.
13012 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13013 (default_make_symbol_completion_list_break_on): Update to call
13014 expand_symtabs_matching.
13015 (make_source_files_completion_list): Update to call
13016 map_symbol_filenames.
13018 2014-01-14 Doug Evans <dje@google.com>
13020 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13021 (expand_symtabs_symbol_matcher_ftype): New typedef.
13022 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13023 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13024 * symfile.c (expand_partial_symbol_names): Update to use
13025 expand_symtabs_symbol_matcher_ftype.
13026 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13027 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13028 Arg name_matcher renamed to symbol_matcher.
13029 * psymtab.c (recursively_search_psymtabs): Update to use
13030 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13032 (expand_symtabs_matching_via_partial): Update to use
13033 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13034 Arg name_matcher renamed to symbol_matcher.
13036 2014-01-14 Doug Evans <dje@google.com>
13038 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13039 (map_partial_symbol_filenames): Ditto.
13040 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13041 (map_partial_symbol_filenames): Ditto.
13042 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13043 (map_partial_symbol_filenames): Ditto.
13044 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13045 (map_partial_symbol_filenames): Ditto.
13046 * symtab.c: Delete #include "psymtab.h".
13048 2014-01-14 Pedro Alves <palves@redhat.com>
13049 Tom Tromey <tromey@redhat.com>
13051 * infrun.c (use_displaced_stepping): Use find_record_target
13052 instead of RECORD_IS_USED.
13053 (adjust_pc_after_break): Use record_full_is_used instead of
13055 * record-btrace.c (record_btrace_open): Call record_preopen
13056 instead of checking RECORD_IS_USED.
13057 * record-full.c (record_full_shortname)
13058 (record_full_core_shortname): New globals.
13059 (record_full_is_used): New function.
13060 (find_full_open): Call record_preopen instead of checking
13062 (init_record_full_ops): Set the target's shortname to
13063 record_full_shortname.
13064 (init_record_full_core_ops): Set the target's shortname to
13065 record_full_core_shortname.
13066 * record-full.h (record_full_is_used): Declare.
13067 * record.c (find_record_target): Make extern.
13068 (record_preopen): New function.
13069 * record.h (RECORD_IS_USED): Delete macro.
13070 (find_record_target, record_preopen): Declare functions.
13072 2014-01-14 Yao Qi <yao@codesourcery.com>
13074 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13075 'len''s type to ULONGEST.
13076 (core_xfer_shared_libraries_aix): Likewise.
13077 * gdbarch.c, gdbarch.h: Regenerated.
13078 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13079 Change type of 'len' to ULONGEST.
13080 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13081 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13083 2014-01-14 Yao Qi <yao@codesourcery.com>
13085 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13086 type of 'len' to ULONGEST.
13087 (linux_xfer_osdata_processgroups): Likewise.
13088 (linux_xfer_osdata_threads): Likewise.
13089 (linux_xfer_osdata_fds): Likewise.
13090 (linux_xfer_osdata_isockets): Likewise.
13091 (linux_xfer_osdata_shm): Likewise.
13092 (linux_xfer_osdata_sem): Likewise.
13093 (linux_xfer_osdata_msg): Likewise.
13094 (linux_common_xfer_osdata): Likewise.
13095 (struct osdata_type) <getter>: Likewise.
13096 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13099 2014-01-14 Yao Qi <yao@codesourcery.com>
13101 * target.h (target_xfer_partial_ftype): Update.
13102 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13104 * aix-thread.c (aix_thread_xfer_partial): Change type of
13105 argument 'len' to ULONGEST.
13106 * auxv.c (procfs_xfer_auxv): Likewise.
13107 (ld_so_xfer_auxv): Likewise.
13108 (memory_xfer_auxv): Likewise.
13109 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13110 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13111 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13112 * corelow.c (core_xfer_partial): Likewise.
13113 * ctf.c (ctf_xfer_partial): Likewise.
13114 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13116 (darwin_read_dyld_info): Likewise.
13117 (darwin_xfer_partial): Likewise.
13118 * exec.c (section_table_xfer_memory_partial): Likewise.
13119 (exec_xfer_partial): Likewise.
13120 * exec.h (section_table_xfer_memory_partial): Update
13122 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13123 instead of plongest.
13124 (gnu_xfer_partial): Likewise.
13125 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13126 (ia64_hpux_xfer_solib_got): Likewise.
13127 (ia64_hpux_xfer_partial): Likewise.
13128 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13129 * inf-ptrace.c (inf_ptrace_xfer_partial):
13130 * inf-ttrace.c (inf_ttrace_xfer_partial):
13131 * linux-nat.c (linux_xfer_siginfo): Likewise.
13132 (linux_nat_xfer_partial): Likewise.
13133 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13134 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13135 * monitor.c (monitor_xfer_memory): Likewise.
13136 (monitor_xfer_partial): Likewise.
13137 * procfs.c (procfs_xfer_partial): Likewise.
13138 * record-full.c (record_full_xfer_partial): Likewise.
13139 (record_full_core_xfer_partial): Likewise.
13140 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13141 instead of plongest.
13142 (gdbsim_xfer_partial): Likewise.
13143 * remote.c (remote_xfer_partial): Likewise.
13144 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13145 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13147 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13148 (rs6000_xfer_shared_libraries): Likewise.
13149 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13150 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13151 (sparc_xfer_partial): Likewise.
13152 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13153 (spu_xfer_partial): Likewise.
13154 * spu-multiarch.c (spu_xfer_partial): Likewise.
13155 * target.c (target_read_live_memory): Likewise.
13156 (memory_xfer_live_readonly_partial): Likewise.
13157 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13158 (target_xfer_partial, default_xfer_partial): Likewise.
13159 (current_xfer_partial): Likewise.
13160 * tracepoint.c (tfile_xfer_partial): Likewise.
13161 * windows-nat.c (windows_xfer_memory): Likewise. Call
13162 pulongest instead of plongest.
13163 (windows_xfer_partial): Likewise.
13164 (windows_xfer_shared_libraries): Likewise.
13166 2014-01-14 Yao Qi <yao@codesourcery.com>
13168 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13169 target_xfer_partial_ftype.
13171 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13175 * valops.c (value_struct_elt_bitpos): New function
13176 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13177 object to 'None' if the field name is an empty string ("").
13178 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13179 attribute to look for a field when 'name' is 'None'.
13180 (get_field_type): New function
13182 2014-01-13 Doug Evans <dje@google.com>
13185 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13186 (try_open_dwop_file): Ditto.
13187 * gdb_bfd.c: #include "vec.h".
13188 (bfdp): New typedef.
13189 (struct gdb_bfd_data): New member included_bfds.
13190 (gdb_bfd_unref): Unref all included bfds.
13191 (gdb_bfd_record_inclusion): New function.
13192 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13194 2014-01-13 Tom Tromey <tromey@redhat.com>
13196 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13198 2014-01-13 Tom Tromey <tromey@redhat.com>
13200 * defs.h (use_windows): Remove.
13201 * gdb.c (main): Update.
13202 * main.c (captured_main, gdb_main): Update.
13203 * main.h (struct captured_main_args) <use_windows>: Remove.
13204 * top.c (use_windows): Remove.
13206 2014-01-13 Tom Tromey <tromey@redhat.com>
13208 * defs.h (deprecated_flush_hook): Remove.
13210 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13213 * linux-thread-db.c (try_thread_db_load): Add parameter
13214 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13215 (try_thread_db_load_from_pdir_1): Move it there from here.
13216 (try_thread_db_load_from_sdir): Update caller.
13217 (try_thread_db_load_from_dir): Move it there from here.
13219 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13221 * regformats/regdat.sh: Always rewrite the register file.
13223 2014-01-13 Pedro Alves <palves@redhat.com>
13225 * Makefile.in (CHECK_HEADERS): New variable.
13226 (check-headers:): New rule.
13228 2014-01-13 Tom Tromey <tromey@redhat.com>
13230 * cli/cli-setshow.c (do_set_command): Update.
13231 * defs.h (deprecated_set_hook): Remove.
13232 * top.c (deprecated_set_hook): Remove.
13234 2014-01-13 Pedro Alves <palves@redhat.com>
13236 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13237 the tracepoint if the PC is a pseudo-register.
13239 2014-01-13 Tom Tromey <tromey@redhat.com>
13241 * defs.h (XCALLOC): Remove.
13242 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13243 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13244 * dwarf2loc.c (allocate_piece_closure): Likewise.
13245 * elfread.c (elf_symfile_segments): Likewise.
13246 (elf_symfile_segments): Likewise.
13247 * gdbtypes.c (copy_type_recursive): Likewise.
13248 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13249 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13250 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13252 * mt-tdep.c (mt_gdbarch_init): Likewise.
13253 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13255 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13256 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13257 * registry.c (registry_alloc_data): Likewise.
13258 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13259 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13260 * serial.c (serial_fdopen_ops): Likewise.
13261 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13263 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13264 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13267 2014-01-13 Tom Tromey <tromey@redhat.com>
13269 * defs.h (XMALLOC): Remove.
13270 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13271 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13272 * cli-out.c (struct ui_out *): Likewise.
13273 * cli/cli-dump.c (add_dump_command): Likewise.
13274 (add_dump_command): Likewise.
13275 * complaints.c (get_complaints): Likewise.
13276 (find_complaint): Likewise.
13277 * dwarf2-frame.c (execute_cfa_program): Likewise.
13278 * dwarf2read.c (abbrev_table_read_table): Likewise.
13279 * gdbarch.sh: Likewise.
13280 * gdbarch.c: Rebuild.
13281 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13282 * interps.c (interp_new): Likewise.
13283 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13284 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13285 * mi/mi-console.c (mi_console_file_new): Likewise.
13286 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13287 * mi/mi-out.c (mi_out_new): Likewise.
13288 * mi/mi-parse.c (mi_parse): Likewise.
13289 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13290 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13291 * observer.c (xalloc_observer_list_node): Likewise.
13292 * regcache.c (regcache_xmalloc_1): Likewise.
13293 * reggroups.c (reggroup_new): Likewise.
13294 (_initialize_reggroup): Likewise.
13295 * registry.c (register_data_with_cleanup): Likewise.
13296 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13297 * ser-base.c (serial_ttystate): Likewise.
13298 * ser-mingw.c (make_pipe_state): Likewise.
13299 * ser-pipe.c (pipe_open): Likewise.
13300 * serial.c (serial_open): Likewise.
13301 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13302 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13303 (tui_alloc_win_info): Likewise.
13304 (tui_add_content_elements): Likewise.
13305 * tui/tui-file.c (tui_file_new): Likewise.
13306 * tui/tui-out.c (tui_out_new): Likewise.
13307 * ui-file.c (mem_file_new): Likewise.
13308 * ui-out.c (push_level): Likewise.
13309 (make_cleanup_ui_out_end): Likewise.
13310 (append_header_to_list): Likewise.
13311 (ui_out_new): Likewise.
13312 * user-regs.c (user_reg_add_builtin): Likewise.
13314 2014-01-13 Tom Tromey <tromey@redhat.com>
13316 * defs.h (XZALLOC): Remove.
13317 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13318 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13319 (get_ada_tasks_inferior_data): Likewise.
13320 * auto-load.c (get_auto_load_pspace_data): Likewise.
13321 * auxv.c (get_auxv_inferior_data): Likewise.
13322 * bfd-target.c (target_bfd_reopen): Likewise.
13323 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13324 (deprecated_insert_raw_breakpoint): Likewise.
13325 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13326 * corelow.c (core_open): Likewise.
13327 * darwin-nat.c (darwin_check_new_threads): Likewise.
13328 (darwin_attach_pid): Likewise.
13329 * dummy-frame.c (dummy_frame_push): Likewise.
13330 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13331 * dwarf2loc.c (allocate_piece_closure): Likewise.
13332 * elfread.c (elf_symfile_segments): Likewise.
13333 * eval.c (ptrmath_type_p): Likewise.
13334 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13335 * gdbtypes.c (alloc_type_arch): Likewise.
13336 (alloc_type_instance): Likewise.
13337 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13338 * inf-child.c (inf_child_can_use_agent): Likewise.
13339 * inflow.c (get_inflow_inferior_data): Likewise.
13340 * infrun.c (save_infcall_suspend_state): Likewise.
13341 * jit.c (jit_reader_load): Likewise.
13342 (get_jit_objfile_data): Likewise.
13343 (get_jit_program_space_data): Likewise.
13344 (jit_object_open_impl): Likewise.
13345 (jit_symtab_open_impl): Likewise.
13346 (jit_block_open_impl): Likewise.
13347 (jit_frame_sniffer): Likewise.
13348 * linux-fork.c (add_fork): Likewise.
13349 * maint.c (make_command_stats_cleanup): Likewise.
13350 * objfiles.c (get_objfile_pspace_data): Likewise.
13351 * opencl-lang.c (struct lval_closure): Likewise.
13352 * osdata.c (osdata_start_osdata): Likewise.
13353 * progspace.c (new_address_space): Likewise.
13354 (add_program_space): Likewise.
13355 * remote-sim.c (get_sim_inferior_data): Likewise.
13356 * sh-tdep.c (sh_gdbarch_init): Likewise.
13357 * skip.c (Ignore): Likewise.
13358 (skip_delete_command): Likewise.
13359 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13360 (library_list_start_library): Likewise.
13361 (solib_aix_current_sos): Likewise.
13362 * solib-darwin.c (get_darwin_info): Likewise.
13363 (darwin_current_sos): Likewise.
13364 * solib-dsbt.c (get_dsbt_info): Likewise.
13365 * solib-ia64-hpux.c (new_so_list): Likewise.
13366 (ia64_hpux_get_solib_linkage_addr): Likewise.
13367 * solib-spu.c (append_ocl_sos): Likewise.
13368 (spu_current_sos): Likewise.
13369 * solib-svr4.c (get_svr4_info): Likewise.
13370 (svr4_keep_data_in_core): Likewise.
13371 (library_list_start_library): Likewise.
13372 (svr4_default_sos): Likewise.
13373 (svr4_read_so_list): Likewise.
13374 * solib-target.c (library_list_start_library): Likewise.
13375 (solib_target_current_sos): Likewise.
13376 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13377 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13378 * symfile.c (default_symfile_segments): Likewise.
13379 * target-descriptions.c (tdesc_data_init): Likewise.
13380 (tdesc_create_reg): Likewise.
13381 (struct tdesc_type *): Likewise.
13382 (tdesc_create_vector): Likewise.
13383 (tdesc_set_struct_size): Likewise.
13384 (struct tdesc_type *): Likewise.
13385 (tdesc_free_feature): Likewise.
13386 (tdesc_create_feature): Likewise.
13387 * windows-nat.c (windows_add_thread): Likewise.
13388 (windows_make_so): Likewise.
13389 * xml-support.c (gdb_xml_body_text): Likewise.
13390 (gdb_xml_create_parser_and_cleanup): Likewise.
13391 (xml_process_xincludes): Likewise.
13392 * xml-syscall.c (allocate_syscalls_info): Likewise.
13393 (syscall_create_syscall_desc): Likewise.
13395 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13397 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13398 function, with code from i386_stap_parse_special_token.
13399 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13400 (i386_stap_parse_special_token): Move code to the two functions
13401 above; simplify it.
13403 2014-01-09 Pedro Alves <palves@redhat.com>
13404 Hui Zhu <hui@codesourcery.com>
13407 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13408 bp_err_string. Don't mark the location shlib_disabled if the
13409 error thrown wasn't a generic or memory error. Catch errors
13410 thrown while inserting breakpoints in overlayed code. Output
13411 error message of software breakpoints.
13412 * remote.c (remote_insert_breakpoint): If this breakpoint has
13413 target-side commands but this stub doesn't support Z0 packets,
13414 throw NOT_SUPPORTED_ERROR error.
13415 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13416 * target.h (target_insert_breakpoint): Extend comment.
13417 (target_insert_hw_breakpoint): Add comment.
13419 2014-01-08 Pedro Alves <palves@redhat.com>
13421 * remote.c (remote_add_thread): Add threads silently if starting
13423 (remote_notice_new_inferior): If in all-stop, and starting up,
13424 don't call notice_new_inferior.
13425 (get_current_thread): New function, factored out from ...
13426 (add_current_inferior_and_thread): ... this. Adjust.
13427 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13428 found any thread, then select the remote's current thread as GDB's
13429 current thread too.
13431 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13433 * NEWS: Create a new section for the next release branch.
13434 Rename the section of the current branch, now that it has
13437 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13439 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13440 * version.in: Bump version to 7.7.50.DATE-cvs.
13442 2014-01-08 Yao Qi <yao@codesourcery.com>
13444 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13445 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13446 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13448 2014-01-08 Yao Qi <yao@codesourcery.com>
13450 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13451 return value of bfd_get_filename to symbol_file_add_from_bfd.
13453 2014-01-08 Pierre Muller <muller@sourceware.org>
13456 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13457 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13458 to prim_record_mininal_symbol_and_info.
13459 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13460 in call to prim_record_minimal_symbol_and_info.
13461 (read_pe_exported_syms): Set index field of section_data.
13463 2014-01-07 Andrew Pinski <apinski@cavium.com>
13465 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13466 * features/aarch64.c: Regenerate.
13468 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13470 * target.c (return_null): Define.
13471 (update_current_target): Use it instead of return_zero for
13472 functions that return a pointer.
13474 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13476 * source.c (add_path): Fix check for duplicated paths in the previously
13479 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13481 * ada-lang.c: Remove duplicated include statements.
13482 * alphabsd-nat.c: Ditto.
13483 * amd64-darwin-tdep.c: Ditto.
13484 * amd64fbsd-nat.c: Ditto.
13485 * auto-load.c: Ditto.
13487 * breakpoint.c: Ditto.
13488 * dbxread.c: Ditto.
13489 * fork-child.c: Ditto.
13490 * gdb_usleep.c: Ditto.
13491 * i386-darwin-tdep.c: Ditto.
13492 * i386fbsd-nat.c: Ditto.
13494 * inferior.c: Ditto.
13495 * jv-lang.c: Ditto.
13496 * linux-nat.c: Ditto.
13497 * linux-tdep.c: Ditto.
13498 * m68kbsd-nat.c: Ditto.
13499 * m68klinux-nat.c: Ditto.
13500 * microblaze-tdep.c: Ditto.
13501 * mips-linux-tdep.c: Ditto.
13502 * mn10300-tdep.c: Ditto.
13503 * nto-tdep.c: Ditto.
13504 * opencl-lang.c: Ditto.
13506 * printcmd.c: Ditto.
13507 * regcache.c: Ditto.
13508 * remote-m32r-sdi.c: Ditto.
13510 * symfile.c: Ditto.
13512 * tilegx-linux-nat.c: Ditto.
13513 * tilegx-tdep.c: Ditto.
13514 * tracepoint.c: Ditto.
13516 * vaxbsd-nat.c: Ditto.
13517 * windows-nat.c: Ditto.
13518 * xtensa-tdep.c: Ditto.
13520 2014-01-07 Yao Qi <yao@codesourcery.com>
13522 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13524 2014-01-07 Yao Qi <yao@codesourcery.com>
13525 Joel Brobecker <brobecker@adacore.com>
13527 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13528 (pdc_write_regs): Likewise.
13529 (fetch_regs_kernel_thread): Likewise.
13530 (store_regs_kernel_thread): Likewise.
13532 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13534 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13535 tagged type objects to their actual type.
13537 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13539 * ada-valprint.c (print_field_values): Add "language" parameter.
13540 Update calls to print_field_values and print_variant_part.
13541 Pass new parameter "language" in call to val_print instead
13542 of "current_language". Replace call to ada_val_print by call
13544 (print_variant_part): Add "language" parameter.
13545 (ada_val_print_struct_union): Update call to print_field_values.
13547 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13549 * ada-valprint.c (ui_memcpy): Delete.
13550 (ada_print_floating): Update documentation. Add empty line
13551 between between function documentation and implementation.
13552 Delete variable "buffer". Use ui_file_xstrdup in place of
13553 ui_file_put. Minor adjustments following this change.
13555 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13557 * ada-valprint.c (ada_val_print_string): New function,
13558 extracted from ada_val_print_array.
13559 (ada_val_print_array): Replace extracted code by call
13560 to ada_val_print_string followed by a return. Move
13561 "else" branch to the function's top block.
13563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13565 * ada-valprint.c (ada_val_print_array): Move implementation
13566 down. Rename parameter "offset" and "val" into "offset_aligned"
13567 and "original_value" respectively. Add parameter "offset".
13569 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13571 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13572 re-organizing the code. Change the "???" message printed
13573 when target type is a TYPE_CODE_UNDEF into
13574 "<ref to undefined type>".
13576 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13578 * ada-valprint.c (print_record): Delete, implementation inlined...
13579 (ada_val_print_struct_union): ... here. Remove call to
13580 ada_check_typedef in inlined implementation.
13582 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13584 * ada-valprint.c (ada_val_print_gnat_array): New function,
13585 extracted from ada_val_print_1;
13586 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13587 (ada_val_print_flt, ada_val_print_struct_union)
13588 (ada_val_print_ref): Likewise.
13589 (ada_val_print_1): Delete variables i and elttype.
13590 Replace extracted-out code by call to corresponding
13593 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13595 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13597 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13599 * ada-valprint.c (ada_val_print_1): Replace calls to
13600 ada_val_print_1 by calls to val_print.
13602 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13604 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13605 Update calls to self accordingly. Replace calls to c_val_print
13606 by calls to val_print.
13608 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13610 * ada-valprint.c (print_record): Delete declaration.
13611 (adjust_type_signedness, ada_val_print_1): Likewise.
13612 (ada_val_print): Move function implementation down.
13613 (print_variant_part, print_field_values, print_record):
13614 Move function implementation up.
13616 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13618 * python/py-type.c (typy_get_name): New function.
13619 (type_object_getset): Add entry for attribute "name".
13620 * NEWS: Add entry mentioning this new attribute.
13622 2014-01-07 Yao Qi <yao@codesourcery.com>
13624 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13627 2014-01-07 Yao Qi <yao@codesourcery.com>
13629 * gnu-nat.c (info_port_rights): Add qualifier const to
13632 2014-01-07 Yao Qi <yao@codesourcery.com>
13634 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13636 2014-01-07 Yao Qi <yao@codesourcery.com>
13638 * gnu-nat.c (make_inf) Update declaration.
13639 (make_inf): Make it static.
13640 (inf_set_traced): Likewise.
13641 (inf_port_to_thread, inf_task_died_status): Likewise.
13643 2014-01-07 Yao Qi <yao@codesourcery.com>
13645 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13647 2014-01-07 Yao Qi <yao@codesourcery.com>
13649 * gnu-nat.c (_initialize_gnu_nat): Declare.
13651 2014-01-07 Yao Qi <yao@codesourcery.com>
13653 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13655 (struct gdbarch_info) <byte_order>: Change type to
13657 <byte_order_for_code>: Likewise.
13658 * gdbarch.c, gdbarch.h: Regenerated.
13660 2014-01-06 Sasha Smundak <asmundak@google.com>
13662 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13664 2014-01-06 Tom Tromey <tromey@redhat.com>
13666 * doublest.c (convert_doublest_to_floatformat): Use const, not
13668 * somread.c (som_symtab_read): Likewise.
13670 2014-01-07 Hui Zhu <hui@codesourcery.com>
13672 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13673 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13674 (gdb_bfd_fopen): Ditto.
13675 (gdb_bfd_openr): Ditto.
13676 (gdb_bfd_openw): Ditto.
13677 (gdb_bfd_openr_iovec): Ditto.
13678 (gdb_bfd_fdopenr): Ditto.
13679 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13680 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13682 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13684 * symfile-mem.c (symbol_file_add_from_memory): Removed
13685 gdb_bfd_stash_filename.
13687 2014-01-03 Doug Evans <dje@google.com>
13689 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13692 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13694 Update year range in copyright notice of all files.
13696 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13698 * top.c (print_gdb_version): Set copyright year to 2014.
13700 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13702 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13704 For older changes see ChangeLog-2013.
13710 version-control: never