1 2014-10-08 Gary Benson <gbenson@redhat.com>
3 * common/common-defs.h: Include cleanups.h.
4 * common/common-exceptions.c: Do not include cleanups.h.
7 2014-10-08 Gary Benson <gbenson@redhat.com>
9 * ada-lang.c: Do not include exceptions.h.
10 * ada-valprint.c: Likewise.
11 * amd64-tdep.c: Likewise.
12 * auto-load.c: Likewise.
14 * break-catch-throw.c: Likewise.
15 * breakpoint.c: Likewise.
18 * cli/cli-cmds.c: Likewise.
19 * cli/cli-interp.c: Likewise.
20 * cli/cli-script.c: Likewise.
21 * completer.c: Likewise.
22 * corefile.c: Likewise.
23 * corelow.c: Likewise.
25 * cp-support.c: Likewise.
26 * cp-valprint.c: Likewise.
27 * darwin-nat.c: Likewise.
28 * dwarf2-frame-tailcall.c: Likewise.
29 * dwarf2-frame.c: Likewise.
30 * dwarf2loc.c: Likewise.
31 * dwarf2read.c: Likewise.
33 * event-loop.c: Likewise.
34 * event-top.c: Likewise.
35 * f-valprint.c: Likewise.
36 * frame-unwind.c: Likewise.
38 * gdbtypes.c: Likewise.
39 * gnu-v2-abi.c: Likewise.
40 * gnu-v3-abi.c: Likewise.
41 * guile/scm-auto-load.c: Likewise.
42 * guile/scm-breakpoint.c: Likewise.
43 * guile/scm-cmd.c: Likewise.
44 * guile/scm-frame.c: Likewise.
45 * guile/scm-lazy-string.c: Likewise.
46 * guile/scm-param.c: Likewise.
47 * guile/scm-symbol.c: Likewise.
48 * guile/scm-type.c: Likewise.
49 * hppa-hpux-tdep.c: Likewise.
50 * i386-tdep.c: Likewise.
51 * inf-loop.c: Likewise.
52 * infcall.c: Likewise.
55 * interps.c: Likewise.
56 * interps.h: Likewise.
58 * linespec.c: Likewise.
59 * linux-nat.c: Likewise.
60 * linux-thread-db.c: Likewise.
61 * m32r-rom.c: Likewise.
63 * memory-map.c: Likewise.
64 * mi/mi-cmd-break.c: Likewise.
65 * mi/mi-cmd-stack.c: Likewise.
66 * mi/mi-interp.c: Likewise.
67 * mi/mi-main.c: Likewise.
68 * monitor.c: Likewise.
69 * nto-procfs.c: Likewise.
70 * objc-lang.c: Likewise.
71 * p-valprint.c: Likewise.
73 * ppc-linux-tdep.c: Likewise.
74 * printcmd.c: Likewise.
76 * python/py-auto-load.c: Likewise.
77 * python/py-breakpoint.c: Likewise.
78 * python/py-cmd.c: Likewise.
79 * python/py-finishbreakpoint.c: Likewise.
80 * python/py-frame.c: Likewise.
81 * python/py-framefilter.c: Likewise.
82 * python/py-function.c: Likewise.
83 * python/py-gdb-readline.c: Likewise.
84 * python/py-inferior.c: Likewise.
85 * python/py-infthread.c: Likewise.
86 * python/py-lazy-string.c: Likewise.
87 * python/py-linetable.c: Likewise.
88 * python/py-param.c: Likewise.
89 * python/py-prettyprint.c: Likewise.
90 * python/py-symbol.c: Likewise.
91 * python/py-type.c: Likewise.
92 * python/py-value.c: Likewise.
93 * python/python-internal.h: Likewise.
94 * python/python.c: Likewise.
95 * record-btrace.c: Likewise.
96 * record-full.c: Likewise.
97 * regcache.c: Likewise.
98 * remote-fileio.c: Likewise.
99 * remote-mips.c: Likewise.
100 * remote.c: Likewise.
101 * rs6000-aix-tdep.c: Likewise.
102 * rs6000-nat.c: Likewise.
104 * solib-darwin.c: Likewise.
105 * solib-dsbt.c: Likewise.
106 * solib-frv.c: Likewise.
107 * solib-ia64-hpux.c: Likewise.
108 * solib-spu.c: Likewise.
109 * solib-svr4.c: Likewise.
111 * spu-tdep.c: Likewise.
113 * stap-probe.c: Likewise.
114 * symfile-mem.c: Likewise.
115 * symmisc.c: Likewise.
116 * target.c: Likewise.
117 * thread.c: Likewise.
119 * tracepoint.c: Likewise.
120 * tui/tui-interp.c: Likewise.
121 * typeprint.c: Likewise.
123 * valarith.c: Likewise.
124 * valops.c: Likewise.
125 * valprint.c: Likewise.
127 * varobj.c: Likewise.
128 * windows-nat.c: Likewise.
129 * xml-support.c: Likewise.
131 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
133 * mips-tdep.c (add_offset_16): Rewrite to implement what the
135 (extended_mips16_next_pc): Update accordingly.
137 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
139 * mips-tdep.c (mips16_instruction_is_compact_branch): New
141 (micromips_instruction_is_compact_branch): Likewise.
142 (mips16_scan_prologue): Terminate scanning upon seeing a branch
143 or a compact jump, reaching a jump delay slot, or seeing a
144 second non-prologue instruction.
145 (micromips_scan_prologue): Also terminate scanning upon seeing a
146 compact branch or jump, or reaching a branch or jump delay slot.
147 (mips32_scan_prologue): Terminate scanning upon reaching a branch
148 or jump delay slot, or seeing a second non-prologue instruction.
149 (mips32_instruction_has_delay_slot): Retain instruction
150 examination code only, update arguments accordingly and move
151 instruction fetch pieces to...
152 (mips32_insn_at_pc_has_delay_slot): ... this new function.
153 (micromips_instruction_has_delay_slot): Likewise and to...
154 (micromips_insn_at_pc_has_delay_slot): ... this new function.
155 (mips16_instruction_has_delay_slot): Likewise and to...
156 (mips16_insn_at_pc_has_delay_slot): ... this new function.
157 (mips_single_step_through_delay): Update accordingly.
158 (mips_adjust_breakpoint_address): Likewise.
160 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
162 * mips-tdep.c (micromips_instruction_has_delay_slot): When
163 !mustbe32 also return 1 for 32-bit instructions.
164 (mips16_instruction_has_delay_slot): Likewise. Add an
167 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
169 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
172 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
174 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
176 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
177 for the breakpoint's address. Don't preinitialize `placed_size'.
178 (insert_bp_location): Set `reqstd_address' rather than
180 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
181 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
183 (bkpt_remove_location): Likewise.
184 (deprecated_insert_raw_breakpoint): Likewise.
185 (deprecated_remove_raw_breakpoint): Likewise.
186 (find_single_step_breakpoint): Likewise.
187 * mem-break.c (default_memory_insert_breakpoint): Use
188 `reqstd_address' for the breakpoint's address. Don't set
189 `placed_address' or `placed_size' if breakpoint contents couldn't
190 have been determined.
191 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
192 the breakpoint's address.
193 (remote_insert_hw_breakpoint): Likewise. Don't set
194 `placed_address' or `placed_size' if breakpoint couldn't have been
196 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
197 `reqstd_address' for the breakpoint's address.
198 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
199 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
200 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
201 * microblaze-linux-tdep.c
202 (microblaze_linux_memory_remove_breakpoint): Likewise.
203 * monitor.c (monitor_insert_breakpoint): Likewise.
204 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
205 (procfs_insert_hw_breakpoint): Likewise.
206 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
207 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
208 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
209 * remote-mips.c (mips_insert_breakpoint): Likewise.
210 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
212 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
214 * valops.c (value_assign): Check for bit field assignments
215 before calling architecture-specific register value
216 conversion functions.
218 2014-10-03 Pierre Muller <muller@sourceware.org>
220 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
222 2014-10-02 Pedro Alves <palves@redhat.com>
224 * breakpoint.c (breakpoints_should_be_inserted_now): Use
225 threads_are_executing.
226 * breakpoint.h (breakpoints_should_be_inserted_now): Add
228 * gdbthread.h (threads_are_executing): Declare.
229 (handle_signal_stop) <random signals>: Don't print about the
230 signal here if stopping.
231 (end_stepping_range): Don't notify observers here.
232 (normal_stop): Update the thread list. If stopped by a random
233 signal or a stepping range ended, notify observers.
234 * thread.c (threads_executing): New global.
235 (init_thread_list): Clear 'threads_executing'.
236 (set_executing): Set or clear 'threads_executing'.
237 (threads_are_executing): New function.
238 (update_threads_executing): New function.
239 (update_thread_list): Use it.
241 2014-10-02 Pedro Alves <palves@redhat.com>
244 * breakpoint.c (update_breakpoints_after_exec): Don't create
245 overlay, longjmp, std terminate nor exception breakpoints here.
247 2014-10-02 Pedro Alves <palves@redhat.com>
249 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
251 * inferior.c (find_inferior_for_program_space): Give preference to
252 the current inferior.
253 * inferior.h (find_inferior_for_program_space): Update comment.
254 * progspace.c (switch_to_program_space_and_thread): Prefer the
255 current inferior if it's bound to the program space requested. If
256 the inferior found doesn't have a PID yet, don't bother looking up
258 * progspace.h (switch_to_program_space_and_thread): Adjust
260 * thread.c (any_thread_of_process, any_live_thread_of_process):
261 Give preference to the current thread.
263 2014-10-01 Pedro Alves <palves@redhat.com>
265 * breakpoint.c (insert_bp_location): Error out if inserting a
266 software breakpoint at a read-only address.
267 * target.c (memory_xfer_check_region): New function, factored out
269 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
271 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
272 against the memory region attributes.
274 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
276 * NEWS: Announce new exit-code field in -list-thread-groups
278 * inferior.c (exit_inferior_1): Don't clear exit code.
279 (inferior_appeared): Clear exit code.
280 * mi/mi-main.c (print_one_inferior): Add printing of the exit
283 2014-10-01 Pedro Alves <palves@redhat.com>
285 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
286 GENERATED" along with emacs/vi read-only markers.
287 * regformats/aarch64.dat: Regenerate.
288 * regformats/arm-with-iwmmxt.dat: Regenerate.
289 * regformats/arm-with-neon.dat: Regenerate.
290 * regformats/arm-with-vfpv2.dat: Regenerate.
291 * regformats/arm-with-vfpv3.dat: Regenerate.
292 * regformats/i386/amd64-avx-linux.dat: Regenerate.
293 * regformats/i386/amd64-avx.dat: Regenerate.
294 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
295 * regformats/i386/amd64-avx512.dat: Regenerate.
296 * regformats/i386/amd64-linux.dat: Regenerate.
297 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
298 * regformats/i386/amd64-mpx.dat: Regenerate.
299 * regformats/i386/amd64.dat: Regenerate.
300 * regformats/i386/i386-avx-linux.dat: Regenerate.
301 * regformats/i386/i386-avx.dat: Regenerate.
302 * regformats/i386/i386-avx512-linux.dat: Regenerate.
303 * regformats/i386/i386-avx512.dat: Regenerate.
304 * regformats/i386/i386-linux.dat: Regenerate.
305 * regformats/i386/i386-mmx-linux.dat: Regenerate.
306 * regformats/i386/i386-mmx.dat: Regenerate.
307 * regformats/i386/i386-mpx-linux.dat: Regenerate.
308 * regformats/i386/i386-mpx.dat: Regenerate.
309 * regformats/i386/i386.dat: Regenerate.
310 * regformats/i386/x32-avx-linux.dat: Regenerate.
311 * regformats/i386/x32-avx.dat: Regenerate.
312 * regformats/i386/x32-avx512-linux.dat: Regenerate.
313 * regformats/i386/x32-avx512.dat: Regenerate.
314 * regformats/i386/x32-linux.dat: Regenerate.
315 * regformats/i386/x32.dat: Regenerate.
316 * regformats/microblaze-with-stack-protect.dat: Regenerate.
317 * regformats/mips-dsp-linux.dat: Regenerate.
318 * regformats/mips-linux.dat: Regenerate.
319 * regformats/mips64-dsp-linux.dat: Regenerate.
320 * regformats/mips64-linux.dat: Regenerate.
321 * regformats/nios2-linux.dat: Regenerate.
322 * regformats/rs6000/powerpc-32.dat: Regenerate.
323 * regformats/rs6000/powerpc-32l.dat: Regenerate.
324 * regformats/rs6000/powerpc-64l.dat: Regenerate.
325 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
326 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
327 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
328 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
329 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
330 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
331 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
332 * regformats/s390-linux32.dat: Regenerate.
333 * regformats/s390-linux32v1.dat: Regenerate.
334 * regformats/s390-linux32v2.dat: Regenerate.
335 * regformats/s390-linux64.dat: Regenerate.
336 * regformats/s390-linux64v1.dat: Regenerate.
337 * regformats/s390-linux64v2.dat: Regenerate.
338 * regformats/s390-te-linux64.dat: Regenerate.
339 * regformats/s390x-linux64.dat: Regenerate.
340 * regformats/s390x-linux64v1.dat: Regenerate.
341 * regformats/s390x-linux64v2.dat: Regenerate.
342 * regformats/s390x-te-linux64.dat: Regenerate.
343 * regformats/tic6x-c62x-linux.dat: Regenerate.
344 * regformats/tic6x-c62x.dat: Regenerate.
345 * regformats/tic6x-c64x-linux.dat: Regenerate.
346 * regformats/tic6x-c64x.dat: Regenerate.
347 * regformats/tic6x-c64xp-linux.dat: Regenerate.
348 * regformats/tic6x-c64xp.dat: Regenerate.
350 2014-10-01 Pedro Alves <palves@redhat.com>
352 * features/Makefile: Update comments.
353 (XMLTOC): List all xml files we build C files from.
354 (clean-cfiles): New rule.
356 2014-10-01 Pedro Alves <palves@redhat.com>
358 * features/i386/amd64-avx512-linux.c: Regenerate.
359 * features/i386/amd64-avx512.c: Regenerate.
360 * features/i386/x32-avx512-linux.c: Regenerate.
361 * features/i386/x32-avx512.c: Regenerate.
363 2014-10-01 Pedro Alves <palves@redhat.com>
365 * features/Makefile (WHICH): Remove arm-with-m,
366 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
368 2014-10-01 Pedro Alves <palves@redhat.com>
370 * features/Makefile (clean): New rule.
372 2014-10-01 Pedro Alves <palves@redhat.com>
374 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
375 (zmm14h): Add missing end quotes.
377 2014-10-01 Pedro Alves <palves@redhat.com>
379 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
380 * features/aarch64.c: Regenerate.
382 2014-09-30 Don Breazeal <donb@codesourcery.com>
384 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
385 code so as to work with follow_fork_inferior.
386 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
387 (inf_ttrace_create_inferior): Remove reference to
388 inf_ttrace_vfork_ppid.
389 (inf_ttrace_attach): Ditto.
390 (inf_ttrace_detach): Ditto.
391 (inf_ttrace_kill): Use current_inferior instead of
392 inf_ttrace_vfork_ppid.
393 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
394 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
395 inferior away from the parent.
396 * infrun.c (follow_fork): Call follow_fork_inferior instead of
398 (follow_fork_inferior): New function.
399 (follow_inferior_reset_breakpoints): Make function static.
400 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
401 * linux-nat.c (linux_child_follow_fork): Move target-independent
402 code to infrun.c:follow_fork_inferior.
404 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
406 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
407 * gdbarch.c: Regenerate.
408 * gdbarch.h: Likewise.
409 * corelow.c (sniff_core_bfd): Drop presence check for deleted
410 gdbarch method 'regset_from_core_section'.
411 (get_core_register_section): Remove handling for the case that
412 regset == NULL and regset_from_core_section is defined.
413 (get_core_registers): Drop check for deleted method.
414 * procfs.c (procfs_do_thread_registers): Adjust comment.
416 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
418 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
419 (linux_nat_make_corefile_notes): Remove.
420 (linux_target_install_ops): Do not set target method
421 'make_corefile_notes'.
422 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
424 (linux_corefile_thread_callback): Instead of args->collect, call
425 linux_collect_thread_registers.
426 (linux_make_corefile_notes): Remove 'collect' parameter. Return
427 NULL unless there is a regset iterator.
428 (linux_make_corefile_notes_1): Remove.
429 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
430 by linux_make_corefile_notes.
431 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
433 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
435 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
436 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
438 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
440 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
442 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
443 (xtensa_iterate_over_regset_sections): New.
444 (xtensa_gdbarch_init): Adjust gdbarch initialization.
446 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
448 * vax-tdep.c (vax_regset_from_core_section): Remove.
449 (vax_iterate_over_regset_sections): New.
450 (vax_gdbarch_init): Adjust gdbarch initialization.
452 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
454 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
455 (tilegx_regset_from_core_section): Remove.
456 (tilegx_iterate_over_regset_sections): New.
457 (tilegx_linux_init_abi): Adjust gdbarch initialization.
459 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
461 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
462 (sparc_iterate_over_regset_sections): New.
463 (sparc32_gdbarch_init): Adjust gdbarch initialization.
464 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
466 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
467 (sparc64fbsd_init_abi): Call fbsd_init_abi.
468 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
469 target method 'make_corefile_notes'.
471 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
473 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
474 'sizeof_gregset' and 'sizeof_fpregset'.
475 * sh-tdep.c (sh_regset_from_core_section): Remove.
476 (sh_iterate_over_regset_sections): New.
477 (sh_gdbarch_init): Adjust gdbarch initialization.
478 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
480 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
485 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
486 (score7_linux_iterate_over_regset_sections): New.
487 (score_gdbarch_init): Adjust gdbarch initialization.
489 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
491 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
493 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
494 method 'make_corefile_notes'.
495 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
496 (ppcfbsd_regset_from_core_section): Remove.
497 (ppcfbsd_iterate_over_regset_sections): New.
498 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
500 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
501 (ppcnbsd_iterate_over_regset_sections): New.
502 (ppcnbsd_init_abi): Adjust.
503 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
504 (ppcobsd_iterate_over_regset_sections): New.
505 (ppcobsd_init_abi): Adjust.
506 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
507 (rs6000_aix_iterate_over_regset_sections): New.
508 (rs6000_aix_init_osabi): Adjust.
510 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
512 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
513 (nios2_regset_from_core_section): Remove.
514 (nios2_iterate_over_regset_sections): New.
515 (nios2_linux_init_abi): Adjust gdbarch initialization.
517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
519 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
520 (am33_iterate_over_regset_sections): New.
521 (am33_linux_init_osabi): Adjust gdbarch initialization.
523 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
525 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
526 (mips_linux_iterate_over_regset_sections): New.
527 (mips_linux_init_abi): Adjust gdbarch initialization.
528 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
529 (mips64obsd_iterate_over_regset_sections): New.
530 (mips64obsd_init_abi): Adjust.
531 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
532 (mipsnbsd_iterate_over_regset_sections): New.
533 (mipsnbsd_init_abi): Adjust.
535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
537 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
538 (m88k_iterate_over_regset_sections): New.
539 (m88k_gdbarch_init): Adjust gdbarch initialization.
541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
543 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
544 (ia64_linux_iterate_over_regset_sections): New.
545 (ia64_linux_init_abi): Adjust gdbarch initialization.
547 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
549 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
550 (m68kbsd_iterate_over_regset_sections): New.
551 (m68kbsd_init_abi): Adjust gdbarch initialization.
552 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
553 (m68k_linux_iterate_over_regset_sections): New.
554 (m68k_linux_init_abi): Adjust gdbarch initialization.
556 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
558 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
559 (m32r_linux_regset_from_core_section): Remove.
560 (m32r_linux_iterate_over_regset_sections): New.
561 (m32r_linux_init_abi): Adjust gdbarch initialization.
563 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
565 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
566 (amd64obsd_iterate_over_regset_sections): New.
567 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
568 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
570 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
571 regset_from_core_section initialization.
572 * i386-tdep.c (i386_regset_from_core_section): Remove.
573 (i386_iterate_over_regset_sections): New.
574 (i386_gdbarch_init): Adjust gdbarch initialization.
575 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
576 (i386_iterate_over_regset_sections): New prototype.
577 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
579 (i386obsd_aout_iterate_over_regset_sections): New.
580 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
581 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
583 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
584 (amd64fbsd_init_abi): Call fbsd_init_abi.
585 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
586 (i386fbsd4_init_abi): Call fbsd_init_abi.
587 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
588 target method 'make_corefile_notes'.
589 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
593 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
594 (hppa_hpux_iterate_over_regset_sections): New.
595 (hppa_hpux_init_abi): Adjust gdbarch initialization.
596 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
597 (hppa_linux_iterate_over_regset_sections): New.
598 (hppa_linux_init_abi): Adjust.
599 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
600 (hppanbsd_iterate_over_regset_sections): New.
601 (hppanbsd_init_abi): Adjust.
602 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
603 (hppaobsd_iterate_over_regset_sections): New.
604 (hppaobsd_init_abi): Adjust.
606 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
608 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
609 (frv_linux_iterate_over_regset_sections): New.
610 (frv_linux_init_abi): Adjust gdbarch initialization.
612 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
614 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
615 (armbsd_iterate_over_regset_sections): New prototype.
616 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
617 (armbsd_iterate_over_regset_sections): New.
618 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
621 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
623 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
624 (alpha_linux_iterate_over_regset_sections): New.
625 (alpha_linux_init_abi): Adjust gdbarch initialization.
626 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
628 (alphanbsd_iterate_over_regset_sections): New prototype.
630 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
632 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
634 (aarch64_linux_iterate_over_regset_sections): New.
635 (aarch64_linux_init_abi): Adjust gdbarch initialization.
637 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
639 * fbsd-tdep.c: New file.
640 * fbsd-tdep.h: New file.
641 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
642 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
643 (ALLDEPFILES): Add fbsd-tdep.c.
645 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
647 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
649 * gdbarch.h: Regenerate.
650 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
652 (get_core_register_section): Add parameter 'regset' and use it, if
653 set. Add parameter 'min_size' and verify the bfd section size
655 (get_core_registers_cb): Add parameter 'regset' and pass it to
656 get_core_register section. For the "standard" register sections
657 ".reg" and ".reg2", set an appropriate default for human_name.
658 (get_core_registers): Don't abort when the gdbarch has an iterator
659 but no regset_from_core_section. Add NULL/0 for parameters
660 'regset'/'min_size' in calls to get_core_register_section.
661 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
662 'regset' and use it instead of calling the
663 regset_from_core_section gdbarch method.
664 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
665 * i386-tdep.c (i386_supply_xstateregset)
666 (i386_collect_xstateregset, i386_xstateregset): Moved to
668 (i386_regset_from_core_section): Drop handling for .reg-xfp and
670 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
671 core file support only if the regset iterator hasn't been set.
672 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
673 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
674 Moved from i386-tdep.c and renamed to *_linux*.
675 (i386_linux_iterate_over_regset_sections): Add regset parameter to
676 each callback invocation. Allow any .reg-xstate size when reading
678 * amd64-tdep.c (amd64_supply_xstateregset)
679 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
681 (amd64_regset_from_core_section): Remove.
682 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
683 install an amd64-specific regset_from_core_section gdbarch method.
684 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
685 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
686 Moved from amd64-tdep.c and renamed to *_linux*.
687 (amd64_linux_iterate_over_regset_sections): Add regset parameter
688 to each callback invocation. Allow any .reg-xstate size when
689 reading from a core file.
690 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
691 (arm_linux_iterate_over_regset_sections): Add regset parameter to
692 each callback invocation.
693 (arm_linux_init_abi): No longer set the regset_from_core_section
695 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
696 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
697 each callback invocation.
698 (ppc_linux_init_abi): No longer set the regset_from_core_section
700 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
701 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
702 (s390_regset_from_core_section): Remove.
703 (s390_iterate_over_regset_sections): Add regset parameter to each
705 (s390_gdbarch_init): No longer set the regset_from_core_section
706 gdbarch method. Drop initialization of deleted tdep fields.
708 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
710 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
711 (amd64_linux_iterate_over_regset_sections): New.
712 (amd64_linux_init_abi_common): Don't install the regset section
713 list, but the new iterator in gdbarch.
714 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
715 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
716 (arm_linux_iterate_over_regset_sections): ...here. New function.
717 (arm_linux_init_abi): Set iterator instead of section list.
718 * corelow.c (get_core_registers_cb): New function, logic moved
720 (get_core_registers): ...loop body here. Use new iterator method
721 instead of walking through the regset section list.
722 * gdbarch.sh: Remove 'core_regset_sections'. New method
723 'iterate_over_regset_sections'. New typedef
724 'iterate_over_regset_sections_cb'.
725 * gdbarch.c: Regenerate.
726 * gdbarch.h: Likewise.
727 * i386-linux-tdep.c (i386_linux_regset_sections)
728 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
730 (i386_linux_iterate_over_regset_sections): New.
731 (i386_linux_init_abi): Don't choose a regset section list, but
732 install new iterator in gdbarch.
733 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
734 (linux_collect_regset_section_cb): New function, logic moved
736 (linux_collect_thread_registers): ...loop body here. Use iterator
737 method instead of walking through list.
738 (linux_make_corefile_notes_1): Check for presence of iterator
739 method instead of regset section list.
740 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
741 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
742 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
743 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
744 (ppc_linux_iterate_over_regset_sections): ...here. New function.
745 (ppc_linux_init_abi): Don't choose from above regset section
746 lists, but install new iterator in gdbarch.
747 * regset.h (struct core_regset_section): Remove.
748 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
749 have_linux_v1, have_linux_v2, and have_tdb.
750 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
751 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
752 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
753 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
754 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
755 (s390_iterate_over_regset_sections): ...here. New function. Use
757 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
758 regset section lists, but install new iterator.
760 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
762 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
764 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
766 * progspace.c (print_program_space): Don't prune program spaces
767 before printing them.
769 2014-09-25 Pedro Alves <palves@redhat.com>
771 * infrun.c (user_visible_resume_ptid): Don't check
772 singlestep_breakpoints_inserted_p.
774 2014-09-25 Pedro Alves <palves@redhat.com>
776 * breakpoint.c (should_be_inserted): Add debug output.
778 2014-09-25 Pedro Alves <palves@redhat.com>
780 * infrun.c (stepping_past_instruction_at)
781 (clear_exit_convenience_vars): Point at infrun.h instead of
783 (handle_signal_stop): Fix typo.
785 2014-09-24 Yao Qi <yao@codesourcery.com>
787 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
790 2014-09-22 Gary Benson <gbenson@redhat.com>
792 * target.c (target_stop): Updated comment.
794 2014-09-22 Gary Benson <gbenson@redhat.com>
796 * target/target.h (target_stop_ptid): Renamed as...
797 (target_stop_and_wait): New function. Updated comment.
799 (target_continue_ptid): Renamed as...
800 (target_continue_no_signal): New function. Updated comment.
803 2014-09-22 Pedro Alves <palves@redhat.com>
805 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
807 * breakpoint.c (enum ugll_insert_mode): New enum.
808 (always_inserted_mode): Now a plain boolean.
809 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
810 (breakpoints_always_inserted_mode): Delete.
811 (breakpoints_should_be_inserted_now): New function.
812 (insert_breakpoints): Pass UGLL_INSERT to
813 update_global_location_list instead of calling
814 insert_breakpoint_locations manually.
815 (create_solib_event_breakpoint_1): New, factored out from ...
816 (create_solib_event_breakpoint): ... this.
817 (create_and_insert_solib_event_breakpoint): Use
818 create_solib_event_breakpoint_1 instead of calling
819 insert_breakpoint_locations manually.
820 (update_global_location_list): Change parameter type from boolean
821 to enum ugll_insert_mode. All callers adjusted. Adjust to use
822 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
823 (update_global_location_list_nothrow): Change parameter type from
824 boolean to enum ugll_insert_mode.
825 (_initialize_breakpoint): "breakpoint always-inserted" option is
826 now a boolean command. Update help text.
827 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
828 (breakpoints_should_be_inserted_now): New declaration.
829 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
830 Remove breakpoints_always_inserted_mode check.
831 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
832 * remote.c (remote_start_remote): Likewise.
834 2014-09-22 Pedro Alves <palves@redhat.com>
836 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
837 (insert_breakpoints): Don't call insert_breakpoint_locations here.
838 Instead, pass UGLL_INSERT to update_global_location_list.
839 (update_global_location_list): Change parameter type from boolean
840 to enum ugll_insert_mode. All callers adjusted. Adjust to use
841 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
842 (create_solib_event_breakpoint_1): New, factored out from ...
843 (create_solib_event_breakpoint): ... this.
844 (create_and_insert_solib_event_breakpoint): Use
845 create_solib_event_breakpoint_1 instead of calling
846 insert_breakpoint_locations manually.
847 (update_global_location_list): Handle UGLL_INSERT.
849 2014-09-22 Pedro Alves <palves@redhat.com>
851 * breakpoint.c (enum ugll_insert_mode): New enum.
852 (update_global_location_list)
853 (update_global_location_list_nothrow): Change parameter type from
854 boolean to enum ugll_insert_mode. All callers adjusted.
856 2014-09-19 Joel Brobecker <brobecker@adacore.com>
858 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
859 SystemTap support in GDB.
861 2014-09-19 Don Breazeal <donb@codesourcery.com>
863 * linux-nat.c (linux_handle_extended_wait): Call
864 linux_ptrace_get_extended_event.
865 (wait_lwp): Call linux_is_extended_waitstatus.
866 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
867 and linux_is_extended_waitstatus.
868 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
869 linux_ptrace_get_extended_event.
870 (linux_ptrace_get_extended_event): New function.
871 (linux_is_extended_waitstatus): New function.
872 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
873 (linux_is_extended_waitstatus): New declarations.
875 2014-09-19 Yao Qi <yao@codesourcery.com>
877 * dwarf2read.c (dwarf_decode_lines): Update declaration.
878 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
879 comments. Callers update.
880 (dwarf_decode_lines): Likewise.
881 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
882 comments. Skip the line table if 'lowpc' is greater than
883 'address'. Don't check
884 dwarf2_per_objfile->has_section_at_zero.
886 2014-09-18 Doug Evans <dje@google.com>
888 * NEWS: Mention new "producer" attribute of gdb.Symtab.
889 * python/py-symtab.c (stpy_get_producer): New function.
890 (symtab_object_getset): Add "producer" attribute.
892 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
895 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
896 (do_captured_read_memory_integer): Remove.
897 (safe_read_memory_integer): Use target_read_memory directly instead
898 of catching errors in do_captured_read_memory_integer.
900 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
902 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
905 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
907 * objc-lang.c (find_implementation_from_class): Remove dead code.
909 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
912 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
913 "fprintf_unfiltered (gdb_stdlog...)".
915 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
918 * breakpoint.h (struct watchpoint): New fields val_bitpos and
920 * breakpoint.c (watch_command_1): Use these fields to retain
921 bitfield information.
922 (extract_bitfield_from_watchpoint_value): New function.
923 (watchpoint_check): Use it.
924 (update_watchpoint): Use it. Optimize the address and length of a
925 HW watchpoint pointing to a bitfield.
926 * value.h (unpack_value_bitfield): New prototype.
927 * value.c (unpack_value_bitfield): Make extern.
929 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
931 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
933 * gnu-nat.c (inf_threads): New function.
934 * gnu-nat.h (inf_threads_ftype): New typedef.
935 (inf_threads): New declaration.
936 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
937 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
938 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
939 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
940 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
941 (i386_gnu_dr_get_control): New functions.
942 (reg_addr): New structure.
943 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
944 i386 debugging register hooks.
945 * NEWS: Mention this.
947 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
949 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
950 vector data transfer instructions.
951 (arm_record_coproc_data_proc): Updated.
953 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
955 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
956 arm_record_exreg_ld_st_insn.
957 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
960 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
962 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
963 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
964 processing instructions.
966 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
968 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
969 for advance SIMD struct ld/st insn.
970 (thumb2_record_decode_insn_handler): Replace stub handler with
971 thumb2_record_asimd_struct_ld_st.
973 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
975 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
976 for asimd, vfp and coprocessor insns.
977 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
978 and coprocessor insns.
979 (thumb2_record_coproc_insn): New function.
980 (thumb2_record_decode_insn_handler): Update coprocessor insns record
982 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
985 2014-09-13 Doug Evans <xdje42@gmail.com>
987 * NEWS: Mention new "queue-signal" command.
988 * infcmd.c (queue_signal_command): New function.
989 (_initialize_infcmd): Add new queue-signal command.
991 2014-09-13 Doug Evans <xdje42@gmail.com>
993 * linux-nat.c (wait_lwp): Add debugging printf.
994 (linux_nat_wait_1): Ditto.
996 2014-09-12 Pedro Alves <palves@redhat.com>
998 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
999 (create_and_insert_solib_event_breakpoint): New functions.
1000 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1001 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1002 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1003 (remove_dbx_link_breakpoint): Delete function.
1004 (insert_dbx_link_bpt_in_file): Use
1005 create_and_insert_solib_event_breakpoint instead of
1006 deprecated_insert_raw_breakpoint.
1007 (procfs_wait): Don't check whether we hit __dbx_link here.
1008 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1010 * solib-irix.c (base_breakpoint): Delete global.
1011 (disable_break): Delete function.
1012 (enable_break): Use create_solib_event_breakpoint
1013 instead of deprecated_insert_raw_breakpoint.
1014 (irix_solib_handle_event): New function.
1015 (irix_solib_create_inferior_hook): Don't run the target or disable
1016 the mapping-complete breakpoint here.
1017 (_initialize_irix_solib): Install irix_solib_handle_event as
1018 so_ops->handle_event hook.
1020 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1021 Ulrich Weigand <uweigand@de.ibm.com>
1024 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1025 instead of read_memory_unsigned_integer.
1027 2014-09-12 Gary Benson <gbenson@redhat.com>
1029 * nat/linux-waitpid.c: Include common-defs.h.
1030 [GDBSERVER]: Add FIXME comment.
1031 [!GDBSERVER]: Don't include defs.h or signal.h.
1032 (linux_debug) [!GDBSERVER]: Remove empty block.
1034 2014-09-12 Gary Benson <gbenson@redhat.com>
1036 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1037 Don't include defs.h or server.h.
1039 2014-09-12 Gary Benson <gbenson@redhat.com>
1041 * nat/linux-btrace.c: Include common-defs.h.
1042 Don't include defs.h, server.h or gdbthread.h.
1043 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1045 2014-09-12 Gary Benson <gbenson@redhat.com>
1047 * common/agent.c: Include common-defs.h.
1048 Don't include defs.h or server.h.
1049 * common/buffer.c: Likewise.
1050 * common/common-debug.c: Likewise.
1051 * common/common-utils.c: Likewise.
1052 * common/errors.c: Likewise.
1053 * common/filestuff.c: Likewise.
1054 * common/format.c: Likewise.
1055 * common/gdb_vecs.c: Likewise.
1056 * common/print-utils.c: Likewise.
1057 * common/ptid.c: Likewise.
1058 * common/rsp-low.c: Likewise.
1059 * common/signals.c: Likewise.
1060 * common/vec.c: Likewise.
1061 * common/xml-utils.c: Likewise.
1062 * nat/linux-osdata.c: Likewise.
1063 * nat/linux-procfs.c: Likewise.
1064 * nat/linux-ptrace.c: Likewise.
1065 * nat/mips-linux-watch.c: Likewise.
1066 * target/waitstatus.c: Likewise.
1068 2014-09-12 Tom Tromey <tromey@redhat.com>
1069 Gary Benson <gbenson@redhat.com>
1071 * common/common-regcache.h: New file.
1072 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1073 * regcache.h: Include common-regcache.h.
1074 (regcache_read_pc): Don't declare.
1075 * regcache.c (get_thread_regcache_for_ptid): New function.
1076 * nat/linux-btrace.c: Don't include regcache.h.
1077 Include common-regcache.h.
1078 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1080 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1082 * regcache.h (struct regset): Declare.
1084 2014-09-11 Pedro Alves <palves@redhat.com>
1087 * main.c: Include "infrun.h".
1088 (catch_command_errors, catch_command_errors_const): Wait for the
1089 foreground command to complete.
1090 * top.c (maybe_wait_sync_command_done): New function, factored out
1092 (maybe_wait_sync_command_done): ... here.
1093 * top.h (maybe_wait_sync_command_done): New declaration.
1095 2014-09-11 Tom Tromey <tromey@redhat.com>
1096 Gary Benson <gbenson@redhat.com>
1098 * common/symbol.h: New file.
1099 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1100 * minsyms.c (find_minimal_symbol_address): New function.
1101 * common/agent.c: Include common/symbol.h.
1102 [!GDBSERVER]: Don't include objfiles.h.
1103 (agent_look_up_symbols): Use find_minimal_symbol_address.
1105 2014-09-11 Gary Benson <gbenson@redhat.com>
1107 * target/target.h (target_stop_ptid, target_continue_ptid):
1109 * target.c (target_stop_ptid, target_continue_ptid): New
1111 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1112 (agent_run_command): Always use target_stop_ptid and
1113 target_continue_ptid.
1115 2014-09-11 Tom Tromey <tromey@redhat.com>
1116 Gary Benson <gbenson@redhat.com>
1118 * target/target.h: New file.
1119 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1120 * target.h: Include target/target.h.
1121 (target_read_memory, target_write_memory): Don't declare.
1122 * target.c (target_read_uint32): New function.
1123 * common/agent.c: Include target/target.h.
1124 [!GDBSERVER]: Don't include target.h.
1125 (helper_thread_id): Type changed to uint32_t.
1126 (agent_get_helper_thread_id): Use target_read_uint32.
1127 (agent_run_command): Always use target_read_memory and
1128 target_write_memory.
1129 (agent_capability): Type changed to uint32_t.
1130 (agent_capability_check): Use target_read_uint32.
1132 2014-09-11 Gary Benson <gbenson@redhat.com>
1134 * common/common-debug.h (show_debug_regs): Declare.
1135 * common/common-debug.c (show_debug_regs): Define.
1136 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1137 all uses with show_debug_regs. Replace all uses that considered
1138 debug_hw_points as a multi-value integer with straight boolean
1140 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1141 with show_debug_regs.
1142 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1143 all uses with show_debug_regs.
1144 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1145 uses with show_debug_regs.
1147 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1149 * findvar.c (address_from_register): Handle targets requiring
1150 a special conversion routine even for plain pointer types.
1152 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1154 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1155 (store_register): Do not call exec_one_dummy_insn.
1157 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1159 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1160 dereference it first. Use value_enclosing_type instead of
1162 (ada_array_length): Likewise.
1164 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1166 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1167 Adjust function implementation and documentation accordingly.
1168 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1169 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1170 Update call to ada_value_ptr_subscript.
1172 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1174 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1175 instead of VAL's type.
1177 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1179 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1181 2014-09-09 Doug Evans <xdje42@gmail.com>
1184 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1185 last parameter to pkg-config, not first.
1186 * configure.ac: Pass --with-guile provided pkg-config path to
1187 GDB_GUILE_PROGRAM_NAMES.
1188 * configure: Regenerate.
1190 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1192 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1195 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1197 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1198 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1199 the list of sections determining GDB_OSABI_IRIX.
1201 2014-09-09 James Hogan <james.hogan@imgtec.com>
1203 * MAINTAINERS (Write After Approval): Add "James Hogan".
1205 2014-09-09 James Hogan <james.hogan@imgtec.com>
1207 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1209 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1211 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1213 2014-09-08 Doug Evans <xdje42@gmail.com>
1216 * guile.c: #include <signal.h>.
1217 (_initialize_guile): Block SIGCHLD while initializing Guile.
1219 Replaces the following, which is reverted.
1221 2014-07-26 Doug Evans <xdje42@gmail.com>
1224 * configure.ac: Add check for header gc/gc.h.
1225 Add check for function setenv.
1226 * configure: Regenerate.
1227 * config.in: Regenerate.
1228 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1230 2014-09-08 Doug Evans <xdje42@gmail.com>
1232 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1233 with named constant. Fix style of pointer comparison.
1234 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1236 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1239 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1240 decide whether we display the command on "show user".
1241 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1242 printing command name.
1243 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1244 * cli/cli-decode.c (cli_user_command_p): Create helper function
1245 to verify whether cmd_list_element is a user-defined command.
1247 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1250 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1251 Fix goto out of TRY_CATCH.
1253 2014-09-06 Doug Evans <xdje42@gmail.com>
1254 Tom Tromey <tromey@redhat.com>
1257 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1258 $_any_caller_matches.
1259 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1260 * python/lib/gdb/function/caller_is.py: New file.
1262 2014-09-06 Doug Evans <xdje42@gmail.com>
1264 * infcmd.c (program_info): Fix typo.
1266 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1269 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1270 'number'. New variable 'has_digit'. Rewrite code to deal with
1271 subexpressions on SDT probes.
1273 2014-09-04 Pedro Alves <palves@redhat.com>
1275 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1276 the input is only one character long.
1278 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1281 * f-valprint.c (f_val_print): Specify the correct print option to
1282 use when printing integer values.
1284 2014-09-04 Gary Benson <gbenson@redhat.com>
1286 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1287 Remove code to cope with LWPs wrapped as PIDs.
1288 Add assertions to ensure no wrapped LWPs are passed.
1290 2014-09-04 Pedro Alves <palves@redhat.com>
1292 * value.c (value_ranges_copy_adjusted): New function, factored out
1294 (value_contents_copy_raw): ... here.
1295 (unpack_value_bits_as_long_1): Rename back to ...
1296 (unpack_bits_as_long): ... this. Remove 'original_value' and
1297 'result' parameters. Change return type to LONGEST.
1298 (unpack_value_bits_as_long): Delete.
1299 (unpack_value_field_as_long_1): Delete.
1300 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1301 (unpack_value_bitfield): New function.
1302 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1303 (value_fetch_lazy): Use unpack_value_bitfield.
1304 * value.h (unpack_value_bits_as_long): Delete declaration.
1306 2014-09-03 Sasha Smundak <asmundak@google.com>
1308 * python/py-frame.c (frapy_read_register): New function.
1310 2014-09-03 James Hogan <james.hogan@imgtec.com>
1312 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1313 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1315 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1318 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1320 (add_cmd): Set "completer_handle_brkchars" to NULL.
1321 * cli/cli-decode.h (struct cmd_list_element)
1322 <completer_handle_brkchars>: New field.
1323 * command.h (completer_ftype_void): New typedef.
1324 (set_cmd_completer_handle_brkchars): New prototype.
1325 * completer.c (set_gdb_completion_word_break_characters): New
1327 (complete_line_internal): Call "completer_handle_brkchars"
1328 callback from command.
1329 * completer.h: Include "command.h".
1330 (set_gdb_completion_word_break_characters): New prototype.
1331 * python/py-cmd.c (cmdpy_completer_helper): New function.
1332 (cmdpy_completer_handle_brkchars): New function.
1333 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1334 (cmdpy_init): Set completer_handle_brkchars to
1335 cmdpy_completer_handle_brkchars.
1337 2014-09-03 Gary Benson <gbenson@redhat.com>
1339 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1340 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1341 Loop conditions changed to equivalent form.
1342 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1343 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1344 ALL_DEBUG_ADDRESS_REGISTERS.
1346 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1348 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1351 2014-09-02 Doug Evans <dje@google.com>
1353 * typeprint.c (find_global_typedef): Fix comment.
1355 2014-09-02 Gary Benson <gbenson@redhat.com>
1357 * i386-nat.h: Renamed as...
1358 * x86-nat.h: New file. All type, function and variable name
1359 prefixes changed from "i386_" to "x86_". All references updated.
1360 * i386-nat.c: Renamed as...
1361 * x86-nat.c: New file. All type, function and variable name
1362 prefixes changed from "i386_" to "x86_". All references updated.
1363 * common/i386-xstate.h: Renamed as...
1364 * common/x86-xstate.h: New file. All type, function and variable
1365 name prefixes changed from "i386_" to "x86_". All references
1367 * nat/i386-cpuid.h: Renamed as...
1368 * nat/x86-cpuid.h: New file. All type, function and variable name
1369 prefixes changed from "i386_" to "x86_". All references updated.
1370 * nat/i386-gcc-cpuid.h: Renamed as...
1371 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1372 name prefixes changed from "i386_" to "x86_". All references
1374 * nat/i386-dregs.h: Renamed as...
1375 * nat/x86-dregs.h: New file. All type, function and variable name
1376 prefixes changed from "i386_" to "x86_". All references updated.
1377 * nat/i386-dregs.c: Renamed as...
1378 * nat/x86-dregs.c: New file. All type, function and variable name
1379 prefixes changed from "i386_" to "x86_". All references updated.
1381 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1383 * varobj.c (_initialize_varobj): Move to the end of file.
1385 2014-08-29 Gary Benson <gbenson@redhat.com>
1387 * common/common-exceptions.h: New file.
1388 * common/common-exceptions.c: Likewise.
1389 * Makefile.in (SFILES): Add common/common-exceptions.c.
1390 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1391 (COMMON_OBS): Add common-exceptions.o.
1392 (common-exceptions.o): New rule.
1393 * exceptions.h (common-exceptions.h): Include.
1394 (gdb_setjmp.h): Do not include.
1395 (return_reason): Moved to common-exceptions.h.
1396 (enum return_reason): Likewise.
1397 (RETURN_MASK): Likewise.
1398 (typedef return_mask): Likewise.
1399 (enum errors): Likewise.
1400 (struct gdb_exception): Likewise.
1401 (exceptions_state_mc_init): Likewise.
1402 (exceptions_state_mc_action_iter): Likewise.
1403 (exceptions_state_mc_action_iter_1): Likewise.
1404 (TRY_CATCH): Likewise.
1405 (throw_exception): Likewise.
1406 (throw_verror): Likewise.
1407 (throw_vquit): Likewise.
1408 (throw_error): Likewise.
1409 (throw_quit): Likewise.
1410 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1411 (enum catcher_action): Likewise.
1412 (struct catcher): Likewise.
1413 (current_catcher): Likewise.
1414 (catcher_list_size): Likewise.
1415 (exceptions_state_mc_init): Likewise.
1416 (catcher_pop): Likewise.
1417 (exceptions_state_mc): Likewise.
1418 (exceptions_state_mc_action_iter): Likewise.
1419 (exceptions_state_mc_action_iter_1): Likewise.
1420 (throw_exception): Likewise.
1421 (exception_messages): Likewise.
1422 (exception_messages_size): Likewise.
1423 (throw_it): Likewise.
1424 (throw_verror): Likewise.
1425 (throw_vquit): Likewise.
1426 (throw_error): Likewise.
1427 (throw_quit): Likewise.
1428 (prepare_to_throw_exception): New function.
1430 2014-08-29 Gary Benson <gbenson@redhat.com>
1432 * common/gdb_setjmp.h: New file.
1433 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1434 * configure.ac: Move sigsetjmp check...
1435 * common/common.m4: ...here.
1436 * configure: Regenerate.
1437 * cp-support.c (SIGJMP_BUF): Delete.
1438 (SIGSETJMP): Likewise.
1439 (SIGLONGJMP): Likewise.
1440 * exceptions.h (gdb_setjmp.h): Include.
1441 (setjmp.h): Do not include.
1442 (EXCEPTIONS_SIGJMP_BUF): Delete.
1443 (EXCEPTIONS_SIGSETJMP): Likewise.
1444 (EXCEPTIONS_SIGLONGJMP): Likewise.
1445 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1447 * exceptions.c: Likewise.
1449 2014-08-29 Gary Benson <gbenson@redhat.com>
1451 * cleanups.h: Moved to...
1452 * common/cleanups.h: New file.
1453 * cleanups.c: Moved to...
1454 * common/cleanups.c: New file. Include common-defs.h and
1455 cleanups.h. Do not include defs.h.
1456 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1457 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1458 (cleanups.o): New rule.
1460 2014-08-29 Gary Benson <gbenson@redhat.com>
1462 * common/errors.h (internal_warning): New declaration.
1463 (internal_vwarning): Likewise.
1464 * common/errors.c (internal_warning): New function.
1465 * utils.h (internal_warning): Don't declare.
1466 (internal_vwarning): Likewise.
1467 * utils.c (internal_warning): Removed.
1469 2014-08-29 Gary Benson <gbenson@redhat.com>
1471 * main.c (captured_main): Use warning during startup.
1472 Prefix startup warning messages with command name.
1474 2014-08-29 Gary Benson <gbenson@redhat.com>
1476 * main.c (captured_main): Handle usage errors with error.
1478 2014-08-29 Gary Benson <gbenson@redhat.com>
1480 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1481 exit pair with a call to error. Wrap the message with _().
1483 2014-08-29 Gary Benson <gbenson@redhat.com>
1485 * main.c (captured_main): Replace a fprintf/exit
1486 pair with a call to error. Wrap the message with _().
1488 2014-08-29 Gary Benson <gbenson@redhat.com>
1490 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1491 pairs with calls to error. Wrap the message with _().
1493 2014-08-29 Gary Benson <gbenson@redhat.com>
1495 * utils.c (vwarning): Protect calls to target_terminal_ours
1498 2014-08-29 Gary Benson <gbenson@redhat.com>
1500 * exceptions.c (print_flush): Protect calls to
1501 target_terminal_ours and wrap_here.
1503 2014-08-29 Gary Benson <gbenson@redhat.com>
1505 * utils.h (filtered_printing_initialized): New declaration.
1506 * utils.c (abort_with_message): New function.
1507 (internal_vproblem): Use abort_with_message for first level
1508 recursive internal problems, and if gdb_stderr is not set up.
1509 Protect calls to target_terminal_ours, begin_line and query.
1511 2014-08-28 Doug Evans <dje@google.com>
1513 * symtab.c (in_prologue): Move definition to better spot.
1514 (skip_prologue_using_sal): Ditto.
1516 2014-08-28 Doug Evans <dje@google.com>
1518 * symtab.c (find_function_start_sal): Move definition to better spot.
1520 2014-08-28 Yao Qi <yao@codesourcery.com>
1522 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1523 found_stack_adjust in forward scan. Remove condition check
1524 on found_stack_adjust which is always true. Indent the code.
1526 2014-08-28 Yao Qi <yao@codesourcery.com>
1528 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1529 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1530 (dwarf_decode_lines): Remove argument
1531 want_line_info. Remove condition check on want_line_info.
1534 2014-08-27 Doug Evans <dje@google.com>
1536 * dwarf2read.c (dwarf_record_line): Fix typo.
1538 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1540 * target.h (struct target_ops::to_terminal_save_ours): Remove
1542 (target_terminal_save_ours): Remove macro.
1543 * target-delegates.c: Regenerate.
1544 * inf-child.c (inf_child_target): Don't set the nonexistent
1545 field to_terminal_save_ours.
1546 * inferior.h (child_terminal_save_ours): Remove declaration.
1547 * terminal.h (gdb_save_tty_state): New declaration.
1548 * inflow.c (child_terminal_save_ours): Rename to ...
1549 (gdb_save_tty_state): ... this.
1550 * tui/tui.c: Include terminal.h.
1551 (tui_enable): Use gdb_save_tty_state instead of
1552 target_terminal_save_ours.
1553 (tui_disable): Likewise.
1555 2014-08-25 Doug Evans <dje@google.com>
1557 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1558 Pass NULL instead of 0 for context pointer.
1560 2014-08-25 Yao Qi <yao@codesourcery.com>
1562 * dwarf2read.c: Fix grammatical error.
1564 2014-08-24 Yao Qi <yao@codesourcery.com>
1566 * dwarf2read.c (scan_partial_symbols): Update comments.
1567 Rename argument 'need_pc' with 'set_addrmap'.
1568 (add_partial_namespace): Rename argument 'need_pc' with
1570 (add_partial_module): Likewise.
1571 (add_partial_subprogram): Likewise. Update comments.
1572 (dwarf2_name): Fix typo.
1574 2014-08-22 Doug Evans <dje@google.com>
1577 * dwarf2read.c (dwarf_record_line_p): New function.
1578 (dwarf_decode_lines_1): Ignore subsequent line number entries
1579 for the same line if any entry had a non-zero discriminator.
1581 2014-08-22 Doug Evans <dje@google.com>
1583 * buildsym.h (record_line_ftype): New typedef.
1584 (record_line): Use it.
1585 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1586 (dwarf_decode_lines_1): Call them.
1588 2014-08-22 Yao Qi <yao@codesourcery.com>
1590 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1591 (ctf_end): Remove code.
1593 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1595 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1596 (linux_make_corefile_notes): call update_thread_list, protected against
1599 2014-08-21 Pedro Alves <palves@redhat.com>
1601 * infcmd.c (attach_command): Remove comment.
1603 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1605 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1606 unsigned LONGEST to ULONGEST.
1608 2014-08-20 Pedro Alves <palves@redhat.com>
1610 * Makefile.in (check-read1): New rule.
1612 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1614 * value.c (value_from_contents_and_address): Strip resolved_type's
1615 typedef layers before checking its TYPE_DATA_LOCATION.
1617 2014-08-20 Pedro Alves <palves@redhat.com>
1619 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1621 2014-08-20 Yao Qi <yao@codesourcery.com>
1623 * amd64-tdep.c (amd64_classify): Add a blank line after the
1624 example. Move "*/" to a new line.
1625 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1626 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1627 * dwarf2read.c (psymtab_include_file_name): Likewise.
1629 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1630 Pedro Alves <palves@redhat.com>
1634 * ada-lang.c (coerce_unspec_val_to_type): Use
1635 value_contents_copy_raw.
1636 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1637 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1638 * cp-valprint.c (cp_print_value_fields): Let the common printing
1639 code handle optimized out values.
1640 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1641 * d-valprint.c (dynamic_array_type): Use
1642 value_bits_any_optimized_out.
1643 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1644 check_any_valid fields.
1645 (check_pieced_value_bits): Delete and inline ...
1646 (check_pieced_synthetic_pointer): ... here.
1647 (check_pieced_value_validity): Delete.
1648 (check_pieced_value_invalid): Delete.
1649 (pieced_value_funcs): Remove check_validity and check_any_valid
1651 (read_pieced_value): Use mark_value_bits_optimized_out.
1652 (write_pieced_value): Switch to use
1653 mark_value_bytes_optimized_out.
1654 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1655 of assuming the whole value is optimized out.
1656 * findvar.c (read_frame_register_value): Remove special handling
1657 of optimized out registers.
1658 (value_from_register): Use mark_value_bytes_optimized_out.
1659 * frame-unwind.c (frame_unwind_got_optimized): Use
1660 mark_value_bytes_optimized_out.
1661 * jv-valprint.c (java_value_print): Adjust.
1662 (java_print_value_fields): Let the common printing code handle
1663 optimized out values.
1664 * mips-tdep.c (mips_print_register): Remove special handling of
1665 optimized out registers.
1666 * opencl-lang.c (lval_func_check_validity): Delete.
1667 (lval_func_check_any_valid): Delete.
1668 (opencl_value_funcs): Remove check_validity and check_any_valid
1670 * p-valprint.c (pascal_object_print_value_fields): Let the common
1671 printing code handle optimized out values.
1672 * stack.c (read_frame_arg): Remove special handling of optimized
1673 out values. Fetch both VAL and ENTRYVAL before comparing
1674 contents. Adjust to value_available_contents_eq rename.
1675 * valprint.c (valprint_check_validity)
1676 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1677 (val_print_array_elements): Adjust.
1678 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1679 (value_bits_any_optimized_out): New function.
1680 (value_entirely_covered_by_range_vector): New function, factored
1681 out from value_entirely_unavailable.
1682 (value_entirely_unavailable): Reimplement.
1683 (value_entirely_optimized_out): New function.
1684 (insert_into_bit_range_vector): New function, factored out from
1685 mark_value_bits_unavailable.
1686 (mark_value_bits_unavailable): Reimplement.
1687 (struct ranges_and_idx): New struct.
1688 (find_first_range_overlap_and_match): New function, factored out
1689 from value_available_contents_bits_eq.
1690 (value_available_contents_bits_eq): Rename to ...
1691 (value_contents_bits_eq): ... this. Check both unavailable
1692 contents and optimized out contents.
1693 (value_available_contents_eq): Rename to ...
1694 (value_contents_eq): ... this.
1695 (allocate_value_lazy): Remove reference to the old optimized_out
1697 (allocate_optimized_out_value): Use
1698 mark_value_bytes_optimized_out.
1699 (require_not_optimized_out): Adjust to check whether the
1700 optimized_out vec is empty.
1701 (ranges_copy_adjusted): New function, factored out from
1702 value_contents_copy_raw.
1703 (value_contents_copy_raw): Also copy the optimized out ranges.
1704 Assert the destination ranges aren't optimized out.
1705 (value_contents_copy): Update comment, remove call to
1706 require_not_optimized_out.
1707 (value_contents_equal): Adjust to check whether the optimized_out
1709 (set_value_optimized_out, value_optimized_out_const): Delete.
1710 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1712 (value_entirely_optimized_out, value_bits_valid): Delete.
1713 (value_copy): Take a VEC copy of the 'optimized_out' field.
1714 (value_primitive_field): Remove special handling of optimized out.
1715 (value_fetch_lazy): Assert that lazy values have no unavailable
1716 regions. Use value_bits_any_optimized_out. Remove some special
1717 handling for optimized out values.
1718 * value.h: Add intro comment about <optimized out> and
1720 (struct lval_funcs): Remove check_validity and check_any_valid
1722 (set_value_optimized_out, value_optimized_out_const): Remove.
1723 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1725 (value_bits_any_optimized_out): New declaration.
1726 (value_bits_valid): Delete declaration.
1727 (value_available_contents_eq): Rename to ...
1728 (value_contents_eq): ... this, and extend comments.
1730 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1732 Fix -fsanitize=address on unreadable inferior strings.
1733 * valprint.c (val_print_string): Fix access before BUFFER.
1735 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1737 * target.c (target_struct_size): Remove.
1738 (target_struct_allocsize): Remove.
1739 (DEFAULT_ALLOCSIZE): Remove.
1740 (target_ops_p): New typedef.
1741 (DEF_VEC_P (target_ops_p)): New vector type.
1742 (target_structs): Change type to VEC (target_ops_p).
1743 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1744 (find_default_run_target): Rewrite for loop following changes to
1747 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1749 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1750 Adjust code accordingly. Adjust function description comment.
1752 2014-08-19 Yao Qi <yao@codesourcery.com>
1754 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1757 2014-08-19 Alan Modra <amodra@gmail.com>
1759 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1760 * config.in: Regenerate.
1761 * configure: Regenerate.
1763 2014-08-19 Tom Tromey <tromey@redhat.com>
1764 Gary Benson <gbenson@redhat.com>
1766 * common/common-debug.h: New file.
1767 * common/common-debug.c: Likewise.
1768 * debug.c: Likewise.
1769 * Makefile.in (SFILES): Add common/common-debug.c.
1770 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1771 (COMMON_OBS): Add common-debug.o and debug.o.
1772 (common-debug.o): New rule.
1773 * common/common-defs.h: Include common-debug.h.
1774 * common/agent.c (debug_agent_printf): New function.
1775 (DEBUG_AGENT): Redefine.
1776 * nat/i386-dregs.c (debug_printf): Undefine.
1778 2014-08-19 Gary Benson <gbenson@redhat.com>
1780 * common/common-defs.h: Include print-utils.h.
1781 * utils.h: Do not include print-utils.h.
1783 2014-08-19 Tom Tromey <tromey@redhat.com>
1784 Gary Benson <gbenson@redhat.com>
1786 * common/common-types.h: New file.
1787 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1788 * common/common-defs.h: Include common-types.h.
1789 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1792 2014-08-19 Tom Tromey <tromey@redhat.com>
1793 Gary Benson <gbenson@redhat.com>
1795 * common/errors.h: New file.
1796 * common/errors.c: Likewise.
1797 * Makefile.in (SFILES): Add common/errors.c.
1798 (HFILES_NO_SRCDIR): Add common/errors.h.
1799 (COMMON_OBS): Add errors.o.
1800 (errors.o): New rule.
1801 * common/common-defs.h: Include errors.h.
1802 * utils.h (perror_with_name, error, verror, warning, vwarning):
1804 * common/common-utils.h: (malloc_failure, internal_error):
1807 2014-08-19 Gary Benson <gbenson@redhat.com>
1809 * utils.c (internal_vproblem): Always print the message.
1811 2014-08-18 Doug Evans <dje@google.com>
1813 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1815 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1817 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1818 Return 0 if TYPE is dynamic.
1819 (print_range): Add handling of dynamic ranges.
1821 2014-08-18 Keven Boell <keven.boell@intel.com>
1822 Joel Brobecker <brobecker@adacore.com>
1824 * gdbtypes.h (struct main_type): Add field "data_location".
1825 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1826 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1827 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1828 a dynamic data location.
1829 (resolve_dynamic_type): Add DW_AT_data_location handling.
1830 (copy_recursive, copy_type): Copy the data_location information
1832 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1833 * value.c (value_from_contents_and_address): Add
1834 DW_AT_data_location handling.
1836 2014-08-18 Keven Boell <keven.boell@intel.com>
1837 Joel Brobecker <brobecker@adacore.com>
1839 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1840 field "get_object_address".
1841 * dwarf2expr.c (execute_stack_op): Add handling for
1842 DW_OP_push_object_address.
1843 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1844 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1845 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1846 (dwarf_expr_get_obj_addr): New function.
1847 (dwarf_expr_ctx_funcs): Add get_object_address field.
1848 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1849 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1850 (dwarf2_evaluate_property): Add parameter "address". Use it.
1851 (needs_get_obj_addr): New function.
1852 (needs_frame_ctx_funcs): Add get_object_address field.
1853 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1854 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1855 (resolve_dynamic_array): Likewise.
1857 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1859 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1860 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1861 fixed value for records and unions for which some GNAT encodings
1864 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1866 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1867 rewrite to avoid "else if" and "else" constructs. Should be
1868 a no-op in practice.
1870 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1872 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1875 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1878 * eval.c: Update all calls to find_overload_match.
1879 * valarith.c: Likewise.
1880 (value_user_defined_cpp_op, value_user_defined_op): New
1881 argument NOSIDE. Update all callers.
1882 * valops.c (find_overload_match): New argument NOSIDE.
1883 * value.h (find_overload_match): Update signature.
1885 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1887 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1888 'items' methods instead of 'iteritems' method on dictionaries.
1890 2014-08-15 Doug Evans <dje@google.com>
1892 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1895 2014-08-15 Doug Evans <dje@google.com>
1897 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1899 2014-08-15 Doug Evans <dje@google.com>
1901 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1903 2014-08-15 Doug Evans <dje@google.com>
1905 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1908 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1910 * dcache.h: Include target.h, to avoid compile time warnings.
1912 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1914 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1915 frame_info" partial declaration.
1916 * gdbarch.h: Regenerate.
1918 2014-08-15 Yao Qi <yao@codesourcery.com>
1920 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1921 Add parameter 'decode_for_pst_p'. Callers update.
1923 2014-08-13 Yao Qi <yao@codesourcery.com>
1926 * configure.ac: Use local variable 'pos'.
1927 * configure: Regenerated.
1929 2014-08-11 Doug Evans <dje@google.com>
1931 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1932 message, it is redundant with "Reading symbols from ..." message.
1934 2014-08-10 Doug Evans <xdje42@gmail.com>
1936 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1938 2014-08-09 Yao Qi <yao@codesourcery.com>
1941 * remote.c (remote_xfer_partial): Remove dead code.
1943 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1945 * ia64-linux-tdep.c: Include "regset.h".
1946 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1947 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1948 (ia64_linux_supply_fpregset): New function.
1949 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1950 (ia64_linux_regset_from_core_section): New function.
1951 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1954 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1956 * m68klinux-tdep.c: Include "regset.h".
1957 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1958 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1959 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1960 (m68k_linux_regset_from_core_section): New function.
1961 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1964 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1966 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1967 function. Move logic to...
1968 (tilegx_linux_regmap): ... this new register map.
1969 (tilegx_linux_regset): Refer to register map, replace supply
1970 method by regcache_supply_regset, and add collect method.
1971 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1972 TILEGX_FIRST_EASY_REGNUM.
1974 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1976 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1977 that calls regcache_supply_regset and handles the EPC register
1978 separately. Move main logic to...
1979 (score7_linux_gregmap): ... this new register map.
1980 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1981 (score7_linux_gregset): Refer to register map. Add collect method.
1982 (score7_linux_regset_from_core_section): Replace
1983 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1984 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1985 (struct regset): Delete unused forward declaraction.
1986 (struct pt_regs): Delete structure definition.
1987 (elf_gregset_t): Delete typedef.
1989 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1991 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1992 (nios2_core_regset): Add collect method.
1994 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1996 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1997 platform-independent and don't write to read-only input buffer.
1998 (m32r_linux_collect_gregset): New function.
1999 (m32r_linux_gregset): Add collect method.
2001 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2003 * hppa-linux-tdep.c (greg_map): Rename to...
2004 (hppa_linux_gregmap): ... this. Also convert to
2005 regcache_map_entry format.
2006 (hppa_linux_supply_regset): Delete function.
2007 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2008 (hppa_linux_fpregmap): ... this new register map.
2009 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2010 register map, replace supply method by regcache_supply_regset, and
2011 add collect method regcache_collect_regset.
2013 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2015 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2016 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2017 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2018 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2019 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2020 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2021 (frv_linux_supply_gregset): Replace main logic by call to
2022 regcache_supply_regset, but keep clearing gr32-gr63.
2023 (frv_linux_supply_fpregset): Delete function.
2024 (frv_linux_gregset): Refer to appropriate register map and add
2025 regcache_collect_regset as the collect method.
2026 (frv_linux_fpregset): Likewise. Also exchange the supply method
2027 by regcache_supply_regset.
2029 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2031 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2032 by call to alpha_supply_int_regs.
2033 (alpha_linux_collect_gregset): New function.
2034 (alpha_linux_supply_fpregset): Replace logic by call to
2035 alpha_supply_fp_regs.
2036 (alpha_linux_collect_fpregset): New function.
2037 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2039 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2041 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2042 by call to regcache_collect_regset.
2043 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2044 instead of aarch64_linux_supply_gregset/_fpregset.
2045 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2046 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2047 header file instead.
2048 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2049 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2050 functions. Move logic to ...
2051 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2053 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2054 refer to new register maps, replace *_regset_from_core by
2055 regcache_supply_regset, and also use regcache_collect_regset.
2056 * aarch64-linux-tdep.h: Include "regset.h".
2057 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2059 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2060 macros, moved from C source file.
2061 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2062 variable declarations.
2064 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2066 * s390-linux-nat.c: Include "regset.h".
2067 (regmap_gregset): Delete macro.
2068 (s390_64_regmap_gregset): New register map for
2069 regcache_supply/_collect_regset.
2070 (s390_64_gregset): New regset.
2071 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2072 (regmap_fpregset): Delete macro.
2073 (s390_native_supply, s390_native_collect): Delete functions.
2074 (supply_gregset, fill_gregset): Replace s390-specific regmap
2075 handling by a call to regcache_supply/_collect_regset.
2076 (supply_fpregset, fill_fpregset): Call regcache_supply/
2077 _collect_regset instead of s390_native_supply/_collect.
2078 (fetch_regset, store_regset): Likewise. Also change the last
2079 parameter to a regset instead of a regmap.
2080 (s390_linux_fetch_inferior_registers)
2081 (390_linux_store_inferior_registers): Adjust last parameter in
2082 calls to fetch_regset and store_regset.
2083 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2084 (s390_gregmap): ... this. Also make static const and convert to
2085 regcache_map_entry format.
2086 (s390x_regmap_gregset): Delete.
2087 (s390_regmap_fpregset): Rename to...
2088 (s390_fpregmap): ... this. Make static const and convert to
2089 regcache_map_entry format.
2090 (s390_regmap_upper, s390_regmap_last_break)
2091 (s390x_regmap_last_break, s390_regmap_system_call)
2092 (s390_regmap_tdb): Likewise.
2093 (s390_supply_regset, s390_collect_regset): Remove functions.
2094 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2096 (s390_gregset, s390_fpregset, s390_upper_regset)
2097 (s390_last_break_regset, s390x_last_break_regset)
2098 (s390_system_call_regset, s390_tdb_regset): Make global and
2099 replace s390_supply/_collect_regset by regcache_supply/
2101 (s390x_gregset): Delete.
2102 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2103 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2104 (s390_regmap_fpregset, s390_regmap_last_break)
2105 (s390x_regmap_last_break, s390_regmap_system_call)
2106 (s390_regmap_tdb): Delete global variable declarations.
2107 (s390_gregset, s390_fpregset, s390_last_break_regset)
2108 (s390x_last_break_regset, s390_system_call_regset)
2109 (s390_tdb_regset): New global variable declarations.
2111 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2113 * regcache.c: Include "regset.h".
2114 (regcache_transfer_regset): New local function.
2115 (regcache_supply_regset, regcache_collect_regset): New functions.
2116 * regcache.h (struct regcache_map_entry): New structure.
2117 (REGCACHE_MAP_SKIP): New enum value.
2118 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2120 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2122 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2123 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2124 (ppc_linux_collect_gregset ): Likewise.
2125 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2126 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2127 (ppc_collect_vrregset): Likewise.
2128 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2131 2014-08-07 Yao Qi <yao@codesourcery.com>
2133 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2134 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2135 * remote.c (remote_read_bytes): Likewise.
2137 2014-08-07 Yao Qi <yao@codesourcery.com>
2139 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2141 2014-08-07 Yao Qi <yao@codesourcery.com>
2144 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2145 TARGET_XFER_OK instead of 0.
2147 2014-08-07 Gary Benson <gbenson@redhat.com>
2149 * common/common-defs.h: Include errno.h.
2150 * defs.h: Do not include errno.h.
2151 * ada-typeprint.c: Likewise.
2152 * c-typeprint.c: Likewise.
2153 * core-regset.c: Likewise.
2154 * corefile.c: Likewise.
2155 * corelow.c: Likewise.
2156 * event-loop.c: Likewise.
2157 * f-typeprint.c: Likewise.
2158 * gnu-nat.c: Likewise.
2159 * go32-nat.c: Likewise.
2160 * i386gnu-nat.c: Likewise.
2161 * m2-typeprint.c: Likewise.
2162 * nat/linux-btrace.c: Likewise.
2163 * p-typeprint.c: Likewise.
2164 * procfs.c: Likewise.
2165 * remote-sim.c: Likewise.
2166 * rs6000-nat.c: Likewise.
2167 * target.c: Likewise.
2168 * typeprint.c: Likewise.
2169 * ui-file.c: Likewise.
2170 * valops.c: Likewise.
2171 * valprint.c: Likewise.
2173 2014-08-07 Gary Benson <gbenson@redhat.com>
2175 * common/common-defs.h: Include string.h.
2176 * aarch64-tdep.c: Do not include string.h.
2177 * ada-exp.y: Likewise.
2178 * ada-lang.c: Likewise.
2179 * ada-lex.l: Likewise.
2180 * ada-typeprint.c: Likewise.
2181 * ada-valprint.c: Likewise.
2182 * aix-thread.c: Likewise.
2183 * alpha-linux-tdep.c: Likewise.
2184 * alpha-mdebug-tdep.c: Likewise.
2185 * alpha-nat.c: Likewise.
2186 * alpha-osf1-tdep.c: Likewise.
2187 * alpha-tdep.c: Likewise.
2188 * alphanbsd-tdep.c: Likewise.
2189 * amd64-dicos-tdep.c: Likewise.
2190 * amd64-linux-tdep.c: Likewise.
2191 * amd64-nat.c: Likewise.
2192 * amd64-sol2-tdep.c: Likewise.
2193 * amd64fbsd-tdep.c: Likewise.
2194 * amd64obsd-tdep.c: Likewise.
2195 * arch-utils.c: Likewise.
2196 * arm-linux-nat.c: Likewise.
2197 * arm-linux-tdep.c: Likewise.
2198 * arm-tdep.c: Likewise.
2199 * arm-wince-tdep.c: Likewise.
2200 * armbsd-tdep.c: Likewise.
2201 * armnbsd-nat.c: Likewise.
2202 * armnbsd-tdep.c: Likewise.
2203 * armobsd-tdep.c: Likewise.
2204 * avr-tdep.c: Likewise.
2205 * ax-gdb.c: Likewise.
2206 * ax-general.c: Likewise.
2207 * bcache.c: Likewise.
2208 * bfin-tdep.c: Likewise.
2209 * breakpoint.c: Likewise.
2210 * build-id.c: Likewise.
2211 * buildsym.c: Likewise.
2212 * c-exp.y: Likewise.
2213 * c-lang.c: Likewise.
2214 * c-typeprint.c: Likewise.
2215 * c-valprint.c: Likewise.
2216 * charset.c: Likewise.
2217 * cli-out.c: Likewise.
2218 * cli/cli-cmds.c: Likewise.
2219 * cli/cli-decode.c: Likewise.
2220 * cli/cli-dump.c: Likewise.
2221 * cli/cli-interp.c: Likewise.
2222 * cli/cli-logging.c: Likewise.
2223 * cli/cli-script.c: Likewise.
2224 * cli/cli-setshow.c: Likewise.
2225 * cli/cli-utils.c: Likewise.
2226 * coffread.c: Likewise.
2227 * common/agent.c: Likewise.
2228 * common/buffer.c: Likewise.
2229 * common/buffer.h: Likewise.
2230 * common/common-utils.c: Likewise.
2231 * common/filestuff.c: Likewise.
2232 * common/filestuff.c: Likewise.
2233 * common/format.c: Likewise.
2234 * common/print-utils.c: Likewise.
2235 * common/rsp-low.c: Likewise.
2236 * common/signals.c: Likewise.
2237 * common/vec.h: Likewise.
2238 * common/xml-utils.c: Likewise.
2239 * core-regset.c: Likewise.
2240 * corefile.c: Likewise.
2241 * corelow.c: Likewise.
2242 * cp-abi.c: Likewise.
2243 * cp-name-parser.y: Likewise.
2244 * cp-support.c: Likewise.
2245 * cp-valprint.c: Likewise.
2246 * cris-tdep.c: Likewise.
2247 * d-exp.y: Likewise.
2248 * darwin-nat.c: Likewise.
2249 * dbxread.c: Likewise.
2250 * dcache.c: Likewise.
2251 * demangle.c: Likewise.
2252 * dicos-tdep.c: Likewise.
2253 * disasm.c: Likewise.
2254 * doublest.c: Likewise.
2255 * dsrec.c: Likewise.
2256 * dummy-frame.c: Likewise.
2257 * dwarf2-frame.c: Likewise.
2258 * dwarf2loc.c: Likewise.
2259 * dwarf2read.c: Likewise.
2260 * elfread.c: Likewise.
2261 * environ.c: Likewise.
2263 * event-loop.c: Likewise.
2264 * exceptions.c: Likewise.
2266 * expprint.c: Likewise.
2267 * f-exp.y: Likewise.
2268 * f-lang.c: Likewise.
2269 * f-typeprint.c: Likewise.
2270 * f-valprint.c: Likewise.
2271 * fbsd-nat.c: Likewise.
2272 * findcmd.c: Likewise.
2273 * findvar.c: Likewise.
2274 * fork-child.c: Likewise.
2275 * frame.c: Likewise.
2276 * frv-linux-tdep.c: Likewise.
2277 * frv-tdep.c: Likewise.
2279 * gdb_bfd.c: Likewise.
2280 * gdbarch.c: Likewise.
2281 * gdbarch.sh: Likewise.
2282 * gdbtypes.c: Likewise.
2283 * gnu-nat.c: Likewise.
2284 * gnu-v2-abi.c: Likewise.
2285 * gnu-v3-abi.c: Likewise.
2286 * go-exp.y: Likewise.
2287 * go-lang.c: Likewise.
2288 * go32-nat.c: Likewise.
2289 * guile/guile.c: Likewise.
2290 * guile/scm-auto-load.c: Likewise.
2291 * hppa-hpux-tdep.c: Likewise.
2292 * hppa-linux-nat.c: Likewise.
2293 * hppanbsd-tdep.c: Likewise.
2294 * hppaobsd-tdep.c: Likewise.
2295 * i386-cygwin-tdep.c: Likewise.
2296 * i386-dicos-tdep.c: Likewise.
2297 * i386-linux-tdep.c: Likewise.
2298 * i386-nto-tdep.c: Likewise.
2299 * i386-sol2-tdep.c: Likewise.
2300 * i386-tdep.c: Likewise.
2301 * i386bsd-tdep.c: Likewise.
2302 * i386gnu-nat.c: Likewise.
2303 * i386nbsd-tdep.c: Likewise.
2304 * i386obsd-tdep.c: Likewise.
2305 * i387-tdep.c: Likewise.
2306 * ia64-libunwind-tdep.c: Likewise.
2307 * ia64-linux-nat.c: Likewise.
2308 * inf-child.c: Likewise.
2309 * inf-ptrace.c: Likewise.
2310 * inf-ttrace.c: Likewise.
2311 * infcall.c: Likewise.
2312 * infcmd.c: Likewise.
2313 * inflow.c: Likewise.
2314 * infrun.c: Likewise.
2315 * interps.c: Likewise.
2316 * iq2000-tdep.c: Likewise.
2317 * irix5-nat.c: Likewise.
2318 * jv-exp.y: Likewise.
2319 * jv-lang.c: Likewise.
2320 * jv-typeprint.c: Likewise.
2321 * jv-valprint.c: Likewise.
2322 * language.c: Likewise.
2323 * linux-fork.c: Likewise.
2324 * linux-nat.c: Likewise.
2325 * lm32-tdep.c: Likewise.
2326 * m2-exp.y: Likewise.
2327 * m2-typeprint.c: Likewise.
2328 * m32c-tdep.c: Likewise.
2329 * m32r-linux-nat.c: Likewise.
2330 * m32r-linux-tdep.c: Likewise.
2331 * m32r-rom.c: Likewise.
2332 * m32r-tdep.c: Likewise.
2333 * m68hc11-tdep.c: Likewise.
2334 * m68k-tdep.c: Likewise.
2335 * m68kbsd-tdep.c: Likewise.
2336 * m68klinux-nat.c: Likewise.
2337 * m68klinux-tdep.c: Likewise.
2338 * m88k-tdep.c: Likewise.
2339 * machoread.c: Likewise.
2340 * macrocmd.c: Likewise.
2342 * mdebugread.c: Likewise.
2343 * mem-break.c: Likewise.
2344 * memattr.c: Likewise.
2345 * memory-map.c: Likewise.
2346 * mep-tdep.c: Likewise.
2347 * mi/mi-cmd-break.c: Likewise.
2348 * mi/mi-cmd-disas.c: Likewise.
2349 * mi/mi-cmd-env.c: Likewise.
2350 * mi/mi-cmd-stack.c: Likewise.
2351 * mi/mi-cmd-var.c: Likewise.
2352 * mi/mi-cmds.c: Likewise.
2353 * mi/mi-console.c: Likewise.
2354 * mi/mi-getopt.c: Likewise.
2355 * mi/mi-interp.c: Likewise.
2356 * mi/mi-main.c: Likewise.
2357 * mi/mi-parse.c: Likewise.
2358 * microblaze-rom.c: Likewise.
2359 * microblaze-tdep.c: Likewise.
2360 * mingw-hdep.c: Likewise.
2361 * minidebug.c: Likewise.
2362 * minsyms.c: Likewise.
2363 * mips-irix-tdep.c: Likewise.
2364 * mips-linux-tdep.c: Likewise.
2365 * mips-tdep.c: Likewise.
2366 * mips64obsd-tdep.c: Likewise.
2367 * mipsnbsd-tdep.c: Likewise.
2368 * mipsread.c: Likewise.
2369 * mn10300-linux-tdep.c: Likewise.
2370 * mn10300-tdep.c: Likewise.
2371 * monitor.c: Likewise.
2372 * moxie-tdep.c: Likewise.
2373 * mt-tdep.c: Likewise.
2374 * nat/linux-btrace.c: Likewise.
2375 * nat/linux-osdata.c: Likewise.
2376 * nat/linux-procfs.c: Likewise.
2377 * nat/linux-ptrace.c: Likewise.
2378 * nat/linux-waitpid.c: Likewise.
2379 * nbsd-tdep.c: Likewise.
2380 * nios2-linux-tdep.c: Likewise.
2381 * nto-procfs.c: Likewise.
2382 * nto-tdep.c: Likewise.
2383 * objc-lang.c: Likewise.
2384 * objfiles.c: Likewise.
2385 * opencl-lang.c: Likewise.
2386 * osabi.c: Likewise.
2387 * osdata.c: Likewise.
2388 * p-exp.y: Likewise.
2389 * p-lang.c: Likewise.
2390 * p-typeprint.c: Likewise.
2391 * parse.c: Likewise.
2392 * posix-hdep.c: Likewise.
2393 * ppc-linux-nat.c: Likewise.
2394 * ppc-sysv-tdep.c: Likewise.
2395 * ppcfbsd-tdep.c: Likewise.
2396 * ppcnbsd-tdep.c: Likewise.
2397 * ppcobsd-tdep.c: Likewise.
2398 * printcmd.c: Likewise.
2399 * procfs.c: Likewise.
2400 * prologue-value.c: Likewise.
2401 * python/py-auto-load.c: Likewise.
2402 * python/py-gdb-readline.c: Likewise.
2403 * ravenscar-thread.c: Likewise.
2404 * regcache.c: Likewise.
2405 * registry.c: Likewise.
2406 * remote-fileio.c: Likewise.
2407 * remote-m32r-sdi.c: Likewise.
2408 * remote-mips.c: Likewise.
2409 * remote-notif.c: Likewise.
2410 * remote-sim.c: Likewise.
2411 * remote.c: Likewise.
2412 * reverse.c: Likewise.
2413 * rs6000-aix-tdep.c: Likewise.
2414 * ser-base.c: Likewise.
2415 * ser-go32.c: Likewise.
2416 * ser-mingw.c: Likewise.
2417 * ser-pipe.c: Likewise.
2418 * ser-tcp.c: Likewise.
2419 * ser-unix.c: Likewise.
2420 * serial.c: Likewise.
2421 * sh-tdep.c: Likewise.
2422 * sh64-tdep.c: Likewise.
2423 * shnbsd-tdep.c: Likewise.
2425 * sol-thread.c: Likewise.
2426 * solib-dsbt.c: Likewise.
2427 * solib-frv.c: Likewise.
2428 * solib-osf.c: Likewise.
2429 * solib-som.c: Likewise.
2430 * solib-spu.c: Likewise.
2431 * solib-target.c: Likewise.
2432 * solib.c: Likewise.
2433 * somread.c: Likewise.
2434 * source.c: Likewise.
2435 * sparc-nat.c: Likewise.
2436 * sparc-sol2-tdep.c: Likewise.
2437 * sparc-tdep.c: Likewise.
2438 * sparc64-tdep.c: Likewise.
2439 * sparc64fbsd-tdep.c: Likewise.
2440 * sparc64nbsd-tdep.c: Likewise.
2441 * sparcnbsd-tdep.c: Likewise.
2442 * spu-linux-nat.c: Likewise.
2443 * spu-multiarch.c: Likewise.
2444 * spu-tdep.c: Likewise.
2445 * stabsread.c: Likewise.
2446 * stack.c: Likewise.
2447 * std-regs.c: Likewise.
2448 * symfile.c: Likewise.
2449 * symmisc.c: Likewise.
2450 * symtab.c: Likewise.
2451 * target.c: Likewise.
2452 * thread.c: Likewise.
2453 * tilegx-linux-nat.c: Likewise.
2454 * tilegx-tdep.c: Likewise.
2456 * tracepoint.c: Likewise.
2457 * tui/tui-command.c: Likewise.
2458 * tui/tui-data.c: Likewise.
2459 * tui/tui-disasm.c: Likewise.
2460 * tui/tui-file.c: Likewise.
2461 * tui/tui-layout.c: Likewise.
2462 * tui/tui-out.c: Likewise.
2463 * tui/tui-regs.c: Likewise.
2464 * tui/tui-source.c: Likewise.
2465 * tui/tui-stack.c: Likewise.
2466 * tui/tui-win.c: Likewise.
2467 * tui/tui-windata.c: Likewise.
2468 * tui/tui-winsource.c: Likewise.
2469 * typeprint.c: Likewise.
2470 * ui-file.c: Likewise.
2471 * ui-out.c: Likewise.
2472 * user-regs.c: Likewise.
2473 * utils.c: Likewise.
2474 * v850-tdep.c: Likewise.
2475 * valarith.c: Likewise.
2476 * valops.c: Likewise.
2477 * valprint.c: Likewise.
2478 * value.c: Likewise.
2479 * varobj.c: Likewise.
2480 * vax-tdep.c: Likewise.
2481 * vaxnbsd-tdep.c: Likewise.
2482 * vaxobsd-tdep.c: Likewise.
2483 * windows-nat.c: Likewise.
2484 * xcoffread.c: Likewise.
2485 * xml-support.c: Likewise.
2486 * xstormy16-tdep.c: Likewise.
2487 * xtensa-linux-nat.c: Likewise.
2489 2014-08-07 Gary Benson <gbenson@redhat.com>
2491 * common/common-defs.h: Include gdb_assert.h.
2492 * aarch64-tdep.c: Do not include gdb_assert.h.
2493 * addrmap.c: Likewise.
2494 * aix-thread.c: Likewise.
2495 * alpha-linux-tdep.c: Likewise.
2496 * alpha-mdebug-tdep.c: Likewise.
2497 * alphanbsd-tdep.c: Likewise.
2498 * amd64-nat.c: Likewise.
2499 * amd64-tdep.c: Likewise.
2500 * amd64bsd-nat.c: Likewise.
2501 * amd64fbsd-nat.c: Likewise.
2502 * amd64fbsd-tdep.c: Likewise.
2503 * amd64nbsd-nat.c: Likewise.
2504 * amd64nbsd-tdep.c: Likewise.
2505 * amd64obsd-nat.c: Likewise.
2506 * amd64obsd-tdep.c: Likewise.
2507 * arch-utils.c: Likewise.
2508 * arm-tdep.c: Likewise.
2509 * armbsd-tdep.c: Likewise.
2511 * bcache.c: Likewise.
2512 * bfin-tdep.c: Likewise.
2513 * blockframe.c: Likewise.
2514 * breakpoint.c: Likewise.
2515 * bsd-kvm.c: Likewise.
2516 * bsd-uthread.c: Likewise.
2517 * buildsym.c: Likewise.
2518 * c-exp.y: Likewise.
2519 * c-lang.c: Likewise.
2520 * charset.c: Likewise.
2521 * cleanups.c: Likewise.
2522 * cli-out.c: Likewise.
2523 * cli/cli-decode.c: Likewise.
2524 * cli/cli-dump.c: Likewise.
2525 * cli/cli-logging.c: Likewise.
2526 * cli/cli-script.c: Likewise.
2527 * cli/cli-utils.c: Likewise.
2528 * coffread.c: Likewise.
2529 * common/common-utils.c: Likewise.
2530 * common/queue.h: Likewise.
2531 * common/signals.c: Likewise.
2532 * common/vec.h: Likewise.
2533 * complaints.c: Likewise.
2534 * completer.c: Likewise.
2535 * corelow.c: Likewise.
2536 * cp-abi.c: Likewise.
2537 * cp-name-parser.y: Likewise.
2538 * cp-namespace.c: Likewise.
2539 * cp-support.c: Likewise.
2540 * cris-tdep.c: Likewise.
2541 * dbxread.c: Likewise.
2542 * dictionary.c: Likewise.
2543 * doublest.c: Likewise.
2544 * dsrec.c: Likewise.
2545 * dummy-frame.c: Likewise.
2546 * dwarf2-frame-tailcall.c: Likewise.
2547 * dwarf2-frame.c: Likewise.
2548 * dwarf2expr.c: Likewise.
2549 * dwarf2loc.c: Likewise.
2550 * dwarf2read.c: Likewise.
2552 * event-loop.c: Likewise.
2553 * exceptions.c: Likewise.
2554 * expprint.c: Likewise.
2555 * f-valprint.c: Likewise.
2556 * fbsd-nat.c: Likewise.
2557 * findvar.c: Likewise.
2558 * frame-unwind.c: Likewise.
2559 * frame.c: Likewise.
2560 * frv-tdep.c: Likewise.
2561 * gcore.c: Likewise.
2562 * gdb-dlfcn.c: Likewise.
2563 * gdb_bfd.c: Likewise.
2564 * gdbarch.c: Likewise.
2565 * gdbarch.sh: Likewise.
2566 * gdbtypes.c: Likewise.
2567 * gnu-nat.c: Likewise.
2568 * gnu-v3-abi.c: Likewise.
2569 * go-lang.c: Likewise.
2570 * guile/scm-exception.c: Likewise.
2571 * guile/scm-gsmob.c: Likewise.
2572 * guile/scm-lazy-string.c: Likewise.
2573 * guile/scm-math.c: Likewise.
2574 * guile/scm-pretty-print.c: Likewise.
2575 * guile/scm-safe-call.c: Likewise.
2576 * guile/scm-utils.c: Likewise.
2577 * guile/scm-value.c: Likewise.
2578 * h8300-tdep.c: Likewise.
2579 * hppa-hpux-nat.c: Likewise.
2580 * hppa-tdep.c: Likewise.
2581 * hppanbsd-tdep.c: Likewise.
2582 * hppaobsd-tdep.c: Likewise.
2583 * i386-darwin-nat.c: Likewise.
2584 * i386-darwin-tdep.c: Likewise.
2585 * i386-nto-tdep.c: Likewise.
2586 * i386-tdep.c: Likewise.
2587 * i386bsd-nat.c: Likewise.
2588 * i386fbsd-tdep.c: Likewise.
2589 * i386gnu-nat.c: Likewise.
2590 * i386nbsd-tdep.c: Likewise.
2591 * i386obsd-tdep.c: Likewise.
2592 * i387-tdep.c: Likewise.
2593 * ia64-libunwind-tdep.c: Likewise.
2594 * ia64-tdep.c: Likewise.
2595 * inf-ptrace.c: Likewise.
2596 * inf-ttrace.c: Likewise.
2597 * infcall.c: Likewise.
2598 * infcmd.c: Likewise.
2599 * infrun.c: Likewise.
2600 * inline-frame.c: Likewise.
2601 * interps.c: Likewise.
2602 * jv-lang.c: Likewise.
2603 * jv-typeprint.c: Likewise.
2604 * linux-fork.c: Likewise.
2605 * linux-nat.c: Likewise.
2606 * linux-thread-db.c: Likewise.
2607 * m32c-tdep.c: Likewise.
2608 * m32r-linux-nat.c: Likewise.
2609 * m32r-tdep.c: Likewise.
2610 * m68k-tdep.c: Likewise.
2611 * m68kbsd-nat.c: Likewise.
2612 * m68kbsd-tdep.c: Likewise.
2613 * m88k-tdep.c: Likewise.
2614 * machoread.c: Likewise.
2615 * macroexp.c: Likewise.
2616 * macrotab.c: Likewise.
2617 * maint.c: Likewise.
2618 * mdebugread.c: Likewise.
2619 * memory-map.c: Likewise.
2620 * mep-tdep.c: Likewise.
2621 * mi/mi-common.c: Likewise.
2622 * microblaze-tdep.c: Likewise.
2623 * mingw-hdep.c: Likewise.
2624 * mips-linux-nat.c: Likewise.
2625 * mips-linux-tdep.c: Likewise.
2626 * mips-tdep.c: Likewise.
2627 * mips64obsd-tdep.c: Likewise.
2628 * mipsnbsd-tdep.c: Likewise.
2629 * mn10300-linux-tdep.c: Likewise.
2630 * mn10300-tdep.c: Likewise.
2631 * moxie-tdep.c: Likewise.
2632 * mt-tdep.c: Likewise.
2633 * nat/linux-btrace.c: Likewise.
2634 * nat/linux-osdata.c: Likewise.
2635 * nat/linux-ptrace.c: Likewise.
2636 * nat/mips-linux-watch.c: Likewise.
2637 * nios2-linux-tdep.c: Likewise.
2638 * nios2-tdep.c: Likewise.
2639 * objc-lang.c: Likewise.
2640 * objfiles.c: Likewise.
2641 * obsd-nat.c: Likewise.
2642 * opencl-lang.c: Likewise.
2643 * osabi.c: Likewise.
2644 * parse.c: Likewise.
2645 * ppc-linux-nat.c: Likewise.
2646 * ppc-sysv-tdep.c: Likewise.
2647 * ppcfbsd-nat.c: Likewise.
2648 * ppcfbsd-tdep.c: Likewise.
2649 * ppcnbsd-nat.c: Likewise.
2650 * ppcnbsd-tdep.c: Likewise.
2651 * ppcobsd-nat.c: Likewise.
2652 * ppcobsd-tdep.c: Likewise.
2653 * printcmd.c: Likewise.
2654 * procfs.c: Likewise.
2655 * prologue-value.c: Likewise.
2656 * psymtab.c: Likewise.
2657 * python/py-lazy-string.c: Likewise.
2658 * python/py-value.c: Likewise.
2659 * regcache.c: Likewise.
2660 * reggroups.c: Likewise.
2661 * registry.c: Likewise.
2662 * remote-sim.c: Likewise.
2663 * remote.c: Likewise.
2664 * rs6000-aix-tdep.c: Likewise.
2665 * rs6000-tdep.c: Likewise.
2666 * s390-linux-tdep.c: Likewise.
2667 * score-tdep.c: Likewise.
2668 * ser-base.c: Likewise.
2669 * ser-mingw.c: Likewise.
2670 * sh-tdep.c: Likewise.
2671 * sh64-tdep.c: Likewise.
2672 * solib-darwin.c: Likewise.
2673 * solib-spu.c: Likewise.
2674 * solib-svr4.c: Likewise.
2675 * source.c: Likewise.
2676 * sparc-nat.c: Likewise.
2677 * sparc-sol2-tdep.c: Likewise.
2678 * sparc-tdep.c: Likewise.
2679 * sparc64-sol2-tdep.c: Likewise.
2680 * sparc64-tdep.c: Likewise.
2681 * sparc64fbsd-tdep.c: Likewise.
2682 * sparc64nbsd-tdep.c: Likewise.
2683 * sparc64obsd-tdep.c: Likewise.
2684 * sparcnbsd-tdep.c: Likewise.
2685 * sparcobsd-tdep.c: Likewise.
2686 * spu-multiarch.c: Likewise.
2687 * spu-tdep.c: Likewise.
2688 * stabsread.c: Likewise.
2689 * stack.c: Likewise.
2690 * symfile.c: Likewise.
2691 * symtab.c: Likewise.
2692 * target-descriptions.c: Likewise.
2693 * target-memory.c: Likewise.
2694 * target.c: Likewise.
2695 * tic6x-linux-tdep.c: Likewise.
2696 * tic6x-tdep.c: Likewise.
2697 * tilegx-linux-nat.c: Likewise.
2698 * tilegx-tdep.c: Likewise.
2700 * tramp-frame.c: Likewise.
2701 * tui/tui-out.c: Likewise.
2702 * tui/tui-winsource.c: Likewise.
2703 * ui-out.c: Likewise.
2704 * user-regs.c: Likewise.
2705 * utils.c: Likewise.
2706 * v850-tdep.c: Likewise.
2707 * valops.c: Likewise.
2708 * value.c: Likewise.
2709 * varobj.c: Likewise.
2710 * vax-nat.c: Likewise.
2711 * xml-syscall.c: Likewise.
2712 * xml-tdesc.c: Likewise.
2713 * xstormy16-tdep.c: Likewise.
2714 * xtensa-linux-nat.c: Likewise.
2715 * xtensa-tdep.c: Likewise.
2717 2014-08-07 Gary Benson <gbenson@redhat.com>
2719 * common/common-defs.h: Include common-utils.h.
2720 * defs.h: Do not include common-utils.h.
2721 * common/gdb_assert.h: Likewise.
2722 * darwin-nat.h: Likewise.
2723 * nat/linux-btrace.c: Likewise.
2724 * target/waitstatus.h: Likewise.
2726 2014-08-07 Gary Benson <gbenson@redhat.com>
2728 * common/common-defs.h: Include ptid.h.
2729 * defs.h: Do not include ptid.h.
2730 * inferior.h: Likewise.
2731 * infrun.h: Likewise.
2732 * nat/linux-btrace.h: Likewise.
2733 * nat/linux-osdata.h: Likewise.
2734 * target/waitstatus.h: Likewise.
2736 2014-08-07 Gary Benson <gbenson@redhat.com>
2738 * common/common-defs.h: Include gdb_locale.h.
2739 * defs.h: Do not include gdb_locale.h.
2741 2014-08-07 Gary Benson <gbenson@redhat.com>
2743 * common/common-defs.h: Include gdb/signals.h.
2744 * defs.h: Do not include gdb/signals.h.
2746 2014-08-07 Gary Benson <gbenson@redhat.com>
2748 * common/common-defs.h: Include pathmax.h.
2749 * defs.h: Do not include pathmax.h.
2751 2014-08-07 Gary Benson <gbenson@redhat.com>
2753 * common/common-defs.h: Include libiberty.h.
2754 * defs.h: Do not include libiberty.h.
2755 * common/queue.h: Likewise.
2756 * cp-name-parser.y: Likewise.
2757 * mi/mi-cmd-catch.c: Likewise.
2758 * python/python.c: Likewise.
2760 2014-08-07 Gary Benson <gbenson@redhat.com>
2762 * common/common-defs.h: Include ansidecl.h.
2763 * defs.h: Do not include ansidecl.h.
2764 * common/buffer.h: Likewise.
2765 * common/common-utils.h: Likewise.
2767 2014-08-07 Gary Benson <gbenson@redhat.com>
2769 * common/common-defs.h: Include stddef.h.
2770 * defs.h: Do not include stddef.h.
2771 * common/common-utils.h: Likewise.
2772 * amd64fbsd-nat.c: Likewise.
2773 * bcache.c: Likewise.
2774 * charset.c: Likewise.
2775 * common/buffer.h: Likewise.
2776 * common/vec.h: Likewise.
2777 * i386bsd-nat.c: Likewise.
2778 * nat/linux-btrace.h: Likewise.
2779 * ppcfbsd-nat.c: Likewise.
2780 * ppcnbsd-tdep.h: Likewise.
2781 * ppcobsd-nat.c: Likewise.
2782 * ppcobsd-tdep.h: Likewise.
2783 * python/py-gdb-readline.c: Likewise.
2785 2014-08-07 Gary Benson <gbenson@redhat.com>
2787 * common/common-defs.h: Include stdarg.h.
2788 * defs.h: Do not include stdarg.h.
2789 * ada-lang.c: Likewise.
2790 * common/common-utils.h: Likewise.
2791 * guile/scm-string.c: Likewise.
2792 * guile/scm-utils.c: Likewise.
2793 * m32c-tdep.c: Likewise.
2795 2014-08-07 Gary Benson <gbenson@redhat.com>
2797 * common/common-defs.h: Include stdlib.h.
2798 * defs.h: Do not include stdlib.h.
2799 * addrmap.c: Likewise.
2800 * bcache.c: Likewise.
2801 * common/buffer.c: Likewise.
2802 * common/common-utils.c: Likewise.
2803 * cp-name-parser.y: Likewise.
2804 * go32-nat.c: Likewise.
2805 * mn10300-linux-tdep.c: Likewise.
2806 * nat/linux-osdata.c: Likewise.
2807 * tui/tui.c: Likewise.
2808 * windows-nat.c: Likewise.
2810 2014-08-07 Gary Benson <gbenson@redhat.com>
2812 * common/common-defs.h: Include stdio.h.
2813 * defs.h: Do not include stdio.h.
2814 * ada-lang.c: Likewise.
2815 * common/buffer.c: Likewise.
2816 * common/common-utils.c: Likewise.
2817 * cp-name-parser.y: Likewise.
2818 * gnu-nat.c: Likewise.
2819 * go32-nat.c: Likewise.
2820 * i386gnu-nat.c: Likewise.
2821 * proc-api.c: Likewise.
2822 * proc-events.c: Likewise.
2823 * proc-flags.c: Likewise.
2824 * proc-why.c: Likewise.
2825 * python/python-internal.h: Likewise.
2826 * target-memory.c: Likewise.
2827 * tui/tui-io.c: Likewise.
2828 * tui/tui.c: Likewise.
2830 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2832 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2833 (scan_dyntag_auxv): Same.
2835 2014-08-06 Yao Qi <yao@codesourcery.com>
2837 * amd64-linux-nat.c: Remove duplicated include
2839 * i386-linux-nat.c: Likewise.
2841 2014-08-06 Yao Qi <yao@codesourcery.com>
2843 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2844 operand" with "Special opcode" in comments.
2846 2014-08-05 Gary Benson <gbenson@redhat.com>
2848 * interps.c (initialize_interps): Remove prototype.
2849 (interpreter_initialized): Remove static global.
2850 (interp_add): Do not call initialize_interps.
2851 (initialize_interps): Remove function.
2853 2014-08-05 Gary Benson <gbenson@redhat.com>
2855 * utils.c (vwarning): Remove spurious va_end.
2857 2014-08-05 Alan Modra <amodra@gmail.com>
2859 * charset.c (convert_between_encodings): Cast result of obstack_base.
2860 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2861 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2862 (read_unwind_info): Use size_t for some locals.
2863 * jit.c (finalize_symtab): Likewise.
2864 * utils.c (hashtab_obstack_allocate): Likewise.
2865 * symmisc.c (print_objfile_statistics): Update format strings.
2867 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2869 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2870 (Changes in GDB 7.8): ... here.
2872 2014-08-04 Tom Tromey <tromey@redhat.com>
2874 * target.c (set_targetdebug): New function.
2875 (initialize_targets): Pass set_targetdebug when creating "set
2878 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2880 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2881 if detecting a variable-sized field that is not the last field.
2882 Fix struct type length computation.
2884 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2886 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2889 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2891 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2892 Remove "+ 8" offset in computation of CHAIN_VMA.
2894 2014-07-31 Doug Evans <dje@google.com>
2896 * inflow.c (child_terminal_inferior): Add comment.
2897 (child_terminal_ours_for_output): Add comment.
2898 (child_terminal_ours): Add comment.
2899 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2900 (linux_nat_terminal_ours): Add comment.
2902 2014-07-31 Gary Benson <gbenson@redhat.com>
2904 * common/btrace-common.h: Do not include defs.h or server.h.
2905 * nat/mips-linux-watch.h: Likewise.
2906 * gdb-dlfcn.h: Do not include defs.h.
2907 * tracefile.h: Likewise.
2909 2014-07-30 Roland McGrath <mcgrathr@google.com>
2911 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2913 2014-07-30 Tom Tromey <tromey@redhat.com>
2915 * bsd-kvm.c (bsd_kvm_open): Constify.
2916 * corelow.c (core_open): Constify.
2917 * ctf.c (ctf_open): Constify.
2918 * dbug-rom.c (dbug_open): Constify.
2919 * exec.c (exec_open): Constify.
2920 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2921 * microblaze-rom.c (picobug_open): Constify.
2922 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2924 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2925 * record-btrace.c (record_btrace_open): Constify.
2926 * record-full.c (record_full_core_open_1, record_full_open_1)
2927 (record_full_open): Constify.
2928 * remote-m32r-sdi.c (m32r_open): Constify.
2929 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2930 (rockhopper_open, lsi_open): Constify.
2931 * remote-sim.c (gdbsim_open): Constify.
2932 * remote.c (remote_open, extended_remote_open, remote_open_1):
2934 * target.h (struct target_ops) <to_open>: Make "arg" const.
2935 * tracefile-tfile.c (tfile_open): Constify.
2937 2014-07-30 Tom Tromey <tromey@redhat.com>
2939 * breakpoint.c (map_breakpoint_numbers): Update.
2940 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2941 (get_number_const): New function.
2942 (get_number): Rewrite using get_number_const.
2943 (init_number_or_range): Make "string" const.
2944 (number_is_in_list): Make "list" const.
2945 * cli/cli-utils.h (get_number_const): Declare.
2946 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2947 (init_number_or_range, number_is_in_list): Update.
2948 * printcmd.c (map_display_numbers): Update.
2949 * value.c (value_from_history_ref): Constify.
2950 * value.h (value_from_history_ref): Update.
2952 2014-07-30 Tom Tromey <tromey@redhat.com>
2954 * corefile.c (hook_type, call_extra_exec_file_hooks)
2955 (specify_exec_file_hook): Constify.
2956 * exec.c (exec_file_attach): Make "filename" const.
2957 * gdbcore.h (deprecated_exec_file_display_hook)
2958 (specify_exec_file_hook, exec_file_attach): Constify.
2959 * main.c (captured_main): Use catch_command_errors_const.
2961 2014-07-30 Tom Tromey <tromey@redhat.com>
2963 * target.c (open_target): New function.
2964 (add_target_with_completer, add_deprecated_target_alias): Use
2965 set_cmd_sfunc, set_cmd_context.
2966 (debug_to_open): Remove.
2967 (setup_target_debug): Update.
2969 2014-07-30 Yao Qi <yao@codesourcery.com>
2971 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2973 * parse.c (exp_iterate): Update comments.
2975 2014-07-30 Gary Benson <gbenson@redhat.com>
2977 * common/common-defs.h: New file.
2978 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2979 * defs.h: Include common-defs.h.
2980 Do not include config.h or build-gnulib/config.h.
2982 2014-07-30 Gary Benson <gbenson@redhat.com>
2984 * common/common-utils.h: Do not include config.h.
2985 * nat/linux-btrace.h: Likewise.
2987 2014-07-30 Gary Benson <gbenson@redhat.com>
2989 * btrace.c: Include defs.h.
2990 * common/ptid.c: Include defs.h or server.h as appropriate.
2991 * nat/mips-linux-watch.c: Likewise.
2993 2014-07-29 Tom Tromey <tromey@redhat.com>
2995 * target.c (target_is_pushed): Simplify.
2997 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3001 2014-07-29 Yao Qi <yao@codesourcery.com>
3004 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3006 2014-07-28 Doug Evans <xdje42@gmail.com>
3009 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3010 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3013 2014-07-28 Will Newton <will.newton@linaro.org>
3015 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3016 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3017 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3018 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3019 (THUMB2_EABI_SYSCALL): Likewise.
3020 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3022 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3023 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3025 2014-07-27 Doug Evans <xdje42@gmail.com>
3027 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3029 2014-07-27 Doug Evans <xdje42@gmail.com>
3031 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3033 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3034 Doug Evans <xdje42@gmail.com>
3037 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3038 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3039 * configure.ac: Try to use guild to compile an scm file, if it fails
3040 then disable guile support.
3041 * configure: Regenerate.
3042 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3044 (GUILE_COMPILED_FILES): New variable.
3045 (GUILE_FILES) Update.
3046 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3047 (stamp-guile): Compile scm files.
3048 * guile/guile.c (boot_guile_support): New function.
3049 (standard_throw_args_p): New function.
3050 (print_standard_throw_error, print_throw_error): New functions.
3051 (handle_boot_error): New function.
3052 (initialize_scheme_side): Rewrite to call boot_guile_support.
3053 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3054 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3056 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3057 Doug Evans <xdje42@gmail.com>
3060 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3061 * guile/lib/gdb/support.scm: New file.
3062 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3063 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3065 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3067 (%assert-type): Ditto, and renamed to assert-type.
3068 (%exception-print-style): Delete.
3070 2014-07-26 Doug Evans <xdje42@gmail.com>
3073 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3074 * configure: Regenerate.
3075 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3077 (PYTHON_FILES): New variable.
3078 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3079 (GUILE_FILES): New variable.
3080 (stamp-python, install-python, uninstall-python): Handle empty
3082 (stamp-guile, install-guile, uninstall-guile): Ditto.
3084 2014-07-26 Doug Evans <xdje42@gmail.com>
3087 * guile/lib/gdb.scm (pretty-printers): Export.
3088 (set-pretty-printers!): Export.
3089 * guile/lib/gdb/printing.scm (gdb module): Update.
3090 (prepend-pretty-printer!, append-pretty-printer!): Update.
3091 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3092 (pretty_printer_list_var): Delete.
3093 (pretty_printer_list): New static global.
3094 (gdbscm_pretty_printers): New function.
3095 (gdbscm_set_pretty_printers_x): New function.
3096 (ppscm_find_pretty_printer_from_gdb): Update.
3097 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3098 (gdbscm_initialize_pretty_printers): Update.
3100 2014-07-26 Doug Evans <xdje42@gmail.com>
3103 * configure.ac: Add check for header gc/gc.h.
3104 Add check for function setenv.
3105 * configure: Regenerate.
3106 * config.in: Regenerate.
3107 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3109 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3111 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3112 variation in gdbarch matching.
3114 2014-07-25 Tom Tromey <tromey@redhat.com>
3116 * exec.c (using_exec_ops): Remove.
3117 (exec_close_1): Update. Remove extraneous block, reindent.
3118 (add_target_sections): Use target_is_pushed.
3120 2014-07-25 Pedro Alves <palves@redhat.com>
3122 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3123 * monitor.c (monitor_create_inferior): Likewise.
3124 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3125 * remote-sim.c (gdbsim_create_inferior): Likewise.
3126 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3127 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3128 * windows-nat.c (do_initial_windows_stuff): Likewise.
3130 2014-07-25 Pedro Alves <palves@redhat.com>
3132 * NEWS: Mention signal passing and "signal" command changes.
3133 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3135 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3137 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3138 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3139 (jump_command): Adjust clear_proceed_status call.
3140 (signal_command): Warn if other thread that are resumed have
3141 signals that will be delivered. Adjust clear_proceed_status call.
3142 (until_next_command, finish_command)
3143 (proceed_after_attach_callback, attach_command_post_wait)
3144 (attach_command): Adjust clear_proceed_status call.
3145 * infrun.c (proceed_after_vfork_done): Likewise.
3146 (proceed_after_attach_callback): Adjust comment.
3147 (clear_proceed_status_thread): Clear stop_signal if not in pass
3149 (clear_proceed_status_callback): Delete.
3150 (clear_proceed_status): New 'step' parameter. Only clear the
3151 proceed status of threads the command being prepared is about to
3153 (proceed): If passed in an explicit signal, override stop_signal
3154 with it. Don't pass the last stop signal to the thread we're
3156 (init_wait_for_inferior): Adjust clear_proceed_status call.
3157 (switch_back_to_stepped_thread): Clear the signal if it should not
3159 * infrun.h (clear_proceed_status): New 'step' parameter.
3160 (user_visible_resume_ptid): Add comment.
3161 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3162 signal is in pass state.
3163 * remote.c (append_pending_thread_resumptions): Likewise.
3164 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3166 2014-07-25 Tom Tromey <tromey@redhat.com>
3168 * target.h (target_stopped_data_address)
3169 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3172 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3174 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3176 (avr_pointer_to_address): Likewise.
3178 2014-07-24 Tom Tromey <tromey@redhat.com>
3180 * monitor.c (compile_pattern): Update.
3181 * target.h (struct target_ops) <to_shortname, to_longname,
3184 2014-07-24 Tom Tromey <tromey@redhat.com>
3186 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3187 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3188 (add_info_alias, add_com): Make "doc" const.
3189 (print_doc_line): Make "str" const.
3190 (delete_cmd): Update.
3191 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3192 (print_doc_line): Update.
3193 * cli/cli-script.c (document_command): Update.
3194 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3195 (add_com, add_info, add_info_alias): Update.
3196 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3197 * python/py-cmd.c (cmdpy_destroyer): Update.
3199 2014-07-24 Tom Tromey <tromey@redhat.com>
3201 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3202 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3203 (help_cmd_list): Constify.
3204 (lookup_cmd): Update.
3205 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3207 (help_cmd_list, apropos_cmd): Update.
3208 * cli/cli-script.c (show_user): Update.
3209 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3210 * cli/cli-setshow.h (cmd_show_list): Update.
3211 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3212 (cmd_show_list): Update.
3213 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3214 * python/py-cmd.c (cmdpy_destroyer): Update.
3216 2014-07-24 Tom Tromey <tromey@redhat.com>
3218 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3219 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3221 * command.h (deprecate_cmd): Update.
3222 * maint.c (maintenance_do_deprecate): Add casts.
3224 2014-07-24 Tom Tromey <tromey@redhat.com>
3226 * cli/cli-decode.c (help_cmd): Make parameter "const".
3227 * cli/cli-decode.h (help_cmd): Update.
3229 2014-07-24 Tom Tromey <tromey@redhat.com>
3231 * stack.c (up_silently_base, down_silently_base): Make argument
3234 2014-07-24 Tom Tromey <tromey@redhat.com>
3236 * solib.c (solib_add): Make "pattern" const.
3237 * solib.h (solib_add): Update.
3239 2014-07-24 Tom Tromey <tromey@redhat.com>
3241 * remote.c (remote_serial_open, print_packet, putpkt)
3242 (putpkt_binary): Constify.
3243 * remote.h (putpkt): Update.
3245 2014-07-24 Tom Tromey <tromey@redhat.com>
3247 * monitor.c (monitor_open): Make "args" const.
3248 * monitor.h (monitor_open): Update.
3250 2014-07-24 Tom Tromey <tromey@redhat.com>
3252 * maint.c (match_bfd_flags): Make "string" const.
3253 (print_bfd_section_info): Remove casts.
3254 (print_objfile_section_info): Make "string" const.
3256 2014-07-24 Tom Tromey <tromey@redhat.com>
3258 * inf-child.c (inf_child_open_target): Make "arg" const.
3259 * inf-child.h (inf_child_open_target): Update.
3261 2014-07-24 Tom Tromey <tromey@redhat.com>
3263 * environ.c (unset_in_environ): Make "var" const.
3264 * environ.h (unset_in_environ): Update.
3266 2014-07-24 Tom Tromey <tromey@redhat.com>
3268 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3270 (scan_filename_with_cleanup): Likewise.
3271 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3272 Make arguments const.
3273 (restore_command): Update.
3275 2014-07-24 Pedro Alves <palves@redhat.com>
3277 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3279 2014-07-24 Tom Tromey <tromey@redhat.com>
3280 Gary Benson <gbenson@redhat.com>
3282 * nat/linux-ptrace.c (additional_flags): New global.
3283 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3284 additional_flags; don't check GDBSERVER.
3285 (linux_ptrace_set_additional_flags): New function.
3286 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3288 * linux-nat.c (_initialize_linux_nat): Call
3289 linux_ptrace_set_additional_flags.
3291 2014-07-24 Tom Tromey <tromey@redhat.com>
3293 * make-target-delegates (munge_type, write_debugmethod): New
3295 (debug_names): New global.
3296 ($TARGET_DEBUG_PRINTER): New global.
3297 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3299 Write debug methods. Generate init_debug_target.
3300 * target-debug.h: New file.
3301 * target-delegates.c: Rebuild.
3302 * target.c: Include target-debug.h.
3303 (debug_target): Hoist definition.
3304 (target_kill, target_get_section_table, target_memory_map)
3305 (target_flash_erase, target_flash_done, target_detach)
3306 (target_disconnect, target_wait, target_resume)
3307 (target_pass_signals, target_program_signals, target_follow_fork)
3308 (target_mourn_inferior, target_search_memory)
3309 (target_thread_address_space, target_close)
3310 (target_find_new_threads, target_core_of_thread)
3311 (target_verify_memory, target_insert_mask_watchpoint)
3312 (target_remove_mask_watchpoint): Remove targetdebug code.
3313 (debug_to_post_attach, debug_to_prepare_to_store)
3314 (debug_to_files_info, debug_to_insert_breakpoint)
3315 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3316 (debug_to_region_ok_for_hw_watchpoint)
3317 (debug_to_can_accel_watchpoint_condition)
3318 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3319 (debug_to_watchpoint_addr_within_range)
3320 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3321 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3322 (debug_to_terminal_init, debug_to_terminal_inferior)
3323 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3324 (debug_to_terminal_save_ours, debug_to_terminal_info)
3325 (debug_to_load, debug_to_post_startup_inferior)
3326 (debug_to_insert_fork_catchpoint)
3327 (debug_to_remove_fork_catchpoint)
3328 (debug_to_insert_vfork_catchpoint)
3329 (debug_to_remove_vfork_catchpoint)
3330 (debug_to_insert_exec_catchpoint)
3331 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3332 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3333 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3334 (setup_target_debug): Call init_debug_target.
3335 * target.h (TARGET_DEBUG_PRINTER): New macro.
3336 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3337 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3339 2014-07-24 Gary Benson <gbenson@redhat.com>
3341 * exceptions.h (throw_vfatal): Renamed to...
3342 (throw_vquit): New declaration.
3343 (throw_quit): Likewise.
3344 * exceptions.c (throw_vfatal): Renamed to...
3345 (throw_vquit): New function.
3346 (throw_quit): Likewise.
3347 (throw_error): Call throw_verror rather than throw_it.
3348 * utils.h (vfatal): Removed.
3350 * utils.c (vfatal): Removed.
3352 (internal_verror): Replaced call to fatal with call to throw_quit.
3353 (quit): Replaced calls to fatal with calls to throw_quit.
3355 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3357 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3360 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3362 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3363 less than zero in conditional expression.
3365 2014-07-23 Tom Tromey <tromey@redhat.com>
3367 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3368 ($INTRO_PART): Don't match whitespace.
3369 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3371 ($METHOD): Add $METHOD_TRAILER.
3373 (scan_target_h): New sub.
3374 Change main loop not to collect state.
3375 * target-delegates.c: Rebuild.
3377 2014-07-23 Gary Benson <gbenson@redhat.com>
3379 * cp-support.c (gdb_demangle): Fix build on systems without
3382 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3384 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3385 for reference entry value target data value.
3387 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3389 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3390 value_available_contents_eq.
3392 2014-07-22 Pedro Alves <palves@redhat.com>
3394 * value.c (allocate_optimized_out_value): Don't mark value as
3397 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3399 * MAINTAINERS (Write After Approval): Update my email address.
3401 2014-07-20 Doug Evans <dje@google.com>
3404 * remote.c (putpkt_binary): Add text to error message.
3406 2014-07-20 Yao Qi <yao@codesourcery.com>
3408 * eval.c: Remove "Chill" from comments.
3409 * gdbtypes.h: Likewise.
3410 * symtab.h: Likewise.
3412 2014-07-20 Yao Qi <yao@codesourcery.com>
3414 * std-operator.def: Update comments to TERNOP_SLICE.
3416 2014-07-20 Yao Qi <yao@codesourcery.com>
3418 * std-operator.def: Remove BINOP_RANGE.
3419 * breakpoint.c (watchpoint_exp_is_const): Update.
3420 * expprint.c (dump_subexp_body_standard): Likewise.
3421 * eval.c (init_array_element): Remove dead code.
3422 (evaluate_subexp_standard): Likewise.
3424 2014-07-20 Yao Qi <yao@codesourcery.com>
3426 * std-operator.def: Remove BINOP_IN.
3427 * breakpoint.c (watchpoint_exp_is_const): Update.
3428 * eval.c (evaluate_subexp_standard): Likewise.
3429 * expprint.c (dump_subexp_body_standard): Likewise.
3431 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3433 * microblaze-tdep.c (microblaze_register_names): Add
3434 the rshr and rslr register names.
3435 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3436 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3437 Use of tdesc_numbered_register. Use of
3438 microblaze_register_g_packet_guesses. Use of
3439 tdesc_use_registers. Use of set_gdbarch_register_type.
3440 (microblaze_register_g_packet_guesses): New.
3441 * microblaze-tdep.h (microblaze_reg_num): Add
3442 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3443 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3444 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3445 * features/microblaze-core.xml: New file.
3446 * features/microblaze-stack-protect.xml: New file.
3447 * features/microblaze-with-stack-protect.c: New file.
3448 * features/microblaze-with-stack-protect.xml: New file.
3449 * features/microblaze.xml: New file.
3450 * features/microblaze.c: New file.
3451 * features/Makefile (microblaze-with-stack-protect): Add
3452 microblaze-with-stack-protect microblaze and microblaze-expedite.
3453 * regformats/microblaze-with-stack-protect.dat: New file.
3454 * regformats/microblaze.dat: New file.
3455 * doc/gdb.texinfo (MicroBlaze Features): Added.
3457 2014-07-18 Tom Tromey <tromey@redhat.com>
3459 * exec.c (exec_ops): Now static.
3460 * exec.h (exec_ops): Don't declare.
3462 2014-07-18 Tom Tromey <tromey@redhat.com>
3464 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3465 to find_target_beneath.
3466 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3467 find_target_beneath.
3468 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3470 2014-07-18 Tom Tromey <tromey@redhat.com>
3473 * utils.c (quit): Use target_supports_terminal_ours.
3474 * target.h (target_supports_terminal_ours): Declare.
3475 * target.c (target_supports_delete_record): Don't check
3476 to_delete_record against NULL.
3477 (target_supports_terminal_ours): New function.
3479 2014-07-18 Tom Tromey <tromey@redhat.com>
3482 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3483 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3484 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3485 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3486 * windows-nat.c (windows_xfer_partial): Always delegate.
3487 * record-btrace.c (record_btrace_xfer_partial): Simplify
3489 (record_btrace_fetch_registers, record_btrace_store_registers)
3490 (record_btrace_prepare_to_store, record_btrace_resume)
3491 (record_btrace_wait, record_btrace_find_new_threads)
3492 (record_btrace_thread_alive): Likewise.
3493 * procfs.c (procfs_xfer_partial): Always delegate.
3494 * corelow.c (core_xfer_partial): Always delegate.
3495 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3497 2014-07-18 Tom Tromey <tromey@redhat.com>
3499 * exec.c (exec_make_note_section): Move earlier.
3501 2014-07-17 Doug Evans <dje@google.com>
3504 * maint.c (count_symtabs_and_blocks): Handle NULL
3505 current_program_space.
3506 (report_command_stats): Check global enabled flag in addition to
3507 recorded enabled flag.
3508 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3510 2014-07-16 Pedro Alves <palves@redhat.com>
3512 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3514 2014-07-16 Tom Tromey <tromey@redhat.com>
3516 * target.h (struct target_ops) <to_delete_record>: Reformat
3519 2014-07-16 Tom Tromey <tromey@redhat.com>
3521 * target-delegates.c: Rebuild.
3523 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3525 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3526 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3527 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3528 (avr_pointer_to_address): Likewise.
3529 (avr_address_class_type_flags): New function.
3530 (avr_address_class_type_flags_to_name): Likewise.
3531 (avr_address_class_name_to_type_flags): Likewise.
3532 (avr_gdbarch_init): Set address_class_type_flags,
3533 address_class_type_flags_to_name and
3534 address_class_name_to_type_flags.
3536 2014-07-15 Pedro Alves <palves@redhat.com>
3538 * linux-nat.c (kill_callback): Save errno and work with saved
3541 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3543 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3545 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3547 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3548 breakpoint support correctly.
3550 2014-07-14 Pedro Alves <palves@redhat.com>
3552 * utils.c (prompt_for_continue): Call target_terminal_ours.
3554 2014-07-14 Pedro Alves <palves@redhat.com>
3556 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3557 catch_errors. Don't re-enable stdin or notify observers where,
3559 (fetch_inferior_event_wrapper): Delete.
3561 2014-07-14 Pedro Alves <palves@redhat.com>
3564 * top.c: Include "inf-loop.h".
3565 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3567 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3569 (gdb_readline_wrapper): Store whether the target is async, and
3572 2014-07-14 Pedro Alves <palves@redhat.com>
3575 * top.c (gdb_readline_wrapper_line): Tweak comment.
3576 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3577 the input handler callback.
3579 2014-07-14 Pedro Alves <palves@redhat.com>
3582 * main.c: Include event-top.h.
3583 (handle_command_errors): New function.
3584 (catch_command_errors, catch_command_errors_const): Use it.
3586 2014-07-14 Pedro Alves <palves@redhat.com>
3588 * exceptions.c (catch_command_errors, catch_command_errors_const):
3590 * exceptions.h (catch_command_errors_ftype)
3591 (catch_command_errors_const_ftype): Moved to main.c.
3592 (catch_command_errors, catch_command_errors_const): Delete
3594 * main.c (catch_command_errors_ftype)
3595 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3596 (catch_command_errors, catch_command_errors_const)): Moved here
3597 from exceptions.c and make static.
3599 2014-07-14 Pedro Alves <palves@redhat.com>
3601 * exceptions.c (print_any_exception): Delete.
3602 (catch_exceptions_with_msg): Use exception_print instead of
3603 print_any_exception.
3604 (catch_errors): Use exception_fprintf instead of
3605 print_any_exception.
3606 (catch_command_errors, catch_command_errors_const): Use
3607 exception_print instead of print_any_exception.
3609 2014-07-14 Pedro Alves <palves@redhat.com>
3611 * infcall.c (run_inferior_call): Set 'sync_execution' while
3612 running the inferior call.
3614 2014-07-14 Pedro Alves <palves@redhat.com>
3616 * value.c (value_contents_equal): Delete function.
3617 * value.h (value_contents_equal): Delete declaration.
3619 2014-07-14 Tom Tromey <tromey@redhat.com>
3622 * gdbtypes.c (is_dynamic_type_internal): New function, from
3624 (is_dynamic_type): Rewrite.
3625 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3626 (resolve_dynamic_struct): Likewise.
3627 (resolve_dynamic_type_internal): New function, from
3628 resolve_dynamic_type.
3629 (resolve_dynamic_type): Rewrite.
3631 2014-07-14 Tom Tromey <tromey@redhat.com>
3633 * target.c (target_require_runnable): Also check record_stratum.
3636 2014-07-11 Yao Qi <yao@codesourcery.com>
3638 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3639 thumb_instruction_restores_sp return true.
3641 2014-07-11 Yao Qi <yao@codesourcery.com>
3643 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3644 (thumb_in_function_epilogue_p): Call
3645 thumb_instruction_restores_sp.
3647 2014-07-11 Yao Qi <yao@codesourcery.com>
3649 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3651 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3653 2014-07-11 Gary Benson <gbenson@redhat.com>
3655 * amd64-linux-nat.c (gdbcore.h): Remove include.
3656 (regset.h): Likewise.
3657 (nat/linux-btrace.h): Likewise.
3658 (btrace.h): Likewise.
3659 (gdb_assert.h): Likewise.
3660 (string.h): Likewise.
3661 (sys/uio.h): Likewise.
3662 (sys/debugreg.h): Likewise.
3663 (sys/syscall.h): Likewise.
3664 (sys/procfs.h): Likewise.
3665 (sys/user.h): Likewise.
3666 (asm/ptrace.h): Likewise.
3667 (i386-nat.h): Likewise.
3668 * i386-linux-nat.c (i386-nat.h): Likewise.
3669 (regset.h): Likewise.
3670 (target.h): Likewise.
3671 (linux-nat.h): Likewise.
3672 (nat/linux-btrace.h): Likewise.
3673 (btrace.h): Likewise.
3674 (gdb_assert.h): Likewise.
3675 (string.h): Likewise.
3676 (sys/uio.h): Likewise.
3677 (sys/user.h): Likewise.
3678 (sys/procfs.h): Likewise.
3679 (sys/reg.h): Likewise.
3680 (sys/debugreg.h): Likewise.
3681 (ORIG_EAX): Remove definition.
3683 2014-07-11 Gary Benson <gbenson@redhat.com>
3685 * i386-linux-nat.h: New file.
3686 * x86-linux-nat.h: Likewise.
3687 * x86-linux-nat.c: Likewise.
3688 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3689 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3690 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3691 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3692 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3693 (PTRACE_SETREGSET): Likewise.
3694 (arch_lwp_info): Now in x86-linux-nat.c.
3695 (have_ptrace_getregset): Now in x86-linux-nat.h.
3696 (x86_linux_dr_get): Now in x86-linux-nat.c.
3697 (x86_linux_dr_set): Likewise.
3698 (x86_linux_dr_get_addr): Likewise.
3699 (x86_linux_dr_get_control): Likewise.
3700 (x86_linux_dr_get_status): Likewise.
3701 (update_debug_registers_callback): Likewise.
3702 (x86_linux_dr_set_control): Likewise.
3703 (x86_linux_dr_set_addr): Likewise.
3704 (x86_linux_prepare_to_resume): Likewise.
3705 (x86_linux_new_thread): Likewise.
3706 (x86_linux_new_fork): Likewise.
3707 (x86_linux_get_thread_area): Likewise.
3708 (super_post_startup_inferior): Likewise.
3709 (x86_linux_child_post_startup_inferior): Likewise.
3710 (AMD64_LINUX_USER64_CS): Likewise.
3711 (AMD64_LINUX_X32_DS): Likewise.
3712 (x86_linux_read_description): Likewise.
3713 (x86_linux_enable_btrace): Likewise.
3714 (x86_linux_disable_btrace): Likewise.
3715 (x86_linux_teardown_btrace): Likewise.
3716 (x86_linux_read_btrace): Likewise.
3717 (x86_linux_create_target): Likewise.
3718 (x86_linux_add_target): Likewise.
3719 * i386-linux-nat.c (x86-linux-nat.h): New include.
3720 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3721 (PTRACE_SETREGSET): Likewise.
3722 (arch_lwp_info): Now in x86-linux-nat.c.
3723 (have_ptrace_getregset): Now in x86-linux-nat.h.
3724 (x86_linux_dr_get): Now in x86-linux-nat.c.
3725 (x86_linux_dr_set): Likewise.
3726 (x86_linux_dr_get_addr): Likewise.
3727 (x86_linux_dr_get_control): Likewise.
3728 (x86_linux_dr_get_status): Likewise.
3729 (update_debug_registers_callback): Likewise.
3730 (x86_linux_dr_set_control): Likewise.
3731 (x86_linux_dr_set_addr): Likewise.
3732 (x86_linux_prepare_to_resume): Likewise.
3733 (x86_linux_new_thread): Likewise.
3734 (x86_linux_new_fork): Likewise.
3735 (x86_linux_get_thread_area): Likewise.
3736 (super_post_startup_inferior): Likewise.
3737 (x86_linux_child_post_startup_inferior): Likewise.
3738 (AMD64_LINUX_USER64_CS): Likewise.
3739 (AMD64_LINUX_X32_DS): Likewise.
3740 (x86_linux_read_description): Likewise.
3741 (x86_linux_enable_btrace): Likewise.
3742 (x86_linux_disable_btrace): Likewise.
3743 (x86_linux_teardown_btrace): Likewise.
3744 (x86_linux_read_btrace): Likewise.
3745 (x86_linux_create_target): Likewise.
3746 (x86_linux_add_target): Likewise.
3748 2014-07-11 Gary Benson <gbenson@redhat.com>
3750 * amd64-linux-nat.c: Comment and whitespace changes.
3751 * i386-linux-nat.c: Comment and whitespace changes.
3753 2014-07-11 Gary Benson <gbenson@redhat.com>
3755 * amd64-linux-nat.c (x86_linux_create_target): New function.
3756 (x86_linux_add_target): Likewise.
3757 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3758 * i386-linux-nat.c (x86_linux_create_target): New function.
3759 (x86_linux_add_target): Likewise.
3760 (_initialize_i386_linux_nat): Delegate to the above new functions.
3762 2014-07-11 Gary Benson <gbenson@redhat.com>
3764 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3765 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3766 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3767 (ps_get_thread_area): Delegate to the above.
3769 2014-07-11 Gary Benson <gbenson@redhat.com>
3771 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3772 x86_linux_read_description. All uses updated. amd64-specific
3773 code conditionalized. Conditionalized i386-specific code added.
3774 Redundant cast removed.
3775 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3776 x86_linux_read_description. All uses updated. i386-specific
3777 code conditionalized. Conditionalized amd64-specific code added.
3778 One sizeof replaced with the actual type it is describing.
3780 2014-07-11 Gary Benson <gbenson@redhat.com>
3782 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3783 x86_linux_dr_get. All uses updated.
3784 (amd64_linux_dr_set): Renamed to
3785 x86_linux_dr_set. All uses updated.
3786 (amd64_linux_dr_get_addr): Renamed to
3787 x86_linux_dr_get_addr. All uses updated.
3788 (amd64_linux_dr_get_control): Renamed to
3789 x86_linux_dr_get_control. All uses updated.
3790 (amd64_linux_dr_get_status): Renamed to
3791 x86_linux_dr_get_status. All uses updated.
3792 (amd64_linux_dr_set_control): Renamed to
3793 x86_linux_dr_set_control. All uses updated.
3794 (amd64_linux_dr_set_addr): Renamed to
3795 x86_linux_dr_set_addr. All uses updated.
3796 (amd64_linux_prepare_to_resume): Renamed to
3797 x86_linux_prepare_to_resume. All uses updated.
3798 (amd64_linux_new_thread): Renamed to
3799 x86_linux_new_thread. All uses updated.
3800 (amd64_linux_new_fork): Renamed to
3801 x86_linux_new_fork. All uses updated.
3802 (amd64_linux_child_post_startup_inferior): Renamed to
3803 x86_linux_child_post_startup_inferior. All uses updated.
3804 (amd64_linux_enable_btrace): Renamed to
3805 x86_linux_enable_btrace. All uses updated.
3806 (amd64_linux_disable_btrace): Renamed to
3807 x86_linux_disable_btrace. All uses updated.
3808 (amd64_linux_teardown_btrace): Renamed to
3809 x86_linux_teardown_btrace. All uses updated.
3810 (amd64_linux_read_btrace): Renamed to
3811 x86_linux_read_btrace. All uses updated.
3812 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3813 x86_linux_dr_get. All uses updated.
3814 (i386_linux_dr_set): Renamed to
3815 x86_linux_dr_set. All uses updated.
3816 (i386_linux_dr_get_addr): Renamed to
3817 x86_linux_dr_get_addr. All uses updated.
3818 (i386_linux_dr_get_control): Renamed to
3819 x86_linux_dr_get_control. All uses updated.
3820 (i386_linux_dr_get_status): Renamed to
3821 x86_linux_dr_get_status. All uses updated.
3822 (i386_linux_dr_set_control): Renamed to
3823 x86_linux_dr_set_control. All uses updated.
3824 (i386_linux_dr_set_addr): Renamed to
3825 x86_linux_dr_set_addr. All uses updated.
3826 (i386_linux_prepare_to_resume): Renamed to
3827 x86_linux_prepare_to_resume. All uses updated.
3828 (i386_linux_new_thread): Renamed to
3829 x86_linux_new_thread. All uses updated.
3830 (i386_linux_new_fork): Renamed to
3831 x86_linux_new_fork. All uses updated.
3832 (i386_linux_child_post_startup_inferior): Renamed to
3833 x86_linux_child_post_startup_inferior. All uses updated.
3834 (i386_linux_enable_btrace): Renamed to
3835 x86_linux_enable_btrace. All uses updated.
3836 (i386_linux_disable_btrace): Renamed to
3837 x86_linux_disable_btrace. All uses updated.
3838 (i386_linux_teardown_btrace): Renamed to
3839 x86_linux_teardown_btrace. All uses updated.
3840 (i386_linux_read_btrace): Renamed to
3841 x86_linux_read_btrace. All uses updated.
3843 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3845 * remote.c (extended_remote_post_attach): New function.
3846 (init_extended_remote_ops): Install it as to_post_attach method.
3848 2014-07-09 Pedro Alves <palves@redhat.com>
3850 * infcmd.c (attach_command_post_wait): Don't call
3851 target_terminal_inferior here.
3852 (attach_command): Call it here instead.
3854 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3856 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3858 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3859 from varobj.c, with additional checks.
3860 (c_varobj_ops): Fill in is_path_expr_parent field.
3861 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3862 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3864 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3866 (varobj_default_is_path_expr_parent): New function.
3867 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3868 (varobj_default_is_path_expr_parent): Declare new function.
3870 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3872 * infcmd.c (finish_backward): Turn internal error into normal error.
3874 2014-07-07 Pedro Alves <palves@redhat.com>
3877 * remote.c (async_handle_remote_sigint)
3878 (async_handle_remote_sigint_twice): Call
3879 gdb_call_async_signal_handler instead of
3880 mark_async_signal_handler.
3882 2014-07-07 Tom Tromey <tromey@redhat.com>
3884 * target-delegates.c: Rebuild.
3885 * target.c (target_info_record): Remove.
3886 * record.c (info_record_command): Unconditionally call
3888 * target.h (struct target_ops) <to_info_record>: Use
3889 TARGET_DEFAULT_IGNORE.
3890 (target_info_record): Remove.
3892 2014-07-07 Tom Tromey <tromey@redhat.com>
3894 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3895 TARGET_DEFAULT_NORETURN.
3896 * target.c (generic_tls_error): New function.
3897 (target_translate_tls_address): Don't search target stack.
3898 * target-delegates.c: Rebuild.
3899 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3901 * linux-thread-db.c (thread_db_get_thread_local_address):
3902 Unconditionally call beneath target.
3904 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3906 * cli/cli-logging.c (pop_output_files): Assign targerr to
3909 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3911 * MAINTAINERS (Write After Approval): Update my email address.
3913 2014-07-02 Gary Benson <gbenson@redhat.com>
3915 * proc-service.c (ps_xfer_memory): Update comment.
3916 (ps_pstop): Remove unused function.
3917 (ps_pcontinue): Likewise.
3918 (ps_lstop): Likewise.
3919 (ps_lcontinue): Likewise.
3920 (ps_lgetxregsize): Likewise.
3921 (ps_lgetxregs): Likewise.
3922 (ps_lsetxregs): Likewise.
3923 (ps_plog): Likewise.
3924 (ps_ptread): Likewise.
3925 (ps_ptwrite): Likewise.
3927 2014-07-01 Mark Wielaard <mjw@redhat.com>
3929 * dwarf2read.c (add_array_cv_type): New function.
3930 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3931 (read_tag_volatile_type): Likewise.
3933 2014-07-01 Tom Tromey <tromey@redhat.com>
3935 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3936 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3937 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3938 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3939 * command.h (cmd_cfunc_ftype): Move earlier.
3940 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3941 (add_com, add_info): Use cmd_cfunc_ftype.
3943 2014-06-30 Tom Tromey <tromey@redhat.com>
3945 * symtab.c (operator_chars): Make parameters and return type
3947 (file_matches): Make "files" const.
3948 (struct search_symbols_data) <files>: Now const.
3949 (search_symbols): Make "regexp" and "files" parameters const.
3951 (symtab_symbol_info): Remove cast.
3952 (rbreak_command): Update.
3953 * symtab.h (search_symbols): Update.
3955 2014-06-27 Yao Qi <yao@codesourcery.com>
3957 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3958 Change parameter type to 'struct thread_info *'. Caller
3960 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3962 * dummy-frame.c (struct dummy_frame_id): New.
3963 (dummy_frame_id_eq): New function.
3964 (struct dummy_frame) <id>: Change its type to 'struct
3966 (dummy_frame_push): Add parameter ptid and save it in
3968 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3970 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3972 (lookup_dummy_frame): Change parameter type to 'struct
3973 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3974 instead of frame_id_eq.
3975 (dummy_frame_pop): Add parameter ptid. Callers updated.
3976 Update comments. Compose dummy_frame_id and pass it to
3978 (dummy_frame_discard): Add parameter ptid.
3979 (dummy_frame_sniffer): Compose dummy_frame_id and call
3980 dummy_frame_id_eq instead of frame_id_eq.
3981 (fprint_dummy_frames): Print ptid.
3982 * dummy-frame.h: Remove comments.
3983 (dummy_frame_push): Add ptid in declaration.
3984 (dummy_frame_pop, dummy_frame_discard): Likewise.
3986 2014-06-26 Tom Tromey <tromey@redhat.com>
3988 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3989 * command.h (error_no_arg): Update.
3991 2014-06-26 Tom Tromey <tromey@redhat.com>
3993 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3994 (do_show_command): Make "arg" const.
3995 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3997 2014-06-26 Tom Tromey <tromey@redhat.com>
3999 * record-full.c (record_full_get_bookmark): Make "args" const.
4000 (record_full_goto_bookmark): Make "raw_bookmark" const.
4001 * record.c (record_goto): New function.
4002 (cmd_record_goto): Use it. Now static.
4003 * record.h (record_goto): Declare.
4004 (cmd_record_goto): Remove declaration.
4005 * target-delegates.c: Rebuild.
4006 * target.h (struct target_ops) <to_get_bookmark,
4007 to_goto_bookmark>: Make parameter const.
4009 2014-06-26 Tom Tromey <tromey@redhat.com>
4011 * defs.h (generic_load): Update.
4012 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4013 * monitor.c (monitor_load): Make "args" const.
4014 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4015 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4017 (mips_load): Make "file" const.
4018 * remote-sim.c (gdbsim_load): Make "args" const.
4019 * remote.c (remote_load): Make "name" const.
4020 * symfile.c (generic_load): Make "args" const.
4021 * target-delegates.c: Rebuild.
4022 * target.c (target_load): Make "arg" const.
4023 (debug_to_load): Make "args" const.
4024 * target.h (struct target_ops) <to_load>: Make parameter const.
4025 (target_load): Update.
4027 2014-06-26 Tom Tromey <tromey@redhat.com>
4030 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4031 (dwarf2_physname, read_partial_die)
4032 (guess_partial_die_structure_name, fixup_partial_die)
4033 (guess_full_die_structure_name, anonymous_struct_prefix)
4034 (dwarf2_name): Use per-BFD obstack.
4036 2014-06-26 Yao Qi <yao@codesourcery.com>
4038 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4039 dummyframe and this_id into inner block below.
4041 2014-06-26 Yao Qi <yao@codesourcery.com>
4043 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4044 with "signal_pass[0]" in the initialization of signal_pass.
4046 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4048 * record-btrace.c (record_btrace_generating_corefile)
4049 (record_btrace_prepare_to_generate_core)
4050 (record_btrace_done_generating_core): New.
4051 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4052 (record_btrace_store_registers, record_btrace_prepare_to_store):
4053 Forward request when generating a core file.
4054 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4055 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4056 to_done_generating_core.
4058 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4060 * target.h (target_ops) <to_prepare_to_generate_core>
4061 <to_done_generating_core>: New.
4062 (target_prepare_to_generate_core, target_done_generating_core): New.
4063 * target.c (target_prepare_to_generate_core)
4064 (target_done_generating_core): New.
4065 * target-delegates.c: Regenerate.
4066 * gcore.c: (write_gcore_file): Rename to ...
4067 (write_gcore_file_1): ...this.
4068 (write_gcore_file): Call target_prepare_to_generate_core
4069 and target_done_generating_core.
4071 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4073 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4074 * gcore.c (write_gcore_file): Free memory returned from
4075 make_corefile_notes.
4076 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4077 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4079 2014-06-24 Yao Qi <yao@codesourcery.com>
4081 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4082 (arm_linux_init_abi): Set skip_trampoline_code with
4083 gdbarch_skip_trampoline_code instead of
4084 find_solib_trampoline_target.
4086 2014-06-24 Yao Qi <yao@codesourcery.com>
4088 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4089 arm_skip_bx_reg returns non-zero.
4091 2014-06-24 Yao Qi <yao@codesourcery.com>
4093 * arm-tdep.c (arm_skip_bx_reg): New function.
4094 (arm_skip_stub): Call arm_skip_bx_reg.
4096 2014-06-23 Don Breazeal <donb@codesourcery.com>
4098 * MAINTAINERS: Add myself as write-after-approval maintainer.
4100 2014-06-23 Pedro Alves <palves@redhat.com>
4102 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4103 DR_CONTROL before setting DR0..DR3.
4104 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4105 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4106 bits of DR_CONTROL related to the debug register slot being
4107 disabled. If all slots are vacant, clear local slowdown as well,
4108 and assert DR_CONTROL is 0.
4110 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4112 * python/lib/gdb/command/xmethods.py
4113 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4114 current progspace only if the string "progspace" matches LOCUS_RE.
4116 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4118 Fix --with-system-readline with readline-6.3 patch 5.
4119 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4120 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4123 2014-06-20 Tom Tromey <tromey@redhat.com>
4125 * dwarf2read.c (dw2_get_real_path): Use correct type in
4127 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4129 2014-06-20 Gary Benson <gbenson@redhat.com>
4131 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4132 * common/glibc_thread_db.h: Likewise.
4133 * common/i386-cpuid.h: Likewise.
4134 * common/i386-gcc-cpuid.h: Likewise.
4135 * common/linux-btrace.h: Likewise.
4136 * common/linux-osdata.h: Likewise.
4137 * common/linux-procfs.h: Likewise.
4138 * common/linux-ptrace.h: Likewise.
4139 * common/mips-linux-watch.h: Likewise.
4140 * common/linux-btrace.c: Moved to nat.
4141 * common/linux-osdata.c: Likewise.
4142 * common/linux-procfs.c: Likewise.
4143 * common/linux-ptrace.c: Likewise.
4144 * common/mips-linux-watch.c: Likewise.
4145 * nat/gdb_thread_db.h: Moved from common.
4146 * nat/glibc_thread_db.h: Likewise.
4147 * nat/i386-cpuid.h: Likewise.
4148 * nat/i386-gcc-cpuid.h: Likewise.
4149 * nat/linux-btrace.c: Likewise.
4150 * nat/linux-btrace.h: Likewise.
4151 * nat/linux-osdata.c: Likewise.
4152 * nat/linux-osdata.h: Likewise.
4153 * nat/linux-procfs.c: Likewise.
4154 * nat/linux-procfs.h: Likewise.
4155 * nat/linux-ptrace.c: Likewise.
4156 * nat/linux-ptrace.h: Likewise.
4157 * nat/mips-linux-watch.c: Likewise.
4158 * nat/mips-linux-watch.h: Likewise.
4159 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4160 (object file files): Reordered.
4161 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4162 of glibc_thread_db.h.
4164 2014-06-20 Gary Benson <gbenson@redhat.com>
4166 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4167 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4168 (i386_dr_low): Likewise.
4169 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4170 (i386_dr_low_set_addr): Likewise.
4171 (i386_dr_low_get_addr): Likewise.
4172 (i386_dr_low_can_set_control): Likewise.
4173 (i386_dr_low_set_control): Likewise.
4174 (i386_dr_low_get_control): Likewise.
4175 (i386_dr_low_get_status): Likewise.
4176 (i386_get_debug_register_length): Likewise.
4177 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4178 (i386_dr_low): Likewise.
4179 * nat/i386-dregs.c (i386-low.h): Remove include.
4180 (i386-nat.h): Likewise.
4181 (nat/i386-dregs.h): New include.
4182 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4183 (i386_dr_low_set_addr): Likewise.
4184 (i386_dr_low_get_addr): Likewise.
4185 (i386_dr_low_can_set_control): Likewise.
4186 (i386_dr_low_set_control): Likewise.
4187 (i386_dr_low_get_control): Likewise.
4188 (i386_dr_low_get_status): Likewise.
4189 (i386_get_debug_register_length): Likewise.
4190 (debug_hw_points): Likewise.
4192 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4194 * Makefile.in (SFILES): Add d-exp.y.
4195 (YYFILES): Add d-exp.c.
4196 (YYOBJ): Add d-exp.o.
4197 (local-maintainer-clean): Delete d-exp.c.
4198 * d-exp.y: New file.
4199 * d-lang.h (d_parse): New declaration.
4200 (d_error): New declaration.
4201 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4202 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4203 PREC_ORDER operators.
4204 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4206 2014-06-19 Yao Qi <yao@codesourcery.com>
4208 * gdbthread.h (any_running): Remove the declaration.
4209 * thread.c (any_running): Remove.
4211 2014-06-19 Yao Qi <yao@codesourcery.com>
4213 * gdbthread.h (struct thread_info) <state>: Change its type to
4214 'enum thread_state'. Update comments.
4216 2014-06-19 Pedro Alves <palves@redhat.com>
4218 * gdbthread.h (ALL_THREADS): Delete.
4219 (ALL_NON_EXITED_THREADS): New macro.
4220 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4221 instead of ALL_THREADS.
4222 * infrun.c (find_thread_needs_step_over)
4223 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4224 instead of ALL_THREADS.
4225 * record-btrace.c (record_btrace_open)
4226 (record_btrace_stop_recording, record_btrace_close)
4227 (record_btrace_is_replaying, record_btrace_resume)
4228 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4229 * remote.c (append_pending_thread_resumptions): Likewise.
4230 * thread.c (thread_apply_all_command): Likewise.
4232 2014-06-19 Gary Benson <gbenson@redhat.com>
4234 * i386-nat.c (i386_stopped_by_watchpoint):
4235 Use i386_dr_stopped_by_watchpoint.
4236 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4237 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4239 2014-06-19 Gary Benson <gbenson@redhat.com>
4241 * nat/i386-dregs.c: New file.
4242 * Makefile.in (i386-dregs.o): New rule.
4243 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4244 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4245 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4246 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4247 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4248 * config/i386/go32.mh (NATDEPFILES): Likewise.
4249 * config/i386/linux.mh (NATDEPFILES): Likewise.
4250 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4251 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4252 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4253 * i386-nat.h (debug_hw_points): New declaration.
4254 * i386-nat.c (breakpoint.h): Remove include.
4255 (command.h): Likewise.
4256 (target.h): Likewise.
4257 (gdb_assert.h): Likewise.
4258 (debug_hw_points): Made nonstatic.
4259 (debug_printf): Now in i386-dregs.c.
4260 (TARGET_HAS_DR_LEN_8): Likewise.
4261 (DR_CONTROL_SHIFT): Likewise.
4262 (DR_CONTROL_SIZE): Likewise.
4263 (DR_RW_EXECUTE): Likewise.
4264 (DR_RW_WRITE): Likewise.
4265 (DR_RW_READ): Likewise.
4266 (DR_RW_IORW): Likewise.
4267 (DR_LEN_1): Likewise.
4268 (DR_LEN_2): Likewise.
4269 (DR_LEN_4): Likewise.
4270 (DR_LEN_8): Likewise.
4271 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4272 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4273 (DR_ENABLE_SIZE): Likewise.
4274 (DR_LOCAL_SLOWDOWN): Likewise.
4275 (DR_GLOBAL_SLOWDOWN): Likewise.
4276 (DR_CONTROL_RESERVED): Likewise.
4277 (I386_DR_CONTROL_MASK): Likewise.
4278 (I386_DR_VACANT): Likewise.
4279 (I386_DR_LOCAL_ENABLE): Likewise.
4280 (I386_DR_GLOBAL_ENABLE): Likewise.
4281 (I386_DR_DISABLE): Likewise.
4282 (I386_DR_SET_RW_LEN): Likewise.
4283 (I386_DR_GET_RW_LEN): Likewise.
4284 (I386_DR_WATCH_HIT): Likewise.
4285 (i386_wp_op_t): Likewise.
4286 (i386_show_dr): Likewise.
4287 (i386_length_and_rw_bits): Likewise.
4288 (i386_insert_aligned_watchpoint): Likewise.
4289 (i386_remove_aligned_watchpoint): Likewise.
4290 (i386_handle_nonaligned_watchpoint): Likewise.
4291 (i386_update_inferior_debug_regs): Likewise.
4292 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4293 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4294 (i386_region_ok_for_watchpoint):
4295 Use i386_dr_region_ok_for_watchpoint.
4296 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4298 2014-06-19 Gary Benson <gbenson@redhat.com>
4300 * i386-nat.c (i386_insert_hw_breakpoint): Use
4301 i386_insert_watchpoint.
4302 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4304 2014-06-19 Gary Benson <gbenson@redhat.com>
4306 * i386-nat.c (i386_dr_show): Renamed to
4307 i386_show_dr and made static. All uses updated.
4308 (i386_dr_length_and_rw_bits): Renamed to
4309 i386_length_and_rw_bits and made static.
4311 (i386_dr_insert_aligned_watchpoint): Renamed to
4312 i386_insert_aligned_watchpoint and made static.
4314 (i386_dr_remove_aligned_watchpoint): Renamed to
4315 i386_remove_aligned_watchpoint and made static.
4317 (i386_dr_update_inferior_debug_regs): Renamed to
4318 i386_update_inferior_debug_regs and made static.
4320 * nat/i386-dregs.h (i386_dr_show): Removed.
4321 (i386_dr_length_and_rw_bits): Likewise.
4322 (i386_dr_insert_aligned_watchpoint): Likewise.
4323 (i386_dr_remove_aligned_watchpoint): Likewise.
4324 (i386_dr_update_inferior_debug_regs): Likewise.
4326 2014-06-19 Gary Benson <gbenson@redhat.com>
4328 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4329 * configure: Regenerate.
4330 * config.in: Likewise.
4331 * main.c (signal.h): New include.
4332 (setup_alternate_signal_stack): New function.
4333 (captured_main): Call the above.
4334 * cp-support.c (signal.h): New include.
4335 (catch_demangler_crashes): New flag.
4336 (SIGJMP_BUF): New define.
4337 (SIGSETJMP): Likewise.
4338 (SIGLONGJMP): Likewise.
4339 (gdb_demangle_jmp_buf): New static global.
4340 (gdb_demangle_attempt_core_dump): Likewise.
4341 (gdb_demangle_signal_handler): New function.
4342 (gdb_demangle): If catch_demangler_crashes is set, install the
4343 above signal handler before calling bfd_demangle, and restore
4344 the original signal handler afterwards. Display the offending
4345 symbol and call demangler_warning the first time a segmentation
4347 (_initialize_cp_support): New maint set/show command.
4349 2014-06-19 Gary Benson <gbenson@redhat.com>
4351 * utils.h (resource_limit_kind): New enum.
4352 (can_dump_core): New declaration.
4353 (warn_cant_dump_core): Likewise.
4354 (dump_core): Likewise.
4355 * utils.c (dump_core): Made nonstatic. Added new
4356 parameter "limit_kind".
4357 (can_dump_core): Made nonstatic. Moved printing code to...
4358 (warn_cant_dump_core): New function.
4359 (can_dump_core_warn): Likewise.
4360 (internal_vproblem): Replace calls to can_dump_core with
4361 calls to can_dump_core_warn. Supply new argument to each.
4363 2014-06-19 Gary Benson <gbenson@redhat.com>
4365 * utils.h (demangler_vwarning): New declaration.
4366 (demangler_warning): Likewise.
4367 * utils.c (struct internal_problem)
4368 <user_settable_should_quit>: New field.
4369 <user_settable_should_dump_core>: Likewise
4370 (internal_error_problem): Add values for above new fields.
4371 (internal_warning_problem): Likewise.
4372 (demangler_warning_problem): New static global.
4373 (demangler_vwarning): New function.
4374 (demangler_warning): Likewise.
4375 (add_internal_problem_command): Selectively add commands.
4376 (_initialize_utils): New internal problem command.
4377 * maint.c (maintenance_demangler_warning): New function.
4378 (_initialize_maint_cmds): New command.
4380 2014-06-18 Tom Tromey <tromey@redhat.com>
4382 * f-valprint.c (info_common_command_for_block): Update.
4383 * symtab.h (struct general_symbol_info) <common_block>: Now
4386 2014-06-18 Tom Tromey <tromey@redhat.com>
4388 * symtab.h (struct symtab) <blockvector>: Now const.
4389 * ada-lang.c (ada_add_global_exceptions): Update.
4390 * buildsym.c (augment_type_symtab): Update.
4391 * dwarf2read.c (dw2_lookup_symbol): Update.
4392 * jit.c (finalize_symtab): Update.
4393 * jv-lang.c (add_class_symtab_symbol): Update.
4394 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4396 * objfiles.c (objfile_relocate1): Update.
4397 * psymtab.c (lookup_symbol_aux_psymtabs)
4398 (maintenance_check_psymtabs): Update.
4399 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4401 * spu-tdep.c (spu_catch_start): Update.
4402 * symmisc.c (dump_symtab_1): Update.
4403 * symtab.c (lookup_global_symbol_from_objfile)
4404 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4405 (basic_lookup_transparent_type_quick)
4406 (basic_lookup_transparent_type, find_pc_sect_symtab)
4407 (find_pc_sect_line, search_symbols): Update.
4408 * block.c (find_block_in_blockvector): Make "bl" const.
4409 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4411 (blockvector_contains_pc): Make "bv" const.
4412 (block_for_pc_sect): Update.
4413 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4414 (blockvector_contains_pc): Update.
4415 * breakpoint.c (resolve_sal_pc): Update.
4416 * inline-frame.c (block_starting_point_at): Update.
4418 2014-06-18 Tom Tromey <tromey@redhat.com>
4420 * completer.c (complete_line): Make "line_buffer" const.
4421 * completer.h (complete_line): Update.
4423 2014-06-18 Tom Tromey <tromey@redhat.com>
4425 * symtab.c (add_macro_name): Remove unneeded cast.
4427 2014-06-18 Tom Tromey <tromey@redhat.com>
4429 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4430 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4432 2014-06-18 Tom Tromey <tromey@redhat.com>
4434 * probe.c (info_probes_for_ops): Make "arg" const.
4435 * probe.h (info_probes_for_ops): Update.
4437 2014-06-18 Tom Tromey <tromey@redhat.com>
4439 * varobj.c (varobj_create): Update.
4440 * valops.c (value_of_this): Update.
4441 * tracepoint.c (add_local_symbols, scope_info): Update.
4442 * symtab.h (struct general_symbol_info) <block>: Now const.
4443 * symtab.c (skip_prologue_sal)
4444 (default_make_symbol_completion_list_break_on)
4445 (skip_prologue_using_sal): Update.
4446 * stack.h (iterate_over_block_locals)
4447 (iterate_over_block_local_vars): Update.
4448 * stack.c (print_frame_args): Update.
4449 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4451 (get_selected_block): Make return type const.
4452 * python/py-frame.c (frapy_block): Update.
4453 * python/py-block.c (gdbpy_block_for_pc): Update.
4454 * p-exp.y (%union) <bval>: Now const.
4455 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4456 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4457 * m2-exp.y (%union) <bval>: Now const.
4458 * linespec.c (get_current_search_block): Make return type const.
4459 (create_sals_line_offset, find_label_symbols): Update.
4460 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4462 (block_starting_point_at): Make "block" const.
4463 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4464 (check_exception_resume): Update.
4465 * guile/scm-frame.c (gdbscm_frame_block): Update.
4466 * guile/scm-block.c (gdbscm_lookup_block): Update.
4467 * frame.h (get_frame_block): Update.
4468 (get_selected_block): Make return type const.
4469 * frame.c (frame_id_inner): Update.
4470 * f-valprint.c (info_common_command_for_block)
4471 (info_common_command): Update.
4472 * dwarf2loc.c (dwarf2_find_location_expression)
4473 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4474 (locexpr_describe_location_piece): Update.
4475 * c-exp.y (%union) <bval>: Now const.
4476 * breakpoint.c (resolve_sal_pc): Update.
4477 * blockframe.c (get_frame_block):Make return type const.
4478 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4479 (block_innermost_frame): Update.
4480 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4481 (block_for_pc, block_for_pc_sect): Update.
4482 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4484 (block_for_pc_sect, block_for_pc): Make return type const.
4485 * ax-gdb.c (gen_expr): Update.
4486 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4487 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4488 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4489 (ada_read_var_value): Update.
4490 * ada-exp.y (struct name_info) <block>: Now const.
4492 (block_lookup): Constify.
4494 2014-06-18 Gary Benson <gbenson@redhat.com>
4496 * nat/i386-dregs.h: New file.
4497 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4498 * i386-nat.h (i386-dregs.h): New include.
4499 (DR_FIRSTADDR): Now in i386-dregs.h.
4500 (DR_LASTADDR): Likewise.
4501 (DR_NADDR): Likewise.
4502 (DR_STATUS): Likewise.
4503 (DR_CONTROL): Likewise.
4504 (i386_debug_reg_state): Likewise.
4505 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4507 2014-06-18 Don Breazeal <donb@codesourcery.com>
4509 * breakpoint.c (set_longjmp_breakpoint): Call
4510 momentary_breakpoint_from_master with additional argument.
4511 (set_longjmp_breakpoint_for_call_dummy): Call
4512 momentary_breakpoint_from_master with additional argument.
4513 (set_std_terminate_breakpoint): Call
4514 momentary_breakpoint_from_master with additional argument.
4515 (momentary_breakpoint_from_master): Add argument to function
4516 definition and use it to initialize structure member flag.
4517 (clone_momentary_breakpoint): Call
4518 momentary_breakpoint_from_master with additional argument.
4519 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4520 member flags set in momentary_breakpoint_from_master.
4522 2014-06-18 Gary Benson <gbenson@redhat.com>
4524 * i386-nat.c (i386_show_dr): Renamed to
4525 i386_dr_show and made nonstatic. All uses updated.
4526 (i386_length_and_rw_bits): Renamed to
4527 i386_dr_length_and_rw_bits and made nonstatic.
4529 (i386_insert_aligned_watchpoint): Renamed to
4530 i386_dr_insert_aligned_watchpoint and made nonstatic.
4532 (i386_remove_aligned_watchpoint): Renamed to
4533 i386_dr_remove_aligned_watchpoint and made nonstatic.
4535 (i386_update_inferior_debug_regs): Renamed to
4536 i386_dr_update_inferior_debug_regs and made nonstatic.
4539 2014-06-18 Gary Benson <gbenson@redhat.com>
4541 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4542 (i386_dr_low_can_set_control): Likewise.
4543 (i386_dr_low_set_addr): Likewise.
4544 (i386_dr_low_set_control): Likewise.
4545 (i386_dr_low_get_addr): Likewise.
4546 (i386_dr_low_get_status): Likewise.
4547 (i386_dr_low_get_control): Likewise.
4548 (i386_insert_aligned_watchpoint): Use new macros.
4549 (i386_update_inferior_debug_regs): Likewise.
4550 (i386_stopped_data_address): Likewise.
4552 2014-06-18 Gary Benson <gbenson@redhat.com>
4554 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4555 New parameter. All uses updated.
4557 2014-06-18 Gary Benson <gbenson@redhat.com>
4559 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4562 2014-06-18 Gary Benson <gbenson@redhat.com>
4564 * i386-nat.c (debug_printf): New macro.
4565 (i386_get_debug_register_length): Likewise.
4566 (TARGET_HAS_DR_LEN_8): Use above macro.
4567 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4568 and printf_unfiltered. Use phex to format values.
4570 2014-06-18 Gary Benson <gbenson@redhat.com>
4572 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4575 2014-06-18 Gary Benson <gbenson@redhat.com>
4577 * i386-nat.c: Comment changes.
4579 2014-06-18 Gary Benson <gbenson@redhat.com>
4581 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4583 2014-06-18 Gary Benson <gbenson@redhat.com>
4585 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4586 (i386_insert_aligned_watchpoint): Likewise.
4587 (i386_remove_aligned_watchpoint): Likewise.
4588 (i386_handle_nonaligned_watchpoint): Likewise.
4590 2014-06-18 Gary Benson <gbenson@redhat.com>
4592 * i386-nat.c: Whitespace changes.
4594 2014-06-17 Samuel Bronson <naesten@gmail.com>
4596 * MAINTAINERS: Update Roland McGrath's email address.
4597 Thanks to Sergio Durigan Junior for pointing out that he left
4598 Red Hat a while ago, and giving me a current address.
4600 2014-06-17 Tom Tromey <tromey@redhat.com>
4602 * utils.h (savestring): Remove declaration.
4604 2014-06-17 Tom Tromey <tromey@redhat.com>
4606 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4608 2014-06-16 Keith Seitz <keiths@redhat.com>
4611 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4612 to update the varobj if inferior_ptid is null_ptid.
4614 2014-06-16 Tom Tromey <tromey@redhat.com>
4616 * target.h (struct target_ops) <to_info_proc>: Make parameter
4618 (target_info_proc): Update.
4619 * target.c (target_info_proc): Make "args" const.
4620 * procfs.c (procfs_info_proc): Update.
4621 * linux-tdep.c (linux_info_proc): Update.
4622 (linux_core_info_proc_mappings): Make "args" const.
4623 (linux_core_info_proc): Update.
4624 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4625 * gdbarch.c: Rebuild.
4626 * gdbarch.h: Rebuild.
4627 * corelow.c (core_info_proc): Update.
4629 2014-06-16 Tom Tromey <tromey@redhat.com>
4631 * target.h (struct target_ops) <to_disconnect>: Make parameter
4633 (target_disconnect): Update.
4634 * target.c (target_disconnect): Make "args" const.
4635 * target-delegates.c: Rebuild.
4636 * remote.c (remote_disconnect): Update.
4637 * record.h (record_disconnect): Update.
4638 * record.c (record_disconnect): Update.
4639 * inf-child.c (inf_child_disconnect): Update.
4641 2014-06-16 Tom Tromey <tromey@redhat.com>
4643 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4644 * target.c (debug_to_rcmd, default_rcmd): Update.
4645 * target-delegates.c: Rebuild.
4646 * remote.c (remote_rcmd): Update.
4647 * monitor.c (monitor_rcmd): Update.
4649 2014-06-16 Pedro Alves <palves@redhat.com>
4651 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4652 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4653 have OBJF_SHARED set.
4654 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4655 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4656 instead of OBJF_USERLOADED.
4657 * objfiles.h (OBJF_SHARED): Update comment.
4658 (userloaded_objfile_contains_address_p): Rename to ...
4659 (shared_objfile_contains_address_p): ... this, and update
4661 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4663 (remove_symbol_file_command): Skip objfiles that don't have
4666 2014-06-16 Tom Tromey <tromey@redhat.com>
4668 * minsyms.h (prim_record_minimal_symbol)
4669 (prim_record_minimal_symbol_and_info): Update comments.
4671 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4673 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4674 or --without-guile, according to how GDB was built.
4676 2014-06-13 Tom Tromey <tromey@redhat.com>
4678 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4680 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4682 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4684 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4685 help_list.Pass all_commands, not -1, to help_list.
4686 * cli/cli-dump.c (dump_command, append_command)
4687 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4688 (binary_dump_command, binary_append_command): Pass all_commands,
4689 not -1, to help_list.
4690 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4692 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4694 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4696 * top.c (set_history): Pass all_commands, not -1, to help_list.
4697 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4698 all_commands, not -1, to help_list.
4699 * symfile.c (overlay_command): Pass all_commands, not -1, to
4701 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4703 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4705 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4707 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4708 not -1, to help_list.
4709 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4710 not -1, to help_list.
4711 * maint.c (maintenance_command, maintenance_info_command)
4712 (maintenance_print_command, maintenance_set_cmd): Pass
4713 all_commands, not -1, to help_list.
4714 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4716 * language.c (set_check): Pass all_commands, not -1, to help_list.
4717 * infcmd.c (unset_command): Pass all_commands, not -1, to
4719 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4721 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4723 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4725 * breakpoint.c (save_command): Pass all_commands, not -1, to
4727 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4728 all_commands, not -1, to help_list.
4730 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4732 * regcache.c (struct register_to_invalidate): New structure.
4733 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4735 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4737 2014-06-12 Yao Qi <yao@codesourcery.com>
4739 * varobj.c (varobj_get_num_children): Call
4740 varobj_is_dynamic_p.
4741 (varobj_list_children): Likewise.
4742 (varobj_update): Likewise. Update comments.
4744 2014-06-12 Yao Qi <yao@codesourcery.com>
4746 * varobj.c (varobj_pretty_printed_p): Rename to ...
4747 (varobj_is_dynamic_p): ... this. New function.
4748 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4749 (varobj_is_dynamic_p): Declare.
4750 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4751 (mi_print_value_p, varobj_update_one): Likewise.
4753 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4754 Yao Qi <yao@codesourcery.com>
4756 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4757 (varobj_get_iterator): Wrap up code for pretty-printer by
4758 "#if HAVE_PYTHON" and "#endif".
4759 (update_dynamic_varobj_children): Likewise.
4761 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4762 Yao Qi <yao@codesourcery.com>
4764 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4765 gdb_python_initialized is false. Move some code from varobj.c.
4766 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4767 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4768 (struct varobj_item): Moved to varobj-iter.h".
4769 (varobj_clear_saved_item): New function.
4770 (update_dynamic_varobj_children): Move python-related code to
4772 (free_variable): Call varobj_clear_saved_item and
4775 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4776 Yao Qi <yao@codesourcery.com>
4778 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4779 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4780 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4781 (py-varobj.o): New rule.
4782 * python/py-varobj.c: New file.
4783 * python/python-internal.h (py_varobj_get_iterator): Declare.
4784 * varobj-iter.h: New file.
4785 * varobj.c: Include "varobj-iter.h"
4786 (struct varobj) <child_iter>: Change its type from "PyObject *"
4787 to "struct varobj_iter *".
4788 <saved_item>: Likewise.
4789 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4790 [HAVE_PYTHON] (varobj_get_iterator): New function.
4791 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4792 python-specific code to python/py-varobj.c.
4793 (install_visualizer): Call varobj_iter_delete instead of
4795 * varobj.h (varobj_ensure_python_env): Declare.
4797 2014-06-12 Yao Qi <yao@codesourcery.com>
4799 * varobj.c (struct varobj_item): New structure.
4800 (create_child_with_value): Update declaration.
4801 (varobj_add_child): Replace arguments 'name' and 'value' with
4802 'item'. All callers updated.
4803 (install_dynamic_child): Likewise.
4804 (update_dynamic_varobj_children): Likewise.
4805 (varobj_add_child): Likewise.
4806 (create_child_with_value): Likewise.
4808 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4810 * NEWS: Create a new section for the next release branch.
4811 Rename the section of the current branch, now that it has
4814 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4816 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4817 * version.in: Bump version to 7.8.50.DATE-cvs.
4819 2014-06-11 Pedro Alves <palves@redhat.com>
4822 * ser-mingw.c (net_windows_socket_check_pending): New function.
4823 (net_windows_select_thread): Ignore spurious wakeups. Use
4824 net_windows_socket_check_pending.
4825 (net_windows_wait_handle): Check for pending events with
4826 ioctlsocket, through net_windows_socket_check_pending, instead of
4827 checking the socket's event.
4829 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4831 * python/python-internal.h (gdb_PyObject_GetAttrString)
4832 (gdb_PyObject_HasAttrString): New inline function definitions.
4833 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4834 char * of the second argument to PyObject_GetAttrString.
4836 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4838 * serial.c (serial_write): Fix index of character to be printed
4839 in call to serial_logchar when serial debug traces are enabled.
4841 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4843 * gdbtypes (resolve_dynamic_range): Add function description.
4845 2014-06-09 Pedro Alves <palves@redhat.com>
4847 * linux-nat.c (linux_child_follow_fork): Initialize status with
4848 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4849 inner block. Only pass the signal to PTRACE_DETACH if in pass
4852 2014-06-09 Gary Benson <gbenson@redhat.com>
4854 * common/signals.c (gdb_signal_from_host): Reorder to separate
4855 the always-available ANSI-standard signals from the signals that
4857 (do_gdb_signal_to_host): Likewise.
4858 * proc-events.c (signal_table): Likewise.
4860 2014-06-08 Hui Zhu <hui@codesourcery.com>
4862 * common/linux-ptrace.c (linux_disable_event_reporting): New
4864 * common/linux-ptrace.h (linux_disable_event_reporting): New
4866 * linux-nat.c (linux_child_follow_fork): Do a single step before
4869 2014-06-07 Keith Seitz <keiths@redhat.com>
4873 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4874 from symbol_matches_domain in symtab.c. All local callers
4875 of symbol_matches_domain updated.
4876 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4877 search STRUCT_DOMAIN.
4878 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4879 independently. standard_lookup will do that automatically.
4880 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4881 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4882 (cp_lookup_symbol_in_namespace): Likewise.
4883 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4884 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4885 may return a STRUCT_DOMAIN match.
4886 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4887 * cp-support.c: Include language.h.
4888 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4890 * psymtab.c (match_partial_symbol): Compare the requested
4891 domain with the symbol's domain directly.
4892 (lookup_partial_symbol): Likewise.
4893 * symtab.c (lookup_symbol_in_language): Explain when/why
4894 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4895 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4896 appropriate languages.
4897 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4898 and moved to ada-lang.c
4899 (lookup_block_symbol): Explain that this function only returns
4900 symbol matching the requested DOMAIN.
4901 Compare the requested domain with the symbol's domain directly.
4902 (iterate_over_symbols): Compare the requested domain with the
4903 symbol's domain directly.
4904 * symtab.h (symbol_matches_domain): Remove.
4906 2014-06-06 Doug Evans <xdje42@gmail.com>
4908 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4909 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4910 (gdbscm_guile_version_is_at_least): Declare.
4911 (gdbscm_scm_string_to_int): Declare.
4912 * guile/guile.c (gdbscm_guile_major_version): New global.
4913 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4914 (guile_datadir): New static global.
4915 (gdbscm_guile_data_directory): New function.
4916 (initialize_scheme_side): Update.
4917 (misc_guile_functions): Add guile-data-directory.
4918 (initialize_gdb_module): Fetch guile version number.
4919 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4920 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4921 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4922 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4924 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4925 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4926 * guile/scm-value.c (gdbscm_value_to_string): Only call
4927 scm_port_conversion_strategy if Guile version >= 2.0.6.
4929 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4931 * main.c (print_gdb_help): Add -q and --silent.
4933 2014-06-06 Gary Benson <gbenson@redhat.com>
4935 * common/signals.c: Remove preprocessor conditionals for
4936 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4937 SIGSEGV and SIGTERM.
4938 * proc-events.c: Likewise.
4940 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4942 * symfile.c (symfile_free_objfile): Remove restriction to
4944 * symfile-mem.c (symbol_file_add_from_memory): Call
4945 add_target_sections_of_objfile.
4947 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4949 * guile/scm-value.c (gdbscm_history_append_x): Use
4950 'vlscm_get_value_smob_arg_unsafe' instead of
4951 'vlscm_scm_to_value'.
4953 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4956 * utils.c (printchar): Don't escape at all if quoter is NUL.
4957 Update function documentation to clarify effect of parameter
4959 * remote.c (escape_buffer): Pass '\\' as the quoter to
4960 fputstrn_unfiltered.
4961 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4962 generate the output.
4963 (mi_solib_unloaded): Same.
4965 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4967 * development.sh: Delete.
4968 * Makefile.in (config.status): Adjust dependency on development.sh.
4969 * configure.ac: Adjust development.sh source call.
4970 * configure: Regenerate.
4972 2014-06-04 Doug Evans <xdje42@gmail.com>
4974 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4975 is_scheme_bkpt, spec.
4976 (bpscm_make_breakpoint_smob): Initialize new members.
4977 (gdbscm_create_breakpoint_x): Split into two ...
4978 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4979 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4980 (scheme_function breakpoint_functions): Update.
4981 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4982 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4983 register-breakpoint!.
4985 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4988 * mem-break.c (z_type_supported): Return zero if
4989 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4991 2014-06-04 Tom Tromey <tromey@redhat.com>
4993 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4994 value_from_contents_and_address_unresolved.
4995 (ada_template_to_fixed_record_type_1): Likewise.
4996 (ada_which_variant_applies): Likewise.
4997 * value.h (value_from_contents_and_address_unresolved): Declare.
4998 * value.c (value_from_contents_and_address_unresolved): New
5000 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5001 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5002 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5004 2014-06-04 Tom Tromey <tromey@redhat.com>
5006 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5008 2014-06-04 Tom Tromey <tromey@redhat.com>
5010 * procfs.c (procfs_attach): Make "args" const.
5011 * windows-nat.c (windows_attach): Make "args" const.
5012 * nto-procfs.c (procfs_attach): Make "args" const.
5013 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5014 * go32-nat.c (go32_attach): Make "args" const.
5015 * gnu-nat.c (gnu_attach): Make "args" const.
5016 * darwin-nat.c (darwin_attach): Make "args" const.
5017 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5018 * linux-nat.c (linux_nat_attach): Make "args" const.
5019 * remote.c (extended_remote_attach_1, extended_remote_attach):
5021 * target.h (struct target_ops) <to_attach>: Make "args" const.
5022 (find_default_attach): Likewise.
5023 * utils.c (parse_pid_to_attach): Make "args" const.
5024 * utils.h (parse_pid_to_attach): Update.
5026 2014-06-04 Tom Tromey <tromey@redhat.com>
5028 * target-delegates.c: Rebuild.
5029 * target.c (default_thread_address_space): New function.
5030 (target_thread_address_space): Simplify.
5031 * target.h (struct target_ops) <to_thread_address_space>: Add
5032 TARGET_DEFAULT_FUNC.
5034 2014-06-04 Doug Evans <xdje42@gmail.com>
5036 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5038 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5040 * record-btrace.c: Include event-loop.h and inf-loop.h.
5041 (record_btrace_resume_exec_dir)
5042 (record_btrace_async_inferior_event_handler)
5043 (record_btrace_handle_async_inferior_event): New.
5044 (record_btrace_open): Create async event handler.
5045 (record_btrace_close): Delete async event handler.
5046 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5047 Mark async event handler.
5048 (record_btrace_execution_direction): New.
5049 (init_record_btrace_ops): Initialize to_execution_direction.
5051 2014-06-03 Doug Evans <xdje42@gmail.com>
5053 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5054 (gdbscm_make_parameter): Ditto.
5056 2014-06-03 Doug Evans <dje@google.com>
5058 * exec.c (exec_close_1): Call clear_section_table instead of
5059 resize_section_table.
5060 (clear_section_table): New function.
5061 (resize_section_table): Make static. Rename arg num_added to
5063 * exec.h (clear_section_table): Declare.
5064 (resize_section_table): Delete.
5065 * progspace.c (release_program_space): Call clear_section_table
5066 instead of resize_section_table.
5068 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5070 * NEWS (Python Scripting): Add entry about the new xmethods
5073 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5075 * python/py-xmethods.c: New file.
5076 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5077 (objfpy_dealloc): XDECREF on the new xmethods field.
5078 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5080 (objfpy_get_xmethods): New function.
5081 (objfile_getset): New entry 'xmethods'.
5082 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5083 (pspy_dealloc): XDECREF on the new xmethods field.
5084 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5086 (pspy_get_xmethods): New function.
5087 (pspace_getset): New entry 'xmethods'.
5088 * python/python-internal.h: Add declarations for new functions.
5089 * python/python.c (_initialize_python): Invoke
5090 gdbpy_initialize_xmethods.
5091 * python/lib/gdb/__init__.py (xmethods): New
5093 * python/lib/gdb/xmethod.py: New file.
5094 * python/lib/gdb/command/xmethods.py: New file.
5096 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5098 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5099 best match method returned by find_overload_match is an xmethod.
5100 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5101 the best matching operator returned by find_overload_match is an
5103 * valops.c: #include "extension.h".
5104 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5105 Return void. The list of matching source methods is returned in
5106 "fn_list" and a vector of matching debug method workers is
5107 returned in "xm_worker_vec". Update all callers.
5108 (value_find_oload_method_list): Likewise.
5109 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5110 non-NULL, then the index of the best matching method in this
5111 vector is returned. Update all callers.
5112 (find_overload_match): Include xmethods while performing overload
5115 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5117 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5118 * extension-priv.h (struct extension_language_ops): Add the
5120 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5121 get_matching_xmethod_workers, get_xmethod_argtypes,
5122 invoke_xmethod, free_xmethod_worker,
5123 free_xmethod_worker_vec): New functions.
5124 * extension.h: #include "common/vec.h".
5125 New function declarations.
5126 (struct xmethod_worker): New struct.
5127 (VEC (xmethod_worker_ptr)): New vector type.
5128 (xmethod_worker_ptr): New typedef.
5129 (xmethod_worker_vec): Likewise.
5130 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5132 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5133 (struct builtin_type): New field "xmethod".
5134 * valarith.c (value_ptradd): Assert that the value argument is not
5136 * valops.c (value_must_coerce_to_target): Return 0 for
5137 lval_xcallable values.
5138 * value.c (struct value): New field XM_WORKER in the field
5140 (value_address, value_raw_address): Return 0 for lval_xcallable
5142 (set_value_address): Assert that the value is not an
5144 (value_free): Free the associated xmethod worker when freeing
5145 lval_xcallable values.
5146 (set_value_component_location): Assert that the WHOLE value is not
5148 (value_of_xmethod, call_xmethod): New functions.
5149 * value.h: Declare "struct xmethod_worker".
5150 Declare new functions value_of_xmethod, call_xmethod.
5152 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5153 Pedro Alves <palves@redhat.com>
5155 PR breakpoints/17000
5156 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5157 New function, extracted from software_breakpoint_inserted_here_p.
5158 (software_breakpoint_inserted_here_p): Replace factored out code
5159 by call to find_non_raw_software_breakpoint_inserted_here.
5160 (bp_target_info_copy_insertion_state): New function.
5161 (bkpt_insert_location): Handle the case of a single-step
5162 breakpoint already inserted at the same address.
5163 (bkpt_remove_location): Handle the case of a single-step
5164 breakpoint still inserted at the same address.
5165 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5166 breakpoint already inserted at the same address.
5167 (deprecated_remove_raw_breakpoint): Handle the case of a
5168 non-raw breakpoint still inserted at the same address.
5169 (find_single_step_breakpoint): New function, extracted from
5170 single_step_breakpoint_inserted_here_p.
5171 (find_single_step_breakpoint): New function,
5172 factored out from single_step_breakpoint_inserted_here_p.
5173 (single_step_breakpoint_inserted_here_p): Reimplement.
5175 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5177 Pushed by Joel Brobecker <brobecker@adacore.com>
5178 * source.c (show_substitute_path_command): Fix display of matching
5181 2014-06-03 Gary Benson <gbenson@redhat.com>
5183 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5185 2014-06-02 Doug Evans <xdje42@gmail.com>
5187 Add parameter support for Guile.
5188 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5189 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5190 (scm-param.o): New rule.
5191 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5192 (gdbscm_misc_error): Declare.
5193 (gdbscm_canonicalize_command_name): Declare.
5194 (gdbscm_scm_to_host_string): Declare.
5195 (gdbscm_scm_from_host_string): Declare.
5196 (gdbscm_initialize_parameters): Declare.
5197 * guile/guile.c (initialize_gdb_module): Call
5198 gdbscm_initialize_parameters.
5199 * guile/lib/gdb.scm: Export parameter symbols.
5200 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5201 cmdscm_canonicalize_name and made public. All callers updated.
5202 * guile/scm-exception.c (gdbscm_misc_error): New function.
5203 * guile/scm-param.c: New file.
5204 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5205 (gdbscm_scm_to_host_string): New function.
5206 (gdbscm_scm_from_host_string): New function.
5207 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5209 2014-06-02 Doug Evans <xdje42@gmail.com>
5211 Add command support for Guile.
5212 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5213 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5214 (scm-cmd.o): New rule.
5215 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5216 (gdbscm_user_error_p): Declare.
5217 (gdbscm_parse_command_name): Declare.
5218 (gdbscm_valid_command_class_p): Declare.
5219 (gdbscm_initialize_commands): Declare.
5220 * guile/guile.c (initialize_gdb_module): Call
5221 gdbscm_initialize_commands.
5222 * guile/lib/gdb.scm: Export command symbols.
5223 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5224 (throw-user-error): New function.
5225 * guile/scm-cmd.c: New file.
5226 * guile/scm-exception.c (user_error_symbol): New static global.
5227 (gdbscm_user_error_p): New function.
5228 (gdbscm_initialize_exceptions): Set user_error_symbol.
5229 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5231 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5233 * top.c (command_loop): Handle comments here...
5234 (command_line_input): ... not here.
5236 2014-06-02 Doug Evans <xdje42@gmail.com>
5238 Add progspace support for Guile.
5239 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5240 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5241 (scm-progspace.o): New rule.
5242 * guile/guile-internal.h (pspace_smob): New typedef.
5243 (psscm_pspace_smob_pretty_printers): Declare.
5244 (psscm_pspace_smob_from_pspace): Declare.
5245 (psscm_scm_from_pspace): Declare.
5246 * guile/guile.c (initialize_gdb_module): Call
5247 gdbscm_initialize_pspaces.
5248 * guile/lib/gdb.scm: Export progspace symbols.
5249 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5251 (append-pretty-printer!): Ditto.
5252 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5254 * guile/scm-progspace.c: New file.
5256 2014-06-03 Alan Modra <amodra@gmail.com>
5258 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5259 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5261 2014-06-02 Doug Evans <dje@google.com>
5263 Add support for skeletonless type units.
5264 * dwarf2read.c (struct dwarf2_per_objfile): New member
5265 n_allocated_type_units.
5266 (struct dwarf2_per_objfile) <tu_stats>: New member
5267 nr_all_type_units_reallocs.
5268 (create_signatured_type_table_from_index): Initialize
5269 n_allocated_type_units
5270 (create_all_type_units): Ditto.
5271 (add_type_unit): Move up in file. New arg slot.
5272 All callers updated. Increase space for all_type_units more
5274 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5275 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5276 (lookup_dwp_signatured_type): Ditto.
5277 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5278 All callers updated.
5279 (build_type_psymtabs_1): Leave type_unit_groups as
5280 NULL if no TUs present.
5281 (print_tu_stats): New function.
5282 (process_skeletonless_type_unit): New function.
5283 (process_dwo_file_for_skeletonless_type_units): New
5285 (process_skeletonless_type_units): New function.
5286 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5287 Call print tu_stats if debugging enabled.
5289 2014-06-02 Pedro Alves <palves@redhat.com>
5291 * breakpoint.c (build_target_command_list): Don't build a command
5292 list if we have any duplicate location that isn't a dprintf.
5294 2014-06-02 Pedro Alves <palves@redhat.com>
5296 * breakpoint.c (dprintf_breakpoint_hit): New function.
5297 (initialize_breakpoint_ops): Install it as dprintf's
5298 breakpoint_hit method.
5300 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5302 * source.c (substitute_path_rule_matches): Simplify using
5303 filename_ncmp instead of FILENAME_CMP.
5305 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5307 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5309 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5311 * configure.ac: When Guile is available, check for the
5312 availability of 'scm_new_smob'.
5313 * configure, config.h.in: Regenerate.
5314 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5317 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5319 * frame.c (struct frame_info): Add stop_string field.
5320 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5321 (get_prev_frame_always): Old content moved into
5322 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5323 TRY_CATCH, handle MEMORY_ERROR exceptions.
5324 (frame_stop_reason_string): New function definition.
5325 * frame.h (unwind_stop_reason_to_string): Extend comment to
5326 mention frame_stop_reason_string.
5327 (frame_stop_reason_string): New function declaration.
5328 * stack.c (frame_info): Switch to frame_stop_reason_string.
5329 (backtrace_command_1): Switch to frame_stop_reason_string.
5330 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5331 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5332 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5334 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5336 * frame.c (frame_stop_reason_string): Rename to ...
5337 (unwind_stop_reason_to_string): this.
5338 * frame.h (frame_stop_reason_string): Rename to ...
5339 (unwind_stop_reason_to_string): this.
5340 * stack.c (frame_info): Update call to frame_stop_reason_string.
5341 (backtrace_command_1): Likewise.
5342 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5343 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5345 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5347 * frame.c (remove_prev_frame): New function.
5348 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5351 2014-05-29 Pedro Alves <palves@redhat.com>
5353 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5354 and make it const. When a single-step decays to a continue,
5355 clear 'step', not 'hw_step'. Pass whether the caller wanted
5356 to step to user_visible_resume_ptid, not what we ask the
5359 2014-05-29 Pedro Alves <palves@redhat.com>
5361 * infrun.c (process_event_stop_test, handle_step_into_function)
5362 (handle_step_into_function_backward): Adjust.
5363 Don't set the even thread's stop_step and call stop_waiting before
5364 calling end_stepping_range. Instead do that ...
5365 (end_stepping_range): ... here. Take an ecs pointer parameter.
5367 2014-05-29 Pedro Alves <palves@redhat.com>
5369 * infrun.c (stop_stepping): Rename to ...
5370 (stop_waiting): ... this.
5371 (proceed): Update comment.
5372 (process_event_stop_test, handle_inferior_event)
5373 (handle_signal_stop, handle_step_into_function)
5374 (handle_step_into_function_backward): Update.
5376 2014-05-29 Pedro Alves <palves@redhat.com>
5378 * infcall.c (run_inferior_call): Don't check whether the current
5379 thread is running after the proceed call.
5381 2014-05-29 Pedro Alves <palves@redhat.com>
5382 Tom Tromey <tromey@redhat.com>
5384 * NEWS: Mention "maint set target-async", "set mi-async", and that
5385 background execution commands are now always available.
5386 * target.h (target_async_permitted): Update comment.
5387 * target.c (target_async_permitted, target_async_permitted_1):
5389 (set_target_async_command): Rename to ...
5390 (maint_set_target_async_command): ... this.
5391 (show_target_async_command): Rename to ...
5392 (maint_show_target_async_command): ... this.
5393 (_initialize_target): Adjust.
5394 * infcmd.c (prepare_execution_command): Make extern.
5395 * inferior.h (prepare_execution_command): Declare.
5396 * infrun.c (set_observer_mode): Leave target async alone.
5397 * mi/mi-interp.c (mi_interpreter_init): Install
5398 mi_on_sync_execution_done as sync_execution_done observer.
5399 (mi_on_sync_execution_done): New function.
5400 (mi_execute_command_input_handler): Don't print the prompt if we
5401 just started a synchronous command with an async target.
5402 (mi_on_resume): Check sync_execution before printing prompt.
5403 * mi/mi-main.h (mi_async_p): Declare.
5404 * mi/mi-main.c: Include gdbcmd.h.
5405 (mi_async_p): New function.
5406 (mi_async, mi_async_1): New globals.
5407 (set_mi_async_command, show_mi_async_command, mi_async): New
5409 (exec_continue): Call prepare_execution_command.
5410 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5411 (mi_execute_async_cli_command): Use mi_async_p.
5412 (_initialize_mi_main): Install "set mi-async". Make
5413 "target-async" a deprecated alias.
5415 2014-05-29 Pedro Alves <palves@redhat.com>
5417 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5418 (_initialize_cli_interp): Adjust.
5419 * event-loop.c: Include "observer.h".
5420 (start_event_loop): Notify 'command_error' observers instead of
5421 calling display_gdb_prompt. Remove FIXME comment.
5422 * event-top.c (display_gdb_prompt): Remove call into the
5424 * inf-loop.c: Include "observer.h".
5425 (inferior_event_handler): Notify 'command_error' observers instead
5426 of calling display_gdb_prompt.
5427 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5428 observers instead of calling display_gdb_prompt.
5429 * interps.c (interp_set): Don't call display_gdb_prompt.
5430 (current_interp_display_prompt_p): Delete.
5431 * interps.h (interp_prompt_p): Delete declaration.
5432 (interp_prompt_p_ftype): Delete.
5433 (struct interp_procs) <prompt_proc_p>: Delete field.
5434 (current_interp_display_prompt_p): Delete declaration.
5435 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5436 (_initialize_mi_interp): Adjust.
5437 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5438 'command_error' observers.
5439 (tui_on_sync_execution_done, tui_on_command_error): New
5441 (tui_display_prompt_p): Delete.
5442 (_initialize_tui_interp): Adjust.
5444 2014-05-29 Pedro Alves <palves@redhat.com>
5447 * cli/cli-interp.c: Include infrun.h and observer.h.
5448 (cli_uiout, cli_interp): New globals.
5449 (cli_on_signal_received, cli_on_end_stepping_range)
5450 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5452 (cli_interpreter_init): Install them as 'end_stepping_range',
5453 'signal_received' 'signal_exited', 'exited' and 'no_history'
5455 (_initialize_cli_interp): Remove cli_interp local.
5456 * infrun.c (handle_inferior_event): Call the several stop reason
5457 observers instead of printing the stop reason directly.
5458 (end_stepping_range): New function.
5459 (print_end_stepping_range_reason, print_signal_exited_reason)
5460 (print_exited_reason, print_signal_received_reason)
5461 (print_no_history_reason): Make static, and add an uiout
5462 parameter. Print to that instead of to CURRENT_UIOUT.
5463 * infrun.h (print_end_stepping_range_reason)
5464 (print_signal_exited_reason, print_exited_reason)
5465 (print_signal_received_reason print_no_history_reason): New
5467 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5469 <cli_uiout>: New field.
5470 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5471 uiout for CLI output. Install 'signal_received',
5472 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5474 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5475 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5476 (mi_on_no_history): New functions.
5477 (ui_out_free_cleanup): Delete function.
5478 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5479 instead use the one already stored in the MI interpreter data.
5480 (mi_ui_out): Adjust.
5481 * tui/tui-interp.c: Include infrun.h and observer.h.
5482 (tui_interp): New global.
5483 (tui_on_signal_received, tui_on_end_stepping_range)
5484 (tui_on_signal_exited, tui_on_exited)
5485 (tui_on_no_history): New functions.
5486 (tui_init): Install them as 'end_stepping_range',
5487 'signal_received' 'signal_exited', 'exited' and 'no_history'
5489 (_initialize_tui_interp): Delete tui_interp local.
5491 2014-05-29 Pedro Alves <palves@redhat.com>
5494 * linux-nat.c (linux_nat_resume_callback): Rename the second
5495 parameter to 'except'. Skip LP if it points to EXCEPT.
5496 (linux_nat_resume): Don't mark the event lwp as not stopped
5497 before resuming sibling lwps. Instead ask
5498 linux_nat_resume_callback to skip the event lwp. Mark it as not
5499 stopped after actually resuming it.
5500 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5502 (wait_lwp): Mark the lwp as stopped here.
5503 (stop_wait_callback): Mark the lwp as not stopped right after
5504 resuming it. Don't mark lwps as stopped here.
5505 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5506 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5508 2014-05-29 Pedro Alves <palves@redhat.com>
5511 * infrun.c (resume): Determine how much to resume depending on
5512 whether the caller wanted a step, not whether we can hardware step
5513 the target. Mark all threads that we intend to run as running,
5514 unless we're calling an inferior function.
5515 (normal_stop): If the thread is running an infcall, don't finish
5517 * target.c (target_resume): Don't mark threads as running here.
5519 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5521 * serial.c (_initialize_serial): Remove support for
5522 the "set remotebaud" and "show remotebaud" commands.
5523 * NEWS: Add entry documenting the removal of that command.
5525 2014-05-28 Yao Qi <yao@codesourcery.com>
5527 * charset.c: Fix typo in comments.
5529 2014-05-27 Gary Benson <gbenson@redhat.com>
5531 * utils.c (internal_vproblem): Prompt for a bug report.
5533 2014-05-26 Andy Wingo <wingo@igalia.com>
5535 * guile/scm-arch.c (arscm_mark_arch_smob):
5536 * guile/scm-block.c (bkscm_mark_block_smob)
5537 (bkscm_mark_block_syms_progress_smob):
5538 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5539 * guile/scm-exception.c (exscm_mark_exception_smob):
5540 * guile/scm-frame.c (frscm_mark_frame_smob):
5541 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5542 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5543 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5544 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5545 (ppscm_mark_pretty_printer_worker_smob):
5546 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5547 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5548 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5549 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5551 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5554 2014-05-26 Andy Wingo <wingo@igalia.com>
5555 Doug Evans <xdje42@gmail.com>
5557 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5558 empty_base_class. All uses updated.
5559 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5560 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5562 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5563 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5564 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5565 (gdbscm_gsmob_has_property_p, add_property_name)
5566 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5567 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5568 (gdb-object-has-property?, gdb-object-properties): Remove.
5569 (gdb-object-kind): Renamed from gsmob-kind.
5571 2014-05-26 Andy Wingo <wingo@igalia.com>
5573 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5574 * configure: Regenerate.
5576 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5578 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5580 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5582 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5583 (replay_memory_access_read_only, replay_memory_access_read_write)
5584 (replay_memory_access_types, replay_memory_access)
5585 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5586 (cmd_set_record_btrace, cmd_show_record_btrace)
5587 (cmd_show_replay_memory_access): New.
5588 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5589 (record_btrace_remove_breakpoint): Replace
5590 record_btrace_allow_memory_access with replay_memory_access.
5591 (_initialize_record_btrace): Add commands.
5592 * NEWS: Announce it.
5594 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5596 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5598 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5600 * MAINTAINERS (Write After Approval): Move self back from
5603 2014-05-22 Pedro Alves <palves@redhat.com>
5605 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5606 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5607 (disable_randomization, enum exec_direction_kind)
5608 (execution_direction, stop_registers, start_remote)
5609 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5610 (wait_for_inferior, normal_stop, get_last_target_status)
5611 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5612 (insert_step_resume_breakpoint_at_sal)
5613 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5614 (set_step_info, print_stop_event, signal_stop_state)
5615 (signal_print_state, signal_pass_state, signal_stop_update)
5616 (signal_print_update, signal_pass_update)
5617 (update_signals_program_target, clear_exit_convenience_vars)
5618 (displaced_step_dump_bytes, update_observer_mode)
5619 (signal_catch_update, gdb_signal_from_command): Move
5621 * infrun.h: ... to this new file.
5622 * amd64-tdep.c: Include infrun.h.
5623 * annotate.c: Include infrun.h.
5624 * arch-utils.c: Include infrun.h.
5625 * arm-linux-tdep.c: Include infrun.h.
5626 * arm-tdep.c: Include infrun.h.
5627 * break-catch-sig.c: Include infrun.h.
5628 * breakpoint.c: Include infrun.h.
5629 * common/agent.c: Include infrun.h instead of inferior.h.
5630 * corelow.c: Include infrun.h.
5631 * event-top.c: Include infrun.h.
5632 * go32-nat.c: Include infrun.h.
5633 * i386-tdep.c: Include infrun.h.
5634 * inf-loop.c: Include infrun.h.
5635 * infcall.c: Include infrun.h.
5636 * infcmd.c: Include infrun.h.
5637 * infrun.c: Include infrun.h.
5638 * linux-fork.c: Include infrun.h.
5639 * linux-nat.c: Include infrun.h.
5640 * linux-thread-db.c: Include infrun.h.
5641 * monitor.c: Include infrun.h.
5642 * nto-tdep.c: Include infrun.h.
5643 * procfs.c: Include infrun.h.
5644 * record-btrace.c: Include infrun.h.
5645 * record-full.c: Include infrun.h.
5646 * remote-m32r-sdi.c: Include infrun.h.
5647 * remote-mips.c: Include infrun.h.
5648 * remote-notif.c: Include infrun.h.
5649 * remote-sim.c: Include infrun.h.
5650 * remote.c: Include infrun.h.
5651 * reverse.c: Include infrun.h.
5652 * rs6000-tdep.c: Include infrun.h.
5653 * s390-linux-tdep.c: Include infrun.h.
5654 * solib-irix.c: Include infrun.h.
5655 * solib-osf.c: Include infrun.h.
5656 * solib-svr4.c: Include infrun.h.
5657 * target.c: Include infrun.h.
5658 * top.c: Include infrun.h.
5659 * windows-nat.c: Include infrun.h.
5660 * mi/mi-interp.c: Include infrun.h.
5661 * mi/mi-main.c: Include infrun.h.
5662 * python/py-threadevent.c: Include infrun.h.
5664 2014-05-22 Pedro Alves <palves@redhat.com>
5666 * infrun.c (handle_inferior_event): Store the exit code for
5667 --return-child-result here, instead of ...
5668 (print_exited_reason): ... here.
5670 2014-05-21 Pedro Alves <palves@redhat.com>
5673 * gdbthread.h (struct thread_control_state): New field
5675 * infrun.c (follow_fork): Copy the new thread control field to the
5677 (clear_proceed_status_thread): Clear the new thread control field.
5678 (proceed): Set the new thread control field.
5679 * interps.h (command_interp): Declare.
5680 * interps.c (command_interpreter): New global.
5681 (command_interp): New function.
5682 (interp_exec): Set `command_interpreter' while here.
5683 * cli-out.c (cli_uiout_dtor): New function.
5684 (cli_ui_out_impl): Install it.
5685 * mi/mi-interp.c: Include cli-out.h.
5686 (mi_cmd_interpreter_exec): Add comment.
5687 (restore_current_uiout_cleanup): New function.
5688 (ui_out_free_cleanup): New function.
5689 (mi_on_normal_stop): If finishing an execution command started by
5690 a CLI command, or any kind of breakpoint-like event triggered,
5691 print the stop event to the output (CLI) stream.
5692 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5694 2014-05-21 Pedro Alves <palves@redhat.com>
5696 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5697 current source line having changed.
5698 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5699 * infrun.c (normal_stop): Adjust call to
5700 set_current_sal_from_frame.
5701 * source.c (clear_lines_listed_range): New function.
5702 (set_current_source_symtab_and_line, identify_source_line): Clear
5703 the lines listed range.
5704 (line_info): Handle the first "info line" after the current source
5705 line having changed.
5706 * stack.c (print_stack_frame): Remove center handling.
5707 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5710 2014-05-21 Pedro Alves <palves@redhat.com>
5712 * inf-child.c (inf_child_mourn_inferior): New function.
5713 * inf-child.h (inf_child_mourn_inferior): New declaration.
5714 * darwin-nat.c (darwin_mourn_inferior): Use
5715 inf_child_mourn_inferior.
5716 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5717 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5718 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5719 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5720 * windows-nat.c (windows_mourn_inferior): Likewise.
5722 2014-05-21 Doug Evans <xdje42@gmail.com>
5724 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5726 2014-05-21 Doug Evans <xdje42@gmail.com>
5728 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5729 (gdbscm_out_of_range_error): Ditto.
5730 (gdbscm_memory_error): Ditto.
5731 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5732 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5733 (gdbscm_out_of_range_error): Update.
5734 (gdbscm_memory_error): Update.
5735 (gdbscm_scm_to_target_string_unsafe): Delete.
5737 2014-05-21 Pedro Alves <palves@redhat.com>
5739 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5741 (inf_child_open_target): New function.
5742 (inf_child_open): Use inf_child_open_target to push the target
5743 instead of erroring out.
5744 (inf_child_disconnect, inf_child_close)
5745 (inf_child_maybe_unpush_target): New functions.
5746 (inf_child_target): Install inf_child_disconnect and
5747 inf_child_close. Store a pointer to the returned object.
5748 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5750 * target.c (auto_connect_native_target): New global.
5751 (show_default_run_target): New function.
5752 (find_default_run_target): Return NULL if automatically connecting
5753 to the native target is disabled.
5754 (_initialize_target): Install set/show auto-connect-native-target.
5755 * NEWS: Mention "set auto-connect-native-target", and "target
5757 * linux-nat.c (super_close): New global.
5758 (linux_nat_close): Call super_close.
5759 (linux_nat_add_target): Store a pointer to the base class's
5761 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5762 inf_child_maybe_unpush.
5763 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5765 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5766 the inferior. Use inf_child_maybe_unpush_target.
5767 (inf_ttrace_attach): Don't push the target if it is already
5769 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5770 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5771 after mourning the inferior. Use inf_child_maybe_unpush_target.
5772 (darwin_attach_pid): Don't push the target if it is already
5774 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5775 mourning the inferior. Use inf_child_maybe_unpush_target.
5776 (gnu_detach): Use inf_child_maybe_unpush_target.
5777 * go32-nat.c (go32_create_inferior): Don't push the target if it
5779 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5780 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5781 (procfs_open): Rename to ...
5782 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5783 comments. Can target_preopen before changing node. Call
5784 inf_child_open_target to push the target explicitly.
5785 (procfs_attach): Don't push the target if it is already pushed.
5786 (procfs_detach): Use inf_child_maybe_unpush_target.
5787 (procfs_create_inferior): Don't push the target if it is already
5789 (nto_native_ops): New global.
5790 (procfs_open): Reimplement.
5791 (procfs_native_open): New function.
5792 (init_procfs_targets): Install procfs_native_open as to_open of
5793 "target native". Store a pointer to the "native" target in
5795 * procfs.c (procfs_attach): Don't push the target if it is already
5797 (procfs_detach): Use inf_child_maybe_unpush_target.
5798 (procfs_mourn_inferior): Only unpush the target after mourning the
5799 inferior. Use inf_child_maybe_unpush_target.
5800 (procfs_init_inferior): Don't push the target if it is already
5802 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5803 if it is already pushed.
5805 2014-05-21 Pedro Alves <palves@redhat.com>
5807 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5808 and "procfs" targets are now called "native" instead.
5810 2014-05-21 Pedro Alves <palves@redhat.com>
5812 * go32-nat.c (go32_open): Delete.
5813 (go32_target): Don't override the to_open method.
5815 2014-05-21 Pedro Alves <palves@redhat.com>
5817 * nto-procfs.c (procfs_can_run): New function.
5818 (nto_procfs_ops): New global.
5819 (init_procfs_targets): New, based on procfs_target. Install
5820 "target native" in addition to "target procfs".
5821 (_initialize_procfs): Call init_procfs_targets instead of adding
5824 2014-05-21 Pedro Alves <palves@redhat.com>
5826 * windows-nat.c (windows_target): Don't override to_shortname,
5827 to_longname or to_doc.
5829 2014-05-21 Pedro Alves <palves@redhat.com>
5831 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5834 2014-05-21 Pedro Alves <palves@redhat.com>
5836 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5837 to_shortname, to_longname or to_doc.
5839 2014-05-21 Pedro Alves <palves@redhat.com>
5841 * go32-nat.c (go32_target): Don't override to_shortname,
5842 to_longname or to_doc.
5844 2014-05-21 Pedro Alves <palves@redhat.com>
5846 * inf-child.c (inf_child_open): Remove mention of "child".
5847 (inf_child_target): Rename target to "native" instead of "child".
5849 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5851 * Makefile.in (SFILES): Delete "regset.c".
5852 (COMMON_OBS): Delete "regset.o".
5854 * regset.h (regset_alloc): Delete prototype.
5856 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5858 * sparc-linux-tdep.c (sparc32_linux_gregset)
5859 (sparc32_linux_fpregset): New static regset structures.
5860 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5861 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5863 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5864 (sparc64_linux_fpregset): New static regset structures.
5865 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5866 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5867 New static regset structures.
5868 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5869 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5870 New static regset structures.
5871 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5872 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5873 New static regset structures.
5874 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5875 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5876 New static regset structures.
5877 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5879 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5881 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5882 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5883 register maps ("regmaps") from "*regset" to "*regmap". Do this
5884 for all regmap types and variables.
5885 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5886 (sparc32_linux_supply_core_gregset)
5887 (sparc32_linux_collect_core_gregset)
5888 (sparc32_linux_supply_core_fpregset)
5889 (sparc32_linux_collect_core_fpregset): Likewise.
5890 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5891 (sparc_gregmap, sparc_fpregmap): ... these.
5892 (sparc_supply_gregset, sparc_collect_gregset)
5893 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5894 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5895 (_initialize_sparc_nat): Rename regmaps.
5896 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5897 (sparc_gregmap, sparc_fpregmap): ... these.
5898 (sparc_supply_gregset, sparc_collect_gregset)
5899 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5900 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5902 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5903 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5905 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5907 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5908 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5909 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5911 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5912 (sparc32_bsd_fpregset): Rename to...
5913 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5914 (sparc32_bsd_fpregmap): ... these.
5915 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5916 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5917 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5918 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5919 (struct sparc_gregmap, struct sparc_fpregmap)
5920 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5921 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5922 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5923 (sparc32_supply_regset, sparc32_collect_gregset)
5924 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5926 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5927 (sparc64_linux_ptrace_gregmap): ... this.
5928 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5929 (_initialize_sparc64_linux_nat): Rename regmaps.
5930 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5931 (sparc64_linux_core_gregmap): ... this.
5932 (sparc64_linux_supply_core_gregset)
5933 (sparc64_linux_collect_core_gregset)
5934 (sparc64_linux_supply_core_fpregset)
5935 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5936 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5937 (sparc64_sol2_fpregset): Rename to...
5938 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5939 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5940 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5942 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5943 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5944 (sparc64_bsd_fpregset): Rename to...
5945 (struct sparc_gregmap, sparc64_sol2_gregmap)
5946 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5947 (sparc64_bsd_fpregmap): ... these.
5948 (sparc64_supply_gregset, sparc64_collect_gregset)
5949 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5951 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5952 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5953 (sparc64fbsd_gregmap): ... this.
5954 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5955 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5957 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5958 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5959 (sparc64nbsd_collect_fpregset): Likewise.
5960 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5961 (sparc64nbsd_gregmap): ... this.
5962 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5964 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5965 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5966 (sparc64obsd_gregmap): ... this.
5967 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5969 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5970 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5971 (sparc32nbsd_gregmap): ... this.
5972 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5975 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5977 * score-tdep.c (score7_linux_gregset): New static regset
5979 (score7_linux_regset_from_core_section): Remove dynamic regset
5981 (score_gdbarch_init): Drop allocation of tdep structure.
5982 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5984 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5986 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5988 (am33_regset_from_core_section): Remove dynamic regset
5991 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5993 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5994 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5996 (mips_linux_regset_from_core_section): Remove dynamic regset
5998 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5999 'gregset64', 'fpregset', and 'fpregset64'.
6000 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6001 deleted tdep fields.
6003 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6005 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6007 (amd64_regset_from_core_section): Remove dynamic regset
6009 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6011 (amd64obsd_regset_from_core_section): Remove dynamic regset
6013 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6015 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6016 x86-common regset supply function.
6017 * i386-tdep.c (i386_collect_gregset): Make static.
6018 (i386_gregset): New global regset structure.
6019 (i386_fpregset, i386_xstateregset): New static regset structures.
6020 (i386_regset_from_core_section): Remove dynamic regset
6022 (i386_gdbarch_init): Remove initialization of tdep fields
6023 'gregset', 'fpregset', and 'xstateregset'.
6024 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6025 'fpregset', and 'xstateregset'.
6026 (i386_collect_gregset): Remove prototype.
6027 (i386_gregset): New declaration.
6028 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6030 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6033 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6035 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6036 (arm_linux_vfpregset): New static regset structures.
6037 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6039 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6040 and 'vfpregset' fields.
6042 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6044 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6045 (aarch64_linux_fpregset): New static regset structures.
6046 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6047 of regset structures.
6048 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6051 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6053 * regset.h (struct regset): Remove gdbarch field.
6054 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6055 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6056 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6058 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6059 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6060 (ppc32_linux_vsxregset): Likewise.
6061 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6062 via the regcache instead of the regset.
6063 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6064 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6065 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6066 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6069 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6071 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6072 Constify structures.
6073 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6074 (alphanbsd_aout_gregset): Likewise.
6075 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6076 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6078 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6079 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6081 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6082 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6083 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6084 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6085 * m88k-tdep.c (m88k_gregset): Likewise.
6086 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6087 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6088 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6089 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6090 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6091 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6092 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6093 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6094 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6096 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6097 * sh-tdep.h (sh_corefile_gregset): Likewise.
6098 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6099 * vax-tdep.c (vax_gregset): Likewise.
6101 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6103 Fix TLS access for -static -pthread.
6104 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6105 (try_thread_db_load_1): Initialize it.
6106 (thread_db_get_thread_local_address): Call it if LM is zero.
6107 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6108 * target.h (struct target_ops) (to_get_thread_local_address): Add
6109 load_module_addr comment.
6111 2014-05-21 Pedro Alves <palves@redhat.com>
6113 * dcache.c (dcache_read_memory_partial): If reading the cache line
6114 fails, fallback to reading just the memory the caller wanted.
6116 2014-05-20 Doug Evans <dje@google.com>
6118 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6119 instead of get_current_arch.
6121 2014-05-20 Pedro Alves <palves@redhat.com>
6123 * NEWS: Mention that compare-sections now works with all targets.
6125 * remote.c (PACKET_qCRC): New enum value.
6126 (remote_verify_memory): Don't send qCRC if the target has no
6127 execution. Use packet_support/packet_ok. If the target doesn't
6128 support the qCRC packet, fallback to a deep memory copy.
6129 (compare_sections_command): Say "target image" instead of "remote
6131 (_initialize_remote): Add PACKET_qCRC to the list of config
6132 packets that have no associated command. Extend comment.
6133 * target.c (simple_verify_memory, default_verify_memory): New
6135 * target.h (struct target_ops) <to_verify_memory>: Default to
6136 default_verify_memory.
6137 (simple_verify_memory): New declaration.
6138 * target-delegates.c: Regenerate.
6140 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6142 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6144 2014-05-20 Hui Zhu <hui@codesourcery.com>
6145 Yao Qi <yao@codesourcery.com>
6148 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6149 and change address of sp and pc.
6151 2014-05-19 Tom Tromey <tromey@redhat.com>
6153 * gdbtypes.c (rank_function): Use XNEWVEC.
6154 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6156 2014-05-19 Doug Evans <dje@google.com>
6158 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6159 build_type_unit_groups and moved closer to only caller. Remove
6160 arguments. All references updated. Remove outdated .gdb_index
6162 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6163 build_type_psymtabs_1.
6165 2014-05-19 Doug Evans <dje@google.com>
6167 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6168 n_type_unit_groups, all_type_unit_groups. All uses removed.
6169 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6170 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6171 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6172 (add_type_unit_group_to_table): Delete.
6174 2014-05-19 Doug Evans <dje@google.com>
6176 * eval.c (evaluate_subexp_standard): Add some comments.
6178 2014-05-17 Doug Evans <xdje42@gmail.com>
6180 * progspace.c (remove_program_space): Delete, unused.
6181 * progspace.h (remove_program_space): Ditto.
6183 2014-05-17 Doug Evans <xdje42@gmail.com>
6185 * inferior.c (prune_inferiors): Fix comment.
6186 (remove_inferior_command): Call prune_program_spaces.
6188 2014-05-16 Doug Evans <dje@google.com>
6190 New command line option -D.
6192 * main.c (set_gdb_data_directory): New function.
6193 (captured_main): Recognize -D. Flag error for --data-directory "".
6194 Call set_gdb_data_directory.
6195 (print_gdb_help): Print --data-directory, -D.
6196 * main.h (set_gdb_data_directory): Declare.
6197 * top.c (staged_gdb_datadir): New static global.
6198 (set_gdb_datadir): Call set_gdb_data_directory
6199 (show_gdb_datadir): New function.
6200 (init_main): Update init of data-directory parameter.
6202 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6204 Import the "dirfd" gnulib module.
6205 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6206 * gnulib/aclocal.m4: Update.
6207 * gnulib/config.in: Update.
6208 * gnulib/configure: Update.
6209 * gnulib/import/Makefile.am: Update.
6210 * gnulib/import/Makefile.in: Update.
6211 * gnulib/import/dirfd.c: New.
6212 * gnulib/import/m4/dirfd.m4: New.
6213 * gnulib/import/m4/gnulib-cache.m4: Update.
6214 * gnulib/import/m4/gnulib-comp.m4: Update.
6216 2014-05-16 Pierre Muller <muller@sourceware.org>
6217 Yao Qi <yao@codesourcery.com>
6219 * valprint.c (print_wchar): Move the code on checking whether
6220 W is a printable wide char to the default branch of switch
6221 statement below. Call wchar_printable instead of gdb_iswprint.
6223 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6225 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6226 ldr.w and ldrd instructions.
6228 2014-05-15 Doug Evans <dje@google.com>
6230 * dwarf2read.c (read_structure_type): Delete outdated comments.
6232 2014-05-14 Tom Tromey <tromey@redhat.com>
6234 * macrocmd.c (print_macro_definition): Reindent.
6236 2014-05-13 Doug Evans <xdje42@gmail.com>
6238 * python/py-cmd.c (cmdpy_completer): Add comment.
6239 (completers): Make const.
6241 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6243 * infrun.c (resume): Remove should_resume (unused). Move up
6244 declaration of resume_ptid.
6246 2014-05-13 Tom Tromey <tromey@redhat.com>
6248 * language.h (unop_type_check): Remove.
6249 (binop_type_check): Don't declare.
6251 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6253 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6254 call to regcache_raw_collect.
6256 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6258 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6259 mi_console->quote as the quoting character.
6261 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6263 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6265 2014-04-29 Tom Tromey <tromey@redhat.com>
6267 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6268 "show debug varobj".
6270 2014-05-07 Kyle McMartin <kyle@redhat.com>
6272 Pushed by Joel Brobecker <brobecker@adacore.com>.
6273 * aarch64-tdep.c (aarch64_software_single_step): New function.
6274 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6275 with aarch64_software_single_step.
6277 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6281 2014-05-05 Keith Seitz <keiths@redhat.com>
6283 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6284 variable or history value is successfully parsed.
6286 2014-05-05 Yao Qi <yao@codesourcery.com>
6287 Pedro Alves <palves@redhat.com>
6289 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6290 address of blocks that intersects the requested range. Trim
6291 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6293 * ctf.c (ctf_xfer_partial): Likewise.
6295 2014-05-05 Yao Qi <yao@codesourcery.com>
6297 * printcmd.c (display_command): Remove the check to
6298 target_has_execution.
6300 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6302 * ppcobsd-nat.c: Include "obsd-nat.h".
6303 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6305 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6307 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6309 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6310 and 16-bit signed and unsigned arguments. Update comment.
6311 (stap_parse_probe_arguments): Extend code to handle such
6312 arguments. Use warning instead of complaint to notify about
6313 unrecognized bitness.
6315 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6317 PR breakpoints/16889
6318 * stap-probe.c (stap_parse_probe_arguments): Simplify
6319 check for non-prefixed probes (i.e., probes whose
6320 arguments do not start with "N@"). Always set the
6321 argument type to a sane value.
6323 2014-05-01 David Taylor <dtaylor@emc.com>
6325 * remote.c (compare_sections_command): Add -r option to compare
6326 all loadable read-only sections.
6328 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6330 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6331 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6333 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6334 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6335 Remove unused CORE_ADDR argument. Update all callers.
6337 2014-04-29 Pedro Alves <palves@redhat.com>
6339 * remote.c (struct packet_config) <detect>: Extend comment.
6340 (add_packet_config_cmd): Don't set the config's detect or support
6342 (init_all_packet_configs): Also initialize the config's 'detect'
6344 (reset_all_packet_configs_support): New function.
6345 (remote_open_1): Call reset_all_packet_configs_support instead of
6346 init_all_packet_configs.
6347 (_initialize_remote): Initialize all packet configs. Assert that
6348 all packets have an associated command, except a few known
6351 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6353 * dwarf2read.c (read_subrange_type): Handle dynamic
6354 DW_AT_lower_bound attributes.
6356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6358 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6359 dynamic bounds before computing its upper bound.
6360 (ada_discrete_type_low_bound): Same as above with the lower bound.
6362 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6364 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6365 range types. Adjust the array handling implementation to
6366 take advantage of this change.
6367 (resolve_dynamic_range): New function, mostly extracted from
6368 resolve_dynamic_bounds.
6369 (resolve_dynamic_array): New function, mostly extracted from
6370 resolve_dynamic_bounds.
6371 (resolve_dynamic_bounds): Delete.
6372 (resolve_dynamic_type): Reimplement. Add handling of
6373 TYPE_CODE_RANGE types.
6375 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6377 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6378 handling of parallel ___XA types.
6380 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6382 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6383 unnecessary second call to static_unwrap_type.
6385 2014-04-27 Hui Zhu <hui@codesourcery.com>
6387 * stack.c (print_frame_info): Call do_gdb_disassembly with
6388 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6390 2014-04-26 Doug Evans <xdje42@gmail.com>
6392 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6394 2014-04-25 Pedro Alves <palves@redhat.com>
6397 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6398 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6399 and newline from built string.
6400 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6401 (linux_ptrace_attach_fail_reason): ... this.
6402 * linux-nat.c (linux_nat_attach): Adjust to use
6403 linux_ptrace_attach_fail_reason.
6405 2014-04-25 Pedro Alves <palves@redhat.com>
6407 * remote.c (struct remote_state): Remove multi_process_aware,
6408 non_stop_aware, cond_tracepoints, cond_breakpoints,
6409 breakpoint_commands, fast_tracepoints, static_tracepoints,
6410 install_in_trace, disconnected_tracing,
6411 enable_disable_tracepoints, string_tracing, and
6412 augmented_libraries_svr4_read fields.
6413 (remote_multi_process_p): Move further below in the file.
6414 (struct packet_config): Add comments.
6415 (update_packet_config): Delete function.
6416 (show_packet_config_cmd): Use packet_config_support.
6417 (add_packet_config_cmd): Use NULL as set callback.
6418 (packet_ok): "set remote foo-packet"-style commands no longer
6419 change config->supported -- adjust.
6420 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6421 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6422 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6423 (PACKET_QNonStop, PACKET_multiprocess_feature)
6424 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6425 (PACKET_DisconnectedTracing_feature)
6426 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6427 (set_remote_protocol_packet_cmd): Delete function.
6428 (packet_config_support, packet_support): New functions.
6429 (set_remote_protocol_Z_packet_cmd): Don't call
6430 update_packet_config.
6431 (remote_query_attached, remote_pass_signals)
6432 (remote_program_signals, remote_threads_info)
6433 (remote_threads_extra_info, remote_start_remote): Use
6435 (remote_start_remote): Use packet_config_support and
6437 (init_all_packet_configs): Set all packets to unknown support,
6438 instead of calling update_packet_config.
6439 (remote_check_symbols): Use packet_support.
6440 (remote_supported_packet): Unconditionally set the packet config's
6442 (remote_multi_process_feature, remote_non_stop_feature)
6443 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6444 (remote_breakpoint_commands_feature)
6445 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6446 (remote_install_in_trace_feature)
6447 (remote_disconnected_tracing_feature)
6448 (remote_enable_disable_tracepoint_feature)
6449 (remote_string_tracing_feature)
6450 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6451 (remote_protocol_features): Adjust to use remote_supported_packet
6452 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6453 "ConditionalTracepoints", "ConditionalBreakpoints",
6454 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6455 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6456 "EnableDisableTracepoints", and "tracenz".
6457 (remote_query_supported): Use packet_support.
6458 (remote_open_1): Adjust.
6459 (extended_remote_attach_1): Use packet_support. Switch on the
6460 result of packet_ok instead of checking whether the packet ended
6462 (remote_vcont_resume): Use packet_support.
6463 (remote_resume, remote_stop_ns, fetch_register_using_p)
6464 (remote_prepare_to_store, store_register_using_P)
6465 (check_binary_download, remote_write_bytes): Use packet_support.
6466 (remote_vkill): Use packet_support. Switch on the result of
6467 packet_ok instead of checking whether the packet ended up
6469 (extended_remote_supports_disable_randomization): Use
6471 (extended_remote_run): Switch on the result of packet_ok instead
6472 of checking whether the packet ended up disabled.
6473 (remote_insert_breakpoint, remote_remove_breakpoint)
6474 (remote_insert_watchpoint, remote_remove_watchpoint)
6475 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6477 (remote_search_memory): Use packet_config_support.
6478 (remote_get_thread_local_address, remote_get_tib_address)
6479 (remote_hostio_send_command, remote_can_execute_reverse): Use
6481 (remote_supports_cond_tracepoints)
6482 (remote_supports_cond_breakpoints)
6483 (remote_supports_fast_tracepoints)
6484 (remote_supports_static_tracepoints)
6485 (remote_supports_install_in_trace)
6486 (remote_supports_enable_disable_tracepoint)
6487 (remote_supports_string_tracing)
6488 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6489 the packet config says the feature is enabled or disabled.
6490 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6491 (remote_get_trace_status): Use packet_support.
6492 (remote_set_disconnected_tracing): Adjust to check whether the
6493 feature is enabled with packet_support.
6494 (remote_set_trace_buffer_size, remote_use_agent)
6495 (remote_can_use_agent, remote_supports_btrace): Use
6497 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6498 Use packet_config_support.
6499 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6500 the packet config says the feature is enabled or disabled.
6501 (set_range_stepping): Use packet_support.
6503 2014-04-25 Tom Tromey <tromey@redhat.com>
6505 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6508 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6510 * NEWS: Mention support for C99 variable length arrays.
6512 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6514 * ada-lang.c (standard_exc): Expand introductory comment.
6516 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6517 Walfred Tedeschi <walfred.tedeschi@intel.com>
6519 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6521 (amd64_linux_read_description): Add code to handle AVX512 xstate
6522 mask and return respective tdesc.
6523 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6524 and features/i386/x32-avx512-linux.c.
6525 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6526 (amd64_linux_core_read_description): Add code to handle AVX512
6527 xstate mask and return respective tdesc.
6528 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6529 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6531 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6532 (tdesc_amd64_avx512_linux): New prototype.
6533 (tdesc_x32_avx512_linux): Likewise.
6534 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6535 features/i386/x32-avx512.c.
6536 (amd64_ymm_avx512_names): New register names for pseudo
6538 (amd64_ymmh_avx512_names): New register names for raw registers
6540 (amd64_k_names): New register names for K registers.
6541 (amd64_zmmh_names): New register names for ZMM raw registers.
6542 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6543 (amd64_xmm_avx512_names): New register names for XMM16-31
6545 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6547 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6548 if feature is present.
6549 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6550 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6551 (AMD64_NUM_REGS): Adjust to new number of registers.
6552 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6553 registers supplied via XSTATE by AVX512 registers.
6554 (i386_linux_read_description): Add case for AVX512.
6555 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6556 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6557 (i386_linux_core_read_description): Add case for AVX512.
6558 (i386_linux_init_abi): Install supported register note section
6560 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6562 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6563 registers to be number of zmm7h + 1.
6564 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6565 * i386-tdep.c: Include features/i386/i386-avx512.c.
6566 (i386_zmm_names): Add ZMM pseudo register names array.
6567 (i386_zmmh_names): Add ZMM raw register names array.
6568 (i386_k_names): Add K raw register names array.
6569 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6570 registers. AVX512 has 16 more ZMM registers than there are YMM
6572 (i386_zmmh_regnum_p): Add function to look up register number of
6574 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6575 (i386_k_regnum_p): Likewise for K raw registers.
6576 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6577 registers added by AVX512.
6578 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6579 registers added by AVX512.
6580 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6582 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6583 (i386_pseudo_register_name): Add ZMM pseudo registers.
6584 (i386_zmm_type): Construct and return vector registers type for ZMM
6586 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6587 ZMM0-31 pseudo registers and K registers.
6588 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6589 and YMM16-31 registers from register cache.
6590 (i386_pseudo_register_write): Add code to write K, ZMM and
6592 (i386_register_reggroup_p): Add code to include/exclude AVX512
6593 registers in/from respective register groups.
6594 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6595 registers if feature is present in xcr0.
6596 (i386_gdbarch_init): Add code to initialize AVX512 feature
6597 variables in tdep structure, wire in pseudo registers and call
6598 initialize_tdesc_i386_avx512.
6599 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6601 (i386_regnum): Add AVX512 registers.
6602 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6603 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6604 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6605 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6607 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6608 (i386_ymm_avx512_regnum_p): Likewise.
6609 (i386_k_regnum_p): Likewise.
6610 (i386_zmm_regnum_p): Likewise.
6611 (i386_zmmh_regnum_p): Likewise.
6612 * i387-tdep.c : Update year in copyright notice.
6613 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6615 (XSAVE_YMM_AVX512_ADDR): New macro.
6616 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6618 (XSAVE_XMM_AVX512_ADDR): New macro.
6619 (xsave_avx512_k_offset): New table for K register offsets in
6621 (XSAVE_AVX512_K_ADDR): New macro.
6622 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6624 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6625 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6627 (i387_collect_xsave): Add code to collect AVX512 registers from
6629 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6630 of XMM16-31 registers.
6631 (I387_NUM_K_REGS): New define for number of K registers.
6632 (I387_K0_REGNUM): New define for K0 register number.
6633 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6634 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6635 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6637 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6638 (I387_XMM16_REGNUM): New define for XMM16 register number.
6639 (I387_YMM0_REGNUM): New define for YMM0 register number.
6640 (I387_KEND_REGNUM): New define for last K register number.
6641 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6642 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6644 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6646 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6648 * features/Makefile: Add AVX512 related files.
6649 * features/i386/32bit-avx512.xml: New file.
6650 * features/i386/64bit-avx512.xml: Likewise.
6651 * features/i386/amd64-avx512-linux.c: Likewise.
6652 * features/i386/amd64-avx512-linux.xml: Likewise.
6653 * features/i386/amd64-avx512.c: Likewise.
6654 * features/i386/amd64-avx512.xml: Likewise.
6655 * features/i386/i386-avx512-linux.c: Likewise.
6656 * features/i386/i386-avx512-linux.xml: Likewise.
6657 * features/i386/i386-avx512.c: Likewise.
6658 * features/i386/i386-avx512.xml: Likewise.
6659 * features/i386/x32-avx512-linux.c: Likewise.
6660 * features/i386/x32-avx512-linux.xml: Likewise.
6661 * features/i386/x32-avx512.c: Likewise.
6662 * features/i386/x32-avx512.xml: Likewise.
6663 * regformats/i386/amd64-avx512-linux.dat: New file.
6664 * regformats/i386/amd64-avx512.dat: Likewise.
6665 * regformats/i386/i386-avx512-linux.dat: Likewise.
6666 * regformats/i386/i386-avx512.dat: Likewise.
6667 * regformats/i386/x32-avx512-linux.dat: Likewise.
6668 * regformats/i386/x32-avx512.dat: Likewise.
6669 * NEWS: Add note about new support for AVX512.
6672 2014-04-23 Pedro Alves <palves@redhat.com>
6674 * breakpoint.c (insert_bp_location): Tolerate errors if the
6675 breakpoint is set in a user-loaded objfile.
6676 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6677 location is marked shlib_disabled. If the breakpoint is set in a
6678 user-loaded objfile is a GDB-side memory breakpoint, validate it
6679 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6680 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6682 * mem-break.c (memory_validate_breakpoint): New function.
6683 * objfiles.c (userloaded_objfile_contains_address_p): New
6685 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6686 * target.h (memory_validate_breakpoint): New declaration.
6688 2014-04-23 Pedro Alves <palves@redhat.com>
6690 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6691 the breakpoint is set in a shared library, only suppress
6692 errors for software breakpoints, not hardware breakpoints.
6694 2014-04-22 Pedro Alves <palves@redhat.com>
6696 * infrun.c (schedlock_applies): New function, factored out from
6697 find_thread_needs_step_over.
6698 (find_thread_needs_step_over): Use it.
6699 (switch_back_to_stepped_thread): Always clear trap_expected if the
6700 step over is finished. Return early if scheduler locking applies.
6701 Look for the stepping thread and a potential step-over thread with
6703 (currently_stepping_or_nexting_callback): Delete.
6705 2014-04-22 Nick Clifton <nickc@redhat.com>
6707 * NEWS: Mention that ARM sim now supports tracing.
6709 2014-04-22 Yao Qi <yao@codesourcery.com>
6711 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6713 * tracefile.c (tracefile_fetch_registers): ... it. New
6715 * tracefile.h (tracefile_fetch_registers): Declare.
6716 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6717 tracefile_fetch_registers.
6719 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6722 * windows-nat.c (thread_rec): Don't display a warning when
6723 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6724 fails for any reason, set th->suspended to -1, so that we don't
6725 try to resume such a thread. Also, don't return NULL in these
6726 cases, to avoid completely ruin the session due to "PC register is
6727 not available" error.
6728 (do_windows_fetch_inferior_registers): Check errors in
6729 GetThreadContext call.
6730 (windows_continue): Accept an additional argument KILLED; if not
6731 zero, ignore errors in the SetThreadContext call, since the
6732 inferior was killed and is shutting down.
6733 (windows_resume, get_windows_debug_event)
6734 (windows_create_inferior, windows_mourn_inferior)
6735 (windows_kill_inferior): All callers of windows_continue changed
6736 to adjust to its new calling sequence.
6738 2014-04-19 Yao Qi <yao@codesourcery.com>
6740 * ctf.c (ctf_open): Call post_create_inferior.
6742 2014-04-19 Yao Qi <yao@codesourcery.com>
6744 * ctf.c (handle_id): New static variable.
6745 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6746 value. Get the declaration of event "register" and get length
6747 of field "contents".
6749 2014-04-19 Yao Qi <yao@codesourcery.com>
6751 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6753 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6755 * valops.c (oload_method_static): Remove unnecessary argument
6756 METHOD. Update all callers.
6758 2014-04-18 Pedro alves <palves@redhat.com>
6759 Tom Tromey <tromey@redhat.com>
6762 * frame.c (get_prev_frame_1): Rename to ...
6763 (get_prev_frame_always): ... this, and make extern. Adjust.
6764 (skip_artificial_frames): Use get_prev_frame_always.
6765 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6766 (get_frame_unwind_stop_reason): Adjust to rename.
6767 * frame.h (get_prev_frame_always): Declare.
6768 * inline-frame.c: Include frame.h.
6769 (inline_frame_this_id): Use get_prev_frame_always.
6771 2014-04-18 Tristan Gingold <gingold@adacore.com>
6773 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6774 code by using bfd_mach_o_get_base_address.
6776 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6778 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6779 (spu_ax_pseudo_register_collect): New function.
6780 (spu_ax_pseudo_register_push_stack): Likewise.
6781 (spu_dwarf_reg_to_regnum): Likewise.
6782 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6784 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6786 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6787 Replace FRAME argument with FRAME_ID.
6788 * gdbarch.c, gdbarch.h: Regenerate.
6789 * findvar.c (default_value_from_register): Add GDBARCH argument;
6790 replace FRAME by FRAME_ID. No longer call get_frame_id.
6791 (value_from_register): Update call to gdbarch_value_from_register.
6792 * value.h (default_value_from_register): Update prototype.
6793 * s390-linux-tdep.c (s390_value_from_register): Update interface
6794 and call to default_value_from_register.
6795 * spu-tdep.c (spu_value_from_register): Likewise.
6797 * findvar.c (address_from_register): Remove TYPE argument.
6798 Do not call value_from_register; use gdbarch_value_from_register
6799 with null_frame_id instead.
6800 * value.h (address_from_register): Update prototype.
6801 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6802 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6803 address_from_register interface change.
6805 2014-04-17 Yao Qi <yao@codesourcery.com>
6807 * gdbtypes.h: Update comments to link to types and macros'
6810 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6812 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6814 2014-04-16 Keith Seitz <keiths@redhat.com>
6817 * dwarf2read.c (skip_one_die): Check that all relative-offset
6818 sibling DIEs fall within range of the current reader's buffer.
6819 (read_partial_die): Likewise.
6821 2014-04-16 Keith Seitz <keiths@redhat.com>
6824 * cp-namespace.c (lookup_symbol_file): If the type name of
6825 `this' is NULL, return immediately.
6827 2014-04-14 Keith Seitz <keiths@redhat.com>
6830 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6831 from symbol_matches_domain in symtab.c. All local callers
6832 of symbol_matches_domain updated.
6833 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6834 search STRUCT_DOMAIN.
6835 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6836 independently. standard_lookup will do that automatically.
6837 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6838 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6839 (cp_lookup_symbol_in_namespace): Likewise.
6840 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6841 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6842 may return a STRUCT_DOMAIN match.
6843 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6844 * cp-support.c: Include language.h.
6845 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6847 * psymtab.c (match_partial_symbol): Compare the requested
6848 domain with the symbol's domain directly.
6849 (lookup_partial_symbol): Likewise.
6850 * symtab.c (lookup_symbol_in_language): Explain when/why
6851 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6852 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6853 appropriate languages.
6854 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6855 and moved to ada-lang.c
6856 (lookup_block_symbol): Explain that this function only returns
6857 symbol matching the requested DOMAIN.
6858 Compare the requested domain with the symbol's domain directly.
6859 (iterate_over_symbols): Compare the requested domain with the
6860 symbol's domain directly.
6861 * symtab.h (symbol_matches_domain): Remove.
6863 2014-04-14 Tom Tromey <tromey@redhat.com>
6866 * c-exp.y (type_aggregate_p): New function.
6867 (qualified_name, classify_inner_name): Use it.
6868 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6869 and TYPE_TARGET_TYPE of an enum type.
6870 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6872 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6873 handle TYPE_DECLARED_CLASS.
6874 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6876 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6877 * valops.c (enum_constant_from_type): New function.
6878 (value_aggregate_elt): Use it.
6879 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6882 2014-04-14 Tom Tromey <tromey@redhat.com>
6884 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6885 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6887 * value.h (value_aggregate_elt): Update.
6889 2014-04-14 Tom Tromey <tromey@redhat.com>
6891 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6893 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6895 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6896 (evaluate_subexp_standard): Pass noside argument.
6897 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6898 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6899 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6900 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6901 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6903 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6905 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6906 points to a constant blob.
6908 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6910 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6911 property and store it as the high bound and flag the range accordingly.
6912 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6913 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6914 * gdbtypes.h (enum range_flags): New enum.
6915 (struct range_bounds): Add flags member.
6917 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6919 * c-typeprint.c (c_type_print_varspec_suffix): Added
6920 check for not yet resolved high bound. If unresolved, print
6921 "variable length" string to the console instead of random
6924 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6926 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6928 (ada_template_to_fixed_record_type_1): Likewise.
6929 (ada_to_fixed_type_1): Likewise.
6930 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6931 (cp_print_value): Likewise.
6932 * d-valprint.c (dynamic_array_type): Likewise.
6933 * findvar.c (address_of_variable): Likewise.
6934 * jv-valprint.c (java_value_print): Likewise.
6935 * valops.c (value_ind): Likewise.
6936 * value.c (coerce_ref): Likewise.
6938 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6940 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6941 value and retrieve the dynamic type size.
6943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6945 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6946 passed to sizeof is dynamic evaluate the argument to compute the length.
6948 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6949 Joel Brobecker <brobecker@adacore.com>
6951 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6952 (dwarf2_evaluate_property): New function.
6953 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6954 * dwarf2read.c (attr_to_dynamic_prop): New function.
6955 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6957 * gdbtypes.c: Include dwarf2loc.h.
6958 (is_dynamic_type): New function.
6959 (resolve_dynamic_type): New function.
6960 (resolve_dynamic_bounds): New function.
6961 (get_type_length): New function.
6962 (check_typedef): Use get_type_length to compute type length.
6963 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6964 (TYPE_LOW_BOUND_KIND): New macro.
6965 (is_dynamic_type): New function prototype.
6966 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6967 to resolve dynamic properties of the type. Update comment.
6968 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6970 2014-04-14 Richard Henderson <rth@redhat.com>
6972 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6974 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6975 Doug Evans <xdje42@gmail.com>
6977 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6978 dereference TYPE_CODE_REF values.
6980 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6982 Revert the following changes due to regressions:
6984 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6985 (dwarf2_evaluate_property): New function.
6986 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6987 * dwarf2read.c (attr_to_dynamic_prop): New function.
6988 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6990 * gdbtypes.c: Include dwarf2loc.h.
6991 (is_dynamic_type): New function.
6992 (resolve_dynamic_type): New function.
6993 (resolve_dynamic_bounds): New function.
6994 (get_type_length): New function.
6995 (check_typedef): Use get_type_length to compute type length.
6996 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6997 (TYPE_LOW_BOUND_KIND): New macro.
6998 (is_dynamic_type): New function prototype.
6999 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7000 to resolve dynamic properties of the type. Update comment.
7001 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7003 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7004 passed to sizeof is dynamic evaluate the argument to compute the length.
7006 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7007 value and retrieve the dynamic type size.
7009 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7010 (ada_template_to_fixed_record_type_1): Likewise.
7011 (ada_to_fixed_type_1): Likewise.
7012 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7013 (cp_print_value): Likewise.
7014 * d-valprint.c (dynamic_array_type): Likewise.
7015 * eval.c (evaluate_subexp_with_coercion): Likewise.
7016 * findvar.c (address_of_variable): Likewise.
7017 * jv-valprint.c (java_value_print): Likewise.
7018 * valops.c (value_ind): Likewise.
7019 * value.c (coerce_ref): Likewise.
7021 * c-typeprint.c (c_type_print_varspec_suffix): Added
7022 check for not yet resolved high bound. If unresolved, print
7023 "variable length" string to the console instead of random
7026 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7027 property and store it as the high bound and flag the range accordingly.
7028 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7029 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7030 * gdbtypes.h (enum range_flags): New enum.
7031 (struct range_bounds): Add flags member.
7033 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7034 points to a constant blob.
7036 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7037 (evaluate_subexp_standard): Pass noside argument.
7038 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7039 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7040 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7041 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7042 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7044 2014-04-11 Keith Seitz <keiths@redhat.com>
7047 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7048 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7051 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7053 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7054 (evaluate_subexp_standard): Pass noside argument.
7055 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7056 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7057 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7058 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7059 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7061 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7063 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7064 points to a constant blob.
7066 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7068 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7069 property and store it as the high bound and flag the range accordingly.
7070 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7071 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7072 * gdbtypes.h (enum range_flags): New enum.
7073 (struct range_bounds): Add flags member.
7075 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7077 * c-typeprint.c (c_type_print_varspec_suffix): Added
7078 check for not yet resolved high bound. If unresolved, print
7079 "variable length" string to the console instead of random
7082 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7084 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7085 (ada_template_to_fixed_record_type_1): Likewise.
7086 (ada_to_fixed_type_1): Likewise.
7087 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7088 (cp_print_value): Likewise.
7089 * d-valprint.c (dynamic_array_type): Likewise.
7090 * eval.c (evaluate_subexp_with_coercion): Likewise.
7091 * findvar.c (address_of_variable): Likewise.
7092 * jv-valprint.c (java_value_print): Likewise.
7093 * valops.c (value_ind): Likewise.
7094 * value.c (coerce_ref): Likewise.
7096 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7098 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7099 value and retrieve the dynamic type size.
7101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7103 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7104 passed to sizeof is dynamic evaluate the argument to compute the length.
7106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7108 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7109 (dwarf2_evaluate_property): New function.
7110 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7111 * dwarf2read.c (attr_to_dynamic_prop): New function.
7112 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7114 * gdbtypes.c: Include dwarf2loc.h.
7115 (is_dynamic_type): New function.
7116 (resolve_dynamic_type): New function.
7117 (resolve_dynamic_bounds): New function.
7118 (get_type_length): New function.
7119 (check_typedef): Use get_type_length to compute type length.
7120 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7121 (TYPE_LOW_BOUND_KIND): New macro.
7122 (is_dynamic_type): New function prototype.
7123 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7124 to resolve dynamic properties of the type. Update comment.
7125 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7127 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7129 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7130 declaring high/low bounds and change uses accordingly. Call
7131 create_range_type instead of create_static_range_type.
7132 * gdbtypes.c (create_range_type): New function.
7133 (create_range_type): Convert bounds into struct bound_prop and pass
7134 them to create_range_type.
7135 * gdbtypes.h (struct bound_prop): New struct.
7136 (create_range_type): New function prototype.
7137 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7138 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7139 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7141 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7145 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7146 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7147 * ada-lang.c: All uses of create_range_type updated.
7148 * coffread.c: All uses of create_range_type updated.
7149 * dwarf2read.c: All uses of create_range_type updated.
7150 * f-exp.y: All uses of create_range_type updated.
7151 * m2-valprint.c: All uses of create_range_type updated.
7152 * mdebugread.c: All uses of create_range_type updated.
7153 * stabsread.c: All uses of create_range_type updated.
7154 * valops.c: All uses of create_range_type updated.
7155 * valprint.c: All uses of create_range_type updated.
7157 2014-04-10 Pedro Alves <palves@redhat.com>
7159 * breakpoint.c (single_step_breakpoints)
7160 (single_step_gdbarch): Move up in the file.
7161 (one_breakpoint_xfer_memory): New function, factored out from ...
7162 (breakpoint_xfer_memory): ... here. Also process single-step
7165 2014-04-09 Tristan Gingold <gingold@adacore.com>
7167 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7169 (darwin_decode_exception_message): Free port only after use.
7171 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7173 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7174 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7175 when setting the size of call_length.
7177 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7179 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7180 dereference TYPE_CODE_REF values.
7182 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7184 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7185 end of warning message.
7187 2014-04-03 Doug Evans <dje@google.com>
7189 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7190 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7192 2014-04-02 Alan Modra <amodra@gmail.com>
7194 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7195 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7196 (struct symbol_file_add_from_memory_args): Add size field.
7197 (find_vdso_size): New function.
7198 (add_vsyscall_page): Attempt to find vdso size.
7200 2014-04-01 Doug Evans <dje@google.com>
7202 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7204 2014-04-01 Tristan Gingold <gingold@adacore.com>
7206 * darwin-nat.c (darwin_encode_reply): Add prototype.
7207 (darwin_decode_exception_message): Reply to unknown inferiors.
7208 (darwin_decode_message): Handle message by id. Ignore message
7209 to unknown inferior.
7210 (darwin_wait): Discard unknown messages, add debug trace.
7212 2014-03-31 Doug Evans <dje@google.com>
7214 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7217 2014-03-31 Doug Evans <dje@google.com>
7219 New option "set print symbol-loading".
7221 * solib.c (solib_read_symbols): Only print symbol loading messages
7223 (solib_add): If symbol loading is in "brief" mode, notify user
7224 symbols are being loaded.
7225 (reload_shared_libraries_1): Ditto.
7226 * symfile.c (print_symbol_loading_off): New static global.
7227 (print_symbol_loading_brief): New static global.
7228 (print_symbol_loading_full): New static global.
7229 (print_symbol_loading_enums): New static global.
7230 (print_symbol_loading): New static global.
7231 (print_symbol_loading_p): New function.
7232 (symbol_file_add_with_addrs): Only print symbol loading messages
7234 (_initialize_symfile): Register "print symbol-loading" set/show
7236 * symfile.h (print_symbol_loading_p): Declare.
7238 2014-03-30 Doug Evans <xdje42@gmail.com>
7240 * infrun.c (set_last_target_status): New function.
7241 (handle_inferior_event): Call it.
7243 2014-03-30 Doug Evans <xdje42@gmail.com>
7245 * inferior.h (enum stop_kind): Improve comment.
7247 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7249 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7250 a reference, strip the reference layer before calling
7251 the lang_ops value_has_mutated callback.
7253 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7255 Remove some globals from our parser.
7256 * language.c (unk_lang_parser): Add "struct parser_state"
7258 * language.h (struct language_defn) <la_parser>: Likewise.
7259 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7260 (initialize_expout): Add "struct parser_state" argument.
7261 Rewrite function to use the parser state.
7262 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7263 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7264 write_exp_elt_longcst, write_exp_elt_dblcst,
7265 write_exp_elt_decfloatcst, write_exp_elt_type,
7266 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7267 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7268 write_dollar_variable): Likewise.
7269 (parse_exp_in_context_1): Use parser state.
7270 (insert_type_address_space): Add "struct parser_state" argument.
7272 (increase_expout_size): New function.
7273 * parser-defs.h: Forward declare "struct language_defn" and
7274 "struct parser_state".
7275 (expout, expout_size, expout_ptr): Remove extern declarations.
7276 (parse_gdbarch, parse_language): Rewrite macro declarations to
7277 accept the parser state.
7278 (struct parser_state): New struct.
7279 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7280 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7281 write_exp_elt_decfloatcst, write_exp_elt_type,
7282 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7283 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7284 write_exp_msymbol, write_dollar_variable,
7285 mark_struct_expression, insert_type_address_space): Add "struct
7286 parser_state" argument.
7287 (increase_expout_size): New function.
7288 * utils.c (do_clear_parser_state): New function.
7289 (make_cleanup_clear_parser_state): Likewise.
7290 * utils.h (make_cleanup_clear_parser_state): New function
7292 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7293 Update calls to write_exp* in order to pass the parser state.
7294 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7295 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7296 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7297 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7298 * stap-probe.c (stap_parse_register_operand): Likewise.
7299 (stap_parse_single_operand): Likewise.
7300 (stap_parse_argument_1): Likewise.
7301 (stap_parse_argument): Use parser state.
7302 * stap-probe.h: Include "parser-defs.h".
7303 (struct stap_parse_info) <pstate>: New field.
7304 * c-exp.y (parse_type): Rewrite to use parser state.
7305 (yyparse): Redefine to c_parse_internal.
7306 (pstate): New global variable.
7307 (parse_number): Add "struct parser_state" argument.
7308 (write_destructor_name): Likewise.
7309 (type_exp): Update calls to write_exp* and similars in order to
7311 (exp1, exp, variable, qualified_name, space_identifier,
7312 typename, typebase): Likewise.
7313 (write_destructor_name, parse_number, lex_one_token,
7314 classify_name, classify_inner_name, c_parse): Add "struct
7315 parser_state" argument. Update function to use parser state.
7316 * c-lang.h: Forward declare "struct parser_state".
7317 (c_parse): Add "struct parser_state" argument.
7318 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7319 (yyparse): Redefine macro to ada_parse_internal.
7320 (pstate): New variable.
7321 (write_int, write_object_renaming, write_var_or_type,
7322 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7323 type_int, type_long, type_long_long, type_float, type_double,
7324 type_long_double, type_char, type_boolean, type_system_address):
7325 Add "struct parser_state" argument.
7326 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7327 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7328 var_or_type, aggregate, aggregate_component_list,
7329 positional_list, others, component_group,
7330 component_associations): Update calls to write_exp* and similar
7331 functions in order to use parser state.
7332 (ada_parse, write_var_from_sym, write_int,
7333 write_exp_op_with_string, write_object_renaming,
7334 find_primitive_type, write_selectors, write_ambiguous_var,
7335 write_var_or_type, write_name_assoc, type_int, type_long,
7336 type_long_long, type_float, type_double, type_long_double,
7337 type_char, type_boolean, type_system_address): Add "struct
7338 parser_state" argument. Adjust function to use parser state.
7339 * ada-lang.c (parse): Likewise.
7340 * ada-lang.h: Forward declare "struct parser_state".
7341 (ada_parse): Add "struct parser_state" argument.
7342 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7343 calls to both functions.
7344 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7346 (yyparse): Redefine macro to f_parse_internal.
7347 (pstate): New variable.
7348 (parse_number): Add "struct parser_state" argument.
7349 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7350 and similars in order to use parser state.
7351 (parse_number): Adjust code to use parser state.
7353 (f_parse): New function.
7354 * f-lang.h: Forward declare "struct parser_state".
7355 (f_parse): Add "struct parser_state" argument.
7356 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7358 (yyparse): Redefine macro for java_parse_internal.
7359 (pstate): New variable.
7360 (push_expression_name, push_expression_name, insert_exp): Add
7361 "struct parser_state" argument.
7362 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7363 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7364 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7365 PostIncrementExpression, PostDecrementExpression,
7366 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7367 UnaryExpressionNotPlusMinus, CastExpression,
7368 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7369 RelationalExpression, EqualityExpression, AndExpression,
7370 ExclusiveOrExpression, InclusiveOrExpression,
7371 ConditionalAndExpression, ConditionalOrExpression,
7372 ConditionalExpression, Assignment, LeftHandSide): Update
7373 calls to write_exp* and similars in order to use parser state.
7374 (parse_number): Ajust code to use parser state.
7376 (java_parse): New function.
7377 (push_variable): Add "struct parser_state" argument. Adjust
7378 code to user parser state.
7379 (push_fieldnames, push_qualified_expression_name,
7380 push_expression_name, insert_exp): Likewise.
7381 * jv-lang.h: Forward declare "struct parser_state".
7382 (java_parse): Add "struct parser_state" argument.
7383 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7385 (yyparse): Redefine macro to m2_parse_internal.
7386 (pstate): New variable.
7387 (type_exp, exp, fblock, variable, type): Update calls to
7388 write_exp* and similars to use parser state.
7390 (m2_parse): New function.
7391 * m2-lang.h: Forward declare "struct parser_state".
7392 (m2_parse): Add "struct parser_state" argument.
7393 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7394 * objc-lang.h: Forward declare "struct parser_state".
7395 (end_msglist): Add "struct parser_state" argument.
7396 * p-exp.y (parse_type): Rewrite macro to use parser state.
7397 (yyparse): Redefine macro to pascal_parse_internal.
7398 (pstate): New variable.
7399 (parse_number): Add "struct parser_state" argument.
7400 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7401 write_exp* and similars in order to use parser state.
7402 (parse_number, yylex): Adjust code to use parser state.
7403 (pascal_parse): New function.
7404 * p-lang.h: Forward declare "struct parser_state".
7405 (pascal_parse): Add "struct parser_state" argument.
7406 * go-exp.y (parse_type): Rewrite macro to use parser state.
7407 (yyparse): Redefine macro to go_parse_internal.
7408 (pstate): New variable.
7409 (parse_number): Add "struct parser_state" argument.
7410 (type_exp, exp1, exp, variable, type): Update calls to
7411 write_exp* and similars in order to use parser state.
7412 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7413 to use parser state.
7414 (go_parse): Likewise.
7415 * go-lang.h: Forward declare "struct parser_state".
7416 (go_parse): Add "struct parser_state" argument.
7418 2014-03-27 Doug Evans <dje@google.com>
7420 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7422 2014-03-27 Doug Evans <dje@google.com>
7424 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7425 Remove argument abbrev_section. All callers updated.
7427 2014-03-27 Doug Evans <dje@google.com>
7429 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7430 addr_base, ranges_base.
7432 2014-03-26 Keith Seitz <keiths@redhat.com>
7434 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7435 types, not VAR_DOMAIN.
7437 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7439 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7441 * features/nios2-linux.c: Regenerated.
7442 * features/nios2.c: Regenerated.
7444 2014-03-25 Pedro Alves <palves@redhat.com>
7446 * cli/cli-script.c (script_from_file): Force the interpreter to
7449 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7451 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7452 small stack allocation.
7454 2014-03-24 Tristan Gingold <gingold@adacore.com>
7456 * darwin-nat.c (exc_server): Remove unused prototype.
7457 (darwin_dump_message): Correctly display data on x86_64.
7458 (darwin_encode_reply): Fix style.
7459 Add comments and fix indentation.
7461 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7463 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7465 2014-03-22 Doug Evans <xdje42@gmail.com>
7467 * infcmd.c: Whitespace fixes.
7468 (interrupt_command): Merge two function comments into one.
7470 2014-03-22 Doug Evans <xdje42@gmail.com>
7472 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7475 2014-03-22 Yao Qi <yao@codesourcery.com>
7477 * remote.c (target_read_live_memory): Remove.
7478 (memory_xfer_live_readonly_partial): Rename it to
7479 remote_xfer_live_readonly_partial. Remove argument 'object'.
7480 All callers updated. Call remote_read_bytes_1
7481 instead of target_read_live_memory.
7482 * tracepoint.c (set_traceframe_number): Remove.
7483 (make_cleanup_restore_traceframe_number): Likewise .
7484 * tracepoint.h (set_traceframe_number): Remove declaration.
7485 (make_cleanup_restore_traceframe_number): Likewise.
7487 2014-03-22 Yao Qi <yao@codesourcery.com>
7489 * remote.c (remote_read_bytes): Move code on reading from the
7491 (remote_read_bytes_1): ... here. New function.
7493 2014-03-22 Yao Qi <yao@codesourcery.com>
7495 * ctf.c (ctf_xfer_partial): Check the return value of
7496 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7497 return TARGET_XFER_UNAVAILABLE.
7498 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7499 * target.c (target_read_live_memory): Move it to remote.c.
7500 (memory_xfer_live_readonly_partial): Likewise.
7501 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7502 * remote.c (target_read_live_memory): Moved from target.c.
7503 (memory_xfer_live_readonly_partial): Likewise.
7504 (remote_read_bytes): Factored out from
7505 memory_xfer_partial_1.
7507 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7509 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7512 2014-03-21 Pedro Alves <palves@redhat.com>
7514 * infrun.c (normal_stop): Extend comment.
7516 2014-03-21 Hui Zhu <hui@codesourcery.com>
7517 Pedro Alves <palves@redhat.com>
7519 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7521 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7522 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7523 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7525 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7527 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7528 `z' formatted output modifier.
7530 2014-03-20 Tom Tromey <tromey@redhat.com>
7531 Sergio Durigan Junior <sergiodj@redhat.com>
7533 * probe.c (parse_probes): Turn assert into an ordinary error.
7534 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7535 exceptions when parsing probes. Rearrange the code for clarity.
7537 2014-03-20 Tom Tromey <tromey@redhat.com>
7540 * top.c (execute_command): Only dispatch events if the command
7543 2014-03-20 Tom Tromey <tromey@redhat.com>
7546 * infcall.c: Include event-top.h.
7547 (run_inferior_call): Call async_disable_stdin if needed.
7549 2014-03-20 Pedro Alves <palves@redhat.com>
7551 * infrun.c (prepare_to_proceed): Delete.
7552 (thread_still_needs_step_over): New function.
7553 (find_thread_needs_step_over): New function.
7554 (proceed): If the current thread needs a step-over, set its
7555 steping_over_breakpoint flag. Adjust to use
7556 find_thread_needs_step_over instead of prepare_to_proceed.
7557 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7558 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7560 (switch_back_to_stepped_thread): Step over breakpoints of all
7561 threads not the stepping thread, before switching back to the
7564 2014-03-20 Pedro Alves <palves@redhat.com>
7566 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7568 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7569 * infrun.c (saved_singlestep_ptid)
7570 (stepping_past_singlestep_breakpoint): Delete.
7571 (resume): Remove stepping_past_singlestep_breakpoint handling.
7572 (proceed): Store the prev_pc of the stepping thread too.
7573 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7575 (enum infwait_states): Delete infwait_thread_hop_state.
7576 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7578 (handle_inferior_event): Adjust.
7579 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7580 handling and the thread-hop code. Before removing single-step
7581 breakpoints, check whether the thread hit a single-step breakpoint
7582 of another thread. If it did, the trap is not a random signal.
7583 (switch_back_to_stepped_thread): If the event thread hit a
7584 single-step breakpoint, unblock it before switching to the
7585 stepping thread. Handle the case of the stepped thread having
7587 (keep_going): Handle the case of the current thread moving past a
7588 single-step breakpoint.
7590 2014-03-20 Pedro Alves <palves@redhat.com>
7593 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7594 are being stepped over.
7595 (breakpoint_address_match): Make extern.
7596 * breakpoint.h (breakpoint_address_match): New declaration.
7597 * inferior.h (stepping_past_instruction_at): New declaration.
7598 * infrun.c (struct step_over_info): New type.
7599 (step_over_info): New global.
7600 (set_step_over_info, clear_step_over_info)
7601 (stepping_past_instruction_at): New functions.
7602 (handle_inferior_event): Clear the step-over info when
7603 trap_expected is cleared.
7604 (resume): Remove now stale comment.
7605 (clear_proceed_status): Clear step-over info.
7606 (proceed): Adjust step-over handling to set or clear the step-over
7607 info instead of removing all breakpoints.
7608 (handle_signal_stop): When setting up a thread-hop, don't remove
7610 (stop_stepping): Clear step-over info.
7611 (keep_going): Adjust step-over handling to set or clear step-over
7612 info and then always inserting breakpoints, instead of removing
7613 all breakpoints when stepping over one.
7615 2014-03-20 Pedro Alves <palves@redhat.com>
7617 * infrun.c (previous_inferior_ptid): Adjust comment.
7618 (deferred_step_ptid): Delete.
7619 (infrun_thread_ptid_changed, prepare_to_proceed)
7620 (init_wait_for_inferior): Adjust.
7621 (handle_signal_stop): Delete deferred_step_ptid handling.
7623 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7626 * defs.h (sync_quit_force_run): New declaration.
7627 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7628 * event-top.c (async_sigterm_handler): New declaration.
7629 (async_sigterm_token): New variable.
7630 (async_init_signals): Create also async_sigterm_token.
7631 (async_sigterm_handler): New function.
7632 (sync_quit_force_run): New variable.
7633 (handle_sigterm): Replace quit_force call by other calls.
7634 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7636 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7638 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7639 offset into SPE pseudo registers.
7641 2014-03-18 Pedro Alves <palves@redhat.com>
7644 * inferior.h (print_stop_event): Declare.
7645 * infrun.c (print_stop_event): New, factored out from ...
7646 (normal_stop): ... this.
7647 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7648 of bpstat_print/print_stack_frame.
7650 2014-03-17 Tom Tromey <tromey@redhat.com>
7652 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7654 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7656 * ada-lang.c (decode_constrained_packed_array): Perform a
7657 minimal coercion for reference with coerce_ref instead of
7660 2014-03-17 Tristan Gingold <gingold@adacore.com>
7662 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7663 (darwin_solib_create_inferior_hook): Emit a warning if version
7666 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7668 * python/py-value.c (get_field_flag): Cast flag_name argument to
7669 PyObject_GetAttrString to support Python 2.4.
7671 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7673 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7674 (Global Maintainers): Remove Jan Kratochvil.
7676 2014-03-14 Pedro Alves <palves@redhat.com>
7678 * inferior.h (terminal_ours_for_output): Rename to ...
7679 (child_terminal_ours_for_output): ... this.
7680 (terminal_save_ours): Rename to ...
7681 (child_terminal_save_ours): ... this.
7682 (terminal_ours): Rename to ...
7683 (child_terminal_ours): ... this.
7684 (terminal_inferior): Rename to ...
7685 (child_terminal_inferior): ... this.
7686 (terminal_init_inferior): Rename to ...
7687 (child_terminal_init_inferior): ... this.
7688 (terminal_init_inferior_with_pgrp): Rename to ...
7689 (child_terminal_init_inferior_with_pgrp): ... this.
7690 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7691 (child_terminal_init_with_pgrp): ... this.
7692 (terminal_save_ours): Rename to ...
7693 (child_terminal_save_ours): ... this.
7694 (terminal_init_inferior): Rename to ...
7695 (child_terminal_init): ... this. Adjust.
7696 (terminal_inferior): Rename to ...
7697 (child_terminal_inferior): ... this.
7698 (terminal_ours_for_output): Rename to ...
7699 (child_terminal_ours_for_output): ... this. Adjust.
7700 (terminal_ours): Rename to ...
7701 (child_terminal_ours): ... this.
7702 (terminal_ours_1): Rename to ...
7703 (child_terminal_ours_1): ... this. Adjust.
7704 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7705 * windows-nat.c (do_initial_windows_stuff): Adjust.
7706 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7707 (gnu_terminal_init): ... this. Adjust.
7708 (gnu_target): Adjust.
7709 * inf-child.c (inf_child_target): Adjust.
7711 2014-03-13 Doug Evans <xdje42@gmail.com>
7714 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7717 2014-03-13 Doug Evans <xdje42@gmail.com>
7719 * value.c (record_latest_value): Call release_value_or_incref
7720 instead of release_value.
7722 2014-03-13 Pedro Alves <palves@redhat.com>
7724 * procfs.c (procfs_target): Don't override to_shortname,
7725 to_longname or to_doc.
7727 2014-03-13 Pedro Alves <palves@redhat.com>
7729 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7730 Unix in user visible strings.
7732 2014-03-12 Stan Shebs <stan@codesourcery.com>
7734 * gdbtypes.h: Annotate comments for Doxygen, add a page
7735 block comment with some general info.
7737 2014-03-12 Pedro Alves <palves@redhat.com>
7739 * infcmd.c (prepare_execution_command): New function, factored out
7740 from several execution commands.
7741 (run_command_1, continue_command, step_1, jump_command)
7742 (signal_command, until_command, advance_command, finish_command)
7743 (attach_command): Use prepare_execution_command.
7745 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7747 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7750 (struct arm_linux_thread_points): Removed.
7751 (struct arm_linux_process_info): New.
7752 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7753 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7754 (arm_linux_find_breakpoints_by_tid): Removed.
7755 (struct arch_lwp_info): New.
7756 (arm_linux_find_process_pid): New functions.
7757 (arm_linux_add_process): New functions.
7758 (arm_linux_process_info_get): New functions.
7759 (arm_linux_forget_process): New function.
7760 (arm_linux_get_debug_reg_state): New function.
7761 (struct update_registers_data): New.
7762 (update_registers_callback): New function.
7763 (arm_linux_insert_hw_breakpoint1): Updated.
7764 (arm_linux_remove_hw_breakpoint1): Updated.
7765 (arm_linux_insert_hw_breakpoint): Updated.
7766 (arm_linux_remove_hw_breakpoint): Updated.
7767 (arm_linux_insert_watchpoint): Updated.
7768 (arm_linux_remove_watchpoint): Updated.
7769 (arm_linux_new_thread): Updated.
7770 (arm_linux_prepare_to_resume): New function.
7771 (arm_linux_new_fork): New function.
7772 (_initialize_arm_linux_nat): Updated.
7774 2014-03-12 Pedro Alves <palves@redhat.com>
7776 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7778 2014-03-12 Tom Tromey <tromey@redhat.com>
7780 * inf-child.c (return_zero): New function.
7781 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7782 * aix-thread.c (aix_thread_inferior_created): New function.
7783 (aix_thread_attach): Remove.
7784 (init_aix_thread_ops): Don't set to_attach.
7785 (_initialize_aix_thread): Register inferior_created observer.
7786 * corelow.c (init_core_ops): Don't set to_attach or
7788 * exec.c (init_exec_ops): Don't set to_attach or
7790 * infcmd.c (run_command_1): Use find_run_target. Make direct
7792 (attach_command): Use find_attach_target. Make direct target
7794 * record-btrace.c (init_record_btrace_ops): Don't set
7796 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7798 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7799 set to_create_inferior.
7800 * target.c (complete_target_initialization): Add assertion.
7801 (target_create_inferior): Remove.
7802 (find_default_attach, find_default_create_inferior): Remove.
7803 (find_attach_target, find_run_target): New functions.
7804 (find_default_is_async_p, find_default_can_async_p)
7805 (target_supports_non_stop, target_attach): Remove.
7806 (init_dummy_target): Don't set to_create_inferior or
7807 to_supports_non_stop.
7808 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7809 TARGET_DEFAULT_FUNC.
7810 <to_create_inferior>: Add comment.
7811 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7812 TARGET_DEFAULT_RETURN.
7813 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7814 (find_attach_target, find_run_target): Declare.
7815 (target_create_inferior): Remove.
7816 (target_has_execution_1): Update comment.
7817 (target_supports_non_stop): Remove.
7818 * target-delegates.c: Rebuild.
7820 2014-03-12 Pedro Alves <palves@redhat.com>
7822 * inf-child.h: Update comment to not mention Unix.
7824 2014-03-12 Pedro Alves <palves@redhat.com>
7826 * inf-child.c: Update top comment to not mention Unix. Add
7827 generic comment describing how this target is meant to be used.
7828 (inf_child_post_attach, inf_child_post_startup_inferior)
7829 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7832 2014-03-12 Pedro Alves <palves@redhat.com>
7834 * nto-procfs.c: Include inf-child.h.
7835 (procfs_ops): Delete global.
7836 (procfs_can_run): Delete method.
7837 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7838 target pointer instead of referencing procfs_ops.
7839 (procfs_prepare_to_store): Delete.
7840 (init_procfs_ops): Delete function.
7841 (procfs_target): New function, based on init_procfs_ops, but
7842 inherit inf_child_target.
7843 (_initialize_procfs): Use procfs_target.
7845 2014-03-12 Pedro Alves <palves@redhat.com>
7847 * windows-nat.c: Include inf-child.h.
7848 (windows_ops): Delete global.
7849 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7851 (init_windows_ops): Delete function.
7852 (windows_target): New function, based on init_windows_ops, but
7853 inherit inf_child_target.
7854 (_initialize_windows_nat): Use windows_target. Install x86
7855 specific target methods here.
7857 2014-03-10 Doug Evans <xdje42@gmail.com>
7859 * guile/guile.c (call_initialize_gdb_module): New function.
7860 (initialize_guile): Replace call to scm_init_guile with call to
7863 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7865 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7866 in call to TYPE_CODE macro.
7868 2014-03-10 Jerome Guitton <guitton@adacore.com>
7870 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7871 Resolve tagged types to full view.
7873 2014-03-10 Hui Zhu <hui@codesourcery.com>
7875 * target.h (target_insert_breakpoint): Remove "hardware" from its
7878 2014-03-07 Doug Evans <dje@google.com>
7880 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7882 2014-03-07 Doug Evans <dje@google.com>
7884 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7885 Remove unused local comp_dir_attr. Assert exactly one of
7886 stub_comp_unit_die, stub_comp_dir is non-NULL.
7888 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7890 * target.h (complete_target_initialization, add_target):
7893 2014-03-07 Pedro Alves <palves@redhat.com>
7895 * go32-nat.c: Include inf-child.h.
7896 (go32_ops): Delete global.
7897 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7899 (go32_create_inferior): Push the passed in target pointer instead
7900 of referencing go32_ops.
7901 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7902 (go32_target): New function, based on init_go32_ops, but inherit
7904 (_initialize_go32_nat): Use go32_target. Move parts of
7907 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7909 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7910 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7911 SYMBOL_VALUE_ADDRESS.
7912 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7914 2014-03-06 Yao Qi <yao@codesourcery.com>
7916 * breakpoint.c (get_tracepoint_by_number): Remove argument
7917 optional_p. All callers updated. Adjust comments. Update
7919 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7921 2014-03-06 Yao Qi <yao@codesourcery.com>
7923 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7924 early if get_number returns zero. Use 'p' instead of 'args'.
7926 2014-03-06 Yao Qi <yao@codesourcery.com>
7928 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7931 2014-03-06 Yao Qi <yao@codesourcery.com>
7933 PR breakpoints/16508
7934 * tracepoint.c (check_trace_running): New function.
7935 (trace_find_command): Move code to check_trace_running and
7936 call check_trace_running.
7937 (trace_find_pc_command): Likewise.
7938 (trace_find_tracepoint_command): Likewise.
7939 (trace_find_line_command): Likewise.
7940 (trace_find_range_command): Likewise.
7941 * tracepoint.h (check_trace_running): Likewise.
7942 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7944 2014-03-06 Yao Qi <yao@codesourcery.com>
7946 * target.h (struct target_ops) <to_traceframe_info>: Use
7947 TARGET_DEFAULT_NORETURN (tcomplain ()).
7948 * target-delegates.c: Regenerated.
7950 2014-03-05 Pedro Alves <palves@redhat.com>
7953 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7954 void. Update comment.
7955 (dcache_xfer_memory): Delete.
7956 (dcache_read_memory_partial): New, based on the read bits of
7958 (dcache_update): Add status parameter. Use ULONGEST for len, and
7959 adjust. Discard cache lines if the reason for the update was
7961 * dcache.h (dcache_xfer_memory): Delete declaration.
7962 (dcache_read_memory_partial): New declaration.
7963 (dcache_update): Update prototype.
7964 * target.c (raw_memory_xfer_partial): Update the dcache here.
7965 (memory_xfer_partial_1): Don't handle dcache writes here.
7967 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7969 * remote-sim.c (gdbsim_load): Add const to prog.
7971 2014-03-03 Tom Tromey <tromey@redhat.com>
7973 * elfread.c (probe_key): Change to bfd_data.
7974 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7975 now per-BFD, not per-objfile.
7976 * stap-probe.c (stap_probe_destroy): Update comment.
7977 (handle_stap_probe): Allocate on the per-BFD obstack.
7979 2014-03-03 Tom Tromey <tromey@redhat.com>
7981 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7982 * breakpoint.c (create_longjmp_master_breakpoint): Use
7984 (add_location_to_breakpoint, bkpt_probe_insert_location)
7985 (bkpt_probe_remove_location): Update.
7986 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7987 * elfread.c (elf_symfile_relocate_probe): Remove.
7988 (elf_probe_fns): Update.
7989 (insert_exception_resume_breakpoint): Change type of "probe"
7990 parameter to bound_probe.
7991 (check_exception_resume): Update.
7992 * objfiles.c (objfile_relocate1): Don't relocate probes.
7993 * probe.c (bound_probe_s): New typedef.
7994 (parse_probes): Use get_probe_address. Set sal's objfile.
7995 (find_probe_by_pc): Return a bound_probe.
7996 (collect_probes): Return a VEC(bound_probe_s).
7997 (compare_probes): Update.
7998 (gen_ui_out_table_header_info): Change type of "probes"
8000 (info_probes_for_ops): Update.
8001 (get_probe_address): New function.
8002 (probe_safe_evaluate_at_pc): Update.
8003 * probe.h (struct probe_ops) <get_probe_address>: New field.
8004 <set_semaphore, clear_semaphore>: Add objfile parameter.
8005 (struct probe) <objfile>: Remove field.
8007 <address>: Update comment.
8008 (struct bound_probe): New.
8009 (find_probe_by_pc): Return a bound_probe.
8010 (get_probe_address): Declare.
8011 * solib-svr4.c (struct probe_and_action) <address>: New field.
8012 (hash_probe_and_action, equal_probe_and_action): Update.
8013 (register_solib_event_probe): Add address parameter.
8014 (solib_event_probe_at): Update.
8015 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8017 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8018 (stap_get_probe_address): New function.
8019 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8020 (compile_probe_arg): Update.
8021 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8023 (handle_stap_probe): Don't relocate the probe.
8024 (stap_relocate): Remove.
8025 (stap_gen_info_probes_table_values): Update.
8026 (stap_probe_ops): Remove stap_relocate.
8027 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8028 (debug_sym_probe_fns): Update.
8029 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8030 * symtab.c (init_sal): Use memset.
8031 * symtab.h (struct symtab_and_line) <objfile>: New field.
8032 * tracepoint.c (start_tracing, stop_tracing): Update.
8034 2014-03-03 Tom Tromey <tromey@redhat.com>
8036 * probe.h (parse_probes, find_probe_by_pc)
8037 (find_probes_in_objfile): Fix comments.
8039 2014-03-02 Doug Evans <xdje42@gmail.com>
8041 * infrun.c (handle_signal_stop): Replace test for
8042 TARGET_WAITKIND_STOPPED with an assert.
8044 2014-03-02 Doug Evans <xdje42@gmail.com>
8046 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8048 2014-03-02 Doug Evans <xdje42@gmail.com>
8050 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8052 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8054 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8056 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8058 * i386obsd-nat.c: Include "obsd-nat.h".
8059 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8061 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8063 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8065 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8067 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8069 * mips64obsd-nat.c: Include "obsd-nath".
8070 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8072 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8074 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8076 * amd64obsd-nat.c: Include "obsd-nat,h.
8077 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8079 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8081 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8083 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8084 (find_overload_match): Update call to find_oload_champ.
8085 (find_oload_champ_namespace_loop): Likewise
8087 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8089 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8091 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8092 * config/sparc/obsd64.mh: New file.
8093 * sparc64obsd-nat.c: New file.
8095 * obsd-nat.h: New file.
8096 * obsd-nat.c: New file.
8097 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8098 (ALLDEPFILES): Add obsd-nat.c.
8100 2014-02-28 Tom Tromey <tromey@redhat.com>
8102 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8103 * cli-out.h (cli_ui_out_impl): Now const.
8104 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8105 * ui-out.c (struct ui_out) <impl>: Now const.
8106 (default_ui_out_impl): Now const.
8107 (ui_out_new): Make 'impl' parameter const.
8108 * ui-out.h (ui_out_new): Update.
8110 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8112 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8114 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8116 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8118 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8120 Additional PR 8882 fix.
8121 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8123 2014-02-27 Pedro Alves <palves@redhat.com>
8125 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8128 2014-02-27 Pedro Alves <palves@redhat.com>
8131 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8132 * nat/linux-waitpid.c: Include string.h.
8133 (status_to_str): Moved here and made extern.
8134 * nat/linux-waitpid.h (status_to_str): New declaration.
8136 2014-02-27 Hui Zhu <hui@codesourcery.com>
8139 * infrun.c (ptid_match): Move ...
8140 * common/ptid.c (ptid_match): ... here.
8141 * inferior.h (ptid_match): Move ...
8142 * common/ptid.h (ptid_match): ... here.
8144 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8146 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8147 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8150 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8152 * obsd-tdep.c (obsd_auxv_parse): New function.
8153 (obsd_init_abi): Set auxv_parse.
8155 * gdbarch.sh (auxv_parse): New.
8156 * gdbarch.h: Regenerated.
8157 * gdbarch.c: Regenerated.
8158 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8160 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8162 * guile/scm-value.c (gdbscm_history_append_x): New function.
8163 (value_functions): Add it.
8165 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8167 * dwarf2read.c (attr_value_as_address): New function.
8168 (dwarf2_find_base_address, read_call_site_scope): Use
8169 attr_value_as_address in place of DW_ADDR.
8170 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8171 the low and high addresses. Slight rework of the handling
8172 of the high pc being a constant form, and limit it to
8173 DWARF verson 4 or higher.
8174 (dwarf2_record_block_ranges): Likewise.
8175 (read_partial_die): Likewise.
8176 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8178 2014-02-26 Tom Tromey <tromey@redhat.com>
8180 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8182 2014-02-26 Tom Tromey <tromey@redhat.com>
8184 * elfread.c (elf_read_minimal_symbols): Return early if
8185 minimal symbols have already been read. Add "ei" parameter.
8186 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8187 * minsyms.c (prim_record_minimal_symbol_full): Update.
8188 * objfiles.h (struct objstats) <n_minsyms>: Move...
8189 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8190 * symmisc.c (print_objfile_statistics): Update.
8192 2014-02-26 Tom Tromey <tromey@redhat.com>
8194 * elfread.c (elf_read_minimal_symbols): New function, from
8196 (elf_symfile_read): Call it.
8198 2014-02-26 Tom Tromey <tromey@redhat.com>
8200 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8201 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8202 (lookup_minimal_symbol_solib_trampoline)
8203 (lookup_minimal_symbol_by_pc_section_1)
8204 (lookup_minimal_symbol_and_objfile): Update.
8205 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8206 Don't allocate a minimal symbol if minsyms have already been read.
8207 (build_minimal_symbol_hash_tables): Update.
8208 (install_minimal_symbols): Do nothing if minsyms already read.
8209 Use the per-BFD obstack.
8210 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8211 * objfiles.c (allocate_objfile): Call
8212 terminate_minimal_symbol_table later.
8213 (have_minimal_symbols): Update.
8214 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8215 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8216 Move from struct objfile.
8217 <minsyms_read>: New field.
8218 (struct objfile) <msymbols, minimal_symbol_count,
8219 msymbol_hash, msymbol_demangled_hash>: Move.
8220 (ALL_OBJFILE_MSYMBOLS): Update.
8221 * symfile.c (read_symbols): Set minsyms_read.
8222 (reread_symbols): Update.
8223 * symmisc.c (dump_objfile, dump_msymbols): Update.
8225 2014-02-26 Tom Tromey <tromey@redhat.com>
8227 * minsyms.c (msymbols_sort): Remove.
8228 * minsyms.h (msymbols_sort): Remove.
8229 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8230 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8231 * elfread.c (elf_symtab_read): Don't add section offsets.
8232 * xcoffread.c (record_minimal_symbol): Don't add section offset
8233 to minimal symbol address.
8234 * somread.c (text_offset, data_offset): Remove.
8235 (som_symtab_read): Don't add section offsets to minimal symbol
8237 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8238 Don't add section offsets to minimal symbols.
8239 * coffread.c (coff_symtab_read): Don't add section offsets
8240 to minimal symbol addresses.
8241 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8242 to minimal symbol addresses.
8243 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8244 section offset to minimal symbol addresses.
8245 * mdebugread.c (parse_partial_symbols): Don't add section
8246 offset to minimal symbol addresses.
8247 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8248 offset to minimal symbol addresses.
8250 2014-02-26 Tom Tromey <tromey@redhat.com>
8252 * ada-lang.c (ada_main_name): Update.
8253 (ada_add_standard_exceptions): Update.
8254 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8255 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8256 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8257 * auxv.c (ld_so_xfer_auxv): Update.
8258 * avr-tdep.c (avr_scan_prologue): Update.
8259 * ax-gdb.c (gen_var_ref): Update.
8260 * blockframe.c (get_pc_function_start)
8261 (find_pc_partial_function_gnu_ifunc): Update.
8262 * breakpoint.c (create_overlay_event_breakpoint)
8263 (create_longjmp_master_breakpoint)
8264 (create_std_terminate_master_breakpoint)
8265 (create_exception_master_breakpoint): Update.
8266 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8267 * c-valprint.c (c_val_print): Update.
8268 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8269 * common/agent.c (agent_look_up_symbols): Update.
8270 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8271 * dwarf2loc.c (call_site_to_target_addr): Update.
8272 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8273 * elfread.c (elf_gnu_ifunc_record_cache)
8274 (elf_gnu_ifunc_resolve_by_got): Update.
8275 * findvar.c (default_read_var_value): Update.
8276 * frame.c (inside_main_func): Update.
8277 * frv-tdep.c (frv_frame_this_id): Update.
8278 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8279 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8281 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8282 (hppa_hpux_find_dummy_bpaddr): Update.
8283 * hppa-tdep.c (hppa_symbol_address): Update.
8284 * infcmd.c (until_next_command): Update.
8285 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8287 * linespec.c (minsym_found, add_minsym): Update.
8288 * linux-nat.c (get_signo): Update.
8289 * linux-thread-db.c (inferior_has_bug): Update.
8290 * m32c-tdep.c (m32c_return_value)
8291 (m32c_m16c_address_to_pointer): Update.
8292 * m32r-tdep.c (m32r_frame_this_id): Update.
8293 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8294 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8295 * maint.c (maintenance_translate_address): Update.
8296 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8297 (frob_address): New function.
8298 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8299 frob_address. Rename parameter to "pc_in".
8300 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8302 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8304 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8305 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8306 * objc-lang.c (find_objc_msgsend): Update.
8307 * objfiles.c (objfile_relocate1): Update.
8308 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8309 * p-valprint.c (pascal_val_print): Update.
8310 * parse.c (write_exp_msymbol): Update.
8311 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8312 (ppc_elfv2_skip_entrypoint): Update.
8313 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8314 * printcmd.c (build_address_symbolic, msym_info)
8315 (address_info): Update.
8316 * proc-service.c (ps_pglobal_lookup): Update.
8317 * psymtab.c (find_pc_sect_psymtab_closer)
8318 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8319 Change msymbol parameter to bound_minimal_symbol.
8320 * ravenscar-thread.c (get_running_thread_id): Update.
8321 * remote.c (remote_check_symbols): Update.
8322 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8324 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8325 * solib-dsbt.c (lm_base): Update.
8326 * solib-frv.c (lm_base, main_got): Update.
8327 * solib-irix.c (locate_base): Update.
8328 * solib-som.c (som_solib_create_inferior_hook)
8329 (link_map_start): Update.
8330 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8331 * solib-svr4.c (elf_locate_base, enable_break): Update.
8332 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8333 (flush_ea_cache): Update.
8334 * stabsread.c (define_symbol, scan_file_globals): Update.
8335 * stack.c (find_frame_funname): Update.
8336 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8337 (debug_qf_find_pc_sect_symtab): Update.
8338 * symfile.c (simple_read_overlay_table)
8339 (simple_overlay_update): Update.
8340 * symfile.h (struct quick_symbol_functions)
8341 <find_pc_sect_symtab>: Change type of msymbol to
8342 bound_minimal_symbol.
8343 * symmisc.c (dump_msymbols): Update.
8344 * symtab.c (find_pc_sect_symtab_via_partial)
8345 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8346 (search_symbols, print_msymbol_info): Update.
8347 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8348 (MSYMBOL_VALUE_ADDRESS): Redefine.
8349 (BMSYMBOL_VALUE_ADDRESS): New macro.
8350 * tracepoint.c (scope_info): Update.
8351 * tui/tui-disasm.c (tui_find_disassembly_address)
8352 (tui_get_begin_asm_address): Update.
8353 * valops.c (find_function_in_inferior): Update.
8354 * value.c (value_static_field, value_fn_field): Update.
8356 2014-02-26 Tom Tromey <tromey@redhat.com>
8358 * ada-lang.c (ada_update_initial_language): Update.
8359 (ada_main_name, ada_has_this_exception_support): Update.
8360 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8361 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8362 * arm-tdep.c (arm_skip_stub): Update.
8363 * auxv.c (ld_so_xfer_auxv): Update.
8364 * avr-tdep.c (avr_scan_prologue): Update.
8365 * ax-gdb.c (gen_var_ref): Update.
8366 * breakpoint.c (struct breakpoint_objfile_data)
8367 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8368 type to bound_minimal_symbol.
8369 (create_overlay_event_breakpoint)
8370 (create_longjmp_master_breakpoint)
8371 (create_std_terminate_master_breakpoint)
8372 (create_exception_master_breakpoint): Update.
8373 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8374 * c-exp.y (classify_name): Update.
8375 * coffread.c (coff_symfile_read): Update.
8376 * common/agent.c (agent_look_up_symbols): Update.
8377 * d-lang.c (d_main_name): Update.
8378 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8379 * dec-thread.c (enable_dec_thread): Update.
8380 * dwarf2loc.c (call_site_to_target_addr): Update.
8381 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8382 * eval.c (evaluate_subexp_standard): Update.
8383 * findvar.c (struct minsym_lookup_data) <result>: Change type
8384 to bound_minimal_symbol.
8386 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8387 * frame.c (inside_main_func): Update.
8388 * frv-tdep.c (frv_frame_this_id): Update.
8389 * gcore.c (call_target_sbrk): Update.
8390 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8391 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8393 * go-lang.c (go_main_name): Update.
8394 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8395 (hppa_hpux_find_import_stub_for_addr): Update.
8396 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8397 Update. Change return type.
8398 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8400 * jit.c (jit_breakpoint_re_set_internal): Update.
8401 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8403 * linux-nat.c (get_signo): Update.
8404 * linux-thread-db.c (inferior_has_bug): Update
8405 * m32c-tdep.c (m32c_return_value)
8406 (m32c_m16c_address_to_pointer): Update.
8407 * m32r-tdep.c (m32r_frame_this_id): Update.
8408 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8409 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8410 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8411 lookup_minimal_symbol. Change return type.
8412 (lookup_minimal_symbol): Remove.
8413 (lookup_bound_minimal_symbol): Update.
8414 (lookup_minimal_symbol_text): Change return type.
8415 (lookup_minimal_symbol_solib_trampoline): Change return type.
8416 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8417 (lookup_minimal_symbol_solib_trampoline): Change return type.
8418 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8419 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8420 (value_nsstring, find_imps): Update.
8421 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8422 * p-lang.c (pascal_main_name): Update.
8423 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8424 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8425 * proc-service.c (ps_pglobal_lookup): Update.
8426 * ravenscar-thread.c (get_running_thread_msymbol): Change
8428 (has_ravenscar_runtime, get_running_thread_id): Update.
8429 * remote.c (remote_check_symbols): Update.
8430 * sol-thread.c (ps_pglobal_lookup): Update.
8431 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8432 * solib-dsbt.c (lm_base): Update.
8433 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8435 * solib-irix.c (locate_base): Update.
8436 * solib-som.c (som_solib_create_inferior_hook)
8437 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8439 * solib-spu.c (spu_enable_break): Update.
8440 * solib-svr4.c (elf_locate_base, enable_break): Update.
8441 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8442 (flush_ea_cache): Update.
8443 * stabsread.c (define_symbol): Update.
8444 * symfile.c (simple_read_overlay_table): Update.
8445 * symtab.c (find_pc_sect_line): Update.
8446 * tracepoint.c (scope_info): Update.
8447 * tui-disasm.c (tui_get_begin_asm_address): Update.
8448 * value.c (value_static_field): Update.
8450 2014-02-26 Tom Tromey <tromey@redhat.com>
8452 * minsyms.c (prim_record_minimal_symbol_full): Use
8453 SET_MSYMBOL_VALUE_ADDRESS.
8454 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8455 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8456 SET_MSYMBOL_VALUE_ADDRESS.
8457 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8458 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8460 2014-02-26 Tom Tromey <tromey@redhat.com>
8462 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8463 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8464 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8465 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8466 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8467 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8468 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8469 * ada-lang.c (ada_main_name): Update.
8470 (ada_lookup_simple_minsym): Update.
8471 (ada_make_symbol_completion_list): Update.
8472 (ada_add_standard_exceptions): Update.
8473 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8474 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8475 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8476 * arm-tdep.c (skip_prologue_function): Update.
8477 (arm_skip_stack_protector, arm_skip_stub): Update.
8478 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8479 (arm_wince_skip_main_prologue): Update.
8480 * auxv.c (ld_so_xfer_auxv): Update.
8481 * avr-tdep.c (avr_scan_prologue): Update.
8482 * ax-gdb.c (gen_var_ref): Update.
8483 * block.c (call_site_for_pc): Update.
8484 * blockframe.c (get_pc_function_start): Update.
8485 (find_pc_partial_function_gnu_ifunc): Update.
8486 * breakpoint.c (create_overlay_event_breakpoint): Update.
8487 (create_longjmp_master_breakpoint): Update.
8488 (create_std_terminate_master_breakpoint): Update.
8489 (create_exception_master_breakpoint): Update.
8490 (resolve_sal_pc): Update.
8491 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8492 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8494 * c-valprint.c (c_val_print): Update.
8495 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8496 * coffread.c (coff_symfile_read): Update.
8497 * common/agent.c (agent_look_up_symbols): Update.
8498 * dbxread.c (find_stab_function_addr): Update.
8499 (end_psymtab): Update.
8500 * dwarf2loc.c (call_site_to_target_addr): Update.
8501 (func_verify_no_selftailcall): Update.
8502 (tailcall_dump): Update.
8503 (call_site_find_chain_1): Update.
8504 (dwarf_expr_reg_to_entry_parameter): Update.
8505 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8506 (elf_gnu_ifunc_resolve_by_got): Update.
8507 * f-valprint.c (info_common_command): Update.
8508 * findvar.c (read_var_value): Update.
8509 * frame.c (get_prev_frame_1): Update.
8510 (inside_main_func): Update.
8511 * frv-tdep.c (frv_skip_main_prologue): Update.
8512 (frv_frame_this_id): Update.
8513 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8514 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8515 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8516 (gnuv3_skip_trampoline): Update.
8517 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8518 (hppa64_hpux_in_solib_call_trampoline): Update.
8519 (hppa_hpux_skip_trampoline_code): Update.
8520 (hppa64_hpux_search_dummy_call_sequence): Update.
8521 (hppa_hpux_find_import_stub_for_addr): Update.
8522 (hppa_hpux_find_dummy_bpaddr): Update.
8523 * hppa-tdep.c (hppa_symbol_address)
8524 (hppa_lookup_stub_minimal_symbol): Update.
8525 * i386-tdep.c (i386_skip_main_prologue): Update.
8526 (i386_pe_skip_trampoline_code): Update.
8527 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8528 * infcall.c (get_function_name): Update.
8529 * infcmd.c (until_next_command): Update.
8530 * jit.c (jit_breakpoint_re_set_internal): Update.
8531 (jit_inferior_init): Update.
8532 * linespec.c (minsym_found): Update.
8533 (add_minsym): Update.
8534 * linux-fork.c (info_checkpoints_command): Update.
8535 * linux-nat.c (get_signo): Update.
8536 * linux-thread-db.c (inferior_has_bug): Update.
8537 * m32c-tdep.c (m32c_return_value): Update.
8538 (m32c_m16c_address_to_pointer): Update.
8539 (m32c_m16c_pointer_to_address): Update.
8540 * m32r-tdep.c (m32r_frame_this_id): Update.
8541 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8542 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8543 * maint.c (maintenance_translate_address): Update.
8544 * minsyms.c (add_minsym_to_hash_table): Update.
8545 (add_minsym_to_demangled_hash_table): Update.
8546 (msymbol_objfile): Update.
8547 (lookup_minimal_symbol): Update.
8548 (iterate_over_minimal_symbols): Update.
8549 (lookup_minimal_symbol_text): Update.
8550 (lookup_minimal_symbol_by_pc_name): Update.
8551 (lookup_minimal_symbol_solib_trampoline): Update.
8552 (lookup_minimal_symbol_by_pc_section_1): Update.
8553 (lookup_minimal_symbol_and_objfile): Update.
8554 (prim_record_minimal_symbol_full): Update.
8555 (compare_minimal_symbols): Update.
8556 (compact_minimal_symbols): Update.
8557 (build_minimal_symbol_hash_tables): Update.
8558 (install_minimal_symbols): Update.
8559 (terminate_minimal_symbol_table): Update.
8560 (find_solib_trampoline_target): Update.
8561 (minimal_symbol_upper_bound): Update.
8562 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8563 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8564 (mips_skip_pic_trampoline_code): Update.
8565 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8566 * objc-lang.c (selectors_info): Update.
8567 (classes_info): Update.
8568 (find_methods): Update.
8569 (find_imps): Update.
8570 (find_objc_msgsend): Update.
8571 * objfiles.c (objfile_relocate1): Update.
8572 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8573 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8574 * p-valprint.c (pascal_val_print): Update.
8575 * parse.c (write_exp_msymbol): Update.
8576 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8577 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8578 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8579 * printcmd.c (build_address_symbolic): Update.
8581 (address_info): Update.
8582 * proc-service.c (ps_pglobal_lookup): Update.
8583 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8584 (find_pc_sect_psymtab): Update.
8585 * python/py-framefilter.c (py_print_frame): Update.
8586 * ravenscar-thread.c (get_running_thread_id): Update.
8587 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8589 * remote.c (remote_check_symbols): Update.
8590 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8591 (rs6000_skip_trampoline_code): Update.
8592 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8593 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8594 * solib-dsbt.c (lm_base): Update.
8595 * solib-frv.c (lm_base): Update.
8597 * solib-irix.c (locate_base): Update.
8598 * solib-som.c (som_solib_create_inferior_hook): Update.
8599 (som_solib_desire_dynamic_linker_symbols): Update.
8600 (link_map_start): Update.
8601 * solib-spu.c (spu_enable_break): Update.
8602 (ocl_enable_break): Update.
8603 * solib-svr4.c (elf_locate_base): Update.
8604 (enable_break): Update.
8605 * spu-tdep.c (spu_get_overlay_table): Update.
8606 (spu_catch_start): Update.
8607 (flush_ea_cache): Update.
8608 * stabsread.c (define_symbol): Update.
8609 (scan_file_globals): Update.
8610 * stack.c (find_frame_funname): Update.
8611 (frame_info): Update.
8612 * symfile.c (simple_read_overlay_table): Update.
8613 (simple_overlay_update): Update.
8614 * symmisc.c (dump_msymbols): Update.
8615 * symtab.c (fixup_section): Update.
8616 (find_pc_sect_line): Update.
8617 (skip_prologue_sal): Update.
8618 (search_symbols): Update.
8619 (print_msymbol_info): Update.
8620 (rbreak_command): Update.
8621 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8622 (completion_list_objc_symbol): Update.
8623 (default_make_symbol_completion_list_break_on): Update.
8624 * tracepoint.c (scope_info): Update.
8625 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8626 (tui_get_begin_asm_address): Update.
8627 * valops.c (find_function_in_inferior): Update.
8628 * value.c (value_static_field): Update.
8629 (value_fn_field): Update.
8631 2014-02-26 Tom Tromey <tromey@redhat.com>
8633 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8634 bound minimal symbols. Move code that knows about minsym
8636 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8638 * minsyms.h (minimal_symbol_upper_bound): Declare.
8639 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8640 minimal_symbol_upper_bound.
8642 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8644 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8645 Use the type's name if its basic type does not have a tag.
8647 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8649 * dwarf2read.c (read_subrange_type): Add comment.
8651 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8653 * dwarf2read.c (update_enumeration_type_from_children): New
8654 function, mostly extracted from process_structure_scope.
8655 (read_enumeration_type): Call update_enumeration_type_from_children.
8656 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8657 and flag_flag_enum fields.
8659 2014-02-26 Pedro Alves <palves@redhat.com>
8661 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8662 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8663 to_xfer_partial method.
8665 2014-02-26 Pedro Alves <palves@redhat.com>
8667 * target.c (complete_target_initialization): Don't install
8668 default_xfer_partial as to_xfer_partial hook.
8670 (update_current_target): Don't INHERIT nor de_fault
8671 deprecated_xfer_memory. Delete de_fault macro.
8672 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8673 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8674 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8677 2014-02-26 Pedro Alves <palves@redhat.com>
8679 * go32-nat.c (my_write_child): New function.
8680 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8681 (go32_xfer_partial): New function.
8682 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8683 Instead install a to_xfer_partial hook.
8685 2014-02-26 Pedro Alves <palves@redhat.com>
8687 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8688 to_xfer_partial helper. Rewrite.
8689 (procfs_xfer_partial): New function.
8690 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8691 Install a to_xfer_partial hook.
8693 2014-02-26 Pedro Alves <palves@redhat.com>
8695 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8696 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8697 (m32r_xfer_partial): New function.
8698 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8699 Install a to_xfer_partial hook.
8701 2014-02-26 Pedro Alves <palves@redhat.com>
8703 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8705 (mips_xfer_partial): New function.
8706 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8707 hook. Install a to_xfer_partial hook.
8709 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8711 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8712 * gdbtypes.c (create_array_type_with_stride): New function,
8713 renaming create_array_type, but with an added parameter
8714 called "bit_stride".
8715 (create_array_type): Re-implement using
8716 create_array_type_with_stride.
8717 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8718 and DW_AT_bit_stride attributes.
8720 2014-02-26 Pedro Alves <palves@redhat.com>
8722 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8723 task-specific breakpoints.
8725 2014-02-25 Pedro Alves <palves@redhat.com>
8727 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8728 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8730 2014-02-25 Stan Shebs <stan@codesourcery.com>
8732 * defs.h: Annotate comments for Doxygen.
8734 2014-02-25 Tom Tromey <tromey@redhat.com>
8736 * target.h (target_ignore): Don't declare.
8737 * target.c (target_ignore): Remove.
8739 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8742 * auto-load.c (auto_load_objfile_script_1): Change filename to
8745 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8747 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8748 documentation. Adjust prototype to match the target_ops
8749 to_xfer_partial method. Adjust implementation accordingly.
8751 2014-02-25 Hui Zhu <hui@codesourcery.com>
8753 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8756 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8758 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8759 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8760 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8761 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8762 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8763 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8764 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8765 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8767 (rl78_register_type): Use a data pointer type for SP and
8768 new pseudo registers mentioned above. Use a 16 bit integer
8769 type for all other register pairs.
8770 (rl78_register_name, rl78_g10_register_name): Update for
8771 new pseudo registers.
8772 (rl78_pseudo_register_read): Likewise.
8773 (rl78_pseudo_register_write): Likewise.
8774 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8775 to the newly added pseudo registers.
8777 2014-02-24 Doug Evans <dje@google.com>
8779 * value.c (record_latest_value): Fix comment.
8780 * printcmd.c (print_command_1): Remove code to handle -1 return from
8781 record_latest_value.
8783 2014-02-24 Pedro Alves <palves@redhat.com>
8785 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8786 deprecated_xfer_memory hook.
8787 (procfs_xfer_partial): Call procfs_xfer_memory instead
8788 of the deprecated_xfer_memory target hook.
8789 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8792 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8794 * windows-nat.c (windows_xfer_shared_libraries): Return
8795 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8796 requested object is TARGET_OBJECT_LIBRARIES.
8798 2014-02-24 Yao Qi <yao@codesourcery.com>
8800 * target.h (enum target_xfer_status)
8801 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8802 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8804 * corefile.c (memory_error_message): User updated.
8805 * exec.c (section_table_read_available_memory): Likewise.
8806 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8807 * target.c (target_xfer_status_to_string): Likewise.
8808 (raw_memory_xfer_partial): Likewise.
8809 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8810 * valops.c (read_value_memory): Likewise.
8811 * exec.h: Update comments.
8813 2014-02-24 Yao Qi <yao@codesourcery.com>
8815 * target.c (target_xfer_status_to_string): Rename argument err
8817 * target.h (target_xfer_status_to_string): Update declaration.
8818 Replace target_xfer_error_to_string with
8819 target_xfer_status_to_string in comment.
8821 2014-02-24 Yao Qi <yao@codesourcery.com>
8823 * mips-linux-nat.c (super_close): Update its type.
8824 (mips_linux_close): Pass 'self' to super_close.
8826 2014-02-24 Yao Qi <yao@codesourcery.com>
8828 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8829 * corefile.c (read_memory): Adjusted.
8830 * target.c (target_write_with_progress): Adjusted.
8832 2014-02-23 Yao Qi <yao@codesourcery.com>
8836 2013-10-25 Yao Qi <yao@codesourcery.com>
8838 * remote.c (remote_traceframe_info): Return early if
8839 traceframe is not selected.
8841 2013-07-19 Yao Qi <yao@codesourcery.com>
8843 * target.c (update_current_target): Change the default action
8844 of 'to_traceframe_info' from tcomplain to return_zero.
8845 * target.h (struct target_ops) <to_traceframe_info>: Add more
8848 2014-02-23 Yao Qi <yao@codesourcery.com>
8850 * valops.c (read_value_memory): Rewrite it. Call
8851 target_xfer_partial in a loop.
8852 * exec.h (section_table_available_memory): Remove declaration.
8853 Move comments to ...
8854 * exec.c (section_table_available_memory): ... here. Make it
8857 2014-02-23 Yao Qi <yao@codesourcery.com>
8859 * exec.c (section_table_read_available_memory): New function.
8860 * exec.h (section_table_read_available_memory): Declare.
8861 * ctf.c (ctf_xfer_partial): Call
8862 section_table_read_available_memory.
8863 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8865 2014-02-23 Yao Qi <yao@codesourcery.com>
8867 * ctf.c (ctf_xfer_partial): Move code to ...
8868 * exec.c (exec_read_partial_read_only): ... it. New function.
8869 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8870 * tracefile.c: Include "exec.h".
8871 * exec.h (exec_read_partial_read_only): Declare.
8873 2014-02-23 Yao Qi <yao@codesourcery.com>
8875 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8876 (tfile_has_memory): Remove.
8877 (init_tfile_ops): Don't set fields to_has_all_memory and
8878 to_has_memory of tfile_ops.
8879 * tracefile.c (tracefile_has_all_memory): New function.
8880 (tracefile_has_memory): New function.
8881 (init_tracefile_ops): Initialize fields to_has_all_memory and
8882 to_has_memory of 'ops'.
8884 2014-02-23 Yao Qi <yao@codesourcery.com>
8886 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8887 (ctf_thread_alive, ctf_get_trace_status): Remove.
8888 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8890 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8891 (tfile_has_stack, tfile_has_registers): Remove.
8892 (tfile_thread_alive): Remove.
8893 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8895 * tracefile.c (tracefile_has_stack): New function.
8896 (tracefile_has_registers): New function.
8897 (tracefile_thread_alive): New function.
8898 (tracefile_get_trace_status): New function.
8899 (init_tracefile_ops): New function.
8900 * tracefile.h (init_tracefile_ops): Declare.
8902 2014-02-23 Yao Qi <yao@codesourcery.com>
8904 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8905 (O_LARGEFILE): Likewise.
8906 (tfile_ops): Likewise.
8907 (TRACE_HEADER_SIZE): Likewise.
8908 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8909 (cur_data_size): Likewise.
8910 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8911 (tfile_close, tfile_files_info): Likewise.
8912 (tfile_get_trace_status): Likewise.
8913 (tfile_get_tracepoint_status): Likewise.
8914 (tfile_get_traceframe_address): Likewise.
8915 (tfile_trace_find, match_blocktype): Likewise.
8916 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8917 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8918 (tfile_get_trace_state_variable_value): Likewise.
8919 (tfile_has_all_memory, tfile_has_memory): Likewise.
8920 (tfile_has_stack, tfile_has_registers): Likewise.
8921 (tfile_thread_alive, build_traceframe_info): Likewise.
8922 (tfile_traceframe_info, init_tfile_ops): Likewise.
8923 (_initialize_tracepoint): Don't call init_tfile_ops
8924 and add_target_with_completer.
8925 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8926 exec.h, completer.h and filenames.h.
8927 (_initialize_tracefile_tfile): New function.
8929 2014-02-23 Yao Qi <yao@codesourcery.com>
8931 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8933 (HFILES_NO_SRCDIR): Add tracefile.h.
8934 * ctf.c: Include "tracefile.h".
8935 * tracefile.h: New file.
8936 * tracefile.c: New file
8937 * tracefile-tfile.c: New file.
8938 * tracepoint.c: Include "tracefile.h".
8939 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8940 (stop_reason_names): Add const.
8941 (trace_file_writer_xfree): Move it to tracefile.c.
8942 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8943 (trace_save_ctf): Likewise.
8944 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8945 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8946 (tfile_write_header, tfile_write_regblock_type): Likewise.
8947 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8948 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8949 (tfile_write_raw_data, tfile_end): Likewise.
8950 (tfile_trace_file_writer_new): Likewise.
8951 (free_uploaded_tp): Make it extern.
8952 (free_uploaded_tsv): Make it extern.
8953 (_initialize_tracepoint): Move code to register command 'tsave'
8955 * tracepoint.h (stop_reason_names): Declare.
8956 (struct trace_frame_write_ops): Move it to tracefile.h.
8957 (struct trace_file_write_ops): Likewise.
8958 (struct trace_file_writer): Likewise.
8959 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8961 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8964 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8966 (get_cores_used_by_process): New parameter num_cores, use it.
8967 (linux_xfer_osdata_processes): Pass num_cores to it.
8968 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8971 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8973 * target.c (memory_xfer_partial): Fix length arg in call to
8974 breakpoint_xfer_memory.
8976 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8979 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8980 number comes after the + or - signs. Adjust length of register
8981 name to be extracted.
8983 2014-02-20 Tom Tromey <tromey@redhat.com>
8985 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8986 (ada_varobj_ops): Mark "extern".
8988 2014-02-20 Tom Tromey <tromey@redhat.com>
8990 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8992 2014-02-20 Doug Evans <xdje42@gmail.com>
8994 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8995 All callers updated.
8996 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8997 All callers updated.
8998 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8999 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9001 2014-02-20 lin zuojian <manjian2006@gmail.com>
9002 Joel Brobecker <brobecker@adacore.com>
9003 Doug Evans <xdje42@gmail.com>
9006 * dwarf2read.c (struct die_info): New member in_process.
9007 (reset_die_in_process): New function.
9008 (process_die): Set it at the start, reset when returning.
9009 (inherit_abstract_dies): Only call process_die if origin_child_die
9010 not already being processed.
9012 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9014 * windows-nat.c (handle_unload_dll): Add function documentation.
9015 (do_initial_windows_stuff): Add comment explaining why we wait
9016 until after inferior initialization has finished before
9017 processing all DLLs.
9019 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9021 * windows-nat.c (get_module_name): Delete.
9022 (windows_get_exec_module_filename): New function, mostly
9023 inspired from get_module_name.
9024 (windows_pid_to_exec_file): Replace call to get_module_name
9025 by call to windows_get_exec_module_filename.
9027 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9029 * windows-nat.c (handle_load_dll): Rewrite this function's
9030 introductory comment. Remove code using get_module_name
9031 to get the DLL's name.
9033 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9035 * windows-nat.c (get_windows_debug_event): Ignore
9036 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9037 if windows_initialization_done == 0.
9038 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9039 Adjust implementation to always load all DLLs.
9040 (do_initial_windows_stuff): Replace call to
9041 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9043 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9045 * windows-nat.c (_initialize_windows_nat): Deprecate the
9046 "dll-symbols" command. Turn the "add-shared-symbol-files"
9047 and "assf" aliases into commands, and deprecate them as well.
9048 * NEWS: Add entry explaining that "dll-symbols" and its two
9049 aliases are now deprecated.
9051 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9053 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9054 new-line in debug string. Remove trailing spaces.
9056 2014-02-19 Stan Shebs <stan@codesourcery.com>
9058 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9060 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9062 * NEWS: Add entry for the new feature
9063 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9066 2014-02-19 Stan Shebs <stan@codesourcery.com>
9068 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9070 2014-02-19 Pedro Alves <palves@redhat.com>
9072 * common/ptid.h (struct ptid): Mention that process_stratum
9073 targets should prefer ptid.lwp.
9075 2014-02-19 Pedro Alves <palves@redhat.com>
9077 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9078 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9079 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9080 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9081 store remote thread ids rather than ptid.tid.
9082 (_initialize_remote): Adjust.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target.c (target_get_unwinder): Rewrite.
9087 (target_get_tailcall_unwinder): Rewrite.
9088 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9089 (record_btrace_to_get_tailcall_unwinder): New function.
9090 (init_record_btrace_ops): Update.
9091 * target.h (struct target_ops) <to_get_unwinder,
9092 to_get_tailcall_unwinder>: Now function pointers. Use
9093 TARGET_DEFAULT_RETURN.
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9099 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9103 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9105 * target-delegates.c: Rebuild.
9106 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9107 TARGET_DEFAULT_FUNC.
9108 * target.c (default_target_decr_pc_after_break): Rename from
9109 forward_target_decr_pc_after_break. Simplify.
9110 (target_decr_pc_after_break): Rely on delegation.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target.c (update_current_target): Do not INHERIT to_doc or
9115 to_magic. Do not de_fault to_open or to_close.
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9119 * gcore.h (objfile_find_memory_regions): Declare.
9120 * gcore.c (objfile_find_memory_regions): No longer static. Add
9122 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9123 * exec.c: Include gcore.h.
9124 (exec_set_find_memory_regions): Remove.
9125 (exec_find_memory_regions): Remove.
9126 (exec_do_find_memory_regions): Remove.
9127 (init_exec_ops): Update.
9128 * defs.h (exec_set_find_memory_regions): Remove.
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9132 * target-delegates.c: Rebuild.
9133 * target.h (struct target_ops) <to_extra_thread_info,
9134 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9135 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9136 not 0, in TARGET_DEFAULT_RETURN.
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target.c (complete_target_initialization): Remove casts. Use
9141 return_zero_has_execution.
9142 (return_zero): Add "ignore" argument.
9143 (return_zero_has_execution): New function.
9144 (init_dummy_target): Remove casts. Use
9145 return_zero_has_execution.
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target.c (update_current_target): Update comments. Do not
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9156 * corelow.c (core_read_description): Delegate when needed.
9157 * remote.c (remote_read_description): Delegate when needed.
9158 * target-delegates.c: Rebuild.
9159 * target.c (target_read_description): Rewrite.
9160 * target.h (struct target_ops) <to_read_description>: Update
9161 comment. Use TARGET_DEFAULT_RETURN.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target-delegates.c: Rebuild.
9166 * target.c (update_current_target): Don't inherit or default
9168 (find_default_run_target): Check against delegate_can_run.
9169 * target.h (struct target_ops) <to_can_run>: Use
9170 TARGET_DEFAULT_RETURN.
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * target-delegates.c: Rebuild.
9175 * target.c (target_disconnect): Unconditionally delegate.
9176 * target.h (struct target_ops) <to_disconnect>: Use
9177 TARGET_DEFAULT_NORETURN.
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9181 * record.c (record_stop): Unconditionally delegate.
9182 * target-delegates.c: Rebuild.
9183 * target.c (target_stop_recording): Unconditionally delegate.
9184 * target.h (struct target_ops) <to_stop_recording>: Use
9185 TARGET_DEFAULT_IGNORE.
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * target-delegates.c: Rebuild.
9190 * target.c (target_enable_btrace): Unconditionally delegate.
9191 * target.h (struct target_ops) <to_enable_btrace>: Use
9192 TARGET_DEFAULT_NORETURN.
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9196 * target-delegates.c: Rebuild.
9197 * target.c (target_read_btrace): Unconditionally delegate.
9198 * target.h (struct target_ops) <to_read_btrace>: Use
9199 TARGET_DEFAULT_NORETURN.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target-delegates.c: Rebuild.
9204 * target.c (target_teardown_btrace): Unconditionally delegate.
9205 * target.h (struct target_ops) <to_teardown_btrace>: Use
9206 TARGET_DEFAULT_NORETURN.
9208 2014-02-19 Tom Tromey <tromey@redhat.com>
9210 * target-delegates.c: Rebuild.
9211 * target.c (target_disable_btrace): Unconditionally delegate.
9212 * target.h (struct target_ops) <to_disable_btrace>: Use
9213 TARGET_DEFAULT_NORETURN.
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9217 * target-delegates.c: Rebuild.
9218 * target.c (default_search_memory): New function.
9219 (simple_search_memory): Update comment.
9220 (target_search_memory): Unconditionally delegate.
9221 * target.h (struct target_ops) <to_search_memory>: Use
9222 TARGET_DEFAULT_FUNC.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * auxv.c (default_auxv_parse): No longer static.
9227 (target_auxv_parse): Unconditionally delegate.
9228 * auxv.h (default_auxv_parse): Declare.
9229 * target-delegates.c: Rebuild.
9230 * target.c: Include auxv.h.
9231 * target.h (struct target_ops) <to_auxv_parse>: Use
9232 TARGET_DEFAULT_FUNC.
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * target-delegates.c: Rebuild.
9237 * target.c (target_memory_map): Unconditionally delegate.
9238 * target.h (struct target_ops) <to_memory_map>: Use
9239 TARGET_DEFAULT_RETURN.
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9243 * target-delegates.c: Rebuild.
9244 * target.c (target_thread_alive): Unconditionally delegate.
9245 * target.h (struct target_ops) <to_thread_alive>: Use
9246 TARGET_DEFAULT_RETURN.
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9250 * target-delegates.c: Rebuild.
9251 * target.c (target_save_record): Unconditionally delegate.
9252 * target.h (struct target_ops) <to_save_record>: Use
9253 TARGET_DEFAULT_NORETURN.
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9257 * target-delegates.c: Rebuild.
9258 * target.c (target_delete_record): Unconditionally delegate.
9259 * target.h (struct target_ops) <to_delete_record>: Use
9260 TARGET_DEFAULT_NORETURN.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_record_is_replaying): Unconditionally
9267 * target.h (struct target_ops) <to_record_is_replaying>: Use
9268 TARGET_DEFAULT_RETURN.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * target-delegates.c: Rebuild.
9273 * target.c (target_goto_record_begin): Unconditionally delegate.
9274 * target.h (struct target_ops) <to_goto_record_begin>: Use
9275 TARGET_DEFAULT_NORETURN.
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target-delegates.c: Rebuild.
9280 * target.c (target_goto_record_end): Unconditionally delegate.
9281 * target.h (struct target_ops) <to_goto_record_end>: Use
9282 TARGET_DEFAULT_NORETURN.
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9286 * target-delegates.c: Rebuild.
9287 * target.c (target_goto_record): Unconditionally delegate.
9288 * target.h (struct target_ops) <to_goto_record>: Use
9289 TARGET_DEFAULT_NORETURN.
9291 2014-02-19 Tom Tromey <tromey@redhat.com>
9293 * target-delegates.c: Rebuild.
9294 * target.c (target_insn_history): Unconditionally delegate.
9295 * target.h (struct target_ops) <to_insn_history>: Use
9296 TARGET_DEFAULT_NORETURN.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target-delegates.c: Rebuild.
9301 * target.c (target_insn_history_from): Unconditionally delegate.
9302 * target.h (struct target_ops) <to_insn_history_from>: Use
9303 TARGET_DEFAULT_NORETURN.
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9307 * target-delegates.c: Rebuild.
9308 * target.c (target_insn_history_range): Unconditionally delegate.
9309 * target.h (struct target_ops) <to_insn_history_range>: Use
9310 TARGET_DEFAULT_NORETURN.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target-delegates.c: Rebuild.
9315 * target.c (target_call_history): Unconditionally delegate.
9316 * target.h (struct target_ops) <to_call_history>: Use
9317 TARGET_DEFAULT_NORETURN.
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9321 * target-delegates.c: Rebuild.
9322 * target.c (target_call_history_from): Unconditionally delegate.
9323 * target.h (struct target_ops) <to_call_history_from>: Use
9324 TARGET_DEFAULT_NORETURN.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target-delegates.c: Rebuild.
9329 * target.c (target_call_history_range): Unconditionally delegate.
9330 * target.h (struct target_ops) <to_call_history_range>: Use
9331 TARGET_DEFAULT_NORETURN.
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9335 * target-delegates.c: Rebuild.
9336 * target.c (target_verify_memory): Unconditionally delegate.
9337 * target.h (struct target_ops) <to_verify_memory>: Use
9338 TARGET_DEFAULT_NORETURN.
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9342 * target-delegates.c: Rebuild.
9343 * target.c (target_core_of_thread): Unconditionally delegate.
9344 * target.h (struct target_ops) <to_core_of_thread>: Use
9345 TARGET_DEFAULT_RETURN.
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9349 * target-delegates.c: Rebuild.
9350 * target.c (target_flash_done): Unconditionally delegate.
9351 * target.h (struct target_ops) <to_flash_done>: Use
9352 TARGET_DEFAULT_NORETURN.
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9356 * target-delegates.c: Rebuild.
9357 * target.c (target_flash_erase): Unconditionally delegate.
9358 * target.h (struct target_ops) <to_flash_erase>: Use
9359 TARGET_DEFAULT_NORETURN.
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target-delegates.c: Rebuild.
9364 * target.c (target_get_section_table): Unconditionally delegate.
9365 * target.h (struct target_ops) <to_get_section_table>: Use
9366 TARGET_DEFAULT_RETURN.
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target-delegates.c: Rebuild.
9371 * target.c (target_pid_to_str): Unconditionally delegate.
9372 (init_dummy_target): Don't initialize to_pid_to_str.
9373 (default_pid_to_str): Rename from dummy_pid_to_str.
9374 * target.h (struct target_ops) <to_pid_to_str>: Use
9375 TARGET_DEFAULT_FUNC.
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9379 * target-delegates.c: Rebuild.
9380 * target.c (target_find_new_threads): Unconditionally delegate.
9381 * target.h (struct target_ops) <to_find_new_threads>: Use
9382 TARGET_DEFAULT_RETURN.
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9386 * target-delegates.c: Rebuild.
9387 * target.c (target_program_signals): Unconditionally delegate.
9388 * target.h (struct target_ops) <to_program_signals>: Use
9389 TARGET_DEFAULT_IGNORE.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target-delegates.c: Rebuild.
9394 * target.c (target_pass_signals): Unconditionally delegate.
9395 * target.h (struct target_ops) <to_pass_signals>: Use
9396 TARGET_DEFAULT_IGNORE.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target-delegates.c: Rebuild.
9401 * target.c (default_mourn_inferior): New function.
9402 (target_mourn_inferior): Unconditionally delegate.
9403 * target.h (struct target_ops) <to_mourn_inferior>: Use
9404 TARGET_DEFAULT_FUNC.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target-delegates.c: Rebuild.
9409 * target.c (default_follow_fork): New function.
9410 (target_follow_fork): Unconditionally delegate.
9411 * target.h (struct target_ops) <to_follow_fork>: Use
9412 TARGET_DEFAULT_FUNC.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target-delegates.c: Rebuild.
9417 * target.c (target_kill): Unconditionally delegate.
9418 * target.h (struct target_ops) <to_kill>: Use
9419 TARGET_DEFAULT_NORETURN.
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target-delegates.c: Rebuild.
9424 * target.c (target_masked_watch_num_registers): Unconditionally
9426 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9427 Use TARGET_DEFAULT_RETURN.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target-delegates.c: Rebuild.
9432 * target.c (target_remove_mask_watchpoint): Unconditionally
9434 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9435 TARGET_DEFAULT_RETURN.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target-delegates.c: Rebuild.
9440 * target.c (target_insert_mask_watchpoint): Unconditionally
9442 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9443 TARGET_DEFAULT_RETURN.
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9447 * target-delegates.c: Rebuild.
9448 * target.c (target_ranged_break_num_registers): Unconditionally
9450 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9451 Use TARGET_DEFAULT_RETURN.
9453 2014-02-19 Tom Tromey <tromey@redhat.com>
9455 * target-delegates.c: Rebuild.
9456 * target.c (target_fetch_registers): Unconditionally delegate.
9457 * target.h (struct target_ops) <to_fetch_registers>: Use
9458 TARGET_DEFAULT_NORETURN.
9460 2014-02-19 Tom Tromey <tromey@redhat.com>
9462 * target-delegates.c: Rebuild.
9463 * target.c (update_current_target): Don't inherit or default
9465 * target.h (struct target_ops) <to_stop>: Use
9466 TARGET_DEFAULT_IGNORE.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target-delegates.c: Rebuild.
9471 * target.c (update_current_target): Don't inherit or default
9472 to_can_run_breakpoint_commands.
9473 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9474 Use TARGET_DEFAULT_RETURN.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target-delegates.c: Rebuild.
9479 * target.c (update_current_target): Don't inherit or default
9480 to_supports_evaluation_of_breakpoint_conditions.
9481 * target.h (struct target_ops)
9482 <to_supports_evaluation_of_breakpoint_conditions>: Use
9483 TARGET_DEFAULT_RETURN.
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9487 * target-delegates.c: Rebuild.
9488 * target.c (update_current_target): Don't inherit or default
9489 to_augmented_libraries_svr4_read.
9490 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9491 Use TARGET_DEFAULT_RETURN.
9493 2014-02-19 Tom Tromey <tromey@redhat.com>
9495 * target-delegates.c: Rebuild.
9496 * target.c (update_current_target): Don't inherit or default
9498 * target.h (struct target_ops) <to_can_use_agent>: Use
9499 TARGET_DEFAULT_RETURN.
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9503 * target-delegates.c: Rebuild.
9504 * target.c (update_current_target): Don't inherit or default
9506 * target.h (struct target_ops) <to_use_agent>: Use
9507 TARGET_DEFAULT_NORETURN.
9509 2014-02-19 Tom Tromey <tromey@redhat.com>
9511 * target-delegates.c: Rebuild.
9512 * target.c (update_current_target): Don't inherit or default
9514 (return_null): Remove.
9515 * target.h (struct target_ops) <to_traceframe_info>: Use
9516 TARGET_DEFAULT_RETURN.
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9520 * target-delegates.c: Rebuild.
9521 * target.c (update_current_target): Don't inherit or default
9522 to_static_tracepoint_markers_by_strid.
9523 * target.h (struct target_ops)
9524 <to_static_tracepoint_markers_by_strid>: 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
9531 to_static_tracepoint_marker_at.
9532 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9533 Use TARGET_DEFAULT_RETURN.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target-delegates.c: Rebuild.
9538 * target.c (update_current_target): Don't inherit or default
9540 * target.h (struct target_ops) <to_set_permissions>: Use
9541 TARGET_DEFAULT_IGNORE.
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9545 * target-delegates.c: Rebuild.
9546 * target.c (update_current_target): Don't inherit or default
9548 * target.h (struct target_ops) <to_get_tib_address>: Use
9549 TARGET_DEFAULT_NORETURN.
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target-delegates.c: Rebuild.
9554 * target.c (update_current_target): Don't inherit or default
9556 * target.h (struct target_ops) <to_set_trace_notes>: Use
9557 TARGET_DEFAULT_RETURN.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target-delegates.c: Rebuild.
9562 * target.c (update_current_target): Don't initialize
9563 to_set_trace_buffer_size.
9564 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9565 TARGET_DEFAULT_IGNORE.
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9569 * target-delegates.c: Rebuild.
9570 * target.c (update_current_target): Don't inherit or default
9571 to_set_circular_trace_buffer.
9572 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9573 TARGET_DEFAULT_IGNORE.
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * target-delegates.c: Rebuild.
9578 * target.c (update_current_target): Don't inherit or default
9579 to_set_disconnected_tracing.
9580 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9581 TARGET_DEFAULT_IGNORE.
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9585 * target-delegates.c: Rebuild.
9586 * target.c (update_current_target): Don't inherit or default
9587 to_get_min_fast_tracepoint_insn_len.
9588 (return_minus_one): Remove.
9589 * target.h (struct target_ops)
9590 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target-delegates.c: Rebuild.
9595 * target.c (update_current_target): Don't inherit or default
9596 to_get_raw_trace_data.
9597 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9598 TARGET_DEFAULT_NORETURN.
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * target-delegates.c: Rebuild.
9603 * target.c (update_current_target): Don't inherit or default
9604 to_upload_trace_state_variables.
9605 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9606 Use TARGET_DEFAULT_RETURN.
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target-delegates.c: Rebuild.
9611 * target.c (update_current_target): Don't inherit or default
9612 to_upload_tracepoints.
9613 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9614 TARGET_DEFAULT_RETURN.
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9618 * target-delegates.c: Rebuild.
9619 * target.c (update_current_target): Don't inherit or default
9621 * target.h (struct target_ops) <to_save_trace_data>: Use
9622 TARGET_DEFAULT_NORETURN.
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9626 * target-delegates.c: Rebuild.
9627 * target.c (update_current_target): Don't inherit or default
9628 to_get_trace_state_variable_value.
9629 * target.h (struct target_ops)
9630 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target-delegates.c: Rebuild.
9635 * target.c (update_current_target): Don't inherit or default
9637 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * target-delegates.c: Rebuild.
9642 * target.c (update_current_target): Don't inherit or default
9644 * target.h (struct target_ops) <to_trace_stop>: Use
9645 TARGET_DEFAULT_NORETURN.
9647 2014-02-19 Tom Tromey <tromey@redhat.com>
9649 * target-delegates.c: Rebuild.
9650 * target.c (update_current_target): Don't inherit or default
9651 to_get_tracepoint_status.
9652 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9653 TARGET_DEFAULT_NORETURN.
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9657 * target-delegates.c: Rebuild.
9658 * target.c (update_current_target): Don't inherit or default
9659 to_get_trace_status.
9660 * target.h (struct target_ops) <to_get_trace_status>: Use
9661 TARGET_DEFAULT_RETURN.
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target-delegates.c: Rebuild.
9666 * target.c (update_current_target): Don't inherit or default
9668 * target.h (struct target_ops) <to_trace_start>: Use
9669 TARGET_DEFAULT_NORETURN.
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9673 * target-delegates.c: Rebuild.
9674 * target.c (update_current_target): Don't inherit or default
9675 to_trace_set_readonly_regions.
9676 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9677 Use TARGET_DEFAULT_NORETURN.
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9681 * target-delegates.c: Rebuild.
9682 * target.c (update_current_target): Don't inherit or default
9683 to_disable_tracepoint.
9684 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9685 TARGET_DEFAULT_NORETURN.
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9689 * target-delegates.c: Rebuild.
9690 * target.c (update_current_target): Don't inherit or default
9691 to_enable_tracepoint.
9692 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9693 TARGET_DEFAULT_NORETURN.
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9697 * target-delegates.c: Rebuild.
9698 * target.c (update_current_target): Don't inherit or default
9699 to_download_trace_state_variable.
9700 * target.h (struct target_ops) <to_download_trace_state_variable>:
9701 Use TARGET_DEFAULT_NORETURN.
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9705 * target-delegates.c: Rebuild.
9706 * target.c (update_current_target): Don't inherit or default
9707 to_can_download_tracepoint.
9708 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9709 TARGET_DEFAULT_RETURN.
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * target-delegates.c: Rebuild.
9714 * target.c (update_current_target): Don't inherit or default
9715 to_download_tracepoint.
9716 * target.h (struct target_ops) <to_download_tracepoint>: Use
9717 TARGET_DEFAULT_NORETURN.
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9721 * target-delegates.c: Rebuild.
9722 * target.c (update_current_target): Don't inherit or default
9724 * target.h (struct target_ops) <to_trace_init>: Use
9725 TARGET_DEFAULT_RETURN.
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9729 * target-delegates.c: Rebuild.
9730 * target.c (update_current_target): Don't inherit or default
9731 to_supports_string_tracing.
9732 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9733 TARGET_DEFAULT_RETURN.
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target-delegates.c: Rebuild.
9738 * target.c (update_current_target): Don't inherit or default
9739 to_supports_enable_disable_tracepoint.
9740 * target.h (struct target_ops)
9741 <to_supports_enable_disable_tracepoint>: Use
9742 TARGET_DEFAULT_RETURN.
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target-delegates.c: Rebuild.
9747 * target.c (update_current_target): Don't inherit or default
9748 to_supports_multi_process.
9749 * target.h (struct target_ops) <to_supports_multi_process>: Use
9750 TARGET_DEFAULT_RETURN.
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9754 * target-delegates.c: Rebuild.
9755 * target.c (update_current_target): Don't inherit or default
9756 to_get_ada_task_ptid.
9757 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9758 TARGET_DEFAULT_FUNC.
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9762 * target-delegates.c: Rebuild.
9763 * target.c (update_current_target): Don't inherit or default
9764 to_thread_architecture.
9765 * target.h (struct target_ops) <to_thread_architecture>: Use
9766 TARGET_DEFAULT_FUNC.
9768 2014-02-19 Tom Tromey <tromey@redhat.com>
9770 * target-delegates.c: Rebuild.
9771 * target.c (update_current_target): Don't inherit or default
9772 to_execution_direction.
9773 * target.h (struct target_ops) <to_execution_direction>: Use
9774 TARGET_DEFAULT_FUNC.
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * target-delegates.c: Rebuild.
9779 * target.c (update_current_target): Don't inherit or default
9780 to_can_execute_reverse.
9781 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9782 TARGET_DEFAULT_RETURN.
9783 (target_can_execute_reverse): Unconditionally delegate.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target-delegates.c: Rebuild.
9788 * target.c (update_current_target): Don't inherit or default
9790 (dummy_goto_bookmark): Remove.
9791 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9792 * target.h (struct target_ops) <to_goto_bookmark>: Use
9793 TARGET_DEFAULT_NORETURN.
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9797 * target-delegates.c: Rebuild.
9798 * target.c (update_current_target): Don't inherit or default
9800 (dummy_get_bookmark): Remove.
9801 (init_dummy_target): Don't inherit or default to_get_bookmark.
9802 * target.h (struct target_ops) <to_get_bookmark>: Use
9803 TARGET_DEFAULT_NORETURN
9805 2014-02-19 Tom Tromey <tromey@redhat.com>
9807 * target-delegates.c: Rebuild.
9808 * target.c (update_current_target): Don't inherit or default
9809 to_make_corefile_notes.
9810 (init_dummy_target): Don't initialize to_make_corefile_notes.
9811 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9812 TARGET_DEFAULT_FUNC.
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9816 * target-delegates.c: Rebuild.
9817 * target.c (update_current_target): Don't inherit or default
9818 to_find_memory_regions.
9819 (init_dummy_target): Don't initialize to_find_memory_regions.
9820 * target.h (struct target_ops) <to_find_memory_regions>: Use
9821 TARGET_DEFAULT_FUNC.
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
9828 * target.h (struct target_ops) <to_log_command>: Use
9829 TARGET_DEFAULT_IGNORE.
9830 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
9837 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9838 TARGET_DEFAULT_RETURN.
9840 2014-02-19 Tom Tromey <tromey@redhat.com>
9842 * target-delegates.c: Rebuild.
9843 * target.c (update_current_target): Don't inherit or default
9845 (target_thread_name): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_thread_name>: Use
9847 TARGET_DEFAULT_RETURN.
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target-delegates.c: Rebuild.
9852 * target.c (update_current_target): Don't inherit or default
9853 to_extra_thread_info.
9854 * target.h (struct target_ops) <to_extra_thread_info>: Use
9855 TARGET_DEFAULT_RETURN.
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9859 * target-delegates.c: Rebuild.
9860 * target.c (update_current_target): Don't inherit or default
9862 * target.h (struct target_ops) <to_has_exited>: Use
9863 TARGET_DEFAULT_RETURN..
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * target-delegates.c: Rebuild.
9868 * target.c (update_current_target): Don't inherit or default
9869 to_set_syscall_catchpoint.
9870 (return_one): Remove.
9871 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9872 TARGET_DEFAULT_RETURN.
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9876 * target-delegates.c: Rebuild.
9877 * target.c (update_current_target): Don't inherit or default
9878 to_insert_exec_catchpoint.
9879 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9880 TARGET_DEFAULT_RETURN.
9882 2014-01-08 Tom Tromey <tromey@redhat.com>
9884 * target-delegates.c: Rebuild.
9885 * target.c (update_current_target): Don't inherit or default
9886 to_insert_exec_catchpoint.
9887 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9888 TARGET_DEFAULT_RETURN.
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9892 * target-delegates.c: Rebuild.
9893 * target.c (update_current_target): Don't inherit or default
9894 to_remove_vfork_catchpoint.
9895 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9896 TARGET_DEFAULT_RETURN.
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9900 * target-delegates.c: Rebuild.
9901 * target.c (update_current_target): Don't inherit or default
9902 to_insert_vfork_catchpoint.
9903 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9904 TARGET_DEFAULT_RETURN.
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9908 * target-delegates.c: Rebuild.
9909 * target.c (update_current_target): Don't inherit or default
9910 to_remove_fork_catchpoint.
9911 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9912 TARGET_DEFAULT_RETURN.
9914 2014-02-19 Tom Tromey <tromey@redhat.com>
9916 * target-delegates.c: Rebuild.
9917 * target.c (update_current_target): Don't inherit or default
9918 to_insert_fork_catchpoint.
9919 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9920 TARGET_DEFAULT_RETURN.
9922 2014-02-19 Tom Tromey <tromey@redhat.com>
9924 * target-delegates.c: Rebuild.
9925 * target.c (update_current_target): Don't inherit or default
9926 to_post_startup_inferior.
9927 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9928 TARGET_DEFAULT_IGNORE.
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9932 * target-delegates.c: Rebuild.
9933 * target.c (update_current_target): Don't inherit or default
9935 * target.h (struct target_ops) <to_load>: Use
9936 TARGET_DEFAULT_NORETURN.
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9940 * target-delegates.c: Rebuild.
9941 * target.c (update_current_target): Don't inherit or default
9943 * target.h (struct target_ops) <to_terminal_info>: Use
9944 TARGET_DEFAULT_FUNC.
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9948 * target-delegates.c: Rebuild.
9949 * target.c (update_current_target): Don't inherit or default
9950 to_terminal_save_ours.
9951 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9952 TARGET_DEFAULT_IGNORE.
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * target-delegates.c: Rebuild.
9957 * target.c (update_current_target): Don't inherit or default
9959 * target.h (struct target_ops) <to_terminal_ours>: Use
9960 TARGET_DEFAULT_IGNORE.
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9964 * target-delegates.c: Rebuild.
9965 * target.c (update_current_target): Don't inherit or default
9966 to_terminal_ours_for_output.
9967 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9968 TARGET_DEFAULT_IGNORE.
9970 2014-02-19 Tom Tromey <tromey@redhat.com>
9972 * target-delegates.c: Rebuild.
9973 * target.c (update_current_target): Don't inherit or default
9974 to_terminal_inferior.
9975 * target.h (struct target_ops) <to_terminal_inferior>: Use
9976 TARGET_DEFAULT_IGNORE.
9978 2014-02-19 Tom Tromey <tromey@redhat.com>
9980 * target-delegates.c: Rebuild.
9981 * target.c (update_current_target): Don't inherit or default
9983 * target.h (struct target_ops) <to_terminal_init>: Use
9984 TARGET_DEFAULT_IGNORE.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target-delegates.c: Rebuild.
9989 * target.c (update_current_target): Don't inherit or default
9990 to_can_accel_watchpoint_condition.
9991 * target.h (struct target_ops)
9992 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9994 2014-02-19 Tom Tromey <tromey@redhat.com>
9996 * target-delegates.c: Rebuild.
9997 * target.c (update_current_target): Don't inherit or default
9998 to_region_ok_for_hw_watchpoint.
9999 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10000 Use TARGET_DEFAULT_FUNC.
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10004 * target-delegates.c: Rebuild.
10005 * target.c (update_current_target): Don't inherit or default
10006 to_watchpoint_addr_within_range.
10007 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10008 Use TARGET_DEFAULT_FUNC.
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10012 * target-delegates.c: Rebuild.
10013 * target.c (update_current_target): Don't inherit or default
10014 to_remove_watchpoint.
10015 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10016 TARGET_DEFAULT_NORETURN.
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * target-delegates.c: Rebuild.
10021 * target.c (update_current_target): Don't inherit or default
10022 to_insert_watchpoint.
10023 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10024 TARGET_DEFAULT_RETURN.
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10028 * target-delegates.c: Rebuild.
10029 * target.c (update_current_target): Don't inherit or default
10030 to_remove_hw_breakpoint.
10031 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10032 TARGET_DEFAULT_RETURN.
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10036 * target-delegates.c: Rebuild.
10037 * target.c (update_current_target): Don't inherit or default
10038 to_insert_hw_breakpoint.
10039 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10040 TARGET_DEFAULT_RETURN.
10042 2014-02-19 Tom Tromey <tromey@redhat.com>
10044 * target-delegates.c: Rebuild.
10045 * target.c (update_current_target): Don't inherit or default
10046 to_can_use_hw_breakpoint.
10047 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10048 TARGET_DEFAULT_RETURN.
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target-delegates.c: Rebuild.
10053 * target.c (update_current_target): Don't inherit or default
10055 * target.h (struct target_ops) <to_files_info>: Use
10056 TARGET_DEFAULT_IGNORE.
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10060 * target-delegates.c: Rebuild.
10061 * target.c (update_current_target): Don't inherit or default
10063 * target.h (struct target_ops) <to_store>: Use
10064 TARGET_DEFAULT_NORETURN.
10066 2014-02-19 Tom Tromey <tromey@redhat.com>
10068 * target-delegates.c: Rebuild.
10069 * target.c (update_current_target): Don't inherit or default
10071 * target.h (struct target_ops) <to_post_attach>: Use
10072 TARGET_DEFAULT_IGNORE.
10074 2014-02-19 Tom Tromey <tromey@redhat.com>
10076 * target-delegates.c: Rebuild.
10077 * target.c (update_current_target): Don't inherit or default
10079 (default_rcmd): New function.
10080 (do_monitor_command): Unconditionally delegate.
10081 * target.h (struct target_ops) <to_rmcd>: Use
10082 TARGET_DEFAULT_FUNC.
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10086 * target-delegates.c: Rebuild.
10087 * target.c (init_dummy_target): Don't initialize to_attach.
10088 (target_attach): Unconditionally delegate.
10089 * target.h (struct target_ops) <to_attach>: Use
10090 TARGET_DEFAULT_FUNC.
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target-delegates.c: Rebuild.
10095 * target.c (target_detach): Unconditionally delegate.
10096 (init_dummy_target): Don't initialize to_detach.
10097 * target.h (struct target_ops) <to_detach>: Use
10098 TARGET_DEFAULT_IGNORE.
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10102 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10104 (target_augmented_libraries_svr4_read): Add argument.
10105 * target.c (update_current_target): Update.
10106 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * target.h (struct target_ops) <to_call_history_range>: Add
10113 * target.c (target_call_history_range): Add argument.
10114 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10116 (record_btrace_call_history_from): Update.
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * target.h (struct target_ops) <to_call_history_from>: Add
10122 * target.c (target_call_history_from): Add argument.
10123 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10128 * target.h (struct target_ops) <to_call_history>: Add argument.
10129 * target.c (target_call_history): Add argument.
10130 * record-btrace.c (record_btrace_call_history): Add 'self'
10133 2014-02-19 Tom Tromey <tromey@redhat.com>
10135 * target.h (struct target_ops) <to_insn_history_range>: Add
10137 * target.c (target_insn_history_range): Add argument.
10138 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10140 (record_btrace_insn_history_from): Update.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target.h (struct target_ops) <to_insn_history_from>: Add
10146 * target.c (target_insn_history_from): Add argument.
10147 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10152 * target.h (struct target_ops) <to_insn_history>: Add argument.
10153 * target.c (target_insn_history): Add argument.
10154 * record-btrace.c (record_btrace_insn_history): Add 'self'
10157 2014-02-19 Tom Tromey <tromey@redhat.com>
10159 * target.h (struct target_ops) <to_goto_record>: Add argument.
10160 * target.c (target_goto_record): Add argument.
10161 * record-full.c (record_full_goto): Add 'self' argument.
10162 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10166 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10167 * target.c (target_goto_record_end): Add argument.
10168 * record-full.c (record_full_goto_end): Add 'self' argument.
10169 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10173 * target.h (struct target_ops) <to_goto_record_begin>: Add
10175 * target.c (target_goto_record_begin): Add argument.
10176 * record-full.c (record_full_goto_begin): Add 'self' argument.
10177 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target.h (struct target_ops) <to_record_is_replaying>: Add
10184 * target.c (target_record_is_replaying): Add argument.
10185 * record-full.c (record_full_is_replaying): Add 'self' argument.
10186 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10188 (record_btrace_xfer_partial, record_btrace_store_registers)
10189 (record_btrace_prepare_to_store, record_btrace_resume)
10190 (record_btrace_wait, record_btrace_decr_pc_after_break)
10191 (record_btrace_find_new_threads, record_btrace_thread_alive):
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target.h (struct target_ops) <to_delete_record>: Add argument.
10197 * target.c (target_delete_record): Add argument.
10198 * record-full.c (record_full_delete): Add 'self' argument.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target.h (struct target_ops) <to_save_record>: Add argument.
10203 * target.c (target_save_record): Add argument.
10204 * record-full.c (record_full_save): Add 'self' argument.
10205 (record_full_save): Add 'self' argument.
10207 2014-02-19 Tom Tromey <tromey@redhat.com>
10209 * target.h (struct target_ops) <to_info_record>: Add argument.
10210 * target.c (target_info_record): Add argument.
10211 * record.c (info_record_command): Add argument.
10212 * record-full.c (record_full_info): Add 'self' argument.
10213 * record-btrace.c (record_btrace_info): Add 'self' argument.
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10218 * target.c (target_stop_recording): Add argument.
10219 * record.c (record_stop): Add argument.
10220 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10223 2014-02-19 Tom Tromey <tromey@redhat.com>
10225 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10226 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10227 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10229 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10230 (_initialize_amd64_linux_nat): Use it.
10231 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10232 (_initialize_i386_linux_nat): Use it.
10234 2014-02-19 Tom Tromey <tromey@redhat.com>
10236 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10237 * target.c (target_teardown_btrace): Add argument.
10238 * remote.c (remote_teardown_btrace): Add 'self' argument.
10239 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10241 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10246 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10247 * target.c (target_disable_btrace): Add argument.
10248 * remote.c (remote_disable_btrace): Add 'self' argument.
10249 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10251 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10257 * target.c (target_enable_btrace): Add argument.
10258 * remote.c (remote_enable_btrace): Add 'self' argument.
10259 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10261 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10266 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10267 (target_can_use_agent): Add argument.
10268 * target.c (update_current_target): Update.
10269 * remote.c (remote_can_use_agent): Add 'self' argument.
10270 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * target.h (struct target_ops) <to_use_agent>: Add argument.
10275 (target_use_agent): Add argument.
10276 * target.c (update_current_target): Update.
10277 * remote.c (remote_use_agent): Add 'self' argument.
10278 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10282 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10283 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10284 (target_traceframe_info): Add argument.
10285 * target.c (update_current_target): Update.
10286 * remote.c (remote_traceframe_info): Add 'self' argument.
10287 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10289 2014-02-19 Tom Tromey <tromey@redhat.com>
10291 * target.h (target_static_tracepoint_markers_by_strid): Add
10293 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10295 * target.c (update_current_target): Update.
10296 * remote.c (struct target_ops)
10297 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10298 * linux-nat.c (struct target_ops)
10299 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10305 (target_static_tracepoint_marker_at): Add argument.
10306 * target.c (update_current_target): Update.
10307 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10310 2014-02-19 Tom Tromey <tromey@redhat.com>
10312 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10313 (target_set_permissions): Add argument.
10314 * target.c (update_current_target): Update.
10315 * remote.c (remote_set_permissions): Add 'self' argument.
10316 (remote_start_remote): Update.
10318 2014-02-19 Tom Tromey <tromey@redhat.com>
10320 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10321 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10322 (target_get_tib_address): Add argument.
10323 * target.c (update_current_target): Update.
10324 * remote.c (remote_get_tib_address): Add 'self' argument.
10326 2014-02-19 Tom Tromey <tromey@redhat.com>
10328 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10329 (target_set_trace_notes): Add argument.
10330 * target.c (update_current_target): Update.
10331 * remote.c (remote_set_trace_notes): Add 'self' argument.
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10337 (target_set_trace_buffer_size): Add argument.
10338 * target.c (update_current_target): Update.
10339 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10345 (target_set_circular_trace_buffer): Add argument.
10346 * target.c (update_current_target): Update.
10347 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10352 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10354 (target_set_disconnected_tracing): Add argument.
10355 * target.c (update_current_target): Update.
10356 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10360 * target.h (struct target_ops)
10361 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10362 (target_get_min_fast_tracepoint_insn_len): Add argument.
10363 * target.c (update_current_target): Update.
10364 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10369 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10371 (target_get_raw_trace_data): Add argument.
10372 * target.c (update_current_target): Update.
10373 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10377 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10379 (target_upload_trace_state_variables): Add argument.
10380 * target.c (update_current_target): Update.
10381 * remote.c (remote_upload_trace_state_variables): Add 'self'
10383 (remote_start_remote): Update.
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10387 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10389 (target_upload_tracepoints): Add argument.
10390 * target.c (update_current_target): Update.
10391 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10392 (remote_start_remote): Update.
10394 2014-02-19 Tom Tromey <tromey@redhat.com>
10396 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10397 (target_save_trace_data): Add argument.
10398 * target.c (update_current_target): Update.
10399 * remote.c (remote_save_trace_data): Add 'self' argument.
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10403 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10405 * target.h (struct target_ops)
10406 <to_get_trace_state_variable_value>: Add argument.
10407 (target_get_trace_state_variable_value): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10411 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10415 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10416 * target.h (struct target_ops) <to_trace_find>: Add argument.
10417 (target_trace_find): Add argument.
10418 * target.c (update_current_target): Update.
10419 * remote.c (remote_trace_find): Add 'self' argument.
10420 * ctf.c (ctf_trace_find): Add 'self' argument.
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10425 (target_trace_stop): Add argument.
10426 * target.c (update_current_target): Update.
10427 * remote.c (remote_trace_stop): Add 'self' argument.
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10431 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10432 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10434 (target_get_tracepoint_status): Add argument.
10435 * target.c (update_current_target): Update.
10436 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10440 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10441 * target.h (struct target_ops) <to_get_trace_status>: Add
10443 (target_get_trace_status): Add argument.
10444 * target.c (update_current_target): Update.
10445 * remote.c (remote_get_trace_status): Add 'self' argument.
10446 (remote_start_remote, remote_can_download_tracepoint): Update.
10447 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10451 * target.h (struct target_ops) <to_trace_start>: Add argument.
10452 (target_trace_start): Add argument.
10453 * target.c (update_current_target): Update.
10454 * remote.c (remote_trace_start): Add 'self' argument.
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10458 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10460 (target_trace_set_readonly_regions): Add argument.
10461 * target.c (update_current_target): Update.
10462 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10467 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10469 (target_disable_tracepoint): Add argument.
10470 * target.c (update_current_target): Update.
10471 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10475 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10477 (target_enable_tracepoint): Add argument.
10478 * target.c (update_current_target): Update.
10479 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10483 * target.h (struct target_ops) <to_download_trace_state_variable>:
10485 (target_download_trace_state_variable): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_download_trace_state_variable): Add 'self'
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10494 (target_can_download_tracepoint): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target.h (struct target_ops) <to_download_tracepoint>: Add
10502 (target_download_tracepoint): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_download_tracepoint): Add 'self' argument.
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10508 * target.h (struct target_ops) <to_trace_init>: Add argument.
10509 (target_trace_init): Add argument.
10510 * target.c (update_current_target): Update.
10511 * remote.c (remote_trace_init): Add 'self' argument.
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10516 * target.c (target_fileio_readlink): Add argument.
10517 * remote.c (remote_hostio_readlink): Add 'self' argument.
10518 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10520 2014-02-19 Tom Tromey <tromey@redhat.com>
10522 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10523 * target.c (target_fileio_unlink): Add argument.
10524 * remote.c (remote_hostio_unlink): Add 'self' argument.
10525 (remote_file_delete): Update.
10526 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10528 2014-02-19 Tom Tromey <tromey@redhat.com>
10530 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10531 * target.c (target_fileio_close): Add argument.
10532 * remote.c (remote_hostio_close): Add 'self' argument.
10533 (remote_hostio_close_cleanup): Update.
10534 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10536 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10541 * target.c (target_fileio_pread): Add argument.
10542 * remote.c (remote_hostio_pread): Add 'self' argument.
10543 (remote_bfd_iovec_pread, remote_file_get): Update.
10544 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10546 2014-02-19 Tom Tromey <tromey@redhat.com>
10548 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10549 * target.c (target_fileio_pwrite): Add argument.
10550 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10551 (remote_file_put): Update.
10552 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10554 2014-02-19 Tom Tromey <tromey@redhat.com>
10556 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10557 * target.c (target_fileio_open): Add argument.
10558 * remote.c (remote_hostio_open): Add 'self' argument.
10559 (remote_bfd_iovec_open): Add 'self' argument.
10560 (remote_file_put): Add 'self' argument.
10561 (remote_file_get): Add 'self' argument.
10562 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10564 2014-02-19 Tom Tromey <tromey@redhat.com>
10566 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10568 (target_can_run_breakpoint_commands): Add argument.
10569 * target.c (update_current_target): Update.
10570 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10572 (remote_insert_breakpoint): Add 'self' argument.
10573 (remote_insert_hw_breakpoint): Add 'self' argument.
10574 (remote_can_run_breakpoint_commands): Add 'self' argument.
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10578 * target.h (struct target_ops)
10579 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10580 (target_supports_evaluation_of_breakpoint_conditions): Add
10582 * target.c (update_current_target): Update.
10583 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10585 (remote_insert_breakpoint): Add 'self' argument.
10586 (remote_insert_hw_breakpoint): Add 'self' argument.
10587 (remote_supports_cond_breakpoints): Add 'self' argument.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10593 (target_supports_string_tracing): Add argument.
10594 * target.c (update_current_target): Update.
10595 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10599 * target.h (struct target_ops)
10600 <to_supports_disable_randomization>: Add argument.
10601 * target.c (find_default_supports_disable_randomization): Add
10603 (target_supports_disable_randomization): Add argument.
10604 (find_default_supports_disable_randomization): Add 'self'
10606 * remote.c (extended_remote_supports_disable_randomization): Add
10608 (remote_supports_disable_randomization): Add 'self' argument.
10609 (extended_remote_create_inferior): Update.
10610 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10615 * target.h (struct target_ops)
10616 <to_supports_enable_disable_tracepoint>: Add argument.
10617 (target_supports_enable_disable_tracepoint): Add argument.
10618 * target.c (update_current_target): Update.
10619 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target.h (struct target_ops) <to_supports_multi_process>: Add
10626 (target_supports_multi_process): Add argument.
10627 * target.c (update_current_target): Update.
10628 * remote.c (remote_supports_multi_process): Add 'self' argument.
10629 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10631 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10634 2014-02-19 Tom Tromey <tromey@redhat.com>
10636 * target.h (struct target_ops) <to_execution_direction>: Add
10638 (target_execution_direction): Add argument.
10639 * target.c (default_execution_direction): Add 'self' argument.
10640 * record-full.c (record_full_execution_direction): Add 'self'
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10645 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10647 (target_can_execute_reverse): Add argument.
10648 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10649 * record-full.c (record_full_can_execute_reverse): Add 'self'
10651 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10656 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10657 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10659 (target_get_ada_task_ptid): Add argument.
10660 * target.c (update_current_target): Update.
10661 (default_get_ada_task_ptid): Add 'self' argument.
10662 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10663 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10664 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10666 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10668 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10670 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10672 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10673 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10676 2014-02-19 Tom Tromey <tromey@redhat.com>
10678 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10679 (target_goto_bookmark): Add argument.
10680 * target.c (dummy_goto_bookmark): Add 'self' argument.
10681 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10683 2014-02-19 Tom Tromey <tromey@redhat.com>
10685 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10686 (target_get_bookmark): Add argument.
10687 * target.c (dummy_get_bookmark): Add 'self' argument.
10688 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10690 2014-02-19 Tom Tromey <tromey@redhat.com>
10692 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10694 (target_make_corefile_notes): Add argument.
10695 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10696 * procfs.c (procfs_make_note_section): Add 'self' argument.
10697 (procfs_make_note_section): Add 'self' argument.
10698 (procfs_make_note_section): Add 'self' argument.
10699 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10701 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10702 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10703 * exec.c (exec_make_note_section): Add 'self' argument.
10704 (exec_make_note_section): Add 'self' argument.
10706 2014-02-19 Tom Tromey <tromey@redhat.com>
10708 * target.h (struct target_ops) <to_find_memory_regions>: Add
10710 (target_find_memory_regions): Add argument.
10711 * target.c (dummy_find_memory_regions): Add 'self' argument.
10712 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10713 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10714 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10715 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10716 * exec. (exec_do_find_memory_regions): New global.
10717 (exec_set_find_memory_regions): Rewrite.
10718 (exec_find_memory_regions): New function.
10719 (init_exec_ops): Use exec_find_memory_regions.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target.h (struct target_ops) <to_supports_non_stop>: Add
10725 * target.c (find_default_supports_non_stop): Add argument.
10726 (target_supports_non_stop): Add argument.
10727 (find_default_supports_non_stop): Add 'self' argument.
10728 * remote.c (remote_supports_non_stop): Add 'self' argument.
10729 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10731 2014-02-19 Tom Tromey <tromey@redhat.com>
10733 * target.h (struct target_ops) <to_log_command>: Add argument.
10734 (target_log_command): Add argument.
10735 * serial.h (serial_log_command): Add 'self' argument.
10736 * serial.c (serial_log_command): Add 'self' argument.
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10740 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10741 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10743 (target_pid_to_exec_file): Add argument.
10744 * target.c (debug_to_pid_to_exec_file): Add argument.
10745 (update_current_target): Update.
10746 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10747 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10748 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10749 (linux_handle_extended_wait): Update.
10750 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10751 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10752 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10753 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10757 * target.h (struct target_ops) <to_rcmd>: Add argument.
10758 (target_rcmd): Add argument.
10759 * target.c (debug_to_rcmd): Add argument.
10760 (update_current_target, do_monitor_command): Update.
10761 * remote.c (remote_rcmd): Add 'self' argument.
10762 * monitor.c (monitor_rcmd): Add 'self' argument.
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10766 * windows-nat.c (windows_stop): Add 'self' argument.
10767 * target.h (struct target_ops) <to_stop>: Add argument.
10768 * target.c (target_stop): Add argument.
10769 (debug_to_stop): Add argument.
10770 (update_current_target): Update.
10771 * remote.c (remote_stop): Add 'self' argument.
10772 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10773 (gdbsim_cntrl_c): Update.
10774 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10775 * procfs.c (procfs_stop): Add 'self' argument.
10776 * nto-procfs.c (procfs_stop): Add 'self' argument.
10777 * monitor.c (monitor_stop): Add 'self' argument.
10778 (monitor_open): Update.
10779 * linux-nat.c (linux_nat_stop): Add argument.
10780 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10781 * gnu-nat.c (gnu_stop): Add 'self' argument.
10782 * darwin-nat.c (darwin_stop): Add 'self' argument.
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10786 * target.h (struct target_ops) <to_thread_name>: Add argument.
10787 * target.c (target_thread_name): Add argument.
10788 (update_current_target): Update.
10789 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target.h (struct target_ops) <to_extra_thread_info>: Add
10795 (target_extra_thread_info): Add argument.
10796 * target.c (update_current_target): Update.
10797 * remote.c (remote_threads_extra_info): Add 'self' argument.
10798 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10800 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10801 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10802 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10804 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10806 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10808 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10811 2014-02-19 Tom Tromey <tromey@redhat.com>
10813 * target.h (struct target_ops) <to_program_signals>: Add argument.
10814 * target.c (target_program_signals): Add argument.
10815 * remote.c (remote_program_signals): Add 'self' argument.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10820 * target.c (target_pass_signals): Add argument.
10821 * remote.c (remote_pass_signals): Add 'self' argument.
10822 (remote_start_remote): Update.
10823 * procfs.c (procfs_pass_signals): Add 'self' argument.
10824 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10825 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10826 (linux_nat_create_inferior, linux_nat_attach): Update.
10828 2014-02-19 Tom Tromey <tromey@redhat.com>
10830 * windows-nat.c (windows_can_run): Add 'self' argument.
10831 * target.h (struct target_ops) <to_can_run>: Add argument.
10832 (target_can_run): Add argument.
10833 * target.c (debug_to_can_run): Add argument.
10834 (update_current_target): Update.
10835 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10836 * inf-child.c (inf_child_can_run): Add 'self' argument.
10837 * go32-nat.c (go32_can_run): Add 'self' argument.
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10841 * target.h (struct target_ops) <to_has_exited>: Add argument.
10842 (target_has_exited): Add argument.
10843 * target.c (debug_to_has_exited): Add argument.
10844 (update_current_target): Update.
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10848 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10850 (target_set_syscall_catchpoint): Add argument.
10851 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10853 * target.c (update_current_target): Update.
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10859 (target_remove_exec_catchpoint): Add argument.
10860 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10861 (update_current_target): Update.
10862 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10867 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10869 (target_insert_exec_catchpoint): Add argument.
10870 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10871 (update_current_target): Update.
10872 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10879 (target_remove_vfork_catchpoint): Add argument.
10880 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10881 (update_current_target): Update.
10882 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10887 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10889 (target_insert_vfork_catchpoint): Add argument.
10890 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10891 (update_current_target): Update.
10892 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10897 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10899 (target_remove_fork_catchpoint): Add argument.
10900 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10901 (update_current_target): Update.
10902 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10909 (target_insert_fork_catchpoint): Add argument.
10910 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10911 (update_current_target): Update.
10912 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10915 2014-02-19 Tom Tromey <tromey@redhat.com>
10917 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10919 (target_post_startup_inferior): Add argument.
10920 * target.c (debug_to_post_startup_inferior): Add argument.
10921 (update_current_target): Update.
10922 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10924 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10926 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10928 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10930 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10932 (super_post_startup_inferior): Likewise.
10933 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10935 (super_post_startup_inferior): Likewise.
10936 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10937 Add 'self' argument.
10938 (super_post_startup_inferior): Likewise.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target.h (struct target_ops) <to_load>: Add argument.
10943 * target.c (target_load): Add argument.
10944 (debug_to_load): Add argument.
10945 (update_current_target): Update.
10946 * remote.c (remote_load): Add 'self' argument.
10947 * remote-sim.c (gdbsim_load): Add 'self' argument.
10948 * remote-mips.c (mips_load): Add 'self' argument.
10949 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10950 * monitor.c (monitor_load): Add 'self' argument.
10951 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10955 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10956 (target_terminal_info): Add argument.
10957 * target.c (debug_to_terminal_info): Add argument.
10958 (default_terminal_info): Likewise.
10959 * inflow.c (child_terminal_info): Add 'self' argument.
10960 * inferior.h (child_terminal_info): Add 'self' argument.
10961 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10965 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10967 (target_terminal_save_ours): Add argument.
10968 * target.c (debug_to_terminal_save_ours): Add argument.
10969 (update_current_target): Update.
10970 * inflow.c (terminal_save_ours): Add 'self' argument.
10971 * inferior.h (terminal_save_ours): Add 'self' argument.
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10975 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10976 (target_terminal_ours): Add argument.
10977 * target.c (debug_to_terminal_ours): Add argument.
10978 (update_current_target): Update.
10979 * remote.c (remote_terminal_ours): Add 'self' argument.
10980 (remote_close): Update.
10981 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10982 * inflow.c (terminal_ours): Add 'self' argument.
10983 * inferior.h (terminal_ours): Add 'self' argument.
10984 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10986 2014-02-19 Pedro Alves <palves@redhat.com>
10987 Tom Tromey <tromey@redhat.com>
10989 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10991 (target_terminal_ours_for_output): Add argument.
10992 * target.c (debug_to_terminal_ours_for_output): Add argument.
10993 (update_current_target): Update.
10994 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10995 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10996 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
11000 * target.h (struct target_ops) <to_terminal_inferior>: Add
11002 * target.c (target_terminal_inferior): Add argument.
11003 (update_current_target): Update.
11004 * remote.c (remote_terminal_inferior): Add 'self' argument.
11005 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11006 * inflow.c (terminal_inferior): Add 'self' argument.
11007 * inferior.h (terminal_inferior): Add 'self' argument.
11008 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11009 (go32_terminal_inferior): Add 'self' argument.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11014 (target_terminal_init): Add argument.
11015 * target.c (debug_to_terminal_init): Add argument.
11016 (update_current_target): Update.
11017 * inflow.c (terminal_init_inferior): Add 'self' argument.
11018 * inferior.h (terminal_init_inferior): Add 'self' argument.
11019 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11020 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target.h (struct target_ops)
11025 <to_can_accel_watchpoint_condition>: Add argument.
11026 (target_can_accel_watchpoint_condition): Add argument.
11027 * target.c (debug_to_can_accel_watchpoint_condition): Add
11029 (update_current_target): Update.
11030 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11033 2014-02-19 Tom Tromey <tromey@redhat.com>
11035 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11037 (target_region_ok_for_hw_watchpoint): Add argument.
11038 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11039 (default_region_ok_for_hw_watchpoint): Add argument.
11040 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11041 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11043 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11045 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11047 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11049 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11051 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11053 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11054 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11056 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11057 Add 'self' argument.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11063 (target_insert_watchpoint): Add argument.
11064 * target.c (debug_to_insert_watchpoint): Add argument.
11065 (update_current_target): Update.
11066 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11067 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11068 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11069 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11070 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11071 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11073 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11074 (procfs_insert_hw_watchpoint): Add 'self' argument.
11075 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11077 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11079 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11081 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11082 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11084 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11089 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11091 (target_remove_watchpoint): Add argument.
11092 * target.c (debug_to_remove_watchpoint): Add argument.
11093 (update_current_target): Update.
11094 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11095 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11096 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11097 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11098 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11099 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11101 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11102 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11104 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11106 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11108 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11109 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11111 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11118 (target_remove_hw_breakpoint): Add argument.
11119 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11120 (update_current_target): Update.
11121 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11122 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11124 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11125 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11127 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11130 2014-02-19 Tom Tromey <tromey@redhat.com>
11132 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11134 (target_insert_hw_breakpoint): Add argument.
11135 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11136 (update_current_target): Update.
11137 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11138 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11140 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11141 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11142 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11144 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11149 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11151 (target_can_use_hardware_watchpoint): Add argument.
11152 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11153 (update_current_target): Update.
11154 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11156 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11158 * remote.c (remote_check_watch_resources): Add 'self' argument.
11159 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11160 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11162 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11163 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11165 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11167 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11169 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11171 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11173 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11175 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11176 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11178 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.h (struct target_ops) <to_post_attach>: Add argument.
11184 (target_post_attach): Add argument.
11185 * target.c (debug_to_post_attach): Add argument.
11186 (update_current_target): Update.
11187 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11188 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11189 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11190 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11191 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11195 * windows-nat.c (windows_close): Add 'self' argument.
11196 * tracepoint.c (tfile_close): Add 'self' argument.
11197 * target.h (struct target_ops) <to_close>: Add argument.
11198 * target.c (target_close): Add argument.
11199 (update_current_target): Update.
11200 * remote.c (remote_close): Add 'self' argument.
11201 * remote-sim.c (gdbsim_close): Add 'self' argument.
11202 * remote-mips.c (mips_close): Add 'self' argument.
11203 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11204 * record-full.c (record_full_close): Add 'self' argument.
11205 * record-btrace.c (record_btrace_close): Add 'self' argument.
11206 * monitor.h (monitor_close): Add 'self' argument.
11207 * monitor.c (monitor_close): Add 'self' argument.
11208 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11209 * linux-nat.c (linux_nat_close): Add argument.
11210 * go32-nat.c (go32_close): Add 'self' argument.
11211 * exec.c (exec_close_1): Add 'self' argument.
11212 * ctf.c (ctf_close): Add 'self' argument.
11213 * corelow.c (core_close): Add 'self' argument.
11214 (core_close_cleanup): Update.
11215 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11216 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11218 2014-02-19 Tom Tromey <tromey@redhat.com>
11220 * remote.c (remote_load): New function.
11221 (init_remote_ops): Use it.
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11225 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11227 * common/linux-btrace.h (linux_supports_btrace): Update.
11228 * remote.c (remote_supports_btrace): Add "self" argument.
11229 * target-delegates.c: Rebuild.
11230 * target.c (target_supports_btrace): Remove.
11231 * target.h (struct target_ops) <to_supports_btrace>: Add
11232 target_ops argument.
11233 (target_supports_btrace): New define.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * record-full.c (record_full_beneath_to_resume_ops)
11238 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11239 (record_full_beneath_to_wait)
11240 (record_full_beneath_to_store_registers_ops)
11241 (record_full_beneath_to_store_registers)
11242 (record_full_beneath_to_xfer_partial_ops)
11243 (record_full_beneath_to_xfer_partial)
11244 (record_full_beneath_to_insert_breakpoint_ops)
11245 (record_full_beneath_to_insert_breakpoint)
11246 (record_full_beneath_to_remove_breakpoint_ops)
11247 (record_full_beneath_to_remove_breakpoint)
11248 (record_full_beneath_to_stopped_by_watchpoint)
11249 (record_full_beneath_to_stopped_data_address)
11250 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11251 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11252 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11253 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11254 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11255 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11256 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11257 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11258 (record_full_resume, record_full_wait_1)
11259 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11260 (record_full_store_registers, record_full_xfer_partial)
11261 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11262 (record_full_async, record_full_core_xfer_partial): Use target
11264 * target-delegates.c: Rebuild.
11265 * target.c (current_xfer_partial): Remove.
11266 (update_current_target): Do not INHERIT or de_fault
11267 to_insert_breakpoint, to_remove_breakpoint,
11268 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11269 to_is_async_p, to_async. Do not set to_xfer_partial field.
11270 (default_xfer_partial): Simplify.
11271 (current_xfer_partial): Remove.
11272 (target_wait, target_resume): Simplify.
11273 (find_default_can_async_p, find_default_is_async_p): Update.
11274 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11275 to_xfer_partial, to_stopped_by_watchpoint,
11276 to_stopped_data_address.
11277 (target_store_registers): Simplify.
11278 (forward_target_remove_breakpoint)
11279 (forward_target_insert_breakpoint): Remove.
11280 (target_remove_breakpoint, target_insert_breakpoint)
11281 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11282 * target.h (struct target_ops) <to_resume, to_wait,
11283 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11284 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11285 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11287 (forward_target_remove_breakpoint)
11288 (forward_target_insert_breakpoint): Remove.
11289 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11291 (record_btrace_insert_breakpoint): Delegate directly.
11293 2014-02-19 Tom Tromey <tromey@redhat.com>
11296 * target-delegates.c: New file.
11297 * target.c: Include target-delegates.c.
11298 (init_dummy_target): Call install_dummy_methods.
11299 (complete_target_initialization): Call install_delegators.
11300 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11301 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11302 * make-target-delegates: New file.
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * record.c (find_record_target): Use find_target_at.
11307 * target.c (find_target_at): New function.
11308 * target.h (find_target_at): Declare.
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11312 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11313 Add 'ops' argument.
11314 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11316 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11317 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11319 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11321 * linux-nat.c (save_sigtrap): Update.
11322 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11323 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11324 (linux_nat_close): Update.
11325 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11327 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11329 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11330 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11331 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11332 (tmp_to_async): Add 'ops' argument.
11333 (record_full_stopped_by_watchpoint, record_full_async)
11334 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11336 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11337 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11338 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11339 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11340 (remote_is_async_p, remote_async): Add 'ops' argument.
11341 (remote_stopped_data_address): Update.
11342 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11343 * target.c (update_current_target)
11344 (find_default_can_async_p, find_default_is_async_p): Update.
11345 (init_dummy_target): Update.
11346 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11347 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11348 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11349 (target_can_async_p, target_is_async_p, target_async)
11350 (target_stopped_by_watchpoint): Update.
11352 2014-02-19 Yao Qi <yao@codesourcery.com>
11355 * gdbarch.sh: Remove startup_gdbarch.
11356 * gdbarch.c: Regenerated.
11357 * gdbarch.h: Likewise.
11359 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11361 * rl78-tdep.c (rl78_g10_register_name): New function.
11362 (rl78_return_value): Add g10 support.
11363 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11366 2014-02-17 Doug Evans <xdje42@gmail.com>
11368 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11369 (SUBDIR_GUILE_SRCS): Ditto.
11370 (scm-gsmob.o): Ditto.
11372 2014-02-17 Yao Qi <yao@codesourcery.com>
11374 * gnu-nat.c (ILL_RPC): Declare defined function.
11376 2014-02-17 Yao Qi <yao@codesourcery.com>
11378 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11379 mach_msg_type_number_t.
11380 (gnu_write_inferior): Likewise.
11382 2014-02-17 Yao Qi <yao@codesourcery.com>
11384 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11386 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11387 (inf_validate_procs, inf_signal): Likewise.
11388 (S_exception_raise_request): Likewise.
11389 (do_mach_notify_dead_name): Likewise.
11390 (steal_exc_port): Likewise.
11391 (gnu_read_inferior): Change 'copy_count''s type to
11392 mach_msg_type_number_t.
11393 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11396 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11398 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11399 flag. Adjust all users; in particular...
11400 (gnu_wait): ..., don't decrement its value in here...
11401 (gnu_create_inferior): ..., and instead set the flag in here,
11402 around the startup_inferior call, and call that one with
11403 START_INFERIOR_TRAPS_EXPECTED.
11405 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11406 (ILL_RPC): ... new macro.
11407 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11408 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11409 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11410 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11411 functions with ILL_RPC macro.
11412 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11413 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11414 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11415 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11416 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11417 (S_proc_getlogin_reply, S_proc_getsid_reply)
11418 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11419 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11420 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11421 (S_proc_getnports_reply, S_proc_is_important_reply)
11422 (S_proc_get_code_reply): New stub functions, generated with
11425 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11426 collected the type check structures.
11428 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11430 2014-02-14 Doug Evans <dje@google.com>
11432 * target.c (target_write_partial): Fix result type.
11434 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11436 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11437 the proper offsets to access fpregset_t.
11439 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11441 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11442 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11443 * h8300-tdep.c (setmachinelist): Remove global.
11444 * hppa-tdep.c (hppa_sigtramp): Remove global.
11445 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11446 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11447 * ravenscar-thread.c (update_target_observer): Remove global.
11448 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11450 2014-02-12 Tom Tromey <tromey@redhat.com>
11452 * common/rsp-low.c: Update comments.
11453 * common/rsp-low.h: Update comments.
11455 2014-02-12 Tom Tromey <tromey@redhat.com>
11457 * common/rsp-low.c (convert_ascii_to_int): Remove.
11458 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11460 2014-02-12 Tom Tromey <tromey@redhat.com>
11462 * common/rsp-low.h (unhexify): Don't declare.
11463 * common/rsp-low.c (unhexify): Remove.
11465 2014-02-12 Tom Tromey <tromey@redhat.com>
11467 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11468 * common/rsp-low.c (convert_int_to_ascii): Remove.
11470 2014-02-12 Tom Tromey <tromey@redhat.com>
11472 * common/rsp-low.h (hexify): Don't declare.
11473 * common/rsp-low.c (hexify): Remove.
11475 2014-02-12 Tom Tromey <tromey@redhat.com>
11477 * common/rsp-low.c (hexify): Never take strlen of argument.
11479 2014-02-12 Tom Tromey <tromey@redhat.com>
11481 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11482 * remote.c (extended_remote_run, remote_rcmd)
11483 (remote_download_trace_state_variable, remote_save_trace_data)
11484 (remote_set_trace_notes): Update.
11485 * tracepoint.c (encode_source_string, tfile_write_status)
11486 (tfile_write_uploaded_tsv): Update.
11488 2014-02-12 Tom Tromey <tromey@redhat.com>
11490 * tracepoint.c: Include rsp-low.h.
11491 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11492 * remote.c: Include rsp-low.h.
11493 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11494 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11495 (remote_unescape_input): Move to common/rsp-low.c.
11496 * common/rsp-low.h: New file.
11497 * common/rsp-low.c: New file.
11498 * Makefile.in (SFILES): Add common/rsp-low.c.
11499 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11500 (COMMON_OBS): Add rsp-low.o.
11501 (rsp-low.o): New target.
11503 2014-02-12 Tom Tromey <tromey@redhat.com>
11505 * utils.h: Include print-utils.h.
11506 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11507 (int_string, core_addr_to_string, core_addr_to_string_nz)
11508 (hex_string, hex_string_custom): Don't declare.
11509 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11510 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11511 (hex_string_custom, int_string, core_addr_to_string)
11512 (core_addr_to_string_nz, host_address_to_string): Move to
11513 common/print-utils.c.
11514 * common/print-utils.h: New file.
11515 * common/print-utils.c: New file
11516 * Makefile.in (SFILES): Add common/print-utils.c.
11517 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11518 (COMMON_OBS): Add print-utils.o.
11519 (print-utils.o): New target.
11521 2014-02-12 Tom Tromey <tromey@redhat.com>
11523 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11525 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11527 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11529 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11531 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11532 if a PT_IO ptrace request returns sucessfully but indicates that 0
11533 bytes were transferred.
11535 2014-02-12 Pedro Alves <palves@redhat.com>
11536 Kevin Buettner <kevinb@redhat.com>
11538 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11539 TYPE_INSTANCE_FLAG_CODE_SPACE.
11541 2014-02-12 Pedro Alves <palves@redhat.com>
11543 * h8300-tdep.c (pseudo_from_raw_register)
11544 (raw_from_pseudo_register): New functions.
11545 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11548 2014-02-12 Pedro Alves <palves@redhat.com>
11550 * h8300-tdep.c (h8300_register_sim_regno): New function.
11551 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11552 gdbarch_register_sim_regno hook.
11554 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11556 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11558 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11560 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11562 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11564 * obsd-tdep.h (obsd_init_abi): New prototype.
11565 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11566 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11567 (obsd_init_abi): New functions.
11568 * i386obsd-tdep.c: Include "obsd-tdep.h".
11569 (i386obsd_init_abi): Call obsd_init_abi.
11570 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11571 (amd64obsd_init_abi): Call obsd_init_abi.
11572 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11573 obsd-tdep.c to gdb_target_obs.
11575 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11577 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11578 double float arguments to 16-byte in the argument slots.
11580 2014-02-11 Doug Evans <xdje42@gmail.com>
11582 * configure.ac: Don't crash if pkg-config is not found and guile
11583 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11585 * configure: Regenerate.
11587 2014-02-11 Yao Qi <yao@codesourcery.com>
11589 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11590 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11591 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11592 * gnu-nat.c (gnu_xfer_memory): Likewise.
11593 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11594 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11595 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11596 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11598 2014-02-11 Yao Qi <yao@codesourcery.com>
11600 * target.h (enum target_xfer_error): Rename to ...
11601 (enum target_xfer_status): ... it. New. All users updated.
11602 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11604 (TARGET_XFER_STATUS_ERROR_P): New macro.
11605 (target_xfer_error_to_string): Remove declaration.
11606 (target_xfer_status_to_string): Declare.
11607 (target_xfer_partial_ftype): Adjust it.
11608 (struct target_ops) <to_xfer_partial>: Return
11609 target_xfer_status. Add argument xfered_len. Update
11611 * target.c (target_xfer_error_to_string): Rename to ...
11612 (target_xfer_status_to_string): ... it. New. All callers
11614 (target_read_live_memory): Likewise. Call target_xfer_partial
11615 instead of target_read.
11616 (memory_xfer_live_readonly_partial): Return
11617 target_xfer_status. Add argument xfered_len.
11618 (raw_memory_xfer_partial): Likewise.
11619 (memory_xfer_partial_1): Likewise.
11620 (memory_xfer_partial): Likewise.
11621 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11622 properly. Update debug message.
11623 (default_xfer_partial, current_xfer_partial): Likewise.
11624 (target_write_partial): Likewise.
11625 (target_read_partial): Likewise. All callers updated.
11626 (read_whatever_is_readable): Likewise.
11627 (target_write_with_progress): Likewise.
11628 (target_read_alloc_1): Likewise.
11630 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11631 * auxv.c (procfs_xfer_auxv): Likewise.
11632 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11633 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11634 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11635 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11636 * corefile.c (read_memory): Adjust.
11637 * corelow.c (core_xfer_partial): Likewise.
11638 * ctf.c (ctf_xfer_partial): Likewise.
11639 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11641 (darwin_xfer_partial): Likewise.
11642 * exec.c (section_table_xfer_memory_partial): Likewise. All
11644 (exec_xfer_partial): Likewise.
11645 * exec.h (section_table_xfer_memory_partial): Update
11647 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11649 (gnu_xfer_partial): Likewise.
11650 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11651 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11652 (ia64_hpux_xfer_solib_got): Likewise.
11653 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11654 type of 'partial_len' to ULONGEST.
11655 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11656 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11657 (linux_nat_xfer_partial): Likewise.
11658 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11659 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11660 * monitor.c (monitor_xfer_memory): Likewise.
11661 (monitor_xfer_partial): Likewise.
11662 * procfs.c (procfs_xfer_partial): Likewise.
11663 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11664 * record-full.c (record_full_xfer_partial): Likewise.
11665 (record_full_core_xfer_partial): Likewise.
11666 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11667 (gdbsim_xfer_partial): Likewise.
11668 * remote.c (remote_write_bytes_aux): Likewise. All callers
11670 (remote_write_bytes, remote_read_bytes): Likewise. All
11672 (remote_flash_erase): Likewise. All callers updated.
11673 (remote_write_qxfer): Likewise. All callers updated.
11674 (remote_read_qxfer): Likewise. All callers updated.
11675 (remote_xfer_partial): Likewise.
11676 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11677 (rs6000_xfer_shared_libraries): Likewise.
11678 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11679 (sol_thread_xfer_partial): Likewise.
11680 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11681 (sparc_xfer_partial): Likewise.
11682 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11684 (spu_xfer_partial): Likewise.
11685 * spu-multiarch.c (spu_xfer_partial): Likewise.
11686 * tracepoint.c (tfile_xfer_partial): Likewise.
11687 * windows-nat.c (windows_xfer_memory): Likewise.
11688 (windows_xfer_shared_libraries): Likewise.
11689 (windows_xfer_partial): Likewise.
11690 * valprint.c: Replace 'target_xfer_error' with
11691 'target_xfer_status' in comments.
11693 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11695 Checked in by Joel Brobecker <brobecker@adacore.com>.
11696 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11698 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11700 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11701 function parameters.
11703 2014-02-10 Will Newton <will.newton@linaro.org>
11705 * elfread.c (elf_rel_plt_read): Look for a .got section if
11706 looking up .got.plt fails.
11707 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11708 on address passed to elf_gnu_ifunc_record_cache.
11709 (elf_gnu_ifunc_resolve_addr): Likewise.
11710 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11712 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11714 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11715 (X_RETTURN): New macro.
11716 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11718 * sparc64-tdep.c (sparc64_init_abi): Hook
11719 sparc_in_function_epilogue_p.
11721 2014-02-10 Gary Benson <gbenson@redhat.com>
11723 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11724 Rename name_matcher to symbol_matcher.
11726 2014-02-10 Gary Benson <gbenson@redhat.com>
11728 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11729 Use expand_symtabs_file_matcher_ftype and
11730 expand_symtabs_symbol_matcher_ftype.
11732 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11734 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11735 (struct ada_symbol_cache): New.
11736 (ada_free_symbol_cache): Forward declare.
11737 (struct ada_pspace_data): New.
11738 (ada_pspace_data_handle): New static global.
11739 (get_ada_pspace_data, ada_pspace_data_cleanup)
11740 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11741 (cache_space, cache): Delete, now folded inside struct
11743 (ada_get_symbol_cache): New function.
11744 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11746 (_initialize_ada_language): Remove initialization of cache_space.
11747 Move call to observer_attach_inferior_exit up, grouping it
11748 with the other observer registrations inside this function.
11749 Rename command to be more general. Add call to
11750 register_program_space_data_with_cleanup.
11752 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11754 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11755 ada_new_objfile_observer.
11756 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11757 (_initialize_tasks): Update uses of ada_new_objfile_observer
11758 and ada_tasks_normal_stop_observer.
11760 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11762 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11763 returned by the 'Length attribute to integer.
11765 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11767 * ada-lang.c (_initialize_ada_language): Initialize
11768 cache_space obstack.
11770 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11772 * ada-lang.c (HASH_SIZE): New macro.
11773 (struct cache_entry): New type.
11774 (cache_space, cache): New static globals.
11775 (ada_clear_symbol_cache, find_entry): New functions.
11776 (lookup_cached_symbol, cache_symbol): Implement.
11777 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11778 (_initialize_ada_language): Attach ada_new_objfile_observer
11779 and ada_free_objfile_observer.
11781 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11783 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11784 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11785 struct block * parameter.
11786 (ada_lookup_symbol_list_worker): Constify local variable "block".
11787 Remove cast which is no longer necessary.
11789 2014-02-10 Doug Evans <xdje42@gmail.com>
11791 Add Guile as an extension language.
11792 * NEWS: Mention Guile scripting.
11793 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11794 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11795 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11796 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11797 (CLIBS): Add GUILE_LIBS.
11798 (install-guile): New rule.
11799 (guile.o): New rule.
11800 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11801 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11802 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11803 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11804 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11805 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11806 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11807 * configure.ac: New option --with-guile.
11808 * configure: Regenerate.
11809 * config.in: Regenerate.
11810 * auto-load.c: Remove #include "python/python.h". Add #include
11811 "gdb/section-scripts.h".
11812 (source_section_scripts): Handle Guile scripts.
11813 (_initialize_auto_load): Add name of Guile objfile script to
11814 scripts-directory help text.
11815 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11816 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11817 (struct breakpoint): New member scm_bp_object.
11818 * defs.h (enum command_control_type): New value guile_control.
11819 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11821 (show_user): Update comment.
11822 (_initialize_cli_cmds): Update help text for "show user". Update help
11823 text for max-user-call-depth.
11824 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11826 (multi_line_command_p): Add guile_control.
11827 (print_command_lines): Handle guile_control.
11828 (execute_control_command, recurse_read_control_structure): Ditto.
11829 (process_next_line): Recognize "guile" commands.
11830 * disasm.c (gdb_disassemble_info): Make non-static.
11831 * disasm.h: #include "dis-asm.h".
11832 (struct gdbarch): Add forward decl.
11833 (gdb_disassemble_info): Declare.
11834 * extension.c: #include "guile/guile.h".
11835 (extension_languages): Add guile.
11836 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11837 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11838 * gdbtypes.c (get_unsigned_type_max): New function.
11839 (get_signed_type_minmax): New function.
11840 * gdbtypes.h (get_unsigned_type_max): Declare.
11841 (get_signed_type_minmax): Declare.
11842 * guile/README: New file.
11843 * guile/guile-internal.h: New file.
11844 * guile/guile.c: New file.
11845 * guile/guile.h: New file.
11846 * guile/scm-arch.c: New file.
11847 * guile/scm-auto-load.c: New file.
11848 * guile/scm-block.c: New file.
11849 * guile/scm-breakpoint.c: New file.
11850 * guile/scm-disasm.c: New file.
11851 * guile/scm-exception.c: New file.
11852 * guile/scm-frame.c: New file.
11853 * guile/scm-gsmob.c: New file.
11854 * guile/scm-iterator.c: New file.
11855 * guile/scm-lazy-string.c: New file.
11856 * guile/scm-math.c: New file.
11857 * guile/scm-objfile.c: New file.
11858 * guile/scm-ports.c: New file.
11859 * guile/scm-pretty-print.c: New file.
11860 * guile/scm-safe-call.c: New file.
11861 * guile/scm-string.c: New file.
11862 * guile/scm-symbol.c: New file.
11863 * guile/scm-symtab.c: New file.
11864 * guile/scm-type.c: New file.
11865 * guile/scm-utils.c: New file.
11866 * guile/scm-value.c: New file.
11867 * guile/lib/gdb.scm: New file.
11868 * guile/lib/gdb/boot.scm: New file.
11869 * guile/lib/gdb/experimental.scm: New file.
11870 * guile/lib/gdb/init.scm: New file.
11871 * guile/lib/gdb/iterator.scm: New file.
11872 * guile/lib/gdb/printing.scm: New file.
11873 * guile/lib/gdb/types.scm: New file.
11874 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11875 (VPATH): Add $(GUILE_SRCDIR).
11876 (GUILE_DIR): New variable.
11877 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11878 (all): Add stamp-guile dependency.
11879 (stamp-guile): New rule.
11880 (clean-guile, install-guile, uninstall-guile): New rules.
11881 (install-only): Add install-guile dependency.
11882 (uninstall): Add uninstall-guile dependency.
11883 (clean): Add clean-guile dependency.
11885 2014-02-09 Doug Evans <xdje42@gmail.com>
11887 Revert this patch (which I approved, mea culpa).
11889 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11891 * Makefile.in (all-lib): Remove.
11892 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11894 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11896 Fix Python stack corruption.
11897 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11900 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11902 * Makefile.in (all-lib): Remove.
11903 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11905 2014-02-07 Doug Evans <dje@google.com>
11907 * extension-priv.h (extension_language_script_ops): Add comment.
11908 (extension_language_ops): Add comment.
11909 (active_ext_lang_state): Fix typo in comment.
11911 2014-02-07 Pedro Alves <palves@redhat.com>
11913 PR breakpoints/16292
11914 * infrun.c (handle_signal_stop) <signal arrives while stepping
11915 over a breakpoint>: Switch back to the stepping thread.
11917 2014-02-07 Yao Qi <yao@codesourcery.com>
11919 * target.c (target_xfer_partial): Return zero if LEN is zero.
11921 2014-02-07 Yao Qi <yao@codesourcery.com>
11923 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11924 (ld_so_xfer_auxv): Likewise.
11925 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11926 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11927 * corelow.c (core_xfer_partial): Likewise.
11928 * ctf.c (ctf_xfer_partial): Likewise.
11929 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11930 (darwin_xfer_partial): Likewise.
11931 * exec.c (exec_xfer_partial): Likewise.
11932 * gnu-nat.c (gnu_xfer_partial): Likewise.
11933 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11934 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11935 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11936 * linux-nat.c (linux_xfer_siginfo): Likewise.
11937 (linux_proc_xfer_spu): Likewise.
11938 * procfs.c (procfs_xfer_partial): Likewise.
11939 * record-full.c (record_full_xfer_partial): Likewise.
11940 (record_full_core_xfer_partial): Likewise.
11941 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11942 * remote.c (remote_write_qxfer): Likewise.
11943 (remote_write_qxfer, remote_read_qxfer): Likewise.
11944 (remote_xfer_partial): Likewise.
11945 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11946 (rs6000_xfer_shared_libraries): Likewise.
11947 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11948 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11949 (spu_xfer_partial): Likewise.
11950 * target.c (memory_xfer_partial_1): Likewise.
11951 * tracepoint.c (tfile_xfer_partial): Likewise.
11952 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11953 (windows_xfer_partial): Likewise.
11955 2014-02-07 Yao Qi <yao@codesourcery.com>
11957 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11959 (core_xfer_shared_libraries_aix): Likewise.
11960 * gdbarch.c, gdbarch.h: Regenerated.
11961 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11962 ULONGEST. Change 'len_avail' type to ULONGEST.
11963 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11964 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11966 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11968 2014-02-07 Yao Qi <yao@codesourcery.com>
11970 * corefile.c (memory_error): Get 'exception' from ERR and pass
11971 'exception' to throw_error.
11973 2014-02-06 Doug Evans <xdje42@gmail.com>
11975 * configure.ac (libpython checking): Remove all but python.o from
11976 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11977 * configure: Regenerate.
11979 * Makefile.in (SFILES): Add extension.c.
11980 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11981 (COMMON_OBS): Add extension.o.
11982 * extension.h: New file.
11983 * extension-priv.h: New file.
11984 * extension.c: New file.
11986 * python/python-internal.h: #include "extension.h".
11987 (gdbpy_auto_load_enabled): Declare.
11988 (gdbpy_apply_val_pretty_printer): Declare.
11989 (gdbpy_apply_frame_filter): Declare.
11990 (gdbpy_preserve_values): Declare.
11991 (gdbpy_breakpoint_cond_says_stop): Declare.
11992 (gdbpy_breakpoint_has_cond): Declare.
11993 (void source_python_script_for_objfile): Delete.
11994 * python/python.c: #include "extension-priv.h".
11995 Delete inclusion of "observer.h".
11996 (extension_language_python): Moved here and renamed from
11997 script_language_python in py-auto-load.c.
11998 Redefined to be of type extension_language_defn.
11999 (python_extension_script_ops): New global.
12000 (python_extension_ops): New global.
12001 (struct python_env): New member previous_active.
12002 (restore_python_env): Call restore_active_ext_lang.
12003 (ensure_python_env): Call set_active_ext_lang.
12004 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12006 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12008 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12010 (gdbpy_eval_from_control_command): Renamed from
12011 eval_python_from_control_command, made static. New arg extlang.
12012 (gdbpy_source_script) Renamed from source_python_script, made static.
12014 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12015 result to int. New arg extlang.
12016 (gdbpy_source_objfile_script): Renamed from
12017 source_python_script_for_objfile, made static. New arg extlang.
12018 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12019 static. New args extlang, extlang_printers. Change result type to
12021 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12022 static. New arg extlang. Rename arg printers to extlang_printers
12023 and change type to ext_lang_type_printers *.
12024 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12025 static. Replace argument arg with extlang, extlang_printers.
12026 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12027 (!HAVE_PYTHON, source_python_script): Delete.
12028 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12029 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12030 (!HAVE_PYTHON, start_type_printers): Delete.
12031 (!HAVE_PYTHON, apply_type_printers): Delete.
12032 (!HAVE_PYTHON, free_type_printers): Delete.
12033 (_initialize_python): Delete call to observer_attach_before_prompt.
12034 (finalize_python): Set/restore active extension language.
12035 (gdbpy_finish_initialization) Renamed from
12036 finish_python_initialization, made static. New arg extlang.
12037 (gdbpy_initialized): New function.
12038 * python/python.h: #include "extension.h". Delete #include
12039 "value.h", "mi/mi-cmds.h".
12040 (extension_language_python): Declare.
12041 (GDBPY_AUTO_FILE_NAME): Delete.
12042 (enum py_bt_status): Moved to extension.h and renamed to
12043 ext_lang_bt_status.
12044 (enum frame_filter_flags): Moved to extension.h.
12045 (enum py_frame_args): Moved to extension.h and renamed to
12046 ext_lang_frame_args.
12047 (finish_python_initialization): Delete.
12048 (eval_python_from_control_command): Delete.
12049 (source_python_script): Delete.
12050 (apply_val_pretty_printer): Delete.
12051 (apply_frame_filter): Delete.
12052 (preserve_python_values): Delete.
12053 (gdbpy_script_language_defn): Delete.
12054 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12055 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12057 * auto-load.c: #include "extension.h".
12058 (GDB_AUTO_FILE_NAME): Delete.
12059 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12060 (script_language_gdb): Delete, moved to extension.c and renamed to
12061 extension_language_gdb.
12062 (source_gdb_script_for_objfile): Delete.
12063 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12064 (loaded_script): Change type of language member to
12065 struct extension_language_defn *.
12066 (init_loaded_scripts_info): Initialize
12067 unsupported_script_warning_printed.
12068 (maybe_add_script): Make static. Change type of language arg to
12069 struct extension_language_defn *.
12070 (clear_section_scripts): Reset unsupported_script_warning_printed.
12071 (auto_load_objfile_script_1): Rewrite to use extension language API.
12072 (auto_load_objfile_script): Make public. Remove support-compiled-in
12073 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12074 (source_section_scripts): Rewrite to use extension language API.
12075 (load_auto_scripts_for_objfile): Rewrite to use
12076 auto_load_scripts_for_objfile.
12077 (collect_matching_scripts_data): Change type of language member to
12078 struct extension_language_defn *.
12079 (auto_load_info_scripts): Change type of language arg to
12080 struct extension_language_defn *.
12081 (unsupported_script_warning_print): New function.
12082 (script_not_found_warning_print): Make static.
12083 (_initialize_auto_load): Rewrite construction of scripts-directory
12085 * auto-load.h (struct objfile): Add forward decl.
12086 (struct script_language): Delete.
12087 (struct auto_load_pspace_info): Add forward decl.
12088 (struct extension_language_defn): Add forward decl.
12089 (maybe_add_script): Delete.
12090 (auto_load_objfile_script): Declare.
12091 (script_not_found_warning_print): Delete.
12092 (auto_load_info_scripts): Update prototype.
12093 (auto_load_gdb_scripts_enabled): Declare.
12094 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12095 auto_load_python_scripts_enabled and made public.
12096 (script_language_python): Delete, moved to python.c.
12097 (gdbpy_script_language_defn): Delete.
12098 (info_auto_load_python_scripts): Update to use
12099 extension_language_python.
12101 * breakpoint.c (condition_command): Replace call to
12102 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12103 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12104 with call to breakpoint_ext_lang_cond_says_stop.
12105 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12106 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12107 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12108 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12110 (local_setattro): Print name of extension language with existing
12113 * valprint.c (val_print, value_print): Update to call
12114 apply_ext_lang_val_pretty_printer.
12115 * cp-valprint.c (cp_print_value): Update call to
12116 apply_ext_lang_val_pretty_printer.
12117 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12118 (gdbpy_apply_val_pretty_printer): Renamed from
12119 apply_val_pretty_printer. New arg extlang.
12120 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12122 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12123 extension language API.
12124 * cli/cli-script.c (execute_control_command): Update to call
12125 eval_ext_lang_from_control_command.
12127 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12128 enum ext_lang_bt_status values. Update call to
12129 apply_ext_lang_frame_filter.
12130 (mi_cmd_stack_list_locals): Ditto.
12131 (mi_cmd_stack_list_args): Ditto.
12132 (mi_cmd_stack_list_variables): Ditto.
12133 * mi/mi-main.c: Delete #include "python/python-internal.h".
12134 Add #include "extension.h".
12135 (mi_cmd_list_features): Replace reference to python internal variable
12136 gdb_python_initialized with call to ext_lang_initialized_p.
12138 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12139 Update to use enum ext_lang_frame_args. Update to call
12140 apply_ext_lang_frame_filter.
12141 * python/py-framefilter.c (extract_sym): Update to use enum
12142 ext_lang_bt_status.
12143 (extract_value, py_print_type, py_print_value): Ditto.
12144 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12145 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12146 (py_print_frame): Ditto.
12147 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12148 New arg extlang. Update to use enum ext_lang_bt_status.
12150 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12151 finish_python_initialization. Replace with call to
12152 finish_ext_lang_initialization.
12154 * typeprint.c (do_free_global_table): Update to call
12155 free_ext_lang_type_printers.
12156 (create_global_typedef_table): Update to call
12157 start_ext_lang_type_printers.
12158 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12159 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12160 (type_print_options): Change type of global_printers from "void *"
12161 to "struct ext_lang_type_printers *".
12163 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12164 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12165 (gdbpy_preserve_values): Renamed from preserve_python_values.
12167 (!HAVE_PYTHON, preserve_python_values): Delete.
12169 * utils.c (quit_flag): Delete, moved to extension.c.
12170 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12173 * eval.c: Delete #include "python/python.h".
12174 * main.c: Delete #include "python/python.h".
12176 * defs.h: Update comment.
12178 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12182 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12184 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12187 2014-02-05 Yao Qi <yao@codesourcery.com>
12189 * remote.c (remote_pass_signals): Remove local 'buf' and use
12191 (remote_program_signals): Likewise.
12193 2014-02-05 Yao Qi <yao@codesourcery.com>
12195 * ctf.c: Include "inferior.h" and "gdbthread.h".
12196 (CTF_PID): A new macro.
12197 (ctf_open): Call inferior_appeared and add_thread_silent.
12198 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12199 (ctf_thread_alive): New function.
12200 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12202 2014-02-05 Yao Qi <yao@codesourcery.com>
12206 2013-05-24 Yao Qi <yao@codesourcery.com>
12208 * tracepoint.c (TFILE_PID): Remove.
12209 (tfile_open): Don't add thread and inferior.
12210 (tfile_close): Don't set 'inferior_ptid'. Don't call
12211 exit_inferior_silent.
12212 (tfile_thread_alive): Remove.
12213 (init_tfile_ops): Don't set field 'to_thread_alive' of
12216 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12218 * remote.c (remote_start_remote): Call remote_check_symbols even
12219 if only symbol-file (not file) has been given.
12221 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12223 * gdbarch.sh (skip_entrypoint): New callback.
12224 * gdbarch.c, gdbarch.h: Regenerate.
12225 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12226 * infrun.c (fill_in_stop_func): Likewise.
12227 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12228 (ppc_elfv2_elf_make_msymbol_special): New function.
12229 (ppc_elfv2_skip_entrypoint): Likewise.
12230 (ppc_linux_init_abi): Install them for ELFv2.
12232 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12234 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12235 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12236 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12237 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12238 structures returned in GPRs.
12240 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12242 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12243 offset to the stack parameter list for the ELFv2 ABI.
12245 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12247 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12248 set_gdbarch_convert_from_func_ptr_addr and
12249 set_gdbarch_elf_make_msymbol_special for ELFv1.
12250 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12251 function descriptors on ELFv1.
12252 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12253 set up r12 at function entry.
12255 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12257 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12258 (struct gdbarch_tdep): New member elf_abi.
12260 * rs6000-tdep.c: Include "elf/ppc64.h".
12261 (rs6000_gdbarch_init): Detect ELF ABI version.
12263 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12265 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12266 within a register pair holding a DFP 128-bit value on little-endian.
12267 (ppc64_sysv_abi_return_value_base): Likewise.
12268 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12269 (dfp_pseudo_register_write): Likewise.
12271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12273 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12274 offset on little-endian when passing _Decimal32.
12275 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12277 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12279 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12280 of the overlapped FP register within the VSX register on little-
12282 (efpr_pseudo_register_write): Likewise.
12284 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12286 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12287 offset on little-endian when passing small structures.
12289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12291 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12292 (struct ppc64_sysv_argpos): New data structure.
12293 (ppc64_sysv_abi_push_float): Remove.
12294 (ppc64_sysv_abi_push_val): New function.
12295 (ppc64_sysv_abi_push_integer): Likewise.
12296 (ppc64_sysv_abi_push_freg): Likewise.
12297 (ppc64_sysv_abi_push_vreg): Likewise.
12298 (ppc64_sysv_abi_push_param): Likewise.
12299 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12300 (ppc64_sysv_abi_return_value_base): New function.
12301 (ppc64_sysv_abi_return_value): Refactor to use it.
12303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12305 * NEWS: Document new target powerpc64le-*-linux*.
12307 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12309 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12310 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12312 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12313 register set used in ELF core dumps. Add floating-point register set.
12315 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12317 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12318 dwarf2_to_gdb[] table using symbolic constants. Adjust
12319 penultimate entry from number representing the PC register
12320 to symbolic constant representing the MDR register. Add
12321 constant for the PC register to the end of the table.
12323 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12325 * bsd-kvm.c: Include <sys/param.h>
12327 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12329 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12331 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12333 * ada-lang.h (clear_ada_sym_cache): Delete.
12335 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12337 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12339 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12341 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12342 the sigreturn register save area only if the syscall is
12345 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12347 * valops.c (value_slice): Minor reformatting.
12349 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12351 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12353 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12355 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12356 New static globals.
12357 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12358 (ada_ignore_descriptive_types_p): New static global.
12359 (find_parallel_type_by_descriptive_type): Return immediately
12360 if ada_ignore_descriptive_types_p is set.
12361 (_initialize_ada_language): Register new commands "maintenance
12362 set ada", "maintenance show ada", "maintenance set ada
12363 ignore-descriptive-types" and "maintenance show ada
12364 ignore-descriptive-types".
12365 * NEWS: Add entry for new "maint ada set/show
12366 ignore-descriptive-types" commands.
12368 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12370 * record-btrace.c (record_btrace_close): Call btrace_teardown
12373 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12375 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12378 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12380 * ada-typeprint (type_is_full_subrange_of_target_type):
12382 (print_range): Add parameter bounds_prefered_p. If not set,
12383 try printing range types using the name of their base type.
12384 (print_range_type): Add parameter bounds_prefered_p.
12385 Use it in call to print_range.
12386 (print_array_type, ada_print_type): Update calls to print_range
12387 and print_range_type.
12389 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12391 * ada-typeprint.c (print_array_type, print_choices, print_range)
12392 (print_range_bound, print_dynamic_range_bound, print_range_type):
12393 Remove declaration.
12395 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12397 * ada-typeprint.c (print_range): Add missing empty line
12398 after local declaration.
12400 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12402 * ada-valprint.c (print_optional_low_bound): Get index_type's
12403 target type for as long as it is a TYPE_CODE_RANGE.
12405 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12407 * procfs.c (procfs_make_note_section): Remove assertion and
12408 associated comment.
12410 2014-01-24 Yao Qi <yao@codesourcery.com>
12412 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12413 * corelow.c (get_core_siginfo): Likewise.
12415 2014-01-24 Yao Qi <yao@codesourcery.com>
12417 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12418 ULONGEST. Don't check 'len' is negative.
12419 (remote_write_bytes): Change type of 'len' to ULONGEST.
12421 2014-01-23 Tom Tromey <tromey@redhat.com>
12424 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12425 Handle exception from frame.block.
12426 (FrameVars.fetch_frame_locals): Likewise.
12428 2014-01-23 Tom Tromey <tromey@redhat.com>
12431 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12432 on a NULL pointer. Move "goto error" to correct place.
12434 2014-01-23 Tom Tromey <tromey@redhat.com>
12437 * python/py-framefilter.c (apply_frame_filter): Call
12438 ensure_python_env after computing gdbarch.
12440 2014-01-23 Yao Qi <yao@codesourcery.com>
12442 * target.c (raw_memory_xfer_partial): Change argument type
12443 from void * to gdb_byte *.
12444 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12446 2014-01-22 Doug Evans <dje@google.com>
12448 New gdbserver option --debug-format=timestamp.
12449 * NEWS: Mention it.
12451 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12453 * syscalls/s390x-linux.xml: New file.
12454 * syscalls/s390-linux.xml: New file.
12455 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12456 (XML_SYSCALL_FILENAME_S390X): Likewise.
12457 (op_svc): New enum value for SVC opcode.
12458 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12459 (s390_linux_get_syscall_number): New function.
12460 (s390_gdbarch_init): Register '*get_syscall_number' and the
12461 syscall xml file name.
12462 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12463 "s390-linux.xml" and "s390x-linux.xml".
12464 * NEWS: Announce new feature.
12466 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12468 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12470 2014-01-22 Pedro Alves <palves@redhat.com>
12472 * xtensa-config.c: Include defs.h.
12474 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12476 * common/common-utils.h: Add "ARI:" comment beside __func__
12479 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12481 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12482 documentation a bit.
12484 2014-01-21 Roland McGrath <mcgrathr@google.com>
12486 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12487 * configure: Regenerate.
12488 * aclocal.m4: Regenerate.
12489 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12490 New substituted variables.
12491 (install-strip): New target.
12492 (INSTALL_SCRIPT): New substituted variable.
12493 (FLAGS_TO_PASS): Add it.
12494 (install-only): Use $(INSTALL_SCRIPT) rather than
12495 $(INSTALL_PROGRAM) for gcore.
12497 2014-01-20 Tom Tromey <tromey@redhat.com>
12499 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12502 2014-01-20 Tom Tromey <tromey@redhat.com>
12504 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12505 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12506 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12507 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12508 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12509 (struct cmd_list_element) <flags>: Remove.
12510 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12511 doc_allocated>: New fields.
12512 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12514 * maint.c (maintenance_do_deprecate): Update.
12515 * top.c (execute_command): Update.
12517 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12519 * xtensa-linux-nat.c: Include asm/ptrace.h.
12521 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12523 * Makefile.in (SFILES): Add d-support.c.
12524 (COMMON_OBS): Add d-support.o.
12525 * d-lang.h (d_parse_symbol): Add comment, now defined in
12527 * d-lang.c (parse_call_convention)
12528 (parse_attributes, parse_function_types)
12529 (parse_function_args, parse_type, parse_identifier)
12530 (call_convention_p, d_parse_symbol): Move functions to ...
12531 * d-support.c: ... New file.
12533 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12535 * d-lang.h (d_parse_symbol): Add declaration.
12536 * d-lang.c (extract_identifiers)
12537 (extract_type_info): Remove functions.
12538 (parse_call_convention, parse_attributes)
12539 (parse_function_types, parse_function_args)
12540 (parse_type, parse_identifier, call_convention_p)
12541 (d_parse_symbol): New functions.
12542 (d_demangle): Use d_parse_symbol to demangle D symbols.
12544 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12546 * d-lang.h (struct builtin_d_type): New data type.
12547 (builtin_d_type): Add declaration.
12548 * d-lang.c (d_language_arch_info, build_d_types)
12549 (builtin_d_type): New functions.
12550 (enum d_primitive_types): New data type.
12551 (d_language_defn): Change c_language_arch_info to
12552 d_language_arch_info.
12553 (d_type_data): New static variable.
12554 (_initialize_d_language): Initialize d_type_data.
12556 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12558 * d-lang.h (d_main_name): Add declaration.
12559 * d-lang.c (d_main_name): New function.
12560 * symtab.c (find_main_name): Add call to d_main_name.
12562 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12564 * d-lang.c (d_language_defn): Change macro_expansion_c to
12565 macro_expansion_no.
12567 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12569 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12571 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12573 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12574 gdb_exception" declaration.
12575 * remote.c (getpkt_or_notif_sane): Likewise.
12577 2014-01-17 Doug Evans <dje@google.com>
12579 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12580 function, contents of dirnames_to_char_ptr_vec_append moved here.
12581 (delim_string_to_char_ptr_vec): New function.
12582 (dirnames_to_char_ptr_vec_append): Rewrite.
12583 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12585 2014-01-17 Doug Evans <dje@google.com>
12587 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12589 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12590 #include "common-utils.h".
12591 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12592 * common/vec.h (VEC_ASSERT_PASS): Update.
12593 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12594 (MACH_CHECK_ERROR): Update.
12596 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12598 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12600 * gdbarch.h: Regenerate.
12602 2014-01-16 Tom Tromey <tromey@redhat.com>
12604 * value.c (struct value) <regnum>: Move earlier.
12606 2014-01-16 Tom Tromey <tromey@redhat.com>
12608 * remote.c (extended_remote_create_inferior): Rename from
12609 extended_remote_create_inferior_1. Add "ops" argument. Remove
12610 old implementation.
12612 2014-01-16 Pedro Alves <palves@redhat.com>
12614 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12615 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12618 2014-01-16 Doug Evans <dje@google.com>
12620 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12624 * btrace.h (btrace_thread_flag): New.
12625 (struct btrace_thread_info) <flags>: New.
12626 * record-btrace.c (record_btrace_resume_thread)
12627 (record_btrace_find_thread_to_move, btrace_step_no_history)
12628 (btrace_step_stopped, record_btrace_start_replaying)
12629 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12630 (record_btrace_find_resume_thread): New.
12631 (record_btrace_resume, record_btrace_wait): Extend.
12632 (record_btrace_can_execute_reverse): New.
12633 (record_btrace_open): Fail in non-stop mode.
12634 (record_btrace_set_replay): Split into this, ...
12635 (record_btrace_stop_replaying): ... this, ...
12636 (record_btrace_clear_histories): ... and this.
12637 (init_record_btrace_ops): Init to_can_execute_reverse.
12638 * NEWS: Announce it.
12640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12642 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12643 (forward_target_decr_pc_after_break)
12644 (target_decr_pc_after_break): New.
12645 * target.c (forward_target_decr_pc_after_break)
12646 (target_decr_pc_after_break): New.
12647 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12648 instead of gdbarch_decr_pc_after_break.
12649 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12650 instead of gdbarch_decr_pc_after_break.
12651 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12652 instead of gdbarch_decr_pc_after_break.
12653 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12654 instead of gdbarch_decr_pc_after_break.
12655 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12656 instead of gdbarch_decr_pc_after_break.
12657 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12658 instead of gdbarch_decr_pc_after_break.
12660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12662 * btrace.c: Include regcache.h.
12663 (btrace_add_pc): New.
12664 (btrace_enable): Call btrace_add_pc.
12665 (btrace_is_empty): New.
12666 * btrace.h (btrace_is_empty): New.
12667 * record-btrace.c (require_btrace, record_btrace_info): Call
12670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12672 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12673 Support delta reads.
12674 (linux_disable_btrace): Change return type.
12675 * common/linux-btrace.h (linux_read_btrace): Change parameters
12676 and return type to allow error reporting. Update users.
12677 (linux_disable_btrace): Change return type. Update users.
12678 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12680 (btrace_error): New.
12681 (btrace_block) <begin>: Comment on BEGIN == 0.
12682 * btrace.c (btrace_compute_ftrace): Start from the end of
12684 (btrace_stitch_trace, btrace_clear_history): New.
12685 (btrace_fetch): Read delta trace, return if replaying.
12686 (btrace_clear): Move clear history code to btrace_clear_history.
12687 (parse_xml_btrace): Throw an error if parsing failed.
12688 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12689 and return type to allow error reporting.
12690 (target_read_btrace): Change parameters and return type to allow
12692 * target.c (target_read_btrace): Update.
12693 * remote.c (remote_read_btrace): Support delta reads. Pass
12695 * NEWS: Announce it.
12697 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12699 * record.h (record_btrace_frame_unwind)
12700 (record_btrace_tailcall_frame_unwind): New declarations.
12701 * dwarf2-frame: Include record.h
12702 (dwarf2_frame_cfa): Throw an error for btrace frames.
12703 * record-btrace.c: Include hashtab.h.
12704 (btrace_get_bfun_name): New.
12705 (btrace_call_history): Call btrace_get_bfun_name.
12706 (struct btrace_frame_cache): New.
12708 (bfcache_hash, bfcache_eq, bfcache_new): New.
12709 (btrace_get_frame_function): New.
12710 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12711 (record_btrace_frame_this_id): Compute own id.
12712 (record_btrace_frame_prev_register): Provide PC, throw_error
12713 for all other registers.
12714 (record_btrace_frame_sniffer): Detect btrace frames.
12715 (record_btrace_tailcall_frame_sniffer): New.
12716 (record_btrace_frame_dealloc_cache): New.
12717 (record_btrace_frame_unwind): Add new functions.
12718 (record_btrace_tailcall_frame_unwind): New.
12719 (_initialize_record_btrace): Allocate cache.
12720 * btrace.c (btrace_clear): Call reinit_frame_cache.
12721 * NEWS: Announce it.
12723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12725 * record-btrace.c (record_btrace_set_replay)
12726 (record_btrace_goto_begin, record_btrace_goto_end)
12727 (record_btrace_goto): New.
12728 (init_record_btrace_ops): Initialize them.
12729 * NEWS: Announce it.
12731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12733 * record-btrace.c (record_btrace_find_new_threads)
12734 (record_btrace_thread_alive): New.
12735 (init_record_btrace_ops): Initialize to_find_new_threads and
12738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12740 * record-btrace.c (record_btrace_resume): New.
12741 (record_btrace_wait): New.
12742 (init_record_btrace_ops): Initialize to_wait and to_resume.
12744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12746 * record-btrace.c (record_btrace_xfer_partial)
12747 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12748 (record_btrace_allow_memory_access): New.
12749 (init_record_btrace_ops): Initialize new methods.
12750 * target.c (raw_memory_xfer_partial): Bail out if target reports
12751 that this memory is not available.
12753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12755 * target.h (target_ops) <to_insert_breakpoint>
12756 <to_remove_breakpoint>: Add target_ops parameter.
12757 (forward_target_insert_breakpoint): New.
12758 (forward_target_remove_breakpoint): New.
12759 (memory_remove_breakpoint, memory_insert_breakpoint):
12760 Add target_ops parameter.
12761 * target.c (target_insert_breakpoint): Split into this and ...
12762 (forward_target_insert_breakpoint): ... this.
12763 (target_remove_breakpoint): Split into this and ...
12764 (forward_target_remove_breakpoint): ... this.
12765 (debug_to_insert_breakpoint): Add target_ops parameter.
12766 Call forward_target_insert_breakpoint.
12767 (debug_to_remove_breakpoint): Add target_ops parameter.
12768 Call forward_target_remove_breakpoint.
12769 (update_current_target): Do not inherit or default to_insert_breakpoint
12770 and to_remove_breakpoint.
12771 * corelow.c (ignore): Add target_ops parameter.
12772 * exec.c (ignore): Add target_ops parameter.
12773 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12774 Add target_ops parameter.
12775 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12776 Add target_ops parameter.
12777 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12778 Add target_ops parameter.
12779 * record-full.c (record_full_beneath_to_insert_breakpoint)
12780 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12781 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12782 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12783 (record_full_core_remove_breakpoint): Add target_ops parameter.
12785 (record_full_beneath_to_insert_breakpoint_ops)
12786 (record_full_beneath_to_remove_breakpoint_ops)
12787 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12788 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12789 tmp_to_remove_breakpoint_ops,
12790 record_full_beneath_to_insert_breakpoint_ops, and
12791 record_full_beneath_to_remove_breakpoint_ops.
12792 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12793 (m32r_remove_breakpoint): Add target_ops parameter.
12794 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12795 Add target_ops parameter.
12796 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12797 Add target_ops parameter.
12799 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12800 Markus Metzger <markus.t.metzger@intel.com>
12802 * record-btrace.c: Include frame-unwind.h.
12803 (record_btrace_frame_unwind_stop_reason)
12804 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12805 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12807 (init_record_btrace_ops): Install it.
12809 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12811 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12814 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12816 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12819 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12821 * frame-unwind.c: Include target.h.
12822 (frame_unwind_try_unwinder): New function with code from ...
12823 (frame_unwind_find_by_frame): ... here. New variable
12824 unwinder_from_target, call also target_get_unwinder)
12825 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12826 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12827 * target.h (struct target_ops): New fields to_get_unwinder and
12828 to_get_tailcall_unwinder.
12829 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12833 * record-btrace.c (record_btrace_fetch_registers)
12834 (record_btrace_store_registers)
12835 (record_btrace_to_prepare_to_store): New.
12836 (init_record_btrace_ops): Add the above.
12838 2014-01-16 Tom Tromey <tromey@redhat.com>
12840 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12841 * target.h (struct target_ops) <to_prepare_to_store>: Add
12843 (target_prepare_to_store): Add argument.
12844 * target.c (debug_to_prepare_to_store): Add argument.
12845 (update_current_target): Update.
12846 * remote.c (remote_prepare_to_store): Add 'self' argument.
12847 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12848 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12849 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12850 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12852 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12853 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12854 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12855 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12856 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12858 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12860 * btrace.h (replay) <replay>: New.
12861 (btrace_is_replaying): New.
12862 * btrace.c (btrace_clear): Free replay iterator.
12863 (btrace_is_replaying): New.
12864 * record-btrace.c (record_btrace_is_replaying): New.
12865 (record_btrace_info): Print insn number if replaying.
12866 (record_btrace_insn_history): Start at replay position.
12867 (record_btrace_call_history): Start at replay position.
12868 (init_record_btrace_ops): Init to_record_is_replaying.
12870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12872 * record-btrace.c (record_btrace_insn_history_range): Include
12874 (record_btrace_insn_history_from): Adjust range.
12875 (record_btrace_call_history_range): Include
12877 (record_btrace_call_history_from): Adjust range.
12878 * NEWS: Announce changes.
12880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12882 * record.h (enum record_print_flag)
12883 <record_print_indent_calls>: New.
12884 * record.c (get_call_history_modifiers): Recognize /c modifier.
12885 (_initialize_record): Document /c modifier.
12886 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12887 Reorder fields. Optionally indent the function name. Update
12889 * NEWS: Announce changes.
12891 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12893 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12897 * btrace.c (ftrace_new_function): Start counting at one.
12898 * record-btrace.c (record_btrace_info): Adjust number of calls
12900 * NEWS: Announce it.
12902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12904 * record-btrace.c (btrace_call_history_insn_range): Print
12905 insn range as [begin, end].
12907 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12909 * btrace.h (struct btrace_func_link): New.
12910 (enum btrace_function_flag): New.
12911 (struct btrace_inst): Rename to ...
12912 (struct btrace_insn): ...this. Update all users.
12913 (struct btrace_func) <ibegin, iend>: Remove.
12914 (struct btrace_func_link): New.
12915 (struct btrace_func): Rename to ...
12916 (struct btrace_function): ...this. Update all users.
12917 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12918 (number, level, flags>: New.
12919 (struct btrace_insn_iterator): Rename to ...
12920 (struct btrace_insn_history): ...this.
12922 (struct btrace_insn_iterator, btrace_call_iterator): New.
12923 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12924 (struct btrace_target_info) <begin, end, level>
12925 <insn_history, call_history>: New.
12926 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12927 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12928 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12929 (btrace_call_number, btrace_call_begin, btrace_call_end)
12930 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12931 (btrace_find_function_by_number, btrace_set_insn_history)
12932 (btrace_set_call_history): New.
12933 * btrace.c (btrace_init_insn_iterator)
12934 (btrace_init_func_iterator, compute_itrace): Remove.
12935 (ftrace_print_function_name, ftrace_print_filename)
12936 (ftrace_skip_file): Change
12937 parameter to const.
12938 (ftrace_init_func): Remove.
12939 (ftrace_debug): Use new btrace_function fields.
12940 (ftrace_function_switched): Also consider gaining and
12941 losing symbol information).
12942 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12943 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12944 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12946 (ftrace_new_function): Move. Remove debug print.
12947 (ftrace_update_lines, ftrace_update_insns): New.
12948 (ftrace_update_function): Check for call, ret, and jump.
12949 (compute_ftrace): Renamed to ...
12950 (btrace_compute_ftrace): ...this. Rewritten to compute call
12952 (btrace_fetch, btrace_clear): Updated.
12953 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12954 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12955 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12956 (btrace_call_number, btrace_call_begin, btrace_call_end)
12957 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12958 (btrace_find_function_by_number, btrace_set_insn_history)
12959 (btrace_set_call_history): New.
12960 * record-btrace.c (require_btrace): Use new btrace thread
12962 (record_btrace_info, btrace_insn_history)
12963 (record_btrace_insn_history, record_btrace_insn_history_range):
12964 Use new btrace thread info fields and new iterator.
12965 (btrace_func_history_src_line): Rename to ...
12966 (btrace_call_history_src_line): ...this. Use new btrace
12967 thread info fields.
12968 (btrace_func_history): Rename to ...
12969 (btrace_call_history): ...this. Use new btrace thread info
12970 fields and new iterator.
12971 (record_btrace_call_history, record_btrace_call_history_range):
12972 Use new btrace thread info fields and new iterator.
12974 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12976 * frame.h (frame_id_build_unavailable_stack_special): New.
12977 * frame.c (frame_id_build_unavailable_stack_special): New.
12979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12981 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12982 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12983 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12985 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12986 (i386_insn_is_jump, i386_jmp_p): New.
12987 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12988 insn_is_jump to gdbarch.
12989 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12990 * gdbarch.h: Regenerated.
12991 * gdbarch.c: Regenerated.
12992 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12993 (default_insn_is_jump): New.
12994 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12995 (default_insn_is_jump): New.
12997 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12999 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13001 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13002 (btrace_read_type) <btrace_read_new>: Change to ...
13003 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13007 * common/linux-btrace.c (linux_read_btrace): Free trace from
13008 previous iteration.
13010 2014-01-15 Doug Evans <dje@google.com>
13012 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13015 2014-01-15 Tom Tromey <tromey@redhat.com>
13017 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13018 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13019 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13020 (set_objfile_main_name): New function.
13021 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13022 language_of_main>: New fields.
13023 (set_objfile_main_name): Declare.
13024 * symtab.c (find_main_name): Loop over objfiles to find the main
13026 (set_main_name): Now static.
13027 (get_main_info): Add comment.
13028 * symtab.h (set_main_name): Don't declare.
13030 2014-01-15 Tom Tromey <tromey@redhat.com>
13032 * symtab.c (main_progspace_key): New global.
13033 (struct main_info): New.
13034 (name_of_main, language_of_main): Remove.
13035 (get_main_info, main_info_cleanup): New function.
13036 (set_main_name, main_name, main_language): Use get_main_info.
13037 (_initialize_symtab): Initialize main_progspace_key.
13039 2014-01-15 Tom Tromey <tromey@redhat.com>
13041 * dbxread.c (process_one_symbol): Update.
13042 * dwarf2read.c (read_partial_die): Update.
13043 * symfile.c (set_initial_language): Call main_language.
13044 * symtab.c (language_of_main): Now static.
13045 (set_main_name): Add 'lang' parameter.
13046 (find_main_name): Update.
13047 (main_language): New function.
13048 (symtab_observer_executable_changed): Update.
13049 * symtab.h (set_main_name): Update.
13050 (language_of_main): Remove.
13051 (main_language): Declare.
13053 2014-01-15 Tom Tromey <tromey@redhat.com>
13055 * symfile.c (init_entry_point_info): Use new "initialized" field.
13057 * objfiles.h (struct entry_point) <initialized>: New field.
13058 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13059 (struct objfile) <ei>: ...here. Remove.
13060 * objfiles.c (entry_point_address_query): Update.
13062 2014-01-15 Tom Tromey <tromey@redhat.com>
13064 * objfiles.c (entry_point_address_query): Relocate entry point
13066 (objfile_relocate1): Do not relocate entry point address.
13067 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13068 <the_bfd_section_index>: New field.
13069 * symfile.c (init_entry_point_info): Find the entry point's
13072 2014-01-15 Tom Tromey <tromey@redhat.com>
13074 * solib-frv.c (enable_break): Use entry_point_address_query.
13076 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13078 * NEWS: Add note on improved process record-replay on
13079 arm*-linux* targets.
13081 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13083 * arm-tdep.c (enum arm_record_result): New enum.
13084 (arm_record_unsupported_insn): New function.
13085 (arm_record_coproc_data_proc): Removed.
13086 (thumb2_record_ld_st_multiple): New function.
13087 (thumb2_record_ld_st_dual_ex_tbb): New function.
13088 (thumb2_record_data_proc_sreg_mimm): New function.
13089 (thumb2_record_ps_dest_generic): New function.
13090 (thumb2_record_branch_misc_cntrl): New function.
13091 (thumb2_record_str_single_data): New function.
13092 (thumb2_record_ld_mem_hints): New function.
13093 (thumb2_record_ld_word): New function.
13094 (thumb2_record_lmul_lmla_div): New function.
13095 (thumb2_record_decode_insn_handler): New function.
13096 (decode_insn): Add thumb32 instruction handlers.
13098 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13100 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13101 (struct arm_linux_record_tdep): Declare.
13102 (arm_canonicalize_syscall): New function.
13103 (arm_all_but_pc_registers_record): New function.
13104 (arm_linux_syscall_record): New function.
13105 (arm_linux_init_abi): Add syscall recording constructs.
13106 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13107 decoding. (arm_record_coproc_data_proc): Update arm syscall
13109 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13110 <arm_syscall_record>: New field.
13111 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13114 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13116 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13117 register for push instruction recording.
13119 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13121 * arm-tdep.c (thumb_record_misc): Update to correct logical
13122 error while recording ldm, ldmia and pop instructions.
13124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13126 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13128 2014-01-15 Pedro Alves <palves@redhat.com>
13130 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13131 (go32_resume, go32_fetch_registers, store_register)
13132 (go32_store_registers, go32_prepare_to_store)
13133 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13134 (go32_create_inferior, go32_can_run, go32_terminal_init)
13135 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13138 2014-01-15 Tom Tromey <tromey@redhat.com>
13140 * target.h (async_callback_ftype): New typedef.
13141 (struct target_ops) <to_async>: Use it.
13143 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13145 * python/py-value.c (get_field_type): Remove unnecessary curly
13146 braces for single-statement if block.
13148 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13150 * python/py-type.c (convert_field): Add missing empty line
13151 after declarations.
13153 2014-01-14 Doug Evans <dje@google.com>
13155 * symfile.h (expand_symtabs_matching): Renamed from
13156 expand_partial_symbol_names. Update prototype.
13157 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13158 * symfile.c (expand_symtabs_matching): Renamed from
13159 expand_partial_symbol_names. New args file_matcher, kind.
13160 Rename arg fun to symbol_matcher.
13161 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13162 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13163 ada_expand_partial_symbol_name.
13164 (ada_make_symbol_completion_list): Update to call
13165 expand_symtabs_matching.
13166 (ada_add_global_exceptions): Call expand_symtabs_matching.
13167 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13168 call map_symbol_filenames.
13169 * symtab.c (sources_info): Update to call map_symbol_filenames.
13170 (search_symbols): Call expand_symtabs_matching.
13171 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13172 (default_make_symbol_completion_list_break_on): Update to call
13173 expand_symtabs_matching.
13174 (make_source_files_completion_list): Update to call
13175 map_symbol_filenames.
13177 2014-01-14 Doug Evans <dje@google.com>
13179 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13180 (expand_symtabs_symbol_matcher_ftype): New typedef.
13181 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13182 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13183 * symfile.c (expand_partial_symbol_names): Update to use
13184 expand_symtabs_symbol_matcher_ftype.
13185 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13186 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13187 Arg name_matcher renamed to symbol_matcher.
13188 * psymtab.c (recursively_search_psymtabs): Update to use
13189 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13191 (expand_symtabs_matching_via_partial): Update to use
13192 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13193 Arg name_matcher renamed to symbol_matcher.
13195 2014-01-14 Doug Evans <dje@google.com>
13197 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13198 (map_partial_symbol_filenames): Ditto.
13199 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13200 (map_partial_symbol_filenames): Ditto.
13201 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13202 (map_partial_symbol_filenames): Ditto.
13203 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13204 (map_partial_symbol_filenames): Ditto.
13205 * symtab.c: Delete #include "psymtab.h".
13207 2014-01-14 Pedro Alves <palves@redhat.com>
13208 Tom Tromey <tromey@redhat.com>
13210 * infrun.c (use_displaced_stepping): Use find_record_target
13211 instead of RECORD_IS_USED.
13212 (adjust_pc_after_break): Use record_full_is_used instead of
13214 * record-btrace.c (record_btrace_open): Call record_preopen
13215 instead of checking RECORD_IS_USED.
13216 * record-full.c (record_full_shortname)
13217 (record_full_core_shortname): New globals.
13218 (record_full_is_used): New function.
13219 (find_full_open): Call record_preopen instead of checking
13221 (init_record_full_ops): Set the target's shortname to
13222 record_full_shortname.
13223 (init_record_full_core_ops): Set the target's shortname to
13224 record_full_core_shortname.
13225 * record-full.h (record_full_is_used): Declare.
13226 * record.c (find_record_target): Make extern.
13227 (record_preopen): New function.
13228 * record.h (RECORD_IS_USED): Delete macro.
13229 (find_record_target, record_preopen): Declare functions.
13231 2014-01-14 Yao Qi <yao@codesourcery.com>
13233 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13234 'len''s type to ULONGEST.
13235 (core_xfer_shared_libraries_aix): Likewise.
13236 * gdbarch.c, gdbarch.h: Regenerated.
13237 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13238 Change type of 'len' to ULONGEST.
13239 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13240 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13242 2014-01-14 Yao Qi <yao@codesourcery.com>
13244 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13245 type of 'len' to ULONGEST.
13246 (linux_xfer_osdata_processgroups): Likewise.
13247 (linux_xfer_osdata_threads): Likewise.
13248 (linux_xfer_osdata_fds): Likewise.
13249 (linux_xfer_osdata_isockets): Likewise.
13250 (linux_xfer_osdata_shm): Likewise.
13251 (linux_xfer_osdata_sem): Likewise.
13252 (linux_xfer_osdata_msg): Likewise.
13253 (linux_common_xfer_osdata): Likewise.
13254 (struct osdata_type) <getter>: Likewise.
13255 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13258 2014-01-14 Yao Qi <yao@codesourcery.com>
13260 * target.h (target_xfer_partial_ftype): Update.
13261 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13263 * aix-thread.c (aix_thread_xfer_partial): Change type of
13264 argument 'len' to ULONGEST.
13265 * auxv.c (procfs_xfer_auxv): Likewise.
13266 (ld_so_xfer_auxv): Likewise.
13267 (memory_xfer_auxv): Likewise.
13268 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13269 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13270 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13271 * corelow.c (core_xfer_partial): Likewise.
13272 * ctf.c (ctf_xfer_partial): Likewise.
13273 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13275 (darwin_read_dyld_info): Likewise.
13276 (darwin_xfer_partial): Likewise.
13277 * exec.c (section_table_xfer_memory_partial): Likewise.
13278 (exec_xfer_partial): Likewise.
13279 * exec.h (section_table_xfer_memory_partial): Update
13281 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13282 instead of plongest.
13283 (gnu_xfer_partial): Likewise.
13284 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13285 (ia64_hpux_xfer_solib_got): Likewise.
13286 (ia64_hpux_xfer_partial): Likewise.
13287 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13288 * inf-ptrace.c (inf_ptrace_xfer_partial):
13289 * inf-ttrace.c (inf_ttrace_xfer_partial):
13290 * linux-nat.c (linux_xfer_siginfo): Likewise.
13291 (linux_nat_xfer_partial): Likewise.
13292 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13293 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13294 * monitor.c (monitor_xfer_memory): Likewise.
13295 (monitor_xfer_partial): Likewise.
13296 * procfs.c (procfs_xfer_partial): Likewise.
13297 * record-full.c (record_full_xfer_partial): Likewise.
13298 (record_full_core_xfer_partial): Likewise.
13299 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13300 instead of plongest.
13301 (gdbsim_xfer_partial): Likewise.
13302 * remote.c (remote_xfer_partial): Likewise.
13303 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13304 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13306 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13307 (rs6000_xfer_shared_libraries): Likewise.
13308 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13309 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13310 (sparc_xfer_partial): Likewise.
13311 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13312 (spu_xfer_partial): Likewise.
13313 * spu-multiarch.c (spu_xfer_partial): Likewise.
13314 * target.c (target_read_live_memory): Likewise.
13315 (memory_xfer_live_readonly_partial): Likewise.
13316 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13317 (target_xfer_partial, default_xfer_partial): Likewise.
13318 (current_xfer_partial): Likewise.
13319 * tracepoint.c (tfile_xfer_partial): Likewise.
13320 * windows-nat.c (windows_xfer_memory): Likewise. Call
13321 pulongest instead of plongest.
13322 (windows_xfer_partial): Likewise.
13323 (windows_xfer_shared_libraries): Likewise.
13325 2014-01-14 Yao Qi <yao@codesourcery.com>
13327 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13328 target_xfer_partial_ftype.
13330 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13334 * valops.c (value_struct_elt_bitpos): New function
13335 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13336 object to 'None' if the field name is an empty string ("").
13337 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13338 attribute to look for a field when 'name' is 'None'.
13339 (get_field_type): New function
13341 2014-01-13 Doug Evans <dje@google.com>
13344 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13345 (try_open_dwop_file): Ditto.
13346 * gdb_bfd.c: #include "vec.h".
13347 (bfdp): New typedef.
13348 (struct gdb_bfd_data): New member included_bfds.
13349 (gdb_bfd_unref): Unref all included bfds.
13350 (gdb_bfd_record_inclusion): New function.
13351 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13353 2014-01-13 Tom Tromey <tromey@redhat.com>
13355 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13357 2014-01-13 Tom Tromey <tromey@redhat.com>
13359 * defs.h (use_windows): Remove.
13360 * gdb.c (main): Update.
13361 * main.c (captured_main, gdb_main): Update.
13362 * main.h (struct captured_main_args) <use_windows>: Remove.
13363 * top.c (use_windows): Remove.
13365 2014-01-13 Tom Tromey <tromey@redhat.com>
13367 * defs.h (deprecated_flush_hook): Remove.
13369 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13372 * linux-thread-db.c (try_thread_db_load): Add parameter
13373 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13374 (try_thread_db_load_from_pdir_1): Move it there from here.
13375 (try_thread_db_load_from_sdir): Update caller.
13376 (try_thread_db_load_from_dir): Move it there from here.
13378 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13380 * regformats/regdat.sh: Always rewrite the register file.
13382 2014-01-13 Pedro Alves <palves@redhat.com>
13384 * Makefile.in (CHECK_HEADERS): New variable.
13385 (check-headers:): New rule.
13387 2014-01-13 Tom Tromey <tromey@redhat.com>
13389 * cli/cli-setshow.c (do_set_command): Update.
13390 * defs.h (deprecated_set_hook): Remove.
13391 * top.c (deprecated_set_hook): Remove.
13393 2014-01-13 Pedro Alves <palves@redhat.com>
13395 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13396 the tracepoint if the PC is a pseudo-register.
13398 2014-01-13 Tom Tromey <tromey@redhat.com>
13400 * defs.h (XCALLOC): Remove.
13401 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13402 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13403 * dwarf2loc.c (allocate_piece_closure): Likewise.
13404 * elfread.c (elf_symfile_segments): Likewise.
13405 (elf_symfile_segments): Likewise.
13406 * gdbtypes.c (copy_type_recursive): Likewise.
13407 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13408 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13409 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13411 * mt-tdep.c (mt_gdbarch_init): Likewise.
13412 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13414 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13415 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13416 * registry.c (registry_alloc_data): Likewise.
13417 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13418 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13419 * serial.c (serial_fdopen_ops): Likewise.
13420 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13422 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13423 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13426 2014-01-13 Tom Tromey <tromey@redhat.com>
13428 * defs.h (XMALLOC): Remove.
13429 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13430 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13431 * cli-out.c (struct ui_out *): Likewise.
13432 * cli/cli-dump.c (add_dump_command): Likewise.
13433 (add_dump_command): Likewise.
13434 * complaints.c (get_complaints): Likewise.
13435 (find_complaint): Likewise.
13436 * dwarf2-frame.c (execute_cfa_program): Likewise.
13437 * dwarf2read.c (abbrev_table_read_table): Likewise.
13438 * gdbarch.sh: Likewise.
13439 * gdbarch.c: Rebuild.
13440 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13441 * interps.c (interp_new): Likewise.
13442 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13443 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13444 * mi/mi-console.c (mi_console_file_new): Likewise.
13445 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13446 * mi/mi-out.c (mi_out_new): Likewise.
13447 * mi/mi-parse.c (mi_parse): Likewise.
13448 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13449 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13450 * observer.c (xalloc_observer_list_node): Likewise.
13451 * regcache.c (regcache_xmalloc_1): Likewise.
13452 * reggroups.c (reggroup_new): Likewise.
13453 (_initialize_reggroup): Likewise.
13454 * registry.c (register_data_with_cleanup): Likewise.
13455 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13456 * ser-base.c (serial_ttystate): Likewise.
13457 * ser-mingw.c (make_pipe_state): Likewise.
13458 * ser-pipe.c (pipe_open): Likewise.
13459 * serial.c (serial_open): Likewise.
13460 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13461 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13462 (tui_alloc_win_info): Likewise.
13463 (tui_add_content_elements): Likewise.
13464 * tui/tui-file.c (tui_file_new): Likewise.
13465 * tui/tui-out.c (tui_out_new): Likewise.
13466 * ui-file.c (mem_file_new): Likewise.
13467 * ui-out.c (push_level): Likewise.
13468 (make_cleanup_ui_out_end): Likewise.
13469 (append_header_to_list): Likewise.
13470 (ui_out_new): Likewise.
13471 * user-regs.c (user_reg_add_builtin): Likewise.
13473 2014-01-13 Tom Tromey <tromey@redhat.com>
13475 * defs.h (XZALLOC): Remove.
13476 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13477 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13478 (get_ada_tasks_inferior_data): Likewise.
13479 * auto-load.c (get_auto_load_pspace_data): Likewise.
13480 * auxv.c (get_auxv_inferior_data): Likewise.
13481 * bfd-target.c (target_bfd_reopen): Likewise.
13482 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13483 (deprecated_insert_raw_breakpoint): Likewise.
13484 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13485 * corelow.c (core_open): Likewise.
13486 * darwin-nat.c (darwin_check_new_threads): Likewise.
13487 (darwin_attach_pid): Likewise.
13488 * dummy-frame.c (dummy_frame_push): Likewise.
13489 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13490 * dwarf2loc.c (allocate_piece_closure): Likewise.
13491 * elfread.c (elf_symfile_segments): Likewise.
13492 * eval.c (ptrmath_type_p): Likewise.
13493 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13494 * gdbtypes.c (alloc_type_arch): Likewise.
13495 (alloc_type_instance): Likewise.
13496 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13497 * inf-child.c (inf_child_can_use_agent): Likewise.
13498 * inflow.c (get_inflow_inferior_data): Likewise.
13499 * infrun.c (save_infcall_suspend_state): Likewise.
13500 * jit.c (jit_reader_load): Likewise.
13501 (get_jit_objfile_data): Likewise.
13502 (get_jit_program_space_data): Likewise.
13503 (jit_object_open_impl): Likewise.
13504 (jit_symtab_open_impl): Likewise.
13505 (jit_block_open_impl): Likewise.
13506 (jit_frame_sniffer): Likewise.
13507 * linux-fork.c (add_fork): Likewise.
13508 * maint.c (make_command_stats_cleanup): Likewise.
13509 * objfiles.c (get_objfile_pspace_data): Likewise.
13510 * opencl-lang.c (struct lval_closure): Likewise.
13511 * osdata.c (osdata_start_osdata): Likewise.
13512 * progspace.c (new_address_space): Likewise.
13513 (add_program_space): Likewise.
13514 * remote-sim.c (get_sim_inferior_data): Likewise.
13515 * sh-tdep.c (sh_gdbarch_init): Likewise.
13516 * skip.c (Ignore): Likewise.
13517 (skip_delete_command): Likewise.
13518 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13519 (library_list_start_library): Likewise.
13520 (solib_aix_current_sos): Likewise.
13521 * solib-darwin.c (get_darwin_info): Likewise.
13522 (darwin_current_sos): Likewise.
13523 * solib-dsbt.c (get_dsbt_info): Likewise.
13524 * solib-ia64-hpux.c (new_so_list): Likewise.
13525 (ia64_hpux_get_solib_linkage_addr): Likewise.
13526 * solib-spu.c (append_ocl_sos): Likewise.
13527 (spu_current_sos): Likewise.
13528 * solib-svr4.c (get_svr4_info): Likewise.
13529 (svr4_keep_data_in_core): Likewise.
13530 (library_list_start_library): Likewise.
13531 (svr4_default_sos): Likewise.
13532 (svr4_read_so_list): Likewise.
13533 * solib-target.c (library_list_start_library): Likewise.
13534 (solib_target_current_sos): Likewise.
13535 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13536 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13537 * symfile.c (default_symfile_segments): Likewise.
13538 * target-descriptions.c (tdesc_data_init): Likewise.
13539 (tdesc_create_reg): Likewise.
13540 (struct tdesc_type *): Likewise.
13541 (tdesc_create_vector): Likewise.
13542 (tdesc_set_struct_size): Likewise.
13543 (struct tdesc_type *): Likewise.
13544 (tdesc_free_feature): Likewise.
13545 (tdesc_create_feature): Likewise.
13546 * windows-nat.c (windows_add_thread): Likewise.
13547 (windows_make_so): Likewise.
13548 * xml-support.c (gdb_xml_body_text): Likewise.
13549 (gdb_xml_create_parser_and_cleanup): Likewise.
13550 (xml_process_xincludes): Likewise.
13551 * xml-syscall.c (allocate_syscalls_info): Likewise.
13552 (syscall_create_syscall_desc): Likewise.
13554 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13556 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13557 function, with code from i386_stap_parse_special_token.
13558 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13559 (i386_stap_parse_special_token): Move code to the two functions
13560 above; simplify it.
13562 2014-01-09 Pedro Alves <palves@redhat.com>
13563 Hui Zhu <hui@codesourcery.com>
13566 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13567 bp_err_string. Don't mark the location shlib_disabled if the
13568 error thrown wasn't a generic or memory error. Catch errors
13569 thrown while inserting breakpoints in overlayed code. Output
13570 error message of software breakpoints.
13571 * remote.c (remote_insert_breakpoint): If this breakpoint has
13572 target-side commands but this stub doesn't support Z0 packets,
13573 throw NOT_SUPPORTED_ERROR error.
13574 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13575 * target.h (target_insert_breakpoint): Extend comment.
13576 (target_insert_hw_breakpoint): Add comment.
13578 2014-01-08 Pedro Alves <palves@redhat.com>
13580 * remote.c (remote_add_thread): Add threads silently if starting
13582 (remote_notice_new_inferior): If in all-stop, and starting up,
13583 don't call notice_new_inferior.
13584 (get_current_thread): New function, factored out from ...
13585 (add_current_inferior_and_thread): ... this. Adjust.
13586 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13587 found any thread, then select the remote's current thread as GDB's
13588 current thread too.
13590 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13592 * NEWS: Create a new section for the next release branch.
13593 Rename the section of the current branch, now that it has
13596 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13598 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13599 * version.in: Bump version to 7.7.50.DATE-cvs.
13601 2014-01-08 Yao Qi <yao@codesourcery.com>
13603 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13604 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13605 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13607 2014-01-08 Yao Qi <yao@codesourcery.com>
13609 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13610 return value of bfd_get_filename to symbol_file_add_from_bfd.
13612 2014-01-08 Pierre Muller <muller@sourceware.org>
13615 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13616 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13617 to prim_record_mininal_symbol_and_info.
13618 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13619 in call to prim_record_minimal_symbol_and_info.
13620 (read_pe_exported_syms): Set index field of section_data.
13622 2014-01-07 Andrew Pinski <apinski@cavium.com>
13624 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13625 * features/aarch64.c: Regenerate.
13627 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13629 * target.c (return_null): Define.
13630 (update_current_target): Use it instead of return_zero for
13631 functions that return a pointer.
13633 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13635 * source.c (add_path): Fix check for duplicated paths in the previously
13638 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13640 * ada-lang.c: Remove duplicated include statements.
13641 * alphabsd-nat.c: Ditto.
13642 * amd64-darwin-tdep.c: Ditto.
13643 * amd64fbsd-nat.c: Ditto.
13644 * auto-load.c: Ditto.
13646 * breakpoint.c: Ditto.
13647 * dbxread.c: Ditto.
13648 * fork-child.c: Ditto.
13649 * gdb_usleep.c: Ditto.
13650 * i386-darwin-tdep.c: Ditto.
13651 * i386fbsd-nat.c: Ditto.
13653 * inferior.c: Ditto.
13654 * jv-lang.c: Ditto.
13655 * linux-nat.c: Ditto.
13656 * linux-tdep.c: Ditto.
13657 * m68kbsd-nat.c: Ditto.
13658 * m68klinux-nat.c: Ditto.
13659 * microblaze-tdep.c: Ditto.
13660 * mips-linux-tdep.c: Ditto.
13661 * mn10300-tdep.c: Ditto.
13662 * nto-tdep.c: Ditto.
13663 * opencl-lang.c: Ditto.
13665 * printcmd.c: Ditto.
13666 * regcache.c: Ditto.
13667 * remote-m32r-sdi.c: Ditto.
13669 * symfile.c: Ditto.
13671 * tilegx-linux-nat.c: Ditto.
13672 * tilegx-tdep.c: Ditto.
13673 * tracepoint.c: Ditto.
13675 * vaxbsd-nat.c: Ditto.
13676 * windows-nat.c: Ditto.
13677 * xtensa-tdep.c: Ditto.
13679 2014-01-07 Yao Qi <yao@codesourcery.com>
13681 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13683 2014-01-07 Yao Qi <yao@codesourcery.com>
13684 Joel Brobecker <brobecker@adacore.com>
13686 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13687 (pdc_write_regs): Likewise.
13688 (fetch_regs_kernel_thread): Likewise.
13689 (store_regs_kernel_thread): Likewise.
13691 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13693 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13694 tagged type objects to their actual type.
13696 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13698 * ada-valprint.c (print_field_values): Add "language" parameter.
13699 Update calls to print_field_values and print_variant_part.
13700 Pass new parameter "language" in call to val_print instead
13701 of "current_language". Replace call to ada_val_print by call
13703 (print_variant_part): Add "language" parameter.
13704 (ada_val_print_struct_union): Update call to print_field_values.
13706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13708 * ada-valprint.c (ui_memcpy): Delete.
13709 (ada_print_floating): Update documentation. Add empty line
13710 between between function documentation and implementation.
13711 Delete variable "buffer". Use ui_file_xstrdup in place of
13712 ui_file_put. Minor adjustments following this change.
13714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13716 * ada-valprint.c (ada_val_print_string): New function,
13717 extracted from ada_val_print_array.
13718 (ada_val_print_array): Replace extracted code by call
13719 to ada_val_print_string followed by a return. Move
13720 "else" branch to the function's top block.
13722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13724 * ada-valprint.c (ada_val_print_array): Move implementation
13725 down. Rename parameter "offset" and "val" into "offset_aligned"
13726 and "original_value" respectively. Add parameter "offset".
13728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13730 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13731 re-organizing the code. Change the "???" message printed
13732 when target type is a TYPE_CODE_UNDEF into
13733 "<ref to undefined type>".
13735 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13737 * ada-valprint.c (print_record): Delete, implementation inlined...
13738 (ada_val_print_struct_union): ... here. Remove call to
13739 ada_check_typedef in inlined implementation.
13741 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13743 * ada-valprint.c (ada_val_print_gnat_array): New function,
13744 extracted from ada_val_print_1;
13745 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13746 (ada_val_print_flt, ada_val_print_struct_union)
13747 (ada_val_print_ref): Likewise.
13748 (ada_val_print_1): Delete variables i and elttype.
13749 Replace extracted-out code by call to corresponding
13752 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13754 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13758 * ada-valprint.c (ada_val_print_1): Replace calls to
13759 ada_val_print_1 by calls to val_print.
13761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13763 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13764 Update calls to self accordingly. Replace calls to c_val_print
13765 by calls to val_print.
13767 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13769 * ada-valprint.c (print_record): Delete declaration.
13770 (adjust_type_signedness, ada_val_print_1): Likewise.
13771 (ada_val_print): Move function implementation down.
13772 (print_variant_part, print_field_values, print_record):
13773 Move function implementation up.
13775 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13777 * python/py-type.c (typy_get_name): New function.
13778 (type_object_getset): Add entry for attribute "name".
13779 * NEWS: Add entry mentioning this new attribute.
13781 2014-01-07 Yao Qi <yao@codesourcery.com>
13783 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13786 2014-01-07 Yao Qi <yao@codesourcery.com>
13788 * gnu-nat.c (info_port_rights): Add qualifier const to
13791 2014-01-07 Yao Qi <yao@codesourcery.com>
13793 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13795 2014-01-07 Yao Qi <yao@codesourcery.com>
13797 * gnu-nat.c (make_inf) Update declaration.
13798 (make_inf): Make it static.
13799 (inf_set_traced): Likewise.
13800 (inf_port_to_thread, inf_task_died_status): Likewise.
13802 2014-01-07 Yao Qi <yao@codesourcery.com>
13804 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13806 2014-01-07 Yao Qi <yao@codesourcery.com>
13808 * gnu-nat.c (_initialize_gnu_nat): Declare.
13810 2014-01-07 Yao Qi <yao@codesourcery.com>
13812 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13814 (struct gdbarch_info) <byte_order>: Change type to
13816 <byte_order_for_code>: Likewise.
13817 * gdbarch.c, gdbarch.h: Regenerated.
13819 2014-01-06 Sasha Smundak <asmundak@google.com>
13821 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13823 2014-01-06 Tom Tromey <tromey@redhat.com>
13825 * doublest.c (convert_doublest_to_floatformat): Use const, not
13827 * somread.c (som_symtab_read): Likewise.
13829 2014-01-07 Hui Zhu <hui@codesourcery.com>
13831 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13832 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13833 (gdb_bfd_fopen): Ditto.
13834 (gdb_bfd_openr): Ditto.
13835 (gdb_bfd_openw): Ditto.
13836 (gdb_bfd_openr_iovec): Ditto.
13837 (gdb_bfd_fdopenr): Ditto.
13838 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13839 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13841 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13843 * symfile-mem.c (symbol_file_add_from_memory): Removed
13844 gdb_bfd_stash_filename.
13846 2014-01-03 Doug Evans <dje@google.com>
13848 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13851 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13853 Update year range in copyright notice of all files.
13855 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13857 * top.c (print_gdb_version): Set copyright year to 2014.
13859 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13861 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13863 For older changes see ChangeLog-2013.
13869 version-control: never