1 2014-10-10 Pedro Alves <palves@redhat.com>
3 * infrun.c (normal_stop): Fix typo in comment.
5 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
8 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
9 typo when using logical AND to determine instruction type.
11 2014-10-09 Yao Qi <yao@codesourcery.com>
13 * infrun.c (handle_signal_stop): Remove local variable
16 2014-10-08 Stan Shebs <stan@codesourcery.com>
18 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
20 2014-10-08 Gary Benson <gbenson@redhat.com>
22 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
24 2014-10-08 Gary Benson <gbenson@redhat.com>
26 * common/common-defs.h: Include common-exceptions.h.
27 * exceptions.h: Do not include common-exceptions.h.
29 2014-10-08 Gary Benson <gbenson@redhat.com>
31 * common/common-defs.h: Include cleanups.h.
32 * common/common-exceptions.c: Do not include cleanups.h.
35 2014-10-08 Gary Benson <gbenson@redhat.com>
37 * ada-lang.c: Do not include exceptions.h.
38 * ada-valprint.c: Likewise.
39 * amd64-tdep.c: Likewise.
40 * auto-load.c: Likewise.
42 * break-catch-throw.c: Likewise.
43 * breakpoint.c: Likewise.
46 * cli/cli-cmds.c: Likewise.
47 * cli/cli-interp.c: Likewise.
48 * cli/cli-script.c: Likewise.
49 * completer.c: Likewise.
50 * corefile.c: Likewise.
51 * corelow.c: Likewise.
53 * cp-support.c: Likewise.
54 * cp-valprint.c: Likewise.
55 * darwin-nat.c: Likewise.
56 * dwarf2-frame-tailcall.c: Likewise.
57 * dwarf2-frame.c: Likewise.
58 * dwarf2loc.c: Likewise.
59 * dwarf2read.c: Likewise.
61 * event-loop.c: Likewise.
62 * event-top.c: Likewise.
63 * f-valprint.c: Likewise.
64 * frame-unwind.c: Likewise.
66 * gdbtypes.c: Likewise.
67 * gnu-v2-abi.c: Likewise.
68 * gnu-v3-abi.c: Likewise.
69 * guile/scm-auto-load.c: Likewise.
70 * guile/scm-breakpoint.c: Likewise.
71 * guile/scm-cmd.c: Likewise.
72 * guile/scm-frame.c: Likewise.
73 * guile/scm-lazy-string.c: Likewise.
74 * guile/scm-param.c: Likewise.
75 * guile/scm-symbol.c: Likewise.
76 * guile/scm-type.c: Likewise.
77 * hppa-hpux-tdep.c: Likewise.
78 * i386-tdep.c: Likewise.
79 * inf-loop.c: Likewise.
80 * infcall.c: Likewise.
83 * interps.c: Likewise.
84 * interps.h: Likewise.
86 * linespec.c: Likewise.
87 * linux-nat.c: Likewise.
88 * linux-thread-db.c: Likewise.
89 * m32r-rom.c: Likewise.
91 * memory-map.c: Likewise.
92 * mi/mi-cmd-break.c: Likewise.
93 * mi/mi-cmd-stack.c: Likewise.
94 * mi/mi-interp.c: Likewise.
95 * mi/mi-main.c: Likewise.
96 * monitor.c: Likewise.
97 * nto-procfs.c: Likewise.
98 * objc-lang.c: Likewise.
99 * p-valprint.c: Likewise.
101 * ppc-linux-tdep.c: Likewise.
102 * printcmd.c: Likewise.
104 * python/py-auto-load.c: Likewise.
105 * python/py-breakpoint.c: Likewise.
106 * python/py-cmd.c: Likewise.
107 * python/py-finishbreakpoint.c: Likewise.
108 * python/py-frame.c: Likewise.
109 * python/py-framefilter.c: Likewise.
110 * python/py-function.c: Likewise.
111 * python/py-gdb-readline.c: Likewise.
112 * python/py-inferior.c: Likewise.
113 * python/py-infthread.c: Likewise.
114 * python/py-lazy-string.c: Likewise.
115 * python/py-linetable.c: Likewise.
116 * python/py-param.c: Likewise.
117 * python/py-prettyprint.c: Likewise.
118 * python/py-symbol.c: Likewise.
119 * python/py-type.c: Likewise.
120 * python/py-value.c: Likewise.
121 * python/python-internal.h: Likewise.
122 * python/python.c: Likewise.
123 * record-btrace.c: Likewise.
124 * record-full.c: Likewise.
125 * regcache.c: Likewise.
126 * remote-fileio.c: Likewise.
127 * remote-mips.c: Likewise.
128 * remote.c: Likewise.
129 * rs6000-aix-tdep.c: Likewise.
130 * rs6000-nat.c: Likewise.
132 * solib-darwin.c: Likewise.
133 * solib-dsbt.c: Likewise.
134 * solib-frv.c: Likewise.
135 * solib-ia64-hpux.c: Likewise.
136 * solib-spu.c: Likewise.
137 * solib-svr4.c: Likewise.
139 * spu-tdep.c: Likewise.
141 * stap-probe.c: Likewise.
142 * symfile-mem.c: Likewise.
143 * symmisc.c: Likewise.
144 * target.c: Likewise.
145 * thread.c: Likewise.
147 * tracepoint.c: Likewise.
148 * tui/tui-interp.c: Likewise.
149 * typeprint.c: Likewise.
151 * valarith.c: Likewise.
152 * valops.c: Likewise.
153 * valprint.c: Likewise.
155 * varobj.c: Likewise.
156 * windows-nat.c: Likewise.
157 * xml-support.c: Likewise.
159 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
161 * mips-tdep.c (add_offset_16): Rewrite to implement what the
163 (extended_mips16_next_pc): Update accordingly.
165 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
167 * mips-tdep.c (mips16_instruction_is_compact_branch): New
169 (micromips_instruction_is_compact_branch): Likewise.
170 (mips16_scan_prologue): Terminate scanning upon seeing a branch
171 or a compact jump, reaching a jump delay slot, or seeing a
172 second non-prologue instruction.
173 (micromips_scan_prologue): Also terminate scanning upon seeing a
174 compact branch or jump, or reaching a branch or jump delay slot.
175 (mips32_scan_prologue): Terminate scanning upon reaching a branch
176 or jump delay slot, or seeing a second non-prologue instruction.
177 (mips32_instruction_has_delay_slot): Retain instruction
178 examination code only, update arguments accordingly and move
179 instruction fetch pieces to...
180 (mips32_insn_at_pc_has_delay_slot): ... this new function.
181 (micromips_instruction_has_delay_slot): Likewise and to...
182 (micromips_insn_at_pc_has_delay_slot): ... this new function.
183 (mips16_instruction_has_delay_slot): Likewise and to...
184 (mips16_insn_at_pc_has_delay_slot): ... this new function.
185 (mips_single_step_through_delay): Update accordingly.
186 (mips_adjust_breakpoint_address): Likewise.
188 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
190 * mips-tdep.c (micromips_instruction_has_delay_slot): When
191 !mustbe32 also return 1 for 32-bit instructions.
192 (mips16_instruction_has_delay_slot): Likewise. Add an
195 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
197 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
200 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
202 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
204 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
205 for the breakpoint's address. Don't preinitialize `placed_size'.
206 (insert_bp_location): Set `reqstd_address' rather than
208 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
209 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
211 (bkpt_remove_location): Likewise.
212 (deprecated_insert_raw_breakpoint): Likewise.
213 (deprecated_remove_raw_breakpoint): Likewise.
214 (find_single_step_breakpoint): Likewise.
215 * mem-break.c (default_memory_insert_breakpoint): Use
216 `reqstd_address' for the breakpoint's address. Don't set
217 `placed_address' or `placed_size' if breakpoint contents couldn't
218 have been determined.
219 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
220 the breakpoint's address.
221 (remote_insert_hw_breakpoint): Likewise. Don't set
222 `placed_address' or `placed_size' if breakpoint couldn't have been
224 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
225 `reqstd_address' for the breakpoint's address.
226 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
227 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
228 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
229 * microblaze-linux-tdep.c
230 (microblaze_linux_memory_remove_breakpoint): Likewise.
231 * monitor.c (monitor_insert_breakpoint): Likewise.
232 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
233 (procfs_insert_hw_breakpoint): Likewise.
234 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
235 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
236 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
237 * remote-mips.c (mips_insert_breakpoint): Likewise.
238 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
240 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
242 * valops.c (value_assign): Check for bit field assignments
243 before calling architecture-specific register value
244 conversion functions.
246 2014-10-03 Pierre Muller <muller@sourceware.org>
248 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
250 2014-10-02 Pedro Alves <palves@redhat.com>
252 * breakpoint.c (breakpoints_should_be_inserted_now): Use
253 threads_are_executing.
254 * breakpoint.h (breakpoints_should_be_inserted_now): Add
256 * gdbthread.h (threads_are_executing): Declare.
257 (handle_signal_stop) <random signals>: Don't print about the
258 signal here if stopping.
259 (end_stepping_range): Don't notify observers here.
260 (normal_stop): Update the thread list. If stopped by a random
261 signal or a stepping range ended, notify observers.
262 * thread.c (threads_executing): New global.
263 (init_thread_list): Clear 'threads_executing'.
264 (set_executing): Set or clear 'threads_executing'.
265 (threads_are_executing): New function.
266 (update_threads_executing): New function.
267 (update_thread_list): Use it.
269 2014-10-02 Pedro Alves <palves@redhat.com>
272 * breakpoint.c (update_breakpoints_after_exec): Don't create
273 overlay, longjmp, std terminate nor exception breakpoints here.
275 2014-10-02 Pedro Alves <palves@redhat.com>
277 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
279 * inferior.c (find_inferior_for_program_space): Give preference to
280 the current inferior.
281 * inferior.h (find_inferior_for_program_space): Update comment.
282 * progspace.c (switch_to_program_space_and_thread): Prefer the
283 current inferior if it's bound to the program space requested. If
284 the inferior found doesn't have a PID yet, don't bother looking up
286 * progspace.h (switch_to_program_space_and_thread): Adjust
288 * thread.c (any_thread_of_process, any_live_thread_of_process):
289 Give preference to the current thread.
291 2014-10-01 Pedro Alves <palves@redhat.com>
293 * breakpoint.c (insert_bp_location): Error out if inserting a
294 software breakpoint at a read-only address.
295 * target.c (memory_xfer_check_region): New function, factored out
297 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
299 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
300 against the memory region attributes.
302 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
304 * NEWS: Announce new exit-code field in -list-thread-groups
306 * inferior.c (exit_inferior_1): Don't clear exit code.
307 (inferior_appeared): Clear exit code.
308 * mi/mi-main.c (print_one_inferior): Add printing of the exit
311 2014-10-01 Pedro Alves <palves@redhat.com>
313 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
314 GENERATED" along with emacs/vi read-only markers.
315 * regformats/aarch64.dat: Regenerate.
316 * regformats/arm-with-iwmmxt.dat: Regenerate.
317 * regformats/arm-with-neon.dat: Regenerate.
318 * regformats/arm-with-vfpv2.dat: Regenerate.
319 * regformats/arm-with-vfpv3.dat: Regenerate.
320 * regformats/i386/amd64-avx-linux.dat: Regenerate.
321 * regformats/i386/amd64-avx.dat: Regenerate.
322 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
323 * regformats/i386/amd64-avx512.dat: Regenerate.
324 * regformats/i386/amd64-linux.dat: Regenerate.
325 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
326 * regformats/i386/amd64-mpx.dat: Regenerate.
327 * regformats/i386/amd64.dat: Regenerate.
328 * regformats/i386/i386-avx-linux.dat: Regenerate.
329 * regformats/i386/i386-avx.dat: Regenerate.
330 * regformats/i386/i386-avx512-linux.dat: Regenerate.
331 * regformats/i386/i386-avx512.dat: Regenerate.
332 * regformats/i386/i386-linux.dat: Regenerate.
333 * regformats/i386/i386-mmx-linux.dat: Regenerate.
334 * regformats/i386/i386-mmx.dat: Regenerate.
335 * regformats/i386/i386-mpx-linux.dat: Regenerate.
336 * regformats/i386/i386-mpx.dat: Regenerate.
337 * regformats/i386/i386.dat: Regenerate.
338 * regformats/i386/x32-avx-linux.dat: Regenerate.
339 * regformats/i386/x32-avx.dat: Regenerate.
340 * regformats/i386/x32-avx512-linux.dat: Regenerate.
341 * regformats/i386/x32-avx512.dat: Regenerate.
342 * regformats/i386/x32-linux.dat: Regenerate.
343 * regformats/i386/x32.dat: Regenerate.
344 * regformats/microblaze-with-stack-protect.dat: Regenerate.
345 * regformats/mips-dsp-linux.dat: Regenerate.
346 * regformats/mips-linux.dat: Regenerate.
347 * regformats/mips64-dsp-linux.dat: Regenerate.
348 * regformats/mips64-linux.dat: Regenerate.
349 * regformats/nios2-linux.dat: Regenerate.
350 * regformats/rs6000/powerpc-32.dat: Regenerate.
351 * regformats/rs6000/powerpc-32l.dat: Regenerate.
352 * regformats/rs6000/powerpc-64l.dat: Regenerate.
353 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
354 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
355 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
356 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
357 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
358 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
359 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
360 * regformats/s390-linux32.dat: Regenerate.
361 * regformats/s390-linux32v1.dat: Regenerate.
362 * regformats/s390-linux32v2.dat: Regenerate.
363 * regformats/s390-linux64.dat: Regenerate.
364 * regformats/s390-linux64v1.dat: Regenerate.
365 * regformats/s390-linux64v2.dat: Regenerate.
366 * regformats/s390-te-linux64.dat: Regenerate.
367 * regformats/s390x-linux64.dat: Regenerate.
368 * regformats/s390x-linux64v1.dat: Regenerate.
369 * regformats/s390x-linux64v2.dat: Regenerate.
370 * regformats/s390x-te-linux64.dat: Regenerate.
371 * regformats/tic6x-c62x-linux.dat: Regenerate.
372 * regformats/tic6x-c62x.dat: Regenerate.
373 * regformats/tic6x-c64x-linux.dat: Regenerate.
374 * regformats/tic6x-c64x.dat: Regenerate.
375 * regformats/tic6x-c64xp-linux.dat: Regenerate.
376 * regformats/tic6x-c64xp.dat: Regenerate.
378 2014-10-01 Pedro Alves <palves@redhat.com>
380 * features/Makefile: Update comments.
381 (XMLTOC): List all xml files we build C files from.
382 (clean-cfiles): New rule.
384 2014-10-01 Pedro Alves <palves@redhat.com>
386 * features/i386/amd64-avx512-linux.c: Regenerate.
387 * features/i386/amd64-avx512.c: Regenerate.
388 * features/i386/x32-avx512-linux.c: Regenerate.
389 * features/i386/x32-avx512.c: Regenerate.
391 2014-10-01 Pedro Alves <palves@redhat.com>
393 * features/Makefile (WHICH): Remove arm-with-m,
394 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
396 2014-10-01 Pedro Alves <palves@redhat.com>
398 * features/Makefile (clean): New rule.
400 2014-10-01 Pedro Alves <palves@redhat.com>
402 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
403 (zmm14h): Add missing end quotes.
405 2014-10-01 Pedro Alves <palves@redhat.com>
407 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
408 * features/aarch64.c: Regenerate.
410 2014-09-30 Don Breazeal <donb@codesourcery.com>
412 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
413 code so as to work with follow_fork_inferior.
414 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
415 (inf_ttrace_create_inferior): Remove reference to
416 inf_ttrace_vfork_ppid.
417 (inf_ttrace_attach): Ditto.
418 (inf_ttrace_detach): Ditto.
419 (inf_ttrace_kill): Use current_inferior instead of
420 inf_ttrace_vfork_ppid.
421 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
422 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
423 inferior away from the parent.
424 * infrun.c (follow_fork): Call follow_fork_inferior instead of
426 (follow_fork_inferior): New function.
427 (follow_inferior_reset_breakpoints): Make function static.
428 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
429 * linux-nat.c (linux_child_follow_fork): Move target-independent
430 code to infrun.c:follow_fork_inferior.
432 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
434 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
435 * gdbarch.c: Regenerate.
436 * gdbarch.h: Likewise.
437 * corelow.c (sniff_core_bfd): Drop presence check for deleted
438 gdbarch method 'regset_from_core_section'.
439 (get_core_register_section): Remove handling for the case that
440 regset == NULL and regset_from_core_section is defined.
441 (get_core_registers): Drop check for deleted method.
442 * procfs.c (procfs_do_thread_registers): Adjust comment.
444 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
446 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
447 (linux_nat_make_corefile_notes): Remove.
448 (linux_target_install_ops): Do not set target method
449 'make_corefile_notes'.
450 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
452 (linux_corefile_thread_callback): Instead of args->collect, call
453 linux_collect_thread_registers.
454 (linux_make_corefile_notes): Remove 'collect' parameter. Return
455 NULL unless there is a regset iterator.
456 (linux_make_corefile_notes_1): Remove.
457 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
458 by linux_make_corefile_notes.
459 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
463 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
464 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
466 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
470 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
471 (xtensa_iterate_over_regset_sections): New.
472 (xtensa_gdbarch_init): Adjust gdbarch initialization.
474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
476 * vax-tdep.c (vax_regset_from_core_section): Remove.
477 (vax_iterate_over_regset_sections): New.
478 (vax_gdbarch_init): Adjust gdbarch initialization.
480 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
482 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
483 (tilegx_regset_from_core_section): Remove.
484 (tilegx_iterate_over_regset_sections): New.
485 (tilegx_linux_init_abi): Adjust gdbarch initialization.
487 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
489 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
490 (sparc_iterate_over_regset_sections): New.
491 (sparc32_gdbarch_init): Adjust gdbarch initialization.
492 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
494 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
495 (sparc64fbsd_init_abi): Call fbsd_init_abi.
496 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
497 target method 'make_corefile_notes'.
499 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
501 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
502 'sizeof_gregset' and 'sizeof_fpregset'.
503 * sh-tdep.c (sh_regset_from_core_section): Remove.
504 (sh_iterate_over_regset_sections): New.
505 (sh_gdbarch_init): Adjust gdbarch initialization.
506 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
508 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
513 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
514 (score7_linux_iterate_over_regset_sections): New.
515 (score_gdbarch_init): Adjust gdbarch initialization.
517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
519 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
521 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
522 method 'make_corefile_notes'.
523 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
524 (ppcfbsd_regset_from_core_section): Remove.
525 (ppcfbsd_iterate_over_regset_sections): New.
526 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
528 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
529 (ppcnbsd_iterate_over_regset_sections): New.
530 (ppcnbsd_init_abi): Adjust.
531 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
532 (ppcobsd_iterate_over_regset_sections): New.
533 (ppcobsd_init_abi): Adjust.
534 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
535 (rs6000_aix_iterate_over_regset_sections): New.
536 (rs6000_aix_init_osabi): Adjust.
538 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
540 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
541 (nios2_regset_from_core_section): Remove.
542 (nios2_iterate_over_regset_sections): New.
543 (nios2_linux_init_abi): Adjust gdbarch initialization.
545 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
547 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
548 (am33_iterate_over_regset_sections): New.
549 (am33_linux_init_osabi): Adjust gdbarch initialization.
551 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
553 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
554 (mips_linux_iterate_over_regset_sections): New.
555 (mips_linux_init_abi): Adjust gdbarch initialization.
556 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
557 (mips64obsd_iterate_over_regset_sections): New.
558 (mips64obsd_init_abi): Adjust.
559 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
560 (mipsnbsd_iterate_over_regset_sections): New.
561 (mipsnbsd_init_abi): Adjust.
563 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
565 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
566 (m88k_iterate_over_regset_sections): New.
567 (m88k_gdbarch_init): Adjust gdbarch initialization.
569 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
571 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
572 (ia64_linux_iterate_over_regset_sections): New.
573 (ia64_linux_init_abi): Adjust gdbarch initialization.
575 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
577 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
578 (m68kbsd_iterate_over_regset_sections): New.
579 (m68kbsd_init_abi): Adjust gdbarch initialization.
580 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
581 (m68k_linux_iterate_over_regset_sections): New.
582 (m68k_linux_init_abi): Adjust gdbarch initialization.
584 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
586 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
587 (m32r_linux_regset_from_core_section): Remove.
588 (m32r_linux_iterate_over_regset_sections): New.
589 (m32r_linux_init_abi): Adjust gdbarch initialization.
591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
593 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
594 (amd64obsd_iterate_over_regset_sections): New.
595 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
596 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
598 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
599 regset_from_core_section initialization.
600 * i386-tdep.c (i386_regset_from_core_section): Remove.
601 (i386_iterate_over_regset_sections): New.
602 (i386_gdbarch_init): Adjust gdbarch initialization.
603 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
604 (i386_iterate_over_regset_sections): New prototype.
605 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
607 (i386obsd_aout_iterate_over_regset_sections): New.
608 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
609 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
611 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
612 (amd64fbsd_init_abi): Call fbsd_init_abi.
613 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
614 (i386fbsd4_init_abi): Call fbsd_init_abi.
615 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
616 target method 'make_corefile_notes'.
617 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
619 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
621 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
622 (hppa_hpux_iterate_over_regset_sections): New.
623 (hppa_hpux_init_abi): Adjust gdbarch initialization.
624 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
625 (hppa_linux_iterate_over_regset_sections): New.
626 (hppa_linux_init_abi): Adjust.
627 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
628 (hppanbsd_iterate_over_regset_sections): New.
629 (hppanbsd_init_abi): Adjust.
630 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
631 (hppaobsd_iterate_over_regset_sections): New.
632 (hppaobsd_init_abi): Adjust.
634 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
636 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
637 (frv_linux_iterate_over_regset_sections): New.
638 (frv_linux_init_abi): Adjust gdbarch initialization.
640 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
642 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
643 (armbsd_iterate_over_regset_sections): New prototype.
644 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
645 (armbsd_iterate_over_regset_sections): New.
646 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
649 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
651 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
652 (alpha_linux_iterate_over_regset_sections): New.
653 (alpha_linux_init_abi): Adjust gdbarch initialization.
654 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
656 (alphanbsd_iterate_over_regset_sections): New prototype.
658 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
660 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
662 (aarch64_linux_iterate_over_regset_sections): New.
663 (aarch64_linux_init_abi): Adjust gdbarch initialization.
665 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
667 * fbsd-tdep.c: New file.
668 * fbsd-tdep.h: New file.
669 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
670 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
671 (ALLDEPFILES): Add fbsd-tdep.c.
673 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
675 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
677 * gdbarch.h: Regenerate.
678 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
680 (get_core_register_section): Add parameter 'regset' and use it, if
681 set. Add parameter 'min_size' and verify the bfd section size
683 (get_core_registers_cb): Add parameter 'regset' and pass it to
684 get_core_register section. For the "standard" register sections
685 ".reg" and ".reg2", set an appropriate default for human_name.
686 (get_core_registers): Don't abort when the gdbarch has an iterator
687 but no regset_from_core_section. Add NULL/0 for parameters
688 'regset'/'min_size' in calls to get_core_register_section.
689 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
690 'regset' and use it instead of calling the
691 regset_from_core_section gdbarch method.
692 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
693 * i386-tdep.c (i386_supply_xstateregset)
694 (i386_collect_xstateregset, i386_xstateregset): Moved to
696 (i386_regset_from_core_section): Drop handling for .reg-xfp and
698 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
699 core file support only if the regset iterator hasn't been set.
700 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
701 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
702 Moved from i386-tdep.c and renamed to *_linux*.
703 (i386_linux_iterate_over_regset_sections): Add regset parameter to
704 each callback invocation. Allow any .reg-xstate size when reading
706 * amd64-tdep.c (amd64_supply_xstateregset)
707 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
709 (amd64_regset_from_core_section): Remove.
710 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
711 install an amd64-specific regset_from_core_section gdbarch method.
712 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
713 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
714 Moved from amd64-tdep.c and renamed to *_linux*.
715 (amd64_linux_iterate_over_regset_sections): Add regset parameter
716 to each callback invocation. Allow any .reg-xstate size when
717 reading from a core file.
718 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
719 (arm_linux_iterate_over_regset_sections): Add regset parameter to
720 each callback invocation.
721 (arm_linux_init_abi): No longer set the regset_from_core_section
723 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
724 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
725 each callback invocation.
726 (ppc_linux_init_abi): No longer set the regset_from_core_section
728 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
729 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
730 (s390_regset_from_core_section): Remove.
731 (s390_iterate_over_regset_sections): Add regset parameter to each
733 (s390_gdbarch_init): No longer set the regset_from_core_section
734 gdbarch method. Drop initialization of deleted tdep fields.
736 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
738 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
739 (amd64_linux_iterate_over_regset_sections): New.
740 (amd64_linux_init_abi_common): Don't install the regset section
741 list, but the new iterator in gdbarch.
742 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
743 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
744 (arm_linux_iterate_over_regset_sections): ...here. New function.
745 (arm_linux_init_abi): Set iterator instead of section list.
746 * corelow.c (get_core_registers_cb): New function, logic moved
748 (get_core_registers): ...loop body here. Use new iterator method
749 instead of walking through the regset section list.
750 * gdbarch.sh: Remove 'core_regset_sections'. New method
751 'iterate_over_regset_sections'. New typedef
752 'iterate_over_regset_sections_cb'.
753 * gdbarch.c: Regenerate.
754 * gdbarch.h: Likewise.
755 * i386-linux-tdep.c (i386_linux_regset_sections)
756 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
758 (i386_linux_iterate_over_regset_sections): New.
759 (i386_linux_init_abi): Don't choose a regset section list, but
760 install new iterator in gdbarch.
761 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
762 (linux_collect_regset_section_cb): New function, logic moved
764 (linux_collect_thread_registers): ...loop body here. Use iterator
765 method instead of walking through list.
766 (linux_make_corefile_notes_1): Check for presence of iterator
767 method instead of regset section list.
768 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
769 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
770 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
771 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
772 (ppc_linux_iterate_over_regset_sections): ...here. New function.
773 (ppc_linux_init_abi): Don't choose from above regset section
774 lists, but install new iterator in gdbarch.
775 * regset.h (struct core_regset_section): Remove.
776 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
777 have_linux_v1, have_linux_v2, and have_tdb.
778 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
779 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
780 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
781 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
782 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
783 (s390_iterate_over_regset_sections): ...here. New function. Use
785 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
786 regset section lists, but install new iterator.
788 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
790 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
792 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
794 * progspace.c (print_program_space): Don't prune program spaces
795 before printing them.
797 2014-09-25 Pedro Alves <palves@redhat.com>
799 * infrun.c (user_visible_resume_ptid): Don't check
800 singlestep_breakpoints_inserted_p.
802 2014-09-25 Pedro Alves <palves@redhat.com>
804 * breakpoint.c (should_be_inserted): Add debug output.
806 2014-09-25 Pedro Alves <palves@redhat.com>
808 * infrun.c (stepping_past_instruction_at)
809 (clear_exit_convenience_vars): Point at infrun.h instead of
811 (handle_signal_stop): Fix typo.
813 2014-09-24 Yao Qi <yao@codesourcery.com>
815 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
818 2014-09-22 Gary Benson <gbenson@redhat.com>
820 * target.c (target_stop): Updated comment.
822 2014-09-22 Gary Benson <gbenson@redhat.com>
824 * target/target.h (target_stop_ptid): Renamed as...
825 (target_stop_and_wait): New function. Updated comment.
827 (target_continue_ptid): Renamed as...
828 (target_continue_no_signal): New function. Updated comment.
831 2014-09-22 Pedro Alves <palves@redhat.com>
833 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
835 * breakpoint.c (enum ugll_insert_mode): New enum.
836 (always_inserted_mode): Now a plain boolean.
837 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
838 (breakpoints_always_inserted_mode): Delete.
839 (breakpoints_should_be_inserted_now): New function.
840 (insert_breakpoints): Pass UGLL_INSERT to
841 update_global_location_list instead of calling
842 insert_breakpoint_locations manually.
843 (create_solib_event_breakpoint_1): New, factored out from ...
844 (create_solib_event_breakpoint): ... this.
845 (create_and_insert_solib_event_breakpoint): Use
846 create_solib_event_breakpoint_1 instead of calling
847 insert_breakpoint_locations manually.
848 (update_global_location_list): Change parameter type from boolean
849 to enum ugll_insert_mode. All callers adjusted. Adjust to use
850 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
851 (update_global_location_list_nothrow): Change parameter type from
852 boolean to enum ugll_insert_mode.
853 (_initialize_breakpoint): "breakpoint always-inserted" option is
854 now a boolean command. Update help text.
855 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
856 (breakpoints_should_be_inserted_now): New declaration.
857 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
858 Remove breakpoints_always_inserted_mode check.
859 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
860 * remote.c (remote_start_remote): Likewise.
862 2014-09-22 Pedro Alves <palves@redhat.com>
864 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
865 (insert_breakpoints): Don't call insert_breakpoint_locations here.
866 Instead, pass UGLL_INSERT to update_global_location_list.
867 (update_global_location_list): Change parameter type from boolean
868 to enum ugll_insert_mode. All callers adjusted. Adjust to use
869 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
870 (create_solib_event_breakpoint_1): New, factored out from ...
871 (create_solib_event_breakpoint): ... this.
872 (create_and_insert_solib_event_breakpoint): Use
873 create_solib_event_breakpoint_1 instead of calling
874 insert_breakpoint_locations manually.
875 (update_global_location_list): Handle UGLL_INSERT.
877 2014-09-22 Pedro Alves <palves@redhat.com>
879 * breakpoint.c (enum ugll_insert_mode): New enum.
880 (update_global_location_list)
881 (update_global_location_list_nothrow): Change parameter type from
882 boolean to enum ugll_insert_mode. All callers adjusted.
884 2014-09-19 Joel Brobecker <brobecker@adacore.com>
886 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
887 SystemTap support in GDB.
889 2014-09-19 Don Breazeal <donb@codesourcery.com>
891 * linux-nat.c (linux_handle_extended_wait): Call
892 linux_ptrace_get_extended_event.
893 (wait_lwp): Call linux_is_extended_waitstatus.
894 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
895 and linux_is_extended_waitstatus.
896 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
897 linux_ptrace_get_extended_event.
898 (linux_ptrace_get_extended_event): New function.
899 (linux_is_extended_waitstatus): New function.
900 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
901 (linux_is_extended_waitstatus): New declarations.
903 2014-09-19 Yao Qi <yao@codesourcery.com>
905 * dwarf2read.c (dwarf_decode_lines): Update declaration.
906 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
907 comments. Callers update.
908 (dwarf_decode_lines): Likewise.
909 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
910 comments. Skip the line table if 'lowpc' is greater than
911 'address'. Don't check
912 dwarf2_per_objfile->has_section_at_zero.
914 2014-09-18 Doug Evans <dje@google.com>
916 * NEWS: Mention new "producer" attribute of gdb.Symtab.
917 * python/py-symtab.c (stpy_get_producer): New function.
918 (symtab_object_getset): Add "producer" attribute.
920 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
923 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
924 (do_captured_read_memory_integer): Remove.
925 (safe_read_memory_integer): Use target_read_memory directly instead
926 of catching errors in do_captured_read_memory_integer.
928 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
930 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
933 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
935 * objc-lang.c (find_implementation_from_class): Remove dead code.
937 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
940 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
941 "fprintf_unfiltered (gdb_stdlog...)".
943 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
946 * breakpoint.h (struct watchpoint): New fields val_bitpos and
948 * breakpoint.c (watch_command_1): Use these fields to retain
949 bitfield information.
950 (extract_bitfield_from_watchpoint_value): New function.
951 (watchpoint_check): Use it.
952 (update_watchpoint): Use it. Optimize the address and length of a
953 HW watchpoint pointing to a bitfield.
954 * value.h (unpack_value_bitfield): New prototype.
955 * value.c (unpack_value_bitfield): Make extern.
957 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
959 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
961 * gnu-nat.c (inf_threads): New function.
962 * gnu-nat.h (inf_threads_ftype): New typedef.
963 (inf_threads): New declaration.
964 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
965 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
966 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
967 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
968 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
969 (i386_gnu_dr_get_control): New functions.
970 (reg_addr): New structure.
971 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
972 i386 debugging register hooks.
973 * NEWS: Mention this.
975 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
977 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
978 vector data transfer instructions.
979 (arm_record_coproc_data_proc): Updated.
981 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
983 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
984 arm_record_exreg_ld_st_insn.
985 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
988 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
990 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
991 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
992 processing instructions.
994 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
996 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
997 for advance SIMD struct ld/st insn.
998 (thumb2_record_decode_insn_handler): Replace stub handler with
999 thumb2_record_asimd_struct_ld_st.
1001 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1003 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1004 for asimd, vfp and coprocessor insns.
1005 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1006 and coprocessor insns.
1007 (thumb2_record_coproc_insn): New function.
1008 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1010 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1013 2014-09-13 Doug Evans <xdje42@gmail.com>
1015 * NEWS: Mention new "queue-signal" command.
1016 * infcmd.c (queue_signal_command): New function.
1017 (_initialize_infcmd): Add new queue-signal command.
1019 2014-09-13 Doug Evans <xdje42@gmail.com>
1021 * linux-nat.c (wait_lwp): Add debugging printf.
1022 (linux_nat_wait_1): Ditto.
1024 2014-09-12 Pedro Alves <palves@redhat.com>
1026 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1027 (create_and_insert_solib_event_breakpoint): New functions.
1028 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1029 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1030 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1031 (remove_dbx_link_breakpoint): Delete function.
1032 (insert_dbx_link_bpt_in_file): Use
1033 create_and_insert_solib_event_breakpoint instead of
1034 deprecated_insert_raw_breakpoint.
1035 (procfs_wait): Don't check whether we hit __dbx_link here.
1036 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1038 * solib-irix.c (base_breakpoint): Delete global.
1039 (disable_break): Delete function.
1040 (enable_break): Use create_solib_event_breakpoint
1041 instead of deprecated_insert_raw_breakpoint.
1042 (irix_solib_handle_event): New function.
1043 (irix_solib_create_inferior_hook): Don't run the target or disable
1044 the mapping-complete breakpoint here.
1045 (_initialize_irix_solib): Install irix_solib_handle_event as
1046 so_ops->handle_event hook.
1048 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1049 Ulrich Weigand <uweigand@de.ibm.com>
1052 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1053 instead of read_memory_unsigned_integer.
1055 2014-09-12 Gary Benson <gbenson@redhat.com>
1057 * nat/linux-waitpid.c: Include common-defs.h.
1058 [GDBSERVER]: Add FIXME comment.
1059 [!GDBSERVER]: Don't include defs.h or signal.h.
1060 (linux_debug) [!GDBSERVER]: Remove empty block.
1062 2014-09-12 Gary Benson <gbenson@redhat.com>
1064 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1065 Don't include defs.h or server.h.
1067 2014-09-12 Gary Benson <gbenson@redhat.com>
1069 * nat/linux-btrace.c: Include common-defs.h.
1070 Don't include defs.h, server.h or gdbthread.h.
1071 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1073 2014-09-12 Gary Benson <gbenson@redhat.com>
1075 * common/agent.c: Include common-defs.h.
1076 Don't include defs.h or server.h.
1077 * common/buffer.c: Likewise.
1078 * common/common-debug.c: Likewise.
1079 * common/common-utils.c: Likewise.
1080 * common/errors.c: Likewise.
1081 * common/filestuff.c: Likewise.
1082 * common/format.c: Likewise.
1083 * common/gdb_vecs.c: Likewise.
1084 * common/print-utils.c: Likewise.
1085 * common/ptid.c: Likewise.
1086 * common/rsp-low.c: Likewise.
1087 * common/signals.c: Likewise.
1088 * common/vec.c: Likewise.
1089 * common/xml-utils.c: Likewise.
1090 * nat/linux-osdata.c: Likewise.
1091 * nat/linux-procfs.c: Likewise.
1092 * nat/linux-ptrace.c: Likewise.
1093 * nat/mips-linux-watch.c: Likewise.
1094 * target/waitstatus.c: Likewise.
1096 2014-09-12 Tom Tromey <tromey@redhat.com>
1097 Gary Benson <gbenson@redhat.com>
1099 * common/common-regcache.h: New file.
1100 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1101 * regcache.h: Include common-regcache.h.
1102 (regcache_read_pc): Don't declare.
1103 * regcache.c (get_thread_regcache_for_ptid): New function.
1104 * nat/linux-btrace.c: Don't include regcache.h.
1105 Include common-regcache.h.
1106 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1108 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1110 * regcache.h (struct regset): Declare.
1112 2014-09-11 Pedro Alves <palves@redhat.com>
1115 * main.c: Include "infrun.h".
1116 (catch_command_errors, catch_command_errors_const): Wait for the
1117 foreground command to complete.
1118 * top.c (maybe_wait_sync_command_done): New function, factored out
1120 (maybe_wait_sync_command_done): ... here.
1121 * top.h (maybe_wait_sync_command_done): New declaration.
1123 2014-09-11 Tom Tromey <tromey@redhat.com>
1124 Gary Benson <gbenson@redhat.com>
1126 * common/symbol.h: New file.
1127 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1128 * minsyms.c (find_minimal_symbol_address): New function.
1129 * common/agent.c: Include common/symbol.h.
1130 [!GDBSERVER]: Don't include objfiles.h.
1131 (agent_look_up_symbols): Use find_minimal_symbol_address.
1133 2014-09-11 Gary Benson <gbenson@redhat.com>
1135 * target/target.h (target_stop_ptid, target_continue_ptid):
1137 * target.c (target_stop_ptid, target_continue_ptid): New
1139 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1140 (agent_run_command): Always use target_stop_ptid and
1141 target_continue_ptid.
1143 2014-09-11 Tom Tromey <tromey@redhat.com>
1144 Gary Benson <gbenson@redhat.com>
1146 * target/target.h: New file.
1147 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1148 * target.h: Include target/target.h.
1149 (target_read_memory, target_write_memory): Don't declare.
1150 * target.c (target_read_uint32): New function.
1151 * common/agent.c: Include target/target.h.
1152 [!GDBSERVER]: Don't include target.h.
1153 (helper_thread_id): Type changed to uint32_t.
1154 (agent_get_helper_thread_id): Use target_read_uint32.
1155 (agent_run_command): Always use target_read_memory and
1156 target_write_memory.
1157 (agent_capability): Type changed to uint32_t.
1158 (agent_capability_check): Use target_read_uint32.
1160 2014-09-11 Gary Benson <gbenson@redhat.com>
1162 * common/common-debug.h (show_debug_regs): Declare.
1163 * common/common-debug.c (show_debug_regs): Define.
1164 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1165 all uses with show_debug_regs. Replace all uses that considered
1166 debug_hw_points as a multi-value integer with straight boolean
1168 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1169 with show_debug_regs.
1170 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1171 all uses with show_debug_regs.
1172 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1173 uses with show_debug_regs.
1175 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1177 * findvar.c (address_from_register): Handle targets requiring
1178 a special conversion routine even for plain pointer types.
1180 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1182 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1183 (store_register): Do not call exec_one_dummy_insn.
1185 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1187 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1188 dereference it first. Use value_enclosing_type instead of
1190 (ada_array_length): Likewise.
1192 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1194 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1195 Adjust function implementation and documentation accordingly.
1196 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1197 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1198 Update call to ada_value_ptr_subscript.
1200 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1202 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1203 instead of VAL's type.
1205 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1207 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1209 2014-09-09 Doug Evans <xdje42@gmail.com>
1212 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1213 last parameter to pkg-config, not first.
1214 * configure.ac: Pass --with-guile provided pkg-config path to
1215 GDB_GUILE_PROGRAM_NAMES.
1216 * configure: Regenerate.
1218 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1220 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1223 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1225 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1226 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1227 the list of sections determining GDB_OSABI_IRIX.
1229 2014-09-09 James Hogan <james.hogan@imgtec.com>
1231 * MAINTAINERS (Write After Approval): Add "James Hogan".
1233 2014-09-09 James Hogan <james.hogan@imgtec.com>
1235 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1237 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1239 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1241 2014-09-08 Doug Evans <xdje42@gmail.com>
1244 * guile.c: #include <signal.h>.
1245 (_initialize_guile): Block SIGCHLD while initializing Guile.
1247 Replaces the following, which is reverted.
1249 2014-07-26 Doug Evans <xdje42@gmail.com>
1252 * configure.ac: Add check for header gc/gc.h.
1253 Add check for function setenv.
1254 * configure: Regenerate.
1255 * config.in: Regenerate.
1256 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1258 2014-09-08 Doug Evans <xdje42@gmail.com>
1260 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1261 with named constant. Fix style of pointer comparison.
1262 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1264 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1267 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1268 decide whether we display the command on "show user".
1269 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1270 printing command name.
1271 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1272 * cli/cli-decode.c (cli_user_command_p): Create helper function
1273 to verify whether cmd_list_element is a user-defined command.
1275 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1278 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1279 Fix goto out of TRY_CATCH.
1281 2014-09-06 Doug Evans <xdje42@gmail.com>
1282 Tom Tromey <tromey@redhat.com>
1285 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1286 $_any_caller_matches.
1287 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1288 * python/lib/gdb/function/caller_is.py: New file.
1290 2014-09-06 Doug Evans <xdje42@gmail.com>
1292 * infcmd.c (program_info): Fix typo.
1294 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1297 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1298 'number'. New variable 'has_digit'. Rewrite code to deal with
1299 subexpressions on SDT probes.
1301 2014-09-04 Pedro Alves <palves@redhat.com>
1303 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1304 the input is only one character long.
1306 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1309 * f-valprint.c (f_val_print): Specify the correct print option to
1310 use when printing integer values.
1312 2014-09-04 Gary Benson <gbenson@redhat.com>
1314 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1315 Remove code to cope with LWPs wrapped as PIDs.
1316 Add assertions to ensure no wrapped LWPs are passed.
1318 2014-09-04 Pedro Alves <palves@redhat.com>
1320 * value.c (value_ranges_copy_adjusted): New function, factored out
1322 (value_contents_copy_raw): ... here.
1323 (unpack_value_bits_as_long_1): Rename back to ...
1324 (unpack_bits_as_long): ... this. Remove 'original_value' and
1325 'result' parameters. Change return type to LONGEST.
1326 (unpack_value_bits_as_long): Delete.
1327 (unpack_value_field_as_long_1): Delete.
1328 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1329 (unpack_value_bitfield): New function.
1330 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1331 (value_fetch_lazy): Use unpack_value_bitfield.
1332 * value.h (unpack_value_bits_as_long): Delete declaration.
1334 2014-09-03 Sasha Smundak <asmundak@google.com>
1336 * python/py-frame.c (frapy_read_register): New function.
1338 2014-09-03 James Hogan <james.hogan@imgtec.com>
1340 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1341 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1343 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1346 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1348 (add_cmd): Set "completer_handle_brkchars" to NULL.
1349 * cli/cli-decode.h (struct cmd_list_element)
1350 <completer_handle_brkchars>: New field.
1351 * command.h (completer_ftype_void): New typedef.
1352 (set_cmd_completer_handle_brkchars): New prototype.
1353 * completer.c (set_gdb_completion_word_break_characters): New
1355 (complete_line_internal): Call "completer_handle_brkchars"
1356 callback from command.
1357 * completer.h: Include "command.h".
1358 (set_gdb_completion_word_break_characters): New prototype.
1359 * python/py-cmd.c (cmdpy_completer_helper): New function.
1360 (cmdpy_completer_handle_brkchars): New function.
1361 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1362 (cmdpy_init): Set completer_handle_brkchars to
1363 cmdpy_completer_handle_brkchars.
1365 2014-09-03 Gary Benson <gbenson@redhat.com>
1367 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1368 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1369 Loop conditions changed to equivalent form.
1370 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1371 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1372 ALL_DEBUG_ADDRESS_REGISTERS.
1374 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1376 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1379 2014-09-02 Doug Evans <dje@google.com>
1381 * typeprint.c (find_global_typedef): Fix comment.
1383 2014-09-02 Gary Benson <gbenson@redhat.com>
1385 * i386-nat.h: Renamed as...
1386 * x86-nat.h: New file. All type, function and variable name
1387 prefixes changed from "i386_" to "x86_". All references updated.
1388 * i386-nat.c: Renamed as...
1389 * x86-nat.c: New file. All type, function and variable name
1390 prefixes changed from "i386_" to "x86_". All references updated.
1391 * common/i386-xstate.h: Renamed as...
1392 * common/x86-xstate.h: New file. All type, function and variable
1393 name prefixes changed from "i386_" to "x86_". All references
1395 * nat/i386-cpuid.h: Renamed as...
1396 * nat/x86-cpuid.h: New file. All type, function and variable name
1397 prefixes changed from "i386_" to "x86_". All references updated.
1398 * nat/i386-gcc-cpuid.h: Renamed as...
1399 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1400 name prefixes changed from "i386_" to "x86_". All references
1402 * nat/i386-dregs.h: Renamed as...
1403 * nat/x86-dregs.h: New file. All type, function and variable name
1404 prefixes changed from "i386_" to "x86_". All references updated.
1405 * nat/i386-dregs.c: Renamed as...
1406 * nat/x86-dregs.c: New file. All type, function and variable name
1407 prefixes changed from "i386_" to "x86_". All references updated.
1409 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1411 * varobj.c (_initialize_varobj): Move to the end of file.
1413 2014-08-29 Gary Benson <gbenson@redhat.com>
1415 * common/common-exceptions.h: New file.
1416 * common/common-exceptions.c: Likewise.
1417 * Makefile.in (SFILES): Add common/common-exceptions.c.
1418 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1419 (COMMON_OBS): Add common-exceptions.o.
1420 (common-exceptions.o): New rule.
1421 * exceptions.h (common-exceptions.h): Include.
1422 (gdb_setjmp.h): Do not include.
1423 (return_reason): Moved to common-exceptions.h.
1424 (enum return_reason): Likewise.
1425 (RETURN_MASK): Likewise.
1426 (typedef return_mask): Likewise.
1427 (enum errors): Likewise.
1428 (struct gdb_exception): Likewise.
1429 (exceptions_state_mc_init): Likewise.
1430 (exceptions_state_mc_action_iter): Likewise.
1431 (exceptions_state_mc_action_iter_1): Likewise.
1432 (TRY_CATCH): Likewise.
1433 (throw_exception): Likewise.
1434 (throw_verror): Likewise.
1435 (throw_vquit): Likewise.
1436 (throw_error): Likewise.
1437 (throw_quit): Likewise.
1438 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1439 (enum catcher_action): Likewise.
1440 (struct catcher): Likewise.
1441 (current_catcher): Likewise.
1442 (catcher_list_size): Likewise.
1443 (exceptions_state_mc_init): Likewise.
1444 (catcher_pop): Likewise.
1445 (exceptions_state_mc): Likewise.
1446 (exceptions_state_mc_action_iter): Likewise.
1447 (exceptions_state_mc_action_iter_1): Likewise.
1448 (throw_exception): Likewise.
1449 (exception_messages): Likewise.
1450 (exception_messages_size): Likewise.
1451 (throw_it): Likewise.
1452 (throw_verror): Likewise.
1453 (throw_vquit): Likewise.
1454 (throw_error): Likewise.
1455 (throw_quit): Likewise.
1456 (prepare_to_throw_exception): New function.
1458 2014-08-29 Gary Benson <gbenson@redhat.com>
1460 * common/gdb_setjmp.h: New file.
1461 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1462 * configure.ac: Move sigsetjmp check...
1463 * common/common.m4: ...here.
1464 * configure: Regenerate.
1465 * cp-support.c (SIGJMP_BUF): Delete.
1466 (SIGSETJMP): Likewise.
1467 (SIGLONGJMP): Likewise.
1468 * exceptions.h (gdb_setjmp.h): Include.
1469 (setjmp.h): Do not include.
1470 (EXCEPTIONS_SIGJMP_BUF): Delete.
1471 (EXCEPTIONS_SIGSETJMP): Likewise.
1472 (EXCEPTIONS_SIGLONGJMP): Likewise.
1473 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1475 * exceptions.c: Likewise.
1477 2014-08-29 Gary Benson <gbenson@redhat.com>
1479 * cleanups.h: Moved to...
1480 * common/cleanups.h: New file.
1481 * cleanups.c: Moved to...
1482 * common/cleanups.c: New file. Include common-defs.h and
1483 cleanups.h. Do not include defs.h.
1484 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1485 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1486 (cleanups.o): New rule.
1488 2014-08-29 Gary Benson <gbenson@redhat.com>
1490 * common/errors.h (internal_warning): New declaration.
1491 (internal_vwarning): Likewise.
1492 * common/errors.c (internal_warning): New function.
1493 * utils.h (internal_warning): Don't declare.
1494 (internal_vwarning): Likewise.
1495 * utils.c (internal_warning): Removed.
1497 2014-08-29 Gary Benson <gbenson@redhat.com>
1499 * main.c (captured_main): Use warning during startup.
1500 Prefix startup warning messages with command name.
1502 2014-08-29 Gary Benson <gbenson@redhat.com>
1504 * main.c (captured_main): Handle usage errors with error.
1506 2014-08-29 Gary Benson <gbenson@redhat.com>
1508 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1509 exit pair with a call to error. Wrap the message with _().
1511 2014-08-29 Gary Benson <gbenson@redhat.com>
1513 * main.c (captured_main): Replace a fprintf/exit
1514 pair with a call to error. Wrap the message with _().
1516 2014-08-29 Gary Benson <gbenson@redhat.com>
1518 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1519 pairs with calls to error. Wrap the message with _().
1521 2014-08-29 Gary Benson <gbenson@redhat.com>
1523 * utils.c (vwarning): Protect calls to target_terminal_ours
1526 2014-08-29 Gary Benson <gbenson@redhat.com>
1528 * exceptions.c (print_flush): Protect calls to
1529 target_terminal_ours and wrap_here.
1531 2014-08-29 Gary Benson <gbenson@redhat.com>
1533 * utils.h (filtered_printing_initialized): New declaration.
1534 * utils.c (abort_with_message): New function.
1535 (internal_vproblem): Use abort_with_message for first level
1536 recursive internal problems, and if gdb_stderr is not set up.
1537 Protect calls to target_terminal_ours, begin_line and query.
1539 2014-08-28 Doug Evans <dje@google.com>
1541 * symtab.c (in_prologue): Move definition to better spot.
1542 (skip_prologue_using_sal): Ditto.
1544 2014-08-28 Doug Evans <dje@google.com>
1546 * symtab.c (find_function_start_sal): Move definition to better spot.
1548 2014-08-28 Yao Qi <yao@codesourcery.com>
1550 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1551 found_stack_adjust in forward scan. Remove condition check
1552 on found_stack_adjust which is always true. Indent the code.
1554 2014-08-28 Yao Qi <yao@codesourcery.com>
1556 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1557 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1558 (dwarf_decode_lines): Remove argument
1559 want_line_info. Remove condition check on want_line_info.
1562 2014-08-27 Doug Evans <dje@google.com>
1564 * dwarf2read.c (dwarf_record_line): Fix typo.
1566 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1568 * target.h (struct target_ops::to_terminal_save_ours): Remove
1570 (target_terminal_save_ours): Remove macro.
1571 * target-delegates.c: Regenerate.
1572 * inf-child.c (inf_child_target): Don't set the nonexistent
1573 field to_terminal_save_ours.
1574 * inferior.h (child_terminal_save_ours): Remove declaration.
1575 * terminal.h (gdb_save_tty_state): New declaration.
1576 * inflow.c (child_terminal_save_ours): Rename to ...
1577 (gdb_save_tty_state): ... this.
1578 * tui/tui.c: Include terminal.h.
1579 (tui_enable): Use gdb_save_tty_state instead of
1580 target_terminal_save_ours.
1581 (tui_disable): Likewise.
1583 2014-08-25 Doug Evans <dje@google.com>
1585 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1586 Pass NULL instead of 0 for context pointer.
1588 2014-08-25 Yao Qi <yao@codesourcery.com>
1590 * dwarf2read.c: Fix grammatical error.
1592 2014-08-24 Yao Qi <yao@codesourcery.com>
1594 * dwarf2read.c (scan_partial_symbols): Update comments.
1595 Rename argument 'need_pc' with 'set_addrmap'.
1596 (add_partial_namespace): Rename argument 'need_pc' with
1598 (add_partial_module): Likewise.
1599 (add_partial_subprogram): Likewise. Update comments.
1600 (dwarf2_name): Fix typo.
1602 2014-08-22 Doug Evans <dje@google.com>
1605 * dwarf2read.c (dwarf_record_line_p): New function.
1606 (dwarf_decode_lines_1): Ignore subsequent line number entries
1607 for the same line if any entry had a non-zero discriminator.
1609 2014-08-22 Doug Evans <dje@google.com>
1611 * buildsym.h (record_line_ftype): New typedef.
1612 (record_line): Use it.
1613 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1614 (dwarf_decode_lines_1): Call them.
1616 2014-08-22 Yao Qi <yao@codesourcery.com>
1618 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1619 (ctf_end): Remove code.
1621 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1624 (linux_make_corefile_notes): call update_thread_list, protected against
1627 2014-08-21 Pedro Alves <palves@redhat.com>
1629 * infcmd.c (attach_command): Remove comment.
1631 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1633 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1634 unsigned LONGEST to ULONGEST.
1636 2014-08-20 Pedro Alves <palves@redhat.com>
1638 * Makefile.in (check-read1): New rule.
1640 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1642 * value.c (value_from_contents_and_address): Strip resolved_type's
1643 typedef layers before checking its TYPE_DATA_LOCATION.
1645 2014-08-20 Pedro Alves <palves@redhat.com>
1647 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1649 2014-08-20 Yao Qi <yao@codesourcery.com>
1651 * amd64-tdep.c (amd64_classify): Add a blank line after the
1652 example. Move "*/" to a new line.
1653 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1654 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1655 * dwarf2read.c (psymtab_include_file_name): Likewise.
1657 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1658 Pedro Alves <palves@redhat.com>
1662 * ada-lang.c (coerce_unspec_val_to_type): Use
1663 value_contents_copy_raw.
1664 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1665 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1666 * cp-valprint.c (cp_print_value_fields): Let the common printing
1667 code handle optimized out values.
1668 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1669 * d-valprint.c (dynamic_array_type): Use
1670 value_bits_any_optimized_out.
1671 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1672 check_any_valid fields.
1673 (check_pieced_value_bits): Delete and inline ...
1674 (check_pieced_synthetic_pointer): ... here.
1675 (check_pieced_value_validity): Delete.
1676 (check_pieced_value_invalid): Delete.
1677 (pieced_value_funcs): Remove check_validity and check_any_valid
1679 (read_pieced_value): Use mark_value_bits_optimized_out.
1680 (write_pieced_value): Switch to use
1681 mark_value_bytes_optimized_out.
1682 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1683 of assuming the whole value is optimized out.
1684 * findvar.c (read_frame_register_value): Remove special handling
1685 of optimized out registers.
1686 (value_from_register): Use mark_value_bytes_optimized_out.
1687 * frame-unwind.c (frame_unwind_got_optimized): Use
1688 mark_value_bytes_optimized_out.
1689 * jv-valprint.c (java_value_print): Adjust.
1690 (java_print_value_fields): Let the common printing code handle
1691 optimized out values.
1692 * mips-tdep.c (mips_print_register): Remove special handling of
1693 optimized out registers.
1694 * opencl-lang.c (lval_func_check_validity): Delete.
1695 (lval_func_check_any_valid): Delete.
1696 (opencl_value_funcs): Remove check_validity and check_any_valid
1698 * p-valprint.c (pascal_object_print_value_fields): Let the common
1699 printing code handle optimized out values.
1700 * stack.c (read_frame_arg): Remove special handling of optimized
1701 out values. Fetch both VAL and ENTRYVAL before comparing
1702 contents. Adjust to value_available_contents_eq rename.
1703 * valprint.c (valprint_check_validity)
1704 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1705 (val_print_array_elements): Adjust.
1706 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1707 (value_bits_any_optimized_out): New function.
1708 (value_entirely_covered_by_range_vector): New function, factored
1709 out from value_entirely_unavailable.
1710 (value_entirely_unavailable): Reimplement.
1711 (value_entirely_optimized_out): New function.
1712 (insert_into_bit_range_vector): New function, factored out from
1713 mark_value_bits_unavailable.
1714 (mark_value_bits_unavailable): Reimplement.
1715 (struct ranges_and_idx): New struct.
1716 (find_first_range_overlap_and_match): New function, factored out
1717 from value_available_contents_bits_eq.
1718 (value_available_contents_bits_eq): Rename to ...
1719 (value_contents_bits_eq): ... this. Check both unavailable
1720 contents and optimized out contents.
1721 (value_available_contents_eq): Rename to ...
1722 (value_contents_eq): ... this.
1723 (allocate_value_lazy): Remove reference to the old optimized_out
1725 (allocate_optimized_out_value): Use
1726 mark_value_bytes_optimized_out.
1727 (require_not_optimized_out): Adjust to check whether the
1728 optimized_out vec is empty.
1729 (ranges_copy_adjusted): New function, factored out from
1730 value_contents_copy_raw.
1731 (value_contents_copy_raw): Also copy the optimized out ranges.
1732 Assert the destination ranges aren't optimized out.
1733 (value_contents_copy): Update comment, remove call to
1734 require_not_optimized_out.
1735 (value_contents_equal): Adjust to check whether the optimized_out
1737 (set_value_optimized_out, value_optimized_out_const): Delete.
1738 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1740 (value_entirely_optimized_out, value_bits_valid): Delete.
1741 (value_copy): Take a VEC copy of the 'optimized_out' field.
1742 (value_primitive_field): Remove special handling of optimized out.
1743 (value_fetch_lazy): Assert that lazy values have no unavailable
1744 regions. Use value_bits_any_optimized_out. Remove some special
1745 handling for optimized out values.
1746 * value.h: Add intro comment about <optimized out> and
1748 (struct lval_funcs): Remove check_validity and check_any_valid
1750 (set_value_optimized_out, value_optimized_out_const): Remove.
1751 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1753 (value_bits_any_optimized_out): New declaration.
1754 (value_bits_valid): Delete declaration.
1755 (value_available_contents_eq): Rename to ...
1756 (value_contents_eq): ... this, and extend comments.
1758 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1760 Fix -fsanitize=address on unreadable inferior strings.
1761 * valprint.c (val_print_string): Fix access before BUFFER.
1763 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1765 * target.c (target_struct_size): Remove.
1766 (target_struct_allocsize): Remove.
1767 (DEFAULT_ALLOCSIZE): Remove.
1768 (target_ops_p): New typedef.
1769 (DEF_VEC_P (target_ops_p)): New vector type.
1770 (target_structs): Change type to VEC (target_ops_p).
1771 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1772 (find_default_run_target): Rewrite for loop following changes to
1775 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1777 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1778 Adjust code accordingly. Adjust function description comment.
1780 2014-08-19 Yao Qi <yao@codesourcery.com>
1782 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1785 2014-08-19 Alan Modra <amodra@gmail.com>
1787 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1788 * config.in: Regenerate.
1789 * configure: Regenerate.
1791 2014-08-19 Tom Tromey <tromey@redhat.com>
1792 Gary Benson <gbenson@redhat.com>
1794 * common/common-debug.h: New file.
1795 * common/common-debug.c: Likewise.
1796 * debug.c: Likewise.
1797 * Makefile.in (SFILES): Add common/common-debug.c.
1798 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1799 (COMMON_OBS): Add common-debug.o and debug.o.
1800 (common-debug.o): New rule.
1801 * common/common-defs.h: Include common-debug.h.
1802 * common/agent.c (debug_agent_printf): New function.
1803 (DEBUG_AGENT): Redefine.
1804 * nat/i386-dregs.c (debug_printf): Undefine.
1806 2014-08-19 Gary Benson <gbenson@redhat.com>
1808 * common/common-defs.h: Include print-utils.h.
1809 * utils.h: Do not include print-utils.h.
1811 2014-08-19 Tom Tromey <tromey@redhat.com>
1812 Gary Benson <gbenson@redhat.com>
1814 * common/common-types.h: New file.
1815 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1816 * common/common-defs.h: Include common-types.h.
1817 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1820 2014-08-19 Tom Tromey <tromey@redhat.com>
1821 Gary Benson <gbenson@redhat.com>
1823 * common/errors.h: New file.
1824 * common/errors.c: Likewise.
1825 * Makefile.in (SFILES): Add common/errors.c.
1826 (HFILES_NO_SRCDIR): Add common/errors.h.
1827 (COMMON_OBS): Add errors.o.
1828 (errors.o): New rule.
1829 * common/common-defs.h: Include errors.h.
1830 * utils.h (perror_with_name, error, verror, warning, vwarning):
1832 * common/common-utils.h: (malloc_failure, internal_error):
1835 2014-08-19 Gary Benson <gbenson@redhat.com>
1837 * utils.c (internal_vproblem): Always print the message.
1839 2014-08-18 Doug Evans <dje@google.com>
1841 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1843 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1845 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1846 Return 0 if TYPE is dynamic.
1847 (print_range): Add handling of dynamic ranges.
1849 2014-08-18 Keven Boell <keven.boell@intel.com>
1850 Joel Brobecker <brobecker@adacore.com>
1852 * gdbtypes.h (struct main_type): Add field "data_location".
1853 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1854 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1855 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1856 a dynamic data location.
1857 (resolve_dynamic_type): Add DW_AT_data_location handling.
1858 (copy_recursive, copy_type): Copy the data_location information
1860 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1861 * value.c (value_from_contents_and_address): Add
1862 DW_AT_data_location handling.
1864 2014-08-18 Keven Boell <keven.boell@intel.com>
1865 Joel Brobecker <brobecker@adacore.com>
1867 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1868 field "get_object_address".
1869 * dwarf2expr.c (execute_stack_op): Add handling for
1870 DW_OP_push_object_address.
1871 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1872 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1873 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1874 (dwarf_expr_get_obj_addr): New function.
1875 (dwarf_expr_ctx_funcs): Add get_object_address field.
1876 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1877 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1878 (dwarf2_evaluate_property): Add parameter "address". Use it.
1879 (needs_get_obj_addr): New function.
1880 (needs_frame_ctx_funcs): Add get_object_address field.
1881 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1882 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1883 (resolve_dynamic_array): Likewise.
1885 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1887 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1888 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1889 fixed value for records and unions for which some GNAT encodings
1892 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1894 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1895 rewrite to avoid "else if" and "else" constructs. Should be
1896 a no-op in practice.
1898 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1903 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1906 * eval.c: Update all calls to find_overload_match.
1907 * valarith.c: Likewise.
1908 (value_user_defined_cpp_op, value_user_defined_op): New
1909 argument NOSIDE. Update all callers.
1910 * valops.c (find_overload_match): New argument NOSIDE.
1911 * value.h (find_overload_match): Update signature.
1913 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1915 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1916 'items' methods instead of 'iteritems' method on dictionaries.
1918 2014-08-15 Doug Evans <dje@google.com>
1920 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1923 2014-08-15 Doug Evans <dje@google.com>
1925 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1927 2014-08-15 Doug Evans <dje@google.com>
1929 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1931 2014-08-15 Doug Evans <dje@google.com>
1933 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1936 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1938 * dcache.h: Include target.h, to avoid compile time warnings.
1940 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1942 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1943 frame_info" partial declaration.
1944 * gdbarch.h: Regenerate.
1946 2014-08-15 Yao Qi <yao@codesourcery.com>
1948 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1949 Add parameter 'decode_for_pst_p'. Callers update.
1951 2014-08-13 Yao Qi <yao@codesourcery.com>
1954 * configure.ac: Use local variable 'pos'.
1955 * configure: Regenerated.
1957 2014-08-11 Doug Evans <dje@google.com>
1959 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1960 message, it is redundant with "Reading symbols from ..." message.
1962 2014-08-10 Doug Evans <xdje42@gmail.com>
1964 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1966 2014-08-09 Yao Qi <yao@codesourcery.com>
1969 * remote.c (remote_xfer_partial): Remove dead code.
1971 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1973 * ia64-linux-tdep.c: Include "regset.h".
1974 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1975 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1976 (ia64_linux_supply_fpregset): New function.
1977 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1978 (ia64_linux_regset_from_core_section): New function.
1979 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1982 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1984 * m68klinux-tdep.c: Include "regset.h".
1985 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1986 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1987 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1988 (m68k_linux_regset_from_core_section): New function.
1989 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1992 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1994 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1995 function. Move logic to...
1996 (tilegx_linux_regmap): ... this new register map.
1997 (tilegx_linux_regset): Refer to register map, replace supply
1998 method by regcache_supply_regset, and add collect method.
1999 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2000 TILEGX_FIRST_EASY_REGNUM.
2002 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2004 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2005 that calls regcache_supply_regset and handles the EPC register
2006 separately. Move main logic to...
2007 (score7_linux_gregmap): ... this new register map.
2008 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2009 (score7_linux_gregset): Refer to register map. Add collect method.
2010 (score7_linux_regset_from_core_section): Replace
2011 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2012 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2013 (struct regset): Delete unused forward declaraction.
2014 (struct pt_regs): Delete structure definition.
2015 (elf_gregset_t): Delete typedef.
2017 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2019 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2020 (nios2_core_regset): Add collect method.
2022 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2024 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2025 platform-independent and don't write to read-only input buffer.
2026 (m32r_linux_collect_gregset): New function.
2027 (m32r_linux_gregset): Add collect method.
2029 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2031 * hppa-linux-tdep.c (greg_map): Rename to...
2032 (hppa_linux_gregmap): ... this. Also convert to
2033 regcache_map_entry format.
2034 (hppa_linux_supply_regset): Delete function.
2035 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2036 (hppa_linux_fpregmap): ... this new register map.
2037 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2038 register map, replace supply method by regcache_supply_regset, and
2039 add collect method regcache_collect_regset.
2041 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2043 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2044 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2045 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2046 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2047 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2048 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2049 (frv_linux_supply_gregset): Replace main logic by call to
2050 regcache_supply_regset, but keep clearing gr32-gr63.
2051 (frv_linux_supply_fpregset): Delete function.
2052 (frv_linux_gregset): Refer to appropriate register map and add
2053 regcache_collect_regset as the collect method.
2054 (frv_linux_fpregset): Likewise. Also exchange the supply method
2055 by regcache_supply_regset.
2057 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2059 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2060 by call to alpha_supply_int_regs.
2061 (alpha_linux_collect_gregset): New function.
2062 (alpha_linux_supply_fpregset): Replace logic by call to
2063 alpha_supply_fp_regs.
2064 (alpha_linux_collect_fpregset): New function.
2065 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2067 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2069 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2070 by call to regcache_collect_regset.
2071 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2072 instead of aarch64_linux_supply_gregset/_fpregset.
2073 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2074 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2075 header file instead.
2076 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2077 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2078 functions. Move logic to ...
2079 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2081 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2082 refer to new register maps, replace *_regset_from_core by
2083 regcache_supply_regset, and also use regcache_collect_regset.
2084 * aarch64-linux-tdep.h: Include "regset.h".
2085 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2087 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2088 macros, moved from C source file.
2089 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2090 variable declarations.
2092 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2094 * s390-linux-nat.c: Include "regset.h".
2095 (regmap_gregset): Delete macro.
2096 (s390_64_regmap_gregset): New register map for
2097 regcache_supply/_collect_regset.
2098 (s390_64_gregset): New regset.
2099 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2100 (regmap_fpregset): Delete macro.
2101 (s390_native_supply, s390_native_collect): Delete functions.
2102 (supply_gregset, fill_gregset): Replace s390-specific regmap
2103 handling by a call to regcache_supply/_collect_regset.
2104 (supply_fpregset, fill_fpregset): Call regcache_supply/
2105 _collect_regset instead of s390_native_supply/_collect.
2106 (fetch_regset, store_regset): Likewise. Also change the last
2107 parameter to a regset instead of a regmap.
2108 (s390_linux_fetch_inferior_registers)
2109 (390_linux_store_inferior_registers): Adjust last parameter in
2110 calls to fetch_regset and store_regset.
2111 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2112 (s390_gregmap): ... this. Also make static const and convert to
2113 regcache_map_entry format.
2114 (s390x_regmap_gregset): Delete.
2115 (s390_regmap_fpregset): Rename to...
2116 (s390_fpregmap): ... this. Make static const and convert to
2117 regcache_map_entry format.
2118 (s390_regmap_upper, s390_regmap_last_break)
2119 (s390x_regmap_last_break, s390_regmap_system_call)
2120 (s390_regmap_tdb): Likewise.
2121 (s390_supply_regset, s390_collect_regset): Remove functions.
2122 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2124 (s390_gregset, s390_fpregset, s390_upper_regset)
2125 (s390_last_break_regset, s390x_last_break_regset)
2126 (s390_system_call_regset, s390_tdb_regset): Make global and
2127 replace s390_supply/_collect_regset by regcache_supply/
2129 (s390x_gregset): Delete.
2130 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2131 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2132 (s390_regmap_fpregset, s390_regmap_last_break)
2133 (s390x_regmap_last_break, s390_regmap_system_call)
2134 (s390_regmap_tdb): Delete global variable declarations.
2135 (s390_gregset, s390_fpregset, s390_last_break_regset)
2136 (s390x_last_break_regset, s390_system_call_regset)
2137 (s390_tdb_regset): New global variable declarations.
2139 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2141 * regcache.c: Include "regset.h".
2142 (regcache_transfer_regset): New local function.
2143 (regcache_supply_regset, regcache_collect_regset): New functions.
2144 * regcache.h (struct regcache_map_entry): New structure.
2145 (REGCACHE_MAP_SKIP): New enum value.
2146 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2148 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2150 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2151 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2152 (ppc_linux_collect_gregset ): Likewise.
2153 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2154 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2155 (ppc_collect_vrregset): Likewise.
2156 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2159 2014-08-07 Yao Qi <yao@codesourcery.com>
2161 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2162 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2163 * remote.c (remote_read_bytes): Likewise.
2165 2014-08-07 Yao Qi <yao@codesourcery.com>
2167 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2169 2014-08-07 Yao Qi <yao@codesourcery.com>
2172 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2173 TARGET_XFER_OK instead of 0.
2175 2014-08-07 Gary Benson <gbenson@redhat.com>
2177 * common/common-defs.h: Include errno.h.
2178 * defs.h: Do not include errno.h.
2179 * ada-typeprint.c: Likewise.
2180 * c-typeprint.c: Likewise.
2181 * core-regset.c: Likewise.
2182 * corefile.c: Likewise.
2183 * corelow.c: Likewise.
2184 * event-loop.c: Likewise.
2185 * f-typeprint.c: Likewise.
2186 * gnu-nat.c: Likewise.
2187 * go32-nat.c: Likewise.
2188 * i386gnu-nat.c: Likewise.
2189 * m2-typeprint.c: Likewise.
2190 * nat/linux-btrace.c: Likewise.
2191 * p-typeprint.c: Likewise.
2192 * procfs.c: Likewise.
2193 * remote-sim.c: Likewise.
2194 * rs6000-nat.c: Likewise.
2195 * target.c: Likewise.
2196 * typeprint.c: Likewise.
2197 * ui-file.c: Likewise.
2198 * valops.c: Likewise.
2199 * valprint.c: Likewise.
2201 2014-08-07 Gary Benson <gbenson@redhat.com>
2203 * common/common-defs.h: Include string.h.
2204 * aarch64-tdep.c: Do not include string.h.
2205 * ada-exp.y: Likewise.
2206 * ada-lang.c: Likewise.
2207 * ada-lex.l: Likewise.
2208 * ada-typeprint.c: Likewise.
2209 * ada-valprint.c: Likewise.
2210 * aix-thread.c: Likewise.
2211 * alpha-linux-tdep.c: Likewise.
2212 * alpha-mdebug-tdep.c: Likewise.
2213 * alpha-nat.c: Likewise.
2214 * alpha-osf1-tdep.c: Likewise.
2215 * alpha-tdep.c: Likewise.
2216 * alphanbsd-tdep.c: Likewise.
2217 * amd64-dicos-tdep.c: Likewise.
2218 * amd64-linux-tdep.c: Likewise.
2219 * amd64-nat.c: Likewise.
2220 * amd64-sol2-tdep.c: Likewise.
2221 * amd64fbsd-tdep.c: Likewise.
2222 * amd64obsd-tdep.c: Likewise.
2223 * arch-utils.c: Likewise.
2224 * arm-linux-nat.c: Likewise.
2225 * arm-linux-tdep.c: Likewise.
2226 * arm-tdep.c: Likewise.
2227 * arm-wince-tdep.c: Likewise.
2228 * armbsd-tdep.c: Likewise.
2229 * armnbsd-nat.c: Likewise.
2230 * armnbsd-tdep.c: Likewise.
2231 * armobsd-tdep.c: Likewise.
2232 * avr-tdep.c: Likewise.
2233 * ax-gdb.c: Likewise.
2234 * ax-general.c: Likewise.
2235 * bcache.c: Likewise.
2236 * bfin-tdep.c: Likewise.
2237 * breakpoint.c: Likewise.
2238 * build-id.c: Likewise.
2239 * buildsym.c: Likewise.
2240 * c-exp.y: Likewise.
2241 * c-lang.c: Likewise.
2242 * c-typeprint.c: Likewise.
2243 * c-valprint.c: Likewise.
2244 * charset.c: Likewise.
2245 * cli-out.c: Likewise.
2246 * cli/cli-cmds.c: Likewise.
2247 * cli/cli-decode.c: Likewise.
2248 * cli/cli-dump.c: Likewise.
2249 * cli/cli-interp.c: Likewise.
2250 * cli/cli-logging.c: Likewise.
2251 * cli/cli-script.c: Likewise.
2252 * cli/cli-setshow.c: Likewise.
2253 * cli/cli-utils.c: Likewise.
2254 * coffread.c: Likewise.
2255 * common/agent.c: Likewise.
2256 * common/buffer.c: Likewise.
2257 * common/buffer.h: Likewise.
2258 * common/common-utils.c: Likewise.
2259 * common/filestuff.c: Likewise.
2260 * common/filestuff.c: Likewise.
2261 * common/format.c: Likewise.
2262 * common/print-utils.c: Likewise.
2263 * common/rsp-low.c: Likewise.
2264 * common/signals.c: Likewise.
2265 * common/vec.h: Likewise.
2266 * common/xml-utils.c: Likewise.
2267 * core-regset.c: Likewise.
2268 * corefile.c: Likewise.
2269 * corelow.c: Likewise.
2270 * cp-abi.c: Likewise.
2271 * cp-name-parser.y: Likewise.
2272 * cp-support.c: Likewise.
2273 * cp-valprint.c: Likewise.
2274 * cris-tdep.c: Likewise.
2275 * d-exp.y: Likewise.
2276 * darwin-nat.c: Likewise.
2277 * dbxread.c: Likewise.
2278 * dcache.c: Likewise.
2279 * demangle.c: Likewise.
2280 * dicos-tdep.c: Likewise.
2281 * disasm.c: Likewise.
2282 * doublest.c: Likewise.
2283 * dsrec.c: Likewise.
2284 * dummy-frame.c: Likewise.
2285 * dwarf2-frame.c: Likewise.
2286 * dwarf2loc.c: Likewise.
2287 * dwarf2read.c: Likewise.
2288 * elfread.c: Likewise.
2289 * environ.c: Likewise.
2291 * event-loop.c: Likewise.
2292 * exceptions.c: Likewise.
2294 * expprint.c: Likewise.
2295 * f-exp.y: Likewise.
2296 * f-lang.c: Likewise.
2297 * f-typeprint.c: Likewise.
2298 * f-valprint.c: Likewise.
2299 * fbsd-nat.c: Likewise.
2300 * findcmd.c: Likewise.
2301 * findvar.c: Likewise.
2302 * fork-child.c: Likewise.
2303 * frame.c: Likewise.
2304 * frv-linux-tdep.c: Likewise.
2305 * frv-tdep.c: Likewise.
2307 * gdb_bfd.c: Likewise.
2308 * gdbarch.c: Likewise.
2309 * gdbarch.sh: Likewise.
2310 * gdbtypes.c: Likewise.
2311 * gnu-nat.c: Likewise.
2312 * gnu-v2-abi.c: Likewise.
2313 * gnu-v3-abi.c: Likewise.
2314 * go-exp.y: Likewise.
2315 * go-lang.c: Likewise.
2316 * go32-nat.c: Likewise.
2317 * guile/guile.c: Likewise.
2318 * guile/scm-auto-load.c: Likewise.
2319 * hppa-hpux-tdep.c: Likewise.
2320 * hppa-linux-nat.c: Likewise.
2321 * hppanbsd-tdep.c: Likewise.
2322 * hppaobsd-tdep.c: Likewise.
2323 * i386-cygwin-tdep.c: Likewise.
2324 * i386-dicos-tdep.c: Likewise.
2325 * i386-linux-tdep.c: Likewise.
2326 * i386-nto-tdep.c: Likewise.
2327 * i386-sol2-tdep.c: Likewise.
2328 * i386-tdep.c: Likewise.
2329 * i386bsd-tdep.c: Likewise.
2330 * i386gnu-nat.c: Likewise.
2331 * i386nbsd-tdep.c: Likewise.
2332 * i386obsd-tdep.c: Likewise.
2333 * i387-tdep.c: Likewise.
2334 * ia64-libunwind-tdep.c: Likewise.
2335 * ia64-linux-nat.c: Likewise.
2336 * inf-child.c: Likewise.
2337 * inf-ptrace.c: Likewise.
2338 * inf-ttrace.c: Likewise.
2339 * infcall.c: Likewise.
2340 * infcmd.c: Likewise.
2341 * inflow.c: Likewise.
2342 * infrun.c: Likewise.
2343 * interps.c: Likewise.
2344 * iq2000-tdep.c: Likewise.
2345 * irix5-nat.c: Likewise.
2346 * jv-exp.y: Likewise.
2347 * jv-lang.c: Likewise.
2348 * jv-typeprint.c: Likewise.
2349 * jv-valprint.c: Likewise.
2350 * language.c: Likewise.
2351 * linux-fork.c: Likewise.
2352 * linux-nat.c: Likewise.
2353 * lm32-tdep.c: Likewise.
2354 * m2-exp.y: Likewise.
2355 * m2-typeprint.c: Likewise.
2356 * m32c-tdep.c: Likewise.
2357 * m32r-linux-nat.c: Likewise.
2358 * m32r-linux-tdep.c: Likewise.
2359 * m32r-rom.c: Likewise.
2360 * m32r-tdep.c: Likewise.
2361 * m68hc11-tdep.c: Likewise.
2362 * m68k-tdep.c: Likewise.
2363 * m68kbsd-tdep.c: Likewise.
2364 * m68klinux-nat.c: Likewise.
2365 * m68klinux-tdep.c: Likewise.
2366 * m88k-tdep.c: Likewise.
2367 * machoread.c: Likewise.
2368 * macrocmd.c: Likewise.
2370 * mdebugread.c: Likewise.
2371 * mem-break.c: Likewise.
2372 * memattr.c: Likewise.
2373 * memory-map.c: Likewise.
2374 * mep-tdep.c: Likewise.
2375 * mi/mi-cmd-break.c: Likewise.
2376 * mi/mi-cmd-disas.c: Likewise.
2377 * mi/mi-cmd-env.c: Likewise.
2378 * mi/mi-cmd-stack.c: Likewise.
2379 * mi/mi-cmd-var.c: Likewise.
2380 * mi/mi-cmds.c: Likewise.
2381 * mi/mi-console.c: Likewise.
2382 * mi/mi-getopt.c: Likewise.
2383 * mi/mi-interp.c: Likewise.
2384 * mi/mi-main.c: Likewise.
2385 * mi/mi-parse.c: Likewise.
2386 * microblaze-rom.c: Likewise.
2387 * microblaze-tdep.c: Likewise.
2388 * mingw-hdep.c: Likewise.
2389 * minidebug.c: Likewise.
2390 * minsyms.c: Likewise.
2391 * mips-irix-tdep.c: Likewise.
2392 * mips-linux-tdep.c: Likewise.
2393 * mips-tdep.c: Likewise.
2394 * mips64obsd-tdep.c: Likewise.
2395 * mipsnbsd-tdep.c: Likewise.
2396 * mipsread.c: Likewise.
2397 * mn10300-linux-tdep.c: Likewise.
2398 * mn10300-tdep.c: Likewise.
2399 * monitor.c: Likewise.
2400 * moxie-tdep.c: Likewise.
2401 * mt-tdep.c: Likewise.
2402 * nat/linux-btrace.c: Likewise.
2403 * nat/linux-osdata.c: Likewise.
2404 * nat/linux-procfs.c: Likewise.
2405 * nat/linux-ptrace.c: Likewise.
2406 * nat/linux-waitpid.c: Likewise.
2407 * nbsd-tdep.c: Likewise.
2408 * nios2-linux-tdep.c: Likewise.
2409 * nto-procfs.c: Likewise.
2410 * nto-tdep.c: Likewise.
2411 * objc-lang.c: Likewise.
2412 * objfiles.c: Likewise.
2413 * opencl-lang.c: Likewise.
2414 * osabi.c: Likewise.
2415 * osdata.c: Likewise.
2416 * p-exp.y: Likewise.
2417 * p-lang.c: Likewise.
2418 * p-typeprint.c: Likewise.
2419 * parse.c: Likewise.
2420 * posix-hdep.c: Likewise.
2421 * ppc-linux-nat.c: Likewise.
2422 * ppc-sysv-tdep.c: Likewise.
2423 * ppcfbsd-tdep.c: Likewise.
2424 * ppcnbsd-tdep.c: Likewise.
2425 * ppcobsd-tdep.c: Likewise.
2426 * printcmd.c: Likewise.
2427 * procfs.c: Likewise.
2428 * prologue-value.c: Likewise.
2429 * python/py-auto-load.c: Likewise.
2430 * python/py-gdb-readline.c: Likewise.
2431 * ravenscar-thread.c: Likewise.
2432 * regcache.c: Likewise.
2433 * registry.c: Likewise.
2434 * remote-fileio.c: Likewise.
2435 * remote-m32r-sdi.c: Likewise.
2436 * remote-mips.c: Likewise.
2437 * remote-notif.c: Likewise.
2438 * remote-sim.c: Likewise.
2439 * remote.c: Likewise.
2440 * reverse.c: Likewise.
2441 * rs6000-aix-tdep.c: Likewise.
2442 * ser-base.c: Likewise.
2443 * ser-go32.c: Likewise.
2444 * ser-mingw.c: Likewise.
2445 * ser-pipe.c: Likewise.
2446 * ser-tcp.c: Likewise.
2447 * ser-unix.c: Likewise.
2448 * serial.c: Likewise.
2449 * sh-tdep.c: Likewise.
2450 * sh64-tdep.c: Likewise.
2451 * shnbsd-tdep.c: Likewise.
2453 * sol-thread.c: Likewise.
2454 * solib-dsbt.c: Likewise.
2455 * solib-frv.c: Likewise.
2456 * solib-osf.c: Likewise.
2457 * solib-som.c: Likewise.
2458 * solib-spu.c: Likewise.
2459 * solib-target.c: Likewise.
2460 * solib.c: Likewise.
2461 * somread.c: Likewise.
2462 * source.c: Likewise.
2463 * sparc-nat.c: Likewise.
2464 * sparc-sol2-tdep.c: Likewise.
2465 * sparc-tdep.c: Likewise.
2466 * sparc64-tdep.c: Likewise.
2467 * sparc64fbsd-tdep.c: Likewise.
2468 * sparc64nbsd-tdep.c: Likewise.
2469 * sparcnbsd-tdep.c: Likewise.
2470 * spu-linux-nat.c: Likewise.
2471 * spu-multiarch.c: Likewise.
2472 * spu-tdep.c: Likewise.
2473 * stabsread.c: Likewise.
2474 * stack.c: Likewise.
2475 * std-regs.c: Likewise.
2476 * symfile.c: Likewise.
2477 * symmisc.c: Likewise.
2478 * symtab.c: Likewise.
2479 * target.c: Likewise.
2480 * thread.c: Likewise.
2481 * tilegx-linux-nat.c: Likewise.
2482 * tilegx-tdep.c: Likewise.
2484 * tracepoint.c: Likewise.
2485 * tui/tui-command.c: Likewise.
2486 * tui/tui-data.c: Likewise.
2487 * tui/tui-disasm.c: Likewise.
2488 * tui/tui-file.c: Likewise.
2489 * tui/tui-layout.c: Likewise.
2490 * tui/tui-out.c: Likewise.
2491 * tui/tui-regs.c: Likewise.
2492 * tui/tui-source.c: Likewise.
2493 * tui/tui-stack.c: Likewise.
2494 * tui/tui-win.c: Likewise.
2495 * tui/tui-windata.c: Likewise.
2496 * tui/tui-winsource.c: Likewise.
2497 * typeprint.c: Likewise.
2498 * ui-file.c: Likewise.
2499 * ui-out.c: Likewise.
2500 * user-regs.c: Likewise.
2501 * utils.c: Likewise.
2502 * v850-tdep.c: Likewise.
2503 * valarith.c: Likewise.
2504 * valops.c: Likewise.
2505 * valprint.c: Likewise.
2506 * value.c: Likewise.
2507 * varobj.c: Likewise.
2508 * vax-tdep.c: Likewise.
2509 * vaxnbsd-tdep.c: Likewise.
2510 * vaxobsd-tdep.c: Likewise.
2511 * windows-nat.c: Likewise.
2512 * xcoffread.c: Likewise.
2513 * xml-support.c: Likewise.
2514 * xstormy16-tdep.c: Likewise.
2515 * xtensa-linux-nat.c: Likewise.
2517 2014-08-07 Gary Benson <gbenson@redhat.com>
2519 * common/common-defs.h: Include gdb_assert.h.
2520 * aarch64-tdep.c: Do not include gdb_assert.h.
2521 * addrmap.c: Likewise.
2522 * aix-thread.c: Likewise.
2523 * alpha-linux-tdep.c: Likewise.
2524 * alpha-mdebug-tdep.c: Likewise.
2525 * alphanbsd-tdep.c: Likewise.
2526 * amd64-nat.c: Likewise.
2527 * amd64-tdep.c: Likewise.
2528 * amd64bsd-nat.c: Likewise.
2529 * amd64fbsd-nat.c: Likewise.
2530 * amd64fbsd-tdep.c: Likewise.
2531 * amd64nbsd-nat.c: Likewise.
2532 * amd64nbsd-tdep.c: Likewise.
2533 * amd64obsd-nat.c: Likewise.
2534 * amd64obsd-tdep.c: Likewise.
2535 * arch-utils.c: Likewise.
2536 * arm-tdep.c: Likewise.
2537 * armbsd-tdep.c: Likewise.
2539 * bcache.c: Likewise.
2540 * bfin-tdep.c: Likewise.
2541 * blockframe.c: Likewise.
2542 * breakpoint.c: Likewise.
2543 * bsd-kvm.c: Likewise.
2544 * bsd-uthread.c: Likewise.
2545 * buildsym.c: Likewise.
2546 * c-exp.y: Likewise.
2547 * c-lang.c: Likewise.
2548 * charset.c: Likewise.
2549 * cleanups.c: Likewise.
2550 * cli-out.c: Likewise.
2551 * cli/cli-decode.c: Likewise.
2552 * cli/cli-dump.c: Likewise.
2553 * cli/cli-logging.c: Likewise.
2554 * cli/cli-script.c: Likewise.
2555 * cli/cli-utils.c: Likewise.
2556 * coffread.c: Likewise.
2557 * common/common-utils.c: Likewise.
2558 * common/queue.h: Likewise.
2559 * common/signals.c: Likewise.
2560 * common/vec.h: Likewise.
2561 * complaints.c: Likewise.
2562 * completer.c: Likewise.
2563 * corelow.c: Likewise.
2564 * cp-abi.c: Likewise.
2565 * cp-name-parser.y: Likewise.
2566 * cp-namespace.c: Likewise.
2567 * cp-support.c: Likewise.
2568 * cris-tdep.c: Likewise.
2569 * dbxread.c: Likewise.
2570 * dictionary.c: Likewise.
2571 * doublest.c: Likewise.
2572 * dsrec.c: Likewise.
2573 * dummy-frame.c: Likewise.
2574 * dwarf2-frame-tailcall.c: Likewise.
2575 * dwarf2-frame.c: Likewise.
2576 * dwarf2expr.c: Likewise.
2577 * dwarf2loc.c: Likewise.
2578 * dwarf2read.c: Likewise.
2580 * event-loop.c: Likewise.
2581 * exceptions.c: Likewise.
2582 * expprint.c: Likewise.
2583 * f-valprint.c: Likewise.
2584 * fbsd-nat.c: Likewise.
2585 * findvar.c: Likewise.
2586 * frame-unwind.c: Likewise.
2587 * frame.c: Likewise.
2588 * frv-tdep.c: Likewise.
2589 * gcore.c: Likewise.
2590 * gdb-dlfcn.c: Likewise.
2591 * gdb_bfd.c: Likewise.
2592 * gdbarch.c: Likewise.
2593 * gdbarch.sh: Likewise.
2594 * gdbtypes.c: Likewise.
2595 * gnu-nat.c: Likewise.
2596 * gnu-v3-abi.c: Likewise.
2597 * go-lang.c: Likewise.
2598 * guile/scm-exception.c: Likewise.
2599 * guile/scm-gsmob.c: Likewise.
2600 * guile/scm-lazy-string.c: Likewise.
2601 * guile/scm-math.c: Likewise.
2602 * guile/scm-pretty-print.c: Likewise.
2603 * guile/scm-safe-call.c: Likewise.
2604 * guile/scm-utils.c: Likewise.
2605 * guile/scm-value.c: Likewise.
2606 * h8300-tdep.c: Likewise.
2607 * hppa-hpux-nat.c: Likewise.
2608 * hppa-tdep.c: Likewise.
2609 * hppanbsd-tdep.c: Likewise.
2610 * hppaobsd-tdep.c: Likewise.
2611 * i386-darwin-nat.c: Likewise.
2612 * i386-darwin-tdep.c: Likewise.
2613 * i386-nto-tdep.c: Likewise.
2614 * i386-tdep.c: Likewise.
2615 * i386bsd-nat.c: Likewise.
2616 * i386fbsd-tdep.c: Likewise.
2617 * i386gnu-nat.c: Likewise.
2618 * i386nbsd-tdep.c: Likewise.
2619 * i386obsd-tdep.c: Likewise.
2620 * i387-tdep.c: Likewise.
2621 * ia64-libunwind-tdep.c: Likewise.
2622 * ia64-tdep.c: Likewise.
2623 * inf-ptrace.c: Likewise.
2624 * inf-ttrace.c: Likewise.
2625 * infcall.c: Likewise.
2626 * infcmd.c: Likewise.
2627 * infrun.c: Likewise.
2628 * inline-frame.c: Likewise.
2629 * interps.c: Likewise.
2630 * jv-lang.c: Likewise.
2631 * jv-typeprint.c: Likewise.
2632 * linux-fork.c: Likewise.
2633 * linux-nat.c: Likewise.
2634 * linux-thread-db.c: Likewise.
2635 * m32c-tdep.c: Likewise.
2636 * m32r-linux-nat.c: Likewise.
2637 * m32r-tdep.c: Likewise.
2638 * m68k-tdep.c: Likewise.
2639 * m68kbsd-nat.c: Likewise.
2640 * m68kbsd-tdep.c: Likewise.
2641 * m88k-tdep.c: Likewise.
2642 * machoread.c: Likewise.
2643 * macroexp.c: Likewise.
2644 * macrotab.c: Likewise.
2645 * maint.c: Likewise.
2646 * mdebugread.c: Likewise.
2647 * memory-map.c: Likewise.
2648 * mep-tdep.c: Likewise.
2649 * mi/mi-common.c: Likewise.
2650 * microblaze-tdep.c: Likewise.
2651 * mingw-hdep.c: Likewise.
2652 * mips-linux-nat.c: Likewise.
2653 * mips-linux-tdep.c: Likewise.
2654 * mips-tdep.c: Likewise.
2655 * mips64obsd-tdep.c: Likewise.
2656 * mipsnbsd-tdep.c: Likewise.
2657 * mn10300-linux-tdep.c: Likewise.
2658 * mn10300-tdep.c: Likewise.
2659 * moxie-tdep.c: Likewise.
2660 * mt-tdep.c: Likewise.
2661 * nat/linux-btrace.c: Likewise.
2662 * nat/linux-osdata.c: Likewise.
2663 * nat/linux-ptrace.c: Likewise.
2664 * nat/mips-linux-watch.c: Likewise.
2665 * nios2-linux-tdep.c: Likewise.
2666 * nios2-tdep.c: Likewise.
2667 * objc-lang.c: Likewise.
2668 * objfiles.c: Likewise.
2669 * obsd-nat.c: Likewise.
2670 * opencl-lang.c: Likewise.
2671 * osabi.c: Likewise.
2672 * parse.c: Likewise.
2673 * ppc-linux-nat.c: Likewise.
2674 * ppc-sysv-tdep.c: Likewise.
2675 * ppcfbsd-nat.c: Likewise.
2676 * ppcfbsd-tdep.c: Likewise.
2677 * ppcnbsd-nat.c: Likewise.
2678 * ppcnbsd-tdep.c: Likewise.
2679 * ppcobsd-nat.c: Likewise.
2680 * ppcobsd-tdep.c: Likewise.
2681 * printcmd.c: Likewise.
2682 * procfs.c: Likewise.
2683 * prologue-value.c: Likewise.
2684 * psymtab.c: Likewise.
2685 * python/py-lazy-string.c: Likewise.
2686 * python/py-value.c: Likewise.
2687 * regcache.c: Likewise.
2688 * reggroups.c: Likewise.
2689 * registry.c: Likewise.
2690 * remote-sim.c: Likewise.
2691 * remote.c: Likewise.
2692 * rs6000-aix-tdep.c: Likewise.
2693 * rs6000-tdep.c: Likewise.
2694 * s390-linux-tdep.c: Likewise.
2695 * score-tdep.c: Likewise.
2696 * ser-base.c: Likewise.
2697 * ser-mingw.c: Likewise.
2698 * sh-tdep.c: Likewise.
2699 * sh64-tdep.c: Likewise.
2700 * solib-darwin.c: Likewise.
2701 * solib-spu.c: Likewise.
2702 * solib-svr4.c: Likewise.
2703 * source.c: Likewise.
2704 * sparc-nat.c: Likewise.
2705 * sparc-sol2-tdep.c: Likewise.
2706 * sparc-tdep.c: Likewise.
2707 * sparc64-sol2-tdep.c: Likewise.
2708 * sparc64-tdep.c: Likewise.
2709 * sparc64fbsd-tdep.c: Likewise.
2710 * sparc64nbsd-tdep.c: Likewise.
2711 * sparc64obsd-tdep.c: Likewise.
2712 * sparcnbsd-tdep.c: Likewise.
2713 * sparcobsd-tdep.c: Likewise.
2714 * spu-multiarch.c: Likewise.
2715 * spu-tdep.c: Likewise.
2716 * stabsread.c: Likewise.
2717 * stack.c: Likewise.
2718 * symfile.c: Likewise.
2719 * symtab.c: Likewise.
2720 * target-descriptions.c: Likewise.
2721 * target-memory.c: Likewise.
2722 * target.c: Likewise.
2723 * tic6x-linux-tdep.c: Likewise.
2724 * tic6x-tdep.c: Likewise.
2725 * tilegx-linux-nat.c: Likewise.
2726 * tilegx-tdep.c: Likewise.
2728 * tramp-frame.c: Likewise.
2729 * tui/tui-out.c: Likewise.
2730 * tui/tui-winsource.c: Likewise.
2731 * ui-out.c: Likewise.
2732 * user-regs.c: Likewise.
2733 * utils.c: Likewise.
2734 * v850-tdep.c: Likewise.
2735 * valops.c: Likewise.
2736 * value.c: Likewise.
2737 * varobj.c: Likewise.
2738 * vax-nat.c: Likewise.
2739 * xml-syscall.c: Likewise.
2740 * xml-tdesc.c: Likewise.
2741 * xstormy16-tdep.c: Likewise.
2742 * xtensa-linux-nat.c: Likewise.
2743 * xtensa-tdep.c: Likewise.
2745 2014-08-07 Gary Benson <gbenson@redhat.com>
2747 * common/common-defs.h: Include common-utils.h.
2748 * defs.h: Do not include common-utils.h.
2749 * common/gdb_assert.h: Likewise.
2750 * darwin-nat.h: Likewise.
2751 * nat/linux-btrace.c: Likewise.
2752 * target/waitstatus.h: Likewise.
2754 2014-08-07 Gary Benson <gbenson@redhat.com>
2756 * common/common-defs.h: Include ptid.h.
2757 * defs.h: Do not include ptid.h.
2758 * inferior.h: Likewise.
2759 * infrun.h: Likewise.
2760 * nat/linux-btrace.h: Likewise.
2761 * nat/linux-osdata.h: Likewise.
2762 * target/waitstatus.h: Likewise.
2764 2014-08-07 Gary Benson <gbenson@redhat.com>
2766 * common/common-defs.h: Include gdb_locale.h.
2767 * defs.h: Do not include gdb_locale.h.
2769 2014-08-07 Gary Benson <gbenson@redhat.com>
2771 * common/common-defs.h: Include gdb/signals.h.
2772 * defs.h: Do not include gdb/signals.h.
2774 2014-08-07 Gary Benson <gbenson@redhat.com>
2776 * common/common-defs.h: Include pathmax.h.
2777 * defs.h: Do not include pathmax.h.
2779 2014-08-07 Gary Benson <gbenson@redhat.com>
2781 * common/common-defs.h: Include libiberty.h.
2782 * defs.h: Do not include libiberty.h.
2783 * common/queue.h: Likewise.
2784 * cp-name-parser.y: Likewise.
2785 * mi/mi-cmd-catch.c: Likewise.
2786 * python/python.c: Likewise.
2788 2014-08-07 Gary Benson <gbenson@redhat.com>
2790 * common/common-defs.h: Include ansidecl.h.
2791 * defs.h: Do not include ansidecl.h.
2792 * common/buffer.h: Likewise.
2793 * common/common-utils.h: Likewise.
2795 2014-08-07 Gary Benson <gbenson@redhat.com>
2797 * common/common-defs.h: Include stddef.h.
2798 * defs.h: Do not include stddef.h.
2799 * common/common-utils.h: Likewise.
2800 * amd64fbsd-nat.c: Likewise.
2801 * bcache.c: Likewise.
2802 * charset.c: Likewise.
2803 * common/buffer.h: Likewise.
2804 * common/vec.h: Likewise.
2805 * i386bsd-nat.c: Likewise.
2806 * nat/linux-btrace.h: Likewise.
2807 * ppcfbsd-nat.c: Likewise.
2808 * ppcnbsd-tdep.h: Likewise.
2809 * ppcobsd-nat.c: Likewise.
2810 * ppcobsd-tdep.h: Likewise.
2811 * python/py-gdb-readline.c: Likewise.
2813 2014-08-07 Gary Benson <gbenson@redhat.com>
2815 * common/common-defs.h: Include stdarg.h.
2816 * defs.h: Do not include stdarg.h.
2817 * ada-lang.c: Likewise.
2818 * common/common-utils.h: Likewise.
2819 * guile/scm-string.c: Likewise.
2820 * guile/scm-utils.c: Likewise.
2821 * m32c-tdep.c: Likewise.
2823 2014-08-07 Gary Benson <gbenson@redhat.com>
2825 * common/common-defs.h: Include stdlib.h.
2826 * defs.h: Do not include stdlib.h.
2827 * addrmap.c: Likewise.
2828 * bcache.c: Likewise.
2829 * common/buffer.c: Likewise.
2830 * common/common-utils.c: Likewise.
2831 * cp-name-parser.y: Likewise.
2832 * go32-nat.c: Likewise.
2833 * mn10300-linux-tdep.c: Likewise.
2834 * nat/linux-osdata.c: Likewise.
2835 * tui/tui.c: Likewise.
2836 * windows-nat.c: Likewise.
2838 2014-08-07 Gary Benson <gbenson@redhat.com>
2840 * common/common-defs.h: Include stdio.h.
2841 * defs.h: Do not include stdio.h.
2842 * ada-lang.c: Likewise.
2843 * common/buffer.c: Likewise.
2844 * common/common-utils.c: Likewise.
2845 * cp-name-parser.y: Likewise.
2846 * gnu-nat.c: Likewise.
2847 * go32-nat.c: Likewise.
2848 * i386gnu-nat.c: Likewise.
2849 * proc-api.c: Likewise.
2850 * proc-events.c: Likewise.
2851 * proc-flags.c: Likewise.
2852 * proc-why.c: Likewise.
2853 * python/python-internal.h: Likewise.
2854 * target-memory.c: Likewise.
2855 * tui/tui-io.c: Likewise.
2856 * tui/tui.c: Likewise.
2858 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2860 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2861 (scan_dyntag_auxv): Same.
2863 2014-08-06 Yao Qi <yao@codesourcery.com>
2865 * amd64-linux-nat.c: Remove duplicated include
2867 * i386-linux-nat.c: Likewise.
2869 2014-08-06 Yao Qi <yao@codesourcery.com>
2871 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2872 operand" with "Special opcode" in comments.
2874 2014-08-05 Gary Benson <gbenson@redhat.com>
2876 * interps.c (initialize_interps): Remove prototype.
2877 (interpreter_initialized): Remove static global.
2878 (interp_add): Do not call initialize_interps.
2879 (initialize_interps): Remove function.
2881 2014-08-05 Gary Benson <gbenson@redhat.com>
2883 * utils.c (vwarning): Remove spurious va_end.
2885 2014-08-05 Alan Modra <amodra@gmail.com>
2887 * charset.c (convert_between_encodings): Cast result of obstack_base.
2888 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2889 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2890 (read_unwind_info): Use size_t for some locals.
2891 * jit.c (finalize_symtab): Likewise.
2892 * utils.c (hashtab_obstack_allocate): Likewise.
2893 * symmisc.c (print_objfile_statistics): Update format strings.
2895 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2897 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2898 (Changes in GDB 7.8): ... here.
2900 2014-08-04 Tom Tromey <tromey@redhat.com>
2902 * target.c (set_targetdebug): New function.
2903 (initialize_targets): Pass set_targetdebug when creating "set
2906 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2908 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2909 if detecting a variable-sized field that is not the last field.
2910 Fix struct type length computation.
2912 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2914 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2917 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2919 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2920 Remove "+ 8" offset in computation of CHAIN_VMA.
2922 2014-07-31 Doug Evans <dje@google.com>
2924 * inflow.c (child_terminal_inferior): Add comment.
2925 (child_terminal_ours_for_output): Add comment.
2926 (child_terminal_ours): Add comment.
2927 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2928 (linux_nat_terminal_ours): Add comment.
2930 2014-07-31 Gary Benson <gbenson@redhat.com>
2932 * common/btrace-common.h: Do not include defs.h or server.h.
2933 * nat/mips-linux-watch.h: Likewise.
2934 * gdb-dlfcn.h: Do not include defs.h.
2935 * tracefile.h: Likewise.
2937 2014-07-30 Roland McGrath <mcgrathr@google.com>
2939 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2941 2014-07-30 Tom Tromey <tromey@redhat.com>
2943 * bsd-kvm.c (bsd_kvm_open): Constify.
2944 * corelow.c (core_open): Constify.
2945 * ctf.c (ctf_open): Constify.
2946 * dbug-rom.c (dbug_open): Constify.
2947 * exec.c (exec_open): Constify.
2948 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2949 * microblaze-rom.c (picobug_open): Constify.
2950 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2952 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2953 * record-btrace.c (record_btrace_open): Constify.
2954 * record-full.c (record_full_core_open_1, record_full_open_1)
2955 (record_full_open): Constify.
2956 * remote-m32r-sdi.c (m32r_open): Constify.
2957 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2958 (rockhopper_open, lsi_open): Constify.
2959 * remote-sim.c (gdbsim_open): Constify.
2960 * remote.c (remote_open, extended_remote_open, remote_open_1):
2962 * target.h (struct target_ops) <to_open>: Make "arg" const.
2963 * tracefile-tfile.c (tfile_open): Constify.
2965 2014-07-30 Tom Tromey <tromey@redhat.com>
2967 * breakpoint.c (map_breakpoint_numbers): Update.
2968 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2969 (get_number_const): New function.
2970 (get_number): Rewrite using get_number_const.
2971 (init_number_or_range): Make "string" const.
2972 (number_is_in_list): Make "list" const.
2973 * cli/cli-utils.h (get_number_const): Declare.
2974 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2975 (init_number_or_range, number_is_in_list): Update.
2976 * printcmd.c (map_display_numbers): Update.
2977 * value.c (value_from_history_ref): Constify.
2978 * value.h (value_from_history_ref): Update.
2980 2014-07-30 Tom Tromey <tromey@redhat.com>
2982 * corefile.c (hook_type, call_extra_exec_file_hooks)
2983 (specify_exec_file_hook): Constify.
2984 * exec.c (exec_file_attach): Make "filename" const.
2985 * gdbcore.h (deprecated_exec_file_display_hook)
2986 (specify_exec_file_hook, exec_file_attach): Constify.
2987 * main.c (captured_main): Use catch_command_errors_const.
2989 2014-07-30 Tom Tromey <tromey@redhat.com>
2991 * target.c (open_target): New function.
2992 (add_target_with_completer, add_deprecated_target_alias): Use
2993 set_cmd_sfunc, set_cmd_context.
2994 (debug_to_open): Remove.
2995 (setup_target_debug): Update.
2997 2014-07-30 Yao Qi <yao@codesourcery.com>
2999 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3001 * parse.c (exp_iterate): Update comments.
3003 2014-07-30 Gary Benson <gbenson@redhat.com>
3005 * common/common-defs.h: New file.
3006 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3007 * defs.h: Include common-defs.h.
3008 Do not include config.h or build-gnulib/config.h.
3010 2014-07-30 Gary Benson <gbenson@redhat.com>
3012 * common/common-utils.h: Do not include config.h.
3013 * nat/linux-btrace.h: Likewise.
3015 2014-07-30 Gary Benson <gbenson@redhat.com>
3017 * btrace.c: Include defs.h.
3018 * common/ptid.c: Include defs.h or server.h as appropriate.
3019 * nat/mips-linux-watch.c: Likewise.
3021 2014-07-29 Tom Tromey <tromey@redhat.com>
3023 * target.c (target_is_pushed): Simplify.
3025 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3029 2014-07-29 Yao Qi <yao@codesourcery.com>
3032 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3034 2014-07-28 Doug Evans <xdje42@gmail.com>
3037 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3038 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3041 2014-07-28 Will Newton <will.newton@linaro.org>
3043 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3044 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3045 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3046 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3047 (THUMB2_EABI_SYSCALL): Likewise.
3048 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3050 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3051 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3053 2014-07-27 Doug Evans <xdje42@gmail.com>
3055 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3057 2014-07-27 Doug Evans <xdje42@gmail.com>
3059 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3061 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3062 Doug Evans <xdje42@gmail.com>
3065 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3066 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3067 * configure.ac: Try to use guild to compile an scm file, if it fails
3068 then disable guile support.
3069 * configure: Regenerate.
3070 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3072 (GUILE_COMPILED_FILES): New variable.
3073 (GUILE_FILES) Update.
3074 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3075 (stamp-guile): Compile scm files.
3076 * guile/guile.c (boot_guile_support): New function.
3077 (standard_throw_args_p): New function.
3078 (print_standard_throw_error, print_throw_error): New functions.
3079 (handle_boot_error): New function.
3080 (initialize_scheme_side): Rewrite to call boot_guile_support.
3081 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3082 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3084 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3085 Doug Evans <xdje42@gmail.com>
3088 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3089 * guile/lib/gdb/support.scm: New file.
3090 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3091 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3093 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3095 (%assert-type): Ditto, and renamed to assert-type.
3096 (%exception-print-style): Delete.
3098 2014-07-26 Doug Evans <xdje42@gmail.com>
3101 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3102 * configure: Regenerate.
3103 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3105 (PYTHON_FILES): New variable.
3106 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3107 (GUILE_FILES): New variable.
3108 (stamp-python, install-python, uninstall-python): Handle empty
3110 (stamp-guile, install-guile, uninstall-guile): Ditto.
3112 2014-07-26 Doug Evans <xdje42@gmail.com>
3115 * guile/lib/gdb.scm (pretty-printers): Export.
3116 (set-pretty-printers!): Export.
3117 * guile/lib/gdb/printing.scm (gdb module): Update.
3118 (prepend-pretty-printer!, append-pretty-printer!): Update.
3119 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3120 (pretty_printer_list_var): Delete.
3121 (pretty_printer_list): New static global.
3122 (gdbscm_pretty_printers): New function.
3123 (gdbscm_set_pretty_printers_x): New function.
3124 (ppscm_find_pretty_printer_from_gdb): Update.
3125 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3126 (gdbscm_initialize_pretty_printers): Update.
3128 2014-07-26 Doug Evans <xdje42@gmail.com>
3131 * configure.ac: Add check for header gc/gc.h.
3132 Add check for function setenv.
3133 * configure: Regenerate.
3134 * config.in: Regenerate.
3135 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3137 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3139 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3140 variation in gdbarch matching.
3142 2014-07-25 Tom Tromey <tromey@redhat.com>
3144 * exec.c (using_exec_ops): Remove.
3145 (exec_close_1): Update. Remove extraneous block, reindent.
3146 (add_target_sections): Use target_is_pushed.
3148 2014-07-25 Pedro Alves <palves@redhat.com>
3150 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3151 * monitor.c (monitor_create_inferior): Likewise.
3152 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3153 * remote-sim.c (gdbsim_create_inferior): Likewise.
3154 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3155 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3156 * windows-nat.c (do_initial_windows_stuff): Likewise.
3158 2014-07-25 Pedro Alves <palves@redhat.com>
3160 * NEWS: Mention signal passing and "signal" command changes.
3161 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3163 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3165 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3166 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3167 (jump_command): Adjust clear_proceed_status call.
3168 (signal_command): Warn if other thread that are resumed have
3169 signals that will be delivered. Adjust clear_proceed_status call.
3170 (until_next_command, finish_command)
3171 (proceed_after_attach_callback, attach_command_post_wait)
3172 (attach_command): Adjust clear_proceed_status call.
3173 * infrun.c (proceed_after_vfork_done): Likewise.
3174 (proceed_after_attach_callback): Adjust comment.
3175 (clear_proceed_status_thread): Clear stop_signal if not in pass
3177 (clear_proceed_status_callback): Delete.
3178 (clear_proceed_status): New 'step' parameter. Only clear the
3179 proceed status of threads the command being prepared is about to
3181 (proceed): If passed in an explicit signal, override stop_signal
3182 with it. Don't pass the last stop signal to the thread we're
3184 (init_wait_for_inferior): Adjust clear_proceed_status call.
3185 (switch_back_to_stepped_thread): Clear the signal if it should not
3187 * infrun.h (clear_proceed_status): New 'step' parameter.
3188 (user_visible_resume_ptid): Add comment.
3189 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3190 signal is in pass state.
3191 * remote.c (append_pending_thread_resumptions): Likewise.
3192 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3194 2014-07-25 Tom Tromey <tromey@redhat.com>
3196 * target.h (target_stopped_data_address)
3197 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3200 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3202 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3204 (avr_pointer_to_address): Likewise.
3206 2014-07-24 Tom Tromey <tromey@redhat.com>
3208 * monitor.c (compile_pattern): Update.
3209 * target.h (struct target_ops) <to_shortname, to_longname,
3212 2014-07-24 Tom Tromey <tromey@redhat.com>
3214 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3215 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3216 (add_info_alias, add_com): Make "doc" const.
3217 (print_doc_line): Make "str" const.
3218 (delete_cmd): Update.
3219 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3220 (print_doc_line): Update.
3221 * cli/cli-script.c (document_command): Update.
3222 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3223 (add_com, add_info, add_info_alias): Update.
3224 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3225 * python/py-cmd.c (cmdpy_destroyer): Update.
3227 2014-07-24 Tom Tromey <tromey@redhat.com>
3229 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3230 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3231 (help_cmd_list): Constify.
3232 (lookup_cmd): Update.
3233 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3235 (help_cmd_list, apropos_cmd): Update.
3236 * cli/cli-script.c (show_user): Update.
3237 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3238 * cli/cli-setshow.h (cmd_show_list): Update.
3239 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3240 (cmd_show_list): Update.
3241 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3242 * python/py-cmd.c (cmdpy_destroyer): Update.
3244 2014-07-24 Tom Tromey <tromey@redhat.com>
3246 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3247 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3249 * command.h (deprecate_cmd): Update.
3250 * maint.c (maintenance_do_deprecate): Add casts.
3252 2014-07-24 Tom Tromey <tromey@redhat.com>
3254 * cli/cli-decode.c (help_cmd): Make parameter "const".
3255 * cli/cli-decode.h (help_cmd): Update.
3257 2014-07-24 Tom Tromey <tromey@redhat.com>
3259 * stack.c (up_silently_base, down_silently_base): Make argument
3262 2014-07-24 Tom Tromey <tromey@redhat.com>
3264 * solib.c (solib_add): Make "pattern" const.
3265 * solib.h (solib_add): Update.
3267 2014-07-24 Tom Tromey <tromey@redhat.com>
3269 * remote.c (remote_serial_open, print_packet, putpkt)
3270 (putpkt_binary): Constify.
3271 * remote.h (putpkt): Update.
3273 2014-07-24 Tom Tromey <tromey@redhat.com>
3275 * monitor.c (monitor_open): Make "args" const.
3276 * monitor.h (monitor_open): Update.
3278 2014-07-24 Tom Tromey <tromey@redhat.com>
3280 * maint.c (match_bfd_flags): Make "string" const.
3281 (print_bfd_section_info): Remove casts.
3282 (print_objfile_section_info): Make "string" const.
3284 2014-07-24 Tom Tromey <tromey@redhat.com>
3286 * inf-child.c (inf_child_open_target): Make "arg" const.
3287 * inf-child.h (inf_child_open_target): Update.
3289 2014-07-24 Tom Tromey <tromey@redhat.com>
3291 * environ.c (unset_in_environ): Make "var" const.
3292 * environ.h (unset_in_environ): Update.
3294 2014-07-24 Tom Tromey <tromey@redhat.com>
3296 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3298 (scan_filename_with_cleanup): Likewise.
3299 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3300 Make arguments const.
3301 (restore_command): Update.
3303 2014-07-24 Pedro Alves <palves@redhat.com>
3305 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3307 2014-07-24 Tom Tromey <tromey@redhat.com>
3308 Gary Benson <gbenson@redhat.com>
3310 * nat/linux-ptrace.c (additional_flags): New global.
3311 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3312 additional_flags; don't check GDBSERVER.
3313 (linux_ptrace_set_additional_flags): New function.
3314 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3316 * linux-nat.c (_initialize_linux_nat): Call
3317 linux_ptrace_set_additional_flags.
3319 2014-07-24 Tom Tromey <tromey@redhat.com>
3321 * make-target-delegates (munge_type, write_debugmethod): New
3323 (debug_names): New global.
3324 ($TARGET_DEBUG_PRINTER): New global.
3325 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3327 Write debug methods. Generate init_debug_target.
3328 * target-debug.h: New file.
3329 * target-delegates.c: Rebuild.
3330 * target.c: Include target-debug.h.
3331 (debug_target): Hoist definition.
3332 (target_kill, target_get_section_table, target_memory_map)
3333 (target_flash_erase, target_flash_done, target_detach)
3334 (target_disconnect, target_wait, target_resume)
3335 (target_pass_signals, target_program_signals, target_follow_fork)
3336 (target_mourn_inferior, target_search_memory)
3337 (target_thread_address_space, target_close)
3338 (target_find_new_threads, target_core_of_thread)
3339 (target_verify_memory, target_insert_mask_watchpoint)
3340 (target_remove_mask_watchpoint): Remove targetdebug code.
3341 (debug_to_post_attach, debug_to_prepare_to_store)
3342 (debug_to_files_info, debug_to_insert_breakpoint)
3343 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3344 (debug_to_region_ok_for_hw_watchpoint)
3345 (debug_to_can_accel_watchpoint_condition)
3346 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3347 (debug_to_watchpoint_addr_within_range)
3348 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3349 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3350 (debug_to_terminal_init, debug_to_terminal_inferior)
3351 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3352 (debug_to_terminal_save_ours, debug_to_terminal_info)
3353 (debug_to_load, debug_to_post_startup_inferior)
3354 (debug_to_insert_fork_catchpoint)
3355 (debug_to_remove_fork_catchpoint)
3356 (debug_to_insert_vfork_catchpoint)
3357 (debug_to_remove_vfork_catchpoint)
3358 (debug_to_insert_exec_catchpoint)
3359 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3360 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3361 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3362 (setup_target_debug): Call init_debug_target.
3363 * target.h (TARGET_DEBUG_PRINTER): New macro.
3364 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3365 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3367 2014-07-24 Gary Benson <gbenson@redhat.com>
3369 * exceptions.h (throw_vfatal): Renamed to...
3370 (throw_vquit): New declaration.
3371 (throw_quit): Likewise.
3372 * exceptions.c (throw_vfatal): Renamed to...
3373 (throw_vquit): New function.
3374 (throw_quit): Likewise.
3375 (throw_error): Call throw_verror rather than throw_it.
3376 * utils.h (vfatal): Removed.
3378 * utils.c (vfatal): Removed.
3380 (internal_verror): Replaced call to fatal with call to throw_quit.
3381 (quit): Replaced calls to fatal with calls to throw_quit.
3383 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3385 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3388 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3390 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3391 less than zero in conditional expression.
3393 2014-07-23 Tom Tromey <tromey@redhat.com>
3395 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3396 ($INTRO_PART): Don't match whitespace.
3397 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3399 ($METHOD): Add $METHOD_TRAILER.
3401 (scan_target_h): New sub.
3402 Change main loop not to collect state.
3403 * target-delegates.c: Rebuild.
3405 2014-07-23 Gary Benson <gbenson@redhat.com>
3407 * cp-support.c (gdb_demangle): Fix build on systems without
3410 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3412 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3413 for reference entry value target data value.
3415 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3417 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3418 value_available_contents_eq.
3420 2014-07-22 Pedro Alves <palves@redhat.com>
3422 * value.c (allocate_optimized_out_value): Don't mark value as
3425 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3427 * MAINTAINERS (Write After Approval): Update my email address.
3429 2014-07-20 Doug Evans <dje@google.com>
3432 * remote.c (putpkt_binary): Add text to error message.
3434 2014-07-20 Yao Qi <yao@codesourcery.com>
3436 * eval.c: Remove "Chill" from comments.
3437 * gdbtypes.h: Likewise.
3438 * symtab.h: Likewise.
3440 2014-07-20 Yao Qi <yao@codesourcery.com>
3442 * std-operator.def: Update comments to TERNOP_SLICE.
3444 2014-07-20 Yao Qi <yao@codesourcery.com>
3446 * std-operator.def: Remove BINOP_RANGE.
3447 * breakpoint.c (watchpoint_exp_is_const): Update.
3448 * expprint.c (dump_subexp_body_standard): Likewise.
3449 * eval.c (init_array_element): Remove dead code.
3450 (evaluate_subexp_standard): Likewise.
3452 2014-07-20 Yao Qi <yao@codesourcery.com>
3454 * std-operator.def: Remove BINOP_IN.
3455 * breakpoint.c (watchpoint_exp_is_const): Update.
3456 * eval.c (evaluate_subexp_standard): Likewise.
3457 * expprint.c (dump_subexp_body_standard): Likewise.
3459 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3461 * microblaze-tdep.c (microblaze_register_names): Add
3462 the rshr and rslr register names.
3463 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3464 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3465 Use of tdesc_numbered_register. Use of
3466 microblaze_register_g_packet_guesses. Use of
3467 tdesc_use_registers. Use of set_gdbarch_register_type.
3468 (microblaze_register_g_packet_guesses): New.
3469 * microblaze-tdep.h (microblaze_reg_num): Add
3470 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3471 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3472 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3473 * features/microblaze-core.xml: New file.
3474 * features/microblaze-stack-protect.xml: New file.
3475 * features/microblaze-with-stack-protect.c: New file.
3476 * features/microblaze-with-stack-protect.xml: New file.
3477 * features/microblaze.xml: New file.
3478 * features/microblaze.c: New file.
3479 * features/Makefile (microblaze-with-stack-protect): Add
3480 microblaze-with-stack-protect microblaze and microblaze-expedite.
3481 * regformats/microblaze-with-stack-protect.dat: New file.
3482 * regformats/microblaze.dat: New file.
3483 * doc/gdb.texinfo (MicroBlaze Features): Added.
3485 2014-07-18 Tom Tromey <tromey@redhat.com>
3487 * exec.c (exec_ops): Now static.
3488 * exec.h (exec_ops): Don't declare.
3490 2014-07-18 Tom Tromey <tromey@redhat.com>
3492 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3493 to find_target_beneath.
3494 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3495 find_target_beneath.
3496 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3498 2014-07-18 Tom Tromey <tromey@redhat.com>
3501 * utils.c (quit): Use target_supports_terminal_ours.
3502 * target.h (target_supports_terminal_ours): Declare.
3503 * target.c (target_supports_delete_record): Don't check
3504 to_delete_record against NULL.
3505 (target_supports_terminal_ours): New function.
3507 2014-07-18 Tom Tromey <tromey@redhat.com>
3510 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3511 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3512 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3513 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3514 * windows-nat.c (windows_xfer_partial): Always delegate.
3515 * record-btrace.c (record_btrace_xfer_partial): Simplify
3517 (record_btrace_fetch_registers, record_btrace_store_registers)
3518 (record_btrace_prepare_to_store, record_btrace_resume)
3519 (record_btrace_wait, record_btrace_find_new_threads)
3520 (record_btrace_thread_alive): Likewise.
3521 * procfs.c (procfs_xfer_partial): Always delegate.
3522 * corelow.c (core_xfer_partial): Always delegate.
3523 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3525 2014-07-18 Tom Tromey <tromey@redhat.com>
3527 * exec.c (exec_make_note_section): Move earlier.
3529 2014-07-17 Doug Evans <dje@google.com>
3532 * maint.c (count_symtabs_and_blocks): Handle NULL
3533 current_program_space.
3534 (report_command_stats): Check global enabled flag in addition to
3535 recorded enabled flag.
3536 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3538 2014-07-16 Pedro Alves <palves@redhat.com>
3540 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3542 2014-07-16 Tom Tromey <tromey@redhat.com>
3544 * target.h (struct target_ops) <to_delete_record>: Reformat
3547 2014-07-16 Tom Tromey <tromey@redhat.com>
3549 * target-delegates.c: Rebuild.
3551 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3553 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3554 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3555 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3556 (avr_pointer_to_address): Likewise.
3557 (avr_address_class_type_flags): New function.
3558 (avr_address_class_type_flags_to_name): Likewise.
3559 (avr_address_class_name_to_type_flags): Likewise.
3560 (avr_gdbarch_init): Set address_class_type_flags,
3561 address_class_type_flags_to_name and
3562 address_class_name_to_type_flags.
3564 2014-07-15 Pedro Alves <palves@redhat.com>
3566 * linux-nat.c (kill_callback): Save errno and work with saved
3569 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3571 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3573 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3575 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3576 breakpoint support correctly.
3578 2014-07-14 Pedro Alves <palves@redhat.com>
3580 * utils.c (prompt_for_continue): Call target_terminal_ours.
3582 2014-07-14 Pedro Alves <palves@redhat.com>
3584 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3585 catch_errors. Don't re-enable stdin or notify observers where,
3587 (fetch_inferior_event_wrapper): Delete.
3589 2014-07-14 Pedro Alves <palves@redhat.com>
3592 * top.c: Include "inf-loop.h".
3593 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3595 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3597 (gdb_readline_wrapper): Store whether the target is async, and
3600 2014-07-14 Pedro Alves <palves@redhat.com>
3603 * top.c (gdb_readline_wrapper_line): Tweak comment.
3604 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3605 the input handler callback.
3607 2014-07-14 Pedro Alves <palves@redhat.com>
3610 * main.c: Include event-top.h.
3611 (handle_command_errors): New function.
3612 (catch_command_errors, catch_command_errors_const): Use it.
3614 2014-07-14 Pedro Alves <palves@redhat.com>
3616 * exceptions.c (catch_command_errors, catch_command_errors_const):
3618 * exceptions.h (catch_command_errors_ftype)
3619 (catch_command_errors_const_ftype): Moved to main.c.
3620 (catch_command_errors, catch_command_errors_const): Delete
3622 * main.c (catch_command_errors_ftype)
3623 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3624 (catch_command_errors, catch_command_errors_const)): Moved here
3625 from exceptions.c and make static.
3627 2014-07-14 Pedro Alves <palves@redhat.com>
3629 * exceptions.c (print_any_exception): Delete.
3630 (catch_exceptions_with_msg): Use exception_print instead of
3631 print_any_exception.
3632 (catch_errors): Use exception_fprintf instead of
3633 print_any_exception.
3634 (catch_command_errors, catch_command_errors_const): Use
3635 exception_print instead of print_any_exception.
3637 2014-07-14 Pedro Alves <palves@redhat.com>
3639 * infcall.c (run_inferior_call): Set 'sync_execution' while
3640 running the inferior call.
3642 2014-07-14 Pedro Alves <palves@redhat.com>
3644 * value.c (value_contents_equal): Delete function.
3645 * value.h (value_contents_equal): Delete declaration.
3647 2014-07-14 Tom Tromey <tromey@redhat.com>
3650 * gdbtypes.c (is_dynamic_type_internal): New function, from
3652 (is_dynamic_type): Rewrite.
3653 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3654 (resolve_dynamic_struct): Likewise.
3655 (resolve_dynamic_type_internal): New function, from
3656 resolve_dynamic_type.
3657 (resolve_dynamic_type): Rewrite.
3659 2014-07-14 Tom Tromey <tromey@redhat.com>
3661 * target.c (target_require_runnable): Also check record_stratum.
3664 2014-07-11 Yao Qi <yao@codesourcery.com>
3666 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3667 thumb_instruction_restores_sp return true.
3669 2014-07-11 Yao Qi <yao@codesourcery.com>
3671 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3672 (thumb_in_function_epilogue_p): Call
3673 thumb_instruction_restores_sp.
3675 2014-07-11 Yao Qi <yao@codesourcery.com>
3677 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3679 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3681 2014-07-11 Gary Benson <gbenson@redhat.com>
3683 * amd64-linux-nat.c (gdbcore.h): Remove include.
3684 (regset.h): Likewise.
3685 (nat/linux-btrace.h): Likewise.
3686 (btrace.h): Likewise.
3687 (gdb_assert.h): Likewise.
3688 (string.h): Likewise.
3689 (sys/uio.h): Likewise.
3690 (sys/debugreg.h): Likewise.
3691 (sys/syscall.h): Likewise.
3692 (sys/procfs.h): Likewise.
3693 (sys/user.h): Likewise.
3694 (asm/ptrace.h): Likewise.
3695 (i386-nat.h): Likewise.
3696 * i386-linux-nat.c (i386-nat.h): Likewise.
3697 (regset.h): Likewise.
3698 (target.h): Likewise.
3699 (linux-nat.h): Likewise.
3700 (nat/linux-btrace.h): Likewise.
3701 (btrace.h): Likewise.
3702 (gdb_assert.h): Likewise.
3703 (string.h): Likewise.
3704 (sys/uio.h): Likewise.
3705 (sys/user.h): Likewise.
3706 (sys/procfs.h): Likewise.
3707 (sys/reg.h): Likewise.
3708 (sys/debugreg.h): Likewise.
3709 (ORIG_EAX): Remove definition.
3711 2014-07-11 Gary Benson <gbenson@redhat.com>
3713 * i386-linux-nat.h: New file.
3714 * x86-linux-nat.h: Likewise.
3715 * x86-linux-nat.c: Likewise.
3716 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3717 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3718 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3719 * amd64-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.
3747 * i386-linux-nat.c (x86-linux-nat.h): New include.
3748 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3749 (PTRACE_SETREGSET): Likewise.
3750 (arch_lwp_info): Now in x86-linux-nat.c.
3751 (have_ptrace_getregset): Now in x86-linux-nat.h.
3752 (x86_linux_dr_get): Now in x86-linux-nat.c.
3753 (x86_linux_dr_set): Likewise.
3754 (x86_linux_dr_get_addr): Likewise.
3755 (x86_linux_dr_get_control): Likewise.
3756 (x86_linux_dr_get_status): Likewise.
3757 (update_debug_registers_callback): Likewise.
3758 (x86_linux_dr_set_control): Likewise.
3759 (x86_linux_dr_set_addr): Likewise.
3760 (x86_linux_prepare_to_resume): Likewise.
3761 (x86_linux_new_thread): Likewise.
3762 (x86_linux_new_fork): Likewise.
3763 (x86_linux_get_thread_area): Likewise.
3764 (super_post_startup_inferior): Likewise.
3765 (x86_linux_child_post_startup_inferior): Likewise.
3766 (AMD64_LINUX_USER64_CS): Likewise.
3767 (AMD64_LINUX_X32_DS): Likewise.
3768 (x86_linux_read_description): Likewise.
3769 (x86_linux_enable_btrace): Likewise.
3770 (x86_linux_disable_btrace): Likewise.
3771 (x86_linux_teardown_btrace): Likewise.
3772 (x86_linux_read_btrace): Likewise.
3773 (x86_linux_create_target): Likewise.
3774 (x86_linux_add_target): Likewise.
3776 2014-07-11 Gary Benson <gbenson@redhat.com>
3778 * amd64-linux-nat.c: Comment and whitespace changes.
3779 * i386-linux-nat.c: Comment and whitespace changes.
3781 2014-07-11 Gary Benson <gbenson@redhat.com>
3783 * amd64-linux-nat.c (x86_linux_create_target): New function.
3784 (x86_linux_add_target): Likewise.
3785 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3786 * i386-linux-nat.c (x86_linux_create_target): New function.
3787 (x86_linux_add_target): Likewise.
3788 (_initialize_i386_linux_nat): Delegate to the above new functions.
3790 2014-07-11 Gary Benson <gbenson@redhat.com>
3792 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3793 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3794 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3795 (ps_get_thread_area): Delegate to the above.
3797 2014-07-11 Gary Benson <gbenson@redhat.com>
3799 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3800 x86_linux_read_description. All uses updated. amd64-specific
3801 code conditionalized. Conditionalized i386-specific code added.
3802 Redundant cast removed.
3803 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3804 x86_linux_read_description. All uses updated. i386-specific
3805 code conditionalized. Conditionalized amd64-specific code added.
3806 One sizeof replaced with the actual type it is describing.
3808 2014-07-11 Gary Benson <gbenson@redhat.com>
3810 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3811 x86_linux_dr_get. All uses updated.
3812 (amd64_linux_dr_set): Renamed to
3813 x86_linux_dr_set. All uses updated.
3814 (amd64_linux_dr_get_addr): Renamed to
3815 x86_linux_dr_get_addr. All uses updated.
3816 (amd64_linux_dr_get_control): Renamed to
3817 x86_linux_dr_get_control. All uses updated.
3818 (amd64_linux_dr_get_status): Renamed to
3819 x86_linux_dr_get_status. All uses updated.
3820 (amd64_linux_dr_set_control): Renamed to
3821 x86_linux_dr_set_control. All uses updated.
3822 (amd64_linux_dr_set_addr): Renamed to
3823 x86_linux_dr_set_addr. All uses updated.
3824 (amd64_linux_prepare_to_resume): Renamed to
3825 x86_linux_prepare_to_resume. All uses updated.
3826 (amd64_linux_new_thread): Renamed to
3827 x86_linux_new_thread. All uses updated.
3828 (amd64_linux_new_fork): Renamed to
3829 x86_linux_new_fork. All uses updated.
3830 (amd64_linux_child_post_startup_inferior): Renamed to
3831 x86_linux_child_post_startup_inferior. All uses updated.
3832 (amd64_linux_enable_btrace): Renamed to
3833 x86_linux_enable_btrace. All uses updated.
3834 (amd64_linux_disable_btrace): Renamed to
3835 x86_linux_disable_btrace. All uses updated.
3836 (amd64_linux_teardown_btrace): Renamed to
3837 x86_linux_teardown_btrace. All uses updated.
3838 (amd64_linux_read_btrace): Renamed to
3839 x86_linux_read_btrace. All uses updated.
3840 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3841 x86_linux_dr_get. All uses updated.
3842 (i386_linux_dr_set): Renamed to
3843 x86_linux_dr_set. All uses updated.
3844 (i386_linux_dr_get_addr): Renamed to
3845 x86_linux_dr_get_addr. All uses updated.
3846 (i386_linux_dr_get_control): Renamed to
3847 x86_linux_dr_get_control. All uses updated.
3848 (i386_linux_dr_get_status): Renamed to
3849 x86_linux_dr_get_status. All uses updated.
3850 (i386_linux_dr_set_control): Renamed to
3851 x86_linux_dr_set_control. All uses updated.
3852 (i386_linux_dr_set_addr): Renamed to
3853 x86_linux_dr_set_addr. All uses updated.
3854 (i386_linux_prepare_to_resume): Renamed to
3855 x86_linux_prepare_to_resume. All uses updated.
3856 (i386_linux_new_thread): Renamed to
3857 x86_linux_new_thread. All uses updated.
3858 (i386_linux_new_fork): Renamed to
3859 x86_linux_new_fork. All uses updated.
3860 (i386_linux_child_post_startup_inferior): Renamed to
3861 x86_linux_child_post_startup_inferior. All uses updated.
3862 (i386_linux_enable_btrace): Renamed to
3863 x86_linux_enable_btrace. All uses updated.
3864 (i386_linux_disable_btrace): Renamed to
3865 x86_linux_disable_btrace. All uses updated.
3866 (i386_linux_teardown_btrace): Renamed to
3867 x86_linux_teardown_btrace. All uses updated.
3868 (i386_linux_read_btrace): Renamed to
3869 x86_linux_read_btrace. All uses updated.
3871 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3873 * remote.c (extended_remote_post_attach): New function.
3874 (init_extended_remote_ops): Install it as to_post_attach method.
3876 2014-07-09 Pedro Alves <palves@redhat.com>
3878 * infcmd.c (attach_command_post_wait): Don't call
3879 target_terminal_inferior here.
3880 (attach_command): Call it here instead.
3882 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3884 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3886 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3887 from varobj.c, with additional checks.
3888 (c_varobj_ops): Fill in is_path_expr_parent field.
3889 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3890 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3892 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3894 (varobj_default_is_path_expr_parent): New function.
3895 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3896 (varobj_default_is_path_expr_parent): Declare new function.
3898 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3900 * infcmd.c (finish_backward): Turn internal error into normal error.
3902 2014-07-07 Pedro Alves <palves@redhat.com>
3905 * remote.c (async_handle_remote_sigint)
3906 (async_handle_remote_sigint_twice): Call
3907 gdb_call_async_signal_handler instead of
3908 mark_async_signal_handler.
3910 2014-07-07 Tom Tromey <tromey@redhat.com>
3912 * target-delegates.c: Rebuild.
3913 * target.c (target_info_record): Remove.
3914 * record.c (info_record_command): Unconditionally call
3916 * target.h (struct target_ops) <to_info_record>: Use
3917 TARGET_DEFAULT_IGNORE.
3918 (target_info_record): Remove.
3920 2014-07-07 Tom Tromey <tromey@redhat.com>
3922 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3923 TARGET_DEFAULT_NORETURN.
3924 * target.c (generic_tls_error): New function.
3925 (target_translate_tls_address): Don't search target stack.
3926 * target-delegates.c: Rebuild.
3927 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3929 * linux-thread-db.c (thread_db_get_thread_local_address):
3930 Unconditionally call beneath target.
3932 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3934 * cli/cli-logging.c (pop_output_files): Assign targerr to
3937 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3939 * MAINTAINERS (Write After Approval): Update my email address.
3941 2014-07-02 Gary Benson <gbenson@redhat.com>
3943 * proc-service.c (ps_xfer_memory): Update comment.
3944 (ps_pstop): Remove unused function.
3945 (ps_pcontinue): Likewise.
3946 (ps_lstop): Likewise.
3947 (ps_lcontinue): Likewise.
3948 (ps_lgetxregsize): Likewise.
3949 (ps_lgetxregs): Likewise.
3950 (ps_lsetxregs): Likewise.
3951 (ps_plog): Likewise.
3952 (ps_ptread): Likewise.
3953 (ps_ptwrite): Likewise.
3955 2014-07-01 Mark Wielaard <mjw@redhat.com>
3957 * dwarf2read.c (add_array_cv_type): New function.
3958 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3959 (read_tag_volatile_type): Likewise.
3961 2014-07-01 Tom Tromey <tromey@redhat.com>
3963 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3964 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3965 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3966 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3967 * command.h (cmd_cfunc_ftype): Move earlier.
3968 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3969 (add_com, add_info): Use cmd_cfunc_ftype.
3971 2014-06-30 Tom Tromey <tromey@redhat.com>
3973 * symtab.c (operator_chars): Make parameters and return type
3975 (file_matches): Make "files" const.
3976 (struct search_symbols_data) <files>: Now const.
3977 (search_symbols): Make "regexp" and "files" parameters const.
3979 (symtab_symbol_info): Remove cast.
3980 (rbreak_command): Update.
3981 * symtab.h (search_symbols): Update.
3983 2014-06-27 Yao Qi <yao@codesourcery.com>
3985 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3986 Change parameter type to 'struct thread_info *'. Caller
3988 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3990 * dummy-frame.c (struct dummy_frame_id): New.
3991 (dummy_frame_id_eq): New function.
3992 (struct dummy_frame) <id>: Change its type to 'struct
3994 (dummy_frame_push): Add parameter ptid and save it in
3996 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3998 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4000 (lookup_dummy_frame): Change parameter type to 'struct
4001 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4002 instead of frame_id_eq.
4003 (dummy_frame_pop): Add parameter ptid. Callers updated.
4004 Update comments. Compose dummy_frame_id and pass it to
4006 (dummy_frame_discard): Add parameter ptid.
4007 (dummy_frame_sniffer): Compose dummy_frame_id and call
4008 dummy_frame_id_eq instead of frame_id_eq.
4009 (fprint_dummy_frames): Print ptid.
4010 * dummy-frame.h: Remove comments.
4011 (dummy_frame_push): Add ptid in declaration.
4012 (dummy_frame_pop, dummy_frame_discard): Likewise.
4014 2014-06-26 Tom Tromey <tromey@redhat.com>
4016 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4017 * command.h (error_no_arg): Update.
4019 2014-06-26 Tom Tromey <tromey@redhat.com>
4021 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4022 (do_show_command): Make "arg" const.
4023 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4025 2014-06-26 Tom Tromey <tromey@redhat.com>
4027 * record-full.c (record_full_get_bookmark): Make "args" const.
4028 (record_full_goto_bookmark): Make "raw_bookmark" const.
4029 * record.c (record_goto): New function.
4030 (cmd_record_goto): Use it. Now static.
4031 * record.h (record_goto): Declare.
4032 (cmd_record_goto): Remove declaration.
4033 * target-delegates.c: Rebuild.
4034 * target.h (struct target_ops) <to_get_bookmark,
4035 to_goto_bookmark>: Make parameter const.
4037 2014-06-26 Tom Tromey <tromey@redhat.com>
4039 * defs.h (generic_load): Update.
4040 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4041 * monitor.c (monitor_load): Make "args" const.
4042 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4043 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4045 (mips_load): Make "file" const.
4046 * remote-sim.c (gdbsim_load): Make "args" const.
4047 * remote.c (remote_load): Make "name" const.
4048 * symfile.c (generic_load): Make "args" const.
4049 * target-delegates.c: Rebuild.
4050 * target.c (target_load): Make "arg" const.
4051 (debug_to_load): Make "args" const.
4052 * target.h (struct target_ops) <to_load>: Make parameter const.
4053 (target_load): Update.
4055 2014-06-26 Tom Tromey <tromey@redhat.com>
4058 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4059 (dwarf2_physname, read_partial_die)
4060 (guess_partial_die_structure_name, fixup_partial_die)
4061 (guess_full_die_structure_name, anonymous_struct_prefix)
4062 (dwarf2_name): Use per-BFD obstack.
4064 2014-06-26 Yao Qi <yao@codesourcery.com>
4066 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4067 dummyframe and this_id into inner block below.
4069 2014-06-26 Yao Qi <yao@codesourcery.com>
4071 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4072 with "signal_pass[0]" in the initialization of signal_pass.
4074 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4076 * record-btrace.c (record_btrace_generating_corefile)
4077 (record_btrace_prepare_to_generate_core)
4078 (record_btrace_done_generating_core): New.
4079 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4080 (record_btrace_store_registers, record_btrace_prepare_to_store):
4081 Forward request when generating a core file.
4082 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4083 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4084 to_done_generating_core.
4086 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4088 * target.h (target_ops) <to_prepare_to_generate_core>
4089 <to_done_generating_core>: New.
4090 (target_prepare_to_generate_core, target_done_generating_core): New.
4091 * target.c (target_prepare_to_generate_core)
4092 (target_done_generating_core): New.
4093 * target-delegates.c: Regenerate.
4094 * gcore.c: (write_gcore_file): Rename to ...
4095 (write_gcore_file_1): ...this.
4096 (write_gcore_file): Call target_prepare_to_generate_core
4097 and target_done_generating_core.
4099 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4101 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4102 * gcore.c (write_gcore_file): Free memory returned from
4103 make_corefile_notes.
4104 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4105 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4107 2014-06-24 Yao Qi <yao@codesourcery.com>
4109 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4110 (arm_linux_init_abi): Set skip_trampoline_code with
4111 gdbarch_skip_trampoline_code instead of
4112 find_solib_trampoline_target.
4114 2014-06-24 Yao Qi <yao@codesourcery.com>
4116 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4117 arm_skip_bx_reg returns non-zero.
4119 2014-06-24 Yao Qi <yao@codesourcery.com>
4121 * arm-tdep.c (arm_skip_bx_reg): New function.
4122 (arm_skip_stub): Call arm_skip_bx_reg.
4124 2014-06-23 Don Breazeal <donb@codesourcery.com>
4126 * MAINTAINERS: Add myself as write-after-approval maintainer.
4128 2014-06-23 Pedro Alves <palves@redhat.com>
4130 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4131 DR_CONTROL before setting DR0..DR3.
4132 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4133 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4134 bits of DR_CONTROL related to the debug register slot being
4135 disabled. If all slots are vacant, clear local slowdown as well,
4136 and assert DR_CONTROL is 0.
4138 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4140 * python/lib/gdb/command/xmethods.py
4141 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4142 current progspace only if the string "progspace" matches LOCUS_RE.
4144 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4146 Fix --with-system-readline with readline-6.3 patch 5.
4147 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4148 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4151 2014-06-20 Tom Tromey <tromey@redhat.com>
4153 * dwarf2read.c (dw2_get_real_path): Use correct type in
4155 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4157 2014-06-20 Gary Benson <gbenson@redhat.com>
4159 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4160 * common/glibc_thread_db.h: Likewise.
4161 * common/i386-cpuid.h: Likewise.
4162 * common/i386-gcc-cpuid.h: Likewise.
4163 * common/linux-btrace.h: Likewise.
4164 * common/linux-osdata.h: Likewise.
4165 * common/linux-procfs.h: Likewise.
4166 * common/linux-ptrace.h: Likewise.
4167 * common/mips-linux-watch.h: Likewise.
4168 * common/linux-btrace.c: Moved to nat.
4169 * common/linux-osdata.c: Likewise.
4170 * common/linux-procfs.c: Likewise.
4171 * common/linux-ptrace.c: Likewise.
4172 * common/mips-linux-watch.c: Likewise.
4173 * nat/gdb_thread_db.h: Moved from common.
4174 * nat/glibc_thread_db.h: Likewise.
4175 * nat/i386-cpuid.h: Likewise.
4176 * nat/i386-gcc-cpuid.h: Likewise.
4177 * nat/linux-btrace.c: Likewise.
4178 * nat/linux-btrace.h: Likewise.
4179 * nat/linux-osdata.c: Likewise.
4180 * nat/linux-osdata.h: Likewise.
4181 * nat/linux-procfs.c: Likewise.
4182 * nat/linux-procfs.h: Likewise.
4183 * nat/linux-ptrace.c: Likewise.
4184 * nat/linux-ptrace.h: Likewise.
4185 * nat/mips-linux-watch.c: Likewise.
4186 * nat/mips-linux-watch.h: Likewise.
4187 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4188 (object file files): Reordered.
4189 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4190 of glibc_thread_db.h.
4192 2014-06-20 Gary Benson <gbenson@redhat.com>
4194 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4195 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4196 (i386_dr_low): Likewise.
4197 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4198 (i386_dr_low_set_addr): Likewise.
4199 (i386_dr_low_get_addr): Likewise.
4200 (i386_dr_low_can_set_control): Likewise.
4201 (i386_dr_low_set_control): Likewise.
4202 (i386_dr_low_get_control): Likewise.
4203 (i386_dr_low_get_status): Likewise.
4204 (i386_get_debug_register_length): Likewise.
4205 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4206 (i386_dr_low): Likewise.
4207 * nat/i386-dregs.c (i386-low.h): Remove include.
4208 (i386-nat.h): Likewise.
4209 (nat/i386-dregs.h): New include.
4210 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4211 (i386_dr_low_set_addr): Likewise.
4212 (i386_dr_low_get_addr): Likewise.
4213 (i386_dr_low_can_set_control): Likewise.
4214 (i386_dr_low_set_control): Likewise.
4215 (i386_dr_low_get_control): Likewise.
4216 (i386_dr_low_get_status): Likewise.
4217 (i386_get_debug_register_length): Likewise.
4218 (debug_hw_points): Likewise.
4220 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4222 * Makefile.in (SFILES): Add d-exp.y.
4223 (YYFILES): Add d-exp.c.
4224 (YYOBJ): Add d-exp.o.
4225 (local-maintainer-clean): Delete d-exp.c.
4226 * d-exp.y: New file.
4227 * d-lang.h (d_parse): New declaration.
4228 (d_error): New declaration.
4229 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4230 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4231 PREC_ORDER operators.
4232 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4234 2014-06-19 Yao Qi <yao@codesourcery.com>
4236 * gdbthread.h (any_running): Remove the declaration.
4237 * thread.c (any_running): Remove.
4239 2014-06-19 Yao Qi <yao@codesourcery.com>
4241 * gdbthread.h (struct thread_info) <state>: Change its type to
4242 'enum thread_state'. Update comments.
4244 2014-06-19 Pedro Alves <palves@redhat.com>
4246 * gdbthread.h (ALL_THREADS): Delete.
4247 (ALL_NON_EXITED_THREADS): New macro.
4248 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4249 instead of ALL_THREADS.
4250 * infrun.c (find_thread_needs_step_over)
4251 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4252 instead of ALL_THREADS.
4253 * record-btrace.c (record_btrace_open)
4254 (record_btrace_stop_recording, record_btrace_close)
4255 (record_btrace_is_replaying, record_btrace_resume)
4256 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4257 * remote.c (append_pending_thread_resumptions): Likewise.
4258 * thread.c (thread_apply_all_command): Likewise.
4260 2014-06-19 Gary Benson <gbenson@redhat.com>
4262 * i386-nat.c (i386_stopped_by_watchpoint):
4263 Use i386_dr_stopped_by_watchpoint.
4264 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4265 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4267 2014-06-19 Gary Benson <gbenson@redhat.com>
4269 * nat/i386-dregs.c: New file.
4270 * Makefile.in (i386-dregs.o): New rule.
4271 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4272 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4273 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4274 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4275 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4276 * config/i386/go32.mh (NATDEPFILES): Likewise.
4277 * config/i386/linux.mh (NATDEPFILES): Likewise.
4278 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4279 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4280 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4281 * i386-nat.h (debug_hw_points): New declaration.
4282 * i386-nat.c (breakpoint.h): Remove include.
4283 (command.h): Likewise.
4284 (target.h): Likewise.
4285 (gdb_assert.h): Likewise.
4286 (debug_hw_points): Made nonstatic.
4287 (debug_printf): Now in i386-dregs.c.
4288 (TARGET_HAS_DR_LEN_8): Likewise.
4289 (DR_CONTROL_SHIFT): Likewise.
4290 (DR_CONTROL_SIZE): Likewise.
4291 (DR_RW_EXECUTE): Likewise.
4292 (DR_RW_WRITE): Likewise.
4293 (DR_RW_READ): Likewise.
4294 (DR_RW_IORW): Likewise.
4295 (DR_LEN_1): Likewise.
4296 (DR_LEN_2): Likewise.
4297 (DR_LEN_4): Likewise.
4298 (DR_LEN_8): Likewise.
4299 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4300 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4301 (DR_ENABLE_SIZE): Likewise.
4302 (DR_LOCAL_SLOWDOWN): Likewise.
4303 (DR_GLOBAL_SLOWDOWN): Likewise.
4304 (DR_CONTROL_RESERVED): Likewise.
4305 (I386_DR_CONTROL_MASK): Likewise.
4306 (I386_DR_VACANT): Likewise.
4307 (I386_DR_LOCAL_ENABLE): Likewise.
4308 (I386_DR_GLOBAL_ENABLE): Likewise.
4309 (I386_DR_DISABLE): Likewise.
4310 (I386_DR_SET_RW_LEN): Likewise.
4311 (I386_DR_GET_RW_LEN): Likewise.
4312 (I386_DR_WATCH_HIT): Likewise.
4313 (i386_wp_op_t): Likewise.
4314 (i386_show_dr): Likewise.
4315 (i386_length_and_rw_bits): Likewise.
4316 (i386_insert_aligned_watchpoint): Likewise.
4317 (i386_remove_aligned_watchpoint): Likewise.
4318 (i386_handle_nonaligned_watchpoint): Likewise.
4319 (i386_update_inferior_debug_regs): Likewise.
4320 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4321 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4322 (i386_region_ok_for_watchpoint):
4323 Use i386_dr_region_ok_for_watchpoint.
4324 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4326 2014-06-19 Gary Benson <gbenson@redhat.com>
4328 * i386-nat.c (i386_insert_hw_breakpoint): Use
4329 i386_insert_watchpoint.
4330 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4332 2014-06-19 Gary Benson <gbenson@redhat.com>
4334 * i386-nat.c (i386_dr_show): Renamed to
4335 i386_show_dr and made static. All uses updated.
4336 (i386_dr_length_and_rw_bits): Renamed to
4337 i386_length_and_rw_bits and made static.
4339 (i386_dr_insert_aligned_watchpoint): Renamed to
4340 i386_insert_aligned_watchpoint and made static.
4342 (i386_dr_remove_aligned_watchpoint): Renamed to
4343 i386_remove_aligned_watchpoint and made static.
4345 (i386_dr_update_inferior_debug_regs): Renamed to
4346 i386_update_inferior_debug_regs and made static.
4348 * nat/i386-dregs.h (i386_dr_show): Removed.
4349 (i386_dr_length_and_rw_bits): Likewise.
4350 (i386_dr_insert_aligned_watchpoint): Likewise.
4351 (i386_dr_remove_aligned_watchpoint): Likewise.
4352 (i386_dr_update_inferior_debug_regs): Likewise.
4354 2014-06-19 Gary Benson <gbenson@redhat.com>
4356 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4357 * configure: Regenerate.
4358 * config.in: Likewise.
4359 * main.c (signal.h): New include.
4360 (setup_alternate_signal_stack): New function.
4361 (captured_main): Call the above.
4362 * cp-support.c (signal.h): New include.
4363 (catch_demangler_crashes): New flag.
4364 (SIGJMP_BUF): New define.
4365 (SIGSETJMP): Likewise.
4366 (SIGLONGJMP): Likewise.
4367 (gdb_demangle_jmp_buf): New static global.
4368 (gdb_demangle_attempt_core_dump): Likewise.
4369 (gdb_demangle_signal_handler): New function.
4370 (gdb_demangle): If catch_demangler_crashes is set, install the
4371 above signal handler before calling bfd_demangle, and restore
4372 the original signal handler afterwards. Display the offending
4373 symbol and call demangler_warning the first time a segmentation
4375 (_initialize_cp_support): New maint set/show command.
4377 2014-06-19 Gary Benson <gbenson@redhat.com>
4379 * utils.h (resource_limit_kind): New enum.
4380 (can_dump_core): New declaration.
4381 (warn_cant_dump_core): Likewise.
4382 (dump_core): Likewise.
4383 * utils.c (dump_core): Made nonstatic. Added new
4384 parameter "limit_kind".
4385 (can_dump_core): Made nonstatic. Moved printing code to...
4386 (warn_cant_dump_core): New function.
4387 (can_dump_core_warn): Likewise.
4388 (internal_vproblem): Replace calls to can_dump_core with
4389 calls to can_dump_core_warn. Supply new argument to each.
4391 2014-06-19 Gary Benson <gbenson@redhat.com>
4393 * utils.h (demangler_vwarning): New declaration.
4394 (demangler_warning): Likewise.
4395 * utils.c (struct internal_problem)
4396 <user_settable_should_quit>: New field.
4397 <user_settable_should_dump_core>: Likewise
4398 (internal_error_problem): Add values for above new fields.
4399 (internal_warning_problem): Likewise.
4400 (demangler_warning_problem): New static global.
4401 (demangler_vwarning): New function.
4402 (demangler_warning): Likewise.
4403 (add_internal_problem_command): Selectively add commands.
4404 (_initialize_utils): New internal problem command.
4405 * maint.c (maintenance_demangler_warning): New function.
4406 (_initialize_maint_cmds): New command.
4408 2014-06-18 Tom Tromey <tromey@redhat.com>
4410 * f-valprint.c (info_common_command_for_block): Update.
4411 * symtab.h (struct general_symbol_info) <common_block>: Now
4414 2014-06-18 Tom Tromey <tromey@redhat.com>
4416 * symtab.h (struct symtab) <blockvector>: Now const.
4417 * ada-lang.c (ada_add_global_exceptions): Update.
4418 * buildsym.c (augment_type_symtab): Update.
4419 * dwarf2read.c (dw2_lookup_symbol): Update.
4420 * jit.c (finalize_symtab): Update.
4421 * jv-lang.c (add_class_symtab_symbol): Update.
4422 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4424 * objfiles.c (objfile_relocate1): Update.
4425 * psymtab.c (lookup_symbol_aux_psymtabs)
4426 (maintenance_check_psymtabs): Update.
4427 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4429 * spu-tdep.c (spu_catch_start): Update.
4430 * symmisc.c (dump_symtab_1): Update.
4431 * symtab.c (lookup_global_symbol_from_objfile)
4432 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4433 (basic_lookup_transparent_type_quick)
4434 (basic_lookup_transparent_type, find_pc_sect_symtab)
4435 (find_pc_sect_line, search_symbols): Update.
4436 * block.c (find_block_in_blockvector): Make "bl" const.
4437 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4439 (blockvector_contains_pc): Make "bv" const.
4440 (block_for_pc_sect): Update.
4441 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4442 (blockvector_contains_pc): Update.
4443 * breakpoint.c (resolve_sal_pc): Update.
4444 * inline-frame.c (block_starting_point_at): Update.
4446 2014-06-18 Tom Tromey <tromey@redhat.com>
4448 * completer.c (complete_line): Make "line_buffer" const.
4449 * completer.h (complete_line): Update.
4451 2014-06-18 Tom Tromey <tromey@redhat.com>
4453 * symtab.c (add_macro_name): Remove unneeded cast.
4455 2014-06-18 Tom Tromey <tromey@redhat.com>
4457 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4458 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4460 2014-06-18 Tom Tromey <tromey@redhat.com>
4462 * probe.c (info_probes_for_ops): Make "arg" const.
4463 * probe.h (info_probes_for_ops): Update.
4465 2014-06-18 Tom Tromey <tromey@redhat.com>
4467 * varobj.c (varobj_create): Update.
4468 * valops.c (value_of_this): Update.
4469 * tracepoint.c (add_local_symbols, scope_info): Update.
4470 * symtab.h (struct general_symbol_info) <block>: Now const.
4471 * symtab.c (skip_prologue_sal)
4472 (default_make_symbol_completion_list_break_on)
4473 (skip_prologue_using_sal): Update.
4474 * stack.h (iterate_over_block_locals)
4475 (iterate_over_block_local_vars): Update.
4476 * stack.c (print_frame_args): Update.
4477 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4479 (get_selected_block): Make return type const.
4480 * python/py-frame.c (frapy_block): Update.
4481 * python/py-block.c (gdbpy_block_for_pc): Update.
4482 * p-exp.y (%union) <bval>: Now const.
4483 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4484 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4485 * m2-exp.y (%union) <bval>: Now const.
4486 * linespec.c (get_current_search_block): Make return type const.
4487 (create_sals_line_offset, find_label_symbols): Update.
4488 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4490 (block_starting_point_at): Make "block" const.
4491 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4492 (check_exception_resume): Update.
4493 * guile/scm-frame.c (gdbscm_frame_block): Update.
4494 * guile/scm-block.c (gdbscm_lookup_block): Update.
4495 * frame.h (get_frame_block): Update.
4496 (get_selected_block): Make return type const.
4497 * frame.c (frame_id_inner): Update.
4498 * f-valprint.c (info_common_command_for_block)
4499 (info_common_command): Update.
4500 * dwarf2loc.c (dwarf2_find_location_expression)
4501 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4502 (locexpr_describe_location_piece): Update.
4503 * c-exp.y (%union) <bval>: Now const.
4504 * breakpoint.c (resolve_sal_pc): Update.
4505 * blockframe.c (get_frame_block):Make return type const.
4506 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4507 (block_innermost_frame): Update.
4508 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4509 (block_for_pc, block_for_pc_sect): Update.
4510 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4512 (block_for_pc_sect, block_for_pc): Make return type const.
4513 * ax-gdb.c (gen_expr): Update.
4514 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4515 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4516 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4517 (ada_read_var_value): Update.
4518 * ada-exp.y (struct name_info) <block>: Now const.
4520 (block_lookup): Constify.
4522 2014-06-18 Gary Benson <gbenson@redhat.com>
4524 * nat/i386-dregs.h: New file.
4525 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4526 * i386-nat.h (i386-dregs.h): New include.
4527 (DR_FIRSTADDR): Now in i386-dregs.h.
4528 (DR_LASTADDR): Likewise.
4529 (DR_NADDR): Likewise.
4530 (DR_STATUS): Likewise.
4531 (DR_CONTROL): Likewise.
4532 (i386_debug_reg_state): Likewise.
4533 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4535 2014-06-18 Don Breazeal <donb@codesourcery.com>
4537 * breakpoint.c (set_longjmp_breakpoint): Call
4538 momentary_breakpoint_from_master with additional argument.
4539 (set_longjmp_breakpoint_for_call_dummy): Call
4540 momentary_breakpoint_from_master with additional argument.
4541 (set_std_terminate_breakpoint): Call
4542 momentary_breakpoint_from_master with additional argument.
4543 (momentary_breakpoint_from_master): Add argument to function
4544 definition and use it to initialize structure member flag.
4545 (clone_momentary_breakpoint): Call
4546 momentary_breakpoint_from_master with additional argument.
4547 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4548 member flags set in momentary_breakpoint_from_master.
4550 2014-06-18 Gary Benson <gbenson@redhat.com>
4552 * i386-nat.c (i386_show_dr): Renamed to
4553 i386_dr_show and made nonstatic. All uses updated.
4554 (i386_length_and_rw_bits): Renamed to
4555 i386_dr_length_and_rw_bits and made nonstatic.
4557 (i386_insert_aligned_watchpoint): Renamed to
4558 i386_dr_insert_aligned_watchpoint and made nonstatic.
4560 (i386_remove_aligned_watchpoint): Renamed to
4561 i386_dr_remove_aligned_watchpoint and made nonstatic.
4563 (i386_update_inferior_debug_regs): Renamed to
4564 i386_dr_update_inferior_debug_regs and made nonstatic.
4567 2014-06-18 Gary Benson <gbenson@redhat.com>
4569 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4570 (i386_dr_low_can_set_control): Likewise.
4571 (i386_dr_low_set_addr): Likewise.
4572 (i386_dr_low_set_control): Likewise.
4573 (i386_dr_low_get_addr): Likewise.
4574 (i386_dr_low_get_status): Likewise.
4575 (i386_dr_low_get_control): Likewise.
4576 (i386_insert_aligned_watchpoint): Use new macros.
4577 (i386_update_inferior_debug_regs): Likewise.
4578 (i386_stopped_data_address): Likewise.
4580 2014-06-18 Gary Benson <gbenson@redhat.com>
4582 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4583 New parameter. All uses updated.
4585 2014-06-18 Gary Benson <gbenson@redhat.com>
4587 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4590 2014-06-18 Gary Benson <gbenson@redhat.com>
4592 * i386-nat.c (debug_printf): New macro.
4593 (i386_get_debug_register_length): Likewise.
4594 (TARGET_HAS_DR_LEN_8): Use above macro.
4595 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4596 and printf_unfiltered. Use phex to format values.
4598 2014-06-18 Gary Benson <gbenson@redhat.com>
4600 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4603 2014-06-18 Gary Benson <gbenson@redhat.com>
4605 * i386-nat.c: Comment changes.
4607 2014-06-18 Gary Benson <gbenson@redhat.com>
4609 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4611 2014-06-18 Gary Benson <gbenson@redhat.com>
4613 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4614 (i386_insert_aligned_watchpoint): Likewise.
4615 (i386_remove_aligned_watchpoint): Likewise.
4616 (i386_handle_nonaligned_watchpoint): Likewise.
4618 2014-06-18 Gary Benson <gbenson@redhat.com>
4620 * i386-nat.c: Whitespace changes.
4622 2014-06-17 Samuel Bronson <naesten@gmail.com>
4624 * MAINTAINERS: Update Roland McGrath's email address.
4625 Thanks to Sergio Durigan Junior for pointing out that he left
4626 Red Hat a while ago, and giving me a current address.
4628 2014-06-17 Tom Tromey <tromey@redhat.com>
4630 * utils.h (savestring): Remove declaration.
4632 2014-06-17 Tom Tromey <tromey@redhat.com>
4634 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4636 2014-06-16 Keith Seitz <keiths@redhat.com>
4639 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4640 to update the varobj if inferior_ptid is null_ptid.
4642 2014-06-16 Tom Tromey <tromey@redhat.com>
4644 * target.h (struct target_ops) <to_info_proc>: Make parameter
4646 (target_info_proc): Update.
4647 * target.c (target_info_proc): Make "args" const.
4648 * procfs.c (procfs_info_proc): Update.
4649 * linux-tdep.c (linux_info_proc): Update.
4650 (linux_core_info_proc_mappings): Make "args" const.
4651 (linux_core_info_proc): Update.
4652 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4653 * gdbarch.c: Rebuild.
4654 * gdbarch.h: Rebuild.
4655 * corelow.c (core_info_proc): Update.
4657 2014-06-16 Tom Tromey <tromey@redhat.com>
4659 * target.h (struct target_ops) <to_disconnect>: Make parameter
4661 (target_disconnect): Update.
4662 * target.c (target_disconnect): Make "args" const.
4663 * target-delegates.c: Rebuild.
4664 * remote.c (remote_disconnect): Update.
4665 * record.h (record_disconnect): Update.
4666 * record.c (record_disconnect): Update.
4667 * inf-child.c (inf_child_disconnect): Update.
4669 2014-06-16 Tom Tromey <tromey@redhat.com>
4671 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4672 * target.c (debug_to_rcmd, default_rcmd): Update.
4673 * target-delegates.c: Rebuild.
4674 * remote.c (remote_rcmd): Update.
4675 * monitor.c (monitor_rcmd): Update.
4677 2014-06-16 Pedro Alves <palves@redhat.com>
4679 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4680 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4681 have OBJF_SHARED set.
4682 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4683 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4684 instead of OBJF_USERLOADED.
4685 * objfiles.h (OBJF_SHARED): Update comment.
4686 (userloaded_objfile_contains_address_p): Rename to ...
4687 (shared_objfile_contains_address_p): ... this, and update
4689 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4691 (remove_symbol_file_command): Skip objfiles that don't have
4694 2014-06-16 Tom Tromey <tromey@redhat.com>
4696 * minsyms.h (prim_record_minimal_symbol)
4697 (prim_record_minimal_symbol_and_info): Update comments.
4699 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4701 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4702 or --without-guile, according to how GDB was built.
4704 2014-06-13 Tom Tromey <tromey@redhat.com>
4706 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4708 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4710 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4712 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4713 help_list.Pass all_commands, not -1, to help_list.
4714 * cli/cli-dump.c (dump_command, append_command)
4715 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4716 (binary_dump_command, binary_append_command): Pass all_commands,
4717 not -1, to help_list.
4718 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4720 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4722 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4724 * top.c (set_history): Pass all_commands, not -1, to help_list.
4725 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4726 all_commands, not -1, to help_list.
4727 * symfile.c (overlay_command): Pass all_commands, not -1, to
4729 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4731 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4733 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4735 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4736 not -1, to help_list.
4737 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4738 not -1, to help_list.
4739 * maint.c (maintenance_command, maintenance_info_command)
4740 (maintenance_print_command, maintenance_set_cmd): Pass
4741 all_commands, not -1, to help_list.
4742 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4744 * language.c (set_check): Pass all_commands, not -1, to help_list.
4745 * infcmd.c (unset_command): Pass all_commands, not -1, to
4747 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4749 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4751 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4753 * breakpoint.c (save_command): Pass all_commands, not -1, to
4755 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4756 all_commands, not -1, to help_list.
4758 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4760 * regcache.c (struct register_to_invalidate): New structure.
4761 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4763 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4765 2014-06-12 Yao Qi <yao@codesourcery.com>
4767 * varobj.c (varobj_get_num_children): Call
4768 varobj_is_dynamic_p.
4769 (varobj_list_children): Likewise.
4770 (varobj_update): Likewise. Update comments.
4772 2014-06-12 Yao Qi <yao@codesourcery.com>
4774 * varobj.c (varobj_pretty_printed_p): Rename to ...
4775 (varobj_is_dynamic_p): ... this. New function.
4776 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4777 (varobj_is_dynamic_p): Declare.
4778 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4779 (mi_print_value_p, varobj_update_one): Likewise.
4781 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4782 Yao Qi <yao@codesourcery.com>
4784 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4785 (varobj_get_iterator): Wrap up code for pretty-printer by
4786 "#if HAVE_PYTHON" and "#endif".
4787 (update_dynamic_varobj_children): Likewise.
4789 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4790 Yao Qi <yao@codesourcery.com>
4792 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4793 gdb_python_initialized is false. Move some code from varobj.c.
4794 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4795 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4796 (struct varobj_item): Moved to varobj-iter.h".
4797 (varobj_clear_saved_item): New function.
4798 (update_dynamic_varobj_children): Move python-related code to
4800 (free_variable): Call varobj_clear_saved_item and
4803 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4804 Yao Qi <yao@codesourcery.com>
4806 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4807 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4808 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4809 (py-varobj.o): New rule.
4810 * python/py-varobj.c: New file.
4811 * python/python-internal.h (py_varobj_get_iterator): Declare.
4812 * varobj-iter.h: New file.
4813 * varobj.c: Include "varobj-iter.h"
4814 (struct varobj) <child_iter>: Change its type from "PyObject *"
4815 to "struct varobj_iter *".
4816 <saved_item>: Likewise.
4817 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4818 [HAVE_PYTHON] (varobj_get_iterator): New function.
4819 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4820 python-specific code to python/py-varobj.c.
4821 (install_visualizer): Call varobj_iter_delete instead of
4823 * varobj.h (varobj_ensure_python_env): Declare.
4825 2014-06-12 Yao Qi <yao@codesourcery.com>
4827 * varobj.c (struct varobj_item): New structure.
4828 (create_child_with_value): Update declaration.
4829 (varobj_add_child): Replace arguments 'name' and 'value' with
4830 'item'. All callers updated.
4831 (install_dynamic_child): Likewise.
4832 (update_dynamic_varobj_children): Likewise.
4833 (varobj_add_child): Likewise.
4834 (create_child_with_value): Likewise.
4836 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4838 * NEWS: Create a new section for the next release branch.
4839 Rename the section of the current branch, now that it has
4842 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4844 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4845 * version.in: Bump version to 7.8.50.DATE-cvs.
4847 2014-06-11 Pedro Alves <palves@redhat.com>
4850 * ser-mingw.c (net_windows_socket_check_pending): New function.
4851 (net_windows_select_thread): Ignore spurious wakeups. Use
4852 net_windows_socket_check_pending.
4853 (net_windows_wait_handle): Check for pending events with
4854 ioctlsocket, through net_windows_socket_check_pending, instead of
4855 checking the socket's event.
4857 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4859 * python/python-internal.h (gdb_PyObject_GetAttrString)
4860 (gdb_PyObject_HasAttrString): New inline function definitions.
4861 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4862 char * of the second argument to PyObject_GetAttrString.
4864 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4866 * serial.c (serial_write): Fix index of character to be printed
4867 in call to serial_logchar when serial debug traces are enabled.
4869 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4871 * gdbtypes (resolve_dynamic_range): Add function description.
4873 2014-06-09 Pedro Alves <palves@redhat.com>
4875 * linux-nat.c (linux_child_follow_fork): Initialize status with
4876 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4877 inner block. Only pass the signal to PTRACE_DETACH if in pass
4880 2014-06-09 Gary Benson <gbenson@redhat.com>
4882 * common/signals.c (gdb_signal_from_host): Reorder to separate
4883 the always-available ANSI-standard signals from the signals that
4885 (do_gdb_signal_to_host): Likewise.
4886 * proc-events.c (signal_table): Likewise.
4888 2014-06-08 Hui Zhu <hui@codesourcery.com>
4890 * common/linux-ptrace.c (linux_disable_event_reporting): New
4892 * common/linux-ptrace.h (linux_disable_event_reporting): New
4894 * linux-nat.c (linux_child_follow_fork): Do a single step before
4897 2014-06-07 Keith Seitz <keiths@redhat.com>
4901 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4902 from symbol_matches_domain in symtab.c. All local callers
4903 of symbol_matches_domain updated.
4904 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4905 search STRUCT_DOMAIN.
4906 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4907 independently. standard_lookup will do that automatically.
4908 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4909 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4910 (cp_lookup_symbol_in_namespace): Likewise.
4911 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4912 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4913 may return a STRUCT_DOMAIN match.
4914 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4915 * cp-support.c: Include language.h.
4916 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4918 * psymtab.c (match_partial_symbol): Compare the requested
4919 domain with the symbol's domain directly.
4920 (lookup_partial_symbol): Likewise.
4921 * symtab.c (lookup_symbol_in_language): Explain when/why
4922 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4923 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4924 appropriate languages.
4925 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4926 and moved to ada-lang.c
4927 (lookup_block_symbol): Explain that this function only returns
4928 symbol matching the requested DOMAIN.
4929 Compare the requested domain with the symbol's domain directly.
4930 (iterate_over_symbols): Compare the requested domain with the
4931 symbol's domain directly.
4932 * symtab.h (symbol_matches_domain): Remove.
4934 2014-06-06 Doug Evans <xdje42@gmail.com>
4936 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4937 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4938 (gdbscm_guile_version_is_at_least): Declare.
4939 (gdbscm_scm_string_to_int): Declare.
4940 * guile/guile.c (gdbscm_guile_major_version): New global.
4941 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4942 (guile_datadir): New static global.
4943 (gdbscm_guile_data_directory): New function.
4944 (initialize_scheme_side): Update.
4945 (misc_guile_functions): Add guile-data-directory.
4946 (initialize_gdb_module): Fetch guile version number.
4947 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4948 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4949 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4950 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4952 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4953 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4954 * guile/scm-value.c (gdbscm_value_to_string): Only call
4955 scm_port_conversion_strategy if Guile version >= 2.0.6.
4957 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4959 * main.c (print_gdb_help): Add -q and --silent.
4961 2014-06-06 Gary Benson <gbenson@redhat.com>
4963 * common/signals.c: Remove preprocessor conditionals for
4964 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4965 SIGSEGV and SIGTERM.
4966 * proc-events.c: Likewise.
4968 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4970 * symfile.c (symfile_free_objfile): Remove restriction to
4972 * symfile-mem.c (symbol_file_add_from_memory): Call
4973 add_target_sections_of_objfile.
4975 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4977 * guile/scm-value.c (gdbscm_history_append_x): Use
4978 'vlscm_get_value_smob_arg_unsafe' instead of
4979 'vlscm_scm_to_value'.
4981 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4984 * utils.c (printchar): Don't escape at all if quoter is NUL.
4985 Update function documentation to clarify effect of parameter
4987 * remote.c (escape_buffer): Pass '\\' as the quoter to
4988 fputstrn_unfiltered.
4989 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4990 generate the output.
4991 (mi_solib_unloaded): Same.
4993 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4995 * development.sh: Delete.
4996 * Makefile.in (config.status): Adjust dependency on development.sh.
4997 * configure.ac: Adjust development.sh source call.
4998 * configure: Regenerate.
5000 2014-06-04 Doug Evans <xdje42@gmail.com>
5002 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5003 is_scheme_bkpt, spec.
5004 (bpscm_make_breakpoint_smob): Initialize new members.
5005 (gdbscm_create_breakpoint_x): Split into two ...
5006 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5007 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5008 (scheme_function breakpoint_functions): Update.
5009 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5010 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5011 register-breakpoint!.
5013 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5016 * mem-break.c (z_type_supported): Return zero if
5017 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5019 2014-06-04 Tom Tromey <tromey@redhat.com>
5021 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5022 value_from_contents_and_address_unresolved.
5023 (ada_template_to_fixed_record_type_1): Likewise.
5024 (ada_which_variant_applies): Likewise.
5025 * value.h (value_from_contents_and_address_unresolved): Declare.
5026 * value.c (value_from_contents_and_address_unresolved): New
5028 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5029 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5030 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5032 2014-06-04 Tom Tromey <tromey@redhat.com>
5034 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5036 2014-06-04 Tom Tromey <tromey@redhat.com>
5038 * procfs.c (procfs_attach): Make "args" const.
5039 * windows-nat.c (windows_attach): Make "args" const.
5040 * nto-procfs.c (procfs_attach): Make "args" const.
5041 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5042 * go32-nat.c (go32_attach): Make "args" const.
5043 * gnu-nat.c (gnu_attach): Make "args" const.
5044 * darwin-nat.c (darwin_attach): Make "args" const.
5045 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5046 * linux-nat.c (linux_nat_attach): Make "args" const.
5047 * remote.c (extended_remote_attach_1, extended_remote_attach):
5049 * target.h (struct target_ops) <to_attach>: Make "args" const.
5050 (find_default_attach): Likewise.
5051 * utils.c (parse_pid_to_attach): Make "args" const.
5052 * utils.h (parse_pid_to_attach): Update.
5054 2014-06-04 Tom Tromey <tromey@redhat.com>
5056 * target-delegates.c: Rebuild.
5057 * target.c (default_thread_address_space): New function.
5058 (target_thread_address_space): Simplify.
5059 * target.h (struct target_ops) <to_thread_address_space>: Add
5060 TARGET_DEFAULT_FUNC.
5062 2014-06-04 Doug Evans <xdje42@gmail.com>
5064 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5066 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5068 * record-btrace.c: Include event-loop.h and inf-loop.h.
5069 (record_btrace_resume_exec_dir)
5070 (record_btrace_async_inferior_event_handler)
5071 (record_btrace_handle_async_inferior_event): New.
5072 (record_btrace_open): Create async event handler.
5073 (record_btrace_close): Delete async event handler.
5074 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5075 Mark async event handler.
5076 (record_btrace_execution_direction): New.
5077 (init_record_btrace_ops): Initialize to_execution_direction.
5079 2014-06-03 Doug Evans <xdje42@gmail.com>
5081 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5082 (gdbscm_make_parameter): Ditto.
5084 2014-06-03 Doug Evans <dje@google.com>
5086 * exec.c (exec_close_1): Call clear_section_table instead of
5087 resize_section_table.
5088 (clear_section_table): New function.
5089 (resize_section_table): Make static. Rename arg num_added to
5091 * exec.h (clear_section_table): Declare.
5092 (resize_section_table): Delete.
5093 * progspace.c (release_program_space): Call clear_section_table
5094 instead of resize_section_table.
5096 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5098 * NEWS (Python Scripting): Add entry about the new xmethods
5101 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5103 * python/py-xmethods.c: New file.
5104 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5105 (objfpy_dealloc): XDECREF on the new xmethods field.
5106 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5108 (objfpy_get_xmethods): New function.
5109 (objfile_getset): New entry 'xmethods'.
5110 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5111 (pspy_dealloc): XDECREF on the new xmethods field.
5112 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5114 (pspy_get_xmethods): New function.
5115 (pspace_getset): New entry 'xmethods'.
5116 * python/python-internal.h: Add declarations for new functions.
5117 * python/python.c (_initialize_python): Invoke
5118 gdbpy_initialize_xmethods.
5119 * python/lib/gdb/__init__.py (xmethods): New
5121 * python/lib/gdb/xmethod.py: New file.
5122 * python/lib/gdb/command/xmethods.py: New file.
5124 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5126 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5127 best match method returned by find_overload_match is an xmethod.
5128 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5129 the best matching operator returned by find_overload_match is an
5131 * valops.c: #include "extension.h".
5132 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5133 Return void. The list of matching source methods is returned in
5134 "fn_list" and a vector of matching debug method workers is
5135 returned in "xm_worker_vec". Update all callers.
5136 (value_find_oload_method_list): Likewise.
5137 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5138 non-NULL, then the index of the best matching method in this
5139 vector is returned. Update all callers.
5140 (find_overload_match): Include xmethods while performing overload
5143 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5145 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5146 * extension-priv.h (struct extension_language_ops): Add the
5148 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5149 get_matching_xmethod_workers, get_xmethod_argtypes,
5150 invoke_xmethod, free_xmethod_worker,
5151 free_xmethod_worker_vec): New functions.
5152 * extension.h: #include "common/vec.h".
5153 New function declarations.
5154 (struct xmethod_worker): New struct.
5155 (VEC (xmethod_worker_ptr)): New vector type.
5156 (xmethod_worker_ptr): New typedef.
5157 (xmethod_worker_vec): Likewise.
5158 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5160 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5161 (struct builtin_type): New field "xmethod".
5162 * valarith.c (value_ptradd): Assert that the value argument is not
5164 * valops.c (value_must_coerce_to_target): Return 0 for
5165 lval_xcallable values.
5166 * value.c (struct value): New field XM_WORKER in the field
5168 (value_address, value_raw_address): Return 0 for lval_xcallable
5170 (set_value_address): Assert that the value is not an
5172 (value_free): Free the associated xmethod worker when freeing
5173 lval_xcallable values.
5174 (set_value_component_location): Assert that the WHOLE value is not
5176 (value_of_xmethod, call_xmethod): New functions.
5177 * value.h: Declare "struct xmethod_worker".
5178 Declare new functions value_of_xmethod, call_xmethod.
5180 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5181 Pedro Alves <palves@redhat.com>
5183 PR breakpoints/17000
5184 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5185 New function, extracted from software_breakpoint_inserted_here_p.
5186 (software_breakpoint_inserted_here_p): Replace factored out code
5187 by call to find_non_raw_software_breakpoint_inserted_here.
5188 (bp_target_info_copy_insertion_state): New function.
5189 (bkpt_insert_location): Handle the case of a single-step
5190 breakpoint already inserted at the same address.
5191 (bkpt_remove_location): Handle the case of a single-step
5192 breakpoint still inserted at the same address.
5193 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5194 breakpoint already inserted at the same address.
5195 (deprecated_remove_raw_breakpoint): Handle the case of a
5196 non-raw breakpoint still inserted at the same address.
5197 (find_single_step_breakpoint): New function, extracted from
5198 single_step_breakpoint_inserted_here_p.
5199 (find_single_step_breakpoint): New function,
5200 factored out from single_step_breakpoint_inserted_here_p.
5201 (single_step_breakpoint_inserted_here_p): Reimplement.
5203 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5205 Pushed by Joel Brobecker <brobecker@adacore.com>
5206 * source.c (show_substitute_path_command): Fix display of matching
5209 2014-06-03 Gary Benson <gbenson@redhat.com>
5211 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5213 2014-06-02 Doug Evans <xdje42@gmail.com>
5215 Add parameter support for Guile.
5216 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5217 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5218 (scm-param.o): New rule.
5219 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5220 (gdbscm_misc_error): Declare.
5221 (gdbscm_canonicalize_command_name): Declare.
5222 (gdbscm_scm_to_host_string): Declare.
5223 (gdbscm_scm_from_host_string): Declare.
5224 (gdbscm_initialize_parameters): Declare.
5225 * guile/guile.c (initialize_gdb_module): Call
5226 gdbscm_initialize_parameters.
5227 * guile/lib/gdb.scm: Export parameter symbols.
5228 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5229 cmdscm_canonicalize_name and made public. All callers updated.
5230 * guile/scm-exception.c (gdbscm_misc_error): New function.
5231 * guile/scm-param.c: New file.
5232 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5233 (gdbscm_scm_to_host_string): New function.
5234 (gdbscm_scm_from_host_string): New function.
5235 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5237 2014-06-02 Doug Evans <xdje42@gmail.com>
5239 Add command support for Guile.
5240 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5241 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5242 (scm-cmd.o): New rule.
5243 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5244 (gdbscm_user_error_p): Declare.
5245 (gdbscm_parse_command_name): Declare.
5246 (gdbscm_valid_command_class_p): Declare.
5247 (gdbscm_initialize_commands): Declare.
5248 * guile/guile.c (initialize_gdb_module): Call
5249 gdbscm_initialize_commands.
5250 * guile/lib/gdb.scm: Export command symbols.
5251 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5252 (throw-user-error): New function.
5253 * guile/scm-cmd.c: New file.
5254 * guile/scm-exception.c (user_error_symbol): New static global.
5255 (gdbscm_user_error_p): New function.
5256 (gdbscm_initialize_exceptions): Set user_error_symbol.
5257 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5259 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5261 * top.c (command_loop): Handle comments here...
5262 (command_line_input): ... not here.
5264 2014-06-02 Doug Evans <xdje42@gmail.com>
5266 Add progspace support for Guile.
5267 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5268 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5269 (scm-progspace.o): New rule.
5270 * guile/guile-internal.h (pspace_smob): New typedef.
5271 (psscm_pspace_smob_pretty_printers): Declare.
5272 (psscm_pspace_smob_from_pspace): Declare.
5273 (psscm_scm_from_pspace): Declare.
5274 * guile/guile.c (initialize_gdb_module): Call
5275 gdbscm_initialize_pspaces.
5276 * guile/lib/gdb.scm: Export progspace symbols.
5277 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5279 (append-pretty-printer!): Ditto.
5280 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5282 * guile/scm-progspace.c: New file.
5284 2014-06-03 Alan Modra <amodra@gmail.com>
5286 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5287 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5289 2014-06-02 Doug Evans <dje@google.com>
5291 Add support for skeletonless type units.
5292 * dwarf2read.c (struct dwarf2_per_objfile): New member
5293 n_allocated_type_units.
5294 (struct dwarf2_per_objfile) <tu_stats>: New member
5295 nr_all_type_units_reallocs.
5296 (create_signatured_type_table_from_index): Initialize
5297 n_allocated_type_units
5298 (create_all_type_units): Ditto.
5299 (add_type_unit): Move up in file. New arg slot.
5300 All callers updated. Increase space for all_type_units more
5302 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5303 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5304 (lookup_dwp_signatured_type): Ditto.
5305 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5306 All callers updated.
5307 (build_type_psymtabs_1): Leave type_unit_groups as
5308 NULL if no TUs present.
5309 (print_tu_stats): New function.
5310 (process_skeletonless_type_unit): New function.
5311 (process_dwo_file_for_skeletonless_type_units): New
5313 (process_skeletonless_type_units): New function.
5314 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5315 Call print tu_stats if debugging enabled.
5317 2014-06-02 Pedro Alves <palves@redhat.com>
5319 * breakpoint.c (build_target_command_list): Don't build a command
5320 list if we have any duplicate location that isn't a dprintf.
5322 2014-06-02 Pedro Alves <palves@redhat.com>
5324 * breakpoint.c (dprintf_breakpoint_hit): New function.
5325 (initialize_breakpoint_ops): Install it as dprintf's
5326 breakpoint_hit method.
5328 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5330 * source.c (substitute_path_rule_matches): Simplify using
5331 filename_ncmp instead of FILENAME_CMP.
5333 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5335 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5337 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5339 * configure.ac: When Guile is available, check for the
5340 availability of 'scm_new_smob'.
5341 * configure, config.h.in: Regenerate.
5342 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5345 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5347 * frame.c (struct frame_info): Add stop_string field.
5348 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5349 (get_prev_frame_always): Old content moved into
5350 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5351 TRY_CATCH, handle MEMORY_ERROR exceptions.
5352 (frame_stop_reason_string): New function definition.
5353 * frame.h (unwind_stop_reason_to_string): Extend comment to
5354 mention frame_stop_reason_string.
5355 (frame_stop_reason_string): New function declaration.
5356 * stack.c (frame_info): Switch to frame_stop_reason_string.
5357 (backtrace_command_1): Switch to frame_stop_reason_string.
5358 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5359 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5360 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5362 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5364 * frame.c (frame_stop_reason_string): Rename to ...
5365 (unwind_stop_reason_to_string): this.
5366 * frame.h (frame_stop_reason_string): Rename to ...
5367 (unwind_stop_reason_to_string): this.
5368 * stack.c (frame_info): Update call to frame_stop_reason_string.
5369 (backtrace_command_1): Likewise.
5370 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5371 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5373 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5375 * frame.c (remove_prev_frame): New function.
5376 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5379 2014-05-29 Pedro Alves <palves@redhat.com>
5381 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5382 and make it const. When a single-step decays to a continue,
5383 clear 'step', not 'hw_step'. Pass whether the caller wanted
5384 to step to user_visible_resume_ptid, not what we ask the
5387 2014-05-29 Pedro Alves <palves@redhat.com>
5389 * infrun.c (process_event_stop_test, handle_step_into_function)
5390 (handle_step_into_function_backward): Adjust.
5391 Don't set the even thread's stop_step and call stop_waiting before
5392 calling end_stepping_range. Instead do that ...
5393 (end_stepping_range): ... here. Take an ecs pointer parameter.
5395 2014-05-29 Pedro Alves <palves@redhat.com>
5397 * infrun.c (stop_stepping): Rename to ...
5398 (stop_waiting): ... this.
5399 (proceed): Update comment.
5400 (process_event_stop_test, handle_inferior_event)
5401 (handle_signal_stop, handle_step_into_function)
5402 (handle_step_into_function_backward): Update.
5404 2014-05-29 Pedro Alves <palves@redhat.com>
5406 * infcall.c (run_inferior_call): Don't check whether the current
5407 thread is running after the proceed call.
5409 2014-05-29 Pedro Alves <palves@redhat.com>
5410 Tom Tromey <tromey@redhat.com>
5412 * NEWS: Mention "maint set target-async", "set mi-async", and that
5413 background execution commands are now always available.
5414 * target.h (target_async_permitted): Update comment.
5415 * target.c (target_async_permitted, target_async_permitted_1):
5417 (set_target_async_command): Rename to ...
5418 (maint_set_target_async_command): ... this.
5419 (show_target_async_command): Rename to ...
5420 (maint_show_target_async_command): ... this.
5421 (_initialize_target): Adjust.
5422 * infcmd.c (prepare_execution_command): Make extern.
5423 * inferior.h (prepare_execution_command): Declare.
5424 * infrun.c (set_observer_mode): Leave target async alone.
5425 * mi/mi-interp.c (mi_interpreter_init): Install
5426 mi_on_sync_execution_done as sync_execution_done observer.
5427 (mi_on_sync_execution_done): New function.
5428 (mi_execute_command_input_handler): Don't print the prompt if we
5429 just started a synchronous command with an async target.
5430 (mi_on_resume): Check sync_execution before printing prompt.
5431 * mi/mi-main.h (mi_async_p): Declare.
5432 * mi/mi-main.c: Include gdbcmd.h.
5433 (mi_async_p): New function.
5434 (mi_async, mi_async_1): New globals.
5435 (set_mi_async_command, show_mi_async_command, mi_async): New
5437 (exec_continue): Call prepare_execution_command.
5438 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5439 (mi_execute_async_cli_command): Use mi_async_p.
5440 (_initialize_mi_main): Install "set mi-async". Make
5441 "target-async" a deprecated alias.
5443 2014-05-29 Pedro Alves <palves@redhat.com>
5445 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5446 (_initialize_cli_interp): Adjust.
5447 * event-loop.c: Include "observer.h".
5448 (start_event_loop): Notify 'command_error' observers instead of
5449 calling display_gdb_prompt. Remove FIXME comment.
5450 * event-top.c (display_gdb_prompt): Remove call into the
5452 * inf-loop.c: Include "observer.h".
5453 (inferior_event_handler): Notify 'command_error' observers instead
5454 of calling display_gdb_prompt.
5455 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5456 observers instead of calling display_gdb_prompt.
5457 * interps.c (interp_set): Don't call display_gdb_prompt.
5458 (current_interp_display_prompt_p): Delete.
5459 * interps.h (interp_prompt_p): Delete declaration.
5460 (interp_prompt_p_ftype): Delete.
5461 (struct interp_procs) <prompt_proc_p>: Delete field.
5462 (current_interp_display_prompt_p): Delete declaration.
5463 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5464 (_initialize_mi_interp): Adjust.
5465 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5466 'command_error' observers.
5467 (tui_on_sync_execution_done, tui_on_command_error): New
5469 (tui_display_prompt_p): Delete.
5470 (_initialize_tui_interp): Adjust.
5472 2014-05-29 Pedro Alves <palves@redhat.com>
5475 * cli/cli-interp.c: Include infrun.h and observer.h.
5476 (cli_uiout, cli_interp): New globals.
5477 (cli_on_signal_received, cli_on_end_stepping_range)
5478 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5480 (cli_interpreter_init): Install them as 'end_stepping_range',
5481 'signal_received' 'signal_exited', 'exited' and 'no_history'
5483 (_initialize_cli_interp): Remove cli_interp local.
5484 * infrun.c (handle_inferior_event): Call the several stop reason
5485 observers instead of printing the stop reason directly.
5486 (end_stepping_range): New function.
5487 (print_end_stepping_range_reason, print_signal_exited_reason)
5488 (print_exited_reason, print_signal_received_reason)
5489 (print_no_history_reason): Make static, and add an uiout
5490 parameter. Print to that instead of to CURRENT_UIOUT.
5491 * infrun.h (print_end_stepping_range_reason)
5492 (print_signal_exited_reason, print_exited_reason)
5493 (print_signal_received_reason print_no_history_reason): New
5495 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5497 <cli_uiout>: New field.
5498 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5499 uiout for CLI output. Install 'signal_received',
5500 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5502 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5503 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5504 (mi_on_no_history): New functions.
5505 (ui_out_free_cleanup): Delete function.
5506 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5507 instead use the one already stored in the MI interpreter data.
5508 (mi_ui_out): Adjust.
5509 * tui/tui-interp.c: Include infrun.h and observer.h.
5510 (tui_interp): New global.
5511 (tui_on_signal_received, tui_on_end_stepping_range)
5512 (tui_on_signal_exited, tui_on_exited)
5513 (tui_on_no_history): New functions.
5514 (tui_init): Install them as 'end_stepping_range',
5515 'signal_received' 'signal_exited', 'exited' and 'no_history'
5517 (_initialize_tui_interp): Delete tui_interp local.
5519 2014-05-29 Pedro Alves <palves@redhat.com>
5522 * linux-nat.c (linux_nat_resume_callback): Rename the second
5523 parameter to 'except'. Skip LP if it points to EXCEPT.
5524 (linux_nat_resume): Don't mark the event lwp as not stopped
5525 before resuming sibling lwps. Instead ask
5526 linux_nat_resume_callback to skip the event lwp. Mark it as not
5527 stopped after actually resuming it.
5528 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5530 (wait_lwp): Mark the lwp as stopped here.
5531 (stop_wait_callback): Mark the lwp as not stopped right after
5532 resuming it. Don't mark lwps as stopped here.
5533 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5534 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5536 2014-05-29 Pedro Alves <palves@redhat.com>
5539 * infrun.c (resume): Determine how much to resume depending on
5540 whether the caller wanted a step, not whether we can hardware step
5541 the target. Mark all threads that we intend to run as running,
5542 unless we're calling an inferior function.
5543 (normal_stop): If the thread is running an infcall, don't finish
5545 * target.c (target_resume): Don't mark threads as running here.
5547 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5549 * serial.c (_initialize_serial): Remove support for
5550 the "set remotebaud" and "show remotebaud" commands.
5551 * NEWS: Add entry documenting the removal of that command.
5553 2014-05-28 Yao Qi <yao@codesourcery.com>
5555 * charset.c: Fix typo in comments.
5557 2014-05-27 Gary Benson <gbenson@redhat.com>
5559 * utils.c (internal_vproblem): Prompt for a bug report.
5561 2014-05-26 Andy Wingo <wingo@igalia.com>
5563 * guile/scm-arch.c (arscm_mark_arch_smob):
5564 * guile/scm-block.c (bkscm_mark_block_smob)
5565 (bkscm_mark_block_syms_progress_smob):
5566 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5567 * guile/scm-exception.c (exscm_mark_exception_smob):
5568 * guile/scm-frame.c (frscm_mark_frame_smob):
5569 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5570 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5571 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5572 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5573 (ppscm_mark_pretty_printer_worker_smob):
5574 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5575 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5576 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5577 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5579 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5582 2014-05-26 Andy Wingo <wingo@igalia.com>
5583 Doug Evans <xdje42@gmail.com>
5585 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5586 empty_base_class. All uses updated.
5587 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5588 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5590 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5591 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5592 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5593 (gdbscm_gsmob_has_property_p, add_property_name)
5594 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5595 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5596 (gdb-object-has-property?, gdb-object-properties): Remove.
5597 (gdb-object-kind): Renamed from gsmob-kind.
5599 2014-05-26 Andy Wingo <wingo@igalia.com>
5601 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5602 * configure: Regenerate.
5604 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5606 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5608 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5610 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5611 (replay_memory_access_read_only, replay_memory_access_read_write)
5612 (replay_memory_access_types, replay_memory_access)
5613 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5614 (cmd_set_record_btrace, cmd_show_record_btrace)
5615 (cmd_show_replay_memory_access): New.
5616 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5617 (record_btrace_remove_breakpoint): Replace
5618 record_btrace_allow_memory_access with replay_memory_access.
5619 (_initialize_record_btrace): Add commands.
5620 * NEWS: Announce it.
5622 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5624 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5626 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5628 * MAINTAINERS (Write After Approval): Move self back from
5631 2014-05-22 Pedro Alves <palves@redhat.com>
5633 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5634 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5635 (disable_randomization, enum exec_direction_kind)
5636 (execution_direction, stop_registers, start_remote)
5637 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5638 (wait_for_inferior, normal_stop, get_last_target_status)
5639 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5640 (insert_step_resume_breakpoint_at_sal)
5641 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5642 (set_step_info, print_stop_event, signal_stop_state)
5643 (signal_print_state, signal_pass_state, signal_stop_update)
5644 (signal_print_update, signal_pass_update)
5645 (update_signals_program_target, clear_exit_convenience_vars)
5646 (displaced_step_dump_bytes, update_observer_mode)
5647 (signal_catch_update, gdb_signal_from_command): Move
5649 * infrun.h: ... to this new file.
5650 * amd64-tdep.c: Include infrun.h.
5651 * annotate.c: Include infrun.h.
5652 * arch-utils.c: Include infrun.h.
5653 * arm-linux-tdep.c: Include infrun.h.
5654 * arm-tdep.c: Include infrun.h.
5655 * break-catch-sig.c: Include infrun.h.
5656 * breakpoint.c: Include infrun.h.
5657 * common/agent.c: Include infrun.h instead of inferior.h.
5658 * corelow.c: Include infrun.h.
5659 * event-top.c: Include infrun.h.
5660 * go32-nat.c: Include infrun.h.
5661 * i386-tdep.c: Include infrun.h.
5662 * inf-loop.c: Include infrun.h.
5663 * infcall.c: Include infrun.h.
5664 * infcmd.c: Include infrun.h.
5665 * infrun.c: Include infrun.h.
5666 * linux-fork.c: Include infrun.h.
5667 * linux-nat.c: Include infrun.h.
5668 * linux-thread-db.c: Include infrun.h.
5669 * monitor.c: Include infrun.h.
5670 * nto-tdep.c: Include infrun.h.
5671 * procfs.c: Include infrun.h.
5672 * record-btrace.c: Include infrun.h.
5673 * record-full.c: Include infrun.h.
5674 * remote-m32r-sdi.c: Include infrun.h.
5675 * remote-mips.c: Include infrun.h.
5676 * remote-notif.c: Include infrun.h.
5677 * remote-sim.c: Include infrun.h.
5678 * remote.c: Include infrun.h.
5679 * reverse.c: Include infrun.h.
5680 * rs6000-tdep.c: Include infrun.h.
5681 * s390-linux-tdep.c: Include infrun.h.
5682 * solib-irix.c: Include infrun.h.
5683 * solib-osf.c: Include infrun.h.
5684 * solib-svr4.c: Include infrun.h.
5685 * target.c: Include infrun.h.
5686 * top.c: Include infrun.h.
5687 * windows-nat.c: Include infrun.h.
5688 * mi/mi-interp.c: Include infrun.h.
5689 * mi/mi-main.c: Include infrun.h.
5690 * python/py-threadevent.c: Include infrun.h.
5692 2014-05-22 Pedro Alves <palves@redhat.com>
5694 * infrun.c (handle_inferior_event): Store the exit code for
5695 --return-child-result here, instead of ...
5696 (print_exited_reason): ... here.
5698 2014-05-21 Pedro Alves <palves@redhat.com>
5701 * gdbthread.h (struct thread_control_state): New field
5703 * infrun.c (follow_fork): Copy the new thread control field to the
5705 (clear_proceed_status_thread): Clear the new thread control field.
5706 (proceed): Set the new thread control field.
5707 * interps.h (command_interp): Declare.
5708 * interps.c (command_interpreter): New global.
5709 (command_interp): New function.
5710 (interp_exec): Set `command_interpreter' while here.
5711 * cli-out.c (cli_uiout_dtor): New function.
5712 (cli_ui_out_impl): Install it.
5713 * mi/mi-interp.c: Include cli-out.h.
5714 (mi_cmd_interpreter_exec): Add comment.
5715 (restore_current_uiout_cleanup): New function.
5716 (ui_out_free_cleanup): New function.
5717 (mi_on_normal_stop): If finishing an execution command started by
5718 a CLI command, or any kind of breakpoint-like event triggered,
5719 print the stop event to the output (CLI) stream.
5720 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5722 2014-05-21 Pedro Alves <palves@redhat.com>
5724 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5725 current source line having changed.
5726 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5727 * infrun.c (normal_stop): Adjust call to
5728 set_current_sal_from_frame.
5729 * source.c (clear_lines_listed_range): New function.
5730 (set_current_source_symtab_and_line, identify_source_line): Clear
5731 the lines listed range.
5732 (line_info): Handle the first "info line" after the current source
5733 line having changed.
5734 * stack.c (print_stack_frame): Remove center handling.
5735 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5738 2014-05-21 Pedro Alves <palves@redhat.com>
5740 * inf-child.c (inf_child_mourn_inferior): New function.
5741 * inf-child.h (inf_child_mourn_inferior): New declaration.
5742 * darwin-nat.c (darwin_mourn_inferior): Use
5743 inf_child_mourn_inferior.
5744 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5745 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5746 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5747 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5748 * windows-nat.c (windows_mourn_inferior): Likewise.
5750 2014-05-21 Doug Evans <xdje42@gmail.com>
5752 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5754 2014-05-21 Doug Evans <xdje42@gmail.com>
5756 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5757 (gdbscm_out_of_range_error): Ditto.
5758 (gdbscm_memory_error): Ditto.
5759 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5760 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5761 (gdbscm_out_of_range_error): Update.
5762 (gdbscm_memory_error): Update.
5763 (gdbscm_scm_to_target_string_unsafe): Delete.
5765 2014-05-21 Pedro Alves <palves@redhat.com>
5767 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5769 (inf_child_open_target): New function.
5770 (inf_child_open): Use inf_child_open_target to push the target
5771 instead of erroring out.
5772 (inf_child_disconnect, inf_child_close)
5773 (inf_child_maybe_unpush_target): New functions.
5774 (inf_child_target): Install inf_child_disconnect and
5775 inf_child_close. Store a pointer to the returned object.
5776 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5778 * target.c (auto_connect_native_target): New global.
5779 (show_default_run_target): New function.
5780 (find_default_run_target): Return NULL if automatically connecting
5781 to the native target is disabled.
5782 (_initialize_target): Install set/show auto-connect-native-target.
5783 * NEWS: Mention "set auto-connect-native-target", and "target
5785 * linux-nat.c (super_close): New global.
5786 (linux_nat_close): Call super_close.
5787 (linux_nat_add_target): Store a pointer to the base class's
5789 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5790 inf_child_maybe_unpush.
5791 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5793 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5794 the inferior. Use inf_child_maybe_unpush_target.
5795 (inf_ttrace_attach): Don't push the target if it is already
5797 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5798 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5799 after mourning the inferior. Use inf_child_maybe_unpush_target.
5800 (darwin_attach_pid): Don't push the target if it is already
5802 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5803 mourning the inferior. Use inf_child_maybe_unpush_target.
5804 (gnu_detach): Use inf_child_maybe_unpush_target.
5805 * go32-nat.c (go32_create_inferior): Don't push the target if it
5807 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5808 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5809 (procfs_open): Rename to ...
5810 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5811 comments. Can target_preopen before changing node. Call
5812 inf_child_open_target to push the target explicitly.
5813 (procfs_attach): Don't push the target if it is already pushed.
5814 (procfs_detach): Use inf_child_maybe_unpush_target.
5815 (procfs_create_inferior): Don't push the target if it is already
5817 (nto_native_ops): New global.
5818 (procfs_open): Reimplement.
5819 (procfs_native_open): New function.
5820 (init_procfs_targets): Install procfs_native_open as to_open of
5821 "target native". Store a pointer to the "native" target in
5823 * procfs.c (procfs_attach): Don't push the target if it is already
5825 (procfs_detach): Use inf_child_maybe_unpush_target.
5826 (procfs_mourn_inferior): Only unpush the target after mourning the
5827 inferior. Use inf_child_maybe_unpush_target.
5828 (procfs_init_inferior): Don't push the target if it is already
5830 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5831 if it is already pushed.
5833 2014-05-21 Pedro Alves <palves@redhat.com>
5835 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5836 and "procfs" targets are now called "native" instead.
5838 2014-05-21 Pedro Alves <palves@redhat.com>
5840 * go32-nat.c (go32_open): Delete.
5841 (go32_target): Don't override the to_open method.
5843 2014-05-21 Pedro Alves <palves@redhat.com>
5845 * nto-procfs.c (procfs_can_run): New function.
5846 (nto_procfs_ops): New global.
5847 (init_procfs_targets): New, based on procfs_target. Install
5848 "target native" in addition to "target procfs".
5849 (_initialize_procfs): Call init_procfs_targets instead of adding
5852 2014-05-21 Pedro Alves <palves@redhat.com>
5854 * windows-nat.c (windows_target): Don't override to_shortname,
5855 to_longname or to_doc.
5857 2014-05-21 Pedro Alves <palves@redhat.com>
5859 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5862 2014-05-21 Pedro Alves <palves@redhat.com>
5864 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5865 to_shortname, to_longname or to_doc.
5867 2014-05-21 Pedro Alves <palves@redhat.com>
5869 * go32-nat.c (go32_target): Don't override to_shortname,
5870 to_longname or to_doc.
5872 2014-05-21 Pedro Alves <palves@redhat.com>
5874 * inf-child.c (inf_child_open): Remove mention of "child".
5875 (inf_child_target): Rename target to "native" instead of "child".
5877 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5879 * Makefile.in (SFILES): Delete "regset.c".
5880 (COMMON_OBS): Delete "regset.o".
5882 * regset.h (regset_alloc): Delete prototype.
5884 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5886 * sparc-linux-tdep.c (sparc32_linux_gregset)
5887 (sparc32_linux_fpregset): New static regset structures.
5888 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5889 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5891 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5892 (sparc64_linux_fpregset): New static regset structures.
5893 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5894 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5895 New static regset structures.
5896 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5897 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5898 New static regset structures.
5899 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5900 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5901 New static regset structures.
5902 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5903 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5904 New static regset structures.
5905 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5907 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5909 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5910 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5911 register maps ("regmaps") from "*regset" to "*regmap". Do this
5912 for all regmap types and variables.
5913 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5914 (sparc32_linux_supply_core_gregset)
5915 (sparc32_linux_collect_core_gregset)
5916 (sparc32_linux_supply_core_fpregset)
5917 (sparc32_linux_collect_core_fpregset): Likewise.
5918 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5919 (sparc_gregmap, sparc_fpregmap): ... these.
5920 (sparc_supply_gregset, sparc_collect_gregset)
5921 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5922 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5923 (_initialize_sparc_nat): Rename regmaps.
5924 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5925 (sparc_gregmap, sparc_fpregmap): ... these.
5926 (sparc_supply_gregset, sparc_collect_gregset)
5927 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5928 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5930 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5931 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5933 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5935 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5936 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5937 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5939 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5940 (sparc32_bsd_fpregset): Rename to...
5941 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5942 (sparc32_bsd_fpregmap): ... these.
5943 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5944 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5945 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5946 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5947 (struct sparc_gregmap, struct sparc_fpregmap)
5948 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5949 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5950 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5951 (sparc32_supply_regset, sparc32_collect_gregset)
5952 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5954 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5955 (sparc64_linux_ptrace_gregmap): ... this.
5956 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5957 (_initialize_sparc64_linux_nat): Rename regmaps.
5958 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5959 (sparc64_linux_core_gregmap): ... this.
5960 (sparc64_linux_supply_core_gregset)
5961 (sparc64_linux_collect_core_gregset)
5962 (sparc64_linux_supply_core_fpregset)
5963 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5964 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5965 (sparc64_sol2_fpregset): Rename to...
5966 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5967 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5968 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5970 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5971 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5972 (sparc64_bsd_fpregset): Rename to...
5973 (struct sparc_gregmap, sparc64_sol2_gregmap)
5974 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5975 (sparc64_bsd_fpregmap): ... these.
5976 (sparc64_supply_gregset, sparc64_collect_gregset)
5977 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5979 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5980 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5981 (sparc64fbsd_gregmap): ... this.
5982 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5983 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5985 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5986 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5987 (sparc64nbsd_collect_fpregset): Likewise.
5988 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5989 (sparc64nbsd_gregmap): ... this.
5990 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5992 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5993 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5994 (sparc64obsd_gregmap): ... this.
5995 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5997 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5998 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5999 (sparc32nbsd_gregmap): ... this.
6000 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6003 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6005 * score-tdep.c (score7_linux_gregset): New static regset
6007 (score7_linux_regset_from_core_section): Remove dynamic regset
6009 (score_gdbarch_init): Drop allocation of tdep structure.
6010 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6012 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6014 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6016 (am33_regset_from_core_section): Remove dynamic regset
6019 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6021 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6022 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6024 (mips_linux_regset_from_core_section): Remove dynamic regset
6026 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6027 'gregset64', 'fpregset', and 'fpregset64'.
6028 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6029 deleted tdep fields.
6031 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6033 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6035 (amd64_regset_from_core_section): Remove dynamic regset
6037 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6039 (amd64obsd_regset_from_core_section): Remove dynamic regset
6041 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6043 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6044 x86-common regset supply function.
6045 * i386-tdep.c (i386_collect_gregset): Make static.
6046 (i386_gregset): New global regset structure.
6047 (i386_fpregset, i386_xstateregset): New static regset structures.
6048 (i386_regset_from_core_section): Remove dynamic regset
6050 (i386_gdbarch_init): Remove initialization of tdep fields
6051 'gregset', 'fpregset', and 'xstateregset'.
6052 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6053 'fpregset', and 'xstateregset'.
6054 (i386_collect_gregset): Remove prototype.
6055 (i386_gregset): New declaration.
6056 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6058 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6063 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6064 (arm_linux_vfpregset): New static regset structures.
6065 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6067 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6068 and 'vfpregset' fields.
6070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6072 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6073 (aarch64_linux_fpregset): New static regset structures.
6074 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6075 of regset structures.
6076 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6079 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6081 * regset.h (struct regset): Remove gdbarch field.
6082 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6083 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6084 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6086 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6087 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6088 (ppc32_linux_vsxregset): Likewise.
6089 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6090 via the regcache instead of the regset.
6091 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6092 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6093 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6094 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6097 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6099 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6100 Constify structures.
6101 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6102 (alphanbsd_aout_gregset): Likewise.
6103 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6104 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6106 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6107 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6109 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6110 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6111 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6112 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6113 * m88k-tdep.c (m88k_gregset): Likewise.
6114 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6115 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6116 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6117 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6118 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6119 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6120 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6121 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6122 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6124 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6125 * sh-tdep.h (sh_corefile_gregset): Likewise.
6126 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6127 * vax-tdep.c (vax_gregset): Likewise.
6129 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6131 Fix TLS access for -static -pthread.
6132 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6133 (try_thread_db_load_1): Initialize it.
6134 (thread_db_get_thread_local_address): Call it if LM is zero.
6135 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6136 * target.h (struct target_ops) (to_get_thread_local_address): Add
6137 load_module_addr comment.
6139 2014-05-21 Pedro Alves <palves@redhat.com>
6141 * dcache.c (dcache_read_memory_partial): If reading the cache line
6142 fails, fallback to reading just the memory the caller wanted.
6144 2014-05-20 Doug Evans <dje@google.com>
6146 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6147 instead of get_current_arch.
6149 2014-05-20 Pedro Alves <palves@redhat.com>
6151 * NEWS: Mention that compare-sections now works with all targets.
6153 * remote.c (PACKET_qCRC): New enum value.
6154 (remote_verify_memory): Don't send qCRC if the target has no
6155 execution. Use packet_support/packet_ok. If the target doesn't
6156 support the qCRC packet, fallback to a deep memory copy.
6157 (compare_sections_command): Say "target image" instead of "remote
6159 (_initialize_remote): Add PACKET_qCRC to the list of config
6160 packets that have no associated command. Extend comment.
6161 * target.c (simple_verify_memory, default_verify_memory): New
6163 * target.h (struct target_ops) <to_verify_memory>: Default to
6164 default_verify_memory.
6165 (simple_verify_memory): New declaration.
6166 * target-delegates.c: Regenerate.
6168 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6170 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6172 2014-05-20 Hui Zhu <hui@codesourcery.com>
6173 Yao Qi <yao@codesourcery.com>
6176 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6177 and change address of sp and pc.
6179 2014-05-19 Tom Tromey <tromey@redhat.com>
6181 * gdbtypes.c (rank_function): Use XNEWVEC.
6182 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6184 2014-05-19 Doug Evans <dje@google.com>
6186 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6187 build_type_unit_groups and moved closer to only caller. Remove
6188 arguments. All references updated. Remove outdated .gdb_index
6190 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6191 build_type_psymtabs_1.
6193 2014-05-19 Doug Evans <dje@google.com>
6195 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6196 n_type_unit_groups, all_type_unit_groups. All uses removed.
6197 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6198 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6199 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6200 (add_type_unit_group_to_table): Delete.
6202 2014-05-19 Doug Evans <dje@google.com>
6204 * eval.c (evaluate_subexp_standard): Add some comments.
6206 2014-05-17 Doug Evans <xdje42@gmail.com>
6208 * progspace.c (remove_program_space): Delete, unused.
6209 * progspace.h (remove_program_space): Ditto.
6211 2014-05-17 Doug Evans <xdje42@gmail.com>
6213 * inferior.c (prune_inferiors): Fix comment.
6214 (remove_inferior_command): Call prune_program_spaces.
6216 2014-05-16 Doug Evans <dje@google.com>
6218 New command line option -D.
6220 * main.c (set_gdb_data_directory): New function.
6221 (captured_main): Recognize -D. Flag error for --data-directory "".
6222 Call set_gdb_data_directory.
6223 (print_gdb_help): Print --data-directory, -D.
6224 * main.h (set_gdb_data_directory): Declare.
6225 * top.c (staged_gdb_datadir): New static global.
6226 (set_gdb_datadir): Call set_gdb_data_directory
6227 (show_gdb_datadir): New function.
6228 (init_main): Update init of data-directory parameter.
6230 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6232 Import the "dirfd" gnulib module.
6233 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6234 * gnulib/aclocal.m4: Update.
6235 * gnulib/config.in: Update.
6236 * gnulib/configure: Update.
6237 * gnulib/import/Makefile.am: Update.
6238 * gnulib/import/Makefile.in: Update.
6239 * gnulib/import/dirfd.c: New.
6240 * gnulib/import/m4/dirfd.m4: New.
6241 * gnulib/import/m4/gnulib-cache.m4: Update.
6242 * gnulib/import/m4/gnulib-comp.m4: Update.
6244 2014-05-16 Pierre Muller <muller@sourceware.org>
6245 Yao Qi <yao@codesourcery.com>
6247 * valprint.c (print_wchar): Move the code on checking whether
6248 W is a printable wide char to the default branch of switch
6249 statement below. Call wchar_printable instead of gdb_iswprint.
6251 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6253 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6254 ldr.w and ldrd instructions.
6256 2014-05-15 Doug Evans <dje@google.com>
6258 * dwarf2read.c (read_structure_type): Delete outdated comments.
6260 2014-05-14 Tom Tromey <tromey@redhat.com>
6262 * macrocmd.c (print_macro_definition): Reindent.
6264 2014-05-13 Doug Evans <xdje42@gmail.com>
6266 * python/py-cmd.c (cmdpy_completer): Add comment.
6267 (completers): Make const.
6269 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6271 * infrun.c (resume): Remove should_resume (unused). Move up
6272 declaration of resume_ptid.
6274 2014-05-13 Tom Tromey <tromey@redhat.com>
6276 * language.h (unop_type_check): Remove.
6277 (binop_type_check): Don't declare.
6279 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6281 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6282 call to regcache_raw_collect.
6284 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6286 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6287 mi_console->quote as the quoting character.
6289 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6291 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6293 2014-04-29 Tom Tromey <tromey@redhat.com>
6295 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6296 "show debug varobj".
6298 2014-05-07 Kyle McMartin <kyle@redhat.com>
6300 Pushed by Joel Brobecker <brobecker@adacore.com>.
6301 * aarch64-tdep.c (aarch64_software_single_step): New function.
6302 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6303 with aarch64_software_single_step.
6305 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6309 2014-05-05 Keith Seitz <keiths@redhat.com>
6311 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6312 variable or history value is successfully parsed.
6314 2014-05-05 Yao Qi <yao@codesourcery.com>
6315 Pedro Alves <palves@redhat.com>
6317 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6318 address of blocks that intersects the requested range. Trim
6319 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6321 * ctf.c (ctf_xfer_partial): Likewise.
6323 2014-05-05 Yao Qi <yao@codesourcery.com>
6325 * printcmd.c (display_command): Remove the check to
6326 target_has_execution.
6328 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6330 * ppcobsd-nat.c: Include "obsd-nat.h".
6331 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6333 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6335 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6337 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6338 and 16-bit signed and unsigned arguments. Update comment.
6339 (stap_parse_probe_arguments): Extend code to handle such
6340 arguments. Use warning instead of complaint to notify about
6341 unrecognized bitness.
6343 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6345 PR breakpoints/16889
6346 * stap-probe.c (stap_parse_probe_arguments): Simplify
6347 check for non-prefixed probes (i.e., probes whose
6348 arguments do not start with "N@"). Always set the
6349 argument type to a sane value.
6351 2014-05-01 David Taylor <dtaylor@emc.com>
6353 * remote.c (compare_sections_command): Add -r option to compare
6354 all loadable read-only sections.
6356 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6358 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6359 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6361 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6362 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6363 Remove unused CORE_ADDR argument. Update all callers.
6365 2014-04-29 Pedro Alves <palves@redhat.com>
6367 * remote.c (struct packet_config) <detect>: Extend comment.
6368 (add_packet_config_cmd): Don't set the config's detect or support
6370 (init_all_packet_configs): Also initialize the config's 'detect'
6372 (reset_all_packet_configs_support): New function.
6373 (remote_open_1): Call reset_all_packet_configs_support instead of
6374 init_all_packet_configs.
6375 (_initialize_remote): Initialize all packet configs. Assert that
6376 all packets have an associated command, except a few known
6379 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6381 * dwarf2read.c (read_subrange_type): Handle dynamic
6382 DW_AT_lower_bound attributes.
6384 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6386 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6387 dynamic bounds before computing its upper bound.
6388 (ada_discrete_type_low_bound): Same as above with the lower bound.
6390 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6392 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6393 range types. Adjust the array handling implementation to
6394 take advantage of this change.
6395 (resolve_dynamic_range): New function, mostly extracted from
6396 resolve_dynamic_bounds.
6397 (resolve_dynamic_array): New function, mostly extracted from
6398 resolve_dynamic_bounds.
6399 (resolve_dynamic_bounds): Delete.
6400 (resolve_dynamic_type): Reimplement. Add handling of
6401 TYPE_CODE_RANGE types.
6403 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6405 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6406 handling of parallel ___XA types.
6408 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6410 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6411 unnecessary second call to static_unwrap_type.
6413 2014-04-27 Hui Zhu <hui@codesourcery.com>
6415 * stack.c (print_frame_info): Call do_gdb_disassembly with
6416 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6418 2014-04-26 Doug Evans <xdje42@gmail.com>
6420 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6422 2014-04-25 Pedro Alves <palves@redhat.com>
6425 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6426 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6427 and newline from built string.
6428 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6429 (linux_ptrace_attach_fail_reason): ... this.
6430 * linux-nat.c (linux_nat_attach): Adjust to use
6431 linux_ptrace_attach_fail_reason.
6433 2014-04-25 Pedro Alves <palves@redhat.com>
6435 * remote.c (struct remote_state): Remove multi_process_aware,
6436 non_stop_aware, cond_tracepoints, cond_breakpoints,
6437 breakpoint_commands, fast_tracepoints, static_tracepoints,
6438 install_in_trace, disconnected_tracing,
6439 enable_disable_tracepoints, string_tracing, and
6440 augmented_libraries_svr4_read fields.
6441 (remote_multi_process_p): Move further below in the file.
6442 (struct packet_config): Add comments.
6443 (update_packet_config): Delete function.
6444 (show_packet_config_cmd): Use packet_config_support.
6445 (add_packet_config_cmd): Use NULL as set callback.
6446 (packet_ok): "set remote foo-packet"-style commands no longer
6447 change config->supported -- adjust.
6448 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6449 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6450 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6451 (PACKET_QNonStop, PACKET_multiprocess_feature)
6452 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6453 (PACKET_DisconnectedTracing_feature)
6454 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6455 (set_remote_protocol_packet_cmd): Delete function.
6456 (packet_config_support, packet_support): New functions.
6457 (set_remote_protocol_Z_packet_cmd): Don't call
6458 update_packet_config.
6459 (remote_query_attached, remote_pass_signals)
6460 (remote_program_signals, remote_threads_info)
6461 (remote_threads_extra_info, remote_start_remote): Use
6463 (remote_start_remote): Use packet_config_support and
6465 (init_all_packet_configs): Set all packets to unknown support,
6466 instead of calling update_packet_config.
6467 (remote_check_symbols): Use packet_support.
6468 (remote_supported_packet): Unconditionally set the packet config's
6470 (remote_multi_process_feature, remote_non_stop_feature)
6471 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6472 (remote_breakpoint_commands_feature)
6473 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6474 (remote_install_in_trace_feature)
6475 (remote_disconnected_tracing_feature)
6476 (remote_enable_disable_tracepoint_feature)
6477 (remote_string_tracing_feature)
6478 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6479 (remote_protocol_features): Adjust to use remote_supported_packet
6480 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6481 "ConditionalTracepoints", "ConditionalBreakpoints",
6482 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6483 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6484 "EnableDisableTracepoints", and "tracenz".
6485 (remote_query_supported): Use packet_support.
6486 (remote_open_1): Adjust.
6487 (extended_remote_attach_1): Use packet_support. Switch on the
6488 result of packet_ok instead of checking whether the packet ended
6490 (remote_vcont_resume): Use packet_support.
6491 (remote_resume, remote_stop_ns, fetch_register_using_p)
6492 (remote_prepare_to_store, store_register_using_P)
6493 (check_binary_download, remote_write_bytes): Use packet_support.
6494 (remote_vkill): Use packet_support. Switch on the result of
6495 packet_ok instead of checking whether the packet ended up
6497 (extended_remote_supports_disable_randomization): Use
6499 (extended_remote_run): Switch on the result of packet_ok instead
6500 of checking whether the packet ended up disabled.
6501 (remote_insert_breakpoint, remote_remove_breakpoint)
6502 (remote_insert_watchpoint, remote_remove_watchpoint)
6503 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6505 (remote_search_memory): Use packet_config_support.
6506 (remote_get_thread_local_address, remote_get_tib_address)
6507 (remote_hostio_send_command, remote_can_execute_reverse): Use
6509 (remote_supports_cond_tracepoints)
6510 (remote_supports_cond_breakpoints)
6511 (remote_supports_fast_tracepoints)
6512 (remote_supports_static_tracepoints)
6513 (remote_supports_install_in_trace)
6514 (remote_supports_enable_disable_tracepoint)
6515 (remote_supports_string_tracing)
6516 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6517 the packet config says the feature is enabled or disabled.
6518 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6519 (remote_get_trace_status): Use packet_support.
6520 (remote_set_disconnected_tracing): Adjust to check whether the
6521 feature is enabled with packet_support.
6522 (remote_set_trace_buffer_size, remote_use_agent)
6523 (remote_can_use_agent, remote_supports_btrace): Use
6525 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6526 Use packet_config_support.
6527 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6528 the packet config says the feature is enabled or disabled.
6529 (set_range_stepping): Use packet_support.
6531 2014-04-25 Tom Tromey <tromey@redhat.com>
6533 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6536 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6538 * NEWS: Mention support for C99 variable length arrays.
6540 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6542 * ada-lang.c (standard_exc): Expand introductory comment.
6544 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6545 Walfred Tedeschi <walfred.tedeschi@intel.com>
6547 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6549 (amd64_linux_read_description): Add code to handle AVX512 xstate
6550 mask and return respective tdesc.
6551 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6552 and features/i386/x32-avx512-linux.c.
6553 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6554 (amd64_linux_core_read_description): Add code to handle AVX512
6555 xstate mask and return respective tdesc.
6556 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6557 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6559 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6560 (tdesc_amd64_avx512_linux): New prototype.
6561 (tdesc_x32_avx512_linux): Likewise.
6562 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6563 features/i386/x32-avx512.c.
6564 (amd64_ymm_avx512_names): New register names for pseudo
6566 (amd64_ymmh_avx512_names): New register names for raw registers
6568 (amd64_k_names): New register names for K registers.
6569 (amd64_zmmh_names): New register names for ZMM raw registers.
6570 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6571 (amd64_xmm_avx512_names): New register names for XMM16-31
6573 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6575 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6576 if feature is present.
6577 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6578 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6579 (AMD64_NUM_REGS): Adjust to new number of registers.
6580 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6581 registers supplied via XSTATE by AVX512 registers.
6582 (i386_linux_read_description): Add case for AVX512.
6583 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6584 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6585 (i386_linux_core_read_description): Add case for AVX512.
6586 (i386_linux_init_abi): Install supported register note section
6588 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6590 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6591 registers to be number of zmm7h + 1.
6592 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6593 * i386-tdep.c: Include features/i386/i386-avx512.c.
6594 (i386_zmm_names): Add ZMM pseudo register names array.
6595 (i386_zmmh_names): Add ZMM raw register names array.
6596 (i386_k_names): Add K raw register names array.
6597 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6598 registers. AVX512 has 16 more ZMM registers than there are YMM
6600 (i386_zmmh_regnum_p): Add function to look up register number of
6602 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6603 (i386_k_regnum_p): Likewise for K raw registers.
6604 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6605 registers added by AVX512.
6606 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6607 registers added by AVX512.
6608 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6610 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6611 (i386_pseudo_register_name): Add ZMM pseudo registers.
6612 (i386_zmm_type): Construct and return vector registers type for ZMM
6614 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6615 ZMM0-31 pseudo registers and K registers.
6616 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6617 and YMM16-31 registers from register cache.
6618 (i386_pseudo_register_write): Add code to write K, ZMM and
6620 (i386_register_reggroup_p): Add code to include/exclude AVX512
6621 registers in/from respective register groups.
6622 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6623 registers if feature is present in xcr0.
6624 (i386_gdbarch_init): Add code to initialize AVX512 feature
6625 variables in tdep structure, wire in pseudo registers and call
6626 initialize_tdesc_i386_avx512.
6627 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6629 (i386_regnum): Add AVX512 registers.
6630 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6631 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6632 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6633 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6635 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6636 (i386_ymm_avx512_regnum_p): Likewise.
6637 (i386_k_regnum_p): Likewise.
6638 (i386_zmm_regnum_p): Likewise.
6639 (i386_zmmh_regnum_p): Likewise.
6640 * i387-tdep.c : Update year in copyright notice.
6641 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6643 (XSAVE_YMM_AVX512_ADDR): New macro.
6644 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6646 (XSAVE_XMM_AVX512_ADDR): New macro.
6647 (xsave_avx512_k_offset): New table for K register offsets in
6649 (XSAVE_AVX512_K_ADDR): New macro.
6650 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6652 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6653 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6655 (i387_collect_xsave): Add code to collect AVX512 registers from
6657 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6658 of XMM16-31 registers.
6659 (I387_NUM_K_REGS): New define for number of K registers.
6660 (I387_K0_REGNUM): New define for K0 register number.
6661 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6662 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6663 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6665 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6666 (I387_XMM16_REGNUM): New define for XMM16 register number.
6667 (I387_YMM0_REGNUM): New define for YMM0 register number.
6668 (I387_KEND_REGNUM): New define for last K register number.
6669 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6670 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6672 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6674 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6676 * features/Makefile: Add AVX512 related files.
6677 * features/i386/32bit-avx512.xml: New file.
6678 * features/i386/64bit-avx512.xml: Likewise.
6679 * features/i386/amd64-avx512-linux.c: Likewise.
6680 * features/i386/amd64-avx512-linux.xml: Likewise.
6681 * features/i386/amd64-avx512.c: Likewise.
6682 * features/i386/amd64-avx512.xml: Likewise.
6683 * features/i386/i386-avx512-linux.c: Likewise.
6684 * features/i386/i386-avx512-linux.xml: Likewise.
6685 * features/i386/i386-avx512.c: Likewise.
6686 * features/i386/i386-avx512.xml: Likewise.
6687 * features/i386/x32-avx512-linux.c: Likewise.
6688 * features/i386/x32-avx512-linux.xml: Likewise.
6689 * features/i386/x32-avx512.c: Likewise.
6690 * features/i386/x32-avx512.xml: Likewise.
6691 * regformats/i386/amd64-avx512-linux.dat: New file.
6692 * regformats/i386/amd64-avx512.dat: Likewise.
6693 * regformats/i386/i386-avx512-linux.dat: Likewise.
6694 * regformats/i386/i386-avx512.dat: Likewise.
6695 * regformats/i386/x32-avx512-linux.dat: Likewise.
6696 * regformats/i386/x32-avx512.dat: Likewise.
6697 * NEWS: Add note about new support for AVX512.
6700 2014-04-23 Pedro Alves <palves@redhat.com>
6702 * breakpoint.c (insert_bp_location): Tolerate errors if the
6703 breakpoint is set in a user-loaded objfile.
6704 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6705 location is marked shlib_disabled. If the breakpoint is set in a
6706 user-loaded objfile is a GDB-side memory breakpoint, validate it
6707 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6708 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6710 * mem-break.c (memory_validate_breakpoint): New function.
6711 * objfiles.c (userloaded_objfile_contains_address_p): New
6713 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6714 * target.h (memory_validate_breakpoint): New declaration.
6716 2014-04-23 Pedro Alves <palves@redhat.com>
6718 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6719 the breakpoint is set in a shared library, only suppress
6720 errors for software breakpoints, not hardware breakpoints.
6722 2014-04-22 Pedro Alves <palves@redhat.com>
6724 * infrun.c (schedlock_applies): New function, factored out from
6725 find_thread_needs_step_over.
6726 (find_thread_needs_step_over): Use it.
6727 (switch_back_to_stepped_thread): Always clear trap_expected if the
6728 step over is finished. Return early if scheduler locking applies.
6729 Look for the stepping thread and a potential step-over thread with
6731 (currently_stepping_or_nexting_callback): Delete.
6733 2014-04-22 Nick Clifton <nickc@redhat.com>
6735 * NEWS: Mention that ARM sim now supports tracing.
6737 2014-04-22 Yao Qi <yao@codesourcery.com>
6739 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6741 * tracefile.c (tracefile_fetch_registers): ... it. New
6743 * tracefile.h (tracefile_fetch_registers): Declare.
6744 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6745 tracefile_fetch_registers.
6747 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6750 * windows-nat.c (thread_rec): Don't display a warning when
6751 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6752 fails for any reason, set th->suspended to -1, so that we don't
6753 try to resume such a thread. Also, don't return NULL in these
6754 cases, to avoid completely ruin the session due to "PC register is
6755 not available" error.
6756 (do_windows_fetch_inferior_registers): Check errors in
6757 GetThreadContext call.
6758 (windows_continue): Accept an additional argument KILLED; if not
6759 zero, ignore errors in the SetThreadContext call, since the
6760 inferior was killed and is shutting down.
6761 (windows_resume, get_windows_debug_event)
6762 (windows_create_inferior, windows_mourn_inferior)
6763 (windows_kill_inferior): All callers of windows_continue changed
6764 to adjust to its new calling sequence.
6766 2014-04-19 Yao Qi <yao@codesourcery.com>
6768 * ctf.c (ctf_open): Call post_create_inferior.
6770 2014-04-19 Yao Qi <yao@codesourcery.com>
6772 * ctf.c (handle_id): New static variable.
6773 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6774 value. Get the declaration of event "register" and get length
6775 of field "contents".
6777 2014-04-19 Yao Qi <yao@codesourcery.com>
6779 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6781 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6783 * valops.c (oload_method_static): Remove unnecessary argument
6784 METHOD. Update all callers.
6786 2014-04-18 Pedro alves <palves@redhat.com>
6787 Tom Tromey <tromey@redhat.com>
6790 * frame.c (get_prev_frame_1): Rename to ...
6791 (get_prev_frame_always): ... this, and make extern. Adjust.
6792 (skip_artificial_frames): Use get_prev_frame_always.
6793 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6794 (get_frame_unwind_stop_reason): Adjust to rename.
6795 * frame.h (get_prev_frame_always): Declare.
6796 * inline-frame.c: Include frame.h.
6797 (inline_frame_this_id): Use get_prev_frame_always.
6799 2014-04-18 Tristan Gingold <gingold@adacore.com>
6801 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6802 code by using bfd_mach_o_get_base_address.
6804 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6806 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6807 (spu_ax_pseudo_register_collect): New function.
6808 (spu_ax_pseudo_register_push_stack): Likewise.
6809 (spu_dwarf_reg_to_regnum): Likewise.
6810 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6812 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6814 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6815 Replace FRAME argument with FRAME_ID.
6816 * gdbarch.c, gdbarch.h: Regenerate.
6817 * findvar.c (default_value_from_register): Add GDBARCH argument;
6818 replace FRAME by FRAME_ID. No longer call get_frame_id.
6819 (value_from_register): Update call to gdbarch_value_from_register.
6820 * value.h (default_value_from_register): Update prototype.
6821 * s390-linux-tdep.c (s390_value_from_register): Update interface
6822 and call to default_value_from_register.
6823 * spu-tdep.c (spu_value_from_register): Likewise.
6825 * findvar.c (address_from_register): Remove TYPE argument.
6826 Do not call value_from_register; use gdbarch_value_from_register
6827 with null_frame_id instead.
6828 * value.h (address_from_register): Update prototype.
6829 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6830 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6831 address_from_register interface change.
6833 2014-04-17 Yao Qi <yao@codesourcery.com>
6835 * gdbtypes.h: Update comments to link to types and macros'
6838 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6840 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6842 2014-04-16 Keith Seitz <keiths@redhat.com>
6845 * dwarf2read.c (skip_one_die): Check that all relative-offset
6846 sibling DIEs fall within range of the current reader's buffer.
6847 (read_partial_die): Likewise.
6849 2014-04-16 Keith Seitz <keiths@redhat.com>
6852 * cp-namespace.c (lookup_symbol_file): If the type name of
6853 `this' is NULL, return immediately.
6855 2014-04-14 Keith Seitz <keiths@redhat.com>
6858 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6859 from symbol_matches_domain in symtab.c. All local callers
6860 of symbol_matches_domain updated.
6861 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6862 search STRUCT_DOMAIN.
6863 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6864 independently. standard_lookup will do that automatically.
6865 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6866 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6867 (cp_lookup_symbol_in_namespace): Likewise.
6868 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6869 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6870 may return a STRUCT_DOMAIN match.
6871 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6872 * cp-support.c: Include language.h.
6873 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6875 * psymtab.c (match_partial_symbol): Compare the requested
6876 domain with the symbol's domain directly.
6877 (lookup_partial_symbol): Likewise.
6878 * symtab.c (lookup_symbol_in_language): Explain when/why
6879 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6880 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6881 appropriate languages.
6882 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6883 and moved to ada-lang.c
6884 (lookup_block_symbol): Explain that this function only returns
6885 symbol matching the requested DOMAIN.
6886 Compare the requested domain with the symbol's domain directly.
6887 (iterate_over_symbols): Compare the requested domain with the
6888 symbol's domain directly.
6889 * symtab.h (symbol_matches_domain): Remove.
6891 2014-04-14 Tom Tromey <tromey@redhat.com>
6894 * c-exp.y (type_aggregate_p): New function.
6895 (qualified_name, classify_inner_name): Use it.
6896 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6897 and TYPE_TARGET_TYPE of an enum type.
6898 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6900 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6901 handle TYPE_DECLARED_CLASS.
6902 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6904 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6905 * valops.c (enum_constant_from_type): New function.
6906 (value_aggregate_elt): Use it.
6907 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6910 2014-04-14 Tom Tromey <tromey@redhat.com>
6912 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6913 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6915 * value.h (value_aggregate_elt): Update.
6917 2014-04-14 Tom Tromey <tromey@redhat.com>
6919 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6921 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6923 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6924 (evaluate_subexp_standard): Pass noside argument.
6925 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6926 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6927 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6928 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6929 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6931 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6933 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6934 points to a constant blob.
6936 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6938 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6939 property and store it as the high bound and flag the range accordingly.
6940 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6941 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6942 * gdbtypes.h (enum range_flags): New enum.
6943 (struct range_bounds): Add flags member.
6945 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6947 * c-typeprint.c (c_type_print_varspec_suffix): Added
6948 check for not yet resolved high bound. If unresolved, print
6949 "variable length" string to the console instead of random
6952 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6954 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6956 (ada_template_to_fixed_record_type_1): Likewise.
6957 (ada_to_fixed_type_1): Likewise.
6958 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6959 (cp_print_value): Likewise.
6960 * d-valprint.c (dynamic_array_type): Likewise.
6961 * findvar.c (address_of_variable): Likewise.
6962 * jv-valprint.c (java_value_print): Likewise.
6963 * valops.c (value_ind): Likewise.
6964 * value.c (coerce_ref): Likewise.
6966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6969 value and retrieve the dynamic type size.
6971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6973 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6974 passed to sizeof is dynamic evaluate the argument to compute the length.
6976 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6977 Joel Brobecker <brobecker@adacore.com>
6979 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6980 (dwarf2_evaluate_property): New function.
6981 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6982 * dwarf2read.c (attr_to_dynamic_prop): New function.
6983 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6985 * gdbtypes.c: Include dwarf2loc.h.
6986 (is_dynamic_type): New function.
6987 (resolve_dynamic_type): New function.
6988 (resolve_dynamic_bounds): New function.
6989 (get_type_length): New function.
6990 (check_typedef): Use get_type_length to compute type length.
6991 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6992 (TYPE_LOW_BOUND_KIND): New macro.
6993 (is_dynamic_type): New function prototype.
6994 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6995 to resolve dynamic properties of the type. Update comment.
6996 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6998 2014-04-14 Richard Henderson <rth@redhat.com>
7000 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7002 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7003 Doug Evans <xdje42@gmail.com>
7005 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7006 dereference TYPE_CODE_REF values.
7008 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7010 Revert the following changes due to regressions:
7012 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7013 (dwarf2_evaluate_property): New function.
7014 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7015 * dwarf2read.c (attr_to_dynamic_prop): New function.
7016 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7018 * gdbtypes.c: Include dwarf2loc.h.
7019 (is_dynamic_type): New function.
7020 (resolve_dynamic_type): New function.
7021 (resolve_dynamic_bounds): New function.
7022 (get_type_length): New function.
7023 (check_typedef): Use get_type_length to compute type length.
7024 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7025 (TYPE_LOW_BOUND_KIND): New macro.
7026 (is_dynamic_type): New function prototype.
7027 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7028 to resolve dynamic properties of the type. Update comment.
7029 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7031 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7032 passed to sizeof is dynamic evaluate the argument to compute the length.
7034 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7035 value and retrieve the dynamic type size.
7037 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7038 (ada_template_to_fixed_record_type_1): Likewise.
7039 (ada_to_fixed_type_1): Likewise.
7040 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7041 (cp_print_value): Likewise.
7042 * d-valprint.c (dynamic_array_type): Likewise.
7043 * eval.c (evaluate_subexp_with_coercion): Likewise.
7044 * findvar.c (address_of_variable): Likewise.
7045 * jv-valprint.c (java_value_print): Likewise.
7046 * valops.c (value_ind): Likewise.
7047 * value.c (coerce_ref): Likewise.
7049 * c-typeprint.c (c_type_print_varspec_suffix): Added
7050 check for not yet resolved high bound. If unresolved, print
7051 "variable length" string to the console instead of random
7054 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7055 property and store it as the high bound and flag the range accordingly.
7056 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7057 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7058 * gdbtypes.h (enum range_flags): New enum.
7059 (struct range_bounds): Add flags member.
7061 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7062 points to a constant blob.
7064 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7065 (evaluate_subexp_standard): Pass noside argument.
7066 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7067 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7068 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7069 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7070 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7072 2014-04-11 Keith Seitz <keiths@redhat.com>
7075 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7076 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7079 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7081 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7082 (evaluate_subexp_standard): Pass noside argument.
7083 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7084 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7085 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7086 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7087 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7089 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7091 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7092 points to a constant blob.
7094 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7096 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7097 property and store it as the high bound and flag the range accordingly.
7098 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7099 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7100 * gdbtypes.h (enum range_flags): New enum.
7101 (struct range_bounds): Add flags member.
7103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7105 * c-typeprint.c (c_type_print_varspec_suffix): Added
7106 check for not yet resolved high bound. If unresolved, print
7107 "variable length" string to the console instead of random
7110 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7112 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7113 (ada_template_to_fixed_record_type_1): Likewise.
7114 (ada_to_fixed_type_1): Likewise.
7115 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7116 (cp_print_value): Likewise.
7117 * d-valprint.c (dynamic_array_type): Likewise.
7118 * eval.c (evaluate_subexp_with_coercion): Likewise.
7119 * findvar.c (address_of_variable): Likewise.
7120 * jv-valprint.c (java_value_print): Likewise.
7121 * valops.c (value_ind): Likewise.
7122 * value.c (coerce_ref): Likewise.
7124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7126 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7127 value and retrieve the dynamic type size.
7129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7131 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7132 passed to sizeof is dynamic evaluate the argument to compute the length.
7134 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7136 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7137 (dwarf2_evaluate_property): New function.
7138 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7139 * dwarf2read.c (attr_to_dynamic_prop): New function.
7140 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7142 * gdbtypes.c: Include dwarf2loc.h.
7143 (is_dynamic_type): New function.
7144 (resolve_dynamic_type): New function.
7145 (resolve_dynamic_bounds): New function.
7146 (get_type_length): New function.
7147 (check_typedef): Use get_type_length to compute type length.
7148 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7149 (TYPE_LOW_BOUND_KIND): New macro.
7150 (is_dynamic_type): New function prototype.
7151 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7152 to resolve dynamic properties of the type. Update comment.
7153 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7155 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7157 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7158 declaring high/low bounds and change uses accordingly. Call
7159 create_range_type instead of create_static_range_type.
7160 * gdbtypes.c (create_range_type): New function.
7161 (create_range_type): Convert bounds into struct bound_prop and pass
7162 them to create_range_type.
7163 * gdbtypes.h (struct bound_prop): New struct.
7164 (create_range_type): New function prototype.
7165 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7166 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7167 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7169 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7171 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7173 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7174 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7175 * ada-lang.c: All uses of create_range_type updated.
7176 * coffread.c: All uses of create_range_type updated.
7177 * dwarf2read.c: All uses of create_range_type updated.
7178 * f-exp.y: All uses of create_range_type updated.
7179 * m2-valprint.c: All uses of create_range_type updated.
7180 * mdebugread.c: All uses of create_range_type updated.
7181 * stabsread.c: All uses of create_range_type updated.
7182 * valops.c: All uses of create_range_type updated.
7183 * valprint.c: All uses of create_range_type updated.
7185 2014-04-10 Pedro Alves <palves@redhat.com>
7187 * breakpoint.c (single_step_breakpoints)
7188 (single_step_gdbarch): Move up in the file.
7189 (one_breakpoint_xfer_memory): New function, factored out from ...
7190 (breakpoint_xfer_memory): ... here. Also process single-step
7193 2014-04-09 Tristan Gingold <gingold@adacore.com>
7195 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7197 (darwin_decode_exception_message): Free port only after use.
7199 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7201 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7202 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7203 when setting the size of call_length.
7205 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7207 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7208 dereference TYPE_CODE_REF values.
7210 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7212 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7213 end of warning message.
7215 2014-04-03 Doug Evans <dje@google.com>
7217 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7218 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7220 2014-04-02 Alan Modra <amodra@gmail.com>
7222 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7223 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7224 (struct symbol_file_add_from_memory_args): Add size field.
7225 (find_vdso_size): New function.
7226 (add_vsyscall_page): Attempt to find vdso size.
7228 2014-04-01 Doug Evans <dje@google.com>
7230 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7232 2014-04-01 Tristan Gingold <gingold@adacore.com>
7234 * darwin-nat.c (darwin_encode_reply): Add prototype.
7235 (darwin_decode_exception_message): Reply to unknown inferiors.
7236 (darwin_decode_message): Handle message by id. Ignore message
7237 to unknown inferior.
7238 (darwin_wait): Discard unknown messages, add debug trace.
7240 2014-03-31 Doug Evans <dje@google.com>
7242 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7245 2014-03-31 Doug Evans <dje@google.com>
7247 New option "set print symbol-loading".
7249 * solib.c (solib_read_symbols): Only print symbol loading messages
7251 (solib_add): If symbol loading is in "brief" mode, notify user
7252 symbols are being loaded.
7253 (reload_shared_libraries_1): Ditto.
7254 * symfile.c (print_symbol_loading_off): New static global.
7255 (print_symbol_loading_brief): New static global.
7256 (print_symbol_loading_full): New static global.
7257 (print_symbol_loading_enums): New static global.
7258 (print_symbol_loading): New static global.
7259 (print_symbol_loading_p): New function.
7260 (symbol_file_add_with_addrs): Only print symbol loading messages
7262 (_initialize_symfile): Register "print symbol-loading" set/show
7264 * symfile.h (print_symbol_loading_p): Declare.
7266 2014-03-30 Doug Evans <xdje42@gmail.com>
7268 * infrun.c (set_last_target_status): New function.
7269 (handle_inferior_event): Call it.
7271 2014-03-30 Doug Evans <xdje42@gmail.com>
7273 * inferior.h (enum stop_kind): Improve comment.
7275 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7277 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7278 a reference, strip the reference layer before calling
7279 the lang_ops value_has_mutated callback.
7281 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7283 Remove some globals from our parser.
7284 * language.c (unk_lang_parser): Add "struct parser_state"
7286 * language.h (struct language_defn) <la_parser>: Likewise.
7287 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7288 (initialize_expout): Add "struct parser_state" argument.
7289 Rewrite function to use the parser state.
7290 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7291 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7292 write_exp_elt_longcst, write_exp_elt_dblcst,
7293 write_exp_elt_decfloatcst, write_exp_elt_type,
7294 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7295 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7296 write_dollar_variable): Likewise.
7297 (parse_exp_in_context_1): Use parser state.
7298 (insert_type_address_space): Add "struct parser_state" argument.
7300 (increase_expout_size): New function.
7301 * parser-defs.h: Forward declare "struct language_defn" and
7302 "struct parser_state".
7303 (expout, expout_size, expout_ptr): Remove extern declarations.
7304 (parse_gdbarch, parse_language): Rewrite macro declarations to
7305 accept the parser state.
7306 (struct parser_state): New struct.
7307 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7308 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7309 write_exp_elt_decfloatcst, write_exp_elt_type,
7310 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7311 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7312 write_exp_msymbol, write_dollar_variable,
7313 mark_struct_expression, insert_type_address_space): Add "struct
7314 parser_state" argument.
7315 (increase_expout_size): New function.
7316 * utils.c (do_clear_parser_state): New function.
7317 (make_cleanup_clear_parser_state): Likewise.
7318 * utils.h (make_cleanup_clear_parser_state): New function
7320 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7321 Update calls to write_exp* in order to pass the parser state.
7322 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7323 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7324 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7325 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7326 * stap-probe.c (stap_parse_register_operand): Likewise.
7327 (stap_parse_single_operand): Likewise.
7328 (stap_parse_argument_1): Likewise.
7329 (stap_parse_argument): Use parser state.
7330 * stap-probe.h: Include "parser-defs.h".
7331 (struct stap_parse_info) <pstate>: New field.
7332 * c-exp.y (parse_type): Rewrite to use parser state.
7333 (yyparse): Redefine to c_parse_internal.
7334 (pstate): New global variable.
7335 (parse_number): Add "struct parser_state" argument.
7336 (write_destructor_name): Likewise.
7337 (type_exp): Update calls to write_exp* and similars in order to
7339 (exp1, exp, variable, qualified_name, space_identifier,
7340 typename, typebase): Likewise.
7341 (write_destructor_name, parse_number, lex_one_token,
7342 classify_name, classify_inner_name, c_parse): Add "struct
7343 parser_state" argument. Update function to use parser state.
7344 * c-lang.h: Forward declare "struct parser_state".
7345 (c_parse): Add "struct parser_state" argument.
7346 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7347 (yyparse): Redefine macro to ada_parse_internal.
7348 (pstate): New variable.
7349 (write_int, write_object_renaming, write_var_or_type,
7350 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7351 type_int, type_long, type_long_long, type_float, type_double,
7352 type_long_double, type_char, type_boolean, type_system_address):
7353 Add "struct parser_state" argument.
7354 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7355 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7356 var_or_type, aggregate, aggregate_component_list,
7357 positional_list, others, component_group,
7358 component_associations): Update calls to write_exp* and similar
7359 functions in order to use parser state.
7360 (ada_parse, write_var_from_sym, write_int,
7361 write_exp_op_with_string, write_object_renaming,
7362 find_primitive_type, write_selectors, write_ambiguous_var,
7363 write_var_or_type, write_name_assoc, type_int, type_long,
7364 type_long_long, type_float, type_double, type_long_double,
7365 type_char, type_boolean, type_system_address): Add "struct
7366 parser_state" argument. Adjust function to use parser state.
7367 * ada-lang.c (parse): Likewise.
7368 * ada-lang.h: Forward declare "struct parser_state".
7369 (ada_parse): Add "struct parser_state" argument.
7370 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7371 calls to both functions.
7372 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7374 (yyparse): Redefine macro to f_parse_internal.
7375 (pstate): New variable.
7376 (parse_number): Add "struct parser_state" argument.
7377 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7378 and similars in order to use parser state.
7379 (parse_number): Adjust code to use parser state.
7381 (f_parse): New function.
7382 * f-lang.h: Forward declare "struct parser_state".
7383 (f_parse): Add "struct parser_state" argument.
7384 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7386 (yyparse): Redefine macro for java_parse_internal.
7387 (pstate): New variable.
7388 (push_expression_name, push_expression_name, insert_exp): Add
7389 "struct parser_state" argument.
7390 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7391 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7392 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7393 PostIncrementExpression, PostDecrementExpression,
7394 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7395 UnaryExpressionNotPlusMinus, CastExpression,
7396 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7397 RelationalExpression, EqualityExpression, AndExpression,
7398 ExclusiveOrExpression, InclusiveOrExpression,
7399 ConditionalAndExpression, ConditionalOrExpression,
7400 ConditionalExpression, Assignment, LeftHandSide): Update
7401 calls to write_exp* and similars in order to use parser state.
7402 (parse_number): Ajust code to use parser state.
7404 (java_parse): New function.
7405 (push_variable): Add "struct parser_state" argument. Adjust
7406 code to user parser state.
7407 (push_fieldnames, push_qualified_expression_name,
7408 push_expression_name, insert_exp): Likewise.
7409 * jv-lang.h: Forward declare "struct parser_state".
7410 (java_parse): Add "struct parser_state" argument.
7411 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7413 (yyparse): Redefine macro to m2_parse_internal.
7414 (pstate): New variable.
7415 (type_exp, exp, fblock, variable, type): Update calls to
7416 write_exp* and similars to use parser state.
7418 (m2_parse): New function.
7419 * m2-lang.h: Forward declare "struct parser_state".
7420 (m2_parse): Add "struct parser_state" argument.
7421 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7422 * objc-lang.h: Forward declare "struct parser_state".
7423 (end_msglist): Add "struct parser_state" argument.
7424 * p-exp.y (parse_type): Rewrite macro to use parser state.
7425 (yyparse): Redefine macro to pascal_parse_internal.
7426 (pstate): New variable.
7427 (parse_number): Add "struct parser_state" argument.
7428 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7429 write_exp* and similars in order to use parser state.
7430 (parse_number, yylex): Adjust code to use parser state.
7431 (pascal_parse): New function.
7432 * p-lang.h: Forward declare "struct parser_state".
7433 (pascal_parse): Add "struct parser_state" argument.
7434 * go-exp.y (parse_type): Rewrite macro to use parser state.
7435 (yyparse): Redefine macro to go_parse_internal.
7436 (pstate): New variable.
7437 (parse_number): Add "struct parser_state" argument.
7438 (type_exp, exp1, exp, variable, type): Update calls to
7439 write_exp* and similars in order to use parser state.
7440 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7441 to use parser state.
7442 (go_parse): Likewise.
7443 * go-lang.h: Forward declare "struct parser_state".
7444 (go_parse): Add "struct parser_state" argument.
7446 2014-03-27 Doug Evans <dje@google.com>
7448 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7450 2014-03-27 Doug Evans <dje@google.com>
7452 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7453 Remove argument abbrev_section. All callers updated.
7455 2014-03-27 Doug Evans <dje@google.com>
7457 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7458 addr_base, ranges_base.
7460 2014-03-26 Keith Seitz <keiths@redhat.com>
7462 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7463 types, not VAR_DOMAIN.
7465 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7467 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7469 * features/nios2-linux.c: Regenerated.
7470 * features/nios2.c: Regenerated.
7472 2014-03-25 Pedro Alves <palves@redhat.com>
7474 * cli/cli-script.c (script_from_file): Force the interpreter to
7477 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7479 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7480 small stack allocation.
7482 2014-03-24 Tristan Gingold <gingold@adacore.com>
7484 * darwin-nat.c (exc_server): Remove unused prototype.
7485 (darwin_dump_message): Correctly display data on x86_64.
7486 (darwin_encode_reply): Fix style.
7487 Add comments and fix indentation.
7489 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7491 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7493 2014-03-22 Doug Evans <xdje42@gmail.com>
7495 * infcmd.c: Whitespace fixes.
7496 (interrupt_command): Merge two function comments into one.
7498 2014-03-22 Doug Evans <xdje42@gmail.com>
7500 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7503 2014-03-22 Yao Qi <yao@codesourcery.com>
7505 * remote.c (target_read_live_memory): Remove.
7506 (memory_xfer_live_readonly_partial): Rename it to
7507 remote_xfer_live_readonly_partial. Remove argument 'object'.
7508 All callers updated. Call remote_read_bytes_1
7509 instead of target_read_live_memory.
7510 * tracepoint.c (set_traceframe_number): Remove.
7511 (make_cleanup_restore_traceframe_number): Likewise .
7512 * tracepoint.h (set_traceframe_number): Remove declaration.
7513 (make_cleanup_restore_traceframe_number): Likewise.
7515 2014-03-22 Yao Qi <yao@codesourcery.com>
7517 * remote.c (remote_read_bytes): Move code on reading from the
7519 (remote_read_bytes_1): ... here. New function.
7521 2014-03-22 Yao Qi <yao@codesourcery.com>
7523 * ctf.c (ctf_xfer_partial): Check the return value of
7524 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7525 return TARGET_XFER_UNAVAILABLE.
7526 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7527 * target.c (target_read_live_memory): Move it to remote.c.
7528 (memory_xfer_live_readonly_partial): Likewise.
7529 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7530 * remote.c (target_read_live_memory): Moved from target.c.
7531 (memory_xfer_live_readonly_partial): Likewise.
7532 (remote_read_bytes): Factored out from
7533 memory_xfer_partial_1.
7535 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7537 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7540 2014-03-21 Pedro Alves <palves@redhat.com>
7542 * infrun.c (normal_stop): Extend comment.
7544 2014-03-21 Hui Zhu <hui@codesourcery.com>
7545 Pedro Alves <palves@redhat.com>
7547 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7549 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7550 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7551 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7553 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7555 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7556 `z' formatted output modifier.
7558 2014-03-20 Tom Tromey <tromey@redhat.com>
7559 Sergio Durigan Junior <sergiodj@redhat.com>
7561 * probe.c (parse_probes): Turn assert into an ordinary error.
7562 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7563 exceptions when parsing probes. Rearrange the code for clarity.
7565 2014-03-20 Tom Tromey <tromey@redhat.com>
7568 * top.c (execute_command): Only dispatch events if the command
7571 2014-03-20 Tom Tromey <tromey@redhat.com>
7574 * infcall.c: Include event-top.h.
7575 (run_inferior_call): Call async_disable_stdin if needed.
7577 2014-03-20 Pedro Alves <palves@redhat.com>
7579 * infrun.c (prepare_to_proceed): Delete.
7580 (thread_still_needs_step_over): New function.
7581 (find_thread_needs_step_over): New function.
7582 (proceed): If the current thread needs a step-over, set its
7583 steping_over_breakpoint flag. Adjust to use
7584 find_thread_needs_step_over instead of prepare_to_proceed.
7585 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7586 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7588 (switch_back_to_stepped_thread): Step over breakpoints of all
7589 threads not the stepping thread, before switching back to the
7592 2014-03-20 Pedro Alves <palves@redhat.com>
7594 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7596 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7597 * infrun.c (saved_singlestep_ptid)
7598 (stepping_past_singlestep_breakpoint): Delete.
7599 (resume): Remove stepping_past_singlestep_breakpoint handling.
7600 (proceed): Store the prev_pc of the stepping thread too.
7601 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7603 (enum infwait_states): Delete infwait_thread_hop_state.
7604 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7606 (handle_inferior_event): Adjust.
7607 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7608 handling and the thread-hop code. Before removing single-step
7609 breakpoints, check whether the thread hit a single-step breakpoint
7610 of another thread. If it did, the trap is not a random signal.
7611 (switch_back_to_stepped_thread): If the event thread hit a
7612 single-step breakpoint, unblock it before switching to the
7613 stepping thread. Handle the case of the stepped thread having
7615 (keep_going): Handle the case of the current thread moving past a
7616 single-step breakpoint.
7618 2014-03-20 Pedro Alves <palves@redhat.com>
7621 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7622 are being stepped over.
7623 (breakpoint_address_match): Make extern.
7624 * breakpoint.h (breakpoint_address_match): New declaration.
7625 * inferior.h (stepping_past_instruction_at): New declaration.
7626 * infrun.c (struct step_over_info): New type.
7627 (step_over_info): New global.
7628 (set_step_over_info, clear_step_over_info)
7629 (stepping_past_instruction_at): New functions.
7630 (handle_inferior_event): Clear the step-over info when
7631 trap_expected is cleared.
7632 (resume): Remove now stale comment.
7633 (clear_proceed_status): Clear step-over info.
7634 (proceed): Adjust step-over handling to set or clear the step-over
7635 info instead of removing all breakpoints.
7636 (handle_signal_stop): When setting up a thread-hop, don't remove
7638 (stop_stepping): Clear step-over info.
7639 (keep_going): Adjust step-over handling to set or clear step-over
7640 info and then always inserting breakpoints, instead of removing
7641 all breakpoints when stepping over one.
7643 2014-03-20 Pedro Alves <palves@redhat.com>
7645 * infrun.c (previous_inferior_ptid): Adjust comment.
7646 (deferred_step_ptid): Delete.
7647 (infrun_thread_ptid_changed, prepare_to_proceed)
7648 (init_wait_for_inferior): Adjust.
7649 (handle_signal_stop): Delete deferred_step_ptid handling.
7651 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7654 * defs.h (sync_quit_force_run): New declaration.
7655 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7656 * event-top.c (async_sigterm_handler): New declaration.
7657 (async_sigterm_token): New variable.
7658 (async_init_signals): Create also async_sigterm_token.
7659 (async_sigterm_handler): New function.
7660 (sync_quit_force_run): New variable.
7661 (handle_sigterm): Replace quit_force call by other calls.
7662 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7664 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7666 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7667 offset into SPE pseudo registers.
7669 2014-03-18 Pedro Alves <palves@redhat.com>
7672 * inferior.h (print_stop_event): Declare.
7673 * infrun.c (print_stop_event): New, factored out from ...
7674 (normal_stop): ... this.
7675 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7676 of bpstat_print/print_stack_frame.
7678 2014-03-17 Tom Tromey <tromey@redhat.com>
7680 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7682 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7684 * ada-lang.c (decode_constrained_packed_array): Perform a
7685 minimal coercion for reference with coerce_ref instead of
7688 2014-03-17 Tristan Gingold <gingold@adacore.com>
7690 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7691 (darwin_solib_create_inferior_hook): Emit a warning if version
7694 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7696 * python/py-value.c (get_field_flag): Cast flag_name argument to
7697 PyObject_GetAttrString to support Python 2.4.
7699 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7701 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7702 (Global Maintainers): Remove Jan Kratochvil.
7704 2014-03-14 Pedro Alves <palves@redhat.com>
7706 * inferior.h (terminal_ours_for_output): Rename to ...
7707 (child_terminal_ours_for_output): ... this.
7708 (terminal_save_ours): Rename to ...
7709 (child_terminal_save_ours): ... this.
7710 (terminal_ours): Rename to ...
7711 (child_terminal_ours): ... this.
7712 (terminal_inferior): Rename to ...
7713 (child_terminal_inferior): ... this.
7714 (terminal_init_inferior): Rename to ...
7715 (child_terminal_init_inferior): ... this.
7716 (terminal_init_inferior_with_pgrp): Rename to ...
7717 (child_terminal_init_inferior_with_pgrp): ... this.
7718 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7719 (child_terminal_init_with_pgrp): ... this.
7720 (terminal_save_ours): Rename to ...
7721 (child_terminal_save_ours): ... this.
7722 (terminal_init_inferior): Rename to ...
7723 (child_terminal_init): ... this. Adjust.
7724 (terminal_inferior): Rename to ...
7725 (child_terminal_inferior): ... this.
7726 (terminal_ours_for_output): Rename to ...
7727 (child_terminal_ours_for_output): ... this. Adjust.
7728 (terminal_ours): Rename to ...
7729 (child_terminal_ours): ... this.
7730 (terminal_ours_1): Rename to ...
7731 (child_terminal_ours_1): ... this. Adjust.
7732 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7733 * windows-nat.c (do_initial_windows_stuff): Adjust.
7734 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7735 (gnu_terminal_init): ... this. Adjust.
7736 (gnu_target): Adjust.
7737 * inf-child.c (inf_child_target): Adjust.
7739 2014-03-13 Doug Evans <xdje42@gmail.com>
7742 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7745 2014-03-13 Doug Evans <xdje42@gmail.com>
7747 * value.c (record_latest_value): Call release_value_or_incref
7748 instead of release_value.
7750 2014-03-13 Pedro Alves <palves@redhat.com>
7752 * procfs.c (procfs_target): Don't override to_shortname,
7753 to_longname or to_doc.
7755 2014-03-13 Pedro Alves <palves@redhat.com>
7757 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7758 Unix in user visible strings.
7760 2014-03-12 Stan Shebs <stan@codesourcery.com>
7762 * gdbtypes.h: Annotate comments for Doxygen, add a page
7763 block comment with some general info.
7765 2014-03-12 Pedro Alves <palves@redhat.com>
7767 * infcmd.c (prepare_execution_command): New function, factored out
7768 from several execution commands.
7769 (run_command_1, continue_command, step_1, jump_command)
7770 (signal_command, until_command, advance_command, finish_command)
7771 (attach_command): Use prepare_execution_command.
7773 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7775 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7778 (struct arm_linux_thread_points): Removed.
7779 (struct arm_linux_process_info): New.
7780 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7781 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7782 (arm_linux_find_breakpoints_by_tid): Removed.
7783 (struct arch_lwp_info): New.
7784 (arm_linux_find_process_pid): New functions.
7785 (arm_linux_add_process): New functions.
7786 (arm_linux_process_info_get): New functions.
7787 (arm_linux_forget_process): New function.
7788 (arm_linux_get_debug_reg_state): New function.
7789 (struct update_registers_data): New.
7790 (update_registers_callback): New function.
7791 (arm_linux_insert_hw_breakpoint1): Updated.
7792 (arm_linux_remove_hw_breakpoint1): Updated.
7793 (arm_linux_insert_hw_breakpoint): Updated.
7794 (arm_linux_remove_hw_breakpoint): Updated.
7795 (arm_linux_insert_watchpoint): Updated.
7796 (arm_linux_remove_watchpoint): Updated.
7797 (arm_linux_new_thread): Updated.
7798 (arm_linux_prepare_to_resume): New function.
7799 (arm_linux_new_fork): New function.
7800 (_initialize_arm_linux_nat): Updated.
7802 2014-03-12 Pedro Alves <palves@redhat.com>
7804 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7806 2014-03-12 Tom Tromey <tromey@redhat.com>
7808 * inf-child.c (return_zero): New function.
7809 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7810 * aix-thread.c (aix_thread_inferior_created): New function.
7811 (aix_thread_attach): Remove.
7812 (init_aix_thread_ops): Don't set to_attach.
7813 (_initialize_aix_thread): Register inferior_created observer.
7814 * corelow.c (init_core_ops): Don't set to_attach or
7816 * exec.c (init_exec_ops): Don't set to_attach or
7818 * infcmd.c (run_command_1): Use find_run_target. Make direct
7820 (attach_command): Use find_attach_target. Make direct target
7822 * record-btrace.c (init_record_btrace_ops): Don't set
7824 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7826 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7827 set to_create_inferior.
7828 * target.c (complete_target_initialization): Add assertion.
7829 (target_create_inferior): Remove.
7830 (find_default_attach, find_default_create_inferior): Remove.
7831 (find_attach_target, find_run_target): New functions.
7832 (find_default_is_async_p, find_default_can_async_p)
7833 (target_supports_non_stop, target_attach): Remove.
7834 (init_dummy_target): Don't set to_create_inferior or
7835 to_supports_non_stop.
7836 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7837 TARGET_DEFAULT_FUNC.
7838 <to_create_inferior>: Add comment.
7839 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7840 TARGET_DEFAULT_RETURN.
7841 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7842 (find_attach_target, find_run_target): Declare.
7843 (target_create_inferior): Remove.
7844 (target_has_execution_1): Update comment.
7845 (target_supports_non_stop): Remove.
7846 * target-delegates.c: Rebuild.
7848 2014-03-12 Pedro Alves <palves@redhat.com>
7850 * inf-child.h: Update comment to not mention Unix.
7852 2014-03-12 Pedro Alves <palves@redhat.com>
7854 * inf-child.c: Update top comment to not mention Unix. Add
7855 generic comment describing how this target is meant to be used.
7856 (inf_child_post_attach, inf_child_post_startup_inferior)
7857 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7860 2014-03-12 Pedro Alves <palves@redhat.com>
7862 * nto-procfs.c: Include inf-child.h.
7863 (procfs_ops): Delete global.
7864 (procfs_can_run): Delete method.
7865 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7866 target pointer instead of referencing procfs_ops.
7867 (procfs_prepare_to_store): Delete.
7868 (init_procfs_ops): Delete function.
7869 (procfs_target): New function, based on init_procfs_ops, but
7870 inherit inf_child_target.
7871 (_initialize_procfs): Use procfs_target.
7873 2014-03-12 Pedro Alves <palves@redhat.com>
7875 * windows-nat.c: Include inf-child.h.
7876 (windows_ops): Delete global.
7877 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7879 (init_windows_ops): Delete function.
7880 (windows_target): New function, based on init_windows_ops, but
7881 inherit inf_child_target.
7882 (_initialize_windows_nat): Use windows_target. Install x86
7883 specific target methods here.
7885 2014-03-10 Doug Evans <xdje42@gmail.com>
7887 * guile/guile.c (call_initialize_gdb_module): New function.
7888 (initialize_guile): Replace call to scm_init_guile with call to
7891 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7893 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7894 in call to TYPE_CODE macro.
7896 2014-03-10 Jerome Guitton <guitton@adacore.com>
7898 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7899 Resolve tagged types to full view.
7901 2014-03-10 Hui Zhu <hui@codesourcery.com>
7903 * target.h (target_insert_breakpoint): Remove "hardware" from its
7906 2014-03-07 Doug Evans <dje@google.com>
7908 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7910 2014-03-07 Doug Evans <dje@google.com>
7912 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7913 Remove unused local comp_dir_attr. Assert exactly one of
7914 stub_comp_unit_die, stub_comp_dir is non-NULL.
7916 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7918 * target.h (complete_target_initialization, add_target):
7921 2014-03-07 Pedro Alves <palves@redhat.com>
7923 * go32-nat.c: Include inf-child.h.
7924 (go32_ops): Delete global.
7925 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7927 (go32_create_inferior): Push the passed in target pointer instead
7928 of referencing go32_ops.
7929 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7930 (go32_target): New function, based on init_go32_ops, but inherit
7932 (_initialize_go32_nat): Use go32_target. Move parts of
7935 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7937 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7938 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7939 SYMBOL_VALUE_ADDRESS.
7940 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7942 2014-03-06 Yao Qi <yao@codesourcery.com>
7944 * breakpoint.c (get_tracepoint_by_number): Remove argument
7945 optional_p. All callers updated. Adjust comments. Update
7947 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7949 2014-03-06 Yao Qi <yao@codesourcery.com>
7951 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7952 early if get_number returns zero. Use 'p' instead of 'args'.
7954 2014-03-06 Yao Qi <yao@codesourcery.com>
7956 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7959 2014-03-06 Yao Qi <yao@codesourcery.com>
7961 PR breakpoints/16508
7962 * tracepoint.c (check_trace_running): New function.
7963 (trace_find_command): Move code to check_trace_running and
7964 call check_trace_running.
7965 (trace_find_pc_command): Likewise.
7966 (trace_find_tracepoint_command): Likewise.
7967 (trace_find_line_command): Likewise.
7968 (trace_find_range_command): Likewise.
7969 * tracepoint.h (check_trace_running): Likewise.
7970 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7972 2014-03-06 Yao Qi <yao@codesourcery.com>
7974 * target.h (struct target_ops) <to_traceframe_info>: Use
7975 TARGET_DEFAULT_NORETURN (tcomplain ()).
7976 * target-delegates.c: Regenerated.
7978 2014-03-05 Pedro Alves <palves@redhat.com>
7981 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7982 void. Update comment.
7983 (dcache_xfer_memory): Delete.
7984 (dcache_read_memory_partial): New, based on the read bits of
7986 (dcache_update): Add status parameter. Use ULONGEST for len, and
7987 adjust. Discard cache lines if the reason for the update was
7989 * dcache.h (dcache_xfer_memory): Delete declaration.
7990 (dcache_read_memory_partial): New declaration.
7991 (dcache_update): Update prototype.
7992 * target.c (raw_memory_xfer_partial): Update the dcache here.
7993 (memory_xfer_partial_1): Don't handle dcache writes here.
7995 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7997 * remote-sim.c (gdbsim_load): Add const to prog.
7999 2014-03-03 Tom Tromey <tromey@redhat.com>
8001 * elfread.c (probe_key): Change to bfd_data.
8002 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8003 now per-BFD, not per-objfile.
8004 * stap-probe.c (stap_probe_destroy): Update comment.
8005 (handle_stap_probe): Allocate on the per-BFD obstack.
8007 2014-03-03 Tom Tromey <tromey@redhat.com>
8009 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8010 * breakpoint.c (create_longjmp_master_breakpoint): Use
8012 (add_location_to_breakpoint, bkpt_probe_insert_location)
8013 (bkpt_probe_remove_location): Update.
8014 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8015 * elfread.c (elf_symfile_relocate_probe): Remove.
8016 (elf_probe_fns): Update.
8017 (insert_exception_resume_breakpoint): Change type of "probe"
8018 parameter to bound_probe.
8019 (check_exception_resume): Update.
8020 * objfiles.c (objfile_relocate1): Don't relocate probes.
8021 * probe.c (bound_probe_s): New typedef.
8022 (parse_probes): Use get_probe_address. Set sal's objfile.
8023 (find_probe_by_pc): Return a bound_probe.
8024 (collect_probes): Return a VEC(bound_probe_s).
8025 (compare_probes): Update.
8026 (gen_ui_out_table_header_info): Change type of "probes"
8028 (info_probes_for_ops): Update.
8029 (get_probe_address): New function.
8030 (probe_safe_evaluate_at_pc): Update.
8031 * probe.h (struct probe_ops) <get_probe_address>: New field.
8032 <set_semaphore, clear_semaphore>: Add objfile parameter.
8033 (struct probe) <objfile>: Remove field.
8035 <address>: Update comment.
8036 (struct bound_probe): New.
8037 (find_probe_by_pc): Return a bound_probe.
8038 (get_probe_address): Declare.
8039 * solib-svr4.c (struct probe_and_action) <address>: New field.
8040 (hash_probe_and_action, equal_probe_and_action): Update.
8041 (register_solib_event_probe): Add address parameter.
8042 (solib_event_probe_at): Update.
8043 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8045 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8046 (stap_get_probe_address): New function.
8047 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8048 (compile_probe_arg): Update.
8049 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8051 (handle_stap_probe): Don't relocate the probe.
8052 (stap_relocate): Remove.
8053 (stap_gen_info_probes_table_values): Update.
8054 (stap_probe_ops): Remove stap_relocate.
8055 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8056 (debug_sym_probe_fns): Update.
8057 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8058 * symtab.c (init_sal): Use memset.
8059 * symtab.h (struct symtab_and_line) <objfile>: New field.
8060 * tracepoint.c (start_tracing, stop_tracing): Update.
8062 2014-03-03 Tom Tromey <tromey@redhat.com>
8064 * probe.h (parse_probes, find_probe_by_pc)
8065 (find_probes_in_objfile): Fix comments.
8067 2014-03-02 Doug Evans <xdje42@gmail.com>
8069 * infrun.c (handle_signal_stop): Replace test for
8070 TARGET_WAITKIND_STOPPED with an assert.
8072 2014-03-02 Doug Evans <xdje42@gmail.com>
8074 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8076 2014-03-02 Doug Evans <xdje42@gmail.com>
8078 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8080 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8082 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8084 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8086 * i386obsd-nat.c: Include "obsd-nat.h".
8087 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8089 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8091 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8093 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8095 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8097 * mips64obsd-nat.c: Include "obsd-nath".
8098 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8100 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8102 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8104 * amd64obsd-nat.c: Include "obsd-nat,h.
8105 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8107 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8109 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8111 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8112 (find_overload_match): Update call to find_oload_champ.
8113 (find_oload_champ_namespace_loop): Likewise
8115 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8117 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8119 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8120 * config/sparc/obsd64.mh: New file.
8121 * sparc64obsd-nat.c: New file.
8123 * obsd-nat.h: New file.
8124 * obsd-nat.c: New file.
8125 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8126 (ALLDEPFILES): Add obsd-nat.c.
8128 2014-02-28 Tom Tromey <tromey@redhat.com>
8130 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8131 * cli-out.h (cli_ui_out_impl): Now const.
8132 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8133 * ui-out.c (struct ui_out) <impl>: Now const.
8134 (default_ui_out_impl): Now const.
8135 (ui_out_new): Make 'impl' parameter const.
8136 * ui-out.h (ui_out_new): Update.
8138 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8140 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8142 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8144 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8146 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8148 Additional PR 8882 fix.
8149 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8151 2014-02-27 Pedro Alves <palves@redhat.com>
8153 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8156 2014-02-27 Pedro Alves <palves@redhat.com>
8159 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8160 * nat/linux-waitpid.c: Include string.h.
8161 (status_to_str): Moved here and made extern.
8162 * nat/linux-waitpid.h (status_to_str): New declaration.
8164 2014-02-27 Hui Zhu <hui@codesourcery.com>
8167 * infrun.c (ptid_match): Move ...
8168 * common/ptid.c (ptid_match): ... here.
8169 * inferior.h (ptid_match): Move ...
8170 * common/ptid.h (ptid_match): ... here.
8172 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8174 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8175 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8178 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8180 * obsd-tdep.c (obsd_auxv_parse): New function.
8181 (obsd_init_abi): Set auxv_parse.
8183 * gdbarch.sh (auxv_parse): New.
8184 * gdbarch.h: Regenerated.
8185 * gdbarch.c: Regenerated.
8186 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8188 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8190 * guile/scm-value.c (gdbscm_history_append_x): New function.
8191 (value_functions): Add it.
8193 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8195 * dwarf2read.c (attr_value_as_address): New function.
8196 (dwarf2_find_base_address, read_call_site_scope): Use
8197 attr_value_as_address in place of DW_ADDR.
8198 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8199 the low and high addresses. Slight rework of the handling
8200 of the high pc being a constant form, and limit it to
8201 DWARF verson 4 or higher.
8202 (dwarf2_record_block_ranges): Likewise.
8203 (read_partial_die): Likewise.
8204 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8206 2014-02-26 Tom Tromey <tromey@redhat.com>
8208 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8210 2014-02-26 Tom Tromey <tromey@redhat.com>
8212 * elfread.c (elf_read_minimal_symbols): Return early if
8213 minimal symbols have already been read. Add "ei" parameter.
8214 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8215 * minsyms.c (prim_record_minimal_symbol_full): Update.
8216 * objfiles.h (struct objstats) <n_minsyms>: Move...
8217 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8218 * symmisc.c (print_objfile_statistics): Update.
8220 2014-02-26 Tom Tromey <tromey@redhat.com>
8222 * elfread.c (elf_read_minimal_symbols): New function, from
8224 (elf_symfile_read): Call it.
8226 2014-02-26 Tom Tromey <tromey@redhat.com>
8228 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8229 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8230 (lookup_minimal_symbol_solib_trampoline)
8231 (lookup_minimal_symbol_by_pc_section_1)
8232 (lookup_minimal_symbol_and_objfile): Update.
8233 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8234 Don't allocate a minimal symbol if minsyms have already been read.
8235 (build_minimal_symbol_hash_tables): Update.
8236 (install_minimal_symbols): Do nothing if minsyms already read.
8237 Use the per-BFD obstack.
8238 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8239 * objfiles.c (allocate_objfile): Call
8240 terminate_minimal_symbol_table later.
8241 (have_minimal_symbols): Update.
8242 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8243 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8244 Move from struct objfile.
8245 <minsyms_read>: New field.
8246 (struct objfile) <msymbols, minimal_symbol_count,
8247 msymbol_hash, msymbol_demangled_hash>: Move.
8248 (ALL_OBJFILE_MSYMBOLS): Update.
8249 * symfile.c (read_symbols): Set minsyms_read.
8250 (reread_symbols): Update.
8251 * symmisc.c (dump_objfile, dump_msymbols): Update.
8253 2014-02-26 Tom Tromey <tromey@redhat.com>
8255 * minsyms.c (msymbols_sort): Remove.
8256 * minsyms.h (msymbols_sort): Remove.
8257 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8258 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8259 * elfread.c (elf_symtab_read): Don't add section offsets.
8260 * xcoffread.c (record_minimal_symbol): Don't add section offset
8261 to minimal symbol address.
8262 * somread.c (text_offset, data_offset): Remove.
8263 (som_symtab_read): Don't add section offsets to minimal symbol
8265 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8266 Don't add section offsets to minimal symbols.
8267 * coffread.c (coff_symtab_read): Don't add section offsets
8268 to minimal symbol addresses.
8269 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8270 to minimal symbol addresses.
8271 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8272 section offset to minimal symbol addresses.
8273 * mdebugread.c (parse_partial_symbols): Don't add section
8274 offset to minimal symbol addresses.
8275 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8276 offset to minimal symbol addresses.
8278 2014-02-26 Tom Tromey <tromey@redhat.com>
8280 * ada-lang.c (ada_main_name): Update.
8281 (ada_add_standard_exceptions): Update.
8282 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8283 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8284 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8285 * auxv.c (ld_so_xfer_auxv): Update.
8286 * avr-tdep.c (avr_scan_prologue): Update.
8287 * ax-gdb.c (gen_var_ref): Update.
8288 * blockframe.c (get_pc_function_start)
8289 (find_pc_partial_function_gnu_ifunc): Update.
8290 * breakpoint.c (create_overlay_event_breakpoint)
8291 (create_longjmp_master_breakpoint)
8292 (create_std_terminate_master_breakpoint)
8293 (create_exception_master_breakpoint): Update.
8294 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8295 * c-valprint.c (c_val_print): Update.
8296 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8297 * common/agent.c (agent_look_up_symbols): Update.
8298 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8299 * dwarf2loc.c (call_site_to_target_addr): Update.
8300 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8301 * elfread.c (elf_gnu_ifunc_record_cache)
8302 (elf_gnu_ifunc_resolve_by_got): Update.
8303 * findvar.c (default_read_var_value): Update.
8304 * frame.c (inside_main_func): Update.
8305 * frv-tdep.c (frv_frame_this_id): Update.
8306 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8307 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8309 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8310 (hppa_hpux_find_dummy_bpaddr): Update.
8311 * hppa-tdep.c (hppa_symbol_address): Update.
8312 * infcmd.c (until_next_command): Update.
8313 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8315 * linespec.c (minsym_found, add_minsym): Update.
8316 * linux-nat.c (get_signo): Update.
8317 * linux-thread-db.c (inferior_has_bug): Update.
8318 * m32c-tdep.c (m32c_return_value)
8319 (m32c_m16c_address_to_pointer): Update.
8320 * m32r-tdep.c (m32r_frame_this_id): Update.
8321 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8322 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8323 * maint.c (maintenance_translate_address): Update.
8324 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8325 (frob_address): New function.
8326 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8327 frob_address. Rename parameter to "pc_in".
8328 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8330 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8332 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8333 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8334 * objc-lang.c (find_objc_msgsend): Update.
8335 * objfiles.c (objfile_relocate1): Update.
8336 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8337 * p-valprint.c (pascal_val_print): Update.
8338 * parse.c (write_exp_msymbol): Update.
8339 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8340 (ppc_elfv2_skip_entrypoint): Update.
8341 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8342 * printcmd.c (build_address_symbolic, msym_info)
8343 (address_info): Update.
8344 * proc-service.c (ps_pglobal_lookup): Update.
8345 * psymtab.c (find_pc_sect_psymtab_closer)
8346 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8347 Change msymbol parameter to bound_minimal_symbol.
8348 * ravenscar-thread.c (get_running_thread_id): Update.
8349 * remote.c (remote_check_symbols): Update.
8350 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8352 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8353 * solib-dsbt.c (lm_base): Update.
8354 * solib-frv.c (lm_base, main_got): Update.
8355 * solib-irix.c (locate_base): Update.
8356 * solib-som.c (som_solib_create_inferior_hook)
8357 (link_map_start): Update.
8358 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8359 * solib-svr4.c (elf_locate_base, enable_break): Update.
8360 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8361 (flush_ea_cache): Update.
8362 * stabsread.c (define_symbol, scan_file_globals): Update.
8363 * stack.c (find_frame_funname): Update.
8364 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8365 (debug_qf_find_pc_sect_symtab): Update.
8366 * symfile.c (simple_read_overlay_table)
8367 (simple_overlay_update): Update.
8368 * symfile.h (struct quick_symbol_functions)
8369 <find_pc_sect_symtab>: Change type of msymbol to
8370 bound_minimal_symbol.
8371 * symmisc.c (dump_msymbols): Update.
8372 * symtab.c (find_pc_sect_symtab_via_partial)
8373 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8374 (search_symbols, print_msymbol_info): Update.
8375 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8376 (MSYMBOL_VALUE_ADDRESS): Redefine.
8377 (BMSYMBOL_VALUE_ADDRESS): New macro.
8378 * tracepoint.c (scope_info): Update.
8379 * tui/tui-disasm.c (tui_find_disassembly_address)
8380 (tui_get_begin_asm_address): Update.
8381 * valops.c (find_function_in_inferior): Update.
8382 * value.c (value_static_field, value_fn_field): Update.
8384 2014-02-26 Tom Tromey <tromey@redhat.com>
8386 * ada-lang.c (ada_update_initial_language): Update.
8387 (ada_main_name, ada_has_this_exception_support): Update.
8388 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8389 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8390 * arm-tdep.c (arm_skip_stub): Update.
8391 * auxv.c (ld_so_xfer_auxv): Update.
8392 * avr-tdep.c (avr_scan_prologue): Update.
8393 * ax-gdb.c (gen_var_ref): Update.
8394 * breakpoint.c (struct breakpoint_objfile_data)
8395 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8396 type to bound_minimal_symbol.
8397 (create_overlay_event_breakpoint)
8398 (create_longjmp_master_breakpoint)
8399 (create_std_terminate_master_breakpoint)
8400 (create_exception_master_breakpoint): Update.
8401 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8402 * c-exp.y (classify_name): Update.
8403 * coffread.c (coff_symfile_read): Update.
8404 * common/agent.c (agent_look_up_symbols): Update.
8405 * d-lang.c (d_main_name): Update.
8406 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8407 * dec-thread.c (enable_dec_thread): Update.
8408 * dwarf2loc.c (call_site_to_target_addr): Update.
8409 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8410 * eval.c (evaluate_subexp_standard): Update.
8411 * findvar.c (struct minsym_lookup_data) <result>: Change type
8412 to bound_minimal_symbol.
8414 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8415 * frame.c (inside_main_func): Update.
8416 * frv-tdep.c (frv_frame_this_id): Update.
8417 * gcore.c (call_target_sbrk): Update.
8418 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8419 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8421 * go-lang.c (go_main_name): Update.
8422 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8423 (hppa_hpux_find_import_stub_for_addr): Update.
8424 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8425 Update. Change return type.
8426 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8428 * jit.c (jit_breakpoint_re_set_internal): Update.
8429 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8431 * linux-nat.c (get_signo): Update.
8432 * linux-thread-db.c (inferior_has_bug): Update
8433 * m32c-tdep.c (m32c_return_value)
8434 (m32c_m16c_address_to_pointer): Update.
8435 * m32r-tdep.c (m32r_frame_this_id): Update.
8436 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8437 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8438 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8439 lookup_minimal_symbol. Change return type.
8440 (lookup_minimal_symbol): Remove.
8441 (lookup_bound_minimal_symbol): Update.
8442 (lookup_minimal_symbol_text): Change return type.
8443 (lookup_minimal_symbol_solib_trampoline): Change return type.
8444 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8445 (lookup_minimal_symbol_solib_trampoline): Change return type.
8446 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8447 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8448 (value_nsstring, find_imps): Update.
8449 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8450 * p-lang.c (pascal_main_name): Update.
8451 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8452 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8453 * proc-service.c (ps_pglobal_lookup): Update.
8454 * ravenscar-thread.c (get_running_thread_msymbol): Change
8456 (has_ravenscar_runtime, get_running_thread_id): Update.
8457 * remote.c (remote_check_symbols): Update.
8458 * sol-thread.c (ps_pglobal_lookup): Update.
8459 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8460 * solib-dsbt.c (lm_base): Update.
8461 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8463 * solib-irix.c (locate_base): Update.
8464 * solib-som.c (som_solib_create_inferior_hook)
8465 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8467 * solib-spu.c (spu_enable_break): Update.
8468 * solib-svr4.c (elf_locate_base, enable_break): Update.
8469 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8470 (flush_ea_cache): Update.
8471 * stabsread.c (define_symbol): Update.
8472 * symfile.c (simple_read_overlay_table): Update.
8473 * symtab.c (find_pc_sect_line): Update.
8474 * tracepoint.c (scope_info): Update.
8475 * tui-disasm.c (tui_get_begin_asm_address): Update.
8476 * value.c (value_static_field): Update.
8478 2014-02-26 Tom Tromey <tromey@redhat.com>
8480 * minsyms.c (prim_record_minimal_symbol_full): Use
8481 SET_MSYMBOL_VALUE_ADDRESS.
8482 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8483 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8484 SET_MSYMBOL_VALUE_ADDRESS.
8485 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8486 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8488 2014-02-26 Tom Tromey <tromey@redhat.com>
8490 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8491 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8492 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8493 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8494 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8495 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8496 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8497 * ada-lang.c (ada_main_name): Update.
8498 (ada_lookup_simple_minsym): Update.
8499 (ada_make_symbol_completion_list): Update.
8500 (ada_add_standard_exceptions): Update.
8501 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8502 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8503 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8504 * arm-tdep.c (skip_prologue_function): Update.
8505 (arm_skip_stack_protector, arm_skip_stub): Update.
8506 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8507 (arm_wince_skip_main_prologue): Update.
8508 * auxv.c (ld_so_xfer_auxv): Update.
8509 * avr-tdep.c (avr_scan_prologue): Update.
8510 * ax-gdb.c (gen_var_ref): Update.
8511 * block.c (call_site_for_pc): Update.
8512 * blockframe.c (get_pc_function_start): Update.
8513 (find_pc_partial_function_gnu_ifunc): Update.
8514 * breakpoint.c (create_overlay_event_breakpoint): Update.
8515 (create_longjmp_master_breakpoint): Update.
8516 (create_std_terminate_master_breakpoint): Update.
8517 (create_exception_master_breakpoint): Update.
8518 (resolve_sal_pc): Update.
8519 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8520 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8522 * c-valprint.c (c_val_print): Update.
8523 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8524 * coffread.c (coff_symfile_read): Update.
8525 * common/agent.c (agent_look_up_symbols): Update.
8526 * dbxread.c (find_stab_function_addr): Update.
8527 (end_psymtab): Update.
8528 * dwarf2loc.c (call_site_to_target_addr): Update.
8529 (func_verify_no_selftailcall): Update.
8530 (tailcall_dump): Update.
8531 (call_site_find_chain_1): Update.
8532 (dwarf_expr_reg_to_entry_parameter): Update.
8533 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8534 (elf_gnu_ifunc_resolve_by_got): Update.
8535 * f-valprint.c (info_common_command): Update.
8536 * findvar.c (read_var_value): Update.
8537 * frame.c (get_prev_frame_1): Update.
8538 (inside_main_func): Update.
8539 * frv-tdep.c (frv_skip_main_prologue): Update.
8540 (frv_frame_this_id): Update.
8541 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8542 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8543 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8544 (gnuv3_skip_trampoline): Update.
8545 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8546 (hppa64_hpux_in_solib_call_trampoline): Update.
8547 (hppa_hpux_skip_trampoline_code): Update.
8548 (hppa64_hpux_search_dummy_call_sequence): Update.
8549 (hppa_hpux_find_import_stub_for_addr): Update.
8550 (hppa_hpux_find_dummy_bpaddr): Update.
8551 * hppa-tdep.c (hppa_symbol_address)
8552 (hppa_lookup_stub_minimal_symbol): Update.
8553 * i386-tdep.c (i386_skip_main_prologue): Update.
8554 (i386_pe_skip_trampoline_code): Update.
8555 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8556 * infcall.c (get_function_name): Update.
8557 * infcmd.c (until_next_command): Update.
8558 * jit.c (jit_breakpoint_re_set_internal): Update.
8559 (jit_inferior_init): Update.
8560 * linespec.c (minsym_found): Update.
8561 (add_minsym): Update.
8562 * linux-fork.c (info_checkpoints_command): Update.
8563 * linux-nat.c (get_signo): Update.
8564 * linux-thread-db.c (inferior_has_bug): Update.
8565 * m32c-tdep.c (m32c_return_value): Update.
8566 (m32c_m16c_address_to_pointer): Update.
8567 (m32c_m16c_pointer_to_address): Update.
8568 * m32r-tdep.c (m32r_frame_this_id): Update.
8569 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8570 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8571 * maint.c (maintenance_translate_address): Update.
8572 * minsyms.c (add_minsym_to_hash_table): Update.
8573 (add_minsym_to_demangled_hash_table): Update.
8574 (msymbol_objfile): Update.
8575 (lookup_minimal_symbol): Update.
8576 (iterate_over_minimal_symbols): Update.
8577 (lookup_minimal_symbol_text): Update.
8578 (lookup_minimal_symbol_by_pc_name): Update.
8579 (lookup_minimal_symbol_solib_trampoline): Update.
8580 (lookup_minimal_symbol_by_pc_section_1): Update.
8581 (lookup_minimal_symbol_and_objfile): Update.
8582 (prim_record_minimal_symbol_full): Update.
8583 (compare_minimal_symbols): Update.
8584 (compact_minimal_symbols): Update.
8585 (build_minimal_symbol_hash_tables): Update.
8586 (install_minimal_symbols): Update.
8587 (terminate_minimal_symbol_table): Update.
8588 (find_solib_trampoline_target): Update.
8589 (minimal_symbol_upper_bound): Update.
8590 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8591 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8592 (mips_skip_pic_trampoline_code): Update.
8593 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8594 * objc-lang.c (selectors_info): Update.
8595 (classes_info): Update.
8596 (find_methods): Update.
8597 (find_imps): Update.
8598 (find_objc_msgsend): Update.
8599 * objfiles.c (objfile_relocate1): Update.
8600 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8601 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8602 * p-valprint.c (pascal_val_print): Update.
8603 * parse.c (write_exp_msymbol): Update.
8604 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8605 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8606 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8607 * printcmd.c (build_address_symbolic): Update.
8609 (address_info): Update.
8610 * proc-service.c (ps_pglobal_lookup): Update.
8611 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8612 (find_pc_sect_psymtab): Update.
8613 * python/py-framefilter.c (py_print_frame): Update.
8614 * ravenscar-thread.c (get_running_thread_id): Update.
8615 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8617 * remote.c (remote_check_symbols): Update.
8618 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8619 (rs6000_skip_trampoline_code): Update.
8620 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8621 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8622 * solib-dsbt.c (lm_base): Update.
8623 * solib-frv.c (lm_base): Update.
8625 * solib-irix.c (locate_base): Update.
8626 * solib-som.c (som_solib_create_inferior_hook): Update.
8627 (som_solib_desire_dynamic_linker_symbols): Update.
8628 (link_map_start): Update.
8629 * solib-spu.c (spu_enable_break): Update.
8630 (ocl_enable_break): Update.
8631 * solib-svr4.c (elf_locate_base): Update.
8632 (enable_break): Update.
8633 * spu-tdep.c (spu_get_overlay_table): Update.
8634 (spu_catch_start): Update.
8635 (flush_ea_cache): Update.
8636 * stabsread.c (define_symbol): Update.
8637 (scan_file_globals): Update.
8638 * stack.c (find_frame_funname): Update.
8639 (frame_info): Update.
8640 * symfile.c (simple_read_overlay_table): Update.
8641 (simple_overlay_update): Update.
8642 * symmisc.c (dump_msymbols): Update.
8643 * symtab.c (fixup_section): Update.
8644 (find_pc_sect_line): Update.
8645 (skip_prologue_sal): Update.
8646 (search_symbols): Update.
8647 (print_msymbol_info): Update.
8648 (rbreak_command): Update.
8649 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8650 (completion_list_objc_symbol): Update.
8651 (default_make_symbol_completion_list_break_on): Update.
8652 * tracepoint.c (scope_info): Update.
8653 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8654 (tui_get_begin_asm_address): Update.
8655 * valops.c (find_function_in_inferior): Update.
8656 * value.c (value_static_field): Update.
8657 (value_fn_field): Update.
8659 2014-02-26 Tom Tromey <tromey@redhat.com>
8661 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8662 bound minimal symbols. Move code that knows about minsym
8664 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8666 * minsyms.h (minimal_symbol_upper_bound): Declare.
8667 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8668 minimal_symbol_upper_bound.
8670 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8672 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8673 Use the type's name if its basic type does not have a tag.
8675 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8677 * dwarf2read.c (read_subrange_type): Add comment.
8679 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8681 * dwarf2read.c (update_enumeration_type_from_children): New
8682 function, mostly extracted from process_structure_scope.
8683 (read_enumeration_type): Call update_enumeration_type_from_children.
8684 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8685 and flag_flag_enum fields.
8687 2014-02-26 Pedro Alves <palves@redhat.com>
8689 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8690 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8691 to_xfer_partial method.
8693 2014-02-26 Pedro Alves <palves@redhat.com>
8695 * target.c (complete_target_initialization): Don't install
8696 default_xfer_partial as to_xfer_partial hook.
8698 (update_current_target): Don't INHERIT nor de_fault
8699 deprecated_xfer_memory. Delete de_fault macro.
8700 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8701 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8702 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8705 2014-02-26 Pedro Alves <palves@redhat.com>
8707 * go32-nat.c (my_write_child): New function.
8708 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8709 (go32_xfer_partial): New function.
8710 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8711 Instead install a to_xfer_partial hook.
8713 2014-02-26 Pedro Alves <palves@redhat.com>
8715 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8716 to_xfer_partial helper. Rewrite.
8717 (procfs_xfer_partial): New function.
8718 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8719 Install a to_xfer_partial hook.
8721 2014-02-26 Pedro Alves <palves@redhat.com>
8723 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8724 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8725 (m32r_xfer_partial): New function.
8726 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8727 Install a to_xfer_partial hook.
8729 2014-02-26 Pedro Alves <palves@redhat.com>
8731 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8733 (mips_xfer_partial): New function.
8734 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8735 hook. Install a to_xfer_partial hook.
8737 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8739 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8740 * gdbtypes.c (create_array_type_with_stride): New function,
8741 renaming create_array_type, but with an added parameter
8742 called "bit_stride".
8743 (create_array_type): Re-implement using
8744 create_array_type_with_stride.
8745 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8746 and DW_AT_bit_stride attributes.
8748 2014-02-26 Pedro Alves <palves@redhat.com>
8750 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8751 task-specific breakpoints.
8753 2014-02-25 Pedro Alves <palves@redhat.com>
8755 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8756 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8758 2014-02-25 Stan Shebs <stan@codesourcery.com>
8760 * defs.h: Annotate comments for Doxygen.
8762 2014-02-25 Tom Tromey <tromey@redhat.com>
8764 * target.h (target_ignore): Don't declare.
8765 * target.c (target_ignore): Remove.
8767 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8770 * auto-load.c (auto_load_objfile_script_1): Change filename to
8773 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8775 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8776 documentation. Adjust prototype to match the target_ops
8777 to_xfer_partial method. Adjust implementation accordingly.
8779 2014-02-25 Hui Zhu <hui@codesourcery.com>
8781 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8784 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8786 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8787 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8788 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8789 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8790 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8791 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8792 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8793 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8795 (rl78_register_type): Use a data pointer type for SP and
8796 new pseudo registers mentioned above. Use a 16 bit integer
8797 type for all other register pairs.
8798 (rl78_register_name, rl78_g10_register_name): Update for
8799 new pseudo registers.
8800 (rl78_pseudo_register_read): Likewise.
8801 (rl78_pseudo_register_write): Likewise.
8802 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8803 to the newly added pseudo registers.
8805 2014-02-24 Doug Evans <dje@google.com>
8807 * value.c (record_latest_value): Fix comment.
8808 * printcmd.c (print_command_1): Remove code to handle -1 return from
8809 record_latest_value.
8811 2014-02-24 Pedro Alves <palves@redhat.com>
8813 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8814 deprecated_xfer_memory hook.
8815 (procfs_xfer_partial): Call procfs_xfer_memory instead
8816 of the deprecated_xfer_memory target hook.
8817 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8820 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8822 * windows-nat.c (windows_xfer_shared_libraries): Return
8823 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8824 requested object is TARGET_OBJECT_LIBRARIES.
8826 2014-02-24 Yao Qi <yao@codesourcery.com>
8828 * target.h (enum target_xfer_status)
8829 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8830 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8832 * corefile.c (memory_error_message): User updated.
8833 * exec.c (section_table_read_available_memory): Likewise.
8834 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8835 * target.c (target_xfer_status_to_string): Likewise.
8836 (raw_memory_xfer_partial): Likewise.
8837 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8838 * valops.c (read_value_memory): Likewise.
8839 * exec.h: Update comments.
8841 2014-02-24 Yao Qi <yao@codesourcery.com>
8843 * target.c (target_xfer_status_to_string): Rename argument err
8845 * target.h (target_xfer_status_to_string): Update declaration.
8846 Replace target_xfer_error_to_string with
8847 target_xfer_status_to_string in comment.
8849 2014-02-24 Yao Qi <yao@codesourcery.com>
8851 * mips-linux-nat.c (super_close): Update its type.
8852 (mips_linux_close): Pass 'self' to super_close.
8854 2014-02-24 Yao Qi <yao@codesourcery.com>
8856 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8857 * corefile.c (read_memory): Adjusted.
8858 * target.c (target_write_with_progress): Adjusted.
8860 2014-02-23 Yao Qi <yao@codesourcery.com>
8864 2013-10-25 Yao Qi <yao@codesourcery.com>
8866 * remote.c (remote_traceframe_info): Return early if
8867 traceframe is not selected.
8869 2013-07-19 Yao Qi <yao@codesourcery.com>
8871 * target.c (update_current_target): Change the default action
8872 of 'to_traceframe_info' from tcomplain to return_zero.
8873 * target.h (struct target_ops) <to_traceframe_info>: Add more
8876 2014-02-23 Yao Qi <yao@codesourcery.com>
8878 * valops.c (read_value_memory): Rewrite it. Call
8879 target_xfer_partial in a loop.
8880 * exec.h (section_table_available_memory): Remove declaration.
8881 Move comments to ...
8882 * exec.c (section_table_available_memory): ... here. Make it
8885 2014-02-23 Yao Qi <yao@codesourcery.com>
8887 * exec.c (section_table_read_available_memory): New function.
8888 * exec.h (section_table_read_available_memory): Declare.
8889 * ctf.c (ctf_xfer_partial): Call
8890 section_table_read_available_memory.
8891 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8893 2014-02-23 Yao Qi <yao@codesourcery.com>
8895 * ctf.c (ctf_xfer_partial): Move code to ...
8896 * exec.c (exec_read_partial_read_only): ... it. New function.
8897 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8898 * tracefile.c: Include "exec.h".
8899 * exec.h (exec_read_partial_read_only): Declare.
8901 2014-02-23 Yao Qi <yao@codesourcery.com>
8903 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8904 (tfile_has_memory): Remove.
8905 (init_tfile_ops): Don't set fields to_has_all_memory and
8906 to_has_memory of tfile_ops.
8907 * tracefile.c (tracefile_has_all_memory): New function.
8908 (tracefile_has_memory): New function.
8909 (init_tracefile_ops): Initialize fields to_has_all_memory and
8910 to_has_memory of 'ops'.
8912 2014-02-23 Yao Qi <yao@codesourcery.com>
8914 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8915 (ctf_thread_alive, ctf_get_trace_status): Remove.
8916 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8918 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8919 (tfile_has_stack, tfile_has_registers): Remove.
8920 (tfile_thread_alive): Remove.
8921 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8923 * tracefile.c (tracefile_has_stack): New function.
8924 (tracefile_has_registers): New function.
8925 (tracefile_thread_alive): New function.
8926 (tracefile_get_trace_status): New function.
8927 (init_tracefile_ops): New function.
8928 * tracefile.h (init_tracefile_ops): Declare.
8930 2014-02-23 Yao Qi <yao@codesourcery.com>
8932 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8933 (O_LARGEFILE): Likewise.
8934 (tfile_ops): Likewise.
8935 (TRACE_HEADER_SIZE): Likewise.
8936 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8937 (cur_data_size): Likewise.
8938 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8939 (tfile_close, tfile_files_info): Likewise.
8940 (tfile_get_trace_status): Likewise.
8941 (tfile_get_tracepoint_status): Likewise.
8942 (tfile_get_traceframe_address): Likewise.
8943 (tfile_trace_find, match_blocktype): Likewise.
8944 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8945 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8946 (tfile_get_trace_state_variable_value): Likewise.
8947 (tfile_has_all_memory, tfile_has_memory): Likewise.
8948 (tfile_has_stack, tfile_has_registers): Likewise.
8949 (tfile_thread_alive, build_traceframe_info): Likewise.
8950 (tfile_traceframe_info, init_tfile_ops): Likewise.
8951 (_initialize_tracepoint): Don't call init_tfile_ops
8952 and add_target_with_completer.
8953 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8954 exec.h, completer.h and filenames.h.
8955 (_initialize_tracefile_tfile): New function.
8957 2014-02-23 Yao Qi <yao@codesourcery.com>
8959 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8961 (HFILES_NO_SRCDIR): Add tracefile.h.
8962 * ctf.c: Include "tracefile.h".
8963 * tracefile.h: New file.
8964 * tracefile.c: New file
8965 * tracefile-tfile.c: New file.
8966 * tracepoint.c: Include "tracefile.h".
8967 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8968 (stop_reason_names): Add const.
8969 (trace_file_writer_xfree): Move it to tracefile.c.
8970 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8971 (trace_save_ctf): Likewise.
8972 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8973 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8974 (tfile_write_header, tfile_write_regblock_type): Likewise.
8975 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8976 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8977 (tfile_write_raw_data, tfile_end): Likewise.
8978 (tfile_trace_file_writer_new): Likewise.
8979 (free_uploaded_tp): Make it extern.
8980 (free_uploaded_tsv): Make it extern.
8981 (_initialize_tracepoint): Move code to register command 'tsave'
8983 * tracepoint.h (stop_reason_names): Declare.
8984 (struct trace_frame_write_ops): Move it to tracefile.h.
8985 (struct trace_file_write_ops): Likewise.
8986 (struct trace_file_writer): Likewise.
8987 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8989 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8992 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8994 (get_cores_used_by_process): New parameter num_cores, use it.
8995 (linux_xfer_osdata_processes): Pass num_cores to it.
8996 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8999 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9001 * target.c (memory_xfer_partial): Fix length arg in call to
9002 breakpoint_xfer_memory.
9004 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9007 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9008 number comes after the + or - signs. Adjust length of register
9009 name to be extracted.
9011 2014-02-20 Tom Tromey <tromey@redhat.com>
9013 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9014 (ada_varobj_ops): Mark "extern".
9016 2014-02-20 Tom Tromey <tromey@redhat.com>
9018 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9020 2014-02-20 Doug Evans <xdje42@gmail.com>
9022 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9023 All callers updated.
9024 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9025 All callers updated.
9026 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9027 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9029 2014-02-20 lin zuojian <manjian2006@gmail.com>
9030 Joel Brobecker <brobecker@adacore.com>
9031 Doug Evans <xdje42@gmail.com>
9034 * dwarf2read.c (struct die_info): New member in_process.
9035 (reset_die_in_process): New function.
9036 (process_die): Set it at the start, reset when returning.
9037 (inherit_abstract_dies): Only call process_die if origin_child_die
9038 not already being processed.
9040 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9042 * windows-nat.c (handle_unload_dll): Add function documentation.
9043 (do_initial_windows_stuff): Add comment explaining why we wait
9044 until after inferior initialization has finished before
9045 processing all DLLs.
9047 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9049 * windows-nat.c (get_module_name): Delete.
9050 (windows_get_exec_module_filename): New function, mostly
9051 inspired from get_module_name.
9052 (windows_pid_to_exec_file): Replace call to get_module_name
9053 by call to windows_get_exec_module_filename.
9055 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9057 * windows-nat.c (handle_load_dll): Rewrite this function's
9058 introductory comment. Remove code using get_module_name
9059 to get the DLL's name.
9061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9063 * windows-nat.c (get_windows_debug_event): Ignore
9064 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9065 if windows_initialization_done == 0.
9066 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9067 Adjust implementation to always load all DLLs.
9068 (do_initial_windows_stuff): Replace call to
9069 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9071 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9073 * windows-nat.c (_initialize_windows_nat): Deprecate the
9074 "dll-symbols" command. Turn the "add-shared-symbol-files"
9075 and "assf" aliases into commands, and deprecate them as well.
9076 * NEWS: Add entry explaining that "dll-symbols" and its two
9077 aliases are now deprecated.
9079 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9081 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9082 new-line in debug string. Remove trailing spaces.
9084 2014-02-19 Stan Shebs <stan@codesourcery.com>
9086 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9088 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9090 * NEWS: Add entry for the new feature
9091 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9094 2014-02-19 Stan Shebs <stan@codesourcery.com>
9096 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9098 2014-02-19 Pedro Alves <palves@redhat.com>
9100 * common/ptid.h (struct ptid): Mention that process_stratum
9101 targets should prefer ptid.lwp.
9103 2014-02-19 Pedro Alves <palves@redhat.com>
9105 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9106 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9107 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9108 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9109 store remote thread ids rather than ptid.tid.
9110 (_initialize_remote): Adjust.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target.c (target_get_unwinder): Rewrite.
9115 (target_get_tailcall_unwinder): Rewrite.
9116 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9117 (record_btrace_to_get_tailcall_unwinder): New function.
9118 (init_record_btrace_ops): Update.
9119 * target.h (struct target_ops) <to_get_unwinder,
9120 to_get_tailcall_unwinder>: Now function pointers. Use
9121 TARGET_DEFAULT_RETURN.
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9127 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9133 * target-delegates.c: Rebuild.
9134 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9135 TARGET_DEFAULT_FUNC.
9136 * target.c (default_target_decr_pc_after_break): Rename from
9137 forward_target_decr_pc_after_break. Simplify.
9138 (target_decr_pc_after_break): Rely on delegation.
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target.c (update_current_target): Do not INHERIT to_doc or
9143 to_magic. Do not de_fault to_open or to_close.
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9147 * gcore.h (objfile_find_memory_regions): Declare.
9148 * gcore.c (objfile_find_memory_regions): No longer static. Add
9150 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9151 * exec.c: Include gcore.h.
9152 (exec_set_find_memory_regions): Remove.
9153 (exec_find_memory_regions): Remove.
9154 (exec_do_find_memory_regions): Remove.
9155 (init_exec_ops): Update.
9156 * defs.h (exec_set_find_memory_regions): Remove.
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9160 * target-delegates.c: Rebuild.
9161 * target.h (struct target_ops) <to_extra_thread_info,
9162 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9163 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9164 not 0, in TARGET_DEFAULT_RETURN.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * target.c (complete_target_initialization): Remove casts. Use
9169 return_zero_has_execution.
9170 (return_zero): Add "ignore" argument.
9171 (return_zero_has_execution): New function.
9172 (init_dummy_target): Remove casts. Use
9173 return_zero_has_execution.
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target.c (update_current_target): Update comments. Do not
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9182 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9184 * corelow.c (core_read_description): Delegate when needed.
9185 * remote.c (remote_read_description): Delegate when needed.
9186 * target-delegates.c: Rebuild.
9187 * target.c (target_read_description): Rewrite.
9188 * target.h (struct target_ops) <to_read_description>: Update
9189 comment. Use TARGET_DEFAULT_RETURN.
9191 2014-02-19 Tom Tromey <tromey@redhat.com>
9193 * target-delegates.c: Rebuild.
9194 * target.c (update_current_target): Don't inherit or default
9196 (find_default_run_target): Check against delegate_can_run.
9197 * target.h (struct target_ops) <to_can_run>: Use
9198 TARGET_DEFAULT_RETURN.
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9202 * target-delegates.c: Rebuild.
9203 * target.c (target_disconnect): Unconditionally delegate.
9204 * target.h (struct target_ops) <to_disconnect>: Use
9205 TARGET_DEFAULT_NORETURN.
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9209 * record.c (record_stop): Unconditionally delegate.
9210 * target-delegates.c: Rebuild.
9211 * target.c (target_stop_recording): Unconditionally delegate.
9212 * target.h (struct target_ops) <to_stop_recording>: Use
9213 TARGET_DEFAULT_IGNORE.
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9217 * target-delegates.c: Rebuild.
9218 * target.c (target_enable_btrace): Unconditionally delegate.
9219 * target.h (struct target_ops) <to_enable_btrace>: Use
9220 TARGET_DEFAULT_NORETURN.
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9224 * target-delegates.c: Rebuild.
9225 * target.c (target_read_btrace): Unconditionally delegate.
9226 * target.h (struct target_ops) <to_read_btrace>: Use
9227 TARGET_DEFAULT_NORETURN.
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target-delegates.c: Rebuild.
9232 * target.c (target_teardown_btrace): Unconditionally delegate.
9233 * target.h (struct target_ops) <to_teardown_btrace>: Use
9234 TARGET_DEFAULT_NORETURN.
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target-delegates.c: Rebuild.
9239 * target.c (target_disable_btrace): Unconditionally delegate.
9240 * target.h (struct target_ops) <to_disable_btrace>: Use
9241 TARGET_DEFAULT_NORETURN.
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target-delegates.c: Rebuild.
9246 * target.c (default_search_memory): New function.
9247 (simple_search_memory): Update comment.
9248 (target_search_memory): Unconditionally delegate.
9249 * target.h (struct target_ops) <to_search_memory>: Use
9250 TARGET_DEFAULT_FUNC.
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * auxv.c (default_auxv_parse): No longer static.
9255 (target_auxv_parse): Unconditionally delegate.
9256 * auxv.h (default_auxv_parse): Declare.
9257 * target-delegates.c: Rebuild.
9258 * target.c: Include auxv.h.
9259 * target.h (struct target_ops) <to_auxv_parse>: Use
9260 TARGET_DEFAULT_FUNC.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_memory_map): Unconditionally delegate.
9266 * target.h (struct target_ops) <to_memory_map>: Use
9267 TARGET_DEFAULT_RETURN.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target-delegates.c: Rebuild.
9272 * target.c (target_thread_alive): Unconditionally delegate.
9273 * target.h (struct target_ops) <to_thread_alive>: Use
9274 TARGET_DEFAULT_RETURN.
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9278 * target-delegates.c: Rebuild.
9279 * target.c (target_save_record): Unconditionally delegate.
9280 * target.h (struct target_ops) <to_save_record>: Use
9281 TARGET_DEFAULT_NORETURN.
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9285 * target-delegates.c: Rebuild.
9286 * target.c (target_delete_record): Unconditionally delegate.
9287 * target.h (struct target_ops) <to_delete_record>: Use
9288 TARGET_DEFAULT_NORETURN.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * target-delegates.c: Rebuild.
9293 * target.c (target_record_is_replaying): Unconditionally
9295 * target.h (struct target_ops) <to_record_is_replaying>: Use
9296 TARGET_DEFAULT_RETURN.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target-delegates.c: Rebuild.
9301 * target.c (target_goto_record_begin): Unconditionally delegate.
9302 * target.h (struct target_ops) <to_goto_record_begin>: Use
9303 TARGET_DEFAULT_NORETURN.
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9307 * target-delegates.c: Rebuild.
9308 * target.c (target_goto_record_end): Unconditionally delegate.
9309 * target.h (struct target_ops) <to_goto_record_end>: Use
9310 TARGET_DEFAULT_NORETURN.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target-delegates.c: Rebuild.
9315 * target.c (target_goto_record): Unconditionally delegate.
9316 * target.h (struct target_ops) <to_goto_record>: Use
9317 TARGET_DEFAULT_NORETURN.
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9321 * target-delegates.c: Rebuild.
9322 * target.c (target_insn_history): Unconditionally delegate.
9323 * target.h (struct target_ops) <to_insn_history>: Use
9324 TARGET_DEFAULT_NORETURN.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target-delegates.c: Rebuild.
9329 * target.c (target_insn_history_from): Unconditionally delegate.
9330 * target.h (struct target_ops) <to_insn_history_from>: Use
9331 TARGET_DEFAULT_NORETURN.
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9335 * target-delegates.c: Rebuild.
9336 * target.c (target_insn_history_range): Unconditionally delegate.
9337 * target.h (struct target_ops) <to_insn_history_range>: Use
9338 TARGET_DEFAULT_NORETURN.
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9342 * target-delegates.c: Rebuild.
9343 * target.c (target_call_history): Unconditionally delegate.
9344 * target.h (struct target_ops) <to_call_history>: Use
9345 TARGET_DEFAULT_NORETURN.
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9349 * target-delegates.c: Rebuild.
9350 * target.c (target_call_history_from): Unconditionally delegate.
9351 * target.h (struct target_ops) <to_call_history_from>: Use
9352 TARGET_DEFAULT_NORETURN.
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9356 * target-delegates.c: Rebuild.
9357 * target.c (target_call_history_range): Unconditionally delegate.
9358 * target.h (struct target_ops) <to_call_history_range>: Use
9359 TARGET_DEFAULT_NORETURN.
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target-delegates.c: Rebuild.
9364 * target.c (target_verify_memory): Unconditionally delegate.
9365 * target.h (struct target_ops) <to_verify_memory>: Use
9366 TARGET_DEFAULT_NORETURN.
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target-delegates.c: Rebuild.
9371 * target.c (target_core_of_thread): Unconditionally delegate.
9372 * target.h (struct target_ops) <to_core_of_thread>: Use
9373 TARGET_DEFAULT_RETURN.
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9377 * target-delegates.c: Rebuild.
9378 * target.c (target_flash_done): Unconditionally delegate.
9379 * target.h (struct target_ops) <to_flash_done>: Use
9380 TARGET_DEFAULT_NORETURN.
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target-delegates.c: Rebuild.
9385 * target.c (target_flash_erase): Unconditionally delegate.
9386 * target.h (struct target_ops) <to_flash_erase>: Use
9387 TARGET_DEFAULT_NORETURN.
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9391 * target-delegates.c: Rebuild.
9392 * target.c (target_get_section_table): Unconditionally delegate.
9393 * target.h (struct target_ops) <to_get_section_table>: Use
9394 TARGET_DEFAULT_RETURN.
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9398 * target-delegates.c: Rebuild.
9399 * target.c (target_pid_to_str): Unconditionally delegate.
9400 (init_dummy_target): Don't initialize to_pid_to_str.
9401 (default_pid_to_str): Rename from dummy_pid_to_str.
9402 * target.h (struct target_ops) <to_pid_to_str>: Use
9403 TARGET_DEFAULT_FUNC.
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9407 * target-delegates.c: Rebuild.
9408 * target.c (target_find_new_threads): Unconditionally delegate.
9409 * target.h (struct target_ops) <to_find_new_threads>: Use
9410 TARGET_DEFAULT_RETURN.
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target-delegates.c: Rebuild.
9415 * target.c (target_program_signals): Unconditionally delegate.
9416 * target.h (struct target_ops) <to_program_signals>: Use
9417 TARGET_DEFAULT_IGNORE.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * target-delegates.c: Rebuild.
9422 * target.c (target_pass_signals): Unconditionally delegate.
9423 * target.h (struct target_ops) <to_pass_signals>: Use
9424 TARGET_DEFAULT_IGNORE.
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target-delegates.c: Rebuild.
9429 * target.c (default_mourn_inferior): New function.
9430 (target_mourn_inferior): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_mourn_inferior>: Use
9432 TARGET_DEFAULT_FUNC.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target-delegates.c: Rebuild.
9437 * target.c (default_follow_fork): New function.
9438 (target_follow_fork): Unconditionally delegate.
9439 * target.h (struct target_ops) <to_follow_fork>: Use
9440 TARGET_DEFAULT_FUNC.
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target-delegates.c: Rebuild.
9445 * target.c (target_kill): Unconditionally delegate.
9446 * target.h (struct target_ops) <to_kill>: Use
9447 TARGET_DEFAULT_NORETURN.
9449 2014-02-19 Tom Tromey <tromey@redhat.com>
9451 * target-delegates.c: Rebuild.
9452 * target.c (target_masked_watch_num_registers): Unconditionally
9454 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9455 Use TARGET_DEFAULT_RETURN.
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9459 * target-delegates.c: Rebuild.
9460 * target.c (target_remove_mask_watchpoint): Unconditionally
9462 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9463 TARGET_DEFAULT_RETURN.
9465 2014-02-19 Tom Tromey <tromey@redhat.com>
9467 * target-delegates.c: Rebuild.
9468 * target.c (target_insert_mask_watchpoint): Unconditionally
9470 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9471 TARGET_DEFAULT_RETURN.
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9475 * target-delegates.c: Rebuild.
9476 * target.c (target_ranged_break_num_registers): Unconditionally
9478 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9479 Use TARGET_DEFAULT_RETURN.
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9483 * target-delegates.c: Rebuild.
9484 * target.c (target_fetch_registers): Unconditionally delegate.
9485 * target.h (struct target_ops) <to_fetch_registers>: Use
9486 TARGET_DEFAULT_NORETURN.
9488 2014-02-19 Tom Tromey <tromey@redhat.com>
9490 * target-delegates.c: Rebuild.
9491 * target.c (update_current_target): Don't inherit or default
9493 * target.h (struct target_ops) <to_stop>: Use
9494 TARGET_DEFAULT_IGNORE.
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target-delegates.c: Rebuild.
9499 * target.c (update_current_target): Don't inherit or default
9500 to_can_run_breakpoint_commands.
9501 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9502 Use TARGET_DEFAULT_RETURN.
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9508 to_supports_evaluation_of_breakpoint_conditions.
9509 * target.h (struct target_ops)
9510 <to_supports_evaluation_of_breakpoint_conditions>: Use
9511 TARGET_DEFAULT_RETURN.
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9515 * target-delegates.c: Rebuild.
9516 * target.c (update_current_target): Don't inherit or default
9517 to_augmented_libraries_svr4_read.
9518 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9519 Use TARGET_DEFAULT_RETURN.
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9523 * target-delegates.c: Rebuild.
9524 * target.c (update_current_target): Don't inherit or default
9526 * target.h (struct target_ops) <to_can_use_agent>: Use
9527 TARGET_DEFAULT_RETURN.
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9531 * target-delegates.c: Rebuild.
9532 * target.c (update_current_target): Don't inherit or default
9534 * target.h (struct target_ops) <to_use_agent>: Use
9535 TARGET_DEFAULT_NORETURN.
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9539 * target-delegates.c: Rebuild.
9540 * target.c (update_current_target): Don't inherit or default
9542 (return_null): Remove.
9543 * target.h (struct target_ops) <to_traceframe_info>: Use
9544 TARGET_DEFAULT_RETURN.
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * target-delegates.c: Rebuild.
9549 * target.c (update_current_target): Don't inherit or default
9550 to_static_tracepoint_markers_by_strid.
9551 * target.h (struct target_ops)
9552 <to_static_tracepoint_markers_by_strid>: Use
9553 TARGET_DEFAULT_NORETURN.
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * target-delegates.c: Rebuild.
9558 * target.c (update_current_target): Don't inherit or default
9559 to_static_tracepoint_marker_at.
9560 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9561 Use TARGET_DEFAULT_RETURN.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target-delegates.c: Rebuild.
9566 * target.c (update_current_target): Don't inherit or default
9568 * target.h (struct target_ops) <to_set_permissions>: Use
9569 TARGET_DEFAULT_IGNORE.
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9573 * target-delegates.c: Rebuild.
9574 * target.c (update_current_target): Don't inherit or default
9576 * target.h (struct target_ops) <to_get_tib_address>: Use
9577 TARGET_DEFAULT_NORETURN.
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9581 * target-delegates.c: Rebuild.
9582 * target.c (update_current_target): Don't inherit or default
9584 * target.h (struct target_ops) <to_set_trace_notes>: Use
9585 TARGET_DEFAULT_RETURN.
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9589 * target-delegates.c: Rebuild.
9590 * target.c (update_current_target): Don't initialize
9591 to_set_trace_buffer_size.
9592 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9593 TARGET_DEFAULT_IGNORE.
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9597 * target-delegates.c: Rebuild.
9598 * target.c (update_current_target): Don't inherit or default
9599 to_set_circular_trace_buffer.
9600 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9601 TARGET_DEFAULT_IGNORE.
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9605 * target-delegates.c: Rebuild.
9606 * target.c (update_current_target): Don't inherit or default
9607 to_set_disconnected_tracing.
9608 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9609 TARGET_DEFAULT_IGNORE.
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9613 * target-delegates.c: Rebuild.
9614 * target.c (update_current_target): Don't inherit or default
9615 to_get_min_fast_tracepoint_insn_len.
9616 (return_minus_one): Remove.
9617 * target.h (struct target_ops)
9618 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9622 * target-delegates.c: Rebuild.
9623 * target.c (update_current_target): Don't inherit or default
9624 to_get_raw_trace_data.
9625 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9626 TARGET_DEFAULT_NORETURN.
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * target-delegates.c: Rebuild.
9631 * target.c (update_current_target): Don't inherit or default
9632 to_upload_trace_state_variables.
9633 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9634 Use TARGET_DEFAULT_RETURN.
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9638 * target-delegates.c: Rebuild.
9639 * target.c (update_current_target): Don't inherit or default
9640 to_upload_tracepoints.
9641 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9642 TARGET_DEFAULT_RETURN.
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * target-delegates.c: Rebuild.
9647 * target.c (update_current_target): Don't inherit or default
9649 * target.h (struct target_ops) <to_save_trace_data>: Use
9650 TARGET_DEFAULT_NORETURN.
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9654 * target-delegates.c: Rebuild.
9655 * target.c (update_current_target): Don't inherit or default
9656 to_get_trace_state_variable_value.
9657 * target.h (struct target_ops)
9658 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * target-delegates.c: Rebuild.
9663 * target.c (update_current_target): Don't inherit or default
9665 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9669 * target-delegates.c: Rebuild.
9670 * target.c (update_current_target): Don't inherit or default
9672 * target.h (struct target_ops) <to_trace_stop>: Use
9673 TARGET_DEFAULT_NORETURN.
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9677 * target-delegates.c: Rebuild.
9678 * target.c (update_current_target): Don't inherit or default
9679 to_get_tracepoint_status.
9680 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9681 TARGET_DEFAULT_NORETURN.
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target-delegates.c: Rebuild.
9686 * target.c (update_current_target): Don't inherit or default
9687 to_get_trace_status.
9688 * target.h (struct target_ops) <to_get_trace_status>: Use
9689 TARGET_DEFAULT_RETURN.
9691 2014-02-19 Tom Tromey <tromey@redhat.com>
9693 * target-delegates.c: Rebuild.
9694 * target.c (update_current_target): Don't inherit or default
9696 * target.h (struct target_ops) <to_trace_start>: Use
9697 TARGET_DEFAULT_NORETURN.
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target-delegates.c: Rebuild.
9702 * target.c (update_current_target): Don't inherit or default
9703 to_trace_set_readonly_regions.
9704 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9705 Use TARGET_DEFAULT_NORETURN.
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * target-delegates.c: Rebuild.
9710 * target.c (update_current_target): Don't inherit or default
9711 to_disable_tracepoint.
9712 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9713 TARGET_DEFAULT_NORETURN.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9719 to_enable_tracepoint.
9720 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9721 TARGET_DEFAULT_NORETURN.
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9727 to_download_trace_state_variable.
9728 * target.h (struct target_ops) <to_download_trace_state_variable>:
9729 Use TARGET_DEFAULT_NORETURN.
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't inherit or default
9735 to_can_download_tracepoint.
9736 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9737 TARGET_DEFAULT_RETURN.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9743 to_download_tracepoint.
9744 * target.h (struct target_ops) <to_download_tracepoint>: Use
9745 TARGET_DEFAULT_NORETURN.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9752 * target.h (struct target_ops) <to_trace_init>: Use
9753 TARGET_DEFAULT_RETURN.
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9759 to_supports_string_tracing.
9760 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9761 TARGET_DEFAULT_RETURN.
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9765 * target-delegates.c: Rebuild.
9766 * target.c (update_current_target): Don't inherit or default
9767 to_supports_enable_disable_tracepoint.
9768 * target.h (struct target_ops)
9769 <to_supports_enable_disable_tracepoint>: Use
9770 TARGET_DEFAULT_RETURN.
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9774 * target-delegates.c: Rebuild.
9775 * target.c (update_current_target): Don't inherit or default
9776 to_supports_multi_process.
9777 * target.h (struct target_ops) <to_supports_multi_process>: Use
9778 TARGET_DEFAULT_RETURN.
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9782 * target-delegates.c: Rebuild.
9783 * target.c (update_current_target): Don't inherit or default
9784 to_get_ada_task_ptid.
9785 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9786 TARGET_DEFAULT_FUNC.
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9790 * target-delegates.c: Rebuild.
9791 * target.c (update_current_target): Don't inherit or default
9792 to_thread_architecture.
9793 * target.h (struct target_ops) <to_thread_architecture>: Use
9794 TARGET_DEFAULT_FUNC.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target-delegates.c: Rebuild.
9799 * target.c (update_current_target): Don't inherit or default
9800 to_execution_direction.
9801 * target.h (struct target_ops) <to_execution_direction>: Use
9802 TARGET_DEFAULT_FUNC.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9808 to_can_execute_reverse.
9809 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9810 TARGET_DEFAULT_RETURN.
9811 (target_can_execute_reverse): Unconditionally delegate.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * target-delegates.c: Rebuild.
9816 * target.c (update_current_target): Don't inherit or default
9818 (dummy_goto_bookmark): Remove.
9819 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9820 * target.h (struct target_ops) <to_goto_bookmark>: Use
9821 TARGET_DEFAULT_NORETURN.
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9825 * target-delegates.c: Rebuild.
9826 * target.c (update_current_target): Don't inherit or default
9828 (dummy_get_bookmark): Remove.
9829 (init_dummy_target): Don't inherit or default to_get_bookmark.
9830 * target.h (struct target_ops) <to_get_bookmark>: Use
9831 TARGET_DEFAULT_NORETURN
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9835 * target-delegates.c: Rebuild.
9836 * target.c (update_current_target): Don't inherit or default
9837 to_make_corefile_notes.
9838 (init_dummy_target): Don't initialize to_make_corefile_notes.
9839 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9840 TARGET_DEFAULT_FUNC.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * target-delegates.c: Rebuild.
9845 * target.c (update_current_target): Don't inherit or default
9846 to_find_memory_regions.
9847 (init_dummy_target): Don't initialize to_find_memory_regions.
9848 * target.h (struct target_ops) <to_find_memory_regions>: Use
9849 TARGET_DEFAULT_FUNC.
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * target-delegates.c: Rebuild.
9854 * target.c (update_current_target): Don't inherit or default
9856 * target.h (struct target_ops) <to_log_command>: Use
9857 TARGET_DEFAULT_IGNORE.
9858 (target_log_command): Unconditionally delegate.
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9862 * target-delegates.c: Rebuild.
9863 * target.c (update_current_target): Don't inherit or default
9864 to_pid_to_exec_file.
9865 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9866 TARGET_DEFAULT_RETURN.
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9870 * target-delegates.c: Rebuild.
9871 * target.c (update_current_target): Don't inherit or default
9873 (target_thread_name): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_thread_name>: Use
9875 TARGET_DEFAULT_RETURN.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target-delegates.c: Rebuild.
9880 * target.c (update_current_target): Don't inherit or default
9881 to_extra_thread_info.
9882 * target.h (struct target_ops) <to_extra_thread_info>: Use
9883 TARGET_DEFAULT_RETURN.
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9887 * target-delegates.c: Rebuild.
9888 * target.c (update_current_target): Don't inherit or default
9890 * target.h (struct target_ops) <to_has_exited>: Use
9891 TARGET_DEFAULT_RETURN..
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9895 * target-delegates.c: Rebuild.
9896 * target.c (update_current_target): Don't inherit or default
9897 to_set_syscall_catchpoint.
9898 (return_one): Remove.
9899 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9900 TARGET_DEFAULT_RETURN.
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9904 * target-delegates.c: Rebuild.
9905 * target.c (update_current_target): Don't inherit or default
9906 to_insert_exec_catchpoint.
9907 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9908 TARGET_DEFAULT_RETURN.
9910 2014-01-08 Tom Tromey <tromey@redhat.com>
9912 * target-delegates.c: Rebuild.
9913 * target.c (update_current_target): Don't inherit or default
9914 to_insert_exec_catchpoint.
9915 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9916 TARGET_DEFAULT_RETURN.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target-delegates.c: Rebuild.
9921 * target.c (update_current_target): Don't inherit or default
9922 to_remove_vfork_catchpoint.
9923 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9924 TARGET_DEFAULT_RETURN.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * target-delegates.c: Rebuild.
9929 * target.c (update_current_target): Don't inherit or default
9930 to_insert_vfork_catchpoint.
9931 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9932 TARGET_DEFAULT_RETURN.
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9936 * target-delegates.c: Rebuild.
9937 * target.c (update_current_target): Don't inherit or default
9938 to_remove_fork_catchpoint.
9939 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9940 TARGET_DEFAULT_RETURN.
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9944 * target-delegates.c: Rebuild.
9945 * target.c (update_current_target): Don't inherit or default
9946 to_insert_fork_catchpoint.
9947 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9948 TARGET_DEFAULT_RETURN.
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * target-delegates.c: Rebuild.
9953 * target.c (update_current_target): Don't inherit or default
9954 to_post_startup_inferior.
9955 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9956 TARGET_DEFAULT_IGNORE.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target-delegates.c: Rebuild.
9961 * target.c (update_current_target): Don't inherit or default
9963 * target.h (struct target_ops) <to_load>: Use
9964 TARGET_DEFAULT_NORETURN.
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9968 * target-delegates.c: Rebuild.
9969 * target.c (update_current_target): Don't inherit or default
9971 * target.h (struct target_ops) <to_terminal_info>: Use
9972 TARGET_DEFAULT_FUNC.
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * target-delegates.c: Rebuild.
9977 * target.c (update_current_target): Don't inherit or default
9978 to_terminal_save_ours.
9979 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9980 TARGET_DEFAULT_IGNORE.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * target-delegates.c: Rebuild.
9985 * target.c (update_current_target): Don't inherit or default
9987 * target.h (struct target_ops) <to_terminal_ours>: Use
9988 TARGET_DEFAULT_IGNORE.
9990 2014-02-19 Tom Tromey <tromey@redhat.com>
9992 * target-delegates.c: Rebuild.
9993 * target.c (update_current_target): Don't inherit or default
9994 to_terminal_ours_for_output.
9995 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9996 TARGET_DEFAULT_IGNORE.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target-delegates.c: Rebuild.
10001 * target.c (update_current_target): Don't inherit or default
10002 to_terminal_inferior.
10003 * target.h (struct target_ops) <to_terminal_inferior>: Use
10004 TARGET_DEFAULT_IGNORE.
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't inherit or default
10011 * target.h (struct target_ops) <to_terminal_init>: Use
10012 TARGET_DEFAULT_IGNORE.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_can_accel_watchpoint_condition.
10019 * target.h (struct target_ops)
10020 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10024 * target-delegates.c: Rebuild.
10025 * target.c (update_current_target): Don't inherit or default
10026 to_region_ok_for_hw_watchpoint.
10027 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10028 Use TARGET_DEFAULT_FUNC.
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * target-delegates.c: Rebuild.
10033 * target.c (update_current_target): Don't inherit or default
10034 to_watchpoint_addr_within_range.
10035 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10036 Use TARGET_DEFAULT_FUNC.
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10040 * target-delegates.c: Rebuild.
10041 * target.c (update_current_target): Don't inherit or default
10042 to_remove_watchpoint.
10043 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10044 TARGET_DEFAULT_NORETURN.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target-delegates.c: Rebuild.
10049 * target.c (update_current_target): Don't inherit or default
10050 to_insert_watchpoint.
10051 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10052 TARGET_DEFAULT_RETURN.
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10056 * target-delegates.c: Rebuild.
10057 * target.c (update_current_target): Don't inherit or default
10058 to_remove_hw_breakpoint.
10059 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10060 TARGET_DEFAULT_RETURN.
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * target-delegates.c: Rebuild.
10065 * target.c (update_current_target): Don't inherit or default
10066 to_insert_hw_breakpoint.
10067 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10068 TARGET_DEFAULT_RETURN.
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_can_use_hw_breakpoint.
10075 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10076 TARGET_DEFAULT_RETURN.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10083 * target.h (struct target_ops) <to_files_info>: Use
10084 TARGET_DEFAULT_IGNORE.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10091 * target.h (struct target_ops) <to_store>: Use
10092 TARGET_DEFAULT_NORETURN.
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10099 * target.h (struct target_ops) <to_post_attach>: Use
10100 TARGET_DEFAULT_IGNORE.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10107 (default_rcmd): New function.
10108 (do_monitor_command): Unconditionally delegate.
10109 * target.h (struct target_ops) <to_rmcd>: Use
10110 TARGET_DEFAULT_FUNC.
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target-delegates.c: Rebuild.
10115 * target.c (init_dummy_target): Don't initialize to_attach.
10116 (target_attach): Unconditionally delegate.
10117 * target.h (struct target_ops) <to_attach>: Use
10118 TARGET_DEFAULT_FUNC.
10120 2014-02-19 Tom Tromey <tromey@redhat.com>
10122 * target-delegates.c: Rebuild.
10123 * target.c (target_detach): Unconditionally delegate.
10124 (init_dummy_target): Don't initialize to_detach.
10125 * target.h (struct target_ops) <to_detach>: Use
10126 TARGET_DEFAULT_IGNORE.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10132 (target_augmented_libraries_svr4_read): Add argument.
10133 * target.c (update_current_target): Update.
10134 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10139 * target.h (struct target_ops) <to_call_history_range>: Add
10141 * target.c (target_call_history_range): Add argument.
10142 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10144 (record_btrace_call_history_from): Update.
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10148 * target.h (struct target_ops) <to_call_history_from>: Add
10150 * target.c (target_call_history_from): Add argument.
10151 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10156 * target.h (struct target_ops) <to_call_history>: Add argument.
10157 * target.c (target_call_history): Add argument.
10158 * record-btrace.c (record_btrace_call_history): Add 'self'
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target.h (struct target_ops) <to_insn_history_range>: Add
10165 * target.c (target_insn_history_range): Add argument.
10166 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10168 (record_btrace_insn_history_from): Update.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * target.h (struct target_ops) <to_insn_history_from>: Add
10174 * target.c (target_insn_history_from): Add argument.
10175 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10180 * target.h (struct target_ops) <to_insn_history>: Add argument.
10181 * target.c (target_insn_history): Add argument.
10182 * record-btrace.c (record_btrace_insn_history): Add 'self'
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target.h (struct target_ops) <to_goto_record>: Add argument.
10188 * target.c (target_goto_record): Add argument.
10189 * record-full.c (record_full_goto): Add 'self' argument.
10190 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10194 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10195 * target.c (target_goto_record_end): Add argument.
10196 * record-full.c (record_full_goto_end): Add 'self' argument.
10197 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10201 * target.h (struct target_ops) <to_goto_record_begin>: Add
10203 * target.c (target_goto_record_begin): Add argument.
10204 * record-full.c (record_full_goto_begin): Add 'self' argument.
10205 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target.h (struct target_ops) <to_record_is_replaying>: Add
10212 * target.c (target_record_is_replaying): Add argument.
10213 * record-full.c (record_full_is_replaying): Add 'self' argument.
10214 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10216 (record_btrace_xfer_partial, record_btrace_store_registers)
10217 (record_btrace_prepare_to_store, record_btrace_resume)
10218 (record_btrace_wait, record_btrace_decr_pc_after_break)
10219 (record_btrace_find_new_threads, record_btrace_thread_alive):
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * target.h (struct target_ops) <to_delete_record>: Add argument.
10225 * target.c (target_delete_record): Add argument.
10226 * record-full.c (record_full_delete): Add 'self' argument.
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * target.h (struct target_ops) <to_save_record>: Add argument.
10231 * target.c (target_save_record): Add argument.
10232 * record-full.c (record_full_save): Add 'self' argument.
10233 (record_full_save): Add 'self' argument.
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target.h (struct target_ops) <to_info_record>: Add argument.
10238 * target.c (target_info_record): Add argument.
10239 * record.c (info_record_command): Add argument.
10240 * record-full.c (record_full_info): Add 'self' argument.
10241 * record-btrace.c (record_btrace_info): Add 'self' argument.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10246 * target.c (target_stop_recording): Add argument.
10247 * record.c (record_stop): Add argument.
10248 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10254 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10255 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10257 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10258 (_initialize_amd64_linux_nat): Use it.
10259 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10260 (_initialize_i386_linux_nat): Use it.
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10265 * target.c (target_teardown_btrace): Add argument.
10266 * remote.c (remote_teardown_btrace): Add 'self' argument.
10267 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10269 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10275 * target.c (target_disable_btrace): Add argument.
10276 * remote.c (remote_disable_btrace): Add 'self' argument.
10277 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10279 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10284 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10285 * target.c (target_enable_btrace): Add argument.
10286 * remote.c (remote_enable_btrace): Add 'self' argument.
10287 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10289 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10295 (target_can_use_agent): Add argument.
10296 * target.c (update_current_target): Update.
10297 * remote.c (remote_can_use_agent): Add 'self' argument.
10298 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10302 * target.h (struct target_ops) <to_use_agent>: Add argument.
10303 (target_use_agent): Add argument.
10304 * target.c (update_current_target): Update.
10305 * remote.c (remote_use_agent): Add 'self' argument.
10306 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10311 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10312 (target_traceframe_info): Add argument.
10313 * target.c (update_current_target): Update.
10314 * remote.c (remote_traceframe_info): Add 'self' argument.
10315 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target.h (target_static_tracepoint_markers_by_strid): Add
10321 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10323 * target.c (update_current_target): Update.
10324 * remote.c (struct target_ops)
10325 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10326 * linux-nat.c (struct target_ops)
10327 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10333 (target_static_tracepoint_marker_at): Add argument.
10334 * target.c (update_current_target): Update.
10335 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10338 2014-02-19 Tom Tromey <tromey@redhat.com>
10340 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10341 (target_set_permissions): Add argument.
10342 * target.c (update_current_target): Update.
10343 * remote.c (remote_set_permissions): Add 'self' argument.
10344 (remote_start_remote): Update.
10346 2014-02-19 Tom Tromey <tromey@redhat.com>
10348 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10349 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10350 (target_get_tib_address): Add argument.
10351 * target.c (update_current_target): Update.
10352 * remote.c (remote_get_tib_address): Add 'self' argument.
10354 2014-02-19 Tom Tromey <tromey@redhat.com>
10356 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10357 (target_set_trace_notes): Add argument.
10358 * target.c (update_current_target): Update.
10359 * remote.c (remote_set_trace_notes): Add 'self' argument.
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10363 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10365 (target_set_trace_buffer_size): Add argument.
10366 * target.c (update_current_target): Update.
10367 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10373 (target_set_circular_trace_buffer): Add argument.
10374 * target.c (update_current_target): Update.
10375 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10380 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10382 (target_set_disconnected_tracing): Add argument.
10383 * target.c (update_current_target): Update.
10384 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10386 2014-02-19 Tom Tromey <tromey@redhat.com>
10388 * target.h (struct target_ops)
10389 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10390 (target_get_min_fast_tracepoint_insn_len): Add argument.
10391 * target.c (update_current_target): Update.
10392 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10399 (target_get_raw_trace_data): Add argument.
10400 * target.c (update_current_target): Update.
10401 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10405 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10407 (target_upload_trace_state_variables): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_upload_trace_state_variables): Add 'self'
10411 (remote_start_remote): Update.
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10415 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10417 (target_upload_tracepoints): Add argument.
10418 * target.c (update_current_target): Update.
10419 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10420 (remote_start_remote): Update.
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10425 (target_save_trace_data): Add argument.
10426 * target.c (update_current_target): Update.
10427 * remote.c (remote_save_trace_data): Add 'self' argument.
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10431 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10433 * target.h (struct target_ops)
10434 <to_get_trace_state_variable_value>: Add argument.
10435 (target_get_trace_state_variable_value): Add argument.
10436 * target.c (update_current_target): Update.
10437 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10439 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10443 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10444 * target.h (struct target_ops) <to_trace_find>: Add argument.
10445 (target_trace_find): Add argument.
10446 * target.c (update_current_target): Update.
10447 * remote.c (remote_trace_find): Add 'self' argument.
10448 * ctf.c (ctf_trace_find): Add 'self' argument.
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10452 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10453 (target_trace_stop): Add argument.
10454 * target.c (update_current_target): Update.
10455 * remote.c (remote_trace_stop): Add 'self' argument.
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10459 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10460 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10462 (target_get_tracepoint_status): Add argument.
10463 * target.c (update_current_target): Update.
10464 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10468 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10469 * target.h (struct target_ops) <to_get_trace_status>: Add
10471 (target_get_trace_status): Add argument.
10472 * target.c (update_current_target): Update.
10473 * remote.c (remote_get_trace_status): Add 'self' argument.
10474 (remote_start_remote, remote_can_download_tracepoint): Update.
10475 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10479 * target.h (struct target_ops) <to_trace_start>: Add argument.
10480 (target_trace_start): Add argument.
10481 * target.c (update_current_target): Update.
10482 * remote.c (remote_trace_start): Add 'self' argument.
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10486 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10488 (target_trace_set_readonly_regions): Add argument.
10489 * target.c (update_current_target): Update.
10490 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10495 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10497 (target_disable_tracepoint): Add argument.
10498 * target.c (update_current_target): Update.
10499 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10501 2014-02-19 Tom Tromey <tromey@redhat.com>
10503 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10505 (target_enable_tracepoint): Add argument.
10506 * target.c (update_current_target): Update.
10507 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10511 * target.h (struct target_ops) <to_download_trace_state_variable>:
10513 (target_download_trace_state_variable): Add argument.
10514 * target.c (update_current_target): Update.
10515 * remote.c (remote_download_trace_state_variable): Add 'self'
10518 2014-02-19 Tom Tromey <tromey@redhat.com>
10520 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10522 (target_can_download_tracepoint): Add argument.
10523 * target.c (update_current_target): Update.
10524 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10526 2014-02-19 Tom Tromey <tromey@redhat.com>
10528 * target.h (struct target_ops) <to_download_tracepoint>: Add
10530 (target_download_tracepoint): Add argument.
10531 * target.c (update_current_target): Update.
10532 * remote.c (remote_download_tracepoint): Add 'self' argument.
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10536 * target.h (struct target_ops) <to_trace_init>: Add argument.
10537 (target_trace_init): Add argument.
10538 * target.c (update_current_target): Update.
10539 * remote.c (remote_trace_init): Add 'self' argument.
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10543 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10544 * target.c (target_fileio_readlink): Add argument.
10545 * remote.c (remote_hostio_readlink): Add 'self' argument.
10546 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10548 2014-02-19 Tom Tromey <tromey@redhat.com>
10550 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10551 * target.c (target_fileio_unlink): Add argument.
10552 * remote.c (remote_hostio_unlink): Add 'self' argument.
10553 (remote_file_delete): Update.
10554 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10556 2014-02-19 Tom Tromey <tromey@redhat.com>
10558 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10559 * target.c (target_fileio_close): Add argument.
10560 * remote.c (remote_hostio_close): Add 'self' argument.
10561 (remote_hostio_close_cleanup): Update.
10562 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10564 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10569 * target.c (target_fileio_pread): Add argument.
10570 * remote.c (remote_hostio_pread): Add 'self' argument.
10571 (remote_bfd_iovec_pread, remote_file_get): Update.
10572 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10577 * target.c (target_fileio_pwrite): Add argument.
10578 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10579 (remote_file_put): Update.
10580 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10585 * target.c (target_fileio_open): Add argument.
10586 * remote.c (remote_hostio_open): Add 'self' argument.
10587 (remote_bfd_iovec_open): Add 'self' argument.
10588 (remote_file_put): Add 'self' argument.
10589 (remote_file_get): Add 'self' argument.
10590 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10596 (target_can_run_breakpoint_commands): Add argument.
10597 * target.c (update_current_target): Update.
10598 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10600 (remote_insert_breakpoint): Add 'self' argument.
10601 (remote_insert_hw_breakpoint): Add 'self' argument.
10602 (remote_can_run_breakpoint_commands): Add 'self' argument.
10604 2014-02-19 Tom Tromey <tromey@redhat.com>
10606 * target.h (struct target_ops)
10607 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10608 (target_supports_evaluation_of_breakpoint_conditions): Add
10610 * target.c (update_current_target): Update.
10611 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10613 (remote_insert_breakpoint): Add 'self' argument.
10614 (remote_insert_hw_breakpoint): Add 'self' argument.
10615 (remote_supports_cond_breakpoints): Add 'self' argument.
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10619 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10621 (target_supports_string_tracing): Add argument.
10622 * target.c (update_current_target): Update.
10623 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target.h (struct target_ops)
10628 <to_supports_disable_randomization>: Add argument.
10629 * target.c (find_default_supports_disable_randomization): Add
10631 (target_supports_disable_randomization): Add argument.
10632 (find_default_supports_disable_randomization): Add 'self'
10634 * remote.c (extended_remote_supports_disable_randomization): Add
10636 (remote_supports_disable_randomization): Add 'self' argument.
10637 (extended_remote_create_inferior): Update.
10638 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10643 * target.h (struct target_ops)
10644 <to_supports_enable_disable_tracepoint>: Add argument.
10645 (target_supports_enable_disable_tracepoint): Add argument.
10646 * target.c (update_current_target): Update.
10647 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10650 2014-02-19 Tom Tromey <tromey@redhat.com>
10652 * target.h (struct target_ops) <to_supports_multi_process>: Add
10654 (target_supports_multi_process): Add argument.
10655 * target.c (update_current_target): Update.
10656 * remote.c (remote_supports_multi_process): Add 'self' argument.
10657 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10659 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10664 * target.h (struct target_ops) <to_execution_direction>: Add
10666 (target_execution_direction): Add argument.
10667 * target.c (default_execution_direction): Add 'self' argument.
10668 * record-full.c (record_full_execution_direction): Add 'self'
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10673 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10675 (target_can_execute_reverse): Add argument.
10676 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10677 * record-full.c (record_full_can_execute_reverse): Add 'self'
10679 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10682 2014-02-19 Tom Tromey <tromey@redhat.com>
10684 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10685 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10687 (target_get_ada_task_ptid): Add argument.
10688 * target.c (update_current_target): Update.
10689 (default_get_ada_task_ptid): Add 'self' argument.
10690 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10691 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10692 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10694 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10696 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10698 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10700 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10701 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10707 (target_goto_bookmark): Add argument.
10708 * target.c (dummy_goto_bookmark): Add 'self' argument.
10709 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10714 (target_get_bookmark): Add argument.
10715 * target.c (dummy_get_bookmark): Add 'self' argument.
10716 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10722 (target_make_corefile_notes): Add argument.
10723 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10724 * procfs.c (procfs_make_note_section): Add 'self' argument.
10725 (procfs_make_note_section): Add 'self' argument.
10726 (procfs_make_note_section): Add 'self' argument.
10727 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10729 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10730 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10731 * exec.c (exec_make_note_section): Add 'self' argument.
10732 (exec_make_note_section): Add 'self' argument.
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10736 * target.h (struct target_ops) <to_find_memory_regions>: Add
10738 (target_find_memory_regions): Add argument.
10739 * target.c (dummy_find_memory_regions): Add 'self' argument.
10740 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10741 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10742 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10743 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10744 * exec. (exec_do_find_memory_regions): New global.
10745 (exec_set_find_memory_regions): Rewrite.
10746 (exec_find_memory_regions): New function.
10747 (init_exec_ops): Use exec_find_memory_regions.
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10751 * target.h (struct target_ops) <to_supports_non_stop>: Add
10753 * target.c (find_default_supports_non_stop): Add argument.
10754 (target_supports_non_stop): Add argument.
10755 (find_default_supports_non_stop): Add 'self' argument.
10756 * remote.c (remote_supports_non_stop): Add 'self' argument.
10757 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10759 2014-02-19 Tom Tromey <tromey@redhat.com>
10761 * target.h (struct target_ops) <to_log_command>: Add argument.
10762 (target_log_command): Add argument.
10763 * serial.h (serial_log_command): Add 'self' argument.
10764 * serial.c (serial_log_command): Add 'self' argument.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10769 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10771 (target_pid_to_exec_file): Add argument.
10772 * target.c (debug_to_pid_to_exec_file): Add argument.
10773 (update_current_target): Update.
10774 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10775 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10776 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10777 (linux_handle_extended_wait): Update.
10778 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10779 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10780 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10781 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10785 * target.h (struct target_ops) <to_rcmd>: Add argument.
10786 (target_rcmd): Add argument.
10787 * target.c (debug_to_rcmd): Add argument.
10788 (update_current_target, do_monitor_command): Update.
10789 * remote.c (remote_rcmd): Add 'self' argument.
10790 * monitor.c (monitor_rcmd): Add 'self' argument.
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10794 * windows-nat.c (windows_stop): Add 'self' argument.
10795 * target.h (struct target_ops) <to_stop>: Add argument.
10796 * target.c (target_stop): Add argument.
10797 (debug_to_stop): Add argument.
10798 (update_current_target): Update.
10799 * remote.c (remote_stop): Add 'self' argument.
10800 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10801 (gdbsim_cntrl_c): Update.
10802 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10803 * procfs.c (procfs_stop): Add 'self' argument.
10804 * nto-procfs.c (procfs_stop): Add 'self' argument.
10805 * monitor.c (monitor_stop): Add 'self' argument.
10806 (monitor_open): Update.
10807 * linux-nat.c (linux_nat_stop): Add argument.
10808 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10809 * gnu-nat.c (gnu_stop): Add 'self' argument.
10810 * darwin-nat.c (darwin_stop): Add 'self' argument.
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target.h (struct target_ops) <to_thread_name>: Add argument.
10815 * target.c (target_thread_name): Add argument.
10816 (update_current_target): Update.
10817 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10821 * target.h (struct target_ops) <to_extra_thread_info>: Add
10823 (target_extra_thread_info): Add argument.
10824 * target.c (update_current_target): Update.
10825 * remote.c (remote_threads_extra_info): Add 'self' argument.
10826 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10828 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10829 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10830 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10832 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10834 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10836 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10841 * target.h (struct target_ops) <to_program_signals>: Add argument.
10842 * target.c (target_program_signals): Add argument.
10843 * remote.c (remote_program_signals): Add 'self' argument.
10845 2014-02-19 Tom Tromey <tromey@redhat.com>
10847 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10848 * target.c (target_pass_signals): Add argument.
10849 * remote.c (remote_pass_signals): Add 'self' argument.
10850 (remote_start_remote): Update.
10851 * procfs.c (procfs_pass_signals): Add 'self' argument.
10852 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10853 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10854 (linux_nat_create_inferior, linux_nat_attach): Update.
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * windows-nat.c (windows_can_run): Add 'self' argument.
10859 * target.h (struct target_ops) <to_can_run>: Add argument.
10860 (target_can_run): Add argument.
10861 * target.c (debug_to_can_run): Add argument.
10862 (update_current_target): Update.
10863 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10864 * inf-child.c (inf_child_can_run): Add 'self' argument.
10865 * go32-nat.c (go32_can_run): Add 'self' argument.
10867 2014-02-19 Tom Tromey <tromey@redhat.com>
10869 * target.h (struct target_ops) <to_has_exited>: Add argument.
10870 (target_has_exited): Add argument.
10871 * target.c (debug_to_has_exited): Add argument.
10872 (update_current_target): Update.
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10876 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10878 (target_set_syscall_catchpoint): Add argument.
10879 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10881 * target.c (update_current_target): Update.
10883 2014-02-19 Tom Tromey <tromey@redhat.com>
10885 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10887 (target_remove_exec_catchpoint): Add argument.
10888 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10889 (update_current_target): Update.
10890 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10893 2014-02-19 Tom Tromey <tromey@redhat.com>
10895 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10897 (target_insert_exec_catchpoint): Add argument.
10898 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10899 (update_current_target): Update.
10900 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10905 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10907 (target_remove_vfork_catchpoint): Add argument.
10908 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10909 (update_current_target): Update.
10910 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10917 (target_insert_vfork_catchpoint): Add argument.
10918 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10919 (update_current_target): Update.
10920 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10925 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10927 (target_remove_fork_catchpoint): Add argument.
10928 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10929 (update_current_target): Update.
10930 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10937 (target_insert_fork_catchpoint): Add argument.
10938 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10939 (update_current_target): Update.
10940 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10945 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10947 (target_post_startup_inferior): Add argument.
10948 * target.c (debug_to_post_startup_inferior): Add argument.
10949 (update_current_target): Update.
10950 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10952 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10954 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10956 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10958 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10960 (super_post_startup_inferior): Likewise.
10961 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10963 (super_post_startup_inferior): Likewise.
10964 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10965 Add 'self' argument.
10966 (super_post_startup_inferior): Likewise.
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10970 * target.h (struct target_ops) <to_load>: Add argument.
10971 * target.c (target_load): Add argument.
10972 (debug_to_load): Add argument.
10973 (update_current_target): Update.
10974 * remote.c (remote_load): Add 'self' argument.
10975 * remote-sim.c (gdbsim_load): Add 'self' argument.
10976 * remote-mips.c (mips_load): Add 'self' argument.
10977 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10978 * monitor.c (monitor_load): Add 'self' argument.
10979 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10981 2014-02-19 Tom Tromey <tromey@redhat.com>
10983 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10984 (target_terminal_info): Add argument.
10985 * target.c (debug_to_terminal_info): Add argument.
10986 (default_terminal_info): Likewise.
10987 * inflow.c (child_terminal_info): Add 'self' argument.
10988 * inferior.h (child_terminal_info): Add 'self' argument.
10989 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10993 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10995 (target_terminal_save_ours): Add argument.
10996 * target.c (debug_to_terminal_save_ours): Add argument.
10997 (update_current_target): Update.
10998 * inflow.c (terminal_save_ours): Add 'self' argument.
10999 * inferior.h (terminal_save_ours): Add 'self' argument.
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11003 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11004 (target_terminal_ours): Add argument.
11005 * target.c (debug_to_terminal_ours): Add argument.
11006 (update_current_target): Update.
11007 * remote.c (remote_terminal_ours): Add 'self' argument.
11008 (remote_close): Update.
11009 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11010 * inflow.c (terminal_ours): Add 'self' argument.
11011 * inferior.h (terminal_ours): Add 'self' argument.
11012 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11014 2014-02-19 Pedro Alves <palves@redhat.com>
11015 Tom Tromey <tromey@redhat.com>
11017 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11019 (target_terminal_ours_for_output): Add argument.
11020 * target.c (debug_to_terminal_ours_for_output): Add argument.
11021 (update_current_target): Update.
11022 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11023 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11024 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11028 * target.h (struct target_ops) <to_terminal_inferior>: Add
11030 * target.c (target_terminal_inferior): Add argument.
11031 (update_current_target): Update.
11032 * remote.c (remote_terminal_inferior): Add 'self' argument.
11033 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11034 * inflow.c (terminal_inferior): Add 'self' argument.
11035 * inferior.h (terminal_inferior): Add 'self' argument.
11036 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11037 (go32_terminal_inferior): Add 'self' argument.
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11041 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11042 (target_terminal_init): Add argument.
11043 * target.c (debug_to_terminal_init): Add argument.
11044 (update_current_target): Update.
11045 * inflow.c (terminal_init_inferior): Add 'self' argument.
11046 * inferior.h (terminal_init_inferior): Add 'self' argument.
11047 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11048 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11052 * target.h (struct target_ops)
11053 <to_can_accel_watchpoint_condition>: Add argument.
11054 (target_can_accel_watchpoint_condition): Add argument.
11055 * target.c (debug_to_can_accel_watchpoint_condition): Add
11057 (update_current_target): Update.
11058 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11063 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11065 (target_region_ok_for_hw_watchpoint): Add argument.
11066 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11067 (default_region_ok_for_hw_watchpoint): Add argument.
11068 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11069 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11071 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11073 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11075 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11077 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11079 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11081 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11082 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11084 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11085 Add 'self' argument.
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11089 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11091 (target_insert_watchpoint): Add argument.
11092 * target.c (debug_to_insert_watchpoint): Add argument.
11093 (update_current_target): Update.
11094 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11095 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11096 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11097 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11098 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11099 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11101 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11102 (procfs_insert_hw_watchpoint): Add 'self' argument.
11103 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11105 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11107 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11109 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11110 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11112 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11119 (target_remove_watchpoint): Add argument.
11120 * target.c (debug_to_remove_watchpoint): Add argument.
11121 (update_current_target): Update.
11122 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11123 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11124 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11125 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11126 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11127 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11129 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11130 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11132 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11134 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11136 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11137 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11139 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11142 2014-02-19 Tom Tromey <tromey@redhat.com>
11144 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11146 (target_remove_hw_breakpoint): Add argument.
11147 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11148 (update_current_target): Update.
11149 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11150 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11152 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11153 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11155 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11160 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11162 (target_insert_hw_breakpoint): Add argument.
11163 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11164 (update_current_target): Update.
11165 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11166 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11168 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11169 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11170 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11172 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11177 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11179 (target_can_use_hardware_watchpoint): Add argument.
11180 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11181 (update_current_target): Update.
11182 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11184 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11186 * remote.c (remote_check_watch_resources): Add 'self' argument.
11187 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11188 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11190 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11191 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11193 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11195 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11197 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11199 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11201 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11203 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11204 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11206 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11209 2014-02-19 Tom Tromey <tromey@redhat.com>
11211 * target.h (struct target_ops) <to_post_attach>: Add argument.
11212 (target_post_attach): Add argument.
11213 * target.c (debug_to_post_attach): Add argument.
11214 (update_current_target): Update.
11215 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11216 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11217 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11218 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11219 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11223 * windows-nat.c (windows_close): Add 'self' argument.
11224 * tracepoint.c (tfile_close): Add 'self' argument.
11225 * target.h (struct target_ops) <to_close>: Add argument.
11226 * target.c (target_close): Add argument.
11227 (update_current_target): Update.
11228 * remote.c (remote_close): Add 'self' argument.
11229 * remote-sim.c (gdbsim_close): Add 'self' argument.
11230 * remote-mips.c (mips_close): Add 'self' argument.
11231 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11232 * record-full.c (record_full_close): Add 'self' argument.
11233 * record-btrace.c (record_btrace_close): Add 'self' argument.
11234 * monitor.h (monitor_close): Add 'self' argument.
11235 * monitor.c (monitor_close): Add 'self' argument.
11236 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11237 * linux-nat.c (linux_nat_close): Add argument.
11238 * go32-nat.c (go32_close): Add 'self' argument.
11239 * exec.c (exec_close_1): Add 'self' argument.
11240 * ctf.c (ctf_close): Add 'self' argument.
11241 * corelow.c (core_close): Add 'self' argument.
11242 (core_close_cleanup): Update.
11243 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11244 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11248 * remote.c (remote_load): New function.
11249 (init_remote_ops): Use it.
11251 2014-02-19 Tom Tromey <tromey@redhat.com>
11253 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11255 * common/linux-btrace.h (linux_supports_btrace): Update.
11256 * remote.c (remote_supports_btrace): Add "self" argument.
11257 * target-delegates.c: Rebuild.
11258 * target.c (target_supports_btrace): Remove.
11259 * target.h (struct target_ops) <to_supports_btrace>: Add
11260 target_ops argument.
11261 (target_supports_btrace): New define.
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * record-full.c (record_full_beneath_to_resume_ops)
11266 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11267 (record_full_beneath_to_wait)
11268 (record_full_beneath_to_store_registers_ops)
11269 (record_full_beneath_to_store_registers)
11270 (record_full_beneath_to_xfer_partial_ops)
11271 (record_full_beneath_to_xfer_partial)
11272 (record_full_beneath_to_insert_breakpoint_ops)
11273 (record_full_beneath_to_insert_breakpoint)
11274 (record_full_beneath_to_remove_breakpoint_ops)
11275 (record_full_beneath_to_remove_breakpoint)
11276 (record_full_beneath_to_stopped_by_watchpoint)
11277 (record_full_beneath_to_stopped_data_address)
11278 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11279 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11280 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11281 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11282 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11283 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11284 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11285 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11286 (record_full_resume, record_full_wait_1)
11287 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11288 (record_full_store_registers, record_full_xfer_partial)
11289 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11290 (record_full_async, record_full_core_xfer_partial): Use target
11292 * target-delegates.c: Rebuild.
11293 * target.c (current_xfer_partial): Remove.
11294 (update_current_target): Do not INHERIT or de_fault
11295 to_insert_breakpoint, to_remove_breakpoint,
11296 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11297 to_is_async_p, to_async. Do not set to_xfer_partial field.
11298 (default_xfer_partial): Simplify.
11299 (current_xfer_partial): Remove.
11300 (target_wait, target_resume): Simplify.
11301 (find_default_can_async_p, find_default_is_async_p): Update.
11302 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11303 to_xfer_partial, to_stopped_by_watchpoint,
11304 to_stopped_data_address.
11305 (target_store_registers): Simplify.
11306 (forward_target_remove_breakpoint)
11307 (forward_target_insert_breakpoint): Remove.
11308 (target_remove_breakpoint, target_insert_breakpoint)
11309 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11310 * target.h (struct target_ops) <to_resume, to_wait,
11311 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11312 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11313 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11315 (forward_target_remove_breakpoint)
11316 (forward_target_insert_breakpoint): Remove.
11317 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11319 (record_btrace_insert_breakpoint): Delegate directly.
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11324 * target-delegates.c: New file.
11325 * target.c: Include target-delegates.c.
11326 (init_dummy_target): Call install_dummy_methods.
11327 (complete_target_initialization): Call install_delegators.
11328 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11329 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11330 * make-target-delegates: New file.
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11334 * record.c (find_record_target): Use find_target_at.
11335 * target.c (find_target_at): New function.
11336 * target.h (find_target_at): Declare.
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11341 Add 'ops' argument.
11342 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11344 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11345 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11347 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11349 * linux-nat.c (save_sigtrap): Update.
11350 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11351 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11352 (linux_nat_close): Update.
11353 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11355 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11357 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11358 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11359 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11360 (tmp_to_async): Add 'ops' argument.
11361 (record_full_stopped_by_watchpoint, record_full_async)
11362 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11364 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11365 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11366 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11367 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11368 (remote_is_async_p, remote_async): Add 'ops' argument.
11369 (remote_stopped_data_address): Update.
11370 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11371 * target.c (update_current_target)
11372 (find_default_can_async_p, find_default_is_async_p): Update.
11373 (init_dummy_target): Update.
11374 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11375 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11376 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11377 (target_can_async_p, target_is_async_p, target_async)
11378 (target_stopped_by_watchpoint): Update.
11380 2014-02-19 Yao Qi <yao@codesourcery.com>
11383 * gdbarch.sh: Remove startup_gdbarch.
11384 * gdbarch.c: Regenerated.
11385 * gdbarch.h: Likewise.
11387 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11389 * rl78-tdep.c (rl78_g10_register_name): New function.
11390 (rl78_return_value): Add g10 support.
11391 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11394 2014-02-17 Doug Evans <xdje42@gmail.com>
11396 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11397 (SUBDIR_GUILE_SRCS): Ditto.
11398 (scm-gsmob.o): Ditto.
11400 2014-02-17 Yao Qi <yao@codesourcery.com>
11402 * gnu-nat.c (ILL_RPC): Declare defined function.
11404 2014-02-17 Yao Qi <yao@codesourcery.com>
11406 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11407 mach_msg_type_number_t.
11408 (gnu_write_inferior): Likewise.
11410 2014-02-17 Yao Qi <yao@codesourcery.com>
11412 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11414 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11415 (inf_validate_procs, inf_signal): Likewise.
11416 (S_exception_raise_request): Likewise.
11417 (do_mach_notify_dead_name): Likewise.
11418 (steal_exc_port): Likewise.
11419 (gnu_read_inferior): Change 'copy_count''s type to
11420 mach_msg_type_number_t.
11421 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11424 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11426 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11427 flag. Adjust all users; in particular...
11428 (gnu_wait): ..., don't decrement its value in here...
11429 (gnu_create_inferior): ..., and instead set the flag in here,
11430 around the startup_inferior call, and call that one with
11431 START_INFERIOR_TRAPS_EXPECTED.
11433 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11434 (ILL_RPC): ... new macro.
11435 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11436 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11437 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11438 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11439 functions with ILL_RPC macro.
11440 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11441 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11442 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11443 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11444 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11445 (S_proc_getlogin_reply, S_proc_getsid_reply)
11446 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11447 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11448 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11449 (S_proc_getnports_reply, S_proc_is_important_reply)
11450 (S_proc_get_code_reply): New stub functions, generated with
11453 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11454 collected the type check structures.
11456 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11458 2014-02-14 Doug Evans <dje@google.com>
11460 * target.c (target_write_partial): Fix result type.
11462 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11464 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11465 the proper offsets to access fpregset_t.
11467 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11469 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11470 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11471 * h8300-tdep.c (setmachinelist): Remove global.
11472 * hppa-tdep.c (hppa_sigtramp): Remove global.
11473 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11474 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11475 * ravenscar-thread.c (update_target_observer): Remove global.
11476 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11478 2014-02-12 Tom Tromey <tromey@redhat.com>
11480 * common/rsp-low.c: Update comments.
11481 * common/rsp-low.h: Update comments.
11483 2014-02-12 Tom Tromey <tromey@redhat.com>
11485 * common/rsp-low.c (convert_ascii_to_int): Remove.
11486 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11488 2014-02-12 Tom Tromey <tromey@redhat.com>
11490 * common/rsp-low.h (unhexify): Don't declare.
11491 * common/rsp-low.c (unhexify): Remove.
11493 2014-02-12 Tom Tromey <tromey@redhat.com>
11495 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11496 * common/rsp-low.c (convert_int_to_ascii): Remove.
11498 2014-02-12 Tom Tromey <tromey@redhat.com>
11500 * common/rsp-low.h (hexify): Don't declare.
11501 * common/rsp-low.c (hexify): Remove.
11503 2014-02-12 Tom Tromey <tromey@redhat.com>
11505 * common/rsp-low.c (hexify): Never take strlen of argument.
11507 2014-02-12 Tom Tromey <tromey@redhat.com>
11509 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11510 * remote.c (extended_remote_run, remote_rcmd)
11511 (remote_download_trace_state_variable, remote_save_trace_data)
11512 (remote_set_trace_notes): Update.
11513 * tracepoint.c (encode_source_string, tfile_write_status)
11514 (tfile_write_uploaded_tsv): Update.
11516 2014-02-12 Tom Tromey <tromey@redhat.com>
11518 * tracepoint.c: Include rsp-low.h.
11519 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11520 * remote.c: Include rsp-low.h.
11521 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11522 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11523 (remote_unescape_input): Move to common/rsp-low.c.
11524 * common/rsp-low.h: New file.
11525 * common/rsp-low.c: New file.
11526 * Makefile.in (SFILES): Add common/rsp-low.c.
11527 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11528 (COMMON_OBS): Add rsp-low.o.
11529 (rsp-low.o): New target.
11531 2014-02-12 Tom Tromey <tromey@redhat.com>
11533 * utils.h: Include print-utils.h.
11534 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11535 (int_string, core_addr_to_string, core_addr_to_string_nz)
11536 (hex_string, hex_string_custom): Don't declare.
11537 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11538 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11539 (hex_string_custom, int_string, core_addr_to_string)
11540 (core_addr_to_string_nz, host_address_to_string): Move to
11541 common/print-utils.c.
11542 * common/print-utils.h: New file.
11543 * common/print-utils.c: New file
11544 * Makefile.in (SFILES): Add common/print-utils.c.
11545 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11546 (COMMON_OBS): Add print-utils.o.
11547 (print-utils.o): New target.
11549 2014-02-12 Tom Tromey <tromey@redhat.com>
11551 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11553 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11555 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11557 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11559 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11560 if a PT_IO ptrace request returns sucessfully but indicates that 0
11561 bytes were transferred.
11563 2014-02-12 Pedro Alves <palves@redhat.com>
11564 Kevin Buettner <kevinb@redhat.com>
11566 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11567 TYPE_INSTANCE_FLAG_CODE_SPACE.
11569 2014-02-12 Pedro Alves <palves@redhat.com>
11571 * h8300-tdep.c (pseudo_from_raw_register)
11572 (raw_from_pseudo_register): New functions.
11573 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11576 2014-02-12 Pedro Alves <palves@redhat.com>
11578 * h8300-tdep.c (h8300_register_sim_regno): New function.
11579 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11580 gdbarch_register_sim_regno hook.
11582 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11584 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11586 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11588 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11590 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11592 * obsd-tdep.h (obsd_init_abi): New prototype.
11593 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11594 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11595 (obsd_init_abi): New functions.
11596 * i386obsd-tdep.c: Include "obsd-tdep.h".
11597 (i386obsd_init_abi): Call obsd_init_abi.
11598 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11599 (amd64obsd_init_abi): Call obsd_init_abi.
11600 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11601 obsd-tdep.c to gdb_target_obs.
11603 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11605 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11606 double float arguments to 16-byte in the argument slots.
11608 2014-02-11 Doug Evans <xdje42@gmail.com>
11610 * configure.ac: Don't crash if pkg-config is not found and guile
11611 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11613 * configure: Regenerate.
11615 2014-02-11 Yao Qi <yao@codesourcery.com>
11617 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11618 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11619 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11620 * gnu-nat.c (gnu_xfer_memory): Likewise.
11621 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11622 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11623 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11624 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11626 2014-02-11 Yao Qi <yao@codesourcery.com>
11628 * target.h (enum target_xfer_error): Rename to ...
11629 (enum target_xfer_status): ... it. New. All users updated.
11630 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11632 (TARGET_XFER_STATUS_ERROR_P): New macro.
11633 (target_xfer_error_to_string): Remove declaration.
11634 (target_xfer_status_to_string): Declare.
11635 (target_xfer_partial_ftype): Adjust it.
11636 (struct target_ops) <to_xfer_partial>: Return
11637 target_xfer_status. Add argument xfered_len. Update
11639 * target.c (target_xfer_error_to_string): Rename to ...
11640 (target_xfer_status_to_string): ... it. New. All callers
11642 (target_read_live_memory): Likewise. Call target_xfer_partial
11643 instead of target_read.
11644 (memory_xfer_live_readonly_partial): Return
11645 target_xfer_status. Add argument xfered_len.
11646 (raw_memory_xfer_partial): Likewise.
11647 (memory_xfer_partial_1): Likewise.
11648 (memory_xfer_partial): Likewise.
11649 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11650 properly. Update debug message.
11651 (default_xfer_partial, current_xfer_partial): Likewise.
11652 (target_write_partial): Likewise.
11653 (target_read_partial): Likewise. All callers updated.
11654 (read_whatever_is_readable): Likewise.
11655 (target_write_with_progress): Likewise.
11656 (target_read_alloc_1): Likewise.
11658 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11659 * auxv.c (procfs_xfer_auxv): Likewise.
11660 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11661 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11662 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11663 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11664 * corefile.c (read_memory): Adjust.
11665 * corelow.c (core_xfer_partial): Likewise.
11666 * ctf.c (ctf_xfer_partial): Likewise.
11667 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11669 (darwin_xfer_partial): Likewise.
11670 * exec.c (section_table_xfer_memory_partial): Likewise. All
11672 (exec_xfer_partial): Likewise.
11673 * exec.h (section_table_xfer_memory_partial): Update
11675 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11677 (gnu_xfer_partial): Likewise.
11678 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11679 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11680 (ia64_hpux_xfer_solib_got): Likewise.
11681 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11682 type of 'partial_len' to ULONGEST.
11683 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11684 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11685 (linux_nat_xfer_partial): Likewise.
11686 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11687 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11688 * monitor.c (monitor_xfer_memory): Likewise.
11689 (monitor_xfer_partial): Likewise.
11690 * procfs.c (procfs_xfer_partial): Likewise.
11691 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11692 * record-full.c (record_full_xfer_partial): Likewise.
11693 (record_full_core_xfer_partial): Likewise.
11694 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11695 (gdbsim_xfer_partial): Likewise.
11696 * remote.c (remote_write_bytes_aux): Likewise. All callers
11698 (remote_write_bytes, remote_read_bytes): Likewise. All
11700 (remote_flash_erase): Likewise. All callers updated.
11701 (remote_write_qxfer): Likewise. All callers updated.
11702 (remote_read_qxfer): Likewise. All callers updated.
11703 (remote_xfer_partial): Likewise.
11704 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11705 (rs6000_xfer_shared_libraries): Likewise.
11706 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11707 (sol_thread_xfer_partial): Likewise.
11708 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11709 (sparc_xfer_partial): Likewise.
11710 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11712 (spu_xfer_partial): Likewise.
11713 * spu-multiarch.c (spu_xfer_partial): Likewise.
11714 * tracepoint.c (tfile_xfer_partial): Likewise.
11715 * windows-nat.c (windows_xfer_memory): Likewise.
11716 (windows_xfer_shared_libraries): Likewise.
11717 (windows_xfer_partial): Likewise.
11718 * valprint.c: Replace 'target_xfer_error' with
11719 'target_xfer_status' in comments.
11721 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11723 Checked in by Joel Brobecker <brobecker@adacore.com>.
11724 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11726 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11728 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11729 function parameters.
11731 2014-02-10 Will Newton <will.newton@linaro.org>
11733 * elfread.c (elf_rel_plt_read): Look for a .got section if
11734 looking up .got.plt fails.
11735 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11736 on address passed to elf_gnu_ifunc_record_cache.
11737 (elf_gnu_ifunc_resolve_addr): Likewise.
11738 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11740 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11742 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11743 (X_RETTURN): New macro.
11744 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11746 * sparc64-tdep.c (sparc64_init_abi): Hook
11747 sparc_in_function_epilogue_p.
11749 2014-02-10 Gary Benson <gbenson@redhat.com>
11751 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11752 Rename name_matcher to symbol_matcher.
11754 2014-02-10 Gary Benson <gbenson@redhat.com>
11756 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11757 Use expand_symtabs_file_matcher_ftype and
11758 expand_symtabs_symbol_matcher_ftype.
11760 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11762 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11763 (struct ada_symbol_cache): New.
11764 (ada_free_symbol_cache): Forward declare.
11765 (struct ada_pspace_data): New.
11766 (ada_pspace_data_handle): New static global.
11767 (get_ada_pspace_data, ada_pspace_data_cleanup)
11768 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11769 (cache_space, cache): Delete, now folded inside struct
11771 (ada_get_symbol_cache): New function.
11772 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11774 (_initialize_ada_language): Remove initialization of cache_space.
11775 Move call to observer_attach_inferior_exit up, grouping it
11776 with the other observer registrations inside this function.
11777 Rename command to be more general. Add call to
11778 register_program_space_data_with_cleanup.
11780 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11782 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11783 ada_new_objfile_observer.
11784 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11785 (_initialize_tasks): Update uses of ada_new_objfile_observer
11786 and ada_tasks_normal_stop_observer.
11788 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11790 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11791 returned by the 'Length attribute to integer.
11793 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11795 * ada-lang.c (_initialize_ada_language): Initialize
11796 cache_space obstack.
11798 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11800 * ada-lang.c (HASH_SIZE): New macro.
11801 (struct cache_entry): New type.
11802 (cache_space, cache): New static globals.
11803 (ada_clear_symbol_cache, find_entry): New functions.
11804 (lookup_cached_symbol, cache_symbol): Implement.
11805 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11806 (_initialize_ada_language): Attach ada_new_objfile_observer
11807 and ada_free_objfile_observer.
11809 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11811 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11812 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11813 struct block * parameter.
11814 (ada_lookup_symbol_list_worker): Constify local variable "block".
11815 Remove cast which is no longer necessary.
11817 2014-02-10 Doug Evans <xdje42@gmail.com>
11819 Add Guile as an extension language.
11820 * NEWS: Mention Guile scripting.
11821 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11822 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11823 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11824 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11825 (CLIBS): Add GUILE_LIBS.
11826 (install-guile): New rule.
11827 (guile.o): New rule.
11828 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11829 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11830 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11831 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11832 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11833 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11834 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11835 * configure.ac: New option --with-guile.
11836 * configure: Regenerate.
11837 * config.in: Regenerate.
11838 * auto-load.c: Remove #include "python/python.h". Add #include
11839 "gdb/section-scripts.h".
11840 (source_section_scripts): Handle Guile scripts.
11841 (_initialize_auto_load): Add name of Guile objfile script to
11842 scripts-directory help text.
11843 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11844 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11845 (struct breakpoint): New member scm_bp_object.
11846 * defs.h (enum command_control_type): New value guile_control.
11847 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11849 (show_user): Update comment.
11850 (_initialize_cli_cmds): Update help text for "show user". Update help
11851 text for max-user-call-depth.
11852 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11854 (multi_line_command_p): Add guile_control.
11855 (print_command_lines): Handle guile_control.
11856 (execute_control_command, recurse_read_control_structure): Ditto.
11857 (process_next_line): Recognize "guile" commands.
11858 * disasm.c (gdb_disassemble_info): Make non-static.
11859 * disasm.h: #include "dis-asm.h".
11860 (struct gdbarch): Add forward decl.
11861 (gdb_disassemble_info): Declare.
11862 * extension.c: #include "guile/guile.h".
11863 (extension_languages): Add guile.
11864 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11865 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11866 * gdbtypes.c (get_unsigned_type_max): New function.
11867 (get_signed_type_minmax): New function.
11868 * gdbtypes.h (get_unsigned_type_max): Declare.
11869 (get_signed_type_minmax): Declare.
11870 * guile/README: New file.
11871 * guile/guile-internal.h: New file.
11872 * guile/guile.c: New file.
11873 * guile/guile.h: New file.
11874 * guile/scm-arch.c: New file.
11875 * guile/scm-auto-load.c: New file.
11876 * guile/scm-block.c: New file.
11877 * guile/scm-breakpoint.c: New file.
11878 * guile/scm-disasm.c: New file.
11879 * guile/scm-exception.c: New file.
11880 * guile/scm-frame.c: New file.
11881 * guile/scm-gsmob.c: New file.
11882 * guile/scm-iterator.c: New file.
11883 * guile/scm-lazy-string.c: New file.
11884 * guile/scm-math.c: New file.
11885 * guile/scm-objfile.c: New file.
11886 * guile/scm-ports.c: New file.
11887 * guile/scm-pretty-print.c: New file.
11888 * guile/scm-safe-call.c: New file.
11889 * guile/scm-string.c: New file.
11890 * guile/scm-symbol.c: New file.
11891 * guile/scm-symtab.c: New file.
11892 * guile/scm-type.c: New file.
11893 * guile/scm-utils.c: New file.
11894 * guile/scm-value.c: New file.
11895 * guile/lib/gdb.scm: New file.
11896 * guile/lib/gdb/boot.scm: New file.
11897 * guile/lib/gdb/experimental.scm: New file.
11898 * guile/lib/gdb/init.scm: New file.
11899 * guile/lib/gdb/iterator.scm: New file.
11900 * guile/lib/gdb/printing.scm: New file.
11901 * guile/lib/gdb/types.scm: New file.
11902 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11903 (VPATH): Add $(GUILE_SRCDIR).
11904 (GUILE_DIR): New variable.
11905 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11906 (all): Add stamp-guile dependency.
11907 (stamp-guile): New rule.
11908 (clean-guile, install-guile, uninstall-guile): New rules.
11909 (install-only): Add install-guile dependency.
11910 (uninstall): Add uninstall-guile dependency.
11911 (clean): Add clean-guile dependency.
11913 2014-02-09 Doug Evans <xdje42@gmail.com>
11915 Revert this patch (which I approved, mea culpa).
11917 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11919 * Makefile.in (all-lib): Remove.
11920 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11922 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11924 Fix Python stack corruption.
11925 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11928 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11930 * Makefile.in (all-lib): Remove.
11931 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11933 2014-02-07 Doug Evans <dje@google.com>
11935 * extension-priv.h (extension_language_script_ops): Add comment.
11936 (extension_language_ops): Add comment.
11937 (active_ext_lang_state): Fix typo in comment.
11939 2014-02-07 Pedro Alves <palves@redhat.com>
11941 PR breakpoints/16292
11942 * infrun.c (handle_signal_stop) <signal arrives while stepping
11943 over a breakpoint>: Switch back to the stepping thread.
11945 2014-02-07 Yao Qi <yao@codesourcery.com>
11947 * target.c (target_xfer_partial): Return zero if LEN is zero.
11949 2014-02-07 Yao Qi <yao@codesourcery.com>
11951 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11952 (ld_so_xfer_auxv): Likewise.
11953 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11954 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11955 * corelow.c (core_xfer_partial): Likewise.
11956 * ctf.c (ctf_xfer_partial): Likewise.
11957 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11958 (darwin_xfer_partial): Likewise.
11959 * exec.c (exec_xfer_partial): Likewise.
11960 * gnu-nat.c (gnu_xfer_partial): Likewise.
11961 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11962 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11963 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11964 * linux-nat.c (linux_xfer_siginfo): Likewise.
11965 (linux_proc_xfer_spu): Likewise.
11966 * procfs.c (procfs_xfer_partial): Likewise.
11967 * record-full.c (record_full_xfer_partial): Likewise.
11968 (record_full_core_xfer_partial): Likewise.
11969 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11970 * remote.c (remote_write_qxfer): Likewise.
11971 (remote_write_qxfer, remote_read_qxfer): Likewise.
11972 (remote_xfer_partial): Likewise.
11973 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11974 (rs6000_xfer_shared_libraries): Likewise.
11975 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11976 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11977 (spu_xfer_partial): Likewise.
11978 * target.c (memory_xfer_partial_1): Likewise.
11979 * tracepoint.c (tfile_xfer_partial): Likewise.
11980 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11981 (windows_xfer_partial): Likewise.
11983 2014-02-07 Yao Qi <yao@codesourcery.com>
11985 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11987 (core_xfer_shared_libraries_aix): Likewise.
11988 * gdbarch.c, gdbarch.h: Regenerated.
11989 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11990 ULONGEST. Change 'len_avail' type to ULONGEST.
11991 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11992 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11994 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11996 2014-02-07 Yao Qi <yao@codesourcery.com>
11998 * corefile.c (memory_error): Get 'exception' from ERR and pass
11999 'exception' to throw_error.
12001 2014-02-06 Doug Evans <xdje42@gmail.com>
12003 * configure.ac (libpython checking): Remove all but python.o from
12004 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12005 * configure: Regenerate.
12007 * Makefile.in (SFILES): Add extension.c.
12008 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12009 (COMMON_OBS): Add extension.o.
12010 * extension.h: New file.
12011 * extension-priv.h: New file.
12012 * extension.c: New file.
12014 * python/python-internal.h: #include "extension.h".
12015 (gdbpy_auto_load_enabled): Declare.
12016 (gdbpy_apply_val_pretty_printer): Declare.
12017 (gdbpy_apply_frame_filter): Declare.
12018 (gdbpy_preserve_values): Declare.
12019 (gdbpy_breakpoint_cond_says_stop): Declare.
12020 (gdbpy_breakpoint_has_cond): Declare.
12021 (void source_python_script_for_objfile): Delete.
12022 * python/python.c: #include "extension-priv.h".
12023 Delete inclusion of "observer.h".
12024 (extension_language_python): Moved here and renamed from
12025 script_language_python in py-auto-load.c.
12026 Redefined to be of type extension_language_defn.
12027 (python_extension_script_ops): New global.
12028 (python_extension_ops): New global.
12029 (struct python_env): New member previous_active.
12030 (restore_python_env): Call restore_active_ext_lang.
12031 (ensure_python_env): Call set_active_ext_lang.
12032 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12034 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12036 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12038 (gdbpy_eval_from_control_command): Renamed from
12039 eval_python_from_control_command, made static. New arg extlang.
12040 (gdbpy_source_script) Renamed from source_python_script, made static.
12042 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12043 result to int. New arg extlang.
12044 (gdbpy_source_objfile_script): Renamed from
12045 source_python_script_for_objfile, made static. New arg extlang.
12046 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12047 static. New args extlang, extlang_printers. Change result type to
12049 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12050 static. New arg extlang. Rename arg printers to extlang_printers
12051 and change type to ext_lang_type_printers *.
12052 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12053 static. Replace argument arg with extlang, extlang_printers.
12054 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12055 (!HAVE_PYTHON, source_python_script): Delete.
12056 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12057 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12058 (!HAVE_PYTHON, start_type_printers): Delete.
12059 (!HAVE_PYTHON, apply_type_printers): Delete.
12060 (!HAVE_PYTHON, free_type_printers): Delete.
12061 (_initialize_python): Delete call to observer_attach_before_prompt.
12062 (finalize_python): Set/restore active extension language.
12063 (gdbpy_finish_initialization) Renamed from
12064 finish_python_initialization, made static. New arg extlang.
12065 (gdbpy_initialized): New function.
12066 * python/python.h: #include "extension.h". Delete #include
12067 "value.h", "mi/mi-cmds.h".
12068 (extension_language_python): Declare.
12069 (GDBPY_AUTO_FILE_NAME): Delete.
12070 (enum py_bt_status): Moved to extension.h and renamed to
12071 ext_lang_bt_status.
12072 (enum frame_filter_flags): Moved to extension.h.
12073 (enum py_frame_args): Moved to extension.h and renamed to
12074 ext_lang_frame_args.
12075 (finish_python_initialization): Delete.
12076 (eval_python_from_control_command): Delete.
12077 (source_python_script): Delete.
12078 (apply_val_pretty_printer): Delete.
12079 (apply_frame_filter): Delete.
12080 (preserve_python_values): Delete.
12081 (gdbpy_script_language_defn): Delete.
12082 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12083 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12085 * auto-load.c: #include "extension.h".
12086 (GDB_AUTO_FILE_NAME): Delete.
12087 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12088 (script_language_gdb): Delete, moved to extension.c and renamed to
12089 extension_language_gdb.
12090 (source_gdb_script_for_objfile): Delete.
12091 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12092 (loaded_script): Change type of language member to
12093 struct extension_language_defn *.
12094 (init_loaded_scripts_info): Initialize
12095 unsupported_script_warning_printed.
12096 (maybe_add_script): Make static. Change type of language arg to
12097 struct extension_language_defn *.
12098 (clear_section_scripts): Reset unsupported_script_warning_printed.
12099 (auto_load_objfile_script_1): Rewrite to use extension language API.
12100 (auto_load_objfile_script): Make public. Remove support-compiled-in
12101 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12102 (source_section_scripts): Rewrite to use extension language API.
12103 (load_auto_scripts_for_objfile): Rewrite to use
12104 auto_load_scripts_for_objfile.
12105 (collect_matching_scripts_data): Change type of language member to
12106 struct extension_language_defn *.
12107 (auto_load_info_scripts): Change type of language arg to
12108 struct extension_language_defn *.
12109 (unsupported_script_warning_print): New function.
12110 (script_not_found_warning_print): Make static.
12111 (_initialize_auto_load): Rewrite construction of scripts-directory
12113 * auto-load.h (struct objfile): Add forward decl.
12114 (struct script_language): Delete.
12115 (struct auto_load_pspace_info): Add forward decl.
12116 (struct extension_language_defn): Add forward decl.
12117 (maybe_add_script): Delete.
12118 (auto_load_objfile_script): Declare.
12119 (script_not_found_warning_print): Delete.
12120 (auto_load_info_scripts): Update prototype.
12121 (auto_load_gdb_scripts_enabled): Declare.
12122 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12123 auto_load_python_scripts_enabled and made public.
12124 (script_language_python): Delete, moved to python.c.
12125 (gdbpy_script_language_defn): Delete.
12126 (info_auto_load_python_scripts): Update to use
12127 extension_language_python.
12129 * breakpoint.c (condition_command): Replace call to
12130 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12131 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12132 with call to breakpoint_ext_lang_cond_says_stop.
12133 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12134 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12135 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12136 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12138 (local_setattro): Print name of extension language with existing
12141 * valprint.c (val_print, value_print): Update to call
12142 apply_ext_lang_val_pretty_printer.
12143 * cp-valprint.c (cp_print_value): Update call to
12144 apply_ext_lang_val_pretty_printer.
12145 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12146 (gdbpy_apply_val_pretty_printer): Renamed from
12147 apply_val_pretty_printer. New arg extlang.
12148 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12150 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12151 extension language API.
12152 * cli/cli-script.c (execute_control_command): Update to call
12153 eval_ext_lang_from_control_command.
12155 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12156 enum ext_lang_bt_status values. Update call to
12157 apply_ext_lang_frame_filter.
12158 (mi_cmd_stack_list_locals): Ditto.
12159 (mi_cmd_stack_list_args): Ditto.
12160 (mi_cmd_stack_list_variables): Ditto.
12161 * mi/mi-main.c: Delete #include "python/python-internal.h".
12162 Add #include "extension.h".
12163 (mi_cmd_list_features): Replace reference to python internal variable
12164 gdb_python_initialized with call to ext_lang_initialized_p.
12166 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12167 Update to use enum ext_lang_frame_args. Update to call
12168 apply_ext_lang_frame_filter.
12169 * python/py-framefilter.c (extract_sym): Update to use enum
12170 ext_lang_bt_status.
12171 (extract_value, py_print_type, py_print_value): Ditto.
12172 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12173 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12174 (py_print_frame): Ditto.
12175 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12176 New arg extlang. Update to use enum ext_lang_bt_status.
12178 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12179 finish_python_initialization. Replace with call to
12180 finish_ext_lang_initialization.
12182 * typeprint.c (do_free_global_table): Update to call
12183 free_ext_lang_type_printers.
12184 (create_global_typedef_table): Update to call
12185 start_ext_lang_type_printers.
12186 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12187 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12188 (type_print_options): Change type of global_printers from "void *"
12189 to "struct ext_lang_type_printers *".
12191 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12192 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12193 (gdbpy_preserve_values): Renamed from preserve_python_values.
12195 (!HAVE_PYTHON, preserve_python_values): Delete.
12197 * utils.c (quit_flag): Delete, moved to extension.c.
12198 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12201 * eval.c: Delete #include "python/python.h".
12202 * main.c: Delete #include "python/python.h".
12204 * defs.h: Update comment.
12206 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12210 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12212 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12215 2014-02-05 Yao Qi <yao@codesourcery.com>
12217 * remote.c (remote_pass_signals): Remove local 'buf' and use
12219 (remote_program_signals): Likewise.
12221 2014-02-05 Yao Qi <yao@codesourcery.com>
12223 * ctf.c: Include "inferior.h" and "gdbthread.h".
12224 (CTF_PID): A new macro.
12225 (ctf_open): Call inferior_appeared and add_thread_silent.
12226 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12227 (ctf_thread_alive): New function.
12228 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12230 2014-02-05 Yao Qi <yao@codesourcery.com>
12234 2013-05-24 Yao Qi <yao@codesourcery.com>
12236 * tracepoint.c (TFILE_PID): Remove.
12237 (tfile_open): Don't add thread and inferior.
12238 (tfile_close): Don't set 'inferior_ptid'. Don't call
12239 exit_inferior_silent.
12240 (tfile_thread_alive): Remove.
12241 (init_tfile_ops): Don't set field 'to_thread_alive' of
12244 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12246 * remote.c (remote_start_remote): Call remote_check_symbols even
12247 if only symbol-file (not file) has been given.
12249 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12251 * gdbarch.sh (skip_entrypoint): New callback.
12252 * gdbarch.c, gdbarch.h: Regenerate.
12253 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12254 * infrun.c (fill_in_stop_func): Likewise.
12255 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12256 (ppc_elfv2_elf_make_msymbol_special): New function.
12257 (ppc_elfv2_skip_entrypoint): Likewise.
12258 (ppc_linux_init_abi): Install them for ELFv2.
12260 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12262 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12263 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12264 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12265 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12266 structures returned in GPRs.
12268 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12271 offset to the stack parameter list for the ELFv2 ABI.
12273 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12275 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12276 set_gdbarch_convert_from_func_ptr_addr and
12277 set_gdbarch_elf_make_msymbol_special for ELFv1.
12278 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12279 function descriptors on ELFv1.
12280 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12281 set up r12 at function entry.
12283 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12285 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12286 (struct gdbarch_tdep): New member elf_abi.
12288 * rs6000-tdep.c: Include "elf/ppc64.h".
12289 (rs6000_gdbarch_init): Detect ELF ABI version.
12291 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12293 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12294 within a register pair holding a DFP 128-bit value on little-endian.
12295 (ppc64_sysv_abi_return_value_base): Likewise.
12296 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12297 (dfp_pseudo_register_write): Likewise.
12299 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12301 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12302 offset on little-endian when passing _Decimal32.
12303 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12305 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12307 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12308 of the overlapped FP register within the VSX register on little-
12310 (efpr_pseudo_register_write): Likewise.
12312 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12314 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12315 offset on little-endian when passing small structures.
12317 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12319 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12320 (struct ppc64_sysv_argpos): New data structure.
12321 (ppc64_sysv_abi_push_float): Remove.
12322 (ppc64_sysv_abi_push_val): New function.
12323 (ppc64_sysv_abi_push_integer): Likewise.
12324 (ppc64_sysv_abi_push_freg): Likewise.
12325 (ppc64_sysv_abi_push_vreg): Likewise.
12326 (ppc64_sysv_abi_push_param): Likewise.
12327 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12328 (ppc64_sysv_abi_return_value_base): New function.
12329 (ppc64_sysv_abi_return_value): Refactor to use it.
12331 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12333 * NEWS: Document new target powerpc64le-*-linux*.
12335 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12337 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12338 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12340 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12341 register set used in ELF core dumps. Add floating-point register set.
12343 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12345 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12346 dwarf2_to_gdb[] table using symbolic constants. Adjust
12347 penultimate entry from number representing the PC register
12348 to symbolic constant representing the MDR register. Add
12349 constant for the PC register to the end of the table.
12351 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12353 * bsd-kvm.c: Include <sys/param.h>
12355 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12357 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12359 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12361 * ada-lang.h (clear_ada_sym_cache): Delete.
12363 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12365 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12367 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12369 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12370 the sigreturn register save area only if the syscall is
12373 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12375 * valops.c (value_slice): Minor reformatting.
12377 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12379 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12381 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12383 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12384 New static globals.
12385 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12386 (ada_ignore_descriptive_types_p): New static global.
12387 (find_parallel_type_by_descriptive_type): Return immediately
12388 if ada_ignore_descriptive_types_p is set.
12389 (_initialize_ada_language): Register new commands "maintenance
12390 set ada", "maintenance show ada", "maintenance set ada
12391 ignore-descriptive-types" and "maintenance show ada
12392 ignore-descriptive-types".
12393 * NEWS: Add entry for new "maint ada set/show
12394 ignore-descriptive-types" commands.
12396 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12398 * record-btrace.c (record_btrace_close): Call btrace_teardown
12401 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12403 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12406 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12408 * ada-typeprint (type_is_full_subrange_of_target_type):
12410 (print_range): Add parameter bounds_prefered_p. If not set,
12411 try printing range types using the name of their base type.
12412 (print_range_type): Add parameter bounds_prefered_p.
12413 Use it in call to print_range.
12414 (print_array_type, ada_print_type): Update calls to print_range
12415 and print_range_type.
12417 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12419 * ada-typeprint.c (print_array_type, print_choices, print_range)
12420 (print_range_bound, print_dynamic_range_bound, print_range_type):
12421 Remove declaration.
12423 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12425 * ada-typeprint.c (print_range): Add missing empty line
12426 after local declaration.
12428 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12430 * ada-valprint.c (print_optional_low_bound): Get index_type's
12431 target type for as long as it is a TYPE_CODE_RANGE.
12433 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12435 * procfs.c (procfs_make_note_section): Remove assertion and
12436 associated comment.
12438 2014-01-24 Yao Qi <yao@codesourcery.com>
12440 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12441 * corelow.c (get_core_siginfo): Likewise.
12443 2014-01-24 Yao Qi <yao@codesourcery.com>
12445 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12446 ULONGEST. Don't check 'len' is negative.
12447 (remote_write_bytes): Change type of 'len' to ULONGEST.
12449 2014-01-23 Tom Tromey <tromey@redhat.com>
12452 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12453 Handle exception from frame.block.
12454 (FrameVars.fetch_frame_locals): Likewise.
12456 2014-01-23 Tom Tromey <tromey@redhat.com>
12459 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12460 on a NULL pointer. Move "goto error" to correct place.
12462 2014-01-23 Tom Tromey <tromey@redhat.com>
12465 * python/py-framefilter.c (apply_frame_filter): Call
12466 ensure_python_env after computing gdbarch.
12468 2014-01-23 Yao Qi <yao@codesourcery.com>
12470 * target.c (raw_memory_xfer_partial): Change argument type
12471 from void * to gdb_byte *.
12472 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12474 2014-01-22 Doug Evans <dje@google.com>
12476 New gdbserver option --debug-format=timestamp.
12477 * NEWS: Mention it.
12479 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12481 * syscalls/s390x-linux.xml: New file.
12482 * syscalls/s390-linux.xml: New file.
12483 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12484 (XML_SYSCALL_FILENAME_S390X): Likewise.
12485 (op_svc): New enum value for SVC opcode.
12486 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12487 (s390_linux_get_syscall_number): New function.
12488 (s390_gdbarch_init): Register '*get_syscall_number' and the
12489 syscall xml file name.
12490 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12491 "s390-linux.xml" and "s390x-linux.xml".
12492 * NEWS: Announce new feature.
12494 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12496 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12498 2014-01-22 Pedro Alves <palves@redhat.com>
12500 * xtensa-config.c: Include defs.h.
12502 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12504 * common/common-utils.h: Add "ARI:" comment beside __func__
12507 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12509 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12510 documentation a bit.
12512 2014-01-21 Roland McGrath <mcgrathr@google.com>
12514 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12515 * configure: Regenerate.
12516 * aclocal.m4: Regenerate.
12517 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12518 New substituted variables.
12519 (install-strip): New target.
12520 (INSTALL_SCRIPT): New substituted variable.
12521 (FLAGS_TO_PASS): Add it.
12522 (install-only): Use $(INSTALL_SCRIPT) rather than
12523 $(INSTALL_PROGRAM) for gcore.
12525 2014-01-20 Tom Tromey <tromey@redhat.com>
12527 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12530 2014-01-20 Tom Tromey <tromey@redhat.com>
12532 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12533 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12534 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12535 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12536 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12537 (struct cmd_list_element) <flags>: Remove.
12538 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12539 doc_allocated>: New fields.
12540 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12542 * maint.c (maintenance_do_deprecate): Update.
12543 * top.c (execute_command): Update.
12545 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12547 * xtensa-linux-nat.c: Include asm/ptrace.h.
12549 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12551 * Makefile.in (SFILES): Add d-support.c.
12552 (COMMON_OBS): Add d-support.o.
12553 * d-lang.h (d_parse_symbol): Add comment, now defined in
12555 * d-lang.c (parse_call_convention)
12556 (parse_attributes, parse_function_types)
12557 (parse_function_args, parse_type, parse_identifier)
12558 (call_convention_p, d_parse_symbol): Move functions to ...
12559 * d-support.c: ... New file.
12561 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12563 * d-lang.h (d_parse_symbol): Add declaration.
12564 * d-lang.c (extract_identifiers)
12565 (extract_type_info): Remove functions.
12566 (parse_call_convention, parse_attributes)
12567 (parse_function_types, parse_function_args)
12568 (parse_type, parse_identifier, call_convention_p)
12569 (d_parse_symbol): New functions.
12570 (d_demangle): Use d_parse_symbol to demangle D symbols.
12572 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12574 * d-lang.h (struct builtin_d_type): New data type.
12575 (builtin_d_type): Add declaration.
12576 * d-lang.c (d_language_arch_info, build_d_types)
12577 (builtin_d_type): New functions.
12578 (enum d_primitive_types): New data type.
12579 (d_language_defn): Change c_language_arch_info to
12580 d_language_arch_info.
12581 (d_type_data): New static variable.
12582 (_initialize_d_language): Initialize d_type_data.
12584 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12586 * d-lang.h (d_main_name): Add declaration.
12587 * d-lang.c (d_main_name): New function.
12588 * symtab.c (find_main_name): Add call to d_main_name.
12590 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12592 * d-lang.c (d_language_defn): Change macro_expansion_c to
12593 macro_expansion_no.
12595 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12597 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12599 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12601 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12602 gdb_exception" declaration.
12603 * remote.c (getpkt_or_notif_sane): Likewise.
12605 2014-01-17 Doug Evans <dje@google.com>
12607 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12608 function, contents of dirnames_to_char_ptr_vec_append moved here.
12609 (delim_string_to_char_ptr_vec): New function.
12610 (dirnames_to_char_ptr_vec_append): Rewrite.
12611 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12613 2014-01-17 Doug Evans <dje@google.com>
12615 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12617 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12618 #include "common-utils.h".
12619 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12620 * common/vec.h (VEC_ASSERT_PASS): Update.
12621 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12622 (MACH_CHECK_ERROR): Update.
12624 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12626 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12628 * gdbarch.h: Regenerate.
12630 2014-01-16 Tom Tromey <tromey@redhat.com>
12632 * value.c (struct value) <regnum>: Move earlier.
12634 2014-01-16 Tom Tromey <tromey@redhat.com>
12636 * remote.c (extended_remote_create_inferior): Rename from
12637 extended_remote_create_inferior_1. Add "ops" argument. Remove
12638 old implementation.
12640 2014-01-16 Pedro Alves <palves@redhat.com>
12642 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12643 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12646 2014-01-16 Doug Evans <dje@google.com>
12648 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12652 * btrace.h (btrace_thread_flag): New.
12653 (struct btrace_thread_info) <flags>: New.
12654 * record-btrace.c (record_btrace_resume_thread)
12655 (record_btrace_find_thread_to_move, btrace_step_no_history)
12656 (btrace_step_stopped, record_btrace_start_replaying)
12657 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12658 (record_btrace_find_resume_thread): New.
12659 (record_btrace_resume, record_btrace_wait): Extend.
12660 (record_btrace_can_execute_reverse): New.
12661 (record_btrace_open): Fail in non-stop mode.
12662 (record_btrace_set_replay): Split into this, ...
12663 (record_btrace_stop_replaying): ... this, ...
12664 (record_btrace_clear_histories): ... and this.
12665 (init_record_btrace_ops): Init to_can_execute_reverse.
12666 * NEWS: Announce it.
12668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12670 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12671 (forward_target_decr_pc_after_break)
12672 (target_decr_pc_after_break): New.
12673 * target.c (forward_target_decr_pc_after_break)
12674 (target_decr_pc_after_break): New.
12675 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12676 instead of gdbarch_decr_pc_after_break.
12677 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12678 instead of gdbarch_decr_pc_after_break.
12679 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12680 instead of gdbarch_decr_pc_after_break.
12681 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12682 instead of gdbarch_decr_pc_after_break.
12683 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12684 instead of gdbarch_decr_pc_after_break.
12685 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12686 instead of gdbarch_decr_pc_after_break.
12688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12690 * btrace.c: Include regcache.h.
12691 (btrace_add_pc): New.
12692 (btrace_enable): Call btrace_add_pc.
12693 (btrace_is_empty): New.
12694 * btrace.h (btrace_is_empty): New.
12695 * record-btrace.c (require_btrace, record_btrace_info): Call
12698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12700 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12701 Support delta reads.
12702 (linux_disable_btrace): Change return type.
12703 * common/linux-btrace.h (linux_read_btrace): Change parameters
12704 and return type to allow error reporting. Update users.
12705 (linux_disable_btrace): Change return type. Update users.
12706 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12708 (btrace_error): New.
12709 (btrace_block) <begin>: Comment on BEGIN == 0.
12710 * btrace.c (btrace_compute_ftrace): Start from the end of
12712 (btrace_stitch_trace, btrace_clear_history): New.
12713 (btrace_fetch): Read delta trace, return if replaying.
12714 (btrace_clear): Move clear history code to btrace_clear_history.
12715 (parse_xml_btrace): Throw an error if parsing failed.
12716 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12717 and return type to allow error reporting.
12718 (target_read_btrace): Change parameters and return type to allow
12720 * target.c (target_read_btrace): Update.
12721 * remote.c (remote_read_btrace): Support delta reads. Pass
12723 * NEWS: Announce it.
12725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12727 * record.h (record_btrace_frame_unwind)
12728 (record_btrace_tailcall_frame_unwind): New declarations.
12729 * dwarf2-frame: Include record.h
12730 (dwarf2_frame_cfa): Throw an error for btrace frames.
12731 * record-btrace.c: Include hashtab.h.
12732 (btrace_get_bfun_name): New.
12733 (btrace_call_history): Call btrace_get_bfun_name.
12734 (struct btrace_frame_cache): New.
12736 (bfcache_hash, bfcache_eq, bfcache_new): New.
12737 (btrace_get_frame_function): New.
12738 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12739 (record_btrace_frame_this_id): Compute own id.
12740 (record_btrace_frame_prev_register): Provide PC, throw_error
12741 for all other registers.
12742 (record_btrace_frame_sniffer): Detect btrace frames.
12743 (record_btrace_tailcall_frame_sniffer): New.
12744 (record_btrace_frame_dealloc_cache): New.
12745 (record_btrace_frame_unwind): Add new functions.
12746 (record_btrace_tailcall_frame_unwind): New.
12747 (_initialize_record_btrace): Allocate cache.
12748 * btrace.c (btrace_clear): Call reinit_frame_cache.
12749 * NEWS: Announce it.
12751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12753 * record-btrace.c (record_btrace_set_replay)
12754 (record_btrace_goto_begin, record_btrace_goto_end)
12755 (record_btrace_goto): New.
12756 (init_record_btrace_ops): Initialize them.
12757 * NEWS: Announce it.
12759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12761 * record-btrace.c (record_btrace_find_new_threads)
12762 (record_btrace_thread_alive): New.
12763 (init_record_btrace_ops): Initialize to_find_new_threads and
12766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12768 * record-btrace.c (record_btrace_resume): New.
12769 (record_btrace_wait): New.
12770 (init_record_btrace_ops): Initialize to_wait and to_resume.
12772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12774 * record-btrace.c (record_btrace_xfer_partial)
12775 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12776 (record_btrace_allow_memory_access): New.
12777 (init_record_btrace_ops): Initialize new methods.
12778 * target.c (raw_memory_xfer_partial): Bail out if target reports
12779 that this memory is not available.
12781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12783 * target.h (target_ops) <to_insert_breakpoint>
12784 <to_remove_breakpoint>: Add target_ops parameter.
12785 (forward_target_insert_breakpoint): New.
12786 (forward_target_remove_breakpoint): New.
12787 (memory_remove_breakpoint, memory_insert_breakpoint):
12788 Add target_ops parameter.
12789 * target.c (target_insert_breakpoint): Split into this and ...
12790 (forward_target_insert_breakpoint): ... this.
12791 (target_remove_breakpoint): Split into this and ...
12792 (forward_target_remove_breakpoint): ... this.
12793 (debug_to_insert_breakpoint): Add target_ops parameter.
12794 Call forward_target_insert_breakpoint.
12795 (debug_to_remove_breakpoint): Add target_ops parameter.
12796 Call forward_target_remove_breakpoint.
12797 (update_current_target): Do not inherit or default to_insert_breakpoint
12798 and to_remove_breakpoint.
12799 * corelow.c (ignore): Add target_ops parameter.
12800 * exec.c (ignore): Add target_ops parameter.
12801 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12802 Add target_ops parameter.
12803 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12804 Add target_ops parameter.
12805 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12806 Add target_ops parameter.
12807 * record-full.c (record_full_beneath_to_insert_breakpoint)
12808 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12809 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12810 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12811 (record_full_core_remove_breakpoint): Add target_ops parameter.
12813 (record_full_beneath_to_insert_breakpoint_ops)
12814 (record_full_beneath_to_remove_breakpoint_ops)
12815 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12816 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12817 tmp_to_remove_breakpoint_ops,
12818 record_full_beneath_to_insert_breakpoint_ops, and
12819 record_full_beneath_to_remove_breakpoint_ops.
12820 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12821 (m32r_remove_breakpoint): Add target_ops parameter.
12822 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12823 Add target_ops parameter.
12824 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12825 Add target_ops parameter.
12827 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12828 Markus Metzger <markus.t.metzger@intel.com>
12830 * record-btrace.c: Include frame-unwind.h.
12831 (record_btrace_frame_unwind_stop_reason)
12832 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12833 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12835 (init_record_btrace_ops): Install it.
12837 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12839 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12842 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12844 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12847 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12849 * frame-unwind.c: Include target.h.
12850 (frame_unwind_try_unwinder): New function with code from ...
12851 (frame_unwind_find_by_frame): ... here. New variable
12852 unwinder_from_target, call also target_get_unwinder)
12853 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12854 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12855 * target.h (struct target_ops): New fields to_get_unwinder and
12856 to_get_tailcall_unwinder.
12857 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12859 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12861 * record-btrace.c (record_btrace_fetch_registers)
12862 (record_btrace_store_registers)
12863 (record_btrace_to_prepare_to_store): New.
12864 (init_record_btrace_ops): Add the above.
12866 2014-01-16 Tom Tromey <tromey@redhat.com>
12868 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12869 * target.h (struct target_ops) <to_prepare_to_store>: Add
12871 (target_prepare_to_store): Add argument.
12872 * target.c (debug_to_prepare_to_store): Add argument.
12873 (update_current_target): Update.
12874 * remote.c (remote_prepare_to_store): Add 'self' argument.
12875 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12876 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12877 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12878 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12880 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12881 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12882 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12883 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12884 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12886 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12888 * btrace.h (replay) <replay>: New.
12889 (btrace_is_replaying): New.
12890 * btrace.c (btrace_clear): Free replay iterator.
12891 (btrace_is_replaying): New.
12892 * record-btrace.c (record_btrace_is_replaying): New.
12893 (record_btrace_info): Print insn number if replaying.
12894 (record_btrace_insn_history): Start at replay position.
12895 (record_btrace_call_history): Start at replay position.
12896 (init_record_btrace_ops): Init to_record_is_replaying.
12898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12900 * record-btrace.c (record_btrace_insn_history_range): Include
12902 (record_btrace_insn_history_from): Adjust range.
12903 (record_btrace_call_history_range): Include
12905 (record_btrace_call_history_from): Adjust range.
12906 * NEWS: Announce changes.
12908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12910 * record.h (enum record_print_flag)
12911 <record_print_indent_calls>: New.
12912 * record.c (get_call_history_modifiers): Recognize /c modifier.
12913 (_initialize_record): Document /c modifier.
12914 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12915 Reorder fields. Optionally indent the function name. Update
12917 * NEWS: Announce changes.
12919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12921 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12923 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12925 * btrace.c (ftrace_new_function): Start counting at one.
12926 * record-btrace.c (record_btrace_info): Adjust number of calls
12928 * NEWS: Announce it.
12930 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12932 * record-btrace.c (btrace_call_history_insn_range): Print
12933 insn range as [begin, end].
12935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12937 * btrace.h (struct btrace_func_link): New.
12938 (enum btrace_function_flag): New.
12939 (struct btrace_inst): Rename to ...
12940 (struct btrace_insn): ...this. Update all users.
12941 (struct btrace_func) <ibegin, iend>: Remove.
12942 (struct btrace_func_link): New.
12943 (struct btrace_func): Rename to ...
12944 (struct btrace_function): ...this. Update all users.
12945 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12946 (number, level, flags>: New.
12947 (struct btrace_insn_iterator): Rename to ...
12948 (struct btrace_insn_history): ...this.
12950 (struct btrace_insn_iterator, btrace_call_iterator): New.
12951 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12952 (struct btrace_target_info) <begin, end, level>
12953 <insn_history, call_history>: New.
12954 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12955 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12956 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12957 (btrace_call_number, btrace_call_begin, btrace_call_end)
12958 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12959 (btrace_find_function_by_number, btrace_set_insn_history)
12960 (btrace_set_call_history): New.
12961 * btrace.c (btrace_init_insn_iterator)
12962 (btrace_init_func_iterator, compute_itrace): Remove.
12963 (ftrace_print_function_name, ftrace_print_filename)
12964 (ftrace_skip_file): Change
12965 parameter to const.
12966 (ftrace_init_func): Remove.
12967 (ftrace_debug): Use new btrace_function fields.
12968 (ftrace_function_switched): Also consider gaining and
12969 losing symbol information).
12970 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12971 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12972 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12974 (ftrace_new_function): Move. Remove debug print.
12975 (ftrace_update_lines, ftrace_update_insns): New.
12976 (ftrace_update_function): Check for call, ret, and jump.
12977 (compute_ftrace): Renamed to ...
12978 (btrace_compute_ftrace): ...this. Rewritten to compute call
12980 (btrace_fetch, btrace_clear): Updated.
12981 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12982 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12983 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12984 (btrace_call_number, btrace_call_begin, btrace_call_end)
12985 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12986 (btrace_find_function_by_number, btrace_set_insn_history)
12987 (btrace_set_call_history): New.
12988 * record-btrace.c (require_btrace): Use new btrace thread
12990 (record_btrace_info, btrace_insn_history)
12991 (record_btrace_insn_history, record_btrace_insn_history_range):
12992 Use new btrace thread info fields and new iterator.
12993 (btrace_func_history_src_line): Rename to ...
12994 (btrace_call_history_src_line): ...this. Use new btrace
12995 thread info fields.
12996 (btrace_func_history): Rename to ...
12997 (btrace_call_history): ...this. Use new btrace thread info
12998 fields and new iterator.
12999 (record_btrace_call_history, record_btrace_call_history_range):
13000 Use new btrace thread info fields and new iterator.
13002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13004 * frame.h (frame_id_build_unavailable_stack_special): New.
13005 * frame.c (frame_id_build_unavailable_stack_special): New.
13007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13009 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13010 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13011 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13013 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13014 (i386_insn_is_jump, i386_jmp_p): New.
13015 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13016 insn_is_jump to gdbarch.
13017 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13018 * gdbarch.h: Regenerated.
13019 * gdbarch.c: Regenerated.
13020 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13021 (default_insn_is_jump): New.
13022 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13023 (default_insn_is_jump): New.
13025 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13027 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13029 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13030 (btrace_read_type) <btrace_read_new>: Change to ...
13031 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13035 * common/linux-btrace.c (linux_read_btrace): Free trace from
13036 previous iteration.
13038 2014-01-15 Doug Evans <dje@google.com>
13040 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13043 2014-01-15 Tom Tromey <tromey@redhat.com>
13045 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13046 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13047 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13048 (set_objfile_main_name): New function.
13049 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13050 language_of_main>: New fields.
13051 (set_objfile_main_name): Declare.
13052 * symtab.c (find_main_name): Loop over objfiles to find the main
13054 (set_main_name): Now static.
13055 (get_main_info): Add comment.
13056 * symtab.h (set_main_name): Don't declare.
13058 2014-01-15 Tom Tromey <tromey@redhat.com>
13060 * symtab.c (main_progspace_key): New global.
13061 (struct main_info): New.
13062 (name_of_main, language_of_main): Remove.
13063 (get_main_info, main_info_cleanup): New function.
13064 (set_main_name, main_name, main_language): Use get_main_info.
13065 (_initialize_symtab): Initialize main_progspace_key.
13067 2014-01-15 Tom Tromey <tromey@redhat.com>
13069 * dbxread.c (process_one_symbol): Update.
13070 * dwarf2read.c (read_partial_die): Update.
13071 * symfile.c (set_initial_language): Call main_language.
13072 * symtab.c (language_of_main): Now static.
13073 (set_main_name): Add 'lang' parameter.
13074 (find_main_name): Update.
13075 (main_language): New function.
13076 (symtab_observer_executable_changed): Update.
13077 * symtab.h (set_main_name): Update.
13078 (language_of_main): Remove.
13079 (main_language): Declare.
13081 2014-01-15 Tom Tromey <tromey@redhat.com>
13083 * symfile.c (init_entry_point_info): Use new "initialized" field.
13085 * objfiles.h (struct entry_point) <initialized>: New field.
13086 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13087 (struct objfile) <ei>: ...here. Remove.
13088 * objfiles.c (entry_point_address_query): Update.
13090 2014-01-15 Tom Tromey <tromey@redhat.com>
13092 * objfiles.c (entry_point_address_query): Relocate entry point
13094 (objfile_relocate1): Do not relocate entry point address.
13095 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13096 <the_bfd_section_index>: New field.
13097 * symfile.c (init_entry_point_info): Find the entry point's
13100 2014-01-15 Tom Tromey <tromey@redhat.com>
13102 * solib-frv.c (enable_break): Use entry_point_address_query.
13104 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13106 * NEWS: Add note on improved process record-replay on
13107 arm*-linux* targets.
13109 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13111 * arm-tdep.c (enum arm_record_result): New enum.
13112 (arm_record_unsupported_insn): New function.
13113 (arm_record_coproc_data_proc): Removed.
13114 (thumb2_record_ld_st_multiple): New function.
13115 (thumb2_record_ld_st_dual_ex_tbb): New function.
13116 (thumb2_record_data_proc_sreg_mimm): New function.
13117 (thumb2_record_ps_dest_generic): New function.
13118 (thumb2_record_branch_misc_cntrl): New function.
13119 (thumb2_record_str_single_data): New function.
13120 (thumb2_record_ld_mem_hints): New function.
13121 (thumb2_record_ld_word): New function.
13122 (thumb2_record_lmul_lmla_div): New function.
13123 (thumb2_record_decode_insn_handler): New function.
13124 (decode_insn): Add thumb32 instruction handlers.
13126 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13128 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13129 (struct arm_linux_record_tdep): Declare.
13130 (arm_canonicalize_syscall): New function.
13131 (arm_all_but_pc_registers_record): New function.
13132 (arm_linux_syscall_record): New function.
13133 (arm_linux_init_abi): Add syscall recording constructs.
13134 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13135 decoding. (arm_record_coproc_data_proc): Update arm syscall
13137 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13138 <arm_syscall_record>: New field.
13139 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13142 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13144 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13145 register for push instruction recording.
13147 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13149 * arm-tdep.c (thumb_record_misc): Update to correct logical
13150 error while recording ldm, ldmia and pop instructions.
13152 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13154 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13156 2014-01-15 Pedro Alves <palves@redhat.com>
13158 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13159 (go32_resume, go32_fetch_registers, store_register)
13160 (go32_store_registers, go32_prepare_to_store)
13161 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13162 (go32_create_inferior, go32_can_run, go32_terminal_init)
13163 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13166 2014-01-15 Tom Tromey <tromey@redhat.com>
13168 * target.h (async_callback_ftype): New typedef.
13169 (struct target_ops) <to_async>: Use it.
13171 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13173 * python/py-value.c (get_field_type): Remove unnecessary curly
13174 braces for single-statement if block.
13176 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13178 * python/py-type.c (convert_field): Add missing empty line
13179 after declarations.
13181 2014-01-14 Doug Evans <dje@google.com>
13183 * symfile.h (expand_symtabs_matching): Renamed from
13184 expand_partial_symbol_names. Update prototype.
13185 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13186 * symfile.c (expand_symtabs_matching): Renamed from
13187 expand_partial_symbol_names. New args file_matcher, kind.
13188 Rename arg fun to symbol_matcher.
13189 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13190 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13191 ada_expand_partial_symbol_name.
13192 (ada_make_symbol_completion_list): Update to call
13193 expand_symtabs_matching.
13194 (ada_add_global_exceptions): Call expand_symtabs_matching.
13195 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13196 call map_symbol_filenames.
13197 * symtab.c (sources_info): Update to call map_symbol_filenames.
13198 (search_symbols): Call expand_symtabs_matching.
13199 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13200 (default_make_symbol_completion_list_break_on): Update to call
13201 expand_symtabs_matching.
13202 (make_source_files_completion_list): Update to call
13203 map_symbol_filenames.
13205 2014-01-14 Doug Evans <dje@google.com>
13207 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13208 (expand_symtabs_symbol_matcher_ftype): New typedef.
13209 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13210 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13211 * symfile.c (expand_partial_symbol_names): Update to use
13212 expand_symtabs_symbol_matcher_ftype.
13213 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13214 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13215 Arg name_matcher renamed to symbol_matcher.
13216 * psymtab.c (recursively_search_psymtabs): Update to use
13217 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13219 (expand_symtabs_matching_via_partial): Update to use
13220 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13221 Arg name_matcher renamed to symbol_matcher.
13223 2014-01-14 Doug Evans <dje@google.com>
13225 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13226 (map_partial_symbol_filenames): Ditto.
13227 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13228 (map_partial_symbol_filenames): Ditto.
13229 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13230 (map_partial_symbol_filenames): Ditto.
13231 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13232 (map_partial_symbol_filenames): Ditto.
13233 * symtab.c: Delete #include "psymtab.h".
13235 2014-01-14 Pedro Alves <palves@redhat.com>
13236 Tom Tromey <tromey@redhat.com>
13238 * infrun.c (use_displaced_stepping): Use find_record_target
13239 instead of RECORD_IS_USED.
13240 (adjust_pc_after_break): Use record_full_is_used instead of
13242 * record-btrace.c (record_btrace_open): Call record_preopen
13243 instead of checking RECORD_IS_USED.
13244 * record-full.c (record_full_shortname)
13245 (record_full_core_shortname): New globals.
13246 (record_full_is_used): New function.
13247 (find_full_open): Call record_preopen instead of checking
13249 (init_record_full_ops): Set the target's shortname to
13250 record_full_shortname.
13251 (init_record_full_core_ops): Set the target's shortname to
13252 record_full_core_shortname.
13253 * record-full.h (record_full_is_used): Declare.
13254 * record.c (find_record_target): Make extern.
13255 (record_preopen): New function.
13256 * record.h (RECORD_IS_USED): Delete macro.
13257 (find_record_target, record_preopen): Declare functions.
13259 2014-01-14 Yao Qi <yao@codesourcery.com>
13261 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13262 'len''s type to ULONGEST.
13263 (core_xfer_shared_libraries_aix): Likewise.
13264 * gdbarch.c, gdbarch.h: Regenerated.
13265 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13266 Change type of 'len' to ULONGEST.
13267 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13268 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13270 2014-01-14 Yao Qi <yao@codesourcery.com>
13272 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13273 type of 'len' to ULONGEST.
13274 (linux_xfer_osdata_processgroups): Likewise.
13275 (linux_xfer_osdata_threads): Likewise.
13276 (linux_xfer_osdata_fds): Likewise.
13277 (linux_xfer_osdata_isockets): Likewise.
13278 (linux_xfer_osdata_shm): Likewise.
13279 (linux_xfer_osdata_sem): Likewise.
13280 (linux_xfer_osdata_msg): Likewise.
13281 (linux_common_xfer_osdata): Likewise.
13282 (struct osdata_type) <getter>: Likewise.
13283 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13286 2014-01-14 Yao Qi <yao@codesourcery.com>
13288 * target.h (target_xfer_partial_ftype): Update.
13289 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13291 * aix-thread.c (aix_thread_xfer_partial): Change type of
13292 argument 'len' to ULONGEST.
13293 * auxv.c (procfs_xfer_auxv): Likewise.
13294 (ld_so_xfer_auxv): Likewise.
13295 (memory_xfer_auxv): Likewise.
13296 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13297 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13298 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13299 * corelow.c (core_xfer_partial): Likewise.
13300 * ctf.c (ctf_xfer_partial): Likewise.
13301 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13303 (darwin_read_dyld_info): Likewise.
13304 (darwin_xfer_partial): Likewise.
13305 * exec.c (section_table_xfer_memory_partial): Likewise.
13306 (exec_xfer_partial): Likewise.
13307 * exec.h (section_table_xfer_memory_partial): Update
13309 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13310 instead of plongest.
13311 (gnu_xfer_partial): Likewise.
13312 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13313 (ia64_hpux_xfer_solib_got): Likewise.
13314 (ia64_hpux_xfer_partial): Likewise.
13315 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13316 * inf-ptrace.c (inf_ptrace_xfer_partial):
13317 * inf-ttrace.c (inf_ttrace_xfer_partial):
13318 * linux-nat.c (linux_xfer_siginfo): Likewise.
13319 (linux_nat_xfer_partial): Likewise.
13320 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13321 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13322 * monitor.c (monitor_xfer_memory): Likewise.
13323 (monitor_xfer_partial): Likewise.
13324 * procfs.c (procfs_xfer_partial): Likewise.
13325 * record-full.c (record_full_xfer_partial): Likewise.
13326 (record_full_core_xfer_partial): Likewise.
13327 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13328 instead of plongest.
13329 (gdbsim_xfer_partial): Likewise.
13330 * remote.c (remote_xfer_partial): Likewise.
13331 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13332 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13334 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13335 (rs6000_xfer_shared_libraries): Likewise.
13336 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13337 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13338 (sparc_xfer_partial): Likewise.
13339 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13340 (spu_xfer_partial): Likewise.
13341 * spu-multiarch.c (spu_xfer_partial): Likewise.
13342 * target.c (target_read_live_memory): Likewise.
13343 (memory_xfer_live_readonly_partial): Likewise.
13344 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13345 (target_xfer_partial, default_xfer_partial): Likewise.
13346 (current_xfer_partial): Likewise.
13347 * tracepoint.c (tfile_xfer_partial): Likewise.
13348 * windows-nat.c (windows_xfer_memory): Likewise. Call
13349 pulongest instead of plongest.
13350 (windows_xfer_partial): Likewise.
13351 (windows_xfer_shared_libraries): Likewise.
13353 2014-01-14 Yao Qi <yao@codesourcery.com>
13355 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13356 target_xfer_partial_ftype.
13358 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13362 * valops.c (value_struct_elt_bitpos): New function
13363 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13364 object to 'None' if the field name is an empty string ("").
13365 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13366 attribute to look for a field when 'name' is 'None'.
13367 (get_field_type): New function
13369 2014-01-13 Doug Evans <dje@google.com>
13372 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13373 (try_open_dwop_file): Ditto.
13374 * gdb_bfd.c: #include "vec.h".
13375 (bfdp): New typedef.
13376 (struct gdb_bfd_data): New member included_bfds.
13377 (gdb_bfd_unref): Unref all included bfds.
13378 (gdb_bfd_record_inclusion): New function.
13379 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13381 2014-01-13 Tom Tromey <tromey@redhat.com>
13383 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13385 2014-01-13 Tom Tromey <tromey@redhat.com>
13387 * defs.h (use_windows): Remove.
13388 * gdb.c (main): Update.
13389 * main.c (captured_main, gdb_main): Update.
13390 * main.h (struct captured_main_args) <use_windows>: Remove.
13391 * top.c (use_windows): Remove.
13393 2014-01-13 Tom Tromey <tromey@redhat.com>
13395 * defs.h (deprecated_flush_hook): Remove.
13397 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13400 * linux-thread-db.c (try_thread_db_load): Add parameter
13401 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13402 (try_thread_db_load_from_pdir_1): Move it there from here.
13403 (try_thread_db_load_from_sdir): Update caller.
13404 (try_thread_db_load_from_dir): Move it there from here.
13406 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13408 * regformats/regdat.sh: Always rewrite the register file.
13410 2014-01-13 Pedro Alves <palves@redhat.com>
13412 * Makefile.in (CHECK_HEADERS): New variable.
13413 (check-headers:): New rule.
13415 2014-01-13 Tom Tromey <tromey@redhat.com>
13417 * cli/cli-setshow.c (do_set_command): Update.
13418 * defs.h (deprecated_set_hook): Remove.
13419 * top.c (deprecated_set_hook): Remove.
13421 2014-01-13 Pedro Alves <palves@redhat.com>
13423 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13424 the tracepoint if the PC is a pseudo-register.
13426 2014-01-13 Tom Tromey <tromey@redhat.com>
13428 * defs.h (XCALLOC): Remove.
13429 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13430 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13431 * dwarf2loc.c (allocate_piece_closure): Likewise.
13432 * elfread.c (elf_symfile_segments): Likewise.
13433 (elf_symfile_segments): Likewise.
13434 * gdbtypes.c (copy_type_recursive): Likewise.
13435 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13436 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13437 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13439 * mt-tdep.c (mt_gdbarch_init): Likewise.
13440 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13442 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13443 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13444 * registry.c (registry_alloc_data): Likewise.
13445 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13446 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13447 * serial.c (serial_fdopen_ops): Likewise.
13448 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13450 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13451 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13454 2014-01-13 Tom Tromey <tromey@redhat.com>
13456 * defs.h (XMALLOC): Remove.
13457 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13458 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13459 * cli-out.c (struct ui_out *): Likewise.
13460 * cli/cli-dump.c (add_dump_command): Likewise.
13461 (add_dump_command): Likewise.
13462 * complaints.c (get_complaints): Likewise.
13463 (find_complaint): Likewise.
13464 * dwarf2-frame.c (execute_cfa_program): Likewise.
13465 * dwarf2read.c (abbrev_table_read_table): Likewise.
13466 * gdbarch.sh: Likewise.
13467 * gdbarch.c: Rebuild.
13468 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13469 * interps.c (interp_new): Likewise.
13470 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13471 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13472 * mi/mi-console.c (mi_console_file_new): Likewise.
13473 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13474 * mi/mi-out.c (mi_out_new): Likewise.
13475 * mi/mi-parse.c (mi_parse): Likewise.
13476 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13477 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13478 * observer.c (xalloc_observer_list_node): Likewise.
13479 * regcache.c (regcache_xmalloc_1): Likewise.
13480 * reggroups.c (reggroup_new): Likewise.
13481 (_initialize_reggroup): Likewise.
13482 * registry.c (register_data_with_cleanup): Likewise.
13483 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13484 * ser-base.c (serial_ttystate): Likewise.
13485 * ser-mingw.c (make_pipe_state): Likewise.
13486 * ser-pipe.c (pipe_open): Likewise.
13487 * serial.c (serial_open): Likewise.
13488 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13489 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13490 (tui_alloc_win_info): Likewise.
13491 (tui_add_content_elements): Likewise.
13492 * tui/tui-file.c (tui_file_new): Likewise.
13493 * tui/tui-out.c (tui_out_new): Likewise.
13494 * ui-file.c (mem_file_new): Likewise.
13495 * ui-out.c (push_level): Likewise.
13496 (make_cleanup_ui_out_end): Likewise.
13497 (append_header_to_list): Likewise.
13498 (ui_out_new): Likewise.
13499 * user-regs.c (user_reg_add_builtin): Likewise.
13501 2014-01-13 Tom Tromey <tromey@redhat.com>
13503 * defs.h (XZALLOC): Remove.
13504 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13505 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13506 (get_ada_tasks_inferior_data): Likewise.
13507 * auto-load.c (get_auto_load_pspace_data): Likewise.
13508 * auxv.c (get_auxv_inferior_data): Likewise.
13509 * bfd-target.c (target_bfd_reopen): Likewise.
13510 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13511 (deprecated_insert_raw_breakpoint): Likewise.
13512 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13513 * corelow.c (core_open): Likewise.
13514 * darwin-nat.c (darwin_check_new_threads): Likewise.
13515 (darwin_attach_pid): Likewise.
13516 * dummy-frame.c (dummy_frame_push): Likewise.
13517 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13518 * dwarf2loc.c (allocate_piece_closure): Likewise.
13519 * elfread.c (elf_symfile_segments): Likewise.
13520 * eval.c (ptrmath_type_p): Likewise.
13521 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13522 * gdbtypes.c (alloc_type_arch): Likewise.
13523 (alloc_type_instance): Likewise.
13524 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13525 * inf-child.c (inf_child_can_use_agent): Likewise.
13526 * inflow.c (get_inflow_inferior_data): Likewise.
13527 * infrun.c (save_infcall_suspend_state): Likewise.
13528 * jit.c (jit_reader_load): Likewise.
13529 (get_jit_objfile_data): Likewise.
13530 (get_jit_program_space_data): Likewise.
13531 (jit_object_open_impl): Likewise.
13532 (jit_symtab_open_impl): Likewise.
13533 (jit_block_open_impl): Likewise.
13534 (jit_frame_sniffer): Likewise.
13535 * linux-fork.c (add_fork): Likewise.
13536 * maint.c (make_command_stats_cleanup): Likewise.
13537 * objfiles.c (get_objfile_pspace_data): Likewise.
13538 * opencl-lang.c (struct lval_closure): Likewise.
13539 * osdata.c (osdata_start_osdata): Likewise.
13540 * progspace.c (new_address_space): Likewise.
13541 (add_program_space): Likewise.
13542 * remote-sim.c (get_sim_inferior_data): Likewise.
13543 * sh-tdep.c (sh_gdbarch_init): Likewise.
13544 * skip.c (Ignore): Likewise.
13545 (skip_delete_command): Likewise.
13546 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13547 (library_list_start_library): Likewise.
13548 (solib_aix_current_sos): Likewise.
13549 * solib-darwin.c (get_darwin_info): Likewise.
13550 (darwin_current_sos): Likewise.
13551 * solib-dsbt.c (get_dsbt_info): Likewise.
13552 * solib-ia64-hpux.c (new_so_list): Likewise.
13553 (ia64_hpux_get_solib_linkage_addr): Likewise.
13554 * solib-spu.c (append_ocl_sos): Likewise.
13555 (spu_current_sos): Likewise.
13556 * solib-svr4.c (get_svr4_info): Likewise.
13557 (svr4_keep_data_in_core): Likewise.
13558 (library_list_start_library): Likewise.
13559 (svr4_default_sos): Likewise.
13560 (svr4_read_so_list): Likewise.
13561 * solib-target.c (library_list_start_library): Likewise.
13562 (solib_target_current_sos): Likewise.
13563 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13564 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13565 * symfile.c (default_symfile_segments): Likewise.
13566 * target-descriptions.c (tdesc_data_init): Likewise.
13567 (tdesc_create_reg): Likewise.
13568 (struct tdesc_type *): Likewise.
13569 (tdesc_create_vector): Likewise.
13570 (tdesc_set_struct_size): Likewise.
13571 (struct tdesc_type *): Likewise.
13572 (tdesc_free_feature): Likewise.
13573 (tdesc_create_feature): Likewise.
13574 * windows-nat.c (windows_add_thread): Likewise.
13575 (windows_make_so): Likewise.
13576 * xml-support.c (gdb_xml_body_text): Likewise.
13577 (gdb_xml_create_parser_and_cleanup): Likewise.
13578 (xml_process_xincludes): Likewise.
13579 * xml-syscall.c (allocate_syscalls_info): Likewise.
13580 (syscall_create_syscall_desc): Likewise.
13582 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13584 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13585 function, with code from i386_stap_parse_special_token.
13586 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13587 (i386_stap_parse_special_token): Move code to the two functions
13588 above; simplify it.
13590 2014-01-09 Pedro Alves <palves@redhat.com>
13591 Hui Zhu <hui@codesourcery.com>
13594 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13595 bp_err_string. Don't mark the location shlib_disabled if the
13596 error thrown wasn't a generic or memory error. Catch errors
13597 thrown while inserting breakpoints in overlayed code. Output
13598 error message of software breakpoints.
13599 * remote.c (remote_insert_breakpoint): If this breakpoint has
13600 target-side commands but this stub doesn't support Z0 packets,
13601 throw NOT_SUPPORTED_ERROR error.
13602 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13603 * target.h (target_insert_breakpoint): Extend comment.
13604 (target_insert_hw_breakpoint): Add comment.
13606 2014-01-08 Pedro Alves <palves@redhat.com>
13608 * remote.c (remote_add_thread): Add threads silently if starting
13610 (remote_notice_new_inferior): If in all-stop, and starting up,
13611 don't call notice_new_inferior.
13612 (get_current_thread): New function, factored out from ...
13613 (add_current_inferior_and_thread): ... this. Adjust.
13614 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13615 found any thread, then select the remote's current thread as GDB's
13616 current thread too.
13618 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13620 * NEWS: Create a new section for the next release branch.
13621 Rename the section of the current branch, now that it has
13624 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13626 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13627 * version.in: Bump version to 7.7.50.DATE-cvs.
13629 2014-01-08 Yao Qi <yao@codesourcery.com>
13631 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13632 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13633 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13635 2014-01-08 Yao Qi <yao@codesourcery.com>
13637 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13638 return value of bfd_get_filename to symbol_file_add_from_bfd.
13640 2014-01-08 Pierre Muller <muller@sourceware.org>
13643 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13644 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13645 to prim_record_mininal_symbol_and_info.
13646 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13647 in call to prim_record_minimal_symbol_and_info.
13648 (read_pe_exported_syms): Set index field of section_data.
13650 2014-01-07 Andrew Pinski <apinski@cavium.com>
13652 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13653 * features/aarch64.c: Regenerate.
13655 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13657 * target.c (return_null): Define.
13658 (update_current_target): Use it instead of return_zero for
13659 functions that return a pointer.
13661 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13663 * source.c (add_path): Fix check for duplicated paths in the previously
13666 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13668 * ada-lang.c: Remove duplicated include statements.
13669 * alphabsd-nat.c: Ditto.
13670 * amd64-darwin-tdep.c: Ditto.
13671 * amd64fbsd-nat.c: Ditto.
13672 * auto-load.c: Ditto.
13674 * breakpoint.c: Ditto.
13675 * dbxread.c: Ditto.
13676 * fork-child.c: Ditto.
13677 * gdb_usleep.c: Ditto.
13678 * i386-darwin-tdep.c: Ditto.
13679 * i386fbsd-nat.c: Ditto.
13681 * inferior.c: Ditto.
13682 * jv-lang.c: Ditto.
13683 * linux-nat.c: Ditto.
13684 * linux-tdep.c: Ditto.
13685 * m68kbsd-nat.c: Ditto.
13686 * m68klinux-nat.c: Ditto.
13687 * microblaze-tdep.c: Ditto.
13688 * mips-linux-tdep.c: Ditto.
13689 * mn10300-tdep.c: Ditto.
13690 * nto-tdep.c: Ditto.
13691 * opencl-lang.c: Ditto.
13693 * printcmd.c: Ditto.
13694 * regcache.c: Ditto.
13695 * remote-m32r-sdi.c: Ditto.
13697 * symfile.c: Ditto.
13699 * tilegx-linux-nat.c: Ditto.
13700 * tilegx-tdep.c: Ditto.
13701 * tracepoint.c: Ditto.
13703 * vaxbsd-nat.c: Ditto.
13704 * windows-nat.c: Ditto.
13705 * xtensa-tdep.c: Ditto.
13707 2014-01-07 Yao Qi <yao@codesourcery.com>
13709 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13711 2014-01-07 Yao Qi <yao@codesourcery.com>
13712 Joel Brobecker <brobecker@adacore.com>
13714 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13715 (pdc_write_regs): Likewise.
13716 (fetch_regs_kernel_thread): Likewise.
13717 (store_regs_kernel_thread): Likewise.
13719 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13721 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13722 tagged type objects to their actual type.
13724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13726 * ada-valprint.c (print_field_values): Add "language" parameter.
13727 Update calls to print_field_values and print_variant_part.
13728 Pass new parameter "language" in call to val_print instead
13729 of "current_language". Replace call to ada_val_print by call
13731 (print_variant_part): Add "language" parameter.
13732 (ada_val_print_struct_union): Update call to print_field_values.
13734 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13736 * ada-valprint.c (ui_memcpy): Delete.
13737 (ada_print_floating): Update documentation. Add empty line
13738 between between function documentation and implementation.
13739 Delete variable "buffer". Use ui_file_xstrdup in place of
13740 ui_file_put. Minor adjustments following this change.
13742 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13744 * ada-valprint.c (ada_val_print_string): New function,
13745 extracted from ada_val_print_array.
13746 (ada_val_print_array): Replace extracted code by call
13747 to ada_val_print_string followed by a return. Move
13748 "else" branch to the function's top block.
13750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13752 * ada-valprint.c (ada_val_print_array): Move implementation
13753 down. Rename parameter "offset" and "val" into "offset_aligned"
13754 and "original_value" respectively. Add parameter "offset".
13756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13758 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13759 re-organizing the code. Change the "???" message printed
13760 when target type is a TYPE_CODE_UNDEF into
13761 "<ref to undefined type>".
13763 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13765 * ada-valprint.c (print_record): Delete, implementation inlined...
13766 (ada_val_print_struct_union): ... here. Remove call to
13767 ada_check_typedef in inlined implementation.
13769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13771 * ada-valprint.c (ada_val_print_gnat_array): New function,
13772 extracted from ada_val_print_1;
13773 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13774 (ada_val_print_flt, ada_val_print_struct_union)
13775 (ada_val_print_ref): Likewise.
13776 (ada_val_print_1): Delete variables i and elttype.
13777 Replace extracted-out code by call to corresponding
13780 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13782 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13784 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13786 * ada-valprint.c (ada_val_print_1): Replace calls to
13787 ada_val_print_1 by calls to val_print.
13789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13791 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13792 Update calls to self accordingly. Replace calls to c_val_print
13793 by calls to val_print.
13795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13797 * ada-valprint.c (print_record): Delete declaration.
13798 (adjust_type_signedness, ada_val_print_1): Likewise.
13799 (ada_val_print): Move function implementation down.
13800 (print_variant_part, print_field_values, print_record):
13801 Move function implementation up.
13803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13805 * python/py-type.c (typy_get_name): New function.
13806 (type_object_getset): Add entry for attribute "name".
13807 * NEWS: Add entry mentioning this new attribute.
13809 2014-01-07 Yao Qi <yao@codesourcery.com>
13811 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13814 2014-01-07 Yao Qi <yao@codesourcery.com>
13816 * gnu-nat.c (info_port_rights): Add qualifier const to
13819 2014-01-07 Yao Qi <yao@codesourcery.com>
13821 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13823 2014-01-07 Yao Qi <yao@codesourcery.com>
13825 * gnu-nat.c (make_inf) Update declaration.
13826 (make_inf): Make it static.
13827 (inf_set_traced): Likewise.
13828 (inf_port_to_thread, inf_task_died_status): Likewise.
13830 2014-01-07 Yao Qi <yao@codesourcery.com>
13832 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13834 2014-01-07 Yao Qi <yao@codesourcery.com>
13836 * gnu-nat.c (_initialize_gnu_nat): Declare.
13838 2014-01-07 Yao Qi <yao@codesourcery.com>
13840 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13842 (struct gdbarch_info) <byte_order>: Change type to
13844 <byte_order_for_code>: Likewise.
13845 * gdbarch.c, gdbarch.h: Regenerated.
13847 2014-01-06 Sasha Smundak <asmundak@google.com>
13849 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13851 2014-01-06 Tom Tromey <tromey@redhat.com>
13853 * doublest.c (convert_doublest_to_floatformat): Use const, not
13855 * somread.c (som_symtab_read): Likewise.
13857 2014-01-07 Hui Zhu <hui@codesourcery.com>
13859 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13860 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13861 (gdb_bfd_fopen): Ditto.
13862 (gdb_bfd_openr): Ditto.
13863 (gdb_bfd_openw): Ditto.
13864 (gdb_bfd_openr_iovec): Ditto.
13865 (gdb_bfd_fdopenr): Ditto.
13866 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13867 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13869 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13871 * symfile-mem.c (symbol_file_add_from_memory): Removed
13872 gdb_bfd_stash_filename.
13874 2014-01-03 Doug Evans <dje@google.com>
13876 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13879 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13881 Update year range in copyright notice of all files.
13883 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13885 * top.c (print_gdb_version): Set copyright year to 2014.
13887 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13889 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13891 For older changes see ChangeLog-2013.
13897 version-control: never