1 2014-10-08 Gary Benson <gbenson@redhat.com>
3 * ada-lang.c: Do not include exceptions.h.
4 * ada-valprint.c: Likewise.
5 * amd64-tdep.c: Likewise.
6 * auto-load.c: Likewise.
8 * break-catch-throw.c: Likewise.
9 * breakpoint.c: Likewise.
12 * cli/cli-cmds.c: Likewise.
13 * cli/cli-interp.c: Likewise.
14 * cli/cli-script.c: Likewise.
15 * completer.c: Likewise.
16 * corefile.c: Likewise.
17 * corelow.c: Likewise.
19 * cp-support.c: Likewise.
20 * cp-valprint.c: Likewise.
21 * darwin-nat.c: Likewise.
22 * dwarf2-frame-tailcall.c: Likewise.
23 * dwarf2-frame.c: Likewise.
24 * dwarf2loc.c: Likewise.
25 * dwarf2read.c: Likewise.
27 * event-loop.c: Likewise.
28 * event-top.c: Likewise.
29 * f-valprint.c: Likewise.
30 * frame-unwind.c: Likewise.
32 * gdbtypes.c: Likewise.
33 * gnu-v2-abi.c: Likewise.
34 * gnu-v3-abi.c: Likewise.
35 * guile/scm-auto-load.c: Likewise.
36 * guile/scm-breakpoint.c: Likewise.
37 * guile/scm-cmd.c: Likewise.
38 * guile/scm-frame.c: Likewise.
39 * guile/scm-lazy-string.c: Likewise.
40 * guile/scm-param.c: Likewise.
41 * guile/scm-symbol.c: Likewise.
42 * guile/scm-type.c: Likewise.
43 * hppa-hpux-tdep.c: Likewise.
44 * i386-tdep.c: Likewise.
45 * inf-loop.c: Likewise.
46 * infcall.c: Likewise.
49 * interps.c: Likewise.
50 * interps.h: Likewise.
52 * linespec.c: Likewise.
53 * linux-nat.c: Likewise.
54 * linux-thread-db.c: Likewise.
55 * m32r-rom.c: Likewise.
57 * memory-map.c: Likewise.
58 * mi/mi-cmd-break.c: Likewise.
59 * mi/mi-cmd-stack.c: Likewise.
60 * mi/mi-interp.c: Likewise.
61 * mi/mi-main.c: Likewise.
62 * monitor.c: Likewise.
63 * nto-procfs.c: Likewise.
64 * objc-lang.c: Likewise.
65 * p-valprint.c: Likewise.
67 * ppc-linux-tdep.c: Likewise.
68 * printcmd.c: Likewise.
70 * python/py-auto-load.c: Likewise.
71 * python/py-breakpoint.c: Likewise.
72 * python/py-cmd.c: Likewise.
73 * python/py-finishbreakpoint.c: Likewise.
74 * python/py-frame.c: Likewise.
75 * python/py-framefilter.c: Likewise.
76 * python/py-function.c: Likewise.
77 * python/py-gdb-readline.c: Likewise.
78 * python/py-inferior.c: Likewise.
79 * python/py-infthread.c: Likewise.
80 * python/py-lazy-string.c: Likewise.
81 * python/py-linetable.c: Likewise.
82 * python/py-param.c: Likewise.
83 * python/py-prettyprint.c: Likewise.
84 * python/py-symbol.c: Likewise.
85 * python/py-type.c: Likewise.
86 * python/py-value.c: Likewise.
87 * python/python-internal.h: Likewise.
88 * python/python.c: Likewise.
89 * record-btrace.c: Likewise.
90 * record-full.c: Likewise.
91 * regcache.c: Likewise.
92 * remote-fileio.c: Likewise.
93 * remote-mips.c: Likewise.
95 * rs6000-aix-tdep.c: Likewise.
96 * rs6000-nat.c: Likewise.
98 * solib-darwin.c: Likewise.
99 * solib-dsbt.c: Likewise.
100 * solib-frv.c: Likewise.
101 * solib-ia64-hpux.c: Likewise.
102 * solib-spu.c: Likewise.
103 * solib-svr4.c: Likewise.
105 * spu-tdep.c: Likewise.
107 * stap-probe.c: Likewise.
108 * symfile-mem.c: Likewise.
109 * symmisc.c: Likewise.
110 * target.c: Likewise.
111 * thread.c: Likewise.
113 * tracepoint.c: Likewise.
114 * tui/tui-interp.c: Likewise.
115 * typeprint.c: Likewise.
117 * valarith.c: Likewise.
118 * valops.c: Likewise.
119 * valprint.c: Likewise.
121 * varobj.c: Likewise.
122 * windows-nat.c: Likewise.
123 * xml-support.c: Likewise.
125 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
127 * mips-tdep.c (add_offset_16): Rewrite to implement what the
129 (extended_mips16_next_pc): Update accordingly.
131 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
133 * mips-tdep.c (mips16_instruction_is_compact_branch): New
135 (micromips_instruction_is_compact_branch): Likewise.
136 (mips16_scan_prologue): Terminate scanning upon seeing a branch
137 or a compact jump, reaching a jump delay slot, or seeing a
138 second non-prologue instruction.
139 (micromips_scan_prologue): Also terminate scanning upon seeing a
140 compact branch or jump, or reaching a branch or jump delay slot.
141 (mips32_scan_prologue): Terminate scanning upon reaching a branch
142 or jump delay slot, or seeing a second non-prologue instruction.
143 (mips32_instruction_has_delay_slot): Retain instruction
144 examination code only, update arguments accordingly and move
145 instruction fetch pieces to...
146 (mips32_insn_at_pc_has_delay_slot): ... this new function.
147 (micromips_instruction_has_delay_slot): Likewise and to...
148 (micromips_insn_at_pc_has_delay_slot): ... this new function.
149 (mips16_instruction_has_delay_slot): Likewise and to...
150 (mips16_insn_at_pc_has_delay_slot): ... this new function.
151 (mips_single_step_through_delay): Update accordingly.
152 (mips_adjust_breakpoint_address): Likewise.
154 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
156 * mips-tdep.c (micromips_instruction_has_delay_slot): When
157 !mustbe32 also return 1 for 32-bit instructions.
158 (mips16_instruction_has_delay_slot): Likewise. Add an
161 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
163 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
166 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
168 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
170 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
171 for the breakpoint's address. Don't preinitialize `placed_size'.
172 (insert_bp_location): Set `reqstd_address' rather than
174 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
175 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
177 (bkpt_remove_location): Likewise.
178 (deprecated_insert_raw_breakpoint): Likewise.
179 (deprecated_remove_raw_breakpoint): Likewise.
180 (find_single_step_breakpoint): Likewise.
181 * mem-break.c (default_memory_insert_breakpoint): Use
182 `reqstd_address' for the breakpoint's address. Don't set
183 `placed_address' or `placed_size' if breakpoint contents couldn't
184 have been determined.
185 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
186 the breakpoint's address.
187 (remote_insert_hw_breakpoint): Likewise. Don't set
188 `placed_address' or `placed_size' if breakpoint couldn't have been
190 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
191 `reqstd_address' for the breakpoint's address.
192 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
193 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
194 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
195 * microblaze-linux-tdep.c
196 (microblaze_linux_memory_remove_breakpoint): Likewise.
197 * monitor.c (monitor_insert_breakpoint): Likewise.
198 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
199 (procfs_insert_hw_breakpoint): Likewise.
200 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
201 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
202 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
203 * remote-mips.c (mips_insert_breakpoint): Likewise.
204 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
206 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
208 * valops.c (value_assign): Check for bit field assignments
209 before calling architecture-specific register value
210 conversion functions.
212 2014-10-03 Pierre Muller <muller@sourceware.org>
214 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
216 2014-10-02 Pedro Alves <palves@redhat.com>
218 * breakpoint.c (breakpoints_should_be_inserted_now): Use
219 threads_are_executing.
220 * breakpoint.h (breakpoints_should_be_inserted_now): Add
222 * gdbthread.h (threads_are_executing): Declare.
223 (handle_signal_stop) <random signals>: Don't print about the
224 signal here if stopping.
225 (end_stepping_range): Don't notify observers here.
226 (normal_stop): Update the thread list. If stopped by a random
227 signal or a stepping range ended, notify observers.
228 * thread.c (threads_executing): New global.
229 (init_thread_list): Clear 'threads_executing'.
230 (set_executing): Set or clear 'threads_executing'.
231 (threads_are_executing): New function.
232 (update_threads_executing): New function.
233 (update_thread_list): Use it.
235 2014-10-02 Pedro Alves <palves@redhat.com>
238 * breakpoint.c (update_breakpoints_after_exec): Don't create
239 overlay, longjmp, std terminate nor exception breakpoints here.
241 2014-10-02 Pedro Alves <palves@redhat.com>
243 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
245 * inferior.c (find_inferior_for_program_space): Give preference to
246 the current inferior.
247 * inferior.h (find_inferior_for_program_space): Update comment.
248 * progspace.c (switch_to_program_space_and_thread): Prefer the
249 current inferior if it's bound to the program space requested. If
250 the inferior found doesn't have a PID yet, don't bother looking up
252 * progspace.h (switch_to_program_space_and_thread): Adjust
254 * thread.c (any_thread_of_process, any_live_thread_of_process):
255 Give preference to the current thread.
257 2014-10-01 Pedro Alves <palves@redhat.com>
259 * breakpoint.c (insert_bp_location): Error out if inserting a
260 software breakpoint at a read-only address.
261 * target.c (memory_xfer_check_region): New function, factored out
263 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
265 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
266 against the memory region attributes.
268 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
270 * NEWS: Announce new exit-code field in -list-thread-groups
272 * inferior.c (exit_inferior_1): Don't clear exit code.
273 (inferior_appeared): Clear exit code.
274 * mi/mi-main.c (print_one_inferior): Add printing of the exit
277 2014-10-01 Pedro Alves <palves@redhat.com>
279 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
280 GENERATED" along with emacs/vi read-only markers.
281 * regformats/aarch64.dat: Regenerate.
282 * regformats/arm-with-iwmmxt.dat: Regenerate.
283 * regformats/arm-with-neon.dat: Regenerate.
284 * regformats/arm-with-vfpv2.dat: Regenerate.
285 * regformats/arm-with-vfpv3.dat: Regenerate.
286 * regformats/i386/amd64-avx-linux.dat: Regenerate.
287 * regformats/i386/amd64-avx.dat: Regenerate.
288 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
289 * regformats/i386/amd64-avx512.dat: Regenerate.
290 * regformats/i386/amd64-linux.dat: Regenerate.
291 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
292 * regformats/i386/amd64-mpx.dat: Regenerate.
293 * regformats/i386/amd64.dat: Regenerate.
294 * regformats/i386/i386-avx-linux.dat: Regenerate.
295 * regformats/i386/i386-avx.dat: Regenerate.
296 * regformats/i386/i386-avx512-linux.dat: Regenerate.
297 * regformats/i386/i386-avx512.dat: Regenerate.
298 * regformats/i386/i386-linux.dat: Regenerate.
299 * regformats/i386/i386-mmx-linux.dat: Regenerate.
300 * regformats/i386/i386-mmx.dat: Regenerate.
301 * regformats/i386/i386-mpx-linux.dat: Regenerate.
302 * regformats/i386/i386-mpx.dat: Regenerate.
303 * regformats/i386/i386.dat: Regenerate.
304 * regformats/i386/x32-avx-linux.dat: Regenerate.
305 * regformats/i386/x32-avx.dat: Regenerate.
306 * regformats/i386/x32-avx512-linux.dat: Regenerate.
307 * regformats/i386/x32-avx512.dat: Regenerate.
308 * regformats/i386/x32-linux.dat: Regenerate.
309 * regformats/i386/x32.dat: Regenerate.
310 * regformats/microblaze-with-stack-protect.dat: Regenerate.
311 * regformats/mips-dsp-linux.dat: Regenerate.
312 * regformats/mips-linux.dat: Regenerate.
313 * regformats/mips64-dsp-linux.dat: Regenerate.
314 * regformats/mips64-linux.dat: Regenerate.
315 * regformats/nios2-linux.dat: Regenerate.
316 * regformats/rs6000/powerpc-32.dat: Regenerate.
317 * regformats/rs6000/powerpc-32l.dat: Regenerate.
318 * regformats/rs6000/powerpc-64l.dat: Regenerate.
319 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
320 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
321 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
322 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
323 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
324 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
325 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
326 * regformats/s390-linux32.dat: Regenerate.
327 * regformats/s390-linux32v1.dat: Regenerate.
328 * regformats/s390-linux32v2.dat: Regenerate.
329 * regformats/s390-linux64.dat: Regenerate.
330 * regformats/s390-linux64v1.dat: Regenerate.
331 * regformats/s390-linux64v2.dat: Regenerate.
332 * regformats/s390-te-linux64.dat: Regenerate.
333 * regformats/s390x-linux64.dat: Regenerate.
334 * regformats/s390x-linux64v1.dat: Regenerate.
335 * regformats/s390x-linux64v2.dat: Regenerate.
336 * regformats/s390x-te-linux64.dat: Regenerate.
337 * regformats/tic6x-c62x-linux.dat: Regenerate.
338 * regformats/tic6x-c62x.dat: Regenerate.
339 * regformats/tic6x-c64x-linux.dat: Regenerate.
340 * regformats/tic6x-c64x.dat: Regenerate.
341 * regformats/tic6x-c64xp-linux.dat: Regenerate.
342 * regformats/tic6x-c64xp.dat: Regenerate.
344 2014-10-01 Pedro Alves <palves@redhat.com>
346 * features/Makefile: Update comments.
347 (XMLTOC): List all xml files we build C files from.
348 (clean-cfiles): New rule.
350 2014-10-01 Pedro Alves <palves@redhat.com>
352 * features/i386/amd64-avx512-linux.c: Regenerate.
353 * features/i386/amd64-avx512.c: Regenerate.
354 * features/i386/x32-avx512-linux.c: Regenerate.
355 * features/i386/x32-avx512.c: Regenerate.
357 2014-10-01 Pedro Alves <palves@redhat.com>
359 * features/Makefile (WHICH): Remove arm-with-m,
360 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
362 2014-10-01 Pedro Alves <palves@redhat.com>
364 * features/Makefile (clean): New rule.
366 2014-10-01 Pedro Alves <palves@redhat.com>
368 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
369 (zmm14h): Add missing end quotes.
371 2014-10-01 Pedro Alves <palves@redhat.com>
373 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
374 * features/aarch64.c: Regenerate.
376 2014-09-30 Don Breazeal <donb@codesourcery.com>
378 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
379 code so as to work with follow_fork_inferior.
380 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
381 (inf_ttrace_create_inferior): Remove reference to
382 inf_ttrace_vfork_ppid.
383 (inf_ttrace_attach): Ditto.
384 (inf_ttrace_detach): Ditto.
385 (inf_ttrace_kill): Use current_inferior instead of
386 inf_ttrace_vfork_ppid.
387 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
388 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
389 inferior away from the parent.
390 * infrun.c (follow_fork): Call follow_fork_inferior instead of
392 (follow_fork_inferior): New function.
393 (follow_inferior_reset_breakpoints): Make function static.
394 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
395 * linux-nat.c (linux_child_follow_fork): Move target-independent
396 code to infrun.c:follow_fork_inferior.
398 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
400 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
401 * gdbarch.c: Regenerate.
402 * gdbarch.h: Likewise.
403 * corelow.c (sniff_core_bfd): Drop presence check for deleted
404 gdbarch method 'regset_from_core_section'.
405 (get_core_register_section): Remove handling for the case that
406 regset == NULL and regset_from_core_section is defined.
407 (get_core_registers): Drop check for deleted method.
408 * procfs.c (procfs_do_thread_registers): Adjust comment.
410 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
412 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
413 (linux_nat_make_corefile_notes): Remove.
414 (linux_target_install_ops): Do not set target method
415 'make_corefile_notes'.
416 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
418 (linux_corefile_thread_callback): Instead of args->collect, call
419 linux_collect_thread_registers.
420 (linux_make_corefile_notes): Remove 'collect' parameter. Return
421 NULL unless there is a regset iterator.
422 (linux_make_corefile_notes_1): Remove.
423 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
424 by linux_make_corefile_notes.
425 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
427 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
429 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
430 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
432 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
434 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
436 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
437 (xtensa_iterate_over_regset_sections): New.
438 (xtensa_gdbarch_init): Adjust gdbarch initialization.
440 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
442 * vax-tdep.c (vax_regset_from_core_section): Remove.
443 (vax_iterate_over_regset_sections): New.
444 (vax_gdbarch_init): Adjust gdbarch initialization.
446 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
448 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
449 (tilegx_regset_from_core_section): Remove.
450 (tilegx_iterate_over_regset_sections): New.
451 (tilegx_linux_init_abi): Adjust gdbarch initialization.
453 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
455 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
456 (sparc_iterate_over_regset_sections): New.
457 (sparc32_gdbarch_init): Adjust gdbarch initialization.
458 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
460 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
461 (sparc64fbsd_init_abi): Call fbsd_init_abi.
462 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
463 target method 'make_corefile_notes'.
465 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
467 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
468 'sizeof_gregset' and 'sizeof_fpregset'.
469 * sh-tdep.c (sh_regset_from_core_section): Remove.
470 (sh_iterate_over_regset_sections): New.
471 (sh_gdbarch_init): Adjust gdbarch initialization.
472 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
474 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
477 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
479 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
480 (score7_linux_iterate_over_regset_sections): New.
481 (score_gdbarch_init): Adjust gdbarch initialization.
483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
485 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
487 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
488 method 'make_corefile_notes'.
489 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
490 (ppcfbsd_regset_from_core_section): Remove.
491 (ppcfbsd_iterate_over_regset_sections): New.
492 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
494 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
495 (ppcnbsd_iterate_over_regset_sections): New.
496 (ppcnbsd_init_abi): Adjust.
497 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
498 (ppcobsd_iterate_over_regset_sections): New.
499 (ppcobsd_init_abi): Adjust.
500 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
501 (rs6000_aix_iterate_over_regset_sections): New.
502 (rs6000_aix_init_osabi): Adjust.
504 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
506 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
507 (nios2_regset_from_core_section): Remove.
508 (nios2_iterate_over_regset_sections): New.
509 (nios2_linux_init_abi): Adjust gdbarch initialization.
511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
513 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
514 (am33_iterate_over_regset_sections): New.
515 (am33_linux_init_osabi): Adjust gdbarch initialization.
517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
519 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
520 (mips_linux_iterate_over_regset_sections): New.
521 (mips_linux_init_abi): Adjust gdbarch initialization.
522 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
523 (mips64obsd_iterate_over_regset_sections): New.
524 (mips64obsd_init_abi): Adjust.
525 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
526 (mipsnbsd_iterate_over_regset_sections): New.
527 (mipsnbsd_init_abi): Adjust.
529 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
531 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
532 (m88k_iterate_over_regset_sections): New.
533 (m88k_gdbarch_init): Adjust gdbarch initialization.
535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
537 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
538 (ia64_linux_iterate_over_regset_sections): New.
539 (ia64_linux_init_abi): Adjust gdbarch initialization.
541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
543 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
544 (m68kbsd_iterate_over_regset_sections): New.
545 (m68kbsd_init_abi): Adjust gdbarch initialization.
546 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
547 (m68k_linux_iterate_over_regset_sections): New.
548 (m68k_linux_init_abi): Adjust gdbarch initialization.
550 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
552 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
553 (m32r_linux_regset_from_core_section): Remove.
554 (m32r_linux_iterate_over_regset_sections): New.
555 (m32r_linux_init_abi): Adjust gdbarch initialization.
557 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
559 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
560 (amd64obsd_iterate_over_regset_sections): New.
561 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
562 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
564 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
565 regset_from_core_section initialization.
566 * i386-tdep.c (i386_regset_from_core_section): Remove.
567 (i386_iterate_over_regset_sections): New.
568 (i386_gdbarch_init): Adjust gdbarch initialization.
569 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
570 (i386_iterate_over_regset_sections): New prototype.
571 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
573 (i386obsd_aout_iterate_over_regset_sections): New.
574 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
575 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
577 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
578 (amd64fbsd_init_abi): Call fbsd_init_abi.
579 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
580 (i386fbsd4_init_abi): Call fbsd_init_abi.
581 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
582 target method 'make_corefile_notes'.
583 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
585 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
587 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
588 (hppa_hpux_iterate_over_regset_sections): New.
589 (hppa_hpux_init_abi): Adjust gdbarch initialization.
590 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
591 (hppa_linux_iterate_over_regset_sections): New.
592 (hppa_linux_init_abi): Adjust.
593 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
594 (hppanbsd_iterate_over_regset_sections): New.
595 (hppanbsd_init_abi): Adjust.
596 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
597 (hppaobsd_iterate_over_regset_sections): New.
598 (hppaobsd_init_abi): Adjust.
600 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
602 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
603 (frv_linux_iterate_over_regset_sections): New.
604 (frv_linux_init_abi): Adjust gdbarch initialization.
606 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
608 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
609 (armbsd_iterate_over_regset_sections): New prototype.
610 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
611 (armbsd_iterate_over_regset_sections): New.
612 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
615 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
617 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
618 (alpha_linux_iterate_over_regset_sections): New.
619 (alpha_linux_init_abi): Adjust gdbarch initialization.
620 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
622 (alphanbsd_iterate_over_regset_sections): New prototype.
624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
626 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
628 (aarch64_linux_iterate_over_regset_sections): New.
629 (aarch64_linux_init_abi): Adjust gdbarch initialization.
631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
633 * fbsd-tdep.c: New file.
634 * fbsd-tdep.h: New file.
635 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
636 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
637 (ALLDEPFILES): Add fbsd-tdep.c.
639 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
641 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
643 * gdbarch.h: Regenerate.
644 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
646 (get_core_register_section): Add parameter 'regset' and use it, if
647 set. Add parameter 'min_size' and verify the bfd section size
649 (get_core_registers_cb): Add parameter 'regset' and pass it to
650 get_core_register section. For the "standard" register sections
651 ".reg" and ".reg2", set an appropriate default for human_name.
652 (get_core_registers): Don't abort when the gdbarch has an iterator
653 but no regset_from_core_section. Add NULL/0 for parameters
654 'regset'/'min_size' in calls to get_core_register_section.
655 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
656 'regset' and use it instead of calling the
657 regset_from_core_section gdbarch method.
658 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
659 * i386-tdep.c (i386_supply_xstateregset)
660 (i386_collect_xstateregset, i386_xstateregset): Moved to
662 (i386_regset_from_core_section): Drop handling for .reg-xfp and
664 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
665 core file support only if the regset iterator hasn't been set.
666 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
667 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
668 Moved from i386-tdep.c and renamed to *_linux*.
669 (i386_linux_iterate_over_regset_sections): Add regset parameter to
670 each callback invocation. Allow any .reg-xstate size when reading
672 * amd64-tdep.c (amd64_supply_xstateregset)
673 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
675 (amd64_regset_from_core_section): Remove.
676 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
677 install an amd64-specific regset_from_core_section gdbarch method.
678 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
679 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
680 Moved from amd64-tdep.c and renamed to *_linux*.
681 (amd64_linux_iterate_over_regset_sections): Add regset parameter
682 to each callback invocation. Allow any .reg-xstate size when
683 reading from a core file.
684 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
685 (arm_linux_iterate_over_regset_sections): Add regset parameter to
686 each callback invocation.
687 (arm_linux_init_abi): No longer set the regset_from_core_section
689 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
690 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
691 each callback invocation.
692 (ppc_linux_init_abi): No longer set the regset_from_core_section
694 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
695 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
696 (s390_regset_from_core_section): Remove.
697 (s390_iterate_over_regset_sections): Add regset parameter to each
699 (s390_gdbarch_init): No longer set the regset_from_core_section
700 gdbarch method. Drop initialization of deleted tdep fields.
702 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
704 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
705 (amd64_linux_iterate_over_regset_sections): New.
706 (amd64_linux_init_abi_common): Don't install the regset section
707 list, but the new iterator in gdbarch.
708 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
709 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
710 (arm_linux_iterate_over_regset_sections): ...here. New function.
711 (arm_linux_init_abi): Set iterator instead of section list.
712 * corelow.c (get_core_registers_cb): New function, logic moved
714 (get_core_registers): ...loop body here. Use new iterator method
715 instead of walking through the regset section list.
716 * gdbarch.sh: Remove 'core_regset_sections'. New method
717 'iterate_over_regset_sections'. New typedef
718 'iterate_over_regset_sections_cb'.
719 * gdbarch.c: Regenerate.
720 * gdbarch.h: Likewise.
721 * i386-linux-tdep.c (i386_linux_regset_sections)
722 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
724 (i386_linux_iterate_over_regset_sections): New.
725 (i386_linux_init_abi): Don't choose a regset section list, but
726 install new iterator in gdbarch.
727 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
728 (linux_collect_regset_section_cb): New function, logic moved
730 (linux_collect_thread_registers): ...loop body here. Use iterator
731 method instead of walking through list.
732 (linux_make_corefile_notes_1): Check for presence of iterator
733 method instead of regset section list.
734 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
735 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
736 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
737 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
738 (ppc_linux_iterate_over_regset_sections): ...here. New function.
739 (ppc_linux_init_abi): Don't choose from above regset section
740 lists, but install new iterator in gdbarch.
741 * regset.h (struct core_regset_section): Remove.
742 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
743 have_linux_v1, have_linux_v2, and have_tdb.
744 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
745 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
746 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
747 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
748 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
749 (s390_iterate_over_regset_sections): ...here. New function. Use
751 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
752 regset section lists, but install new iterator.
754 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
756 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
758 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
760 * progspace.c (print_program_space): Don't prune program spaces
761 before printing them.
763 2014-09-25 Pedro Alves <palves@redhat.com>
765 * infrun.c (user_visible_resume_ptid): Don't check
766 singlestep_breakpoints_inserted_p.
768 2014-09-25 Pedro Alves <palves@redhat.com>
770 * breakpoint.c (should_be_inserted): Add debug output.
772 2014-09-25 Pedro Alves <palves@redhat.com>
774 * infrun.c (stepping_past_instruction_at)
775 (clear_exit_convenience_vars): Point at infrun.h instead of
777 (handle_signal_stop): Fix typo.
779 2014-09-24 Yao Qi <yao@codesourcery.com>
781 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
784 2014-09-22 Gary Benson <gbenson@redhat.com>
786 * target.c (target_stop): Updated comment.
788 2014-09-22 Gary Benson <gbenson@redhat.com>
790 * target/target.h (target_stop_ptid): Renamed as...
791 (target_stop_and_wait): New function. Updated comment.
793 (target_continue_ptid): Renamed as...
794 (target_continue_no_signal): New function. Updated comment.
797 2014-09-22 Pedro Alves <palves@redhat.com>
799 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
801 * breakpoint.c (enum ugll_insert_mode): New enum.
802 (always_inserted_mode): Now a plain boolean.
803 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
804 (breakpoints_always_inserted_mode): Delete.
805 (breakpoints_should_be_inserted_now): New function.
806 (insert_breakpoints): Pass UGLL_INSERT to
807 update_global_location_list instead of calling
808 insert_breakpoint_locations manually.
809 (create_solib_event_breakpoint_1): New, factored out from ...
810 (create_solib_event_breakpoint): ... this.
811 (create_and_insert_solib_event_breakpoint): Use
812 create_solib_event_breakpoint_1 instead of calling
813 insert_breakpoint_locations manually.
814 (update_global_location_list): Change parameter type from boolean
815 to enum ugll_insert_mode. All callers adjusted. Adjust to use
816 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
817 (update_global_location_list_nothrow): Change parameter type from
818 boolean to enum ugll_insert_mode.
819 (_initialize_breakpoint): "breakpoint always-inserted" option is
820 now a boolean command. Update help text.
821 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
822 (breakpoints_should_be_inserted_now): New declaration.
823 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
824 Remove breakpoints_always_inserted_mode check.
825 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
826 * remote.c (remote_start_remote): Likewise.
828 2014-09-22 Pedro Alves <palves@redhat.com>
830 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
831 (insert_breakpoints): Don't call insert_breakpoint_locations here.
832 Instead, pass UGLL_INSERT to update_global_location_list.
833 (update_global_location_list): Change parameter type from boolean
834 to enum ugll_insert_mode. All callers adjusted. Adjust to use
835 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
836 (create_solib_event_breakpoint_1): New, factored out from ...
837 (create_solib_event_breakpoint): ... this.
838 (create_and_insert_solib_event_breakpoint): Use
839 create_solib_event_breakpoint_1 instead of calling
840 insert_breakpoint_locations manually.
841 (update_global_location_list): Handle UGLL_INSERT.
843 2014-09-22 Pedro Alves <palves@redhat.com>
845 * breakpoint.c (enum ugll_insert_mode): New enum.
846 (update_global_location_list)
847 (update_global_location_list_nothrow): Change parameter type from
848 boolean to enum ugll_insert_mode. All callers adjusted.
850 2014-09-19 Joel Brobecker <brobecker@adacore.com>
852 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
853 SystemTap support in GDB.
855 2014-09-19 Don Breazeal <donb@codesourcery.com>
857 * linux-nat.c (linux_handle_extended_wait): Call
858 linux_ptrace_get_extended_event.
859 (wait_lwp): Call linux_is_extended_waitstatus.
860 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
861 and linux_is_extended_waitstatus.
862 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
863 linux_ptrace_get_extended_event.
864 (linux_ptrace_get_extended_event): New function.
865 (linux_is_extended_waitstatus): New function.
866 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
867 (linux_is_extended_waitstatus): New declarations.
869 2014-09-19 Yao Qi <yao@codesourcery.com>
871 * dwarf2read.c (dwarf_decode_lines): Update declaration.
872 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
873 comments. Callers update.
874 (dwarf_decode_lines): Likewise.
875 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
876 comments. Skip the line table if 'lowpc' is greater than
877 'address'. Don't check
878 dwarf2_per_objfile->has_section_at_zero.
880 2014-09-18 Doug Evans <dje@google.com>
882 * NEWS: Mention new "producer" attribute of gdb.Symtab.
883 * python/py-symtab.c (stpy_get_producer): New function.
884 (symtab_object_getset): Add "producer" attribute.
886 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
889 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
890 (do_captured_read_memory_integer): Remove.
891 (safe_read_memory_integer): Use target_read_memory directly instead
892 of catching errors in do_captured_read_memory_integer.
894 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
896 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
899 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
901 * objc-lang.c (find_implementation_from_class): Remove dead code.
903 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
906 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
907 "fprintf_unfiltered (gdb_stdlog...)".
909 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
912 * breakpoint.h (struct watchpoint): New fields val_bitpos and
914 * breakpoint.c (watch_command_1): Use these fields to retain
915 bitfield information.
916 (extract_bitfield_from_watchpoint_value): New function.
917 (watchpoint_check): Use it.
918 (update_watchpoint): Use it. Optimize the address and length of a
919 HW watchpoint pointing to a bitfield.
920 * value.h (unpack_value_bitfield): New prototype.
921 * value.c (unpack_value_bitfield): Make extern.
923 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
925 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
927 * gnu-nat.c (inf_threads): New function.
928 * gnu-nat.h (inf_threads_ftype): New typedef.
929 (inf_threads): New declaration.
930 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
931 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
932 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
933 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
934 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
935 (i386_gnu_dr_get_control): New functions.
936 (reg_addr): New structure.
937 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
938 i386 debugging register hooks.
939 * NEWS: Mention this.
941 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
943 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
944 vector data transfer instructions.
945 (arm_record_coproc_data_proc): Updated.
947 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
949 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
950 arm_record_exreg_ld_st_insn.
951 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
954 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
956 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
957 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
958 processing instructions.
960 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
962 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
963 for advance SIMD struct ld/st insn.
964 (thumb2_record_decode_insn_handler): Replace stub handler with
965 thumb2_record_asimd_struct_ld_st.
967 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
969 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
970 for asimd, vfp and coprocessor insns.
971 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
972 and coprocessor insns.
973 (thumb2_record_coproc_insn): New function.
974 (thumb2_record_decode_insn_handler): Update coprocessor insns record
976 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
979 2014-09-13 Doug Evans <xdje42@gmail.com>
981 * NEWS: Mention new "queue-signal" command.
982 * infcmd.c (queue_signal_command): New function.
983 (_initialize_infcmd): Add new queue-signal command.
985 2014-09-13 Doug Evans <xdje42@gmail.com>
987 * linux-nat.c (wait_lwp): Add debugging printf.
988 (linux_nat_wait_1): Ditto.
990 2014-09-12 Pedro Alves <palves@redhat.com>
992 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
993 (create_and_insert_solib_event_breakpoint): New functions.
994 * breakpoint.h (create_and_insert_solib_event_breakpoint)
995 (remove_solib_event_breakpoints_at_next_stop): New declarations.
996 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
997 (remove_dbx_link_breakpoint): Delete function.
998 (insert_dbx_link_bpt_in_file): Use
999 create_and_insert_solib_event_breakpoint instead of
1000 deprecated_insert_raw_breakpoint.
1001 (procfs_wait): Don't check whether we hit __dbx_link here.
1002 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1004 * solib-irix.c (base_breakpoint): Delete global.
1005 (disable_break): Delete function.
1006 (enable_break): Use create_solib_event_breakpoint
1007 instead of deprecated_insert_raw_breakpoint.
1008 (irix_solib_handle_event): New function.
1009 (irix_solib_create_inferior_hook): Don't run the target or disable
1010 the mapping-complete breakpoint here.
1011 (_initialize_irix_solib): Install irix_solib_handle_event as
1012 so_ops->handle_event hook.
1014 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1015 Ulrich Weigand <uweigand@de.ibm.com>
1018 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1019 instead of read_memory_unsigned_integer.
1021 2014-09-12 Gary Benson <gbenson@redhat.com>
1023 * nat/linux-waitpid.c: Include common-defs.h.
1024 [GDBSERVER]: Add FIXME comment.
1025 [!GDBSERVER]: Don't include defs.h or signal.h.
1026 (linux_debug) [!GDBSERVER]: Remove empty block.
1028 2014-09-12 Gary Benson <gbenson@redhat.com>
1030 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1031 Don't include defs.h or server.h.
1033 2014-09-12 Gary Benson <gbenson@redhat.com>
1035 * nat/linux-btrace.c: Include common-defs.h.
1036 Don't include defs.h, server.h or gdbthread.h.
1037 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1039 2014-09-12 Gary Benson <gbenson@redhat.com>
1041 * common/agent.c: Include common-defs.h.
1042 Don't include defs.h or server.h.
1043 * common/buffer.c: Likewise.
1044 * common/common-debug.c: Likewise.
1045 * common/common-utils.c: Likewise.
1046 * common/errors.c: Likewise.
1047 * common/filestuff.c: Likewise.
1048 * common/format.c: Likewise.
1049 * common/gdb_vecs.c: Likewise.
1050 * common/print-utils.c: Likewise.
1051 * common/ptid.c: Likewise.
1052 * common/rsp-low.c: Likewise.
1053 * common/signals.c: Likewise.
1054 * common/vec.c: Likewise.
1055 * common/xml-utils.c: Likewise.
1056 * nat/linux-osdata.c: Likewise.
1057 * nat/linux-procfs.c: Likewise.
1058 * nat/linux-ptrace.c: Likewise.
1059 * nat/mips-linux-watch.c: Likewise.
1060 * target/waitstatus.c: Likewise.
1062 2014-09-12 Tom Tromey <tromey@redhat.com>
1063 Gary Benson <gbenson@redhat.com>
1065 * common/common-regcache.h: New file.
1066 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1067 * regcache.h: Include common-regcache.h.
1068 (regcache_read_pc): Don't declare.
1069 * regcache.c (get_thread_regcache_for_ptid): New function.
1070 * nat/linux-btrace.c: Don't include regcache.h.
1071 Include common-regcache.h.
1072 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1074 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1076 * regcache.h (struct regset): Declare.
1078 2014-09-11 Pedro Alves <palves@redhat.com>
1081 * main.c: Include "infrun.h".
1082 (catch_command_errors, catch_command_errors_const): Wait for the
1083 foreground command to complete.
1084 * top.c (maybe_wait_sync_command_done): New function, factored out
1086 (maybe_wait_sync_command_done): ... here.
1087 * top.h (maybe_wait_sync_command_done): New declaration.
1089 2014-09-11 Tom Tromey <tromey@redhat.com>
1090 Gary Benson <gbenson@redhat.com>
1092 * common/symbol.h: New file.
1093 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1094 * minsyms.c (find_minimal_symbol_address): New function.
1095 * common/agent.c: Include common/symbol.h.
1096 [!GDBSERVER]: Don't include objfiles.h.
1097 (agent_look_up_symbols): Use find_minimal_symbol_address.
1099 2014-09-11 Gary Benson <gbenson@redhat.com>
1101 * target/target.h (target_stop_ptid, target_continue_ptid):
1103 * target.c (target_stop_ptid, target_continue_ptid): New
1105 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1106 (agent_run_command): Always use target_stop_ptid and
1107 target_continue_ptid.
1109 2014-09-11 Tom Tromey <tromey@redhat.com>
1110 Gary Benson <gbenson@redhat.com>
1112 * target/target.h: New file.
1113 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1114 * target.h: Include target/target.h.
1115 (target_read_memory, target_write_memory): Don't declare.
1116 * target.c (target_read_uint32): New function.
1117 * common/agent.c: Include target/target.h.
1118 [!GDBSERVER]: Don't include target.h.
1119 (helper_thread_id): Type changed to uint32_t.
1120 (agent_get_helper_thread_id): Use target_read_uint32.
1121 (agent_run_command): Always use target_read_memory and
1122 target_write_memory.
1123 (agent_capability): Type changed to uint32_t.
1124 (agent_capability_check): Use target_read_uint32.
1126 2014-09-11 Gary Benson <gbenson@redhat.com>
1128 * common/common-debug.h (show_debug_regs): Declare.
1129 * common/common-debug.c (show_debug_regs): Define.
1130 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1131 all uses with show_debug_regs. Replace all uses that considered
1132 debug_hw_points as a multi-value integer with straight boolean
1134 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1135 with show_debug_regs.
1136 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1137 all uses with show_debug_regs.
1138 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1139 uses with show_debug_regs.
1141 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1143 * findvar.c (address_from_register): Handle targets requiring
1144 a special conversion routine even for plain pointer types.
1146 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1148 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1149 (store_register): Do not call exec_one_dummy_insn.
1151 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1153 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1154 dereference it first. Use value_enclosing_type instead of
1156 (ada_array_length): Likewise.
1158 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1160 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1161 Adjust function implementation and documentation accordingly.
1162 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1163 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1164 Update call to ada_value_ptr_subscript.
1166 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1168 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1169 instead of VAL's type.
1171 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1173 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1175 2014-09-09 Doug Evans <xdje42@gmail.com>
1178 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1179 last parameter to pkg-config, not first.
1180 * configure.ac: Pass --with-guile provided pkg-config path to
1181 GDB_GUILE_PROGRAM_NAMES.
1182 * configure: Regenerate.
1184 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1186 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1189 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1191 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1192 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1193 the list of sections determining GDB_OSABI_IRIX.
1195 2014-09-09 James Hogan <james.hogan@imgtec.com>
1197 * MAINTAINERS (Write After Approval): Add "James Hogan".
1199 2014-09-09 James Hogan <james.hogan@imgtec.com>
1201 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1203 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1205 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1207 2014-09-08 Doug Evans <xdje42@gmail.com>
1210 * guile.c: #include <signal.h>.
1211 (_initialize_guile): Block SIGCHLD while initializing Guile.
1213 Replaces the following, which is reverted.
1215 2014-07-26 Doug Evans <xdje42@gmail.com>
1218 * configure.ac: Add check for header gc/gc.h.
1219 Add check for function setenv.
1220 * configure: Regenerate.
1221 * config.in: Regenerate.
1222 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1224 2014-09-08 Doug Evans <xdje42@gmail.com>
1226 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1227 with named constant. Fix style of pointer comparison.
1228 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1230 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1233 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1234 decide whether we display the command on "show user".
1235 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1236 printing command name.
1237 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1238 * cli/cli-decode.c (cli_user_command_p): Create helper function
1239 to verify whether cmd_list_element is a user-defined command.
1241 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1244 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1245 Fix goto out of TRY_CATCH.
1247 2014-09-06 Doug Evans <xdje42@gmail.com>
1248 Tom Tromey <tromey@redhat.com>
1251 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1252 $_any_caller_matches.
1253 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1254 * python/lib/gdb/function/caller_is.py: New file.
1256 2014-09-06 Doug Evans <xdje42@gmail.com>
1258 * infcmd.c (program_info): Fix typo.
1260 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1263 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1264 'number'. New variable 'has_digit'. Rewrite code to deal with
1265 subexpressions on SDT probes.
1267 2014-09-04 Pedro Alves <palves@redhat.com>
1269 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1270 the input is only one character long.
1272 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1275 * f-valprint.c (f_val_print): Specify the correct print option to
1276 use when printing integer values.
1278 2014-09-04 Gary Benson <gbenson@redhat.com>
1280 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1281 Remove code to cope with LWPs wrapped as PIDs.
1282 Add assertions to ensure no wrapped LWPs are passed.
1284 2014-09-04 Pedro Alves <palves@redhat.com>
1286 * value.c (value_ranges_copy_adjusted): New function, factored out
1288 (value_contents_copy_raw): ... here.
1289 (unpack_value_bits_as_long_1): Rename back to ...
1290 (unpack_bits_as_long): ... this. Remove 'original_value' and
1291 'result' parameters. Change return type to LONGEST.
1292 (unpack_value_bits_as_long): Delete.
1293 (unpack_value_field_as_long_1): Delete.
1294 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1295 (unpack_value_bitfield): New function.
1296 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1297 (value_fetch_lazy): Use unpack_value_bitfield.
1298 * value.h (unpack_value_bits_as_long): Delete declaration.
1300 2014-09-03 Sasha Smundak <asmundak@google.com>
1302 * python/py-frame.c (frapy_read_register): New function.
1304 2014-09-03 James Hogan <james.hogan@imgtec.com>
1306 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1307 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1309 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1312 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1314 (add_cmd): Set "completer_handle_brkchars" to NULL.
1315 * cli/cli-decode.h (struct cmd_list_element)
1316 <completer_handle_brkchars>: New field.
1317 * command.h (completer_ftype_void): New typedef.
1318 (set_cmd_completer_handle_brkchars): New prototype.
1319 * completer.c (set_gdb_completion_word_break_characters): New
1321 (complete_line_internal): Call "completer_handle_brkchars"
1322 callback from command.
1323 * completer.h: Include "command.h".
1324 (set_gdb_completion_word_break_characters): New prototype.
1325 * python/py-cmd.c (cmdpy_completer_helper): New function.
1326 (cmdpy_completer_handle_brkchars): New function.
1327 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1328 (cmdpy_init): Set completer_handle_brkchars to
1329 cmdpy_completer_handle_brkchars.
1331 2014-09-03 Gary Benson <gbenson@redhat.com>
1333 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1334 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1335 Loop conditions changed to equivalent form.
1336 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1337 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1338 ALL_DEBUG_ADDRESS_REGISTERS.
1340 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1342 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1345 2014-09-02 Doug Evans <dje@google.com>
1347 * typeprint.c (find_global_typedef): Fix comment.
1349 2014-09-02 Gary Benson <gbenson@redhat.com>
1351 * i386-nat.h: Renamed as...
1352 * x86-nat.h: New file. All type, function and variable name
1353 prefixes changed from "i386_" to "x86_". All references updated.
1354 * i386-nat.c: Renamed as...
1355 * x86-nat.c: New file. All type, function and variable name
1356 prefixes changed from "i386_" to "x86_". All references updated.
1357 * common/i386-xstate.h: Renamed as...
1358 * common/x86-xstate.h: New file. All type, function and variable
1359 name prefixes changed from "i386_" to "x86_". All references
1361 * nat/i386-cpuid.h: Renamed as...
1362 * nat/x86-cpuid.h: New file. All type, function and variable name
1363 prefixes changed from "i386_" to "x86_". All references updated.
1364 * nat/i386-gcc-cpuid.h: Renamed as...
1365 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1366 name prefixes changed from "i386_" to "x86_". All references
1368 * nat/i386-dregs.h: Renamed as...
1369 * nat/x86-dregs.h: New file. All type, function and variable name
1370 prefixes changed from "i386_" to "x86_". All references updated.
1371 * nat/i386-dregs.c: Renamed as...
1372 * nat/x86-dregs.c: New file. All type, function and variable name
1373 prefixes changed from "i386_" to "x86_". All references updated.
1375 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1377 * varobj.c (_initialize_varobj): Move to the end of file.
1379 2014-08-29 Gary Benson <gbenson@redhat.com>
1381 * common/common-exceptions.h: New file.
1382 * common/common-exceptions.c: Likewise.
1383 * Makefile.in (SFILES): Add common/common-exceptions.c.
1384 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1385 (COMMON_OBS): Add common-exceptions.o.
1386 (common-exceptions.o): New rule.
1387 * exceptions.h (common-exceptions.h): Include.
1388 (gdb_setjmp.h): Do not include.
1389 (return_reason): Moved to common-exceptions.h.
1390 (enum return_reason): Likewise.
1391 (RETURN_MASK): Likewise.
1392 (typedef return_mask): Likewise.
1393 (enum errors): Likewise.
1394 (struct gdb_exception): Likewise.
1395 (exceptions_state_mc_init): Likewise.
1396 (exceptions_state_mc_action_iter): Likewise.
1397 (exceptions_state_mc_action_iter_1): Likewise.
1398 (TRY_CATCH): Likewise.
1399 (throw_exception): Likewise.
1400 (throw_verror): Likewise.
1401 (throw_vquit): Likewise.
1402 (throw_error): Likewise.
1403 (throw_quit): Likewise.
1404 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1405 (enum catcher_action): Likewise.
1406 (struct catcher): Likewise.
1407 (current_catcher): Likewise.
1408 (catcher_list_size): Likewise.
1409 (exceptions_state_mc_init): Likewise.
1410 (catcher_pop): Likewise.
1411 (exceptions_state_mc): Likewise.
1412 (exceptions_state_mc_action_iter): Likewise.
1413 (exceptions_state_mc_action_iter_1): Likewise.
1414 (throw_exception): Likewise.
1415 (exception_messages): Likewise.
1416 (exception_messages_size): Likewise.
1417 (throw_it): Likewise.
1418 (throw_verror): Likewise.
1419 (throw_vquit): Likewise.
1420 (throw_error): Likewise.
1421 (throw_quit): Likewise.
1422 (prepare_to_throw_exception): New function.
1424 2014-08-29 Gary Benson <gbenson@redhat.com>
1426 * common/gdb_setjmp.h: New file.
1427 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1428 * configure.ac: Move sigsetjmp check...
1429 * common/common.m4: ...here.
1430 * configure: Regenerate.
1431 * cp-support.c (SIGJMP_BUF): Delete.
1432 (SIGSETJMP): Likewise.
1433 (SIGLONGJMP): Likewise.
1434 * exceptions.h (gdb_setjmp.h): Include.
1435 (setjmp.h): Do not include.
1436 (EXCEPTIONS_SIGJMP_BUF): Delete.
1437 (EXCEPTIONS_SIGSETJMP): Likewise.
1438 (EXCEPTIONS_SIGLONGJMP): Likewise.
1439 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1441 * exceptions.c: Likewise.
1443 2014-08-29 Gary Benson <gbenson@redhat.com>
1445 * cleanups.h: Moved to...
1446 * common/cleanups.h: New file.
1447 * cleanups.c: Moved to...
1448 * common/cleanups.c: New file. Include common-defs.h and
1449 cleanups.h. Do not include defs.h.
1450 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1451 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1452 (cleanups.o): New rule.
1454 2014-08-29 Gary Benson <gbenson@redhat.com>
1456 * common/errors.h (internal_warning): New declaration.
1457 (internal_vwarning): Likewise.
1458 * common/errors.c (internal_warning): New function.
1459 * utils.h (internal_warning): Don't declare.
1460 (internal_vwarning): Likewise.
1461 * utils.c (internal_warning): Removed.
1463 2014-08-29 Gary Benson <gbenson@redhat.com>
1465 * main.c (captured_main): Use warning during startup.
1466 Prefix startup warning messages with command name.
1468 2014-08-29 Gary Benson <gbenson@redhat.com>
1470 * main.c (captured_main): Handle usage errors with error.
1472 2014-08-29 Gary Benson <gbenson@redhat.com>
1474 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1475 exit pair with a call to error. Wrap the message with _().
1477 2014-08-29 Gary Benson <gbenson@redhat.com>
1479 * main.c (captured_main): Replace a fprintf/exit
1480 pair with a call to error. Wrap the message with _().
1482 2014-08-29 Gary Benson <gbenson@redhat.com>
1484 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1485 pairs with calls to error. Wrap the message with _().
1487 2014-08-29 Gary Benson <gbenson@redhat.com>
1489 * utils.c (vwarning): Protect calls to target_terminal_ours
1492 2014-08-29 Gary Benson <gbenson@redhat.com>
1494 * exceptions.c (print_flush): Protect calls to
1495 target_terminal_ours and wrap_here.
1497 2014-08-29 Gary Benson <gbenson@redhat.com>
1499 * utils.h (filtered_printing_initialized): New declaration.
1500 * utils.c (abort_with_message): New function.
1501 (internal_vproblem): Use abort_with_message for first level
1502 recursive internal problems, and if gdb_stderr is not set up.
1503 Protect calls to target_terminal_ours, begin_line and query.
1505 2014-08-28 Doug Evans <dje@google.com>
1507 * symtab.c (in_prologue): Move definition to better spot.
1508 (skip_prologue_using_sal): Ditto.
1510 2014-08-28 Doug Evans <dje@google.com>
1512 * symtab.c (find_function_start_sal): Move definition to better spot.
1514 2014-08-28 Yao Qi <yao@codesourcery.com>
1516 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1517 found_stack_adjust in forward scan. Remove condition check
1518 on found_stack_adjust which is always true. Indent the code.
1520 2014-08-28 Yao Qi <yao@codesourcery.com>
1522 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1523 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1524 (dwarf_decode_lines): Remove argument
1525 want_line_info. Remove condition check on want_line_info.
1528 2014-08-27 Doug Evans <dje@google.com>
1530 * dwarf2read.c (dwarf_record_line): Fix typo.
1532 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1534 * target.h (struct target_ops::to_terminal_save_ours): Remove
1536 (target_terminal_save_ours): Remove macro.
1537 * target-delegates.c: Regenerate.
1538 * inf-child.c (inf_child_target): Don't set the nonexistent
1539 field to_terminal_save_ours.
1540 * inferior.h (child_terminal_save_ours): Remove declaration.
1541 * terminal.h (gdb_save_tty_state): New declaration.
1542 * inflow.c (child_terminal_save_ours): Rename to ...
1543 (gdb_save_tty_state): ... this.
1544 * tui/tui.c: Include terminal.h.
1545 (tui_enable): Use gdb_save_tty_state instead of
1546 target_terminal_save_ours.
1547 (tui_disable): Likewise.
1549 2014-08-25 Doug Evans <dje@google.com>
1551 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1552 Pass NULL instead of 0 for context pointer.
1554 2014-08-25 Yao Qi <yao@codesourcery.com>
1556 * dwarf2read.c: Fix grammatical error.
1558 2014-08-24 Yao Qi <yao@codesourcery.com>
1560 * dwarf2read.c (scan_partial_symbols): Update comments.
1561 Rename argument 'need_pc' with 'set_addrmap'.
1562 (add_partial_namespace): Rename argument 'need_pc' with
1564 (add_partial_module): Likewise.
1565 (add_partial_subprogram): Likewise. Update comments.
1566 (dwarf2_name): Fix typo.
1568 2014-08-22 Doug Evans <dje@google.com>
1571 * dwarf2read.c (dwarf_record_line_p): New function.
1572 (dwarf_decode_lines_1): Ignore subsequent line number entries
1573 for the same line if any entry had a non-zero discriminator.
1575 2014-08-22 Doug Evans <dje@google.com>
1577 * buildsym.h (record_line_ftype): New typedef.
1578 (record_line): Use it.
1579 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1580 (dwarf_decode_lines_1): Call them.
1582 2014-08-22 Yao Qi <yao@codesourcery.com>
1584 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1585 (ctf_end): Remove code.
1587 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1589 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1590 (linux_make_corefile_notes): call update_thread_list, protected against
1593 2014-08-21 Pedro Alves <palves@redhat.com>
1595 * infcmd.c (attach_command): Remove comment.
1597 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1599 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1600 unsigned LONGEST to ULONGEST.
1602 2014-08-20 Pedro Alves <palves@redhat.com>
1604 * Makefile.in (check-read1): New rule.
1606 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1608 * value.c (value_from_contents_and_address): Strip resolved_type's
1609 typedef layers before checking its TYPE_DATA_LOCATION.
1611 2014-08-20 Pedro Alves <palves@redhat.com>
1613 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1615 2014-08-20 Yao Qi <yao@codesourcery.com>
1617 * amd64-tdep.c (amd64_classify): Add a blank line after the
1618 example. Move "*/" to a new line.
1619 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1620 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1621 * dwarf2read.c (psymtab_include_file_name): Likewise.
1623 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1624 Pedro Alves <palves@redhat.com>
1628 * ada-lang.c (coerce_unspec_val_to_type): Use
1629 value_contents_copy_raw.
1630 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1631 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1632 * cp-valprint.c (cp_print_value_fields): Let the common printing
1633 code handle optimized out values.
1634 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1635 * d-valprint.c (dynamic_array_type): Use
1636 value_bits_any_optimized_out.
1637 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1638 check_any_valid fields.
1639 (check_pieced_value_bits): Delete and inline ...
1640 (check_pieced_synthetic_pointer): ... here.
1641 (check_pieced_value_validity): Delete.
1642 (check_pieced_value_invalid): Delete.
1643 (pieced_value_funcs): Remove check_validity and check_any_valid
1645 (read_pieced_value): Use mark_value_bits_optimized_out.
1646 (write_pieced_value): Switch to use
1647 mark_value_bytes_optimized_out.
1648 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1649 of assuming the whole value is optimized out.
1650 * findvar.c (read_frame_register_value): Remove special handling
1651 of optimized out registers.
1652 (value_from_register): Use mark_value_bytes_optimized_out.
1653 * frame-unwind.c (frame_unwind_got_optimized): Use
1654 mark_value_bytes_optimized_out.
1655 * jv-valprint.c (java_value_print): Adjust.
1656 (java_print_value_fields): Let the common printing code handle
1657 optimized out values.
1658 * mips-tdep.c (mips_print_register): Remove special handling of
1659 optimized out registers.
1660 * opencl-lang.c (lval_func_check_validity): Delete.
1661 (lval_func_check_any_valid): Delete.
1662 (opencl_value_funcs): Remove check_validity and check_any_valid
1664 * p-valprint.c (pascal_object_print_value_fields): Let the common
1665 printing code handle optimized out values.
1666 * stack.c (read_frame_arg): Remove special handling of optimized
1667 out values. Fetch both VAL and ENTRYVAL before comparing
1668 contents. Adjust to value_available_contents_eq rename.
1669 * valprint.c (valprint_check_validity)
1670 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1671 (val_print_array_elements): Adjust.
1672 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1673 (value_bits_any_optimized_out): New function.
1674 (value_entirely_covered_by_range_vector): New function, factored
1675 out from value_entirely_unavailable.
1676 (value_entirely_unavailable): Reimplement.
1677 (value_entirely_optimized_out): New function.
1678 (insert_into_bit_range_vector): New function, factored out from
1679 mark_value_bits_unavailable.
1680 (mark_value_bits_unavailable): Reimplement.
1681 (struct ranges_and_idx): New struct.
1682 (find_first_range_overlap_and_match): New function, factored out
1683 from value_available_contents_bits_eq.
1684 (value_available_contents_bits_eq): Rename to ...
1685 (value_contents_bits_eq): ... this. Check both unavailable
1686 contents and optimized out contents.
1687 (value_available_contents_eq): Rename to ...
1688 (value_contents_eq): ... this.
1689 (allocate_value_lazy): Remove reference to the old optimized_out
1691 (allocate_optimized_out_value): Use
1692 mark_value_bytes_optimized_out.
1693 (require_not_optimized_out): Adjust to check whether the
1694 optimized_out vec is empty.
1695 (ranges_copy_adjusted): New function, factored out from
1696 value_contents_copy_raw.
1697 (value_contents_copy_raw): Also copy the optimized out ranges.
1698 Assert the destination ranges aren't optimized out.
1699 (value_contents_copy): Update comment, remove call to
1700 require_not_optimized_out.
1701 (value_contents_equal): Adjust to check whether the optimized_out
1703 (set_value_optimized_out, value_optimized_out_const): Delete.
1704 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1706 (value_entirely_optimized_out, value_bits_valid): Delete.
1707 (value_copy): Take a VEC copy of the 'optimized_out' field.
1708 (value_primitive_field): Remove special handling of optimized out.
1709 (value_fetch_lazy): Assert that lazy values have no unavailable
1710 regions. Use value_bits_any_optimized_out. Remove some special
1711 handling for optimized out values.
1712 * value.h: Add intro comment about <optimized out> and
1714 (struct lval_funcs): Remove check_validity and check_any_valid
1716 (set_value_optimized_out, value_optimized_out_const): Remove.
1717 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1719 (value_bits_any_optimized_out): New declaration.
1720 (value_bits_valid): Delete declaration.
1721 (value_available_contents_eq): Rename to ...
1722 (value_contents_eq): ... this, and extend comments.
1724 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1726 Fix -fsanitize=address on unreadable inferior strings.
1727 * valprint.c (val_print_string): Fix access before BUFFER.
1729 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1731 * target.c (target_struct_size): Remove.
1732 (target_struct_allocsize): Remove.
1733 (DEFAULT_ALLOCSIZE): Remove.
1734 (target_ops_p): New typedef.
1735 (DEF_VEC_P (target_ops_p)): New vector type.
1736 (target_structs): Change type to VEC (target_ops_p).
1737 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1738 (find_default_run_target): Rewrite for loop following changes to
1741 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1743 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1744 Adjust code accordingly. Adjust function description comment.
1746 2014-08-19 Yao Qi <yao@codesourcery.com>
1748 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1751 2014-08-19 Alan Modra <amodra@gmail.com>
1753 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1754 * config.in: Regenerate.
1755 * configure: Regenerate.
1757 2014-08-19 Tom Tromey <tromey@redhat.com>
1758 Gary Benson <gbenson@redhat.com>
1760 * common/common-debug.h: New file.
1761 * common/common-debug.c: Likewise.
1762 * debug.c: Likewise.
1763 * Makefile.in (SFILES): Add common/common-debug.c.
1764 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1765 (COMMON_OBS): Add common-debug.o and debug.o.
1766 (common-debug.o): New rule.
1767 * common/common-defs.h: Include common-debug.h.
1768 * common/agent.c (debug_agent_printf): New function.
1769 (DEBUG_AGENT): Redefine.
1770 * nat/i386-dregs.c (debug_printf): Undefine.
1772 2014-08-19 Gary Benson <gbenson@redhat.com>
1774 * common/common-defs.h: Include print-utils.h.
1775 * utils.h: Do not include print-utils.h.
1777 2014-08-19 Tom Tromey <tromey@redhat.com>
1778 Gary Benson <gbenson@redhat.com>
1780 * common/common-types.h: New file.
1781 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1782 * common/common-defs.h: Include common-types.h.
1783 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1786 2014-08-19 Tom Tromey <tromey@redhat.com>
1787 Gary Benson <gbenson@redhat.com>
1789 * common/errors.h: New file.
1790 * common/errors.c: Likewise.
1791 * Makefile.in (SFILES): Add common/errors.c.
1792 (HFILES_NO_SRCDIR): Add common/errors.h.
1793 (COMMON_OBS): Add errors.o.
1794 (errors.o): New rule.
1795 * common/common-defs.h: Include errors.h.
1796 * utils.h (perror_with_name, error, verror, warning, vwarning):
1798 * common/common-utils.h: (malloc_failure, internal_error):
1801 2014-08-19 Gary Benson <gbenson@redhat.com>
1803 * utils.c (internal_vproblem): Always print the message.
1805 2014-08-18 Doug Evans <dje@google.com>
1807 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1809 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1811 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1812 Return 0 if TYPE is dynamic.
1813 (print_range): Add handling of dynamic ranges.
1815 2014-08-18 Keven Boell <keven.boell@intel.com>
1816 Joel Brobecker <brobecker@adacore.com>
1818 * gdbtypes.h (struct main_type): Add field "data_location".
1819 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1820 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1821 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1822 a dynamic data location.
1823 (resolve_dynamic_type): Add DW_AT_data_location handling.
1824 (copy_recursive, copy_type): Copy the data_location information
1826 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1827 * value.c (value_from_contents_and_address): Add
1828 DW_AT_data_location handling.
1830 2014-08-18 Keven Boell <keven.boell@intel.com>
1831 Joel Brobecker <brobecker@adacore.com>
1833 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1834 field "get_object_address".
1835 * dwarf2expr.c (execute_stack_op): Add handling for
1836 DW_OP_push_object_address.
1837 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1838 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1839 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1840 (dwarf_expr_get_obj_addr): New function.
1841 (dwarf_expr_ctx_funcs): Add get_object_address field.
1842 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1843 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1844 (dwarf2_evaluate_property): Add parameter "address". Use it.
1845 (needs_get_obj_addr): New function.
1846 (needs_frame_ctx_funcs): Add get_object_address field.
1847 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1848 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1849 (resolve_dynamic_array): Likewise.
1851 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1853 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1854 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1855 fixed value for records and unions for which some GNAT encodings
1858 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1860 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1861 rewrite to avoid "else if" and "else" constructs. Should be
1862 a no-op in practice.
1864 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1866 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1869 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1872 * eval.c: Update all calls to find_overload_match.
1873 * valarith.c: Likewise.
1874 (value_user_defined_cpp_op, value_user_defined_op): New
1875 argument NOSIDE. Update all callers.
1876 * valops.c (find_overload_match): New argument NOSIDE.
1877 * value.h (find_overload_match): Update signature.
1879 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1881 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1882 'items' methods instead of 'iteritems' method on dictionaries.
1884 2014-08-15 Doug Evans <dje@google.com>
1886 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1889 2014-08-15 Doug Evans <dje@google.com>
1891 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1893 2014-08-15 Doug Evans <dje@google.com>
1895 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1897 2014-08-15 Doug Evans <dje@google.com>
1899 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1902 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1904 * dcache.h: Include target.h, to avoid compile time warnings.
1906 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1908 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1909 frame_info" partial declaration.
1910 * gdbarch.h: Regenerate.
1912 2014-08-15 Yao Qi <yao@codesourcery.com>
1914 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1915 Add parameter 'decode_for_pst_p'. Callers update.
1917 2014-08-13 Yao Qi <yao@codesourcery.com>
1920 * configure.ac: Use local variable 'pos'.
1921 * configure: Regenerated.
1923 2014-08-11 Doug Evans <dje@google.com>
1925 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1926 message, it is redundant with "Reading symbols from ..." message.
1928 2014-08-10 Doug Evans <xdje42@gmail.com>
1930 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1932 2014-08-09 Yao Qi <yao@codesourcery.com>
1935 * remote.c (remote_xfer_partial): Remove dead code.
1937 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1939 * ia64-linux-tdep.c: Include "regset.h".
1940 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1941 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1942 (ia64_linux_supply_fpregset): New function.
1943 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1944 (ia64_linux_regset_from_core_section): New function.
1945 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1948 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1950 * m68klinux-tdep.c: Include "regset.h".
1951 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1952 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1953 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1954 (m68k_linux_regset_from_core_section): New function.
1955 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1958 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1960 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1961 function. Move logic to...
1962 (tilegx_linux_regmap): ... this new register map.
1963 (tilegx_linux_regset): Refer to register map, replace supply
1964 method by regcache_supply_regset, and add collect method.
1965 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1966 TILEGX_FIRST_EASY_REGNUM.
1968 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1970 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1971 that calls regcache_supply_regset and handles the EPC register
1972 separately. Move main logic to...
1973 (score7_linux_gregmap): ... this new register map.
1974 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1975 (score7_linux_gregset): Refer to register map. Add collect method.
1976 (score7_linux_regset_from_core_section): Replace
1977 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1978 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1979 (struct regset): Delete unused forward declaraction.
1980 (struct pt_regs): Delete structure definition.
1981 (elf_gregset_t): Delete typedef.
1983 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1985 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1986 (nios2_core_regset): Add collect method.
1988 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1990 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1991 platform-independent and don't write to read-only input buffer.
1992 (m32r_linux_collect_gregset): New function.
1993 (m32r_linux_gregset): Add collect method.
1995 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1997 * hppa-linux-tdep.c (greg_map): Rename to...
1998 (hppa_linux_gregmap): ... this. Also convert to
1999 regcache_map_entry format.
2000 (hppa_linux_supply_regset): Delete function.
2001 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2002 (hppa_linux_fpregmap): ... this new register map.
2003 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2004 register map, replace supply method by regcache_supply_regset, and
2005 add collect method regcache_collect_regset.
2007 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2009 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2010 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2011 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2012 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2013 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2014 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2015 (frv_linux_supply_gregset): Replace main logic by call to
2016 regcache_supply_regset, but keep clearing gr32-gr63.
2017 (frv_linux_supply_fpregset): Delete function.
2018 (frv_linux_gregset): Refer to appropriate register map and add
2019 regcache_collect_regset as the collect method.
2020 (frv_linux_fpregset): Likewise. Also exchange the supply method
2021 by regcache_supply_regset.
2023 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2025 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2026 by call to alpha_supply_int_regs.
2027 (alpha_linux_collect_gregset): New function.
2028 (alpha_linux_supply_fpregset): Replace logic by call to
2029 alpha_supply_fp_regs.
2030 (alpha_linux_collect_fpregset): New function.
2031 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2033 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2035 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2036 by call to regcache_collect_regset.
2037 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2038 instead of aarch64_linux_supply_gregset/_fpregset.
2039 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2040 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2041 header file instead.
2042 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2043 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2044 functions. Move logic to ...
2045 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2047 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2048 refer to new register maps, replace *_regset_from_core by
2049 regcache_supply_regset, and also use regcache_collect_regset.
2050 * aarch64-linux-tdep.h: Include "regset.h".
2051 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2053 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2054 macros, moved from C source file.
2055 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2056 variable declarations.
2058 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2060 * s390-linux-nat.c: Include "regset.h".
2061 (regmap_gregset): Delete macro.
2062 (s390_64_regmap_gregset): New register map for
2063 regcache_supply/_collect_regset.
2064 (s390_64_gregset): New regset.
2065 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2066 (regmap_fpregset): Delete macro.
2067 (s390_native_supply, s390_native_collect): Delete functions.
2068 (supply_gregset, fill_gregset): Replace s390-specific regmap
2069 handling by a call to regcache_supply/_collect_regset.
2070 (supply_fpregset, fill_fpregset): Call regcache_supply/
2071 _collect_regset instead of s390_native_supply/_collect.
2072 (fetch_regset, store_regset): Likewise. Also change the last
2073 parameter to a regset instead of a regmap.
2074 (s390_linux_fetch_inferior_registers)
2075 (390_linux_store_inferior_registers): Adjust last parameter in
2076 calls to fetch_regset and store_regset.
2077 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2078 (s390_gregmap): ... this. Also make static const and convert to
2079 regcache_map_entry format.
2080 (s390x_regmap_gregset): Delete.
2081 (s390_regmap_fpregset): Rename to...
2082 (s390_fpregmap): ... this. Make static const and convert to
2083 regcache_map_entry format.
2084 (s390_regmap_upper, s390_regmap_last_break)
2085 (s390x_regmap_last_break, s390_regmap_system_call)
2086 (s390_regmap_tdb): Likewise.
2087 (s390_supply_regset, s390_collect_regset): Remove functions.
2088 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2090 (s390_gregset, s390_fpregset, s390_upper_regset)
2091 (s390_last_break_regset, s390x_last_break_regset)
2092 (s390_system_call_regset, s390_tdb_regset): Make global and
2093 replace s390_supply/_collect_regset by regcache_supply/
2095 (s390x_gregset): Delete.
2096 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2097 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2098 (s390_regmap_fpregset, s390_regmap_last_break)
2099 (s390x_regmap_last_break, s390_regmap_system_call)
2100 (s390_regmap_tdb): Delete global variable declarations.
2101 (s390_gregset, s390_fpregset, s390_last_break_regset)
2102 (s390x_last_break_regset, s390_system_call_regset)
2103 (s390_tdb_regset): New global variable declarations.
2105 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2107 * regcache.c: Include "regset.h".
2108 (regcache_transfer_regset): New local function.
2109 (regcache_supply_regset, regcache_collect_regset): New functions.
2110 * regcache.h (struct regcache_map_entry): New structure.
2111 (REGCACHE_MAP_SKIP): New enum value.
2112 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2114 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2117 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2118 (ppc_linux_collect_gregset ): Likewise.
2119 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2120 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2121 (ppc_collect_vrregset): Likewise.
2122 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2125 2014-08-07 Yao Qi <yao@codesourcery.com>
2127 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2128 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2129 * remote.c (remote_read_bytes): Likewise.
2131 2014-08-07 Yao Qi <yao@codesourcery.com>
2133 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2135 2014-08-07 Yao Qi <yao@codesourcery.com>
2138 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2139 TARGET_XFER_OK instead of 0.
2141 2014-08-07 Gary Benson <gbenson@redhat.com>
2143 * common/common-defs.h: Include errno.h.
2144 * defs.h: Do not include errno.h.
2145 * ada-typeprint.c: Likewise.
2146 * c-typeprint.c: Likewise.
2147 * core-regset.c: Likewise.
2148 * corefile.c: Likewise.
2149 * corelow.c: Likewise.
2150 * event-loop.c: Likewise.
2151 * f-typeprint.c: Likewise.
2152 * gnu-nat.c: Likewise.
2153 * go32-nat.c: Likewise.
2154 * i386gnu-nat.c: Likewise.
2155 * m2-typeprint.c: Likewise.
2156 * nat/linux-btrace.c: Likewise.
2157 * p-typeprint.c: Likewise.
2158 * procfs.c: Likewise.
2159 * remote-sim.c: Likewise.
2160 * rs6000-nat.c: Likewise.
2161 * target.c: Likewise.
2162 * typeprint.c: Likewise.
2163 * ui-file.c: Likewise.
2164 * valops.c: Likewise.
2165 * valprint.c: Likewise.
2167 2014-08-07 Gary Benson <gbenson@redhat.com>
2169 * common/common-defs.h: Include string.h.
2170 * aarch64-tdep.c: Do not include string.h.
2171 * ada-exp.y: Likewise.
2172 * ada-lang.c: Likewise.
2173 * ada-lex.l: Likewise.
2174 * ada-typeprint.c: Likewise.
2175 * ada-valprint.c: Likewise.
2176 * aix-thread.c: Likewise.
2177 * alpha-linux-tdep.c: Likewise.
2178 * alpha-mdebug-tdep.c: Likewise.
2179 * alpha-nat.c: Likewise.
2180 * alpha-osf1-tdep.c: Likewise.
2181 * alpha-tdep.c: Likewise.
2182 * alphanbsd-tdep.c: Likewise.
2183 * amd64-dicos-tdep.c: Likewise.
2184 * amd64-linux-tdep.c: Likewise.
2185 * amd64-nat.c: Likewise.
2186 * amd64-sol2-tdep.c: Likewise.
2187 * amd64fbsd-tdep.c: Likewise.
2188 * amd64obsd-tdep.c: Likewise.
2189 * arch-utils.c: Likewise.
2190 * arm-linux-nat.c: Likewise.
2191 * arm-linux-tdep.c: Likewise.
2192 * arm-tdep.c: Likewise.
2193 * arm-wince-tdep.c: Likewise.
2194 * armbsd-tdep.c: Likewise.
2195 * armnbsd-nat.c: Likewise.
2196 * armnbsd-tdep.c: Likewise.
2197 * armobsd-tdep.c: Likewise.
2198 * avr-tdep.c: Likewise.
2199 * ax-gdb.c: Likewise.
2200 * ax-general.c: Likewise.
2201 * bcache.c: Likewise.
2202 * bfin-tdep.c: Likewise.
2203 * breakpoint.c: Likewise.
2204 * build-id.c: Likewise.
2205 * buildsym.c: Likewise.
2206 * c-exp.y: Likewise.
2207 * c-lang.c: Likewise.
2208 * c-typeprint.c: Likewise.
2209 * c-valprint.c: Likewise.
2210 * charset.c: Likewise.
2211 * cli-out.c: Likewise.
2212 * cli/cli-cmds.c: Likewise.
2213 * cli/cli-decode.c: Likewise.
2214 * cli/cli-dump.c: Likewise.
2215 * cli/cli-interp.c: Likewise.
2216 * cli/cli-logging.c: Likewise.
2217 * cli/cli-script.c: Likewise.
2218 * cli/cli-setshow.c: Likewise.
2219 * cli/cli-utils.c: Likewise.
2220 * coffread.c: Likewise.
2221 * common/agent.c: Likewise.
2222 * common/buffer.c: Likewise.
2223 * common/buffer.h: Likewise.
2224 * common/common-utils.c: Likewise.
2225 * common/filestuff.c: Likewise.
2226 * common/filestuff.c: Likewise.
2227 * common/format.c: Likewise.
2228 * common/print-utils.c: Likewise.
2229 * common/rsp-low.c: Likewise.
2230 * common/signals.c: Likewise.
2231 * common/vec.h: Likewise.
2232 * common/xml-utils.c: Likewise.
2233 * core-regset.c: Likewise.
2234 * corefile.c: Likewise.
2235 * corelow.c: Likewise.
2236 * cp-abi.c: Likewise.
2237 * cp-name-parser.y: Likewise.
2238 * cp-support.c: Likewise.
2239 * cp-valprint.c: Likewise.
2240 * cris-tdep.c: Likewise.
2241 * d-exp.y: Likewise.
2242 * darwin-nat.c: Likewise.
2243 * dbxread.c: Likewise.
2244 * dcache.c: Likewise.
2245 * demangle.c: Likewise.
2246 * dicos-tdep.c: Likewise.
2247 * disasm.c: Likewise.
2248 * doublest.c: Likewise.
2249 * dsrec.c: Likewise.
2250 * dummy-frame.c: Likewise.
2251 * dwarf2-frame.c: Likewise.
2252 * dwarf2loc.c: Likewise.
2253 * dwarf2read.c: Likewise.
2254 * elfread.c: Likewise.
2255 * environ.c: Likewise.
2257 * event-loop.c: Likewise.
2258 * exceptions.c: Likewise.
2260 * expprint.c: Likewise.
2261 * f-exp.y: Likewise.
2262 * f-lang.c: Likewise.
2263 * f-typeprint.c: Likewise.
2264 * f-valprint.c: Likewise.
2265 * fbsd-nat.c: Likewise.
2266 * findcmd.c: Likewise.
2267 * findvar.c: Likewise.
2268 * fork-child.c: Likewise.
2269 * frame.c: Likewise.
2270 * frv-linux-tdep.c: Likewise.
2271 * frv-tdep.c: Likewise.
2273 * gdb_bfd.c: Likewise.
2274 * gdbarch.c: Likewise.
2275 * gdbarch.sh: Likewise.
2276 * gdbtypes.c: Likewise.
2277 * gnu-nat.c: Likewise.
2278 * gnu-v2-abi.c: Likewise.
2279 * gnu-v3-abi.c: Likewise.
2280 * go-exp.y: Likewise.
2281 * go-lang.c: Likewise.
2282 * go32-nat.c: Likewise.
2283 * guile/guile.c: Likewise.
2284 * guile/scm-auto-load.c: Likewise.
2285 * hppa-hpux-tdep.c: Likewise.
2286 * hppa-linux-nat.c: Likewise.
2287 * hppanbsd-tdep.c: Likewise.
2288 * hppaobsd-tdep.c: Likewise.
2289 * i386-cygwin-tdep.c: Likewise.
2290 * i386-dicos-tdep.c: Likewise.
2291 * i386-linux-tdep.c: Likewise.
2292 * i386-nto-tdep.c: Likewise.
2293 * i386-sol2-tdep.c: Likewise.
2294 * i386-tdep.c: Likewise.
2295 * i386bsd-tdep.c: Likewise.
2296 * i386gnu-nat.c: Likewise.
2297 * i386nbsd-tdep.c: Likewise.
2298 * i386obsd-tdep.c: Likewise.
2299 * i387-tdep.c: Likewise.
2300 * ia64-libunwind-tdep.c: Likewise.
2301 * ia64-linux-nat.c: Likewise.
2302 * inf-child.c: Likewise.
2303 * inf-ptrace.c: Likewise.
2304 * inf-ttrace.c: Likewise.
2305 * infcall.c: Likewise.
2306 * infcmd.c: Likewise.
2307 * inflow.c: Likewise.
2308 * infrun.c: Likewise.
2309 * interps.c: Likewise.
2310 * iq2000-tdep.c: Likewise.
2311 * irix5-nat.c: Likewise.
2312 * jv-exp.y: Likewise.
2313 * jv-lang.c: Likewise.
2314 * jv-typeprint.c: Likewise.
2315 * jv-valprint.c: Likewise.
2316 * language.c: Likewise.
2317 * linux-fork.c: Likewise.
2318 * linux-nat.c: Likewise.
2319 * lm32-tdep.c: Likewise.
2320 * m2-exp.y: Likewise.
2321 * m2-typeprint.c: Likewise.
2322 * m32c-tdep.c: Likewise.
2323 * m32r-linux-nat.c: Likewise.
2324 * m32r-linux-tdep.c: Likewise.
2325 * m32r-rom.c: Likewise.
2326 * m32r-tdep.c: Likewise.
2327 * m68hc11-tdep.c: Likewise.
2328 * m68k-tdep.c: Likewise.
2329 * m68kbsd-tdep.c: Likewise.
2330 * m68klinux-nat.c: Likewise.
2331 * m68klinux-tdep.c: Likewise.
2332 * m88k-tdep.c: Likewise.
2333 * machoread.c: Likewise.
2334 * macrocmd.c: Likewise.
2336 * mdebugread.c: Likewise.
2337 * mem-break.c: Likewise.
2338 * memattr.c: Likewise.
2339 * memory-map.c: Likewise.
2340 * mep-tdep.c: Likewise.
2341 * mi/mi-cmd-break.c: Likewise.
2342 * mi/mi-cmd-disas.c: Likewise.
2343 * mi/mi-cmd-env.c: Likewise.
2344 * mi/mi-cmd-stack.c: Likewise.
2345 * mi/mi-cmd-var.c: Likewise.
2346 * mi/mi-cmds.c: Likewise.
2347 * mi/mi-console.c: Likewise.
2348 * mi/mi-getopt.c: Likewise.
2349 * mi/mi-interp.c: Likewise.
2350 * mi/mi-main.c: Likewise.
2351 * mi/mi-parse.c: Likewise.
2352 * microblaze-rom.c: Likewise.
2353 * microblaze-tdep.c: Likewise.
2354 * mingw-hdep.c: Likewise.
2355 * minidebug.c: Likewise.
2356 * minsyms.c: Likewise.
2357 * mips-irix-tdep.c: Likewise.
2358 * mips-linux-tdep.c: Likewise.
2359 * mips-tdep.c: Likewise.
2360 * mips64obsd-tdep.c: Likewise.
2361 * mipsnbsd-tdep.c: Likewise.
2362 * mipsread.c: Likewise.
2363 * mn10300-linux-tdep.c: Likewise.
2364 * mn10300-tdep.c: Likewise.
2365 * monitor.c: Likewise.
2366 * moxie-tdep.c: Likewise.
2367 * mt-tdep.c: Likewise.
2368 * nat/linux-btrace.c: Likewise.
2369 * nat/linux-osdata.c: Likewise.
2370 * nat/linux-procfs.c: Likewise.
2371 * nat/linux-ptrace.c: Likewise.
2372 * nat/linux-waitpid.c: Likewise.
2373 * nbsd-tdep.c: Likewise.
2374 * nios2-linux-tdep.c: Likewise.
2375 * nto-procfs.c: Likewise.
2376 * nto-tdep.c: Likewise.
2377 * objc-lang.c: Likewise.
2378 * objfiles.c: Likewise.
2379 * opencl-lang.c: Likewise.
2380 * osabi.c: Likewise.
2381 * osdata.c: Likewise.
2382 * p-exp.y: Likewise.
2383 * p-lang.c: Likewise.
2384 * p-typeprint.c: Likewise.
2385 * parse.c: Likewise.
2386 * posix-hdep.c: Likewise.
2387 * ppc-linux-nat.c: Likewise.
2388 * ppc-sysv-tdep.c: Likewise.
2389 * ppcfbsd-tdep.c: Likewise.
2390 * ppcnbsd-tdep.c: Likewise.
2391 * ppcobsd-tdep.c: Likewise.
2392 * printcmd.c: Likewise.
2393 * procfs.c: Likewise.
2394 * prologue-value.c: Likewise.
2395 * python/py-auto-load.c: Likewise.
2396 * python/py-gdb-readline.c: Likewise.
2397 * ravenscar-thread.c: Likewise.
2398 * regcache.c: Likewise.
2399 * registry.c: Likewise.
2400 * remote-fileio.c: Likewise.
2401 * remote-m32r-sdi.c: Likewise.
2402 * remote-mips.c: Likewise.
2403 * remote-notif.c: Likewise.
2404 * remote-sim.c: Likewise.
2405 * remote.c: Likewise.
2406 * reverse.c: Likewise.
2407 * rs6000-aix-tdep.c: Likewise.
2408 * ser-base.c: Likewise.
2409 * ser-go32.c: Likewise.
2410 * ser-mingw.c: Likewise.
2411 * ser-pipe.c: Likewise.
2412 * ser-tcp.c: Likewise.
2413 * ser-unix.c: Likewise.
2414 * serial.c: Likewise.
2415 * sh-tdep.c: Likewise.
2416 * sh64-tdep.c: Likewise.
2417 * shnbsd-tdep.c: Likewise.
2419 * sol-thread.c: Likewise.
2420 * solib-dsbt.c: Likewise.
2421 * solib-frv.c: Likewise.
2422 * solib-osf.c: Likewise.
2423 * solib-som.c: Likewise.
2424 * solib-spu.c: Likewise.
2425 * solib-target.c: Likewise.
2426 * solib.c: Likewise.
2427 * somread.c: Likewise.
2428 * source.c: Likewise.
2429 * sparc-nat.c: Likewise.
2430 * sparc-sol2-tdep.c: Likewise.
2431 * sparc-tdep.c: Likewise.
2432 * sparc64-tdep.c: Likewise.
2433 * sparc64fbsd-tdep.c: Likewise.
2434 * sparc64nbsd-tdep.c: Likewise.
2435 * sparcnbsd-tdep.c: Likewise.
2436 * spu-linux-nat.c: Likewise.
2437 * spu-multiarch.c: Likewise.
2438 * spu-tdep.c: Likewise.
2439 * stabsread.c: Likewise.
2440 * stack.c: Likewise.
2441 * std-regs.c: Likewise.
2442 * symfile.c: Likewise.
2443 * symmisc.c: Likewise.
2444 * symtab.c: Likewise.
2445 * target.c: Likewise.
2446 * thread.c: Likewise.
2447 * tilegx-linux-nat.c: Likewise.
2448 * tilegx-tdep.c: Likewise.
2450 * tracepoint.c: Likewise.
2451 * tui/tui-command.c: Likewise.
2452 * tui/tui-data.c: Likewise.
2453 * tui/tui-disasm.c: Likewise.
2454 * tui/tui-file.c: Likewise.
2455 * tui/tui-layout.c: Likewise.
2456 * tui/tui-out.c: Likewise.
2457 * tui/tui-regs.c: Likewise.
2458 * tui/tui-source.c: Likewise.
2459 * tui/tui-stack.c: Likewise.
2460 * tui/tui-win.c: Likewise.
2461 * tui/tui-windata.c: Likewise.
2462 * tui/tui-winsource.c: Likewise.
2463 * typeprint.c: Likewise.
2464 * ui-file.c: Likewise.
2465 * ui-out.c: Likewise.
2466 * user-regs.c: Likewise.
2467 * utils.c: Likewise.
2468 * v850-tdep.c: Likewise.
2469 * valarith.c: Likewise.
2470 * valops.c: Likewise.
2471 * valprint.c: Likewise.
2472 * value.c: Likewise.
2473 * varobj.c: Likewise.
2474 * vax-tdep.c: Likewise.
2475 * vaxnbsd-tdep.c: Likewise.
2476 * vaxobsd-tdep.c: Likewise.
2477 * windows-nat.c: Likewise.
2478 * xcoffread.c: Likewise.
2479 * xml-support.c: Likewise.
2480 * xstormy16-tdep.c: Likewise.
2481 * xtensa-linux-nat.c: Likewise.
2483 2014-08-07 Gary Benson <gbenson@redhat.com>
2485 * common/common-defs.h: Include gdb_assert.h.
2486 * aarch64-tdep.c: Do not include gdb_assert.h.
2487 * addrmap.c: Likewise.
2488 * aix-thread.c: Likewise.
2489 * alpha-linux-tdep.c: Likewise.
2490 * alpha-mdebug-tdep.c: Likewise.
2491 * alphanbsd-tdep.c: Likewise.
2492 * amd64-nat.c: Likewise.
2493 * amd64-tdep.c: Likewise.
2494 * amd64bsd-nat.c: Likewise.
2495 * amd64fbsd-nat.c: Likewise.
2496 * amd64fbsd-tdep.c: Likewise.
2497 * amd64nbsd-nat.c: Likewise.
2498 * amd64nbsd-tdep.c: Likewise.
2499 * amd64obsd-nat.c: Likewise.
2500 * amd64obsd-tdep.c: Likewise.
2501 * arch-utils.c: Likewise.
2502 * arm-tdep.c: Likewise.
2503 * armbsd-tdep.c: Likewise.
2505 * bcache.c: Likewise.
2506 * bfin-tdep.c: Likewise.
2507 * blockframe.c: Likewise.
2508 * breakpoint.c: Likewise.
2509 * bsd-kvm.c: Likewise.
2510 * bsd-uthread.c: Likewise.
2511 * buildsym.c: Likewise.
2512 * c-exp.y: Likewise.
2513 * c-lang.c: Likewise.
2514 * charset.c: Likewise.
2515 * cleanups.c: Likewise.
2516 * cli-out.c: Likewise.
2517 * cli/cli-decode.c: Likewise.
2518 * cli/cli-dump.c: Likewise.
2519 * cli/cli-logging.c: Likewise.
2520 * cli/cli-script.c: Likewise.
2521 * cli/cli-utils.c: Likewise.
2522 * coffread.c: Likewise.
2523 * common/common-utils.c: Likewise.
2524 * common/queue.h: Likewise.
2525 * common/signals.c: Likewise.
2526 * common/vec.h: Likewise.
2527 * complaints.c: Likewise.
2528 * completer.c: Likewise.
2529 * corelow.c: Likewise.
2530 * cp-abi.c: Likewise.
2531 * cp-name-parser.y: Likewise.
2532 * cp-namespace.c: Likewise.
2533 * cp-support.c: Likewise.
2534 * cris-tdep.c: Likewise.
2535 * dbxread.c: Likewise.
2536 * dictionary.c: Likewise.
2537 * doublest.c: Likewise.
2538 * dsrec.c: Likewise.
2539 * dummy-frame.c: Likewise.
2540 * dwarf2-frame-tailcall.c: Likewise.
2541 * dwarf2-frame.c: Likewise.
2542 * dwarf2expr.c: Likewise.
2543 * dwarf2loc.c: Likewise.
2544 * dwarf2read.c: Likewise.
2546 * event-loop.c: Likewise.
2547 * exceptions.c: Likewise.
2548 * expprint.c: Likewise.
2549 * f-valprint.c: Likewise.
2550 * fbsd-nat.c: Likewise.
2551 * findvar.c: Likewise.
2552 * frame-unwind.c: Likewise.
2553 * frame.c: Likewise.
2554 * frv-tdep.c: Likewise.
2555 * gcore.c: Likewise.
2556 * gdb-dlfcn.c: Likewise.
2557 * gdb_bfd.c: Likewise.
2558 * gdbarch.c: Likewise.
2559 * gdbarch.sh: Likewise.
2560 * gdbtypes.c: Likewise.
2561 * gnu-nat.c: Likewise.
2562 * gnu-v3-abi.c: Likewise.
2563 * go-lang.c: Likewise.
2564 * guile/scm-exception.c: Likewise.
2565 * guile/scm-gsmob.c: Likewise.
2566 * guile/scm-lazy-string.c: Likewise.
2567 * guile/scm-math.c: Likewise.
2568 * guile/scm-pretty-print.c: Likewise.
2569 * guile/scm-safe-call.c: Likewise.
2570 * guile/scm-utils.c: Likewise.
2571 * guile/scm-value.c: Likewise.
2572 * h8300-tdep.c: Likewise.
2573 * hppa-hpux-nat.c: Likewise.
2574 * hppa-tdep.c: Likewise.
2575 * hppanbsd-tdep.c: Likewise.
2576 * hppaobsd-tdep.c: Likewise.
2577 * i386-darwin-nat.c: Likewise.
2578 * i386-darwin-tdep.c: Likewise.
2579 * i386-nto-tdep.c: Likewise.
2580 * i386-tdep.c: Likewise.
2581 * i386bsd-nat.c: Likewise.
2582 * i386fbsd-tdep.c: Likewise.
2583 * i386gnu-nat.c: Likewise.
2584 * i386nbsd-tdep.c: Likewise.
2585 * i386obsd-tdep.c: Likewise.
2586 * i387-tdep.c: Likewise.
2587 * ia64-libunwind-tdep.c: Likewise.
2588 * ia64-tdep.c: Likewise.
2589 * inf-ptrace.c: Likewise.
2590 * inf-ttrace.c: Likewise.
2591 * infcall.c: Likewise.
2592 * infcmd.c: Likewise.
2593 * infrun.c: Likewise.
2594 * inline-frame.c: Likewise.
2595 * interps.c: Likewise.
2596 * jv-lang.c: Likewise.
2597 * jv-typeprint.c: Likewise.
2598 * linux-fork.c: Likewise.
2599 * linux-nat.c: Likewise.
2600 * linux-thread-db.c: Likewise.
2601 * m32c-tdep.c: Likewise.
2602 * m32r-linux-nat.c: Likewise.
2603 * m32r-tdep.c: Likewise.
2604 * m68k-tdep.c: Likewise.
2605 * m68kbsd-nat.c: Likewise.
2606 * m68kbsd-tdep.c: Likewise.
2607 * m88k-tdep.c: Likewise.
2608 * machoread.c: Likewise.
2609 * macroexp.c: Likewise.
2610 * macrotab.c: Likewise.
2611 * maint.c: Likewise.
2612 * mdebugread.c: Likewise.
2613 * memory-map.c: Likewise.
2614 * mep-tdep.c: Likewise.
2615 * mi/mi-common.c: Likewise.
2616 * microblaze-tdep.c: Likewise.
2617 * mingw-hdep.c: Likewise.
2618 * mips-linux-nat.c: Likewise.
2619 * mips-linux-tdep.c: Likewise.
2620 * mips-tdep.c: Likewise.
2621 * mips64obsd-tdep.c: Likewise.
2622 * mipsnbsd-tdep.c: Likewise.
2623 * mn10300-linux-tdep.c: Likewise.
2624 * mn10300-tdep.c: Likewise.
2625 * moxie-tdep.c: Likewise.
2626 * mt-tdep.c: Likewise.
2627 * nat/linux-btrace.c: Likewise.
2628 * nat/linux-osdata.c: Likewise.
2629 * nat/linux-ptrace.c: Likewise.
2630 * nat/mips-linux-watch.c: Likewise.
2631 * nios2-linux-tdep.c: Likewise.
2632 * nios2-tdep.c: Likewise.
2633 * objc-lang.c: Likewise.
2634 * objfiles.c: Likewise.
2635 * obsd-nat.c: Likewise.
2636 * opencl-lang.c: Likewise.
2637 * osabi.c: Likewise.
2638 * parse.c: Likewise.
2639 * ppc-linux-nat.c: Likewise.
2640 * ppc-sysv-tdep.c: Likewise.
2641 * ppcfbsd-nat.c: Likewise.
2642 * ppcfbsd-tdep.c: Likewise.
2643 * ppcnbsd-nat.c: Likewise.
2644 * ppcnbsd-tdep.c: Likewise.
2645 * ppcobsd-nat.c: Likewise.
2646 * ppcobsd-tdep.c: Likewise.
2647 * printcmd.c: Likewise.
2648 * procfs.c: Likewise.
2649 * prologue-value.c: Likewise.
2650 * psymtab.c: Likewise.
2651 * python/py-lazy-string.c: Likewise.
2652 * python/py-value.c: Likewise.
2653 * regcache.c: Likewise.
2654 * reggroups.c: Likewise.
2655 * registry.c: Likewise.
2656 * remote-sim.c: Likewise.
2657 * remote.c: Likewise.
2658 * rs6000-aix-tdep.c: Likewise.
2659 * rs6000-tdep.c: Likewise.
2660 * s390-linux-tdep.c: Likewise.
2661 * score-tdep.c: Likewise.
2662 * ser-base.c: Likewise.
2663 * ser-mingw.c: Likewise.
2664 * sh-tdep.c: Likewise.
2665 * sh64-tdep.c: Likewise.
2666 * solib-darwin.c: Likewise.
2667 * solib-spu.c: Likewise.
2668 * solib-svr4.c: Likewise.
2669 * source.c: Likewise.
2670 * sparc-nat.c: Likewise.
2671 * sparc-sol2-tdep.c: Likewise.
2672 * sparc-tdep.c: Likewise.
2673 * sparc64-sol2-tdep.c: Likewise.
2674 * sparc64-tdep.c: Likewise.
2675 * sparc64fbsd-tdep.c: Likewise.
2676 * sparc64nbsd-tdep.c: Likewise.
2677 * sparc64obsd-tdep.c: Likewise.
2678 * sparcnbsd-tdep.c: Likewise.
2679 * sparcobsd-tdep.c: Likewise.
2680 * spu-multiarch.c: Likewise.
2681 * spu-tdep.c: Likewise.
2682 * stabsread.c: Likewise.
2683 * stack.c: Likewise.
2684 * symfile.c: Likewise.
2685 * symtab.c: Likewise.
2686 * target-descriptions.c: Likewise.
2687 * target-memory.c: Likewise.
2688 * target.c: Likewise.
2689 * tic6x-linux-tdep.c: Likewise.
2690 * tic6x-tdep.c: Likewise.
2691 * tilegx-linux-nat.c: Likewise.
2692 * tilegx-tdep.c: Likewise.
2694 * tramp-frame.c: Likewise.
2695 * tui/tui-out.c: Likewise.
2696 * tui/tui-winsource.c: Likewise.
2697 * ui-out.c: Likewise.
2698 * user-regs.c: Likewise.
2699 * utils.c: Likewise.
2700 * v850-tdep.c: Likewise.
2701 * valops.c: Likewise.
2702 * value.c: Likewise.
2703 * varobj.c: Likewise.
2704 * vax-nat.c: Likewise.
2705 * xml-syscall.c: Likewise.
2706 * xml-tdesc.c: Likewise.
2707 * xstormy16-tdep.c: Likewise.
2708 * xtensa-linux-nat.c: Likewise.
2709 * xtensa-tdep.c: Likewise.
2711 2014-08-07 Gary Benson <gbenson@redhat.com>
2713 * common/common-defs.h: Include common-utils.h.
2714 * defs.h: Do not include common-utils.h.
2715 * common/gdb_assert.h: Likewise.
2716 * darwin-nat.h: Likewise.
2717 * nat/linux-btrace.c: Likewise.
2718 * target/waitstatus.h: Likewise.
2720 2014-08-07 Gary Benson <gbenson@redhat.com>
2722 * common/common-defs.h: Include ptid.h.
2723 * defs.h: Do not include ptid.h.
2724 * inferior.h: Likewise.
2725 * infrun.h: Likewise.
2726 * nat/linux-btrace.h: Likewise.
2727 * nat/linux-osdata.h: Likewise.
2728 * target/waitstatus.h: Likewise.
2730 2014-08-07 Gary Benson <gbenson@redhat.com>
2732 * common/common-defs.h: Include gdb_locale.h.
2733 * defs.h: Do not include gdb_locale.h.
2735 2014-08-07 Gary Benson <gbenson@redhat.com>
2737 * common/common-defs.h: Include gdb/signals.h.
2738 * defs.h: Do not include gdb/signals.h.
2740 2014-08-07 Gary Benson <gbenson@redhat.com>
2742 * common/common-defs.h: Include pathmax.h.
2743 * defs.h: Do not include pathmax.h.
2745 2014-08-07 Gary Benson <gbenson@redhat.com>
2747 * common/common-defs.h: Include libiberty.h.
2748 * defs.h: Do not include libiberty.h.
2749 * common/queue.h: Likewise.
2750 * cp-name-parser.y: Likewise.
2751 * mi/mi-cmd-catch.c: Likewise.
2752 * python/python.c: Likewise.
2754 2014-08-07 Gary Benson <gbenson@redhat.com>
2756 * common/common-defs.h: Include ansidecl.h.
2757 * defs.h: Do not include ansidecl.h.
2758 * common/buffer.h: Likewise.
2759 * common/common-utils.h: Likewise.
2761 2014-08-07 Gary Benson <gbenson@redhat.com>
2763 * common/common-defs.h: Include stddef.h.
2764 * defs.h: Do not include stddef.h.
2765 * common/common-utils.h: Likewise.
2766 * amd64fbsd-nat.c: Likewise.
2767 * bcache.c: Likewise.
2768 * charset.c: Likewise.
2769 * common/buffer.h: Likewise.
2770 * common/vec.h: Likewise.
2771 * i386bsd-nat.c: Likewise.
2772 * nat/linux-btrace.h: Likewise.
2773 * ppcfbsd-nat.c: Likewise.
2774 * ppcnbsd-tdep.h: Likewise.
2775 * ppcobsd-nat.c: Likewise.
2776 * ppcobsd-tdep.h: Likewise.
2777 * python/py-gdb-readline.c: Likewise.
2779 2014-08-07 Gary Benson <gbenson@redhat.com>
2781 * common/common-defs.h: Include stdarg.h.
2782 * defs.h: Do not include stdarg.h.
2783 * ada-lang.c: Likewise.
2784 * common/common-utils.h: Likewise.
2785 * guile/scm-string.c: Likewise.
2786 * guile/scm-utils.c: Likewise.
2787 * m32c-tdep.c: Likewise.
2789 2014-08-07 Gary Benson <gbenson@redhat.com>
2791 * common/common-defs.h: Include stdlib.h.
2792 * defs.h: Do not include stdlib.h.
2793 * addrmap.c: Likewise.
2794 * bcache.c: Likewise.
2795 * common/buffer.c: Likewise.
2796 * common/common-utils.c: Likewise.
2797 * cp-name-parser.y: Likewise.
2798 * go32-nat.c: Likewise.
2799 * mn10300-linux-tdep.c: Likewise.
2800 * nat/linux-osdata.c: Likewise.
2801 * tui/tui.c: Likewise.
2802 * windows-nat.c: Likewise.
2804 2014-08-07 Gary Benson <gbenson@redhat.com>
2806 * common/common-defs.h: Include stdio.h.
2807 * defs.h: Do not include stdio.h.
2808 * ada-lang.c: Likewise.
2809 * common/buffer.c: Likewise.
2810 * common/common-utils.c: Likewise.
2811 * cp-name-parser.y: Likewise.
2812 * gnu-nat.c: Likewise.
2813 * go32-nat.c: Likewise.
2814 * i386gnu-nat.c: Likewise.
2815 * proc-api.c: Likewise.
2816 * proc-events.c: Likewise.
2817 * proc-flags.c: Likewise.
2818 * proc-why.c: Likewise.
2819 * python/python-internal.h: Likewise.
2820 * target-memory.c: Likewise.
2821 * tui/tui-io.c: Likewise.
2822 * tui/tui.c: Likewise.
2824 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2826 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2827 (scan_dyntag_auxv): Same.
2829 2014-08-06 Yao Qi <yao@codesourcery.com>
2831 * amd64-linux-nat.c: Remove duplicated include
2833 * i386-linux-nat.c: Likewise.
2835 2014-08-06 Yao Qi <yao@codesourcery.com>
2837 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2838 operand" with "Special opcode" in comments.
2840 2014-08-05 Gary Benson <gbenson@redhat.com>
2842 * interps.c (initialize_interps): Remove prototype.
2843 (interpreter_initialized): Remove static global.
2844 (interp_add): Do not call initialize_interps.
2845 (initialize_interps): Remove function.
2847 2014-08-05 Gary Benson <gbenson@redhat.com>
2849 * utils.c (vwarning): Remove spurious va_end.
2851 2014-08-05 Alan Modra <amodra@gmail.com>
2853 * charset.c (convert_between_encodings): Cast result of obstack_base.
2854 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2855 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2856 (read_unwind_info): Use size_t for some locals.
2857 * jit.c (finalize_symtab): Likewise.
2858 * utils.c (hashtab_obstack_allocate): Likewise.
2859 * symmisc.c (print_objfile_statistics): Update format strings.
2861 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2863 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2864 (Changes in GDB 7.8): ... here.
2866 2014-08-04 Tom Tromey <tromey@redhat.com>
2868 * target.c (set_targetdebug): New function.
2869 (initialize_targets): Pass set_targetdebug when creating "set
2872 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2874 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2875 if detecting a variable-sized field that is not the last field.
2876 Fix struct type length computation.
2878 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2880 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2883 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2885 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2886 Remove "+ 8" offset in computation of CHAIN_VMA.
2888 2014-07-31 Doug Evans <dje@google.com>
2890 * inflow.c (child_terminal_inferior): Add comment.
2891 (child_terminal_ours_for_output): Add comment.
2892 (child_terminal_ours): Add comment.
2893 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2894 (linux_nat_terminal_ours): Add comment.
2896 2014-07-31 Gary Benson <gbenson@redhat.com>
2898 * common/btrace-common.h: Do not include defs.h or server.h.
2899 * nat/mips-linux-watch.h: Likewise.
2900 * gdb-dlfcn.h: Do not include defs.h.
2901 * tracefile.h: Likewise.
2903 2014-07-30 Roland McGrath <mcgrathr@google.com>
2905 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2907 2014-07-30 Tom Tromey <tromey@redhat.com>
2909 * bsd-kvm.c (bsd_kvm_open): Constify.
2910 * corelow.c (core_open): Constify.
2911 * ctf.c (ctf_open): Constify.
2912 * dbug-rom.c (dbug_open): Constify.
2913 * exec.c (exec_open): Constify.
2914 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2915 * microblaze-rom.c (picobug_open): Constify.
2916 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2918 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2919 * record-btrace.c (record_btrace_open): Constify.
2920 * record-full.c (record_full_core_open_1, record_full_open_1)
2921 (record_full_open): Constify.
2922 * remote-m32r-sdi.c (m32r_open): Constify.
2923 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2924 (rockhopper_open, lsi_open): Constify.
2925 * remote-sim.c (gdbsim_open): Constify.
2926 * remote.c (remote_open, extended_remote_open, remote_open_1):
2928 * target.h (struct target_ops) <to_open>: Make "arg" const.
2929 * tracefile-tfile.c (tfile_open): Constify.
2931 2014-07-30 Tom Tromey <tromey@redhat.com>
2933 * breakpoint.c (map_breakpoint_numbers): Update.
2934 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2935 (get_number_const): New function.
2936 (get_number): Rewrite using get_number_const.
2937 (init_number_or_range): Make "string" const.
2938 (number_is_in_list): Make "list" const.
2939 * cli/cli-utils.h (get_number_const): Declare.
2940 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2941 (init_number_or_range, number_is_in_list): Update.
2942 * printcmd.c (map_display_numbers): Update.
2943 * value.c (value_from_history_ref): Constify.
2944 * value.h (value_from_history_ref): Update.
2946 2014-07-30 Tom Tromey <tromey@redhat.com>
2948 * corefile.c (hook_type, call_extra_exec_file_hooks)
2949 (specify_exec_file_hook): Constify.
2950 * exec.c (exec_file_attach): Make "filename" const.
2951 * gdbcore.h (deprecated_exec_file_display_hook)
2952 (specify_exec_file_hook, exec_file_attach): Constify.
2953 * main.c (captured_main): Use catch_command_errors_const.
2955 2014-07-30 Tom Tromey <tromey@redhat.com>
2957 * target.c (open_target): New function.
2958 (add_target_with_completer, add_deprecated_target_alias): Use
2959 set_cmd_sfunc, set_cmd_context.
2960 (debug_to_open): Remove.
2961 (setup_target_debug): Update.
2963 2014-07-30 Yao Qi <yao@codesourcery.com>
2965 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2967 * parse.c (exp_iterate): Update comments.
2969 2014-07-30 Gary Benson <gbenson@redhat.com>
2971 * common/common-defs.h: New file.
2972 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2973 * defs.h: Include common-defs.h.
2974 Do not include config.h or build-gnulib/config.h.
2976 2014-07-30 Gary Benson <gbenson@redhat.com>
2978 * common/common-utils.h: Do not include config.h.
2979 * nat/linux-btrace.h: Likewise.
2981 2014-07-30 Gary Benson <gbenson@redhat.com>
2983 * btrace.c: Include defs.h.
2984 * common/ptid.c: Include defs.h or server.h as appropriate.
2985 * nat/mips-linux-watch.c: Likewise.
2987 2014-07-29 Tom Tromey <tromey@redhat.com>
2989 * target.c (target_is_pushed): Simplify.
2991 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2995 2014-07-29 Yao Qi <yao@codesourcery.com>
2998 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3000 2014-07-28 Doug Evans <xdje42@gmail.com>
3003 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3004 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3007 2014-07-28 Will Newton <will.newton@linaro.org>
3009 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3010 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3011 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3012 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3013 (THUMB2_EABI_SYSCALL): Likewise.
3014 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3016 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3017 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3019 2014-07-27 Doug Evans <xdje42@gmail.com>
3021 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3023 2014-07-27 Doug Evans <xdje42@gmail.com>
3025 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3027 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3028 Doug Evans <xdje42@gmail.com>
3031 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3032 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3033 * configure.ac: Try to use guild to compile an scm file, if it fails
3034 then disable guile support.
3035 * configure: Regenerate.
3036 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3038 (GUILE_COMPILED_FILES): New variable.
3039 (GUILE_FILES) Update.
3040 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3041 (stamp-guile): Compile scm files.
3042 * guile/guile.c (boot_guile_support): New function.
3043 (standard_throw_args_p): New function.
3044 (print_standard_throw_error, print_throw_error): New functions.
3045 (handle_boot_error): New function.
3046 (initialize_scheme_side): Rewrite to call boot_guile_support.
3047 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3048 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3050 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3051 Doug Evans <xdje42@gmail.com>
3054 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3055 * guile/lib/gdb/support.scm: New file.
3056 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3057 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3059 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3061 (%assert-type): Ditto, and renamed to assert-type.
3062 (%exception-print-style): Delete.
3064 2014-07-26 Doug Evans <xdje42@gmail.com>
3067 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3068 * configure: Regenerate.
3069 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3071 (PYTHON_FILES): New variable.
3072 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3073 (GUILE_FILES): New variable.
3074 (stamp-python, install-python, uninstall-python): Handle empty
3076 (stamp-guile, install-guile, uninstall-guile): Ditto.
3078 2014-07-26 Doug Evans <xdje42@gmail.com>
3081 * guile/lib/gdb.scm (pretty-printers): Export.
3082 (set-pretty-printers!): Export.
3083 * guile/lib/gdb/printing.scm (gdb module): Update.
3084 (prepend-pretty-printer!, append-pretty-printer!): Update.
3085 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3086 (pretty_printer_list_var): Delete.
3087 (pretty_printer_list): New static global.
3088 (gdbscm_pretty_printers): New function.
3089 (gdbscm_set_pretty_printers_x): New function.
3090 (ppscm_find_pretty_printer_from_gdb): Update.
3091 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3092 (gdbscm_initialize_pretty_printers): Update.
3094 2014-07-26 Doug Evans <xdje42@gmail.com>
3097 * configure.ac: Add check for header gc/gc.h.
3098 Add check for function setenv.
3099 * configure: Regenerate.
3100 * config.in: Regenerate.
3101 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3103 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3105 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3106 variation in gdbarch matching.
3108 2014-07-25 Tom Tromey <tromey@redhat.com>
3110 * exec.c (using_exec_ops): Remove.
3111 (exec_close_1): Update. Remove extraneous block, reindent.
3112 (add_target_sections): Use target_is_pushed.
3114 2014-07-25 Pedro Alves <palves@redhat.com>
3116 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3117 * monitor.c (monitor_create_inferior): Likewise.
3118 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3119 * remote-sim.c (gdbsim_create_inferior): Likewise.
3120 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3121 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3122 * windows-nat.c (do_initial_windows_stuff): Likewise.
3124 2014-07-25 Pedro Alves <palves@redhat.com>
3126 * NEWS: Mention signal passing and "signal" command changes.
3127 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3129 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3131 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3132 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3133 (jump_command): Adjust clear_proceed_status call.
3134 (signal_command): Warn if other thread that are resumed have
3135 signals that will be delivered. Adjust clear_proceed_status call.
3136 (until_next_command, finish_command)
3137 (proceed_after_attach_callback, attach_command_post_wait)
3138 (attach_command): Adjust clear_proceed_status call.
3139 * infrun.c (proceed_after_vfork_done): Likewise.
3140 (proceed_after_attach_callback): Adjust comment.
3141 (clear_proceed_status_thread): Clear stop_signal if not in pass
3143 (clear_proceed_status_callback): Delete.
3144 (clear_proceed_status): New 'step' parameter. Only clear the
3145 proceed status of threads the command being prepared is about to
3147 (proceed): If passed in an explicit signal, override stop_signal
3148 with it. Don't pass the last stop signal to the thread we're
3150 (init_wait_for_inferior): Adjust clear_proceed_status call.
3151 (switch_back_to_stepped_thread): Clear the signal if it should not
3153 * infrun.h (clear_proceed_status): New 'step' parameter.
3154 (user_visible_resume_ptid): Add comment.
3155 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3156 signal is in pass state.
3157 * remote.c (append_pending_thread_resumptions): Likewise.
3158 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3160 2014-07-25 Tom Tromey <tromey@redhat.com>
3162 * target.h (target_stopped_data_address)
3163 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3166 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3168 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3170 (avr_pointer_to_address): Likewise.
3172 2014-07-24 Tom Tromey <tromey@redhat.com>
3174 * monitor.c (compile_pattern): Update.
3175 * target.h (struct target_ops) <to_shortname, to_longname,
3178 2014-07-24 Tom Tromey <tromey@redhat.com>
3180 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3181 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3182 (add_info_alias, add_com): Make "doc" const.
3183 (print_doc_line): Make "str" const.
3184 (delete_cmd): Update.
3185 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3186 (print_doc_line): Update.
3187 * cli/cli-script.c (document_command): Update.
3188 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3189 (add_com, add_info, add_info_alias): Update.
3190 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3191 * python/py-cmd.c (cmdpy_destroyer): Update.
3193 2014-07-24 Tom Tromey <tromey@redhat.com>
3195 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3196 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3197 (help_cmd_list): Constify.
3198 (lookup_cmd): Update.
3199 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3201 (help_cmd_list, apropos_cmd): Update.
3202 * cli/cli-script.c (show_user): Update.
3203 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3204 * cli/cli-setshow.h (cmd_show_list): Update.
3205 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3206 (cmd_show_list): Update.
3207 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3208 * python/py-cmd.c (cmdpy_destroyer): Update.
3210 2014-07-24 Tom Tromey <tromey@redhat.com>
3212 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3213 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3215 * command.h (deprecate_cmd): Update.
3216 * maint.c (maintenance_do_deprecate): Add casts.
3218 2014-07-24 Tom Tromey <tromey@redhat.com>
3220 * cli/cli-decode.c (help_cmd): Make parameter "const".
3221 * cli/cli-decode.h (help_cmd): Update.
3223 2014-07-24 Tom Tromey <tromey@redhat.com>
3225 * stack.c (up_silently_base, down_silently_base): Make argument
3228 2014-07-24 Tom Tromey <tromey@redhat.com>
3230 * solib.c (solib_add): Make "pattern" const.
3231 * solib.h (solib_add): Update.
3233 2014-07-24 Tom Tromey <tromey@redhat.com>
3235 * remote.c (remote_serial_open, print_packet, putpkt)
3236 (putpkt_binary): Constify.
3237 * remote.h (putpkt): Update.
3239 2014-07-24 Tom Tromey <tromey@redhat.com>
3241 * monitor.c (monitor_open): Make "args" const.
3242 * monitor.h (monitor_open): Update.
3244 2014-07-24 Tom Tromey <tromey@redhat.com>
3246 * maint.c (match_bfd_flags): Make "string" const.
3247 (print_bfd_section_info): Remove casts.
3248 (print_objfile_section_info): Make "string" const.
3250 2014-07-24 Tom Tromey <tromey@redhat.com>
3252 * inf-child.c (inf_child_open_target): Make "arg" const.
3253 * inf-child.h (inf_child_open_target): Update.
3255 2014-07-24 Tom Tromey <tromey@redhat.com>
3257 * environ.c (unset_in_environ): Make "var" const.
3258 * environ.h (unset_in_environ): Update.
3260 2014-07-24 Tom Tromey <tromey@redhat.com>
3262 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3264 (scan_filename_with_cleanup): Likewise.
3265 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3266 Make arguments const.
3267 (restore_command): Update.
3269 2014-07-24 Pedro Alves <palves@redhat.com>
3271 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3273 2014-07-24 Tom Tromey <tromey@redhat.com>
3274 Gary Benson <gbenson@redhat.com>
3276 * nat/linux-ptrace.c (additional_flags): New global.
3277 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3278 additional_flags; don't check GDBSERVER.
3279 (linux_ptrace_set_additional_flags): New function.
3280 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3282 * linux-nat.c (_initialize_linux_nat): Call
3283 linux_ptrace_set_additional_flags.
3285 2014-07-24 Tom Tromey <tromey@redhat.com>
3287 * make-target-delegates (munge_type, write_debugmethod): New
3289 (debug_names): New global.
3290 ($TARGET_DEBUG_PRINTER): New global.
3291 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3293 Write debug methods. Generate init_debug_target.
3294 * target-debug.h: New file.
3295 * target-delegates.c: Rebuild.
3296 * target.c: Include target-debug.h.
3297 (debug_target): Hoist definition.
3298 (target_kill, target_get_section_table, target_memory_map)
3299 (target_flash_erase, target_flash_done, target_detach)
3300 (target_disconnect, target_wait, target_resume)
3301 (target_pass_signals, target_program_signals, target_follow_fork)
3302 (target_mourn_inferior, target_search_memory)
3303 (target_thread_address_space, target_close)
3304 (target_find_new_threads, target_core_of_thread)
3305 (target_verify_memory, target_insert_mask_watchpoint)
3306 (target_remove_mask_watchpoint): Remove targetdebug code.
3307 (debug_to_post_attach, debug_to_prepare_to_store)
3308 (debug_to_files_info, debug_to_insert_breakpoint)
3309 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3310 (debug_to_region_ok_for_hw_watchpoint)
3311 (debug_to_can_accel_watchpoint_condition)
3312 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3313 (debug_to_watchpoint_addr_within_range)
3314 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3315 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3316 (debug_to_terminal_init, debug_to_terminal_inferior)
3317 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3318 (debug_to_terminal_save_ours, debug_to_terminal_info)
3319 (debug_to_load, debug_to_post_startup_inferior)
3320 (debug_to_insert_fork_catchpoint)
3321 (debug_to_remove_fork_catchpoint)
3322 (debug_to_insert_vfork_catchpoint)
3323 (debug_to_remove_vfork_catchpoint)
3324 (debug_to_insert_exec_catchpoint)
3325 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3326 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3327 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3328 (setup_target_debug): Call init_debug_target.
3329 * target.h (TARGET_DEBUG_PRINTER): New macro.
3330 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3331 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3333 2014-07-24 Gary Benson <gbenson@redhat.com>
3335 * exceptions.h (throw_vfatal): Renamed to...
3336 (throw_vquit): New declaration.
3337 (throw_quit): Likewise.
3338 * exceptions.c (throw_vfatal): Renamed to...
3339 (throw_vquit): New function.
3340 (throw_quit): Likewise.
3341 (throw_error): Call throw_verror rather than throw_it.
3342 * utils.h (vfatal): Removed.
3344 * utils.c (vfatal): Removed.
3346 (internal_verror): Replaced call to fatal with call to throw_quit.
3347 (quit): Replaced calls to fatal with calls to throw_quit.
3349 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3351 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3354 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3356 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3357 less than zero in conditional expression.
3359 2014-07-23 Tom Tromey <tromey@redhat.com>
3361 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3362 ($INTRO_PART): Don't match whitespace.
3363 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3365 ($METHOD): Add $METHOD_TRAILER.
3367 (scan_target_h): New sub.
3368 Change main loop not to collect state.
3369 * target-delegates.c: Rebuild.
3371 2014-07-23 Gary Benson <gbenson@redhat.com>
3373 * cp-support.c (gdb_demangle): Fix build on systems without
3376 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3378 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3379 for reference entry value target data value.
3381 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3383 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3384 value_available_contents_eq.
3386 2014-07-22 Pedro Alves <palves@redhat.com>
3388 * value.c (allocate_optimized_out_value): Don't mark value as
3391 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3393 * MAINTAINERS (Write After Approval): Update my email address.
3395 2014-07-20 Doug Evans <dje@google.com>
3398 * remote.c (putpkt_binary): Add text to error message.
3400 2014-07-20 Yao Qi <yao@codesourcery.com>
3402 * eval.c: Remove "Chill" from comments.
3403 * gdbtypes.h: Likewise.
3404 * symtab.h: Likewise.
3406 2014-07-20 Yao Qi <yao@codesourcery.com>
3408 * std-operator.def: Update comments to TERNOP_SLICE.
3410 2014-07-20 Yao Qi <yao@codesourcery.com>
3412 * std-operator.def: Remove BINOP_RANGE.
3413 * breakpoint.c (watchpoint_exp_is_const): Update.
3414 * expprint.c (dump_subexp_body_standard): Likewise.
3415 * eval.c (init_array_element): Remove dead code.
3416 (evaluate_subexp_standard): Likewise.
3418 2014-07-20 Yao Qi <yao@codesourcery.com>
3420 * std-operator.def: Remove BINOP_IN.
3421 * breakpoint.c (watchpoint_exp_is_const): Update.
3422 * eval.c (evaluate_subexp_standard): Likewise.
3423 * expprint.c (dump_subexp_body_standard): Likewise.
3425 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3427 * microblaze-tdep.c (microblaze_register_names): Add
3428 the rshr and rslr register names.
3429 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3430 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3431 Use of tdesc_numbered_register. Use of
3432 microblaze_register_g_packet_guesses. Use of
3433 tdesc_use_registers. Use of set_gdbarch_register_type.
3434 (microblaze_register_g_packet_guesses): New.
3435 * microblaze-tdep.h (microblaze_reg_num): Add
3436 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3437 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3438 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3439 * features/microblaze-core.xml: New file.
3440 * features/microblaze-stack-protect.xml: New file.
3441 * features/microblaze-with-stack-protect.c: New file.
3442 * features/microblaze-with-stack-protect.xml: New file.
3443 * features/microblaze.xml: New file.
3444 * features/microblaze.c: New file.
3445 * features/Makefile (microblaze-with-stack-protect): Add
3446 microblaze-with-stack-protect microblaze and microblaze-expedite.
3447 * regformats/microblaze-with-stack-protect.dat: New file.
3448 * regformats/microblaze.dat: New file.
3449 * doc/gdb.texinfo (MicroBlaze Features): Added.
3451 2014-07-18 Tom Tromey <tromey@redhat.com>
3453 * exec.c (exec_ops): Now static.
3454 * exec.h (exec_ops): Don't declare.
3456 2014-07-18 Tom Tromey <tromey@redhat.com>
3458 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3459 to find_target_beneath.
3460 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3461 find_target_beneath.
3462 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3464 2014-07-18 Tom Tromey <tromey@redhat.com>
3467 * utils.c (quit): Use target_supports_terminal_ours.
3468 * target.h (target_supports_terminal_ours): Declare.
3469 * target.c (target_supports_delete_record): Don't check
3470 to_delete_record against NULL.
3471 (target_supports_terminal_ours): New function.
3473 2014-07-18 Tom Tromey <tromey@redhat.com>
3476 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3477 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3478 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3479 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3480 * windows-nat.c (windows_xfer_partial): Always delegate.
3481 * record-btrace.c (record_btrace_xfer_partial): Simplify
3483 (record_btrace_fetch_registers, record_btrace_store_registers)
3484 (record_btrace_prepare_to_store, record_btrace_resume)
3485 (record_btrace_wait, record_btrace_find_new_threads)
3486 (record_btrace_thread_alive): Likewise.
3487 * procfs.c (procfs_xfer_partial): Always delegate.
3488 * corelow.c (core_xfer_partial): Always delegate.
3489 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3491 2014-07-18 Tom Tromey <tromey@redhat.com>
3493 * exec.c (exec_make_note_section): Move earlier.
3495 2014-07-17 Doug Evans <dje@google.com>
3498 * maint.c (count_symtabs_and_blocks): Handle NULL
3499 current_program_space.
3500 (report_command_stats): Check global enabled flag in addition to
3501 recorded enabled flag.
3502 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3504 2014-07-16 Pedro Alves <palves@redhat.com>
3506 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3508 2014-07-16 Tom Tromey <tromey@redhat.com>
3510 * target.h (struct target_ops) <to_delete_record>: Reformat
3513 2014-07-16 Tom Tromey <tromey@redhat.com>
3515 * target-delegates.c: Rebuild.
3517 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3519 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3520 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3521 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3522 (avr_pointer_to_address): Likewise.
3523 (avr_address_class_type_flags): New function.
3524 (avr_address_class_type_flags_to_name): Likewise.
3525 (avr_address_class_name_to_type_flags): Likewise.
3526 (avr_gdbarch_init): Set address_class_type_flags,
3527 address_class_type_flags_to_name and
3528 address_class_name_to_type_flags.
3530 2014-07-15 Pedro Alves <palves@redhat.com>
3532 * linux-nat.c (kill_callback): Save errno and work with saved
3535 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3537 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3539 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3541 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3542 breakpoint support correctly.
3544 2014-07-14 Pedro Alves <palves@redhat.com>
3546 * utils.c (prompt_for_continue): Call target_terminal_ours.
3548 2014-07-14 Pedro Alves <palves@redhat.com>
3550 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3551 catch_errors. Don't re-enable stdin or notify observers where,
3553 (fetch_inferior_event_wrapper): Delete.
3555 2014-07-14 Pedro Alves <palves@redhat.com>
3558 * top.c: Include "inf-loop.h".
3559 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3561 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3563 (gdb_readline_wrapper): Store whether the target is async, and
3566 2014-07-14 Pedro Alves <palves@redhat.com>
3569 * top.c (gdb_readline_wrapper_line): Tweak comment.
3570 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3571 the input handler callback.
3573 2014-07-14 Pedro Alves <palves@redhat.com>
3576 * main.c: Include event-top.h.
3577 (handle_command_errors): New function.
3578 (catch_command_errors, catch_command_errors_const): Use it.
3580 2014-07-14 Pedro Alves <palves@redhat.com>
3582 * exceptions.c (catch_command_errors, catch_command_errors_const):
3584 * exceptions.h (catch_command_errors_ftype)
3585 (catch_command_errors_const_ftype): Moved to main.c.
3586 (catch_command_errors, catch_command_errors_const): Delete
3588 * main.c (catch_command_errors_ftype)
3589 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3590 (catch_command_errors, catch_command_errors_const)): Moved here
3591 from exceptions.c and make static.
3593 2014-07-14 Pedro Alves <palves@redhat.com>
3595 * exceptions.c (print_any_exception): Delete.
3596 (catch_exceptions_with_msg): Use exception_print instead of
3597 print_any_exception.
3598 (catch_errors): Use exception_fprintf instead of
3599 print_any_exception.
3600 (catch_command_errors, catch_command_errors_const): Use
3601 exception_print instead of print_any_exception.
3603 2014-07-14 Pedro Alves <palves@redhat.com>
3605 * infcall.c (run_inferior_call): Set 'sync_execution' while
3606 running the inferior call.
3608 2014-07-14 Pedro Alves <palves@redhat.com>
3610 * value.c (value_contents_equal): Delete function.
3611 * value.h (value_contents_equal): Delete declaration.
3613 2014-07-14 Tom Tromey <tromey@redhat.com>
3616 * gdbtypes.c (is_dynamic_type_internal): New function, from
3618 (is_dynamic_type): Rewrite.
3619 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3620 (resolve_dynamic_struct): Likewise.
3621 (resolve_dynamic_type_internal): New function, from
3622 resolve_dynamic_type.
3623 (resolve_dynamic_type): Rewrite.
3625 2014-07-14 Tom Tromey <tromey@redhat.com>
3627 * target.c (target_require_runnable): Also check record_stratum.
3630 2014-07-11 Yao Qi <yao@codesourcery.com>
3632 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3633 thumb_instruction_restores_sp return true.
3635 2014-07-11 Yao Qi <yao@codesourcery.com>
3637 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3638 (thumb_in_function_epilogue_p): Call
3639 thumb_instruction_restores_sp.
3641 2014-07-11 Yao Qi <yao@codesourcery.com>
3643 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3645 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3647 2014-07-11 Gary Benson <gbenson@redhat.com>
3649 * amd64-linux-nat.c (gdbcore.h): Remove include.
3650 (regset.h): Likewise.
3651 (nat/linux-btrace.h): Likewise.
3652 (btrace.h): Likewise.
3653 (gdb_assert.h): Likewise.
3654 (string.h): Likewise.
3655 (sys/uio.h): Likewise.
3656 (sys/debugreg.h): Likewise.
3657 (sys/syscall.h): Likewise.
3658 (sys/procfs.h): Likewise.
3659 (sys/user.h): Likewise.
3660 (asm/ptrace.h): Likewise.
3661 (i386-nat.h): Likewise.
3662 * i386-linux-nat.c (i386-nat.h): Likewise.
3663 (regset.h): Likewise.
3664 (target.h): Likewise.
3665 (linux-nat.h): Likewise.
3666 (nat/linux-btrace.h): Likewise.
3667 (btrace.h): Likewise.
3668 (gdb_assert.h): Likewise.
3669 (string.h): Likewise.
3670 (sys/uio.h): Likewise.
3671 (sys/user.h): Likewise.
3672 (sys/procfs.h): Likewise.
3673 (sys/reg.h): Likewise.
3674 (sys/debugreg.h): Likewise.
3675 (ORIG_EAX): Remove definition.
3677 2014-07-11 Gary Benson <gbenson@redhat.com>
3679 * i386-linux-nat.h: New file.
3680 * x86-linux-nat.h: Likewise.
3681 * x86-linux-nat.c: Likewise.
3682 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3683 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3684 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3685 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3686 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3687 (PTRACE_SETREGSET): Likewise.
3688 (arch_lwp_info): Now in x86-linux-nat.c.
3689 (have_ptrace_getregset): Now in x86-linux-nat.h.
3690 (x86_linux_dr_get): Now in x86-linux-nat.c.
3691 (x86_linux_dr_set): Likewise.
3692 (x86_linux_dr_get_addr): Likewise.
3693 (x86_linux_dr_get_control): Likewise.
3694 (x86_linux_dr_get_status): Likewise.
3695 (update_debug_registers_callback): Likewise.
3696 (x86_linux_dr_set_control): Likewise.
3697 (x86_linux_dr_set_addr): Likewise.
3698 (x86_linux_prepare_to_resume): Likewise.
3699 (x86_linux_new_thread): Likewise.
3700 (x86_linux_new_fork): Likewise.
3701 (x86_linux_get_thread_area): Likewise.
3702 (super_post_startup_inferior): Likewise.
3703 (x86_linux_child_post_startup_inferior): Likewise.
3704 (AMD64_LINUX_USER64_CS): Likewise.
3705 (AMD64_LINUX_X32_DS): Likewise.
3706 (x86_linux_read_description): Likewise.
3707 (x86_linux_enable_btrace): Likewise.
3708 (x86_linux_disable_btrace): Likewise.
3709 (x86_linux_teardown_btrace): Likewise.
3710 (x86_linux_read_btrace): Likewise.
3711 (x86_linux_create_target): Likewise.
3712 (x86_linux_add_target): Likewise.
3713 * i386-linux-nat.c (x86-linux-nat.h): New include.
3714 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3715 (PTRACE_SETREGSET): Likewise.
3716 (arch_lwp_info): Now in x86-linux-nat.c.
3717 (have_ptrace_getregset): Now in x86-linux-nat.h.
3718 (x86_linux_dr_get): Now in x86-linux-nat.c.
3719 (x86_linux_dr_set): Likewise.
3720 (x86_linux_dr_get_addr): Likewise.
3721 (x86_linux_dr_get_control): Likewise.
3722 (x86_linux_dr_get_status): Likewise.
3723 (update_debug_registers_callback): Likewise.
3724 (x86_linux_dr_set_control): Likewise.
3725 (x86_linux_dr_set_addr): Likewise.
3726 (x86_linux_prepare_to_resume): Likewise.
3727 (x86_linux_new_thread): Likewise.
3728 (x86_linux_new_fork): Likewise.
3729 (x86_linux_get_thread_area): Likewise.
3730 (super_post_startup_inferior): Likewise.
3731 (x86_linux_child_post_startup_inferior): Likewise.
3732 (AMD64_LINUX_USER64_CS): Likewise.
3733 (AMD64_LINUX_X32_DS): Likewise.
3734 (x86_linux_read_description): Likewise.
3735 (x86_linux_enable_btrace): Likewise.
3736 (x86_linux_disable_btrace): Likewise.
3737 (x86_linux_teardown_btrace): Likewise.
3738 (x86_linux_read_btrace): Likewise.
3739 (x86_linux_create_target): Likewise.
3740 (x86_linux_add_target): Likewise.
3742 2014-07-11 Gary Benson <gbenson@redhat.com>
3744 * amd64-linux-nat.c: Comment and whitespace changes.
3745 * i386-linux-nat.c: Comment and whitespace changes.
3747 2014-07-11 Gary Benson <gbenson@redhat.com>
3749 * amd64-linux-nat.c (x86_linux_create_target): New function.
3750 (x86_linux_add_target): Likewise.
3751 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3752 * i386-linux-nat.c (x86_linux_create_target): New function.
3753 (x86_linux_add_target): Likewise.
3754 (_initialize_i386_linux_nat): Delegate to the above new functions.
3756 2014-07-11 Gary Benson <gbenson@redhat.com>
3758 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3759 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3760 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3761 (ps_get_thread_area): Delegate to the above.
3763 2014-07-11 Gary Benson <gbenson@redhat.com>
3765 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3766 x86_linux_read_description. All uses updated. amd64-specific
3767 code conditionalized. Conditionalized i386-specific code added.
3768 Redundant cast removed.
3769 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3770 x86_linux_read_description. All uses updated. i386-specific
3771 code conditionalized. Conditionalized amd64-specific code added.
3772 One sizeof replaced with the actual type it is describing.
3774 2014-07-11 Gary Benson <gbenson@redhat.com>
3776 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3777 x86_linux_dr_get. All uses updated.
3778 (amd64_linux_dr_set): Renamed to
3779 x86_linux_dr_set. All uses updated.
3780 (amd64_linux_dr_get_addr): Renamed to
3781 x86_linux_dr_get_addr. All uses updated.
3782 (amd64_linux_dr_get_control): Renamed to
3783 x86_linux_dr_get_control. All uses updated.
3784 (amd64_linux_dr_get_status): Renamed to
3785 x86_linux_dr_get_status. All uses updated.
3786 (amd64_linux_dr_set_control): Renamed to
3787 x86_linux_dr_set_control. All uses updated.
3788 (amd64_linux_dr_set_addr): Renamed to
3789 x86_linux_dr_set_addr. All uses updated.
3790 (amd64_linux_prepare_to_resume): Renamed to
3791 x86_linux_prepare_to_resume. All uses updated.
3792 (amd64_linux_new_thread): Renamed to
3793 x86_linux_new_thread. All uses updated.
3794 (amd64_linux_new_fork): Renamed to
3795 x86_linux_new_fork. All uses updated.
3796 (amd64_linux_child_post_startup_inferior): Renamed to
3797 x86_linux_child_post_startup_inferior. All uses updated.
3798 (amd64_linux_enable_btrace): Renamed to
3799 x86_linux_enable_btrace. All uses updated.
3800 (amd64_linux_disable_btrace): Renamed to
3801 x86_linux_disable_btrace. All uses updated.
3802 (amd64_linux_teardown_btrace): Renamed to
3803 x86_linux_teardown_btrace. All uses updated.
3804 (amd64_linux_read_btrace): Renamed to
3805 x86_linux_read_btrace. All uses updated.
3806 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3807 x86_linux_dr_get. All uses updated.
3808 (i386_linux_dr_set): Renamed to
3809 x86_linux_dr_set. All uses updated.
3810 (i386_linux_dr_get_addr): Renamed to
3811 x86_linux_dr_get_addr. All uses updated.
3812 (i386_linux_dr_get_control): Renamed to
3813 x86_linux_dr_get_control. All uses updated.
3814 (i386_linux_dr_get_status): Renamed to
3815 x86_linux_dr_get_status. All uses updated.
3816 (i386_linux_dr_set_control): Renamed to
3817 x86_linux_dr_set_control. All uses updated.
3818 (i386_linux_dr_set_addr): Renamed to
3819 x86_linux_dr_set_addr. All uses updated.
3820 (i386_linux_prepare_to_resume): Renamed to
3821 x86_linux_prepare_to_resume. All uses updated.
3822 (i386_linux_new_thread): Renamed to
3823 x86_linux_new_thread. All uses updated.
3824 (i386_linux_new_fork): Renamed to
3825 x86_linux_new_fork. All uses updated.
3826 (i386_linux_child_post_startup_inferior): Renamed to
3827 x86_linux_child_post_startup_inferior. All uses updated.
3828 (i386_linux_enable_btrace): Renamed to
3829 x86_linux_enable_btrace. All uses updated.
3830 (i386_linux_disable_btrace): Renamed to
3831 x86_linux_disable_btrace. All uses updated.
3832 (i386_linux_teardown_btrace): Renamed to
3833 x86_linux_teardown_btrace. All uses updated.
3834 (i386_linux_read_btrace): Renamed to
3835 x86_linux_read_btrace. All uses updated.
3837 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3839 * remote.c (extended_remote_post_attach): New function.
3840 (init_extended_remote_ops): Install it as to_post_attach method.
3842 2014-07-09 Pedro Alves <palves@redhat.com>
3844 * infcmd.c (attach_command_post_wait): Don't call
3845 target_terminal_inferior here.
3846 (attach_command): Call it here instead.
3848 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3850 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3852 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3853 from varobj.c, with additional checks.
3854 (c_varobj_ops): Fill in is_path_expr_parent field.
3855 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3856 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3858 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3860 (varobj_default_is_path_expr_parent): New function.
3861 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3862 (varobj_default_is_path_expr_parent): Declare new function.
3864 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3866 * infcmd.c (finish_backward): Turn internal error into normal error.
3868 2014-07-07 Pedro Alves <palves@redhat.com>
3871 * remote.c (async_handle_remote_sigint)
3872 (async_handle_remote_sigint_twice): Call
3873 gdb_call_async_signal_handler instead of
3874 mark_async_signal_handler.
3876 2014-07-07 Tom Tromey <tromey@redhat.com>
3878 * target-delegates.c: Rebuild.
3879 * target.c (target_info_record): Remove.
3880 * record.c (info_record_command): Unconditionally call
3882 * target.h (struct target_ops) <to_info_record>: Use
3883 TARGET_DEFAULT_IGNORE.
3884 (target_info_record): Remove.
3886 2014-07-07 Tom Tromey <tromey@redhat.com>
3888 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3889 TARGET_DEFAULT_NORETURN.
3890 * target.c (generic_tls_error): New function.
3891 (target_translate_tls_address): Don't search target stack.
3892 * target-delegates.c: Rebuild.
3893 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3895 * linux-thread-db.c (thread_db_get_thread_local_address):
3896 Unconditionally call beneath target.
3898 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3900 * cli/cli-logging.c (pop_output_files): Assign targerr to
3903 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3905 * MAINTAINERS (Write After Approval): Update my email address.
3907 2014-07-02 Gary Benson <gbenson@redhat.com>
3909 * proc-service.c (ps_xfer_memory): Update comment.
3910 (ps_pstop): Remove unused function.
3911 (ps_pcontinue): Likewise.
3912 (ps_lstop): Likewise.
3913 (ps_lcontinue): Likewise.
3914 (ps_lgetxregsize): Likewise.
3915 (ps_lgetxregs): Likewise.
3916 (ps_lsetxregs): Likewise.
3917 (ps_plog): Likewise.
3918 (ps_ptread): Likewise.
3919 (ps_ptwrite): Likewise.
3921 2014-07-01 Mark Wielaard <mjw@redhat.com>
3923 * dwarf2read.c (add_array_cv_type): New function.
3924 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3925 (read_tag_volatile_type): Likewise.
3927 2014-07-01 Tom Tromey <tromey@redhat.com>
3929 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3930 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3931 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3932 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3933 * command.h (cmd_cfunc_ftype): Move earlier.
3934 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3935 (add_com, add_info): Use cmd_cfunc_ftype.
3937 2014-06-30 Tom Tromey <tromey@redhat.com>
3939 * symtab.c (operator_chars): Make parameters and return type
3941 (file_matches): Make "files" const.
3942 (struct search_symbols_data) <files>: Now const.
3943 (search_symbols): Make "regexp" and "files" parameters const.
3945 (symtab_symbol_info): Remove cast.
3946 (rbreak_command): Update.
3947 * symtab.h (search_symbols): Update.
3949 2014-06-27 Yao Qi <yao@codesourcery.com>
3951 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3952 Change parameter type to 'struct thread_info *'. Caller
3954 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3956 * dummy-frame.c (struct dummy_frame_id): New.
3957 (dummy_frame_id_eq): New function.
3958 (struct dummy_frame) <id>: Change its type to 'struct
3960 (dummy_frame_push): Add parameter ptid and save it in
3962 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3964 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3966 (lookup_dummy_frame): Change parameter type to 'struct
3967 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3968 instead of frame_id_eq.
3969 (dummy_frame_pop): Add parameter ptid. Callers updated.
3970 Update comments. Compose dummy_frame_id and pass it to
3972 (dummy_frame_discard): Add parameter ptid.
3973 (dummy_frame_sniffer): Compose dummy_frame_id and call
3974 dummy_frame_id_eq instead of frame_id_eq.
3975 (fprint_dummy_frames): Print ptid.
3976 * dummy-frame.h: Remove comments.
3977 (dummy_frame_push): Add ptid in declaration.
3978 (dummy_frame_pop, dummy_frame_discard): Likewise.
3980 2014-06-26 Tom Tromey <tromey@redhat.com>
3982 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3983 * command.h (error_no_arg): Update.
3985 2014-06-26 Tom Tromey <tromey@redhat.com>
3987 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3988 (do_show_command): Make "arg" const.
3989 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3991 2014-06-26 Tom Tromey <tromey@redhat.com>
3993 * record-full.c (record_full_get_bookmark): Make "args" const.
3994 (record_full_goto_bookmark): Make "raw_bookmark" const.
3995 * record.c (record_goto): New function.
3996 (cmd_record_goto): Use it. Now static.
3997 * record.h (record_goto): Declare.
3998 (cmd_record_goto): Remove declaration.
3999 * target-delegates.c: Rebuild.
4000 * target.h (struct target_ops) <to_get_bookmark,
4001 to_goto_bookmark>: Make parameter const.
4003 2014-06-26 Tom Tromey <tromey@redhat.com>
4005 * defs.h (generic_load): Update.
4006 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4007 * monitor.c (monitor_load): Make "args" const.
4008 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4009 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4011 (mips_load): Make "file" const.
4012 * remote-sim.c (gdbsim_load): Make "args" const.
4013 * remote.c (remote_load): Make "name" const.
4014 * symfile.c (generic_load): Make "args" const.
4015 * target-delegates.c: Rebuild.
4016 * target.c (target_load): Make "arg" const.
4017 (debug_to_load): Make "args" const.
4018 * target.h (struct target_ops) <to_load>: Make parameter const.
4019 (target_load): Update.
4021 2014-06-26 Tom Tromey <tromey@redhat.com>
4024 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4025 (dwarf2_physname, read_partial_die)
4026 (guess_partial_die_structure_name, fixup_partial_die)
4027 (guess_full_die_structure_name, anonymous_struct_prefix)
4028 (dwarf2_name): Use per-BFD obstack.
4030 2014-06-26 Yao Qi <yao@codesourcery.com>
4032 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4033 dummyframe and this_id into inner block below.
4035 2014-06-26 Yao Qi <yao@codesourcery.com>
4037 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4038 with "signal_pass[0]" in the initialization of signal_pass.
4040 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4042 * record-btrace.c (record_btrace_generating_corefile)
4043 (record_btrace_prepare_to_generate_core)
4044 (record_btrace_done_generating_core): New.
4045 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4046 (record_btrace_store_registers, record_btrace_prepare_to_store):
4047 Forward request when generating a core file.
4048 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4049 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4050 to_done_generating_core.
4052 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4054 * target.h (target_ops) <to_prepare_to_generate_core>
4055 <to_done_generating_core>: New.
4056 (target_prepare_to_generate_core, target_done_generating_core): New.
4057 * target.c (target_prepare_to_generate_core)
4058 (target_done_generating_core): New.
4059 * target-delegates.c: Regenerate.
4060 * gcore.c: (write_gcore_file): Rename to ...
4061 (write_gcore_file_1): ...this.
4062 (write_gcore_file): Call target_prepare_to_generate_core
4063 and target_done_generating_core.
4065 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4067 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4068 * gcore.c (write_gcore_file): Free memory returned from
4069 make_corefile_notes.
4070 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4071 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4073 2014-06-24 Yao Qi <yao@codesourcery.com>
4075 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4076 (arm_linux_init_abi): Set skip_trampoline_code with
4077 gdbarch_skip_trampoline_code instead of
4078 find_solib_trampoline_target.
4080 2014-06-24 Yao Qi <yao@codesourcery.com>
4082 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4083 arm_skip_bx_reg returns non-zero.
4085 2014-06-24 Yao Qi <yao@codesourcery.com>
4087 * arm-tdep.c (arm_skip_bx_reg): New function.
4088 (arm_skip_stub): Call arm_skip_bx_reg.
4090 2014-06-23 Don Breazeal <donb@codesourcery.com>
4092 * MAINTAINERS: Add myself as write-after-approval maintainer.
4094 2014-06-23 Pedro Alves <palves@redhat.com>
4096 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4097 DR_CONTROL before setting DR0..DR3.
4098 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4099 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4100 bits of DR_CONTROL related to the debug register slot being
4101 disabled. If all slots are vacant, clear local slowdown as well,
4102 and assert DR_CONTROL is 0.
4104 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4106 * python/lib/gdb/command/xmethods.py
4107 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4108 current progspace only if the string "progspace" matches LOCUS_RE.
4110 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4112 Fix --with-system-readline with readline-6.3 patch 5.
4113 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4114 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4117 2014-06-20 Tom Tromey <tromey@redhat.com>
4119 * dwarf2read.c (dw2_get_real_path): Use correct type in
4121 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4123 2014-06-20 Gary Benson <gbenson@redhat.com>
4125 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4126 * common/glibc_thread_db.h: Likewise.
4127 * common/i386-cpuid.h: Likewise.
4128 * common/i386-gcc-cpuid.h: Likewise.
4129 * common/linux-btrace.h: Likewise.
4130 * common/linux-osdata.h: Likewise.
4131 * common/linux-procfs.h: Likewise.
4132 * common/linux-ptrace.h: Likewise.
4133 * common/mips-linux-watch.h: Likewise.
4134 * common/linux-btrace.c: Moved to nat.
4135 * common/linux-osdata.c: Likewise.
4136 * common/linux-procfs.c: Likewise.
4137 * common/linux-ptrace.c: Likewise.
4138 * common/mips-linux-watch.c: Likewise.
4139 * nat/gdb_thread_db.h: Moved from common.
4140 * nat/glibc_thread_db.h: Likewise.
4141 * nat/i386-cpuid.h: Likewise.
4142 * nat/i386-gcc-cpuid.h: Likewise.
4143 * nat/linux-btrace.c: Likewise.
4144 * nat/linux-btrace.h: Likewise.
4145 * nat/linux-osdata.c: Likewise.
4146 * nat/linux-osdata.h: Likewise.
4147 * nat/linux-procfs.c: Likewise.
4148 * nat/linux-procfs.h: Likewise.
4149 * nat/linux-ptrace.c: Likewise.
4150 * nat/linux-ptrace.h: Likewise.
4151 * nat/mips-linux-watch.c: Likewise.
4152 * nat/mips-linux-watch.h: Likewise.
4153 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4154 (object file files): Reordered.
4155 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4156 of glibc_thread_db.h.
4158 2014-06-20 Gary Benson <gbenson@redhat.com>
4160 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4161 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4162 (i386_dr_low): Likewise.
4163 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4164 (i386_dr_low_set_addr): Likewise.
4165 (i386_dr_low_get_addr): Likewise.
4166 (i386_dr_low_can_set_control): Likewise.
4167 (i386_dr_low_set_control): Likewise.
4168 (i386_dr_low_get_control): Likewise.
4169 (i386_dr_low_get_status): Likewise.
4170 (i386_get_debug_register_length): Likewise.
4171 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4172 (i386_dr_low): Likewise.
4173 * nat/i386-dregs.c (i386-low.h): Remove include.
4174 (i386-nat.h): Likewise.
4175 (nat/i386-dregs.h): New include.
4176 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4177 (i386_dr_low_set_addr): Likewise.
4178 (i386_dr_low_get_addr): Likewise.
4179 (i386_dr_low_can_set_control): Likewise.
4180 (i386_dr_low_set_control): Likewise.
4181 (i386_dr_low_get_control): Likewise.
4182 (i386_dr_low_get_status): Likewise.
4183 (i386_get_debug_register_length): Likewise.
4184 (debug_hw_points): Likewise.
4186 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4188 * Makefile.in (SFILES): Add d-exp.y.
4189 (YYFILES): Add d-exp.c.
4190 (YYOBJ): Add d-exp.o.
4191 (local-maintainer-clean): Delete d-exp.c.
4192 * d-exp.y: New file.
4193 * d-lang.h (d_parse): New declaration.
4194 (d_error): New declaration.
4195 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4196 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4197 PREC_ORDER operators.
4198 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4200 2014-06-19 Yao Qi <yao@codesourcery.com>
4202 * gdbthread.h (any_running): Remove the declaration.
4203 * thread.c (any_running): Remove.
4205 2014-06-19 Yao Qi <yao@codesourcery.com>
4207 * gdbthread.h (struct thread_info) <state>: Change its type to
4208 'enum thread_state'. Update comments.
4210 2014-06-19 Pedro Alves <palves@redhat.com>
4212 * gdbthread.h (ALL_THREADS): Delete.
4213 (ALL_NON_EXITED_THREADS): New macro.
4214 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4215 instead of ALL_THREADS.
4216 * infrun.c (find_thread_needs_step_over)
4217 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4218 instead of ALL_THREADS.
4219 * record-btrace.c (record_btrace_open)
4220 (record_btrace_stop_recording, record_btrace_close)
4221 (record_btrace_is_replaying, record_btrace_resume)
4222 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4223 * remote.c (append_pending_thread_resumptions): Likewise.
4224 * thread.c (thread_apply_all_command): Likewise.
4226 2014-06-19 Gary Benson <gbenson@redhat.com>
4228 * i386-nat.c (i386_stopped_by_watchpoint):
4229 Use i386_dr_stopped_by_watchpoint.
4230 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4231 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4233 2014-06-19 Gary Benson <gbenson@redhat.com>
4235 * nat/i386-dregs.c: New file.
4236 * Makefile.in (i386-dregs.o): New rule.
4237 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4238 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4239 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4240 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4241 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4242 * config/i386/go32.mh (NATDEPFILES): Likewise.
4243 * config/i386/linux.mh (NATDEPFILES): Likewise.
4244 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4245 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4246 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4247 * i386-nat.h (debug_hw_points): New declaration.
4248 * i386-nat.c (breakpoint.h): Remove include.
4249 (command.h): Likewise.
4250 (target.h): Likewise.
4251 (gdb_assert.h): Likewise.
4252 (debug_hw_points): Made nonstatic.
4253 (debug_printf): Now in i386-dregs.c.
4254 (TARGET_HAS_DR_LEN_8): Likewise.
4255 (DR_CONTROL_SHIFT): Likewise.
4256 (DR_CONTROL_SIZE): Likewise.
4257 (DR_RW_EXECUTE): Likewise.
4258 (DR_RW_WRITE): Likewise.
4259 (DR_RW_READ): Likewise.
4260 (DR_RW_IORW): Likewise.
4261 (DR_LEN_1): Likewise.
4262 (DR_LEN_2): Likewise.
4263 (DR_LEN_4): Likewise.
4264 (DR_LEN_8): Likewise.
4265 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4266 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4267 (DR_ENABLE_SIZE): Likewise.
4268 (DR_LOCAL_SLOWDOWN): Likewise.
4269 (DR_GLOBAL_SLOWDOWN): Likewise.
4270 (DR_CONTROL_RESERVED): Likewise.
4271 (I386_DR_CONTROL_MASK): Likewise.
4272 (I386_DR_VACANT): Likewise.
4273 (I386_DR_LOCAL_ENABLE): Likewise.
4274 (I386_DR_GLOBAL_ENABLE): Likewise.
4275 (I386_DR_DISABLE): Likewise.
4276 (I386_DR_SET_RW_LEN): Likewise.
4277 (I386_DR_GET_RW_LEN): Likewise.
4278 (I386_DR_WATCH_HIT): Likewise.
4279 (i386_wp_op_t): Likewise.
4280 (i386_show_dr): Likewise.
4281 (i386_length_and_rw_bits): Likewise.
4282 (i386_insert_aligned_watchpoint): Likewise.
4283 (i386_remove_aligned_watchpoint): Likewise.
4284 (i386_handle_nonaligned_watchpoint): Likewise.
4285 (i386_update_inferior_debug_regs): Likewise.
4286 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4287 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4288 (i386_region_ok_for_watchpoint):
4289 Use i386_dr_region_ok_for_watchpoint.
4290 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4292 2014-06-19 Gary Benson <gbenson@redhat.com>
4294 * i386-nat.c (i386_insert_hw_breakpoint): Use
4295 i386_insert_watchpoint.
4296 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4298 2014-06-19 Gary Benson <gbenson@redhat.com>
4300 * i386-nat.c (i386_dr_show): Renamed to
4301 i386_show_dr and made static. All uses updated.
4302 (i386_dr_length_and_rw_bits): Renamed to
4303 i386_length_and_rw_bits and made static.
4305 (i386_dr_insert_aligned_watchpoint): Renamed to
4306 i386_insert_aligned_watchpoint and made static.
4308 (i386_dr_remove_aligned_watchpoint): Renamed to
4309 i386_remove_aligned_watchpoint and made static.
4311 (i386_dr_update_inferior_debug_regs): Renamed to
4312 i386_update_inferior_debug_regs and made static.
4314 * nat/i386-dregs.h (i386_dr_show): Removed.
4315 (i386_dr_length_and_rw_bits): Likewise.
4316 (i386_dr_insert_aligned_watchpoint): Likewise.
4317 (i386_dr_remove_aligned_watchpoint): Likewise.
4318 (i386_dr_update_inferior_debug_regs): Likewise.
4320 2014-06-19 Gary Benson <gbenson@redhat.com>
4322 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4323 * configure: Regenerate.
4324 * config.in: Likewise.
4325 * main.c (signal.h): New include.
4326 (setup_alternate_signal_stack): New function.
4327 (captured_main): Call the above.
4328 * cp-support.c (signal.h): New include.
4329 (catch_demangler_crashes): New flag.
4330 (SIGJMP_BUF): New define.
4331 (SIGSETJMP): Likewise.
4332 (SIGLONGJMP): Likewise.
4333 (gdb_demangle_jmp_buf): New static global.
4334 (gdb_demangle_attempt_core_dump): Likewise.
4335 (gdb_demangle_signal_handler): New function.
4336 (gdb_demangle): If catch_demangler_crashes is set, install the
4337 above signal handler before calling bfd_demangle, and restore
4338 the original signal handler afterwards. Display the offending
4339 symbol and call demangler_warning the first time a segmentation
4341 (_initialize_cp_support): New maint set/show command.
4343 2014-06-19 Gary Benson <gbenson@redhat.com>
4345 * utils.h (resource_limit_kind): New enum.
4346 (can_dump_core): New declaration.
4347 (warn_cant_dump_core): Likewise.
4348 (dump_core): Likewise.
4349 * utils.c (dump_core): Made nonstatic. Added new
4350 parameter "limit_kind".
4351 (can_dump_core): Made nonstatic. Moved printing code to...
4352 (warn_cant_dump_core): New function.
4353 (can_dump_core_warn): Likewise.
4354 (internal_vproblem): Replace calls to can_dump_core with
4355 calls to can_dump_core_warn. Supply new argument to each.
4357 2014-06-19 Gary Benson <gbenson@redhat.com>
4359 * utils.h (demangler_vwarning): New declaration.
4360 (demangler_warning): Likewise.
4361 * utils.c (struct internal_problem)
4362 <user_settable_should_quit>: New field.
4363 <user_settable_should_dump_core>: Likewise
4364 (internal_error_problem): Add values for above new fields.
4365 (internal_warning_problem): Likewise.
4366 (demangler_warning_problem): New static global.
4367 (demangler_vwarning): New function.
4368 (demangler_warning): Likewise.
4369 (add_internal_problem_command): Selectively add commands.
4370 (_initialize_utils): New internal problem command.
4371 * maint.c (maintenance_demangler_warning): New function.
4372 (_initialize_maint_cmds): New command.
4374 2014-06-18 Tom Tromey <tromey@redhat.com>
4376 * f-valprint.c (info_common_command_for_block): Update.
4377 * symtab.h (struct general_symbol_info) <common_block>: Now
4380 2014-06-18 Tom Tromey <tromey@redhat.com>
4382 * symtab.h (struct symtab) <blockvector>: Now const.
4383 * ada-lang.c (ada_add_global_exceptions): Update.
4384 * buildsym.c (augment_type_symtab): Update.
4385 * dwarf2read.c (dw2_lookup_symbol): Update.
4386 * jit.c (finalize_symtab): Update.
4387 * jv-lang.c (add_class_symtab_symbol): Update.
4388 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4390 * objfiles.c (objfile_relocate1): Update.
4391 * psymtab.c (lookup_symbol_aux_psymtabs)
4392 (maintenance_check_psymtabs): Update.
4393 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4395 * spu-tdep.c (spu_catch_start): Update.
4396 * symmisc.c (dump_symtab_1): Update.
4397 * symtab.c (lookup_global_symbol_from_objfile)
4398 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4399 (basic_lookup_transparent_type_quick)
4400 (basic_lookup_transparent_type, find_pc_sect_symtab)
4401 (find_pc_sect_line, search_symbols): Update.
4402 * block.c (find_block_in_blockvector): Make "bl" const.
4403 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4405 (blockvector_contains_pc): Make "bv" const.
4406 (block_for_pc_sect): Update.
4407 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4408 (blockvector_contains_pc): Update.
4409 * breakpoint.c (resolve_sal_pc): Update.
4410 * inline-frame.c (block_starting_point_at): Update.
4412 2014-06-18 Tom Tromey <tromey@redhat.com>
4414 * completer.c (complete_line): Make "line_buffer" const.
4415 * completer.h (complete_line): Update.
4417 2014-06-18 Tom Tromey <tromey@redhat.com>
4419 * symtab.c (add_macro_name): Remove unneeded cast.
4421 2014-06-18 Tom Tromey <tromey@redhat.com>
4423 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4424 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4426 2014-06-18 Tom Tromey <tromey@redhat.com>
4428 * probe.c (info_probes_for_ops): Make "arg" const.
4429 * probe.h (info_probes_for_ops): Update.
4431 2014-06-18 Tom Tromey <tromey@redhat.com>
4433 * varobj.c (varobj_create): Update.
4434 * valops.c (value_of_this): Update.
4435 * tracepoint.c (add_local_symbols, scope_info): Update.
4436 * symtab.h (struct general_symbol_info) <block>: Now const.
4437 * symtab.c (skip_prologue_sal)
4438 (default_make_symbol_completion_list_break_on)
4439 (skip_prologue_using_sal): Update.
4440 * stack.h (iterate_over_block_locals)
4441 (iterate_over_block_local_vars): Update.
4442 * stack.c (print_frame_args): Update.
4443 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4445 (get_selected_block): Make return type const.
4446 * python/py-frame.c (frapy_block): Update.
4447 * python/py-block.c (gdbpy_block_for_pc): Update.
4448 * p-exp.y (%union) <bval>: Now const.
4449 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4450 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4451 * m2-exp.y (%union) <bval>: Now const.
4452 * linespec.c (get_current_search_block): Make return type const.
4453 (create_sals_line_offset, find_label_symbols): Update.
4454 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4456 (block_starting_point_at): Make "block" const.
4457 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4458 (check_exception_resume): Update.
4459 * guile/scm-frame.c (gdbscm_frame_block): Update.
4460 * guile/scm-block.c (gdbscm_lookup_block): Update.
4461 * frame.h (get_frame_block): Update.
4462 (get_selected_block): Make return type const.
4463 * frame.c (frame_id_inner): Update.
4464 * f-valprint.c (info_common_command_for_block)
4465 (info_common_command): Update.
4466 * dwarf2loc.c (dwarf2_find_location_expression)
4467 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4468 (locexpr_describe_location_piece): Update.
4469 * c-exp.y (%union) <bval>: Now const.
4470 * breakpoint.c (resolve_sal_pc): Update.
4471 * blockframe.c (get_frame_block):Make return type const.
4472 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4473 (block_innermost_frame): Update.
4474 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4475 (block_for_pc, block_for_pc_sect): Update.
4476 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4478 (block_for_pc_sect, block_for_pc): Make return type const.
4479 * ax-gdb.c (gen_expr): Update.
4480 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4481 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4482 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4483 (ada_read_var_value): Update.
4484 * ada-exp.y (struct name_info) <block>: Now const.
4486 (block_lookup): Constify.
4488 2014-06-18 Gary Benson <gbenson@redhat.com>
4490 * nat/i386-dregs.h: New file.
4491 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4492 * i386-nat.h (i386-dregs.h): New include.
4493 (DR_FIRSTADDR): Now in i386-dregs.h.
4494 (DR_LASTADDR): Likewise.
4495 (DR_NADDR): Likewise.
4496 (DR_STATUS): Likewise.
4497 (DR_CONTROL): Likewise.
4498 (i386_debug_reg_state): Likewise.
4499 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4501 2014-06-18 Don Breazeal <donb@codesourcery.com>
4503 * breakpoint.c (set_longjmp_breakpoint): Call
4504 momentary_breakpoint_from_master with additional argument.
4505 (set_longjmp_breakpoint_for_call_dummy): Call
4506 momentary_breakpoint_from_master with additional argument.
4507 (set_std_terminate_breakpoint): Call
4508 momentary_breakpoint_from_master with additional argument.
4509 (momentary_breakpoint_from_master): Add argument to function
4510 definition and use it to initialize structure member flag.
4511 (clone_momentary_breakpoint): Call
4512 momentary_breakpoint_from_master with additional argument.
4513 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4514 member flags set in momentary_breakpoint_from_master.
4516 2014-06-18 Gary Benson <gbenson@redhat.com>
4518 * i386-nat.c (i386_show_dr): Renamed to
4519 i386_dr_show and made nonstatic. All uses updated.
4520 (i386_length_and_rw_bits): Renamed to
4521 i386_dr_length_and_rw_bits and made nonstatic.
4523 (i386_insert_aligned_watchpoint): Renamed to
4524 i386_dr_insert_aligned_watchpoint and made nonstatic.
4526 (i386_remove_aligned_watchpoint): Renamed to
4527 i386_dr_remove_aligned_watchpoint and made nonstatic.
4529 (i386_update_inferior_debug_regs): Renamed to
4530 i386_dr_update_inferior_debug_regs and made nonstatic.
4533 2014-06-18 Gary Benson <gbenson@redhat.com>
4535 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4536 (i386_dr_low_can_set_control): Likewise.
4537 (i386_dr_low_set_addr): Likewise.
4538 (i386_dr_low_set_control): Likewise.
4539 (i386_dr_low_get_addr): Likewise.
4540 (i386_dr_low_get_status): Likewise.
4541 (i386_dr_low_get_control): Likewise.
4542 (i386_insert_aligned_watchpoint): Use new macros.
4543 (i386_update_inferior_debug_regs): Likewise.
4544 (i386_stopped_data_address): Likewise.
4546 2014-06-18 Gary Benson <gbenson@redhat.com>
4548 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4549 New parameter. All uses updated.
4551 2014-06-18 Gary Benson <gbenson@redhat.com>
4553 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4556 2014-06-18 Gary Benson <gbenson@redhat.com>
4558 * i386-nat.c (debug_printf): New macro.
4559 (i386_get_debug_register_length): Likewise.
4560 (TARGET_HAS_DR_LEN_8): Use above macro.
4561 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4562 and printf_unfiltered. Use phex to format values.
4564 2014-06-18 Gary Benson <gbenson@redhat.com>
4566 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4569 2014-06-18 Gary Benson <gbenson@redhat.com>
4571 * i386-nat.c: Comment changes.
4573 2014-06-18 Gary Benson <gbenson@redhat.com>
4575 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4577 2014-06-18 Gary Benson <gbenson@redhat.com>
4579 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4580 (i386_insert_aligned_watchpoint): Likewise.
4581 (i386_remove_aligned_watchpoint): Likewise.
4582 (i386_handle_nonaligned_watchpoint): Likewise.
4584 2014-06-18 Gary Benson <gbenson@redhat.com>
4586 * i386-nat.c: Whitespace changes.
4588 2014-06-17 Samuel Bronson <naesten@gmail.com>
4590 * MAINTAINERS: Update Roland McGrath's email address.
4591 Thanks to Sergio Durigan Junior for pointing out that he left
4592 Red Hat a while ago, and giving me a current address.
4594 2014-06-17 Tom Tromey <tromey@redhat.com>
4596 * utils.h (savestring): Remove declaration.
4598 2014-06-17 Tom Tromey <tromey@redhat.com>
4600 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4602 2014-06-16 Keith Seitz <keiths@redhat.com>
4605 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4606 to update the varobj if inferior_ptid is null_ptid.
4608 2014-06-16 Tom Tromey <tromey@redhat.com>
4610 * target.h (struct target_ops) <to_info_proc>: Make parameter
4612 (target_info_proc): Update.
4613 * target.c (target_info_proc): Make "args" const.
4614 * procfs.c (procfs_info_proc): Update.
4615 * linux-tdep.c (linux_info_proc): Update.
4616 (linux_core_info_proc_mappings): Make "args" const.
4617 (linux_core_info_proc): Update.
4618 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4619 * gdbarch.c: Rebuild.
4620 * gdbarch.h: Rebuild.
4621 * corelow.c (core_info_proc): Update.
4623 2014-06-16 Tom Tromey <tromey@redhat.com>
4625 * target.h (struct target_ops) <to_disconnect>: Make parameter
4627 (target_disconnect): Update.
4628 * target.c (target_disconnect): Make "args" const.
4629 * target-delegates.c: Rebuild.
4630 * remote.c (remote_disconnect): Update.
4631 * record.h (record_disconnect): Update.
4632 * record.c (record_disconnect): Update.
4633 * inf-child.c (inf_child_disconnect): Update.
4635 2014-06-16 Tom Tromey <tromey@redhat.com>
4637 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4638 * target.c (debug_to_rcmd, default_rcmd): Update.
4639 * target-delegates.c: Rebuild.
4640 * remote.c (remote_rcmd): Update.
4641 * monitor.c (monitor_rcmd): Update.
4643 2014-06-16 Pedro Alves <palves@redhat.com>
4645 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4646 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4647 have OBJF_SHARED set.
4648 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4649 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4650 instead of OBJF_USERLOADED.
4651 * objfiles.h (OBJF_SHARED): Update comment.
4652 (userloaded_objfile_contains_address_p): Rename to ...
4653 (shared_objfile_contains_address_p): ... this, and update
4655 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4657 (remove_symbol_file_command): Skip objfiles that don't have
4660 2014-06-16 Tom Tromey <tromey@redhat.com>
4662 * minsyms.h (prim_record_minimal_symbol)
4663 (prim_record_minimal_symbol_and_info): Update comments.
4665 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4667 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4668 or --without-guile, according to how GDB was built.
4670 2014-06-13 Tom Tromey <tromey@redhat.com>
4672 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4674 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4676 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4678 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4679 help_list.Pass all_commands, not -1, to help_list.
4680 * cli/cli-dump.c (dump_command, append_command)
4681 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4682 (binary_dump_command, binary_append_command): Pass all_commands,
4683 not -1, to help_list.
4684 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4686 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4688 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4690 * top.c (set_history): Pass all_commands, not -1, to help_list.
4691 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4692 all_commands, not -1, to help_list.
4693 * symfile.c (overlay_command): Pass all_commands, not -1, to
4695 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4697 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4699 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4701 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4702 not -1, to help_list.
4703 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4704 not -1, to help_list.
4705 * maint.c (maintenance_command, maintenance_info_command)
4706 (maintenance_print_command, maintenance_set_cmd): Pass
4707 all_commands, not -1, to help_list.
4708 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4710 * language.c (set_check): Pass all_commands, not -1, to help_list.
4711 * infcmd.c (unset_command): Pass all_commands, not -1, to
4713 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4715 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4717 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4719 * breakpoint.c (save_command): Pass all_commands, not -1, to
4721 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4722 all_commands, not -1, to help_list.
4724 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4726 * regcache.c (struct register_to_invalidate): New structure.
4727 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4729 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4731 2014-06-12 Yao Qi <yao@codesourcery.com>
4733 * varobj.c (varobj_get_num_children): Call
4734 varobj_is_dynamic_p.
4735 (varobj_list_children): Likewise.
4736 (varobj_update): Likewise. Update comments.
4738 2014-06-12 Yao Qi <yao@codesourcery.com>
4740 * varobj.c (varobj_pretty_printed_p): Rename to ...
4741 (varobj_is_dynamic_p): ... this. New function.
4742 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4743 (varobj_is_dynamic_p): Declare.
4744 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4745 (mi_print_value_p, varobj_update_one): Likewise.
4747 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4748 Yao Qi <yao@codesourcery.com>
4750 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4751 (varobj_get_iterator): Wrap up code for pretty-printer by
4752 "#if HAVE_PYTHON" and "#endif".
4753 (update_dynamic_varobj_children): Likewise.
4755 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4756 Yao Qi <yao@codesourcery.com>
4758 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4759 gdb_python_initialized is false. Move some code from varobj.c.
4760 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4761 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4762 (struct varobj_item): Moved to varobj-iter.h".
4763 (varobj_clear_saved_item): New function.
4764 (update_dynamic_varobj_children): Move python-related code to
4766 (free_variable): Call varobj_clear_saved_item and
4769 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4770 Yao Qi <yao@codesourcery.com>
4772 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4773 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4774 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4775 (py-varobj.o): New rule.
4776 * python/py-varobj.c: New file.
4777 * python/python-internal.h (py_varobj_get_iterator): Declare.
4778 * varobj-iter.h: New file.
4779 * varobj.c: Include "varobj-iter.h"
4780 (struct varobj) <child_iter>: Change its type from "PyObject *"
4781 to "struct varobj_iter *".
4782 <saved_item>: Likewise.
4783 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4784 [HAVE_PYTHON] (varobj_get_iterator): New function.
4785 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4786 python-specific code to python/py-varobj.c.
4787 (install_visualizer): Call varobj_iter_delete instead of
4789 * varobj.h (varobj_ensure_python_env): Declare.
4791 2014-06-12 Yao Qi <yao@codesourcery.com>
4793 * varobj.c (struct varobj_item): New structure.
4794 (create_child_with_value): Update declaration.
4795 (varobj_add_child): Replace arguments 'name' and 'value' with
4796 'item'. All callers updated.
4797 (install_dynamic_child): Likewise.
4798 (update_dynamic_varobj_children): Likewise.
4799 (varobj_add_child): Likewise.
4800 (create_child_with_value): Likewise.
4802 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4804 * NEWS: Create a new section for the next release branch.
4805 Rename the section of the current branch, now that it has
4808 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4810 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4811 * version.in: Bump version to 7.8.50.DATE-cvs.
4813 2014-06-11 Pedro Alves <palves@redhat.com>
4816 * ser-mingw.c (net_windows_socket_check_pending): New function.
4817 (net_windows_select_thread): Ignore spurious wakeups. Use
4818 net_windows_socket_check_pending.
4819 (net_windows_wait_handle): Check for pending events with
4820 ioctlsocket, through net_windows_socket_check_pending, instead of
4821 checking the socket's event.
4823 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4825 * python/python-internal.h (gdb_PyObject_GetAttrString)
4826 (gdb_PyObject_HasAttrString): New inline function definitions.
4827 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4828 char * of the second argument to PyObject_GetAttrString.
4830 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4832 * serial.c (serial_write): Fix index of character to be printed
4833 in call to serial_logchar when serial debug traces are enabled.
4835 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4837 * gdbtypes (resolve_dynamic_range): Add function description.
4839 2014-06-09 Pedro Alves <palves@redhat.com>
4841 * linux-nat.c (linux_child_follow_fork): Initialize status with
4842 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4843 inner block. Only pass the signal to PTRACE_DETACH if in pass
4846 2014-06-09 Gary Benson <gbenson@redhat.com>
4848 * common/signals.c (gdb_signal_from_host): Reorder to separate
4849 the always-available ANSI-standard signals from the signals that
4851 (do_gdb_signal_to_host): Likewise.
4852 * proc-events.c (signal_table): Likewise.
4854 2014-06-08 Hui Zhu <hui@codesourcery.com>
4856 * common/linux-ptrace.c (linux_disable_event_reporting): New
4858 * common/linux-ptrace.h (linux_disable_event_reporting): New
4860 * linux-nat.c (linux_child_follow_fork): Do a single step before
4863 2014-06-07 Keith Seitz <keiths@redhat.com>
4867 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4868 from symbol_matches_domain in symtab.c. All local callers
4869 of symbol_matches_domain updated.
4870 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4871 search STRUCT_DOMAIN.
4872 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4873 independently. standard_lookup will do that automatically.
4874 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4875 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4876 (cp_lookup_symbol_in_namespace): Likewise.
4877 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4878 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4879 may return a STRUCT_DOMAIN match.
4880 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4881 * cp-support.c: Include language.h.
4882 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4884 * psymtab.c (match_partial_symbol): Compare the requested
4885 domain with the symbol's domain directly.
4886 (lookup_partial_symbol): Likewise.
4887 * symtab.c (lookup_symbol_in_language): Explain when/why
4888 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4889 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4890 appropriate languages.
4891 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4892 and moved to ada-lang.c
4893 (lookup_block_symbol): Explain that this function only returns
4894 symbol matching the requested DOMAIN.
4895 Compare the requested domain with the symbol's domain directly.
4896 (iterate_over_symbols): Compare the requested domain with the
4897 symbol's domain directly.
4898 * symtab.h (symbol_matches_domain): Remove.
4900 2014-06-06 Doug Evans <xdje42@gmail.com>
4902 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4903 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4904 (gdbscm_guile_version_is_at_least): Declare.
4905 (gdbscm_scm_string_to_int): Declare.
4906 * guile/guile.c (gdbscm_guile_major_version): New global.
4907 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4908 (guile_datadir): New static global.
4909 (gdbscm_guile_data_directory): New function.
4910 (initialize_scheme_side): Update.
4911 (misc_guile_functions): Add guile-data-directory.
4912 (initialize_gdb_module): Fetch guile version number.
4913 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4914 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4915 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4916 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4918 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4919 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4920 * guile/scm-value.c (gdbscm_value_to_string): Only call
4921 scm_port_conversion_strategy if Guile version >= 2.0.6.
4923 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4925 * main.c (print_gdb_help): Add -q and --silent.
4927 2014-06-06 Gary Benson <gbenson@redhat.com>
4929 * common/signals.c: Remove preprocessor conditionals for
4930 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4931 SIGSEGV and SIGTERM.
4932 * proc-events.c: Likewise.
4934 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4936 * symfile.c (symfile_free_objfile): Remove restriction to
4938 * symfile-mem.c (symbol_file_add_from_memory): Call
4939 add_target_sections_of_objfile.
4941 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4943 * guile/scm-value.c (gdbscm_history_append_x): Use
4944 'vlscm_get_value_smob_arg_unsafe' instead of
4945 'vlscm_scm_to_value'.
4947 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4950 * utils.c (printchar): Don't escape at all if quoter is NUL.
4951 Update function documentation to clarify effect of parameter
4953 * remote.c (escape_buffer): Pass '\\' as the quoter to
4954 fputstrn_unfiltered.
4955 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4956 generate the output.
4957 (mi_solib_unloaded): Same.
4959 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4961 * development.sh: Delete.
4962 * Makefile.in (config.status): Adjust dependency on development.sh.
4963 * configure.ac: Adjust development.sh source call.
4964 * configure: Regenerate.
4966 2014-06-04 Doug Evans <xdje42@gmail.com>
4968 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4969 is_scheme_bkpt, spec.
4970 (bpscm_make_breakpoint_smob): Initialize new members.
4971 (gdbscm_create_breakpoint_x): Split into two ...
4972 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4973 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4974 (scheme_function breakpoint_functions): Update.
4975 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4976 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4977 register-breakpoint!.
4979 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4982 * mem-break.c (z_type_supported): Return zero if
4983 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4985 2014-06-04 Tom Tromey <tromey@redhat.com>
4987 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4988 value_from_contents_and_address_unresolved.
4989 (ada_template_to_fixed_record_type_1): Likewise.
4990 (ada_which_variant_applies): Likewise.
4991 * value.h (value_from_contents_and_address_unresolved): Declare.
4992 * value.c (value_from_contents_and_address_unresolved): New
4994 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4995 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4996 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4998 2014-06-04 Tom Tromey <tromey@redhat.com>
5000 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5002 2014-06-04 Tom Tromey <tromey@redhat.com>
5004 * procfs.c (procfs_attach): Make "args" const.
5005 * windows-nat.c (windows_attach): Make "args" const.
5006 * nto-procfs.c (procfs_attach): Make "args" const.
5007 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5008 * go32-nat.c (go32_attach): Make "args" const.
5009 * gnu-nat.c (gnu_attach): Make "args" const.
5010 * darwin-nat.c (darwin_attach): Make "args" const.
5011 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5012 * linux-nat.c (linux_nat_attach): Make "args" const.
5013 * remote.c (extended_remote_attach_1, extended_remote_attach):
5015 * target.h (struct target_ops) <to_attach>: Make "args" const.
5016 (find_default_attach): Likewise.
5017 * utils.c (parse_pid_to_attach): Make "args" const.
5018 * utils.h (parse_pid_to_attach): Update.
5020 2014-06-04 Tom Tromey <tromey@redhat.com>
5022 * target-delegates.c: Rebuild.
5023 * target.c (default_thread_address_space): New function.
5024 (target_thread_address_space): Simplify.
5025 * target.h (struct target_ops) <to_thread_address_space>: Add
5026 TARGET_DEFAULT_FUNC.
5028 2014-06-04 Doug Evans <xdje42@gmail.com>
5030 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5032 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5034 * record-btrace.c: Include event-loop.h and inf-loop.h.
5035 (record_btrace_resume_exec_dir)
5036 (record_btrace_async_inferior_event_handler)
5037 (record_btrace_handle_async_inferior_event): New.
5038 (record_btrace_open): Create async event handler.
5039 (record_btrace_close): Delete async event handler.
5040 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5041 Mark async event handler.
5042 (record_btrace_execution_direction): New.
5043 (init_record_btrace_ops): Initialize to_execution_direction.
5045 2014-06-03 Doug Evans <xdje42@gmail.com>
5047 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5048 (gdbscm_make_parameter): Ditto.
5050 2014-06-03 Doug Evans <dje@google.com>
5052 * exec.c (exec_close_1): Call clear_section_table instead of
5053 resize_section_table.
5054 (clear_section_table): New function.
5055 (resize_section_table): Make static. Rename arg num_added to
5057 * exec.h (clear_section_table): Declare.
5058 (resize_section_table): Delete.
5059 * progspace.c (release_program_space): Call clear_section_table
5060 instead of resize_section_table.
5062 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5064 * NEWS (Python Scripting): Add entry about the new xmethods
5067 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5069 * python/py-xmethods.c: New file.
5070 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5071 (objfpy_dealloc): XDECREF on the new xmethods field.
5072 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5074 (objfpy_get_xmethods): New function.
5075 (objfile_getset): New entry 'xmethods'.
5076 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5077 (pspy_dealloc): XDECREF on the new xmethods field.
5078 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5080 (pspy_get_xmethods): New function.
5081 (pspace_getset): New entry 'xmethods'.
5082 * python/python-internal.h: Add declarations for new functions.
5083 * python/python.c (_initialize_python): Invoke
5084 gdbpy_initialize_xmethods.
5085 * python/lib/gdb/__init__.py (xmethods): New
5087 * python/lib/gdb/xmethod.py: New file.
5088 * python/lib/gdb/command/xmethods.py: New file.
5090 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5092 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5093 best match method returned by find_overload_match is an xmethod.
5094 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5095 the best matching operator returned by find_overload_match is an
5097 * valops.c: #include "extension.h".
5098 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5099 Return void. The list of matching source methods is returned in
5100 "fn_list" and a vector of matching debug method workers is
5101 returned in "xm_worker_vec". Update all callers.
5102 (value_find_oload_method_list): Likewise.
5103 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5104 non-NULL, then the index of the best matching method in this
5105 vector is returned. Update all callers.
5106 (find_overload_match): Include xmethods while performing overload
5109 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5111 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5112 * extension-priv.h (struct extension_language_ops): Add the
5114 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5115 get_matching_xmethod_workers, get_xmethod_argtypes,
5116 invoke_xmethod, free_xmethod_worker,
5117 free_xmethod_worker_vec): New functions.
5118 * extension.h: #include "common/vec.h".
5119 New function declarations.
5120 (struct xmethod_worker): New struct.
5121 (VEC (xmethod_worker_ptr)): New vector type.
5122 (xmethod_worker_ptr): New typedef.
5123 (xmethod_worker_vec): Likewise.
5124 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5126 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5127 (struct builtin_type): New field "xmethod".
5128 * valarith.c (value_ptradd): Assert that the value argument is not
5130 * valops.c (value_must_coerce_to_target): Return 0 for
5131 lval_xcallable values.
5132 * value.c (struct value): New field XM_WORKER in the field
5134 (value_address, value_raw_address): Return 0 for lval_xcallable
5136 (set_value_address): Assert that the value is not an
5138 (value_free): Free the associated xmethod worker when freeing
5139 lval_xcallable values.
5140 (set_value_component_location): Assert that the WHOLE value is not
5142 (value_of_xmethod, call_xmethod): New functions.
5143 * value.h: Declare "struct xmethod_worker".
5144 Declare new functions value_of_xmethod, call_xmethod.
5146 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5147 Pedro Alves <palves@redhat.com>
5149 PR breakpoints/17000
5150 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5151 New function, extracted from software_breakpoint_inserted_here_p.
5152 (software_breakpoint_inserted_here_p): Replace factored out code
5153 by call to find_non_raw_software_breakpoint_inserted_here.
5154 (bp_target_info_copy_insertion_state): New function.
5155 (bkpt_insert_location): Handle the case of a single-step
5156 breakpoint already inserted at the same address.
5157 (bkpt_remove_location): Handle the case of a single-step
5158 breakpoint still inserted at the same address.
5159 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5160 breakpoint already inserted at the same address.
5161 (deprecated_remove_raw_breakpoint): Handle the case of a
5162 non-raw breakpoint still inserted at the same address.
5163 (find_single_step_breakpoint): New function, extracted from
5164 single_step_breakpoint_inserted_here_p.
5165 (find_single_step_breakpoint): New function,
5166 factored out from single_step_breakpoint_inserted_here_p.
5167 (single_step_breakpoint_inserted_here_p): Reimplement.
5169 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5171 Pushed by Joel Brobecker <brobecker@adacore.com>
5172 * source.c (show_substitute_path_command): Fix display of matching
5175 2014-06-03 Gary Benson <gbenson@redhat.com>
5177 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5179 2014-06-02 Doug Evans <xdje42@gmail.com>
5181 Add parameter support for Guile.
5182 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5183 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5184 (scm-param.o): New rule.
5185 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5186 (gdbscm_misc_error): Declare.
5187 (gdbscm_canonicalize_command_name): Declare.
5188 (gdbscm_scm_to_host_string): Declare.
5189 (gdbscm_scm_from_host_string): Declare.
5190 (gdbscm_initialize_parameters): Declare.
5191 * guile/guile.c (initialize_gdb_module): Call
5192 gdbscm_initialize_parameters.
5193 * guile/lib/gdb.scm: Export parameter symbols.
5194 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5195 cmdscm_canonicalize_name and made public. All callers updated.
5196 * guile/scm-exception.c (gdbscm_misc_error): New function.
5197 * guile/scm-param.c: New file.
5198 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5199 (gdbscm_scm_to_host_string): New function.
5200 (gdbscm_scm_from_host_string): New function.
5201 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5203 2014-06-02 Doug Evans <xdje42@gmail.com>
5205 Add command support for Guile.
5206 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5207 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5208 (scm-cmd.o): New rule.
5209 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5210 (gdbscm_user_error_p): Declare.
5211 (gdbscm_parse_command_name): Declare.
5212 (gdbscm_valid_command_class_p): Declare.
5213 (gdbscm_initialize_commands): Declare.
5214 * guile/guile.c (initialize_gdb_module): Call
5215 gdbscm_initialize_commands.
5216 * guile/lib/gdb.scm: Export command symbols.
5217 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5218 (throw-user-error): New function.
5219 * guile/scm-cmd.c: New file.
5220 * guile/scm-exception.c (user_error_symbol): New static global.
5221 (gdbscm_user_error_p): New function.
5222 (gdbscm_initialize_exceptions): Set user_error_symbol.
5223 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5225 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5227 * top.c (command_loop): Handle comments here...
5228 (command_line_input): ... not here.
5230 2014-06-02 Doug Evans <xdje42@gmail.com>
5232 Add progspace support for Guile.
5233 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5234 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5235 (scm-progspace.o): New rule.
5236 * guile/guile-internal.h (pspace_smob): New typedef.
5237 (psscm_pspace_smob_pretty_printers): Declare.
5238 (psscm_pspace_smob_from_pspace): Declare.
5239 (psscm_scm_from_pspace): Declare.
5240 * guile/guile.c (initialize_gdb_module): Call
5241 gdbscm_initialize_pspaces.
5242 * guile/lib/gdb.scm: Export progspace symbols.
5243 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5245 (append-pretty-printer!): Ditto.
5246 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5248 * guile/scm-progspace.c: New file.
5250 2014-06-03 Alan Modra <amodra@gmail.com>
5252 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5253 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5255 2014-06-02 Doug Evans <dje@google.com>
5257 Add support for skeletonless type units.
5258 * dwarf2read.c (struct dwarf2_per_objfile): New member
5259 n_allocated_type_units.
5260 (struct dwarf2_per_objfile) <tu_stats>: New member
5261 nr_all_type_units_reallocs.
5262 (create_signatured_type_table_from_index): Initialize
5263 n_allocated_type_units
5264 (create_all_type_units): Ditto.
5265 (add_type_unit): Move up in file. New arg slot.
5266 All callers updated. Increase space for all_type_units more
5268 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5269 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5270 (lookup_dwp_signatured_type): Ditto.
5271 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5272 All callers updated.
5273 (build_type_psymtabs_1): Leave type_unit_groups as
5274 NULL if no TUs present.
5275 (print_tu_stats): New function.
5276 (process_skeletonless_type_unit): New function.
5277 (process_dwo_file_for_skeletonless_type_units): New
5279 (process_skeletonless_type_units): New function.
5280 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5281 Call print tu_stats if debugging enabled.
5283 2014-06-02 Pedro Alves <palves@redhat.com>
5285 * breakpoint.c (build_target_command_list): Don't build a command
5286 list if we have any duplicate location that isn't a dprintf.
5288 2014-06-02 Pedro Alves <palves@redhat.com>
5290 * breakpoint.c (dprintf_breakpoint_hit): New function.
5291 (initialize_breakpoint_ops): Install it as dprintf's
5292 breakpoint_hit method.
5294 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5296 * source.c (substitute_path_rule_matches): Simplify using
5297 filename_ncmp instead of FILENAME_CMP.
5299 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5301 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5303 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5305 * configure.ac: When Guile is available, check for the
5306 availability of 'scm_new_smob'.
5307 * configure, config.h.in: Regenerate.
5308 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5311 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5313 * frame.c (struct frame_info): Add stop_string field.
5314 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5315 (get_prev_frame_always): Old content moved into
5316 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5317 TRY_CATCH, handle MEMORY_ERROR exceptions.
5318 (frame_stop_reason_string): New function definition.
5319 * frame.h (unwind_stop_reason_to_string): Extend comment to
5320 mention frame_stop_reason_string.
5321 (frame_stop_reason_string): New function declaration.
5322 * stack.c (frame_info): Switch to frame_stop_reason_string.
5323 (backtrace_command_1): Switch to frame_stop_reason_string.
5324 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5325 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5326 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5328 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5330 * frame.c (frame_stop_reason_string): Rename to ...
5331 (unwind_stop_reason_to_string): this.
5332 * frame.h (frame_stop_reason_string): Rename to ...
5333 (unwind_stop_reason_to_string): this.
5334 * stack.c (frame_info): Update call to frame_stop_reason_string.
5335 (backtrace_command_1): Likewise.
5336 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5337 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5339 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5341 * frame.c (remove_prev_frame): New function.
5342 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5345 2014-05-29 Pedro Alves <palves@redhat.com>
5347 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5348 and make it const. When a single-step decays to a continue,
5349 clear 'step', not 'hw_step'. Pass whether the caller wanted
5350 to step to user_visible_resume_ptid, not what we ask the
5353 2014-05-29 Pedro Alves <palves@redhat.com>
5355 * infrun.c (process_event_stop_test, handle_step_into_function)
5356 (handle_step_into_function_backward): Adjust.
5357 Don't set the even thread's stop_step and call stop_waiting before
5358 calling end_stepping_range. Instead do that ...
5359 (end_stepping_range): ... here. Take an ecs pointer parameter.
5361 2014-05-29 Pedro Alves <palves@redhat.com>
5363 * infrun.c (stop_stepping): Rename to ...
5364 (stop_waiting): ... this.
5365 (proceed): Update comment.
5366 (process_event_stop_test, handle_inferior_event)
5367 (handle_signal_stop, handle_step_into_function)
5368 (handle_step_into_function_backward): Update.
5370 2014-05-29 Pedro Alves <palves@redhat.com>
5372 * infcall.c (run_inferior_call): Don't check whether the current
5373 thread is running after the proceed call.
5375 2014-05-29 Pedro Alves <palves@redhat.com>
5376 Tom Tromey <tromey@redhat.com>
5378 * NEWS: Mention "maint set target-async", "set mi-async", and that
5379 background execution commands are now always available.
5380 * target.h (target_async_permitted): Update comment.
5381 * target.c (target_async_permitted, target_async_permitted_1):
5383 (set_target_async_command): Rename to ...
5384 (maint_set_target_async_command): ... this.
5385 (show_target_async_command): Rename to ...
5386 (maint_show_target_async_command): ... this.
5387 (_initialize_target): Adjust.
5388 * infcmd.c (prepare_execution_command): Make extern.
5389 * inferior.h (prepare_execution_command): Declare.
5390 * infrun.c (set_observer_mode): Leave target async alone.
5391 * mi/mi-interp.c (mi_interpreter_init): Install
5392 mi_on_sync_execution_done as sync_execution_done observer.
5393 (mi_on_sync_execution_done): New function.
5394 (mi_execute_command_input_handler): Don't print the prompt if we
5395 just started a synchronous command with an async target.
5396 (mi_on_resume): Check sync_execution before printing prompt.
5397 * mi/mi-main.h (mi_async_p): Declare.
5398 * mi/mi-main.c: Include gdbcmd.h.
5399 (mi_async_p): New function.
5400 (mi_async, mi_async_1): New globals.
5401 (set_mi_async_command, show_mi_async_command, mi_async): New
5403 (exec_continue): Call prepare_execution_command.
5404 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5405 (mi_execute_async_cli_command): Use mi_async_p.
5406 (_initialize_mi_main): Install "set mi-async". Make
5407 "target-async" a deprecated alias.
5409 2014-05-29 Pedro Alves <palves@redhat.com>
5411 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5412 (_initialize_cli_interp): Adjust.
5413 * event-loop.c: Include "observer.h".
5414 (start_event_loop): Notify 'command_error' observers instead of
5415 calling display_gdb_prompt. Remove FIXME comment.
5416 * event-top.c (display_gdb_prompt): Remove call into the
5418 * inf-loop.c: Include "observer.h".
5419 (inferior_event_handler): Notify 'command_error' observers instead
5420 of calling display_gdb_prompt.
5421 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5422 observers instead of calling display_gdb_prompt.
5423 * interps.c (interp_set): Don't call display_gdb_prompt.
5424 (current_interp_display_prompt_p): Delete.
5425 * interps.h (interp_prompt_p): Delete declaration.
5426 (interp_prompt_p_ftype): Delete.
5427 (struct interp_procs) <prompt_proc_p>: Delete field.
5428 (current_interp_display_prompt_p): Delete declaration.
5429 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5430 (_initialize_mi_interp): Adjust.
5431 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5432 'command_error' observers.
5433 (tui_on_sync_execution_done, tui_on_command_error): New
5435 (tui_display_prompt_p): Delete.
5436 (_initialize_tui_interp): Adjust.
5438 2014-05-29 Pedro Alves <palves@redhat.com>
5441 * cli/cli-interp.c: Include infrun.h and observer.h.
5442 (cli_uiout, cli_interp): New globals.
5443 (cli_on_signal_received, cli_on_end_stepping_range)
5444 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5446 (cli_interpreter_init): Install them as 'end_stepping_range',
5447 'signal_received' 'signal_exited', 'exited' and 'no_history'
5449 (_initialize_cli_interp): Remove cli_interp local.
5450 * infrun.c (handle_inferior_event): Call the several stop reason
5451 observers instead of printing the stop reason directly.
5452 (end_stepping_range): New function.
5453 (print_end_stepping_range_reason, print_signal_exited_reason)
5454 (print_exited_reason, print_signal_received_reason)
5455 (print_no_history_reason): Make static, and add an uiout
5456 parameter. Print to that instead of to CURRENT_UIOUT.
5457 * infrun.h (print_end_stepping_range_reason)
5458 (print_signal_exited_reason, print_exited_reason)
5459 (print_signal_received_reason print_no_history_reason): New
5461 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5463 <cli_uiout>: New field.
5464 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5465 uiout for CLI output. Install 'signal_received',
5466 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5468 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5469 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5470 (mi_on_no_history): New functions.
5471 (ui_out_free_cleanup): Delete function.
5472 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5473 instead use the one already stored in the MI interpreter data.
5474 (mi_ui_out): Adjust.
5475 * tui/tui-interp.c: Include infrun.h and observer.h.
5476 (tui_interp): New global.
5477 (tui_on_signal_received, tui_on_end_stepping_range)
5478 (tui_on_signal_exited, tui_on_exited)
5479 (tui_on_no_history): New functions.
5480 (tui_init): Install them as 'end_stepping_range',
5481 'signal_received' 'signal_exited', 'exited' and 'no_history'
5483 (_initialize_tui_interp): Delete tui_interp local.
5485 2014-05-29 Pedro Alves <palves@redhat.com>
5488 * linux-nat.c (linux_nat_resume_callback): Rename the second
5489 parameter to 'except'. Skip LP if it points to EXCEPT.
5490 (linux_nat_resume): Don't mark the event lwp as not stopped
5491 before resuming sibling lwps. Instead ask
5492 linux_nat_resume_callback to skip the event lwp. Mark it as not
5493 stopped after actually resuming it.
5494 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5496 (wait_lwp): Mark the lwp as stopped here.
5497 (stop_wait_callback): Mark the lwp as not stopped right after
5498 resuming it. Don't mark lwps as stopped here.
5499 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5500 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5502 2014-05-29 Pedro Alves <palves@redhat.com>
5505 * infrun.c (resume): Determine how much to resume depending on
5506 whether the caller wanted a step, not whether we can hardware step
5507 the target. Mark all threads that we intend to run as running,
5508 unless we're calling an inferior function.
5509 (normal_stop): If the thread is running an infcall, don't finish
5511 * target.c (target_resume): Don't mark threads as running here.
5513 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5515 * serial.c (_initialize_serial): Remove support for
5516 the "set remotebaud" and "show remotebaud" commands.
5517 * NEWS: Add entry documenting the removal of that command.
5519 2014-05-28 Yao Qi <yao@codesourcery.com>
5521 * charset.c: Fix typo in comments.
5523 2014-05-27 Gary Benson <gbenson@redhat.com>
5525 * utils.c (internal_vproblem): Prompt for a bug report.
5527 2014-05-26 Andy Wingo <wingo@igalia.com>
5529 * guile/scm-arch.c (arscm_mark_arch_smob):
5530 * guile/scm-block.c (bkscm_mark_block_smob)
5531 (bkscm_mark_block_syms_progress_smob):
5532 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5533 * guile/scm-exception.c (exscm_mark_exception_smob):
5534 * guile/scm-frame.c (frscm_mark_frame_smob):
5535 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5536 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5537 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5538 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5539 (ppscm_mark_pretty_printer_worker_smob):
5540 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5541 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5542 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5543 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5545 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5548 2014-05-26 Andy Wingo <wingo@igalia.com>
5549 Doug Evans <xdje42@gmail.com>
5551 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5552 empty_base_class. All uses updated.
5553 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5554 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5556 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5557 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5558 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5559 (gdbscm_gsmob_has_property_p, add_property_name)
5560 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5561 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5562 (gdb-object-has-property?, gdb-object-properties): Remove.
5563 (gdb-object-kind): Renamed from gsmob-kind.
5565 2014-05-26 Andy Wingo <wingo@igalia.com>
5567 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5568 * configure: Regenerate.
5570 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5572 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5574 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5576 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5577 (replay_memory_access_read_only, replay_memory_access_read_write)
5578 (replay_memory_access_types, replay_memory_access)
5579 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5580 (cmd_set_record_btrace, cmd_show_record_btrace)
5581 (cmd_show_replay_memory_access): New.
5582 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5583 (record_btrace_remove_breakpoint): Replace
5584 record_btrace_allow_memory_access with replay_memory_access.
5585 (_initialize_record_btrace): Add commands.
5586 * NEWS: Announce it.
5588 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5590 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5592 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5594 * MAINTAINERS (Write After Approval): Move self back from
5597 2014-05-22 Pedro Alves <palves@redhat.com>
5599 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5600 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5601 (disable_randomization, enum exec_direction_kind)
5602 (execution_direction, stop_registers, start_remote)
5603 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5604 (wait_for_inferior, normal_stop, get_last_target_status)
5605 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5606 (insert_step_resume_breakpoint_at_sal)
5607 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5608 (set_step_info, print_stop_event, signal_stop_state)
5609 (signal_print_state, signal_pass_state, signal_stop_update)
5610 (signal_print_update, signal_pass_update)
5611 (update_signals_program_target, clear_exit_convenience_vars)
5612 (displaced_step_dump_bytes, update_observer_mode)
5613 (signal_catch_update, gdb_signal_from_command): Move
5615 * infrun.h: ... to this new file.
5616 * amd64-tdep.c: Include infrun.h.
5617 * annotate.c: Include infrun.h.
5618 * arch-utils.c: Include infrun.h.
5619 * arm-linux-tdep.c: Include infrun.h.
5620 * arm-tdep.c: Include infrun.h.
5621 * break-catch-sig.c: Include infrun.h.
5622 * breakpoint.c: Include infrun.h.
5623 * common/agent.c: Include infrun.h instead of inferior.h.
5624 * corelow.c: Include infrun.h.
5625 * event-top.c: Include infrun.h.
5626 * go32-nat.c: Include infrun.h.
5627 * i386-tdep.c: Include infrun.h.
5628 * inf-loop.c: Include infrun.h.
5629 * infcall.c: Include infrun.h.
5630 * infcmd.c: Include infrun.h.
5631 * infrun.c: Include infrun.h.
5632 * linux-fork.c: Include infrun.h.
5633 * linux-nat.c: Include infrun.h.
5634 * linux-thread-db.c: Include infrun.h.
5635 * monitor.c: Include infrun.h.
5636 * nto-tdep.c: Include infrun.h.
5637 * procfs.c: Include infrun.h.
5638 * record-btrace.c: Include infrun.h.
5639 * record-full.c: Include infrun.h.
5640 * remote-m32r-sdi.c: Include infrun.h.
5641 * remote-mips.c: Include infrun.h.
5642 * remote-notif.c: Include infrun.h.
5643 * remote-sim.c: Include infrun.h.
5644 * remote.c: Include infrun.h.
5645 * reverse.c: Include infrun.h.
5646 * rs6000-tdep.c: Include infrun.h.
5647 * s390-linux-tdep.c: Include infrun.h.
5648 * solib-irix.c: Include infrun.h.
5649 * solib-osf.c: Include infrun.h.
5650 * solib-svr4.c: Include infrun.h.
5651 * target.c: Include infrun.h.
5652 * top.c: Include infrun.h.
5653 * windows-nat.c: Include infrun.h.
5654 * mi/mi-interp.c: Include infrun.h.
5655 * mi/mi-main.c: Include infrun.h.
5656 * python/py-threadevent.c: Include infrun.h.
5658 2014-05-22 Pedro Alves <palves@redhat.com>
5660 * infrun.c (handle_inferior_event): Store the exit code for
5661 --return-child-result here, instead of ...
5662 (print_exited_reason): ... here.
5664 2014-05-21 Pedro Alves <palves@redhat.com>
5667 * gdbthread.h (struct thread_control_state): New field
5669 * infrun.c (follow_fork): Copy the new thread control field to the
5671 (clear_proceed_status_thread): Clear the new thread control field.
5672 (proceed): Set the new thread control field.
5673 * interps.h (command_interp): Declare.
5674 * interps.c (command_interpreter): New global.
5675 (command_interp): New function.
5676 (interp_exec): Set `command_interpreter' while here.
5677 * cli-out.c (cli_uiout_dtor): New function.
5678 (cli_ui_out_impl): Install it.
5679 * mi/mi-interp.c: Include cli-out.h.
5680 (mi_cmd_interpreter_exec): Add comment.
5681 (restore_current_uiout_cleanup): New function.
5682 (ui_out_free_cleanup): New function.
5683 (mi_on_normal_stop): If finishing an execution command started by
5684 a CLI command, or any kind of breakpoint-like event triggered,
5685 print the stop event to the output (CLI) stream.
5686 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5688 2014-05-21 Pedro Alves <palves@redhat.com>
5690 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5691 current source line having changed.
5692 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5693 * infrun.c (normal_stop): Adjust call to
5694 set_current_sal_from_frame.
5695 * source.c (clear_lines_listed_range): New function.
5696 (set_current_source_symtab_and_line, identify_source_line): Clear
5697 the lines listed range.
5698 (line_info): Handle the first "info line" after the current source
5699 line having changed.
5700 * stack.c (print_stack_frame): Remove center handling.
5701 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5704 2014-05-21 Pedro Alves <palves@redhat.com>
5706 * inf-child.c (inf_child_mourn_inferior): New function.
5707 * inf-child.h (inf_child_mourn_inferior): New declaration.
5708 * darwin-nat.c (darwin_mourn_inferior): Use
5709 inf_child_mourn_inferior.
5710 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5711 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5712 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5713 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5714 * windows-nat.c (windows_mourn_inferior): Likewise.
5716 2014-05-21 Doug Evans <xdje42@gmail.com>
5718 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5720 2014-05-21 Doug Evans <xdje42@gmail.com>
5722 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5723 (gdbscm_out_of_range_error): Ditto.
5724 (gdbscm_memory_error): Ditto.
5725 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5726 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5727 (gdbscm_out_of_range_error): Update.
5728 (gdbscm_memory_error): Update.
5729 (gdbscm_scm_to_target_string_unsafe): Delete.
5731 2014-05-21 Pedro Alves <palves@redhat.com>
5733 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5735 (inf_child_open_target): New function.
5736 (inf_child_open): Use inf_child_open_target to push the target
5737 instead of erroring out.
5738 (inf_child_disconnect, inf_child_close)
5739 (inf_child_maybe_unpush_target): New functions.
5740 (inf_child_target): Install inf_child_disconnect and
5741 inf_child_close. Store a pointer to the returned object.
5742 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5744 * target.c (auto_connect_native_target): New global.
5745 (show_default_run_target): New function.
5746 (find_default_run_target): Return NULL if automatically connecting
5747 to the native target is disabled.
5748 (_initialize_target): Install set/show auto-connect-native-target.
5749 * NEWS: Mention "set auto-connect-native-target", and "target
5751 * linux-nat.c (super_close): New global.
5752 (linux_nat_close): Call super_close.
5753 (linux_nat_add_target): Store a pointer to the base class's
5755 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5756 inf_child_maybe_unpush.
5757 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5759 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5760 the inferior. Use inf_child_maybe_unpush_target.
5761 (inf_ttrace_attach): Don't push the target if it is already
5763 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5764 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5765 after mourning the inferior. Use inf_child_maybe_unpush_target.
5766 (darwin_attach_pid): Don't push the target if it is already
5768 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5769 mourning the inferior. Use inf_child_maybe_unpush_target.
5770 (gnu_detach): Use inf_child_maybe_unpush_target.
5771 * go32-nat.c (go32_create_inferior): Don't push the target if it
5773 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5774 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5775 (procfs_open): Rename to ...
5776 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5777 comments. Can target_preopen before changing node. Call
5778 inf_child_open_target to push the target explicitly.
5779 (procfs_attach): Don't push the target if it is already pushed.
5780 (procfs_detach): Use inf_child_maybe_unpush_target.
5781 (procfs_create_inferior): Don't push the target if it is already
5783 (nto_native_ops): New global.
5784 (procfs_open): Reimplement.
5785 (procfs_native_open): New function.
5786 (init_procfs_targets): Install procfs_native_open as to_open of
5787 "target native". Store a pointer to the "native" target in
5789 * procfs.c (procfs_attach): Don't push the target if it is already
5791 (procfs_detach): Use inf_child_maybe_unpush_target.
5792 (procfs_mourn_inferior): Only unpush the target after mourning the
5793 inferior. Use inf_child_maybe_unpush_target.
5794 (procfs_init_inferior): Don't push the target if it is already
5796 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5797 if it is already pushed.
5799 2014-05-21 Pedro Alves <palves@redhat.com>
5801 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5802 and "procfs" targets are now called "native" instead.
5804 2014-05-21 Pedro Alves <palves@redhat.com>
5806 * go32-nat.c (go32_open): Delete.
5807 (go32_target): Don't override the to_open method.
5809 2014-05-21 Pedro Alves <palves@redhat.com>
5811 * nto-procfs.c (procfs_can_run): New function.
5812 (nto_procfs_ops): New global.
5813 (init_procfs_targets): New, based on procfs_target. Install
5814 "target native" in addition to "target procfs".
5815 (_initialize_procfs): Call init_procfs_targets instead of adding
5818 2014-05-21 Pedro Alves <palves@redhat.com>
5820 * windows-nat.c (windows_target): Don't override to_shortname,
5821 to_longname or to_doc.
5823 2014-05-21 Pedro Alves <palves@redhat.com>
5825 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5828 2014-05-21 Pedro Alves <palves@redhat.com>
5830 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5831 to_shortname, to_longname or to_doc.
5833 2014-05-21 Pedro Alves <palves@redhat.com>
5835 * go32-nat.c (go32_target): Don't override to_shortname,
5836 to_longname or to_doc.
5838 2014-05-21 Pedro Alves <palves@redhat.com>
5840 * inf-child.c (inf_child_open): Remove mention of "child".
5841 (inf_child_target): Rename target to "native" instead of "child".
5843 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5845 * Makefile.in (SFILES): Delete "regset.c".
5846 (COMMON_OBS): Delete "regset.o".
5848 * regset.h (regset_alloc): Delete prototype.
5850 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5852 * sparc-linux-tdep.c (sparc32_linux_gregset)
5853 (sparc32_linux_fpregset): New static regset structures.
5854 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5855 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5857 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5858 (sparc64_linux_fpregset): New static regset structures.
5859 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5860 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5861 New static regset structures.
5862 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5863 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5864 New static regset structures.
5865 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5866 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5867 New static regset structures.
5868 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5869 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5870 New static regset structures.
5871 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5873 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5875 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5876 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5877 register maps ("regmaps") from "*regset" to "*regmap". Do this
5878 for all regmap types and variables.
5879 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5880 (sparc32_linux_supply_core_gregset)
5881 (sparc32_linux_collect_core_gregset)
5882 (sparc32_linux_supply_core_fpregset)
5883 (sparc32_linux_collect_core_fpregset): Likewise.
5884 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5885 (sparc_gregmap, sparc_fpregmap): ... these.
5886 (sparc_supply_gregset, sparc_collect_gregset)
5887 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5888 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5889 (_initialize_sparc_nat): Rename regmaps.
5890 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5891 (sparc_gregmap, sparc_fpregmap): ... these.
5892 (sparc_supply_gregset, sparc_collect_gregset)
5893 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5894 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5896 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5897 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5899 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5901 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5902 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5903 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5905 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5906 (sparc32_bsd_fpregset): Rename to...
5907 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5908 (sparc32_bsd_fpregmap): ... these.
5909 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5910 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5911 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5912 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5913 (struct sparc_gregmap, struct sparc_fpregmap)
5914 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5915 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5916 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5917 (sparc32_supply_regset, sparc32_collect_gregset)
5918 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5920 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5921 (sparc64_linux_ptrace_gregmap): ... this.
5922 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5923 (_initialize_sparc64_linux_nat): Rename regmaps.
5924 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5925 (sparc64_linux_core_gregmap): ... this.
5926 (sparc64_linux_supply_core_gregset)
5927 (sparc64_linux_collect_core_gregset)
5928 (sparc64_linux_supply_core_fpregset)
5929 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5930 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5931 (sparc64_sol2_fpregset): Rename to...
5932 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5933 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5934 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5936 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5937 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5938 (sparc64_bsd_fpregset): Rename to...
5939 (struct sparc_gregmap, sparc64_sol2_gregmap)
5940 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5941 (sparc64_bsd_fpregmap): ... these.
5942 (sparc64_supply_gregset, sparc64_collect_gregset)
5943 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5945 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5946 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5947 (sparc64fbsd_gregmap): ... this.
5948 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5949 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5951 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5952 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5953 (sparc64nbsd_collect_fpregset): Likewise.
5954 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5955 (sparc64nbsd_gregmap): ... this.
5956 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5958 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5959 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5960 (sparc64obsd_gregmap): ... this.
5961 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5963 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5964 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5965 (sparc32nbsd_gregmap): ... this.
5966 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5969 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5971 * score-tdep.c (score7_linux_gregset): New static regset
5973 (score7_linux_regset_from_core_section): Remove dynamic regset
5975 (score_gdbarch_init): Drop allocation of tdep structure.
5976 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5978 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5980 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5982 (am33_regset_from_core_section): Remove dynamic regset
5985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5987 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5988 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5990 (mips_linux_regset_from_core_section): Remove dynamic regset
5992 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5993 'gregset64', 'fpregset', and 'fpregset64'.
5994 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5995 deleted tdep fields.
5997 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5999 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6001 (amd64_regset_from_core_section): Remove dynamic regset
6003 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6005 (amd64obsd_regset_from_core_section): Remove dynamic regset
6007 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6009 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6010 x86-common regset supply function.
6011 * i386-tdep.c (i386_collect_gregset): Make static.
6012 (i386_gregset): New global regset structure.
6013 (i386_fpregset, i386_xstateregset): New static regset structures.
6014 (i386_regset_from_core_section): Remove dynamic regset
6016 (i386_gdbarch_init): Remove initialization of tdep fields
6017 'gregset', 'fpregset', and 'xstateregset'.
6018 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6019 'fpregset', and 'xstateregset'.
6020 (i386_collect_gregset): Remove prototype.
6021 (i386_gregset): New declaration.
6022 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6024 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6027 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6029 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6030 (arm_linux_vfpregset): New static regset structures.
6031 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6033 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6034 and 'vfpregset' fields.
6036 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6038 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6039 (aarch64_linux_fpregset): New static regset structures.
6040 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6041 of regset structures.
6042 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6047 * regset.h (struct regset): Remove gdbarch field.
6048 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6049 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6050 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6052 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6053 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6054 (ppc32_linux_vsxregset): Likewise.
6055 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6056 via the regcache instead of the regset.
6057 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6058 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6059 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6060 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6063 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6065 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6066 Constify structures.
6067 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6068 (alphanbsd_aout_gregset): Likewise.
6069 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6070 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6072 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6073 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6075 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6076 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6077 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6078 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6079 * m88k-tdep.c (m88k_gregset): Likewise.
6080 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6081 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6082 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6083 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6084 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6085 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6086 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6087 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6088 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6090 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6091 * sh-tdep.h (sh_corefile_gregset): Likewise.
6092 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6093 * vax-tdep.c (vax_gregset): Likewise.
6095 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6097 Fix TLS access for -static -pthread.
6098 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6099 (try_thread_db_load_1): Initialize it.
6100 (thread_db_get_thread_local_address): Call it if LM is zero.
6101 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6102 * target.h (struct target_ops) (to_get_thread_local_address): Add
6103 load_module_addr comment.
6105 2014-05-21 Pedro Alves <palves@redhat.com>
6107 * dcache.c (dcache_read_memory_partial): If reading the cache line
6108 fails, fallback to reading just the memory the caller wanted.
6110 2014-05-20 Doug Evans <dje@google.com>
6112 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6113 instead of get_current_arch.
6115 2014-05-20 Pedro Alves <palves@redhat.com>
6117 * NEWS: Mention that compare-sections now works with all targets.
6119 * remote.c (PACKET_qCRC): New enum value.
6120 (remote_verify_memory): Don't send qCRC if the target has no
6121 execution. Use packet_support/packet_ok. If the target doesn't
6122 support the qCRC packet, fallback to a deep memory copy.
6123 (compare_sections_command): Say "target image" instead of "remote
6125 (_initialize_remote): Add PACKET_qCRC to the list of config
6126 packets that have no associated command. Extend comment.
6127 * target.c (simple_verify_memory, default_verify_memory): New
6129 * target.h (struct target_ops) <to_verify_memory>: Default to
6130 default_verify_memory.
6131 (simple_verify_memory): New declaration.
6132 * target-delegates.c: Regenerate.
6134 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6136 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6138 2014-05-20 Hui Zhu <hui@codesourcery.com>
6139 Yao Qi <yao@codesourcery.com>
6142 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6143 and change address of sp and pc.
6145 2014-05-19 Tom Tromey <tromey@redhat.com>
6147 * gdbtypes.c (rank_function): Use XNEWVEC.
6148 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6150 2014-05-19 Doug Evans <dje@google.com>
6152 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6153 build_type_unit_groups and moved closer to only caller. Remove
6154 arguments. All references updated. Remove outdated .gdb_index
6156 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6157 build_type_psymtabs_1.
6159 2014-05-19 Doug Evans <dje@google.com>
6161 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6162 n_type_unit_groups, all_type_unit_groups. All uses removed.
6163 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6164 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6165 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6166 (add_type_unit_group_to_table): Delete.
6168 2014-05-19 Doug Evans <dje@google.com>
6170 * eval.c (evaluate_subexp_standard): Add some comments.
6172 2014-05-17 Doug Evans <xdje42@gmail.com>
6174 * progspace.c (remove_program_space): Delete, unused.
6175 * progspace.h (remove_program_space): Ditto.
6177 2014-05-17 Doug Evans <xdje42@gmail.com>
6179 * inferior.c (prune_inferiors): Fix comment.
6180 (remove_inferior_command): Call prune_program_spaces.
6182 2014-05-16 Doug Evans <dje@google.com>
6184 New command line option -D.
6186 * main.c (set_gdb_data_directory): New function.
6187 (captured_main): Recognize -D. Flag error for --data-directory "".
6188 Call set_gdb_data_directory.
6189 (print_gdb_help): Print --data-directory, -D.
6190 * main.h (set_gdb_data_directory): Declare.
6191 * top.c (staged_gdb_datadir): New static global.
6192 (set_gdb_datadir): Call set_gdb_data_directory
6193 (show_gdb_datadir): New function.
6194 (init_main): Update init of data-directory parameter.
6196 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6198 Import the "dirfd" gnulib module.
6199 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6200 * gnulib/aclocal.m4: Update.
6201 * gnulib/config.in: Update.
6202 * gnulib/configure: Update.
6203 * gnulib/import/Makefile.am: Update.
6204 * gnulib/import/Makefile.in: Update.
6205 * gnulib/import/dirfd.c: New.
6206 * gnulib/import/m4/dirfd.m4: New.
6207 * gnulib/import/m4/gnulib-cache.m4: Update.
6208 * gnulib/import/m4/gnulib-comp.m4: Update.
6210 2014-05-16 Pierre Muller <muller@sourceware.org>
6211 Yao Qi <yao@codesourcery.com>
6213 * valprint.c (print_wchar): Move the code on checking whether
6214 W is a printable wide char to the default branch of switch
6215 statement below. Call wchar_printable instead of gdb_iswprint.
6217 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6219 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6220 ldr.w and ldrd instructions.
6222 2014-05-15 Doug Evans <dje@google.com>
6224 * dwarf2read.c (read_structure_type): Delete outdated comments.
6226 2014-05-14 Tom Tromey <tromey@redhat.com>
6228 * macrocmd.c (print_macro_definition): Reindent.
6230 2014-05-13 Doug Evans <xdje42@gmail.com>
6232 * python/py-cmd.c (cmdpy_completer): Add comment.
6233 (completers): Make const.
6235 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6237 * infrun.c (resume): Remove should_resume (unused). Move up
6238 declaration of resume_ptid.
6240 2014-05-13 Tom Tromey <tromey@redhat.com>
6242 * language.h (unop_type_check): Remove.
6243 (binop_type_check): Don't declare.
6245 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6247 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6248 call to regcache_raw_collect.
6250 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6252 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6253 mi_console->quote as the quoting character.
6255 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6257 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6259 2014-04-29 Tom Tromey <tromey@redhat.com>
6261 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6262 "show debug varobj".
6264 2014-05-07 Kyle McMartin <kyle@redhat.com>
6266 Pushed by Joel Brobecker <brobecker@adacore.com>.
6267 * aarch64-tdep.c (aarch64_software_single_step): New function.
6268 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6269 with aarch64_software_single_step.
6271 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6275 2014-05-05 Keith Seitz <keiths@redhat.com>
6277 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6278 variable or history value is successfully parsed.
6280 2014-05-05 Yao Qi <yao@codesourcery.com>
6281 Pedro Alves <palves@redhat.com>
6283 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6284 address of blocks that intersects the requested range. Trim
6285 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6287 * ctf.c (ctf_xfer_partial): Likewise.
6289 2014-05-05 Yao Qi <yao@codesourcery.com>
6291 * printcmd.c (display_command): Remove the check to
6292 target_has_execution.
6294 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6296 * ppcobsd-nat.c: Include "obsd-nat.h".
6297 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6299 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6301 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6303 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6304 and 16-bit signed and unsigned arguments. Update comment.
6305 (stap_parse_probe_arguments): Extend code to handle such
6306 arguments. Use warning instead of complaint to notify about
6307 unrecognized bitness.
6309 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6311 PR breakpoints/16889
6312 * stap-probe.c (stap_parse_probe_arguments): Simplify
6313 check for non-prefixed probes (i.e., probes whose
6314 arguments do not start with "N@"). Always set the
6315 argument type to a sane value.
6317 2014-05-01 David Taylor <dtaylor@emc.com>
6319 * remote.c (compare_sections_command): Add -r option to compare
6320 all loadable read-only sections.
6322 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6324 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6325 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6327 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6328 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6329 Remove unused CORE_ADDR argument. Update all callers.
6331 2014-04-29 Pedro Alves <palves@redhat.com>
6333 * remote.c (struct packet_config) <detect>: Extend comment.
6334 (add_packet_config_cmd): Don't set the config's detect or support
6336 (init_all_packet_configs): Also initialize the config's 'detect'
6338 (reset_all_packet_configs_support): New function.
6339 (remote_open_1): Call reset_all_packet_configs_support instead of
6340 init_all_packet_configs.
6341 (_initialize_remote): Initialize all packet configs. Assert that
6342 all packets have an associated command, except a few known
6345 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6347 * dwarf2read.c (read_subrange_type): Handle dynamic
6348 DW_AT_lower_bound attributes.
6350 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6352 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6353 dynamic bounds before computing its upper bound.
6354 (ada_discrete_type_low_bound): Same as above with the lower bound.
6356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6358 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6359 range types. Adjust the array handling implementation to
6360 take advantage of this change.
6361 (resolve_dynamic_range): New function, mostly extracted from
6362 resolve_dynamic_bounds.
6363 (resolve_dynamic_array): New function, mostly extracted from
6364 resolve_dynamic_bounds.
6365 (resolve_dynamic_bounds): Delete.
6366 (resolve_dynamic_type): Reimplement. Add handling of
6367 TYPE_CODE_RANGE types.
6369 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6371 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6372 handling of parallel ___XA types.
6374 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6376 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6377 unnecessary second call to static_unwrap_type.
6379 2014-04-27 Hui Zhu <hui@codesourcery.com>
6381 * stack.c (print_frame_info): Call do_gdb_disassembly with
6382 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6384 2014-04-26 Doug Evans <xdje42@gmail.com>
6386 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6388 2014-04-25 Pedro Alves <palves@redhat.com>
6391 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6392 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6393 and newline from built string.
6394 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6395 (linux_ptrace_attach_fail_reason): ... this.
6396 * linux-nat.c (linux_nat_attach): Adjust to use
6397 linux_ptrace_attach_fail_reason.
6399 2014-04-25 Pedro Alves <palves@redhat.com>
6401 * remote.c (struct remote_state): Remove multi_process_aware,
6402 non_stop_aware, cond_tracepoints, cond_breakpoints,
6403 breakpoint_commands, fast_tracepoints, static_tracepoints,
6404 install_in_trace, disconnected_tracing,
6405 enable_disable_tracepoints, string_tracing, and
6406 augmented_libraries_svr4_read fields.
6407 (remote_multi_process_p): Move further below in the file.
6408 (struct packet_config): Add comments.
6409 (update_packet_config): Delete function.
6410 (show_packet_config_cmd): Use packet_config_support.
6411 (add_packet_config_cmd): Use NULL as set callback.
6412 (packet_ok): "set remote foo-packet"-style commands no longer
6413 change config->supported -- adjust.
6414 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6415 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6416 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6417 (PACKET_QNonStop, PACKET_multiprocess_feature)
6418 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6419 (PACKET_DisconnectedTracing_feature)
6420 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6421 (set_remote_protocol_packet_cmd): Delete function.
6422 (packet_config_support, packet_support): New functions.
6423 (set_remote_protocol_Z_packet_cmd): Don't call
6424 update_packet_config.
6425 (remote_query_attached, remote_pass_signals)
6426 (remote_program_signals, remote_threads_info)
6427 (remote_threads_extra_info, remote_start_remote): Use
6429 (remote_start_remote): Use packet_config_support and
6431 (init_all_packet_configs): Set all packets to unknown support,
6432 instead of calling update_packet_config.
6433 (remote_check_symbols): Use packet_support.
6434 (remote_supported_packet): Unconditionally set the packet config's
6436 (remote_multi_process_feature, remote_non_stop_feature)
6437 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6438 (remote_breakpoint_commands_feature)
6439 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6440 (remote_install_in_trace_feature)
6441 (remote_disconnected_tracing_feature)
6442 (remote_enable_disable_tracepoint_feature)
6443 (remote_string_tracing_feature)
6444 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6445 (remote_protocol_features): Adjust to use remote_supported_packet
6446 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6447 "ConditionalTracepoints", "ConditionalBreakpoints",
6448 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6449 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6450 "EnableDisableTracepoints", and "tracenz".
6451 (remote_query_supported): Use packet_support.
6452 (remote_open_1): Adjust.
6453 (extended_remote_attach_1): Use packet_support. Switch on the
6454 result of packet_ok instead of checking whether the packet ended
6456 (remote_vcont_resume): Use packet_support.
6457 (remote_resume, remote_stop_ns, fetch_register_using_p)
6458 (remote_prepare_to_store, store_register_using_P)
6459 (check_binary_download, remote_write_bytes): Use packet_support.
6460 (remote_vkill): Use packet_support. Switch on the result of
6461 packet_ok instead of checking whether the packet ended up
6463 (extended_remote_supports_disable_randomization): Use
6465 (extended_remote_run): Switch on the result of packet_ok instead
6466 of checking whether the packet ended up disabled.
6467 (remote_insert_breakpoint, remote_remove_breakpoint)
6468 (remote_insert_watchpoint, remote_remove_watchpoint)
6469 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6471 (remote_search_memory): Use packet_config_support.
6472 (remote_get_thread_local_address, remote_get_tib_address)
6473 (remote_hostio_send_command, remote_can_execute_reverse): Use
6475 (remote_supports_cond_tracepoints)
6476 (remote_supports_cond_breakpoints)
6477 (remote_supports_fast_tracepoints)
6478 (remote_supports_static_tracepoints)
6479 (remote_supports_install_in_trace)
6480 (remote_supports_enable_disable_tracepoint)
6481 (remote_supports_string_tracing)
6482 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6483 the packet config says the feature is enabled or disabled.
6484 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6485 (remote_get_trace_status): Use packet_support.
6486 (remote_set_disconnected_tracing): Adjust to check whether the
6487 feature is enabled with packet_support.
6488 (remote_set_trace_buffer_size, remote_use_agent)
6489 (remote_can_use_agent, remote_supports_btrace): Use
6491 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6492 Use packet_config_support.
6493 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6494 the packet config says the feature is enabled or disabled.
6495 (set_range_stepping): Use packet_support.
6497 2014-04-25 Tom Tromey <tromey@redhat.com>
6499 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6502 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6504 * NEWS: Mention support for C99 variable length arrays.
6506 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6508 * ada-lang.c (standard_exc): Expand introductory comment.
6510 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6511 Walfred Tedeschi <walfred.tedeschi@intel.com>
6513 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6515 (amd64_linux_read_description): Add code to handle AVX512 xstate
6516 mask and return respective tdesc.
6517 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6518 and features/i386/x32-avx512-linux.c.
6519 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6520 (amd64_linux_core_read_description): Add code to handle AVX512
6521 xstate mask and return respective tdesc.
6522 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6523 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6525 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6526 (tdesc_amd64_avx512_linux): New prototype.
6527 (tdesc_x32_avx512_linux): Likewise.
6528 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6529 features/i386/x32-avx512.c.
6530 (amd64_ymm_avx512_names): New register names for pseudo
6532 (amd64_ymmh_avx512_names): New register names for raw registers
6534 (amd64_k_names): New register names for K registers.
6535 (amd64_zmmh_names): New register names for ZMM raw registers.
6536 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6537 (amd64_xmm_avx512_names): New register names for XMM16-31
6539 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6541 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6542 if feature is present.
6543 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6544 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6545 (AMD64_NUM_REGS): Adjust to new number of registers.
6546 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6547 registers supplied via XSTATE by AVX512 registers.
6548 (i386_linux_read_description): Add case for AVX512.
6549 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6550 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6551 (i386_linux_core_read_description): Add case for AVX512.
6552 (i386_linux_init_abi): Install supported register note section
6554 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6556 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6557 registers to be number of zmm7h + 1.
6558 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6559 * i386-tdep.c: Include features/i386/i386-avx512.c.
6560 (i386_zmm_names): Add ZMM pseudo register names array.
6561 (i386_zmmh_names): Add ZMM raw register names array.
6562 (i386_k_names): Add K raw register names array.
6563 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6564 registers. AVX512 has 16 more ZMM registers than there are YMM
6566 (i386_zmmh_regnum_p): Add function to look up register number of
6568 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6569 (i386_k_regnum_p): Likewise for K raw registers.
6570 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6571 registers added by AVX512.
6572 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6573 registers added by AVX512.
6574 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6576 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6577 (i386_pseudo_register_name): Add ZMM pseudo registers.
6578 (i386_zmm_type): Construct and return vector registers type for ZMM
6580 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6581 ZMM0-31 pseudo registers and K registers.
6582 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6583 and YMM16-31 registers from register cache.
6584 (i386_pseudo_register_write): Add code to write K, ZMM and
6586 (i386_register_reggroup_p): Add code to include/exclude AVX512
6587 registers in/from respective register groups.
6588 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6589 registers if feature is present in xcr0.
6590 (i386_gdbarch_init): Add code to initialize AVX512 feature
6591 variables in tdep structure, wire in pseudo registers and call
6592 initialize_tdesc_i386_avx512.
6593 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6595 (i386_regnum): Add AVX512 registers.
6596 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6597 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6598 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6599 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6601 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6602 (i386_ymm_avx512_regnum_p): Likewise.
6603 (i386_k_regnum_p): Likewise.
6604 (i386_zmm_regnum_p): Likewise.
6605 (i386_zmmh_regnum_p): Likewise.
6606 * i387-tdep.c : Update year in copyright notice.
6607 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6609 (XSAVE_YMM_AVX512_ADDR): New macro.
6610 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6612 (XSAVE_XMM_AVX512_ADDR): New macro.
6613 (xsave_avx512_k_offset): New table for K register offsets in
6615 (XSAVE_AVX512_K_ADDR): New macro.
6616 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6618 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6619 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6621 (i387_collect_xsave): Add code to collect AVX512 registers from
6623 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6624 of XMM16-31 registers.
6625 (I387_NUM_K_REGS): New define for number of K registers.
6626 (I387_K0_REGNUM): New define for K0 register number.
6627 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6628 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6629 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6631 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6632 (I387_XMM16_REGNUM): New define for XMM16 register number.
6633 (I387_YMM0_REGNUM): New define for YMM0 register number.
6634 (I387_KEND_REGNUM): New define for last K register number.
6635 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6636 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6638 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6640 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6642 * features/Makefile: Add AVX512 related files.
6643 * features/i386/32bit-avx512.xml: New file.
6644 * features/i386/64bit-avx512.xml: Likewise.
6645 * features/i386/amd64-avx512-linux.c: Likewise.
6646 * features/i386/amd64-avx512-linux.xml: Likewise.
6647 * features/i386/amd64-avx512.c: Likewise.
6648 * features/i386/amd64-avx512.xml: Likewise.
6649 * features/i386/i386-avx512-linux.c: Likewise.
6650 * features/i386/i386-avx512-linux.xml: Likewise.
6651 * features/i386/i386-avx512.c: Likewise.
6652 * features/i386/i386-avx512.xml: Likewise.
6653 * features/i386/x32-avx512-linux.c: Likewise.
6654 * features/i386/x32-avx512-linux.xml: Likewise.
6655 * features/i386/x32-avx512.c: Likewise.
6656 * features/i386/x32-avx512.xml: Likewise.
6657 * regformats/i386/amd64-avx512-linux.dat: New file.
6658 * regformats/i386/amd64-avx512.dat: Likewise.
6659 * regformats/i386/i386-avx512-linux.dat: Likewise.
6660 * regformats/i386/i386-avx512.dat: Likewise.
6661 * regformats/i386/x32-avx512-linux.dat: Likewise.
6662 * regformats/i386/x32-avx512.dat: Likewise.
6663 * NEWS: Add note about new support for AVX512.
6666 2014-04-23 Pedro Alves <palves@redhat.com>
6668 * breakpoint.c (insert_bp_location): Tolerate errors if the
6669 breakpoint is set in a user-loaded objfile.
6670 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6671 location is marked shlib_disabled. If the breakpoint is set in a
6672 user-loaded objfile is a GDB-side memory breakpoint, validate it
6673 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6674 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6676 * mem-break.c (memory_validate_breakpoint): New function.
6677 * objfiles.c (userloaded_objfile_contains_address_p): New
6679 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6680 * target.h (memory_validate_breakpoint): New declaration.
6682 2014-04-23 Pedro Alves <palves@redhat.com>
6684 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6685 the breakpoint is set in a shared library, only suppress
6686 errors for software breakpoints, not hardware breakpoints.
6688 2014-04-22 Pedro Alves <palves@redhat.com>
6690 * infrun.c (schedlock_applies): New function, factored out from
6691 find_thread_needs_step_over.
6692 (find_thread_needs_step_over): Use it.
6693 (switch_back_to_stepped_thread): Always clear trap_expected if the
6694 step over is finished. Return early if scheduler locking applies.
6695 Look for the stepping thread and a potential step-over thread with
6697 (currently_stepping_or_nexting_callback): Delete.
6699 2014-04-22 Nick Clifton <nickc@redhat.com>
6701 * NEWS: Mention that ARM sim now supports tracing.
6703 2014-04-22 Yao Qi <yao@codesourcery.com>
6705 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6707 * tracefile.c (tracefile_fetch_registers): ... it. New
6709 * tracefile.h (tracefile_fetch_registers): Declare.
6710 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6711 tracefile_fetch_registers.
6713 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6716 * windows-nat.c (thread_rec): Don't display a warning when
6717 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6718 fails for any reason, set th->suspended to -1, so that we don't
6719 try to resume such a thread. Also, don't return NULL in these
6720 cases, to avoid completely ruin the session due to "PC register is
6721 not available" error.
6722 (do_windows_fetch_inferior_registers): Check errors in
6723 GetThreadContext call.
6724 (windows_continue): Accept an additional argument KILLED; if not
6725 zero, ignore errors in the SetThreadContext call, since the
6726 inferior was killed and is shutting down.
6727 (windows_resume, get_windows_debug_event)
6728 (windows_create_inferior, windows_mourn_inferior)
6729 (windows_kill_inferior): All callers of windows_continue changed
6730 to adjust to its new calling sequence.
6732 2014-04-19 Yao Qi <yao@codesourcery.com>
6734 * ctf.c (ctf_open): Call post_create_inferior.
6736 2014-04-19 Yao Qi <yao@codesourcery.com>
6738 * ctf.c (handle_id): New static variable.
6739 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6740 value. Get the declaration of event "register" and get length
6741 of field "contents".
6743 2014-04-19 Yao Qi <yao@codesourcery.com>
6745 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6747 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6749 * valops.c (oload_method_static): Remove unnecessary argument
6750 METHOD. Update all callers.
6752 2014-04-18 Pedro alves <palves@redhat.com>
6753 Tom Tromey <tromey@redhat.com>
6756 * frame.c (get_prev_frame_1): Rename to ...
6757 (get_prev_frame_always): ... this, and make extern. Adjust.
6758 (skip_artificial_frames): Use get_prev_frame_always.
6759 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6760 (get_frame_unwind_stop_reason): Adjust to rename.
6761 * frame.h (get_prev_frame_always): Declare.
6762 * inline-frame.c: Include frame.h.
6763 (inline_frame_this_id): Use get_prev_frame_always.
6765 2014-04-18 Tristan Gingold <gingold@adacore.com>
6767 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6768 code by using bfd_mach_o_get_base_address.
6770 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6772 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6773 (spu_ax_pseudo_register_collect): New function.
6774 (spu_ax_pseudo_register_push_stack): Likewise.
6775 (spu_dwarf_reg_to_regnum): Likewise.
6776 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6778 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6780 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6781 Replace FRAME argument with FRAME_ID.
6782 * gdbarch.c, gdbarch.h: Regenerate.
6783 * findvar.c (default_value_from_register): Add GDBARCH argument;
6784 replace FRAME by FRAME_ID. No longer call get_frame_id.
6785 (value_from_register): Update call to gdbarch_value_from_register.
6786 * value.h (default_value_from_register): Update prototype.
6787 * s390-linux-tdep.c (s390_value_from_register): Update interface
6788 and call to default_value_from_register.
6789 * spu-tdep.c (spu_value_from_register): Likewise.
6791 * findvar.c (address_from_register): Remove TYPE argument.
6792 Do not call value_from_register; use gdbarch_value_from_register
6793 with null_frame_id instead.
6794 * value.h (address_from_register): Update prototype.
6795 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6796 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6797 address_from_register interface change.
6799 2014-04-17 Yao Qi <yao@codesourcery.com>
6801 * gdbtypes.h: Update comments to link to types and macros'
6804 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6806 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6808 2014-04-16 Keith Seitz <keiths@redhat.com>
6811 * dwarf2read.c (skip_one_die): Check that all relative-offset
6812 sibling DIEs fall within range of the current reader's buffer.
6813 (read_partial_die): Likewise.
6815 2014-04-16 Keith Seitz <keiths@redhat.com>
6818 * cp-namespace.c (lookup_symbol_file): If the type name of
6819 `this' is NULL, return immediately.
6821 2014-04-14 Keith Seitz <keiths@redhat.com>
6824 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6825 from symbol_matches_domain in symtab.c. All local callers
6826 of symbol_matches_domain updated.
6827 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6828 search STRUCT_DOMAIN.
6829 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6830 independently. standard_lookup will do that automatically.
6831 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6832 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6833 (cp_lookup_symbol_in_namespace): Likewise.
6834 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6835 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6836 may return a STRUCT_DOMAIN match.
6837 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6838 * cp-support.c: Include language.h.
6839 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6841 * psymtab.c (match_partial_symbol): Compare the requested
6842 domain with the symbol's domain directly.
6843 (lookup_partial_symbol): Likewise.
6844 * symtab.c (lookup_symbol_in_language): Explain when/why
6845 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6846 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6847 appropriate languages.
6848 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6849 and moved to ada-lang.c
6850 (lookup_block_symbol): Explain that this function only returns
6851 symbol matching the requested DOMAIN.
6852 Compare the requested domain with the symbol's domain directly.
6853 (iterate_over_symbols): Compare the requested domain with the
6854 symbol's domain directly.
6855 * symtab.h (symbol_matches_domain): Remove.
6857 2014-04-14 Tom Tromey <tromey@redhat.com>
6860 * c-exp.y (type_aggregate_p): New function.
6861 (qualified_name, classify_inner_name): Use it.
6862 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6863 and TYPE_TARGET_TYPE of an enum type.
6864 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6866 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6867 handle TYPE_DECLARED_CLASS.
6868 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6870 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6871 * valops.c (enum_constant_from_type): New function.
6872 (value_aggregate_elt): Use it.
6873 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6876 2014-04-14 Tom Tromey <tromey@redhat.com>
6878 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6879 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6881 * value.h (value_aggregate_elt): Update.
6883 2014-04-14 Tom Tromey <tromey@redhat.com>
6885 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6887 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6889 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6890 (evaluate_subexp_standard): Pass noside argument.
6891 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6892 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6893 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6894 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6895 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6897 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6899 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6900 points to a constant blob.
6902 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6904 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6905 property and store it as the high bound and flag the range accordingly.
6906 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6907 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6908 * gdbtypes.h (enum range_flags): New enum.
6909 (struct range_bounds): Add flags member.
6911 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6913 * c-typeprint.c (c_type_print_varspec_suffix): Added
6914 check for not yet resolved high bound. If unresolved, print
6915 "variable length" string to the console instead of random
6918 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6920 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6922 (ada_template_to_fixed_record_type_1): Likewise.
6923 (ada_to_fixed_type_1): Likewise.
6924 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6925 (cp_print_value): Likewise.
6926 * d-valprint.c (dynamic_array_type): Likewise.
6927 * findvar.c (address_of_variable): Likewise.
6928 * jv-valprint.c (java_value_print): Likewise.
6929 * valops.c (value_ind): Likewise.
6930 * value.c (coerce_ref): Likewise.
6932 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6934 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6935 value and retrieve the dynamic type size.
6937 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6939 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6940 passed to sizeof is dynamic evaluate the argument to compute the length.
6942 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6943 Joel Brobecker <brobecker@adacore.com>
6945 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6946 (dwarf2_evaluate_property): New function.
6947 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6948 * dwarf2read.c (attr_to_dynamic_prop): New function.
6949 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6951 * gdbtypes.c: Include dwarf2loc.h.
6952 (is_dynamic_type): New function.
6953 (resolve_dynamic_type): New function.
6954 (resolve_dynamic_bounds): New function.
6955 (get_type_length): New function.
6956 (check_typedef): Use get_type_length to compute type length.
6957 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6958 (TYPE_LOW_BOUND_KIND): New macro.
6959 (is_dynamic_type): New function prototype.
6960 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6961 to resolve dynamic properties of the type. Update comment.
6962 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6964 2014-04-14 Richard Henderson <rth@redhat.com>
6966 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6968 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6969 Doug Evans <xdje42@gmail.com>
6971 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6972 dereference TYPE_CODE_REF values.
6974 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6976 Revert the following changes due to regressions:
6978 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6979 (dwarf2_evaluate_property): New function.
6980 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6981 * dwarf2read.c (attr_to_dynamic_prop): New function.
6982 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6984 * gdbtypes.c: Include dwarf2loc.h.
6985 (is_dynamic_type): New function.
6986 (resolve_dynamic_type): New function.
6987 (resolve_dynamic_bounds): New function.
6988 (get_type_length): New function.
6989 (check_typedef): Use get_type_length to compute type length.
6990 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6991 (TYPE_LOW_BOUND_KIND): New macro.
6992 (is_dynamic_type): New function prototype.
6993 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6994 to resolve dynamic properties of the type. Update comment.
6995 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6997 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6998 passed to sizeof is dynamic evaluate the argument to compute the length.
7000 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7001 value and retrieve the dynamic type size.
7003 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7004 (ada_template_to_fixed_record_type_1): Likewise.
7005 (ada_to_fixed_type_1): Likewise.
7006 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7007 (cp_print_value): Likewise.
7008 * d-valprint.c (dynamic_array_type): Likewise.
7009 * eval.c (evaluate_subexp_with_coercion): Likewise.
7010 * findvar.c (address_of_variable): Likewise.
7011 * jv-valprint.c (java_value_print): Likewise.
7012 * valops.c (value_ind): Likewise.
7013 * value.c (coerce_ref): Likewise.
7015 * c-typeprint.c (c_type_print_varspec_suffix): Added
7016 check for not yet resolved high bound. If unresolved, print
7017 "variable length" string to the console instead of random
7020 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7021 property and store it as the high bound and flag the range accordingly.
7022 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7023 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7024 * gdbtypes.h (enum range_flags): New enum.
7025 (struct range_bounds): Add flags member.
7027 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7028 points to a constant blob.
7030 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7031 (evaluate_subexp_standard): Pass noside argument.
7032 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7033 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7034 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7035 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7036 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7038 2014-04-11 Keith Seitz <keiths@redhat.com>
7041 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7042 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7045 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7047 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7048 (evaluate_subexp_standard): Pass noside argument.
7049 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7050 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7051 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7052 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7053 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7055 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7057 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7058 points to a constant blob.
7060 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7062 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7063 property and store it as the high bound and flag the range accordingly.
7064 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7065 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7066 * gdbtypes.h (enum range_flags): New enum.
7067 (struct range_bounds): Add flags member.
7069 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7071 * c-typeprint.c (c_type_print_varspec_suffix): Added
7072 check for not yet resolved high bound. If unresolved, print
7073 "variable length" string to the console instead of random
7076 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7078 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7079 (ada_template_to_fixed_record_type_1): Likewise.
7080 (ada_to_fixed_type_1): Likewise.
7081 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7082 (cp_print_value): Likewise.
7083 * d-valprint.c (dynamic_array_type): Likewise.
7084 * eval.c (evaluate_subexp_with_coercion): Likewise.
7085 * findvar.c (address_of_variable): Likewise.
7086 * jv-valprint.c (java_value_print): Likewise.
7087 * valops.c (value_ind): Likewise.
7088 * value.c (coerce_ref): Likewise.
7090 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7092 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7093 value and retrieve the dynamic type size.
7095 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7097 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7098 passed to sizeof is dynamic evaluate the argument to compute the length.
7100 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7102 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7103 (dwarf2_evaluate_property): New function.
7104 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7105 * dwarf2read.c (attr_to_dynamic_prop): New function.
7106 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7108 * gdbtypes.c: Include dwarf2loc.h.
7109 (is_dynamic_type): New function.
7110 (resolve_dynamic_type): New function.
7111 (resolve_dynamic_bounds): New function.
7112 (get_type_length): New function.
7113 (check_typedef): Use get_type_length to compute type length.
7114 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7115 (TYPE_LOW_BOUND_KIND): New macro.
7116 (is_dynamic_type): New function prototype.
7117 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7118 to resolve dynamic properties of the type. Update comment.
7119 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7121 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7123 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7124 declaring high/low bounds and change uses accordingly. Call
7125 create_range_type instead of create_static_range_type.
7126 * gdbtypes.c (create_range_type): New function.
7127 (create_range_type): Convert bounds into struct bound_prop and pass
7128 them to create_range_type.
7129 * gdbtypes.h (struct bound_prop): New struct.
7130 (create_range_type): New function prototype.
7131 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7132 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7133 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7135 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7137 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7139 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7140 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7141 * ada-lang.c: All uses of create_range_type updated.
7142 * coffread.c: All uses of create_range_type updated.
7143 * dwarf2read.c: All uses of create_range_type updated.
7144 * f-exp.y: All uses of create_range_type updated.
7145 * m2-valprint.c: All uses of create_range_type updated.
7146 * mdebugread.c: All uses of create_range_type updated.
7147 * stabsread.c: All uses of create_range_type updated.
7148 * valops.c: All uses of create_range_type updated.
7149 * valprint.c: All uses of create_range_type updated.
7151 2014-04-10 Pedro Alves <palves@redhat.com>
7153 * breakpoint.c (single_step_breakpoints)
7154 (single_step_gdbarch): Move up in the file.
7155 (one_breakpoint_xfer_memory): New function, factored out from ...
7156 (breakpoint_xfer_memory): ... here. Also process single-step
7159 2014-04-09 Tristan Gingold <gingold@adacore.com>
7161 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7163 (darwin_decode_exception_message): Free port only after use.
7165 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7167 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7168 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7169 when setting the size of call_length.
7171 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7173 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7174 dereference TYPE_CODE_REF values.
7176 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7178 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7179 end of warning message.
7181 2014-04-03 Doug Evans <dje@google.com>
7183 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7184 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7186 2014-04-02 Alan Modra <amodra@gmail.com>
7188 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7189 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7190 (struct symbol_file_add_from_memory_args): Add size field.
7191 (find_vdso_size): New function.
7192 (add_vsyscall_page): Attempt to find vdso size.
7194 2014-04-01 Doug Evans <dje@google.com>
7196 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7198 2014-04-01 Tristan Gingold <gingold@adacore.com>
7200 * darwin-nat.c (darwin_encode_reply): Add prototype.
7201 (darwin_decode_exception_message): Reply to unknown inferiors.
7202 (darwin_decode_message): Handle message by id. Ignore message
7203 to unknown inferior.
7204 (darwin_wait): Discard unknown messages, add debug trace.
7206 2014-03-31 Doug Evans <dje@google.com>
7208 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7211 2014-03-31 Doug Evans <dje@google.com>
7213 New option "set print symbol-loading".
7215 * solib.c (solib_read_symbols): Only print symbol loading messages
7217 (solib_add): If symbol loading is in "brief" mode, notify user
7218 symbols are being loaded.
7219 (reload_shared_libraries_1): Ditto.
7220 * symfile.c (print_symbol_loading_off): New static global.
7221 (print_symbol_loading_brief): New static global.
7222 (print_symbol_loading_full): New static global.
7223 (print_symbol_loading_enums): New static global.
7224 (print_symbol_loading): New static global.
7225 (print_symbol_loading_p): New function.
7226 (symbol_file_add_with_addrs): Only print symbol loading messages
7228 (_initialize_symfile): Register "print symbol-loading" set/show
7230 * symfile.h (print_symbol_loading_p): Declare.
7232 2014-03-30 Doug Evans <xdje42@gmail.com>
7234 * infrun.c (set_last_target_status): New function.
7235 (handle_inferior_event): Call it.
7237 2014-03-30 Doug Evans <xdje42@gmail.com>
7239 * inferior.h (enum stop_kind): Improve comment.
7241 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7243 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7244 a reference, strip the reference layer before calling
7245 the lang_ops value_has_mutated callback.
7247 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7249 Remove some globals from our parser.
7250 * language.c (unk_lang_parser): Add "struct parser_state"
7252 * language.h (struct language_defn) <la_parser>: Likewise.
7253 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7254 (initialize_expout): Add "struct parser_state" argument.
7255 Rewrite function to use the parser state.
7256 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7257 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7258 write_exp_elt_longcst, write_exp_elt_dblcst,
7259 write_exp_elt_decfloatcst, write_exp_elt_type,
7260 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7261 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7262 write_dollar_variable): Likewise.
7263 (parse_exp_in_context_1): Use parser state.
7264 (insert_type_address_space): Add "struct parser_state" argument.
7266 (increase_expout_size): New function.
7267 * parser-defs.h: Forward declare "struct language_defn" and
7268 "struct parser_state".
7269 (expout, expout_size, expout_ptr): Remove extern declarations.
7270 (parse_gdbarch, parse_language): Rewrite macro declarations to
7271 accept the parser state.
7272 (struct parser_state): New struct.
7273 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7274 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7275 write_exp_elt_decfloatcst, write_exp_elt_type,
7276 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7277 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7278 write_exp_msymbol, write_dollar_variable,
7279 mark_struct_expression, insert_type_address_space): Add "struct
7280 parser_state" argument.
7281 (increase_expout_size): New function.
7282 * utils.c (do_clear_parser_state): New function.
7283 (make_cleanup_clear_parser_state): Likewise.
7284 * utils.h (make_cleanup_clear_parser_state): New function
7286 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7287 Update calls to write_exp* in order to pass the parser state.
7288 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7289 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7290 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7291 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7292 * stap-probe.c (stap_parse_register_operand): Likewise.
7293 (stap_parse_single_operand): Likewise.
7294 (stap_parse_argument_1): Likewise.
7295 (stap_parse_argument): Use parser state.
7296 * stap-probe.h: Include "parser-defs.h".
7297 (struct stap_parse_info) <pstate>: New field.
7298 * c-exp.y (parse_type): Rewrite to use parser state.
7299 (yyparse): Redefine to c_parse_internal.
7300 (pstate): New global variable.
7301 (parse_number): Add "struct parser_state" argument.
7302 (write_destructor_name): Likewise.
7303 (type_exp): Update calls to write_exp* and similars in order to
7305 (exp1, exp, variable, qualified_name, space_identifier,
7306 typename, typebase): Likewise.
7307 (write_destructor_name, parse_number, lex_one_token,
7308 classify_name, classify_inner_name, c_parse): Add "struct
7309 parser_state" argument. Update function to use parser state.
7310 * c-lang.h: Forward declare "struct parser_state".
7311 (c_parse): Add "struct parser_state" argument.
7312 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7313 (yyparse): Redefine macro to ada_parse_internal.
7314 (pstate): New variable.
7315 (write_int, write_object_renaming, write_var_or_type,
7316 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7317 type_int, type_long, type_long_long, type_float, type_double,
7318 type_long_double, type_char, type_boolean, type_system_address):
7319 Add "struct parser_state" argument.
7320 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7321 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7322 var_or_type, aggregate, aggregate_component_list,
7323 positional_list, others, component_group,
7324 component_associations): Update calls to write_exp* and similar
7325 functions in order to use parser state.
7326 (ada_parse, write_var_from_sym, write_int,
7327 write_exp_op_with_string, write_object_renaming,
7328 find_primitive_type, write_selectors, write_ambiguous_var,
7329 write_var_or_type, write_name_assoc, type_int, type_long,
7330 type_long_long, type_float, type_double, type_long_double,
7331 type_char, type_boolean, type_system_address): Add "struct
7332 parser_state" argument. Adjust function to use parser state.
7333 * ada-lang.c (parse): Likewise.
7334 * ada-lang.h: Forward declare "struct parser_state".
7335 (ada_parse): Add "struct parser_state" argument.
7336 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7337 calls to both functions.
7338 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7340 (yyparse): Redefine macro to f_parse_internal.
7341 (pstate): New variable.
7342 (parse_number): Add "struct parser_state" argument.
7343 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7344 and similars in order to use parser state.
7345 (parse_number): Adjust code to use parser state.
7347 (f_parse): New function.
7348 * f-lang.h: Forward declare "struct parser_state".
7349 (f_parse): Add "struct parser_state" argument.
7350 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7352 (yyparse): Redefine macro for java_parse_internal.
7353 (pstate): New variable.
7354 (push_expression_name, push_expression_name, insert_exp): Add
7355 "struct parser_state" argument.
7356 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7357 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7358 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7359 PostIncrementExpression, PostDecrementExpression,
7360 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7361 UnaryExpressionNotPlusMinus, CastExpression,
7362 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7363 RelationalExpression, EqualityExpression, AndExpression,
7364 ExclusiveOrExpression, InclusiveOrExpression,
7365 ConditionalAndExpression, ConditionalOrExpression,
7366 ConditionalExpression, Assignment, LeftHandSide): Update
7367 calls to write_exp* and similars in order to use parser state.
7368 (parse_number): Ajust code to use parser state.
7370 (java_parse): New function.
7371 (push_variable): Add "struct parser_state" argument. Adjust
7372 code to user parser state.
7373 (push_fieldnames, push_qualified_expression_name,
7374 push_expression_name, insert_exp): Likewise.
7375 * jv-lang.h: Forward declare "struct parser_state".
7376 (java_parse): Add "struct parser_state" argument.
7377 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7379 (yyparse): Redefine macro to m2_parse_internal.
7380 (pstate): New variable.
7381 (type_exp, exp, fblock, variable, type): Update calls to
7382 write_exp* and similars to use parser state.
7384 (m2_parse): New function.
7385 * m2-lang.h: Forward declare "struct parser_state".
7386 (m2_parse): Add "struct parser_state" argument.
7387 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7388 * objc-lang.h: Forward declare "struct parser_state".
7389 (end_msglist): Add "struct parser_state" argument.
7390 * p-exp.y (parse_type): Rewrite macro to use parser state.
7391 (yyparse): Redefine macro to pascal_parse_internal.
7392 (pstate): New variable.
7393 (parse_number): Add "struct parser_state" argument.
7394 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7395 write_exp* and similars in order to use parser state.
7396 (parse_number, yylex): Adjust code to use parser state.
7397 (pascal_parse): New function.
7398 * p-lang.h: Forward declare "struct parser_state".
7399 (pascal_parse): Add "struct parser_state" argument.
7400 * go-exp.y (parse_type): Rewrite macro to use parser state.
7401 (yyparse): Redefine macro to go_parse_internal.
7402 (pstate): New variable.
7403 (parse_number): Add "struct parser_state" argument.
7404 (type_exp, exp1, exp, variable, type): Update calls to
7405 write_exp* and similars in order to use parser state.
7406 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7407 to use parser state.
7408 (go_parse): Likewise.
7409 * go-lang.h: Forward declare "struct parser_state".
7410 (go_parse): Add "struct parser_state" argument.
7412 2014-03-27 Doug Evans <dje@google.com>
7414 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7416 2014-03-27 Doug Evans <dje@google.com>
7418 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7419 Remove argument abbrev_section. All callers updated.
7421 2014-03-27 Doug Evans <dje@google.com>
7423 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7424 addr_base, ranges_base.
7426 2014-03-26 Keith Seitz <keiths@redhat.com>
7428 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7429 types, not VAR_DOMAIN.
7431 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7433 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7435 * features/nios2-linux.c: Regenerated.
7436 * features/nios2.c: Regenerated.
7438 2014-03-25 Pedro Alves <palves@redhat.com>
7440 * cli/cli-script.c (script_from_file): Force the interpreter to
7443 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7445 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7446 small stack allocation.
7448 2014-03-24 Tristan Gingold <gingold@adacore.com>
7450 * darwin-nat.c (exc_server): Remove unused prototype.
7451 (darwin_dump_message): Correctly display data on x86_64.
7452 (darwin_encode_reply): Fix style.
7453 Add comments and fix indentation.
7455 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7457 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7459 2014-03-22 Doug Evans <xdje42@gmail.com>
7461 * infcmd.c: Whitespace fixes.
7462 (interrupt_command): Merge two function comments into one.
7464 2014-03-22 Doug Evans <xdje42@gmail.com>
7466 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7469 2014-03-22 Yao Qi <yao@codesourcery.com>
7471 * remote.c (target_read_live_memory): Remove.
7472 (memory_xfer_live_readonly_partial): Rename it to
7473 remote_xfer_live_readonly_partial. Remove argument 'object'.
7474 All callers updated. Call remote_read_bytes_1
7475 instead of target_read_live_memory.
7476 * tracepoint.c (set_traceframe_number): Remove.
7477 (make_cleanup_restore_traceframe_number): Likewise .
7478 * tracepoint.h (set_traceframe_number): Remove declaration.
7479 (make_cleanup_restore_traceframe_number): Likewise.
7481 2014-03-22 Yao Qi <yao@codesourcery.com>
7483 * remote.c (remote_read_bytes): Move code on reading from the
7485 (remote_read_bytes_1): ... here. New function.
7487 2014-03-22 Yao Qi <yao@codesourcery.com>
7489 * ctf.c (ctf_xfer_partial): Check the return value of
7490 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7491 return TARGET_XFER_UNAVAILABLE.
7492 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7493 * target.c (target_read_live_memory): Move it to remote.c.
7494 (memory_xfer_live_readonly_partial): Likewise.
7495 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7496 * remote.c (target_read_live_memory): Moved from target.c.
7497 (memory_xfer_live_readonly_partial): Likewise.
7498 (remote_read_bytes): Factored out from
7499 memory_xfer_partial_1.
7501 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7503 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7506 2014-03-21 Pedro Alves <palves@redhat.com>
7508 * infrun.c (normal_stop): Extend comment.
7510 2014-03-21 Hui Zhu <hui@codesourcery.com>
7511 Pedro Alves <palves@redhat.com>
7513 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7515 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7516 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7517 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7519 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7521 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7522 `z' formatted output modifier.
7524 2014-03-20 Tom Tromey <tromey@redhat.com>
7525 Sergio Durigan Junior <sergiodj@redhat.com>
7527 * probe.c (parse_probes): Turn assert into an ordinary error.
7528 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7529 exceptions when parsing probes. Rearrange the code for clarity.
7531 2014-03-20 Tom Tromey <tromey@redhat.com>
7534 * top.c (execute_command): Only dispatch events if the command
7537 2014-03-20 Tom Tromey <tromey@redhat.com>
7540 * infcall.c: Include event-top.h.
7541 (run_inferior_call): Call async_disable_stdin if needed.
7543 2014-03-20 Pedro Alves <palves@redhat.com>
7545 * infrun.c (prepare_to_proceed): Delete.
7546 (thread_still_needs_step_over): New function.
7547 (find_thread_needs_step_over): New function.
7548 (proceed): If the current thread needs a step-over, set its
7549 steping_over_breakpoint flag. Adjust to use
7550 find_thread_needs_step_over instead of prepare_to_proceed.
7551 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7552 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7554 (switch_back_to_stepped_thread): Step over breakpoints of all
7555 threads not the stepping thread, before switching back to the
7558 2014-03-20 Pedro Alves <palves@redhat.com>
7560 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7562 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7563 * infrun.c (saved_singlestep_ptid)
7564 (stepping_past_singlestep_breakpoint): Delete.
7565 (resume): Remove stepping_past_singlestep_breakpoint handling.
7566 (proceed): Store the prev_pc of the stepping thread too.
7567 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7569 (enum infwait_states): Delete infwait_thread_hop_state.
7570 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7572 (handle_inferior_event): Adjust.
7573 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7574 handling and the thread-hop code. Before removing single-step
7575 breakpoints, check whether the thread hit a single-step breakpoint
7576 of another thread. If it did, the trap is not a random signal.
7577 (switch_back_to_stepped_thread): If the event thread hit a
7578 single-step breakpoint, unblock it before switching to the
7579 stepping thread. Handle the case of the stepped thread having
7581 (keep_going): Handle the case of the current thread moving past a
7582 single-step breakpoint.
7584 2014-03-20 Pedro Alves <palves@redhat.com>
7587 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7588 are being stepped over.
7589 (breakpoint_address_match): Make extern.
7590 * breakpoint.h (breakpoint_address_match): New declaration.
7591 * inferior.h (stepping_past_instruction_at): New declaration.
7592 * infrun.c (struct step_over_info): New type.
7593 (step_over_info): New global.
7594 (set_step_over_info, clear_step_over_info)
7595 (stepping_past_instruction_at): New functions.
7596 (handle_inferior_event): Clear the step-over info when
7597 trap_expected is cleared.
7598 (resume): Remove now stale comment.
7599 (clear_proceed_status): Clear step-over info.
7600 (proceed): Adjust step-over handling to set or clear the step-over
7601 info instead of removing all breakpoints.
7602 (handle_signal_stop): When setting up a thread-hop, don't remove
7604 (stop_stepping): Clear step-over info.
7605 (keep_going): Adjust step-over handling to set or clear step-over
7606 info and then always inserting breakpoints, instead of removing
7607 all breakpoints when stepping over one.
7609 2014-03-20 Pedro Alves <palves@redhat.com>
7611 * infrun.c (previous_inferior_ptid): Adjust comment.
7612 (deferred_step_ptid): Delete.
7613 (infrun_thread_ptid_changed, prepare_to_proceed)
7614 (init_wait_for_inferior): Adjust.
7615 (handle_signal_stop): Delete deferred_step_ptid handling.
7617 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7620 * defs.h (sync_quit_force_run): New declaration.
7621 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7622 * event-top.c (async_sigterm_handler): New declaration.
7623 (async_sigterm_token): New variable.
7624 (async_init_signals): Create also async_sigterm_token.
7625 (async_sigterm_handler): New function.
7626 (sync_quit_force_run): New variable.
7627 (handle_sigterm): Replace quit_force call by other calls.
7628 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7630 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7632 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7633 offset into SPE pseudo registers.
7635 2014-03-18 Pedro Alves <palves@redhat.com>
7638 * inferior.h (print_stop_event): Declare.
7639 * infrun.c (print_stop_event): New, factored out from ...
7640 (normal_stop): ... this.
7641 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7642 of bpstat_print/print_stack_frame.
7644 2014-03-17 Tom Tromey <tromey@redhat.com>
7646 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7648 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7650 * ada-lang.c (decode_constrained_packed_array): Perform a
7651 minimal coercion for reference with coerce_ref instead of
7654 2014-03-17 Tristan Gingold <gingold@adacore.com>
7656 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7657 (darwin_solib_create_inferior_hook): Emit a warning if version
7660 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7662 * python/py-value.c (get_field_flag): Cast flag_name argument to
7663 PyObject_GetAttrString to support Python 2.4.
7665 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7667 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7668 (Global Maintainers): Remove Jan Kratochvil.
7670 2014-03-14 Pedro Alves <palves@redhat.com>
7672 * inferior.h (terminal_ours_for_output): Rename to ...
7673 (child_terminal_ours_for_output): ... this.
7674 (terminal_save_ours): Rename to ...
7675 (child_terminal_save_ours): ... this.
7676 (terminal_ours): Rename to ...
7677 (child_terminal_ours): ... this.
7678 (terminal_inferior): Rename to ...
7679 (child_terminal_inferior): ... this.
7680 (terminal_init_inferior): Rename to ...
7681 (child_terminal_init_inferior): ... this.
7682 (terminal_init_inferior_with_pgrp): Rename to ...
7683 (child_terminal_init_inferior_with_pgrp): ... this.
7684 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7685 (child_terminal_init_with_pgrp): ... this.
7686 (terminal_save_ours): Rename to ...
7687 (child_terminal_save_ours): ... this.
7688 (terminal_init_inferior): Rename to ...
7689 (child_terminal_init): ... this. Adjust.
7690 (terminal_inferior): Rename to ...
7691 (child_terminal_inferior): ... this.
7692 (terminal_ours_for_output): Rename to ...
7693 (child_terminal_ours_for_output): ... this. Adjust.
7694 (terminal_ours): Rename to ...
7695 (child_terminal_ours): ... this.
7696 (terminal_ours_1): Rename to ...
7697 (child_terminal_ours_1): ... this. Adjust.
7698 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7699 * windows-nat.c (do_initial_windows_stuff): Adjust.
7700 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7701 (gnu_terminal_init): ... this. Adjust.
7702 (gnu_target): Adjust.
7703 * inf-child.c (inf_child_target): Adjust.
7705 2014-03-13 Doug Evans <xdje42@gmail.com>
7708 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7711 2014-03-13 Doug Evans <xdje42@gmail.com>
7713 * value.c (record_latest_value): Call release_value_or_incref
7714 instead of release_value.
7716 2014-03-13 Pedro Alves <palves@redhat.com>
7718 * procfs.c (procfs_target): Don't override to_shortname,
7719 to_longname or to_doc.
7721 2014-03-13 Pedro Alves <palves@redhat.com>
7723 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7724 Unix in user visible strings.
7726 2014-03-12 Stan Shebs <stan@codesourcery.com>
7728 * gdbtypes.h: Annotate comments for Doxygen, add a page
7729 block comment with some general info.
7731 2014-03-12 Pedro Alves <palves@redhat.com>
7733 * infcmd.c (prepare_execution_command): New function, factored out
7734 from several execution commands.
7735 (run_command_1, continue_command, step_1, jump_command)
7736 (signal_command, until_command, advance_command, finish_command)
7737 (attach_command): Use prepare_execution_command.
7739 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7741 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7744 (struct arm_linux_thread_points): Removed.
7745 (struct arm_linux_process_info): New.
7746 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7747 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7748 (arm_linux_find_breakpoints_by_tid): Removed.
7749 (struct arch_lwp_info): New.
7750 (arm_linux_find_process_pid): New functions.
7751 (arm_linux_add_process): New functions.
7752 (arm_linux_process_info_get): New functions.
7753 (arm_linux_forget_process): New function.
7754 (arm_linux_get_debug_reg_state): New function.
7755 (struct update_registers_data): New.
7756 (update_registers_callback): New function.
7757 (arm_linux_insert_hw_breakpoint1): Updated.
7758 (arm_linux_remove_hw_breakpoint1): Updated.
7759 (arm_linux_insert_hw_breakpoint): Updated.
7760 (arm_linux_remove_hw_breakpoint): Updated.
7761 (arm_linux_insert_watchpoint): Updated.
7762 (arm_linux_remove_watchpoint): Updated.
7763 (arm_linux_new_thread): Updated.
7764 (arm_linux_prepare_to_resume): New function.
7765 (arm_linux_new_fork): New function.
7766 (_initialize_arm_linux_nat): Updated.
7768 2014-03-12 Pedro Alves <palves@redhat.com>
7770 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7772 2014-03-12 Tom Tromey <tromey@redhat.com>
7774 * inf-child.c (return_zero): New function.
7775 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7776 * aix-thread.c (aix_thread_inferior_created): New function.
7777 (aix_thread_attach): Remove.
7778 (init_aix_thread_ops): Don't set to_attach.
7779 (_initialize_aix_thread): Register inferior_created observer.
7780 * corelow.c (init_core_ops): Don't set to_attach or
7782 * exec.c (init_exec_ops): Don't set to_attach or
7784 * infcmd.c (run_command_1): Use find_run_target. Make direct
7786 (attach_command): Use find_attach_target. Make direct target
7788 * record-btrace.c (init_record_btrace_ops): Don't set
7790 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7792 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7793 set to_create_inferior.
7794 * target.c (complete_target_initialization): Add assertion.
7795 (target_create_inferior): Remove.
7796 (find_default_attach, find_default_create_inferior): Remove.
7797 (find_attach_target, find_run_target): New functions.
7798 (find_default_is_async_p, find_default_can_async_p)
7799 (target_supports_non_stop, target_attach): Remove.
7800 (init_dummy_target): Don't set to_create_inferior or
7801 to_supports_non_stop.
7802 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7803 TARGET_DEFAULT_FUNC.
7804 <to_create_inferior>: Add comment.
7805 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7806 TARGET_DEFAULT_RETURN.
7807 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7808 (find_attach_target, find_run_target): Declare.
7809 (target_create_inferior): Remove.
7810 (target_has_execution_1): Update comment.
7811 (target_supports_non_stop): Remove.
7812 * target-delegates.c: Rebuild.
7814 2014-03-12 Pedro Alves <palves@redhat.com>
7816 * inf-child.h: Update comment to not mention Unix.
7818 2014-03-12 Pedro Alves <palves@redhat.com>
7820 * inf-child.c: Update top comment to not mention Unix. Add
7821 generic comment describing how this target is meant to be used.
7822 (inf_child_post_attach, inf_child_post_startup_inferior)
7823 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7826 2014-03-12 Pedro Alves <palves@redhat.com>
7828 * nto-procfs.c: Include inf-child.h.
7829 (procfs_ops): Delete global.
7830 (procfs_can_run): Delete method.
7831 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7832 target pointer instead of referencing procfs_ops.
7833 (procfs_prepare_to_store): Delete.
7834 (init_procfs_ops): Delete function.
7835 (procfs_target): New function, based on init_procfs_ops, but
7836 inherit inf_child_target.
7837 (_initialize_procfs): Use procfs_target.
7839 2014-03-12 Pedro Alves <palves@redhat.com>
7841 * windows-nat.c: Include inf-child.h.
7842 (windows_ops): Delete global.
7843 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7845 (init_windows_ops): Delete function.
7846 (windows_target): New function, based on init_windows_ops, but
7847 inherit inf_child_target.
7848 (_initialize_windows_nat): Use windows_target. Install x86
7849 specific target methods here.
7851 2014-03-10 Doug Evans <xdje42@gmail.com>
7853 * guile/guile.c (call_initialize_gdb_module): New function.
7854 (initialize_guile): Replace call to scm_init_guile with call to
7857 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7859 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7860 in call to TYPE_CODE macro.
7862 2014-03-10 Jerome Guitton <guitton@adacore.com>
7864 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7865 Resolve tagged types to full view.
7867 2014-03-10 Hui Zhu <hui@codesourcery.com>
7869 * target.h (target_insert_breakpoint): Remove "hardware" from its
7872 2014-03-07 Doug Evans <dje@google.com>
7874 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7876 2014-03-07 Doug Evans <dje@google.com>
7878 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7879 Remove unused local comp_dir_attr. Assert exactly one of
7880 stub_comp_unit_die, stub_comp_dir is non-NULL.
7882 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7884 * target.h (complete_target_initialization, add_target):
7887 2014-03-07 Pedro Alves <palves@redhat.com>
7889 * go32-nat.c: Include inf-child.h.
7890 (go32_ops): Delete global.
7891 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7893 (go32_create_inferior): Push the passed in target pointer instead
7894 of referencing go32_ops.
7895 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7896 (go32_target): New function, based on init_go32_ops, but inherit
7898 (_initialize_go32_nat): Use go32_target. Move parts of
7901 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7903 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7904 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7905 SYMBOL_VALUE_ADDRESS.
7906 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7908 2014-03-06 Yao Qi <yao@codesourcery.com>
7910 * breakpoint.c (get_tracepoint_by_number): Remove argument
7911 optional_p. All callers updated. Adjust comments. Update
7913 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7915 2014-03-06 Yao Qi <yao@codesourcery.com>
7917 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7918 early if get_number returns zero. Use 'p' instead of 'args'.
7920 2014-03-06 Yao Qi <yao@codesourcery.com>
7922 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7925 2014-03-06 Yao Qi <yao@codesourcery.com>
7927 PR breakpoints/16508
7928 * tracepoint.c (check_trace_running): New function.
7929 (trace_find_command): Move code to check_trace_running and
7930 call check_trace_running.
7931 (trace_find_pc_command): Likewise.
7932 (trace_find_tracepoint_command): Likewise.
7933 (trace_find_line_command): Likewise.
7934 (trace_find_range_command): Likewise.
7935 * tracepoint.h (check_trace_running): Likewise.
7936 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7938 2014-03-06 Yao Qi <yao@codesourcery.com>
7940 * target.h (struct target_ops) <to_traceframe_info>: Use
7941 TARGET_DEFAULT_NORETURN (tcomplain ()).
7942 * target-delegates.c: Regenerated.
7944 2014-03-05 Pedro Alves <palves@redhat.com>
7947 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7948 void. Update comment.
7949 (dcache_xfer_memory): Delete.
7950 (dcache_read_memory_partial): New, based on the read bits of
7952 (dcache_update): Add status parameter. Use ULONGEST for len, and
7953 adjust. Discard cache lines if the reason for the update was
7955 * dcache.h (dcache_xfer_memory): Delete declaration.
7956 (dcache_read_memory_partial): New declaration.
7957 (dcache_update): Update prototype.
7958 * target.c (raw_memory_xfer_partial): Update the dcache here.
7959 (memory_xfer_partial_1): Don't handle dcache writes here.
7961 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7963 * remote-sim.c (gdbsim_load): Add const to prog.
7965 2014-03-03 Tom Tromey <tromey@redhat.com>
7967 * elfread.c (probe_key): Change to bfd_data.
7968 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7969 now per-BFD, not per-objfile.
7970 * stap-probe.c (stap_probe_destroy): Update comment.
7971 (handle_stap_probe): Allocate on the per-BFD obstack.
7973 2014-03-03 Tom Tromey <tromey@redhat.com>
7975 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7976 * breakpoint.c (create_longjmp_master_breakpoint): Use
7978 (add_location_to_breakpoint, bkpt_probe_insert_location)
7979 (bkpt_probe_remove_location): Update.
7980 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7981 * elfread.c (elf_symfile_relocate_probe): Remove.
7982 (elf_probe_fns): Update.
7983 (insert_exception_resume_breakpoint): Change type of "probe"
7984 parameter to bound_probe.
7985 (check_exception_resume): Update.
7986 * objfiles.c (objfile_relocate1): Don't relocate probes.
7987 * probe.c (bound_probe_s): New typedef.
7988 (parse_probes): Use get_probe_address. Set sal's objfile.
7989 (find_probe_by_pc): Return a bound_probe.
7990 (collect_probes): Return a VEC(bound_probe_s).
7991 (compare_probes): Update.
7992 (gen_ui_out_table_header_info): Change type of "probes"
7994 (info_probes_for_ops): Update.
7995 (get_probe_address): New function.
7996 (probe_safe_evaluate_at_pc): Update.
7997 * probe.h (struct probe_ops) <get_probe_address>: New field.
7998 <set_semaphore, clear_semaphore>: Add objfile parameter.
7999 (struct probe) <objfile>: Remove field.
8001 <address>: Update comment.
8002 (struct bound_probe): New.
8003 (find_probe_by_pc): Return a bound_probe.
8004 (get_probe_address): Declare.
8005 * solib-svr4.c (struct probe_and_action) <address>: New field.
8006 (hash_probe_and_action, equal_probe_and_action): Update.
8007 (register_solib_event_probe): Add address parameter.
8008 (solib_event_probe_at): Update.
8009 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8011 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8012 (stap_get_probe_address): New function.
8013 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8014 (compile_probe_arg): Update.
8015 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8017 (handle_stap_probe): Don't relocate the probe.
8018 (stap_relocate): Remove.
8019 (stap_gen_info_probes_table_values): Update.
8020 (stap_probe_ops): Remove stap_relocate.
8021 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8022 (debug_sym_probe_fns): Update.
8023 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8024 * symtab.c (init_sal): Use memset.
8025 * symtab.h (struct symtab_and_line) <objfile>: New field.
8026 * tracepoint.c (start_tracing, stop_tracing): Update.
8028 2014-03-03 Tom Tromey <tromey@redhat.com>
8030 * probe.h (parse_probes, find_probe_by_pc)
8031 (find_probes_in_objfile): Fix comments.
8033 2014-03-02 Doug Evans <xdje42@gmail.com>
8035 * infrun.c (handle_signal_stop): Replace test for
8036 TARGET_WAITKIND_STOPPED with an assert.
8038 2014-03-02 Doug Evans <xdje42@gmail.com>
8040 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8042 2014-03-02 Doug Evans <xdje42@gmail.com>
8044 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8046 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8048 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8050 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8052 * i386obsd-nat.c: Include "obsd-nat.h".
8053 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8055 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8057 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8059 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8061 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8063 * mips64obsd-nat.c: Include "obsd-nath".
8064 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8066 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8068 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8070 * amd64obsd-nat.c: Include "obsd-nat,h.
8071 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8073 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8075 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8077 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8078 (find_overload_match): Update call to find_oload_champ.
8079 (find_oload_champ_namespace_loop): Likewise
8081 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8083 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8085 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8086 * config/sparc/obsd64.mh: New file.
8087 * sparc64obsd-nat.c: New file.
8089 * obsd-nat.h: New file.
8090 * obsd-nat.c: New file.
8091 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8092 (ALLDEPFILES): Add obsd-nat.c.
8094 2014-02-28 Tom Tromey <tromey@redhat.com>
8096 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8097 * cli-out.h (cli_ui_out_impl): Now const.
8098 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8099 * ui-out.c (struct ui_out) <impl>: Now const.
8100 (default_ui_out_impl): Now const.
8101 (ui_out_new): Make 'impl' parameter const.
8102 * ui-out.h (ui_out_new): Update.
8104 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8106 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8108 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8110 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8112 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8114 Additional PR 8882 fix.
8115 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8117 2014-02-27 Pedro Alves <palves@redhat.com>
8119 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8122 2014-02-27 Pedro Alves <palves@redhat.com>
8125 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8126 * nat/linux-waitpid.c: Include string.h.
8127 (status_to_str): Moved here and made extern.
8128 * nat/linux-waitpid.h (status_to_str): New declaration.
8130 2014-02-27 Hui Zhu <hui@codesourcery.com>
8133 * infrun.c (ptid_match): Move ...
8134 * common/ptid.c (ptid_match): ... here.
8135 * inferior.h (ptid_match): Move ...
8136 * common/ptid.h (ptid_match): ... here.
8138 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8140 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8141 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8144 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8146 * obsd-tdep.c (obsd_auxv_parse): New function.
8147 (obsd_init_abi): Set auxv_parse.
8149 * gdbarch.sh (auxv_parse): New.
8150 * gdbarch.h: Regenerated.
8151 * gdbarch.c: Regenerated.
8152 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8154 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8156 * guile/scm-value.c (gdbscm_history_append_x): New function.
8157 (value_functions): Add it.
8159 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8161 * dwarf2read.c (attr_value_as_address): New function.
8162 (dwarf2_find_base_address, read_call_site_scope): Use
8163 attr_value_as_address in place of DW_ADDR.
8164 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8165 the low and high addresses. Slight rework of the handling
8166 of the high pc being a constant form, and limit it to
8167 DWARF verson 4 or higher.
8168 (dwarf2_record_block_ranges): Likewise.
8169 (read_partial_die): Likewise.
8170 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8172 2014-02-26 Tom Tromey <tromey@redhat.com>
8174 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8176 2014-02-26 Tom Tromey <tromey@redhat.com>
8178 * elfread.c (elf_read_minimal_symbols): Return early if
8179 minimal symbols have already been read. Add "ei" parameter.
8180 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8181 * minsyms.c (prim_record_minimal_symbol_full): Update.
8182 * objfiles.h (struct objstats) <n_minsyms>: Move...
8183 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8184 * symmisc.c (print_objfile_statistics): Update.
8186 2014-02-26 Tom Tromey <tromey@redhat.com>
8188 * elfread.c (elf_read_minimal_symbols): New function, from
8190 (elf_symfile_read): Call it.
8192 2014-02-26 Tom Tromey <tromey@redhat.com>
8194 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8195 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8196 (lookup_minimal_symbol_solib_trampoline)
8197 (lookup_minimal_symbol_by_pc_section_1)
8198 (lookup_minimal_symbol_and_objfile): Update.
8199 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8200 Don't allocate a minimal symbol if minsyms have already been read.
8201 (build_minimal_symbol_hash_tables): Update.
8202 (install_minimal_symbols): Do nothing if minsyms already read.
8203 Use the per-BFD obstack.
8204 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8205 * objfiles.c (allocate_objfile): Call
8206 terminate_minimal_symbol_table later.
8207 (have_minimal_symbols): Update.
8208 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8209 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8210 Move from struct objfile.
8211 <minsyms_read>: New field.
8212 (struct objfile) <msymbols, minimal_symbol_count,
8213 msymbol_hash, msymbol_demangled_hash>: Move.
8214 (ALL_OBJFILE_MSYMBOLS): Update.
8215 * symfile.c (read_symbols): Set minsyms_read.
8216 (reread_symbols): Update.
8217 * symmisc.c (dump_objfile, dump_msymbols): Update.
8219 2014-02-26 Tom Tromey <tromey@redhat.com>
8221 * minsyms.c (msymbols_sort): Remove.
8222 * minsyms.h (msymbols_sort): Remove.
8223 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8224 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8225 * elfread.c (elf_symtab_read): Don't add section offsets.
8226 * xcoffread.c (record_minimal_symbol): Don't add section offset
8227 to minimal symbol address.
8228 * somread.c (text_offset, data_offset): Remove.
8229 (som_symtab_read): Don't add section offsets to minimal symbol
8231 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8232 Don't add section offsets to minimal symbols.
8233 * coffread.c (coff_symtab_read): Don't add section offsets
8234 to minimal symbol addresses.
8235 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8236 to minimal symbol addresses.
8237 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8238 section offset to minimal symbol addresses.
8239 * mdebugread.c (parse_partial_symbols): Don't add section
8240 offset to minimal symbol addresses.
8241 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8242 offset to minimal symbol addresses.
8244 2014-02-26 Tom Tromey <tromey@redhat.com>
8246 * ada-lang.c (ada_main_name): Update.
8247 (ada_add_standard_exceptions): Update.
8248 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8249 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8250 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8251 * auxv.c (ld_so_xfer_auxv): Update.
8252 * avr-tdep.c (avr_scan_prologue): Update.
8253 * ax-gdb.c (gen_var_ref): Update.
8254 * blockframe.c (get_pc_function_start)
8255 (find_pc_partial_function_gnu_ifunc): Update.
8256 * breakpoint.c (create_overlay_event_breakpoint)
8257 (create_longjmp_master_breakpoint)
8258 (create_std_terminate_master_breakpoint)
8259 (create_exception_master_breakpoint): Update.
8260 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8261 * c-valprint.c (c_val_print): Update.
8262 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8263 * common/agent.c (agent_look_up_symbols): Update.
8264 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8265 * dwarf2loc.c (call_site_to_target_addr): Update.
8266 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8267 * elfread.c (elf_gnu_ifunc_record_cache)
8268 (elf_gnu_ifunc_resolve_by_got): Update.
8269 * findvar.c (default_read_var_value): Update.
8270 * frame.c (inside_main_func): Update.
8271 * frv-tdep.c (frv_frame_this_id): Update.
8272 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8273 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8275 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8276 (hppa_hpux_find_dummy_bpaddr): Update.
8277 * hppa-tdep.c (hppa_symbol_address): Update.
8278 * infcmd.c (until_next_command): Update.
8279 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8281 * linespec.c (minsym_found, add_minsym): Update.
8282 * linux-nat.c (get_signo): Update.
8283 * linux-thread-db.c (inferior_has_bug): Update.
8284 * m32c-tdep.c (m32c_return_value)
8285 (m32c_m16c_address_to_pointer): Update.
8286 * m32r-tdep.c (m32r_frame_this_id): Update.
8287 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8288 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8289 * maint.c (maintenance_translate_address): Update.
8290 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8291 (frob_address): New function.
8292 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8293 frob_address. Rename parameter to "pc_in".
8294 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8296 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8298 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8299 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8300 * objc-lang.c (find_objc_msgsend): Update.
8301 * objfiles.c (objfile_relocate1): Update.
8302 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8303 * p-valprint.c (pascal_val_print): Update.
8304 * parse.c (write_exp_msymbol): Update.
8305 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8306 (ppc_elfv2_skip_entrypoint): Update.
8307 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8308 * printcmd.c (build_address_symbolic, msym_info)
8309 (address_info): Update.
8310 * proc-service.c (ps_pglobal_lookup): Update.
8311 * psymtab.c (find_pc_sect_psymtab_closer)
8312 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8313 Change msymbol parameter to bound_minimal_symbol.
8314 * ravenscar-thread.c (get_running_thread_id): Update.
8315 * remote.c (remote_check_symbols): Update.
8316 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8318 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8319 * solib-dsbt.c (lm_base): Update.
8320 * solib-frv.c (lm_base, main_got): Update.
8321 * solib-irix.c (locate_base): Update.
8322 * solib-som.c (som_solib_create_inferior_hook)
8323 (link_map_start): Update.
8324 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8325 * solib-svr4.c (elf_locate_base, enable_break): Update.
8326 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8327 (flush_ea_cache): Update.
8328 * stabsread.c (define_symbol, scan_file_globals): Update.
8329 * stack.c (find_frame_funname): Update.
8330 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8331 (debug_qf_find_pc_sect_symtab): Update.
8332 * symfile.c (simple_read_overlay_table)
8333 (simple_overlay_update): Update.
8334 * symfile.h (struct quick_symbol_functions)
8335 <find_pc_sect_symtab>: Change type of msymbol to
8336 bound_minimal_symbol.
8337 * symmisc.c (dump_msymbols): Update.
8338 * symtab.c (find_pc_sect_symtab_via_partial)
8339 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8340 (search_symbols, print_msymbol_info): Update.
8341 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8342 (MSYMBOL_VALUE_ADDRESS): Redefine.
8343 (BMSYMBOL_VALUE_ADDRESS): New macro.
8344 * tracepoint.c (scope_info): Update.
8345 * tui/tui-disasm.c (tui_find_disassembly_address)
8346 (tui_get_begin_asm_address): Update.
8347 * valops.c (find_function_in_inferior): Update.
8348 * value.c (value_static_field, value_fn_field): Update.
8350 2014-02-26 Tom Tromey <tromey@redhat.com>
8352 * ada-lang.c (ada_update_initial_language): Update.
8353 (ada_main_name, ada_has_this_exception_support): Update.
8354 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8355 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8356 * arm-tdep.c (arm_skip_stub): Update.
8357 * auxv.c (ld_so_xfer_auxv): Update.
8358 * avr-tdep.c (avr_scan_prologue): Update.
8359 * ax-gdb.c (gen_var_ref): Update.
8360 * breakpoint.c (struct breakpoint_objfile_data)
8361 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8362 type to bound_minimal_symbol.
8363 (create_overlay_event_breakpoint)
8364 (create_longjmp_master_breakpoint)
8365 (create_std_terminate_master_breakpoint)
8366 (create_exception_master_breakpoint): Update.
8367 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8368 * c-exp.y (classify_name): Update.
8369 * coffread.c (coff_symfile_read): Update.
8370 * common/agent.c (agent_look_up_symbols): Update.
8371 * d-lang.c (d_main_name): Update.
8372 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8373 * dec-thread.c (enable_dec_thread): Update.
8374 * dwarf2loc.c (call_site_to_target_addr): Update.
8375 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8376 * eval.c (evaluate_subexp_standard): Update.
8377 * findvar.c (struct minsym_lookup_data) <result>: Change type
8378 to bound_minimal_symbol.
8380 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8381 * frame.c (inside_main_func): Update.
8382 * frv-tdep.c (frv_frame_this_id): Update.
8383 * gcore.c (call_target_sbrk): Update.
8384 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8385 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8387 * go-lang.c (go_main_name): Update.
8388 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8389 (hppa_hpux_find_import_stub_for_addr): Update.
8390 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8391 Update. Change return type.
8392 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8394 * jit.c (jit_breakpoint_re_set_internal): Update.
8395 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8397 * linux-nat.c (get_signo): Update.
8398 * linux-thread-db.c (inferior_has_bug): Update
8399 * m32c-tdep.c (m32c_return_value)
8400 (m32c_m16c_address_to_pointer): Update.
8401 * m32r-tdep.c (m32r_frame_this_id): Update.
8402 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8403 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8404 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8405 lookup_minimal_symbol. Change return type.
8406 (lookup_minimal_symbol): Remove.
8407 (lookup_bound_minimal_symbol): Update.
8408 (lookup_minimal_symbol_text): Change return type.
8409 (lookup_minimal_symbol_solib_trampoline): Change return type.
8410 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8411 (lookup_minimal_symbol_solib_trampoline): Change return type.
8412 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8413 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8414 (value_nsstring, find_imps): Update.
8415 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8416 * p-lang.c (pascal_main_name): Update.
8417 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8418 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8419 * proc-service.c (ps_pglobal_lookup): Update.
8420 * ravenscar-thread.c (get_running_thread_msymbol): Change
8422 (has_ravenscar_runtime, get_running_thread_id): Update.
8423 * remote.c (remote_check_symbols): Update.
8424 * sol-thread.c (ps_pglobal_lookup): Update.
8425 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8426 * solib-dsbt.c (lm_base): Update.
8427 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8429 * solib-irix.c (locate_base): Update.
8430 * solib-som.c (som_solib_create_inferior_hook)
8431 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8433 * solib-spu.c (spu_enable_break): Update.
8434 * solib-svr4.c (elf_locate_base, enable_break): Update.
8435 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8436 (flush_ea_cache): Update.
8437 * stabsread.c (define_symbol): Update.
8438 * symfile.c (simple_read_overlay_table): Update.
8439 * symtab.c (find_pc_sect_line): Update.
8440 * tracepoint.c (scope_info): Update.
8441 * tui-disasm.c (tui_get_begin_asm_address): Update.
8442 * value.c (value_static_field): Update.
8444 2014-02-26 Tom Tromey <tromey@redhat.com>
8446 * minsyms.c (prim_record_minimal_symbol_full): Use
8447 SET_MSYMBOL_VALUE_ADDRESS.
8448 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8449 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8450 SET_MSYMBOL_VALUE_ADDRESS.
8451 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8452 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8454 2014-02-26 Tom Tromey <tromey@redhat.com>
8456 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8457 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8458 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8459 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8460 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8461 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8462 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8463 * ada-lang.c (ada_main_name): Update.
8464 (ada_lookup_simple_minsym): Update.
8465 (ada_make_symbol_completion_list): Update.
8466 (ada_add_standard_exceptions): Update.
8467 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8468 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8469 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8470 * arm-tdep.c (skip_prologue_function): Update.
8471 (arm_skip_stack_protector, arm_skip_stub): Update.
8472 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8473 (arm_wince_skip_main_prologue): Update.
8474 * auxv.c (ld_so_xfer_auxv): Update.
8475 * avr-tdep.c (avr_scan_prologue): Update.
8476 * ax-gdb.c (gen_var_ref): Update.
8477 * block.c (call_site_for_pc): Update.
8478 * blockframe.c (get_pc_function_start): Update.
8479 (find_pc_partial_function_gnu_ifunc): Update.
8480 * breakpoint.c (create_overlay_event_breakpoint): Update.
8481 (create_longjmp_master_breakpoint): Update.
8482 (create_std_terminate_master_breakpoint): Update.
8483 (create_exception_master_breakpoint): Update.
8484 (resolve_sal_pc): Update.
8485 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8486 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8488 * c-valprint.c (c_val_print): Update.
8489 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8490 * coffread.c (coff_symfile_read): Update.
8491 * common/agent.c (agent_look_up_symbols): Update.
8492 * dbxread.c (find_stab_function_addr): Update.
8493 (end_psymtab): Update.
8494 * dwarf2loc.c (call_site_to_target_addr): Update.
8495 (func_verify_no_selftailcall): Update.
8496 (tailcall_dump): Update.
8497 (call_site_find_chain_1): Update.
8498 (dwarf_expr_reg_to_entry_parameter): Update.
8499 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8500 (elf_gnu_ifunc_resolve_by_got): Update.
8501 * f-valprint.c (info_common_command): Update.
8502 * findvar.c (read_var_value): Update.
8503 * frame.c (get_prev_frame_1): Update.
8504 (inside_main_func): Update.
8505 * frv-tdep.c (frv_skip_main_prologue): Update.
8506 (frv_frame_this_id): Update.
8507 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8508 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8509 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8510 (gnuv3_skip_trampoline): Update.
8511 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8512 (hppa64_hpux_in_solib_call_trampoline): Update.
8513 (hppa_hpux_skip_trampoline_code): Update.
8514 (hppa64_hpux_search_dummy_call_sequence): Update.
8515 (hppa_hpux_find_import_stub_for_addr): Update.
8516 (hppa_hpux_find_dummy_bpaddr): Update.
8517 * hppa-tdep.c (hppa_symbol_address)
8518 (hppa_lookup_stub_minimal_symbol): Update.
8519 * i386-tdep.c (i386_skip_main_prologue): Update.
8520 (i386_pe_skip_trampoline_code): Update.
8521 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8522 * infcall.c (get_function_name): Update.
8523 * infcmd.c (until_next_command): Update.
8524 * jit.c (jit_breakpoint_re_set_internal): Update.
8525 (jit_inferior_init): Update.
8526 * linespec.c (minsym_found): Update.
8527 (add_minsym): Update.
8528 * linux-fork.c (info_checkpoints_command): Update.
8529 * linux-nat.c (get_signo): Update.
8530 * linux-thread-db.c (inferior_has_bug): Update.
8531 * m32c-tdep.c (m32c_return_value): Update.
8532 (m32c_m16c_address_to_pointer): Update.
8533 (m32c_m16c_pointer_to_address): Update.
8534 * m32r-tdep.c (m32r_frame_this_id): Update.
8535 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8536 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8537 * maint.c (maintenance_translate_address): Update.
8538 * minsyms.c (add_minsym_to_hash_table): Update.
8539 (add_minsym_to_demangled_hash_table): Update.
8540 (msymbol_objfile): Update.
8541 (lookup_minimal_symbol): Update.
8542 (iterate_over_minimal_symbols): Update.
8543 (lookup_minimal_symbol_text): Update.
8544 (lookup_minimal_symbol_by_pc_name): Update.
8545 (lookup_minimal_symbol_solib_trampoline): Update.
8546 (lookup_minimal_symbol_by_pc_section_1): Update.
8547 (lookup_minimal_symbol_and_objfile): Update.
8548 (prim_record_minimal_symbol_full): Update.
8549 (compare_minimal_symbols): Update.
8550 (compact_minimal_symbols): Update.
8551 (build_minimal_symbol_hash_tables): Update.
8552 (install_minimal_symbols): Update.
8553 (terminate_minimal_symbol_table): Update.
8554 (find_solib_trampoline_target): Update.
8555 (minimal_symbol_upper_bound): Update.
8556 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8557 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8558 (mips_skip_pic_trampoline_code): Update.
8559 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8560 * objc-lang.c (selectors_info): Update.
8561 (classes_info): Update.
8562 (find_methods): Update.
8563 (find_imps): Update.
8564 (find_objc_msgsend): Update.
8565 * objfiles.c (objfile_relocate1): Update.
8566 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8567 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8568 * p-valprint.c (pascal_val_print): Update.
8569 * parse.c (write_exp_msymbol): Update.
8570 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8571 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8572 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8573 * printcmd.c (build_address_symbolic): Update.
8575 (address_info): Update.
8576 * proc-service.c (ps_pglobal_lookup): Update.
8577 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8578 (find_pc_sect_psymtab): Update.
8579 * python/py-framefilter.c (py_print_frame): Update.
8580 * ravenscar-thread.c (get_running_thread_id): Update.
8581 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8583 * remote.c (remote_check_symbols): Update.
8584 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8585 (rs6000_skip_trampoline_code): Update.
8586 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8587 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8588 * solib-dsbt.c (lm_base): Update.
8589 * solib-frv.c (lm_base): Update.
8591 * solib-irix.c (locate_base): Update.
8592 * solib-som.c (som_solib_create_inferior_hook): Update.
8593 (som_solib_desire_dynamic_linker_symbols): Update.
8594 (link_map_start): Update.
8595 * solib-spu.c (spu_enable_break): Update.
8596 (ocl_enable_break): Update.
8597 * solib-svr4.c (elf_locate_base): Update.
8598 (enable_break): Update.
8599 * spu-tdep.c (spu_get_overlay_table): Update.
8600 (spu_catch_start): Update.
8601 (flush_ea_cache): Update.
8602 * stabsread.c (define_symbol): Update.
8603 (scan_file_globals): Update.
8604 * stack.c (find_frame_funname): Update.
8605 (frame_info): Update.
8606 * symfile.c (simple_read_overlay_table): Update.
8607 (simple_overlay_update): Update.
8608 * symmisc.c (dump_msymbols): Update.
8609 * symtab.c (fixup_section): Update.
8610 (find_pc_sect_line): Update.
8611 (skip_prologue_sal): Update.
8612 (search_symbols): Update.
8613 (print_msymbol_info): Update.
8614 (rbreak_command): Update.
8615 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8616 (completion_list_objc_symbol): Update.
8617 (default_make_symbol_completion_list_break_on): Update.
8618 * tracepoint.c (scope_info): Update.
8619 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8620 (tui_get_begin_asm_address): Update.
8621 * valops.c (find_function_in_inferior): Update.
8622 * value.c (value_static_field): Update.
8623 (value_fn_field): Update.
8625 2014-02-26 Tom Tromey <tromey@redhat.com>
8627 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8628 bound minimal symbols. Move code that knows about minsym
8630 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8632 * minsyms.h (minimal_symbol_upper_bound): Declare.
8633 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8634 minimal_symbol_upper_bound.
8636 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8638 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8639 Use the type's name if its basic type does not have a tag.
8641 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8643 * dwarf2read.c (read_subrange_type): Add comment.
8645 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8647 * dwarf2read.c (update_enumeration_type_from_children): New
8648 function, mostly extracted from process_structure_scope.
8649 (read_enumeration_type): Call update_enumeration_type_from_children.
8650 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8651 and flag_flag_enum fields.
8653 2014-02-26 Pedro Alves <palves@redhat.com>
8655 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8656 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8657 to_xfer_partial method.
8659 2014-02-26 Pedro Alves <palves@redhat.com>
8661 * target.c (complete_target_initialization): Don't install
8662 default_xfer_partial as to_xfer_partial hook.
8664 (update_current_target): Don't INHERIT nor de_fault
8665 deprecated_xfer_memory. Delete de_fault macro.
8666 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8667 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8668 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8671 2014-02-26 Pedro Alves <palves@redhat.com>
8673 * go32-nat.c (my_write_child): New function.
8674 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8675 (go32_xfer_partial): New function.
8676 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8677 Instead install a to_xfer_partial hook.
8679 2014-02-26 Pedro Alves <palves@redhat.com>
8681 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8682 to_xfer_partial helper. Rewrite.
8683 (procfs_xfer_partial): New function.
8684 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8685 Install a to_xfer_partial hook.
8687 2014-02-26 Pedro Alves <palves@redhat.com>
8689 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8690 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8691 (m32r_xfer_partial): New function.
8692 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8693 Install a to_xfer_partial hook.
8695 2014-02-26 Pedro Alves <palves@redhat.com>
8697 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8699 (mips_xfer_partial): New function.
8700 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8701 hook. Install a to_xfer_partial hook.
8703 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8705 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8706 * gdbtypes.c (create_array_type_with_stride): New function,
8707 renaming create_array_type, but with an added parameter
8708 called "bit_stride".
8709 (create_array_type): Re-implement using
8710 create_array_type_with_stride.
8711 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8712 and DW_AT_bit_stride attributes.
8714 2014-02-26 Pedro Alves <palves@redhat.com>
8716 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8717 task-specific breakpoints.
8719 2014-02-25 Pedro Alves <palves@redhat.com>
8721 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8722 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8724 2014-02-25 Stan Shebs <stan@codesourcery.com>
8726 * defs.h: Annotate comments for Doxygen.
8728 2014-02-25 Tom Tromey <tromey@redhat.com>
8730 * target.h (target_ignore): Don't declare.
8731 * target.c (target_ignore): Remove.
8733 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8736 * auto-load.c (auto_load_objfile_script_1): Change filename to
8739 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8741 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8742 documentation. Adjust prototype to match the target_ops
8743 to_xfer_partial method. Adjust implementation accordingly.
8745 2014-02-25 Hui Zhu <hui@codesourcery.com>
8747 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8750 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8752 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8753 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8754 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8755 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8756 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8757 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8758 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8759 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8761 (rl78_register_type): Use a data pointer type for SP and
8762 new pseudo registers mentioned above. Use a 16 bit integer
8763 type for all other register pairs.
8764 (rl78_register_name, rl78_g10_register_name): Update for
8765 new pseudo registers.
8766 (rl78_pseudo_register_read): Likewise.
8767 (rl78_pseudo_register_write): Likewise.
8768 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8769 to the newly added pseudo registers.
8771 2014-02-24 Doug Evans <dje@google.com>
8773 * value.c (record_latest_value): Fix comment.
8774 * printcmd.c (print_command_1): Remove code to handle -1 return from
8775 record_latest_value.
8777 2014-02-24 Pedro Alves <palves@redhat.com>
8779 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8780 deprecated_xfer_memory hook.
8781 (procfs_xfer_partial): Call procfs_xfer_memory instead
8782 of the deprecated_xfer_memory target hook.
8783 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8786 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8788 * windows-nat.c (windows_xfer_shared_libraries): Return
8789 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8790 requested object is TARGET_OBJECT_LIBRARIES.
8792 2014-02-24 Yao Qi <yao@codesourcery.com>
8794 * target.h (enum target_xfer_status)
8795 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8796 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8798 * corefile.c (memory_error_message): User updated.
8799 * exec.c (section_table_read_available_memory): Likewise.
8800 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8801 * target.c (target_xfer_status_to_string): Likewise.
8802 (raw_memory_xfer_partial): Likewise.
8803 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8804 * valops.c (read_value_memory): Likewise.
8805 * exec.h: Update comments.
8807 2014-02-24 Yao Qi <yao@codesourcery.com>
8809 * target.c (target_xfer_status_to_string): Rename argument err
8811 * target.h (target_xfer_status_to_string): Update declaration.
8812 Replace target_xfer_error_to_string with
8813 target_xfer_status_to_string in comment.
8815 2014-02-24 Yao Qi <yao@codesourcery.com>
8817 * mips-linux-nat.c (super_close): Update its type.
8818 (mips_linux_close): Pass 'self' to super_close.
8820 2014-02-24 Yao Qi <yao@codesourcery.com>
8822 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8823 * corefile.c (read_memory): Adjusted.
8824 * target.c (target_write_with_progress): Adjusted.
8826 2014-02-23 Yao Qi <yao@codesourcery.com>
8830 2013-10-25 Yao Qi <yao@codesourcery.com>
8832 * remote.c (remote_traceframe_info): Return early if
8833 traceframe is not selected.
8835 2013-07-19 Yao Qi <yao@codesourcery.com>
8837 * target.c (update_current_target): Change the default action
8838 of 'to_traceframe_info' from tcomplain to return_zero.
8839 * target.h (struct target_ops) <to_traceframe_info>: Add more
8842 2014-02-23 Yao Qi <yao@codesourcery.com>
8844 * valops.c (read_value_memory): Rewrite it. Call
8845 target_xfer_partial in a loop.
8846 * exec.h (section_table_available_memory): Remove declaration.
8847 Move comments to ...
8848 * exec.c (section_table_available_memory): ... here. Make it
8851 2014-02-23 Yao Qi <yao@codesourcery.com>
8853 * exec.c (section_table_read_available_memory): New function.
8854 * exec.h (section_table_read_available_memory): Declare.
8855 * ctf.c (ctf_xfer_partial): Call
8856 section_table_read_available_memory.
8857 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8859 2014-02-23 Yao Qi <yao@codesourcery.com>
8861 * ctf.c (ctf_xfer_partial): Move code to ...
8862 * exec.c (exec_read_partial_read_only): ... it. New function.
8863 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8864 * tracefile.c: Include "exec.h".
8865 * exec.h (exec_read_partial_read_only): Declare.
8867 2014-02-23 Yao Qi <yao@codesourcery.com>
8869 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8870 (tfile_has_memory): Remove.
8871 (init_tfile_ops): Don't set fields to_has_all_memory and
8872 to_has_memory of tfile_ops.
8873 * tracefile.c (tracefile_has_all_memory): New function.
8874 (tracefile_has_memory): New function.
8875 (init_tracefile_ops): Initialize fields to_has_all_memory and
8876 to_has_memory of 'ops'.
8878 2014-02-23 Yao Qi <yao@codesourcery.com>
8880 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8881 (ctf_thread_alive, ctf_get_trace_status): Remove.
8882 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8884 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8885 (tfile_has_stack, tfile_has_registers): Remove.
8886 (tfile_thread_alive): Remove.
8887 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8889 * tracefile.c (tracefile_has_stack): New function.
8890 (tracefile_has_registers): New function.
8891 (tracefile_thread_alive): New function.
8892 (tracefile_get_trace_status): New function.
8893 (init_tracefile_ops): New function.
8894 * tracefile.h (init_tracefile_ops): Declare.
8896 2014-02-23 Yao Qi <yao@codesourcery.com>
8898 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8899 (O_LARGEFILE): Likewise.
8900 (tfile_ops): Likewise.
8901 (TRACE_HEADER_SIZE): Likewise.
8902 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8903 (cur_data_size): Likewise.
8904 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8905 (tfile_close, tfile_files_info): Likewise.
8906 (tfile_get_trace_status): Likewise.
8907 (tfile_get_tracepoint_status): Likewise.
8908 (tfile_get_traceframe_address): Likewise.
8909 (tfile_trace_find, match_blocktype): Likewise.
8910 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8911 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8912 (tfile_get_trace_state_variable_value): Likewise.
8913 (tfile_has_all_memory, tfile_has_memory): Likewise.
8914 (tfile_has_stack, tfile_has_registers): Likewise.
8915 (tfile_thread_alive, build_traceframe_info): Likewise.
8916 (tfile_traceframe_info, init_tfile_ops): Likewise.
8917 (_initialize_tracepoint): Don't call init_tfile_ops
8918 and add_target_with_completer.
8919 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8920 exec.h, completer.h and filenames.h.
8921 (_initialize_tracefile_tfile): New function.
8923 2014-02-23 Yao Qi <yao@codesourcery.com>
8925 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8927 (HFILES_NO_SRCDIR): Add tracefile.h.
8928 * ctf.c: Include "tracefile.h".
8929 * tracefile.h: New file.
8930 * tracefile.c: New file
8931 * tracefile-tfile.c: New file.
8932 * tracepoint.c: Include "tracefile.h".
8933 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8934 (stop_reason_names): Add const.
8935 (trace_file_writer_xfree): Move it to tracefile.c.
8936 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8937 (trace_save_ctf): Likewise.
8938 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8939 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8940 (tfile_write_header, tfile_write_regblock_type): Likewise.
8941 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8942 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8943 (tfile_write_raw_data, tfile_end): Likewise.
8944 (tfile_trace_file_writer_new): Likewise.
8945 (free_uploaded_tp): Make it extern.
8946 (free_uploaded_tsv): Make it extern.
8947 (_initialize_tracepoint): Move code to register command 'tsave'
8949 * tracepoint.h (stop_reason_names): Declare.
8950 (struct trace_frame_write_ops): Move it to tracefile.h.
8951 (struct trace_file_write_ops): Likewise.
8952 (struct trace_file_writer): Likewise.
8953 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8955 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8958 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8960 (get_cores_used_by_process): New parameter num_cores, use it.
8961 (linux_xfer_osdata_processes): Pass num_cores to it.
8962 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8965 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8967 * target.c (memory_xfer_partial): Fix length arg in call to
8968 breakpoint_xfer_memory.
8970 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8973 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8974 number comes after the + or - signs. Adjust length of register
8975 name to be extracted.
8977 2014-02-20 Tom Tromey <tromey@redhat.com>
8979 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8980 (ada_varobj_ops): Mark "extern".
8982 2014-02-20 Tom Tromey <tromey@redhat.com>
8984 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8986 2014-02-20 Doug Evans <xdje42@gmail.com>
8988 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8989 All callers updated.
8990 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8991 All callers updated.
8992 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8993 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8995 2014-02-20 lin zuojian <manjian2006@gmail.com>
8996 Joel Brobecker <brobecker@adacore.com>
8997 Doug Evans <xdje42@gmail.com>
9000 * dwarf2read.c (struct die_info): New member in_process.
9001 (reset_die_in_process): New function.
9002 (process_die): Set it at the start, reset when returning.
9003 (inherit_abstract_dies): Only call process_die if origin_child_die
9004 not already being processed.
9006 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9008 * windows-nat.c (handle_unload_dll): Add function documentation.
9009 (do_initial_windows_stuff): Add comment explaining why we wait
9010 until after inferior initialization has finished before
9011 processing all DLLs.
9013 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9015 * windows-nat.c (get_module_name): Delete.
9016 (windows_get_exec_module_filename): New function, mostly
9017 inspired from get_module_name.
9018 (windows_pid_to_exec_file): Replace call to get_module_name
9019 by call to windows_get_exec_module_filename.
9021 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9023 * windows-nat.c (handle_load_dll): Rewrite this function's
9024 introductory comment. Remove code using get_module_name
9025 to get the DLL's name.
9027 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9029 * windows-nat.c (get_windows_debug_event): Ignore
9030 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9031 if windows_initialization_done == 0.
9032 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9033 Adjust implementation to always load all DLLs.
9034 (do_initial_windows_stuff): Replace call to
9035 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9037 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9039 * windows-nat.c (_initialize_windows_nat): Deprecate the
9040 "dll-symbols" command. Turn the "add-shared-symbol-files"
9041 and "assf" aliases into commands, and deprecate them as well.
9042 * NEWS: Add entry explaining that "dll-symbols" and its two
9043 aliases are now deprecated.
9045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9047 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9048 new-line in debug string. Remove trailing spaces.
9050 2014-02-19 Stan Shebs <stan@codesourcery.com>
9052 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9054 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9056 * NEWS: Add entry for the new feature
9057 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9060 2014-02-19 Stan Shebs <stan@codesourcery.com>
9062 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9064 2014-02-19 Pedro Alves <palves@redhat.com>
9066 * common/ptid.h (struct ptid): Mention that process_stratum
9067 targets should prefer ptid.lwp.
9069 2014-02-19 Pedro Alves <palves@redhat.com>
9071 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9072 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9073 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9074 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9075 store remote thread ids rather than ptid.tid.
9076 (_initialize_remote): Adjust.
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9080 * target.c (target_get_unwinder): Rewrite.
9081 (target_get_tailcall_unwinder): Rewrite.
9082 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9083 (record_btrace_to_get_tailcall_unwinder): New function.
9084 (init_record_btrace_ops): Update.
9085 * target.h (struct target_ops) <to_get_unwinder,
9086 to_get_tailcall_unwinder>: Now function pointers. Use
9087 TARGET_DEFAULT_RETURN.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9093 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9099 * target-delegates.c: Rebuild.
9100 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9101 TARGET_DEFAULT_FUNC.
9102 * target.c (default_target_decr_pc_after_break): Rename from
9103 forward_target_decr_pc_after_break. Simplify.
9104 (target_decr_pc_after_break): Rely on delegation.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target.c (update_current_target): Do not INHERIT to_doc or
9109 to_magic. Do not de_fault to_open or to_close.
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * gcore.h (objfile_find_memory_regions): Declare.
9114 * gcore.c (objfile_find_memory_regions): No longer static. Add
9116 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9117 * exec.c: Include gcore.h.
9118 (exec_set_find_memory_regions): Remove.
9119 (exec_find_memory_regions): Remove.
9120 (exec_do_find_memory_regions): Remove.
9121 (init_exec_ops): Update.
9122 * defs.h (exec_set_find_memory_regions): Remove.
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9126 * target-delegates.c: Rebuild.
9127 * target.h (struct target_ops) <to_extra_thread_info,
9128 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9129 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9130 not 0, in TARGET_DEFAULT_RETURN.
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9134 * target.c (complete_target_initialization): Remove casts. Use
9135 return_zero_has_execution.
9136 (return_zero): Add "ignore" argument.
9137 (return_zero_has_execution): New function.
9138 (init_dummy_target): Remove casts. Use
9139 return_zero_has_execution.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target.c (update_current_target): Update comments. Do not
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9150 * corelow.c (core_read_description): Delegate when needed.
9151 * remote.c (remote_read_description): Delegate when needed.
9152 * target-delegates.c: Rebuild.
9153 * target.c (target_read_description): Rewrite.
9154 * target.h (struct target_ops) <to_read_description>: Update
9155 comment. Use TARGET_DEFAULT_RETURN.
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9159 * target-delegates.c: Rebuild.
9160 * target.c (update_current_target): Don't inherit or default
9162 (find_default_run_target): Check against delegate_can_run.
9163 * target.h (struct target_ops) <to_can_run>: Use
9164 TARGET_DEFAULT_RETURN.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * target-delegates.c: Rebuild.
9169 * target.c (target_disconnect): Unconditionally delegate.
9170 * target.h (struct target_ops) <to_disconnect>: Use
9171 TARGET_DEFAULT_NORETURN.
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9175 * record.c (record_stop): Unconditionally delegate.
9176 * target-delegates.c: Rebuild.
9177 * target.c (target_stop_recording): Unconditionally delegate.
9178 * target.h (struct target_ops) <to_stop_recording>: Use
9179 TARGET_DEFAULT_IGNORE.
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9183 * target-delegates.c: Rebuild.
9184 * target.c (target_enable_btrace): Unconditionally delegate.
9185 * target.h (struct target_ops) <to_enable_btrace>: Use
9186 TARGET_DEFAULT_NORETURN.
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9190 * target-delegates.c: Rebuild.
9191 * target.c (target_read_btrace): Unconditionally delegate.
9192 * target.h (struct target_ops) <to_read_btrace>: Use
9193 TARGET_DEFAULT_NORETURN.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target-delegates.c: Rebuild.
9198 * target.c (target_teardown_btrace): Unconditionally delegate.
9199 * target.h (struct target_ops) <to_teardown_btrace>: Use
9200 TARGET_DEFAULT_NORETURN.
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9204 * target-delegates.c: Rebuild.
9205 * target.c (target_disable_btrace): Unconditionally delegate.
9206 * target.h (struct target_ops) <to_disable_btrace>: Use
9207 TARGET_DEFAULT_NORETURN.
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9211 * target-delegates.c: Rebuild.
9212 * target.c (default_search_memory): New function.
9213 (simple_search_memory): Update comment.
9214 (target_search_memory): Unconditionally delegate.
9215 * target.h (struct target_ops) <to_search_memory>: Use
9216 TARGET_DEFAULT_FUNC.
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9220 * auxv.c (default_auxv_parse): No longer static.
9221 (target_auxv_parse): Unconditionally delegate.
9222 * auxv.h (default_auxv_parse): Declare.
9223 * target-delegates.c: Rebuild.
9224 * target.c: Include auxv.h.
9225 * target.h (struct target_ops) <to_auxv_parse>: Use
9226 TARGET_DEFAULT_FUNC.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target-delegates.c: Rebuild.
9231 * target.c (target_memory_map): Unconditionally delegate.
9232 * target.h (struct target_ops) <to_memory_map>: Use
9233 TARGET_DEFAULT_RETURN.
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9237 * target-delegates.c: Rebuild.
9238 * target.c (target_thread_alive): Unconditionally delegate.
9239 * target.h (struct target_ops) <to_thread_alive>: Use
9240 TARGET_DEFAULT_RETURN.
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9244 * target-delegates.c: Rebuild.
9245 * target.c (target_save_record): Unconditionally delegate.
9246 * target.h (struct target_ops) <to_save_record>: Use
9247 TARGET_DEFAULT_NORETURN.
9249 2014-02-19 Tom Tromey <tromey@redhat.com>
9251 * target-delegates.c: Rebuild.
9252 * target.c (target_delete_record): Unconditionally delegate.
9253 * target.h (struct target_ops) <to_delete_record>: Use
9254 TARGET_DEFAULT_NORETURN.
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9258 * target-delegates.c: Rebuild.
9259 * target.c (target_record_is_replaying): Unconditionally
9261 * target.h (struct target_ops) <to_record_is_replaying>: Use
9262 TARGET_DEFAULT_RETURN.
9264 2014-02-19 Tom Tromey <tromey@redhat.com>
9266 * target-delegates.c: Rebuild.
9267 * target.c (target_goto_record_begin): Unconditionally delegate.
9268 * target.h (struct target_ops) <to_goto_record_begin>: Use
9269 TARGET_DEFAULT_NORETURN.
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9273 * target-delegates.c: Rebuild.
9274 * target.c (target_goto_record_end): Unconditionally delegate.
9275 * target.h (struct target_ops) <to_goto_record_end>: Use
9276 TARGET_DEFAULT_NORETURN.
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target-delegates.c: Rebuild.
9281 * target.c (target_goto_record): Unconditionally delegate.
9282 * target.h (struct target_ops) <to_goto_record>: Use
9283 TARGET_DEFAULT_NORETURN.
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9287 * target-delegates.c: Rebuild.
9288 * target.c (target_insn_history): Unconditionally delegate.
9289 * target.h (struct target_ops) <to_insn_history>: Use
9290 TARGET_DEFAULT_NORETURN.
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9294 * target-delegates.c: Rebuild.
9295 * target.c (target_insn_history_from): Unconditionally delegate.
9296 * target.h (struct target_ops) <to_insn_history_from>: Use
9297 TARGET_DEFAULT_NORETURN.
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9301 * target-delegates.c: Rebuild.
9302 * target.c (target_insn_history_range): Unconditionally delegate.
9303 * target.h (struct target_ops) <to_insn_history_range>: Use
9304 TARGET_DEFAULT_NORETURN.
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target-delegates.c: Rebuild.
9309 * target.c (target_call_history): Unconditionally delegate.
9310 * target.h (struct target_ops) <to_call_history>: Use
9311 TARGET_DEFAULT_NORETURN.
9313 2014-02-19 Tom Tromey <tromey@redhat.com>
9315 * target-delegates.c: Rebuild.
9316 * target.c (target_call_history_from): Unconditionally delegate.
9317 * target.h (struct target_ops) <to_call_history_from>: Use
9318 TARGET_DEFAULT_NORETURN.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target-delegates.c: Rebuild.
9323 * target.c (target_call_history_range): Unconditionally delegate.
9324 * target.h (struct target_ops) <to_call_history_range>: Use
9325 TARGET_DEFAULT_NORETURN.
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9329 * target-delegates.c: Rebuild.
9330 * target.c (target_verify_memory): Unconditionally delegate.
9331 * target.h (struct target_ops) <to_verify_memory>: Use
9332 TARGET_DEFAULT_NORETURN.
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9336 * target-delegates.c: Rebuild.
9337 * target.c (target_core_of_thread): Unconditionally delegate.
9338 * target.h (struct target_ops) <to_core_of_thread>: Use
9339 TARGET_DEFAULT_RETURN.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target-delegates.c: Rebuild.
9344 * target.c (target_flash_done): Unconditionally delegate.
9345 * target.h (struct target_ops) <to_flash_done>: Use
9346 TARGET_DEFAULT_NORETURN.
9348 2014-02-19 Tom Tromey <tromey@redhat.com>
9350 * target-delegates.c: Rebuild.
9351 * target.c (target_flash_erase): Unconditionally delegate.
9352 * target.h (struct target_ops) <to_flash_erase>: Use
9353 TARGET_DEFAULT_NORETURN.
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9357 * target-delegates.c: Rebuild.
9358 * target.c (target_get_section_table): Unconditionally delegate.
9359 * target.h (struct target_ops) <to_get_section_table>: Use
9360 TARGET_DEFAULT_RETURN.
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9364 * target-delegates.c: Rebuild.
9365 * target.c (target_pid_to_str): Unconditionally delegate.
9366 (init_dummy_target): Don't initialize to_pid_to_str.
9367 (default_pid_to_str): Rename from dummy_pid_to_str.
9368 * target.h (struct target_ops) <to_pid_to_str>: Use
9369 TARGET_DEFAULT_FUNC.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target-delegates.c: Rebuild.
9374 * target.c (target_find_new_threads): Unconditionally delegate.
9375 * target.h (struct target_ops) <to_find_new_threads>: Use
9376 TARGET_DEFAULT_RETURN.
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target-delegates.c: Rebuild.
9381 * target.c (target_program_signals): Unconditionally delegate.
9382 * target.h (struct target_ops) <to_program_signals>: Use
9383 TARGET_DEFAULT_IGNORE.
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * target-delegates.c: Rebuild.
9388 * target.c (target_pass_signals): Unconditionally delegate.
9389 * target.h (struct target_ops) <to_pass_signals>: Use
9390 TARGET_DEFAULT_IGNORE.
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9394 * target-delegates.c: Rebuild.
9395 * target.c (default_mourn_inferior): New function.
9396 (target_mourn_inferior): Unconditionally delegate.
9397 * target.h (struct target_ops) <to_mourn_inferior>: Use
9398 TARGET_DEFAULT_FUNC.
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9402 * target-delegates.c: Rebuild.
9403 * target.c (default_follow_fork): New function.
9404 (target_follow_fork): Unconditionally delegate.
9405 * target.h (struct target_ops) <to_follow_fork>: Use
9406 TARGET_DEFAULT_FUNC.
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target-delegates.c: Rebuild.
9411 * target.c (target_kill): Unconditionally delegate.
9412 * target.h (struct target_ops) <to_kill>: Use
9413 TARGET_DEFAULT_NORETURN.
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9417 * target-delegates.c: Rebuild.
9418 * target.c (target_masked_watch_num_registers): Unconditionally
9420 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9421 Use TARGET_DEFAULT_RETURN.
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9425 * target-delegates.c: Rebuild.
9426 * target.c (target_remove_mask_watchpoint): Unconditionally
9428 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9429 TARGET_DEFAULT_RETURN.
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9433 * target-delegates.c: Rebuild.
9434 * target.c (target_insert_mask_watchpoint): Unconditionally
9436 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9437 TARGET_DEFAULT_RETURN.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * target-delegates.c: Rebuild.
9442 * target.c (target_ranged_break_num_registers): Unconditionally
9444 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9445 Use TARGET_DEFAULT_RETURN.
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9449 * target-delegates.c: Rebuild.
9450 * target.c (target_fetch_registers): Unconditionally delegate.
9451 * target.h (struct target_ops) <to_fetch_registers>: Use
9452 TARGET_DEFAULT_NORETURN.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target-delegates.c: Rebuild.
9457 * target.c (update_current_target): Don't inherit or default
9459 * target.h (struct target_ops) <to_stop>: Use
9460 TARGET_DEFAULT_IGNORE.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target-delegates.c: Rebuild.
9465 * target.c (update_current_target): Don't inherit or default
9466 to_can_run_breakpoint_commands.
9467 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9468 Use TARGET_DEFAULT_RETURN.
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9472 * target-delegates.c: Rebuild.
9473 * target.c (update_current_target): Don't inherit or default
9474 to_supports_evaluation_of_breakpoint_conditions.
9475 * target.h (struct target_ops)
9476 <to_supports_evaluation_of_breakpoint_conditions>: Use
9477 TARGET_DEFAULT_RETURN.
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9481 * target-delegates.c: Rebuild.
9482 * target.c (update_current_target): Don't inherit or default
9483 to_augmented_libraries_svr4_read.
9484 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9485 Use TARGET_DEFAULT_RETURN.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * target-delegates.c: Rebuild.
9490 * target.c (update_current_target): Don't inherit or default
9492 * target.h (struct target_ops) <to_can_use_agent>: Use
9493 TARGET_DEFAULT_RETURN.
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target-delegates.c: Rebuild.
9498 * target.c (update_current_target): Don't inherit or default
9500 * target.h (struct target_ops) <to_use_agent>: Use
9501 TARGET_DEFAULT_NORETURN.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target-delegates.c: Rebuild.
9506 * target.c (update_current_target): Don't inherit or default
9508 (return_null): Remove.
9509 * target.h (struct target_ops) <to_traceframe_info>: Use
9510 TARGET_DEFAULT_RETURN.
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_static_tracepoint_markers_by_strid.
9517 * target.h (struct target_ops)
9518 <to_static_tracepoint_markers_by_strid>: Use
9519 TARGET_DEFAULT_NORETURN.
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
9525 to_static_tracepoint_marker_at.
9526 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9527 Use 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_set_permissions>: Use
9535 TARGET_DEFAULT_IGNORE.
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 * target.h (struct target_ops) <to_get_tib_address>: Use
9543 TARGET_DEFAULT_NORETURN.
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9547 * target-delegates.c: Rebuild.
9548 * target.c (update_current_target): Don't inherit or default
9550 * target.h (struct target_ops) <to_set_trace_notes>: Use
9551 TARGET_DEFAULT_RETURN.
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9555 * target-delegates.c: Rebuild.
9556 * target.c (update_current_target): Don't initialize
9557 to_set_trace_buffer_size.
9558 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9559 TARGET_DEFAULT_IGNORE.
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9563 * target-delegates.c: Rebuild.
9564 * target.c (update_current_target): Don't inherit or default
9565 to_set_circular_trace_buffer.
9566 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9567 TARGET_DEFAULT_IGNORE.
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target-delegates.c: Rebuild.
9572 * target.c (update_current_target): Don't inherit or default
9573 to_set_disconnected_tracing.
9574 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9575 TARGET_DEFAULT_IGNORE.
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9579 * target-delegates.c: Rebuild.
9580 * target.c (update_current_target): Don't inherit or default
9581 to_get_min_fast_tracepoint_insn_len.
9582 (return_minus_one): Remove.
9583 * target.h (struct target_ops)
9584 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target-delegates.c: Rebuild.
9589 * target.c (update_current_target): Don't inherit or default
9590 to_get_raw_trace_data.
9591 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9592 TARGET_DEFAULT_NORETURN.
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9596 * target-delegates.c: Rebuild.
9597 * target.c (update_current_target): Don't inherit or default
9598 to_upload_trace_state_variables.
9599 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9600 Use TARGET_DEFAULT_RETURN.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target-delegates.c: Rebuild.
9605 * target.c (update_current_target): Don't inherit or default
9606 to_upload_tracepoints.
9607 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9608 TARGET_DEFAULT_RETURN.
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9612 * target-delegates.c: Rebuild.
9613 * target.c (update_current_target): Don't inherit or default
9615 * target.h (struct target_ops) <to_save_trace_data>: Use
9616 TARGET_DEFAULT_NORETURN.
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target-delegates.c: Rebuild.
9621 * target.c (update_current_target): Don't inherit or default
9622 to_get_trace_state_variable_value.
9623 * target.h (struct target_ops)
9624 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9628 * target-delegates.c: Rebuild.
9629 * target.c (update_current_target): Don't inherit or default
9631 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target-delegates.c: Rebuild.
9636 * target.c (update_current_target): Don't inherit or default
9638 * target.h (struct target_ops) <to_trace_stop>: Use
9639 TARGET_DEFAULT_NORETURN.
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9643 * target-delegates.c: Rebuild.
9644 * target.c (update_current_target): Don't inherit or default
9645 to_get_tracepoint_status.
9646 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9647 TARGET_DEFAULT_NORETURN.
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9651 * target-delegates.c: Rebuild.
9652 * target.c (update_current_target): Don't inherit or default
9653 to_get_trace_status.
9654 * target.h (struct target_ops) <to_get_trace_status>: Use
9655 TARGET_DEFAULT_RETURN.
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target-delegates.c: Rebuild.
9660 * target.c (update_current_target): Don't inherit or default
9662 * target.h (struct target_ops) <to_trace_start>: Use
9663 TARGET_DEFAULT_NORETURN.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target-delegates.c: Rebuild.
9668 * target.c (update_current_target): Don't inherit or default
9669 to_trace_set_readonly_regions.
9670 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9671 Use TARGET_DEFAULT_NORETURN.
9673 2014-02-19 Tom Tromey <tromey@redhat.com>
9675 * target-delegates.c: Rebuild.
9676 * target.c (update_current_target): Don't inherit or default
9677 to_disable_tracepoint.
9678 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9679 TARGET_DEFAULT_NORETURN.
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target-delegates.c: Rebuild.
9684 * target.c (update_current_target): Don't inherit or default
9685 to_enable_tracepoint.
9686 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9687 TARGET_DEFAULT_NORETURN.
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9691 * target-delegates.c: Rebuild.
9692 * target.c (update_current_target): Don't inherit or default
9693 to_download_trace_state_variable.
9694 * target.h (struct target_ops) <to_download_trace_state_variable>:
9695 Use TARGET_DEFAULT_NORETURN.
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target-delegates.c: Rebuild.
9700 * target.c (update_current_target): Don't inherit or default
9701 to_can_download_tracepoint.
9702 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9703 TARGET_DEFAULT_RETURN.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target-delegates.c: Rebuild.
9708 * target.c (update_current_target): Don't inherit or default
9709 to_download_tracepoint.
9710 * target.h (struct target_ops) <to_download_tracepoint>: Use
9711 TARGET_DEFAULT_NORETURN.
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9715 * target-delegates.c: Rebuild.
9716 * target.c (update_current_target): Don't inherit or default
9718 * target.h (struct target_ops) <to_trace_init>: Use
9719 TARGET_DEFAULT_RETURN.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target-delegates.c: Rebuild.
9724 * target.c (update_current_target): Don't inherit or default
9725 to_supports_string_tracing.
9726 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9727 TARGET_DEFAULT_RETURN.
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9731 * target-delegates.c: Rebuild.
9732 * target.c (update_current_target): Don't inherit or default
9733 to_supports_enable_disable_tracepoint.
9734 * target.h (struct target_ops)
9735 <to_supports_enable_disable_tracepoint>: Use
9736 TARGET_DEFAULT_RETURN.
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9740 * target-delegates.c: Rebuild.
9741 * target.c (update_current_target): Don't inherit or default
9742 to_supports_multi_process.
9743 * target.h (struct target_ops) <to_supports_multi_process>: Use
9744 TARGET_DEFAULT_RETURN.
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9748 * target-delegates.c: Rebuild.
9749 * target.c (update_current_target): Don't inherit or default
9750 to_get_ada_task_ptid.
9751 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9752 TARGET_DEFAULT_FUNC.
9754 2014-02-19 Tom Tromey <tromey@redhat.com>
9756 * target-delegates.c: Rebuild.
9757 * target.c (update_current_target): Don't inherit or default
9758 to_thread_architecture.
9759 * target.h (struct target_ops) <to_thread_architecture>: Use
9760 TARGET_DEFAULT_FUNC.
9762 2014-02-19 Tom Tromey <tromey@redhat.com>
9764 * target-delegates.c: Rebuild.
9765 * target.c (update_current_target): Don't inherit or default
9766 to_execution_direction.
9767 * target.h (struct target_ops) <to_execution_direction>: Use
9768 TARGET_DEFAULT_FUNC.
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9772 * target-delegates.c: Rebuild.
9773 * target.c (update_current_target): Don't inherit or default
9774 to_can_execute_reverse.
9775 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9776 TARGET_DEFAULT_RETURN.
9777 (target_can_execute_reverse): Unconditionally delegate.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target-delegates.c: Rebuild.
9782 * target.c (update_current_target): Don't inherit or default
9784 (dummy_goto_bookmark): Remove.
9785 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9786 * target.h (struct target_ops) <to_goto_bookmark>: Use
9787 TARGET_DEFAULT_NORETURN.
9789 2014-02-19 Tom Tromey <tromey@redhat.com>
9791 * target-delegates.c: Rebuild.
9792 * target.c (update_current_target): Don't inherit or default
9794 (dummy_get_bookmark): Remove.
9795 (init_dummy_target): Don't inherit or default to_get_bookmark.
9796 * target.h (struct target_ops) <to_get_bookmark>: Use
9797 TARGET_DEFAULT_NORETURN
9799 2014-02-19 Tom Tromey <tromey@redhat.com>
9801 * target-delegates.c: Rebuild.
9802 * target.c (update_current_target): Don't inherit or default
9803 to_make_corefile_notes.
9804 (init_dummy_target): Don't initialize to_make_corefile_notes.
9805 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9806 TARGET_DEFAULT_FUNC.
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9810 * target-delegates.c: Rebuild.
9811 * target.c (update_current_target): Don't inherit or default
9812 to_find_memory_regions.
9813 (init_dummy_target): Don't initialize to_find_memory_regions.
9814 * target.h (struct target_ops) <to_find_memory_regions>: Use
9815 TARGET_DEFAULT_FUNC.
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9819 * target-delegates.c: Rebuild.
9820 * target.c (update_current_target): Don't inherit or default
9822 * target.h (struct target_ops) <to_log_command>: Use
9823 TARGET_DEFAULT_IGNORE.
9824 (target_log_command): Unconditionally delegate.
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9828 * target-delegates.c: Rebuild.
9829 * target.c (update_current_target): Don't inherit or default
9830 to_pid_to_exec_file.
9831 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9832 TARGET_DEFAULT_RETURN.
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9836 * target-delegates.c: Rebuild.
9837 * target.c (update_current_target): Don't inherit or default
9839 (target_thread_name): Unconditionally delegate.
9840 * target.h (struct target_ops) <to_thread_name>: Use
9841 TARGET_DEFAULT_RETURN.
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9845 * target-delegates.c: Rebuild.
9846 * target.c (update_current_target): Don't inherit or default
9847 to_extra_thread_info.
9848 * target.h (struct target_ops) <to_extra_thread_info>: Use
9849 TARGET_DEFAULT_RETURN.
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_has_exited>: Use
9857 TARGET_DEFAULT_RETURN..
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9861 * target-delegates.c: Rebuild.
9862 * target.c (update_current_target): Don't inherit or default
9863 to_set_syscall_catchpoint.
9864 (return_one): Remove.
9865 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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
9872 to_insert_exec_catchpoint.
9873 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9874 TARGET_DEFAULT_RETURN.
9876 2014-01-08 Tom Tromey <tromey@redhat.com>
9878 * target-delegates.c: Rebuild.
9879 * target.c (update_current_target): Don't inherit or default
9880 to_insert_exec_catchpoint.
9881 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9882 TARGET_DEFAULT_RETURN.
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * target-delegates.c: Rebuild.
9887 * target.c (update_current_target): Don't inherit or default
9888 to_remove_vfork_catchpoint.
9889 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9890 TARGET_DEFAULT_RETURN.
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9894 * target-delegates.c: Rebuild.
9895 * target.c (update_current_target): Don't inherit or default
9896 to_insert_vfork_catchpoint.
9897 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9898 TARGET_DEFAULT_RETURN.
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9902 * target-delegates.c: Rebuild.
9903 * target.c (update_current_target): Don't inherit or default
9904 to_remove_fork_catchpoint.
9905 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9906 TARGET_DEFAULT_RETURN.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target-delegates.c: Rebuild.
9911 * target.c (update_current_target): Don't inherit or default
9912 to_insert_fork_catchpoint.
9913 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9914 TARGET_DEFAULT_RETURN.
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * target-delegates.c: Rebuild.
9919 * target.c (update_current_target): Don't inherit or default
9920 to_post_startup_inferior.
9921 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9922 TARGET_DEFAULT_IGNORE.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target-delegates.c: Rebuild.
9927 * target.c (update_current_target): Don't inherit or default
9929 * target.h (struct target_ops) <to_load>: Use
9930 TARGET_DEFAULT_NORETURN.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * target-delegates.c: Rebuild.
9935 * target.c (update_current_target): Don't inherit or default
9937 * target.h (struct target_ops) <to_terminal_info>: Use
9938 TARGET_DEFAULT_FUNC.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_terminal_save_ours.
9945 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9946 TARGET_DEFAULT_IGNORE.
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9950 * target-delegates.c: Rebuild.
9951 * target.c (update_current_target): Don't inherit or default
9953 * target.h (struct target_ops) <to_terminal_ours>: Use
9954 TARGET_DEFAULT_IGNORE.
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * target-delegates.c: Rebuild.
9959 * target.c (update_current_target): Don't inherit or default
9960 to_terminal_ours_for_output.
9961 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9962 TARGET_DEFAULT_IGNORE.
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9966 * target-delegates.c: Rebuild.
9967 * target.c (update_current_target): Don't inherit or default
9968 to_terminal_inferior.
9969 * target.h (struct target_ops) <to_terminal_inferior>: Use
9970 TARGET_DEFAULT_IGNORE.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9977 * target.h (struct target_ops) <to_terminal_init>: Use
9978 TARGET_DEFAULT_IGNORE.
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9982 * target-delegates.c: Rebuild.
9983 * target.c (update_current_target): Don't inherit or default
9984 to_can_accel_watchpoint_condition.
9985 * target.h (struct target_ops)
9986 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target-delegates.c: Rebuild.
9991 * target.c (update_current_target): Don't inherit or default
9992 to_region_ok_for_hw_watchpoint.
9993 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9994 Use TARGET_DEFAULT_FUNC.
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target-delegates.c: Rebuild.
9999 * target.c (update_current_target): Don't inherit or default
10000 to_watchpoint_addr_within_range.
10001 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10002 Use TARGET_DEFAULT_FUNC.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target-delegates.c: Rebuild.
10007 * target.c (update_current_target): Don't inherit or default
10008 to_remove_watchpoint.
10009 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10010 TARGET_DEFAULT_NORETURN.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target-delegates.c: Rebuild.
10015 * target.c (update_current_target): Don't inherit or default
10016 to_insert_watchpoint.
10017 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10018 TARGET_DEFAULT_RETURN.
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10022 * target-delegates.c: Rebuild.
10023 * target.c (update_current_target): Don't inherit or default
10024 to_remove_hw_breakpoint.
10025 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10026 TARGET_DEFAULT_RETURN.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10030 * target-delegates.c: Rebuild.
10031 * target.c (update_current_target): Don't inherit or default
10032 to_insert_hw_breakpoint.
10033 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10034 TARGET_DEFAULT_RETURN.
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10038 * target-delegates.c: Rebuild.
10039 * target.c (update_current_target): Don't inherit or default
10040 to_can_use_hw_breakpoint.
10041 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10042 TARGET_DEFAULT_RETURN.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target-delegates.c: Rebuild.
10047 * target.c (update_current_target): Don't inherit or default
10049 * target.h (struct target_ops) <to_files_info>: Use
10050 TARGET_DEFAULT_IGNORE.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target-delegates.c: Rebuild.
10055 * target.c (update_current_target): Don't inherit or default
10057 * target.h (struct target_ops) <to_store>: Use
10058 TARGET_DEFAULT_NORETURN.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10065 * target.h (struct target_ops) <to_post_attach>: Use
10066 TARGET_DEFAULT_IGNORE.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (update_current_target): Don't inherit or default
10073 (default_rcmd): New function.
10074 (do_monitor_command): Unconditionally delegate.
10075 * target.h (struct target_ops) <to_rmcd>: Use
10076 TARGET_DEFAULT_FUNC.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target-delegates.c: Rebuild.
10081 * target.c (init_dummy_target): Don't initialize to_attach.
10082 (target_attach): Unconditionally delegate.
10083 * target.h (struct target_ops) <to_attach>: Use
10084 TARGET_DEFAULT_FUNC.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (target_detach): Unconditionally delegate.
10090 (init_dummy_target): Don't initialize to_detach.
10091 * target.h (struct target_ops) <to_detach>: Use
10092 TARGET_DEFAULT_IGNORE.
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10098 (target_augmented_libraries_svr4_read): Add argument.
10099 * target.c (update_current_target): Update.
10100 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10105 * target.h (struct target_ops) <to_call_history_range>: Add
10107 * target.c (target_call_history_range): Add argument.
10108 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10110 (record_btrace_call_history_from): Update.
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target.h (struct target_ops) <to_call_history_from>: Add
10116 * target.c (target_call_history_from): Add argument.
10117 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10120 2014-02-19 Tom Tromey <tromey@redhat.com>
10122 * target.h (struct target_ops) <to_call_history>: Add argument.
10123 * target.c (target_call_history): Add argument.
10124 * record-btrace.c (record_btrace_call_history): Add 'self'
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target.h (struct target_ops) <to_insn_history_range>: Add
10131 * target.c (target_insn_history_range): Add argument.
10132 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10134 (record_btrace_insn_history_from): Update.
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10138 * target.h (struct target_ops) <to_insn_history_from>: Add
10140 * target.c (target_insn_history_from): Add argument.
10141 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target.h (struct target_ops) <to_insn_history>: Add argument.
10147 * target.c (target_insn_history): Add argument.
10148 * record-btrace.c (record_btrace_insn_history): Add 'self'
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target.h (struct target_ops) <to_goto_record>: Add argument.
10154 * target.c (target_goto_record): Add argument.
10155 * record-full.c (record_full_goto): Add 'self' argument.
10156 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10160 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10161 * target.c (target_goto_record_end): Add argument.
10162 * record-full.c (record_full_goto_end): Add 'self' argument.
10163 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10167 * target.h (struct target_ops) <to_goto_record_begin>: Add
10169 * target.c (target_goto_record_begin): Add argument.
10170 * record-full.c (record_full_goto_begin): Add 'self' argument.
10171 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * target.h (struct target_ops) <to_record_is_replaying>: Add
10178 * target.c (target_record_is_replaying): Add argument.
10179 * record-full.c (record_full_is_replaying): Add 'self' argument.
10180 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10182 (record_btrace_xfer_partial, record_btrace_store_registers)
10183 (record_btrace_prepare_to_store, record_btrace_resume)
10184 (record_btrace_wait, record_btrace_decr_pc_after_break)
10185 (record_btrace_find_new_threads, record_btrace_thread_alive):
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10190 * target.h (struct target_ops) <to_delete_record>: Add argument.
10191 * target.c (target_delete_record): Add argument.
10192 * record-full.c (record_full_delete): Add 'self' argument.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target.h (struct target_ops) <to_save_record>: Add argument.
10197 * target.c (target_save_record): Add argument.
10198 * record-full.c (record_full_save): Add 'self' argument.
10199 (record_full_save): Add 'self' argument.
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target.h (struct target_ops) <to_info_record>: Add argument.
10204 * target.c (target_info_record): Add argument.
10205 * record.c (info_record_command): Add argument.
10206 * record-full.c (record_full_info): Add 'self' argument.
10207 * record-btrace.c (record_btrace_info): Add 'self' argument.
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10211 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10212 * target.c (target_stop_recording): Add argument.
10213 * record.c (record_stop): Add argument.
10214 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10219 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10220 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10221 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10223 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10224 (_initialize_amd64_linux_nat): Use it.
10225 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10226 (_initialize_i386_linux_nat): Use it.
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10231 * target.c (target_teardown_btrace): Add argument.
10232 * remote.c (remote_teardown_btrace): Add 'self' argument.
10233 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10235 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10241 * target.c (target_disable_btrace): Add argument.
10242 * remote.c (remote_disable_btrace): Add 'self' argument.
10243 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10245 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10250 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10251 * target.c (target_enable_btrace): Add argument.
10252 * remote.c (remote_enable_btrace): Add 'self' argument.
10253 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10255 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10260 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10261 (target_can_use_agent): Add argument.
10262 * target.c (update_current_target): Update.
10263 * remote.c (remote_can_use_agent): Add 'self' argument.
10264 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * target.h (struct target_ops) <to_use_agent>: Add argument.
10269 (target_use_agent): Add argument.
10270 * target.c (update_current_target): Update.
10271 * remote.c (remote_use_agent): Add 'self' argument.
10272 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10276 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10277 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10278 (target_traceframe_info): Add argument.
10279 * target.c (update_current_target): Update.
10280 * remote.c (remote_traceframe_info): Add 'self' argument.
10281 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10283 2014-02-19 Tom Tromey <tromey@redhat.com>
10285 * target.h (target_static_tracepoint_markers_by_strid): Add
10287 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10289 * target.c (update_current_target): Update.
10290 * remote.c (struct target_ops)
10291 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10292 * linux-nat.c (struct target_ops)
10293 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10299 (target_static_tracepoint_marker_at): Add argument.
10300 * target.c (update_current_target): Update.
10301 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10307 (target_set_permissions): Add argument.
10308 * target.c (update_current_target): Update.
10309 * remote.c (remote_set_permissions): Add 'self' argument.
10310 (remote_start_remote): Update.
10312 2014-02-19 Tom Tromey <tromey@redhat.com>
10314 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10315 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10316 (target_get_tib_address): Add argument.
10317 * target.c (update_current_target): Update.
10318 * remote.c (remote_get_tib_address): Add 'self' argument.
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10322 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10323 (target_set_trace_notes): Add argument.
10324 * target.c (update_current_target): Update.
10325 * remote.c (remote_set_trace_notes): Add 'self' argument.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10331 (target_set_trace_buffer_size): Add argument.
10332 * target.c (update_current_target): Update.
10333 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10337 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10339 (target_set_circular_trace_buffer): Add argument.
10340 * target.c (update_current_target): Update.
10341 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10348 (target_set_disconnected_tracing): Add argument.
10349 * target.c (update_current_target): Update.
10350 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10354 * target.h (struct target_ops)
10355 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10356 (target_get_min_fast_tracepoint_insn_len): Add argument.
10357 * target.c (update_current_target): Update.
10358 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10363 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10365 (target_get_raw_trace_data): Add argument.
10366 * target.c (update_current_target): Update.
10367 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10373 (target_upload_trace_state_variables): Add argument.
10374 * target.c (update_current_target): Update.
10375 * remote.c (remote_upload_trace_state_variables): Add 'self'
10377 (remote_start_remote): Update.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10383 (target_upload_tracepoints): Add argument.
10384 * target.c (update_current_target): Update.
10385 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10386 (remote_start_remote): Update.
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10390 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10391 (target_save_trace_data): Add argument.
10392 * target.c (update_current_target): Update.
10393 * remote.c (remote_save_trace_data): Add 'self' argument.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10399 * target.h (struct target_ops)
10400 <to_get_trace_state_variable_value>: Add argument.
10401 (target_get_trace_state_variable_value): Add argument.
10402 * target.c (update_current_target): Update.
10403 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10405 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10409 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10410 * target.h (struct target_ops) <to_trace_find>: Add argument.
10411 (target_trace_find): Add argument.
10412 * target.c (update_current_target): Update.
10413 * remote.c (remote_trace_find): Add 'self' argument.
10414 * ctf.c (ctf_trace_find): Add 'self' argument.
10416 2014-02-19 Tom Tromey <tromey@redhat.com>
10418 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10419 (target_trace_stop): Add argument.
10420 * target.c (update_current_target): Update.
10421 * remote.c (remote_trace_stop): Add 'self' argument.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10426 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10428 (target_get_tracepoint_status): Add argument.
10429 * target.c (update_current_target): Update.
10430 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10432 2014-02-19 Tom Tromey <tromey@redhat.com>
10434 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10435 * target.h (struct target_ops) <to_get_trace_status>: Add
10437 (target_get_trace_status): Add argument.
10438 * target.c (update_current_target): Update.
10439 * remote.c (remote_get_trace_status): Add 'self' argument.
10440 (remote_start_remote, remote_can_download_tracepoint): Update.
10441 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target.h (struct target_ops) <to_trace_start>: Add argument.
10446 (target_trace_start): Add argument.
10447 * target.c (update_current_target): Update.
10448 * remote.c (remote_trace_start): Add 'self' argument.
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10452 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10454 (target_trace_set_readonly_regions): Add argument.
10455 * target.c (update_current_target): Update.
10456 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10461 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10463 (target_disable_tracepoint): Add argument.
10464 * target.c (update_current_target): Update.
10465 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10471 (target_enable_tracepoint): Add argument.
10472 * target.c (update_current_target): Update.
10473 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10477 * target.h (struct target_ops) <to_download_trace_state_variable>:
10479 (target_download_trace_state_variable): Add argument.
10480 * target.c (update_current_target): Update.
10481 * remote.c (remote_download_trace_state_variable): Add 'self'
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10486 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10488 (target_can_download_tracepoint): Add argument.
10489 * target.c (update_current_target): Update.
10490 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10492 2014-02-19 Tom Tromey <tromey@redhat.com>
10494 * target.h (struct target_ops) <to_download_tracepoint>: Add
10496 (target_download_tracepoint): Add argument.
10497 * target.c (update_current_target): Update.
10498 * remote.c (remote_download_tracepoint): Add 'self' argument.
10500 2014-02-19 Tom Tromey <tromey@redhat.com>
10502 * target.h (struct target_ops) <to_trace_init>: Add argument.
10503 (target_trace_init): Add argument.
10504 * target.c (update_current_target): Update.
10505 * remote.c (remote_trace_init): Add 'self' argument.
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10509 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10510 * target.c (target_fileio_readlink): Add argument.
10511 * remote.c (remote_hostio_readlink): Add 'self' argument.
10512 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10514 2014-02-19 Tom Tromey <tromey@redhat.com>
10516 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10517 * target.c (target_fileio_unlink): Add argument.
10518 * remote.c (remote_hostio_unlink): Add 'self' argument.
10519 (remote_file_delete): Update.
10520 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10522 2014-02-19 Tom Tromey <tromey@redhat.com>
10524 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10525 * target.c (target_fileio_close): Add argument.
10526 * remote.c (remote_hostio_close): Add 'self' argument.
10527 (remote_hostio_close_cleanup): Update.
10528 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10530 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10532 2014-02-19 Tom Tromey <tromey@redhat.com>
10534 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10535 * target.c (target_fileio_pread): Add argument.
10536 * remote.c (remote_hostio_pread): Add 'self' argument.
10537 (remote_bfd_iovec_pread, remote_file_get): Update.
10538 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10540 2014-02-19 Tom Tromey <tromey@redhat.com>
10542 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10543 * target.c (target_fileio_pwrite): Add argument.
10544 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10545 (remote_file_put): Update.
10546 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10548 2014-02-19 Tom Tromey <tromey@redhat.com>
10550 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10551 * target.c (target_fileio_open): Add argument.
10552 * remote.c (remote_hostio_open): Add 'self' argument.
10553 (remote_bfd_iovec_open): Add 'self' argument.
10554 (remote_file_put): Add 'self' argument.
10555 (remote_file_get): Add 'self' argument.
10556 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10562 (target_can_run_breakpoint_commands): Add argument.
10563 * target.c (update_current_target): Update.
10564 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10566 (remote_insert_breakpoint): Add 'self' argument.
10567 (remote_insert_hw_breakpoint): Add 'self' argument.
10568 (remote_can_run_breakpoint_commands): Add 'self' argument.
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10572 * target.h (struct target_ops)
10573 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10574 (target_supports_evaluation_of_breakpoint_conditions): Add
10576 * target.c (update_current_target): Update.
10577 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10579 (remote_insert_breakpoint): Add 'self' argument.
10580 (remote_insert_hw_breakpoint): Add 'self' argument.
10581 (remote_supports_cond_breakpoints): Add 'self' argument.
10583 2014-02-19 Tom Tromey <tromey@redhat.com>
10585 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10587 (target_supports_string_tracing): Add argument.
10588 * target.c (update_current_target): Update.
10589 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10593 * target.h (struct target_ops)
10594 <to_supports_disable_randomization>: Add argument.
10595 * target.c (find_default_supports_disable_randomization): Add
10597 (target_supports_disable_randomization): Add argument.
10598 (find_default_supports_disable_randomization): Add 'self'
10600 * remote.c (extended_remote_supports_disable_randomization): Add
10602 (remote_supports_disable_randomization): Add 'self' argument.
10603 (extended_remote_create_inferior): Update.
10604 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * target.h (struct target_ops)
10610 <to_supports_enable_disable_tracepoint>: Add argument.
10611 (target_supports_enable_disable_tracepoint): Add argument.
10612 * target.c (update_current_target): Update.
10613 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10618 * target.h (struct target_ops) <to_supports_multi_process>: Add
10620 (target_supports_multi_process): Add argument.
10621 * target.c (update_current_target): Update.
10622 * remote.c (remote_supports_multi_process): Add 'self' argument.
10623 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10625 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10630 * target.h (struct target_ops) <to_execution_direction>: Add
10632 (target_execution_direction): Add argument.
10633 * target.c (default_execution_direction): Add 'self' argument.
10634 * record-full.c (record_full_execution_direction): Add 'self'
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10639 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10641 (target_can_execute_reverse): Add argument.
10642 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10643 * record-full.c (record_full_can_execute_reverse): Add 'self'
10645 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10650 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10651 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10653 (target_get_ada_task_ptid): Add argument.
10654 * target.c (update_current_target): Update.
10655 (default_get_ada_task_ptid): Add 'self' argument.
10656 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10657 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10658 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10660 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10662 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10664 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10666 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10667 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10672 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10673 (target_goto_bookmark): Add argument.
10674 * target.c (dummy_goto_bookmark): Add 'self' argument.
10675 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10680 (target_get_bookmark): Add argument.
10681 * target.c (dummy_get_bookmark): Add 'self' argument.
10682 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10686 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10688 (target_make_corefile_notes): Add argument.
10689 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10690 * procfs.c (procfs_make_note_section): Add 'self' argument.
10691 (procfs_make_note_section): Add 'self' argument.
10692 (procfs_make_note_section): Add 'self' argument.
10693 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10695 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10696 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10697 * exec.c (exec_make_note_section): Add 'self' argument.
10698 (exec_make_note_section): Add 'self' argument.
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10702 * target.h (struct target_ops) <to_find_memory_regions>: Add
10704 (target_find_memory_regions): Add argument.
10705 * target.c (dummy_find_memory_regions): Add 'self' argument.
10706 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10707 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10708 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10709 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10710 * exec. (exec_do_find_memory_regions): New global.
10711 (exec_set_find_memory_regions): Rewrite.
10712 (exec_find_memory_regions): New function.
10713 (init_exec_ops): Use exec_find_memory_regions.
10715 2014-02-19 Tom Tromey <tromey@redhat.com>
10717 * target.h (struct target_ops) <to_supports_non_stop>: Add
10719 * target.c (find_default_supports_non_stop): Add argument.
10720 (target_supports_non_stop): Add argument.
10721 (find_default_supports_non_stop): Add 'self' argument.
10722 * remote.c (remote_supports_non_stop): Add 'self' argument.
10723 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target.h (struct target_ops) <to_log_command>: Add argument.
10728 (target_log_command): Add argument.
10729 * serial.h (serial_log_command): Add 'self' argument.
10730 * serial.c (serial_log_command): Add 'self' argument.
10732 2014-02-19 Tom Tromey <tromey@redhat.com>
10734 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10735 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10737 (target_pid_to_exec_file): Add argument.
10738 * target.c (debug_to_pid_to_exec_file): Add argument.
10739 (update_current_target): Update.
10740 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10741 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10742 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10743 (linux_handle_extended_wait): Update.
10744 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10745 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10746 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10747 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10751 * target.h (struct target_ops) <to_rcmd>: Add argument.
10752 (target_rcmd): Add argument.
10753 * target.c (debug_to_rcmd): Add argument.
10754 (update_current_target, do_monitor_command): Update.
10755 * remote.c (remote_rcmd): Add 'self' argument.
10756 * monitor.c (monitor_rcmd): Add 'self' argument.
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10760 * windows-nat.c (windows_stop): Add 'self' argument.
10761 * target.h (struct target_ops) <to_stop>: Add argument.
10762 * target.c (target_stop): Add argument.
10763 (debug_to_stop): Add argument.
10764 (update_current_target): Update.
10765 * remote.c (remote_stop): Add 'self' argument.
10766 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10767 (gdbsim_cntrl_c): Update.
10768 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10769 * procfs.c (procfs_stop): Add 'self' argument.
10770 * nto-procfs.c (procfs_stop): Add 'self' argument.
10771 * monitor.c (monitor_stop): Add 'self' argument.
10772 (monitor_open): Update.
10773 * linux-nat.c (linux_nat_stop): Add argument.
10774 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10775 * gnu-nat.c (gnu_stop): Add 'self' argument.
10776 * darwin-nat.c (darwin_stop): Add 'self' argument.
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target.h (struct target_ops) <to_thread_name>: Add argument.
10781 * target.c (target_thread_name): Add argument.
10782 (update_current_target): Update.
10783 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target.h (struct target_ops) <to_extra_thread_info>: Add
10789 (target_extra_thread_info): Add argument.
10790 * target.c (update_current_target): Update.
10791 * remote.c (remote_threads_extra_info): Add 'self' argument.
10792 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10794 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10795 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10796 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10798 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10800 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10802 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10807 * target.h (struct target_ops) <to_program_signals>: Add argument.
10808 * target.c (target_program_signals): Add argument.
10809 * remote.c (remote_program_signals): Add 'self' argument.
10811 2014-02-19 Tom Tromey <tromey@redhat.com>
10813 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10814 * target.c (target_pass_signals): Add argument.
10815 * remote.c (remote_pass_signals): Add 'self' argument.
10816 (remote_start_remote): Update.
10817 * procfs.c (procfs_pass_signals): Add 'self' argument.
10818 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10819 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10820 (linux_nat_create_inferior, linux_nat_attach): Update.
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10824 * windows-nat.c (windows_can_run): Add 'self' argument.
10825 * target.h (struct target_ops) <to_can_run>: Add argument.
10826 (target_can_run): Add argument.
10827 * target.c (debug_to_can_run): Add argument.
10828 (update_current_target): Update.
10829 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10830 * inf-child.c (inf_child_can_run): Add 'self' argument.
10831 * go32-nat.c (go32_can_run): Add 'self' argument.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target.h (struct target_ops) <to_has_exited>: Add argument.
10836 (target_has_exited): Add argument.
10837 * target.c (debug_to_has_exited): Add argument.
10838 (update_current_target): Update.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10844 (target_set_syscall_catchpoint): Add argument.
10845 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10847 * target.c (update_current_target): Update.
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10851 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10853 (target_remove_exec_catchpoint): Add argument.
10854 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10855 (update_current_target): Update.
10856 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10861 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10863 (target_insert_exec_catchpoint): Add argument.
10864 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10865 (update_current_target): Update.
10866 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10871 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10873 (target_remove_vfork_catchpoint): Add argument.
10874 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10875 (update_current_target): Update.
10876 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10879 2014-02-19 Tom Tromey <tromey@redhat.com>
10881 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10883 (target_insert_vfork_catchpoint): Add argument.
10884 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10885 (update_current_target): Update.
10886 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10893 (target_remove_fork_catchpoint): Add argument.
10894 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10895 (update_current_target): Update.
10896 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10899 2014-02-19 Tom Tromey <tromey@redhat.com>
10901 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10903 (target_insert_fork_catchpoint): Add argument.
10904 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10905 (update_current_target): Update.
10906 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10909 2014-02-19 Tom Tromey <tromey@redhat.com>
10911 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10913 (target_post_startup_inferior): Add argument.
10914 * target.c (debug_to_post_startup_inferior): Add argument.
10915 (update_current_target): Update.
10916 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10918 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10920 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10922 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10924 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10926 (super_post_startup_inferior): Likewise.
10927 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10929 (super_post_startup_inferior): Likewise.
10930 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10931 Add 'self' argument.
10932 (super_post_startup_inferior): Likewise.
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10936 * target.h (struct target_ops) <to_load>: Add argument.
10937 * target.c (target_load): Add argument.
10938 (debug_to_load): Add argument.
10939 (update_current_target): Update.
10940 * remote.c (remote_load): Add 'self' argument.
10941 * remote-sim.c (gdbsim_load): Add 'self' argument.
10942 * remote-mips.c (mips_load): Add 'self' argument.
10943 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10944 * monitor.c (monitor_load): Add 'self' argument.
10945 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10949 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10950 (target_terminal_info): Add argument.
10951 * target.c (debug_to_terminal_info): Add argument.
10952 (default_terminal_info): Likewise.
10953 * inflow.c (child_terminal_info): Add 'self' argument.
10954 * inferior.h (child_terminal_info): Add 'self' argument.
10955 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10959 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10961 (target_terminal_save_ours): Add argument.
10962 * target.c (debug_to_terminal_save_ours): Add argument.
10963 (update_current_target): Update.
10964 * inflow.c (terminal_save_ours): Add 'self' argument.
10965 * inferior.h (terminal_save_ours): Add 'self' argument.
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10969 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10970 (target_terminal_ours): Add argument.
10971 * target.c (debug_to_terminal_ours): Add argument.
10972 (update_current_target): Update.
10973 * remote.c (remote_terminal_ours): Add 'self' argument.
10974 (remote_close): Update.
10975 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10976 * inflow.c (terminal_ours): Add 'self' argument.
10977 * inferior.h (terminal_ours): Add 'self' argument.
10978 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10980 2014-02-19 Pedro Alves <palves@redhat.com>
10981 Tom Tromey <tromey@redhat.com>
10983 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10985 (target_terminal_ours_for_output): Add argument.
10986 * target.c (debug_to_terminal_ours_for_output): Add argument.
10987 (update_current_target): Update.
10988 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10989 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10990 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10992 2014-02-19 Tom Tromey <tromey@redhat.com>
10994 * target.h (struct target_ops) <to_terminal_inferior>: Add
10996 * target.c (target_terminal_inferior): Add argument.
10997 (update_current_target): Update.
10998 * remote.c (remote_terminal_inferior): Add 'self' argument.
10999 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11000 * inflow.c (terminal_inferior): Add 'self' argument.
11001 * inferior.h (terminal_inferior): Add 'self' argument.
11002 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11003 (go32_terminal_inferior): Add 'self' argument.
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11007 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11008 (target_terminal_init): Add argument.
11009 * target.c (debug_to_terminal_init): Add argument.
11010 (update_current_target): Update.
11011 * inflow.c (terminal_init_inferior): Add 'self' argument.
11012 * inferior.h (terminal_init_inferior): Add 'self' argument.
11013 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11014 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target.h (struct target_ops)
11019 <to_can_accel_watchpoint_condition>: Add argument.
11020 (target_can_accel_watchpoint_condition): Add argument.
11021 * target.c (debug_to_can_accel_watchpoint_condition): Add
11023 (update_current_target): Update.
11024 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11031 (target_region_ok_for_hw_watchpoint): Add argument.
11032 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11033 (default_region_ok_for_hw_watchpoint): Add argument.
11034 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11035 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11037 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11039 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11041 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11043 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11045 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11047 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11048 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11050 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11051 Add 'self' argument.
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11055 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11057 (target_insert_watchpoint): Add argument.
11058 * target.c (debug_to_insert_watchpoint): Add argument.
11059 (update_current_target): Update.
11060 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11061 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11062 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11063 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11064 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11065 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11067 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11068 (procfs_insert_hw_watchpoint): Add 'self' argument.
11069 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11071 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11073 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11075 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11076 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11078 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11081 2014-02-19 Tom Tromey <tromey@redhat.com>
11083 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11085 (target_remove_watchpoint): Add argument.
11086 * target.c (debug_to_remove_watchpoint): Add argument.
11087 (update_current_target): Update.
11088 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11089 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11090 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11091 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11092 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11093 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11095 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11096 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11098 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11100 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11102 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11103 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11105 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11108 2014-02-19 Tom Tromey <tromey@redhat.com>
11110 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11112 (target_remove_hw_breakpoint): Add argument.
11113 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11114 (update_current_target): Update.
11115 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11116 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11118 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11119 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11121 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11124 2014-02-19 Tom Tromey <tromey@redhat.com>
11126 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11128 (target_insert_hw_breakpoint): Add argument.
11129 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11130 (update_current_target): Update.
11131 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11132 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11134 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11135 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11136 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11138 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11145 (target_can_use_hardware_watchpoint): Add argument.
11146 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11147 (update_current_target): Update.
11148 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11150 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11152 * remote.c (remote_check_watch_resources): Add 'self' argument.
11153 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11154 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11156 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11157 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11159 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11161 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11163 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11165 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11167 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11169 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11170 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11172 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11177 * target.h (struct target_ops) <to_post_attach>: Add argument.
11178 (target_post_attach): Add argument.
11179 * target.c (debug_to_post_attach): Add argument.
11180 (update_current_target): Update.
11181 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11182 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11183 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11184 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11185 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11187 2014-02-19 Tom Tromey <tromey@redhat.com>
11189 * windows-nat.c (windows_close): Add 'self' argument.
11190 * tracepoint.c (tfile_close): Add 'self' argument.
11191 * target.h (struct target_ops) <to_close>: Add argument.
11192 * target.c (target_close): Add argument.
11193 (update_current_target): Update.
11194 * remote.c (remote_close): Add 'self' argument.
11195 * remote-sim.c (gdbsim_close): Add 'self' argument.
11196 * remote-mips.c (mips_close): Add 'self' argument.
11197 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11198 * record-full.c (record_full_close): Add 'self' argument.
11199 * record-btrace.c (record_btrace_close): Add 'self' argument.
11200 * monitor.h (monitor_close): Add 'self' argument.
11201 * monitor.c (monitor_close): Add 'self' argument.
11202 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11203 * linux-nat.c (linux_nat_close): Add argument.
11204 * go32-nat.c (go32_close): Add 'self' argument.
11205 * exec.c (exec_close_1): Add 'self' argument.
11206 * ctf.c (ctf_close): Add 'self' argument.
11207 * corelow.c (core_close): Add 'self' argument.
11208 (core_close_cleanup): Update.
11209 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11210 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11214 * remote.c (remote_load): New function.
11215 (init_remote_ops): Use it.
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11219 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11221 * common/linux-btrace.h (linux_supports_btrace): Update.
11222 * remote.c (remote_supports_btrace): Add "self" argument.
11223 * target-delegates.c: Rebuild.
11224 * target.c (target_supports_btrace): Remove.
11225 * target.h (struct target_ops) <to_supports_btrace>: Add
11226 target_ops argument.
11227 (target_supports_btrace): New define.
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11231 * record-full.c (record_full_beneath_to_resume_ops)
11232 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11233 (record_full_beneath_to_wait)
11234 (record_full_beneath_to_store_registers_ops)
11235 (record_full_beneath_to_store_registers)
11236 (record_full_beneath_to_xfer_partial_ops)
11237 (record_full_beneath_to_xfer_partial)
11238 (record_full_beneath_to_insert_breakpoint_ops)
11239 (record_full_beneath_to_insert_breakpoint)
11240 (record_full_beneath_to_remove_breakpoint_ops)
11241 (record_full_beneath_to_remove_breakpoint)
11242 (record_full_beneath_to_stopped_by_watchpoint)
11243 (record_full_beneath_to_stopped_data_address)
11244 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11245 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11246 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11247 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11248 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11249 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11250 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11251 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11252 (record_full_resume, record_full_wait_1)
11253 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11254 (record_full_store_registers, record_full_xfer_partial)
11255 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11256 (record_full_async, record_full_core_xfer_partial): Use target
11258 * target-delegates.c: Rebuild.
11259 * target.c (current_xfer_partial): Remove.
11260 (update_current_target): Do not INHERIT or de_fault
11261 to_insert_breakpoint, to_remove_breakpoint,
11262 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11263 to_is_async_p, to_async. Do not set to_xfer_partial field.
11264 (default_xfer_partial): Simplify.
11265 (current_xfer_partial): Remove.
11266 (target_wait, target_resume): Simplify.
11267 (find_default_can_async_p, find_default_is_async_p): Update.
11268 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11269 to_xfer_partial, to_stopped_by_watchpoint,
11270 to_stopped_data_address.
11271 (target_store_registers): Simplify.
11272 (forward_target_remove_breakpoint)
11273 (forward_target_insert_breakpoint): Remove.
11274 (target_remove_breakpoint, target_insert_breakpoint)
11275 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11276 * target.h (struct target_ops) <to_resume, to_wait,
11277 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11278 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11279 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11281 (forward_target_remove_breakpoint)
11282 (forward_target_insert_breakpoint): Remove.
11283 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11285 (record_btrace_insert_breakpoint): Delegate directly.
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11290 * target-delegates.c: New file.
11291 * target.c: Include target-delegates.c.
11292 (init_dummy_target): Call install_dummy_methods.
11293 (complete_target_initialization): Call install_delegators.
11294 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11295 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11296 * make-target-delegates: New file.
11298 2014-02-19 Tom Tromey <tromey@redhat.com>
11300 * record.c (find_record_target): Use find_target_at.
11301 * target.c (find_target_at): New function.
11302 * target.h (find_target_at): Declare.
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11307 Add 'ops' argument.
11308 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11310 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11311 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11313 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11315 * linux-nat.c (save_sigtrap): Update.
11316 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11317 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11318 (linux_nat_close): Update.
11319 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11321 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11323 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11324 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11325 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11326 (tmp_to_async): Add 'ops' argument.
11327 (record_full_stopped_by_watchpoint, record_full_async)
11328 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11330 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11331 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11332 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11333 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11334 (remote_is_async_p, remote_async): Add 'ops' argument.
11335 (remote_stopped_data_address): Update.
11336 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11337 * target.c (update_current_target)
11338 (find_default_can_async_p, find_default_is_async_p): Update.
11339 (init_dummy_target): Update.
11340 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11341 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11342 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11343 (target_can_async_p, target_is_async_p, target_async)
11344 (target_stopped_by_watchpoint): Update.
11346 2014-02-19 Yao Qi <yao@codesourcery.com>
11349 * gdbarch.sh: Remove startup_gdbarch.
11350 * gdbarch.c: Regenerated.
11351 * gdbarch.h: Likewise.
11353 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11355 * rl78-tdep.c (rl78_g10_register_name): New function.
11356 (rl78_return_value): Add g10 support.
11357 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11360 2014-02-17 Doug Evans <xdje42@gmail.com>
11362 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11363 (SUBDIR_GUILE_SRCS): Ditto.
11364 (scm-gsmob.o): Ditto.
11366 2014-02-17 Yao Qi <yao@codesourcery.com>
11368 * gnu-nat.c (ILL_RPC): Declare defined function.
11370 2014-02-17 Yao Qi <yao@codesourcery.com>
11372 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11373 mach_msg_type_number_t.
11374 (gnu_write_inferior): Likewise.
11376 2014-02-17 Yao Qi <yao@codesourcery.com>
11378 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11380 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11381 (inf_validate_procs, inf_signal): Likewise.
11382 (S_exception_raise_request): Likewise.
11383 (do_mach_notify_dead_name): Likewise.
11384 (steal_exc_port): Likewise.
11385 (gnu_read_inferior): Change 'copy_count''s type to
11386 mach_msg_type_number_t.
11387 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11390 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11392 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11393 flag. Adjust all users; in particular...
11394 (gnu_wait): ..., don't decrement its value in here...
11395 (gnu_create_inferior): ..., and instead set the flag in here,
11396 around the startup_inferior call, and call that one with
11397 START_INFERIOR_TRAPS_EXPECTED.
11399 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11400 (ILL_RPC): ... new macro.
11401 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11402 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11403 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11404 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11405 functions with ILL_RPC macro.
11406 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11407 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11408 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11409 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11410 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11411 (S_proc_getlogin_reply, S_proc_getsid_reply)
11412 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11413 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11414 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11415 (S_proc_getnports_reply, S_proc_is_important_reply)
11416 (S_proc_get_code_reply): New stub functions, generated with
11419 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11420 collected the type check structures.
11422 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11424 2014-02-14 Doug Evans <dje@google.com>
11426 * target.c (target_write_partial): Fix result type.
11428 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11430 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11431 the proper offsets to access fpregset_t.
11433 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11435 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11436 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11437 * h8300-tdep.c (setmachinelist): Remove global.
11438 * hppa-tdep.c (hppa_sigtramp): Remove global.
11439 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11440 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11441 * ravenscar-thread.c (update_target_observer): Remove global.
11442 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11444 2014-02-12 Tom Tromey <tromey@redhat.com>
11446 * common/rsp-low.c: Update comments.
11447 * common/rsp-low.h: Update comments.
11449 2014-02-12 Tom Tromey <tromey@redhat.com>
11451 * common/rsp-low.c (convert_ascii_to_int): Remove.
11452 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11454 2014-02-12 Tom Tromey <tromey@redhat.com>
11456 * common/rsp-low.h (unhexify): Don't declare.
11457 * common/rsp-low.c (unhexify): Remove.
11459 2014-02-12 Tom Tromey <tromey@redhat.com>
11461 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11462 * common/rsp-low.c (convert_int_to_ascii): Remove.
11464 2014-02-12 Tom Tromey <tromey@redhat.com>
11466 * common/rsp-low.h (hexify): Don't declare.
11467 * common/rsp-low.c (hexify): Remove.
11469 2014-02-12 Tom Tromey <tromey@redhat.com>
11471 * common/rsp-low.c (hexify): Never take strlen of argument.
11473 2014-02-12 Tom Tromey <tromey@redhat.com>
11475 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11476 * remote.c (extended_remote_run, remote_rcmd)
11477 (remote_download_trace_state_variable, remote_save_trace_data)
11478 (remote_set_trace_notes): Update.
11479 * tracepoint.c (encode_source_string, tfile_write_status)
11480 (tfile_write_uploaded_tsv): Update.
11482 2014-02-12 Tom Tromey <tromey@redhat.com>
11484 * tracepoint.c: Include rsp-low.h.
11485 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11486 * remote.c: Include rsp-low.h.
11487 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11488 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11489 (remote_unescape_input): Move to common/rsp-low.c.
11490 * common/rsp-low.h: New file.
11491 * common/rsp-low.c: New file.
11492 * Makefile.in (SFILES): Add common/rsp-low.c.
11493 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11494 (COMMON_OBS): Add rsp-low.o.
11495 (rsp-low.o): New target.
11497 2014-02-12 Tom Tromey <tromey@redhat.com>
11499 * utils.h: Include print-utils.h.
11500 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11501 (int_string, core_addr_to_string, core_addr_to_string_nz)
11502 (hex_string, hex_string_custom): Don't declare.
11503 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11504 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11505 (hex_string_custom, int_string, core_addr_to_string)
11506 (core_addr_to_string_nz, host_address_to_string): Move to
11507 common/print-utils.c.
11508 * common/print-utils.h: New file.
11509 * common/print-utils.c: New file
11510 * Makefile.in (SFILES): Add common/print-utils.c.
11511 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11512 (COMMON_OBS): Add print-utils.o.
11513 (print-utils.o): New target.
11515 2014-02-12 Tom Tromey <tromey@redhat.com>
11517 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11519 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11521 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11523 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11525 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11526 if a PT_IO ptrace request returns sucessfully but indicates that 0
11527 bytes were transferred.
11529 2014-02-12 Pedro Alves <palves@redhat.com>
11530 Kevin Buettner <kevinb@redhat.com>
11532 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11533 TYPE_INSTANCE_FLAG_CODE_SPACE.
11535 2014-02-12 Pedro Alves <palves@redhat.com>
11537 * h8300-tdep.c (pseudo_from_raw_register)
11538 (raw_from_pseudo_register): New functions.
11539 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11542 2014-02-12 Pedro Alves <palves@redhat.com>
11544 * h8300-tdep.c (h8300_register_sim_regno): New function.
11545 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11546 gdbarch_register_sim_regno hook.
11548 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11550 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11552 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11554 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11556 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11558 * obsd-tdep.h (obsd_init_abi): New prototype.
11559 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11560 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11561 (obsd_init_abi): New functions.
11562 * i386obsd-tdep.c: Include "obsd-tdep.h".
11563 (i386obsd_init_abi): Call obsd_init_abi.
11564 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11565 (amd64obsd_init_abi): Call obsd_init_abi.
11566 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11567 obsd-tdep.c to gdb_target_obs.
11569 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11571 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11572 double float arguments to 16-byte in the argument slots.
11574 2014-02-11 Doug Evans <xdje42@gmail.com>
11576 * configure.ac: Don't crash if pkg-config is not found and guile
11577 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11579 * configure: Regenerate.
11581 2014-02-11 Yao Qi <yao@codesourcery.com>
11583 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11584 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11585 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11586 * gnu-nat.c (gnu_xfer_memory): Likewise.
11587 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11588 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11589 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11590 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11592 2014-02-11 Yao Qi <yao@codesourcery.com>
11594 * target.h (enum target_xfer_error): Rename to ...
11595 (enum target_xfer_status): ... it. New. All users updated.
11596 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11598 (TARGET_XFER_STATUS_ERROR_P): New macro.
11599 (target_xfer_error_to_string): Remove declaration.
11600 (target_xfer_status_to_string): Declare.
11601 (target_xfer_partial_ftype): Adjust it.
11602 (struct target_ops) <to_xfer_partial>: Return
11603 target_xfer_status. Add argument xfered_len. Update
11605 * target.c (target_xfer_error_to_string): Rename to ...
11606 (target_xfer_status_to_string): ... it. New. All callers
11608 (target_read_live_memory): Likewise. Call target_xfer_partial
11609 instead of target_read.
11610 (memory_xfer_live_readonly_partial): Return
11611 target_xfer_status. Add argument xfered_len.
11612 (raw_memory_xfer_partial): Likewise.
11613 (memory_xfer_partial_1): Likewise.
11614 (memory_xfer_partial): Likewise.
11615 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11616 properly. Update debug message.
11617 (default_xfer_partial, current_xfer_partial): Likewise.
11618 (target_write_partial): Likewise.
11619 (target_read_partial): Likewise. All callers updated.
11620 (read_whatever_is_readable): Likewise.
11621 (target_write_with_progress): Likewise.
11622 (target_read_alloc_1): Likewise.
11624 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11625 * auxv.c (procfs_xfer_auxv): Likewise.
11626 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11627 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11628 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11629 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11630 * corefile.c (read_memory): Adjust.
11631 * corelow.c (core_xfer_partial): Likewise.
11632 * ctf.c (ctf_xfer_partial): Likewise.
11633 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11635 (darwin_xfer_partial): Likewise.
11636 * exec.c (section_table_xfer_memory_partial): Likewise. All
11638 (exec_xfer_partial): Likewise.
11639 * exec.h (section_table_xfer_memory_partial): Update
11641 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11643 (gnu_xfer_partial): Likewise.
11644 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11645 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11646 (ia64_hpux_xfer_solib_got): Likewise.
11647 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11648 type of 'partial_len' to ULONGEST.
11649 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11650 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11651 (linux_nat_xfer_partial): Likewise.
11652 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11653 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11654 * monitor.c (monitor_xfer_memory): Likewise.
11655 (monitor_xfer_partial): Likewise.
11656 * procfs.c (procfs_xfer_partial): Likewise.
11657 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11658 * record-full.c (record_full_xfer_partial): Likewise.
11659 (record_full_core_xfer_partial): Likewise.
11660 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11661 (gdbsim_xfer_partial): Likewise.
11662 * remote.c (remote_write_bytes_aux): Likewise. All callers
11664 (remote_write_bytes, remote_read_bytes): Likewise. All
11666 (remote_flash_erase): Likewise. All callers updated.
11667 (remote_write_qxfer): Likewise. All callers updated.
11668 (remote_read_qxfer): Likewise. All callers updated.
11669 (remote_xfer_partial): Likewise.
11670 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11671 (rs6000_xfer_shared_libraries): Likewise.
11672 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11673 (sol_thread_xfer_partial): Likewise.
11674 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11675 (sparc_xfer_partial): Likewise.
11676 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11678 (spu_xfer_partial): Likewise.
11679 * spu-multiarch.c (spu_xfer_partial): Likewise.
11680 * tracepoint.c (tfile_xfer_partial): Likewise.
11681 * windows-nat.c (windows_xfer_memory): Likewise.
11682 (windows_xfer_shared_libraries): Likewise.
11683 (windows_xfer_partial): Likewise.
11684 * valprint.c: Replace 'target_xfer_error' with
11685 'target_xfer_status' in comments.
11687 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11689 Checked in by Joel Brobecker <brobecker@adacore.com>.
11690 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11692 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11694 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11695 function parameters.
11697 2014-02-10 Will Newton <will.newton@linaro.org>
11699 * elfread.c (elf_rel_plt_read): Look for a .got section if
11700 looking up .got.plt fails.
11701 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11702 on address passed to elf_gnu_ifunc_record_cache.
11703 (elf_gnu_ifunc_resolve_addr): Likewise.
11704 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11706 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11708 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11709 (X_RETTURN): New macro.
11710 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11712 * sparc64-tdep.c (sparc64_init_abi): Hook
11713 sparc_in_function_epilogue_p.
11715 2014-02-10 Gary Benson <gbenson@redhat.com>
11717 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11718 Rename name_matcher to symbol_matcher.
11720 2014-02-10 Gary Benson <gbenson@redhat.com>
11722 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11723 Use expand_symtabs_file_matcher_ftype and
11724 expand_symtabs_symbol_matcher_ftype.
11726 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11728 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11729 (struct ada_symbol_cache): New.
11730 (ada_free_symbol_cache): Forward declare.
11731 (struct ada_pspace_data): New.
11732 (ada_pspace_data_handle): New static global.
11733 (get_ada_pspace_data, ada_pspace_data_cleanup)
11734 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11735 (cache_space, cache): Delete, now folded inside struct
11737 (ada_get_symbol_cache): New function.
11738 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11740 (_initialize_ada_language): Remove initialization of cache_space.
11741 Move call to observer_attach_inferior_exit up, grouping it
11742 with the other observer registrations inside this function.
11743 Rename command to be more general. Add call to
11744 register_program_space_data_with_cleanup.
11746 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11748 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11749 ada_new_objfile_observer.
11750 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11751 (_initialize_tasks): Update uses of ada_new_objfile_observer
11752 and ada_tasks_normal_stop_observer.
11754 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11756 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11757 returned by the 'Length attribute to integer.
11759 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11761 * ada-lang.c (_initialize_ada_language): Initialize
11762 cache_space obstack.
11764 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11766 * ada-lang.c (HASH_SIZE): New macro.
11767 (struct cache_entry): New type.
11768 (cache_space, cache): New static globals.
11769 (ada_clear_symbol_cache, find_entry): New functions.
11770 (lookup_cached_symbol, cache_symbol): Implement.
11771 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11772 (_initialize_ada_language): Attach ada_new_objfile_observer
11773 and ada_free_objfile_observer.
11775 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11777 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11778 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11779 struct block * parameter.
11780 (ada_lookup_symbol_list_worker): Constify local variable "block".
11781 Remove cast which is no longer necessary.
11783 2014-02-10 Doug Evans <xdje42@gmail.com>
11785 Add Guile as an extension language.
11786 * NEWS: Mention Guile scripting.
11787 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11788 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11789 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11790 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11791 (CLIBS): Add GUILE_LIBS.
11792 (install-guile): New rule.
11793 (guile.o): New rule.
11794 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11795 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11796 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11797 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11798 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11799 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11800 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11801 * configure.ac: New option --with-guile.
11802 * configure: Regenerate.
11803 * config.in: Regenerate.
11804 * auto-load.c: Remove #include "python/python.h". Add #include
11805 "gdb/section-scripts.h".
11806 (source_section_scripts): Handle Guile scripts.
11807 (_initialize_auto_load): Add name of Guile objfile script to
11808 scripts-directory help text.
11809 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11810 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11811 (struct breakpoint): New member scm_bp_object.
11812 * defs.h (enum command_control_type): New value guile_control.
11813 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11815 (show_user): Update comment.
11816 (_initialize_cli_cmds): Update help text for "show user". Update help
11817 text for max-user-call-depth.
11818 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11820 (multi_line_command_p): Add guile_control.
11821 (print_command_lines): Handle guile_control.
11822 (execute_control_command, recurse_read_control_structure): Ditto.
11823 (process_next_line): Recognize "guile" commands.
11824 * disasm.c (gdb_disassemble_info): Make non-static.
11825 * disasm.h: #include "dis-asm.h".
11826 (struct gdbarch): Add forward decl.
11827 (gdb_disassemble_info): Declare.
11828 * extension.c: #include "guile/guile.h".
11829 (extension_languages): Add guile.
11830 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11831 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11832 * gdbtypes.c (get_unsigned_type_max): New function.
11833 (get_signed_type_minmax): New function.
11834 * gdbtypes.h (get_unsigned_type_max): Declare.
11835 (get_signed_type_minmax): Declare.
11836 * guile/README: New file.
11837 * guile/guile-internal.h: New file.
11838 * guile/guile.c: New file.
11839 * guile/guile.h: New file.
11840 * guile/scm-arch.c: New file.
11841 * guile/scm-auto-load.c: New file.
11842 * guile/scm-block.c: New file.
11843 * guile/scm-breakpoint.c: New file.
11844 * guile/scm-disasm.c: New file.
11845 * guile/scm-exception.c: New file.
11846 * guile/scm-frame.c: New file.
11847 * guile/scm-gsmob.c: New file.
11848 * guile/scm-iterator.c: New file.
11849 * guile/scm-lazy-string.c: New file.
11850 * guile/scm-math.c: New file.
11851 * guile/scm-objfile.c: New file.
11852 * guile/scm-ports.c: New file.
11853 * guile/scm-pretty-print.c: New file.
11854 * guile/scm-safe-call.c: New file.
11855 * guile/scm-string.c: New file.
11856 * guile/scm-symbol.c: New file.
11857 * guile/scm-symtab.c: New file.
11858 * guile/scm-type.c: New file.
11859 * guile/scm-utils.c: New file.
11860 * guile/scm-value.c: New file.
11861 * guile/lib/gdb.scm: New file.
11862 * guile/lib/gdb/boot.scm: New file.
11863 * guile/lib/gdb/experimental.scm: New file.
11864 * guile/lib/gdb/init.scm: New file.
11865 * guile/lib/gdb/iterator.scm: New file.
11866 * guile/lib/gdb/printing.scm: New file.
11867 * guile/lib/gdb/types.scm: New file.
11868 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11869 (VPATH): Add $(GUILE_SRCDIR).
11870 (GUILE_DIR): New variable.
11871 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11872 (all): Add stamp-guile dependency.
11873 (stamp-guile): New rule.
11874 (clean-guile, install-guile, uninstall-guile): New rules.
11875 (install-only): Add install-guile dependency.
11876 (uninstall): Add uninstall-guile dependency.
11877 (clean): Add clean-guile dependency.
11879 2014-02-09 Doug Evans <xdje42@gmail.com>
11881 Revert this patch (which I approved, mea culpa).
11883 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11885 * Makefile.in (all-lib): Remove.
11886 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11888 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11890 Fix Python stack corruption.
11891 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11894 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11896 * Makefile.in (all-lib): Remove.
11897 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11899 2014-02-07 Doug Evans <dje@google.com>
11901 * extension-priv.h (extension_language_script_ops): Add comment.
11902 (extension_language_ops): Add comment.
11903 (active_ext_lang_state): Fix typo in comment.
11905 2014-02-07 Pedro Alves <palves@redhat.com>
11907 PR breakpoints/16292
11908 * infrun.c (handle_signal_stop) <signal arrives while stepping
11909 over a breakpoint>: Switch back to the stepping thread.
11911 2014-02-07 Yao Qi <yao@codesourcery.com>
11913 * target.c (target_xfer_partial): Return zero if LEN is zero.
11915 2014-02-07 Yao Qi <yao@codesourcery.com>
11917 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11918 (ld_so_xfer_auxv): Likewise.
11919 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11920 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11921 * corelow.c (core_xfer_partial): Likewise.
11922 * ctf.c (ctf_xfer_partial): Likewise.
11923 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11924 (darwin_xfer_partial): Likewise.
11925 * exec.c (exec_xfer_partial): Likewise.
11926 * gnu-nat.c (gnu_xfer_partial): Likewise.
11927 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11928 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11929 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11930 * linux-nat.c (linux_xfer_siginfo): Likewise.
11931 (linux_proc_xfer_spu): Likewise.
11932 * procfs.c (procfs_xfer_partial): Likewise.
11933 * record-full.c (record_full_xfer_partial): Likewise.
11934 (record_full_core_xfer_partial): Likewise.
11935 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11936 * remote.c (remote_write_qxfer): Likewise.
11937 (remote_write_qxfer, remote_read_qxfer): Likewise.
11938 (remote_xfer_partial): Likewise.
11939 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11940 (rs6000_xfer_shared_libraries): Likewise.
11941 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11942 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11943 (spu_xfer_partial): Likewise.
11944 * target.c (memory_xfer_partial_1): Likewise.
11945 * tracepoint.c (tfile_xfer_partial): Likewise.
11946 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11947 (windows_xfer_partial): Likewise.
11949 2014-02-07 Yao Qi <yao@codesourcery.com>
11951 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11953 (core_xfer_shared_libraries_aix): Likewise.
11954 * gdbarch.c, gdbarch.h: Regenerated.
11955 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11956 ULONGEST. Change 'len_avail' type to ULONGEST.
11957 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11958 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11960 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11962 2014-02-07 Yao Qi <yao@codesourcery.com>
11964 * corefile.c (memory_error): Get 'exception' from ERR and pass
11965 'exception' to throw_error.
11967 2014-02-06 Doug Evans <xdje42@gmail.com>
11969 * configure.ac (libpython checking): Remove all but python.o from
11970 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11971 * configure: Regenerate.
11973 * Makefile.in (SFILES): Add extension.c.
11974 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11975 (COMMON_OBS): Add extension.o.
11976 * extension.h: New file.
11977 * extension-priv.h: New file.
11978 * extension.c: New file.
11980 * python/python-internal.h: #include "extension.h".
11981 (gdbpy_auto_load_enabled): Declare.
11982 (gdbpy_apply_val_pretty_printer): Declare.
11983 (gdbpy_apply_frame_filter): Declare.
11984 (gdbpy_preserve_values): Declare.
11985 (gdbpy_breakpoint_cond_says_stop): Declare.
11986 (gdbpy_breakpoint_has_cond): Declare.
11987 (void source_python_script_for_objfile): Delete.
11988 * python/python.c: #include "extension-priv.h".
11989 Delete inclusion of "observer.h".
11990 (extension_language_python): Moved here and renamed from
11991 script_language_python in py-auto-load.c.
11992 Redefined to be of type extension_language_defn.
11993 (python_extension_script_ops): New global.
11994 (python_extension_ops): New global.
11995 (struct python_env): New member previous_active.
11996 (restore_python_env): Call restore_active_ext_lang.
11997 (ensure_python_env): Call set_active_ext_lang.
11998 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12000 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12002 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12004 (gdbpy_eval_from_control_command): Renamed from
12005 eval_python_from_control_command, made static. New arg extlang.
12006 (gdbpy_source_script) Renamed from source_python_script, made static.
12008 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12009 result to int. New arg extlang.
12010 (gdbpy_source_objfile_script): Renamed from
12011 source_python_script_for_objfile, made static. New arg extlang.
12012 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12013 static. New args extlang, extlang_printers. Change result type to
12015 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12016 static. New arg extlang. Rename arg printers to extlang_printers
12017 and change type to ext_lang_type_printers *.
12018 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12019 static. Replace argument arg with extlang, extlang_printers.
12020 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12021 (!HAVE_PYTHON, source_python_script): Delete.
12022 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12023 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12024 (!HAVE_PYTHON, start_type_printers): Delete.
12025 (!HAVE_PYTHON, apply_type_printers): Delete.
12026 (!HAVE_PYTHON, free_type_printers): Delete.
12027 (_initialize_python): Delete call to observer_attach_before_prompt.
12028 (finalize_python): Set/restore active extension language.
12029 (gdbpy_finish_initialization) Renamed from
12030 finish_python_initialization, made static. New arg extlang.
12031 (gdbpy_initialized): New function.
12032 * python/python.h: #include "extension.h". Delete #include
12033 "value.h", "mi/mi-cmds.h".
12034 (extension_language_python): Declare.
12035 (GDBPY_AUTO_FILE_NAME): Delete.
12036 (enum py_bt_status): Moved to extension.h and renamed to
12037 ext_lang_bt_status.
12038 (enum frame_filter_flags): Moved to extension.h.
12039 (enum py_frame_args): Moved to extension.h and renamed to
12040 ext_lang_frame_args.
12041 (finish_python_initialization): Delete.
12042 (eval_python_from_control_command): Delete.
12043 (source_python_script): Delete.
12044 (apply_val_pretty_printer): Delete.
12045 (apply_frame_filter): Delete.
12046 (preserve_python_values): Delete.
12047 (gdbpy_script_language_defn): Delete.
12048 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12049 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12051 * auto-load.c: #include "extension.h".
12052 (GDB_AUTO_FILE_NAME): Delete.
12053 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12054 (script_language_gdb): Delete, moved to extension.c and renamed to
12055 extension_language_gdb.
12056 (source_gdb_script_for_objfile): Delete.
12057 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12058 (loaded_script): Change type of language member to
12059 struct extension_language_defn *.
12060 (init_loaded_scripts_info): Initialize
12061 unsupported_script_warning_printed.
12062 (maybe_add_script): Make static. Change type of language arg to
12063 struct extension_language_defn *.
12064 (clear_section_scripts): Reset unsupported_script_warning_printed.
12065 (auto_load_objfile_script_1): Rewrite to use extension language API.
12066 (auto_load_objfile_script): Make public. Remove support-compiled-in
12067 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12068 (source_section_scripts): Rewrite to use extension language API.
12069 (load_auto_scripts_for_objfile): Rewrite to use
12070 auto_load_scripts_for_objfile.
12071 (collect_matching_scripts_data): Change type of language member to
12072 struct extension_language_defn *.
12073 (auto_load_info_scripts): Change type of language arg to
12074 struct extension_language_defn *.
12075 (unsupported_script_warning_print): New function.
12076 (script_not_found_warning_print): Make static.
12077 (_initialize_auto_load): Rewrite construction of scripts-directory
12079 * auto-load.h (struct objfile): Add forward decl.
12080 (struct script_language): Delete.
12081 (struct auto_load_pspace_info): Add forward decl.
12082 (struct extension_language_defn): Add forward decl.
12083 (maybe_add_script): Delete.
12084 (auto_load_objfile_script): Declare.
12085 (script_not_found_warning_print): Delete.
12086 (auto_load_info_scripts): Update prototype.
12087 (auto_load_gdb_scripts_enabled): Declare.
12088 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12089 auto_load_python_scripts_enabled and made public.
12090 (script_language_python): Delete, moved to python.c.
12091 (gdbpy_script_language_defn): Delete.
12092 (info_auto_load_python_scripts): Update to use
12093 extension_language_python.
12095 * breakpoint.c (condition_command): Replace call to
12096 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12097 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12098 with call to breakpoint_ext_lang_cond_says_stop.
12099 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12100 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12101 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12102 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12104 (local_setattro): Print name of extension language with existing
12107 * valprint.c (val_print, value_print): Update to call
12108 apply_ext_lang_val_pretty_printer.
12109 * cp-valprint.c (cp_print_value): Update call to
12110 apply_ext_lang_val_pretty_printer.
12111 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12112 (gdbpy_apply_val_pretty_printer): Renamed from
12113 apply_val_pretty_printer. New arg extlang.
12114 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12116 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12117 extension language API.
12118 * cli/cli-script.c (execute_control_command): Update to call
12119 eval_ext_lang_from_control_command.
12121 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12122 enum ext_lang_bt_status values. Update call to
12123 apply_ext_lang_frame_filter.
12124 (mi_cmd_stack_list_locals): Ditto.
12125 (mi_cmd_stack_list_args): Ditto.
12126 (mi_cmd_stack_list_variables): Ditto.
12127 * mi/mi-main.c: Delete #include "python/python-internal.h".
12128 Add #include "extension.h".
12129 (mi_cmd_list_features): Replace reference to python internal variable
12130 gdb_python_initialized with call to ext_lang_initialized_p.
12132 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12133 Update to use enum ext_lang_frame_args. Update to call
12134 apply_ext_lang_frame_filter.
12135 * python/py-framefilter.c (extract_sym): Update to use enum
12136 ext_lang_bt_status.
12137 (extract_value, py_print_type, py_print_value): Ditto.
12138 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12139 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12140 (py_print_frame): Ditto.
12141 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12142 New arg extlang. Update to use enum ext_lang_bt_status.
12144 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12145 finish_python_initialization. Replace with call to
12146 finish_ext_lang_initialization.
12148 * typeprint.c (do_free_global_table): Update to call
12149 free_ext_lang_type_printers.
12150 (create_global_typedef_table): Update to call
12151 start_ext_lang_type_printers.
12152 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12153 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12154 (type_print_options): Change type of global_printers from "void *"
12155 to "struct ext_lang_type_printers *".
12157 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12158 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12159 (gdbpy_preserve_values): Renamed from preserve_python_values.
12161 (!HAVE_PYTHON, preserve_python_values): Delete.
12163 * utils.c (quit_flag): Delete, moved to extension.c.
12164 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12167 * eval.c: Delete #include "python/python.h".
12168 * main.c: Delete #include "python/python.h".
12170 * defs.h: Update comment.
12172 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12176 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12178 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12181 2014-02-05 Yao Qi <yao@codesourcery.com>
12183 * remote.c (remote_pass_signals): Remove local 'buf' and use
12185 (remote_program_signals): Likewise.
12187 2014-02-05 Yao Qi <yao@codesourcery.com>
12189 * ctf.c: Include "inferior.h" and "gdbthread.h".
12190 (CTF_PID): A new macro.
12191 (ctf_open): Call inferior_appeared and add_thread_silent.
12192 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12193 (ctf_thread_alive): New function.
12194 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12196 2014-02-05 Yao Qi <yao@codesourcery.com>
12200 2013-05-24 Yao Qi <yao@codesourcery.com>
12202 * tracepoint.c (TFILE_PID): Remove.
12203 (tfile_open): Don't add thread and inferior.
12204 (tfile_close): Don't set 'inferior_ptid'. Don't call
12205 exit_inferior_silent.
12206 (tfile_thread_alive): Remove.
12207 (init_tfile_ops): Don't set field 'to_thread_alive' of
12210 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12212 * remote.c (remote_start_remote): Call remote_check_symbols even
12213 if only symbol-file (not file) has been given.
12215 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12217 * gdbarch.sh (skip_entrypoint): New callback.
12218 * gdbarch.c, gdbarch.h: Regenerate.
12219 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12220 * infrun.c (fill_in_stop_func): Likewise.
12221 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12222 (ppc_elfv2_elf_make_msymbol_special): New function.
12223 (ppc_elfv2_skip_entrypoint): Likewise.
12224 (ppc_linux_init_abi): Install them for ELFv2.
12226 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12228 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12229 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12230 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12231 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12232 structures returned in GPRs.
12234 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12236 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12237 offset to the stack parameter list for the ELFv2 ABI.
12239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12241 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12242 set_gdbarch_convert_from_func_ptr_addr and
12243 set_gdbarch_elf_make_msymbol_special for ELFv1.
12244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12245 function descriptors on ELFv1.
12246 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12247 set up r12 at function entry.
12249 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12251 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12252 (struct gdbarch_tdep): New member elf_abi.
12254 * rs6000-tdep.c: Include "elf/ppc64.h".
12255 (rs6000_gdbarch_init): Detect ELF ABI version.
12257 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12259 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12260 within a register pair holding a DFP 128-bit value on little-endian.
12261 (ppc64_sysv_abi_return_value_base): Likewise.
12262 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12263 (dfp_pseudo_register_write): Likewise.
12265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12267 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12268 offset on little-endian when passing _Decimal32.
12269 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12273 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12274 of the overlapped FP register within the VSX register on little-
12276 (efpr_pseudo_register_write): Likewise.
12278 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12280 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12281 offset on little-endian when passing small structures.
12283 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12285 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12286 (struct ppc64_sysv_argpos): New data structure.
12287 (ppc64_sysv_abi_push_float): Remove.
12288 (ppc64_sysv_abi_push_val): New function.
12289 (ppc64_sysv_abi_push_integer): Likewise.
12290 (ppc64_sysv_abi_push_freg): Likewise.
12291 (ppc64_sysv_abi_push_vreg): Likewise.
12292 (ppc64_sysv_abi_push_param): Likewise.
12293 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12294 (ppc64_sysv_abi_return_value_base): New function.
12295 (ppc64_sysv_abi_return_value): Refactor to use it.
12297 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12299 * NEWS: Document new target powerpc64le-*-linux*.
12301 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12303 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12304 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12306 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12307 register set used in ELF core dumps. Add floating-point register set.
12309 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12311 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12312 dwarf2_to_gdb[] table using symbolic constants. Adjust
12313 penultimate entry from number representing the PC register
12314 to symbolic constant representing the MDR register. Add
12315 constant for the PC register to the end of the table.
12317 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12319 * bsd-kvm.c: Include <sys/param.h>
12321 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12323 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12325 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12327 * ada-lang.h (clear_ada_sym_cache): Delete.
12329 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12331 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12333 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12335 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12336 the sigreturn register save area only if the syscall is
12339 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12341 * valops.c (value_slice): Minor reformatting.
12343 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12345 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12347 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12349 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12350 New static globals.
12351 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12352 (ada_ignore_descriptive_types_p): New static global.
12353 (find_parallel_type_by_descriptive_type): Return immediately
12354 if ada_ignore_descriptive_types_p is set.
12355 (_initialize_ada_language): Register new commands "maintenance
12356 set ada", "maintenance show ada", "maintenance set ada
12357 ignore-descriptive-types" and "maintenance show ada
12358 ignore-descriptive-types".
12359 * NEWS: Add entry for new "maint ada set/show
12360 ignore-descriptive-types" commands.
12362 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12364 * record-btrace.c (record_btrace_close): Call btrace_teardown
12367 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12369 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12372 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12374 * ada-typeprint (type_is_full_subrange_of_target_type):
12376 (print_range): Add parameter bounds_prefered_p. If not set,
12377 try printing range types using the name of their base type.
12378 (print_range_type): Add parameter bounds_prefered_p.
12379 Use it in call to print_range.
12380 (print_array_type, ada_print_type): Update calls to print_range
12381 and print_range_type.
12383 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12385 * ada-typeprint.c (print_array_type, print_choices, print_range)
12386 (print_range_bound, print_dynamic_range_bound, print_range_type):
12387 Remove declaration.
12389 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12391 * ada-typeprint.c (print_range): Add missing empty line
12392 after local declaration.
12394 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12396 * ada-valprint.c (print_optional_low_bound): Get index_type's
12397 target type for as long as it is a TYPE_CODE_RANGE.
12399 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12401 * procfs.c (procfs_make_note_section): Remove assertion and
12402 associated comment.
12404 2014-01-24 Yao Qi <yao@codesourcery.com>
12406 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12407 * corelow.c (get_core_siginfo): Likewise.
12409 2014-01-24 Yao Qi <yao@codesourcery.com>
12411 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12412 ULONGEST. Don't check 'len' is negative.
12413 (remote_write_bytes): Change type of 'len' to ULONGEST.
12415 2014-01-23 Tom Tromey <tromey@redhat.com>
12418 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12419 Handle exception from frame.block.
12420 (FrameVars.fetch_frame_locals): Likewise.
12422 2014-01-23 Tom Tromey <tromey@redhat.com>
12425 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12426 on a NULL pointer. Move "goto error" to correct place.
12428 2014-01-23 Tom Tromey <tromey@redhat.com>
12431 * python/py-framefilter.c (apply_frame_filter): Call
12432 ensure_python_env after computing gdbarch.
12434 2014-01-23 Yao Qi <yao@codesourcery.com>
12436 * target.c (raw_memory_xfer_partial): Change argument type
12437 from void * to gdb_byte *.
12438 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12440 2014-01-22 Doug Evans <dje@google.com>
12442 New gdbserver option --debug-format=timestamp.
12443 * NEWS: Mention it.
12445 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12447 * syscalls/s390x-linux.xml: New file.
12448 * syscalls/s390-linux.xml: New file.
12449 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12450 (XML_SYSCALL_FILENAME_S390X): Likewise.
12451 (op_svc): New enum value for SVC opcode.
12452 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12453 (s390_linux_get_syscall_number): New function.
12454 (s390_gdbarch_init): Register '*get_syscall_number' and the
12455 syscall xml file name.
12456 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12457 "s390-linux.xml" and "s390x-linux.xml".
12458 * NEWS: Announce new feature.
12460 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12462 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12464 2014-01-22 Pedro Alves <palves@redhat.com>
12466 * xtensa-config.c: Include defs.h.
12468 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12470 * common/common-utils.h: Add "ARI:" comment beside __func__
12473 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12475 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12476 documentation a bit.
12478 2014-01-21 Roland McGrath <mcgrathr@google.com>
12480 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12481 * configure: Regenerate.
12482 * aclocal.m4: Regenerate.
12483 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12484 New substituted variables.
12485 (install-strip): New target.
12486 (INSTALL_SCRIPT): New substituted variable.
12487 (FLAGS_TO_PASS): Add it.
12488 (install-only): Use $(INSTALL_SCRIPT) rather than
12489 $(INSTALL_PROGRAM) for gcore.
12491 2014-01-20 Tom Tromey <tromey@redhat.com>
12493 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12496 2014-01-20 Tom Tromey <tromey@redhat.com>
12498 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12499 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12500 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12501 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12502 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12503 (struct cmd_list_element) <flags>: Remove.
12504 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12505 doc_allocated>: New fields.
12506 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12508 * maint.c (maintenance_do_deprecate): Update.
12509 * top.c (execute_command): Update.
12511 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12513 * xtensa-linux-nat.c: Include asm/ptrace.h.
12515 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12517 * Makefile.in (SFILES): Add d-support.c.
12518 (COMMON_OBS): Add d-support.o.
12519 * d-lang.h (d_parse_symbol): Add comment, now defined in
12521 * d-lang.c (parse_call_convention)
12522 (parse_attributes, parse_function_types)
12523 (parse_function_args, parse_type, parse_identifier)
12524 (call_convention_p, d_parse_symbol): Move functions to ...
12525 * d-support.c: ... New file.
12527 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12529 * d-lang.h (d_parse_symbol): Add declaration.
12530 * d-lang.c (extract_identifiers)
12531 (extract_type_info): Remove functions.
12532 (parse_call_convention, parse_attributes)
12533 (parse_function_types, parse_function_args)
12534 (parse_type, parse_identifier, call_convention_p)
12535 (d_parse_symbol): New functions.
12536 (d_demangle): Use d_parse_symbol to demangle D symbols.
12538 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12540 * d-lang.h (struct builtin_d_type): New data type.
12541 (builtin_d_type): Add declaration.
12542 * d-lang.c (d_language_arch_info, build_d_types)
12543 (builtin_d_type): New functions.
12544 (enum d_primitive_types): New data type.
12545 (d_language_defn): Change c_language_arch_info to
12546 d_language_arch_info.
12547 (d_type_data): New static variable.
12548 (_initialize_d_language): Initialize d_type_data.
12550 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12552 * d-lang.h (d_main_name): Add declaration.
12553 * d-lang.c (d_main_name): New function.
12554 * symtab.c (find_main_name): Add call to d_main_name.
12556 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12558 * d-lang.c (d_language_defn): Change macro_expansion_c to
12559 macro_expansion_no.
12561 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12563 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12565 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12567 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12568 gdb_exception" declaration.
12569 * remote.c (getpkt_or_notif_sane): Likewise.
12571 2014-01-17 Doug Evans <dje@google.com>
12573 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12574 function, contents of dirnames_to_char_ptr_vec_append moved here.
12575 (delim_string_to_char_ptr_vec): New function.
12576 (dirnames_to_char_ptr_vec_append): Rewrite.
12577 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12579 2014-01-17 Doug Evans <dje@google.com>
12581 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12583 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12584 #include "common-utils.h".
12585 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12586 * common/vec.h (VEC_ASSERT_PASS): Update.
12587 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12588 (MACH_CHECK_ERROR): Update.
12590 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12592 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12594 * gdbarch.h: Regenerate.
12596 2014-01-16 Tom Tromey <tromey@redhat.com>
12598 * value.c (struct value) <regnum>: Move earlier.
12600 2014-01-16 Tom Tromey <tromey@redhat.com>
12602 * remote.c (extended_remote_create_inferior): Rename from
12603 extended_remote_create_inferior_1. Add "ops" argument. Remove
12604 old implementation.
12606 2014-01-16 Pedro Alves <palves@redhat.com>
12608 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12609 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12612 2014-01-16 Doug Evans <dje@google.com>
12614 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12618 * btrace.h (btrace_thread_flag): New.
12619 (struct btrace_thread_info) <flags>: New.
12620 * record-btrace.c (record_btrace_resume_thread)
12621 (record_btrace_find_thread_to_move, btrace_step_no_history)
12622 (btrace_step_stopped, record_btrace_start_replaying)
12623 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12624 (record_btrace_find_resume_thread): New.
12625 (record_btrace_resume, record_btrace_wait): Extend.
12626 (record_btrace_can_execute_reverse): New.
12627 (record_btrace_open): Fail in non-stop mode.
12628 (record_btrace_set_replay): Split into this, ...
12629 (record_btrace_stop_replaying): ... this, ...
12630 (record_btrace_clear_histories): ... and this.
12631 (init_record_btrace_ops): Init to_can_execute_reverse.
12632 * NEWS: Announce it.
12634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12636 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12637 (forward_target_decr_pc_after_break)
12638 (target_decr_pc_after_break): New.
12639 * target.c (forward_target_decr_pc_after_break)
12640 (target_decr_pc_after_break): New.
12641 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12642 instead of gdbarch_decr_pc_after_break.
12643 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12644 instead of gdbarch_decr_pc_after_break.
12645 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12646 instead of gdbarch_decr_pc_after_break.
12647 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12648 instead of gdbarch_decr_pc_after_break.
12649 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12650 instead of gdbarch_decr_pc_after_break.
12651 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12652 instead of gdbarch_decr_pc_after_break.
12654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12656 * btrace.c: Include regcache.h.
12657 (btrace_add_pc): New.
12658 (btrace_enable): Call btrace_add_pc.
12659 (btrace_is_empty): New.
12660 * btrace.h (btrace_is_empty): New.
12661 * record-btrace.c (require_btrace, record_btrace_info): Call
12664 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12666 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12667 Support delta reads.
12668 (linux_disable_btrace): Change return type.
12669 * common/linux-btrace.h (linux_read_btrace): Change parameters
12670 and return type to allow error reporting. Update users.
12671 (linux_disable_btrace): Change return type. Update users.
12672 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12674 (btrace_error): New.
12675 (btrace_block) <begin>: Comment on BEGIN == 0.
12676 * btrace.c (btrace_compute_ftrace): Start from the end of
12678 (btrace_stitch_trace, btrace_clear_history): New.
12679 (btrace_fetch): Read delta trace, return if replaying.
12680 (btrace_clear): Move clear history code to btrace_clear_history.
12681 (parse_xml_btrace): Throw an error if parsing failed.
12682 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12683 and return type to allow error reporting.
12684 (target_read_btrace): Change parameters and return type to allow
12686 * target.c (target_read_btrace): Update.
12687 * remote.c (remote_read_btrace): Support delta reads. Pass
12689 * NEWS: Announce it.
12691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12693 * record.h (record_btrace_frame_unwind)
12694 (record_btrace_tailcall_frame_unwind): New declarations.
12695 * dwarf2-frame: Include record.h
12696 (dwarf2_frame_cfa): Throw an error for btrace frames.
12697 * record-btrace.c: Include hashtab.h.
12698 (btrace_get_bfun_name): New.
12699 (btrace_call_history): Call btrace_get_bfun_name.
12700 (struct btrace_frame_cache): New.
12702 (bfcache_hash, bfcache_eq, bfcache_new): New.
12703 (btrace_get_frame_function): New.
12704 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12705 (record_btrace_frame_this_id): Compute own id.
12706 (record_btrace_frame_prev_register): Provide PC, throw_error
12707 for all other registers.
12708 (record_btrace_frame_sniffer): Detect btrace frames.
12709 (record_btrace_tailcall_frame_sniffer): New.
12710 (record_btrace_frame_dealloc_cache): New.
12711 (record_btrace_frame_unwind): Add new functions.
12712 (record_btrace_tailcall_frame_unwind): New.
12713 (_initialize_record_btrace): Allocate cache.
12714 * btrace.c (btrace_clear): Call reinit_frame_cache.
12715 * NEWS: Announce it.
12717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12719 * record-btrace.c (record_btrace_set_replay)
12720 (record_btrace_goto_begin, record_btrace_goto_end)
12721 (record_btrace_goto): New.
12722 (init_record_btrace_ops): Initialize them.
12723 * NEWS: Announce it.
12725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12727 * record-btrace.c (record_btrace_find_new_threads)
12728 (record_btrace_thread_alive): New.
12729 (init_record_btrace_ops): Initialize to_find_new_threads and
12732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12734 * record-btrace.c (record_btrace_resume): New.
12735 (record_btrace_wait): New.
12736 (init_record_btrace_ops): Initialize to_wait and to_resume.
12738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12740 * record-btrace.c (record_btrace_xfer_partial)
12741 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12742 (record_btrace_allow_memory_access): New.
12743 (init_record_btrace_ops): Initialize new methods.
12744 * target.c (raw_memory_xfer_partial): Bail out if target reports
12745 that this memory is not available.
12747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12749 * target.h (target_ops) <to_insert_breakpoint>
12750 <to_remove_breakpoint>: Add target_ops parameter.
12751 (forward_target_insert_breakpoint): New.
12752 (forward_target_remove_breakpoint): New.
12753 (memory_remove_breakpoint, memory_insert_breakpoint):
12754 Add target_ops parameter.
12755 * target.c (target_insert_breakpoint): Split into this and ...
12756 (forward_target_insert_breakpoint): ... this.
12757 (target_remove_breakpoint): Split into this and ...
12758 (forward_target_remove_breakpoint): ... this.
12759 (debug_to_insert_breakpoint): Add target_ops parameter.
12760 Call forward_target_insert_breakpoint.
12761 (debug_to_remove_breakpoint): Add target_ops parameter.
12762 Call forward_target_remove_breakpoint.
12763 (update_current_target): Do not inherit or default to_insert_breakpoint
12764 and to_remove_breakpoint.
12765 * corelow.c (ignore): Add target_ops parameter.
12766 * exec.c (ignore): Add target_ops parameter.
12767 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12768 Add target_ops parameter.
12769 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12770 Add target_ops parameter.
12771 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12772 Add target_ops parameter.
12773 * record-full.c (record_full_beneath_to_insert_breakpoint)
12774 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12775 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12776 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12777 (record_full_core_remove_breakpoint): Add target_ops parameter.
12779 (record_full_beneath_to_insert_breakpoint_ops)
12780 (record_full_beneath_to_remove_breakpoint_ops)
12781 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12782 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12783 tmp_to_remove_breakpoint_ops,
12784 record_full_beneath_to_insert_breakpoint_ops, and
12785 record_full_beneath_to_remove_breakpoint_ops.
12786 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12787 (m32r_remove_breakpoint): Add target_ops parameter.
12788 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12789 Add target_ops parameter.
12790 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12791 Add target_ops parameter.
12793 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12794 Markus Metzger <markus.t.metzger@intel.com>
12796 * record-btrace.c: Include frame-unwind.h.
12797 (record_btrace_frame_unwind_stop_reason)
12798 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12799 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12801 (init_record_btrace_ops): Install it.
12803 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12805 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12808 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12810 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12813 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12815 * frame-unwind.c: Include target.h.
12816 (frame_unwind_try_unwinder): New function with code from ...
12817 (frame_unwind_find_by_frame): ... here. New variable
12818 unwinder_from_target, call also target_get_unwinder)
12819 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12820 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12821 * target.h (struct target_ops): New fields to_get_unwinder and
12822 to_get_tailcall_unwinder.
12823 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12825 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12827 * record-btrace.c (record_btrace_fetch_registers)
12828 (record_btrace_store_registers)
12829 (record_btrace_to_prepare_to_store): New.
12830 (init_record_btrace_ops): Add the above.
12832 2014-01-16 Tom Tromey <tromey@redhat.com>
12834 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12835 * target.h (struct target_ops) <to_prepare_to_store>: Add
12837 (target_prepare_to_store): Add argument.
12838 * target.c (debug_to_prepare_to_store): Add argument.
12839 (update_current_target): Update.
12840 * remote.c (remote_prepare_to_store): Add 'self' argument.
12841 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12842 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12843 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12844 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12846 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12847 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12848 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12849 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12850 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12854 * btrace.h (replay) <replay>: New.
12855 (btrace_is_replaying): New.
12856 * btrace.c (btrace_clear): Free replay iterator.
12857 (btrace_is_replaying): New.
12858 * record-btrace.c (record_btrace_is_replaying): New.
12859 (record_btrace_info): Print insn number if replaying.
12860 (record_btrace_insn_history): Start at replay position.
12861 (record_btrace_call_history): Start at replay position.
12862 (init_record_btrace_ops): Init to_record_is_replaying.
12864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12866 * record-btrace.c (record_btrace_insn_history_range): Include
12868 (record_btrace_insn_history_from): Adjust range.
12869 (record_btrace_call_history_range): Include
12871 (record_btrace_call_history_from): Adjust range.
12872 * NEWS: Announce changes.
12874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12876 * record.h (enum record_print_flag)
12877 <record_print_indent_calls>: New.
12878 * record.c (get_call_history_modifiers): Recognize /c modifier.
12879 (_initialize_record): Document /c modifier.
12880 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12881 Reorder fields. Optionally indent the function name. Update
12883 * NEWS: Announce changes.
12885 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12887 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12891 * btrace.c (ftrace_new_function): Start counting at one.
12892 * record-btrace.c (record_btrace_info): Adjust number of calls
12894 * NEWS: Announce it.
12896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12898 * record-btrace.c (btrace_call_history_insn_range): Print
12899 insn range as [begin, end].
12901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12903 * btrace.h (struct btrace_func_link): New.
12904 (enum btrace_function_flag): New.
12905 (struct btrace_inst): Rename to ...
12906 (struct btrace_insn): ...this. Update all users.
12907 (struct btrace_func) <ibegin, iend>: Remove.
12908 (struct btrace_func_link): New.
12909 (struct btrace_func): Rename to ...
12910 (struct btrace_function): ...this. Update all users.
12911 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12912 (number, level, flags>: New.
12913 (struct btrace_insn_iterator): Rename to ...
12914 (struct btrace_insn_history): ...this.
12916 (struct btrace_insn_iterator, btrace_call_iterator): New.
12917 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12918 (struct btrace_target_info) <begin, end, level>
12919 <insn_history, call_history>: New.
12920 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12921 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12922 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12923 (btrace_call_number, btrace_call_begin, btrace_call_end)
12924 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12925 (btrace_find_function_by_number, btrace_set_insn_history)
12926 (btrace_set_call_history): New.
12927 * btrace.c (btrace_init_insn_iterator)
12928 (btrace_init_func_iterator, compute_itrace): Remove.
12929 (ftrace_print_function_name, ftrace_print_filename)
12930 (ftrace_skip_file): Change
12931 parameter to const.
12932 (ftrace_init_func): Remove.
12933 (ftrace_debug): Use new btrace_function fields.
12934 (ftrace_function_switched): Also consider gaining and
12935 losing symbol information).
12936 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12937 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12938 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12940 (ftrace_new_function): Move. Remove debug print.
12941 (ftrace_update_lines, ftrace_update_insns): New.
12942 (ftrace_update_function): Check for call, ret, and jump.
12943 (compute_ftrace): Renamed to ...
12944 (btrace_compute_ftrace): ...this. Rewritten to compute call
12946 (btrace_fetch, btrace_clear): Updated.
12947 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12948 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12949 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12950 (btrace_call_number, btrace_call_begin, btrace_call_end)
12951 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12952 (btrace_find_function_by_number, btrace_set_insn_history)
12953 (btrace_set_call_history): New.
12954 * record-btrace.c (require_btrace): Use new btrace thread
12956 (record_btrace_info, btrace_insn_history)
12957 (record_btrace_insn_history, record_btrace_insn_history_range):
12958 Use new btrace thread info fields and new iterator.
12959 (btrace_func_history_src_line): Rename to ...
12960 (btrace_call_history_src_line): ...this. Use new btrace
12961 thread info fields.
12962 (btrace_func_history): Rename to ...
12963 (btrace_call_history): ...this. Use new btrace thread info
12964 fields and new iterator.
12965 (record_btrace_call_history, record_btrace_call_history_range):
12966 Use new btrace thread info fields and new iterator.
12968 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12970 * frame.h (frame_id_build_unavailable_stack_special): New.
12971 * frame.c (frame_id_build_unavailable_stack_special): New.
12973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12975 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12976 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12977 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12979 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12980 (i386_insn_is_jump, i386_jmp_p): New.
12981 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12982 insn_is_jump to gdbarch.
12983 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12984 * gdbarch.h: Regenerated.
12985 * gdbarch.c: Regenerated.
12986 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12987 (default_insn_is_jump): New.
12988 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12989 (default_insn_is_jump): New.
12991 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12993 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12995 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12996 (btrace_read_type) <btrace_read_new>: Change to ...
12997 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12999 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13001 * common/linux-btrace.c (linux_read_btrace): Free trace from
13002 previous iteration.
13004 2014-01-15 Doug Evans <dje@google.com>
13006 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13009 2014-01-15 Tom Tromey <tromey@redhat.com>
13011 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13012 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13013 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13014 (set_objfile_main_name): New function.
13015 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13016 language_of_main>: New fields.
13017 (set_objfile_main_name): Declare.
13018 * symtab.c (find_main_name): Loop over objfiles to find the main
13020 (set_main_name): Now static.
13021 (get_main_info): Add comment.
13022 * symtab.h (set_main_name): Don't declare.
13024 2014-01-15 Tom Tromey <tromey@redhat.com>
13026 * symtab.c (main_progspace_key): New global.
13027 (struct main_info): New.
13028 (name_of_main, language_of_main): Remove.
13029 (get_main_info, main_info_cleanup): New function.
13030 (set_main_name, main_name, main_language): Use get_main_info.
13031 (_initialize_symtab): Initialize main_progspace_key.
13033 2014-01-15 Tom Tromey <tromey@redhat.com>
13035 * dbxread.c (process_one_symbol): Update.
13036 * dwarf2read.c (read_partial_die): Update.
13037 * symfile.c (set_initial_language): Call main_language.
13038 * symtab.c (language_of_main): Now static.
13039 (set_main_name): Add 'lang' parameter.
13040 (find_main_name): Update.
13041 (main_language): New function.
13042 (symtab_observer_executable_changed): Update.
13043 * symtab.h (set_main_name): Update.
13044 (language_of_main): Remove.
13045 (main_language): Declare.
13047 2014-01-15 Tom Tromey <tromey@redhat.com>
13049 * symfile.c (init_entry_point_info): Use new "initialized" field.
13051 * objfiles.h (struct entry_point) <initialized>: New field.
13052 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13053 (struct objfile) <ei>: ...here. Remove.
13054 * objfiles.c (entry_point_address_query): Update.
13056 2014-01-15 Tom Tromey <tromey@redhat.com>
13058 * objfiles.c (entry_point_address_query): Relocate entry point
13060 (objfile_relocate1): Do not relocate entry point address.
13061 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13062 <the_bfd_section_index>: New field.
13063 * symfile.c (init_entry_point_info): Find the entry point's
13066 2014-01-15 Tom Tromey <tromey@redhat.com>
13068 * solib-frv.c (enable_break): Use entry_point_address_query.
13070 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13072 * NEWS: Add note on improved process record-replay on
13073 arm*-linux* targets.
13075 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13077 * arm-tdep.c (enum arm_record_result): New enum.
13078 (arm_record_unsupported_insn): New function.
13079 (arm_record_coproc_data_proc): Removed.
13080 (thumb2_record_ld_st_multiple): New function.
13081 (thumb2_record_ld_st_dual_ex_tbb): New function.
13082 (thumb2_record_data_proc_sreg_mimm): New function.
13083 (thumb2_record_ps_dest_generic): New function.
13084 (thumb2_record_branch_misc_cntrl): New function.
13085 (thumb2_record_str_single_data): New function.
13086 (thumb2_record_ld_mem_hints): New function.
13087 (thumb2_record_ld_word): New function.
13088 (thumb2_record_lmul_lmla_div): New function.
13089 (thumb2_record_decode_insn_handler): New function.
13090 (decode_insn): Add thumb32 instruction handlers.
13092 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13094 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13095 (struct arm_linux_record_tdep): Declare.
13096 (arm_canonicalize_syscall): New function.
13097 (arm_all_but_pc_registers_record): New function.
13098 (arm_linux_syscall_record): New function.
13099 (arm_linux_init_abi): Add syscall recording constructs.
13100 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13101 decoding. (arm_record_coproc_data_proc): Update arm syscall
13103 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13104 <arm_syscall_record>: New field.
13105 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13108 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13110 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13111 register for push instruction recording.
13113 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13115 * arm-tdep.c (thumb_record_misc): Update to correct logical
13116 error while recording ldm, ldmia and pop instructions.
13118 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13120 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13122 2014-01-15 Pedro Alves <palves@redhat.com>
13124 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13125 (go32_resume, go32_fetch_registers, store_register)
13126 (go32_store_registers, go32_prepare_to_store)
13127 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13128 (go32_create_inferior, go32_can_run, go32_terminal_init)
13129 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13132 2014-01-15 Tom Tromey <tromey@redhat.com>
13134 * target.h (async_callback_ftype): New typedef.
13135 (struct target_ops) <to_async>: Use it.
13137 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13139 * python/py-value.c (get_field_type): Remove unnecessary curly
13140 braces for single-statement if block.
13142 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13144 * python/py-type.c (convert_field): Add missing empty line
13145 after declarations.
13147 2014-01-14 Doug Evans <dje@google.com>
13149 * symfile.h (expand_symtabs_matching): Renamed from
13150 expand_partial_symbol_names. Update prototype.
13151 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13152 * symfile.c (expand_symtabs_matching): Renamed from
13153 expand_partial_symbol_names. New args file_matcher, kind.
13154 Rename arg fun to symbol_matcher.
13155 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13156 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13157 ada_expand_partial_symbol_name.
13158 (ada_make_symbol_completion_list): Update to call
13159 expand_symtabs_matching.
13160 (ada_add_global_exceptions): Call expand_symtabs_matching.
13161 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13162 call map_symbol_filenames.
13163 * symtab.c (sources_info): Update to call map_symbol_filenames.
13164 (search_symbols): Call expand_symtabs_matching.
13165 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13166 (default_make_symbol_completion_list_break_on): Update to call
13167 expand_symtabs_matching.
13168 (make_source_files_completion_list): Update to call
13169 map_symbol_filenames.
13171 2014-01-14 Doug Evans <dje@google.com>
13173 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13174 (expand_symtabs_symbol_matcher_ftype): New typedef.
13175 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13176 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13177 * symfile.c (expand_partial_symbol_names): Update to use
13178 expand_symtabs_symbol_matcher_ftype.
13179 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13180 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13181 Arg name_matcher renamed to symbol_matcher.
13182 * psymtab.c (recursively_search_psymtabs): Update to use
13183 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13185 (expand_symtabs_matching_via_partial): Update to use
13186 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13187 Arg name_matcher renamed to symbol_matcher.
13189 2014-01-14 Doug Evans <dje@google.com>
13191 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13192 (map_partial_symbol_filenames): Ditto.
13193 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13194 (map_partial_symbol_filenames): Ditto.
13195 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13196 (map_partial_symbol_filenames): Ditto.
13197 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13198 (map_partial_symbol_filenames): Ditto.
13199 * symtab.c: Delete #include "psymtab.h".
13201 2014-01-14 Pedro Alves <palves@redhat.com>
13202 Tom Tromey <tromey@redhat.com>
13204 * infrun.c (use_displaced_stepping): Use find_record_target
13205 instead of RECORD_IS_USED.
13206 (adjust_pc_after_break): Use record_full_is_used instead of
13208 * record-btrace.c (record_btrace_open): Call record_preopen
13209 instead of checking RECORD_IS_USED.
13210 * record-full.c (record_full_shortname)
13211 (record_full_core_shortname): New globals.
13212 (record_full_is_used): New function.
13213 (find_full_open): Call record_preopen instead of checking
13215 (init_record_full_ops): Set the target's shortname to
13216 record_full_shortname.
13217 (init_record_full_core_ops): Set the target's shortname to
13218 record_full_core_shortname.
13219 * record-full.h (record_full_is_used): Declare.
13220 * record.c (find_record_target): Make extern.
13221 (record_preopen): New function.
13222 * record.h (RECORD_IS_USED): Delete macro.
13223 (find_record_target, record_preopen): Declare functions.
13225 2014-01-14 Yao Qi <yao@codesourcery.com>
13227 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13228 'len''s type to ULONGEST.
13229 (core_xfer_shared_libraries_aix): Likewise.
13230 * gdbarch.c, gdbarch.h: Regenerated.
13231 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13232 Change type of 'len' to ULONGEST.
13233 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13234 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13236 2014-01-14 Yao Qi <yao@codesourcery.com>
13238 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13239 type of 'len' to ULONGEST.
13240 (linux_xfer_osdata_processgroups): Likewise.
13241 (linux_xfer_osdata_threads): Likewise.
13242 (linux_xfer_osdata_fds): Likewise.
13243 (linux_xfer_osdata_isockets): Likewise.
13244 (linux_xfer_osdata_shm): Likewise.
13245 (linux_xfer_osdata_sem): Likewise.
13246 (linux_xfer_osdata_msg): Likewise.
13247 (linux_common_xfer_osdata): Likewise.
13248 (struct osdata_type) <getter>: Likewise.
13249 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13252 2014-01-14 Yao Qi <yao@codesourcery.com>
13254 * target.h (target_xfer_partial_ftype): Update.
13255 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13257 * aix-thread.c (aix_thread_xfer_partial): Change type of
13258 argument 'len' to ULONGEST.
13259 * auxv.c (procfs_xfer_auxv): Likewise.
13260 (ld_so_xfer_auxv): Likewise.
13261 (memory_xfer_auxv): Likewise.
13262 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13263 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13264 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13265 * corelow.c (core_xfer_partial): Likewise.
13266 * ctf.c (ctf_xfer_partial): Likewise.
13267 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13269 (darwin_read_dyld_info): Likewise.
13270 (darwin_xfer_partial): Likewise.
13271 * exec.c (section_table_xfer_memory_partial): Likewise.
13272 (exec_xfer_partial): Likewise.
13273 * exec.h (section_table_xfer_memory_partial): Update
13275 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13276 instead of plongest.
13277 (gnu_xfer_partial): Likewise.
13278 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13279 (ia64_hpux_xfer_solib_got): Likewise.
13280 (ia64_hpux_xfer_partial): Likewise.
13281 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13282 * inf-ptrace.c (inf_ptrace_xfer_partial):
13283 * inf-ttrace.c (inf_ttrace_xfer_partial):
13284 * linux-nat.c (linux_xfer_siginfo): Likewise.
13285 (linux_nat_xfer_partial): Likewise.
13286 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13287 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13288 * monitor.c (monitor_xfer_memory): Likewise.
13289 (monitor_xfer_partial): Likewise.
13290 * procfs.c (procfs_xfer_partial): Likewise.
13291 * record-full.c (record_full_xfer_partial): Likewise.
13292 (record_full_core_xfer_partial): Likewise.
13293 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13294 instead of plongest.
13295 (gdbsim_xfer_partial): Likewise.
13296 * remote.c (remote_xfer_partial): Likewise.
13297 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13298 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13300 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13301 (rs6000_xfer_shared_libraries): Likewise.
13302 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13303 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13304 (sparc_xfer_partial): Likewise.
13305 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13306 (spu_xfer_partial): Likewise.
13307 * spu-multiarch.c (spu_xfer_partial): Likewise.
13308 * target.c (target_read_live_memory): Likewise.
13309 (memory_xfer_live_readonly_partial): Likewise.
13310 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13311 (target_xfer_partial, default_xfer_partial): Likewise.
13312 (current_xfer_partial): Likewise.
13313 * tracepoint.c (tfile_xfer_partial): Likewise.
13314 * windows-nat.c (windows_xfer_memory): Likewise. Call
13315 pulongest instead of plongest.
13316 (windows_xfer_partial): Likewise.
13317 (windows_xfer_shared_libraries): Likewise.
13319 2014-01-14 Yao Qi <yao@codesourcery.com>
13321 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13322 target_xfer_partial_ftype.
13324 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13328 * valops.c (value_struct_elt_bitpos): New function
13329 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13330 object to 'None' if the field name is an empty string ("").
13331 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13332 attribute to look for a field when 'name' is 'None'.
13333 (get_field_type): New function
13335 2014-01-13 Doug Evans <dje@google.com>
13338 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13339 (try_open_dwop_file): Ditto.
13340 * gdb_bfd.c: #include "vec.h".
13341 (bfdp): New typedef.
13342 (struct gdb_bfd_data): New member included_bfds.
13343 (gdb_bfd_unref): Unref all included bfds.
13344 (gdb_bfd_record_inclusion): New function.
13345 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13347 2014-01-13 Tom Tromey <tromey@redhat.com>
13349 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13351 2014-01-13 Tom Tromey <tromey@redhat.com>
13353 * defs.h (use_windows): Remove.
13354 * gdb.c (main): Update.
13355 * main.c (captured_main, gdb_main): Update.
13356 * main.h (struct captured_main_args) <use_windows>: Remove.
13357 * top.c (use_windows): Remove.
13359 2014-01-13 Tom Tromey <tromey@redhat.com>
13361 * defs.h (deprecated_flush_hook): Remove.
13363 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13366 * linux-thread-db.c (try_thread_db_load): Add parameter
13367 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13368 (try_thread_db_load_from_pdir_1): Move it there from here.
13369 (try_thread_db_load_from_sdir): Update caller.
13370 (try_thread_db_load_from_dir): Move it there from here.
13372 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13374 * regformats/regdat.sh: Always rewrite the register file.
13376 2014-01-13 Pedro Alves <palves@redhat.com>
13378 * Makefile.in (CHECK_HEADERS): New variable.
13379 (check-headers:): New rule.
13381 2014-01-13 Tom Tromey <tromey@redhat.com>
13383 * cli/cli-setshow.c (do_set_command): Update.
13384 * defs.h (deprecated_set_hook): Remove.
13385 * top.c (deprecated_set_hook): Remove.
13387 2014-01-13 Pedro Alves <palves@redhat.com>
13389 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13390 the tracepoint if the PC is a pseudo-register.
13392 2014-01-13 Tom Tromey <tromey@redhat.com>
13394 * defs.h (XCALLOC): Remove.
13395 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13396 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13397 * dwarf2loc.c (allocate_piece_closure): Likewise.
13398 * elfread.c (elf_symfile_segments): Likewise.
13399 (elf_symfile_segments): Likewise.
13400 * gdbtypes.c (copy_type_recursive): Likewise.
13401 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13402 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13403 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13405 * mt-tdep.c (mt_gdbarch_init): Likewise.
13406 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13408 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13409 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13410 * registry.c (registry_alloc_data): Likewise.
13411 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13412 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13413 * serial.c (serial_fdopen_ops): Likewise.
13414 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13416 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13417 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13420 2014-01-13 Tom Tromey <tromey@redhat.com>
13422 * defs.h (XMALLOC): Remove.
13423 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13424 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13425 * cli-out.c (struct ui_out *): Likewise.
13426 * cli/cli-dump.c (add_dump_command): Likewise.
13427 (add_dump_command): Likewise.
13428 * complaints.c (get_complaints): Likewise.
13429 (find_complaint): Likewise.
13430 * dwarf2-frame.c (execute_cfa_program): Likewise.
13431 * dwarf2read.c (abbrev_table_read_table): Likewise.
13432 * gdbarch.sh: Likewise.
13433 * gdbarch.c: Rebuild.
13434 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13435 * interps.c (interp_new): Likewise.
13436 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13437 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13438 * mi/mi-console.c (mi_console_file_new): Likewise.
13439 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13440 * mi/mi-out.c (mi_out_new): Likewise.
13441 * mi/mi-parse.c (mi_parse): Likewise.
13442 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13443 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13444 * observer.c (xalloc_observer_list_node): Likewise.
13445 * regcache.c (regcache_xmalloc_1): Likewise.
13446 * reggroups.c (reggroup_new): Likewise.
13447 (_initialize_reggroup): Likewise.
13448 * registry.c (register_data_with_cleanup): Likewise.
13449 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13450 * ser-base.c (serial_ttystate): Likewise.
13451 * ser-mingw.c (make_pipe_state): Likewise.
13452 * ser-pipe.c (pipe_open): Likewise.
13453 * serial.c (serial_open): Likewise.
13454 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13455 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13456 (tui_alloc_win_info): Likewise.
13457 (tui_add_content_elements): Likewise.
13458 * tui/tui-file.c (tui_file_new): Likewise.
13459 * tui/tui-out.c (tui_out_new): Likewise.
13460 * ui-file.c (mem_file_new): Likewise.
13461 * ui-out.c (push_level): Likewise.
13462 (make_cleanup_ui_out_end): Likewise.
13463 (append_header_to_list): Likewise.
13464 (ui_out_new): Likewise.
13465 * user-regs.c (user_reg_add_builtin): Likewise.
13467 2014-01-13 Tom Tromey <tromey@redhat.com>
13469 * defs.h (XZALLOC): Remove.
13470 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13471 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13472 (get_ada_tasks_inferior_data): Likewise.
13473 * auto-load.c (get_auto_load_pspace_data): Likewise.
13474 * auxv.c (get_auxv_inferior_data): Likewise.
13475 * bfd-target.c (target_bfd_reopen): Likewise.
13476 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13477 (deprecated_insert_raw_breakpoint): Likewise.
13478 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13479 * corelow.c (core_open): Likewise.
13480 * darwin-nat.c (darwin_check_new_threads): Likewise.
13481 (darwin_attach_pid): Likewise.
13482 * dummy-frame.c (dummy_frame_push): Likewise.
13483 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13484 * dwarf2loc.c (allocate_piece_closure): Likewise.
13485 * elfread.c (elf_symfile_segments): Likewise.
13486 * eval.c (ptrmath_type_p): Likewise.
13487 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13488 * gdbtypes.c (alloc_type_arch): Likewise.
13489 (alloc_type_instance): Likewise.
13490 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13491 * inf-child.c (inf_child_can_use_agent): Likewise.
13492 * inflow.c (get_inflow_inferior_data): Likewise.
13493 * infrun.c (save_infcall_suspend_state): Likewise.
13494 * jit.c (jit_reader_load): Likewise.
13495 (get_jit_objfile_data): Likewise.
13496 (get_jit_program_space_data): Likewise.
13497 (jit_object_open_impl): Likewise.
13498 (jit_symtab_open_impl): Likewise.
13499 (jit_block_open_impl): Likewise.
13500 (jit_frame_sniffer): Likewise.
13501 * linux-fork.c (add_fork): Likewise.
13502 * maint.c (make_command_stats_cleanup): Likewise.
13503 * objfiles.c (get_objfile_pspace_data): Likewise.
13504 * opencl-lang.c (struct lval_closure): Likewise.
13505 * osdata.c (osdata_start_osdata): Likewise.
13506 * progspace.c (new_address_space): Likewise.
13507 (add_program_space): Likewise.
13508 * remote-sim.c (get_sim_inferior_data): Likewise.
13509 * sh-tdep.c (sh_gdbarch_init): Likewise.
13510 * skip.c (Ignore): Likewise.
13511 (skip_delete_command): Likewise.
13512 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13513 (library_list_start_library): Likewise.
13514 (solib_aix_current_sos): Likewise.
13515 * solib-darwin.c (get_darwin_info): Likewise.
13516 (darwin_current_sos): Likewise.
13517 * solib-dsbt.c (get_dsbt_info): Likewise.
13518 * solib-ia64-hpux.c (new_so_list): Likewise.
13519 (ia64_hpux_get_solib_linkage_addr): Likewise.
13520 * solib-spu.c (append_ocl_sos): Likewise.
13521 (spu_current_sos): Likewise.
13522 * solib-svr4.c (get_svr4_info): Likewise.
13523 (svr4_keep_data_in_core): Likewise.
13524 (library_list_start_library): Likewise.
13525 (svr4_default_sos): Likewise.
13526 (svr4_read_so_list): Likewise.
13527 * solib-target.c (library_list_start_library): Likewise.
13528 (solib_target_current_sos): Likewise.
13529 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13530 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13531 * symfile.c (default_symfile_segments): Likewise.
13532 * target-descriptions.c (tdesc_data_init): Likewise.
13533 (tdesc_create_reg): Likewise.
13534 (struct tdesc_type *): Likewise.
13535 (tdesc_create_vector): Likewise.
13536 (tdesc_set_struct_size): Likewise.
13537 (struct tdesc_type *): Likewise.
13538 (tdesc_free_feature): Likewise.
13539 (tdesc_create_feature): Likewise.
13540 * windows-nat.c (windows_add_thread): Likewise.
13541 (windows_make_so): Likewise.
13542 * xml-support.c (gdb_xml_body_text): Likewise.
13543 (gdb_xml_create_parser_and_cleanup): Likewise.
13544 (xml_process_xincludes): Likewise.
13545 * xml-syscall.c (allocate_syscalls_info): Likewise.
13546 (syscall_create_syscall_desc): Likewise.
13548 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13550 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13551 function, with code from i386_stap_parse_special_token.
13552 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13553 (i386_stap_parse_special_token): Move code to the two functions
13554 above; simplify it.
13556 2014-01-09 Pedro Alves <palves@redhat.com>
13557 Hui Zhu <hui@codesourcery.com>
13560 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13561 bp_err_string. Don't mark the location shlib_disabled if the
13562 error thrown wasn't a generic or memory error. Catch errors
13563 thrown while inserting breakpoints in overlayed code. Output
13564 error message of software breakpoints.
13565 * remote.c (remote_insert_breakpoint): If this breakpoint has
13566 target-side commands but this stub doesn't support Z0 packets,
13567 throw NOT_SUPPORTED_ERROR error.
13568 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13569 * target.h (target_insert_breakpoint): Extend comment.
13570 (target_insert_hw_breakpoint): Add comment.
13572 2014-01-08 Pedro Alves <palves@redhat.com>
13574 * remote.c (remote_add_thread): Add threads silently if starting
13576 (remote_notice_new_inferior): If in all-stop, and starting up,
13577 don't call notice_new_inferior.
13578 (get_current_thread): New function, factored out from ...
13579 (add_current_inferior_and_thread): ... this. Adjust.
13580 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13581 found any thread, then select the remote's current thread as GDB's
13582 current thread too.
13584 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13586 * NEWS: Create a new section for the next release branch.
13587 Rename the section of the current branch, now that it has
13590 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13592 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13593 * version.in: Bump version to 7.7.50.DATE-cvs.
13595 2014-01-08 Yao Qi <yao@codesourcery.com>
13597 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13598 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13599 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13601 2014-01-08 Yao Qi <yao@codesourcery.com>
13603 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13604 return value of bfd_get_filename to symbol_file_add_from_bfd.
13606 2014-01-08 Pierre Muller <muller@sourceware.org>
13609 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13610 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13611 to prim_record_mininal_symbol_and_info.
13612 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13613 in call to prim_record_minimal_symbol_and_info.
13614 (read_pe_exported_syms): Set index field of section_data.
13616 2014-01-07 Andrew Pinski <apinski@cavium.com>
13618 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13619 * features/aarch64.c: Regenerate.
13621 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13623 * target.c (return_null): Define.
13624 (update_current_target): Use it instead of return_zero for
13625 functions that return a pointer.
13627 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13629 * source.c (add_path): Fix check for duplicated paths in the previously
13632 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13634 * ada-lang.c: Remove duplicated include statements.
13635 * alphabsd-nat.c: Ditto.
13636 * amd64-darwin-tdep.c: Ditto.
13637 * amd64fbsd-nat.c: Ditto.
13638 * auto-load.c: Ditto.
13640 * breakpoint.c: Ditto.
13641 * dbxread.c: Ditto.
13642 * fork-child.c: Ditto.
13643 * gdb_usleep.c: Ditto.
13644 * i386-darwin-tdep.c: Ditto.
13645 * i386fbsd-nat.c: Ditto.
13647 * inferior.c: Ditto.
13648 * jv-lang.c: Ditto.
13649 * linux-nat.c: Ditto.
13650 * linux-tdep.c: Ditto.
13651 * m68kbsd-nat.c: Ditto.
13652 * m68klinux-nat.c: Ditto.
13653 * microblaze-tdep.c: Ditto.
13654 * mips-linux-tdep.c: Ditto.
13655 * mn10300-tdep.c: Ditto.
13656 * nto-tdep.c: Ditto.
13657 * opencl-lang.c: Ditto.
13659 * printcmd.c: Ditto.
13660 * regcache.c: Ditto.
13661 * remote-m32r-sdi.c: Ditto.
13663 * symfile.c: Ditto.
13665 * tilegx-linux-nat.c: Ditto.
13666 * tilegx-tdep.c: Ditto.
13667 * tracepoint.c: Ditto.
13669 * vaxbsd-nat.c: Ditto.
13670 * windows-nat.c: Ditto.
13671 * xtensa-tdep.c: Ditto.
13673 2014-01-07 Yao Qi <yao@codesourcery.com>
13675 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13677 2014-01-07 Yao Qi <yao@codesourcery.com>
13678 Joel Brobecker <brobecker@adacore.com>
13680 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13681 (pdc_write_regs): Likewise.
13682 (fetch_regs_kernel_thread): Likewise.
13683 (store_regs_kernel_thread): Likewise.
13685 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13687 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13688 tagged type objects to their actual type.
13690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13692 * ada-valprint.c (print_field_values): Add "language" parameter.
13693 Update calls to print_field_values and print_variant_part.
13694 Pass new parameter "language" in call to val_print instead
13695 of "current_language". Replace call to ada_val_print by call
13697 (print_variant_part): Add "language" parameter.
13698 (ada_val_print_struct_union): Update call to print_field_values.
13700 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13702 * ada-valprint.c (ui_memcpy): Delete.
13703 (ada_print_floating): Update documentation. Add empty line
13704 between between function documentation and implementation.
13705 Delete variable "buffer". Use ui_file_xstrdup in place of
13706 ui_file_put. Minor adjustments following this change.
13708 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13710 * ada-valprint.c (ada_val_print_string): New function,
13711 extracted from ada_val_print_array.
13712 (ada_val_print_array): Replace extracted code by call
13713 to ada_val_print_string followed by a return. Move
13714 "else" branch to the function's top block.
13716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13718 * ada-valprint.c (ada_val_print_array): Move implementation
13719 down. Rename parameter "offset" and "val" into "offset_aligned"
13720 and "original_value" respectively. Add parameter "offset".
13722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13724 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13725 re-organizing the code. Change the "???" message printed
13726 when target type is a TYPE_CODE_UNDEF into
13727 "<ref to undefined type>".
13729 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13731 * ada-valprint.c (print_record): Delete, implementation inlined...
13732 (ada_val_print_struct_union): ... here. Remove call to
13733 ada_check_typedef in inlined implementation.
13735 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13737 * ada-valprint.c (ada_val_print_gnat_array): New function,
13738 extracted from ada_val_print_1;
13739 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13740 (ada_val_print_flt, ada_val_print_struct_union)
13741 (ada_val_print_ref): Likewise.
13742 (ada_val_print_1): Delete variables i and elttype.
13743 Replace extracted-out code by call to corresponding
13746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13748 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13752 * ada-valprint.c (ada_val_print_1): Replace calls to
13753 ada_val_print_1 by calls to val_print.
13755 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13757 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13758 Update calls to self accordingly. Replace calls to c_val_print
13759 by calls to val_print.
13761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13763 * ada-valprint.c (print_record): Delete declaration.
13764 (adjust_type_signedness, ada_val_print_1): Likewise.
13765 (ada_val_print): Move function implementation down.
13766 (print_variant_part, print_field_values, print_record):
13767 Move function implementation up.
13769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13771 * python/py-type.c (typy_get_name): New function.
13772 (type_object_getset): Add entry for attribute "name".
13773 * NEWS: Add entry mentioning this new attribute.
13775 2014-01-07 Yao Qi <yao@codesourcery.com>
13777 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13780 2014-01-07 Yao Qi <yao@codesourcery.com>
13782 * gnu-nat.c (info_port_rights): Add qualifier const to
13785 2014-01-07 Yao Qi <yao@codesourcery.com>
13787 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13789 2014-01-07 Yao Qi <yao@codesourcery.com>
13791 * gnu-nat.c (make_inf) Update declaration.
13792 (make_inf): Make it static.
13793 (inf_set_traced): Likewise.
13794 (inf_port_to_thread, inf_task_died_status): Likewise.
13796 2014-01-07 Yao Qi <yao@codesourcery.com>
13798 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13800 2014-01-07 Yao Qi <yao@codesourcery.com>
13802 * gnu-nat.c (_initialize_gnu_nat): Declare.
13804 2014-01-07 Yao Qi <yao@codesourcery.com>
13806 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13808 (struct gdbarch_info) <byte_order>: Change type to
13810 <byte_order_for_code>: Likewise.
13811 * gdbarch.c, gdbarch.h: Regenerated.
13813 2014-01-06 Sasha Smundak <asmundak@google.com>
13815 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13817 2014-01-06 Tom Tromey <tromey@redhat.com>
13819 * doublest.c (convert_doublest_to_floatformat): Use const, not
13821 * somread.c (som_symtab_read): Likewise.
13823 2014-01-07 Hui Zhu <hui@codesourcery.com>
13825 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13826 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13827 (gdb_bfd_fopen): Ditto.
13828 (gdb_bfd_openr): Ditto.
13829 (gdb_bfd_openw): Ditto.
13830 (gdb_bfd_openr_iovec): Ditto.
13831 (gdb_bfd_fdopenr): Ditto.
13832 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13833 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13835 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13837 * symfile-mem.c (symbol_file_add_from_memory): Removed
13838 gdb_bfd_stash_filename.
13840 2014-01-03 Doug Evans <dje@google.com>
13842 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13845 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13847 Update year range in copyright notice of all files.
13849 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13851 * top.c (print_gdb_version): Set copyright year to 2014.
13853 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13855 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13857 For older changes see ChangeLog-2013.
13863 version-control: never