1 2014-10-09 Yao Qi <yao@codesourcery.com>
3 * infrun.c (handle_signal_stop): Remove local variable
6 2014-10-08 Stan Shebs <stan@codesourcery.com>
8 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
10 2014-10-08 Gary Benson <gbenson@redhat.com>
12 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
14 2014-10-08 Gary Benson <gbenson@redhat.com>
16 * common/common-defs.h: Include common-exceptions.h.
17 * exceptions.h: Do not include common-exceptions.h.
19 2014-10-08 Gary Benson <gbenson@redhat.com>
21 * common/common-defs.h: Include cleanups.h.
22 * common/common-exceptions.c: Do not include cleanups.h.
25 2014-10-08 Gary Benson <gbenson@redhat.com>
27 * ada-lang.c: Do not include exceptions.h.
28 * ada-valprint.c: Likewise.
29 * amd64-tdep.c: Likewise.
30 * auto-load.c: Likewise.
32 * break-catch-throw.c: Likewise.
33 * breakpoint.c: Likewise.
36 * cli/cli-cmds.c: Likewise.
37 * cli/cli-interp.c: Likewise.
38 * cli/cli-script.c: Likewise.
39 * completer.c: Likewise.
40 * corefile.c: Likewise.
41 * corelow.c: Likewise.
43 * cp-support.c: Likewise.
44 * cp-valprint.c: Likewise.
45 * darwin-nat.c: Likewise.
46 * dwarf2-frame-tailcall.c: Likewise.
47 * dwarf2-frame.c: Likewise.
48 * dwarf2loc.c: Likewise.
49 * dwarf2read.c: Likewise.
51 * event-loop.c: Likewise.
52 * event-top.c: Likewise.
53 * f-valprint.c: Likewise.
54 * frame-unwind.c: Likewise.
56 * gdbtypes.c: Likewise.
57 * gnu-v2-abi.c: Likewise.
58 * gnu-v3-abi.c: Likewise.
59 * guile/scm-auto-load.c: Likewise.
60 * guile/scm-breakpoint.c: Likewise.
61 * guile/scm-cmd.c: Likewise.
62 * guile/scm-frame.c: Likewise.
63 * guile/scm-lazy-string.c: Likewise.
64 * guile/scm-param.c: Likewise.
65 * guile/scm-symbol.c: Likewise.
66 * guile/scm-type.c: Likewise.
67 * hppa-hpux-tdep.c: Likewise.
68 * i386-tdep.c: Likewise.
69 * inf-loop.c: Likewise.
70 * infcall.c: Likewise.
73 * interps.c: Likewise.
74 * interps.h: Likewise.
76 * linespec.c: Likewise.
77 * linux-nat.c: Likewise.
78 * linux-thread-db.c: Likewise.
79 * m32r-rom.c: Likewise.
81 * memory-map.c: Likewise.
82 * mi/mi-cmd-break.c: Likewise.
83 * mi/mi-cmd-stack.c: Likewise.
84 * mi/mi-interp.c: Likewise.
85 * mi/mi-main.c: Likewise.
86 * monitor.c: Likewise.
87 * nto-procfs.c: Likewise.
88 * objc-lang.c: Likewise.
89 * p-valprint.c: Likewise.
91 * ppc-linux-tdep.c: Likewise.
92 * printcmd.c: Likewise.
94 * python/py-auto-load.c: Likewise.
95 * python/py-breakpoint.c: Likewise.
96 * python/py-cmd.c: Likewise.
97 * python/py-finishbreakpoint.c: Likewise.
98 * python/py-frame.c: Likewise.
99 * python/py-framefilter.c: Likewise.
100 * python/py-function.c: Likewise.
101 * python/py-gdb-readline.c: Likewise.
102 * python/py-inferior.c: Likewise.
103 * python/py-infthread.c: Likewise.
104 * python/py-lazy-string.c: Likewise.
105 * python/py-linetable.c: Likewise.
106 * python/py-param.c: Likewise.
107 * python/py-prettyprint.c: Likewise.
108 * python/py-symbol.c: Likewise.
109 * python/py-type.c: Likewise.
110 * python/py-value.c: Likewise.
111 * python/python-internal.h: Likewise.
112 * python/python.c: Likewise.
113 * record-btrace.c: Likewise.
114 * record-full.c: Likewise.
115 * regcache.c: Likewise.
116 * remote-fileio.c: Likewise.
117 * remote-mips.c: Likewise.
118 * remote.c: Likewise.
119 * rs6000-aix-tdep.c: Likewise.
120 * rs6000-nat.c: Likewise.
122 * solib-darwin.c: Likewise.
123 * solib-dsbt.c: Likewise.
124 * solib-frv.c: Likewise.
125 * solib-ia64-hpux.c: Likewise.
126 * solib-spu.c: Likewise.
127 * solib-svr4.c: Likewise.
129 * spu-tdep.c: Likewise.
131 * stap-probe.c: Likewise.
132 * symfile-mem.c: Likewise.
133 * symmisc.c: Likewise.
134 * target.c: Likewise.
135 * thread.c: Likewise.
137 * tracepoint.c: Likewise.
138 * tui/tui-interp.c: Likewise.
139 * typeprint.c: Likewise.
141 * valarith.c: Likewise.
142 * valops.c: Likewise.
143 * valprint.c: Likewise.
145 * varobj.c: Likewise.
146 * windows-nat.c: Likewise.
147 * xml-support.c: Likewise.
149 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
151 * mips-tdep.c (add_offset_16): Rewrite to implement what the
153 (extended_mips16_next_pc): Update accordingly.
155 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
157 * mips-tdep.c (mips16_instruction_is_compact_branch): New
159 (micromips_instruction_is_compact_branch): Likewise.
160 (mips16_scan_prologue): Terminate scanning upon seeing a branch
161 or a compact jump, reaching a jump delay slot, or seeing a
162 second non-prologue instruction.
163 (micromips_scan_prologue): Also terminate scanning upon seeing a
164 compact branch or jump, or reaching a branch or jump delay slot.
165 (mips32_scan_prologue): Terminate scanning upon reaching a branch
166 or jump delay slot, or seeing a second non-prologue instruction.
167 (mips32_instruction_has_delay_slot): Retain instruction
168 examination code only, update arguments accordingly and move
169 instruction fetch pieces to...
170 (mips32_insn_at_pc_has_delay_slot): ... this new function.
171 (micromips_instruction_has_delay_slot): Likewise and to...
172 (micromips_insn_at_pc_has_delay_slot): ... this new function.
173 (mips16_instruction_has_delay_slot): Likewise and to...
174 (mips16_insn_at_pc_has_delay_slot): ... this new function.
175 (mips_single_step_through_delay): Update accordingly.
176 (mips_adjust_breakpoint_address): Likewise.
178 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
180 * mips-tdep.c (micromips_instruction_has_delay_slot): When
181 !mustbe32 also return 1 for 32-bit instructions.
182 (mips16_instruction_has_delay_slot): Likewise. Add an
185 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
187 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
190 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
192 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
194 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
195 for the breakpoint's address. Don't preinitialize `placed_size'.
196 (insert_bp_location): Set `reqstd_address' rather than
198 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
199 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
201 (bkpt_remove_location): Likewise.
202 (deprecated_insert_raw_breakpoint): Likewise.
203 (deprecated_remove_raw_breakpoint): Likewise.
204 (find_single_step_breakpoint): Likewise.
205 * mem-break.c (default_memory_insert_breakpoint): Use
206 `reqstd_address' for the breakpoint's address. Don't set
207 `placed_address' or `placed_size' if breakpoint contents couldn't
208 have been determined.
209 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
210 the breakpoint's address.
211 (remote_insert_hw_breakpoint): Likewise. Don't set
212 `placed_address' or `placed_size' if breakpoint couldn't have been
214 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
215 `reqstd_address' for the breakpoint's address.
216 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
217 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
218 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
219 * microblaze-linux-tdep.c
220 (microblaze_linux_memory_remove_breakpoint): Likewise.
221 * monitor.c (monitor_insert_breakpoint): Likewise.
222 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
223 (procfs_insert_hw_breakpoint): Likewise.
224 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
225 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
226 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
227 * remote-mips.c (mips_insert_breakpoint): Likewise.
228 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
230 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
232 * valops.c (value_assign): Check for bit field assignments
233 before calling architecture-specific register value
234 conversion functions.
236 2014-10-03 Pierre Muller <muller@sourceware.org>
238 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
240 2014-10-02 Pedro Alves <palves@redhat.com>
242 * breakpoint.c (breakpoints_should_be_inserted_now): Use
243 threads_are_executing.
244 * breakpoint.h (breakpoints_should_be_inserted_now): Add
246 * gdbthread.h (threads_are_executing): Declare.
247 (handle_signal_stop) <random signals>: Don't print about the
248 signal here if stopping.
249 (end_stepping_range): Don't notify observers here.
250 (normal_stop): Update the thread list. If stopped by a random
251 signal or a stepping range ended, notify observers.
252 * thread.c (threads_executing): New global.
253 (init_thread_list): Clear 'threads_executing'.
254 (set_executing): Set or clear 'threads_executing'.
255 (threads_are_executing): New function.
256 (update_threads_executing): New function.
257 (update_thread_list): Use it.
259 2014-10-02 Pedro Alves <palves@redhat.com>
262 * breakpoint.c (update_breakpoints_after_exec): Don't create
263 overlay, longjmp, std terminate nor exception breakpoints here.
265 2014-10-02 Pedro Alves <palves@redhat.com>
267 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
269 * inferior.c (find_inferior_for_program_space): Give preference to
270 the current inferior.
271 * inferior.h (find_inferior_for_program_space): Update comment.
272 * progspace.c (switch_to_program_space_and_thread): Prefer the
273 current inferior if it's bound to the program space requested. If
274 the inferior found doesn't have a PID yet, don't bother looking up
276 * progspace.h (switch_to_program_space_and_thread): Adjust
278 * thread.c (any_thread_of_process, any_live_thread_of_process):
279 Give preference to the current thread.
281 2014-10-01 Pedro Alves <palves@redhat.com>
283 * breakpoint.c (insert_bp_location): Error out if inserting a
284 software breakpoint at a read-only address.
285 * target.c (memory_xfer_check_region): New function, factored out
287 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
289 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
290 against the memory region attributes.
292 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
294 * NEWS: Announce new exit-code field in -list-thread-groups
296 * inferior.c (exit_inferior_1): Don't clear exit code.
297 (inferior_appeared): Clear exit code.
298 * mi/mi-main.c (print_one_inferior): Add printing of the exit
301 2014-10-01 Pedro Alves <palves@redhat.com>
303 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
304 GENERATED" along with emacs/vi read-only markers.
305 * regformats/aarch64.dat: Regenerate.
306 * regformats/arm-with-iwmmxt.dat: Regenerate.
307 * regformats/arm-with-neon.dat: Regenerate.
308 * regformats/arm-with-vfpv2.dat: Regenerate.
309 * regformats/arm-with-vfpv3.dat: Regenerate.
310 * regformats/i386/amd64-avx-linux.dat: Regenerate.
311 * regformats/i386/amd64-avx.dat: Regenerate.
312 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
313 * regformats/i386/amd64-avx512.dat: Regenerate.
314 * regformats/i386/amd64-linux.dat: Regenerate.
315 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
316 * regformats/i386/amd64-mpx.dat: Regenerate.
317 * regformats/i386/amd64.dat: Regenerate.
318 * regformats/i386/i386-avx-linux.dat: Regenerate.
319 * regformats/i386/i386-avx.dat: Regenerate.
320 * regformats/i386/i386-avx512-linux.dat: Regenerate.
321 * regformats/i386/i386-avx512.dat: Regenerate.
322 * regformats/i386/i386-linux.dat: Regenerate.
323 * regformats/i386/i386-mmx-linux.dat: Regenerate.
324 * regformats/i386/i386-mmx.dat: Regenerate.
325 * regformats/i386/i386-mpx-linux.dat: Regenerate.
326 * regformats/i386/i386-mpx.dat: Regenerate.
327 * regformats/i386/i386.dat: Regenerate.
328 * regformats/i386/x32-avx-linux.dat: Regenerate.
329 * regformats/i386/x32-avx.dat: Regenerate.
330 * regformats/i386/x32-avx512-linux.dat: Regenerate.
331 * regformats/i386/x32-avx512.dat: Regenerate.
332 * regformats/i386/x32-linux.dat: Regenerate.
333 * regformats/i386/x32.dat: Regenerate.
334 * regformats/microblaze-with-stack-protect.dat: Regenerate.
335 * regformats/mips-dsp-linux.dat: Regenerate.
336 * regformats/mips-linux.dat: Regenerate.
337 * regformats/mips64-dsp-linux.dat: Regenerate.
338 * regformats/mips64-linux.dat: Regenerate.
339 * regformats/nios2-linux.dat: Regenerate.
340 * regformats/rs6000/powerpc-32.dat: Regenerate.
341 * regformats/rs6000/powerpc-32l.dat: Regenerate.
342 * regformats/rs6000/powerpc-64l.dat: Regenerate.
343 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
344 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
345 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
346 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
347 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
348 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
349 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
350 * regformats/s390-linux32.dat: Regenerate.
351 * regformats/s390-linux32v1.dat: Regenerate.
352 * regformats/s390-linux32v2.dat: Regenerate.
353 * regformats/s390-linux64.dat: Regenerate.
354 * regformats/s390-linux64v1.dat: Regenerate.
355 * regformats/s390-linux64v2.dat: Regenerate.
356 * regformats/s390-te-linux64.dat: Regenerate.
357 * regformats/s390x-linux64.dat: Regenerate.
358 * regformats/s390x-linux64v1.dat: Regenerate.
359 * regformats/s390x-linux64v2.dat: Regenerate.
360 * regformats/s390x-te-linux64.dat: Regenerate.
361 * regformats/tic6x-c62x-linux.dat: Regenerate.
362 * regformats/tic6x-c62x.dat: Regenerate.
363 * regformats/tic6x-c64x-linux.dat: Regenerate.
364 * regformats/tic6x-c64x.dat: Regenerate.
365 * regformats/tic6x-c64xp-linux.dat: Regenerate.
366 * regformats/tic6x-c64xp.dat: Regenerate.
368 2014-10-01 Pedro Alves <palves@redhat.com>
370 * features/Makefile: Update comments.
371 (XMLTOC): List all xml files we build C files from.
372 (clean-cfiles): New rule.
374 2014-10-01 Pedro Alves <palves@redhat.com>
376 * features/i386/amd64-avx512-linux.c: Regenerate.
377 * features/i386/amd64-avx512.c: Regenerate.
378 * features/i386/x32-avx512-linux.c: Regenerate.
379 * features/i386/x32-avx512.c: Regenerate.
381 2014-10-01 Pedro Alves <palves@redhat.com>
383 * features/Makefile (WHICH): Remove arm-with-m,
384 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
386 2014-10-01 Pedro Alves <palves@redhat.com>
388 * features/Makefile (clean): New rule.
390 2014-10-01 Pedro Alves <palves@redhat.com>
392 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
393 (zmm14h): Add missing end quotes.
395 2014-10-01 Pedro Alves <palves@redhat.com>
397 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
398 * features/aarch64.c: Regenerate.
400 2014-09-30 Don Breazeal <donb@codesourcery.com>
402 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
403 code so as to work with follow_fork_inferior.
404 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
405 (inf_ttrace_create_inferior): Remove reference to
406 inf_ttrace_vfork_ppid.
407 (inf_ttrace_attach): Ditto.
408 (inf_ttrace_detach): Ditto.
409 (inf_ttrace_kill): Use current_inferior instead of
410 inf_ttrace_vfork_ppid.
411 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
412 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
413 inferior away from the parent.
414 * infrun.c (follow_fork): Call follow_fork_inferior instead of
416 (follow_fork_inferior): New function.
417 (follow_inferior_reset_breakpoints): Make function static.
418 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
419 * linux-nat.c (linux_child_follow_fork): Move target-independent
420 code to infrun.c:follow_fork_inferior.
422 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
424 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
425 * gdbarch.c: Regenerate.
426 * gdbarch.h: Likewise.
427 * corelow.c (sniff_core_bfd): Drop presence check for deleted
428 gdbarch method 'regset_from_core_section'.
429 (get_core_register_section): Remove handling for the case that
430 regset == NULL and regset_from_core_section is defined.
431 (get_core_registers): Drop check for deleted method.
432 * procfs.c (procfs_do_thread_registers): Adjust comment.
434 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
436 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
437 (linux_nat_make_corefile_notes): Remove.
438 (linux_target_install_ops): Do not set target method
439 'make_corefile_notes'.
440 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
442 (linux_corefile_thread_callback): Instead of args->collect, call
443 linux_collect_thread_registers.
444 (linux_make_corefile_notes): Remove 'collect' parameter. Return
445 NULL unless there is a regset iterator.
446 (linux_make_corefile_notes_1): Remove.
447 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
448 by linux_make_corefile_notes.
449 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
451 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
453 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
454 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
456 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
458 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
460 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
461 (xtensa_iterate_over_regset_sections): New.
462 (xtensa_gdbarch_init): Adjust gdbarch initialization.
464 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
466 * vax-tdep.c (vax_regset_from_core_section): Remove.
467 (vax_iterate_over_regset_sections): New.
468 (vax_gdbarch_init): Adjust gdbarch initialization.
470 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
472 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
473 (tilegx_regset_from_core_section): Remove.
474 (tilegx_iterate_over_regset_sections): New.
475 (tilegx_linux_init_abi): Adjust gdbarch initialization.
477 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
479 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
480 (sparc_iterate_over_regset_sections): New.
481 (sparc32_gdbarch_init): Adjust gdbarch initialization.
482 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
484 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
485 (sparc64fbsd_init_abi): Call fbsd_init_abi.
486 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
487 target method 'make_corefile_notes'.
489 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
491 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
492 'sizeof_gregset' and 'sizeof_fpregset'.
493 * sh-tdep.c (sh_regset_from_core_section): Remove.
494 (sh_iterate_over_regset_sections): New.
495 (sh_gdbarch_init): Adjust gdbarch initialization.
496 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
498 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
501 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
503 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
504 (score7_linux_iterate_over_regset_sections): New.
505 (score_gdbarch_init): Adjust gdbarch initialization.
507 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
509 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
511 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
512 method 'make_corefile_notes'.
513 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
514 (ppcfbsd_regset_from_core_section): Remove.
515 (ppcfbsd_iterate_over_regset_sections): New.
516 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
518 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
519 (ppcnbsd_iterate_over_regset_sections): New.
520 (ppcnbsd_init_abi): Adjust.
521 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
522 (ppcobsd_iterate_over_regset_sections): New.
523 (ppcobsd_init_abi): Adjust.
524 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
525 (rs6000_aix_iterate_over_regset_sections): New.
526 (rs6000_aix_init_osabi): Adjust.
528 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
530 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
531 (nios2_regset_from_core_section): Remove.
532 (nios2_iterate_over_regset_sections): New.
533 (nios2_linux_init_abi): Adjust gdbarch initialization.
535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
537 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
538 (am33_iterate_over_regset_sections): New.
539 (am33_linux_init_osabi): Adjust gdbarch initialization.
541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
543 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
544 (mips_linux_iterate_over_regset_sections): New.
545 (mips_linux_init_abi): Adjust gdbarch initialization.
546 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
547 (mips64obsd_iterate_over_regset_sections): New.
548 (mips64obsd_init_abi): Adjust.
549 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
550 (mipsnbsd_iterate_over_regset_sections): New.
551 (mipsnbsd_init_abi): Adjust.
553 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
555 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
556 (m88k_iterate_over_regset_sections): New.
557 (m88k_gdbarch_init): Adjust gdbarch initialization.
559 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
561 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
562 (ia64_linux_iterate_over_regset_sections): New.
563 (ia64_linux_init_abi): Adjust gdbarch initialization.
565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
567 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
568 (m68kbsd_iterate_over_regset_sections): New.
569 (m68kbsd_init_abi): Adjust gdbarch initialization.
570 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
571 (m68k_linux_iterate_over_regset_sections): New.
572 (m68k_linux_init_abi): Adjust gdbarch initialization.
574 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
576 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
577 (m32r_linux_regset_from_core_section): Remove.
578 (m32r_linux_iterate_over_regset_sections): New.
579 (m32r_linux_init_abi): Adjust gdbarch initialization.
581 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
583 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
584 (amd64obsd_iterate_over_regset_sections): New.
585 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
586 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
588 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
589 regset_from_core_section initialization.
590 * i386-tdep.c (i386_regset_from_core_section): Remove.
591 (i386_iterate_over_regset_sections): New.
592 (i386_gdbarch_init): Adjust gdbarch initialization.
593 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
594 (i386_iterate_over_regset_sections): New prototype.
595 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
597 (i386obsd_aout_iterate_over_regset_sections): New.
598 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
599 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
601 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
602 (amd64fbsd_init_abi): Call fbsd_init_abi.
603 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
604 (i386fbsd4_init_abi): Call fbsd_init_abi.
605 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
606 target method 'make_corefile_notes'.
607 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
609 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
611 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
612 (hppa_hpux_iterate_over_regset_sections): New.
613 (hppa_hpux_init_abi): Adjust gdbarch initialization.
614 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
615 (hppa_linux_iterate_over_regset_sections): New.
616 (hppa_linux_init_abi): Adjust.
617 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
618 (hppanbsd_iterate_over_regset_sections): New.
619 (hppanbsd_init_abi): Adjust.
620 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
621 (hppaobsd_iterate_over_regset_sections): New.
622 (hppaobsd_init_abi): Adjust.
624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
626 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
627 (frv_linux_iterate_over_regset_sections): New.
628 (frv_linux_init_abi): Adjust gdbarch initialization.
630 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
632 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
633 (armbsd_iterate_over_regset_sections): New prototype.
634 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
635 (armbsd_iterate_over_regset_sections): New.
636 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
639 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
641 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
642 (alpha_linux_iterate_over_regset_sections): New.
643 (alpha_linux_init_abi): Adjust gdbarch initialization.
644 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
646 (alphanbsd_iterate_over_regset_sections): New prototype.
648 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
650 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
652 (aarch64_linux_iterate_over_regset_sections): New.
653 (aarch64_linux_init_abi): Adjust gdbarch initialization.
655 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
657 * fbsd-tdep.c: New file.
658 * fbsd-tdep.h: New file.
659 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
660 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
661 (ALLDEPFILES): Add fbsd-tdep.c.
663 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
665 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
667 * gdbarch.h: Regenerate.
668 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
670 (get_core_register_section): Add parameter 'regset' and use it, if
671 set. Add parameter 'min_size' and verify the bfd section size
673 (get_core_registers_cb): Add parameter 'regset' and pass it to
674 get_core_register section. For the "standard" register sections
675 ".reg" and ".reg2", set an appropriate default for human_name.
676 (get_core_registers): Don't abort when the gdbarch has an iterator
677 but no regset_from_core_section. Add NULL/0 for parameters
678 'regset'/'min_size' in calls to get_core_register_section.
679 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
680 'regset' and use it instead of calling the
681 regset_from_core_section gdbarch method.
682 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
683 * i386-tdep.c (i386_supply_xstateregset)
684 (i386_collect_xstateregset, i386_xstateregset): Moved to
686 (i386_regset_from_core_section): Drop handling for .reg-xfp and
688 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
689 core file support only if the regset iterator hasn't been set.
690 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
691 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
692 Moved from i386-tdep.c and renamed to *_linux*.
693 (i386_linux_iterate_over_regset_sections): Add regset parameter to
694 each callback invocation. Allow any .reg-xstate size when reading
696 * amd64-tdep.c (amd64_supply_xstateregset)
697 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
699 (amd64_regset_from_core_section): Remove.
700 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
701 install an amd64-specific regset_from_core_section gdbarch method.
702 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
703 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
704 Moved from amd64-tdep.c and renamed to *_linux*.
705 (amd64_linux_iterate_over_regset_sections): Add regset parameter
706 to each callback invocation. Allow any .reg-xstate size when
707 reading from a core file.
708 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
709 (arm_linux_iterate_over_regset_sections): Add regset parameter to
710 each callback invocation.
711 (arm_linux_init_abi): No longer set the regset_from_core_section
713 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
714 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
715 each callback invocation.
716 (ppc_linux_init_abi): No longer set the regset_from_core_section
718 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
719 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
720 (s390_regset_from_core_section): Remove.
721 (s390_iterate_over_regset_sections): Add regset parameter to each
723 (s390_gdbarch_init): No longer set the regset_from_core_section
724 gdbarch method. Drop initialization of deleted tdep fields.
726 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
728 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
729 (amd64_linux_iterate_over_regset_sections): New.
730 (amd64_linux_init_abi_common): Don't install the regset section
731 list, but the new iterator in gdbarch.
732 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
733 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
734 (arm_linux_iterate_over_regset_sections): ...here. New function.
735 (arm_linux_init_abi): Set iterator instead of section list.
736 * corelow.c (get_core_registers_cb): New function, logic moved
738 (get_core_registers): ...loop body here. Use new iterator method
739 instead of walking through the regset section list.
740 * gdbarch.sh: Remove 'core_regset_sections'. New method
741 'iterate_over_regset_sections'. New typedef
742 'iterate_over_regset_sections_cb'.
743 * gdbarch.c: Regenerate.
744 * gdbarch.h: Likewise.
745 * i386-linux-tdep.c (i386_linux_regset_sections)
746 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
748 (i386_linux_iterate_over_regset_sections): New.
749 (i386_linux_init_abi): Don't choose a regset section list, but
750 install new iterator in gdbarch.
751 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
752 (linux_collect_regset_section_cb): New function, logic moved
754 (linux_collect_thread_registers): ...loop body here. Use iterator
755 method instead of walking through list.
756 (linux_make_corefile_notes_1): Check for presence of iterator
757 method instead of regset section list.
758 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
759 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
760 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
761 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
762 (ppc_linux_iterate_over_regset_sections): ...here. New function.
763 (ppc_linux_init_abi): Don't choose from above regset section
764 lists, but install new iterator in gdbarch.
765 * regset.h (struct core_regset_section): Remove.
766 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
767 have_linux_v1, have_linux_v2, and have_tdb.
768 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
769 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
770 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
771 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
772 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
773 (s390_iterate_over_regset_sections): ...here. New function. Use
775 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
776 regset section lists, but install new iterator.
778 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
780 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
782 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
784 * progspace.c (print_program_space): Don't prune program spaces
785 before printing them.
787 2014-09-25 Pedro Alves <palves@redhat.com>
789 * infrun.c (user_visible_resume_ptid): Don't check
790 singlestep_breakpoints_inserted_p.
792 2014-09-25 Pedro Alves <palves@redhat.com>
794 * breakpoint.c (should_be_inserted): Add debug output.
796 2014-09-25 Pedro Alves <palves@redhat.com>
798 * infrun.c (stepping_past_instruction_at)
799 (clear_exit_convenience_vars): Point at infrun.h instead of
801 (handle_signal_stop): Fix typo.
803 2014-09-24 Yao Qi <yao@codesourcery.com>
805 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
808 2014-09-22 Gary Benson <gbenson@redhat.com>
810 * target.c (target_stop): Updated comment.
812 2014-09-22 Gary Benson <gbenson@redhat.com>
814 * target/target.h (target_stop_ptid): Renamed as...
815 (target_stop_and_wait): New function. Updated comment.
817 (target_continue_ptid): Renamed as...
818 (target_continue_no_signal): New function. Updated comment.
821 2014-09-22 Pedro Alves <palves@redhat.com>
823 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
825 * breakpoint.c (enum ugll_insert_mode): New enum.
826 (always_inserted_mode): Now a plain boolean.
827 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
828 (breakpoints_always_inserted_mode): Delete.
829 (breakpoints_should_be_inserted_now): New function.
830 (insert_breakpoints): Pass UGLL_INSERT to
831 update_global_location_list instead of calling
832 insert_breakpoint_locations manually.
833 (create_solib_event_breakpoint_1): New, factored out from ...
834 (create_solib_event_breakpoint): ... this.
835 (create_and_insert_solib_event_breakpoint): Use
836 create_solib_event_breakpoint_1 instead of calling
837 insert_breakpoint_locations manually.
838 (update_global_location_list): Change parameter type from boolean
839 to enum ugll_insert_mode. All callers adjusted. Adjust to use
840 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
841 (update_global_location_list_nothrow): Change parameter type from
842 boolean to enum ugll_insert_mode.
843 (_initialize_breakpoint): "breakpoint always-inserted" option is
844 now a boolean command. Update help text.
845 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
846 (breakpoints_should_be_inserted_now): New declaration.
847 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
848 Remove breakpoints_always_inserted_mode check.
849 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
850 * remote.c (remote_start_remote): Likewise.
852 2014-09-22 Pedro Alves <palves@redhat.com>
854 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
855 (insert_breakpoints): Don't call insert_breakpoint_locations here.
856 Instead, pass UGLL_INSERT to update_global_location_list.
857 (update_global_location_list): Change parameter type from boolean
858 to enum ugll_insert_mode. All callers adjusted. Adjust to use
859 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
860 (create_solib_event_breakpoint_1): New, factored out from ...
861 (create_solib_event_breakpoint): ... this.
862 (create_and_insert_solib_event_breakpoint): Use
863 create_solib_event_breakpoint_1 instead of calling
864 insert_breakpoint_locations manually.
865 (update_global_location_list): Handle UGLL_INSERT.
867 2014-09-22 Pedro Alves <palves@redhat.com>
869 * breakpoint.c (enum ugll_insert_mode): New enum.
870 (update_global_location_list)
871 (update_global_location_list_nothrow): Change parameter type from
872 boolean to enum ugll_insert_mode. All callers adjusted.
874 2014-09-19 Joel Brobecker <brobecker@adacore.com>
876 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
877 SystemTap support in GDB.
879 2014-09-19 Don Breazeal <donb@codesourcery.com>
881 * linux-nat.c (linux_handle_extended_wait): Call
882 linux_ptrace_get_extended_event.
883 (wait_lwp): Call linux_is_extended_waitstatus.
884 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
885 and linux_is_extended_waitstatus.
886 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
887 linux_ptrace_get_extended_event.
888 (linux_ptrace_get_extended_event): New function.
889 (linux_is_extended_waitstatus): New function.
890 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
891 (linux_is_extended_waitstatus): New declarations.
893 2014-09-19 Yao Qi <yao@codesourcery.com>
895 * dwarf2read.c (dwarf_decode_lines): Update declaration.
896 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
897 comments. Callers update.
898 (dwarf_decode_lines): Likewise.
899 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
900 comments. Skip the line table if 'lowpc' is greater than
901 'address'. Don't check
902 dwarf2_per_objfile->has_section_at_zero.
904 2014-09-18 Doug Evans <dje@google.com>
906 * NEWS: Mention new "producer" attribute of gdb.Symtab.
907 * python/py-symtab.c (stpy_get_producer): New function.
908 (symtab_object_getset): Add "producer" attribute.
910 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
913 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
914 (do_captured_read_memory_integer): Remove.
915 (safe_read_memory_integer): Use target_read_memory directly instead
916 of catching errors in do_captured_read_memory_integer.
918 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
920 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
923 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
925 * objc-lang.c (find_implementation_from_class): Remove dead code.
927 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
930 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
931 "fprintf_unfiltered (gdb_stdlog...)".
933 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
936 * breakpoint.h (struct watchpoint): New fields val_bitpos and
938 * breakpoint.c (watch_command_1): Use these fields to retain
939 bitfield information.
940 (extract_bitfield_from_watchpoint_value): New function.
941 (watchpoint_check): Use it.
942 (update_watchpoint): Use it. Optimize the address and length of a
943 HW watchpoint pointing to a bitfield.
944 * value.h (unpack_value_bitfield): New prototype.
945 * value.c (unpack_value_bitfield): Make extern.
947 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
949 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
951 * gnu-nat.c (inf_threads): New function.
952 * gnu-nat.h (inf_threads_ftype): New typedef.
953 (inf_threads): New declaration.
954 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
955 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
956 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
957 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
958 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
959 (i386_gnu_dr_get_control): New functions.
960 (reg_addr): New structure.
961 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
962 i386 debugging register hooks.
963 * NEWS: Mention this.
965 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
967 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
968 vector data transfer instructions.
969 (arm_record_coproc_data_proc): Updated.
971 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
973 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
974 arm_record_exreg_ld_st_insn.
975 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
978 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
980 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
981 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
982 processing instructions.
984 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
986 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
987 for advance SIMD struct ld/st insn.
988 (thumb2_record_decode_insn_handler): Replace stub handler with
989 thumb2_record_asimd_struct_ld_st.
991 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
993 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
994 for asimd, vfp and coprocessor insns.
995 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
996 and coprocessor insns.
997 (thumb2_record_coproc_insn): New function.
998 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1000 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1003 2014-09-13 Doug Evans <xdje42@gmail.com>
1005 * NEWS: Mention new "queue-signal" command.
1006 * infcmd.c (queue_signal_command): New function.
1007 (_initialize_infcmd): Add new queue-signal command.
1009 2014-09-13 Doug Evans <xdje42@gmail.com>
1011 * linux-nat.c (wait_lwp): Add debugging printf.
1012 (linux_nat_wait_1): Ditto.
1014 2014-09-12 Pedro Alves <palves@redhat.com>
1016 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1017 (create_and_insert_solib_event_breakpoint): New functions.
1018 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1019 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1020 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1021 (remove_dbx_link_breakpoint): Delete function.
1022 (insert_dbx_link_bpt_in_file): Use
1023 create_and_insert_solib_event_breakpoint instead of
1024 deprecated_insert_raw_breakpoint.
1025 (procfs_wait): Don't check whether we hit __dbx_link here.
1026 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1028 * solib-irix.c (base_breakpoint): Delete global.
1029 (disable_break): Delete function.
1030 (enable_break): Use create_solib_event_breakpoint
1031 instead of deprecated_insert_raw_breakpoint.
1032 (irix_solib_handle_event): New function.
1033 (irix_solib_create_inferior_hook): Don't run the target or disable
1034 the mapping-complete breakpoint here.
1035 (_initialize_irix_solib): Install irix_solib_handle_event as
1036 so_ops->handle_event hook.
1038 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1039 Ulrich Weigand <uweigand@de.ibm.com>
1042 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1043 instead of read_memory_unsigned_integer.
1045 2014-09-12 Gary Benson <gbenson@redhat.com>
1047 * nat/linux-waitpid.c: Include common-defs.h.
1048 [GDBSERVER]: Add FIXME comment.
1049 [!GDBSERVER]: Don't include defs.h or signal.h.
1050 (linux_debug) [!GDBSERVER]: Remove empty block.
1052 2014-09-12 Gary Benson <gbenson@redhat.com>
1054 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1055 Don't include defs.h or server.h.
1057 2014-09-12 Gary Benson <gbenson@redhat.com>
1059 * nat/linux-btrace.c: Include common-defs.h.
1060 Don't include defs.h, server.h or gdbthread.h.
1061 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1063 2014-09-12 Gary Benson <gbenson@redhat.com>
1065 * common/agent.c: Include common-defs.h.
1066 Don't include defs.h or server.h.
1067 * common/buffer.c: Likewise.
1068 * common/common-debug.c: Likewise.
1069 * common/common-utils.c: Likewise.
1070 * common/errors.c: Likewise.
1071 * common/filestuff.c: Likewise.
1072 * common/format.c: Likewise.
1073 * common/gdb_vecs.c: Likewise.
1074 * common/print-utils.c: Likewise.
1075 * common/ptid.c: Likewise.
1076 * common/rsp-low.c: Likewise.
1077 * common/signals.c: Likewise.
1078 * common/vec.c: Likewise.
1079 * common/xml-utils.c: Likewise.
1080 * nat/linux-osdata.c: Likewise.
1081 * nat/linux-procfs.c: Likewise.
1082 * nat/linux-ptrace.c: Likewise.
1083 * nat/mips-linux-watch.c: Likewise.
1084 * target/waitstatus.c: Likewise.
1086 2014-09-12 Tom Tromey <tromey@redhat.com>
1087 Gary Benson <gbenson@redhat.com>
1089 * common/common-regcache.h: New file.
1090 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1091 * regcache.h: Include common-regcache.h.
1092 (regcache_read_pc): Don't declare.
1093 * regcache.c (get_thread_regcache_for_ptid): New function.
1094 * nat/linux-btrace.c: Don't include regcache.h.
1095 Include common-regcache.h.
1096 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1098 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1100 * regcache.h (struct regset): Declare.
1102 2014-09-11 Pedro Alves <palves@redhat.com>
1105 * main.c: Include "infrun.h".
1106 (catch_command_errors, catch_command_errors_const): Wait for the
1107 foreground command to complete.
1108 * top.c (maybe_wait_sync_command_done): New function, factored out
1110 (maybe_wait_sync_command_done): ... here.
1111 * top.h (maybe_wait_sync_command_done): New declaration.
1113 2014-09-11 Tom Tromey <tromey@redhat.com>
1114 Gary Benson <gbenson@redhat.com>
1116 * common/symbol.h: New file.
1117 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1118 * minsyms.c (find_minimal_symbol_address): New function.
1119 * common/agent.c: Include common/symbol.h.
1120 [!GDBSERVER]: Don't include objfiles.h.
1121 (agent_look_up_symbols): Use find_minimal_symbol_address.
1123 2014-09-11 Gary Benson <gbenson@redhat.com>
1125 * target/target.h (target_stop_ptid, target_continue_ptid):
1127 * target.c (target_stop_ptid, target_continue_ptid): New
1129 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1130 (agent_run_command): Always use target_stop_ptid and
1131 target_continue_ptid.
1133 2014-09-11 Tom Tromey <tromey@redhat.com>
1134 Gary Benson <gbenson@redhat.com>
1136 * target/target.h: New file.
1137 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1138 * target.h: Include target/target.h.
1139 (target_read_memory, target_write_memory): Don't declare.
1140 * target.c (target_read_uint32): New function.
1141 * common/agent.c: Include target/target.h.
1142 [!GDBSERVER]: Don't include target.h.
1143 (helper_thread_id): Type changed to uint32_t.
1144 (agent_get_helper_thread_id): Use target_read_uint32.
1145 (agent_run_command): Always use target_read_memory and
1146 target_write_memory.
1147 (agent_capability): Type changed to uint32_t.
1148 (agent_capability_check): Use target_read_uint32.
1150 2014-09-11 Gary Benson <gbenson@redhat.com>
1152 * common/common-debug.h (show_debug_regs): Declare.
1153 * common/common-debug.c (show_debug_regs): Define.
1154 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1155 all uses with show_debug_regs. Replace all uses that considered
1156 debug_hw_points as a multi-value integer with straight boolean
1158 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1159 with show_debug_regs.
1160 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1161 all uses with show_debug_regs.
1162 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1163 uses with show_debug_regs.
1165 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1167 * findvar.c (address_from_register): Handle targets requiring
1168 a special conversion routine even for plain pointer types.
1170 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1172 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1173 (store_register): Do not call exec_one_dummy_insn.
1175 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1177 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1178 dereference it first. Use value_enclosing_type instead of
1180 (ada_array_length): Likewise.
1182 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1184 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1185 Adjust function implementation and documentation accordingly.
1186 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1187 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1188 Update call to ada_value_ptr_subscript.
1190 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1192 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1193 instead of VAL's type.
1195 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1197 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1199 2014-09-09 Doug Evans <xdje42@gmail.com>
1202 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1203 last parameter to pkg-config, not first.
1204 * configure.ac: Pass --with-guile provided pkg-config path to
1205 GDB_GUILE_PROGRAM_NAMES.
1206 * configure: Regenerate.
1208 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1210 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1213 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1215 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1216 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1217 the list of sections determining GDB_OSABI_IRIX.
1219 2014-09-09 James Hogan <james.hogan@imgtec.com>
1221 * MAINTAINERS (Write After Approval): Add "James Hogan".
1223 2014-09-09 James Hogan <james.hogan@imgtec.com>
1225 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1227 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1229 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1231 2014-09-08 Doug Evans <xdje42@gmail.com>
1234 * guile.c: #include <signal.h>.
1235 (_initialize_guile): Block SIGCHLD while initializing Guile.
1237 Replaces the following, which is reverted.
1239 2014-07-26 Doug Evans <xdje42@gmail.com>
1242 * configure.ac: Add check for header gc/gc.h.
1243 Add check for function setenv.
1244 * configure: Regenerate.
1245 * config.in: Regenerate.
1246 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1248 2014-09-08 Doug Evans <xdje42@gmail.com>
1250 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1251 with named constant. Fix style of pointer comparison.
1252 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1254 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1257 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1258 decide whether we display the command on "show user".
1259 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1260 printing command name.
1261 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1262 * cli/cli-decode.c (cli_user_command_p): Create helper function
1263 to verify whether cmd_list_element is a user-defined command.
1265 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1268 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1269 Fix goto out of TRY_CATCH.
1271 2014-09-06 Doug Evans <xdje42@gmail.com>
1272 Tom Tromey <tromey@redhat.com>
1275 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1276 $_any_caller_matches.
1277 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1278 * python/lib/gdb/function/caller_is.py: New file.
1280 2014-09-06 Doug Evans <xdje42@gmail.com>
1282 * infcmd.c (program_info): Fix typo.
1284 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1287 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1288 'number'. New variable 'has_digit'. Rewrite code to deal with
1289 subexpressions on SDT probes.
1291 2014-09-04 Pedro Alves <palves@redhat.com>
1293 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1294 the input is only one character long.
1296 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1299 * f-valprint.c (f_val_print): Specify the correct print option to
1300 use when printing integer values.
1302 2014-09-04 Gary Benson <gbenson@redhat.com>
1304 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1305 Remove code to cope with LWPs wrapped as PIDs.
1306 Add assertions to ensure no wrapped LWPs are passed.
1308 2014-09-04 Pedro Alves <palves@redhat.com>
1310 * value.c (value_ranges_copy_adjusted): New function, factored out
1312 (value_contents_copy_raw): ... here.
1313 (unpack_value_bits_as_long_1): Rename back to ...
1314 (unpack_bits_as_long): ... this. Remove 'original_value' and
1315 'result' parameters. Change return type to LONGEST.
1316 (unpack_value_bits_as_long): Delete.
1317 (unpack_value_field_as_long_1): Delete.
1318 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1319 (unpack_value_bitfield): New function.
1320 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1321 (value_fetch_lazy): Use unpack_value_bitfield.
1322 * value.h (unpack_value_bits_as_long): Delete declaration.
1324 2014-09-03 Sasha Smundak <asmundak@google.com>
1326 * python/py-frame.c (frapy_read_register): New function.
1328 2014-09-03 James Hogan <james.hogan@imgtec.com>
1330 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1331 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1333 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1336 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1338 (add_cmd): Set "completer_handle_brkchars" to NULL.
1339 * cli/cli-decode.h (struct cmd_list_element)
1340 <completer_handle_brkchars>: New field.
1341 * command.h (completer_ftype_void): New typedef.
1342 (set_cmd_completer_handle_brkchars): New prototype.
1343 * completer.c (set_gdb_completion_word_break_characters): New
1345 (complete_line_internal): Call "completer_handle_brkchars"
1346 callback from command.
1347 * completer.h: Include "command.h".
1348 (set_gdb_completion_word_break_characters): New prototype.
1349 * python/py-cmd.c (cmdpy_completer_helper): New function.
1350 (cmdpy_completer_handle_brkchars): New function.
1351 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1352 (cmdpy_init): Set completer_handle_brkchars to
1353 cmdpy_completer_handle_brkchars.
1355 2014-09-03 Gary Benson <gbenson@redhat.com>
1357 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1358 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1359 Loop conditions changed to equivalent form.
1360 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1361 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1362 ALL_DEBUG_ADDRESS_REGISTERS.
1364 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1366 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1369 2014-09-02 Doug Evans <dje@google.com>
1371 * typeprint.c (find_global_typedef): Fix comment.
1373 2014-09-02 Gary Benson <gbenson@redhat.com>
1375 * i386-nat.h: Renamed as...
1376 * x86-nat.h: New file. All type, function and variable name
1377 prefixes changed from "i386_" to "x86_". All references updated.
1378 * i386-nat.c: Renamed as...
1379 * x86-nat.c: New file. All type, function and variable name
1380 prefixes changed from "i386_" to "x86_". All references updated.
1381 * common/i386-xstate.h: Renamed as...
1382 * common/x86-xstate.h: New file. All type, function and variable
1383 name prefixes changed from "i386_" to "x86_". All references
1385 * nat/i386-cpuid.h: Renamed as...
1386 * nat/x86-cpuid.h: New file. All type, function and variable name
1387 prefixes changed from "i386_" to "x86_". All references updated.
1388 * nat/i386-gcc-cpuid.h: Renamed as...
1389 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1390 name prefixes changed from "i386_" to "x86_". All references
1392 * nat/i386-dregs.h: Renamed as...
1393 * nat/x86-dregs.h: New file. All type, function and variable name
1394 prefixes changed from "i386_" to "x86_". All references updated.
1395 * nat/i386-dregs.c: Renamed as...
1396 * nat/x86-dregs.c: New file. All type, function and variable name
1397 prefixes changed from "i386_" to "x86_". All references updated.
1399 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1401 * varobj.c (_initialize_varobj): Move to the end of file.
1403 2014-08-29 Gary Benson <gbenson@redhat.com>
1405 * common/common-exceptions.h: New file.
1406 * common/common-exceptions.c: Likewise.
1407 * Makefile.in (SFILES): Add common/common-exceptions.c.
1408 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1409 (COMMON_OBS): Add common-exceptions.o.
1410 (common-exceptions.o): New rule.
1411 * exceptions.h (common-exceptions.h): Include.
1412 (gdb_setjmp.h): Do not include.
1413 (return_reason): Moved to common-exceptions.h.
1414 (enum return_reason): Likewise.
1415 (RETURN_MASK): Likewise.
1416 (typedef return_mask): Likewise.
1417 (enum errors): Likewise.
1418 (struct gdb_exception): Likewise.
1419 (exceptions_state_mc_init): Likewise.
1420 (exceptions_state_mc_action_iter): Likewise.
1421 (exceptions_state_mc_action_iter_1): Likewise.
1422 (TRY_CATCH): Likewise.
1423 (throw_exception): Likewise.
1424 (throw_verror): Likewise.
1425 (throw_vquit): Likewise.
1426 (throw_error): Likewise.
1427 (throw_quit): Likewise.
1428 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1429 (enum catcher_action): Likewise.
1430 (struct catcher): Likewise.
1431 (current_catcher): Likewise.
1432 (catcher_list_size): Likewise.
1433 (exceptions_state_mc_init): Likewise.
1434 (catcher_pop): Likewise.
1435 (exceptions_state_mc): Likewise.
1436 (exceptions_state_mc_action_iter): Likewise.
1437 (exceptions_state_mc_action_iter_1): Likewise.
1438 (throw_exception): Likewise.
1439 (exception_messages): Likewise.
1440 (exception_messages_size): Likewise.
1441 (throw_it): Likewise.
1442 (throw_verror): Likewise.
1443 (throw_vquit): Likewise.
1444 (throw_error): Likewise.
1445 (throw_quit): Likewise.
1446 (prepare_to_throw_exception): New function.
1448 2014-08-29 Gary Benson <gbenson@redhat.com>
1450 * common/gdb_setjmp.h: New file.
1451 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1452 * configure.ac: Move sigsetjmp check...
1453 * common/common.m4: ...here.
1454 * configure: Regenerate.
1455 * cp-support.c (SIGJMP_BUF): Delete.
1456 (SIGSETJMP): Likewise.
1457 (SIGLONGJMP): Likewise.
1458 * exceptions.h (gdb_setjmp.h): Include.
1459 (setjmp.h): Do not include.
1460 (EXCEPTIONS_SIGJMP_BUF): Delete.
1461 (EXCEPTIONS_SIGSETJMP): Likewise.
1462 (EXCEPTIONS_SIGLONGJMP): Likewise.
1463 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1465 * exceptions.c: Likewise.
1467 2014-08-29 Gary Benson <gbenson@redhat.com>
1469 * cleanups.h: Moved to...
1470 * common/cleanups.h: New file.
1471 * cleanups.c: Moved to...
1472 * common/cleanups.c: New file. Include common-defs.h and
1473 cleanups.h. Do not include defs.h.
1474 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1475 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1476 (cleanups.o): New rule.
1478 2014-08-29 Gary Benson <gbenson@redhat.com>
1480 * common/errors.h (internal_warning): New declaration.
1481 (internal_vwarning): Likewise.
1482 * common/errors.c (internal_warning): New function.
1483 * utils.h (internal_warning): Don't declare.
1484 (internal_vwarning): Likewise.
1485 * utils.c (internal_warning): Removed.
1487 2014-08-29 Gary Benson <gbenson@redhat.com>
1489 * main.c (captured_main): Use warning during startup.
1490 Prefix startup warning messages with command name.
1492 2014-08-29 Gary Benson <gbenson@redhat.com>
1494 * main.c (captured_main): Handle usage errors with error.
1496 2014-08-29 Gary Benson <gbenson@redhat.com>
1498 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1499 exit pair with a call to error. Wrap the message with _().
1501 2014-08-29 Gary Benson <gbenson@redhat.com>
1503 * main.c (captured_main): Replace a fprintf/exit
1504 pair with a call to error. Wrap the message with _().
1506 2014-08-29 Gary Benson <gbenson@redhat.com>
1508 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1509 pairs with calls to error. Wrap the message with _().
1511 2014-08-29 Gary Benson <gbenson@redhat.com>
1513 * utils.c (vwarning): Protect calls to target_terminal_ours
1516 2014-08-29 Gary Benson <gbenson@redhat.com>
1518 * exceptions.c (print_flush): Protect calls to
1519 target_terminal_ours and wrap_here.
1521 2014-08-29 Gary Benson <gbenson@redhat.com>
1523 * utils.h (filtered_printing_initialized): New declaration.
1524 * utils.c (abort_with_message): New function.
1525 (internal_vproblem): Use abort_with_message for first level
1526 recursive internal problems, and if gdb_stderr is not set up.
1527 Protect calls to target_terminal_ours, begin_line and query.
1529 2014-08-28 Doug Evans <dje@google.com>
1531 * symtab.c (in_prologue): Move definition to better spot.
1532 (skip_prologue_using_sal): Ditto.
1534 2014-08-28 Doug Evans <dje@google.com>
1536 * symtab.c (find_function_start_sal): Move definition to better spot.
1538 2014-08-28 Yao Qi <yao@codesourcery.com>
1540 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1541 found_stack_adjust in forward scan. Remove condition check
1542 on found_stack_adjust which is always true. Indent the code.
1544 2014-08-28 Yao Qi <yao@codesourcery.com>
1546 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1547 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1548 (dwarf_decode_lines): Remove argument
1549 want_line_info. Remove condition check on want_line_info.
1552 2014-08-27 Doug Evans <dje@google.com>
1554 * dwarf2read.c (dwarf_record_line): Fix typo.
1556 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1558 * target.h (struct target_ops::to_terminal_save_ours): Remove
1560 (target_terminal_save_ours): Remove macro.
1561 * target-delegates.c: Regenerate.
1562 * inf-child.c (inf_child_target): Don't set the nonexistent
1563 field to_terminal_save_ours.
1564 * inferior.h (child_terminal_save_ours): Remove declaration.
1565 * terminal.h (gdb_save_tty_state): New declaration.
1566 * inflow.c (child_terminal_save_ours): Rename to ...
1567 (gdb_save_tty_state): ... this.
1568 * tui/tui.c: Include terminal.h.
1569 (tui_enable): Use gdb_save_tty_state instead of
1570 target_terminal_save_ours.
1571 (tui_disable): Likewise.
1573 2014-08-25 Doug Evans <dje@google.com>
1575 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1576 Pass NULL instead of 0 for context pointer.
1578 2014-08-25 Yao Qi <yao@codesourcery.com>
1580 * dwarf2read.c: Fix grammatical error.
1582 2014-08-24 Yao Qi <yao@codesourcery.com>
1584 * dwarf2read.c (scan_partial_symbols): Update comments.
1585 Rename argument 'need_pc' with 'set_addrmap'.
1586 (add_partial_namespace): Rename argument 'need_pc' with
1588 (add_partial_module): Likewise.
1589 (add_partial_subprogram): Likewise. Update comments.
1590 (dwarf2_name): Fix typo.
1592 2014-08-22 Doug Evans <dje@google.com>
1595 * dwarf2read.c (dwarf_record_line_p): New function.
1596 (dwarf_decode_lines_1): Ignore subsequent line number entries
1597 for the same line if any entry had a non-zero discriminator.
1599 2014-08-22 Doug Evans <dje@google.com>
1601 * buildsym.h (record_line_ftype): New typedef.
1602 (record_line): Use it.
1603 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1604 (dwarf_decode_lines_1): Call them.
1606 2014-08-22 Yao Qi <yao@codesourcery.com>
1608 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1609 (ctf_end): Remove code.
1611 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1613 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1614 (linux_make_corefile_notes): call update_thread_list, protected against
1617 2014-08-21 Pedro Alves <palves@redhat.com>
1619 * infcmd.c (attach_command): Remove comment.
1621 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1623 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1624 unsigned LONGEST to ULONGEST.
1626 2014-08-20 Pedro Alves <palves@redhat.com>
1628 * Makefile.in (check-read1): New rule.
1630 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1632 * value.c (value_from_contents_and_address): Strip resolved_type's
1633 typedef layers before checking its TYPE_DATA_LOCATION.
1635 2014-08-20 Pedro Alves <palves@redhat.com>
1637 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1639 2014-08-20 Yao Qi <yao@codesourcery.com>
1641 * amd64-tdep.c (amd64_classify): Add a blank line after the
1642 example. Move "*/" to a new line.
1643 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1644 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1645 * dwarf2read.c (psymtab_include_file_name): Likewise.
1647 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1648 Pedro Alves <palves@redhat.com>
1652 * ada-lang.c (coerce_unspec_val_to_type): Use
1653 value_contents_copy_raw.
1654 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1655 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1656 * cp-valprint.c (cp_print_value_fields): Let the common printing
1657 code handle optimized out values.
1658 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1659 * d-valprint.c (dynamic_array_type): Use
1660 value_bits_any_optimized_out.
1661 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1662 check_any_valid fields.
1663 (check_pieced_value_bits): Delete and inline ...
1664 (check_pieced_synthetic_pointer): ... here.
1665 (check_pieced_value_validity): Delete.
1666 (check_pieced_value_invalid): Delete.
1667 (pieced_value_funcs): Remove check_validity and check_any_valid
1669 (read_pieced_value): Use mark_value_bits_optimized_out.
1670 (write_pieced_value): Switch to use
1671 mark_value_bytes_optimized_out.
1672 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1673 of assuming the whole value is optimized out.
1674 * findvar.c (read_frame_register_value): Remove special handling
1675 of optimized out registers.
1676 (value_from_register): Use mark_value_bytes_optimized_out.
1677 * frame-unwind.c (frame_unwind_got_optimized): Use
1678 mark_value_bytes_optimized_out.
1679 * jv-valprint.c (java_value_print): Adjust.
1680 (java_print_value_fields): Let the common printing code handle
1681 optimized out values.
1682 * mips-tdep.c (mips_print_register): Remove special handling of
1683 optimized out registers.
1684 * opencl-lang.c (lval_func_check_validity): Delete.
1685 (lval_func_check_any_valid): Delete.
1686 (opencl_value_funcs): Remove check_validity and check_any_valid
1688 * p-valprint.c (pascal_object_print_value_fields): Let the common
1689 printing code handle optimized out values.
1690 * stack.c (read_frame_arg): Remove special handling of optimized
1691 out values. Fetch both VAL and ENTRYVAL before comparing
1692 contents. Adjust to value_available_contents_eq rename.
1693 * valprint.c (valprint_check_validity)
1694 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1695 (val_print_array_elements): Adjust.
1696 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1697 (value_bits_any_optimized_out): New function.
1698 (value_entirely_covered_by_range_vector): New function, factored
1699 out from value_entirely_unavailable.
1700 (value_entirely_unavailable): Reimplement.
1701 (value_entirely_optimized_out): New function.
1702 (insert_into_bit_range_vector): New function, factored out from
1703 mark_value_bits_unavailable.
1704 (mark_value_bits_unavailable): Reimplement.
1705 (struct ranges_and_idx): New struct.
1706 (find_first_range_overlap_and_match): New function, factored out
1707 from value_available_contents_bits_eq.
1708 (value_available_contents_bits_eq): Rename to ...
1709 (value_contents_bits_eq): ... this. Check both unavailable
1710 contents and optimized out contents.
1711 (value_available_contents_eq): Rename to ...
1712 (value_contents_eq): ... this.
1713 (allocate_value_lazy): Remove reference to the old optimized_out
1715 (allocate_optimized_out_value): Use
1716 mark_value_bytes_optimized_out.
1717 (require_not_optimized_out): Adjust to check whether the
1718 optimized_out vec is empty.
1719 (ranges_copy_adjusted): New function, factored out from
1720 value_contents_copy_raw.
1721 (value_contents_copy_raw): Also copy the optimized out ranges.
1722 Assert the destination ranges aren't optimized out.
1723 (value_contents_copy): Update comment, remove call to
1724 require_not_optimized_out.
1725 (value_contents_equal): Adjust to check whether the optimized_out
1727 (set_value_optimized_out, value_optimized_out_const): Delete.
1728 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1730 (value_entirely_optimized_out, value_bits_valid): Delete.
1731 (value_copy): Take a VEC copy of the 'optimized_out' field.
1732 (value_primitive_field): Remove special handling of optimized out.
1733 (value_fetch_lazy): Assert that lazy values have no unavailable
1734 regions. Use value_bits_any_optimized_out. Remove some special
1735 handling for optimized out values.
1736 * value.h: Add intro comment about <optimized out> and
1738 (struct lval_funcs): Remove check_validity and check_any_valid
1740 (set_value_optimized_out, value_optimized_out_const): Remove.
1741 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1743 (value_bits_any_optimized_out): New declaration.
1744 (value_bits_valid): Delete declaration.
1745 (value_available_contents_eq): Rename to ...
1746 (value_contents_eq): ... this, and extend comments.
1748 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1750 Fix -fsanitize=address on unreadable inferior strings.
1751 * valprint.c (val_print_string): Fix access before BUFFER.
1753 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1755 * target.c (target_struct_size): Remove.
1756 (target_struct_allocsize): Remove.
1757 (DEFAULT_ALLOCSIZE): Remove.
1758 (target_ops_p): New typedef.
1759 (DEF_VEC_P (target_ops_p)): New vector type.
1760 (target_structs): Change type to VEC (target_ops_p).
1761 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1762 (find_default_run_target): Rewrite for loop following changes to
1765 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1767 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1768 Adjust code accordingly. Adjust function description comment.
1770 2014-08-19 Yao Qi <yao@codesourcery.com>
1772 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1775 2014-08-19 Alan Modra <amodra@gmail.com>
1777 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1778 * config.in: Regenerate.
1779 * configure: Regenerate.
1781 2014-08-19 Tom Tromey <tromey@redhat.com>
1782 Gary Benson <gbenson@redhat.com>
1784 * common/common-debug.h: New file.
1785 * common/common-debug.c: Likewise.
1786 * debug.c: Likewise.
1787 * Makefile.in (SFILES): Add common/common-debug.c.
1788 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1789 (COMMON_OBS): Add common-debug.o and debug.o.
1790 (common-debug.o): New rule.
1791 * common/common-defs.h: Include common-debug.h.
1792 * common/agent.c (debug_agent_printf): New function.
1793 (DEBUG_AGENT): Redefine.
1794 * nat/i386-dregs.c (debug_printf): Undefine.
1796 2014-08-19 Gary Benson <gbenson@redhat.com>
1798 * common/common-defs.h: Include print-utils.h.
1799 * utils.h: Do not include print-utils.h.
1801 2014-08-19 Tom Tromey <tromey@redhat.com>
1802 Gary Benson <gbenson@redhat.com>
1804 * common/common-types.h: New file.
1805 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1806 * common/common-defs.h: Include common-types.h.
1807 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1810 2014-08-19 Tom Tromey <tromey@redhat.com>
1811 Gary Benson <gbenson@redhat.com>
1813 * common/errors.h: New file.
1814 * common/errors.c: Likewise.
1815 * Makefile.in (SFILES): Add common/errors.c.
1816 (HFILES_NO_SRCDIR): Add common/errors.h.
1817 (COMMON_OBS): Add errors.o.
1818 (errors.o): New rule.
1819 * common/common-defs.h: Include errors.h.
1820 * utils.h (perror_with_name, error, verror, warning, vwarning):
1822 * common/common-utils.h: (malloc_failure, internal_error):
1825 2014-08-19 Gary Benson <gbenson@redhat.com>
1827 * utils.c (internal_vproblem): Always print the message.
1829 2014-08-18 Doug Evans <dje@google.com>
1831 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1833 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1835 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1836 Return 0 if TYPE is dynamic.
1837 (print_range): Add handling of dynamic ranges.
1839 2014-08-18 Keven Boell <keven.boell@intel.com>
1840 Joel Brobecker <brobecker@adacore.com>
1842 * gdbtypes.h (struct main_type): Add field "data_location".
1843 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1844 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1845 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1846 a dynamic data location.
1847 (resolve_dynamic_type): Add DW_AT_data_location handling.
1848 (copy_recursive, copy_type): Copy the data_location information
1850 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1851 * value.c (value_from_contents_and_address): Add
1852 DW_AT_data_location handling.
1854 2014-08-18 Keven Boell <keven.boell@intel.com>
1855 Joel Brobecker <brobecker@adacore.com>
1857 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1858 field "get_object_address".
1859 * dwarf2expr.c (execute_stack_op): Add handling for
1860 DW_OP_push_object_address.
1861 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1862 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1863 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1864 (dwarf_expr_get_obj_addr): New function.
1865 (dwarf_expr_ctx_funcs): Add get_object_address field.
1866 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1867 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1868 (dwarf2_evaluate_property): Add parameter "address". Use it.
1869 (needs_get_obj_addr): New function.
1870 (needs_frame_ctx_funcs): Add get_object_address field.
1871 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1872 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1873 (resolve_dynamic_array): Likewise.
1875 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1877 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1878 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1879 fixed value for records and unions for which some GNAT encodings
1882 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1884 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1885 rewrite to avoid "else if" and "else" constructs. Should be
1886 a no-op in practice.
1888 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1890 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1893 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1896 * eval.c: Update all calls to find_overload_match.
1897 * valarith.c: Likewise.
1898 (value_user_defined_cpp_op, value_user_defined_op): New
1899 argument NOSIDE. Update all callers.
1900 * valops.c (find_overload_match): New argument NOSIDE.
1901 * value.h (find_overload_match): Update signature.
1903 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1905 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1906 'items' methods instead of 'iteritems' method on dictionaries.
1908 2014-08-15 Doug Evans <dje@google.com>
1910 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1913 2014-08-15 Doug Evans <dje@google.com>
1915 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1917 2014-08-15 Doug Evans <dje@google.com>
1919 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1921 2014-08-15 Doug Evans <dje@google.com>
1923 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1926 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1928 * dcache.h: Include target.h, to avoid compile time warnings.
1930 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1932 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1933 frame_info" partial declaration.
1934 * gdbarch.h: Regenerate.
1936 2014-08-15 Yao Qi <yao@codesourcery.com>
1938 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1939 Add parameter 'decode_for_pst_p'. Callers update.
1941 2014-08-13 Yao Qi <yao@codesourcery.com>
1944 * configure.ac: Use local variable 'pos'.
1945 * configure: Regenerated.
1947 2014-08-11 Doug Evans <dje@google.com>
1949 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1950 message, it is redundant with "Reading symbols from ..." message.
1952 2014-08-10 Doug Evans <xdje42@gmail.com>
1954 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1956 2014-08-09 Yao Qi <yao@codesourcery.com>
1959 * remote.c (remote_xfer_partial): Remove dead code.
1961 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1963 * ia64-linux-tdep.c: Include "regset.h".
1964 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1965 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1966 (ia64_linux_supply_fpregset): New function.
1967 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1968 (ia64_linux_regset_from_core_section): New function.
1969 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1972 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1974 * m68klinux-tdep.c: Include "regset.h".
1975 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1976 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1977 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1978 (m68k_linux_regset_from_core_section): New function.
1979 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1982 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1984 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1985 function. Move logic to...
1986 (tilegx_linux_regmap): ... this new register map.
1987 (tilegx_linux_regset): Refer to register map, replace supply
1988 method by regcache_supply_regset, and add collect method.
1989 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1990 TILEGX_FIRST_EASY_REGNUM.
1992 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1994 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1995 that calls regcache_supply_regset and handles the EPC register
1996 separately. Move main logic to...
1997 (score7_linux_gregmap): ... this new register map.
1998 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1999 (score7_linux_gregset): Refer to register map. Add collect method.
2000 (score7_linux_regset_from_core_section): Replace
2001 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2002 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2003 (struct regset): Delete unused forward declaraction.
2004 (struct pt_regs): Delete structure definition.
2005 (elf_gregset_t): Delete typedef.
2007 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2009 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2010 (nios2_core_regset): Add collect method.
2012 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2014 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2015 platform-independent and don't write to read-only input buffer.
2016 (m32r_linux_collect_gregset): New function.
2017 (m32r_linux_gregset): Add collect method.
2019 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2021 * hppa-linux-tdep.c (greg_map): Rename to...
2022 (hppa_linux_gregmap): ... this. Also convert to
2023 regcache_map_entry format.
2024 (hppa_linux_supply_regset): Delete function.
2025 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2026 (hppa_linux_fpregmap): ... this new register map.
2027 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2028 register map, replace supply method by regcache_supply_regset, and
2029 add collect method regcache_collect_regset.
2031 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2033 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2034 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2035 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2036 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2037 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2038 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2039 (frv_linux_supply_gregset): Replace main logic by call to
2040 regcache_supply_regset, but keep clearing gr32-gr63.
2041 (frv_linux_supply_fpregset): Delete function.
2042 (frv_linux_gregset): Refer to appropriate register map and add
2043 regcache_collect_regset as the collect method.
2044 (frv_linux_fpregset): Likewise. Also exchange the supply method
2045 by regcache_supply_regset.
2047 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2049 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2050 by call to alpha_supply_int_regs.
2051 (alpha_linux_collect_gregset): New function.
2052 (alpha_linux_supply_fpregset): Replace logic by call to
2053 alpha_supply_fp_regs.
2054 (alpha_linux_collect_fpregset): New function.
2055 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2057 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2059 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2060 by call to regcache_collect_regset.
2061 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2062 instead of aarch64_linux_supply_gregset/_fpregset.
2063 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2064 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2065 header file instead.
2066 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2067 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2068 functions. Move logic to ...
2069 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2071 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2072 refer to new register maps, replace *_regset_from_core by
2073 regcache_supply_regset, and also use regcache_collect_regset.
2074 * aarch64-linux-tdep.h: Include "regset.h".
2075 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2077 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2078 macros, moved from C source file.
2079 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2080 variable declarations.
2082 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2084 * s390-linux-nat.c: Include "regset.h".
2085 (regmap_gregset): Delete macro.
2086 (s390_64_regmap_gregset): New register map for
2087 regcache_supply/_collect_regset.
2088 (s390_64_gregset): New regset.
2089 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2090 (regmap_fpregset): Delete macro.
2091 (s390_native_supply, s390_native_collect): Delete functions.
2092 (supply_gregset, fill_gregset): Replace s390-specific regmap
2093 handling by a call to regcache_supply/_collect_regset.
2094 (supply_fpregset, fill_fpregset): Call regcache_supply/
2095 _collect_regset instead of s390_native_supply/_collect.
2096 (fetch_regset, store_regset): Likewise. Also change the last
2097 parameter to a regset instead of a regmap.
2098 (s390_linux_fetch_inferior_registers)
2099 (390_linux_store_inferior_registers): Adjust last parameter in
2100 calls to fetch_regset and store_regset.
2101 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2102 (s390_gregmap): ... this. Also make static const and convert to
2103 regcache_map_entry format.
2104 (s390x_regmap_gregset): Delete.
2105 (s390_regmap_fpregset): Rename to...
2106 (s390_fpregmap): ... this. Make static const and convert to
2107 regcache_map_entry format.
2108 (s390_regmap_upper, s390_regmap_last_break)
2109 (s390x_regmap_last_break, s390_regmap_system_call)
2110 (s390_regmap_tdb): Likewise.
2111 (s390_supply_regset, s390_collect_regset): Remove functions.
2112 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2114 (s390_gregset, s390_fpregset, s390_upper_regset)
2115 (s390_last_break_regset, s390x_last_break_regset)
2116 (s390_system_call_regset, s390_tdb_regset): Make global and
2117 replace s390_supply/_collect_regset by regcache_supply/
2119 (s390x_gregset): Delete.
2120 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2121 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2122 (s390_regmap_fpregset, s390_regmap_last_break)
2123 (s390x_regmap_last_break, s390_regmap_system_call)
2124 (s390_regmap_tdb): Delete global variable declarations.
2125 (s390_gregset, s390_fpregset, s390_last_break_regset)
2126 (s390x_last_break_regset, s390_system_call_regset)
2127 (s390_tdb_regset): New global variable declarations.
2129 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2131 * regcache.c: Include "regset.h".
2132 (regcache_transfer_regset): New local function.
2133 (regcache_supply_regset, regcache_collect_regset): New functions.
2134 * regcache.h (struct regcache_map_entry): New structure.
2135 (REGCACHE_MAP_SKIP): New enum value.
2136 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2138 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2140 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2141 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2142 (ppc_linux_collect_gregset ): Likewise.
2143 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2144 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2145 (ppc_collect_vrregset): Likewise.
2146 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2149 2014-08-07 Yao Qi <yao@codesourcery.com>
2151 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2152 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2153 * remote.c (remote_read_bytes): Likewise.
2155 2014-08-07 Yao Qi <yao@codesourcery.com>
2157 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2159 2014-08-07 Yao Qi <yao@codesourcery.com>
2162 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2163 TARGET_XFER_OK instead of 0.
2165 2014-08-07 Gary Benson <gbenson@redhat.com>
2167 * common/common-defs.h: Include errno.h.
2168 * defs.h: Do not include errno.h.
2169 * ada-typeprint.c: Likewise.
2170 * c-typeprint.c: Likewise.
2171 * core-regset.c: Likewise.
2172 * corefile.c: Likewise.
2173 * corelow.c: Likewise.
2174 * event-loop.c: Likewise.
2175 * f-typeprint.c: Likewise.
2176 * gnu-nat.c: Likewise.
2177 * go32-nat.c: Likewise.
2178 * i386gnu-nat.c: Likewise.
2179 * m2-typeprint.c: Likewise.
2180 * nat/linux-btrace.c: Likewise.
2181 * p-typeprint.c: Likewise.
2182 * procfs.c: Likewise.
2183 * remote-sim.c: Likewise.
2184 * rs6000-nat.c: Likewise.
2185 * target.c: Likewise.
2186 * typeprint.c: Likewise.
2187 * ui-file.c: Likewise.
2188 * valops.c: Likewise.
2189 * valprint.c: Likewise.
2191 2014-08-07 Gary Benson <gbenson@redhat.com>
2193 * common/common-defs.h: Include string.h.
2194 * aarch64-tdep.c: Do not include string.h.
2195 * ada-exp.y: Likewise.
2196 * ada-lang.c: Likewise.
2197 * ada-lex.l: Likewise.
2198 * ada-typeprint.c: Likewise.
2199 * ada-valprint.c: Likewise.
2200 * aix-thread.c: Likewise.
2201 * alpha-linux-tdep.c: Likewise.
2202 * alpha-mdebug-tdep.c: Likewise.
2203 * alpha-nat.c: Likewise.
2204 * alpha-osf1-tdep.c: Likewise.
2205 * alpha-tdep.c: Likewise.
2206 * alphanbsd-tdep.c: Likewise.
2207 * amd64-dicos-tdep.c: Likewise.
2208 * amd64-linux-tdep.c: Likewise.
2209 * amd64-nat.c: Likewise.
2210 * amd64-sol2-tdep.c: Likewise.
2211 * amd64fbsd-tdep.c: Likewise.
2212 * amd64obsd-tdep.c: Likewise.
2213 * arch-utils.c: Likewise.
2214 * arm-linux-nat.c: Likewise.
2215 * arm-linux-tdep.c: Likewise.
2216 * arm-tdep.c: Likewise.
2217 * arm-wince-tdep.c: Likewise.
2218 * armbsd-tdep.c: Likewise.
2219 * armnbsd-nat.c: Likewise.
2220 * armnbsd-tdep.c: Likewise.
2221 * armobsd-tdep.c: Likewise.
2222 * avr-tdep.c: Likewise.
2223 * ax-gdb.c: Likewise.
2224 * ax-general.c: Likewise.
2225 * bcache.c: Likewise.
2226 * bfin-tdep.c: Likewise.
2227 * breakpoint.c: Likewise.
2228 * build-id.c: Likewise.
2229 * buildsym.c: Likewise.
2230 * c-exp.y: Likewise.
2231 * c-lang.c: Likewise.
2232 * c-typeprint.c: Likewise.
2233 * c-valprint.c: Likewise.
2234 * charset.c: Likewise.
2235 * cli-out.c: Likewise.
2236 * cli/cli-cmds.c: Likewise.
2237 * cli/cli-decode.c: Likewise.
2238 * cli/cli-dump.c: Likewise.
2239 * cli/cli-interp.c: Likewise.
2240 * cli/cli-logging.c: Likewise.
2241 * cli/cli-script.c: Likewise.
2242 * cli/cli-setshow.c: Likewise.
2243 * cli/cli-utils.c: Likewise.
2244 * coffread.c: Likewise.
2245 * common/agent.c: Likewise.
2246 * common/buffer.c: Likewise.
2247 * common/buffer.h: Likewise.
2248 * common/common-utils.c: Likewise.
2249 * common/filestuff.c: Likewise.
2250 * common/filestuff.c: Likewise.
2251 * common/format.c: Likewise.
2252 * common/print-utils.c: Likewise.
2253 * common/rsp-low.c: Likewise.
2254 * common/signals.c: Likewise.
2255 * common/vec.h: Likewise.
2256 * common/xml-utils.c: Likewise.
2257 * core-regset.c: Likewise.
2258 * corefile.c: Likewise.
2259 * corelow.c: Likewise.
2260 * cp-abi.c: Likewise.
2261 * cp-name-parser.y: Likewise.
2262 * cp-support.c: Likewise.
2263 * cp-valprint.c: Likewise.
2264 * cris-tdep.c: Likewise.
2265 * d-exp.y: Likewise.
2266 * darwin-nat.c: Likewise.
2267 * dbxread.c: Likewise.
2268 * dcache.c: Likewise.
2269 * demangle.c: Likewise.
2270 * dicos-tdep.c: Likewise.
2271 * disasm.c: Likewise.
2272 * doublest.c: Likewise.
2273 * dsrec.c: Likewise.
2274 * dummy-frame.c: Likewise.
2275 * dwarf2-frame.c: Likewise.
2276 * dwarf2loc.c: Likewise.
2277 * dwarf2read.c: Likewise.
2278 * elfread.c: Likewise.
2279 * environ.c: Likewise.
2281 * event-loop.c: Likewise.
2282 * exceptions.c: Likewise.
2284 * expprint.c: Likewise.
2285 * f-exp.y: Likewise.
2286 * f-lang.c: Likewise.
2287 * f-typeprint.c: Likewise.
2288 * f-valprint.c: Likewise.
2289 * fbsd-nat.c: Likewise.
2290 * findcmd.c: Likewise.
2291 * findvar.c: Likewise.
2292 * fork-child.c: Likewise.
2293 * frame.c: Likewise.
2294 * frv-linux-tdep.c: Likewise.
2295 * frv-tdep.c: Likewise.
2297 * gdb_bfd.c: Likewise.
2298 * gdbarch.c: Likewise.
2299 * gdbarch.sh: Likewise.
2300 * gdbtypes.c: Likewise.
2301 * gnu-nat.c: Likewise.
2302 * gnu-v2-abi.c: Likewise.
2303 * gnu-v3-abi.c: Likewise.
2304 * go-exp.y: Likewise.
2305 * go-lang.c: Likewise.
2306 * go32-nat.c: Likewise.
2307 * guile/guile.c: Likewise.
2308 * guile/scm-auto-load.c: Likewise.
2309 * hppa-hpux-tdep.c: Likewise.
2310 * hppa-linux-nat.c: Likewise.
2311 * hppanbsd-tdep.c: Likewise.
2312 * hppaobsd-tdep.c: Likewise.
2313 * i386-cygwin-tdep.c: Likewise.
2314 * i386-dicos-tdep.c: Likewise.
2315 * i386-linux-tdep.c: Likewise.
2316 * i386-nto-tdep.c: Likewise.
2317 * i386-sol2-tdep.c: Likewise.
2318 * i386-tdep.c: Likewise.
2319 * i386bsd-tdep.c: Likewise.
2320 * i386gnu-nat.c: Likewise.
2321 * i386nbsd-tdep.c: Likewise.
2322 * i386obsd-tdep.c: Likewise.
2323 * i387-tdep.c: Likewise.
2324 * ia64-libunwind-tdep.c: Likewise.
2325 * ia64-linux-nat.c: Likewise.
2326 * inf-child.c: Likewise.
2327 * inf-ptrace.c: Likewise.
2328 * inf-ttrace.c: Likewise.
2329 * infcall.c: Likewise.
2330 * infcmd.c: Likewise.
2331 * inflow.c: Likewise.
2332 * infrun.c: Likewise.
2333 * interps.c: Likewise.
2334 * iq2000-tdep.c: Likewise.
2335 * irix5-nat.c: Likewise.
2336 * jv-exp.y: Likewise.
2337 * jv-lang.c: Likewise.
2338 * jv-typeprint.c: Likewise.
2339 * jv-valprint.c: Likewise.
2340 * language.c: Likewise.
2341 * linux-fork.c: Likewise.
2342 * linux-nat.c: Likewise.
2343 * lm32-tdep.c: Likewise.
2344 * m2-exp.y: Likewise.
2345 * m2-typeprint.c: Likewise.
2346 * m32c-tdep.c: Likewise.
2347 * m32r-linux-nat.c: Likewise.
2348 * m32r-linux-tdep.c: Likewise.
2349 * m32r-rom.c: Likewise.
2350 * m32r-tdep.c: Likewise.
2351 * m68hc11-tdep.c: Likewise.
2352 * m68k-tdep.c: Likewise.
2353 * m68kbsd-tdep.c: Likewise.
2354 * m68klinux-nat.c: Likewise.
2355 * m68klinux-tdep.c: Likewise.
2356 * m88k-tdep.c: Likewise.
2357 * machoread.c: Likewise.
2358 * macrocmd.c: Likewise.
2360 * mdebugread.c: Likewise.
2361 * mem-break.c: Likewise.
2362 * memattr.c: Likewise.
2363 * memory-map.c: Likewise.
2364 * mep-tdep.c: Likewise.
2365 * mi/mi-cmd-break.c: Likewise.
2366 * mi/mi-cmd-disas.c: Likewise.
2367 * mi/mi-cmd-env.c: Likewise.
2368 * mi/mi-cmd-stack.c: Likewise.
2369 * mi/mi-cmd-var.c: Likewise.
2370 * mi/mi-cmds.c: Likewise.
2371 * mi/mi-console.c: Likewise.
2372 * mi/mi-getopt.c: Likewise.
2373 * mi/mi-interp.c: Likewise.
2374 * mi/mi-main.c: Likewise.
2375 * mi/mi-parse.c: Likewise.
2376 * microblaze-rom.c: Likewise.
2377 * microblaze-tdep.c: Likewise.
2378 * mingw-hdep.c: Likewise.
2379 * minidebug.c: Likewise.
2380 * minsyms.c: Likewise.
2381 * mips-irix-tdep.c: Likewise.
2382 * mips-linux-tdep.c: Likewise.
2383 * mips-tdep.c: Likewise.
2384 * mips64obsd-tdep.c: Likewise.
2385 * mipsnbsd-tdep.c: Likewise.
2386 * mipsread.c: Likewise.
2387 * mn10300-linux-tdep.c: Likewise.
2388 * mn10300-tdep.c: Likewise.
2389 * monitor.c: Likewise.
2390 * moxie-tdep.c: Likewise.
2391 * mt-tdep.c: Likewise.
2392 * nat/linux-btrace.c: Likewise.
2393 * nat/linux-osdata.c: Likewise.
2394 * nat/linux-procfs.c: Likewise.
2395 * nat/linux-ptrace.c: Likewise.
2396 * nat/linux-waitpid.c: Likewise.
2397 * nbsd-tdep.c: Likewise.
2398 * nios2-linux-tdep.c: Likewise.
2399 * nto-procfs.c: Likewise.
2400 * nto-tdep.c: Likewise.
2401 * objc-lang.c: Likewise.
2402 * objfiles.c: Likewise.
2403 * opencl-lang.c: Likewise.
2404 * osabi.c: Likewise.
2405 * osdata.c: Likewise.
2406 * p-exp.y: Likewise.
2407 * p-lang.c: Likewise.
2408 * p-typeprint.c: Likewise.
2409 * parse.c: Likewise.
2410 * posix-hdep.c: Likewise.
2411 * ppc-linux-nat.c: Likewise.
2412 * ppc-sysv-tdep.c: Likewise.
2413 * ppcfbsd-tdep.c: Likewise.
2414 * ppcnbsd-tdep.c: Likewise.
2415 * ppcobsd-tdep.c: Likewise.
2416 * printcmd.c: Likewise.
2417 * procfs.c: Likewise.
2418 * prologue-value.c: Likewise.
2419 * python/py-auto-load.c: Likewise.
2420 * python/py-gdb-readline.c: Likewise.
2421 * ravenscar-thread.c: Likewise.
2422 * regcache.c: Likewise.
2423 * registry.c: Likewise.
2424 * remote-fileio.c: Likewise.
2425 * remote-m32r-sdi.c: Likewise.
2426 * remote-mips.c: Likewise.
2427 * remote-notif.c: Likewise.
2428 * remote-sim.c: Likewise.
2429 * remote.c: Likewise.
2430 * reverse.c: Likewise.
2431 * rs6000-aix-tdep.c: Likewise.
2432 * ser-base.c: Likewise.
2433 * ser-go32.c: Likewise.
2434 * ser-mingw.c: Likewise.
2435 * ser-pipe.c: Likewise.
2436 * ser-tcp.c: Likewise.
2437 * ser-unix.c: Likewise.
2438 * serial.c: Likewise.
2439 * sh-tdep.c: Likewise.
2440 * sh64-tdep.c: Likewise.
2441 * shnbsd-tdep.c: Likewise.
2443 * sol-thread.c: Likewise.
2444 * solib-dsbt.c: Likewise.
2445 * solib-frv.c: Likewise.
2446 * solib-osf.c: Likewise.
2447 * solib-som.c: Likewise.
2448 * solib-spu.c: Likewise.
2449 * solib-target.c: Likewise.
2450 * solib.c: Likewise.
2451 * somread.c: Likewise.
2452 * source.c: Likewise.
2453 * sparc-nat.c: Likewise.
2454 * sparc-sol2-tdep.c: Likewise.
2455 * sparc-tdep.c: Likewise.
2456 * sparc64-tdep.c: Likewise.
2457 * sparc64fbsd-tdep.c: Likewise.
2458 * sparc64nbsd-tdep.c: Likewise.
2459 * sparcnbsd-tdep.c: Likewise.
2460 * spu-linux-nat.c: Likewise.
2461 * spu-multiarch.c: Likewise.
2462 * spu-tdep.c: Likewise.
2463 * stabsread.c: Likewise.
2464 * stack.c: Likewise.
2465 * std-regs.c: Likewise.
2466 * symfile.c: Likewise.
2467 * symmisc.c: Likewise.
2468 * symtab.c: Likewise.
2469 * target.c: Likewise.
2470 * thread.c: Likewise.
2471 * tilegx-linux-nat.c: Likewise.
2472 * tilegx-tdep.c: Likewise.
2474 * tracepoint.c: Likewise.
2475 * tui/tui-command.c: Likewise.
2476 * tui/tui-data.c: Likewise.
2477 * tui/tui-disasm.c: Likewise.
2478 * tui/tui-file.c: Likewise.
2479 * tui/tui-layout.c: Likewise.
2480 * tui/tui-out.c: Likewise.
2481 * tui/tui-regs.c: Likewise.
2482 * tui/tui-source.c: Likewise.
2483 * tui/tui-stack.c: Likewise.
2484 * tui/tui-win.c: Likewise.
2485 * tui/tui-windata.c: Likewise.
2486 * tui/tui-winsource.c: Likewise.
2487 * typeprint.c: Likewise.
2488 * ui-file.c: Likewise.
2489 * ui-out.c: Likewise.
2490 * user-regs.c: Likewise.
2491 * utils.c: Likewise.
2492 * v850-tdep.c: Likewise.
2493 * valarith.c: Likewise.
2494 * valops.c: Likewise.
2495 * valprint.c: Likewise.
2496 * value.c: Likewise.
2497 * varobj.c: Likewise.
2498 * vax-tdep.c: Likewise.
2499 * vaxnbsd-tdep.c: Likewise.
2500 * vaxobsd-tdep.c: Likewise.
2501 * windows-nat.c: Likewise.
2502 * xcoffread.c: Likewise.
2503 * xml-support.c: Likewise.
2504 * xstormy16-tdep.c: Likewise.
2505 * xtensa-linux-nat.c: Likewise.
2507 2014-08-07 Gary Benson <gbenson@redhat.com>
2509 * common/common-defs.h: Include gdb_assert.h.
2510 * aarch64-tdep.c: Do not include gdb_assert.h.
2511 * addrmap.c: Likewise.
2512 * aix-thread.c: Likewise.
2513 * alpha-linux-tdep.c: Likewise.
2514 * alpha-mdebug-tdep.c: Likewise.
2515 * alphanbsd-tdep.c: Likewise.
2516 * amd64-nat.c: Likewise.
2517 * amd64-tdep.c: Likewise.
2518 * amd64bsd-nat.c: Likewise.
2519 * amd64fbsd-nat.c: Likewise.
2520 * amd64fbsd-tdep.c: Likewise.
2521 * amd64nbsd-nat.c: Likewise.
2522 * amd64nbsd-tdep.c: Likewise.
2523 * amd64obsd-nat.c: Likewise.
2524 * amd64obsd-tdep.c: Likewise.
2525 * arch-utils.c: Likewise.
2526 * arm-tdep.c: Likewise.
2527 * armbsd-tdep.c: Likewise.
2529 * bcache.c: Likewise.
2530 * bfin-tdep.c: Likewise.
2531 * blockframe.c: Likewise.
2532 * breakpoint.c: Likewise.
2533 * bsd-kvm.c: Likewise.
2534 * bsd-uthread.c: Likewise.
2535 * buildsym.c: Likewise.
2536 * c-exp.y: Likewise.
2537 * c-lang.c: Likewise.
2538 * charset.c: Likewise.
2539 * cleanups.c: Likewise.
2540 * cli-out.c: Likewise.
2541 * cli/cli-decode.c: Likewise.
2542 * cli/cli-dump.c: Likewise.
2543 * cli/cli-logging.c: Likewise.
2544 * cli/cli-script.c: Likewise.
2545 * cli/cli-utils.c: Likewise.
2546 * coffread.c: Likewise.
2547 * common/common-utils.c: Likewise.
2548 * common/queue.h: Likewise.
2549 * common/signals.c: Likewise.
2550 * common/vec.h: Likewise.
2551 * complaints.c: Likewise.
2552 * completer.c: Likewise.
2553 * corelow.c: Likewise.
2554 * cp-abi.c: Likewise.
2555 * cp-name-parser.y: Likewise.
2556 * cp-namespace.c: Likewise.
2557 * cp-support.c: Likewise.
2558 * cris-tdep.c: Likewise.
2559 * dbxread.c: Likewise.
2560 * dictionary.c: Likewise.
2561 * doublest.c: Likewise.
2562 * dsrec.c: Likewise.
2563 * dummy-frame.c: Likewise.
2564 * dwarf2-frame-tailcall.c: Likewise.
2565 * dwarf2-frame.c: Likewise.
2566 * dwarf2expr.c: Likewise.
2567 * dwarf2loc.c: Likewise.
2568 * dwarf2read.c: Likewise.
2570 * event-loop.c: Likewise.
2571 * exceptions.c: Likewise.
2572 * expprint.c: Likewise.
2573 * f-valprint.c: Likewise.
2574 * fbsd-nat.c: Likewise.
2575 * findvar.c: Likewise.
2576 * frame-unwind.c: Likewise.
2577 * frame.c: Likewise.
2578 * frv-tdep.c: Likewise.
2579 * gcore.c: Likewise.
2580 * gdb-dlfcn.c: Likewise.
2581 * gdb_bfd.c: Likewise.
2582 * gdbarch.c: Likewise.
2583 * gdbarch.sh: Likewise.
2584 * gdbtypes.c: Likewise.
2585 * gnu-nat.c: Likewise.
2586 * gnu-v3-abi.c: Likewise.
2587 * go-lang.c: Likewise.
2588 * guile/scm-exception.c: Likewise.
2589 * guile/scm-gsmob.c: Likewise.
2590 * guile/scm-lazy-string.c: Likewise.
2591 * guile/scm-math.c: Likewise.
2592 * guile/scm-pretty-print.c: Likewise.
2593 * guile/scm-safe-call.c: Likewise.
2594 * guile/scm-utils.c: Likewise.
2595 * guile/scm-value.c: Likewise.
2596 * h8300-tdep.c: Likewise.
2597 * hppa-hpux-nat.c: Likewise.
2598 * hppa-tdep.c: Likewise.
2599 * hppanbsd-tdep.c: Likewise.
2600 * hppaobsd-tdep.c: Likewise.
2601 * i386-darwin-nat.c: Likewise.
2602 * i386-darwin-tdep.c: Likewise.
2603 * i386-nto-tdep.c: Likewise.
2604 * i386-tdep.c: Likewise.
2605 * i386bsd-nat.c: Likewise.
2606 * i386fbsd-tdep.c: Likewise.
2607 * i386gnu-nat.c: Likewise.
2608 * i386nbsd-tdep.c: Likewise.
2609 * i386obsd-tdep.c: Likewise.
2610 * i387-tdep.c: Likewise.
2611 * ia64-libunwind-tdep.c: Likewise.
2612 * ia64-tdep.c: Likewise.
2613 * inf-ptrace.c: Likewise.
2614 * inf-ttrace.c: Likewise.
2615 * infcall.c: Likewise.
2616 * infcmd.c: Likewise.
2617 * infrun.c: Likewise.
2618 * inline-frame.c: Likewise.
2619 * interps.c: Likewise.
2620 * jv-lang.c: Likewise.
2621 * jv-typeprint.c: Likewise.
2622 * linux-fork.c: Likewise.
2623 * linux-nat.c: Likewise.
2624 * linux-thread-db.c: Likewise.
2625 * m32c-tdep.c: Likewise.
2626 * m32r-linux-nat.c: Likewise.
2627 * m32r-tdep.c: Likewise.
2628 * m68k-tdep.c: Likewise.
2629 * m68kbsd-nat.c: Likewise.
2630 * m68kbsd-tdep.c: Likewise.
2631 * m88k-tdep.c: Likewise.
2632 * machoread.c: Likewise.
2633 * macroexp.c: Likewise.
2634 * macrotab.c: Likewise.
2635 * maint.c: Likewise.
2636 * mdebugread.c: Likewise.
2637 * memory-map.c: Likewise.
2638 * mep-tdep.c: Likewise.
2639 * mi/mi-common.c: Likewise.
2640 * microblaze-tdep.c: Likewise.
2641 * mingw-hdep.c: Likewise.
2642 * mips-linux-nat.c: Likewise.
2643 * mips-linux-tdep.c: Likewise.
2644 * mips-tdep.c: Likewise.
2645 * mips64obsd-tdep.c: Likewise.
2646 * mipsnbsd-tdep.c: Likewise.
2647 * mn10300-linux-tdep.c: Likewise.
2648 * mn10300-tdep.c: Likewise.
2649 * moxie-tdep.c: Likewise.
2650 * mt-tdep.c: Likewise.
2651 * nat/linux-btrace.c: Likewise.
2652 * nat/linux-osdata.c: Likewise.
2653 * nat/linux-ptrace.c: Likewise.
2654 * nat/mips-linux-watch.c: Likewise.
2655 * nios2-linux-tdep.c: Likewise.
2656 * nios2-tdep.c: Likewise.
2657 * objc-lang.c: Likewise.
2658 * objfiles.c: Likewise.
2659 * obsd-nat.c: Likewise.
2660 * opencl-lang.c: Likewise.
2661 * osabi.c: Likewise.
2662 * parse.c: Likewise.
2663 * ppc-linux-nat.c: Likewise.
2664 * ppc-sysv-tdep.c: Likewise.
2665 * ppcfbsd-nat.c: Likewise.
2666 * ppcfbsd-tdep.c: Likewise.
2667 * ppcnbsd-nat.c: Likewise.
2668 * ppcnbsd-tdep.c: Likewise.
2669 * ppcobsd-nat.c: Likewise.
2670 * ppcobsd-tdep.c: Likewise.
2671 * printcmd.c: Likewise.
2672 * procfs.c: Likewise.
2673 * prologue-value.c: Likewise.
2674 * psymtab.c: Likewise.
2675 * python/py-lazy-string.c: Likewise.
2676 * python/py-value.c: Likewise.
2677 * regcache.c: Likewise.
2678 * reggroups.c: Likewise.
2679 * registry.c: Likewise.
2680 * remote-sim.c: Likewise.
2681 * remote.c: Likewise.
2682 * rs6000-aix-tdep.c: Likewise.
2683 * rs6000-tdep.c: Likewise.
2684 * s390-linux-tdep.c: Likewise.
2685 * score-tdep.c: Likewise.
2686 * ser-base.c: Likewise.
2687 * ser-mingw.c: Likewise.
2688 * sh-tdep.c: Likewise.
2689 * sh64-tdep.c: Likewise.
2690 * solib-darwin.c: Likewise.
2691 * solib-spu.c: Likewise.
2692 * solib-svr4.c: Likewise.
2693 * source.c: Likewise.
2694 * sparc-nat.c: Likewise.
2695 * sparc-sol2-tdep.c: Likewise.
2696 * sparc-tdep.c: Likewise.
2697 * sparc64-sol2-tdep.c: Likewise.
2698 * sparc64-tdep.c: Likewise.
2699 * sparc64fbsd-tdep.c: Likewise.
2700 * sparc64nbsd-tdep.c: Likewise.
2701 * sparc64obsd-tdep.c: Likewise.
2702 * sparcnbsd-tdep.c: Likewise.
2703 * sparcobsd-tdep.c: Likewise.
2704 * spu-multiarch.c: Likewise.
2705 * spu-tdep.c: Likewise.
2706 * stabsread.c: Likewise.
2707 * stack.c: Likewise.
2708 * symfile.c: Likewise.
2709 * symtab.c: Likewise.
2710 * target-descriptions.c: Likewise.
2711 * target-memory.c: Likewise.
2712 * target.c: Likewise.
2713 * tic6x-linux-tdep.c: Likewise.
2714 * tic6x-tdep.c: Likewise.
2715 * tilegx-linux-nat.c: Likewise.
2716 * tilegx-tdep.c: Likewise.
2718 * tramp-frame.c: Likewise.
2719 * tui/tui-out.c: Likewise.
2720 * tui/tui-winsource.c: Likewise.
2721 * ui-out.c: Likewise.
2722 * user-regs.c: Likewise.
2723 * utils.c: Likewise.
2724 * v850-tdep.c: Likewise.
2725 * valops.c: Likewise.
2726 * value.c: Likewise.
2727 * varobj.c: Likewise.
2728 * vax-nat.c: Likewise.
2729 * xml-syscall.c: Likewise.
2730 * xml-tdesc.c: Likewise.
2731 * xstormy16-tdep.c: Likewise.
2732 * xtensa-linux-nat.c: Likewise.
2733 * xtensa-tdep.c: Likewise.
2735 2014-08-07 Gary Benson <gbenson@redhat.com>
2737 * common/common-defs.h: Include common-utils.h.
2738 * defs.h: Do not include common-utils.h.
2739 * common/gdb_assert.h: Likewise.
2740 * darwin-nat.h: Likewise.
2741 * nat/linux-btrace.c: Likewise.
2742 * target/waitstatus.h: Likewise.
2744 2014-08-07 Gary Benson <gbenson@redhat.com>
2746 * common/common-defs.h: Include ptid.h.
2747 * defs.h: Do not include ptid.h.
2748 * inferior.h: Likewise.
2749 * infrun.h: Likewise.
2750 * nat/linux-btrace.h: Likewise.
2751 * nat/linux-osdata.h: Likewise.
2752 * target/waitstatus.h: Likewise.
2754 2014-08-07 Gary Benson <gbenson@redhat.com>
2756 * common/common-defs.h: Include gdb_locale.h.
2757 * defs.h: Do not include gdb_locale.h.
2759 2014-08-07 Gary Benson <gbenson@redhat.com>
2761 * common/common-defs.h: Include gdb/signals.h.
2762 * defs.h: Do not include gdb/signals.h.
2764 2014-08-07 Gary Benson <gbenson@redhat.com>
2766 * common/common-defs.h: Include pathmax.h.
2767 * defs.h: Do not include pathmax.h.
2769 2014-08-07 Gary Benson <gbenson@redhat.com>
2771 * common/common-defs.h: Include libiberty.h.
2772 * defs.h: Do not include libiberty.h.
2773 * common/queue.h: Likewise.
2774 * cp-name-parser.y: Likewise.
2775 * mi/mi-cmd-catch.c: Likewise.
2776 * python/python.c: Likewise.
2778 2014-08-07 Gary Benson <gbenson@redhat.com>
2780 * common/common-defs.h: Include ansidecl.h.
2781 * defs.h: Do not include ansidecl.h.
2782 * common/buffer.h: Likewise.
2783 * common/common-utils.h: Likewise.
2785 2014-08-07 Gary Benson <gbenson@redhat.com>
2787 * common/common-defs.h: Include stddef.h.
2788 * defs.h: Do not include stddef.h.
2789 * common/common-utils.h: Likewise.
2790 * amd64fbsd-nat.c: Likewise.
2791 * bcache.c: Likewise.
2792 * charset.c: Likewise.
2793 * common/buffer.h: Likewise.
2794 * common/vec.h: Likewise.
2795 * i386bsd-nat.c: Likewise.
2796 * nat/linux-btrace.h: Likewise.
2797 * ppcfbsd-nat.c: Likewise.
2798 * ppcnbsd-tdep.h: Likewise.
2799 * ppcobsd-nat.c: Likewise.
2800 * ppcobsd-tdep.h: Likewise.
2801 * python/py-gdb-readline.c: Likewise.
2803 2014-08-07 Gary Benson <gbenson@redhat.com>
2805 * common/common-defs.h: Include stdarg.h.
2806 * defs.h: Do not include stdarg.h.
2807 * ada-lang.c: Likewise.
2808 * common/common-utils.h: Likewise.
2809 * guile/scm-string.c: Likewise.
2810 * guile/scm-utils.c: Likewise.
2811 * m32c-tdep.c: Likewise.
2813 2014-08-07 Gary Benson <gbenson@redhat.com>
2815 * common/common-defs.h: Include stdlib.h.
2816 * defs.h: Do not include stdlib.h.
2817 * addrmap.c: Likewise.
2818 * bcache.c: Likewise.
2819 * common/buffer.c: Likewise.
2820 * common/common-utils.c: Likewise.
2821 * cp-name-parser.y: Likewise.
2822 * go32-nat.c: Likewise.
2823 * mn10300-linux-tdep.c: Likewise.
2824 * nat/linux-osdata.c: Likewise.
2825 * tui/tui.c: Likewise.
2826 * windows-nat.c: Likewise.
2828 2014-08-07 Gary Benson <gbenson@redhat.com>
2830 * common/common-defs.h: Include stdio.h.
2831 * defs.h: Do not include stdio.h.
2832 * ada-lang.c: Likewise.
2833 * common/buffer.c: Likewise.
2834 * common/common-utils.c: Likewise.
2835 * cp-name-parser.y: Likewise.
2836 * gnu-nat.c: Likewise.
2837 * go32-nat.c: Likewise.
2838 * i386gnu-nat.c: Likewise.
2839 * proc-api.c: Likewise.
2840 * proc-events.c: Likewise.
2841 * proc-flags.c: Likewise.
2842 * proc-why.c: Likewise.
2843 * python/python-internal.h: Likewise.
2844 * target-memory.c: Likewise.
2845 * tui/tui-io.c: Likewise.
2846 * tui/tui.c: Likewise.
2848 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2850 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2851 (scan_dyntag_auxv): Same.
2853 2014-08-06 Yao Qi <yao@codesourcery.com>
2855 * amd64-linux-nat.c: Remove duplicated include
2857 * i386-linux-nat.c: Likewise.
2859 2014-08-06 Yao Qi <yao@codesourcery.com>
2861 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2862 operand" with "Special opcode" in comments.
2864 2014-08-05 Gary Benson <gbenson@redhat.com>
2866 * interps.c (initialize_interps): Remove prototype.
2867 (interpreter_initialized): Remove static global.
2868 (interp_add): Do not call initialize_interps.
2869 (initialize_interps): Remove function.
2871 2014-08-05 Gary Benson <gbenson@redhat.com>
2873 * utils.c (vwarning): Remove spurious va_end.
2875 2014-08-05 Alan Modra <amodra@gmail.com>
2877 * charset.c (convert_between_encodings): Cast result of obstack_base.
2878 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2879 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2880 (read_unwind_info): Use size_t for some locals.
2881 * jit.c (finalize_symtab): Likewise.
2882 * utils.c (hashtab_obstack_allocate): Likewise.
2883 * symmisc.c (print_objfile_statistics): Update format strings.
2885 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2887 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2888 (Changes in GDB 7.8): ... here.
2890 2014-08-04 Tom Tromey <tromey@redhat.com>
2892 * target.c (set_targetdebug): New function.
2893 (initialize_targets): Pass set_targetdebug when creating "set
2896 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2898 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2899 if detecting a variable-sized field that is not the last field.
2900 Fix struct type length computation.
2902 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2904 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2907 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2909 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2910 Remove "+ 8" offset in computation of CHAIN_VMA.
2912 2014-07-31 Doug Evans <dje@google.com>
2914 * inflow.c (child_terminal_inferior): Add comment.
2915 (child_terminal_ours_for_output): Add comment.
2916 (child_terminal_ours): Add comment.
2917 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2918 (linux_nat_terminal_ours): Add comment.
2920 2014-07-31 Gary Benson <gbenson@redhat.com>
2922 * common/btrace-common.h: Do not include defs.h or server.h.
2923 * nat/mips-linux-watch.h: Likewise.
2924 * gdb-dlfcn.h: Do not include defs.h.
2925 * tracefile.h: Likewise.
2927 2014-07-30 Roland McGrath <mcgrathr@google.com>
2929 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2931 2014-07-30 Tom Tromey <tromey@redhat.com>
2933 * bsd-kvm.c (bsd_kvm_open): Constify.
2934 * corelow.c (core_open): Constify.
2935 * ctf.c (ctf_open): Constify.
2936 * dbug-rom.c (dbug_open): Constify.
2937 * exec.c (exec_open): Constify.
2938 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2939 * microblaze-rom.c (picobug_open): Constify.
2940 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2942 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2943 * record-btrace.c (record_btrace_open): Constify.
2944 * record-full.c (record_full_core_open_1, record_full_open_1)
2945 (record_full_open): Constify.
2946 * remote-m32r-sdi.c (m32r_open): Constify.
2947 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2948 (rockhopper_open, lsi_open): Constify.
2949 * remote-sim.c (gdbsim_open): Constify.
2950 * remote.c (remote_open, extended_remote_open, remote_open_1):
2952 * target.h (struct target_ops) <to_open>: Make "arg" const.
2953 * tracefile-tfile.c (tfile_open): Constify.
2955 2014-07-30 Tom Tromey <tromey@redhat.com>
2957 * breakpoint.c (map_breakpoint_numbers): Update.
2958 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2959 (get_number_const): New function.
2960 (get_number): Rewrite using get_number_const.
2961 (init_number_or_range): Make "string" const.
2962 (number_is_in_list): Make "list" const.
2963 * cli/cli-utils.h (get_number_const): Declare.
2964 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2965 (init_number_or_range, number_is_in_list): Update.
2966 * printcmd.c (map_display_numbers): Update.
2967 * value.c (value_from_history_ref): Constify.
2968 * value.h (value_from_history_ref): Update.
2970 2014-07-30 Tom Tromey <tromey@redhat.com>
2972 * corefile.c (hook_type, call_extra_exec_file_hooks)
2973 (specify_exec_file_hook): Constify.
2974 * exec.c (exec_file_attach): Make "filename" const.
2975 * gdbcore.h (deprecated_exec_file_display_hook)
2976 (specify_exec_file_hook, exec_file_attach): Constify.
2977 * main.c (captured_main): Use catch_command_errors_const.
2979 2014-07-30 Tom Tromey <tromey@redhat.com>
2981 * target.c (open_target): New function.
2982 (add_target_with_completer, add_deprecated_target_alias): Use
2983 set_cmd_sfunc, set_cmd_context.
2984 (debug_to_open): Remove.
2985 (setup_target_debug): Update.
2987 2014-07-30 Yao Qi <yao@codesourcery.com>
2989 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2991 * parse.c (exp_iterate): Update comments.
2993 2014-07-30 Gary Benson <gbenson@redhat.com>
2995 * common/common-defs.h: New file.
2996 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2997 * defs.h: Include common-defs.h.
2998 Do not include config.h or build-gnulib/config.h.
3000 2014-07-30 Gary Benson <gbenson@redhat.com>
3002 * common/common-utils.h: Do not include config.h.
3003 * nat/linux-btrace.h: Likewise.
3005 2014-07-30 Gary Benson <gbenson@redhat.com>
3007 * btrace.c: Include defs.h.
3008 * common/ptid.c: Include defs.h or server.h as appropriate.
3009 * nat/mips-linux-watch.c: Likewise.
3011 2014-07-29 Tom Tromey <tromey@redhat.com>
3013 * target.c (target_is_pushed): Simplify.
3015 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3019 2014-07-29 Yao Qi <yao@codesourcery.com>
3022 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3024 2014-07-28 Doug Evans <xdje42@gmail.com>
3027 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3028 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3031 2014-07-28 Will Newton <will.newton@linaro.org>
3033 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3034 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3035 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3036 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3037 (THUMB2_EABI_SYSCALL): Likewise.
3038 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3040 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3041 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3043 2014-07-27 Doug Evans <xdje42@gmail.com>
3045 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3047 2014-07-27 Doug Evans <xdje42@gmail.com>
3049 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3051 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3052 Doug Evans <xdje42@gmail.com>
3055 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3056 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3057 * configure.ac: Try to use guild to compile an scm file, if it fails
3058 then disable guile support.
3059 * configure: Regenerate.
3060 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3062 (GUILE_COMPILED_FILES): New variable.
3063 (GUILE_FILES) Update.
3064 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3065 (stamp-guile): Compile scm files.
3066 * guile/guile.c (boot_guile_support): New function.
3067 (standard_throw_args_p): New function.
3068 (print_standard_throw_error, print_throw_error): New functions.
3069 (handle_boot_error): New function.
3070 (initialize_scheme_side): Rewrite to call boot_guile_support.
3071 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3072 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3074 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3075 Doug Evans <xdje42@gmail.com>
3078 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3079 * guile/lib/gdb/support.scm: New file.
3080 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3081 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3083 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3085 (%assert-type): Ditto, and renamed to assert-type.
3086 (%exception-print-style): Delete.
3088 2014-07-26 Doug Evans <xdje42@gmail.com>
3091 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3092 * configure: Regenerate.
3093 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3095 (PYTHON_FILES): New variable.
3096 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3097 (GUILE_FILES): New variable.
3098 (stamp-python, install-python, uninstall-python): Handle empty
3100 (stamp-guile, install-guile, uninstall-guile): Ditto.
3102 2014-07-26 Doug Evans <xdje42@gmail.com>
3105 * guile/lib/gdb.scm (pretty-printers): Export.
3106 (set-pretty-printers!): Export.
3107 * guile/lib/gdb/printing.scm (gdb module): Update.
3108 (prepend-pretty-printer!, append-pretty-printer!): Update.
3109 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3110 (pretty_printer_list_var): Delete.
3111 (pretty_printer_list): New static global.
3112 (gdbscm_pretty_printers): New function.
3113 (gdbscm_set_pretty_printers_x): New function.
3114 (ppscm_find_pretty_printer_from_gdb): Update.
3115 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3116 (gdbscm_initialize_pretty_printers): Update.
3118 2014-07-26 Doug Evans <xdje42@gmail.com>
3121 * configure.ac: Add check for header gc/gc.h.
3122 Add check for function setenv.
3123 * configure: Regenerate.
3124 * config.in: Regenerate.
3125 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3127 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3129 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3130 variation in gdbarch matching.
3132 2014-07-25 Tom Tromey <tromey@redhat.com>
3134 * exec.c (using_exec_ops): Remove.
3135 (exec_close_1): Update. Remove extraneous block, reindent.
3136 (add_target_sections): Use target_is_pushed.
3138 2014-07-25 Pedro Alves <palves@redhat.com>
3140 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3141 * monitor.c (monitor_create_inferior): Likewise.
3142 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3143 * remote-sim.c (gdbsim_create_inferior): Likewise.
3144 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3145 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3146 * windows-nat.c (do_initial_windows_stuff): Likewise.
3148 2014-07-25 Pedro Alves <palves@redhat.com>
3150 * NEWS: Mention signal passing and "signal" command changes.
3151 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3153 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3155 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3156 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3157 (jump_command): Adjust clear_proceed_status call.
3158 (signal_command): Warn if other thread that are resumed have
3159 signals that will be delivered. Adjust clear_proceed_status call.
3160 (until_next_command, finish_command)
3161 (proceed_after_attach_callback, attach_command_post_wait)
3162 (attach_command): Adjust clear_proceed_status call.
3163 * infrun.c (proceed_after_vfork_done): Likewise.
3164 (proceed_after_attach_callback): Adjust comment.
3165 (clear_proceed_status_thread): Clear stop_signal if not in pass
3167 (clear_proceed_status_callback): Delete.
3168 (clear_proceed_status): New 'step' parameter. Only clear the
3169 proceed status of threads the command being prepared is about to
3171 (proceed): If passed in an explicit signal, override stop_signal
3172 with it. Don't pass the last stop signal to the thread we're
3174 (init_wait_for_inferior): Adjust clear_proceed_status call.
3175 (switch_back_to_stepped_thread): Clear the signal if it should not
3177 * infrun.h (clear_proceed_status): New 'step' parameter.
3178 (user_visible_resume_ptid): Add comment.
3179 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3180 signal is in pass state.
3181 * remote.c (append_pending_thread_resumptions): Likewise.
3182 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3184 2014-07-25 Tom Tromey <tromey@redhat.com>
3186 * target.h (target_stopped_data_address)
3187 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3190 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3192 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3194 (avr_pointer_to_address): Likewise.
3196 2014-07-24 Tom Tromey <tromey@redhat.com>
3198 * monitor.c (compile_pattern): Update.
3199 * target.h (struct target_ops) <to_shortname, to_longname,
3202 2014-07-24 Tom Tromey <tromey@redhat.com>
3204 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3205 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3206 (add_info_alias, add_com): Make "doc" const.
3207 (print_doc_line): Make "str" const.
3208 (delete_cmd): Update.
3209 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3210 (print_doc_line): Update.
3211 * cli/cli-script.c (document_command): Update.
3212 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3213 (add_com, add_info, add_info_alias): Update.
3214 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3215 * python/py-cmd.c (cmdpy_destroyer): Update.
3217 2014-07-24 Tom Tromey <tromey@redhat.com>
3219 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3220 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3221 (help_cmd_list): Constify.
3222 (lookup_cmd): Update.
3223 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3225 (help_cmd_list, apropos_cmd): Update.
3226 * cli/cli-script.c (show_user): Update.
3227 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3228 * cli/cli-setshow.h (cmd_show_list): Update.
3229 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3230 (cmd_show_list): Update.
3231 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3232 * python/py-cmd.c (cmdpy_destroyer): Update.
3234 2014-07-24 Tom Tromey <tromey@redhat.com>
3236 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3237 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3239 * command.h (deprecate_cmd): Update.
3240 * maint.c (maintenance_do_deprecate): Add casts.
3242 2014-07-24 Tom Tromey <tromey@redhat.com>
3244 * cli/cli-decode.c (help_cmd): Make parameter "const".
3245 * cli/cli-decode.h (help_cmd): Update.
3247 2014-07-24 Tom Tromey <tromey@redhat.com>
3249 * stack.c (up_silently_base, down_silently_base): Make argument
3252 2014-07-24 Tom Tromey <tromey@redhat.com>
3254 * solib.c (solib_add): Make "pattern" const.
3255 * solib.h (solib_add): Update.
3257 2014-07-24 Tom Tromey <tromey@redhat.com>
3259 * remote.c (remote_serial_open, print_packet, putpkt)
3260 (putpkt_binary): Constify.
3261 * remote.h (putpkt): Update.
3263 2014-07-24 Tom Tromey <tromey@redhat.com>
3265 * monitor.c (monitor_open): Make "args" const.
3266 * monitor.h (monitor_open): Update.
3268 2014-07-24 Tom Tromey <tromey@redhat.com>
3270 * maint.c (match_bfd_flags): Make "string" const.
3271 (print_bfd_section_info): Remove casts.
3272 (print_objfile_section_info): Make "string" const.
3274 2014-07-24 Tom Tromey <tromey@redhat.com>
3276 * inf-child.c (inf_child_open_target): Make "arg" const.
3277 * inf-child.h (inf_child_open_target): Update.
3279 2014-07-24 Tom Tromey <tromey@redhat.com>
3281 * environ.c (unset_in_environ): Make "var" const.
3282 * environ.h (unset_in_environ): Update.
3284 2014-07-24 Tom Tromey <tromey@redhat.com>
3286 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3288 (scan_filename_with_cleanup): Likewise.
3289 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3290 Make arguments const.
3291 (restore_command): Update.
3293 2014-07-24 Pedro Alves <palves@redhat.com>
3295 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3297 2014-07-24 Tom Tromey <tromey@redhat.com>
3298 Gary Benson <gbenson@redhat.com>
3300 * nat/linux-ptrace.c (additional_flags): New global.
3301 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3302 additional_flags; don't check GDBSERVER.
3303 (linux_ptrace_set_additional_flags): New function.
3304 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3306 * linux-nat.c (_initialize_linux_nat): Call
3307 linux_ptrace_set_additional_flags.
3309 2014-07-24 Tom Tromey <tromey@redhat.com>
3311 * make-target-delegates (munge_type, write_debugmethod): New
3313 (debug_names): New global.
3314 ($TARGET_DEBUG_PRINTER): New global.
3315 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3317 Write debug methods. Generate init_debug_target.
3318 * target-debug.h: New file.
3319 * target-delegates.c: Rebuild.
3320 * target.c: Include target-debug.h.
3321 (debug_target): Hoist definition.
3322 (target_kill, target_get_section_table, target_memory_map)
3323 (target_flash_erase, target_flash_done, target_detach)
3324 (target_disconnect, target_wait, target_resume)
3325 (target_pass_signals, target_program_signals, target_follow_fork)
3326 (target_mourn_inferior, target_search_memory)
3327 (target_thread_address_space, target_close)
3328 (target_find_new_threads, target_core_of_thread)
3329 (target_verify_memory, target_insert_mask_watchpoint)
3330 (target_remove_mask_watchpoint): Remove targetdebug code.
3331 (debug_to_post_attach, debug_to_prepare_to_store)
3332 (debug_to_files_info, debug_to_insert_breakpoint)
3333 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3334 (debug_to_region_ok_for_hw_watchpoint)
3335 (debug_to_can_accel_watchpoint_condition)
3336 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3337 (debug_to_watchpoint_addr_within_range)
3338 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3339 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3340 (debug_to_terminal_init, debug_to_terminal_inferior)
3341 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3342 (debug_to_terminal_save_ours, debug_to_terminal_info)
3343 (debug_to_load, debug_to_post_startup_inferior)
3344 (debug_to_insert_fork_catchpoint)
3345 (debug_to_remove_fork_catchpoint)
3346 (debug_to_insert_vfork_catchpoint)
3347 (debug_to_remove_vfork_catchpoint)
3348 (debug_to_insert_exec_catchpoint)
3349 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3350 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3351 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3352 (setup_target_debug): Call init_debug_target.
3353 * target.h (TARGET_DEBUG_PRINTER): New macro.
3354 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3355 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3357 2014-07-24 Gary Benson <gbenson@redhat.com>
3359 * exceptions.h (throw_vfatal): Renamed to...
3360 (throw_vquit): New declaration.
3361 (throw_quit): Likewise.
3362 * exceptions.c (throw_vfatal): Renamed to...
3363 (throw_vquit): New function.
3364 (throw_quit): Likewise.
3365 (throw_error): Call throw_verror rather than throw_it.
3366 * utils.h (vfatal): Removed.
3368 * utils.c (vfatal): Removed.
3370 (internal_verror): Replaced call to fatal with call to throw_quit.
3371 (quit): Replaced calls to fatal with calls to throw_quit.
3373 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3375 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3378 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3380 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3381 less than zero in conditional expression.
3383 2014-07-23 Tom Tromey <tromey@redhat.com>
3385 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3386 ($INTRO_PART): Don't match whitespace.
3387 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3389 ($METHOD): Add $METHOD_TRAILER.
3391 (scan_target_h): New sub.
3392 Change main loop not to collect state.
3393 * target-delegates.c: Rebuild.
3395 2014-07-23 Gary Benson <gbenson@redhat.com>
3397 * cp-support.c (gdb_demangle): Fix build on systems without
3400 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3402 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3403 for reference entry value target data value.
3405 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3407 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3408 value_available_contents_eq.
3410 2014-07-22 Pedro Alves <palves@redhat.com>
3412 * value.c (allocate_optimized_out_value): Don't mark value as
3415 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3417 * MAINTAINERS (Write After Approval): Update my email address.
3419 2014-07-20 Doug Evans <dje@google.com>
3422 * remote.c (putpkt_binary): Add text to error message.
3424 2014-07-20 Yao Qi <yao@codesourcery.com>
3426 * eval.c: Remove "Chill" from comments.
3427 * gdbtypes.h: Likewise.
3428 * symtab.h: Likewise.
3430 2014-07-20 Yao Qi <yao@codesourcery.com>
3432 * std-operator.def: Update comments to TERNOP_SLICE.
3434 2014-07-20 Yao Qi <yao@codesourcery.com>
3436 * std-operator.def: Remove BINOP_RANGE.
3437 * breakpoint.c (watchpoint_exp_is_const): Update.
3438 * expprint.c (dump_subexp_body_standard): Likewise.
3439 * eval.c (init_array_element): Remove dead code.
3440 (evaluate_subexp_standard): Likewise.
3442 2014-07-20 Yao Qi <yao@codesourcery.com>
3444 * std-operator.def: Remove BINOP_IN.
3445 * breakpoint.c (watchpoint_exp_is_const): Update.
3446 * eval.c (evaluate_subexp_standard): Likewise.
3447 * expprint.c (dump_subexp_body_standard): Likewise.
3449 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3451 * microblaze-tdep.c (microblaze_register_names): Add
3452 the rshr and rslr register names.
3453 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3454 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3455 Use of tdesc_numbered_register. Use of
3456 microblaze_register_g_packet_guesses. Use of
3457 tdesc_use_registers. Use of set_gdbarch_register_type.
3458 (microblaze_register_g_packet_guesses): New.
3459 * microblaze-tdep.h (microblaze_reg_num): Add
3460 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3461 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3462 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3463 * features/microblaze-core.xml: New file.
3464 * features/microblaze-stack-protect.xml: New file.
3465 * features/microblaze-with-stack-protect.c: New file.
3466 * features/microblaze-with-stack-protect.xml: New file.
3467 * features/microblaze.xml: New file.
3468 * features/microblaze.c: New file.
3469 * features/Makefile (microblaze-with-stack-protect): Add
3470 microblaze-with-stack-protect microblaze and microblaze-expedite.
3471 * regformats/microblaze-with-stack-protect.dat: New file.
3472 * regformats/microblaze.dat: New file.
3473 * doc/gdb.texinfo (MicroBlaze Features): Added.
3475 2014-07-18 Tom Tromey <tromey@redhat.com>
3477 * exec.c (exec_ops): Now static.
3478 * exec.h (exec_ops): Don't declare.
3480 2014-07-18 Tom Tromey <tromey@redhat.com>
3482 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3483 to find_target_beneath.
3484 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3485 find_target_beneath.
3486 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3488 2014-07-18 Tom Tromey <tromey@redhat.com>
3491 * utils.c (quit): Use target_supports_terminal_ours.
3492 * target.h (target_supports_terminal_ours): Declare.
3493 * target.c (target_supports_delete_record): Don't check
3494 to_delete_record against NULL.
3495 (target_supports_terminal_ours): New function.
3497 2014-07-18 Tom Tromey <tromey@redhat.com>
3500 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3501 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3502 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3503 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3504 * windows-nat.c (windows_xfer_partial): Always delegate.
3505 * record-btrace.c (record_btrace_xfer_partial): Simplify
3507 (record_btrace_fetch_registers, record_btrace_store_registers)
3508 (record_btrace_prepare_to_store, record_btrace_resume)
3509 (record_btrace_wait, record_btrace_find_new_threads)
3510 (record_btrace_thread_alive): Likewise.
3511 * procfs.c (procfs_xfer_partial): Always delegate.
3512 * corelow.c (core_xfer_partial): Always delegate.
3513 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3515 2014-07-18 Tom Tromey <tromey@redhat.com>
3517 * exec.c (exec_make_note_section): Move earlier.
3519 2014-07-17 Doug Evans <dje@google.com>
3522 * maint.c (count_symtabs_and_blocks): Handle NULL
3523 current_program_space.
3524 (report_command_stats): Check global enabled flag in addition to
3525 recorded enabled flag.
3526 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3528 2014-07-16 Pedro Alves <palves@redhat.com>
3530 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3532 2014-07-16 Tom Tromey <tromey@redhat.com>
3534 * target.h (struct target_ops) <to_delete_record>: Reformat
3537 2014-07-16 Tom Tromey <tromey@redhat.com>
3539 * target-delegates.c: Rebuild.
3541 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3543 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3544 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3545 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3546 (avr_pointer_to_address): Likewise.
3547 (avr_address_class_type_flags): New function.
3548 (avr_address_class_type_flags_to_name): Likewise.
3549 (avr_address_class_name_to_type_flags): Likewise.
3550 (avr_gdbarch_init): Set address_class_type_flags,
3551 address_class_type_flags_to_name and
3552 address_class_name_to_type_flags.
3554 2014-07-15 Pedro Alves <palves@redhat.com>
3556 * linux-nat.c (kill_callback): Save errno and work with saved
3559 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3561 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3563 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3565 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3566 breakpoint support correctly.
3568 2014-07-14 Pedro Alves <palves@redhat.com>
3570 * utils.c (prompt_for_continue): Call target_terminal_ours.
3572 2014-07-14 Pedro Alves <palves@redhat.com>
3574 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3575 catch_errors. Don't re-enable stdin or notify observers where,
3577 (fetch_inferior_event_wrapper): Delete.
3579 2014-07-14 Pedro Alves <palves@redhat.com>
3582 * top.c: Include "inf-loop.h".
3583 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3585 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3587 (gdb_readline_wrapper): Store whether the target is async, and
3590 2014-07-14 Pedro Alves <palves@redhat.com>
3593 * top.c (gdb_readline_wrapper_line): Tweak comment.
3594 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3595 the input handler callback.
3597 2014-07-14 Pedro Alves <palves@redhat.com>
3600 * main.c: Include event-top.h.
3601 (handle_command_errors): New function.
3602 (catch_command_errors, catch_command_errors_const): Use it.
3604 2014-07-14 Pedro Alves <palves@redhat.com>
3606 * exceptions.c (catch_command_errors, catch_command_errors_const):
3608 * exceptions.h (catch_command_errors_ftype)
3609 (catch_command_errors_const_ftype): Moved to main.c.
3610 (catch_command_errors, catch_command_errors_const): Delete
3612 * main.c (catch_command_errors_ftype)
3613 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3614 (catch_command_errors, catch_command_errors_const)): Moved here
3615 from exceptions.c and make static.
3617 2014-07-14 Pedro Alves <palves@redhat.com>
3619 * exceptions.c (print_any_exception): Delete.
3620 (catch_exceptions_with_msg): Use exception_print instead of
3621 print_any_exception.
3622 (catch_errors): Use exception_fprintf instead of
3623 print_any_exception.
3624 (catch_command_errors, catch_command_errors_const): Use
3625 exception_print instead of print_any_exception.
3627 2014-07-14 Pedro Alves <palves@redhat.com>
3629 * infcall.c (run_inferior_call): Set 'sync_execution' while
3630 running the inferior call.
3632 2014-07-14 Pedro Alves <palves@redhat.com>
3634 * value.c (value_contents_equal): Delete function.
3635 * value.h (value_contents_equal): Delete declaration.
3637 2014-07-14 Tom Tromey <tromey@redhat.com>
3640 * gdbtypes.c (is_dynamic_type_internal): New function, from
3642 (is_dynamic_type): Rewrite.
3643 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3644 (resolve_dynamic_struct): Likewise.
3645 (resolve_dynamic_type_internal): New function, from
3646 resolve_dynamic_type.
3647 (resolve_dynamic_type): Rewrite.
3649 2014-07-14 Tom Tromey <tromey@redhat.com>
3651 * target.c (target_require_runnable): Also check record_stratum.
3654 2014-07-11 Yao Qi <yao@codesourcery.com>
3656 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3657 thumb_instruction_restores_sp return true.
3659 2014-07-11 Yao Qi <yao@codesourcery.com>
3661 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3662 (thumb_in_function_epilogue_p): Call
3663 thumb_instruction_restores_sp.
3665 2014-07-11 Yao Qi <yao@codesourcery.com>
3667 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3669 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3671 2014-07-11 Gary Benson <gbenson@redhat.com>
3673 * amd64-linux-nat.c (gdbcore.h): Remove include.
3674 (regset.h): Likewise.
3675 (nat/linux-btrace.h): Likewise.
3676 (btrace.h): Likewise.
3677 (gdb_assert.h): Likewise.
3678 (string.h): Likewise.
3679 (sys/uio.h): Likewise.
3680 (sys/debugreg.h): Likewise.
3681 (sys/syscall.h): Likewise.
3682 (sys/procfs.h): Likewise.
3683 (sys/user.h): Likewise.
3684 (asm/ptrace.h): Likewise.
3685 (i386-nat.h): Likewise.
3686 * i386-linux-nat.c (i386-nat.h): Likewise.
3687 (regset.h): Likewise.
3688 (target.h): Likewise.
3689 (linux-nat.h): Likewise.
3690 (nat/linux-btrace.h): Likewise.
3691 (btrace.h): Likewise.
3692 (gdb_assert.h): Likewise.
3693 (string.h): Likewise.
3694 (sys/uio.h): Likewise.
3695 (sys/user.h): Likewise.
3696 (sys/procfs.h): Likewise.
3697 (sys/reg.h): Likewise.
3698 (sys/debugreg.h): Likewise.
3699 (ORIG_EAX): Remove definition.
3701 2014-07-11 Gary Benson <gbenson@redhat.com>
3703 * i386-linux-nat.h: New file.
3704 * x86-linux-nat.h: Likewise.
3705 * x86-linux-nat.c: Likewise.
3706 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3707 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3708 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3709 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3710 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3711 (PTRACE_SETREGSET): Likewise.
3712 (arch_lwp_info): Now in x86-linux-nat.c.
3713 (have_ptrace_getregset): Now in x86-linux-nat.h.
3714 (x86_linux_dr_get): Now in x86-linux-nat.c.
3715 (x86_linux_dr_set): Likewise.
3716 (x86_linux_dr_get_addr): Likewise.
3717 (x86_linux_dr_get_control): Likewise.
3718 (x86_linux_dr_get_status): Likewise.
3719 (update_debug_registers_callback): Likewise.
3720 (x86_linux_dr_set_control): Likewise.
3721 (x86_linux_dr_set_addr): Likewise.
3722 (x86_linux_prepare_to_resume): Likewise.
3723 (x86_linux_new_thread): Likewise.
3724 (x86_linux_new_fork): Likewise.
3725 (x86_linux_get_thread_area): Likewise.
3726 (super_post_startup_inferior): Likewise.
3727 (x86_linux_child_post_startup_inferior): Likewise.
3728 (AMD64_LINUX_USER64_CS): Likewise.
3729 (AMD64_LINUX_X32_DS): Likewise.
3730 (x86_linux_read_description): Likewise.
3731 (x86_linux_enable_btrace): Likewise.
3732 (x86_linux_disable_btrace): Likewise.
3733 (x86_linux_teardown_btrace): Likewise.
3734 (x86_linux_read_btrace): Likewise.
3735 (x86_linux_create_target): Likewise.
3736 (x86_linux_add_target): Likewise.
3737 * i386-linux-nat.c (x86-linux-nat.h): New include.
3738 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3739 (PTRACE_SETREGSET): Likewise.
3740 (arch_lwp_info): Now in x86-linux-nat.c.
3741 (have_ptrace_getregset): Now in x86-linux-nat.h.
3742 (x86_linux_dr_get): Now in x86-linux-nat.c.
3743 (x86_linux_dr_set): Likewise.
3744 (x86_linux_dr_get_addr): Likewise.
3745 (x86_linux_dr_get_control): Likewise.
3746 (x86_linux_dr_get_status): Likewise.
3747 (update_debug_registers_callback): Likewise.
3748 (x86_linux_dr_set_control): Likewise.
3749 (x86_linux_dr_set_addr): Likewise.
3750 (x86_linux_prepare_to_resume): Likewise.
3751 (x86_linux_new_thread): Likewise.
3752 (x86_linux_new_fork): Likewise.
3753 (x86_linux_get_thread_area): Likewise.
3754 (super_post_startup_inferior): Likewise.
3755 (x86_linux_child_post_startup_inferior): Likewise.
3756 (AMD64_LINUX_USER64_CS): Likewise.
3757 (AMD64_LINUX_X32_DS): Likewise.
3758 (x86_linux_read_description): Likewise.
3759 (x86_linux_enable_btrace): Likewise.
3760 (x86_linux_disable_btrace): Likewise.
3761 (x86_linux_teardown_btrace): Likewise.
3762 (x86_linux_read_btrace): Likewise.
3763 (x86_linux_create_target): Likewise.
3764 (x86_linux_add_target): Likewise.
3766 2014-07-11 Gary Benson <gbenson@redhat.com>
3768 * amd64-linux-nat.c: Comment and whitespace changes.
3769 * i386-linux-nat.c: Comment and whitespace changes.
3771 2014-07-11 Gary Benson <gbenson@redhat.com>
3773 * amd64-linux-nat.c (x86_linux_create_target): New function.
3774 (x86_linux_add_target): Likewise.
3775 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3776 * i386-linux-nat.c (x86_linux_create_target): New function.
3777 (x86_linux_add_target): Likewise.
3778 (_initialize_i386_linux_nat): Delegate to the above new functions.
3780 2014-07-11 Gary Benson <gbenson@redhat.com>
3782 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3783 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3784 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3785 (ps_get_thread_area): Delegate to the above.
3787 2014-07-11 Gary Benson <gbenson@redhat.com>
3789 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3790 x86_linux_read_description. All uses updated. amd64-specific
3791 code conditionalized. Conditionalized i386-specific code added.
3792 Redundant cast removed.
3793 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3794 x86_linux_read_description. All uses updated. i386-specific
3795 code conditionalized. Conditionalized amd64-specific code added.
3796 One sizeof replaced with the actual type it is describing.
3798 2014-07-11 Gary Benson <gbenson@redhat.com>
3800 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3801 x86_linux_dr_get. All uses updated.
3802 (amd64_linux_dr_set): Renamed to
3803 x86_linux_dr_set. All uses updated.
3804 (amd64_linux_dr_get_addr): Renamed to
3805 x86_linux_dr_get_addr. All uses updated.
3806 (amd64_linux_dr_get_control): Renamed to
3807 x86_linux_dr_get_control. All uses updated.
3808 (amd64_linux_dr_get_status): Renamed to
3809 x86_linux_dr_get_status. All uses updated.
3810 (amd64_linux_dr_set_control): Renamed to
3811 x86_linux_dr_set_control. All uses updated.
3812 (amd64_linux_dr_set_addr): Renamed to
3813 x86_linux_dr_set_addr. All uses updated.
3814 (amd64_linux_prepare_to_resume): Renamed to
3815 x86_linux_prepare_to_resume. All uses updated.
3816 (amd64_linux_new_thread): Renamed to
3817 x86_linux_new_thread. All uses updated.
3818 (amd64_linux_new_fork): Renamed to
3819 x86_linux_new_fork. All uses updated.
3820 (amd64_linux_child_post_startup_inferior): Renamed to
3821 x86_linux_child_post_startup_inferior. All uses updated.
3822 (amd64_linux_enable_btrace): Renamed to
3823 x86_linux_enable_btrace. All uses updated.
3824 (amd64_linux_disable_btrace): Renamed to
3825 x86_linux_disable_btrace. All uses updated.
3826 (amd64_linux_teardown_btrace): Renamed to
3827 x86_linux_teardown_btrace. All uses updated.
3828 (amd64_linux_read_btrace): Renamed to
3829 x86_linux_read_btrace. All uses updated.
3830 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3831 x86_linux_dr_get. All uses updated.
3832 (i386_linux_dr_set): Renamed to
3833 x86_linux_dr_set. All uses updated.
3834 (i386_linux_dr_get_addr): Renamed to
3835 x86_linux_dr_get_addr. All uses updated.
3836 (i386_linux_dr_get_control): Renamed to
3837 x86_linux_dr_get_control. All uses updated.
3838 (i386_linux_dr_get_status): Renamed to
3839 x86_linux_dr_get_status. All uses updated.
3840 (i386_linux_dr_set_control): Renamed to
3841 x86_linux_dr_set_control. All uses updated.
3842 (i386_linux_dr_set_addr): Renamed to
3843 x86_linux_dr_set_addr. All uses updated.
3844 (i386_linux_prepare_to_resume): Renamed to
3845 x86_linux_prepare_to_resume. All uses updated.
3846 (i386_linux_new_thread): Renamed to
3847 x86_linux_new_thread. All uses updated.
3848 (i386_linux_new_fork): Renamed to
3849 x86_linux_new_fork. All uses updated.
3850 (i386_linux_child_post_startup_inferior): Renamed to
3851 x86_linux_child_post_startup_inferior. All uses updated.
3852 (i386_linux_enable_btrace): Renamed to
3853 x86_linux_enable_btrace. All uses updated.
3854 (i386_linux_disable_btrace): Renamed to
3855 x86_linux_disable_btrace. All uses updated.
3856 (i386_linux_teardown_btrace): Renamed to
3857 x86_linux_teardown_btrace. All uses updated.
3858 (i386_linux_read_btrace): Renamed to
3859 x86_linux_read_btrace. All uses updated.
3861 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3863 * remote.c (extended_remote_post_attach): New function.
3864 (init_extended_remote_ops): Install it as to_post_attach method.
3866 2014-07-09 Pedro Alves <palves@redhat.com>
3868 * infcmd.c (attach_command_post_wait): Don't call
3869 target_terminal_inferior here.
3870 (attach_command): Call it here instead.
3872 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3874 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3876 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3877 from varobj.c, with additional checks.
3878 (c_varobj_ops): Fill in is_path_expr_parent field.
3879 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3880 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3882 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3884 (varobj_default_is_path_expr_parent): New function.
3885 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3886 (varobj_default_is_path_expr_parent): Declare new function.
3888 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3890 * infcmd.c (finish_backward): Turn internal error into normal error.
3892 2014-07-07 Pedro Alves <palves@redhat.com>
3895 * remote.c (async_handle_remote_sigint)
3896 (async_handle_remote_sigint_twice): Call
3897 gdb_call_async_signal_handler instead of
3898 mark_async_signal_handler.
3900 2014-07-07 Tom Tromey <tromey@redhat.com>
3902 * target-delegates.c: Rebuild.
3903 * target.c (target_info_record): Remove.
3904 * record.c (info_record_command): Unconditionally call
3906 * target.h (struct target_ops) <to_info_record>: Use
3907 TARGET_DEFAULT_IGNORE.
3908 (target_info_record): Remove.
3910 2014-07-07 Tom Tromey <tromey@redhat.com>
3912 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3913 TARGET_DEFAULT_NORETURN.
3914 * target.c (generic_tls_error): New function.
3915 (target_translate_tls_address): Don't search target stack.
3916 * target-delegates.c: Rebuild.
3917 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3919 * linux-thread-db.c (thread_db_get_thread_local_address):
3920 Unconditionally call beneath target.
3922 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3924 * cli/cli-logging.c (pop_output_files): Assign targerr to
3927 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3929 * MAINTAINERS (Write After Approval): Update my email address.
3931 2014-07-02 Gary Benson <gbenson@redhat.com>
3933 * proc-service.c (ps_xfer_memory): Update comment.
3934 (ps_pstop): Remove unused function.
3935 (ps_pcontinue): Likewise.
3936 (ps_lstop): Likewise.
3937 (ps_lcontinue): Likewise.
3938 (ps_lgetxregsize): Likewise.
3939 (ps_lgetxregs): Likewise.
3940 (ps_lsetxregs): Likewise.
3941 (ps_plog): Likewise.
3942 (ps_ptread): Likewise.
3943 (ps_ptwrite): Likewise.
3945 2014-07-01 Mark Wielaard <mjw@redhat.com>
3947 * dwarf2read.c (add_array_cv_type): New function.
3948 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3949 (read_tag_volatile_type): Likewise.
3951 2014-07-01 Tom Tromey <tromey@redhat.com>
3953 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3954 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3955 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3956 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3957 * command.h (cmd_cfunc_ftype): Move earlier.
3958 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3959 (add_com, add_info): Use cmd_cfunc_ftype.
3961 2014-06-30 Tom Tromey <tromey@redhat.com>
3963 * symtab.c (operator_chars): Make parameters and return type
3965 (file_matches): Make "files" const.
3966 (struct search_symbols_data) <files>: Now const.
3967 (search_symbols): Make "regexp" and "files" parameters const.
3969 (symtab_symbol_info): Remove cast.
3970 (rbreak_command): Update.
3971 * symtab.h (search_symbols): Update.
3973 2014-06-27 Yao Qi <yao@codesourcery.com>
3975 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3976 Change parameter type to 'struct thread_info *'. Caller
3978 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3980 * dummy-frame.c (struct dummy_frame_id): New.
3981 (dummy_frame_id_eq): New function.
3982 (struct dummy_frame) <id>: Change its type to 'struct
3984 (dummy_frame_push): Add parameter ptid and save it in
3986 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3988 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3990 (lookup_dummy_frame): Change parameter type to 'struct
3991 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3992 instead of frame_id_eq.
3993 (dummy_frame_pop): Add parameter ptid. Callers updated.
3994 Update comments. Compose dummy_frame_id and pass it to
3996 (dummy_frame_discard): Add parameter ptid.
3997 (dummy_frame_sniffer): Compose dummy_frame_id and call
3998 dummy_frame_id_eq instead of frame_id_eq.
3999 (fprint_dummy_frames): Print ptid.
4000 * dummy-frame.h: Remove comments.
4001 (dummy_frame_push): Add ptid in declaration.
4002 (dummy_frame_pop, dummy_frame_discard): Likewise.
4004 2014-06-26 Tom Tromey <tromey@redhat.com>
4006 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4007 * command.h (error_no_arg): Update.
4009 2014-06-26 Tom Tromey <tromey@redhat.com>
4011 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4012 (do_show_command): Make "arg" const.
4013 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4015 2014-06-26 Tom Tromey <tromey@redhat.com>
4017 * record-full.c (record_full_get_bookmark): Make "args" const.
4018 (record_full_goto_bookmark): Make "raw_bookmark" const.
4019 * record.c (record_goto): New function.
4020 (cmd_record_goto): Use it. Now static.
4021 * record.h (record_goto): Declare.
4022 (cmd_record_goto): Remove declaration.
4023 * target-delegates.c: Rebuild.
4024 * target.h (struct target_ops) <to_get_bookmark,
4025 to_goto_bookmark>: Make parameter const.
4027 2014-06-26 Tom Tromey <tromey@redhat.com>
4029 * defs.h (generic_load): Update.
4030 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4031 * monitor.c (monitor_load): Make "args" const.
4032 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4033 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4035 (mips_load): Make "file" const.
4036 * remote-sim.c (gdbsim_load): Make "args" const.
4037 * remote.c (remote_load): Make "name" const.
4038 * symfile.c (generic_load): Make "args" const.
4039 * target-delegates.c: Rebuild.
4040 * target.c (target_load): Make "arg" const.
4041 (debug_to_load): Make "args" const.
4042 * target.h (struct target_ops) <to_load>: Make parameter const.
4043 (target_load): Update.
4045 2014-06-26 Tom Tromey <tromey@redhat.com>
4048 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4049 (dwarf2_physname, read_partial_die)
4050 (guess_partial_die_structure_name, fixup_partial_die)
4051 (guess_full_die_structure_name, anonymous_struct_prefix)
4052 (dwarf2_name): Use per-BFD obstack.
4054 2014-06-26 Yao Qi <yao@codesourcery.com>
4056 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4057 dummyframe and this_id into inner block below.
4059 2014-06-26 Yao Qi <yao@codesourcery.com>
4061 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4062 with "signal_pass[0]" in the initialization of signal_pass.
4064 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4066 * record-btrace.c (record_btrace_generating_corefile)
4067 (record_btrace_prepare_to_generate_core)
4068 (record_btrace_done_generating_core): New.
4069 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4070 (record_btrace_store_registers, record_btrace_prepare_to_store):
4071 Forward request when generating a core file.
4072 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4073 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4074 to_done_generating_core.
4076 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4078 * target.h (target_ops) <to_prepare_to_generate_core>
4079 <to_done_generating_core>: New.
4080 (target_prepare_to_generate_core, target_done_generating_core): New.
4081 * target.c (target_prepare_to_generate_core)
4082 (target_done_generating_core): New.
4083 * target-delegates.c: Regenerate.
4084 * gcore.c: (write_gcore_file): Rename to ...
4085 (write_gcore_file_1): ...this.
4086 (write_gcore_file): Call target_prepare_to_generate_core
4087 and target_done_generating_core.
4089 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4091 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4092 * gcore.c (write_gcore_file): Free memory returned from
4093 make_corefile_notes.
4094 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4095 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4097 2014-06-24 Yao Qi <yao@codesourcery.com>
4099 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4100 (arm_linux_init_abi): Set skip_trampoline_code with
4101 gdbarch_skip_trampoline_code instead of
4102 find_solib_trampoline_target.
4104 2014-06-24 Yao Qi <yao@codesourcery.com>
4106 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4107 arm_skip_bx_reg returns non-zero.
4109 2014-06-24 Yao Qi <yao@codesourcery.com>
4111 * arm-tdep.c (arm_skip_bx_reg): New function.
4112 (arm_skip_stub): Call arm_skip_bx_reg.
4114 2014-06-23 Don Breazeal <donb@codesourcery.com>
4116 * MAINTAINERS: Add myself as write-after-approval maintainer.
4118 2014-06-23 Pedro Alves <palves@redhat.com>
4120 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4121 DR_CONTROL before setting DR0..DR3.
4122 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4123 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4124 bits of DR_CONTROL related to the debug register slot being
4125 disabled. If all slots are vacant, clear local slowdown as well,
4126 and assert DR_CONTROL is 0.
4128 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4130 * python/lib/gdb/command/xmethods.py
4131 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4132 current progspace only if the string "progspace" matches LOCUS_RE.
4134 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4136 Fix --with-system-readline with readline-6.3 patch 5.
4137 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4138 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4141 2014-06-20 Tom Tromey <tromey@redhat.com>
4143 * dwarf2read.c (dw2_get_real_path): Use correct type in
4145 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4147 2014-06-20 Gary Benson <gbenson@redhat.com>
4149 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4150 * common/glibc_thread_db.h: Likewise.
4151 * common/i386-cpuid.h: Likewise.
4152 * common/i386-gcc-cpuid.h: Likewise.
4153 * common/linux-btrace.h: Likewise.
4154 * common/linux-osdata.h: Likewise.
4155 * common/linux-procfs.h: Likewise.
4156 * common/linux-ptrace.h: Likewise.
4157 * common/mips-linux-watch.h: Likewise.
4158 * common/linux-btrace.c: Moved to nat.
4159 * common/linux-osdata.c: Likewise.
4160 * common/linux-procfs.c: Likewise.
4161 * common/linux-ptrace.c: Likewise.
4162 * common/mips-linux-watch.c: Likewise.
4163 * nat/gdb_thread_db.h: Moved from common.
4164 * nat/glibc_thread_db.h: Likewise.
4165 * nat/i386-cpuid.h: Likewise.
4166 * nat/i386-gcc-cpuid.h: Likewise.
4167 * nat/linux-btrace.c: Likewise.
4168 * nat/linux-btrace.h: Likewise.
4169 * nat/linux-osdata.c: Likewise.
4170 * nat/linux-osdata.h: Likewise.
4171 * nat/linux-procfs.c: Likewise.
4172 * nat/linux-procfs.h: Likewise.
4173 * nat/linux-ptrace.c: Likewise.
4174 * nat/linux-ptrace.h: Likewise.
4175 * nat/mips-linux-watch.c: Likewise.
4176 * nat/mips-linux-watch.h: Likewise.
4177 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4178 (object file files): Reordered.
4179 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4180 of glibc_thread_db.h.
4182 2014-06-20 Gary Benson <gbenson@redhat.com>
4184 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4185 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4186 (i386_dr_low): Likewise.
4187 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4188 (i386_dr_low_set_addr): Likewise.
4189 (i386_dr_low_get_addr): Likewise.
4190 (i386_dr_low_can_set_control): Likewise.
4191 (i386_dr_low_set_control): Likewise.
4192 (i386_dr_low_get_control): Likewise.
4193 (i386_dr_low_get_status): Likewise.
4194 (i386_get_debug_register_length): Likewise.
4195 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4196 (i386_dr_low): Likewise.
4197 * nat/i386-dregs.c (i386-low.h): Remove include.
4198 (i386-nat.h): Likewise.
4199 (nat/i386-dregs.h): New include.
4200 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4201 (i386_dr_low_set_addr): Likewise.
4202 (i386_dr_low_get_addr): Likewise.
4203 (i386_dr_low_can_set_control): Likewise.
4204 (i386_dr_low_set_control): Likewise.
4205 (i386_dr_low_get_control): Likewise.
4206 (i386_dr_low_get_status): Likewise.
4207 (i386_get_debug_register_length): Likewise.
4208 (debug_hw_points): Likewise.
4210 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4212 * Makefile.in (SFILES): Add d-exp.y.
4213 (YYFILES): Add d-exp.c.
4214 (YYOBJ): Add d-exp.o.
4215 (local-maintainer-clean): Delete d-exp.c.
4216 * d-exp.y: New file.
4217 * d-lang.h (d_parse): New declaration.
4218 (d_error): New declaration.
4219 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4220 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4221 PREC_ORDER operators.
4222 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4224 2014-06-19 Yao Qi <yao@codesourcery.com>
4226 * gdbthread.h (any_running): Remove the declaration.
4227 * thread.c (any_running): Remove.
4229 2014-06-19 Yao Qi <yao@codesourcery.com>
4231 * gdbthread.h (struct thread_info) <state>: Change its type to
4232 'enum thread_state'. Update comments.
4234 2014-06-19 Pedro Alves <palves@redhat.com>
4236 * gdbthread.h (ALL_THREADS): Delete.
4237 (ALL_NON_EXITED_THREADS): New macro.
4238 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4239 instead of ALL_THREADS.
4240 * infrun.c (find_thread_needs_step_over)
4241 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4242 instead of ALL_THREADS.
4243 * record-btrace.c (record_btrace_open)
4244 (record_btrace_stop_recording, record_btrace_close)
4245 (record_btrace_is_replaying, record_btrace_resume)
4246 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4247 * remote.c (append_pending_thread_resumptions): Likewise.
4248 * thread.c (thread_apply_all_command): Likewise.
4250 2014-06-19 Gary Benson <gbenson@redhat.com>
4252 * i386-nat.c (i386_stopped_by_watchpoint):
4253 Use i386_dr_stopped_by_watchpoint.
4254 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4255 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4257 2014-06-19 Gary Benson <gbenson@redhat.com>
4259 * nat/i386-dregs.c: New file.
4260 * Makefile.in (i386-dregs.o): New rule.
4261 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4262 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4263 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4264 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4265 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4266 * config/i386/go32.mh (NATDEPFILES): Likewise.
4267 * config/i386/linux.mh (NATDEPFILES): Likewise.
4268 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4269 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4270 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4271 * i386-nat.h (debug_hw_points): New declaration.
4272 * i386-nat.c (breakpoint.h): Remove include.
4273 (command.h): Likewise.
4274 (target.h): Likewise.
4275 (gdb_assert.h): Likewise.
4276 (debug_hw_points): Made nonstatic.
4277 (debug_printf): Now in i386-dregs.c.
4278 (TARGET_HAS_DR_LEN_8): Likewise.
4279 (DR_CONTROL_SHIFT): Likewise.
4280 (DR_CONTROL_SIZE): Likewise.
4281 (DR_RW_EXECUTE): Likewise.
4282 (DR_RW_WRITE): Likewise.
4283 (DR_RW_READ): Likewise.
4284 (DR_RW_IORW): Likewise.
4285 (DR_LEN_1): Likewise.
4286 (DR_LEN_2): Likewise.
4287 (DR_LEN_4): Likewise.
4288 (DR_LEN_8): Likewise.
4289 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4290 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4291 (DR_ENABLE_SIZE): Likewise.
4292 (DR_LOCAL_SLOWDOWN): Likewise.
4293 (DR_GLOBAL_SLOWDOWN): Likewise.
4294 (DR_CONTROL_RESERVED): Likewise.
4295 (I386_DR_CONTROL_MASK): Likewise.
4296 (I386_DR_VACANT): Likewise.
4297 (I386_DR_LOCAL_ENABLE): Likewise.
4298 (I386_DR_GLOBAL_ENABLE): Likewise.
4299 (I386_DR_DISABLE): Likewise.
4300 (I386_DR_SET_RW_LEN): Likewise.
4301 (I386_DR_GET_RW_LEN): Likewise.
4302 (I386_DR_WATCH_HIT): Likewise.
4303 (i386_wp_op_t): Likewise.
4304 (i386_show_dr): Likewise.
4305 (i386_length_and_rw_bits): Likewise.
4306 (i386_insert_aligned_watchpoint): Likewise.
4307 (i386_remove_aligned_watchpoint): Likewise.
4308 (i386_handle_nonaligned_watchpoint): Likewise.
4309 (i386_update_inferior_debug_regs): Likewise.
4310 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4311 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4312 (i386_region_ok_for_watchpoint):
4313 Use i386_dr_region_ok_for_watchpoint.
4314 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4316 2014-06-19 Gary Benson <gbenson@redhat.com>
4318 * i386-nat.c (i386_insert_hw_breakpoint): Use
4319 i386_insert_watchpoint.
4320 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4322 2014-06-19 Gary Benson <gbenson@redhat.com>
4324 * i386-nat.c (i386_dr_show): Renamed to
4325 i386_show_dr and made static. All uses updated.
4326 (i386_dr_length_and_rw_bits): Renamed to
4327 i386_length_and_rw_bits and made static.
4329 (i386_dr_insert_aligned_watchpoint): Renamed to
4330 i386_insert_aligned_watchpoint and made static.
4332 (i386_dr_remove_aligned_watchpoint): Renamed to
4333 i386_remove_aligned_watchpoint and made static.
4335 (i386_dr_update_inferior_debug_regs): Renamed to
4336 i386_update_inferior_debug_regs and made static.
4338 * nat/i386-dregs.h (i386_dr_show): Removed.
4339 (i386_dr_length_and_rw_bits): Likewise.
4340 (i386_dr_insert_aligned_watchpoint): Likewise.
4341 (i386_dr_remove_aligned_watchpoint): Likewise.
4342 (i386_dr_update_inferior_debug_regs): Likewise.
4344 2014-06-19 Gary Benson <gbenson@redhat.com>
4346 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4347 * configure: Regenerate.
4348 * config.in: Likewise.
4349 * main.c (signal.h): New include.
4350 (setup_alternate_signal_stack): New function.
4351 (captured_main): Call the above.
4352 * cp-support.c (signal.h): New include.
4353 (catch_demangler_crashes): New flag.
4354 (SIGJMP_BUF): New define.
4355 (SIGSETJMP): Likewise.
4356 (SIGLONGJMP): Likewise.
4357 (gdb_demangle_jmp_buf): New static global.
4358 (gdb_demangle_attempt_core_dump): Likewise.
4359 (gdb_demangle_signal_handler): New function.
4360 (gdb_demangle): If catch_demangler_crashes is set, install the
4361 above signal handler before calling bfd_demangle, and restore
4362 the original signal handler afterwards. Display the offending
4363 symbol and call demangler_warning the first time a segmentation
4365 (_initialize_cp_support): New maint set/show command.
4367 2014-06-19 Gary Benson <gbenson@redhat.com>
4369 * utils.h (resource_limit_kind): New enum.
4370 (can_dump_core): New declaration.
4371 (warn_cant_dump_core): Likewise.
4372 (dump_core): Likewise.
4373 * utils.c (dump_core): Made nonstatic. Added new
4374 parameter "limit_kind".
4375 (can_dump_core): Made nonstatic. Moved printing code to...
4376 (warn_cant_dump_core): New function.
4377 (can_dump_core_warn): Likewise.
4378 (internal_vproblem): Replace calls to can_dump_core with
4379 calls to can_dump_core_warn. Supply new argument to each.
4381 2014-06-19 Gary Benson <gbenson@redhat.com>
4383 * utils.h (demangler_vwarning): New declaration.
4384 (demangler_warning): Likewise.
4385 * utils.c (struct internal_problem)
4386 <user_settable_should_quit>: New field.
4387 <user_settable_should_dump_core>: Likewise
4388 (internal_error_problem): Add values for above new fields.
4389 (internal_warning_problem): Likewise.
4390 (demangler_warning_problem): New static global.
4391 (demangler_vwarning): New function.
4392 (demangler_warning): Likewise.
4393 (add_internal_problem_command): Selectively add commands.
4394 (_initialize_utils): New internal problem command.
4395 * maint.c (maintenance_demangler_warning): New function.
4396 (_initialize_maint_cmds): New command.
4398 2014-06-18 Tom Tromey <tromey@redhat.com>
4400 * f-valprint.c (info_common_command_for_block): Update.
4401 * symtab.h (struct general_symbol_info) <common_block>: Now
4404 2014-06-18 Tom Tromey <tromey@redhat.com>
4406 * symtab.h (struct symtab) <blockvector>: Now const.
4407 * ada-lang.c (ada_add_global_exceptions): Update.
4408 * buildsym.c (augment_type_symtab): Update.
4409 * dwarf2read.c (dw2_lookup_symbol): Update.
4410 * jit.c (finalize_symtab): Update.
4411 * jv-lang.c (add_class_symtab_symbol): Update.
4412 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4414 * objfiles.c (objfile_relocate1): Update.
4415 * psymtab.c (lookup_symbol_aux_psymtabs)
4416 (maintenance_check_psymtabs): Update.
4417 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4419 * spu-tdep.c (spu_catch_start): Update.
4420 * symmisc.c (dump_symtab_1): Update.
4421 * symtab.c (lookup_global_symbol_from_objfile)
4422 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4423 (basic_lookup_transparent_type_quick)
4424 (basic_lookup_transparent_type, find_pc_sect_symtab)
4425 (find_pc_sect_line, search_symbols): Update.
4426 * block.c (find_block_in_blockvector): Make "bl" const.
4427 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4429 (blockvector_contains_pc): Make "bv" const.
4430 (block_for_pc_sect): Update.
4431 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4432 (blockvector_contains_pc): Update.
4433 * breakpoint.c (resolve_sal_pc): Update.
4434 * inline-frame.c (block_starting_point_at): Update.
4436 2014-06-18 Tom Tromey <tromey@redhat.com>
4438 * completer.c (complete_line): Make "line_buffer" const.
4439 * completer.h (complete_line): Update.
4441 2014-06-18 Tom Tromey <tromey@redhat.com>
4443 * symtab.c (add_macro_name): Remove unneeded cast.
4445 2014-06-18 Tom Tromey <tromey@redhat.com>
4447 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4448 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4450 2014-06-18 Tom Tromey <tromey@redhat.com>
4452 * probe.c (info_probes_for_ops): Make "arg" const.
4453 * probe.h (info_probes_for_ops): Update.
4455 2014-06-18 Tom Tromey <tromey@redhat.com>
4457 * varobj.c (varobj_create): Update.
4458 * valops.c (value_of_this): Update.
4459 * tracepoint.c (add_local_symbols, scope_info): Update.
4460 * symtab.h (struct general_symbol_info) <block>: Now const.
4461 * symtab.c (skip_prologue_sal)
4462 (default_make_symbol_completion_list_break_on)
4463 (skip_prologue_using_sal): Update.
4464 * stack.h (iterate_over_block_locals)
4465 (iterate_over_block_local_vars): Update.
4466 * stack.c (print_frame_args): Update.
4467 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4469 (get_selected_block): Make return type const.
4470 * python/py-frame.c (frapy_block): Update.
4471 * python/py-block.c (gdbpy_block_for_pc): Update.
4472 * p-exp.y (%union) <bval>: Now const.
4473 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4474 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4475 * m2-exp.y (%union) <bval>: Now const.
4476 * linespec.c (get_current_search_block): Make return type const.
4477 (create_sals_line_offset, find_label_symbols): Update.
4478 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4480 (block_starting_point_at): Make "block" const.
4481 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4482 (check_exception_resume): Update.
4483 * guile/scm-frame.c (gdbscm_frame_block): Update.
4484 * guile/scm-block.c (gdbscm_lookup_block): Update.
4485 * frame.h (get_frame_block): Update.
4486 (get_selected_block): Make return type const.
4487 * frame.c (frame_id_inner): Update.
4488 * f-valprint.c (info_common_command_for_block)
4489 (info_common_command): Update.
4490 * dwarf2loc.c (dwarf2_find_location_expression)
4491 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4492 (locexpr_describe_location_piece): Update.
4493 * c-exp.y (%union) <bval>: Now const.
4494 * breakpoint.c (resolve_sal_pc): Update.
4495 * blockframe.c (get_frame_block):Make return type const.
4496 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4497 (block_innermost_frame): Update.
4498 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4499 (block_for_pc, block_for_pc_sect): Update.
4500 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4502 (block_for_pc_sect, block_for_pc): Make return type const.
4503 * ax-gdb.c (gen_expr): Update.
4504 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4505 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4506 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4507 (ada_read_var_value): Update.
4508 * ada-exp.y (struct name_info) <block>: Now const.
4510 (block_lookup): Constify.
4512 2014-06-18 Gary Benson <gbenson@redhat.com>
4514 * nat/i386-dregs.h: New file.
4515 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4516 * i386-nat.h (i386-dregs.h): New include.
4517 (DR_FIRSTADDR): Now in i386-dregs.h.
4518 (DR_LASTADDR): Likewise.
4519 (DR_NADDR): Likewise.
4520 (DR_STATUS): Likewise.
4521 (DR_CONTROL): Likewise.
4522 (i386_debug_reg_state): Likewise.
4523 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4525 2014-06-18 Don Breazeal <donb@codesourcery.com>
4527 * breakpoint.c (set_longjmp_breakpoint): Call
4528 momentary_breakpoint_from_master with additional argument.
4529 (set_longjmp_breakpoint_for_call_dummy): Call
4530 momentary_breakpoint_from_master with additional argument.
4531 (set_std_terminate_breakpoint): Call
4532 momentary_breakpoint_from_master with additional argument.
4533 (momentary_breakpoint_from_master): Add argument to function
4534 definition and use it to initialize structure member flag.
4535 (clone_momentary_breakpoint): Call
4536 momentary_breakpoint_from_master with additional argument.
4537 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4538 member flags set in momentary_breakpoint_from_master.
4540 2014-06-18 Gary Benson <gbenson@redhat.com>
4542 * i386-nat.c (i386_show_dr): Renamed to
4543 i386_dr_show and made nonstatic. All uses updated.
4544 (i386_length_and_rw_bits): Renamed to
4545 i386_dr_length_and_rw_bits and made nonstatic.
4547 (i386_insert_aligned_watchpoint): Renamed to
4548 i386_dr_insert_aligned_watchpoint and made nonstatic.
4550 (i386_remove_aligned_watchpoint): Renamed to
4551 i386_dr_remove_aligned_watchpoint and made nonstatic.
4553 (i386_update_inferior_debug_regs): Renamed to
4554 i386_dr_update_inferior_debug_regs and made nonstatic.
4557 2014-06-18 Gary Benson <gbenson@redhat.com>
4559 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4560 (i386_dr_low_can_set_control): Likewise.
4561 (i386_dr_low_set_addr): Likewise.
4562 (i386_dr_low_set_control): Likewise.
4563 (i386_dr_low_get_addr): Likewise.
4564 (i386_dr_low_get_status): Likewise.
4565 (i386_dr_low_get_control): Likewise.
4566 (i386_insert_aligned_watchpoint): Use new macros.
4567 (i386_update_inferior_debug_regs): Likewise.
4568 (i386_stopped_data_address): Likewise.
4570 2014-06-18 Gary Benson <gbenson@redhat.com>
4572 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4573 New parameter. All uses updated.
4575 2014-06-18 Gary Benson <gbenson@redhat.com>
4577 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4580 2014-06-18 Gary Benson <gbenson@redhat.com>
4582 * i386-nat.c (debug_printf): New macro.
4583 (i386_get_debug_register_length): Likewise.
4584 (TARGET_HAS_DR_LEN_8): Use above macro.
4585 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4586 and printf_unfiltered. Use phex to format values.
4588 2014-06-18 Gary Benson <gbenson@redhat.com>
4590 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4593 2014-06-18 Gary Benson <gbenson@redhat.com>
4595 * i386-nat.c: Comment changes.
4597 2014-06-18 Gary Benson <gbenson@redhat.com>
4599 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4601 2014-06-18 Gary Benson <gbenson@redhat.com>
4603 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4604 (i386_insert_aligned_watchpoint): Likewise.
4605 (i386_remove_aligned_watchpoint): Likewise.
4606 (i386_handle_nonaligned_watchpoint): Likewise.
4608 2014-06-18 Gary Benson <gbenson@redhat.com>
4610 * i386-nat.c: Whitespace changes.
4612 2014-06-17 Samuel Bronson <naesten@gmail.com>
4614 * MAINTAINERS: Update Roland McGrath's email address.
4615 Thanks to Sergio Durigan Junior for pointing out that he left
4616 Red Hat a while ago, and giving me a current address.
4618 2014-06-17 Tom Tromey <tromey@redhat.com>
4620 * utils.h (savestring): Remove declaration.
4622 2014-06-17 Tom Tromey <tromey@redhat.com>
4624 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4626 2014-06-16 Keith Seitz <keiths@redhat.com>
4629 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4630 to update the varobj if inferior_ptid is null_ptid.
4632 2014-06-16 Tom Tromey <tromey@redhat.com>
4634 * target.h (struct target_ops) <to_info_proc>: Make parameter
4636 (target_info_proc): Update.
4637 * target.c (target_info_proc): Make "args" const.
4638 * procfs.c (procfs_info_proc): Update.
4639 * linux-tdep.c (linux_info_proc): Update.
4640 (linux_core_info_proc_mappings): Make "args" const.
4641 (linux_core_info_proc): Update.
4642 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4643 * gdbarch.c: Rebuild.
4644 * gdbarch.h: Rebuild.
4645 * corelow.c (core_info_proc): Update.
4647 2014-06-16 Tom Tromey <tromey@redhat.com>
4649 * target.h (struct target_ops) <to_disconnect>: Make parameter
4651 (target_disconnect): Update.
4652 * target.c (target_disconnect): Make "args" const.
4653 * target-delegates.c: Rebuild.
4654 * remote.c (remote_disconnect): Update.
4655 * record.h (record_disconnect): Update.
4656 * record.c (record_disconnect): Update.
4657 * inf-child.c (inf_child_disconnect): Update.
4659 2014-06-16 Tom Tromey <tromey@redhat.com>
4661 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4662 * target.c (debug_to_rcmd, default_rcmd): Update.
4663 * target-delegates.c: Rebuild.
4664 * remote.c (remote_rcmd): Update.
4665 * monitor.c (monitor_rcmd): Update.
4667 2014-06-16 Pedro Alves <palves@redhat.com>
4669 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4670 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4671 have OBJF_SHARED set.
4672 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4673 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4674 instead of OBJF_USERLOADED.
4675 * objfiles.h (OBJF_SHARED): Update comment.
4676 (userloaded_objfile_contains_address_p): Rename to ...
4677 (shared_objfile_contains_address_p): ... this, and update
4679 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4681 (remove_symbol_file_command): Skip objfiles that don't have
4684 2014-06-16 Tom Tromey <tromey@redhat.com>
4686 * minsyms.h (prim_record_minimal_symbol)
4687 (prim_record_minimal_symbol_and_info): Update comments.
4689 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4691 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4692 or --without-guile, according to how GDB was built.
4694 2014-06-13 Tom Tromey <tromey@redhat.com>
4696 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4698 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4700 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4702 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4703 help_list.Pass all_commands, not -1, to help_list.
4704 * cli/cli-dump.c (dump_command, append_command)
4705 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4706 (binary_dump_command, binary_append_command): Pass all_commands,
4707 not -1, to help_list.
4708 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4710 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4712 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4714 * top.c (set_history): Pass all_commands, not -1, to help_list.
4715 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4716 all_commands, not -1, to help_list.
4717 * symfile.c (overlay_command): Pass all_commands, not -1, to
4719 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4721 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4723 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4725 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4726 not -1, to help_list.
4727 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4728 not -1, to help_list.
4729 * maint.c (maintenance_command, maintenance_info_command)
4730 (maintenance_print_command, maintenance_set_cmd): Pass
4731 all_commands, not -1, to help_list.
4732 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4734 * language.c (set_check): Pass all_commands, not -1, to help_list.
4735 * infcmd.c (unset_command): Pass all_commands, not -1, to
4737 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4739 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4741 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4743 * breakpoint.c (save_command): Pass all_commands, not -1, to
4745 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4746 all_commands, not -1, to help_list.
4748 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4750 * regcache.c (struct register_to_invalidate): New structure.
4751 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4753 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4755 2014-06-12 Yao Qi <yao@codesourcery.com>
4757 * varobj.c (varobj_get_num_children): Call
4758 varobj_is_dynamic_p.
4759 (varobj_list_children): Likewise.
4760 (varobj_update): Likewise. Update comments.
4762 2014-06-12 Yao Qi <yao@codesourcery.com>
4764 * varobj.c (varobj_pretty_printed_p): Rename to ...
4765 (varobj_is_dynamic_p): ... this. New function.
4766 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4767 (varobj_is_dynamic_p): Declare.
4768 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4769 (mi_print_value_p, varobj_update_one): Likewise.
4771 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4772 Yao Qi <yao@codesourcery.com>
4774 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4775 (varobj_get_iterator): Wrap up code for pretty-printer by
4776 "#if HAVE_PYTHON" and "#endif".
4777 (update_dynamic_varobj_children): Likewise.
4779 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4780 Yao Qi <yao@codesourcery.com>
4782 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4783 gdb_python_initialized is false. Move some code from varobj.c.
4784 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4785 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4786 (struct varobj_item): Moved to varobj-iter.h".
4787 (varobj_clear_saved_item): New function.
4788 (update_dynamic_varobj_children): Move python-related code to
4790 (free_variable): Call varobj_clear_saved_item and
4793 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4794 Yao Qi <yao@codesourcery.com>
4796 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4797 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4798 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4799 (py-varobj.o): New rule.
4800 * python/py-varobj.c: New file.
4801 * python/python-internal.h (py_varobj_get_iterator): Declare.
4802 * varobj-iter.h: New file.
4803 * varobj.c: Include "varobj-iter.h"
4804 (struct varobj) <child_iter>: Change its type from "PyObject *"
4805 to "struct varobj_iter *".
4806 <saved_item>: Likewise.
4807 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4808 [HAVE_PYTHON] (varobj_get_iterator): New function.
4809 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4810 python-specific code to python/py-varobj.c.
4811 (install_visualizer): Call varobj_iter_delete instead of
4813 * varobj.h (varobj_ensure_python_env): Declare.
4815 2014-06-12 Yao Qi <yao@codesourcery.com>
4817 * varobj.c (struct varobj_item): New structure.
4818 (create_child_with_value): Update declaration.
4819 (varobj_add_child): Replace arguments 'name' and 'value' with
4820 'item'. All callers updated.
4821 (install_dynamic_child): Likewise.
4822 (update_dynamic_varobj_children): Likewise.
4823 (varobj_add_child): Likewise.
4824 (create_child_with_value): Likewise.
4826 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4828 * NEWS: Create a new section for the next release branch.
4829 Rename the section of the current branch, now that it has
4832 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4834 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4835 * version.in: Bump version to 7.8.50.DATE-cvs.
4837 2014-06-11 Pedro Alves <palves@redhat.com>
4840 * ser-mingw.c (net_windows_socket_check_pending): New function.
4841 (net_windows_select_thread): Ignore spurious wakeups. Use
4842 net_windows_socket_check_pending.
4843 (net_windows_wait_handle): Check for pending events with
4844 ioctlsocket, through net_windows_socket_check_pending, instead of
4845 checking the socket's event.
4847 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4849 * python/python-internal.h (gdb_PyObject_GetAttrString)
4850 (gdb_PyObject_HasAttrString): New inline function definitions.
4851 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4852 char * of the second argument to PyObject_GetAttrString.
4854 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4856 * serial.c (serial_write): Fix index of character to be printed
4857 in call to serial_logchar when serial debug traces are enabled.
4859 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4861 * gdbtypes (resolve_dynamic_range): Add function description.
4863 2014-06-09 Pedro Alves <palves@redhat.com>
4865 * linux-nat.c (linux_child_follow_fork): Initialize status with
4866 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4867 inner block. Only pass the signal to PTRACE_DETACH if in pass
4870 2014-06-09 Gary Benson <gbenson@redhat.com>
4872 * common/signals.c (gdb_signal_from_host): Reorder to separate
4873 the always-available ANSI-standard signals from the signals that
4875 (do_gdb_signal_to_host): Likewise.
4876 * proc-events.c (signal_table): Likewise.
4878 2014-06-08 Hui Zhu <hui@codesourcery.com>
4880 * common/linux-ptrace.c (linux_disable_event_reporting): New
4882 * common/linux-ptrace.h (linux_disable_event_reporting): New
4884 * linux-nat.c (linux_child_follow_fork): Do a single step before
4887 2014-06-07 Keith Seitz <keiths@redhat.com>
4891 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4892 from symbol_matches_domain in symtab.c. All local callers
4893 of symbol_matches_domain updated.
4894 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4895 search STRUCT_DOMAIN.
4896 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4897 independently. standard_lookup will do that automatically.
4898 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4899 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4900 (cp_lookup_symbol_in_namespace): Likewise.
4901 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4902 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4903 may return a STRUCT_DOMAIN match.
4904 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4905 * cp-support.c: Include language.h.
4906 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4908 * psymtab.c (match_partial_symbol): Compare the requested
4909 domain with the symbol's domain directly.
4910 (lookup_partial_symbol): Likewise.
4911 * symtab.c (lookup_symbol_in_language): Explain when/why
4912 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4913 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4914 appropriate languages.
4915 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4916 and moved to ada-lang.c
4917 (lookup_block_symbol): Explain that this function only returns
4918 symbol matching the requested DOMAIN.
4919 Compare the requested domain with the symbol's domain directly.
4920 (iterate_over_symbols): Compare the requested domain with the
4921 symbol's domain directly.
4922 * symtab.h (symbol_matches_domain): Remove.
4924 2014-06-06 Doug Evans <xdje42@gmail.com>
4926 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4927 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4928 (gdbscm_guile_version_is_at_least): Declare.
4929 (gdbscm_scm_string_to_int): Declare.
4930 * guile/guile.c (gdbscm_guile_major_version): New global.
4931 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4932 (guile_datadir): New static global.
4933 (gdbscm_guile_data_directory): New function.
4934 (initialize_scheme_side): Update.
4935 (misc_guile_functions): Add guile-data-directory.
4936 (initialize_gdb_module): Fetch guile version number.
4937 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4938 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4939 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4940 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4942 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4943 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4944 * guile/scm-value.c (gdbscm_value_to_string): Only call
4945 scm_port_conversion_strategy if Guile version >= 2.0.6.
4947 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4949 * main.c (print_gdb_help): Add -q and --silent.
4951 2014-06-06 Gary Benson <gbenson@redhat.com>
4953 * common/signals.c: Remove preprocessor conditionals for
4954 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4955 SIGSEGV and SIGTERM.
4956 * proc-events.c: Likewise.
4958 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4960 * symfile.c (symfile_free_objfile): Remove restriction to
4962 * symfile-mem.c (symbol_file_add_from_memory): Call
4963 add_target_sections_of_objfile.
4965 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4967 * guile/scm-value.c (gdbscm_history_append_x): Use
4968 'vlscm_get_value_smob_arg_unsafe' instead of
4969 'vlscm_scm_to_value'.
4971 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4974 * utils.c (printchar): Don't escape at all if quoter is NUL.
4975 Update function documentation to clarify effect of parameter
4977 * remote.c (escape_buffer): Pass '\\' as the quoter to
4978 fputstrn_unfiltered.
4979 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4980 generate the output.
4981 (mi_solib_unloaded): Same.
4983 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4985 * development.sh: Delete.
4986 * Makefile.in (config.status): Adjust dependency on development.sh.
4987 * configure.ac: Adjust development.sh source call.
4988 * configure: Regenerate.
4990 2014-06-04 Doug Evans <xdje42@gmail.com>
4992 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4993 is_scheme_bkpt, spec.
4994 (bpscm_make_breakpoint_smob): Initialize new members.
4995 (gdbscm_create_breakpoint_x): Split into two ...
4996 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4997 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4998 (scheme_function breakpoint_functions): Update.
4999 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5000 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5001 register-breakpoint!.
5003 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5006 * mem-break.c (z_type_supported): Return zero if
5007 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5009 2014-06-04 Tom Tromey <tromey@redhat.com>
5011 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5012 value_from_contents_and_address_unresolved.
5013 (ada_template_to_fixed_record_type_1): Likewise.
5014 (ada_which_variant_applies): Likewise.
5015 * value.h (value_from_contents_and_address_unresolved): Declare.
5016 * value.c (value_from_contents_and_address_unresolved): New
5018 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5019 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5020 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5022 2014-06-04 Tom Tromey <tromey@redhat.com>
5024 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5026 2014-06-04 Tom Tromey <tromey@redhat.com>
5028 * procfs.c (procfs_attach): Make "args" const.
5029 * windows-nat.c (windows_attach): Make "args" const.
5030 * nto-procfs.c (procfs_attach): Make "args" const.
5031 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5032 * go32-nat.c (go32_attach): Make "args" const.
5033 * gnu-nat.c (gnu_attach): Make "args" const.
5034 * darwin-nat.c (darwin_attach): Make "args" const.
5035 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5036 * linux-nat.c (linux_nat_attach): Make "args" const.
5037 * remote.c (extended_remote_attach_1, extended_remote_attach):
5039 * target.h (struct target_ops) <to_attach>: Make "args" const.
5040 (find_default_attach): Likewise.
5041 * utils.c (parse_pid_to_attach): Make "args" const.
5042 * utils.h (parse_pid_to_attach): Update.
5044 2014-06-04 Tom Tromey <tromey@redhat.com>
5046 * target-delegates.c: Rebuild.
5047 * target.c (default_thread_address_space): New function.
5048 (target_thread_address_space): Simplify.
5049 * target.h (struct target_ops) <to_thread_address_space>: Add
5050 TARGET_DEFAULT_FUNC.
5052 2014-06-04 Doug Evans <xdje42@gmail.com>
5054 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5056 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5058 * record-btrace.c: Include event-loop.h and inf-loop.h.
5059 (record_btrace_resume_exec_dir)
5060 (record_btrace_async_inferior_event_handler)
5061 (record_btrace_handle_async_inferior_event): New.
5062 (record_btrace_open): Create async event handler.
5063 (record_btrace_close): Delete async event handler.
5064 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5065 Mark async event handler.
5066 (record_btrace_execution_direction): New.
5067 (init_record_btrace_ops): Initialize to_execution_direction.
5069 2014-06-03 Doug Evans <xdje42@gmail.com>
5071 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5072 (gdbscm_make_parameter): Ditto.
5074 2014-06-03 Doug Evans <dje@google.com>
5076 * exec.c (exec_close_1): Call clear_section_table instead of
5077 resize_section_table.
5078 (clear_section_table): New function.
5079 (resize_section_table): Make static. Rename arg num_added to
5081 * exec.h (clear_section_table): Declare.
5082 (resize_section_table): Delete.
5083 * progspace.c (release_program_space): Call clear_section_table
5084 instead of resize_section_table.
5086 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5088 * NEWS (Python Scripting): Add entry about the new xmethods
5091 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5093 * python/py-xmethods.c: New file.
5094 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5095 (objfpy_dealloc): XDECREF on the new xmethods field.
5096 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5098 (objfpy_get_xmethods): New function.
5099 (objfile_getset): New entry 'xmethods'.
5100 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5101 (pspy_dealloc): XDECREF on the new xmethods field.
5102 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5104 (pspy_get_xmethods): New function.
5105 (pspace_getset): New entry 'xmethods'.
5106 * python/python-internal.h: Add declarations for new functions.
5107 * python/python.c (_initialize_python): Invoke
5108 gdbpy_initialize_xmethods.
5109 * python/lib/gdb/__init__.py (xmethods): New
5111 * python/lib/gdb/xmethod.py: New file.
5112 * python/lib/gdb/command/xmethods.py: New file.
5114 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5116 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5117 best match method returned by find_overload_match is an xmethod.
5118 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5119 the best matching operator returned by find_overload_match is an
5121 * valops.c: #include "extension.h".
5122 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5123 Return void. The list of matching source methods is returned in
5124 "fn_list" and a vector of matching debug method workers is
5125 returned in "xm_worker_vec". Update all callers.
5126 (value_find_oload_method_list): Likewise.
5127 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5128 non-NULL, then the index of the best matching method in this
5129 vector is returned. Update all callers.
5130 (find_overload_match): Include xmethods while performing overload
5133 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5135 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5136 * extension-priv.h (struct extension_language_ops): Add the
5138 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5139 get_matching_xmethod_workers, get_xmethod_argtypes,
5140 invoke_xmethod, free_xmethod_worker,
5141 free_xmethod_worker_vec): New functions.
5142 * extension.h: #include "common/vec.h".
5143 New function declarations.
5144 (struct xmethod_worker): New struct.
5145 (VEC (xmethod_worker_ptr)): New vector type.
5146 (xmethod_worker_ptr): New typedef.
5147 (xmethod_worker_vec): Likewise.
5148 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5150 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5151 (struct builtin_type): New field "xmethod".
5152 * valarith.c (value_ptradd): Assert that the value argument is not
5154 * valops.c (value_must_coerce_to_target): Return 0 for
5155 lval_xcallable values.
5156 * value.c (struct value): New field XM_WORKER in the field
5158 (value_address, value_raw_address): Return 0 for lval_xcallable
5160 (set_value_address): Assert that the value is not an
5162 (value_free): Free the associated xmethod worker when freeing
5163 lval_xcallable values.
5164 (set_value_component_location): Assert that the WHOLE value is not
5166 (value_of_xmethod, call_xmethod): New functions.
5167 * value.h: Declare "struct xmethod_worker".
5168 Declare new functions value_of_xmethod, call_xmethod.
5170 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5171 Pedro Alves <palves@redhat.com>
5173 PR breakpoints/17000
5174 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5175 New function, extracted from software_breakpoint_inserted_here_p.
5176 (software_breakpoint_inserted_here_p): Replace factored out code
5177 by call to find_non_raw_software_breakpoint_inserted_here.
5178 (bp_target_info_copy_insertion_state): New function.
5179 (bkpt_insert_location): Handle the case of a single-step
5180 breakpoint already inserted at the same address.
5181 (bkpt_remove_location): Handle the case of a single-step
5182 breakpoint still inserted at the same address.
5183 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5184 breakpoint already inserted at the same address.
5185 (deprecated_remove_raw_breakpoint): Handle the case of a
5186 non-raw breakpoint still inserted at the same address.
5187 (find_single_step_breakpoint): New function, extracted from
5188 single_step_breakpoint_inserted_here_p.
5189 (find_single_step_breakpoint): New function,
5190 factored out from single_step_breakpoint_inserted_here_p.
5191 (single_step_breakpoint_inserted_here_p): Reimplement.
5193 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5195 Pushed by Joel Brobecker <brobecker@adacore.com>
5196 * source.c (show_substitute_path_command): Fix display of matching
5199 2014-06-03 Gary Benson <gbenson@redhat.com>
5201 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5203 2014-06-02 Doug Evans <xdje42@gmail.com>
5205 Add parameter support for Guile.
5206 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5207 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5208 (scm-param.o): New rule.
5209 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5210 (gdbscm_misc_error): Declare.
5211 (gdbscm_canonicalize_command_name): Declare.
5212 (gdbscm_scm_to_host_string): Declare.
5213 (gdbscm_scm_from_host_string): Declare.
5214 (gdbscm_initialize_parameters): Declare.
5215 * guile/guile.c (initialize_gdb_module): Call
5216 gdbscm_initialize_parameters.
5217 * guile/lib/gdb.scm: Export parameter symbols.
5218 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5219 cmdscm_canonicalize_name and made public. All callers updated.
5220 * guile/scm-exception.c (gdbscm_misc_error): New function.
5221 * guile/scm-param.c: New file.
5222 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5223 (gdbscm_scm_to_host_string): New function.
5224 (gdbscm_scm_from_host_string): New function.
5225 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5227 2014-06-02 Doug Evans <xdje42@gmail.com>
5229 Add command support for Guile.
5230 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5231 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5232 (scm-cmd.o): New rule.
5233 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5234 (gdbscm_user_error_p): Declare.
5235 (gdbscm_parse_command_name): Declare.
5236 (gdbscm_valid_command_class_p): Declare.
5237 (gdbscm_initialize_commands): Declare.
5238 * guile/guile.c (initialize_gdb_module): Call
5239 gdbscm_initialize_commands.
5240 * guile/lib/gdb.scm: Export command symbols.
5241 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5242 (throw-user-error): New function.
5243 * guile/scm-cmd.c: New file.
5244 * guile/scm-exception.c (user_error_symbol): New static global.
5245 (gdbscm_user_error_p): New function.
5246 (gdbscm_initialize_exceptions): Set user_error_symbol.
5247 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5249 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5251 * top.c (command_loop): Handle comments here...
5252 (command_line_input): ... not here.
5254 2014-06-02 Doug Evans <xdje42@gmail.com>
5256 Add progspace support for Guile.
5257 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5258 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5259 (scm-progspace.o): New rule.
5260 * guile/guile-internal.h (pspace_smob): New typedef.
5261 (psscm_pspace_smob_pretty_printers): Declare.
5262 (psscm_pspace_smob_from_pspace): Declare.
5263 (psscm_scm_from_pspace): Declare.
5264 * guile/guile.c (initialize_gdb_module): Call
5265 gdbscm_initialize_pspaces.
5266 * guile/lib/gdb.scm: Export progspace symbols.
5267 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5269 (append-pretty-printer!): Ditto.
5270 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5272 * guile/scm-progspace.c: New file.
5274 2014-06-03 Alan Modra <amodra@gmail.com>
5276 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5277 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5279 2014-06-02 Doug Evans <dje@google.com>
5281 Add support for skeletonless type units.
5282 * dwarf2read.c (struct dwarf2_per_objfile): New member
5283 n_allocated_type_units.
5284 (struct dwarf2_per_objfile) <tu_stats>: New member
5285 nr_all_type_units_reallocs.
5286 (create_signatured_type_table_from_index): Initialize
5287 n_allocated_type_units
5288 (create_all_type_units): Ditto.
5289 (add_type_unit): Move up in file. New arg slot.
5290 All callers updated. Increase space for all_type_units more
5292 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5293 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5294 (lookup_dwp_signatured_type): Ditto.
5295 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5296 All callers updated.
5297 (build_type_psymtabs_1): Leave type_unit_groups as
5298 NULL if no TUs present.
5299 (print_tu_stats): New function.
5300 (process_skeletonless_type_unit): New function.
5301 (process_dwo_file_for_skeletonless_type_units): New
5303 (process_skeletonless_type_units): New function.
5304 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5305 Call print tu_stats if debugging enabled.
5307 2014-06-02 Pedro Alves <palves@redhat.com>
5309 * breakpoint.c (build_target_command_list): Don't build a command
5310 list if we have any duplicate location that isn't a dprintf.
5312 2014-06-02 Pedro Alves <palves@redhat.com>
5314 * breakpoint.c (dprintf_breakpoint_hit): New function.
5315 (initialize_breakpoint_ops): Install it as dprintf's
5316 breakpoint_hit method.
5318 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5320 * source.c (substitute_path_rule_matches): Simplify using
5321 filename_ncmp instead of FILENAME_CMP.
5323 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5325 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5327 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5329 * configure.ac: When Guile is available, check for the
5330 availability of 'scm_new_smob'.
5331 * configure, config.h.in: Regenerate.
5332 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5335 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5337 * frame.c (struct frame_info): Add stop_string field.
5338 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5339 (get_prev_frame_always): Old content moved into
5340 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5341 TRY_CATCH, handle MEMORY_ERROR exceptions.
5342 (frame_stop_reason_string): New function definition.
5343 * frame.h (unwind_stop_reason_to_string): Extend comment to
5344 mention frame_stop_reason_string.
5345 (frame_stop_reason_string): New function declaration.
5346 * stack.c (frame_info): Switch to frame_stop_reason_string.
5347 (backtrace_command_1): Switch to frame_stop_reason_string.
5348 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5349 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5350 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5352 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5354 * frame.c (frame_stop_reason_string): Rename to ...
5355 (unwind_stop_reason_to_string): this.
5356 * frame.h (frame_stop_reason_string): Rename to ...
5357 (unwind_stop_reason_to_string): this.
5358 * stack.c (frame_info): Update call to frame_stop_reason_string.
5359 (backtrace_command_1): Likewise.
5360 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5361 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5363 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5365 * frame.c (remove_prev_frame): New function.
5366 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5369 2014-05-29 Pedro Alves <palves@redhat.com>
5371 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5372 and make it const. When a single-step decays to a continue,
5373 clear 'step', not 'hw_step'. Pass whether the caller wanted
5374 to step to user_visible_resume_ptid, not what we ask the
5377 2014-05-29 Pedro Alves <palves@redhat.com>
5379 * infrun.c (process_event_stop_test, handle_step_into_function)
5380 (handle_step_into_function_backward): Adjust.
5381 Don't set the even thread's stop_step and call stop_waiting before
5382 calling end_stepping_range. Instead do that ...
5383 (end_stepping_range): ... here. Take an ecs pointer parameter.
5385 2014-05-29 Pedro Alves <palves@redhat.com>
5387 * infrun.c (stop_stepping): Rename to ...
5388 (stop_waiting): ... this.
5389 (proceed): Update comment.
5390 (process_event_stop_test, handle_inferior_event)
5391 (handle_signal_stop, handle_step_into_function)
5392 (handle_step_into_function_backward): Update.
5394 2014-05-29 Pedro Alves <palves@redhat.com>
5396 * infcall.c (run_inferior_call): Don't check whether the current
5397 thread is running after the proceed call.
5399 2014-05-29 Pedro Alves <palves@redhat.com>
5400 Tom Tromey <tromey@redhat.com>
5402 * NEWS: Mention "maint set target-async", "set mi-async", and that
5403 background execution commands are now always available.
5404 * target.h (target_async_permitted): Update comment.
5405 * target.c (target_async_permitted, target_async_permitted_1):
5407 (set_target_async_command): Rename to ...
5408 (maint_set_target_async_command): ... this.
5409 (show_target_async_command): Rename to ...
5410 (maint_show_target_async_command): ... this.
5411 (_initialize_target): Adjust.
5412 * infcmd.c (prepare_execution_command): Make extern.
5413 * inferior.h (prepare_execution_command): Declare.
5414 * infrun.c (set_observer_mode): Leave target async alone.
5415 * mi/mi-interp.c (mi_interpreter_init): Install
5416 mi_on_sync_execution_done as sync_execution_done observer.
5417 (mi_on_sync_execution_done): New function.
5418 (mi_execute_command_input_handler): Don't print the prompt if we
5419 just started a synchronous command with an async target.
5420 (mi_on_resume): Check sync_execution before printing prompt.
5421 * mi/mi-main.h (mi_async_p): Declare.
5422 * mi/mi-main.c: Include gdbcmd.h.
5423 (mi_async_p): New function.
5424 (mi_async, mi_async_1): New globals.
5425 (set_mi_async_command, show_mi_async_command, mi_async): New
5427 (exec_continue): Call prepare_execution_command.
5428 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5429 (mi_execute_async_cli_command): Use mi_async_p.
5430 (_initialize_mi_main): Install "set mi-async". Make
5431 "target-async" a deprecated alias.
5433 2014-05-29 Pedro Alves <palves@redhat.com>
5435 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5436 (_initialize_cli_interp): Adjust.
5437 * event-loop.c: Include "observer.h".
5438 (start_event_loop): Notify 'command_error' observers instead of
5439 calling display_gdb_prompt. Remove FIXME comment.
5440 * event-top.c (display_gdb_prompt): Remove call into the
5442 * inf-loop.c: Include "observer.h".
5443 (inferior_event_handler): Notify 'command_error' observers instead
5444 of calling display_gdb_prompt.
5445 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5446 observers instead of calling display_gdb_prompt.
5447 * interps.c (interp_set): Don't call display_gdb_prompt.
5448 (current_interp_display_prompt_p): Delete.
5449 * interps.h (interp_prompt_p): Delete declaration.
5450 (interp_prompt_p_ftype): Delete.
5451 (struct interp_procs) <prompt_proc_p>: Delete field.
5452 (current_interp_display_prompt_p): Delete declaration.
5453 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5454 (_initialize_mi_interp): Adjust.
5455 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5456 'command_error' observers.
5457 (tui_on_sync_execution_done, tui_on_command_error): New
5459 (tui_display_prompt_p): Delete.
5460 (_initialize_tui_interp): Adjust.
5462 2014-05-29 Pedro Alves <palves@redhat.com>
5465 * cli/cli-interp.c: Include infrun.h and observer.h.
5466 (cli_uiout, cli_interp): New globals.
5467 (cli_on_signal_received, cli_on_end_stepping_range)
5468 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5470 (cli_interpreter_init): Install them as 'end_stepping_range',
5471 'signal_received' 'signal_exited', 'exited' and 'no_history'
5473 (_initialize_cli_interp): Remove cli_interp local.
5474 * infrun.c (handle_inferior_event): Call the several stop reason
5475 observers instead of printing the stop reason directly.
5476 (end_stepping_range): New function.
5477 (print_end_stepping_range_reason, print_signal_exited_reason)
5478 (print_exited_reason, print_signal_received_reason)
5479 (print_no_history_reason): Make static, and add an uiout
5480 parameter. Print to that instead of to CURRENT_UIOUT.
5481 * infrun.h (print_end_stepping_range_reason)
5482 (print_signal_exited_reason, print_exited_reason)
5483 (print_signal_received_reason print_no_history_reason): New
5485 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5487 <cli_uiout>: New field.
5488 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5489 uiout for CLI output. Install 'signal_received',
5490 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5492 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5493 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5494 (mi_on_no_history): New functions.
5495 (ui_out_free_cleanup): Delete function.
5496 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5497 instead use the one already stored in the MI interpreter data.
5498 (mi_ui_out): Adjust.
5499 * tui/tui-interp.c: Include infrun.h and observer.h.
5500 (tui_interp): New global.
5501 (tui_on_signal_received, tui_on_end_stepping_range)
5502 (tui_on_signal_exited, tui_on_exited)
5503 (tui_on_no_history): New functions.
5504 (tui_init): Install them as 'end_stepping_range',
5505 'signal_received' 'signal_exited', 'exited' and 'no_history'
5507 (_initialize_tui_interp): Delete tui_interp local.
5509 2014-05-29 Pedro Alves <palves@redhat.com>
5512 * linux-nat.c (linux_nat_resume_callback): Rename the second
5513 parameter to 'except'. Skip LP if it points to EXCEPT.
5514 (linux_nat_resume): Don't mark the event lwp as not stopped
5515 before resuming sibling lwps. Instead ask
5516 linux_nat_resume_callback to skip the event lwp. Mark it as not
5517 stopped after actually resuming it.
5518 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5520 (wait_lwp): Mark the lwp as stopped here.
5521 (stop_wait_callback): Mark the lwp as not stopped right after
5522 resuming it. Don't mark lwps as stopped here.
5523 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5524 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5526 2014-05-29 Pedro Alves <palves@redhat.com>
5529 * infrun.c (resume): Determine how much to resume depending on
5530 whether the caller wanted a step, not whether we can hardware step
5531 the target. Mark all threads that we intend to run as running,
5532 unless we're calling an inferior function.
5533 (normal_stop): If the thread is running an infcall, don't finish
5535 * target.c (target_resume): Don't mark threads as running here.
5537 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5539 * serial.c (_initialize_serial): Remove support for
5540 the "set remotebaud" and "show remotebaud" commands.
5541 * NEWS: Add entry documenting the removal of that command.
5543 2014-05-28 Yao Qi <yao@codesourcery.com>
5545 * charset.c: Fix typo in comments.
5547 2014-05-27 Gary Benson <gbenson@redhat.com>
5549 * utils.c (internal_vproblem): Prompt for a bug report.
5551 2014-05-26 Andy Wingo <wingo@igalia.com>
5553 * guile/scm-arch.c (arscm_mark_arch_smob):
5554 * guile/scm-block.c (bkscm_mark_block_smob)
5555 (bkscm_mark_block_syms_progress_smob):
5556 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5557 * guile/scm-exception.c (exscm_mark_exception_smob):
5558 * guile/scm-frame.c (frscm_mark_frame_smob):
5559 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5560 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5561 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5562 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5563 (ppscm_mark_pretty_printer_worker_smob):
5564 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5565 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5566 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5567 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5569 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5572 2014-05-26 Andy Wingo <wingo@igalia.com>
5573 Doug Evans <xdje42@gmail.com>
5575 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5576 empty_base_class. All uses updated.
5577 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5578 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5580 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5581 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5582 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5583 (gdbscm_gsmob_has_property_p, add_property_name)
5584 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5585 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5586 (gdb-object-has-property?, gdb-object-properties): Remove.
5587 (gdb-object-kind): Renamed from gsmob-kind.
5589 2014-05-26 Andy Wingo <wingo@igalia.com>
5591 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5592 * configure: Regenerate.
5594 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5596 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5598 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5600 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5601 (replay_memory_access_read_only, replay_memory_access_read_write)
5602 (replay_memory_access_types, replay_memory_access)
5603 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5604 (cmd_set_record_btrace, cmd_show_record_btrace)
5605 (cmd_show_replay_memory_access): New.
5606 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5607 (record_btrace_remove_breakpoint): Replace
5608 record_btrace_allow_memory_access with replay_memory_access.
5609 (_initialize_record_btrace): Add commands.
5610 * NEWS: Announce it.
5612 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5614 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5616 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5618 * MAINTAINERS (Write After Approval): Move self back from
5621 2014-05-22 Pedro Alves <palves@redhat.com>
5623 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5624 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5625 (disable_randomization, enum exec_direction_kind)
5626 (execution_direction, stop_registers, start_remote)
5627 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5628 (wait_for_inferior, normal_stop, get_last_target_status)
5629 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5630 (insert_step_resume_breakpoint_at_sal)
5631 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5632 (set_step_info, print_stop_event, signal_stop_state)
5633 (signal_print_state, signal_pass_state, signal_stop_update)
5634 (signal_print_update, signal_pass_update)
5635 (update_signals_program_target, clear_exit_convenience_vars)
5636 (displaced_step_dump_bytes, update_observer_mode)
5637 (signal_catch_update, gdb_signal_from_command): Move
5639 * infrun.h: ... to this new file.
5640 * amd64-tdep.c: Include infrun.h.
5641 * annotate.c: Include infrun.h.
5642 * arch-utils.c: Include infrun.h.
5643 * arm-linux-tdep.c: Include infrun.h.
5644 * arm-tdep.c: Include infrun.h.
5645 * break-catch-sig.c: Include infrun.h.
5646 * breakpoint.c: Include infrun.h.
5647 * common/agent.c: Include infrun.h instead of inferior.h.
5648 * corelow.c: Include infrun.h.
5649 * event-top.c: Include infrun.h.
5650 * go32-nat.c: Include infrun.h.
5651 * i386-tdep.c: Include infrun.h.
5652 * inf-loop.c: Include infrun.h.
5653 * infcall.c: Include infrun.h.
5654 * infcmd.c: Include infrun.h.
5655 * infrun.c: Include infrun.h.
5656 * linux-fork.c: Include infrun.h.
5657 * linux-nat.c: Include infrun.h.
5658 * linux-thread-db.c: Include infrun.h.
5659 * monitor.c: Include infrun.h.
5660 * nto-tdep.c: Include infrun.h.
5661 * procfs.c: Include infrun.h.
5662 * record-btrace.c: Include infrun.h.
5663 * record-full.c: Include infrun.h.
5664 * remote-m32r-sdi.c: Include infrun.h.
5665 * remote-mips.c: Include infrun.h.
5666 * remote-notif.c: Include infrun.h.
5667 * remote-sim.c: Include infrun.h.
5668 * remote.c: Include infrun.h.
5669 * reverse.c: Include infrun.h.
5670 * rs6000-tdep.c: Include infrun.h.
5671 * s390-linux-tdep.c: Include infrun.h.
5672 * solib-irix.c: Include infrun.h.
5673 * solib-osf.c: Include infrun.h.
5674 * solib-svr4.c: Include infrun.h.
5675 * target.c: Include infrun.h.
5676 * top.c: Include infrun.h.
5677 * windows-nat.c: Include infrun.h.
5678 * mi/mi-interp.c: Include infrun.h.
5679 * mi/mi-main.c: Include infrun.h.
5680 * python/py-threadevent.c: Include infrun.h.
5682 2014-05-22 Pedro Alves <palves@redhat.com>
5684 * infrun.c (handle_inferior_event): Store the exit code for
5685 --return-child-result here, instead of ...
5686 (print_exited_reason): ... here.
5688 2014-05-21 Pedro Alves <palves@redhat.com>
5691 * gdbthread.h (struct thread_control_state): New field
5693 * infrun.c (follow_fork): Copy the new thread control field to the
5695 (clear_proceed_status_thread): Clear the new thread control field.
5696 (proceed): Set the new thread control field.
5697 * interps.h (command_interp): Declare.
5698 * interps.c (command_interpreter): New global.
5699 (command_interp): New function.
5700 (interp_exec): Set `command_interpreter' while here.
5701 * cli-out.c (cli_uiout_dtor): New function.
5702 (cli_ui_out_impl): Install it.
5703 * mi/mi-interp.c: Include cli-out.h.
5704 (mi_cmd_interpreter_exec): Add comment.
5705 (restore_current_uiout_cleanup): New function.
5706 (ui_out_free_cleanup): New function.
5707 (mi_on_normal_stop): If finishing an execution command started by
5708 a CLI command, or any kind of breakpoint-like event triggered,
5709 print the stop event to the output (CLI) stream.
5710 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5712 2014-05-21 Pedro Alves <palves@redhat.com>
5714 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5715 current source line having changed.
5716 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5717 * infrun.c (normal_stop): Adjust call to
5718 set_current_sal_from_frame.
5719 * source.c (clear_lines_listed_range): New function.
5720 (set_current_source_symtab_and_line, identify_source_line): Clear
5721 the lines listed range.
5722 (line_info): Handle the first "info line" after the current source
5723 line having changed.
5724 * stack.c (print_stack_frame): Remove center handling.
5725 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5728 2014-05-21 Pedro Alves <palves@redhat.com>
5730 * inf-child.c (inf_child_mourn_inferior): New function.
5731 * inf-child.h (inf_child_mourn_inferior): New declaration.
5732 * darwin-nat.c (darwin_mourn_inferior): Use
5733 inf_child_mourn_inferior.
5734 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5735 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5736 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5737 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5738 * windows-nat.c (windows_mourn_inferior): Likewise.
5740 2014-05-21 Doug Evans <xdje42@gmail.com>
5742 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5744 2014-05-21 Doug Evans <xdje42@gmail.com>
5746 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5747 (gdbscm_out_of_range_error): Ditto.
5748 (gdbscm_memory_error): Ditto.
5749 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5750 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5751 (gdbscm_out_of_range_error): Update.
5752 (gdbscm_memory_error): Update.
5753 (gdbscm_scm_to_target_string_unsafe): Delete.
5755 2014-05-21 Pedro Alves <palves@redhat.com>
5757 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5759 (inf_child_open_target): New function.
5760 (inf_child_open): Use inf_child_open_target to push the target
5761 instead of erroring out.
5762 (inf_child_disconnect, inf_child_close)
5763 (inf_child_maybe_unpush_target): New functions.
5764 (inf_child_target): Install inf_child_disconnect and
5765 inf_child_close. Store a pointer to the returned object.
5766 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5768 * target.c (auto_connect_native_target): New global.
5769 (show_default_run_target): New function.
5770 (find_default_run_target): Return NULL if automatically connecting
5771 to the native target is disabled.
5772 (_initialize_target): Install set/show auto-connect-native-target.
5773 * NEWS: Mention "set auto-connect-native-target", and "target
5775 * linux-nat.c (super_close): New global.
5776 (linux_nat_close): Call super_close.
5777 (linux_nat_add_target): Store a pointer to the base class's
5779 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5780 inf_child_maybe_unpush.
5781 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5783 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5784 the inferior. Use inf_child_maybe_unpush_target.
5785 (inf_ttrace_attach): Don't push the target if it is already
5787 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5788 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5789 after mourning the inferior. Use inf_child_maybe_unpush_target.
5790 (darwin_attach_pid): Don't push the target if it is already
5792 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5793 mourning the inferior. Use inf_child_maybe_unpush_target.
5794 (gnu_detach): Use inf_child_maybe_unpush_target.
5795 * go32-nat.c (go32_create_inferior): Don't push the target if it
5797 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5798 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5799 (procfs_open): Rename to ...
5800 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5801 comments. Can target_preopen before changing node. Call
5802 inf_child_open_target to push the target explicitly.
5803 (procfs_attach): Don't push the target if it is already pushed.
5804 (procfs_detach): Use inf_child_maybe_unpush_target.
5805 (procfs_create_inferior): Don't push the target if it is already
5807 (nto_native_ops): New global.
5808 (procfs_open): Reimplement.
5809 (procfs_native_open): New function.
5810 (init_procfs_targets): Install procfs_native_open as to_open of
5811 "target native". Store a pointer to the "native" target in
5813 * procfs.c (procfs_attach): Don't push the target if it is already
5815 (procfs_detach): Use inf_child_maybe_unpush_target.
5816 (procfs_mourn_inferior): Only unpush the target after mourning the
5817 inferior. Use inf_child_maybe_unpush_target.
5818 (procfs_init_inferior): Don't push the target if it is already
5820 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5821 if it is already pushed.
5823 2014-05-21 Pedro Alves <palves@redhat.com>
5825 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5826 and "procfs" targets are now called "native" instead.
5828 2014-05-21 Pedro Alves <palves@redhat.com>
5830 * go32-nat.c (go32_open): Delete.
5831 (go32_target): Don't override the to_open method.
5833 2014-05-21 Pedro Alves <palves@redhat.com>
5835 * nto-procfs.c (procfs_can_run): New function.
5836 (nto_procfs_ops): New global.
5837 (init_procfs_targets): New, based on procfs_target. Install
5838 "target native" in addition to "target procfs".
5839 (_initialize_procfs): Call init_procfs_targets instead of adding
5842 2014-05-21 Pedro Alves <palves@redhat.com>
5844 * windows-nat.c (windows_target): Don't override to_shortname,
5845 to_longname or to_doc.
5847 2014-05-21 Pedro Alves <palves@redhat.com>
5849 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5852 2014-05-21 Pedro Alves <palves@redhat.com>
5854 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5855 to_shortname, to_longname or to_doc.
5857 2014-05-21 Pedro Alves <palves@redhat.com>
5859 * go32-nat.c (go32_target): Don't override to_shortname,
5860 to_longname or to_doc.
5862 2014-05-21 Pedro Alves <palves@redhat.com>
5864 * inf-child.c (inf_child_open): Remove mention of "child".
5865 (inf_child_target): Rename target to "native" instead of "child".
5867 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5869 * Makefile.in (SFILES): Delete "regset.c".
5870 (COMMON_OBS): Delete "regset.o".
5872 * regset.h (regset_alloc): Delete prototype.
5874 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5876 * sparc-linux-tdep.c (sparc32_linux_gregset)
5877 (sparc32_linux_fpregset): New static regset structures.
5878 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5879 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5881 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5882 (sparc64_linux_fpregset): New static regset structures.
5883 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5884 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5885 New static regset structures.
5886 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5887 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5888 New static regset structures.
5889 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5890 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5891 New static regset structures.
5892 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5893 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5894 New static regset structures.
5895 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5897 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5899 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5900 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5901 register maps ("regmaps") from "*regset" to "*regmap". Do this
5902 for all regmap types and variables.
5903 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5904 (sparc32_linux_supply_core_gregset)
5905 (sparc32_linux_collect_core_gregset)
5906 (sparc32_linux_supply_core_fpregset)
5907 (sparc32_linux_collect_core_fpregset): Likewise.
5908 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5909 (sparc_gregmap, sparc_fpregmap): ... these.
5910 (sparc_supply_gregset, sparc_collect_gregset)
5911 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5912 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5913 (_initialize_sparc_nat): Rename regmaps.
5914 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5915 (sparc_gregmap, sparc_fpregmap): ... these.
5916 (sparc_supply_gregset, sparc_collect_gregset)
5917 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5918 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5920 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5921 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5923 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5925 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5926 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5927 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5929 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5930 (sparc32_bsd_fpregset): Rename to...
5931 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5932 (sparc32_bsd_fpregmap): ... these.
5933 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5934 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5935 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5936 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5937 (struct sparc_gregmap, struct sparc_fpregmap)
5938 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5939 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5940 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5941 (sparc32_supply_regset, sparc32_collect_gregset)
5942 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5944 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5945 (sparc64_linux_ptrace_gregmap): ... this.
5946 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5947 (_initialize_sparc64_linux_nat): Rename regmaps.
5948 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5949 (sparc64_linux_core_gregmap): ... this.
5950 (sparc64_linux_supply_core_gregset)
5951 (sparc64_linux_collect_core_gregset)
5952 (sparc64_linux_supply_core_fpregset)
5953 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5954 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5955 (sparc64_sol2_fpregset): Rename to...
5956 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5957 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5958 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5960 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5961 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5962 (sparc64_bsd_fpregset): Rename to...
5963 (struct sparc_gregmap, sparc64_sol2_gregmap)
5964 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5965 (sparc64_bsd_fpregmap): ... these.
5966 (sparc64_supply_gregset, sparc64_collect_gregset)
5967 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5969 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5970 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5971 (sparc64fbsd_gregmap): ... this.
5972 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5973 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5975 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5976 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5977 (sparc64nbsd_collect_fpregset): Likewise.
5978 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5979 (sparc64nbsd_gregmap): ... this.
5980 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5982 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5983 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5984 (sparc64obsd_gregmap): ... this.
5985 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5987 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5988 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5989 (sparc32nbsd_gregmap): ... this.
5990 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5993 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5995 * score-tdep.c (score7_linux_gregset): New static regset
5997 (score7_linux_regset_from_core_section): Remove dynamic regset
5999 (score_gdbarch_init): Drop allocation of tdep structure.
6000 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6002 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6004 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6006 (am33_regset_from_core_section): Remove dynamic regset
6009 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6011 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6012 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6014 (mips_linux_regset_from_core_section): Remove dynamic regset
6016 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6017 'gregset64', 'fpregset', and 'fpregset64'.
6018 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6019 deleted tdep fields.
6021 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6023 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6025 (amd64_regset_from_core_section): Remove dynamic regset
6027 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6029 (amd64obsd_regset_from_core_section): Remove dynamic regset
6031 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6033 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6034 x86-common regset supply function.
6035 * i386-tdep.c (i386_collect_gregset): Make static.
6036 (i386_gregset): New global regset structure.
6037 (i386_fpregset, i386_xstateregset): New static regset structures.
6038 (i386_regset_from_core_section): Remove dynamic regset
6040 (i386_gdbarch_init): Remove initialization of tdep fields
6041 'gregset', 'fpregset', and 'xstateregset'.
6042 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6043 'fpregset', and 'xstateregset'.
6044 (i386_collect_gregset): Remove prototype.
6045 (i386_gregset): New declaration.
6046 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6048 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6051 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6053 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6054 (arm_linux_vfpregset): New static regset structures.
6055 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6057 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6058 and 'vfpregset' fields.
6060 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6062 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6063 (aarch64_linux_fpregset): New static regset structures.
6064 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6065 of regset structures.
6066 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6069 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6071 * regset.h (struct regset): Remove gdbarch field.
6072 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6073 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6074 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6076 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6077 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6078 (ppc32_linux_vsxregset): Likewise.
6079 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6080 via the regcache instead of the regset.
6081 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6082 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6083 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6084 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6087 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6089 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6090 Constify structures.
6091 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6092 (alphanbsd_aout_gregset): Likewise.
6093 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6094 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6096 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6097 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6099 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6100 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6101 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6102 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6103 * m88k-tdep.c (m88k_gregset): Likewise.
6104 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6105 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6106 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6107 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6108 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6109 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6110 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6111 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6112 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6114 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6115 * sh-tdep.h (sh_corefile_gregset): Likewise.
6116 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6117 * vax-tdep.c (vax_gregset): Likewise.
6119 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6121 Fix TLS access for -static -pthread.
6122 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6123 (try_thread_db_load_1): Initialize it.
6124 (thread_db_get_thread_local_address): Call it if LM is zero.
6125 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6126 * target.h (struct target_ops) (to_get_thread_local_address): Add
6127 load_module_addr comment.
6129 2014-05-21 Pedro Alves <palves@redhat.com>
6131 * dcache.c (dcache_read_memory_partial): If reading the cache line
6132 fails, fallback to reading just the memory the caller wanted.
6134 2014-05-20 Doug Evans <dje@google.com>
6136 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6137 instead of get_current_arch.
6139 2014-05-20 Pedro Alves <palves@redhat.com>
6141 * NEWS: Mention that compare-sections now works with all targets.
6143 * remote.c (PACKET_qCRC): New enum value.
6144 (remote_verify_memory): Don't send qCRC if the target has no
6145 execution. Use packet_support/packet_ok. If the target doesn't
6146 support the qCRC packet, fallback to a deep memory copy.
6147 (compare_sections_command): Say "target image" instead of "remote
6149 (_initialize_remote): Add PACKET_qCRC to the list of config
6150 packets that have no associated command. Extend comment.
6151 * target.c (simple_verify_memory, default_verify_memory): New
6153 * target.h (struct target_ops) <to_verify_memory>: Default to
6154 default_verify_memory.
6155 (simple_verify_memory): New declaration.
6156 * target-delegates.c: Regenerate.
6158 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6160 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6162 2014-05-20 Hui Zhu <hui@codesourcery.com>
6163 Yao Qi <yao@codesourcery.com>
6166 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6167 and change address of sp and pc.
6169 2014-05-19 Tom Tromey <tromey@redhat.com>
6171 * gdbtypes.c (rank_function): Use XNEWVEC.
6172 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6174 2014-05-19 Doug Evans <dje@google.com>
6176 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6177 build_type_unit_groups and moved closer to only caller. Remove
6178 arguments. All references updated. Remove outdated .gdb_index
6180 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6181 build_type_psymtabs_1.
6183 2014-05-19 Doug Evans <dje@google.com>
6185 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6186 n_type_unit_groups, all_type_unit_groups. All uses removed.
6187 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6188 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6189 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6190 (add_type_unit_group_to_table): Delete.
6192 2014-05-19 Doug Evans <dje@google.com>
6194 * eval.c (evaluate_subexp_standard): Add some comments.
6196 2014-05-17 Doug Evans <xdje42@gmail.com>
6198 * progspace.c (remove_program_space): Delete, unused.
6199 * progspace.h (remove_program_space): Ditto.
6201 2014-05-17 Doug Evans <xdje42@gmail.com>
6203 * inferior.c (prune_inferiors): Fix comment.
6204 (remove_inferior_command): Call prune_program_spaces.
6206 2014-05-16 Doug Evans <dje@google.com>
6208 New command line option -D.
6210 * main.c (set_gdb_data_directory): New function.
6211 (captured_main): Recognize -D. Flag error for --data-directory "".
6212 Call set_gdb_data_directory.
6213 (print_gdb_help): Print --data-directory, -D.
6214 * main.h (set_gdb_data_directory): Declare.
6215 * top.c (staged_gdb_datadir): New static global.
6216 (set_gdb_datadir): Call set_gdb_data_directory
6217 (show_gdb_datadir): New function.
6218 (init_main): Update init of data-directory parameter.
6220 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6222 Import the "dirfd" gnulib module.
6223 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6224 * gnulib/aclocal.m4: Update.
6225 * gnulib/config.in: Update.
6226 * gnulib/configure: Update.
6227 * gnulib/import/Makefile.am: Update.
6228 * gnulib/import/Makefile.in: Update.
6229 * gnulib/import/dirfd.c: New.
6230 * gnulib/import/m4/dirfd.m4: New.
6231 * gnulib/import/m4/gnulib-cache.m4: Update.
6232 * gnulib/import/m4/gnulib-comp.m4: Update.
6234 2014-05-16 Pierre Muller <muller@sourceware.org>
6235 Yao Qi <yao@codesourcery.com>
6237 * valprint.c (print_wchar): Move the code on checking whether
6238 W is a printable wide char to the default branch of switch
6239 statement below. Call wchar_printable instead of gdb_iswprint.
6241 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6243 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6244 ldr.w and ldrd instructions.
6246 2014-05-15 Doug Evans <dje@google.com>
6248 * dwarf2read.c (read_structure_type): Delete outdated comments.
6250 2014-05-14 Tom Tromey <tromey@redhat.com>
6252 * macrocmd.c (print_macro_definition): Reindent.
6254 2014-05-13 Doug Evans <xdje42@gmail.com>
6256 * python/py-cmd.c (cmdpy_completer): Add comment.
6257 (completers): Make const.
6259 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6261 * infrun.c (resume): Remove should_resume (unused). Move up
6262 declaration of resume_ptid.
6264 2014-05-13 Tom Tromey <tromey@redhat.com>
6266 * language.h (unop_type_check): Remove.
6267 (binop_type_check): Don't declare.
6269 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6271 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6272 call to regcache_raw_collect.
6274 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6276 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6277 mi_console->quote as the quoting character.
6279 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6281 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6283 2014-04-29 Tom Tromey <tromey@redhat.com>
6285 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6286 "show debug varobj".
6288 2014-05-07 Kyle McMartin <kyle@redhat.com>
6290 Pushed by Joel Brobecker <brobecker@adacore.com>.
6291 * aarch64-tdep.c (aarch64_software_single_step): New function.
6292 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6293 with aarch64_software_single_step.
6295 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6299 2014-05-05 Keith Seitz <keiths@redhat.com>
6301 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6302 variable or history value is successfully parsed.
6304 2014-05-05 Yao Qi <yao@codesourcery.com>
6305 Pedro Alves <palves@redhat.com>
6307 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6308 address of blocks that intersects the requested range. Trim
6309 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6311 * ctf.c (ctf_xfer_partial): Likewise.
6313 2014-05-05 Yao Qi <yao@codesourcery.com>
6315 * printcmd.c (display_command): Remove the check to
6316 target_has_execution.
6318 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6320 * ppcobsd-nat.c: Include "obsd-nat.h".
6321 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6323 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6325 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6327 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6328 and 16-bit signed and unsigned arguments. Update comment.
6329 (stap_parse_probe_arguments): Extend code to handle such
6330 arguments. Use warning instead of complaint to notify about
6331 unrecognized bitness.
6333 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6335 PR breakpoints/16889
6336 * stap-probe.c (stap_parse_probe_arguments): Simplify
6337 check for non-prefixed probes (i.e., probes whose
6338 arguments do not start with "N@"). Always set the
6339 argument type to a sane value.
6341 2014-05-01 David Taylor <dtaylor@emc.com>
6343 * remote.c (compare_sections_command): Add -r option to compare
6344 all loadable read-only sections.
6346 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6348 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6349 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6351 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6352 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6353 Remove unused CORE_ADDR argument. Update all callers.
6355 2014-04-29 Pedro Alves <palves@redhat.com>
6357 * remote.c (struct packet_config) <detect>: Extend comment.
6358 (add_packet_config_cmd): Don't set the config's detect or support
6360 (init_all_packet_configs): Also initialize the config's 'detect'
6362 (reset_all_packet_configs_support): New function.
6363 (remote_open_1): Call reset_all_packet_configs_support instead of
6364 init_all_packet_configs.
6365 (_initialize_remote): Initialize all packet configs. Assert that
6366 all packets have an associated command, except a few known
6369 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6371 * dwarf2read.c (read_subrange_type): Handle dynamic
6372 DW_AT_lower_bound attributes.
6374 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6376 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6377 dynamic bounds before computing its upper bound.
6378 (ada_discrete_type_low_bound): Same as above with the lower bound.
6380 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6382 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6383 range types. Adjust the array handling implementation to
6384 take advantage of this change.
6385 (resolve_dynamic_range): New function, mostly extracted from
6386 resolve_dynamic_bounds.
6387 (resolve_dynamic_array): New function, mostly extracted from
6388 resolve_dynamic_bounds.
6389 (resolve_dynamic_bounds): Delete.
6390 (resolve_dynamic_type): Reimplement. Add handling of
6391 TYPE_CODE_RANGE types.
6393 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6395 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6396 handling of parallel ___XA types.
6398 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6400 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6401 unnecessary second call to static_unwrap_type.
6403 2014-04-27 Hui Zhu <hui@codesourcery.com>
6405 * stack.c (print_frame_info): Call do_gdb_disassembly with
6406 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6408 2014-04-26 Doug Evans <xdje42@gmail.com>
6410 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6412 2014-04-25 Pedro Alves <palves@redhat.com>
6415 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6416 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6417 and newline from built string.
6418 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6419 (linux_ptrace_attach_fail_reason): ... this.
6420 * linux-nat.c (linux_nat_attach): Adjust to use
6421 linux_ptrace_attach_fail_reason.
6423 2014-04-25 Pedro Alves <palves@redhat.com>
6425 * remote.c (struct remote_state): Remove multi_process_aware,
6426 non_stop_aware, cond_tracepoints, cond_breakpoints,
6427 breakpoint_commands, fast_tracepoints, static_tracepoints,
6428 install_in_trace, disconnected_tracing,
6429 enable_disable_tracepoints, string_tracing, and
6430 augmented_libraries_svr4_read fields.
6431 (remote_multi_process_p): Move further below in the file.
6432 (struct packet_config): Add comments.
6433 (update_packet_config): Delete function.
6434 (show_packet_config_cmd): Use packet_config_support.
6435 (add_packet_config_cmd): Use NULL as set callback.
6436 (packet_ok): "set remote foo-packet"-style commands no longer
6437 change config->supported -- adjust.
6438 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6439 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6440 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6441 (PACKET_QNonStop, PACKET_multiprocess_feature)
6442 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6443 (PACKET_DisconnectedTracing_feature)
6444 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6445 (set_remote_protocol_packet_cmd): Delete function.
6446 (packet_config_support, packet_support): New functions.
6447 (set_remote_protocol_Z_packet_cmd): Don't call
6448 update_packet_config.
6449 (remote_query_attached, remote_pass_signals)
6450 (remote_program_signals, remote_threads_info)
6451 (remote_threads_extra_info, remote_start_remote): Use
6453 (remote_start_remote): Use packet_config_support and
6455 (init_all_packet_configs): Set all packets to unknown support,
6456 instead of calling update_packet_config.
6457 (remote_check_symbols): Use packet_support.
6458 (remote_supported_packet): Unconditionally set the packet config's
6460 (remote_multi_process_feature, remote_non_stop_feature)
6461 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6462 (remote_breakpoint_commands_feature)
6463 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6464 (remote_install_in_trace_feature)
6465 (remote_disconnected_tracing_feature)
6466 (remote_enable_disable_tracepoint_feature)
6467 (remote_string_tracing_feature)
6468 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6469 (remote_protocol_features): Adjust to use remote_supported_packet
6470 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6471 "ConditionalTracepoints", "ConditionalBreakpoints",
6472 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6473 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6474 "EnableDisableTracepoints", and "tracenz".
6475 (remote_query_supported): Use packet_support.
6476 (remote_open_1): Adjust.
6477 (extended_remote_attach_1): Use packet_support. Switch on the
6478 result of packet_ok instead of checking whether the packet ended
6480 (remote_vcont_resume): Use packet_support.
6481 (remote_resume, remote_stop_ns, fetch_register_using_p)
6482 (remote_prepare_to_store, store_register_using_P)
6483 (check_binary_download, remote_write_bytes): Use packet_support.
6484 (remote_vkill): Use packet_support. Switch on the result of
6485 packet_ok instead of checking whether the packet ended up
6487 (extended_remote_supports_disable_randomization): Use
6489 (extended_remote_run): Switch on the result of packet_ok instead
6490 of checking whether the packet ended up disabled.
6491 (remote_insert_breakpoint, remote_remove_breakpoint)
6492 (remote_insert_watchpoint, remote_remove_watchpoint)
6493 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6495 (remote_search_memory): Use packet_config_support.
6496 (remote_get_thread_local_address, remote_get_tib_address)
6497 (remote_hostio_send_command, remote_can_execute_reverse): Use
6499 (remote_supports_cond_tracepoints)
6500 (remote_supports_cond_breakpoints)
6501 (remote_supports_fast_tracepoints)
6502 (remote_supports_static_tracepoints)
6503 (remote_supports_install_in_trace)
6504 (remote_supports_enable_disable_tracepoint)
6505 (remote_supports_string_tracing)
6506 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6507 the packet config says the feature is enabled or disabled.
6508 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6509 (remote_get_trace_status): Use packet_support.
6510 (remote_set_disconnected_tracing): Adjust to check whether the
6511 feature is enabled with packet_support.
6512 (remote_set_trace_buffer_size, remote_use_agent)
6513 (remote_can_use_agent, remote_supports_btrace): Use
6515 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6516 Use packet_config_support.
6517 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6518 the packet config says the feature is enabled or disabled.
6519 (set_range_stepping): Use packet_support.
6521 2014-04-25 Tom Tromey <tromey@redhat.com>
6523 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6526 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6528 * NEWS: Mention support for C99 variable length arrays.
6530 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6532 * ada-lang.c (standard_exc): Expand introductory comment.
6534 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6535 Walfred Tedeschi <walfred.tedeschi@intel.com>
6537 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6539 (amd64_linux_read_description): Add code to handle AVX512 xstate
6540 mask and return respective tdesc.
6541 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6542 and features/i386/x32-avx512-linux.c.
6543 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6544 (amd64_linux_core_read_description): Add code to handle AVX512
6545 xstate mask and return respective tdesc.
6546 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6547 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6549 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6550 (tdesc_amd64_avx512_linux): New prototype.
6551 (tdesc_x32_avx512_linux): Likewise.
6552 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6553 features/i386/x32-avx512.c.
6554 (amd64_ymm_avx512_names): New register names for pseudo
6556 (amd64_ymmh_avx512_names): New register names for raw registers
6558 (amd64_k_names): New register names for K registers.
6559 (amd64_zmmh_names): New register names for ZMM raw registers.
6560 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6561 (amd64_xmm_avx512_names): New register names for XMM16-31
6563 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6565 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6566 if feature is present.
6567 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6568 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6569 (AMD64_NUM_REGS): Adjust to new number of registers.
6570 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6571 registers supplied via XSTATE by AVX512 registers.
6572 (i386_linux_read_description): Add case for AVX512.
6573 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6574 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6575 (i386_linux_core_read_description): Add case for AVX512.
6576 (i386_linux_init_abi): Install supported register note section
6578 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6580 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6581 registers to be number of zmm7h + 1.
6582 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6583 * i386-tdep.c: Include features/i386/i386-avx512.c.
6584 (i386_zmm_names): Add ZMM pseudo register names array.
6585 (i386_zmmh_names): Add ZMM raw register names array.
6586 (i386_k_names): Add K raw register names array.
6587 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6588 registers. AVX512 has 16 more ZMM registers than there are YMM
6590 (i386_zmmh_regnum_p): Add function to look up register number of
6592 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6593 (i386_k_regnum_p): Likewise for K raw registers.
6594 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6595 registers added by AVX512.
6596 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6597 registers added by AVX512.
6598 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6600 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6601 (i386_pseudo_register_name): Add ZMM pseudo registers.
6602 (i386_zmm_type): Construct and return vector registers type for ZMM
6604 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6605 ZMM0-31 pseudo registers and K registers.
6606 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6607 and YMM16-31 registers from register cache.
6608 (i386_pseudo_register_write): Add code to write K, ZMM and
6610 (i386_register_reggroup_p): Add code to include/exclude AVX512
6611 registers in/from respective register groups.
6612 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6613 registers if feature is present in xcr0.
6614 (i386_gdbarch_init): Add code to initialize AVX512 feature
6615 variables in tdep structure, wire in pseudo registers and call
6616 initialize_tdesc_i386_avx512.
6617 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6619 (i386_regnum): Add AVX512 registers.
6620 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6621 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6622 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6623 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6625 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6626 (i386_ymm_avx512_regnum_p): Likewise.
6627 (i386_k_regnum_p): Likewise.
6628 (i386_zmm_regnum_p): Likewise.
6629 (i386_zmmh_regnum_p): Likewise.
6630 * i387-tdep.c : Update year in copyright notice.
6631 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6633 (XSAVE_YMM_AVX512_ADDR): New macro.
6634 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6636 (XSAVE_XMM_AVX512_ADDR): New macro.
6637 (xsave_avx512_k_offset): New table for K register offsets in
6639 (XSAVE_AVX512_K_ADDR): New macro.
6640 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6642 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6643 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6645 (i387_collect_xsave): Add code to collect AVX512 registers from
6647 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6648 of XMM16-31 registers.
6649 (I387_NUM_K_REGS): New define for number of K registers.
6650 (I387_K0_REGNUM): New define for K0 register number.
6651 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6652 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6653 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6655 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6656 (I387_XMM16_REGNUM): New define for XMM16 register number.
6657 (I387_YMM0_REGNUM): New define for YMM0 register number.
6658 (I387_KEND_REGNUM): New define for last K register number.
6659 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6660 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6662 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6664 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6666 * features/Makefile: Add AVX512 related files.
6667 * features/i386/32bit-avx512.xml: New file.
6668 * features/i386/64bit-avx512.xml: Likewise.
6669 * features/i386/amd64-avx512-linux.c: Likewise.
6670 * features/i386/amd64-avx512-linux.xml: Likewise.
6671 * features/i386/amd64-avx512.c: Likewise.
6672 * features/i386/amd64-avx512.xml: Likewise.
6673 * features/i386/i386-avx512-linux.c: Likewise.
6674 * features/i386/i386-avx512-linux.xml: Likewise.
6675 * features/i386/i386-avx512.c: Likewise.
6676 * features/i386/i386-avx512.xml: Likewise.
6677 * features/i386/x32-avx512-linux.c: Likewise.
6678 * features/i386/x32-avx512-linux.xml: Likewise.
6679 * features/i386/x32-avx512.c: Likewise.
6680 * features/i386/x32-avx512.xml: Likewise.
6681 * regformats/i386/amd64-avx512-linux.dat: New file.
6682 * regformats/i386/amd64-avx512.dat: Likewise.
6683 * regformats/i386/i386-avx512-linux.dat: Likewise.
6684 * regformats/i386/i386-avx512.dat: Likewise.
6685 * regformats/i386/x32-avx512-linux.dat: Likewise.
6686 * regformats/i386/x32-avx512.dat: Likewise.
6687 * NEWS: Add note about new support for AVX512.
6690 2014-04-23 Pedro Alves <palves@redhat.com>
6692 * breakpoint.c (insert_bp_location): Tolerate errors if the
6693 breakpoint is set in a user-loaded objfile.
6694 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6695 location is marked shlib_disabled. If the breakpoint is set in a
6696 user-loaded objfile is a GDB-side memory breakpoint, validate it
6697 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6698 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6700 * mem-break.c (memory_validate_breakpoint): New function.
6701 * objfiles.c (userloaded_objfile_contains_address_p): New
6703 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6704 * target.h (memory_validate_breakpoint): New declaration.
6706 2014-04-23 Pedro Alves <palves@redhat.com>
6708 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6709 the breakpoint is set in a shared library, only suppress
6710 errors for software breakpoints, not hardware breakpoints.
6712 2014-04-22 Pedro Alves <palves@redhat.com>
6714 * infrun.c (schedlock_applies): New function, factored out from
6715 find_thread_needs_step_over.
6716 (find_thread_needs_step_over): Use it.
6717 (switch_back_to_stepped_thread): Always clear trap_expected if the
6718 step over is finished. Return early if scheduler locking applies.
6719 Look for the stepping thread and a potential step-over thread with
6721 (currently_stepping_or_nexting_callback): Delete.
6723 2014-04-22 Nick Clifton <nickc@redhat.com>
6725 * NEWS: Mention that ARM sim now supports tracing.
6727 2014-04-22 Yao Qi <yao@codesourcery.com>
6729 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6731 * tracefile.c (tracefile_fetch_registers): ... it. New
6733 * tracefile.h (tracefile_fetch_registers): Declare.
6734 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6735 tracefile_fetch_registers.
6737 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6740 * windows-nat.c (thread_rec): Don't display a warning when
6741 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6742 fails for any reason, set th->suspended to -1, so that we don't
6743 try to resume such a thread. Also, don't return NULL in these
6744 cases, to avoid completely ruin the session due to "PC register is
6745 not available" error.
6746 (do_windows_fetch_inferior_registers): Check errors in
6747 GetThreadContext call.
6748 (windows_continue): Accept an additional argument KILLED; if not
6749 zero, ignore errors in the SetThreadContext call, since the
6750 inferior was killed and is shutting down.
6751 (windows_resume, get_windows_debug_event)
6752 (windows_create_inferior, windows_mourn_inferior)
6753 (windows_kill_inferior): All callers of windows_continue changed
6754 to adjust to its new calling sequence.
6756 2014-04-19 Yao Qi <yao@codesourcery.com>
6758 * ctf.c (ctf_open): Call post_create_inferior.
6760 2014-04-19 Yao Qi <yao@codesourcery.com>
6762 * ctf.c (handle_id): New static variable.
6763 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6764 value. Get the declaration of event "register" and get length
6765 of field "contents".
6767 2014-04-19 Yao Qi <yao@codesourcery.com>
6769 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6771 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6773 * valops.c (oload_method_static): Remove unnecessary argument
6774 METHOD. Update all callers.
6776 2014-04-18 Pedro alves <palves@redhat.com>
6777 Tom Tromey <tromey@redhat.com>
6780 * frame.c (get_prev_frame_1): Rename to ...
6781 (get_prev_frame_always): ... this, and make extern. Adjust.
6782 (skip_artificial_frames): Use get_prev_frame_always.
6783 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6784 (get_frame_unwind_stop_reason): Adjust to rename.
6785 * frame.h (get_prev_frame_always): Declare.
6786 * inline-frame.c: Include frame.h.
6787 (inline_frame_this_id): Use get_prev_frame_always.
6789 2014-04-18 Tristan Gingold <gingold@adacore.com>
6791 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6792 code by using bfd_mach_o_get_base_address.
6794 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6796 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6797 (spu_ax_pseudo_register_collect): New function.
6798 (spu_ax_pseudo_register_push_stack): Likewise.
6799 (spu_dwarf_reg_to_regnum): Likewise.
6800 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6802 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6804 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6805 Replace FRAME argument with FRAME_ID.
6806 * gdbarch.c, gdbarch.h: Regenerate.
6807 * findvar.c (default_value_from_register): Add GDBARCH argument;
6808 replace FRAME by FRAME_ID. No longer call get_frame_id.
6809 (value_from_register): Update call to gdbarch_value_from_register.
6810 * value.h (default_value_from_register): Update prototype.
6811 * s390-linux-tdep.c (s390_value_from_register): Update interface
6812 and call to default_value_from_register.
6813 * spu-tdep.c (spu_value_from_register): Likewise.
6815 * findvar.c (address_from_register): Remove TYPE argument.
6816 Do not call value_from_register; use gdbarch_value_from_register
6817 with null_frame_id instead.
6818 * value.h (address_from_register): Update prototype.
6819 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6820 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6821 address_from_register interface change.
6823 2014-04-17 Yao Qi <yao@codesourcery.com>
6825 * gdbtypes.h: Update comments to link to types and macros'
6828 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6830 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6832 2014-04-16 Keith Seitz <keiths@redhat.com>
6835 * dwarf2read.c (skip_one_die): Check that all relative-offset
6836 sibling DIEs fall within range of the current reader's buffer.
6837 (read_partial_die): Likewise.
6839 2014-04-16 Keith Seitz <keiths@redhat.com>
6842 * cp-namespace.c (lookup_symbol_file): If the type name of
6843 `this' is NULL, return immediately.
6845 2014-04-14 Keith Seitz <keiths@redhat.com>
6848 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6849 from symbol_matches_domain in symtab.c. All local callers
6850 of symbol_matches_domain updated.
6851 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6852 search STRUCT_DOMAIN.
6853 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6854 independently. standard_lookup will do that automatically.
6855 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6856 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6857 (cp_lookup_symbol_in_namespace): Likewise.
6858 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6859 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6860 may return a STRUCT_DOMAIN match.
6861 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6862 * cp-support.c: Include language.h.
6863 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6865 * psymtab.c (match_partial_symbol): Compare the requested
6866 domain with the symbol's domain directly.
6867 (lookup_partial_symbol): Likewise.
6868 * symtab.c (lookup_symbol_in_language): Explain when/why
6869 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6870 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6871 appropriate languages.
6872 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6873 and moved to ada-lang.c
6874 (lookup_block_symbol): Explain that this function only returns
6875 symbol matching the requested DOMAIN.
6876 Compare the requested domain with the symbol's domain directly.
6877 (iterate_over_symbols): Compare the requested domain with the
6878 symbol's domain directly.
6879 * symtab.h (symbol_matches_domain): Remove.
6881 2014-04-14 Tom Tromey <tromey@redhat.com>
6884 * c-exp.y (type_aggregate_p): New function.
6885 (qualified_name, classify_inner_name): Use it.
6886 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6887 and TYPE_TARGET_TYPE of an enum type.
6888 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6890 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6891 handle TYPE_DECLARED_CLASS.
6892 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6894 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6895 * valops.c (enum_constant_from_type): New function.
6896 (value_aggregate_elt): Use it.
6897 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6900 2014-04-14 Tom Tromey <tromey@redhat.com>
6902 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6903 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6905 * value.h (value_aggregate_elt): Update.
6907 2014-04-14 Tom Tromey <tromey@redhat.com>
6909 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6911 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6913 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6914 (evaluate_subexp_standard): Pass noside argument.
6915 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6916 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6917 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6918 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6919 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6921 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6923 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6924 points to a constant blob.
6926 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6928 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6929 property and store it as the high bound and flag the range accordingly.
6930 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6931 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6932 * gdbtypes.h (enum range_flags): New enum.
6933 (struct range_bounds): Add flags member.
6935 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6937 * c-typeprint.c (c_type_print_varspec_suffix): Added
6938 check for not yet resolved high bound. If unresolved, print
6939 "variable length" string to the console instead of random
6942 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6944 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6946 (ada_template_to_fixed_record_type_1): Likewise.
6947 (ada_to_fixed_type_1): Likewise.
6948 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6949 (cp_print_value): Likewise.
6950 * d-valprint.c (dynamic_array_type): Likewise.
6951 * findvar.c (address_of_variable): Likewise.
6952 * jv-valprint.c (java_value_print): Likewise.
6953 * valops.c (value_ind): Likewise.
6954 * value.c (coerce_ref): Likewise.
6956 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6958 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6959 value and retrieve the dynamic type size.
6961 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6963 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6964 passed to sizeof is dynamic evaluate the argument to compute the length.
6966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6967 Joel Brobecker <brobecker@adacore.com>
6969 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6970 (dwarf2_evaluate_property): New function.
6971 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6972 * dwarf2read.c (attr_to_dynamic_prop): New function.
6973 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6975 * gdbtypes.c: Include dwarf2loc.h.
6976 (is_dynamic_type): New function.
6977 (resolve_dynamic_type): New function.
6978 (resolve_dynamic_bounds): New function.
6979 (get_type_length): New function.
6980 (check_typedef): Use get_type_length to compute type length.
6981 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6982 (TYPE_LOW_BOUND_KIND): New macro.
6983 (is_dynamic_type): New function prototype.
6984 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6985 to resolve dynamic properties of the type. Update comment.
6986 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6988 2014-04-14 Richard Henderson <rth@redhat.com>
6990 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6992 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6993 Doug Evans <xdje42@gmail.com>
6995 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6996 dereference TYPE_CODE_REF values.
6998 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7000 Revert the following changes due to regressions:
7002 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7003 (dwarf2_evaluate_property): New function.
7004 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7005 * dwarf2read.c (attr_to_dynamic_prop): New function.
7006 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7008 * gdbtypes.c: Include dwarf2loc.h.
7009 (is_dynamic_type): New function.
7010 (resolve_dynamic_type): New function.
7011 (resolve_dynamic_bounds): New function.
7012 (get_type_length): New function.
7013 (check_typedef): Use get_type_length to compute type length.
7014 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7015 (TYPE_LOW_BOUND_KIND): New macro.
7016 (is_dynamic_type): New function prototype.
7017 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7018 to resolve dynamic properties of the type. Update comment.
7019 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7021 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7022 passed to sizeof is dynamic evaluate the argument to compute the length.
7024 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7025 value and retrieve the dynamic type size.
7027 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7028 (ada_template_to_fixed_record_type_1): Likewise.
7029 (ada_to_fixed_type_1): Likewise.
7030 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7031 (cp_print_value): Likewise.
7032 * d-valprint.c (dynamic_array_type): Likewise.
7033 * eval.c (evaluate_subexp_with_coercion): Likewise.
7034 * findvar.c (address_of_variable): Likewise.
7035 * jv-valprint.c (java_value_print): Likewise.
7036 * valops.c (value_ind): Likewise.
7037 * value.c (coerce_ref): Likewise.
7039 * c-typeprint.c (c_type_print_varspec_suffix): Added
7040 check for not yet resolved high bound. If unresolved, print
7041 "variable length" string to the console instead of random
7044 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7045 property and store it as the high bound and flag the range accordingly.
7046 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7047 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7048 * gdbtypes.h (enum range_flags): New enum.
7049 (struct range_bounds): Add flags member.
7051 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7052 points to a constant blob.
7054 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7055 (evaluate_subexp_standard): Pass noside argument.
7056 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7057 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7058 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7059 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7060 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7062 2014-04-11 Keith Seitz <keiths@redhat.com>
7065 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7066 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7069 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7071 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7072 (evaluate_subexp_standard): Pass noside argument.
7073 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7074 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7075 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7076 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7077 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7079 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7081 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7082 points to a constant blob.
7084 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7086 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7087 property and store it as the high bound and flag the range accordingly.
7088 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7089 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7090 * gdbtypes.h (enum range_flags): New enum.
7091 (struct range_bounds): Add flags member.
7093 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7095 * c-typeprint.c (c_type_print_varspec_suffix): Added
7096 check for not yet resolved high bound. If unresolved, print
7097 "variable length" string to the console instead of random
7100 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7102 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7103 (ada_template_to_fixed_record_type_1): Likewise.
7104 (ada_to_fixed_type_1): Likewise.
7105 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7106 (cp_print_value): Likewise.
7107 * d-valprint.c (dynamic_array_type): Likewise.
7108 * eval.c (evaluate_subexp_with_coercion): Likewise.
7109 * findvar.c (address_of_variable): Likewise.
7110 * jv-valprint.c (java_value_print): Likewise.
7111 * valops.c (value_ind): Likewise.
7112 * value.c (coerce_ref): Likewise.
7114 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7116 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7117 value and retrieve the dynamic type size.
7119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7121 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7122 passed to sizeof is dynamic evaluate the argument to compute the length.
7124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7126 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7127 (dwarf2_evaluate_property): New function.
7128 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7129 * dwarf2read.c (attr_to_dynamic_prop): New function.
7130 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7132 * gdbtypes.c: Include dwarf2loc.h.
7133 (is_dynamic_type): New function.
7134 (resolve_dynamic_type): New function.
7135 (resolve_dynamic_bounds): New function.
7136 (get_type_length): New function.
7137 (check_typedef): Use get_type_length to compute type length.
7138 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7139 (TYPE_LOW_BOUND_KIND): New macro.
7140 (is_dynamic_type): New function prototype.
7141 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7142 to resolve dynamic properties of the type. Update comment.
7143 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7145 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7147 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7148 declaring high/low bounds and change uses accordingly. Call
7149 create_range_type instead of create_static_range_type.
7150 * gdbtypes.c (create_range_type): New function.
7151 (create_range_type): Convert bounds into struct bound_prop and pass
7152 them to create_range_type.
7153 * gdbtypes.h (struct bound_prop): New struct.
7154 (create_range_type): New function prototype.
7155 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7156 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7157 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7159 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7161 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7163 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7164 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7165 * ada-lang.c: All uses of create_range_type updated.
7166 * coffread.c: All uses of create_range_type updated.
7167 * dwarf2read.c: All uses of create_range_type updated.
7168 * f-exp.y: All uses of create_range_type updated.
7169 * m2-valprint.c: All uses of create_range_type updated.
7170 * mdebugread.c: All uses of create_range_type updated.
7171 * stabsread.c: All uses of create_range_type updated.
7172 * valops.c: All uses of create_range_type updated.
7173 * valprint.c: All uses of create_range_type updated.
7175 2014-04-10 Pedro Alves <palves@redhat.com>
7177 * breakpoint.c (single_step_breakpoints)
7178 (single_step_gdbarch): Move up in the file.
7179 (one_breakpoint_xfer_memory): New function, factored out from ...
7180 (breakpoint_xfer_memory): ... here. Also process single-step
7183 2014-04-09 Tristan Gingold <gingold@adacore.com>
7185 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7187 (darwin_decode_exception_message): Free port only after use.
7189 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7191 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7192 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7193 when setting the size of call_length.
7195 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7197 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7198 dereference TYPE_CODE_REF values.
7200 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7202 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7203 end of warning message.
7205 2014-04-03 Doug Evans <dje@google.com>
7207 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7208 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7210 2014-04-02 Alan Modra <amodra@gmail.com>
7212 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7213 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7214 (struct symbol_file_add_from_memory_args): Add size field.
7215 (find_vdso_size): New function.
7216 (add_vsyscall_page): Attempt to find vdso size.
7218 2014-04-01 Doug Evans <dje@google.com>
7220 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7222 2014-04-01 Tristan Gingold <gingold@adacore.com>
7224 * darwin-nat.c (darwin_encode_reply): Add prototype.
7225 (darwin_decode_exception_message): Reply to unknown inferiors.
7226 (darwin_decode_message): Handle message by id. Ignore message
7227 to unknown inferior.
7228 (darwin_wait): Discard unknown messages, add debug trace.
7230 2014-03-31 Doug Evans <dje@google.com>
7232 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7235 2014-03-31 Doug Evans <dje@google.com>
7237 New option "set print symbol-loading".
7239 * solib.c (solib_read_symbols): Only print symbol loading messages
7241 (solib_add): If symbol loading is in "brief" mode, notify user
7242 symbols are being loaded.
7243 (reload_shared_libraries_1): Ditto.
7244 * symfile.c (print_symbol_loading_off): New static global.
7245 (print_symbol_loading_brief): New static global.
7246 (print_symbol_loading_full): New static global.
7247 (print_symbol_loading_enums): New static global.
7248 (print_symbol_loading): New static global.
7249 (print_symbol_loading_p): New function.
7250 (symbol_file_add_with_addrs): Only print symbol loading messages
7252 (_initialize_symfile): Register "print symbol-loading" set/show
7254 * symfile.h (print_symbol_loading_p): Declare.
7256 2014-03-30 Doug Evans <xdje42@gmail.com>
7258 * infrun.c (set_last_target_status): New function.
7259 (handle_inferior_event): Call it.
7261 2014-03-30 Doug Evans <xdje42@gmail.com>
7263 * inferior.h (enum stop_kind): Improve comment.
7265 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7267 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7268 a reference, strip the reference layer before calling
7269 the lang_ops value_has_mutated callback.
7271 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7273 Remove some globals from our parser.
7274 * language.c (unk_lang_parser): Add "struct parser_state"
7276 * language.h (struct language_defn) <la_parser>: Likewise.
7277 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7278 (initialize_expout): Add "struct parser_state" argument.
7279 Rewrite function to use the parser state.
7280 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7281 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7282 write_exp_elt_longcst, write_exp_elt_dblcst,
7283 write_exp_elt_decfloatcst, write_exp_elt_type,
7284 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7285 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7286 write_dollar_variable): Likewise.
7287 (parse_exp_in_context_1): Use parser state.
7288 (insert_type_address_space): Add "struct parser_state" argument.
7290 (increase_expout_size): New function.
7291 * parser-defs.h: Forward declare "struct language_defn" and
7292 "struct parser_state".
7293 (expout, expout_size, expout_ptr): Remove extern declarations.
7294 (parse_gdbarch, parse_language): Rewrite macro declarations to
7295 accept the parser state.
7296 (struct parser_state): New struct.
7297 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7298 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7299 write_exp_elt_decfloatcst, write_exp_elt_type,
7300 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7301 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7302 write_exp_msymbol, write_dollar_variable,
7303 mark_struct_expression, insert_type_address_space): Add "struct
7304 parser_state" argument.
7305 (increase_expout_size): New function.
7306 * utils.c (do_clear_parser_state): New function.
7307 (make_cleanup_clear_parser_state): Likewise.
7308 * utils.h (make_cleanup_clear_parser_state): New function
7310 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7311 Update calls to write_exp* in order to pass the parser state.
7312 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7313 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7314 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7315 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7316 * stap-probe.c (stap_parse_register_operand): Likewise.
7317 (stap_parse_single_operand): Likewise.
7318 (stap_parse_argument_1): Likewise.
7319 (stap_parse_argument): Use parser state.
7320 * stap-probe.h: Include "parser-defs.h".
7321 (struct stap_parse_info) <pstate>: New field.
7322 * c-exp.y (parse_type): Rewrite to use parser state.
7323 (yyparse): Redefine to c_parse_internal.
7324 (pstate): New global variable.
7325 (parse_number): Add "struct parser_state" argument.
7326 (write_destructor_name): Likewise.
7327 (type_exp): Update calls to write_exp* and similars in order to
7329 (exp1, exp, variable, qualified_name, space_identifier,
7330 typename, typebase): Likewise.
7331 (write_destructor_name, parse_number, lex_one_token,
7332 classify_name, classify_inner_name, c_parse): Add "struct
7333 parser_state" argument. Update function to use parser state.
7334 * c-lang.h: Forward declare "struct parser_state".
7335 (c_parse): Add "struct parser_state" argument.
7336 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7337 (yyparse): Redefine macro to ada_parse_internal.
7338 (pstate): New variable.
7339 (write_int, write_object_renaming, write_var_or_type,
7340 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7341 type_int, type_long, type_long_long, type_float, type_double,
7342 type_long_double, type_char, type_boolean, type_system_address):
7343 Add "struct parser_state" argument.
7344 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7345 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7346 var_or_type, aggregate, aggregate_component_list,
7347 positional_list, others, component_group,
7348 component_associations): Update calls to write_exp* and similar
7349 functions in order to use parser state.
7350 (ada_parse, write_var_from_sym, write_int,
7351 write_exp_op_with_string, write_object_renaming,
7352 find_primitive_type, write_selectors, write_ambiguous_var,
7353 write_var_or_type, write_name_assoc, type_int, type_long,
7354 type_long_long, type_float, type_double, type_long_double,
7355 type_char, type_boolean, type_system_address): Add "struct
7356 parser_state" argument. Adjust function to use parser state.
7357 * ada-lang.c (parse): Likewise.
7358 * ada-lang.h: Forward declare "struct parser_state".
7359 (ada_parse): Add "struct parser_state" argument.
7360 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7361 calls to both functions.
7362 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7364 (yyparse): Redefine macro to f_parse_internal.
7365 (pstate): New variable.
7366 (parse_number): Add "struct parser_state" argument.
7367 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7368 and similars in order to use parser state.
7369 (parse_number): Adjust code to use parser state.
7371 (f_parse): New function.
7372 * f-lang.h: Forward declare "struct parser_state".
7373 (f_parse): Add "struct parser_state" argument.
7374 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7376 (yyparse): Redefine macro for java_parse_internal.
7377 (pstate): New variable.
7378 (push_expression_name, push_expression_name, insert_exp): Add
7379 "struct parser_state" argument.
7380 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7381 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7382 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7383 PostIncrementExpression, PostDecrementExpression,
7384 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7385 UnaryExpressionNotPlusMinus, CastExpression,
7386 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7387 RelationalExpression, EqualityExpression, AndExpression,
7388 ExclusiveOrExpression, InclusiveOrExpression,
7389 ConditionalAndExpression, ConditionalOrExpression,
7390 ConditionalExpression, Assignment, LeftHandSide): Update
7391 calls to write_exp* and similars in order to use parser state.
7392 (parse_number): Ajust code to use parser state.
7394 (java_parse): New function.
7395 (push_variable): Add "struct parser_state" argument. Adjust
7396 code to user parser state.
7397 (push_fieldnames, push_qualified_expression_name,
7398 push_expression_name, insert_exp): Likewise.
7399 * jv-lang.h: Forward declare "struct parser_state".
7400 (java_parse): Add "struct parser_state" argument.
7401 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7403 (yyparse): Redefine macro to m2_parse_internal.
7404 (pstate): New variable.
7405 (type_exp, exp, fblock, variable, type): Update calls to
7406 write_exp* and similars to use parser state.
7408 (m2_parse): New function.
7409 * m2-lang.h: Forward declare "struct parser_state".
7410 (m2_parse): Add "struct parser_state" argument.
7411 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7412 * objc-lang.h: Forward declare "struct parser_state".
7413 (end_msglist): Add "struct parser_state" argument.
7414 * p-exp.y (parse_type): Rewrite macro to use parser state.
7415 (yyparse): Redefine macro to pascal_parse_internal.
7416 (pstate): New variable.
7417 (parse_number): Add "struct parser_state" argument.
7418 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7419 write_exp* and similars in order to use parser state.
7420 (parse_number, yylex): Adjust code to use parser state.
7421 (pascal_parse): New function.
7422 * p-lang.h: Forward declare "struct parser_state".
7423 (pascal_parse): Add "struct parser_state" argument.
7424 * go-exp.y (parse_type): Rewrite macro to use parser state.
7425 (yyparse): Redefine macro to go_parse_internal.
7426 (pstate): New variable.
7427 (parse_number): Add "struct parser_state" argument.
7428 (type_exp, exp1, exp, variable, type): Update calls to
7429 write_exp* and similars in order to use parser state.
7430 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7431 to use parser state.
7432 (go_parse): Likewise.
7433 * go-lang.h: Forward declare "struct parser_state".
7434 (go_parse): Add "struct parser_state" argument.
7436 2014-03-27 Doug Evans <dje@google.com>
7438 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7440 2014-03-27 Doug Evans <dje@google.com>
7442 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7443 Remove argument abbrev_section. All callers updated.
7445 2014-03-27 Doug Evans <dje@google.com>
7447 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7448 addr_base, ranges_base.
7450 2014-03-26 Keith Seitz <keiths@redhat.com>
7452 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7453 types, not VAR_DOMAIN.
7455 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7457 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7459 * features/nios2-linux.c: Regenerated.
7460 * features/nios2.c: Regenerated.
7462 2014-03-25 Pedro Alves <palves@redhat.com>
7464 * cli/cli-script.c (script_from_file): Force the interpreter to
7467 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7469 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7470 small stack allocation.
7472 2014-03-24 Tristan Gingold <gingold@adacore.com>
7474 * darwin-nat.c (exc_server): Remove unused prototype.
7475 (darwin_dump_message): Correctly display data on x86_64.
7476 (darwin_encode_reply): Fix style.
7477 Add comments and fix indentation.
7479 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7481 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7483 2014-03-22 Doug Evans <xdje42@gmail.com>
7485 * infcmd.c: Whitespace fixes.
7486 (interrupt_command): Merge two function comments into one.
7488 2014-03-22 Doug Evans <xdje42@gmail.com>
7490 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7493 2014-03-22 Yao Qi <yao@codesourcery.com>
7495 * remote.c (target_read_live_memory): Remove.
7496 (memory_xfer_live_readonly_partial): Rename it to
7497 remote_xfer_live_readonly_partial. Remove argument 'object'.
7498 All callers updated. Call remote_read_bytes_1
7499 instead of target_read_live_memory.
7500 * tracepoint.c (set_traceframe_number): Remove.
7501 (make_cleanup_restore_traceframe_number): Likewise .
7502 * tracepoint.h (set_traceframe_number): Remove declaration.
7503 (make_cleanup_restore_traceframe_number): Likewise.
7505 2014-03-22 Yao Qi <yao@codesourcery.com>
7507 * remote.c (remote_read_bytes): Move code on reading from the
7509 (remote_read_bytes_1): ... here. New function.
7511 2014-03-22 Yao Qi <yao@codesourcery.com>
7513 * ctf.c (ctf_xfer_partial): Check the return value of
7514 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7515 return TARGET_XFER_UNAVAILABLE.
7516 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7517 * target.c (target_read_live_memory): Move it to remote.c.
7518 (memory_xfer_live_readonly_partial): Likewise.
7519 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7520 * remote.c (target_read_live_memory): Moved from target.c.
7521 (memory_xfer_live_readonly_partial): Likewise.
7522 (remote_read_bytes): Factored out from
7523 memory_xfer_partial_1.
7525 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7527 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7530 2014-03-21 Pedro Alves <palves@redhat.com>
7532 * infrun.c (normal_stop): Extend comment.
7534 2014-03-21 Hui Zhu <hui@codesourcery.com>
7535 Pedro Alves <palves@redhat.com>
7537 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7539 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7540 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7541 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7543 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7545 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7546 `z' formatted output modifier.
7548 2014-03-20 Tom Tromey <tromey@redhat.com>
7549 Sergio Durigan Junior <sergiodj@redhat.com>
7551 * probe.c (parse_probes): Turn assert into an ordinary error.
7552 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7553 exceptions when parsing probes. Rearrange the code for clarity.
7555 2014-03-20 Tom Tromey <tromey@redhat.com>
7558 * top.c (execute_command): Only dispatch events if the command
7561 2014-03-20 Tom Tromey <tromey@redhat.com>
7564 * infcall.c: Include event-top.h.
7565 (run_inferior_call): Call async_disable_stdin if needed.
7567 2014-03-20 Pedro Alves <palves@redhat.com>
7569 * infrun.c (prepare_to_proceed): Delete.
7570 (thread_still_needs_step_over): New function.
7571 (find_thread_needs_step_over): New function.
7572 (proceed): If the current thread needs a step-over, set its
7573 steping_over_breakpoint flag. Adjust to use
7574 find_thread_needs_step_over instead of prepare_to_proceed.
7575 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7576 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7578 (switch_back_to_stepped_thread): Step over breakpoints of all
7579 threads not the stepping thread, before switching back to the
7582 2014-03-20 Pedro Alves <palves@redhat.com>
7584 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7586 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7587 * infrun.c (saved_singlestep_ptid)
7588 (stepping_past_singlestep_breakpoint): Delete.
7589 (resume): Remove stepping_past_singlestep_breakpoint handling.
7590 (proceed): Store the prev_pc of the stepping thread too.
7591 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7593 (enum infwait_states): Delete infwait_thread_hop_state.
7594 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7596 (handle_inferior_event): Adjust.
7597 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7598 handling and the thread-hop code. Before removing single-step
7599 breakpoints, check whether the thread hit a single-step breakpoint
7600 of another thread. If it did, the trap is not a random signal.
7601 (switch_back_to_stepped_thread): If the event thread hit a
7602 single-step breakpoint, unblock it before switching to the
7603 stepping thread. Handle the case of the stepped thread having
7605 (keep_going): Handle the case of the current thread moving past a
7606 single-step breakpoint.
7608 2014-03-20 Pedro Alves <palves@redhat.com>
7611 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7612 are being stepped over.
7613 (breakpoint_address_match): Make extern.
7614 * breakpoint.h (breakpoint_address_match): New declaration.
7615 * inferior.h (stepping_past_instruction_at): New declaration.
7616 * infrun.c (struct step_over_info): New type.
7617 (step_over_info): New global.
7618 (set_step_over_info, clear_step_over_info)
7619 (stepping_past_instruction_at): New functions.
7620 (handle_inferior_event): Clear the step-over info when
7621 trap_expected is cleared.
7622 (resume): Remove now stale comment.
7623 (clear_proceed_status): Clear step-over info.
7624 (proceed): Adjust step-over handling to set or clear the step-over
7625 info instead of removing all breakpoints.
7626 (handle_signal_stop): When setting up a thread-hop, don't remove
7628 (stop_stepping): Clear step-over info.
7629 (keep_going): Adjust step-over handling to set or clear step-over
7630 info and then always inserting breakpoints, instead of removing
7631 all breakpoints when stepping over one.
7633 2014-03-20 Pedro Alves <palves@redhat.com>
7635 * infrun.c (previous_inferior_ptid): Adjust comment.
7636 (deferred_step_ptid): Delete.
7637 (infrun_thread_ptid_changed, prepare_to_proceed)
7638 (init_wait_for_inferior): Adjust.
7639 (handle_signal_stop): Delete deferred_step_ptid handling.
7641 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7644 * defs.h (sync_quit_force_run): New declaration.
7645 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7646 * event-top.c (async_sigterm_handler): New declaration.
7647 (async_sigterm_token): New variable.
7648 (async_init_signals): Create also async_sigterm_token.
7649 (async_sigterm_handler): New function.
7650 (sync_quit_force_run): New variable.
7651 (handle_sigterm): Replace quit_force call by other calls.
7652 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7654 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7656 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7657 offset into SPE pseudo registers.
7659 2014-03-18 Pedro Alves <palves@redhat.com>
7662 * inferior.h (print_stop_event): Declare.
7663 * infrun.c (print_stop_event): New, factored out from ...
7664 (normal_stop): ... this.
7665 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7666 of bpstat_print/print_stack_frame.
7668 2014-03-17 Tom Tromey <tromey@redhat.com>
7670 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7672 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7674 * ada-lang.c (decode_constrained_packed_array): Perform a
7675 minimal coercion for reference with coerce_ref instead of
7678 2014-03-17 Tristan Gingold <gingold@adacore.com>
7680 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7681 (darwin_solib_create_inferior_hook): Emit a warning if version
7684 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7686 * python/py-value.c (get_field_flag): Cast flag_name argument to
7687 PyObject_GetAttrString to support Python 2.4.
7689 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7691 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7692 (Global Maintainers): Remove Jan Kratochvil.
7694 2014-03-14 Pedro Alves <palves@redhat.com>
7696 * inferior.h (terminal_ours_for_output): Rename to ...
7697 (child_terminal_ours_for_output): ... this.
7698 (terminal_save_ours): Rename to ...
7699 (child_terminal_save_ours): ... this.
7700 (terminal_ours): Rename to ...
7701 (child_terminal_ours): ... this.
7702 (terminal_inferior): Rename to ...
7703 (child_terminal_inferior): ... this.
7704 (terminal_init_inferior): Rename to ...
7705 (child_terminal_init_inferior): ... this.
7706 (terminal_init_inferior_with_pgrp): Rename to ...
7707 (child_terminal_init_inferior_with_pgrp): ... this.
7708 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7709 (child_terminal_init_with_pgrp): ... this.
7710 (terminal_save_ours): Rename to ...
7711 (child_terminal_save_ours): ... this.
7712 (terminal_init_inferior): Rename to ...
7713 (child_terminal_init): ... this. Adjust.
7714 (terminal_inferior): Rename to ...
7715 (child_terminal_inferior): ... this.
7716 (terminal_ours_for_output): Rename to ...
7717 (child_terminal_ours_for_output): ... this. Adjust.
7718 (terminal_ours): Rename to ...
7719 (child_terminal_ours): ... this.
7720 (terminal_ours_1): Rename to ...
7721 (child_terminal_ours_1): ... this. Adjust.
7722 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7723 * windows-nat.c (do_initial_windows_stuff): Adjust.
7724 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7725 (gnu_terminal_init): ... this. Adjust.
7726 (gnu_target): Adjust.
7727 * inf-child.c (inf_child_target): Adjust.
7729 2014-03-13 Doug Evans <xdje42@gmail.com>
7732 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7735 2014-03-13 Doug Evans <xdje42@gmail.com>
7737 * value.c (record_latest_value): Call release_value_or_incref
7738 instead of release_value.
7740 2014-03-13 Pedro Alves <palves@redhat.com>
7742 * procfs.c (procfs_target): Don't override to_shortname,
7743 to_longname or to_doc.
7745 2014-03-13 Pedro Alves <palves@redhat.com>
7747 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7748 Unix in user visible strings.
7750 2014-03-12 Stan Shebs <stan@codesourcery.com>
7752 * gdbtypes.h: Annotate comments for Doxygen, add a page
7753 block comment with some general info.
7755 2014-03-12 Pedro Alves <palves@redhat.com>
7757 * infcmd.c (prepare_execution_command): New function, factored out
7758 from several execution commands.
7759 (run_command_1, continue_command, step_1, jump_command)
7760 (signal_command, until_command, advance_command, finish_command)
7761 (attach_command): Use prepare_execution_command.
7763 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7765 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7768 (struct arm_linux_thread_points): Removed.
7769 (struct arm_linux_process_info): New.
7770 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7771 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7772 (arm_linux_find_breakpoints_by_tid): Removed.
7773 (struct arch_lwp_info): New.
7774 (arm_linux_find_process_pid): New functions.
7775 (arm_linux_add_process): New functions.
7776 (arm_linux_process_info_get): New functions.
7777 (arm_linux_forget_process): New function.
7778 (arm_linux_get_debug_reg_state): New function.
7779 (struct update_registers_data): New.
7780 (update_registers_callback): New function.
7781 (arm_linux_insert_hw_breakpoint1): Updated.
7782 (arm_linux_remove_hw_breakpoint1): Updated.
7783 (arm_linux_insert_hw_breakpoint): Updated.
7784 (arm_linux_remove_hw_breakpoint): Updated.
7785 (arm_linux_insert_watchpoint): Updated.
7786 (arm_linux_remove_watchpoint): Updated.
7787 (arm_linux_new_thread): Updated.
7788 (arm_linux_prepare_to_resume): New function.
7789 (arm_linux_new_fork): New function.
7790 (_initialize_arm_linux_nat): Updated.
7792 2014-03-12 Pedro Alves <palves@redhat.com>
7794 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7796 2014-03-12 Tom Tromey <tromey@redhat.com>
7798 * inf-child.c (return_zero): New function.
7799 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7800 * aix-thread.c (aix_thread_inferior_created): New function.
7801 (aix_thread_attach): Remove.
7802 (init_aix_thread_ops): Don't set to_attach.
7803 (_initialize_aix_thread): Register inferior_created observer.
7804 * corelow.c (init_core_ops): Don't set to_attach or
7806 * exec.c (init_exec_ops): Don't set to_attach or
7808 * infcmd.c (run_command_1): Use find_run_target. Make direct
7810 (attach_command): Use find_attach_target. Make direct target
7812 * record-btrace.c (init_record_btrace_ops): Don't set
7814 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7816 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7817 set to_create_inferior.
7818 * target.c (complete_target_initialization): Add assertion.
7819 (target_create_inferior): Remove.
7820 (find_default_attach, find_default_create_inferior): Remove.
7821 (find_attach_target, find_run_target): New functions.
7822 (find_default_is_async_p, find_default_can_async_p)
7823 (target_supports_non_stop, target_attach): Remove.
7824 (init_dummy_target): Don't set to_create_inferior or
7825 to_supports_non_stop.
7826 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7827 TARGET_DEFAULT_FUNC.
7828 <to_create_inferior>: Add comment.
7829 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7830 TARGET_DEFAULT_RETURN.
7831 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7832 (find_attach_target, find_run_target): Declare.
7833 (target_create_inferior): Remove.
7834 (target_has_execution_1): Update comment.
7835 (target_supports_non_stop): Remove.
7836 * target-delegates.c: Rebuild.
7838 2014-03-12 Pedro Alves <palves@redhat.com>
7840 * inf-child.h: Update comment to not mention Unix.
7842 2014-03-12 Pedro Alves <palves@redhat.com>
7844 * inf-child.c: Update top comment to not mention Unix. Add
7845 generic comment describing how this target is meant to be used.
7846 (inf_child_post_attach, inf_child_post_startup_inferior)
7847 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7850 2014-03-12 Pedro Alves <palves@redhat.com>
7852 * nto-procfs.c: Include inf-child.h.
7853 (procfs_ops): Delete global.
7854 (procfs_can_run): Delete method.
7855 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7856 target pointer instead of referencing procfs_ops.
7857 (procfs_prepare_to_store): Delete.
7858 (init_procfs_ops): Delete function.
7859 (procfs_target): New function, based on init_procfs_ops, but
7860 inherit inf_child_target.
7861 (_initialize_procfs): Use procfs_target.
7863 2014-03-12 Pedro Alves <palves@redhat.com>
7865 * windows-nat.c: Include inf-child.h.
7866 (windows_ops): Delete global.
7867 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7869 (init_windows_ops): Delete function.
7870 (windows_target): New function, based on init_windows_ops, but
7871 inherit inf_child_target.
7872 (_initialize_windows_nat): Use windows_target. Install x86
7873 specific target methods here.
7875 2014-03-10 Doug Evans <xdje42@gmail.com>
7877 * guile/guile.c (call_initialize_gdb_module): New function.
7878 (initialize_guile): Replace call to scm_init_guile with call to
7881 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7883 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7884 in call to TYPE_CODE macro.
7886 2014-03-10 Jerome Guitton <guitton@adacore.com>
7888 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7889 Resolve tagged types to full view.
7891 2014-03-10 Hui Zhu <hui@codesourcery.com>
7893 * target.h (target_insert_breakpoint): Remove "hardware" from its
7896 2014-03-07 Doug Evans <dje@google.com>
7898 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7900 2014-03-07 Doug Evans <dje@google.com>
7902 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7903 Remove unused local comp_dir_attr. Assert exactly one of
7904 stub_comp_unit_die, stub_comp_dir is non-NULL.
7906 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7908 * target.h (complete_target_initialization, add_target):
7911 2014-03-07 Pedro Alves <palves@redhat.com>
7913 * go32-nat.c: Include inf-child.h.
7914 (go32_ops): Delete global.
7915 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7917 (go32_create_inferior): Push the passed in target pointer instead
7918 of referencing go32_ops.
7919 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7920 (go32_target): New function, based on init_go32_ops, but inherit
7922 (_initialize_go32_nat): Use go32_target. Move parts of
7925 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7927 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7928 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7929 SYMBOL_VALUE_ADDRESS.
7930 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7932 2014-03-06 Yao Qi <yao@codesourcery.com>
7934 * breakpoint.c (get_tracepoint_by_number): Remove argument
7935 optional_p. All callers updated. Adjust comments. Update
7937 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7939 2014-03-06 Yao Qi <yao@codesourcery.com>
7941 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7942 early if get_number returns zero. Use 'p' instead of 'args'.
7944 2014-03-06 Yao Qi <yao@codesourcery.com>
7946 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7949 2014-03-06 Yao Qi <yao@codesourcery.com>
7951 PR breakpoints/16508
7952 * tracepoint.c (check_trace_running): New function.
7953 (trace_find_command): Move code to check_trace_running and
7954 call check_trace_running.
7955 (trace_find_pc_command): Likewise.
7956 (trace_find_tracepoint_command): Likewise.
7957 (trace_find_line_command): Likewise.
7958 (trace_find_range_command): Likewise.
7959 * tracepoint.h (check_trace_running): Likewise.
7960 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7962 2014-03-06 Yao Qi <yao@codesourcery.com>
7964 * target.h (struct target_ops) <to_traceframe_info>: Use
7965 TARGET_DEFAULT_NORETURN (tcomplain ()).
7966 * target-delegates.c: Regenerated.
7968 2014-03-05 Pedro Alves <palves@redhat.com>
7971 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7972 void. Update comment.
7973 (dcache_xfer_memory): Delete.
7974 (dcache_read_memory_partial): New, based on the read bits of
7976 (dcache_update): Add status parameter. Use ULONGEST for len, and
7977 adjust. Discard cache lines if the reason for the update was
7979 * dcache.h (dcache_xfer_memory): Delete declaration.
7980 (dcache_read_memory_partial): New declaration.
7981 (dcache_update): Update prototype.
7982 * target.c (raw_memory_xfer_partial): Update the dcache here.
7983 (memory_xfer_partial_1): Don't handle dcache writes here.
7985 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7987 * remote-sim.c (gdbsim_load): Add const to prog.
7989 2014-03-03 Tom Tromey <tromey@redhat.com>
7991 * elfread.c (probe_key): Change to bfd_data.
7992 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7993 now per-BFD, not per-objfile.
7994 * stap-probe.c (stap_probe_destroy): Update comment.
7995 (handle_stap_probe): Allocate on the per-BFD obstack.
7997 2014-03-03 Tom Tromey <tromey@redhat.com>
7999 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8000 * breakpoint.c (create_longjmp_master_breakpoint): Use
8002 (add_location_to_breakpoint, bkpt_probe_insert_location)
8003 (bkpt_probe_remove_location): Update.
8004 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8005 * elfread.c (elf_symfile_relocate_probe): Remove.
8006 (elf_probe_fns): Update.
8007 (insert_exception_resume_breakpoint): Change type of "probe"
8008 parameter to bound_probe.
8009 (check_exception_resume): Update.
8010 * objfiles.c (objfile_relocate1): Don't relocate probes.
8011 * probe.c (bound_probe_s): New typedef.
8012 (parse_probes): Use get_probe_address. Set sal's objfile.
8013 (find_probe_by_pc): Return a bound_probe.
8014 (collect_probes): Return a VEC(bound_probe_s).
8015 (compare_probes): Update.
8016 (gen_ui_out_table_header_info): Change type of "probes"
8018 (info_probes_for_ops): Update.
8019 (get_probe_address): New function.
8020 (probe_safe_evaluate_at_pc): Update.
8021 * probe.h (struct probe_ops) <get_probe_address>: New field.
8022 <set_semaphore, clear_semaphore>: Add objfile parameter.
8023 (struct probe) <objfile>: Remove field.
8025 <address>: Update comment.
8026 (struct bound_probe): New.
8027 (find_probe_by_pc): Return a bound_probe.
8028 (get_probe_address): Declare.
8029 * solib-svr4.c (struct probe_and_action) <address>: New field.
8030 (hash_probe_and_action, equal_probe_and_action): Update.
8031 (register_solib_event_probe): Add address parameter.
8032 (solib_event_probe_at): Update.
8033 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8035 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8036 (stap_get_probe_address): New function.
8037 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8038 (compile_probe_arg): Update.
8039 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8041 (handle_stap_probe): Don't relocate the probe.
8042 (stap_relocate): Remove.
8043 (stap_gen_info_probes_table_values): Update.
8044 (stap_probe_ops): Remove stap_relocate.
8045 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8046 (debug_sym_probe_fns): Update.
8047 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8048 * symtab.c (init_sal): Use memset.
8049 * symtab.h (struct symtab_and_line) <objfile>: New field.
8050 * tracepoint.c (start_tracing, stop_tracing): Update.
8052 2014-03-03 Tom Tromey <tromey@redhat.com>
8054 * probe.h (parse_probes, find_probe_by_pc)
8055 (find_probes_in_objfile): Fix comments.
8057 2014-03-02 Doug Evans <xdje42@gmail.com>
8059 * infrun.c (handle_signal_stop): Replace test for
8060 TARGET_WAITKIND_STOPPED with an assert.
8062 2014-03-02 Doug Evans <xdje42@gmail.com>
8064 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8066 2014-03-02 Doug Evans <xdje42@gmail.com>
8068 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8070 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8072 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8074 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8076 * i386obsd-nat.c: Include "obsd-nat.h".
8077 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8079 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8081 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8083 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8085 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8087 * mips64obsd-nat.c: Include "obsd-nath".
8088 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8090 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8092 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8094 * amd64obsd-nat.c: Include "obsd-nat,h.
8095 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8097 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8099 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8101 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8102 (find_overload_match): Update call to find_oload_champ.
8103 (find_oload_champ_namespace_loop): Likewise
8105 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8107 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8109 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8110 * config/sparc/obsd64.mh: New file.
8111 * sparc64obsd-nat.c: New file.
8113 * obsd-nat.h: New file.
8114 * obsd-nat.c: New file.
8115 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8116 (ALLDEPFILES): Add obsd-nat.c.
8118 2014-02-28 Tom Tromey <tromey@redhat.com>
8120 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8121 * cli-out.h (cli_ui_out_impl): Now const.
8122 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8123 * ui-out.c (struct ui_out) <impl>: Now const.
8124 (default_ui_out_impl): Now const.
8125 (ui_out_new): Make 'impl' parameter const.
8126 * ui-out.h (ui_out_new): Update.
8128 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8130 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8132 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8134 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8136 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8138 Additional PR 8882 fix.
8139 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8141 2014-02-27 Pedro Alves <palves@redhat.com>
8143 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8146 2014-02-27 Pedro Alves <palves@redhat.com>
8149 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8150 * nat/linux-waitpid.c: Include string.h.
8151 (status_to_str): Moved here and made extern.
8152 * nat/linux-waitpid.h (status_to_str): New declaration.
8154 2014-02-27 Hui Zhu <hui@codesourcery.com>
8157 * infrun.c (ptid_match): Move ...
8158 * common/ptid.c (ptid_match): ... here.
8159 * inferior.h (ptid_match): Move ...
8160 * common/ptid.h (ptid_match): ... here.
8162 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8164 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8165 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8168 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8170 * obsd-tdep.c (obsd_auxv_parse): New function.
8171 (obsd_init_abi): Set auxv_parse.
8173 * gdbarch.sh (auxv_parse): New.
8174 * gdbarch.h: Regenerated.
8175 * gdbarch.c: Regenerated.
8176 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8178 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8180 * guile/scm-value.c (gdbscm_history_append_x): New function.
8181 (value_functions): Add it.
8183 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8185 * dwarf2read.c (attr_value_as_address): New function.
8186 (dwarf2_find_base_address, read_call_site_scope): Use
8187 attr_value_as_address in place of DW_ADDR.
8188 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8189 the low and high addresses. Slight rework of the handling
8190 of the high pc being a constant form, and limit it to
8191 DWARF verson 4 or higher.
8192 (dwarf2_record_block_ranges): Likewise.
8193 (read_partial_die): Likewise.
8194 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8196 2014-02-26 Tom Tromey <tromey@redhat.com>
8198 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8200 2014-02-26 Tom Tromey <tromey@redhat.com>
8202 * elfread.c (elf_read_minimal_symbols): Return early if
8203 minimal symbols have already been read. Add "ei" parameter.
8204 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8205 * minsyms.c (prim_record_minimal_symbol_full): Update.
8206 * objfiles.h (struct objstats) <n_minsyms>: Move...
8207 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8208 * symmisc.c (print_objfile_statistics): Update.
8210 2014-02-26 Tom Tromey <tromey@redhat.com>
8212 * elfread.c (elf_read_minimal_symbols): New function, from
8214 (elf_symfile_read): Call it.
8216 2014-02-26 Tom Tromey <tromey@redhat.com>
8218 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8219 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8220 (lookup_minimal_symbol_solib_trampoline)
8221 (lookup_minimal_symbol_by_pc_section_1)
8222 (lookup_minimal_symbol_and_objfile): Update.
8223 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8224 Don't allocate a minimal symbol if minsyms have already been read.
8225 (build_minimal_symbol_hash_tables): Update.
8226 (install_minimal_symbols): Do nothing if minsyms already read.
8227 Use the per-BFD obstack.
8228 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8229 * objfiles.c (allocate_objfile): Call
8230 terminate_minimal_symbol_table later.
8231 (have_minimal_symbols): Update.
8232 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8233 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8234 Move from struct objfile.
8235 <minsyms_read>: New field.
8236 (struct objfile) <msymbols, minimal_symbol_count,
8237 msymbol_hash, msymbol_demangled_hash>: Move.
8238 (ALL_OBJFILE_MSYMBOLS): Update.
8239 * symfile.c (read_symbols): Set minsyms_read.
8240 (reread_symbols): Update.
8241 * symmisc.c (dump_objfile, dump_msymbols): Update.
8243 2014-02-26 Tom Tromey <tromey@redhat.com>
8245 * minsyms.c (msymbols_sort): Remove.
8246 * minsyms.h (msymbols_sort): Remove.
8247 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8248 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8249 * elfread.c (elf_symtab_read): Don't add section offsets.
8250 * xcoffread.c (record_minimal_symbol): Don't add section offset
8251 to minimal symbol address.
8252 * somread.c (text_offset, data_offset): Remove.
8253 (som_symtab_read): Don't add section offsets to minimal symbol
8255 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8256 Don't add section offsets to minimal symbols.
8257 * coffread.c (coff_symtab_read): Don't add section offsets
8258 to minimal symbol addresses.
8259 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8260 to minimal symbol addresses.
8261 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8262 section offset to minimal symbol addresses.
8263 * mdebugread.c (parse_partial_symbols): Don't add section
8264 offset to minimal symbol addresses.
8265 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8266 offset to minimal symbol addresses.
8268 2014-02-26 Tom Tromey <tromey@redhat.com>
8270 * ada-lang.c (ada_main_name): Update.
8271 (ada_add_standard_exceptions): Update.
8272 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8273 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8274 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8275 * auxv.c (ld_so_xfer_auxv): Update.
8276 * avr-tdep.c (avr_scan_prologue): Update.
8277 * ax-gdb.c (gen_var_ref): Update.
8278 * blockframe.c (get_pc_function_start)
8279 (find_pc_partial_function_gnu_ifunc): Update.
8280 * breakpoint.c (create_overlay_event_breakpoint)
8281 (create_longjmp_master_breakpoint)
8282 (create_std_terminate_master_breakpoint)
8283 (create_exception_master_breakpoint): Update.
8284 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8285 * c-valprint.c (c_val_print): Update.
8286 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8287 * common/agent.c (agent_look_up_symbols): Update.
8288 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8289 * dwarf2loc.c (call_site_to_target_addr): Update.
8290 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8291 * elfread.c (elf_gnu_ifunc_record_cache)
8292 (elf_gnu_ifunc_resolve_by_got): Update.
8293 * findvar.c (default_read_var_value): Update.
8294 * frame.c (inside_main_func): Update.
8295 * frv-tdep.c (frv_frame_this_id): Update.
8296 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8297 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8299 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8300 (hppa_hpux_find_dummy_bpaddr): Update.
8301 * hppa-tdep.c (hppa_symbol_address): Update.
8302 * infcmd.c (until_next_command): Update.
8303 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8305 * linespec.c (minsym_found, add_minsym): Update.
8306 * linux-nat.c (get_signo): Update.
8307 * linux-thread-db.c (inferior_has_bug): Update.
8308 * m32c-tdep.c (m32c_return_value)
8309 (m32c_m16c_address_to_pointer): Update.
8310 * m32r-tdep.c (m32r_frame_this_id): Update.
8311 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8312 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8313 * maint.c (maintenance_translate_address): Update.
8314 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8315 (frob_address): New function.
8316 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8317 frob_address. Rename parameter to "pc_in".
8318 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8320 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8322 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8323 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8324 * objc-lang.c (find_objc_msgsend): Update.
8325 * objfiles.c (objfile_relocate1): Update.
8326 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8327 * p-valprint.c (pascal_val_print): Update.
8328 * parse.c (write_exp_msymbol): Update.
8329 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8330 (ppc_elfv2_skip_entrypoint): Update.
8331 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8332 * printcmd.c (build_address_symbolic, msym_info)
8333 (address_info): Update.
8334 * proc-service.c (ps_pglobal_lookup): Update.
8335 * psymtab.c (find_pc_sect_psymtab_closer)
8336 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8337 Change msymbol parameter to bound_minimal_symbol.
8338 * ravenscar-thread.c (get_running_thread_id): Update.
8339 * remote.c (remote_check_symbols): Update.
8340 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8342 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8343 * solib-dsbt.c (lm_base): Update.
8344 * solib-frv.c (lm_base, main_got): Update.
8345 * solib-irix.c (locate_base): Update.
8346 * solib-som.c (som_solib_create_inferior_hook)
8347 (link_map_start): Update.
8348 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8349 * solib-svr4.c (elf_locate_base, enable_break): Update.
8350 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8351 (flush_ea_cache): Update.
8352 * stabsread.c (define_symbol, scan_file_globals): Update.
8353 * stack.c (find_frame_funname): Update.
8354 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8355 (debug_qf_find_pc_sect_symtab): Update.
8356 * symfile.c (simple_read_overlay_table)
8357 (simple_overlay_update): Update.
8358 * symfile.h (struct quick_symbol_functions)
8359 <find_pc_sect_symtab>: Change type of msymbol to
8360 bound_minimal_symbol.
8361 * symmisc.c (dump_msymbols): Update.
8362 * symtab.c (find_pc_sect_symtab_via_partial)
8363 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8364 (search_symbols, print_msymbol_info): Update.
8365 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8366 (MSYMBOL_VALUE_ADDRESS): Redefine.
8367 (BMSYMBOL_VALUE_ADDRESS): New macro.
8368 * tracepoint.c (scope_info): Update.
8369 * tui/tui-disasm.c (tui_find_disassembly_address)
8370 (tui_get_begin_asm_address): Update.
8371 * valops.c (find_function_in_inferior): Update.
8372 * value.c (value_static_field, value_fn_field): Update.
8374 2014-02-26 Tom Tromey <tromey@redhat.com>
8376 * ada-lang.c (ada_update_initial_language): Update.
8377 (ada_main_name, ada_has_this_exception_support): Update.
8378 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8379 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8380 * arm-tdep.c (arm_skip_stub): Update.
8381 * auxv.c (ld_so_xfer_auxv): Update.
8382 * avr-tdep.c (avr_scan_prologue): Update.
8383 * ax-gdb.c (gen_var_ref): Update.
8384 * breakpoint.c (struct breakpoint_objfile_data)
8385 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8386 type to bound_minimal_symbol.
8387 (create_overlay_event_breakpoint)
8388 (create_longjmp_master_breakpoint)
8389 (create_std_terminate_master_breakpoint)
8390 (create_exception_master_breakpoint): Update.
8391 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8392 * c-exp.y (classify_name): Update.
8393 * coffread.c (coff_symfile_read): Update.
8394 * common/agent.c (agent_look_up_symbols): Update.
8395 * d-lang.c (d_main_name): Update.
8396 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8397 * dec-thread.c (enable_dec_thread): Update.
8398 * dwarf2loc.c (call_site_to_target_addr): Update.
8399 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8400 * eval.c (evaluate_subexp_standard): Update.
8401 * findvar.c (struct minsym_lookup_data) <result>: Change type
8402 to bound_minimal_symbol.
8404 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8405 * frame.c (inside_main_func): Update.
8406 * frv-tdep.c (frv_frame_this_id): Update.
8407 * gcore.c (call_target_sbrk): Update.
8408 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8409 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8411 * go-lang.c (go_main_name): Update.
8412 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8413 (hppa_hpux_find_import_stub_for_addr): Update.
8414 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8415 Update. Change return type.
8416 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8418 * jit.c (jit_breakpoint_re_set_internal): Update.
8419 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8421 * linux-nat.c (get_signo): Update.
8422 * linux-thread-db.c (inferior_has_bug): Update
8423 * m32c-tdep.c (m32c_return_value)
8424 (m32c_m16c_address_to_pointer): Update.
8425 * m32r-tdep.c (m32r_frame_this_id): Update.
8426 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8427 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8428 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8429 lookup_minimal_symbol. Change return type.
8430 (lookup_minimal_symbol): Remove.
8431 (lookup_bound_minimal_symbol): Update.
8432 (lookup_minimal_symbol_text): Change return type.
8433 (lookup_minimal_symbol_solib_trampoline): Change return type.
8434 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8435 (lookup_minimal_symbol_solib_trampoline): Change return type.
8436 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8437 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8438 (value_nsstring, find_imps): Update.
8439 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8440 * p-lang.c (pascal_main_name): Update.
8441 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8442 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8443 * proc-service.c (ps_pglobal_lookup): Update.
8444 * ravenscar-thread.c (get_running_thread_msymbol): Change
8446 (has_ravenscar_runtime, get_running_thread_id): Update.
8447 * remote.c (remote_check_symbols): Update.
8448 * sol-thread.c (ps_pglobal_lookup): Update.
8449 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8450 * solib-dsbt.c (lm_base): Update.
8451 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8453 * solib-irix.c (locate_base): Update.
8454 * solib-som.c (som_solib_create_inferior_hook)
8455 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8457 * solib-spu.c (spu_enable_break): Update.
8458 * solib-svr4.c (elf_locate_base, enable_break): Update.
8459 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8460 (flush_ea_cache): Update.
8461 * stabsread.c (define_symbol): Update.
8462 * symfile.c (simple_read_overlay_table): Update.
8463 * symtab.c (find_pc_sect_line): Update.
8464 * tracepoint.c (scope_info): Update.
8465 * tui-disasm.c (tui_get_begin_asm_address): Update.
8466 * value.c (value_static_field): Update.
8468 2014-02-26 Tom Tromey <tromey@redhat.com>
8470 * minsyms.c (prim_record_minimal_symbol_full): Use
8471 SET_MSYMBOL_VALUE_ADDRESS.
8472 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8473 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8474 SET_MSYMBOL_VALUE_ADDRESS.
8475 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8476 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8478 2014-02-26 Tom Tromey <tromey@redhat.com>
8480 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8481 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8482 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8483 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8484 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8485 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8486 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8487 * ada-lang.c (ada_main_name): Update.
8488 (ada_lookup_simple_minsym): Update.
8489 (ada_make_symbol_completion_list): Update.
8490 (ada_add_standard_exceptions): Update.
8491 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8492 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8493 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8494 * arm-tdep.c (skip_prologue_function): Update.
8495 (arm_skip_stack_protector, arm_skip_stub): Update.
8496 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8497 (arm_wince_skip_main_prologue): Update.
8498 * auxv.c (ld_so_xfer_auxv): Update.
8499 * avr-tdep.c (avr_scan_prologue): Update.
8500 * ax-gdb.c (gen_var_ref): Update.
8501 * block.c (call_site_for_pc): Update.
8502 * blockframe.c (get_pc_function_start): Update.
8503 (find_pc_partial_function_gnu_ifunc): Update.
8504 * breakpoint.c (create_overlay_event_breakpoint): Update.
8505 (create_longjmp_master_breakpoint): Update.
8506 (create_std_terminate_master_breakpoint): Update.
8507 (create_exception_master_breakpoint): Update.
8508 (resolve_sal_pc): Update.
8509 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8510 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8512 * c-valprint.c (c_val_print): Update.
8513 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8514 * coffread.c (coff_symfile_read): Update.
8515 * common/agent.c (agent_look_up_symbols): Update.
8516 * dbxread.c (find_stab_function_addr): Update.
8517 (end_psymtab): Update.
8518 * dwarf2loc.c (call_site_to_target_addr): Update.
8519 (func_verify_no_selftailcall): Update.
8520 (tailcall_dump): Update.
8521 (call_site_find_chain_1): Update.
8522 (dwarf_expr_reg_to_entry_parameter): Update.
8523 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8524 (elf_gnu_ifunc_resolve_by_got): Update.
8525 * f-valprint.c (info_common_command): Update.
8526 * findvar.c (read_var_value): Update.
8527 * frame.c (get_prev_frame_1): Update.
8528 (inside_main_func): Update.
8529 * frv-tdep.c (frv_skip_main_prologue): Update.
8530 (frv_frame_this_id): Update.
8531 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8532 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8533 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8534 (gnuv3_skip_trampoline): Update.
8535 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8536 (hppa64_hpux_in_solib_call_trampoline): Update.
8537 (hppa_hpux_skip_trampoline_code): Update.
8538 (hppa64_hpux_search_dummy_call_sequence): Update.
8539 (hppa_hpux_find_import_stub_for_addr): Update.
8540 (hppa_hpux_find_dummy_bpaddr): Update.
8541 * hppa-tdep.c (hppa_symbol_address)
8542 (hppa_lookup_stub_minimal_symbol): Update.
8543 * i386-tdep.c (i386_skip_main_prologue): Update.
8544 (i386_pe_skip_trampoline_code): Update.
8545 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8546 * infcall.c (get_function_name): Update.
8547 * infcmd.c (until_next_command): Update.
8548 * jit.c (jit_breakpoint_re_set_internal): Update.
8549 (jit_inferior_init): Update.
8550 * linespec.c (minsym_found): Update.
8551 (add_minsym): Update.
8552 * linux-fork.c (info_checkpoints_command): Update.
8553 * linux-nat.c (get_signo): Update.
8554 * linux-thread-db.c (inferior_has_bug): Update.
8555 * m32c-tdep.c (m32c_return_value): Update.
8556 (m32c_m16c_address_to_pointer): Update.
8557 (m32c_m16c_pointer_to_address): Update.
8558 * m32r-tdep.c (m32r_frame_this_id): Update.
8559 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8560 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8561 * maint.c (maintenance_translate_address): Update.
8562 * minsyms.c (add_minsym_to_hash_table): Update.
8563 (add_minsym_to_demangled_hash_table): Update.
8564 (msymbol_objfile): Update.
8565 (lookup_minimal_symbol): Update.
8566 (iterate_over_minimal_symbols): Update.
8567 (lookup_minimal_symbol_text): Update.
8568 (lookup_minimal_symbol_by_pc_name): Update.
8569 (lookup_minimal_symbol_solib_trampoline): Update.
8570 (lookup_minimal_symbol_by_pc_section_1): Update.
8571 (lookup_minimal_symbol_and_objfile): Update.
8572 (prim_record_minimal_symbol_full): Update.
8573 (compare_minimal_symbols): Update.
8574 (compact_minimal_symbols): Update.
8575 (build_minimal_symbol_hash_tables): Update.
8576 (install_minimal_symbols): Update.
8577 (terminate_minimal_symbol_table): Update.
8578 (find_solib_trampoline_target): Update.
8579 (minimal_symbol_upper_bound): Update.
8580 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8581 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8582 (mips_skip_pic_trampoline_code): Update.
8583 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8584 * objc-lang.c (selectors_info): Update.
8585 (classes_info): Update.
8586 (find_methods): Update.
8587 (find_imps): Update.
8588 (find_objc_msgsend): Update.
8589 * objfiles.c (objfile_relocate1): Update.
8590 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8591 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8592 * p-valprint.c (pascal_val_print): Update.
8593 * parse.c (write_exp_msymbol): Update.
8594 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8595 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8596 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8597 * printcmd.c (build_address_symbolic): Update.
8599 (address_info): Update.
8600 * proc-service.c (ps_pglobal_lookup): Update.
8601 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8602 (find_pc_sect_psymtab): Update.
8603 * python/py-framefilter.c (py_print_frame): Update.
8604 * ravenscar-thread.c (get_running_thread_id): Update.
8605 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8607 * remote.c (remote_check_symbols): Update.
8608 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8609 (rs6000_skip_trampoline_code): Update.
8610 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8611 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8612 * solib-dsbt.c (lm_base): Update.
8613 * solib-frv.c (lm_base): Update.
8615 * solib-irix.c (locate_base): Update.
8616 * solib-som.c (som_solib_create_inferior_hook): Update.
8617 (som_solib_desire_dynamic_linker_symbols): Update.
8618 (link_map_start): Update.
8619 * solib-spu.c (spu_enable_break): Update.
8620 (ocl_enable_break): Update.
8621 * solib-svr4.c (elf_locate_base): Update.
8622 (enable_break): Update.
8623 * spu-tdep.c (spu_get_overlay_table): Update.
8624 (spu_catch_start): Update.
8625 (flush_ea_cache): Update.
8626 * stabsread.c (define_symbol): Update.
8627 (scan_file_globals): Update.
8628 * stack.c (find_frame_funname): Update.
8629 (frame_info): Update.
8630 * symfile.c (simple_read_overlay_table): Update.
8631 (simple_overlay_update): Update.
8632 * symmisc.c (dump_msymbols): Update.
8633 * symtab.c (fixup_section): Update.
8634 (find_pc_sect_line): Update.
8635 (skip_prologue_sal): Update.
8636 (search_symbols): Update.
8637 (print_msymbol_info): Update.
8638 (rbreak_command): Update.
8639 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8640 (completion_list_objc_symbol): Update.
8641 (default_make_symbol_completion_list_break_on): Update.
8642 * tracepoint.c (scope_info): Update.
8643 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8644 (tui_get_begin_asm_address): Update.
8645 * valops.c (find_function_in_inferior): Update.
8646 * value.c (value_static_field): Update.
8647 (value_fn_field): Update.
8649 2014-02-26 Tom Tromey <tromey@redhat.com>
8651 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8652 bound minimal symbols. Move code that knows about minsym
8654 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8656 * minsyms.h (minimal_symbol_upper_bound): Declare.
8657 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8658 minimal_symbol_upper_bound.
8660 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8662 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8663 Use the type's name if its basic type does not have a tag.
8665 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8667 * dwarf2read.c (read_subrange_type): Add comment.
8669 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8671 * dwarf2read.c (update_enumeration_type_from_children): New
8672 function, mostly extracted from process_structure_scope.
8673 (read_enumeration_type): Call update_enumeration_type_from_children.
8674 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8675 and flag_flag_enum fields.
8677 2014-02-26 Pedro Alves <palves@redhat.com>
8679 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8680 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8681 to_xfer_partial method.
8683 2014-02-26 Pedro Alves <palves@redhat.com>
8685 * target.c (complete_target_initialization): Don't install
8686 default_xfer_partial as to_xfer_partial hook.
8688 (update_current_target): Don't INHERIT nor de_fault
8689 deprecated_xfer_memory. Delete de_fault macro.
8690 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8691 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8692 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8695 2014-02-26 Pedro Alves <palves@redhat.com>
8697 * go32-nat.c (my_write_child): New function.
8698 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8699 (go32_xfer_partial): New function.
8700 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8701 Instead install a to_xfer_partial hook.
8703 2014-02-26 Pedro Alves <palves@redhat.com>
8705 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8706 to_xfer_partial helper. Rewrite.
8707 (procfs_xfer_partial): New function.
8708 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8709 Install a to_xfer_partial hook.
8711 2014-02-26 Pedro Alves <palves@redhat.com>
8713 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8714 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8715 (m32r_xfer_partial): New function.
8716 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8717 Install a to_xfer_partial hook.
8719 2014-02-26 Pedro Alves <palves@redhat.com>
8721 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8723 (mips_xfer_partial): New function.
8724 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8725 hook. Install a to_xfer_partial hook.
8727 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8729 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8730 * gdbtypes.c (create_array_type_with_stride): New function,
8731 renaming create_array_type, but with an added parameter
8732 called "bit_stride".
8733 (create_array_type): Re-implement using
8734 create_array_type_with_stride.
8735 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8736 and DW_AT_bit_stride attributes.
8738 2014-02-26 Pedro Alves <palves@redhat.com>
8740 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8741 task-specific breakpoints.
8743 2014-02-25 Pedro Alves <palves@redhat.com>
8745 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8746 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8748 2014-02-25 Stan Shebs <stan@codesourcery.com>
8750 * defs.h: Annotate comments for Doxygen.
8752 2014-02-25 Tom Tromey <tromey@redhat.com>
8754 * target.h (target_ignore): Don't declare.
8755 * target.c (target_ignore): Remove.
8757 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8760 * auto-load.c (auto_load_objfile_script_1): Change filename to
8763 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8765 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8766 documentation. Adjust prototype to match the target_ops
8767 to_xfer_partial method. Adjust implementation accordingly.
8769 2014-02-25 Hui Zhu <hui@codesourcery.com>
8771 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8774 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8776 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8777 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8778 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8779 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8780 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8781 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8782 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8783 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8785 (rl78_register_type): Use a data pointer type for SP and
8786 new pseudo registers mentioned above. Use a 16 bit integer
8787 type for all other register pairs.
8788 (rl78_register_name, rl78_g10_register_name): Update for
8789 new pseudo registers.
8790 (rl78_pseudo_register_read): Likewise.
8791 (rl78_pseudo_register_write): Likewise.
8792 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8793 to the newly added pseudo registers.
8795 2014-02-24 Doug Evans <dje@google.com>
8797 * value.c (record_latest_value): Fix comment.
8798 * printcmd.c (print_command_1): Remove code to handle -1 return from
8799 record_latest_value.
8801 2014-02-24 Pedro Alves <palves@redhat.com>
8803 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8804 deprecated_xfer_memory hook.
8805 (procfs_xfer_partial): Call procfs_xfer_memory instead
8806 of the deprecated_xfer_memory target hook.
8807 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8810 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8812 * windows-nat.c (windows_xfer_shared_libraries): Return
8813 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8814 requested object is TARGET_OBJECT_LIBRARIES.
8816 2014-02-24 Yao Qi <yao@codesourcery.com>
8818 * target.h (enum target_xfer_status)
8819 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8820 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8822 * corefile.c (memory_error_message): User updated.
8823 * exec.c (section_table_read_available_memory): Likewise.
8824 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8825 * target.c (target_xfer_status_to_string): Likewise.
8826 (raw_memory_xfer_partial): Likewise.
8827 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8828 * valops.c (read_value_memory): Likewise.
8829 * exec.h: Update comments.
8831 2014-02-24 Yao Qi <yao@codesourcery.com>
8833 * target.c (target_xfer_status_to_string): Rename argument err
8835 * target.h (target_xfer_status_to_string): Update declaration.
8836 Replace target_xfer_error_to_string with
8837 target_xfer_status_to_string in comment.
8839 2014-02-24 Yao Qi <yao@codesourcery.com>
8841 * mips-linux-nat.c (super_close): Update its type.
8842 (mips_linux_close): Pass 'self' to super_close.
8844 2014-02-24 Yao Qi <yao@codesourcery.com>
8846 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8847 * corefile.c (read_memory): Adjusted.
8848 * target.c (target_write_with_progress): Adjusted.
8850 2014-02-23 Yao Qi <yao@codesourcery.com>
8854 2013-10-25 Yao Qi <yao@codesourcery.com>
8856 * remote.c (remote_traceframe_info): Return early if
8857 traceframe is not selected.
8859 2013-07-19 Yao Qi <yao@codesourcery.com>
8861 * target.c (update_current_target): Change the default action
8862 of 'to_traceframe_info' from tcomplain to return_zero.
8863 * target.h (struct target_ops) <to_traceframe_info>: Add more
8866 2014-02-23 Yao Qi <yao@codesourcery.com>
8868 * valops.c (read_value_memory): Rewrite it. Call
8869 target_xfer_partial in a loop.
8870 * exec.h (section_table_available_memory): Remove declaration.
8871 Move comments to ...
8872 * exec.c (section_table_available_memory): ... here. Make it
8875 2014-02-23 Yao Qi <yao@codesourcery.com>
8877 * exec.c (section_table_read_available_memory): New function.
8878 * exec.h (section_table_read_available_memory): Declare.
8879 * ctf.c (ctf_xfer_partial): Call
8880 section_table_read_available_memory.
8881 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8883 2014-02-23 Yao Qi <yao@codesourcery.com>
8885 * ctf.c (ctf_xfer_partial): Move code to ...
8886 * exec.c (exec_read_partial_read_only): ... it. New function.
8887 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8888 * tracefile.c: Include "exec.h".
8889 * exec.h (exec_read_partial_read_only): Declare.
8891 2014-02-23 Yao Qi <yao@codesourcery.com>
8893 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8894 (tfile_has_memory): Remove.
8895 (init_tfile_ops): Don't set fields to_has_all_memory and
8896 to_has_memory of tfile_ops.
8897 * tracefile.c (tracefile_has_all_memory): New function.
8898 (tracefile_has_memory): New function.
8899 (init_tracefile_ops): Initialize fields to_has_all_memory and
8900 to_has_memory of 'ops'.
8902 2014-02-23 Yao Qi <yao@codesourcery.com>
8904 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8905 (ctf_thread_alive, ctf_get_trace_status): Remove.
8906 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8908 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8909 (tfile_has_stack, tfile_has_registers): Remove.
8910 (tfile_thread_alive): Remove.
8911 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8913 * tracefile.c (tracefile_has_stack): New function.
8914 (tracefile_has_registers): New function.
8915 (tracefile_thread_alive): New function.
8916 (tracefile_get_trace_status): New function.
8917 (init_tracefile_ops): New function.
8918 * tracefile.h (init_tracefile_ops): Declare.
8920 2014-02-23 Yao Qi <yao@codesourcery.com>
8922 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8923 (O_LARGEFILE): Likewise.
8924 (tfile_ops): Likewise.
8925 (TRACE_HEADER_SIZE): Likewise.
8926 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8927 (cur_data_size): Likewise.
8928 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8929 (tfile_close, tfile_files_info): Likewise.
8930 (tfile_get_trace_status): Likewise.
8931 (tfile_get_tracepoint_status): Likewise.
8932 (tfile_get_traceframe_address): Likewise.
8933 (tfile_trace_find, match_blocktype): Likewise.
8934 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8935 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8936 (tfile_get_trace_state_variable_value): Likewise.
8937 (tfile_has_all_memory, tfile_has_memory): Likewise.
8938 (tfile_has_stack, tfile_has_registers): Likewise.
8939 (tfile_thread_alive, build_traceframe_info): Likewise.
8940 (tfile_traceframe_info, init_tfile_ops): Likewise.
8941 (_initialize_tracepoint): Don't call init_tfile_ops
8942 and add_target_with_completer.
8943 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8944 exec.h, completer.h and filenames.h.
8945 (_initialize_tracefile_tfile): New function.
8947 2014-02-23 Yao Qi <yao@codesourcery.com>
8949 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8951 (HFILES_NO_SRCDIR): Add tracefile.h.
8952 * ctf.c: Include "tracefile.h".
8953 * tracefile.h: New file.
8954 * tracefile.c: New file
8955 * tracefile-tfile.c: New file.
8956 * tracepoint.c: Include "tracefile.h".
8957 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8958 (stop_reason_names): Add const.
8959 (trace_file_writer_xfree): Move it to tracefile.c.
8960 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8961 (trace_save_ctf): Likewise.
8962 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8963 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8964 (tfile_write_header, tfile_write_regblock_type): Likewise.
8965 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8966 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8967 (tfile_write_raw_data, tfile_end): Likewise.
8968 (tfile_trace_file_writer_new): Likewise.
8969 (free_uploaded_tp): Make it extern.
8970 (free_uploaded_tsv): Make it extern.
8971 (_initialize_tracepoint): Move code to register command 'tsave'
8973 * tracepoint.h (stop_reason_names): Declare.
8974 (struct trace_frame_write_ops): Move it to tracefile.h.
8975 (struct trace_file_write_ops): Likewise.
8976 (struct trace_file_writer): Likewise.
8977 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8979 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8982 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8984 (get_cores_used_by_process): New parameter num_cores, use it.
8985 (linux_xfer_osdata_processes): Pass num_cores to it.
8986 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8989 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8991 * target.c (memory_xfer_partial): Fix length arg in call to
8992 breakpoint_xfer_memory.
8994 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8997 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8998 number comes after the + or - signs. Adjust length of register
8999 name to be extracted.
9001 2014-02-20 Tom Tromey <tromey@redhat.com>
9003 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9004 (ada_varobj_ops): Mark "extern".
9006 2014-02-20 Tom Tromey <tromey@redhat.com>
9008 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9010 2014-02-20 Doug Evans <xdje42@gmail.com>
9012 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9013 All callers updated.
9014 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9015 All callers updated.
9016 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9017 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9019 2014-02-20 lin zuojian <manjian2006@gmail.com>
9020 Joel Brobecker <brobecker@adacore.com>
9021 Doug Evans <xdje42@gmail.com>
9024 * dwarf2read.c (struct die_info): New member in_process.
9025 (reset_die_in_process): New function.
9026 (process_die): Set it at the start, reset when returning.
9027 (inherit_abstract_dies): Only call process_die if origin_child_die
9028 not already being processed.
9030 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9032 * windows-nat.c (handle_unload_dll): Add function documentation.
9033 (do_initial_windows_stuff): Add comment explaining why we wait
9034 until after inferior initialization has finished before
9035 processing all DLLs.
9037 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9039 * windows-nat.c (get_module_name): Delete.
9040 (windows_get_exec_module_filename): New function, mostly
9041 inspired from get_module_name.
9042 (windows_pid_to_exec_file): Replace call to get_module_name
9043 by call to windows_get_exec_module_filename.
9045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9047 * windows-nat.c (handle_load_dll): Rewrite this function's
9048 introductory comment. Remove code using get_module_name
9049 to get the DLL's name.
9051 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9053 * windows-nat.c (get_windows_debug_event): Ignore
9054 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9055 if windows_initialization_done == 0.
9056 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9057 Adjust implementation to always load all DLLs.
9058 (do_initial_windows_stuff): Replace call to
9059 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9063 * windows-nat.c (_initialize_windows_nat): Deprecate the
9064 "dll-symbols" command. Turn the "add-shared-symbol-files"
9065 and "assf" aliases into commands, and deprecate them as well.
9066 * NEWS: Add entry explaining that "dll-symbols" and its two
9067 aliases are now deprecated.
9069 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9071 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9072 new-line in debug string. Remove trailing spaces.
9074 2014-02-19 Stan Shebs <stan@codesourcery.com>
9076 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9078 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9080 * NEWS: Add entry for the new feature
9081 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9084 2014-02-19 Stan Shebs <stan@codesourcery.com>
9086 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9088 2014-02-19 Pedro Alves <palves@redhat.com>
9090 * common/ptid.h (struct ptid): Mention that process_stratum
9091 targets should prefer ptid.lwp.
9093 2014-02-19 Pedro Alves <palves@redhat.com>
9095 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9096 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9097 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9098 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9099 store remote thread ids rather than ptid.tid.
9100 (_initialize_remote): Adjust.
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target.c (target_get_unwinder): Rewrite.
9105 (target_get_tailcall_unwinder): Rewrite.
9106 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9107 (record_btrace_to_get_tailcall_unwinder): New function.
9108 (init_record_btrace_ops): Update.
9109 * target.h (struct target_ops) <to_get_unwinder,
9110 to_get_tailcall_unwinder>: Now function pointers. Use
9111 TARGET_DEFAULT_RETURN.
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9117 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9121 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9123 * target-delegates.c: Rebuild.
9124 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9125 TARGET_DEFAULT_FUNC.
9126 * target.c (default_target_decr_pc_after_break): Rename from
9127 forward_target_decr_pc_after_break. Simplify.
9128 (target_decr_pc_after_break): Rely on delegation.
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9132 * target.c (update_current_target): Do not INHERIT to_doc or
9133 to_magic. Do not de_fault to_open or to_close.
9135 2014-02-19 Tom Tromey <tromey@redhat.com>
9137 * gcore.h (objfile_find_memory_regions): Declare.
9138 * gcore.c (objfile_find_memory_regions): No longer static. Add
9140 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9141 * exec.c: Include gcore.h.
9142 (exec_set_find_memory_regions): Remove.
9143 (exec_find_memory_regions): Remove.
9144 (exec_do_find_memory_regions): Remove.
9145 (init_exec_ops): Update.
9146 * defs.h (exec_set_find_memory_regions): Remove.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * target-delegates.c: Rebuild.
9151 * target.h (struct target_ops) <to_extra_thread_info,
9152 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9153 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9154 not 0, in TARGET_DEFAULT_RETURN.
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target.c (complete_target_initialization): Remove casts. Use
9159 return_zero_has_execution.
9160 (return_zero): Add "ignore" argument.
9161 (return_zero_has_execution): New function.
9162 (init_dummy_target): Remove casts. Use
9163 return_zero_has_execution.
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9167 * target.c (update_current_target): Update comments. Do not
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9174 * corelow.c (core_read_description): Delegate when needed.
9175 * remote.c (remote_read_description): Delegate when needed.
9176 * target-delegates.c: Rebuild.
9177 * target.c (target_read_description): Rewrite.
9178 * target.h (struct target_ops) <to_read_description>: Update
9179 comment. Use TARGET_DEFAULT_RETURN.
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9183 * target-delegates.c: Rebuild.
9184 * target.c (update_current_target): Don't inherit or default
9186 (find_default_run_target): Check against delegate_can_run.
9187 * target.h (struct target_ops) <to_can_run>: Use
9188 TARGET_DEFAULT_RETURN.
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9192 * target-delegates.c: Rebuild.
9193 * target.c (target_disconnect): Unconditionally delegate.
9194 * target.h (struct target_ops) <to_disconnect>: Use
9195 TARGET_DEFAULT_NORETURN.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * record.c (record_stop): Unconditionally delegate.
9200 * target-delegates.c: Rebuild.
9201 * target.c (target_stop_recording): Unconditionally delegate.
9202 * target.h (struct target_ops) <to_stop_recording>: Use
9203 TARGET_DEFAULT_IGNORE.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * target-delegates.c: Rebuild.
9208 * target.c (target_enable_btrace): Unconditionally delegate.
9209 * target.h (struct target_ops) <to_enable_btrace>: Use
9210 TARGET_DEFAULT_NORETURN.
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target-delegates.c: Rebuild.
9215 * target.c (target_read_btrace): Unconditionally delegate.
9216 * target.h (struct target_ops) <to_read_btrace>: Use
9217 TARGET_DEFAULT_NORETURN.
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target-delegates.c: Rebuild.
9222 * target.c (target_teardown_btrace): Unconditionally delegate.
9223 * target.h (struct target_ops) <to_teardown_btrace>: Use
9224 TARGET_DEFAULT_NORETURN.
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9228 * target-delegates.c: Rebuild.
9229 * target.c (target_disable_btrace): Unconditionally delegate.
9230 * target.h (struct target_ops) <to_disable_btrace>: Use
9231 TARGET_DEFAULT_NORETURN.
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9235 * target-delegates.c: Rebuild.
9236 * target.c (default_search_memory): New function.
9237 (simple_search_memory): Update comment.
9238 (target_search_memory): Unconditionally delegate.
9239 * target.h (struct target_ops) <to_search_memory>: Use
9240 TARGET_DEFAULT_FUNC.
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9244 * auxv.c (default_auxv_parse): No longer static.
9245 (target_auxv_parse): Unconditionally delegate.
9246 * auxv.h (default_auxv_parse): Declare.
9247 * target-delegates.c: Rebuild.
9248 * target.c: Include auxv.h.
9249 * target.h (struct target_ops) <to_auxv_parse>: Use
9250 TARGET_DEFAULT_FUNC.
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * target-delegates.c: Rebuild.
9255 * target.c (target_memory_map): Unconditionally delegate.
9256 * target.h (struct target_ops) <to_memory_map>: Use
9257 TARGET_DEFAULT_RETURN.
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9261 * target-delegates.c: Rebuild.
9262 * target.c (target_thread_alive): Unconditionally delegate.
9263 * target.h (struct target_ops) <to_thread_alive>: Use
9264 TARGET_DEFAULT_RETURN.
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * target-delegates.c: Rebuild.
9269 * target.c (target_save_record): Unconditionally delegate.
9270 * target.h (struct target_ops) <to_save_record>: Use
9271 TARGET_DEFAULT_NORETURN.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target-delegates.c: Rebuild.
9276 * target.c (target_delete_record): Unconditionally delegate.
9277 * target.h (struct target_ops) <to_delete_record>: Use
9278 TARGET_DEFAULT_NORETURN.
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * target-delegates.c: Rebuild.
9283 * target.c (target_record_is_replaying): Unconditionally
9285 * target.h (struct target_ops) <to_record_is_replaying>: Use
9286 TARGET_DEFAULT_RETURN.
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target-delegates.c: Rebuild.
9291 * target.c (target_goto_record_begin): Unconditionally delegate.
9292 * target.h (struct target_ops) <to_goto_record_begin>: Use
9293 TARGET_DEFAULT_NORETURN.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target-delegates.c: Rebuild.
9298 * target.c (target_goto_record_end): Unconditionally delegate.
9299 * target.h (struct target_ops) <to_goto_record_end>: Use
9300 TARGET_DEFAULT_NORETURN.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target-delegates.c: Rebuild.
9305 * target.c (target_goto_record): Unconditionally delegate.
9306 * target.h (struct target_ops) <to_goto_record>: Use
9307 TARGET_DEFAULT_NORETURN.
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * target-delegates.c: Rebuild.
9312 * target.c (target_insn_history): Unconditionally delegate.
9313 * target.h (struct target_ops) <to_insn_history>: Use
9314 TARGET_DEFAULT_NORETURN.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target-delegates.c: Rebuild.
9319 * target.c (target_insn_history_from): Unconditionally delegate.
9320 * target.h (struct target_ops) <to_insn_history_from>: Use
9321 TARGET_DEFAULT_NORETURN.
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * target-delegates.c: Rebuild.
9326 * target.c (target_insn_history_range): Unconditionally delegate.
9327 * target.h (struct target_ops) <to_insn_history_range>: Use
9328 TARGET_DEFAULT_NORETURN.
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target-delegates.c: Rebuild.
9333 * target.c (target_call_history): Unconditionally delegate.
9334 * target.h (struct target_ops) <to_call_history>: Use
9335 TARGET_DEFAULT_NORETURN.
9337 2014-02-19 Tom Tromey <tromey@redhat.com>
9339 * target-delegates.c: Rebuild.
9340 * target.c (target_call_history_from): Unconditionally delegate.
9341 * target.h (struct target_ops) <to_call_history_from>: Use
9342 TARGET_DEFAULT_NORETURN.
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9346 * target-delegates.c: Rebuild.
9347 * target.c (target_call_history_range): Unconditionally delegate.
9348 * target.h (struct target_ops) <to_call_history_range>: Use
9349 TARGET_DEFAULT_NORETURN.
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target-delegates.c: Rebuild.
9354 * target.c (target_verify_memory): Unconditionally delegate.
9355 * target.h (struct target_ops) <to_verify_memory>: Use
9356 TARGET_DEFAULT_NORETURN.
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target-delegates.c: Rebuild.
9361 * target.c (target_core_of_thread): Unconditionally delegate.
9362 * target.h (struct target_ops) <to_core_of_thread>: Use
9363 TARGET_DEFAULT_RETURN.
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9367 * target-delegates.c: Rebuild.
9368 * target.c (target_flash_done): Unconditionally delegate.
9369 * target.h (struct target_ops) <to_flash_done>: Use
9370 TARGET_DEFAULT_NORETURN.
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9374 * target-delegates.c: Rebuild.
9375 * target.c (target_flash_erase): Unconditionally delegate.
9376 * target.h (struct target_ops) <to_flash_erase>: Use
9377 TARGET_DEFAULT_NORETURN.
9379 2014-02-19 Tom Tromey <tromey@redhat.com>
9381 * target-delegates.c: Rebuild.
9382 * target.c (target_get_section_table): Unconditionally delegate.
9383 * target.h (struct target_ops) <to_get_section_table>: Use
9384 TARGET_DEFAULT_RETURN.
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9388 * target-delegates.c: Rebuild.
9389 * target.c (target_pid_to_str): Unconditionally delegate.
9390 (init_dummy_target): Don't initialize to_pid_to_str.
9391 (default_pid_to_str): Rename from dummy_pid_to_str.
9392 * target.h (struct target_ops) <to_pid_to_str>: Use
9393 TARGET_DEFAULT_FUNC.
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9397 * target-delegates.c: Rebuild.
9398 * target.c (target_find_new_threads): Unconditionally delegate.
9399 * target.h (struct target_ops) <to_find_new_threads>: Use
9400 TARGET_DEFAULT_RETURN.
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9404 * target-delegates.c: Rebuild.
9405 * target.c (target_program_signals): Unconditionally delegate.
9406 * target.h (struct target_ops) <to_program_signals>: Use
9407 TARGET_DEFAULT_IGNORE.
9409 2014-02-19 Tom Tromey <tromey@redhat.com>
9411 * target-delegates.c: Rebuild.
9412 * target.c (target_pass_signals): Unconditionally delegate.
9413 * target.h (struct target_ops) <to_pass_signals>: Use
9414 TARGET_DEFAULT_IGNORE.
9416 2014-02-19 Tom Tromey <tromey@redhat.com>
9418 * target-delegates.c: Rebuild.
9419 * target.c (default_mourn_inferior): New function.
9420 (target_mourn_inferior): Unconditionally delegate.
9421 * target.h (struct target_ops) <to_mourn_inferior>: Use
9422 TARGET_DEFAULT_FUNC.
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9426 * target-delegates.c: Rebuild.
9427 * target.c (default_follow_fork): New function.
9428 (target_follow_fork): Unconditionally delegate.
9429 * target.h (struct target_ops) <to_follow_fork>: Use
9430 TARGET_DEFAULT_FUNC.
9432 2014-02-19 Tom Tromey <tromey@redhat.com>
9434 * target-delegates.c: Rebuild.
9435 * target.c (target_kill): Unconditionally delegate.
9436 * target.h (struct target_ops) <to_kill>: Use
9437 TARGET_DEFAULT_NORETURN.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * target-delegates.c: Rebuild.
9442 * target.c (target_masked_watch_num_registers): Unconditionally
9444 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9445 Use TARGET_DEFAULT_RETURN.
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9449 * target-delegates.c: Rebuild.
9450 * target.c (target_remove_mask_watchpoint): Unconditionally
9452 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9453 TARGET_DEFAULT_RETURN.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target-delegates.c: Rebuild.
9458 * target.c (target_insert_mask_watchpoint): Unconditionally
9460 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9461 TARGET_DEFAULT_RETURN.
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9465 * target-delegates.c: Rebuild.
9466 * target.c (target_ranged_break_num_registers): Unconditionally
9468 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9469 Use TARGET_DEFAULT_RETURN.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target-delegates.c: Rebuild.
9474 * target.c (target_fetch_registers): Unconditionally delegate.
9475 * target.h (struct target_ops) <to_fetch_registers>: Use
9476 TARGET_DEFAULT_NORETURN.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target-delegates.c: Rebuild.
9481 * target.c (update_current_target): Don't inherit or default
9483 * target.h (struct target_ops) <to_stop>: Use
9484 TARGET_DEFAULT_IGNORE.
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9488 * target-delegates.c: Rebuild.
9489 * target.c (update_current_target): Don't inherit or default
9490 to_can_run_breakpoint_commands.
9491 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9492 Use TARGET_DEFAULT_RETURN.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target-delegates.c: Rebuild.
9497 * target.c (update_current_target): Don't inherit or default
9498 to_supports_evaluation_of_breakpoint_conditions.
9499 * target.h (struct target_ops)
9500 <to_supports_evaluation_of_breakpoint_conditions>: Use
9501 TARGET_DEFAULT_RETURN.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target-delegates.c: Rebuild.
9506 * target.c (update_current_target): Don't inherit or default
9507 to_augmented_libraries_svr4_read.
9508 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9509 Use TARGET_DEFAULT_RETURN.
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * target-delegates.c: Rebuild.
9514 * target.c (update_current_target): Don't inherit or default
9516 * target.h (struct target_ops) <to_can_use_agent>: Use
9517 TARGET_DEFAULT_RETURN.
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target-delegates.c: Rebuild.
9522 * target.c (update_current_target): Don't inherit or default
9524 * target.h (struct target_ops) <to_use_agent>: Use
9525 TARGET_DEFAULT_NORETURN.
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9529 * target-delegates.c: Rebuild.
9530 * target.c (update_current_target): Don't inherit or default
9532 (return_null): Remove.
9533 * target.h (struct target_ops) <to_traceframe_info>: Use
9534 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
9541 * target.h (struct target_ops)
9542 <to_static_tracepoint_markers_by_strid>: Use
9543 TARGET_DEFAULT_NORETURN.
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9547 * target-delegates.c: Rebuild.
9548 * target.c (update_current_target): Don't inherit or default
9549 to_static_tracepoint_marker_at.
9550 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9551 Use TARGET_DEFAULT_RETURN.
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9555 * target-delegates.c: Rebuild.
9556 * target.c (update_current_target): Don't inherit or default
9558 * target.h (struct target_ops) <to_set_permissions>: Use
9559 TARGET_DEFAULT_IGNORE.
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9563 * target-delegates.c: Rebuild.
9564 * target.c (update_current_target): Don't inherit or default
9566 * target.h (struct target_ops) <to_get_tib_address>: Use
9567 TARGET_DEFAULT_NORETURN.
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target-delegates.c: Rebuild.
9572 * target.c (update_current_target): Don't inherit or default
9574 * target.h (struct target_ops) <to_set_trace_notes>: Use
9575 TARGET_DEFAULT_RETURN.
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9579 * target-delegates.c: Rebuild.
9580 * target.c (update_current_target): Don't initialize
9581 to_set_trace_buffer_size.
9582 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9583 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
9590 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9591 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
9598 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9599 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
9606 (return_minus_one): Remove.
9607 * target.h (struct target_ops)
9608 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9612 * target-delegates.c: Rebuild.
9613 * target.c (update_current_target): Don't inherit or default
9614 to_get_raw_trace_data.
9615 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9616 TARGET_DEFAULT_NORETURN.
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target-delegates.c: Rebuild.
9621 * target.c (update_current_target): Don't inherit or default
9622 to_upload_trace_state_variables.
9623 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9624 Use TARGET_DEFAULT_RETURN.
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
9630 to_upload_tracepoints.
9631 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9632 TARGET_DEFAULT_RETURN.
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9636 * target-delegates.c: Rebuild.
9637 * target.c (update_current_target): Don't inherit or default
9639 * target.h (struct target_ops) <to_save_trace_data>: Use
9640 TARGET_DEFAULT_NORETURN.
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9644 * target-delegates.c: Rebuild.
9645 * target.c (update_current_target): Don't inherit or default
9646 to_get_trace_state_variable_value.
9647 * target.h (struct target_ops)
9648 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target-delegates.c: Rebuild.
9653 * target.c (update_current_target): Don't inherit or default
9655 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target-delegates.c: Rebuild.
9660 * target.c (update_current_target): Don't inherit or default
9662 * target.h (struct target_ops) <to_trace_stop>: Use
9663 TARGET_DEFAULT_NORETURN.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target-delegates.c: Rebuild.
9668 * target.c (update_current_target): Don't inherit or default
9669 to_get_tracepoint_status.
9670 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9671 TARGET_DEFAULT_NORETURN.
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_get_trace_status.
9678 * target.h (struct target_ops) <to_get_trace_status>: 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.h (struct target_ops) <to_trace_start>: Use
9687 TARGET_DEFAULT_NORETURN.
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9691 * target-delegates.c: Rebuild.
9692 * target.c (update_current_target): Don't inherit or default
9693 to_trace_set_readonly_regions.
9694 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9695 Use TARGET_DEFAULT_NORETURN.
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target-delegates.c: Rebuild.
9700 * target.c (update_current_target): Don't inherit or default
9701 to_disable_tracepoint.
9702 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9703 TARGET_DEFAULT_NORETURN.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target-delegates.c: Rebuild.
9708 * target.c (update_current_target): Don't inherit or default
9709 to_enable_tracepoint.
9710 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9711 TARGET_DEFAULT_NORETURN.
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9715 * target-delegates.c: Rebuild.
9716 * target.c (update_current_target): Don't inherit or default
9717 to_download_trace_state_variable.
9718 * target.h (struct target_ops) <to_download_trace_state_variable>:
9719 Use TARGET_DEFAULT_NORETURN.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target-delegates.c: Rebuild.
9724 * target.c (update_current_target): Don't inherit or default
9725 to_can_download_tracepoint.
9726 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9727 TARGET_DEFAULT_RETURN.
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9731 * target-delegates.c: Rebuild.
9732 * target.c (update_current_target): Don't inherit or default
9733 to_download_tracepoint.
9734 * target.h (struct target_ops) <to_download_tracepoint>: Use
9735 TARGET_DEFAULT_NORETURN.
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9739 * target-delegates.c: Rebuild.
9740 * target.c (update_current_target): Don't inherit or default
9742 * target.h (struct target_ops) <to_trace_init>: Use
9743 TARGET_DEFAULT_RETURN.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target-delegates.c: Rebuild.
9748 * target.c (update_current_target): Don't inherit or default
9749 to_supports_string_tracing.
9750 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9751 TARGET_DEFAULT_RETURN.
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * target-delegates.c: Rebuild.
9756 * target.c (update_current_target): Don't inherit or default
9757 to_supports_enable_disable_tracepoint.
9758 * target.h (struct target_ops)
9759 <to_supports_enable_disable_tracepoint>: Use
9760 TARGET_DEFAULT_RETURN.
9762 2014-02-19 Tom Tromey <tromey@redhat.com>
9764 * target-delegates.c: Rebuild.
9765 * target.c (update_current_target): Don't inherit or default
9766 to_supports_multi_process.
9767 * target.h (struct target_ops) <to_supports_multi_process>: Use
9768 TARGET_DEFAULT_RETURN.
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9772 * target-delegates.c: Rebuild.
9773 * target.c (update_current_target): Don't inherit or default
9774 to_get_ada_task_ptid.
9775 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9776 TARGET_DEFAULT_FUNC.
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9780 * target-delegates.c: Rebuild.
9781 * target.c (update_current_target): Don't inherit or default
9782 to_thread_architecture.
9783 * target.h (struct target_ops) <to_thread_architecture>: Use
9784 TARGET_DEFAULT_FUNC.
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9788 * target-delegates.c: Rebuild.
9789 * target.c (update_current_target): Don't inherit or default
9790 to_execution_direction.
9791 * target.h (struct target_ops) <to_execution_direction>: Use
9792 TARGET_DEFAULT_FUNC.
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target-delegates.c: Rebuild.
9797 * target.c (update_current_target): Don't inherit or default
9798 to_can_execute_reverse.
9799 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9800 TARGET_DEFAULT_RETURN.
9801 (target_can_execute_reverse): Unconditionally delegate.
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
9808 (dummy_goto_bookmark): Remove.
9809 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9810 * target.h (struct target_ops) <to_goto_bookmark>: Use
9811 TARGET_DEFAULT_NORETURN.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * target-delegates.c: Rebuild.
9816 * target.c (update_current_target): Don't inherit or default
9818 (dummy_get_bookmark): Remove.
9819 (init_dummy_target): Don't inherit or default to_get_bookmark.
9820 * target.h (struct target_ops) <to_get_bookmark>: Use
9821 TARGET_DEFAULT_NORETURN
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9825 * target-delegates.c: Rebuild.
9826 * target.c (update_current_target): Don't inherit or default
9827 to_make_corefile_notes.
9828 (init_dummy_target): Don't initialize to_make_corefile_notes.
9829 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9830 TARGET_DEFAULT_FUNC.
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9834 * target-delegates.c: Rebuild.
9835 * target.c (update_current_target): Don't inherit or default
9836 to_find_memory_regions.
9837 (init_dummy_target): Don't initialize to_find_memory_regions.
9838 * target.h (struct target_ops) <to_find_memory_regions>: Use
9839 TARGET_DEFAULT_FUNC.
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9843 * target-delegates.c: Rebuild.
9844 * target.c (update_current_target): Don't inherit or default
9846 * target.h (struct target_ops) <to_log_command>: Use
9847 TARGET_DEFAULT_IGNORE.
9848 (target_log_command): Unconditionally delegate.
9850 2014-02-19 Tom Tromey <tromey@redhat.com>
9852 * target-delegates.c: Rebuild.
9853 * target.c (update_current_target): Don't inherit or default
9854 to_pid_to_exec_file.
9855 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9856 TARGET_DEFAULT_RETURN.
9858 2014-02-19 Tom Tromey <tromey@redhat.com>
9860 * target-delegates.c: Rebuild.
9861 * target.c (update_current_target): Don't inherit or default
9863 (target_thread_name): Unconditionally delegate.
9864 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
9872 * target.h (struct target_ops) <to_extra_thread_info>: 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
9880 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
9888 (return_one): Remove.
9889 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9890 TARGET_DEFAULT_RETURN.
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9894 * target-delegates.c: Rebuild.
9895 * target.c (update_current_target): Don't inherit or default
9896 to_insert_exec_catchpoint.
9897 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9898 TARGET_DEFAULT_RETURN.
9900 2014-01-08 Tom Tromey <tromey@redhat.com>
9902 * target-delegates.c: Rebuild.
9903 * target.c (update_current_target): Don't inherit or default
9904 to_insert_exec_catchpoint.
9905 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9906 TARGET_DEFAULT_RETURN.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target-delegates.c: Rebuild.
9911 * target.c (update_current_target): Don't inherit or default
9912 to_remove_vfork_catchpoint.
9913 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9914 TARGET_DEFAULT_RETURN.
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * target-delegates.c: Rebuild.
9919 * target.c (update_current_target): Don't inherit or default
9920 to_insert_vfork_catchpoint.
9921 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9922 TARGET_DEFAULT_RETURN.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target-delegates.c: Rebuild.
9927 * target.c (update_current_target): Don't inherit or default
9928 to_remove_fork_catchpoint.
9929 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9930 TARGET_DEFAULT_RETURN.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * target-delegates.c: Rebuild.
9935 * target.c (update_current_target): Don't inherit or default
9936 to_insert_fork_catchpoint.
9937 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9938 TARGET_DEFAULT_RETURN.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_post_startup_inferior.
9945 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9946 TARGET_DEFAULT_IGNORE.
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9950 * target-delegates.c: Rebuild.
9951 * target.c (update_current_target): Don't inherit or default
9953 * target.h (struct target_ops) <to_load>: Use
9954 TARGET_DEFAULT_NORETURN.
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * target-delegates.c: Rebuild.
9959 * target.c (update_current_target): Don't inherit or default
9961 * target.h (struct target_ops) <to_terminal_info>: Use
9962 TARGET_DEFAULT_FUNC.
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9966 * target-delegates.c: Rebuild.
9967 * target.c (update_current_target): Don't inherit or default
9968 to_terminal_save_ours.
9969 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9970 TARGET_DEFAULT_IGNORE.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9977 * target.h (struct target_ops) <to_terminal_ours>: Use
9978 TARGET_DEFAULT_IGNORE.
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9982 * target-delegates.c: Rebuild.
9983 * target.c (update_current_target): Don't inherit or default
9984 to_terminal_ours_for_output.
9985 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9986 TARGET_DEFAULT_IGNORE.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target-delegates.c: Rebuild.
9991 * target.c (update_current_target): Don't inherit or default
9992 to_terminal_inferior.
9993 * target.h (struct target_ops) <to_terminal_inferior>: Use
9994 TARGET_DEFAULT_IGNORE.
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target-delegates.c: Rebuild.
9999 * target.c (update_current_target): Don't inherit or default
10001 * target.h (struct target_ops) <to_terminal_init>: Use
10002 TARGET_DEFAULT_IGNORE.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target-delegates.c: Rebuild.
10007 * target.c (update_current_target): Don't inherit or default
10008 to_can_accel_watchpoint_condition.
10009 * target.h (struct target_ops)
10010 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target-delegates.c: Rebuild.
10015 * target.c (update_current_target): Don't inherit or default
10016 to_region_ok_for_hw_watchpoint.
10017 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10018 Use TARGET_DEFAULT_FUNC.
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10022 * target-delegates.c: Rebuild.
10023 * target.c (update_current_target): Don't inherit or default
10024 to_watchpoint_addr_within_range.
10025 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10026 Use TARGET_DEFAULT_FUNC.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10030 * target-delegates.c: Rebuild.
10031 * target.c (update_current_target): Don't inherit or default
10032 to_remove_watchpoint.
10033 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10034 TARGET_DEFAULT_NORETURN.
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10038 * target-delegates.c: Rebuild.
10039 * target.c (update_current_target): Don't inherit or default
10040 to_insert_watchpoint.
10041 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10042 TARGET_DEFAULT_RETURN.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target-delegates.c: Rebuild.
10047 * target.c (update_current_target): Don't inherit or default
10048 to_remove_hw_breakpoint.
10049 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10050 TARGET_DEFAULT_RETURN.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target-delegates.c: Rebuild.
10055 * target.c (update_current_target): Don't inherit or default
10056 to_insert_hw_breakpoint.
10057 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10058 TARGET_DEFAULT_RETURN.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10064 to_can_use_hw_breakpoint.
10065 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10066 TARGET_DEFAULT_RETURN.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (update_current_target): Don't inherit or default
10073 * target.h (struct target_ops) <to_files_info>: Use
10074 TARGET_DEFAULT_IGNORE.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't inherit or default
10081 * target.h (struct target_ops) <to_store>: Use
10082 TARGET_DEFAULT_NORETURN.
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10086 * target-delegates.c: Rebuild.
10087 * target.c (update_current_target): Don't inherit or default
10089 * target.h (struct target_ops) <to_post_attach>: Use
10090 TARGET_DEFAULT_IGNORE.
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target-delegates.c: Rebuild.
10095 * target.c (update_current_target): Don't inherit or default
10097 (default_rcmd): New function.
10098 (do_monitor_command): Unconditionally delegate.
10099 * target.h (struct target_ops) <to_rmcd>: Use
10100 TARGET_DEFAULT_FUNC.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target-delegates.c: Rebuild.
10105 * target.c (init_dummy_target): Don't initialize to_attach.
10106 (target_attach): Unconditionally delegate.
10107 * target.h (struct target_ops) <to_attach>: Use
10108 TARGET_DEFAULT_FUNC.
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10112 * target-delegates.c: Rebuild.
10113 * target.c (target_detach): Unconditionally delegate.
10114 (init_dummy_target): Don't initialize to_detach.
10115 * target.h (struct target_ops) <to_detach>: Use
10116 TARGET_DEFAULT_IGNORE.
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10122 (target_augmented_libraries_svr4_read): Add argument.
10123 * target.c (update_current_target): Update.
10124 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target.h (struct target_ops) <to_call_history_range>: Add
10131 * target.c (target_call_history_range): Add argument.
10132 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10134 (record_btrace_call_history_from): Update.
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10138 * target.h (struct target_ops) <to_call_history_from>: Add
10140 * target.c (target_call_history_from): Add argument.
10141 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target.h (struct target_ops) <to_call_history>: Add argument.
10147 * target.c (target_call_history): Add argument.
10148 * record-btrace.c (record_btrace_call_history): Add 'self'
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target.h (struct target_ops) <to_insn_history_range>: Add
10155 * target.c (target_insn_history_range): Add argument.
10156 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10158 (record_btrace_insn_history_from): Update.
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10162 * target.h (struct target_ops) <to_insn_history_from>: Add
10164 * target.c (target_insn_history_from): Add argument.
10165 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target.h (struct target_ops) <to_insn_history>: Add argument.
10171 * target.c (target_insn_history): Add argument.
10172 * record-btrace.c (record_btrace_insn_history): Add 'self'
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target.h (struct target_ops) <to_goto_record>: Add argument.
10178 * target.c (target_goto_record): Add argument.
10179 * record-full.c (record_full_goto): Add 'self' argument.
10180 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10185 * target.c (target_goto_record_end): Add argument.
10186 * record-full.c (record_full_goto_end): Add 'self' argument.
10187 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10191 * target.h (struct target_ops) <to_goto_record_begin>: Add
10193 * target.c (target_goto_record_begin): Add argument.
10194 * record-full.c (record_full_goto_begin): Add 'self' argument.
10195 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10200 * target.h (struct target_ops) <to_record_is_replaying>: Add
10202 * target.c (target_record_is_replaying): Add argument.
10203 * record-full.c (record_full_is_replaying): Add 'self' argument.
10204 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10206 (record_btrace_xfer_partial, record_btrace_store_registers)
10207 (record_btrace_prepare_to_store, record_btrace_resume)
10208 (record_btrace_wait, record_btrace_decr_pc_after_break)
10209 (record_btrace_find_new_threads, record_btrace_thread_alive):
10212 2014-02-19 Tom Tromey <tromey@redhat.com>
10214 * target.h (struct target_ops) <to_delete_record>: Add argument.
10215 * target.c (target_delete_record): Add argument.
10216 * record-full.c (record_full_delete): Add 'self' argument.
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10220 * target.h (struct target_ops) <to_save_record>: Add argument.
10221 * target.c (target_save_record): Add argument.
10222 * record-full.c (record_full_save): Add 'self' argument.
10223 (record_full_save): Add 'self' argument.
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10227 * target.h (struct target_ops) <to_info_record>: Add argument.
10228 * target.c (target_info_record): Add argument.
10229 * record.c (info_record_command): Add argument.
10230 * record-full.c (record_full_info): Add 'self' argument.
10231 * record-btrace.c (record_btrace_info): Add 'self' argument.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10236 * target.c (target_stop_recording): Add argument.
10237 * record.c (record_stop): Add argument.
10238 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10244 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10245 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10247 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10248 (_initialize_amd64_linux_nat): Use it.
10249 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10250 (_initialize_i386_linux_nat): Use it.
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10254 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10255 * target.c (target_teardown_btrace): Add argument.
10256 * remote.c (remote_teardown_btrace): Add 'self' argument.
10257 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10259 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10265 * target.c (target_disable_btrace): Add argument.
10266 * remote.c (remote_disable_btrace): Add 'self' argument.
10267 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10269 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10275 * target.c (target_enable_btrace): Add argument.
10276 * remote.c (remote_enable_btrace): Add 'self' argument.
10277 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10279 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10284 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10285 (target_can_use_agent): Add argument.
10286 * target.c (update_current_target): Update.
10287 * remote.c (remote_can_use_agent): Add 'self' argument.
10288 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10292 * target.h (struct target_ops) <to_use_agent>: Add argument.
10293 (target_use_agent): Add argument.
10294 * target.c (update_current_target): Update.
10295 * remote.c (remote_use_agent): Add 'self' argument.
10296 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10298 2014-02-19 Tom Tromey <tromey@redhat.com>
10300 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10301 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10302 (target_traceframe_info): Add argument.
10303 * target.c (update_current_target): Update.
10304 * remote.c (remote_traceframe_info): Add 'self' argument.
10305 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10307 2014-02-19 Tom Tromey <tromey@redhat.com>
10309 * target.h (target_static_tracepoint_markers_by_strid): Add
10311 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10313 * target.c (update_current_target): Update.
10314 * remote.c (struct target_ops)
10315 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10316 * linux-nat.c (struct target_ops)
10317 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10323 (target_static_tracepoint_marker_at): Add argument.
10324 * target.c (update_current_target): Update.
10325 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10330 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10331 (target_set_permissions): Add argument.
10332 * target.c (update_current_target): Update.
10333 * remote.c (remote_set_permissions): Add 'self' argument.
10334 (remote_start_remote): Update.
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10338 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10339 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10340 (target_get_tib_address): Add argument.
10341 * target.c (update_current_target): Update.
10342 * remote.c (remote_get_tib_address): Add 'self' argument.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10347 (target_set_trace_notes): Add argument.
10348 * target.c (update_current_target): Update.
10349 * remote.c (remote_set_trace_notes): Add 'self' argument.
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10353 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10355 (target_set_trace_buffer_size): Add argument.
10356 * target.c (update_current_target): Update.
10357 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10359 2014-02-19 Tom Tromey <tromey@redhat.com>
10361 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10363 (target_set_circular_trace_buffer): Add argument.
10364 * target.c (update_current_target): Update.
10365 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10368 2014-02-19 Tom Tromey <tromey@redhat.com>
10370 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10372 (target_set_disconnected_tracing): Add argument.
10373 * target.c (update_current_target): Update.
10374 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10378 * target.h (struct target_ops)
10379 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10380 (target_get_min_fast_tracepoint_insn_len): Add argument.
10381 * target.c (update_current_target): Update.
10382 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10387 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10389 (target_get_raw_trace_data): Add argument.
10390 * target.c (update_current_target): Update.
10391 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10395 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10397 (target_upload_trace_state_variables): Add argument.
10398 * target.c (update_current_target): Update.
10399 * remote.c (remote_upload_trace_state_variables): Add 'self'
10401 (remote_start_remote): Update.
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10405 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10407 (target_upload_tracepoints): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10410 (remote_start_remote): Update.
10412 2014-02-19 Tom Tromey <tromey@redhat.com>
10414 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10415 (target_save_trace_data): Add argument.
10416 * target.c (update_current_target): Update.
10417 * remote.c (remote_save_trace_data): Add 'self' argument.
10419 2014-02-19 Tom Tromey <tromey@redhat.com>
10421 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10423 * target.h (struct target_ops)
10424 <to_get_trace_state_variable_value>: Add argument.
10425 (target_get_trace_state_variable_value): Add argument.
10426 * target.c (update_current_target): Update.
10427 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10429 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10433 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10434 * target.h (struct target_ops) <to_trace_find>: Add argument.
10435 (target_trace_find): Add argument.
10436 * target.c (update_current_target): Update.
10437 * remote.c (remote_trace_find): Add 'self' argument.
10438 * ctf.c (ctf_trace_find): Add 'self' argument.
10440 2014-02-19 Tom Tromey <tromey@redhat.com>
10442 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10443 (target_trace_stop): Add argument.
10444 * target.c (update_current_target): Update.
10445 * remote.c (remote_trace_stop): Add 'self' argument.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10450 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10452 (target_get_tracepoint_status): Add argument.
10453 * target.c (update_current_target): Update.
10454 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10458 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10459 * target.h (struct target_ops) <to_get_trace_status>: Add
10461 (target_get_trace_status): Add argument.
10462 * target.c (update_current_target): Update.
10463 * remote.c (remote_get_trace_status): Add 'self' argument.
10464 (remote_start_remote, remote_can_download_tracepoint): Update.
10465 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * target.h (struct target_ops) <to_trace_start>: Add argument.
10470 (target_trace_start): Add argument.
10471 * target.c (update_current_target): Update.
10472 * remote.c (remote_trace_start): Add 'self' argument.
10474 2014-02-19 Tom Tromey <tromey@redhat.com>
10476 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10478 (target_trace_set_readonly_regions): Add argument.
10479 * target.c (update_current_target): Update.
10480 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10485 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10487 (target_disable_tracepoint): Add argument.
10488 * target.c (update_current_target): Update.
10489 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10493 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10495 (target_enable_tracepoint): Add argument.
10496 * target.c (update_current_target): Update.
10497 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10499 2014-02-19 Tom Tromey <tromey@redhat.com>
10501 * target.h (struct target_ops) <to_download_trace_state_variable>:
10503 (target_download_trace_state_variable): Add argument.
10504 * target.c (update_current_target): Update.
10505 * remote.c (remote_download_trace_state_variable): Add 'self'
10508 2014-02-19 Tom Tromey <tromey@redhat.com>
10510 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10512 (target_can_download_tracepoint): Add argument.
10513 * target.c (update_current_target): Update.
10514 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10518 * target.h (struct target_ops) <to_download_tracepoint>: Add
10520 (target_download_tracepoint): Add argument.
10521 * target.c (update_current_target): Update.
10522 * remote.c (remote_download_tracepoint): Add 'self' argument.
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target.h (struct target_ops) <to_trace_init>: Add argument.
10527 (target_trace_init): Add argument.
10528 * target.c (update_current_target): Update.
10529 * remote.c (remote_trace_init): Add 'self' argument.
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10533 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10534 * target.c (target_fileio_readlink): Add argument.
10535 * remote.c (remote_hostio_readlink): Add 'self' argument.
10536 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10541 * target.c (target_fileio_unlink): Add argument.
10542 * remote.c (remote_hostio_unlink): Add 'self' argument.
10543 (remote_file_delete): Update.
10544 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10546 2014-02-19 Tom Tromey <tromey@redhat.com>
10548 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10549 * target.c (target_fileio_close): Add argument.
10550 * remote.c (remote_hostio_close): Add 'self' argument.
10551 (remote_hostio_close_cleanup): Update.
10552 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10554 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10556 2014-02-19 Tom Tromey <tromey@redhat.com>
10558 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10559 * target.c (target_fileio_pread): Add argument.
10560 * remote.c (remote_hostio_pread): Add 'self' argument.
10561 (remote_bfd_iovec_pread, remote_file_get): Update.
10562 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10564 2014-02-19 Tom Tromey <tromey@redhat.com>
10566 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10567 * target.c (target_fileio_pwrite): Add argument.
10568 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10569 (remote_file_put): Update.
10570 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10574 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10575 * target.c (target_fileio_open): Add argument.
10576 * remote.c (remote_hostio_open): Add 'self' argument.
10577 (remote_bfd_iovec_open): Add 'self' argument.
10578 (remote_file_put): Add 'self' argument.
10579 (remote_file_get): Add 'self' argument.
10580 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10586 (target_can_run_breakpoint_commands): Add argument.
10587 * target.c (update_current_target): Update.
10588 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10590 (remote_insert_breakpoint): Add 'self' argument.
10591 (remote_insert_hw_breakpoint): Add 'self' argument.
10592 (remote_can_run_breakpoint_commands): Add 'self' argument.
10594 2014-02-19 Tom Tromey <tromey@redhat.com>
10596 * target.h (struct target_ops)
10597 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10598 (target_supports_evaluation_of_breakpoint_conditions): Add
10600 * target.c (update_current_target): Update.
10601 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10603 (remote_insert_breakpoint): Add 'self' argument.
10604 (remote_insert_hw_breakpoint): Add 'self' argument.
10605 (remote_supports_cond_breakpoints): Add 'self' argument.
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10611 (target_supports_string_tracing): Add argument.
10612 * target.c (update_current_target): Update.
10613 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10617 * target.h (struct target_ops)
10618 <to_supports_disable_randomization>: Add argument.
10619 * target.c (find_default_supports_disable_randomization): Add
10621 (target_supports_disable_randomization): Add argument.
10622 (find_default_supports_disable_randomization): Add 'self'
10624 * remote.c (extended_remote_supports_disable_randomization): Add
10626 (remote_supports_disable_randomization): Add 'self' argument.
10627 (extended_remote_create_inferior): Update.
10628 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * target.h (struct target_ops)
10634 <to_supports_enable_disable_tracepoint>: Add argument.
10635 (target_supports_enable_disable_tracepoint): Add argument.
10636 * target.c (update_current_target): Update.
10637 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10642 * target.h (struct target_ops) <to_supports_multi_process>: Add
10644 (target_supports_multi_process): Add argument.
10645 * target.c (update_current_target): Update.
10646 * remote.c (remote_supports_multi_process): Add 'self' argument.
10647 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10649 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10652 2014-02-19 Tom Tromey <tromey@redhat.com>
10654 * target.h (struct target_ops) <to_execution_direction>: Add
10656 (target_execution_direction): Add argument.
10657 * target.c (default_execution_direction): Add 'self' argument.
10658 * record-full.c (record_full_execution_direction): Add 'self'
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10665 (target_can_execute_reverse): Add argument.
10666 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10667 * record-full.c (record_full_can_execute_reverse): Add 'self'
10669 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10675 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10677 (target_get_ada_task_ptid): Add argument.
10678 * target.c (update_current_target): Update.
10679 (default_get_ada_task_ptid): Add 'self' argument.
10680 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10681 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10682 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10684 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10686 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10688 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10690 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10691 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10696 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10697 (target_goto_bookmark): Add argument.
10698 * target.c (dummy_goto_bookmark): Add 'self' argument.
10699 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10703 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10704 (target_get_bookmark): Add argument.
10705 * target.c (dummy_get_bookmark): Add 'self' argument.
10706 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10710 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10712 (target_make_corefile_notes): Add argument.
10713 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10714 * procfs.c (procfs_make_note_section): Add 'self' argument.
10715 (procfs_make_note_section): Add 'self' argument.
10716 (procfs_make_note_section): Add 'self' argument.
10717 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10719 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10720 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10721 * exec.c (exec_make_note_section): Add 'self' argument.
10722 (exec_make_note_section): Add 'self' argument.
10724 2014-02-19 Tom Tromey <tromey@redhat.com>
10726 * target.h (struct target_ops) <to_find_memory_regions>: Add
10728 (target_find_memory_regions): Add argument.
10729 * target.c (dummy_find_memory_regions): Add 'self' argument.
10730 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10731 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10732 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10733 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10734 * exec. (exec_do_find_memory_regions): New global.
10735 (exec_set_find_memory_regions): Rewrite.
10736 (exec_find_memory_regions): New function.
10737 (init_exec_ops): Use exec_find_memory_regions.
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10741 * target.h (struct target_ops) <to_supports_non_stop>: Add
10743 * target.c (find_default_supports_non_stop): Add argument.
10744 (target_supports_non_stop): Add argument.
10745 (find_default_supports_non_stop): Add 'self' argument.
10746 * remote.c (remote_supports_non_stop): Add 'self' argument.
10747 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10751 * target.h (struct target_ops) <to_log_command>: Add argument.
10752 (target_log_command): Add argument.
10753 * serial.h (serial_log_command): Add 'self' argument.
10754 * serial.c (serial_log_command): Add 'self' argument.
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10758 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10759 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10761 (target_pid_to_exec_file): Add argument.
10762 * target.c (debug_to_pid_to_exec_file): Add argument.
10763 (update_current_target): Update.
10764 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10765 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10766 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10767 (linux_handle_extended_wait): Update.
10768 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10769 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10770 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10771 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10773 2014-02-19 Tom Tromey <tromey@redhat.com>
10775 * target.h (struct target_ops) <to_rcmd>: Add argument.
10776 (target_rcmd): Add argument.
10777 * target.c (debug_to_rcmd): Add argument.
10778 (update_current_target, do_monitor_command): Update.
10779 * remote.c (remote_rcmd): Add 'self' argument.
10780 * monitor.c (monitor_rcmd): Add 'self' argument.
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10784 * windows-nat.c (windows_stop): Add 'self' argument.
10785 * target.h (struct target_ops) <to_stop>: Add argument.
10786 * target.c (target_stop): Add argument.
10787 (debug_to_stop): Add argument.
10788 (update_current_target): Update.
10789 * remote.c (remote_stop): Add 'self' argument.
10790 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10791 (gdbsim_cntrl_c): Update.
10792 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10793 * procfs.c (procfs_stop): Add 'self' argument.
10794 * nto-procfs.c (procfs_stop): Add 'self' argument.
10795 * monitor.c (monitor_stop): Add 'self' argument.
10796 (monitor_open): Update.
10797 * linux-nat.c (linux_nat_stop): Add argument.
10798 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10799 * gnu-nat.c (gnu_stop): Add 'self' argument.
10800 * darwin-nat.c (darwin_stop): Add 'self' argument.
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10804 * target.h (struct target_ops) <to_thread_name>: Add argument.
10805 * target.c (target_thread_name): Add argument.
10806 (update_current_target): Update.
10807 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10809 2014-02-19 Tom Tromey <tromey@redhat.com>
10811 * target.h (struct target_ops) <to_extra_thread_info>: Add
10813 (target_extra_thread_info): Add argument.
10814 * target.c (update_current_target): Update.
10815 * remote.c (remote_threads_extra_info): Add 'self' argument.
10816 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10818 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10819 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10820 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10822 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10824 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10826 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10829 2014-02-19 Tom Tromey <tromey@redhat.com>
10831 * target.h (struct target_ops) <to_program_signals>: Add argument.
10832 * target.c (target_program_signals): Add argument.
10833 * remote.c (remote_program_signals): Add 'self' argument.
10835 2014-02-19 Tom Tromey <tromey@redhat.com>
10837 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10838 * target.c (target_pass_signals): Add argument.
10839 * remote.c (remote_pass_signals): Add 'self' argument.
10840 (remote_start_remote): Update.
10841 * procfs.c (procfs_pass_signals): Add 'self' argument.
10842 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10843 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10844 (linux_nat_create_inferior, linux_nat_attach): Update.
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10848 * windows-nat.c (windows_can_run): Add 'self' argument.
10849 * target.h (struct target_ops) <to_can_run>: Add argument.
10850 (target_can_run): Add argument.
10851 * target.c (debug_to_can_run): Add argument.
10852 (update_current_target): Update.
10853 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10854 * inf-child.c (inf_child_can_run): Add 'self' argument.
10855 * go32-nat.c (go32_can_run): Add 'self' argument.
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10859 * target.h (struct target_ops) <to_has_exited>: Add argument.
10860 (target_has_exited): Add argument.
10861 * target.c (debug_to_has_exited): Add argument.
10862 (update_current_target): Update.
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10868 (target_set_syscall_catchpoint): Add argument.
10869 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10871 * target.c (update_current_target): Update.
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10875 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10877 (target_remove_exec_catchpoint): Add argument.
10878 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10879 (update_current_target): Update.
10880 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10883 2014-02-19 Tom Tromey <tromey@redhat.com>
10885 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10887 (target_insert_exec_catchpoint): Add argument.
10888 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10889 (update_current_target): Update.
10890 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10893 2014-02-19 Tom Tromey <tromey@redhat.com>
10895 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10897 (target_remove_vfork_catchpoint): Add argument.
10898 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10899 (update_current_target): Update.
10900 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10905 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10907 (target_insert_vfork_catchpoint): Add argument.
10908 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10909 (update_current_target): Update.
10910 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10917 (target_remove_fork_catchpoint): Add argument.
10918 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10919 (update_current_target): Update.
10920 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10925 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10927 (target_insert_fork_catchpoint): Add argument.
10928 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10929 (update_current_target): Update.
10930 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10937 (target_post_startup_inferior): Add argument.
10938 * target.c (debug_to_post_startup_inferior): Add argument.
10939 (update_current_target): Update.
10940 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10942 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10944 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10946 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10948 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10950 (super_post_startup_inferior): Likewise.
10951 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10953 (super_post_startup_inferior): Likewise.
10954 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10955 Add 'self' argument.
10956 (super_post_startup_inferior): Likewise.
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10960 * target.h (struct target_ops) <to_load>: Add argument.
10961 * target.c (target_load): Add argument.
10962 (debug_to_load): Add argument.
10963 (update_current_target): Update.
10964 * remote.c (remote_load): Add 'self' argument.
10965 * remote-sim.c (gdbsim_load): Add 'self' argument.
10966 * remote-mips.c (mips_load): Add 'self' argument.
10967 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10968 * monitor.c (monitor_load): Add 'self' argument.
10969 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10973 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10974 (target_terminal_info): Add argument.
10975 * target.c (debug_to_terminal_info): Add argument.
10976 (default_terminal_info): Likewise.
10977 * inflow.c (child_terminal_info): Add 'self' argument.
10978 * inferior.h (child_terminal_info): Add 'self' argument.
10979 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10981 2014-02-19 Tom Tromey <tromey@redhat.com>
10983 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10985 (target_terminal_save_ours): Add argument.
10986 * target.c (debug_to_terminal_save_ours): Add argument.
10987 (update_current_target): Update.
10988 * inflow.c (terminal_save_ours): Add 'self' argument.
10989 * inferior.h (terminal_save_ours): Add 'self' argument.
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10993 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10994 (target_terminal_ours): Add argument.
10995 * target.c (debug_to_terminal_ours): Add argument.
10996 (update_current_target): Update.
10997 * remote.c (remote_terminal_ours): Add 'self' argument.
10998 (remote_close): Update.
10999 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11000 * inflow.c (terminal_ours): Add 'self' argument.
11001 * inferior.h (terminal_ours): Add 'self' argument.
11002 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11004 2014-02-19 Pedro Alves <palves@redhat.com>
11005 Tom Tromey <tromey@redhat.com>
11007 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11009 (target_terminal_ours_for_output): Add argument.
11010 * target.c (debug_to_terminal_ours_for_output): Add argument.
11011 (update_current_target): Update.
11012 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11013 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11014 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target.h (struct target_ops) <to_terminal_inferior>: Add
11020 * target.c (target_terminal_inferior): Add argument.
11021 (update_current_target): Update.
11022 * remote.c (remote_terminal_inferior): Add 'self' argument.
11023 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11024 * inflow.c (terminal_inferior): Add 'self' argument.
11025 * inferior.h (terminal_inferior): Add 'self' argument.
11026 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11027 (go32_terminal_inferior): Add 'self' argument.
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11031 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11032 (target_terminal_init): Add argument.
11033 * target.c (debug_to_terminal_init): Add argument.
11034 (update_current_target): Update.
11035 * inflow.c (terminal_init_inferior): Add 'self' argument.
11036 * inferior.h (terminal_init_inferior): Add 'self' argument.
11037 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11038 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11042 * target.h (struct target_ops)
11043 <to_can_accel_watchpoint_condition>: Add argument.
11044 (target_can_accel_watchpoint_condition): Add argument.
11045 * target.c (debug_to_can_accel_watchpoint_condition): Add
11047 (update_current_target): Update.
11048 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11055 (target_region_ok_for_hw_watchpoint): Add argument.
11056 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11057 (default_region_ok_for_hw_watchpoint): Add argument.
11058 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11059 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11061 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11063 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11065 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11067 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11069 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11071 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11072 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11074 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11075 Add 'self' argument.
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11079 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11081 (target_insert_watchpoint): Add argument.
11082 * target.c (debug_to_insert_watchpoint): Add argument.
11083 (update_current_target): Update.
11084 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11085 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11086 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11087 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11088 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11089 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11091 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11092 (procfs_insert_hw_watchpoint): Add 'self' argument.
11093 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11095 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11097 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11099 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11100 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11102 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11107 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11109 (target_remove_watchpoint): Add argument.
11110 * target.c (debug_to_remove_watchpoint): Add argument.
11111 (update_current_target): Update.
11112 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11113 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11114 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11115 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11116 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11117 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11119 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11120 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11122 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11124 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11126 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11127 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11129 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11134 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11136 (target_remove_hw_breakpoint): Add argument.
11137 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11138 (update_current_target): Update.
11139 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11140 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11142 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11143 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11145 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11150 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11152 (target_insert_hw_breakpoint): Add argument.
11153 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11154 (update_current_target): Update.
11155 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11156 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11158 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11159 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11160 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11162 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11169 (target_can_use_hardware_watchpoint): Add argument.
11170 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11171 (update_current_target): Update.
11172 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11174 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11176 * remote.c (remote_check_watch_resources): Add 'self' argument.
11177 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11178 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11180 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11181 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11183 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11185 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11187 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11189 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11191 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11193 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11194 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11196 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11199 2014-02-19 Tom Tromey <tromey@redhat.com>
11201 * target.h (struct target_ops) <to_post_attach>: Add argument.
11202 (target_post_attach): Add argument.
11203 * target.c (debug_to_post_attach): Add argument.
11204 (update_current_target): Update.
11205 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11206 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11207 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11208 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11209 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11211 2014-02-19 Tom Tromey <tromey@redhat.com>
11213 * windows-nat.c (windows_close): Add 'self' argument.
11214 * tracepoint.c (tfile_close): Add 'self' argument.
11215 * target.h (struct target_ops) <to_close>: Add argument.
11216 * target.c (target_close): Add argument.
11217 (update_current_target): Update.
11218 * remote.c (remote_close): Add 'self' argument.
11219 * remote-sim.c (gdbsim_close): Add 'self' argument.
11220 * remote-mips.c (mips_close): Add 'self' argument.
11221 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11222 * record-full.c (record_full_close): Add 'self' argument.
11223 * record-btrace.c (record_btrace_close): Add 'self' argument.
11224 * monitor.h (monitor_close): Add 'self' argument.
11225 * monitor.c (monitor_close): Add 'self' argument.
11226 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11227 * linux-nat.c (linux_nat_close): Add argument.
11228 * go32-nat.c (go32_close): Add 'self' argument.
11229 * exec.c (exec_close_1): Add 'self' argument.
11230 * ctf.c (ctf_close): Add 'self' argument.
11231 * corelow.c (core_close): Add 'self' argument.
11232 (core_close_cleanup): Update.
11233 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11234 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11236 2014-02-19 Tom Tromey <tromey@redhat.com>
11238 * remote.c (remote_load): New function.
11239 (init_remote_ops): Use it.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11245 * common/linux-btrace.h (linux_supports_btrace): Update.
11246 * remote.c (remote_supports_btrace): Add "self" argument.
11247 * target-delegates.c: Rebuild.
11248 * target.c (target_supports_btrace): Remove.
11249 * target.h (struct target_ops) <to_supports_btrace>: Add
11250 target_ops argument.
11251 (target_supports_btrace): New define.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * record-full.c (record_full_beneath_to_resume_ops)
11256 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11257 (record_full_beneath_to_wait)
11258 (record_full_beneath_to_store_registers_ops)
11259 (record_full_beneath_to_store_registers)
11260 (record_full_beneath_to_xfer_partial_ops)
11261 (record_full_beneath_to_xfer_partial)
11262 (record_full_beneath_to_insert_breakpoint_ops)
11263 (record_full_beneath_to_insert_breakpoint)
11264 (record_full_beneath_to_remove_breakpoint_ops)
11265 (record_full_beneath_to_remove_breakpoint)
11266 (record_full_beneath_to_stopped_by_watchpoint)
11267 (record_full_beneath_to_stopped_data_address)
11268 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11269 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11270 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11271 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11272 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11273 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11274 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11275 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11276 (record_full_resume, record_full_wait_1)
11277 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11278 (record_full_store_registers, record_full_xfer_partial)
11279 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11280 (record_full_async, record_full_core_xfer_partial): Use target
11282 * target-delegates.c: Rebuild.
11283 * target.c (current_xfer_partial): Remove.
11284 (update_current_target): Do not INHERIT or de_fault
11285 to_insert_breakpoint, to_remove_breakpoint,
11286 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11287 to_is_async_p, to_async. Do not set to_xfer_partial field.
11288 (default_xfer_partial): Simplify.
11289 (current_xfer_partial): Remove.
11290 (target_wait, target_resume): Simplify.
11291 (find_default_can_async_p, find_default_is_async_p): Update.
11292 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11293 to_xfer_partial, to_stopped_by_watchpoint,
11294 to_stopped_data_address.
11295 (target_store_registers): Simplify.
11296 (forward_target_remove_breakpoint)
11297 (forward_target_insert_breakpoint): Remove.
11298 (target_remove_breakpoint, target_insert_breakpoint)
11299 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11300 * target.h (struct target_ops) <to_resume, to_wait,
11301 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11302 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11303 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11305 (forward_target_remove_breakpoint)
11306 (forward_target_insert_breakpoint): Remove.
11307 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11309 (record_btrace_insert_breakpoint): Delegate directly.
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target-delegates.c: New file.
11315 * target.c: Include target-delegates.c.
11316 (init_dummy_target): Call install_dummy_methods.
11317 (complete_target_initialization): Call install_delegators.
11318 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11319 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11320 * make-target-delegates: New file.
11322 2014-02-19 Tom Tromey <tromey@redhat.com>
11324 * record.c (find_record_target): Use find_target_at.
11325 * target.c (find_target_at): New function.
11326 * target.h (find_target_at): Declare.
11328 2014-02-19 Tom Tromey <tromey@redhat.com>
11330 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11331 Add 'ops' argument.
11332 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11334 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11335 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11337 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11339 * linux-nat.c (save_sigtrap): Update.
11340 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11341 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11342 (linux_nat_close): Update.
11343 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11345 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11347 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11348 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11349 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11350 (tmp_to_async): Add 'ops' argument.
11351 (record_full_stopped_by_watchpoint, record_full_async)
11352 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11354 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11355 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11356 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11357 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11358 (remote_is_async_p, remote_async): Add 'ops' argument.
11359 (remote_stopped_data_address): Update.
11360 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11361 * target.c (update_current_target)
11362 (find_default_can_async_p, find_default_is_async_p): Update.
11363 (init_dummy_target): Update.
11364 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11365 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11366 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11367 (target_can_async_p, target_is_async_p, target_async)
11368 (target_stopped_by_watchpoint): Update.
11370 2014-02-19 Yao Qi <yao@codesourcery.com>
11373 * gdbarch.sh: Remove startup_gdbarch.
11374 * gdbarch.c: Regenerated.
11375 * gdbarch.h: Likewise.
11377 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11379 * rl78-tdep.c (rl78_g10_register_name): New function.
11380 (rl78_return_value): Add g10 support.
11381 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11384 2014-02-17 Doug Evans <xdje42@gmail.com>
11386 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11387 (SUBDIR_GUILE_SRCS): Ditto.
11388 (scm-gsmob.o): Ditto.
11390 2014-02-17 Yao Qi <yao@codesourcery.com>
11392 * gnu-nat.c (ILL_RPC): Declare defined function.
11394 2014-02-17 Yao Qi <yao@codesourcery.com>
11396 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11397 mach_msg_type_number_t.
11398 (gnu_write_inferior): Likewise.
11400 2014-02-17 Yao Qi <yao@codesourcery.com>
11402 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11404 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11405 (inf_validate_procs, inf_signal): Likewise.
11406 (S_exception_raise_request): Likewise.
11407 (do_mach_notify_dead_name): Likewise.
11408 (steal_exc_port): Likewise.
11409 (gnu_read_inferior): Change 'copy_count''s type to
11410 mach_msg_type_number_t.
11411 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11414 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11416 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11417 flag. Adjust all users; in particular...
11418 (gnu_wait): ..., don't decrement its value in here...
11419 (gnu_create_inferior): ..., and instead set the flag in here,
11420 around the startup_inferior call, and call that one with
11421 START_INFERIOR_TRAPS_EXPECTED.
11423 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11424 (ILL_RPC): ... new macro.
11425 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11426 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11427 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11428 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11429 functions with ILL_RPC macro.
11430 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11431 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11432 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11433 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11434 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11435 (S_proc_getlogin_reply, S_proc_getsid_reply)
11436 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11437 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11438 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11439 (S_proc_getnports_reply, S_proc_is_important_reply)
11440 (S_proc_get_code_reply): New stub functions, generated with
11443 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11444 collected the type check structures.
11446 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11448 2014-02-14 Doug Evans <dje@google.com>
11450 * target.c (target_write_partial): Fix result type.
11452 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11454 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11455 the proper offsets to access fpregset_t.
11457 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11459 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11460 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11461 * h8300-tdep.c (setmachinelist): Remove global.
11462 * hppa-tdep.c (hppa_sigtramp): Remove global.
11463 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11464 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11465 * ravenscar-thread.c (update_target_observer): Remove global.
11466 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11468 2014-02-12 Tom Tromey <tromey@redhat.com>
11470 * common/rsp-low.c: Update comments.
11471 * common/rsp-low.h: Update comments.
11473 2014-02-12 Tom Tromey <tromey@redhat.com>
11475 * common/rsp-low.c (convert_ascii_to_int): Remove.
11476 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11478 2014-02-12 Tom Tromey <tromey@redhat.com>
11480 * common/rsp-low.h (unhexify): Don't declare.
11481 * common/rsp-low.c (unhexify): Remove.
11483 2014-02-12 Tom Tromey <tromey@redhat.com>
11485 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11486 * common/rsp-low.c (convert_int_to_ascii): Remove.
11488 2014-02-12 Tom Tromey <tromey@redhat.com>
11490 * common/rsp-low.h (hexify): Don't declare.
11491 * common/rsp-low.c (hexify): Remove.
11493 2014-02-12 Tom Tromey <tromey@redhat.com>
11495 * common/rsp-low.c (hexify): Never take strlen of argument.
11497 2014-02-12 Tom Tromey <tromey@redhat.com>
11499 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11500 * remote.c (extended_remote_run, remote_rcmd)
11501 (remote_download_trace_state_variable, remote_save_trace_data)
11502 (remote_set_trace_notes): Update.
11503 * tracepoint.c (encode_source_string, tfile_write_status)
11504 (tfile_write_uploaded_tsv): Update.
11506 2014-02-12 Tom Tromey <tromey@redhat.com>
11508 * tracepoint.c: Include rsp-low.h.
11509 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11510 * remote.c: Include rsp-low.h.
11511 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11512 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11513 (remote_unescape_input): Move to common/rsp-low.c.
11514 * common/rsp-low.h: New file.
11515 * common/rsp-low.c: New file.
11516 * Makefile.in (SFILES): Add common/rsp-low.c.
11517 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11518 (COMMON_OBS): Add rsp-low.o.
11519 (rsp-low.o): New target.
11521 2014-02-12 Tom Tromey <tromey@redhat.com>
11523 * utils.h: Include print-utils.h.
11524 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11525 (int_string, core_addr_to_string, core_addr_to_string_nz)
11526 (hex_string, hex_string_custom): Don't declare.
11527 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11528 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11529 (hex_string_custom, int_string, core_addr_to_string)
11530 (core_addr_to_string_nz, host_address_to_string): Move to
11531 common/print-utils.c.
11532 * common/print-utils.h: New file.
11533 * common/print-utils.c: New file
11534 * Makefile.in (SFILES): Add common/print-utils.c.
11535 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11536 (COMMON_OBS): Add print-utils.o.
11537 (print-utils.o): New target.
11539 2014-02-12 Tom Tromey <tromey@redhat.com>
11541 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11543 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11545 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11547 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11549 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11550 if a PT_IO ptrace request returns sucessfully but indicates that 0
11551 bytes were transferred.
11553 2014-02-12 Pedro Alves <palves@redhat.com>
11554 Kevin Buettner <kevinb@redhat.com>
11556 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11557 TYPE_INSTANCE_FLAG_CODE_SPACE.
11559 2014-02-12 Pedro Alves <palves@redhat.com>
11561 * h8300-tdep.c (pseudo_from_raw_register)
11562 (raw_from_pseudo_register): New functions.
11563 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11566 2014-02-12 Pedro Alves <palves@redhat.com>
11568 * h8300-tdep.c (h8300_register_sim_regno): New function.
11569 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11570 gdbarch_register_sim_regno hook.
11572 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11574 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11576 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11578 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11580 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11582 * obsd-tdep.h (obsd_init_abi): New prototype.
11583 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11584 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11585 (obsd_init_abi): New functions.
11586 * i386obsd-tdep.c: Include "obsd-tdep.h".
11587 (i386obsd_init_abi): Call obsd_init_abi.
11588 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11589 (amd64obsd_init_abi): Call obsd_init_abi.
11590 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11591 obsd-tdep.c to gdb_target_obs.
11593 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11595 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11596 double float arguments to 16-byte in the argument slots.
11598 2014-02-11 Doug Evans <xdje42@gmail.com>
11600 * configure.ac: Don't crash if pkg-config is not found and guile
11601 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11603 * configure: Regenerate.
11605 2014-02-11 Yao Qi <yao@codesourcery.com>
11607 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11608 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11609 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11610 * gnu-nat.c (gnu_xfer_memory): Likewise.
11611 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11612 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11613 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11614 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11616 2014-02-11 Yao Qi <yao@codesourcery.com>
11618 * target.h (enum target_xfer_error): Rename to ...
11619 (enum target_xfer_status): ... it. New. All users updated.
11620 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11622 (TARGET_XFER_STATUS_ERROR_P): New macro.
11623 (target_xfer_error_to_string): Remove declaration.
11624 (target_xfer_status_to_string): Declare.
11625 (target_xfer_partial_ftype): Adjust it.
11626 (struct target_ops) <to_xfer_partial>: Return
11627 target_xfer_status. Add argument xfered_len. Update
11629 * target.c (target_xfer_error_to_string): Rename to ...
11630 (target_xfer_status_to_string): ... it. New. All callers
11632 (target_read_live_memory): Likewise. Call target_xfer_partial
11633 instead of target_read.
11634 (memory_xfer_live_readonly_partial): Return
11635 target_xfer_status. Add argument xfered_len.
11636 (raw_memory_xfer_partial): Likewise.
11637 (memory_xfer_partial_1): Likewise.
11638 (memory_xfer_partial): Likewise.
11639 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11640 properly. Update debug message.
11641 (default_xfer_partial, current_xfer_partial): Likewise.
11642 (target_write_partial): Likewise.
11643 (target_read_partial): Likewise. All callers updated.
11644 (read_whatever_is_readable): Likewise.
11645 (target_write_with_progress): Likewise.
11646 (target_read_alloc_1): Likewise.
11648 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11649 * auxv.c (procfs_xfer_auxv): Likewise.
11650 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11651 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11652 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11653 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11654 * corefile.c (read_memory): Adjust.
11655 * corelow.c (core_xfer_partial): Likewise.
11656 * ctf.c (ctf_xfer_partial): Likewise.
11657 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11659 (darwin_xfer_partial): Likewise.
11660 * exec.c (section_table_xfer_memory_partial): Likewise. All
11662 (exec_xfer_partial): Likewise.
11663 * exec.h (section_table_xfer_memory_partial): Update
11665 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11667 (gnu_xfer_partial): Likewise.
11668 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11669 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11670 (ia64_hpux_xfer_solib_got): Likewise.
11671 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11672 type of 'partial_len' to ULONGEST.
11673 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11674 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11675 (linux_nat_xfer_partial): Likewise.
11676 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11677 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11678 * monitor.c (monitor_xfer_memory): Likewise.
11679 (monitor_xfer_partial): Likewise.
11680 * procfs.c (procfs_xfer_partial): Likewise.
11681 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11682 * record-full.c (record_full_xfer_partial): Likewise.
11683 (record_full_core_xfer_partial): Likewise.
11684 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11685 (gdbsim_xfer_partial): Likewise.
11686 * remote.c (remote_write_bytes_aux): Likewise. All callers
11688 (remote_write_bytes, remote_read_bytes): Likewise. All
11690 (remote_flash_erase): Likewise. All callers updated.
11691 (remote_write_qxfer): Likewise. All callers updated.
11692 (remote_read_qxfer): Likewise. All callers updated.
11693 (remote_xfer_partial): Likewise.
11694 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11695 (rs6000_xfer_shared_libraries): Likewise.
11696 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11697 (sol_thread_xfer_partial): Likewise.
11698 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11699 (sparc_xfer_partial): Likewise.
11700 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11702 (spu_xfer_partial): Likewise.
11703 * spu-multiarch.c (spu_xfer_partial): Likewise.
11704 * tracepoint.c (tfile_xfer_partial): Likewise.
11705 * windows-nat.c (windows_xfer_memory): Likewise.
11706 (windows_xfer_shared_libraries): Likewise.
11707 (windows_xfer_partial): Likewise.
11708 * valprint.c: Replace 'target_xfer_error' with
11709 'target_xfer_status' in comments.
11711 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11713 Checked in by Joel Brobecker <brobecker@adacore.com>.
11714 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11716 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11718 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11719 function parameters.
11721 2014-02-10 Will Newton <will.newton@linaro.org>
11723 * elfread.c (elf_rel_plt_read): Look for a .got section if
11724 looking up .got.plt fails.
11725 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11726 on address passed to elf_gnu_ifunc_record_cache.
11727 (elf_gnu_ifunc_resolve_addr): Likewise.
11728 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11730 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11732 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11733 (X_RETTURN): New macro.
11734 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11736 * sparc64-tdep.c (sparc64_init_abi): Hook
11737 sparc_in_function_epilogue_p.
11739 2014-02-10 Gary Benson <gbenson@redhat.com>
11741 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11742 Rename name_matcher to symbol_matcher.
11744 2014-02-10 Gary Benson <gbenson@redhat.com>
11746 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11747 Use expand_symtabs_file_matcher_ftype and
11748 expand_symtabs_symbol_matcher_ftype.
11750 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11752 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11753 (struct ada_symbol_cache): New.
11754 (ada_free_symbol_cache): Forward declare.
11755 (struct ada_pspace_data): New.
11756 (ada_pspace_data_handle): New static global.
11757 (get_ada_pspace_data, ada_pspace_data_cleanup)
11758 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11759 (cache_space, cache): Delete, now folded inside struct
11761 (ada_get_symbol_cache): New function.
11762 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11764 (_initialize_ada_language): Remove initialization of cache_space.
11765 Move call to observer_attach_inferior_exit up, grouping it
11766 with the other observer registrations inside this function.
11767 Rename command to be more general. Add call to
11768 register_program_space_data_with_cleanup.
11770 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11772 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11773 ada_new_objfile_observer.
11774 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11775 (_initialize_tasks): Update uses of ada_new_objfile_observer
11776 and ada_tasks_normal_stop_observer.
11778 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11780 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11781 returned by the 'Length attribute to integer.
11783 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11785 * ada-lang.c (_initialize_ada_language): Initialize
11786 cache_space obstack.
11788 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11790 * ada-lang.c (HASH_SIZE): New macro.
11791 (struct cache_entry): New type.
11792 (cache_space, cache): New static globals.
11793 (ada_clear_symbol_cache, find_entry): New functions.
11794 (lookup_cached_symbol, cache_symbol): Implement.
11795 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11796 (_initialize_ada_language): Attach ada_new_objfile_observer
11797 and ada_free_objfile_observer.
11799 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11801 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11802 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11803 struct block * parameter.
11804 (ada_lookup_symbol_list_worker): Constify local variable "block".
11805 Remove cast which is no longer necessary.
11807 2014-02-10 Doug Evans <xdje42@gmail.com>
11809 Add Guile as an extension language.
11810 * NEWS: Mention Guile scripting.
11811 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11812 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11813 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11814 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11815 (CLIBS): Add GUILE_LIBS.
11816 (install-guile): New rule.
11817 (guile.o): New rule.
11818 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11819 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11820 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11821 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11822 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11823 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11824 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11825 * configure.ac: New option --with-guile.
11826 * configure: Regenerate.
11827 * config.in: Regenerate.
11828 * auto-load.c: Remove #include "python/python.h". Add #include
11829 "gdb/section-scripts.h".
11830 (source_section_scripts): Handle Guile scripts.
11831 (_initialize_auto_load): Add name of Guile objfile script to
11832 scripts-directory help text.
11833 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11834 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11835 (struct breakpoint): New member scm_bp_object.
11836 * defs.h (enum command_control_type): New value guile_control.
11837 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11839 (show_user): Update comment.
11840 (_initialize_cli_cmds): Update help text for "show user". Update help
11841 text for max-user-call-depth.
11842 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11844 (multi_line_command_p): Add guile_control.
11845 (print_command_lines): Handle guile_control.
11846 (execute_control_command, recurse_read_control_structure): Ditto.
11847 (process_next_line): Recognize "guile" commands.
11848 * disasm.c (gdb_disassemble_info): Make non-static.
11849 * disasm.h: #include "dis-asm.h".
11850 (struct gdbarch): Add forward decl.
11851 (gdb_disassemble_info): Declare.
11852 * extension.c: #include "guile/guile.h".
11853 (extension_languages): Add guile.
11854 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11855 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11856 * gdbtypes.c (get_unsigned_type_max): New function.
11857 (get_signed_type_minmax): New function.
11858 * gdbtypes.h (get_unsigned_type_max): Declare.
11859 (get_signed_type_minmax): Declare.
11860 * guile/README: New file.
11861 * guile/guile-internal.h: New file.
11862 * guile/guile.c: New file.
11863 * guile/guile.h: New file.
11864 * guile/scm-arch.c: New file.
11865 * guile/scm-auto-load.c: New file.
11866 * guile/scm-block.c: New file.
11867 * guile/scm-breakpoint.c: New file.
11868 * guile/scm-disasm.c: New file.
11869 * guile/scm-exception.c: New file.
11870 * guile/scm-frame.c: New file.
11871 * guile/scm-gsmob.c: New file.
11872 * guile/scm-iterator.c: New file.
11873 * guile/scm-lazy-string.c: New file.
11874 * guile/scm-math.c: New file.
11875 * guile/scm-objfile.c: New file.
11876 * guile/scm-ports.c: New file.
11877 * guile/scm-pretty-print.c: New file.
11878 * guile/scm-safe-call.c: New file.
11879 * guile/scm-string.c: New file.
11880 * guile/scm-symbol.c: New file.
11881 * guile/scm-symtab.c: New file.
11882 * guile/scm-type.c: New file.
11883 * guile/scm-utils.c: New file.
11884 * guile/scm-value.c: New file.
11885 * guile/lib/gdb.scm: New file.
11886 * guile/lib/gdb/boot.scm: New file.
11887 * guile/lib/gdb/experimental.scm: New file.
11888 * guile/lib/gdb/init.scm: New file.
11889 * guile/lib/gdb/iterator.scm: New file.
11890 * guile/lib/gdb/printing.scm: New file.
11891 * guile/lib/gdb/types.scm: New file.
11892 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11893 (VPATH): Add $(GUILE_SRCDIR).
11894 (GUILE_DIR): New variable.
11895 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11896 (all): Add stamp-guile dependency.
11897 (stamp-guile): New rule.
11898 (clean-guile, install-guile, uninstall-guile): New rules.
11899 (install-only): Add install-guile dependency.
11900 (uninstall): Add uninstall-guile dependency.
11901 (clean): Add clean-guile dependency.
11903 2014-02-09 Doug Evans <xdje42@gmail.com>
11905 Revert this patch (which I approved, mea culpa).
11907 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11909 * Makefile.in (all-lib): Remove.
11910 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11912 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11914 Fix Python stack corruption.
11915 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11918 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11920 * Makefile.in (all-lib): Remove.
11921 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11923 2014-02-07 Doug Evans <dje@google.com>
11925 * extension-priv.h (extension_language_script_ops): Add comment.
11926 (extension_language_ops): Add comment.
11927 (active_ext_lang_state): Fix typo in comment.
11929 2014-02-07 Pedro Alves <palves@redhat.com>
11931 PR breakpoints/16292
11932 * infrun.c (handle_signal_stop) <signal arrives while stepping
11933 over a breakpoint>: Switch back to the stepping thread.
11935 2014-02-07 Yao Qi <yao@codesourcery.com>
11937 * target.c (target_xfer_partial): Return zero if LEN is zero.
11939 2014-02-07 Yao Qi <yao@codesourcery.com>
11941 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11942 (ld_so_xfer_auxv): Likewise.
11943 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11944 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11945 * corelow.c (core_xfer_partial): Likewise.
11946 * ctf.c (ctf_xfer_partial): Likewise.
11947 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11948 (darwin_xfer_partial): Likewise.
11949 * exec.c (exec_xfer_partial): Likewise.
11950 * gnu-nat.c (gnu_xfer_partial): Likewise.
11951 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11952 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11953 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11954 * linux-nat.c (linux_xfer_siginfo): Likewise.
11955 (linux_proc_xfer_spu): Likewise.
11956 * procfs.c (procfs_xfer_partial): Likewise.
11957 * record-full.c (record_full_xfer_partial): Likewise.
11958 (record_full_core_xfer_partial): Likewise.
11959 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11960 * remote.c (remote_write_qxfer): Likewise.
11961 (remote_write_qxfer, remote_read_qxfer): Likewise.
11962 (remote_xfer_partial): Likewise.
11963 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11964 (rs6000_xfer_shared_libraries): Likewise.
11965 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11966 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11967 (spu_xfer_partial): Likewise.
11968 * target.c (memory_xfer_partial_1): Likewise.
11969 * tracepoint.c (tfile_xfer_partial): Likewise.
11970 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11971 (windows_xfer_partial): Likewise.
11973 2014-02-07 Yao Qi <yao@codesourcery.com>
11975 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11977 (core_xfer_shared_libraries_aix): Likewise.
11978 * gdbarch.c, gdbarch.h: Regenerated.
11979 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11980 ULONGEST. Change 'len_avail' type to ULONGEST.
11981 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11982 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11984 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11986 2014-02-07 Yao Qi <yao@codesourcery.com>
11988 * corefile.c (memory_error): Get 'exception' from ERR and pass
11989 'exception' to throw_error.
11991 2014-02-06 Doug Evans <xdje42@gmail.com>
11993 * configure.ac (libpython checking): Remove all but python.o from
11994 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11995 * configure: Regenerate.
11997 * Makefile.in (SFILES): Add extension.c.
11998 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11999 (COMMON_OBS): Add extension.o.
12000 * extension.h: New file.
12001 * extension-priv.h: New file.
12002 * extension.c: New file.
12004 * python/python-internal.h: #include "extension.h".
12005 (gdbpy_auto_load_enabled): Declare.
12006 (gdbpy_apply_val_pretty_printer): Declare.
12007 (gdbpy_apply_frame_filter): Declare.
12008 (gdbpy_preserve_values): Declare.
12009 (gdbpy_breakpoint_cond_says_stop): Declare.
12010 (gdbpy_breakpoint_has_cond): Declare.
12011 (void source_python_script_for_objfile): Delete.
12012 * python/python.c: #include "extension-priv.h".
12013 Delete inclusion of "observer.h".
12014 (extension_language_python): Moved here and renamed from
12015 script_language_python in py-auto-load.c.
12016 Redefined to be of type extension_language_defn.
12017 (python_extension_script_ops): New global.
12018 (python_extension_ops): New global.
12019 (struct python_env): New member previous_active.
12020 (restore_python_env): Call restore_active_ext_lang.
12021 (ensure_python_env): Call set_active_ext_lang.
12022 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12024 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12026 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12028 (gdbpy_eval_from_control_command): Renamed from
12029 eval_python_from_control_command, made static. New arg extlang.
12030 (gdbpy_source_script) Renamed from source_python_script, made static.
12032 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12033 result to int. New arg extlang.
12034 (gdbpy_source_objfile_script): Renamed from
12035 source_python_script_for_objfile, made static. New arg extlang.
12036 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12037 static. New args extlang, extlang_printers. Change result type to
12039 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12040 static. New arg extlang. Rename arg printers to extlang_printers
12041 and change type to ext_lang_type_printers *.
12042 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12043 static. Replace argument arg with extlang, extlang_printers.
12044 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12045 (!HAVE_PYTHON, source_python_script): Delete.
12046 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12047 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12048 (!HAVE_PYTHON, start_type_printers): Delete.
12049 (!HAVE_PYTHON, apply_type_printers): Delete.
12050 (!HAVE_PYTHON, free_type_printers): Delete.
12051 (_initialize_python): Delete call to observer_attach_before_prompt.
12052 (finalize_python): Set/restore active extension language.
12053 (gdbpy_finish_initialization) Renamed from
12054 finish_python_initialization, made static. New arg extlang.
12055 (gdbpy_initialized): New function.
12056 * python/python.h: #include "extension.h". Delete #include
12057 "value.h", "mi/mi-cmds.h".
12058 (extension_language_python): Declare.
12059 (GDBPY_AUTO_FILE_NAME): Delete.
12060 (enum py_bt_status): Moved to extension.h and renamed to
12061 ext_lang_bt_status.
12062 (enum frame_filter_flags): Moved to extension.h.
12063 (enum py_frame_args): Moved to extension.h and renamed to
12064 ext_lang_frame_args.
12065 (finish_python_initialization): Delete.
12066 (eval_python_from_control_command): Delete.
12067 (source_python_script): Delete.
12068 (apply_val_pretty_printer): Delete.
12069 (apply_frame_filter): Delete.
12070 (preserve_python_values): Delete.
12071 (gdbpy_script_language_defn): Delete.
12072 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12073 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12075 * auto-load.c: #include "extension.h".
12076 (GDB_AUTO_FILE_NAME): Delete.
12077 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12078 (script_language_gdb): Delete, moved to extension.c and renamed to
12079 extension_language_gdb.
12080 (source_gdb_script_for_objfile): Delete.
12081 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12082 (loaded_script): Change type of language member to
12083 struct extension_language_defn *.
12084 (init_loaded_scripts_info): Initialize
12085 unsupported_script_warning_printed.
12086 (maybe_add_script): Make static. Change type of language arg to
12087 struct extension_language_defn *.
12088 (clear_section_scripts): Reset unsupported_script_warning_printed.
12089 (auto_load_objfile_script_1): Rewrite to use extension language API.
12090 (auto_load_objfile_script): Make public. Remove support-compiled-in
12091 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12092 (source_section_scripts): Rewrite to use extension language API.
12093 (load_auto_scripts_for_objfile): Rewrite to use
12094 auto_load_scripts_for_objfile.
12095 (collect_matching_scripts_data): Change type of language member to
12096 struct extension_language_defn *.
12097 (auto_load_info_scripts): Change type of language arg to
12098 struct extension_language_defn *.
12099 (unsupported_script_warning_print): New function.
12100 (script_not_found_warning_print): Make static.
12101 (_initialize_auto_load): Rewrite construction of scripts-directory
12103 * auto-load.h (struct objfile): Add forward decl.
12104 (struct script_language): Delete.
12105 (struct auto_load_pspace_info): Add forward decl.
12106 (struct extension_language_defn): Add forward decl.
12107 (maybe_add_script): Delete.
12108 (auto_load_objfile_script): Declare.
12109 (script_not_found_warning_print): Delete.
12110 (auto_load_info_scripts): Update prototype.
12111 (auto_load_gdb_scripts_enabled): Declare.
12112 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12113 auto_load_python_scripts_enabled and made public.
12114 (script_language_python): Delete, moved to python.c.
12115 (gdbpy_script_language_defn): Delete.
12116 (info_auto_load_python_scripts): Update to use
12117 extension_language_python.
12119 * breakpoint.c (condition_command): Replace call to
12120 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12121 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12122 with call to breakpoint_ext_lang_cond_says_stop.
12123 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12124 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12125 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12126 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12128 (local_setattro): Print name of extension language with existing
12131 * valprint.c (val_print, value_print): Update to call
12132 apply_ext_lang_val_pretty_printer.
12133 * cp-valprint.c (cp_print_value): Update call to
12134 apply_ext_lang_val_pretty_printer.
12135 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12136 (gdbpy_apply_val_pretty_printer): Renamed from
12137 apply_val_pretty_printer. New arg extlang.
12138 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12140 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12141 extension language API.
12142 * cli/cli-script.c (execute_control_command): Update to call
12143 eval_ext_lang_from_control_command.
12145 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12146 enum ext_lang_bt_status values. Update call to
12147 apply_ext_lang_frame_filter.
12148 (mi_cmd_stack_list_locals): Ditto.
12149 (mi_cmd_stack_list_args): Ditto.
12150 (mi_cmd_stack_list_variables): Ditto.
12151 * mi/mi-main.c: Delete #include "python/python-internal.h".
12152 Add #include "extension.h".
12153 (mi_cmd_list_features): Replace reference to python internal variable
12154 gdb_python_initialized with call to ext_lang_initialized_p.
12156 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12157 Update to use enum ext_lang_frame_args. Update to call
12158 apply_ext_lang_frame_filter.
12159 * python/py-framefilter.c (extract_sym): Update to use enum
12160 ext_lang_bt_status.
12161 (extract_value, py_print_type, py_print_value): Ditto.
12162 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12163 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12164 (py_print_frame): Ditto.
12165 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12166 New arg extlang. Update to use enum ext_lang_bt_status.
12168 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12169 finish_python_initialization. Replace with call to
12170 finish_ext_lang_initialization.
12172 * typeprint.c (do_free_global_table): Update to call
12173 free_ext_lang_type_printers.
12174 (create_global_typedef_table): Update to call
12175 start_ext_lang_type_printers.
12176 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12177 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12178 (type_print_options): Change type of global_printers from "void *"
12179 to "struct ext_lang_type_printers *".
12181 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12182 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12183 (gdbpy_preserve_values): Renamed from preserve_python_values.
12185 (!HAVE_PYTHON, preserve_python_values): Delete.
12187 * utils.c (quit_flag): Delete, moved to extension.c.
12188 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12191 * eval.c: Delete #include "python/python.h".
12192 * main.c: Delete #include "python/python.h".
12194 * defs.h: Update comment.
12196 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12200 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12202 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12205 2014-02-05 Yao Qi <yao@codesourcery.com>
12207 * remote.c (remote_pass_signals): Remove local 'buf' and use
12209 (remote_program_signals): Likewise.
12211 2014-02-05 Yao Qi <yao@codesourcery.com>
12213 * ctf.c: Include "inferior.h" and "gdbthread.h".
12214 (CTF_PID): A new macro.
12215 (ctf_open): Call inferior_appeared and add_thread_silent.
12216 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12217 (ctf_thread_alive): New function.
12218 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12220 2014-02-05 Yao Qi <yao@codesourcery.com>
12224 2013-05-24 Yao Qi <yao@codesourcery.com>
12226 * tracepoint.c (TFILE_PID): Remove.
12227 (tfile_open): Don't add thread and inferior.
12228 (tfile_close): Don't set 'inferior_ptid'. Don't call
12229 exit_inferior_silent.
12230 (tfile_thread_alive): Remove.
12231 (init_tfile_ops): Don't set field 'to_thread_alive' of
12234 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12236 * remote.c (remote_start_remote): Call remote_check_symbols even
12237 if only symbol-file (not file) has been given.
12239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12241 * gdbarch.sh (skip_entrypoint): New callback.
12242 * gdbarch.c, gdbarch.h: Regenerate.
12243 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12244 * infrun.c (fill_in_stop_func): Likewise.
12245 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12246 (ppc_elfv2_elf_make_msymbol_special): New function.
12247 (ppc_elfv2_skip_entrypoint): Likewise.
12248 (ppc_linux_init_abi): Install them for ELFv2.
12250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12252 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12253 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12254 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12255 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12256 structures returned in GPRs.
12258 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12260 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12261 offset to the stack parameter list for the ELFv2 ABI.
12263 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12265 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12266 set_gdbarch_convert_from_func_ptr_addr and
12267 set_gdbarch_elf_make_msymbol_special for ELFv1.
12268 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12269 function descriptors on ELFv1.
12270 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12271 set up r12 at function entry.
12273 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12275 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12276 (struct gdbarch_tdep): New member elf_abi.
12278 * rs6000-tdep.c: Include "elf/ppc64.h".
12279 (rs6000_gdbarch_init): Detect ELF ABI version.
12281 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12283 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12284 within a register pair holding a DFP 128-bit value on little-endian.
12285 (ppc64_sysv_abi_return_value_base): Likewise.
12286 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12287 (dfp_pseudo_register_write): Likewise.
12289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12292 offset on little-endian when passing _Decimal32.
12293 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12295 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12297 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12298 of the overlapped FP register within the VSX register on little-
12300 (efpr_pseudo_register_write): Likewise.
12302 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12304 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12305 offset on little-endian when passing small structures.
12307 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12309 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12310 (struct ppc64_sysv_argpos): New data structure.
12311 (ppc64_sysv_abi_push_float): Remove.
12312 (ppc64_sysv_abi_push_val): New function.
12313 (ppc64_sysv_abi_push_integer): Likewise.
12314 (ppc64_sysv_abi_push_freg): Likewise.
12315 (ppc64_sysv_abi_push_vreg): Likewise.
12316 (ppc64_sysv_abi_push_param): Likewise.
12317 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12318 (ppc64_sysv_abi_return_value_base): New function.
12319 (ppc64_sysv_abi_return_value): Refactor to use it.
12321 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12323 * NEWS: Document new target powerpc64le-*-linux*.
12325 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12327 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12328 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12330 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12331 register set used in ELF core dumps. Add floating-point register set.
12333 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12335 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12336 dwarf2_to_gdb[] table using symbolic constants. Adjust
12337 penultimate entry from number representing the PC register
12338 to symbolic constant representing the MDR register. Add
12339 constant for the PC register to the end of the table.
12341 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12343 * bsd-kvm.c: Include <sys/param.h>
12345 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12347 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12349 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12351 * ada-lang.h (clear_ada_sym_cache): Delete.
12353 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12355 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12357 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12359 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12360 the sigreturn register save area only if the syscall is
12363 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12365 * valops.c (value_slice): Minor reformatting.
12367 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12369 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12371 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12373 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12374 New static globals.
12375 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12376 (ada_ignore_descriptive_types_p): New static global.
12377 (find_parallel_type_by_descriptive_type): Return immediately
12378 if ada_ignore_descriptive_types_p is set.
12379 (_initialize_ada_language): Register new commands "maintenance
12380 set ada", "maintenance show ada", "maintenance set ada
12381 ignore-descriptive-types" and "maintenance show ada
12382 ignore-descriptive-types".
12383 * NEWS: Add entry for new "maint ada set/show
12384 ignore-descriptive-types" commands.
12386 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12388 * record-btrace.c (record_btrace_close): Call btrace_teardown
12391 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12393 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12396 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12398 * ada-typeprint (type_is_full_subrange_of_target_type):
12400 (print_range): Add parameter bounds_prefered_p. If not set,
12401 try printing range types using the name of their base type.
12402 (print_range_type): Add parameter bounds_prefered_p.
12403 Use it in call to print_range.
12404 (print_array_type, ada_print_type): Update calls to print_range
12405 and print_range_type.
12407 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12409 * ada-typeprint.c (print_array_type, print_choices, print_range)
12410 (print_range_bound, print_dynamic_range_bound, print_range_type):
12411 Remove declaration.
12413 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12415 * ada-typeprint.c (print_range): Add missing empty line
12416 after local declaration.
12418 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12420 * ada-valprint.c (print_optional_low_bound): Get index_type's
12421 target type for as long as it is a TYPE_CODE_RANGE.
12423 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12425 * procfs.c (procfs_make_note_section): Remove assertion and
12426 associated comment.
12428 2014-01-24 Yao Qi <yao@codesourcery.com>
12430 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12431 * corelow.c (get_core_siginfo): Likewise.
12433 2014-01-24 Yao Qi <yao@codesourcery.com>
12435 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12436 ULONGEST. Don't check 'len' is negative.
12437 (remote_write_bytes): Change type of 'len' to ULONGEST.
12439 2014-01-23 Tom Tromey <tromey@redhat.com>
12442 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12443 Handle exception from frame.block.
12444 (FrameVars.fetch_frame_locals): Likewise.
12446 2014-01-23 Tom Tromey <tromey@redhat.com>
12449 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12450 on a NULL pointer. Move "goto error" to correct place.
12452 2014-01-23 Tom Tromey <tromey@redhat.com>
12455 * python/py-framefilter.c (apply_frame_filter): Call
12456 ensure_python_env after computing gdbarch.
12458 2014-01-23 Yao Qi <yao@codesourcery.com>
12460 * target.c (raw_memory_xfer_partial): Change argument type
12461 from void * to gdb_byte *.
12462 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12464 2014-01-22 Doug Evans <dje@google.com>
12466 New gdbserver option --debug-format=timestamp.
12467 * NEWS: Mention it.
12469 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12471 * syscalls/s390x-linux.xml: New file.
12472 * syscalls/s390-linux.xml: New file.
12473 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12474 (XML_SYSCALL_FILENAME_S390X): Likewise.
12475 (op_svc): New enum value for SVC opcode.
12476 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12477 (s390_linux_get_syscall_number): New function.
12478 (s390_gdbarch_init): Register '*get_syscall_number' and the
12479 syscall xml file name.
12480 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12481 "s390-linux.xml" and "s390x-linux.xml".
12482 * NEWS: Announce new feature.
12484 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12486 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12488 2014-01-22 Pedro Alves <palves@redhat.com>
12490 * xtensa-config.c: Include defs.h.
12492 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12494 * common/common-utils.h: Add "ARI:" comment beside __func__
12497 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12499 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12500 documentation a bit.
12502 2014-01-21 Roland McGrath <mcgrathr@google.com>
12504 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12505 * configure: Regenerate.
12506 * aclocal.m4: Regenerate.
12507 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12508 New substituted variables.
12509 (install-strip): New target.
12510 (INSTALL_SCRIPT): New substituted variable.
12511 (FLAGS_TO_PASS): Add it.
12512 (install-only): Use $(INSTALL_SCRIPT) rather than
12513 $(INSTALL_PROGRAM) for gcore.
12515 2014-01-20 Tom Tromey <tromey@redhat.com>
12517 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12520 2014-01-20 Tom Tromey <tromey@redhat.com>
12522 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12523 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12524 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12525 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12526 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12527 (struct cmd_list_element) <flags>: Remove.
12528 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12529 doc_allocated>: New fields.
12530 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12532 * maint.c (maintenance_do_deprecate): Update.
12533 * top.c (execute_command): Update.
12535 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12537 * xtensa-linux-nat.c: Include asm/ptrace.h.
12539 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12541 * Makefile.in (SFILES): Add d-support.c.
12542 (COMMON_OBS): Add d-support.o.
12543 * d-lang.h (d_parse_symbol): Add comment, now defined in
12545 * d-lang.c (parse_call_convention)
12546 (parse_attributes, parse_function_types)
12547 (parse_function_args, parse_type, parse_identifier)
12548 (call_convention_p, d_parse_symbol): Move functions to ...
12549 * d-support.c: ... New file.
12551 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12553 * d-lang.h (d_parse_symbol): Add declaration.
12554 * d-lang.c (extract_identifiers)
12555 (extract_type_info): Remove functions.
12556 (parse_call_convention, parse_attributes)
12557 (parse_function_types, parse_function_args)
12558 (parse_type, parse_identifier, call_convention_p)
12559 (d_parse_symbol): New functions.
12560 (d_demangle): Use d_parse_symbol to demangle D symbols.
12562 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12564 * d-lang.h (struct builtin_d_type): New data type.
12565 (builtin_d_type): Add declaration.
12566 * d-lang.c (d_language_arch_info, build_d_types)
12567 (builtin_d_type): New functions.
12568 (enum d_primitive_types): New data type.
12569 (d_language_defn): Change c_language_arch_info to
12570 d_language_arch_info.
12571 (d_type_data): New static variable.
12572 (_initialize_d_language): Initialize d_type_data.
12574 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12576 * d-lang.h (d_main_name): Add declaration.
12577 * d-lang.c (d_main_name): New function.
12578 * symtab.c (find_main_name): Add call to d_main_name.
12580 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12582 * d-lang.c (d_language_defn): Change macro_expansion_c to
12583 macro_expansion_no.
12585 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12587 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12589 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12591 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12592 gdb_exception" declaration.
12593 * remote.c (getpkt_or_notif_sane): Likewise.
12595 2014-01-17 Doug Evans <dje@google.com>
12597 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12598 function, contents of dirnames_to_char_ptr_vec_append moved here.
12599 (delim_string_to_char_ptr_vec): New function.
12600 (dirnames_to_char_ptr_vec_append): Rewrite.
12601 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12603 2014-01-17 Doug Evans <dje@google.com>
12605 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12607 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12608 #include "common-utils.h".
12609 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12610 * common/vec.h (VEC_ASSERT_PASS): Update.
12611 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12612 (MACH_CHECK_ERROR): Update.
12614 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12616 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12618 * gdbarch.h: Regenerate.
12620 2014-01-16 Tom Tromey <tromey@redhat.com>
12622 * value.c (struct value) <regnum>: Move earlier.
12624 2014-01-16 Tom Tromey <tromey@redhat.com>
12626 * remote.c (extended_remote_create_inferior): Rename from
12627 extended_remote_create_inferior_1. Add "ops" argument. Remove
12628 old implementation.
12630 2014-01-16 Pedro Alves <palves@redhat.com>
12632 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12633 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12636 2014-01-16 Doug Evans <dje@google.com>
12638 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12642 * btrace.h (btrace_thread_flag): New.
12643 (struct btrace_thread_info) <flags>: New.
12644 * record-btrace.c (record_btrace_resume_thread)
12645 (record_btrace_find_thread_to_move, btrace_step_no_history)
12646 (btrace_step_stopped, record_btrace_start_replaying)
12647 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12648 (record_btrace_find_resume_thread): New.
12649 (record_btrace_resume, record_btrace_wait): Extend.
12650 (record_btrace_can_execute_reverse): New.
12651 (record_btrace_open): Fail in non-stop mode.
12652 (record_btrace_set_replay): Split into this, ...
12653 (record_btrace_stop_replaying): ... this, ...
12654 (record_btrace_clear_histories): ... and this.
12655 (init_record_btrace_ops): Init to_can_execute_reverse.
12656 * NEWS: Announce it.
12658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12660 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12661 (forward_target_decr_pc_after_break)
12662 (target_decr_pc_after_break): New.
12663 * target.c (forward_target_decr_pc_after_break)
12664 (target_decr_pc_after_break): New.
12665 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12666 instead of gdbarch_decr_pc_after_break.
12667 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12668 instead of gdbarch_decr_pc_after_break.
12669 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12670 instead of gdbarch_decr_pc_after_break.
12671 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12672 instead of gdbarch_decr_pc_after_break.
12673 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12674 instead of gdbarch_decr_pc_after_break.
12675 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12676 instead of gdbarch_decr_pc_after_break.
12678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12680 * btrace.c: Include regcache.h.
12681 (btrace_add_pc): New.
12682 (btrace_enable): Call btrace_add_pc.
12683 (btrace_is_empty): New.
12684 * btrace.h (btrace_is_empty): New.
12685 * record-btrace.c (require_btrace, record_btrace_info): Call
12688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12690 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12691 Support delta reads.
12692 (linux_disable_btrace): Change return type.
12693 * common/linux-btrace.h (linux_read_btrace): Change parameters
12694 and return type to allow error reporting. Update users.
12695 (linux_disable_btrace): Change return type. Update users.
12696 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12698 (btrace_error): New.
12699 (btrace_block) <begin>: Comment on BEGIN == 0.
12700 * btrace.c (btrace_compute_ftrace): Start from the end of
12702 (btrace_stitch_trace, btrace_clear_history): New.
12703 (btrace_fetch): Read delta trace, return if replaying.
12704 (btrace_clear): Move clear history code to btrace_clear_history.
12705 (parse_xml_btrace): Throw an error if parsing failed.
12706 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12707 and return type to allow error reporting.
12708 (target_read_btrace): Change parameters and return type to allow
12710 * target.c (target_read_btrace): Update.
12711 * remote.c (remote_read_btrace): Support delta reads. Pass
12713 * NEWS: Announce it.
12715 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12717 * record.h (record_btrace_frame_unwind)
12718 (record_btrace_tailcall_frame_unwind): New declarations.
12719 * dwarf2-frame: Include record.h
12720 (dwarf2_frame_cfa): Throw an error for btrace frames.
12721 * record-btrace.c: Include hashtab.h.
12722 (btrace_get_bfun_name): New.
12723 (btrace_call_history): Call btrace_get_bfun_name.
12724 (struct btrace_frame_cache): New.
12726 (bfcache_hash, bfcache_eq, bfcache_new): New.
12727 (btrace_get_frame_function): New.
12728 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12729 (record_btrace_frame_this_id): Compute own id.
12730 (record_btrace_frame_prev_register): Provide PC, throw_error
12731 for all other registers.
12732 (record_btrace_frame_sniffer): Detect btrace frames.
12733 (record_btrace_tailcall_frame_sniffer): New.
12734 (record_btrace_frame_dealloc_cache): New.
12735 (record_btrace_frame_unwind): Add new functions.
12736 (record_btrace_tailcall_frame_unwind): New.
12737 (_initialize_record_btrace): Allocate cache.
12738 * btrace.c (btrace_clear): Call reinit_frame_cache.
12739 * NEWS: Announce it.
12741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12743 * record-btrace.c (record_btrace_set_replay)
12744 (record_btrace_goto_begin, record_btrace_goto_end)
12745 (record_btrace_goto): New.
12746 (init_record_btrace_ops): Initialize them.
12747 * NEWS: Announce it.
12749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12751 * record-btrace.c (record_btrace_find_new_threads)
12752 (record_btrace_thread_alive): New.
12753 (init_record_btrace_ops): Initialize to_find_new_threads and
12756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12758 * record-btrace.c (record_btrace_resume): New.
12759 (record_btrace_wait): New.
12760 (init_record_btrace_ops): Initialize to_wait and to_resume.
12762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12764 * record-btrace.c (record_btrace_xfer_partial)
12765 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12766 (record_btrace_allow_memory_access): New.
12767 (init_record_btrace_ops): Initialize new methods.
12768 * target.c (raw_memory_xfer_partial): Bail out if target reports
12769 that this memory is not available.
12771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12773 * target.h (target_ops) <to_insert_breakpoint>
12774 <to_remove_breakpoint>: Add target_ops parameter.
12775 (forward_target_insert_breakpoint): New.
12776 (forward_target_remove_breakpoint): New.
12777 (memory_remove_breakpoint, memory_insert_breakpoint):
12778 Add target_ops parameter.
12779 * target.c (target_insert_breakpoint): Split into this and ...
12780 (forward_target_insert_breakpoint): ... this.
12781 (target_remove_breakpoint): Split into this and ...
12782 (forward_target_remove_breakpoint): ... this.
12783 (debug_to_insert_breakpoint): Add target_ops parameter.
12784 Call forward_target_insert_breakpoint.
12785 (debug_to_remove_breakpoint): Add target_ops parameter.
12786 Call forward_target_remove_breakpoint.
12787 (update_current_target): Do not inherit or default to_insert_breakpoint
12788 and to_remove_breakpoint.
12789 * corelow.c (ignore): Add target_ops parameter.
12790 * exec.c (ignore): Add target_ops parameter.
12791 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12792 Add target_ops parameter.
12793 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12794 Add target_ops parameter.
12795 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12796 Add target_ops parameter.
12797 * record-full.c (record_full_beneath_to_insert_breakpoint)
12798 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12799 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12800 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12801 (record_full_core_remove_breakpoint): Add target_ops parameter.
12803 (record_full_beneath_to_insert_breakpoint_ops)
12804 (record_full_beneath_to_remove_breakpoint_ops)
12805 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12806 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12807 tmp_to_remove_breakpoint_ops,
12808 record_full_beneath_to_insert_breakpoint_ops, and
12809 record_full_beneath_to_remove_breakpoint_ops.
12810 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12811 (m32r_remove_breakpoint): Add target_ops parameter.
12812 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12813 Add target_ops parameter.
12814 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12815 Add target_ops parameter.
12817 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12818 Markus Metzger <markus.t.metzger@intel.com>
12820 * record-btrace.c: Include frame-unwind.h.
12821 (record_btrace_frame_unwind_stop_reason)
12822 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12823 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12825 (init_record_btrace_ops): Install it.
12827 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12829 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12832 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12834 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12837 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12839 * frame-unwind.c: Include target.h.
12840 (frame_unwind_try_unwinder): New function with code from ...
12841 (frame_unwind_find_by_frame): ... here. New variable
12842 unwinder_from_target, call also target_get_unwinder)
12843 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12844 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12845 * target.h (struct target_ops): New fields to_get_unwinder and
12846 to_get_tailcall_unwinder.
12847 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12851 * record-btrace.c (record_btrace_fetch_registers)
12852 (record_btrace_store_registers)
12853 (record_btrace_to_prepare_to_store): New.
12854 (init_record_btrace_ops): Add the above.
12856 2014-01-16 Tom Tromey <tromey@redhat.com>
12858 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12859 * target.h (struct target_ops) <to_prepare_to_store>: Add
12861 (target_prepare_to_store): Add argument.
12862 * target.c (debug_to_prepare_to_store): Add argument.
12863 (update_current_target): Update.
12864 * remote.c (remote_prepare_to_store): Add 'self' argument.
12865 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12866 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12867 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12868 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12870 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12871 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12872 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12873 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12874 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12876 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12878 * btrace.h (replay) <replay>: New.
12879 (btrace_is_replaying): New.
12880 * btrace.c (btrace_clear): Free replay iterator.
12881 (btrace_is_replaying): New.
12882 * record-btrace.c (record_btrace_is_replaying): New.
12883 (record_btrace_info): Print insn number if replaying.
12884 (record_btrace_insn_history): Start at replay position.
12885 (record_btrace_call_history): Start at replay position.
12886 (init_record_btrace_ops): Init to_record_is_replaying.
12888 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12890 * record-btrace.c (record_btrace_insn_history_range): Include
12892 (record_btrace_insn_history_from): Adjust range.
12893 (record_btrace_call_history_range): Include
12895 (record_btrace_call_history_from): Adjust range.
12896 * NEWS: Announce changes.
12898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12900 * record.h (enum record_print_flag)
12901 <record_print_indent_calls>: New.
12902 * record.c (get_call_history_modifiers): Recognize /c modifier.
12903 (_initialize_record): Document /c modifier.
12904 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12905 Reorder fields. Optionally indent the function name. Update
12907 * NEWS: Announce changes.
12909 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12911 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12913 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12915 * btrace.c (ftrace_new_function): Start counting at one.
12916 * record-btrace.c (record_btrace_info): Adjust number of calls
12918 * NEWS: Announce it.
12920 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12922 * record-btrace.c (btrace_call_history_insn_range): Print
12923 insn range as [begin, end].
12925 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12927 * btrace.h (struct btrace_func_link): New.
12928 (enum btrace_function_flag): New.
12929 (struct btrace_inst): Rename to ...
12930 (struct btrace_insn): ...this. Update all users.
12931 (struct btrace_func) <ibegin, iend>: Remove.
12932 (struct btrace_func_link): New.
12933 (struct btrace_func): Rename to ...
12934 (struct btrace_function): ...this. Update all users.
12935 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12936 (number, level, flags>: New.
12937 (struct btrace_insn_iterator): Rename to ...
12938 (struct btrace_insn_history): ...this.
12940 (struct btrace_insn_iterator, btrace_call_iterator): New.
12941 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12942 (struct btrace_target_info) <begin, end, level>
12943 <insn_history, call_history>: New.
12944 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12945 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12946 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12947 (btrace_call_number, btrace_call_begin, btrace_call_end)
12948 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12949 (btrace_find_function_by_number, btrace_set_insn_history)
12950 (btrace_set_call_history): New.
12951 * btrace.c (btrace_init_insn_iterator)
12952 (btrace_init_func_iterator, compute_itrace): Remove.
12953 (ftrace_print_function_name, ftrace_print_filename)
12954 (ftrace_skip_file): Change
12955 parameter to const.
12956 (ftrace_init_func): Remove.
12957 (ftrace_debug): Use new btrace_function fields.
12958 (ftrace_function_switched): Also consider gaining and
12959 losing symbol information).
12960 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12961 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12962 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12964 (ftrace_new_function): Move. Remove debug print.
12965 (ftrace_update_lines, ftrace_update_insns): New.
12966 (ftrace_update_function): Check for call, ret, and jump.
12967 (compute_ftrace): Renamed to ...
12968 (btrace_compute_ftrace): ...this. Rewritten to compute call
12970 (btrace_fetch, btrace_clear): Updated.
12971 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12972 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12973 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12974 (btrace_call_number, btrace_call_begin, btrace_call_end)
12975 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12976 (btrace_find_function_by_number, btrace_set_insn_history)
12977 (btrace_set_call_history): New.
12978 * record-btrace.c (require_btrace): Use new btrace thread
12980 (record_btrace_info, btrace_insn_history)
12981 (record_btrace_insn_history, record_btrace_insn_history_range):
12982 Use new btrace thread info fields and new iterator.
12983 (btrace_func_history_src_line): Rename to ...
12984 (btrace_call_history_src_line): ...this. Use new btrace
12985 thread info fields.
12986 (btrace_func_history): Rename to ...
12987 (btrace_call_history): ...this. Use new btrace thread info
12988 fields and new iterator.
12989 (record_btrace_call_history, record_btrace_call_history_range):
12990 Use new btrace thread info fields and new iterator.
12992 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12994 * frame.h (frame_id_build_unavailable_stack_special): New.
12995 * frame.c (frame_id_build_unavailable_stack_special): New.
12997 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12999 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13000 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13001 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13003 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13004 (i386_insn_is_jump, i386_jmp_p): New.
13005 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13006 insn_is_jump to gdbarch.
13007 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13008 * gdbarch.h: Regenerated.
13009 * gdbarch.c: Regenerated.
13010 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13011 (default_insn_is_jump): New.
13012 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13013 (default_insn_is_jump): New.
13015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13017 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13019 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13020 (btrace_read_type) <btrace_read_new>: Change to ...
13021 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13025 * common/linux-btrace.c (linux_read_btrace): Free trace from
13026 previous iteration.
13028 2014-01-15 Doug Evans <dje@google.com>
13030 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13033 2014-01-15 Tom Tromey <tromey@redhat.com>
13035 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13036 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13037 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13038 (set_objfile_main_name): New function.
13039 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13040 language_of_main>: New fields.
13041 (set_objfile_main_name): Declare.
13042 * symtab.c (find_main_name): Loop over objfiles to find the main
13044 (set_main_name): Now static.
13045 (get_main_info): Add comment.
13046 * symtab.h (set_main_name): Don't declare.
13048 2014-01-15 Tom Tromey <tromey@redhat.com>
13050 * symtab.c (main_progspace_key): New global.
13051 (struct main_info): New.
13052 (name_of_main, language_of_main): Remove.
13053 (get_main_info, main_info_cleanup): New function.
13054 (set_main_name, main_name, main_language): Use get_main_info.
13055 (_initialize_symtab): Initialize main_progspace_key.
13057 2014-01-15 Tom Tromey <tromey@redhat.com>
13059 * dbxread.c (process_one_symbol): Update.
13060 * dwarf2read.c (read_partial_die): Update.
13061 * symfile.c (set_initial_language): Call main_language.
13062 * symtab.c (language_of_main): Now static.
13063 (set_main_name): Add 'lang' parameter.
13064 (find_main_name): Update.
13065 (main_language): New function.
13066 (symtab_observer_executable_changed): Update.
13067 * symtab.h (set_main_name): Update.
13068 (language_of_main): Remove.
13069 (main_language): Declare.
13071 2014-01-15 Tom Tromey <tromey@redhat.com>
13073 * symfile.c (init_entry_point_info): Use new "initialized" field.
13075 * objfiles.h (struct entry_point) <initialized>: New field.
13076 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13077 (struct objfile) <ei>: ...here. Remove.
13078 * objfiles.c (entry_point_address_query): Update.
13080 2014-01-15 Tom Tromey <tromey@redhat.com>
13082 * objfiles.c (entry_point_address_query): Relocate entry point
13084 (objfile_relocate1): Do not relocate entry point address.
13085 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13086 <the_bfd_section_index>: New field.
13087 * symfile.c (init_entry_point_info): Find the entry point's
13090 2014-01-15 Tom Tromey <tromey@redhat.com>
13092 * solib-frv.c (enable_break): Use entry_point_address_query.
13094 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13096 * NEWS: Add note on improved process record-replay on
13097 arm*-linux* targets.
13099 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13101 * arm-tdep.c (enum arm_record_result): New enum.
13102 (arm_record_unsupported_insn): New function.
13103 (arm_record_coproc_data_proc): Removed.
13104 (thumb2_record_ld_st_multiple): New function.
13105 (thumb2_record_ld_st_dual_ex_tbb): New function.
13106 (thumb2_record_data_proc_sreg_mimm): New function.
13107 (thumb2_record_ps_dest_generic): New function.
13108 (thumb2_record_branch_misc_cntrl): New function.
13109 (thumb2_record_str_single_data): New function.
13110 (thumb2_record_ld_mem_hints): New function.
13111 (thumb2_record_ld_word): New function.
13112 (thumb2_record_lmul_lmla_div): New function.
13113 (thumb2_record_decode_insn_handler): New function.
13114 (decode_insn): Add thumb32 instruction handlers.
13116 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13118 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13119 (struct arm_linux_record_tdep): Declare.
13120 (arm_canonicalize_syscall): New function.
13121 (arm_all_but_pc_registers_record): New function.
13122 (arm_linux_syscall_record): New function.
13123 (arm_linux_init_abi): Add syscall recording constructs.
13124 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13125 decoding. (arm_record_coproc_data_proc): Update arm syscall
13127 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13128 <arm_syscall_record>: New field.
13129 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13132 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13134 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13135 register for push instruction recording.
13137 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13139 * arm-tdep.c (thumb_record_misc): Update to correct logical
13140 error while recording ldm, ldmia and pop instructions.
13142 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13144 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13146 2014-01-15 Pedro Alves <palves@redhat.com>
13148 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13149 (go32_resume, go32_fetch_registers, store_register)
13150 (go32_store_registers, go32_prepare_to_store)
13151 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13152 (go32_create_inferior, go32_can_run, go32_terminal_init)
13153 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13156 2014-01-15 Tom Tromey <tromey@redhat.com>
13158 * target.h (async_callback_ftype): New typedef.
13159 (struct target_ops) <to_async>: Use it.
13161 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13163 * python/py-value.c (get_field_type): Remove unnecessary curly
13164 braces for single-statement if block.
13166 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13168 * python/py-type.c (convert_field): Add missing empty line
13169 after declarations.
13171 2014-01-14 Doug Evans <dje@google.com>
13173 * symfile.h (expand_symtabs_matching): Renamed from
13174 expand_partial_symbol_names. Update prototype.
13175 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13176 * symfile.c (expand_symtabs_matching): Renamed from
13177 expand_partial_symbol_names. New args file_matcher, kind.
13178 Rename arg fun to symbol_matcher.
13179 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13180 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13181 ada_expand_partial_symbol_name.
13182 (ada_make_symbol_completion_list): Update to call
13183 expand_symtabs_matching.
13184 (ada_add_global_exceptions): Call expand_symtabs_matching.
13185 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13186 call map_symbol_filenames.
13187 * symtab.c (sources_info): Update to call map_symbol_filenames.
13188 (search_symbols): Call expand_symtabs_matching.
13189 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13190 (default_make_symbol_completion_list_break_on): Update to call
13191 expand_symtabs_matching.
13192 (make_source_files_completion_list): Update to call
13193 map_symbol_filenames.
13195 2014-01-14 Doug Evans <dje@google.com>
13197 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13198 (expand_symtabs_symbol_matcher_ftype): New typedef.
13199 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13200 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13201 * symfile.c (expand_partial_symbol_names): Update to use
13202 expand_symtabs_symbol_matcher_ftype.
13203 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13204 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13205 Arg name_matcher renamed to symbol_matcher.
13206 * psymtab.c (recursively_search_psymtabs): Update to use
13207 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13209 (expand_symtabs_matching_via_partial): Update to use
13210 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13211 Arg name_matcher renamed to symbol_matcher.
13213 2014-01-14 Doug Evans <dje@google.com>
13215 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13216 (map_partial_symbol_filenames): Ditto.
13217 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13218 (map_partial_symbol_filenames): Ditto.
13219 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13220 (map_partial_symbol_filenames): Ditto.
13221 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13222 (map_partial_symbol_filenames): Ditto.
13223 * symtab.c: Delete #include "psymtab.h".
13225 2014-01-14 Pedro Alves <palves@redhat.com>
13226 Tom Tromey <tromey@redhat.com>
13228 * infrun.c (use_displaced_stepping): Use find_record_target
13229 instead of RECORD_IS_USED.
13230 (adjust_pc_after_break): Use record_full_is_used instead of
13232 * record-btrace.c (record_btrace_open): Call record_preopen
13233 instead of checking RECORD_IS_USED.
13234 * record-full.c (record_full_shortname)
13235 (record_full_core_shortname): New globals.
13236 (record_full_is_used): New function.
13237 (find_full_open): Call record_preopen instead of checking
13239 (init_record_full_ops): Set the target's shortname to
13240 record_full_shortname.
13241 (init_record_full_core_ops): Set the target's shortname to
13242 record_full_core_shortname.
13243 * record-full.h (record_full_is_used): Declare.
13244 * record.c (find_record_target): Make extern.
13245 (record_preopen): New function.
13246 * record.h (RECORD_IS_USED): Delete macro.
13247 (find_record_target, record_preopen): Declare functions.
13249 2014-01-14 Yao Qi <yao@codesourcery.com>
13251 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13252 'len''s type to ULONGEST.
13253 (core_xfer_shared_libraries_aix): Likewise.
13254 * gdbarch.c, gdbarch.h: Regenerated.
13255 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13256 Change type of 'len' to ULONGEST.
13257 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13258 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13260 2014-01-14 Yao Qi <yao@codesourcery.com>
13262 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13263 type of 'len' to ULONGEST.
13264 (linux_xfer_osdata_processgroups): Likewise.
13265 (linux_xfer_osdata_threads): Likewise.
13266 (linux_xfer_osdata_fds): Likewise.
13267 (linux_xfer_osdata_isockets): Likewise.
13268 (linux_xfer_osdata_shm): Likewise.
13269 (linux_xfer_osdata_sem): Likewise.
13270 (linux_xfer_osdata_msg): Likewise.
13271 (linux_common_xfer_osdata): Likewise.
13272 (struct osdata_type) <getter>: Likewise.
13273 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13276 2014-01-14 Yao Qi <yao@codesourcery.com>
13278 * target.h (target_xfer_partial_ftype): Update.
13279 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13281 * aix-thread.c (aix_thread_xfer_partial): Change type of
13282 argument 'len' to ULONGEST.
13283 * auxv.c (procfs_xfer_auxv): Likewise.
13284 (ld_so_xfer_auxv): Likewise.
13285 (memory_xfer_auxv): Likewise.
13286 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13287 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13288 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13289 * corelow.c (core_xfer_partial): Likewise.
13290 * ctf.c (ctf_xfer_partial): Likewise.
13291 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13293 (darwin_read_dyld_info): Likewise.
13294 (darwin_xfer_partial): Likewise.
13295 * exec.c (section_table_xfer_memory_partial): Likewise.
13296 (exec_xfer_partial): Likewise.
13297 * exec.h (section_table_xfer_memory_partial): Update
13299 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13300 instead of plongest.
13301 (gnu_xfer_partial): Likewise.
13302 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13303 (ia64_hpux_xfer_solib_got): Likewise.
13304 (ia64_hpux_xfer_partial): Likewise.
13305 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13306 * inf-ptrace.c (inf_ptrace_xfer_partial):
13307 * inf-ttrace.c (inf_ttrace_xfer_partial):
13308 * linux-nat.c (linux_xfer_siginfo): Likewise.
13309 (linux_nat_xfer_partial): Likewise.
13310 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13311 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13312 * monitor.c (monitor_xfer_memory): Likewise.
13313 (monitor_xfer_partial): Likewise.
13314 * procfs.c (procfs_xfer_partial): Likewise.
13315 * record-full.c (record_full_xfer_partial): Likewise.
13316 (record_full_core_xfer_partial): Likewise.
13317 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13318 instead of plongest.
13319 (gdbsim_xfer_partial): Likewise.
13320 * remote.c (remote_xfer_partial): Likewise.
13321 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13322 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13324 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13325 (rs6000_xfer_shared_libraries): Likewise.
13326 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13327 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13328 (sparc_xfer_partial): Likewise.
13329 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13330 (spu_xfer_partial): Likewise.
13331 * spu-multiarch.c (spu_xfer_partial): Likewise.
13332 * target.c (target_read_live_memory): Likewise.
13333 (memory_xfer_live_readonly_partial): Likewise.
13334 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13335 (target_xfer_partial, default_xfer_partial): Likewise.
13336 (current_xfer_partial): Likewise.
13337 * tracepoint.c (tfile_xfer_partial): Likewise.
13338 * windows-nat.c (windows_xfer_memory): Likewise. Call
13339 pulongest instead of plongest.
13340 (windows_xfer_partial): Likewise.
13341 (windows_xfer_shared_libraries): Likewise.
13343 2014-01-14 Yao Qi <yao@codesourcery.com>
13345 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13346 target_xfer_partial_ftype.
13348 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13352 * valops.c (value_struct_elt_bitpos): New function
13353 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13354 object to 'None' if the field name is an empty string ("").
13355 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13356 attribute to look for a field when 'name' is 'None'.
13357 (get_field_type): New function
13359 2014-01-13 Doug Evans <dje@google.com>
13362 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13363 (try_open_dwop_file): Ditto.
13364 * gdb_bfd.c: #include "vec.h".
13365 (bfdp): New typedef.
13366 (struct gdb_bfd_data): New member included_bfds.
13367 (gdb_bfd_unref): Unref all included bfds.
13368 (gdb_bfd_record_inclusion): New function.
13369 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13371 2014-01-13 Tom Tromey <tromey@redhat.com>
13373 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13375 2014-01-13 Tom Tromey <tromey@redhat.com>
13377 * defs.h (use_windows): Remove.
13378 * gdb.c (main): Update.
13379 * main.c (captured_main, gdb_main): Update.
13380 * main.h (struct captured_main_args) <use_windows>: Remove.
13381 * top.c (use_windows): Remove.
13383 2014-01-13 Tom Tromey <tromey@redhat.com>
13385 * defs.h (deprecated_flush_hook): Remove.
13387 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13390 * linux-thread-db.c (try_thread_db_load): Add parameter
13391 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13392 (try_thread_db_load_from_pdir_1): Move it there from here.
13393 (try_thread_db_load_from_sdir): Update caller.
13394 (try_thread_db_load_from_dir): Move it there from here.
13396 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13398 * regformats/regdat.sh: Always rewrite the register file.
13400 2014-01-13 Pedro Alves <palves@redhat.com>
13402 * Makefile.in (CHECK_HEADERS): New variable.
13403 (check-headers:): New rule.
13405 2014-01-13 Tom Tromey <tromey@redhat.com>
13407 * cli/cli-setshow.c (do_set_command): Update.
13408 * defs.h (deprecated_set_hook): Remove.
13409 * top.c (deprecated_set_hook): Remove.
13411 2014-01-13 Pedro Alves <palves@redhat.com>
13413 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13414 the tracepoint if the PC is a pseudo-register.
13416 2014-01-13 Tom Tromey <tromey@redhat.com>
13418 * defs.h (XCALLOC): Remove.
13419 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13420 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13421 * dwarf2loc.c (allocate_piece_closure): Likewise.
13422 * elfread.c (elf_symfile_segments): Likewise.
13423 (elf_symfile_segments): Likewise.
13424 * gdbtypes.c (copy_type_recursive): Likewise.
13425 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13426 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13427 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13429 * mt-tdep.c (mt_gdbarch_init): Likewise.
13430 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13432 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13433 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13434 * registry.c (registry_alloc_data): Likewise.
13435 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13436 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13437 * serial.c (serial_fdopen_ops): Likewise.
13438 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13440 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13441 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13444 2014-01-13 Tom Tromey <tromey@redhat.com>
13446 * defs.h (XMALLOC): Remove.
13447 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13448 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13449 * cli-out.c (struct ui_out *): Likewise.
13450 * cli/cli-dump.c (add_dump_command): Likewise.
13451 (add_dump_command): Likewise.
13452 * complaints.c (get_complaints): Likewise.
13453 (find_complaint): Likewise.
13454 * dwarf2-frame.c (execute_cfa_program): Likewise.
13455 * dwarf2read.c (abbrev_table_read_table): Likewise.
13456 * gdbarch.sh: Likewise.
13457 * gdbarch.c: Rebuild.
13458 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13459 * interps.c (interp_new): Likewise.
13460 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13461 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13462 * mi/mi-console.c (mi_console_file_new): Likewise.
13463 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13464 * mi/mi-out.c (mi_out_new): Likewise.
13465 * mi/mi-parse.c (mi_parse): Likewise.
13466 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13467 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13468 * observer.c (xalloc_observer_list_node): Likewise.
13469 * regcache.c (regcache_xmalloc_1): Likewise.
13470 * reggroups.c (reggroup_new): Likewise.
13471 (_initialize_reggroup): Likewise.
13472 * registry.c (register_data_with_cleanup): Likewise.
13473 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13474 * ser-base.c (serial_ttystate): Likewise.
13475 * ser-mingw.c (make_pipe_state): Likewise.
13476 * ser-pipe.c (pipe_open): Likewise.
13477 * serial.c (serial_open): Likewise.
13478 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13479 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13480 (tui_alloc_win_info): Likewise.
13481 (tui_add_content_elements): Likewise.
13482 * tui/tui-file.c (tui_file_new): Likewise.
13483 * tui/tui-out.c (tui_out_new): Likewise.
13484 * ui-file.c (mem_file_new): Likewise.
13485 * ui-out.c (push_level): Likewise.
13486 (make_cleanup_ui_out_end): Likewise.
13487 (append_header_to_list): Likewise.
13488 (ui_out_new): Likewise.
13489 * user-regs.c (user_reg_add_builtin): Likewise.
13491 2014-01-13 Tom Tromey <tromey@redhat.com>
13493 * defs.h (XZALLOC): Remove.
13494 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13495 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13496 (get_ada_tasks_inferior_data): Likewise.
13497 * auto-load.c (get_auto_load_pspace_data): Likewise.
13498 * auxv.c (get_auxv_inferior_data): Likewise.
13499 * bfd-target.c (target_bfd_reopen): Likewise.
13500 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13501 (deprecated_insert_raw_breakpoint): Likewise.
13502 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13503 * corelow.c (core_open): Likewise.
13504 * darwin-nat.c (darwin_check_new_threads): Likewise.
13505 (darwin_attach_pid): Likewise.
13506 * dummy-frame.c (dummy_frame_push): Likewise.
13507 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13508 * dwarf2loc.c (allocate_piece_closure): Likewise.
13509 * elfread.c (elf_symfile_segments): Likewise.
13510 * eval.c (ptrmath_type_p): Likewise.
13511 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13512 * gdbtypes.c (alloc_type_arch): Likewise.
13513 (alloc_type_instance): Likewise.
13514 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13515 * inf-child.c (inf_child_can_use_agent): Likewise.
13516 * inflow.c (get_inflow_inferior_data): Likewise.
13517 * infrun.c (save_infcall_suspend_state): Likewise.
13518 * jit.c (jit_reader_load): Likewise.
13519 (get_jit_objfile_data): Likewise.
13520 (get_jit_program_space_data): Likewise.
13521 (jit_object_open_impl): Likewise.
13522 (jit_symtab_open_impl): Likewise.
13523 (jit_block_open_impl): Likewise.
13524 (jit_frame_sniffer): Likewise.
13525 * linux-fork.c (add_fork): Likewise.
13526 * maint.c (make_command_stats_cleanup): Likewise.
13527 * objfiles.c (get_objfile_pspace_data): Likewise.
13528 * opencl-lang.c (struct lval_closure): Likewise.
13529 * osdata.c (osdata_start_osdata): Likewise.
13530 * progspace.c (new_address_space): Likewise.
13531 (add_program_space): Likewise.
13532 * remote-sim.c (get_sim_inferior_data): Likewise.
13533 * sh-tdep.c (sh_gdbarch_init): Likewise.
13534 * skip.c (Ignore): Likewise.
13535 (skip_delete_command): Likewise.
13536 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13537 (library_list_start_library): Likewise.
13538 (solib_aix_current_sos): Likewise.
13539 * solib-darwin.c (get_darwin_info): Likewise.
13540 (darwin_current_sos): Likewise.
13541 * solib-dsbt.c (get_dsbt_info): Likewise.
13542 * solib-ia64-hpux.c (new_so_list): Likewise.
13543 (ia64_hpux_get_solib_linkage_addr): Likewise.
13544 * solib-spu.c (append_ocl_sos): Likewise.
13545 (spu_current_sos): Likewise.
13546 * solib-svr4.c (get_svr4_info): Likewise.
13547 (svr4_keep_data_in_core): Likewise.
13548 (library_list_start_library): Likewise.
13549 (svr4_default_sos): Likewise.
13550 (svr4_read_so_list): Likewise.
13551 * solib-target.c (library_list_start_library): Likewise.
13552 (solib_target_current_sos): Likewise.
13553 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13554 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13555 * symfile.c (default_symfile_segments): Likewise.
13556 * target-descriptions.c (tdesc_data_init): Likewise.
13557 (tdesc_create_reg): Likewise.
13558 (struct tdesc_type *): Likewise.
13559 (tdesc_create_vector): Likewise.
13560 (tdesc_set_struct_size): Likewise.
13561 (struct tdesc_type *): Likewise.
13562 (tdesc_free_feature): Likewise.
13563 (tdesc_create_feature): Likewise.
13564 * windows-nat.c (windows_add_thread): Likewise.
13565 (windows_make_so): Likewise.
13566 * xml-support.c (gdb_xml_body_text): Likewise.
13567 (gdb_xml_create_parser_and_cleanup): Likewise.
13568 (xml_process_xincludes): Likewise.
13569 * xml-syscall.c (allocate_syscalls_info): Likewise.
13570 (syscall_create_syscall_desc): Likewise.
13572 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13574 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13575 function, with code from i386_stap_parse_special_token.
13576 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13577 (i386_stap_parse_special_token): Move code to the two functions
13578 above; simplify it.
13580 2014-01-09 Pedro Alves <palves@redhat.com>
13581 Hui Zhu <hui@codesourcery.com>
13584 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13585 bp_err_string. Don't mark the location shlib_disabled if the
13586 error thrown wasn't a generic or memory error. Catch errors
13587 thrown while inserting breakpoints in overlayed code. Output
13588 error message of software breakpoints.
13589 * remote.c (remote_insert_breakpoint): If this breakpoint has
13590 target-side commands but this stub doesn't support Z0 packets,
13591 throw NOT_SUPPORTED_ERROR error.
13592 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13593 * target.h (target_insert_breakpoint): Extend comment.
13594 (target_insert_hw_breakpoint): Add comment.
13596 2014-01-08 Pedro Alves <palves@redhat.com>
13598 * remote.c (remote_add_thread): Add threads silently if starting
13600 (remote_notice_new_inferior): If in all-stop, and starting up,
13601 don't call notice_new_inferior.
13602 (get_current_thread): New function, factored out from ...
13603 (add_current_inferior_and_thread): ... this. Adjust.
13604 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13605 found any thread, then select the remote's current thread as GDB's
13606 current thread too.
13608 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13610 * NEWS: Create a new section for the next release branch.
13611 Rename the section of the current branch, now that it has
13614 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13616 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13617 * version.in: Bump version to 7.7.50.DATE-cvs.
13619 2014-01-08 Yao Qi <yao@codesourcery.com>
13621 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13622 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13623 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13625 2014-01-08 Yao Qi <yao@codesourcery.com>
13627 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13628 return value of bfd_get_filename to symbol_file_add_from_bfd.
13630 2014-01-08 Pierre Muller <muller@sourceware.org>
13633 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13634 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13635 to prim_record_mininal_symbol_and_info.
13636 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13637 in call to prim_record_minimal_symbol_and_info.
13638 (read_pe_exported_syms): Set index field of section_data.
13640 2014-01-07 Andrew Pinski <apinski@cavium.com>
13642 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13643 * features/aarch64.c: Regenerate.
13645 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13647 * target.c (return_null): Define.
13648 (update_current_target): Use it instead of return_zero for
13649 functions that return a pointer.
13651 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13653 * source.c (add_path): Fix check for duplicated paths in the previously
13656 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13658 * ada-lang.c: Remove duplicated include statements.
13659 * alphabsd-nat.c: Ditto.
13660 * amd64-darwin-tdep.c: Ditto.
13661 * amd64fbsd-nat.c: Ditto.
13662 * auto-load.c: Ditto.
13664 * breakpoint.c: Ditto.
13665 * dbxread.c: Ditto.
13666 * fork-child.c: Ditto.
13667 * gdb_usleep.c: Ditto.
13668 * i386-darwin-tdep.c: Ditto.
13669 * i386fbsd-nat.c: Ditto.
13671 * inferior.c: Ditto.
13672 * jv-lang.c: Ditto.
13673 * linux-nat.c: Ditto.
13674 * linux-tdep.c: Ditto.
13675 * m68kbsd-nat.c: Ditto.
13676 * m68klinux-nat.c: Ditto.
13677 * microblaze-tdep.c: Ditto.
13678 * mips-linux-tdep.c: Ditto.
13679 * mn10300-tdep.c: Ditto.
13680 * nto-tdep.c: Ditto.
13681 * opencl-lang.c: Ditto.
13683 * printcmd.c: Ditto.
13684 * regcache.c: Ditto.
13685 * remote-m32r-sdi.c: Ditto.
13687 * symfile.c: Ditto.
13689 * tilegx-linux-nat.c: Ditto.
13690 * tilegx-tdep.c: Ditto.
13691 * tracepoint.c: Ditto.
13693 * vaxbsd-nat.c: Ditto.
13694 * windows-nat.c: Ditto.
13695 * xtensa-tdep.c: Ditto.
13697 2014-01-07 Yao Qi <yao@codesourcery.com>
13699 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13701 2014-01-07 Yao Qi <yao@codesourcery.com>
13702 Joel Brobecker <brobecker@adacore.com>
13704 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13705 (pdc_write_regs): Likewise.
13706 (fetch_regs_kernel_thread): Likewise.
13707 (store_regs_kernel_thread): Likewise.
13709 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13711 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13712 tagged type objects to their actual type.
13714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13716 * ada-valprint.c (print_field_values): Add "language" parameter.
13717 Update calls to print_field_values and print_variant_part.
13718 Pass new parameter "language" in call to val_print instead
13719 of "current_language". Replace call to ada_val_print by call
13721 (print_variant_part): Add "language" parameter.
13722 (ada_val_print_struct_union): Update call to print_field_values.
13724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13726 * ada-valprint.c (ui_memcpy): Delete.
13727 (ada_print_floating): Update documentation. Add empty line
13728 between between function documentation and implementation.
13729 Delete variable "buffer". Use ui_file_xstrdup in place of
13730 ui_file_put. Minor adjustments following this change.
13732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13734 * ada-valprint.c (ada_val_print_string): New function,
13735 extracted from ada_val_print_array.
13736 (ada_val_print_array): Replace extracted code by call
13737 to ada_val_print_string followed by a return. Move
13738 "else" branch to the function's top block.
13740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13742 * ada-valprint.c (ada_val_print_array): Move implementation
13743 down. Rename parameter "offset" and "val" into "offset_aligned"
13744 and "original_value" respectively. Add parameter "offset".
13746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13748 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13749 re-organizing the code. Change the "???" message printed
13750 when target type is a TYPE_CODE_UNDEF into
13751 "<ref to undefined type>".
13753 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13755 * ada-valprint.c (print_record): Delete, implementation inlined...
13756 (ada_val_print_struct_union): ... here. Remove call to
13757 ada_check_typedef in inlined implementation.
13759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13761 * ada-valprint.c (ada_val_print_gnat_array): New function,
13762 extracted from ada_val_print_1;
13763 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13764 (ada_val_print_flt, ada_val_print_struct_union)
13765 (ada_val_print_ref): Likewise.
13766 (ada_val_print_1): Delete variables i and elttype.
13767 Replace extracted-out code by call to corresponding
13770 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13772 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13774 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13776 * ada-valprint.c (ada_val_print_1): Replace calls to
13777 ada_val_print_1 by calls to val_print.
13779 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13781 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13782 Update calls to self accordingly. Replace calls to c_val_print
13783 by calls to val_print.
13785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13787 * ada-valprint.c (print_record): Delete declaration.
13788 (adjust_type_signedness, ada_val_print_1): Likewise.
13789 (ada_val_print): Move function implementation down.
13790 (print_variant_part, print_field_values, print_record):
13791 Move function implementation up.
13793 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13795 * python/py-type.c (typy_get_name): New function.
13796 (type_object_getset): Add entry for attribute "name".
13797 * NEWS: Add entry mentioning this new attribute.
13799 2014-01-07 Yao Qi <yao@codesourcery.com>
13801 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13804 2014-01-07 Yao Qi <yao@codesourcery.com>
13806 * gnu-nat.c (info_port_rights): Add qualifier const to
13809 2014-01-07 Yao Qi <yao@codesourcery.com>
13811 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13813 2014-01-07 Yao Qi <yao@codesourcery.com>
13815 * gnu-nat.c (make_inf) Update declaration.
13816 (make_inf): Make it static.
13817 (inf_set_traced): Likewise.
13818 (inf_port_to_thread, inf_task_died_status): Likewise.
13820 2014-01-07 Yao Qi <yao@codesourcery.com>
13822 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13824 2014-01-07 Yao Qi <yao@codesourcery.com>
13826 * gnu-nat.c (_initialize_gnu_nat): Declare.
13828 2014-01-07 Yao Qi <yao@codesourcery.com>
13830 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13832 (struct gdbarch_info) <byte_order>: Change type to
13834 <byte_order_for_code>: Likewise.
13835 * gdbarch.c, gdbarch.h: Regenerated.
13837 2014-01-06 Sasha Smundak <asmundak@google.com>
13839 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13841 2014-01-06 Tom Tromey <tromey@redhat.com>
13843 * doublest.c (convert_doublest_to_floatformat): Use const, not
13845 * somread.c (som_symtab_read): Likewise.
13847 2014-01-07 Hui Zhu <hui@codesourcery.com>
13849 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13850 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13851 (gdb_bfd_fopen): Ditto.
13852 (gdb_bfd_openr): Ditto.
13853 (gdb_bfd_openw): Ditto.
13854 (gdb_bfd_openr_iovec): Ditto.
13855 (gdb_bfd_fdopenr): Ditto.
13856 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13857 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13859 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13861 * symfile-mem.c (symbol_file_add_from_memory): Removed
13862 gdb_bfd_stash_filename.
13864 2014-01-03 Doug Evans <dje@google.com>
13866 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13869 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13871 Update year range in copyright notice of all files.
13873 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13875 * top.c (print_gdb_version): Set copyright year to 2014.
13877 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13879 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13881 For older changes see ChangeLog-2013.
13887 version-control: never