1 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Pedro Alves <palves@redhat.com>
5 * solib-svr4.c (svr4_read_so_list): Rename to ...
6 (svr4_current_sos_1): ... this and change the function comment.
7 (svr4_current_sos): New function.
9 2014-10-10 Pedro Alves <palves@redhat.com>
11 * arch-utils.c (default_vsyscall_range): New function.
12 * arch-utils.h (default_vsyscall_range): New declaration.
13 * gdbarch.sh (vsyscall_range): New hook.
14 * gdbarch.h, gdbarch.c: Regenerate.
15 * linux-tdep.c (linux_vsyscall_range): New function.
16 (linux_init_abi): Install linux_vsyscall_range as
17 vsyscall_range gdbarch hook.
18 * memrange.c (address_in_mem_range): New function.
19 * memrange.h (address_in_mem_range): New declaration.
20 * symfile-mem.c (find_vdso_size): Delete function.
21 (add_vsyscall_page): Use gdbarch_vsyscall_range.
23 2014-10-10 Pedro Alves <palves@redhat.com>
25 * infrun.c (normal_stop): Fix typo in comment.
27 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
30 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
31 typo when using logical AND to determine instruction type.
33 2014-10-09 Yao Qi <yao@codesourcery.com>
35 * infrun.c (handle_signal_stop): Remove local variable
38 2014-10-08 Stan Shebs <stan@codesourcery.com>
40 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
42 2014-10-08 Gary Benson <gbenson@redhat.com>
44 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
46 2014-10-08 Gary Benson <gbenson@redhat.com>
48 * common/common-defs.h: Include common-exceptions.h.
49 * exceptions.h: Do not include common-exceptions.h.
51 2014-10-08 Gary Benson <gbenson@redhat.com>
53 * common/common-defs.h: Include cleanups.h.
54 * common/common-exceptions.c: Do not include cleanups.h.
57 2014-10-08 Gary Benson <gbenson@redhat.com>
59 * ada-lang.c: Do not include exceptions.h.
60 * ada-valprint.c: Likewise.
61 * amd64-tdep.c: Likewise.
62 * auto-load.c: Likewise.
64 * break-catch-throw.c: Likewise.
65 * breakpoint.c: Likewise.
68 * cli/cli-cmds.c: Likewise.
69 * cli/cli-interp.c: Likewise.
70 * cli/cli-script.c: Likewise.
71 * completer.c: Likewise.
72 * corefile.c: Likewise.
73 * corelow.c: Likewise.
75 * cp-support.c: Likewise.
76 * cp-valprint.c: Likewise.
77 * darwin-nat.c: Likewise.
78 * dwarf2-frame-tailcall.c: Likewise.
79 * dwarf2-frame.c: Likewise.
80 * dwarf2loc.c: Likewise.
81 * dwarf2read.c: Likewise.
83 * event-loop.c: Likewise.
84 * event-top.c: Likewise.
85 * f-valprint.c: Likewise.
86 * frame-unwind.c: Likewise.
88 * gdbtypes.c: Likewise.
89 * gnu-v2-abi.c: Likewise.
90 * gnu-v3-abi.c: Likewise.
91 * guile/scm-auto-load.c: Likewise.
92 * guile/scm-breakpoint.c: Likewise.
93 * guile/scm-cmd.c: Likewise.
94 * guile/scm-frame.c: Likewise.
95 * guile/scm-lazy-string.c: Likewise.
96 * guile/scm-param.c: Likewise.
97 * guile/scm-symbol.c: Likewise.
98 * guile/scm-type.c: Likewise.
99 * hppa-hpux-tdep.c: Likewise.
100 * i386-tdep.c: Likewise.
101 * inf-loop.c: Likewise.
102 * infcall.c: Likewise.
103 * infcmd.c: Likewise.
104 * infrun.c: Likewise.
105 * interps.c: Likewise.
106 * interps.h: Likewise.
108 * linespec.c: Likewise.
109 * linux-nat.c: Likewise.
110 * linux-thread-db.c: Likewise.
111 * m32r-rom.c: Likewise.
113 * memory-map.c: Likewise.
114 * mi/mi-cmd-break.c: Likewise.
115 * mi/mi-cmd-stack.c: Likewise.
116 * mi/mi-interp.c: Likewise.
117 * mi/mi-main.c: Likewise.
118 * monitor.c: Likewise.
119 * nto-procfs.c: Likewise.
120 * objc-lang.c: Likewise.
121 * p-valprint.c: Likewise.
123 * ppc-linux-tdep.c: Likewise.
124 * printcmd.c: Likewise.
126 * python/py-auto-load.c: Likewise.
127 * python/py-breakpoint.c: Likewise.
128 * python/py-cmd.c: Likewise.
129 * python/py-finishbreakpoint.c: Likewise.
130 * python/py-frame.c: Likewise.
131 * python/py-framefilter.c: Likewise.
132 * python/py-function.c: Likewise.
133 * python/py-gdb-readline.c: Likewise.
134 * python/py-inferior.c: Likewise.
135 * python/py-infthread.c: Likewise.
136 * python/py-lazy-string.c: Likewise.
137 * python/py-linetable.c: Likewise.
138 * python/py-param.c: Likewise.
139 * python/py-prettyprint.c: Likewise.
140 * python/py-symbol.c: Likewise.
141 * python/py-type.c: Likewise.
142 * python/py-value.c: Likewise.
143 * python/python-internal.h: Likewise.
144 * python/python.c: Likewise.
145 * record-btrace.c: Likewise.
146 * record-full.c: Likewise.
147 * regcache.c: Likewise.
148 * remote-fileio.c: Likewise.
149 * remote-mips.c: Likewise.
150 * remote.c: Likewise.
151 * rs6000-aix-tdep.c: Likewise.
152 * rs6000-nat.c: Likewise.
154 * solib-darwin.c: Likewise.
155 * solib-dsbt.c: Likewise.
156 * solib-frv.c: Likewise.
157 * solib-ia64-hpux.c: Likewise.
158 * solib-spu.c: Likewise.
159 * solib-svr4.c: Likewise.
161 * spu-tdep.c: Likewise.
163 * stap-probe.c: Likewise.
164 * symfile-mem.c: Likewise.
165 * symmisc.c: Likewise.
166 * target.c: Likewise.
167 * thread.c: Likewise.
169 * tracepoint.c: Likewise.
170 * tui/tui-interp.c: Likewise.
171 * typeprint.c: Likewise.
173 * valarith.c: Likewise.
174 * valops.c: Likewise.
175 * valprint.c: Likewise.
177 * varobj.c: Likewise.
178 * windows-nat.c: Likewise.
179 * xml-support.c: Likewise.
181 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
183 * mips-tdep.c (add_offset_16): Rewrite to implement what the
185 (extended_mips16_next_pc): Update accordingly.
187 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
189 * mips-tdep.c (mips16_instruction_is_compact_branch): New
191 (micromips_instruction_is_compact_branch): Likewise.
192 (mips16_scan_prologue): Terminate scanning upon seeing a branch
193 or a compact jump, reaching a jump delay slot, or seeing a
194 second non-prologue instruction.
195 (micromips_scan_prologue): Also terminate scanning upon seeing a
196 compact branch or jump, or reaching a branch or jump delay slot.
197 (mips32_scan_prologue): Terminate scanning upon reaching a branch
198 or jump delay slot, or seeing a second non-prologue instruction.
199 (mips32_instruction_has_delay_slot): Retain instruction
200 examination code only, update arguments accordingly and move
201 instruction fetch pieces to...
202 (mips32_insn_at_pc_has_delay_slot): ... this new function.
203 (micromips_instruction_has_delay_slot): Likewise and to...
204 (micromips_insn_at_pc_has_delay_slot): ... this new function.
205 (mips16_instruction_has_delay_slot): Likewise and to...
206 (mips16_insn_at_pc_has_delay_slot): ... this new function.
207 (mips_single_step_through_delay): Update accordingly.
208 (mips_adjust_breakpoint_address): Likewise.
210 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
212 * mips-tdep.c (micromips_instruction_has_delay_slot): When
213 !mustbe32 also return 1 for 32-bit instructions.
214 (mips16_instruction_has_delay_slot): Likewise. Add an
217 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
219 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
222 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
224 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
226 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
227 for the breakpoint's address. Don't preinitialize `placed_size'.
228 (insert_bp_location): Set `reqstd_address' rather than
230 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
231 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
233 (bkpt_remove_location): Likewise.
234 (deprecated_insert_raw_breakpoint): Likewise.
235 (deprecated_remove_raw_breakpoint): Likewise.
236 (find_single_step_breakpoint): Likewise.
237 * mem-break.c (default_memory_insert_breakpoint): Use
238 `reqstd_address' for the breakpoint's address. Don't set
239 `placed_address' or `placed_size' if breakpoint contents couldn't
240 have been determined.
241 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
242 the breakpoint's address.
243 (remote_insert_hw_breakpoint): Likewise. Don't set
244 `placed_address' or `placed_size' if breakpoint couldn't have been
246 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
247 `reqstd_address' for the breakpoint's address.
248 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
249 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
250 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
251 * microblaze-linux-tdep.c
252 (microblaze_linux_memory_remove_breakpoint): Likewise.
253 * monitor.c (monitor_insert_breakpoint): Likewise.
254 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
255 (procfs_insert_hw_breakpoint): Likewise.
256 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
257 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
258 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
259 * remote-mips.c (mips_insert_breakpoint): Likewise.
260 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
262 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
264 * valops.c (value_assign): Check for bit field assignments
265 before calling architecture-specific register value
266 conversion functions.
268 2014-10-03 Pierre Muller <muller@sourceware.org>
270 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
272 2014-10-02 Pedro Alves <palves@redhat.com>
274 * breakpoint.c (breakpoints_should_be_inserted_now): Use
275 threads_are_executing.
276 * breakpoint.h (breakpoints_should_be_inserted_now): Add
278 * gdbthread.h (threads_are_executing): Declare.
279 (handle_signal_stop) <random signals>: Don't print about the
280 signal here if stopping.
281 (end_stepping_range): Don't notify observers here.
282 (normal_stop): Update the thread list. If stopped by a random
283 signal or a stepping range ended, notify observers.
284 * thread.c (threads_executing): New global.
285 (init_thread_list): Clear 'threads_executing'.
286 (set_executing): Set or clear 'threads_executing'.
287 (threads_are_executing): New function.
288 (update_threads_executing): New function.
289 (update_thread_list): Use it.
291 2014-10-02 Pedro Alves <palves@redhat.com>
294 * breakpoint.c (update_breakpoints_after_exec): Don't create
295 overlay, longjmp, std terminate nor exception breakpoints here.
297 2014-10-02 Pedro Alves <palves@redhat.com>
299 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
301 * inferior.c (find_inferior_for_program_space): Give preference to
302 the current inferior.
303 * inferior.h (find_inferior_for_program_space): Update comment.
304 * progspace.c (switch_to_program_space_and_thread): Prefer the
305 current inferior if it's bound to the program space requested. If
306 the inferior found doesn't have a PID yet, don't bother looking up
308 * progspace.h (switch_to_program_space_and_thread): Adjust
310 * thread.c (any_thread_of_process, any_live_thread_of_process):
311 Give preference to the current thread.
313 2014-10-01 Pedro Alves <palves@redhat.com>
315 * breakpoint.c (insert_bp_location): Error out if inserting a
316 software breakpoint at a read-only address.
317 * target.c (memory_xfer_check_region): New function, factored out
319 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
321 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
322 against the memory region attributes.
324 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
326 * NEWS: Announce new exit-code field in -list-thread-groups
328 * inferior.c (exit_inferior_1): Don't clear exit code.
329 (inferior_appeared): Clear exit code.
330 * mi/mi-main.c (print_one_inferior): Add printing of the exit
333 2014-10-01 Pedro Alves <palves@redhat.com>
335 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
336 GENERATED" along with emacs/vi read-only markers.
337 * regformats/aarch64.dat: Regenerate.
338 * regformats/arm-with-iwmmxt.dat: Regenerate.
339 * regformats/arm-with-neon.dat: Regenerate.
340 * regformats/arm-with-vfpv2.dat: Regenerate.
341 * regformats/arm-with-vfpv3.dat: Regenerate.
342 * regformats/i386/amd64-avx-linux.dat: Regenerate.
343 * regformats/i386/amd64-avx.dat: Regenerate.
344 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
345 * regformats/i386/amd64-avx512.dat: Regenerate.
346 * regformats/i386/amd64-linux.dat: Regenerate.
347 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
348 * regformats/i386/amd64-mpx.dat: Regenerate.
349 * regformats/i386/amd64.dat: Regenerate.
350 * regformats/i386/i386-avx-linux.dat: Regenerate.
351 * regformats/i386/i386-avx.dat: Regenerate.
352 * regformats/i386/i386-avx512-linux.dat: Regenerate.
353 * regformats/i386/i386-avx512.dat: Regenerate.
354 * regformats/i386/i386-linux.dat: Regenerate.
355 * regformats/i386/i386-mmx-linux.dat: Regenerate.
356 * regformats/i386/i386-mmx.dat: Regenerate.
357 * regformats/i386/i386-mpx-linux.dat: Regenerate.
358 * regformats/i386/i386-mpx.dat: Regenerate.
359 * regformats/i386/i386.dat: Regenerate.
360 * regformats/i386/x32-avx-linux.dat: Regenerate.
361 * regformats/i386/x32-avx.dat: Regenerate.
362 * regformats/i386/x32-avx512-linux.dat: Regenerate.
363 * regformats/i386/x32-avx512.dat: Regenerate.
364 * regformats/i386/x32-linux.dat: Regenerate.
365 * regformats/i386/x32.dat: Regenerate.
366 * regformats/microblaze-with-stack-protect.dat: Regenerate.
367 * regformats/mips-dsp-linux.dat: Regenerate.
368 * regformats/mips-linux.dat: Regenerate.
369 * regformats/mips64-dsp-linux.dat: Regenerate.
370 * regformats/mips64-linux.dat: Regenerate.
371 * regformats/nios2-linux.dat: Regenerate.
372 * regformats/rs6000/powerpc-32.dat: Regenerate.
373 * regformats/rs6000/powerpc-32l.dat: Regenerate.
374 * regformats/rs6000/powerpc-64l.dat: Regenerate.
375 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
376 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
377 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
378 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
379 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
380 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
381 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
382 * regformats/s390-linux32.dat: Regenerate.
383 * regformats/s390-linux32v1.dat: Regenerate.
384 * regformats/s390-linux32v2.dat: Regenerate.
385 * regformats/s390-linux64.dat: Regenerate.
386 * regformats/s390-linux64v1.dat: Regenerate.
387 * regformats/s390-linux64v2.dat: Regenerate.
388 * regformats/s390-te-linux64.dat: Regenerate.
389 * regformats/s390x-linux64.dat: Regenerate.
390 * regformats/s390x-linux64v1.dat: Regenerate.
391 * regformats/s390x-linux64v2.dat: Regenerate.
392 * regformats/s390x-te-linux64.dat: Regenerate.
393 * regformats/tic6x-c62x-linux.dat: Regenerate.
394 * regformats/tic6x-c62x.dat: Regenerate.
395 * regformats/tic6x-c64x-linux.dat: Regenerate.
396 * regformats/tic6x-c64x.dat: Regenerate.
397 * regformats/tic6x-c64xp-linux.dat: Regenerate.
398 * regformats/tic6x-c64xp.dat: Regenerate.
400 2014-10-01 Pedro Alves <palves@redhat.com>
402 * features/Makefile: Update comments.
403 (XMLTOC): List all xml files we build C files from.
404 (clean-cfiles): New rule.
406 2014-10-01 Pedro Alves <palves@redhat.com>
408 * features/i386/amd64-avx512-linux.c: Regenerate.
409 * features/i386/amd64-avx512.c: Regenerate.
410 * features/i386/x32-avx512-linux.c: Regenerate.
411 * features/i386/x32-avx512.c: Regenerate.
413 2014-10-01 Pedro Alves <palves@redhat.com>
415 * features/Makefile (WHICH): Remove arm-with-m,
416 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
418 2014-10-01 Pedro Alves <palves@redhat.com>
420 * features/Makefile (clean): New rule.
422 2014-10-01 Pedro Alves <palves@redhat.com>
424 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
425 (zmm14h): Add missing end quotes.
427 2014-10-01 Pedro Alves <palves@redhat.com>
429 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
430 * features/aarch64.c: Regenerate.
432 2014-09-30 Don Breazeal <donb@codesourcery.com>
434 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
435 code so as to work with follow_fork_inferior.
436 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
437 (inf_ttrace_create_inferior): Remove reference to
438 inf_ttrace_vfork_ppid.
439 (inf_ttrace_attach): Ditto.
440 (inf_ttrace_detach): Ditto.
441 (inf_ttrace_kill): Use current_inferior instead of
442 inf_ttrace_vfork_ppid.
443 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
444 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
445 inferior away from the parent.
446 * infrun.c (follow_fork): Call follow_fork_inferior instead of
448 (follow_fork_inferior): New function.
449 (follow_inferior_reset_breakpoints): Make function static.
450 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
451 * linux-nat.c (linux_child_follow_fork): Move target-independent
452 code to infrun.c:follow_fork_inferior.
454 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
456 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
457 * gdbarch.c: Regenerate.
458 * gdbarch.h: Likewise.
459 * corelow.c (sniff_core_bfd): Drop presence check for deleted
460 gdbarch method 'regset_from_core_section'.
461 (get_core_register_section): Remove handling for the case that
462 regset == NULL and regset_from_core_section is defined.
463 (get_core_registers): Drop check for deleted method.
464 * procfs.c (procfs_do_thread_registers): Adjust comment.
466 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
468 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
469 (linux_nat_make_corefile_notes): Remove.
470 (linux_target_install_ops): Do not set target method
471 'make_corefile_notes'.
472 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
474 (linux_corefile_thread_callback): Instead of args->collect, call
475 linux_collect_thread_registers.
476 (linux_make_corefile_notes): Remove 'collect' parameter. Return
477 NULL unless there is a regset iterator.
478 (linux_make_corefile_notes_1): Remove.
479 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
480 by linux_make_corefile_notes.
481 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
485 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
486 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
488 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
490 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
492 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
493 (xtensa_iterate_over_regset_sections): New.
494 (xtensa_gdbarch_init): Adjust gdbarch initialization.
496 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
498 * vax-tdep.c (vax_regset_from_core_section): Remove.
499 (vax_iterate_over_regset_sections): New.
500 (vax_gdbarch_init): Adjust gdbarch initialization.
502 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
504 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
505 (tilegx_regset_from_core_section): Remove.
506 (tilegx_iterate_over_regset_sections): New.
507 (tilegx_linux_init_abi): Adjust gdbarch initialization.
509 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
511 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
512 (sparc_iterate_over_regset_sections): New.
513 (sparc32_gdbarch_init): Adjust gdbarch initialization.
514 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
516 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
517 (sparc64fbsd_init_abi): Call fbsd_init_abi.
518 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
519 target method 'make_corefile_notes'.
521 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
523 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
524 'sizeof_gregset' and 'sizeof_fpregset'.
525 * sh-tdep.c (sh_regset_from_core_section): Remove.
526 (sh_iterate_over_regset_sections): New.
527 (sh_gdbarch_init): Adjust gdbarch initialization.
528 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
530 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
533 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
535 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
536 (score7_linux_iterate_over_regset_sections): New.
537 (score_gdbarch_init): Adjust gdbarch initialization.
539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
541 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
543 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
544 method 'make_corefile_notes'.
545 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
546 (ppcfbsd_regset_from_core_section): Remove.
547 (ppcfbsd_iterate_over_regset_sections): New.
548 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
550 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
551 (ppcnbsd_iterate_over_regset_sections): New.
552 (ppcnbsd_init_abi): Adjust.
553 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
554 (ppcobsd_iterate_over_regset_sections): New.
555 (ppcobsd_init_abi): Adjust.
556 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
557 (rs6000_aix_iterate_over_regset_sections): New.
558 (rs6000_aix_init_osabi): Adjust.
560 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
562 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
563 (nios2_regset_from_core_section): Remove.
564 (nios2_iterate_over_regset_sections): New.
565 (nios2_linux_init_abi): Adjust gdbarch initialization.
567 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
569 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
570 (am33_iterate_over_regset_sections): New.
571 (am33_linux_init_osabi): Adjust gdbarch initialization.
573 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
575 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
576 (mips_linux_iterate_over_regset_sections): New.
577 (mips_linux_init_abi): Adjust gdbarch initialization.
578 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
579 (mips64obsd_iterate_over_regset_sections): New.
580 (mips64obsd_init_abi): Adjust.
581 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
582 (mipsnbsd_iterate_over_regset_sections): New.
583 (mipsnbsd_init_abi): Adjust.
585 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
587 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
588 (m88k_iterate_over_regset_sections): New.
589 (m88k_gdbarch_init): Adjust gdbarch initialization.
591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
593 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
594 (ia64_linux_iterate_over_regset_sections): New.
595 (ia64_linux_init_abi): Adjust gdbarch initialization.
597 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
599 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
600 (m68kbsd_iterate_over_regset_sections): New.
601 (m68kbsd_init_abi): Adjust gdbarch initialization.
602 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
603 (m68k_linux_iterate_over_regset_sections): New.
604 (m68k_linux_init_abi): Adjust gdbarch initialization.
606 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
608 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
609 (m32r_linux_regset_from_core_section): Remove.
610 (m32r_linux_iterate_over_regset_sections): New.
611 (m32r_linux_init_abi): Adjust gdbarch initialization.
613 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
615 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
616 (amd64obsd_iterate_over_regset_sections): New.
617 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
618 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
620 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
621 regset_from_core_section initialization.
622 * i386-tdep.c (i386_regset_from_core_section): Remove.
623 (i386_iterate_over_regset_sections): New.
624 (i386_gdbarch_init): Adjust gdbarch initialization.
625 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
626 (i386_iterate_over_regset_sections): New prototype.
627 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
629 (i386obsd_aout_iterate_over_regset_sections): New.
630 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
631 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
633 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
634 (amd64fbsd_init_abi): Call fbsd_init_abi.
635 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
636 (i386fbsd4_init_abi): Call fbsd_init_abi.
637 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
638 target method 'make_corefile_notes'.
639 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
641 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
643 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
644 (hppa_hpux_iterate_over_regset_sections): New.
645 (hppa_hpux_init_abi): Adjust gdbarch initialization.
646 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
647 (hppa_linux_iterate_over_regset_sections): New.
648 (hppa_linux_init_abi): Adjust.
649 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
650 (hppanbsd_iterate_over_regset_sections): New.
651 (hppanbsd_init_abi): Adjust.
652 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
653 (hppaobsd_iterate_over_regset_sections): New.
654 (hppaobsd_init_abi): Adjust.
656 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
658 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
659 (frv_linux_iterate_over_regset_sections): New.
660 (frv_linux_init_abi): Adjust gdbarch initialization.
662 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
664 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
665 (armbsd_iterate_over_regset_sections): New prototype.
666 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
667 (armbsd_iterate_over_regset_sections): New.
668 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
671 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
673 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
674 (alpha_linux_iterate_over_regset_sections): New.
675 (alpha_linux_init_abi): Adjust gdbarch initialization.
676 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
678 (alphanbsd_iterate_over_regset_sections): New prototype.
680 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
682 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
684 (aarch64_linux_iterate_over_regset_sections): New.
685 (aarch64_linux_init_abi): Adjust gdbarch initialization.
687 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
689 * fbsd-tdep.c: New file.
690 * fbsd-tdep.h: New file.
691 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
692 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
693 (ALLDEPFILES): Add fbsd-tdep.c.
695 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
697 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
699 * gdbarch.h: Regenerate.
700 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
702 (get_core_register_section): Add parameter 'regset' and use it, if
703 set. Add parameter 'min_size' and verify the bfd section size
705 (get_core_registers_cb): Add parameter 'regset' and pass it to
706 get_core_register section. For the "standard" register sections
707 ".reg" and ".reg2", set an appropriate default for human_name.
708 (get_core_registers): Don't abort when the gdbarch has an iterator
709 but no regset_from_core_section. Add NULL/0 for parameters
710 'regset'/'min_size' in calls to get_core_register_section.
711 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
712 'regset' and use it instead of calling the
713 regset_from_core_section gdbarch method.
714 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
715 * i386-tdep.c (i386_supply_xstateregset)
716 (i386_collect_xstateregset, i386_xstateregset): Moved to
718 (i386_regset_from_core_section): Drop handling for .reg-xfp and
720 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
721 core file support only if the regset iterator hasn't been set.
722 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
723 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
724 Moved from i386-tdep.c and renamed to *_linux*.
725 (i386_linux_iterate_over_regset_sections): Add regset parameter to
726 each callback invocation. Allow any .reg-xstate size when reading
728 * amd64-tdep.c (amd64_supply_xstateregset)
729 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
731 (amd64_regset_from_core_section): Remove.
732 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
733 install an amd64-specific regset_from_core_section gdbarch method.
734 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
735 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
736 Moved from amd64-tdep.c and renamed to *_linux*.
737 (amd64_linux_iterate_over_regset_sections): Add regset parameter
738 to each callback invocation. Allow any .reg-xstate size when
739 reading from a core file.
740 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
741 (arm_linux_iterate_over_regset_sections): Add regset parameter to
742 each callback invocation.
743 (arm_linux_init_abi): No longer set the regset_from_core_section
745 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
746 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
747 each callback invocation.
748 (ppc_linux_init_abi): No longer set the regset_from_core_section
750 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
751 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
752 (s390_regset_from_core_section): Remove.
753 (s390_iterate_over_regset_sections): Add regset parameter to each
755 (s390_gdbarch_init): No longer set the regset_from_core_section
756 gdbarch method. Drop initialization of deleted tdep fields.
758 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
760 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
761 (amd64_linux_iterate_over_regset_sections): New.
762 (amd64_linux_init_abi_common): Don't install the regset section
763 list, but the new iterator in gdbarch.
764 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
765 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
766 (arm_linux_iterate_over_regset_sections): ...here. New function.
767 (arm_linux_init_abi): Set iterator instead of section list.
768 * corelow.c (get_core_registers_cb): New function, logic moved
770 (get_core_registers): ...loop body here. Use new iterator method
771 instead of walking through the regset section list.
772 * gdbarch.sh: Remove 'core_regset_sections'. New method
773 'iterate_over_regset_sections'. New typedef
774 'iterate_over_regset_sections_cb'.
775 * gdbarch.c: Regenerate.
776 * gdbarch.h: Likewise.
777 * i386-linux-tdep.c (i386_linux_regset_sections)
778 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
780 (i386_linux_iterate_over_regset_sections): New.
781 (i386_linux_init_abi): Don't choose a regset section list, but
782 install new iterator in gdbarch.
783 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
784 (linux_collect_regset_section_cb): New function, logic moved
786 (linux_collect_thread_registers): ...loop body here. Use iterator
787 method instead of walking through list.
788 (linux_make_corefile_notes_1): Check for presence of iterator
789 method instead of regset section list.
790 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
791 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
792 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
793 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
794 (ppc_linux_iterate_over_regset_sections): ...here. New function.
795 (ppc_linux_init_abi): Don't choose from above regset section
796 lists, but install new iterator in gdbarch.
797 * regset.h (struct core_regset_section): Remove.
798 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
799 have_linux_v1, have_linux_v2, and have_tdb.
800 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
801 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
802 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
803 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
804 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
805 (s390_iterate_over_regset_sections): ...here. New function. Use
807 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
808 regset section lists, but install new iterator.
810 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
812 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
814 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
816 * progspace.c (print_program_space): Don't prune program spaces
817 before printing them.
819 2014-09-25 Pedro Alves <palves@redhat.com>
821 * infrun.c (user_visible_resume_ptid): Don't check
822 singlestep_breakpoints_inserted_p.
824 2014-09-25 Pedro Alves <palves@redhat.com>
826 * breakpoint.c (should_be_inserted): Add debug output.
828 2014-09-25 Pedro Alves <palves@redhat.com>
830 * infrun.c (stepping_past_instruction_at)
831 (clear_exit_convenience_vars): Point at infrun.h instead of
833 (handle_signal_stop): Fix typo.
835 2014-09-24 Yao Qi <yao@codesourcery.com>
837 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
840 2014-09-22 Gary Benson <gbenson@redhat.com>
842 * target.c (target_stop): Updated comment.
844 2014-09-22 Gary Benson <gbenson@redhat.com>
846 * target/target.h (target_stop_ptid): Renamed as...
847 (target_stop_and_wait): New function. Updated comment.
849 (target_continue_ptid): Renamed as...
850 (target_continue_no_signal): New function. Updated comment.
853 2014-09-22 Pedro Alves <palves@redhat.com>
855 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
857 * breakpoint.c (enum ugll_insert_mode): New enum.
858 (always_inserted_mode): Now a plain boolean.
859 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
860 (breakpoints_always_inserted_mode): Delete.
861 (breakpoints_should_be_inserted_now): New function.
862 (insert_breakpoints): Pass UGLL_INSERT to
863 update_global_location_list instead of calling
864 insert_breakpoint_locations manually.
865 (create_solib_event_breakpoint_1): New, factored out from ...
866 (create_solib_event_breakpoint): ... this.
867 (create_and_insert_solib_event_breakpoint): Use
868 create_solib_event_breakpoint_1 instead of calling
869 insert_breakpoint_locations manually.
870 (update_global_location_list): Change parameter type from boolean
871 to enum ugll_insert_mode. All callers adjusted. Adjust to use
872 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
873 (update_global_location_list_nothrow): Change parameter type from
874 boolean to enum ugll_insert_mode.
875 (_initialize_breakpoint): "breakpoint always-inserted" option is
876 now a boolean command. Update help text.
877 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
878 (breakpoints_should_be_inserted_now): New declaration.
879 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
880 Remove breakpoints_always_inserted_mode check.
881 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
882 * remote.c (remote_start_remote): Likewise.
884 2014-09-22 Pedro Alves <palves@redhat.com>
886 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
887 (insert_breakpoints): Don't call insert_breakpoint_locations here.
888 Instead, pass UGLL_INSERT to update_global_location_list.
889 (update_global_location_list): Change parameter type from boolean
890 to enum ugll_insert_mode. All callers adjusted. Adjust to use
891 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
892 (create_solib_event_breakpoint_1): New, factored out from ...
893 (create_solib_event_breakpoint): ... this.
894 (create_and_insert_solib_event_breakpoint): Use
895 create_solib_event_breakpoint_1 instead of calling
896 insert_breakpoint_locations manually.
897 (update_global_location_list): Handle UGLL_INSERT.
899 2014-09-22 Pedro Alves <palves@redhat.com>
901 * breakpoint.c (enum ugll_insert_mode): New enum.
902 (update_global_location_list)
903 (update_global_location_list_nothrow): Change parameter type from
904 boolean to enum ugll_insert_mode. All callers adjusted.
906 2014-09-19 Joel Brobecker <brobecker@adacore.com>
908 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
909 SystemTap support in GDB.
911 2014-09-19 Don Breazeal <donb@codesourcery.com>
913 * linux-nat.c (linux_handle_extended_wait): Call
914 linux_ptrace_get_extended_event.
915 (wait_lwp): Call linux_is_extended_waitstatus.
916 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
917 and linux_is_extended_waitstatus.
918 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
919 linux_ptrace_get_extended_event.
920 (linux_ptrace_get_extended_event): New function.
921 (linux_is_extended_waitstatus): New function.
922 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
923 (linux_is_extended_waitstatus): New declarations.
925 2014-09-19 Yao Qi <yao@codesourcery.com>
927 * dwarf2read.c (dwarf_decode_lines): Update declaration.
928 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
929 comments. Callers update.
930 (dwarf_decode_lines): Likewise.
931 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
932 comments. Skip the line table if 'lowpc' is greater than
933 'address'. Don't check
934 dwarf2_per_objfile->has_section_at_zero.
936 2014-09-18 Doug Evans <dje@google.com>
938 * NEWS: Mention new "producer" attribute of gdb.Symtab.
939 * python/py-symtab.c (stpy_get_producer): New function.
940 (symtab_object_getset): Add "producer" attribute.
942 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
945 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
946 (do_captured_read_memory_integer): Remove.
947 (safe_read_memory_integer): Use target_read_memory directly instead
948 of catching errors in do_captured_read_memory_integer.
950 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
952 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
955 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
957 * objc-lang.c (find_implementation_from_class): Remove dead code.
959 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
962 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
963 "fprintf_unfiltered (gdb_stdlog...)".
965 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
968 * breakpoint.h (struct watchpoint): New fields val_bitpos and
970 * breakpoint.c (watch_command_1): Use these fields to retain
971 bitfield information.
972 (extract_bitfield_from_watchpoint_value): New function.
973 (watchpoint_check): Use it.
974 (update_watchpoint): Use it. Optimize the address and length of a
975 HW watchpoint pointing to a bitfield.
976 * value.h (unpack_value_bitfield): New prototype.
977 * value.c (unpack_value_bitfield): Make extern.
979 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
981 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
983 * gnu-nat.c (inf_threads): New function.
984 * gnu-nat.h (inf_threads_ftype): New typedef.
985 (inf_threads): New declaration.
986 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
987 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
988 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
989 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
990 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
991 (i386_gnu_dr_get_control): New functions.
992 (reg_addr): New structure.
993 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
994 i386 debugging register hooks.
995 * NEWS: Mention this.
997 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
999 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1000 vector data transfer instructions.
1001 (arm_record_coproc_data_proc): Updated.
1003 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1005 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1006 arm_record_exreg_ld_st_insn.
1007 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1010 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1012 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1013 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1014 processing instructions.
1016 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1018 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1019 for advance SIMD struct ld/st insn.
1020 (thumb2_record_decode_insn_handler): Replace stub handler with
1021 thumb2_record_asimd_struct_ld_st.
1023 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1025 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1026 for asimd, vfp and coprocessor insns.
1027 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1028 and coprocessor insns.
1029 (thumb2_record_coproc_insn): New function.
1030 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1032 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1035 2014-09-13 Doug Evans <xdje42@gmail.com>
1037 * NEWS: Mention new "queue-signal" command.
1038 * infcmd.c (queue_signal_command): New function.
1039 (_initialize_infcmd): Add new queue-signal command.
1041 2014-09-13 Doug Evans <xdje42@gmail.com>
1043 * linux-nat.c (wait_lwp): Add debugging printf.
1044 (linux_nat_wait_1): Ditto.
1046 2014-09-12 Pedro Alves <palves@redhat.com>
1048 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1049 (create_and_insert_solib_event_breakpoint): New functions.
1050 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1051 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1052 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1053 (remove_dbx_link_breakpoint): Delete function.
1054 (insert_dbx_link_bpt_in_file): Use
1055 create_and_insert_solib_event_breakpoint instead of
1056 deprecated_insert_raw_breakpoint.
1057 (procfs_wait): Don't check whether we hit __dbx_link here.
1058 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1060 * solib-irix.c (base_breakpoint): Delete global.
1061 (disable_break): Delete function.
1062 (enable_break): Use create_solib_event_breakpoint
1063 instead of deprecated_insert_raw_breakpoint.
1064 (irix_solib_handle_event): New function.
1065 (irix_solib_create_inferior_hook): Don't run the target or disable
1066 the mapping-complete breakpoint here.
1067 (_initialize_irix_solib): Install irix_solib_handle_event as
1068 so_ops->handle_event hook.
1070 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1071 Ulrich Weigand <uweigand@de.ibm.com>
1074 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1075 instead of read_memory_unsigned_integer.
1077 2014-09-12 Gary Benson <gbenson@redhat.com>
1079 * nat/linux-waitpid.c: Include common-defs.h.
1080 [GDBSERVER]: Add FIXME comment.
1081 [!GDBSERVER]: Don't include defs.h or signal.h.
1082 (linux_debug) [!GDBSERVER]: Remove empty block.
1084 2014-09-12 Gary Benson <gbenson@redhat.com>
1086 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1087 Don't include defs.h or server.h.
1089 2014-09-12 Gary Benson <gbenson@redhat.com>
1091 * nat/linux-btrace.c: Include common-defs.h.
1092 Don't include defs.h, server.h or gdbthread.h.
1093 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1095 2014-09-12 Gary Benson <gbenson@redhat.com>
1097 * common/agent.c: Include common-defs.h.
1098 Don't include defs.h or server.h.
1099 * common/buffer.c: Likewise.
1100 * common/common-debug.c: Likewise.
1101 * common/common-utils.c: Likewise.
1102 * common/errors.c: Likewise.
1103 * common/filestuff.c: Likewise.
1104 * common/format.c: Likewise.
1105 * common/gdb_vecs.c: Likewise.
1106 * common/print-utils.c: Likewise.
1107 * common/ptid.c: Likewise.
1108 * common/rsp-low.c: Likewise.
1109 * common/signals.c: Likewise.
1110 * common/vec.c: Likewise.
1111 * common/xml-utils.c: Likewise.
1112 * nat/linux-osdata.c: Likewise.
1113 * nat/linux-procfs.c: Likewise.
1114 * nat/linux-ptrace.c: Likewise.
1115 * nat/mips-linux-watch.c: Likewise.
1116 * target/waitstatus.c: Likewise.
1118 2014-09-12 Tom Tromey <tromey@redhat.com>
1119 Gary Benson <gbenson@redhat.com>
1121 * common/common-regcache.h: New file.
1122 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1123 * regcache.h: Include common-regcache.h.
1124 (regcache_read_pc): Don't declare.
1125 * regcache.c (get_thread_regcache_for_ptid): New function.
1126 * nat/linux-btrace.c: Don't include regcache.h.
1127 Include common-regcache.h.
1128 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1130 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1132 * regcache.h (struct regset): Declare.
1134 2014-09-11 Pedro Alves <palves@redhat.com>
1137 * main.c: Include "infrun.h".
1138 (catch_command_errors, catch_command_errors_const): Wait for the
1139 foreground command to complete.
1140 * top.c (maybe_wait_sync_command_done): New function, factored out
1142 (maybe_wait_sync_command_done): ... here.
1143 * top.h (maybe_wait_sync_command_done): New declaration.
1145 2014-09-11 Tom Tromey <tromey@redhat.com>
1146 Gary Benson <gbenson@redhat.com>
1148 * common/symbol.h: New file.
1149 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1150 * minsyms.c (find_minimal_symbol_address): New function.
1151 * common/agent.c: Include common/symbol.h.
1152 [!GDBSERVER]: Don't include objfiles.h.
1153 (agent_look_up_symbols): Use find_minimal_symbol_address.
1155 2014-09-11 Gary Benson <gbenson@redhat.com>
1157 * target/target.h (target_stop_ptid, target_continue_ptid):
1159 * target.c (target_stop_ptid, target_continue_ptid): New
1161 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1162 (agent_run_command): Always use target_stop_ptid and
1163 target_continue_ptid.
1165 2014-09-11 Tom Tromey <tromey@redhat.com>
1166 Gary Benson <gbenson@redhat.com>
1168 * target/target.h: New file.
1169 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1170 * target.h: Include target/target.h.
1171 (target_read_memory, target_write_memory): Don't declare.
1172 * target.c (target_read_uint32): New function.
1173 * common/agent.c: Include target/target.h.
1174 [!GDBSERVER]: Don't include target.h.
1175 (helper_thread_id): Type changed to uint32_t.
1176 (agent_get_helper_thread_id): Use target_read_uint32.
1177 (agent_run_command): Always use target_read_memory and
1178 target_write_memory.
1179 (agent_capability): Type changed to uint32_t.
1180 (agent_capability_check): Use target_read_uint32.
1182 2014-09-11 Gary Benson <gbenson@redhat.com>
1184 * common/common-debug.h (show_debug_regs): Declare.
1185 * common/common-debug.c (show_debug_regs): Define.
1186 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1187 all uses with show_debug_regs. Replace all uses that considered
1188 debug_hw_points as a multi-value integer with straight boolean
1190 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1191 with show_debug_regs.
1192 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1193 all uses with show_debug_regs.
1194 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1195 uses with show_debug_regs.
1197 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1199 * findvar.c (address_from_register): Handle targets requiring
1200 a special conversion routine even for plain pointer types.
1202 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1204 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1205 (store_register): Do not call exec_one_dummy_insn.
1207 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1209 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1210 dereference it first. Use value_enclosing_type instead of
1212 (ada_array_length): Likewise.
1214 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1216 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1217 Adjust function implementation and documentation accordingly.
1218 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1219 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1220 Update call to ada_value_ptr_subscript.
1222 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1224 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1225 instead of VAL's type.
1227 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1229 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1231 2014-09-09 Doug Evans <xdje42@gmail.com>
1234 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1235 last parameter to pkg-config, not first.
1236 * configure.ac: Pass --with-guile provided pkg-config path to
1237 GDB_GUILE_PROGRAM_NAMES.
1238 * configure: Regenerate.
1240 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1242 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1245 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1247 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1248 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1249 the list of sections determining GDB_OSABI_IRIX.
1251 2014-09-09 James Hogan <james.hogan@imgtec.com>
1253 * MAINTAINERS (Write After Approval): Add "James Hogan".
1255 2014-09-09 James Hogan <james.hogan@imgtec.com>
1257 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1259 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1261 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1263 2014-09-08 Doug Evans <xdje42@gmail.com>
1266 * guile.c: #include <signal.h>.
1267 (_initialize_guile): Block SIGCHLD while initializing Guile.
1269 Replaces the following, which is reverted.
1271 2014-07-26 Doug Evans <xdje42@gmail.com>
1274 * configure.ac: Add check for header gc/gc.h.
1275 Add check for function setenv.
1276 * configure: Regenerate.
1277 * config.in: Regenerate.
1278 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1280 2014-09-08 Doug Evans <xdje42@gmail.com>
1282 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1283 with named constant. Fix style of pointer comparison.
1284 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1286 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1289 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1290 decide whether we display the command on "show user".
1291 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1292 printing command name.
1293 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1294 * cli/cli-decode.c (cli_user_command_p): Create helper function
1295 to verify whether cmd_list_element is a user-defined command.
1297 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1300 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1301 Fix goto out of TRY_CATCH.
1303 2014-09-06 Doug Evans <xdje42@gmail.com>
1304 Tom Tromey <tromey@redhat.com>
1307 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1308 $_any_caller_matches.
1309 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1310 * python/lib/gdb/function/caller_is.py: New file.
1312 2014-09-06 Doug Evans <xdje42@gmail.com>
1314 * infcmd.c (program_info): Fix typo.
1316 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1319 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1320 'number'. New variable 'has_digit'. Rewrite code to deal with
1321 subexpressions on SDT probes.
1323 2014-09-04 Pedro Alves <palves@redhat.com>
1325 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1326 the input is only one character long.
1328 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1331 * f-valprint.c (f_val_print): Specify the correct print option to
1332 use when printing integer values.
1334 2014-09-04 Gary Benson <gbenson@redhat.com>
1336 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1337 Remove code to cope with LWPs wrapped as PIDs.
1338 Add assertions to ensure no wrapped LWPs are passed.
1340 2014-09-04 Pedro Alves <palves@redhat.com>
1342 * value.c (value_ranges_copy_adjusted): New function, factored out
1344 (value_contents_copy_raw): ... here.
1345 (unpack_value_bits_as_long_1): Rename back to ...
1346 (unpack_bits_as_long): ... this. Remove 'original_value' and
1347 'result' parameters. Change return type to LONGEST.
1348 (unpack_value_bits_as_long): Delete.
1349 (unpack_value_field_as_long_1): Delete.
1350 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1351 (unpack_value_bitfield): New function.
1352 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1353 (value_fetch_lazy): Use unpack_value_bitfield.
1354 * value.h (unpack_value_bits_as_long): Delete declaration.
1356 2014-09-03 Sasha Smundak <asmundak@google.com>
1358 * python/py-frame.c (frapy_read_register): New function.
1360 2014-09-03 James Hogan <james.hogan@imgtec.com>
1362 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1363 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1365 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1368 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1370 (add_cmd): Set "completer_handle_brkchars" to NULL.
1371 * cli/cli-decode.h (struct cmd_list_element)
1372 <completer_handle_brkchars>: New field.
1373 * command.h (completer_ftype_void): New typedef.
1374 (set_cmd_completer_handle_brkchars): New prototype.
1375 * completer.c (set_gdb_completion_word_break_characters): New
1377 (complete_line_internal): Call "completer_handle_brkchars"
1378 callback from command.
1379 * completer.h: Include "command.h".
1380 (set_gdb_completion_word_break_characters): New prototype.
1381 * python/py-cmd.c (cmdpy_completer_helper): New function.
1382 (cmdpy_completer_handle_brkchars): New function.
1383 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1384 (cmdpy_init): Set completer_handle_brkchars to
1385 cmdpy_completer_handle_brkchars.
1387 2014-09-03 Gary Benson <gbenson@redhat.com>
1389 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1390 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1391 Loop conditions changed to equivalent form.
1392 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1393 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1394 ALL_DEBUG_ADDRESS_REGISTERS.
1396 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1398 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1401 2014-09-02 Doug Evans <dje@google.com>
1403 * typeprint.c (find_global_typedef): Fix comment.
1405 2014-09-02 Gary Benson <gbenson@redhat.com>
1407 * i386-nat.h: Renamed as...
1408 * x86-nat.h: New file. All type, function and variable name
1409 prefixes changed from "i386_" to "x86_". All references updated.
1410 * i386-nat.c: Renamed as...
1411 * x86-nat.c: New file. All type, function and variable name
1412 prefixes changed from "i386_" to "x86_". All references updated.
1413 * common/i386-xstate.h: Renamed as...
1414 * common/x86-xstate.h: New file. All type, function and variable
1415 name prefixes changed from "i386_" to "x86_". All references
1417 * nat/i386-cpuid.h: Renamed as...
1418 * nat/x86-cpuid.h: New file. All type, function and variable name
1419 prefixes changed from "i386_" to "x86_". All references updated.
1420 * nat/i386-gcc-cpuid.h: Renamed as...
1421 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1422 name prefixes changed from "i386_" to "x86_". All references
1424 * nat/i386-dregs.h: Renamed as...
1425 * nat/x86-dregs.h: New file. All type, function and variable name
1426 prefixes changed from "i386_" to "x86_". All references updated.
1427 * nat/i386-dregs.c: Renamed as...
1428 * nat/x86-dregs.c: New file. All type, function and variable name
1429 prefixes changed from "i386_" to "x86_". All references updated.
1431 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1433 * varobj.c (_initialize_varobj): Move to the end of file.
1435 2014-08-29 Gary Benson <gbenson@redhat.com>
1437 * common/common-exceptions.h: New file.
1438 * common/common-exceptions.c: Likewise.
1439 * Makefile.in (SFILES): Add common/common-exceptions.c.
1440 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1441 (COMMON_OBS): Add common-exceptions.o.
1442 (common-exceptions.o): New rule.
1443 * exceptions.h (common-exceptions.h): Include.
1444 (gdb_setjmp.h): Do not include.
1445 (return_reason): Moved to common-exceptions.h.
1446 (enum return_reason): Likewise.
1447 (RETURN_MASK): Likewise.
1448 (typedef return_mask): Likewise.
1449 (enum errors): Likewise.
1450 (struct gdb_exception): Likewise.
1451 (exceptions_state_mc_init): Likewise.
1452 (exceptions_state_mc_action_iter): Likewise.
1453 (exceptions_state_mc_action_iter_1): Likewise.
1454 (TRY_CATCH): Likewise.
1455 (throw_exception): Likewise.
1456 (throw_verror): Likewise.
1457 (throw_vquit): Likewise.
1458 (throw_error): Likewise.
1459 (throw_quit): Likewise.
1460 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1461 (enum catcher_action): Likewise.
1462 (struct catcher): Likewise.
1463 (current_catcher): Likewise.
1464 (catcher_list_size): Likewise.
1465 (exceptions_state_mc_init): Likewise.
1466 (catcher_pop): Likewise.
1467 (exceptions_state_mc): Likewise.
1468 (exceptions_state_mc_action_iter): Likewise.
1469 (exceptions_state_mc_action_iter_1): Likewise.
1470 (throw_exception): Likewise.
1471 (exception_messages): Likewise.
1472 (exception_messages_size): Likewise.
1473 (throw_it): Likewise.
1474 (throw_verror): Likewise.
1475 (throw_vquit): Likewise.
1476 (throw_error): Likewise.
1477 (throw_quit): Likewise.
1478 (prepare_to_throw_exception): New function.
1480 2014-08-29 Gary Benson <gbenson@redhat.com>
1482 * common/gdb_setjmp.h: New file.
1483 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1484 * configure.ac: Move sigsetjmp check...
1485 * common/common.m4: ...here.
1486 * configure: Regenerate.
1487 * cp-support.c (SIGJMP_BUF): Delete.
1488 (SIGSETJMP): Likewise.
1489 (SIGLONGJMP): Likewise.
1490 * exceptions.h (gdb_setjmp.h): Include.
1491 (setjmp.h): Do not include.
1492 (EXCEPTIONS_SIGJMP_BUF): Delete.
1493 (EXCEPTIONS_SIGSETJMP): Likewise.
1494 (EXCEPTIONS_SIGLONGJMP): Likewise.
1495 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1497 * exceptions.c: Likewise.
1499 2014-08-29 Gary Benson <gbenson@redhat.com>
1501 * cleanups.h: Moved to...
1502 * common/cleanups.h: New file.
1503 * cleanups.c: Moved to...
1504 * common/cleanups.c: New file. Include common-defs.h and
1505 cleanups.h. Do not include defs.h.
1506 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1507 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1508 (cleanups.o): New rule.
1510 2014-08-29 Gary Benson <gbenson@redhat.com>
1512 * common/errors.h (internal_warning): New declaration.
1513 (internal_vwarning): Likewise.
1514 * common/errors.c (internal_warning): New function.
1515 * utils.h (internal_warning): Don't declare.
1516 (internal_vwarning): Likewise.
1517 * utils.c (internal_warning): Removed.
1519 2014-08-29 Gary Benson <gbenson@redhat.com>
1521 * main.c (captured_main): Use warning during startup.
1522 Prefix startup warning messages with command name.
1524 2014-08-29 Gary Benson <gbenson@redhat.com>
1526 * main.c (captured_main): Handle usage errors with error.
1528 2014-08-29 Gary Benson <gbenson@redhat.com>
1530 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1531 exit pair with a call to error. Wrap the message with _().
1533 2014-08-29 Gary Benson <gbenson@redhat.com>
1535 * main.c (captured_main): Replace a fprintf/exit
1536 pair with a call to error. Wrap the message with _().
1538 2014-08-29 Gary Benson <gbenson@redhat.com>
1540 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1541 pairs with calls to error. Wrap the message with _().
1543 2014-08-29 Gary Benson <gbenson@redhat.com>
1545 * utils.c (vwarning): Protect calls to target_terminal_ours
1548 2014-08-29 Gary Benson <gbenson@redhat.com>
1550 * exceptions.c (print_flush): Protect calls to
1551 target_terminal_ours and wrap_here.
1553 2014-08-29 Gary Benson <gbenson@redhat.com>
1555 * utils.h (filtered_printing_initialized): New declaration.
1556 * utils.c (abort_with_message): New function.
1557 (internal_vproblem): Use abort_with_message for first level
1558 recursive internal problems, and if gdb_stderr is not set up.
1559 Protect calls to target_terminal_ours, begin_line and query.
1561 2014-08-28 Doug Evans <dje@google.com>
1563 * symtab.c (in_prologue): Move definition to better spot.
1564 (skip_prologue_using_sal): Ditto.
1566 2014-08-28 Doug Evans <dje@google.com>
1568 * symtab.c (find_function_start_sal): Move definition to better spot.
1570 2014-08-28 Yao Qi <yao@codesourcery.com>
1572 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1573 found_stack_adjust in forward scan. Remove condition check
1574 on found_stack_adjust which is always true. Indent the code.
1576 2014-08-28 Yao Qi <yao@codesourcery.com>
1578 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1579 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1580 (dwarf_decode_lines): Remove argument
1581 want_line_info. Remove condition check on want_line_info.
1584 2014-08-27 Doug Evans <dje@google.com>
1586 * dwarf2read.c (dwarf_record_line): Fix typo.
1588 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1590 * target.h (struct target_ops::to_terminal_save_ours): Remove
1592 (target_terminal_save_ours): Remove macro.
1593 * target-delegates.c: Regenerate.
1594 * inf-child.c (inf_child_target): Don't set the nonexistent
1595 field to_terminal_save_ours.
1596 * inferior.h (child_terminal_save_ours): Remove declaration.
1597 * terminal.h (gdb_save_tty_state): New declaration.
1598 * inflow.c (child_terminal_save_ours): Rename to ...
1599 (gdb_save_tty_state): ... this.
1600 * tui/tui.c: Include terminal.h.
1601 (tui_enable): Use gdb_save_tty_state instead of
1602 target_terminal_save_ours.
1603 (tui_disable): Likewise.
1605 2014-08-25 Doug Evans <dje@google.com>
1607 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1608 Pass NULL instead of 0 for context pointer.
1610 2014-08-25 Yao Qi <yao@codesourcery.com>
1612 * dwarf2read.c: Fix grammatical error.
1614 2014-08-24 Yao Qi <yao@codesourcery.com>
1616 * dwarf2read.c (scan_partial_symbols): Update comments.
1617 Rename argument 'need_pc' with 'set_addrmap'.
1618 (add_partial_namespace): Rename argument 'need_pc' with
1620 (add_partial_module): Likewise.
1621 (add_partial_subprogram): Likewise. Update comments.
1622 (dwarf2_name): Fix typo.
1624 2014-08-22 Doug Evans <dje@google.com>
1627 * dwarf2read.c (dwarf_record_line_p): New function.
1628 (dwarf_decode_lines_1): Ignore subsequent line number entries
1629 for the same line if any entry had a non-zero discriminator.
1631 2014-08-22 Doug Evans <dje@google.com>
1633 * buildsym.h (record_line_ftype): New typedef.
1634 (record_line): Use it.
1635 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1636 (dwarf_decode_lines_1): Call them.
1638 2014-08-22 Yao Qi <yao@codesourcery.com>
1640 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1641 (ctf_end): Remove code.
1643 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1645 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1646 (linux_make_corefile_notes): call update_thread_list, protected against
1649 2014-08-21 Pedro Alves <palves@redhat.com>
1651 * infcmd.c (attach_command): Remove comment.
1653 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1655 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1656 unsigned LONGEST to ULONGEST.
1658 2014-08-20 Pedro Alves <palves@redhat.com>
1660 * Makefile.in (check-read1): New rule.
1662 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1664 * value.c (value_from_contents_and_address): Strip resolved_type's
1665 typedef layers before checking its TYPE_DATA_LOCATION.
1667 2014-08-20 Pedro Alves <palves@redhat.com>
1669 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1671 2014-08-20 Yao Qi <yao@codesourcery.com>
1673 * amd64-tdep.c (amd64_classify): Add a blank line after the
1674 example. Move "*/" to a new line.
1675 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1676 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1677 * dwarf2read.c (psymtab_include_file_name): Likewise.
1679 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1680 Pedro Alves <palves@redhat.com>
1684 * ada-lang.c (coerce_unspec_val_to_type): Use
1685 value_contents_copy_raw.
1686 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1687 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1688 * cp-valprint.c (cp_print_value_fields): Let the common printing
1689 code handle optimized out values.
1690 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1691 * d-valprint.c (dynamic_array_type): Use
1692 value_bits_any_optimized_out.
1693 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1694 check_any_valid fields.
1695 (check_pieced_value_bits): Delete and inline ...
1696 (check_pieced_synthetic_pointer): ... here.
1697 (check_pieced_value_validity): Delete.
1698 (check_pieced_value_invalid): Delete.
1699 (pieced_value_funcs): Remove check_validity and check_any_valid
1701 (read_pieced_value): Use mark_value_bits_optimized_out.
1702 (write_pieced_value): Switch to use
1703 mark_value_bytes_optimized_out.
1704 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1705 of assuming the whole value is optimized out.
1706 * findvar.c (read_frame_register_value): Remove special handling
1707 of optimized out registers.
1708 (value_from_register): Use mark_value_bytes_optimized_out.
1709 * frame-unwind.c (frame_unwind_got_optimized): Use
1710 mark_value_bytes_optimized_out.
1711 * jv-valprint.c (java_value_print): Adjust.
1712 (java_print_value_fields): Let the common printing code handle
1713 optimized out values.
1714 * mips-tdep.c (mips_print_register): Remove special handling of
1715 optimized out registers.
1716 * opencl-lang.c (lval_func_check_validity): Delete.
1717 (lval_func_check_any_valid): Delete.
1718 (opencl_value_funcs): Remove check_validity and check_any_valid
1720 * p-valprint.c (pascal_object_print_value_fields): Let the common
1721 printing code handle optimized out values.
1722 * stack.c (read_frame_arg): Remove special handling of optimized
1723 out values. Fetch both VAL and ENTRYVAL before comparing
1724 contents. Adjust to value_available_contents_eq rename.
1725 * valprint.c (valprint_check_validity)
1726 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1727 (val_print_array_elements): Adjust.
1728 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1729 (value_bits_any_optimized_out): New function.
1730 (value_entirely_covered_by_range_vector): New function, factored
1731 out from value_entirely_unavailable.
1732 (value_entirely_unavailable): Reimplement.
1733 (value_entirely_optimized_out): New function.
1734 (insert_into_bit_range_vector): New function, factored out from
1735 mark_value_bits_unavailable.
1736 (mark_value_bits_unavailable): Reimplement.
1737 (struct ranges_and_idx): New struct.
1738 (find_first_range_overlap_and_match): New function, factored out
1739 from value_available_contents_bits_eq.
1740 (value_available_contents_bits_eq): Rename to ...
1741 (value_contents_bits_eq): ... this. Check both unavailable
1742 contents and optimized out contents.
1743 (value_available_contents_eq): Rename to ...
1744 (value_contents_eq): ... this.
1745 (allocate_value_lazy): Remove reference to the old optimized_out
1747 (allocate_optimized_out_value): Use
1748 mark_value_bytes_optimized_out.
1749 (require_not_optimized_out): Adjust to check whether the
1750 optimized_out vec is empty.
1751 (ranges_copy_adjusted): New function, factored out from
1752 value_contents_copy_raw.
1753 (value_contents_copy_raw): Also copy the optimized out ranges.
1754 Assert the destination ranges aren't optimized out.
1755 (value_contents_copy): Update comment, remove call to
1756 require_not_optimized_out.
1757 (value_contents_equal): Adjust to check whether the optimized_out
1759 (set_value_optimized_out, value_optimized_out_const): Delete.
1760 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1762 (value_entirely_optimized_out, value_bits_valid): Delete.
1763 (value_copy): Take a VEC copy of the 'optimized_out' field.
1764 (value_primitive_field): Remove special handling of optimized out.
1765 (value_fetch_lazy): Assert that lazy values have no unavailable
1766 regions. Use value_bits_any_optimized_out. Remove some special
1767 handling for optimized out values.
1768 * value.h: Add intro comment about <optimized out> and
1770 (struct lval_funcs): Remove check_validity and check_any_valid
1772 (set_value_optimized_out, value_optimized_out_const): Remove.
1773 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1775 (value_bits_any_optimized_out): New declaration.
1776 (value_bits_valid): Delete declaration.
1777 (value_available_contents_eq): Rename to ...
1778 (value_contents_eq): ... this, and extend comments.
1780 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1782 Fix -fsanitize=address on unreadable inferior strings.
1783 * valprint.c (val_print_string): Fix access before BUFFER.
1785 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1787 * target.c (target_struct_size): Remove.
1788 (target_struct_allocsize): Remove.
1789 (DEFAULT_ALLOCSIZE): Remove.
1790 (target_ops_p): New typedef.
1791 (DEF_VEC_P (target_ops_p)): New vector type.
1792 (target_structs): Change type to VEC (target_ops_p).
1793 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1794 (find_default_run_target): Rewrite for loop following changes to
1797 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1799 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1800 Adjust code accordingly. Adjust function description comment.
1802 2014-08-19 Yao Qi <yao@codesourcery.com>
1804 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1807 2014-08-19 Alan Modra <amodra@gmail.com>
1809 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1810 * config.in: Regenerate.
1811 * configure: Regenerate.
1813 2014-08-19 Tom Tromey <tromey@redhat.com>
1814 Gary Benson <gbenson@redhat.com>
1816 * common/common-debug.h: New file.
1817 * common/common-debug.c: Likewise.
1818 * debug.c: Likewise.
1819 * Makefile.in (SFILES): Add common/common-debug.c.
1820 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1821 (COMMON_OBS): Add common-debug.o and debug.o.
1822 (common-debug.o): New rule.
1823 * common/common-defs.h: Include common-debug.h.
1824 * common/agent.c (debug_agent_printf): New function.
1825 (DEBUG_AGENT): Redefine.
1826 * nat/i386-dregs.c (debug_printf): Undefine.
1828 2014-08-19 Gary Benson <gbenson@redhat.com>
1830 * common/common-defs.h: Include print-utils.h.
1831 * utils.h: Do not include print-utils.h.
1833 2014-08-19 Tom Tromey <tromey@redhat.com>
1834 Gary Benson <gbenson@redhat.com>
1836 * common/common-types.h: New file.
1837 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1838 * common/common-defs.h: Include common-types.h.
1839 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1842 2014-08-19 Tom Tromey <tromey@redhat.com>
1843 Gary Benson <gbenson@redhat.com>
1845 * common/errors.h: New file.
1846 * common/errors.c: Likewise.
1847 * Makefile.in (SFILES): Add common/errors.c.
1848 (HFILES_NO_SRCDIR): Add common/errors.h.
1849 (COMMON_OBS): Add errors.o.
1850 (errors.o): New rule.
1851 * common/common-defs.h: Include errors.h.
1852 * utils.h (perror_with_name, error, verror, warning, vwarning):
1854 * common/common-utils.h: (malloc_failure, internal_error):
1857 2014-08-19 Gary Benson <gbenson@redhat.com>
1859 * utils.c (internal_vproblem): Always print the message.
1861 2014-08-18 Doug Evans <dje@google.com>
1863 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1865 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1867 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1868 Return 0 if TYPE is dynamic.
1869 (print_range): Add handling of dynamic ranges.
1871 2014-08-18 Keven Boell <keven.boell@intel.com>
1872 Joel Brobecker <brobecker@adacore.com>
1874 * gdbtypes.h (struct main_type): Add field "data_location".
1875 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1876 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1877 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1878 a dynamic data location.
1879 (resolve_dynamic_type): Add DW_AT_data_location handling.
1880 (copy_recursive, copy_type): Copy the data_location information
1882 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1883 * value.c (value_from_contents_and_address): Add
1884 DW_AT_data_location handling.
1886 2014-08-18 Keven Boell <keven.boell@intel.com>
1887 Joel Brobecker <brobecker@adacore.com>
1889 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1890 field "get_object_address".
1891 * dwarf2expr.c (execute_stack_op): Add handling for
1892 DW_OP_push_object_address.
1893 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1894 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1895 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1896 (dwarf_expr_get_obj_addr): New function.
1897 (dwarf_expr_ctx_funcs): Add get_object_address field.
1898 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1899 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1900 (dwarf2_evaluate_property): Add parameter "address". Use it.
1901 (needs_get_obj_addr): New function.
1902 (needs_frame_ctx_funcs): Add get_object_address field.
1903 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1904 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1905 (resolve_dynamic_array): Likewise.
1907 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1909 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1910 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1911 fixed value for records and unions for which some GNAT encodings
1914 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1916 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1917 rewrite to avoid "else if" and "else" constructs. Should be
1918 a no-op in practice.
1920 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1922 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1925 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1928 * eval.c: Update all calls to find_overload_match.
1929 * valarith.c: Likewise.
1930 (value_user_defined_cpp_op, value_user_defined_op): New
1931 argument NOSIDE. Update all callers.
1932 * valops.c (find_overload_match): New argument NOSIDE.
1933 * value.h (find_overload_match): Update signature.
1935 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1937 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1938 'items' methods instead of 'iteritems' method on dictionaries.
1940 2014-08-15 Doug Evans <dje@google.com>
1942 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1945 2014-08-15 Doug Evans <dje@google.com>
1947 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1949 2014-08-15 Doug Evans <dje@google.com>
1951 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1953 2014-08-15 Doug Evans <dje@google.com>
1955 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1958 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1960 * dcache.h: Include target.h, to avoid compile time warnings.
1962 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1964 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1965 frame_info" partial declaration.
1966 * gdbarch.h: Regenerate.
1968 2014-08-15 Yao Qi <yao@codesourcery.com>
1970 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1971 Add parameter 'decode_for_pst_p'. Callers update.
1973 2014-08-13 Yao Qi <yao@codesourcery.com>
1976 * configure.ac: Use local variable 'pos'.
1977 * configure: Regenerated.
1979 2014-08-11 Doug Evans <dje@google.com>
1981 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1982 message, it is redundant with "Reading symbols from ..." message.
1984 2014-08-10 Doug Evans <xdje42@gmail.com>
1986 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1988 2014-08-09 Yao Qi <yao@codesourcery.com>
1991 * remote.c (remote_xfer_partial): Remove dead code.
1993 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1995 * ia64-linux-tdep.c: Include "regset.h".
1996 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1997 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1998 (ia64_linux_supply_fpregset): New function.
1999 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2000 (ia64_linux_regset_from_core_section): New function.
2001 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2004 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2006 * m68klinux-tdep.c: Include "regset.h".
2007 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2008 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2009 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2010 (m68k_linux_regset_from_core_section): New function.
2011 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2014 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2016 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2017 function. Move logic to...
2018 (tilegx_linux_regmap): ... this new register map.
2019 (tilegx_linux_regset): Refer to register map, replace supply
2020 method by regcache_supply_regset, and add collect method.
2021 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2022 TILEGX_FIRST_EASY_REGNUM.
2024 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2026 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2027 that calls regcache_supply_regset and handles the EPC register
2028 separately. Move main logic to...
2029 (score7_linux_gregmap): ... this new register map.
2030 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2031 (score7_linux_gregset): Refer to register map. Add collect method.
2032 (score7_linux_regset_from_core_section): Replace
2033 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2034 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2035 (struct regset): Delete unused forward declaraction.
2036 (struct pt_regs): Delete structure definition.
2037 (elf_gregset_t): Delete typedef.
2039 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2041 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2042 (nios2_core_regset): Add collect method.
2044 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2046 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2047 platform-independent and don't write to read-only input buffer.
2048 (m32r_linux_collect_gregset): New function.
2049 (m32r_linux_gregset): Add collect method.
2051 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2053 * hppa-linux-tdep.c (greg_map): Rename to...
2054 (hppa_linux_gregmap): ... this. Also convert to
2055 regcache_map_entry format.
2056 (hppa_linux_supply_regset): Delete function.
2057 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2058 (hppa_linux_fpregmap): ... this new register map.
2059 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2060 register map, replace supply method by regcache_supply_regset, and
2061 add collect method regcache_collect_regset.
2063 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2065 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2066 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2067 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2068 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2069 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2070 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2071 (frv_linux_supply_gregset): Replace main logic by call to
2072 regcache_supply_regset, but keep clearing gr32-gr63.
2073 (frv_linux_supply_fpregset): Delete function.
2074 (frv_linux_gregset): Refer to appropriate register map and add
2075 regcache_collect_regset as the collect method.
2076 (frv_linux_fpregset): Likewise. Also exchange the supply method
2077 by regcache_supply_regset.
2079 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2081 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2082 by call to alpha_supply_int_regs.
2083 (alpha_linux_collect_gregset): New function.
2084 (alpha_linux_supply_fpregset): Replace logic by call to
2085 alpha_supply_fp_regs.
2086 (alpha_linux_collect_fpregset): New function.
2087 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2089 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2091 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2092 by call to regcache_collect_regset.
2093 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2094 instead of aarch64_linux_supply_gregset/_fpregset.
2095 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2096 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2097 header file instead.
2098 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2099 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2100 functions. Move logic to ...
2101 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2103 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2104 refer to new register maps, replace *_regset_from_core by
2105 regcache_supply_regset, and also use regcache_collect_regset.
2106 * aarch64-linux-tdep.h: Include "regset.h".
2107 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2109 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2110 macros, moved from C source file.
2111 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2112 variable declarations.
2114 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116 * s390-linux-nat.c: Include "regset.h".
2117 (regmap_gregset): Delete macro.
2118 (s390_64_regmap_gregset): New register map for
2119 regcache_supply/_collect_regset.
2120 (s390_64_gregset): New regset.
2121 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2122 (regmap_fpregset): Delete macro.
2123 (s390_native_supply, s390_native_collect): Delete functions.
2124 (supply_gregset, fill_gregset): Replace s390-specific regmap
2125 handling by a call to regcache_supply/_collect_regset.
2126 (supply_fpregset, fill_fpregset): Call regcache_supply/
2127 _collect_regset instead of s390_native_supply/_collect.
2128 (fetch_regset, store_regset): Likewise. Also change the last
2129 parameter to a regset instead of a regmap.
2130 (s390_linux_fetch_inferior_registers)
2131 (390_linux_store_inferior_registers): Adjust last parameter in
2132 calls to fetch_regset and store_regset.
2133 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2134 (s390_gregmap): ... this. Also make static const and convert to
2135 regcache_map_entry format.
2136 (s390x_regmap_gregset): Delete.
2137 (s390_regmap_fpregset): Rename to...
2138 (s390_fpregmap): ... this. Make static const and convert to
2139 regcache_map_entry format.
2140 (s390_regmap_upper, s390_regmap_last_break)
2141 (s390x_regmap_last_break, s390_regmap_system_call)
2142 (s390_regmap_tdb): Likewise.
2143 (s390_supply_regset, s390_collect_regset): Remove functions.
2144 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2146 (s390_gregset, s390_fpregset, s390_upper_regset)
2147 (s390_last_break_regset, s390x_last_break_regset)
2148 (s390_system_call_regset, s390_tdb_regset): Make global and
2149 replace s390_supply/_collect_regset by regcache_supply/
2151 (s390x_gregset): Delete.
2152 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2153 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2154 (s390_regmap_fpregset, s390_regmap_last_break)
2155 (s390x_regmap_last_break, s390_regmap_system_call)
2156 (s390_regmap_tdb): Delete global variable declarations.
2157 (s390_gregset, s390_fpregset, s390_last_break_regset)
2158 (s390x_last_break_regset, s390_system_call_regset)
2159 (s390_tdb_regset): New global variable declarations.
2161 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163 * regcache.c: Include "regset.h".
2164 (regcache_transfer_regset): New local function.
2165 (regcache_supply_regset, regcache_collect_regset): New functions.
2166 * regcache.h (struct regcache_map_entry): New structure.
2167 (REGCACHE_MAP_SKIP): New enum value.
2168 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2170 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2172 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2173 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2174 (ppc_linux_collect_gregset ): Likewise.
2175 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2176 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2177 (ppc_collect_vrregset): Likewise.
2178 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2181 2014-08-07 Yao Qi <yao@codesourcery.com>
2183 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2184 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2185 * remote.c (remote_read_bytes): Likewise.
2187 2014-08-07 Yao Qi <yao@codesourcery.com>
2189 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2191 2014-08-07 Yao Qi <yao@codesourcery.com>
2194 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2195 TARGET_XFER_OK instead of 0.
2197 2014-08-07 Gary Benson <gbenson@redhat.com>
2199 * common/common-defs.h: Include errno.h.
2200 * defs.h: Do not include errno.h.
2201 * ada-typeprint.c: Likewise.
2202 * c-typeprint.c: Likewise.
2203 * core-regset.c: Likewise.
2204 * corefile.c: Likewise.
2205 * corelow.c: Likewise.
2206 * event-loop.c: Likewise.
2207 * f-typeprint.c: Likewise.
2208 * gnu-nat.c: Likewise.
2209 * go32-nat.c: Likewise.
2210 * i386gnu-nat.c: Likewise.
2211 * m2-typeprint.c: Likewise.
2212 * nat/linux-btrace.c: Likewise.
2213 * p-typeprint.c: Likewise.
2214 * procfs.c: Likewise.
2215 * remote-sim.c: Likewise.
2216 * rs6000-nat.c: Likewise.
2217 * target.c: Likewise.
2218 * typeprint.c: Likewise.
2219 * ui-file.c: Likewise.
2220 * valops.c: Likewise.
2221 * valprint.c: Likewise.
2223 2014-08-07 Gary Benson <gbenson@redhat.com>
2225 * common/common-defs.h: Include string.h.
2226 * aarch64-tdep.c: Do not include string.h.
2227 * ada-exp.y: Likewise.
2228 * ada-lang.c: Likewise.
2229 * ada-lex.l: Likewise.
2230 * ada-typeprint.c: Likewise.
2231 * ada-valprint.c: Likewise.
2232 * aix-thread.c: Likewise.
2233 * alpha-linux-tdep.c: Likewise.
2234 * alpha-mdebug-tdep.c: Likewise.
2235 * alpha-nat.c: Likewise.
2236 * alpha-osf1-tdep.c: Likewise.
2237 * alpha-tdep.c: Likewise.
2238 * alphanbsd-tdep.c: Likewise.
2239 * amd64-dicos-tdep.c: Likewise.
2240 * amd64-linux-tdep.c: Likewise.
2241 * amd64-nat.c: Likewise.
2242 * amd64-sol2-tdep.c: Likewise.
2243 * amd64fbsd-tdep.c: Likewise.
2244 * amd64obsd-tdep.c: Likewise.
2245 * arch-utils.c: Likewise.
2246 * arm-linux-nat.c: Likewise.
2247 * arm-linux-tdep.c: Likewise.
2248 * arm-tdep.c: Likewise.
2249 * arm-wince-tdep.c: Likewise.
2250 * armbsd-tdep.c: Likewise.
2251 * armnbsd-nat.c: Likewise.
2252 * armnbsd-tdep.c: Likewise.
2253 * armobsd-tdep.c: Likewise.
2254 * avr-tdep.c: Likewise.
2255 * ax-gdb.c: Likewise.
2256 * ax-general.c: Likewise.
2257 * bcache.c: Likewise.
2258 * bfin-tdep.c: Likewise.
2259 * breakpoint.c: Likewise.
2260 * build-id.c: Likewise.
2261 * buildsym.c: Likewise.
2262 * c-exp.y: Likewise.
2263 * c-lang.c: Likewise.
2264 * c-typeprint.c: Likewise.
2265 * c-valprint.c: Likewise.
2266 * charset.c: Likewise.
2267 * cli-out.c: Likewise.
2268 * cli/cli-cmds.c: Likewise.
2269 * cli/cli-decode.c: Likewise.
2270 * cli/cli-dump.c: Likewise.
2271 * cli/cli-interp.c: Likewise.
2272 * cli/cli-logging.c: Likewise.
2273 * cli/cli-script.c: Likewise.
2274 * cli/cli-setshow.c: Likewise.
2275 * cli/cli-utils.c: Likewise.
2276 * coffread.c: Likewise.
2277 * common/agent.c: Likewise.
2278 * common/buffer.c: Likewise.
2279 * common/buffer.h: Likewise.
2280 * common/common-utils.c: Likewise.
2281 * common/filestuff.c: Likewise.
2282 * common/filestuff.c: Likewise.
2283 * common/format.c: Likewise.
2284 * common/print-utils.c: Likewise.
2285 * common/rsp-low.c: Likewise.
2286 * common/signals.c: Likewise.
2287 * common/vec.h: Likewise.
2288 * common/xml-utils.c: Likewise.
2289 * core-regset.c: Likewise.
2290 * corefile.c: Likewise.
2291 * corelow.c: Likewise.
2292 * cp-abi.c: Likewise.
2293 * cp-name-parser.y: Likewise.
2294 * cp-support.c: Likewise.
2295 * cp-valprint.c: Likewise.
2296 * cris-tdep.c: Likewise.
2297 * d-exp.y: Likewise.
2298 * darwin-nat.c: Likewise.
2299 * dbxread.c: Likewise.
2300 * dcache.c: Likewise.
2301 * demangle.c: Likewise.
2302 * dicos-tdep.c: Likewise.
2303 * disasm.c: Likewise.
2304 * doublest.c: Likewise.
2305 * dsrec.c: Likewise.
2306 * dummy-frame.c: Likewise.
2307 * dwarf2-frame.c: Likewise.
2308 * dwarf2loc.c: Likewise.
2309 * dwarf2read.c: Likewise.
2310 * elfread.c: Likewise.
2311 * environ.c: Likewise.
2313 * event-loop.c: Likewise.
2314 * exceptions.c: Likewise.
2316 * expprint.c: Likewise.
2317 * f-exp.y: Likewise.
2318 * f-lang.c: Likewise.
2319 * f-typeprint.c: Likewise.
2320 * f-valprint.c: Likewise.
2321 * fbsd-nat.c: Likewise.
2322 * findcmd.c: Likewise.
2323 * findvar.c: Likewise.
2324 * fork-child.c: Likewise.
2325 * frame.c: Likewise.
2326 * frv-linux-tdep.c: Likewise.
2327 * frv-tdep.c: Likewise.
2329 * gdb_bfd.c: Likewise.
2330 * gdbarch.c: Likewise.
2331 * gdbarch.sh: Likewise.
2332 * gdbtypes.c: Likewise.
2333 * gnu-nat.c: Likewise.
2334 * gnu-v2-abi.c: Likewise.
2335 * gnu-v3-abi.c: Likewise.
2336 * go-exp.y: Likewise.
2337 * go-lang.c: Likewise.
2338 * go32-nat.c: Likewise.
2339 * guile/guile.c: Likewise.
2340 * guile/scm-auto-load.c: Likewise.
2341 * hppa-hpux-tdep.c: Likewise.
2342 * hppa-linux-nat.c: Likewise.
2343 * hppanbsd-tdep.c: Likewise.
2344 * hppaobsd-tdep.c: Likewise.
2345 * i386-cygwin-tdep.c: Likewise.
2346 * i386-dicos-tdep.c: Likewise.
2347 * i386-linux-tdep.c: Likewise.
2348 * i386-nto-tdep.c: Likewise.
2349 * i386-sol2-tdep.c: Likewise.
2350 * i386-tdep.c: Likewise.
2351 * i386bsd-tdep.c: Likewise.
2352 * i386gnu-nat.c: Likewise.
2353 * i386nbsd-tdep.c: Likewise.
2354 * i386obsd-tdep.c: Likewise.
2355 * i387-tdep.c: Likewise.
2356 * ia64-libunwind-tdep.c: Likewise.
2357 * ia64-linux-nat.c: Likewise.
2358 * inf-child.c: Likewise.
2359 * inf-ptrace.c: Likewise.
2360 * inf-ttrace.c: Likewise.
2361 * infcall.c: Likewise.
2362 * infcmd.c: Likewise.
2363 * inflow.c: Likewise.
2364 * infrun.c: Likewise.
2365 * interps.c: Likewise.
2366 * iq2000-tdep.c: Likewise.
2367 * irix5-nat.c: Likewise.
2368 * jv-exp.y: Likewise.
2369 * jv-lang.c: Likewise.
2370 * jv-typeprint.c: Likewise.
2371 * jv-valprint.c: Likewise.
2372 * language.c: Likewise.
2373 * linux-fork.c: Likewise.
2374 * linux-nat.c: Likewise.
2375 * lm32-tdep.c: Likewise.
2376 * m2-exp.y: Likewise.
2377 * m2-typeprint.c: Likewise.
2378 * m32c-tdep.c: Likewise.
2379 * m32r-linux-nat.c: Likewise.
2380 * m32r-linux-tdep.c: Likewise.
2381 * m32r-rom.c: Likewise.
2382 * m32r-tdep.c: Likewise.
2383 * m68hc11-tdep.c: Likewise.
2384 * m68k-tdep.c: Likewise.
2385 * m68kbsd-tdep.c: Likewise.
2386 * m68klinux-nat.c: Likewise.
2387 * m68klinux-tdep.c: Likewise.
2388 * m88k-tdep.c: Likewise.
2389 * machoread.c: Likewise.
2390 * macrocmd.c: Likewise.
2392 * mdebugread.c: Likewise.
2393 * mem-break.c: Likewise.
2394 * memattr.c: Likewise.
2395 * memory-map.c: Likewise.
2396 * mep-tdep.c: Likewise.
2397 * mi/mi-cmd-break.c: Likewise.
2398 * mi/mi-cmd-disas.c: Likewise.
2399 * mi/mi-cmd-env.c: Likewise.
2400 * mi/mi-cmd-stack.c: Likewise.
2401 * mi/mi-cmd-var.c: Likewise.
2402 * mi/mi-cmds.c: Likewise.
2403 * mi/mi-console.c: Likewise.
2404 * mi/mi-getopt.c: Likewise.
2405 * mi/mi-interp.c: Likewise.
2406 * mi/mi-main.c: Likewise.
2407 * mi/mi-parse.c: Likewise.
2408 * microblaze-rom.c: Likewise.
2409 * microblaze-tdep.c: Likewise.
2410 * mingw-hdep.c: Likewise.
2411 * minidebug.c: Likewise.
2412 * minsyms.c: Likewise.
2413 * mips-irix-tdep.c: Likewise.
2414 * mips-linux-tdep.c: Likewise.
2415 * mips-tdep.c: Likewise.
2416 * mips64obsd-tdep.c: Likewise.
2417 * mipsnbsd-tdep.c: Likewise.
2418 * mipsread.c: Likewise.
2419 * mn10300-linux-tdep.c: Likewise.
2420 * mn10300-tdep.c: Likewise.
2421 * monitor.c: Likewise.
2422 * moxie-tdep.c: Likewise.
2423 * mt-tdep.c: Likewise.
2424 * nat/linux-btrace.c: Likewise.
2425 * nat/linux-osdata.c: Likewise.
2426 * nat/linux-procfs.c: Likewise.
2427 * nat/linux-ptrace.c: Likewise.
2428 * nat/linux-waitpid.c: Likewise.
2429 * nbsd-tdep.c: Likewise.
2430 * nios2-linux-tdep.c: Likewise.
2431 * nto-procfs.c: Likewise.
2432 * nto-tdep.c: Likewise.
2433 * objc-lang.c: Likewise.
2434 * objfiles.c: Likewise.
2435 * opencl-lang.c: Likewise.
2436 * osabi.c: Likewise.
2437 * osdata.c: Likewise.
2438 * p-exp.y: Likewise.
2439 * p-lang.c: Likewise.
2440 * p-typeprint.c: Likewise.
2441 * parse.c: Likewise.
2442 * posix-hdep.c: Likewise.
2443 * ppc-linux-nat.c: Likewise.
2444 * ppc-sysv-tdep.c: Likewise.
2445 * ppcfbsd-tdep.c: Likewise.
2446 * ppcnbsd-tdep.c: Likewise.
2447 * ppcobsd-tdep.c: Likewise.
2448 * printcmd.c: Likewise.
2449 * procfs.c: Likewise.
2450 * prologue-value.c: Likewise.
2451 * python/py-auto-load.c: Likewise.
2452 * python/py-gdb-readline.c: Likewise.
2453 * ravenscar-thread.c: Likewise.
2454 * regcache.c: Likewise.
2455 * registry.c: Likewise.
2456 * remote-fileio.c: Likewise.
2457 * remote-m32r-sdi.c: Likewise.
2458 * remote-mips.c: Likewise.
2459 * remote-notif.c: Likewise.
2460 * remote-sim.c: Likewise.
2461 * remote.c: Likewise.
2462 * reverse.c: Likewise.
2463 * rs6000-aix-tdep.c: Likewise.
2464 * ser-base.c: Likewise.
2465 * ser-go32.c: Likewise.
2466 * ser-mingw.c: Likewise.
2467 * ser-pipe.c: Likewise.
2468 * ser-tcp.c: Likewise.
2469 * ser-unix.c: Likewise.
2470 * serial.c: Likewise.
2471 * sh-tdep.c: Likewise.
2472 * sh64-tdep.c: Likewise.
2473 * shnbsd-tdep.c: Likewise.
2475 * sol-thread.c: Likewise.
2476 * solib-dsbt.c: Likewise.
2477 * solib-frv.c: Likewise.
2478 * solib-osf.c: Likewise.
2479 * solib-som.c: Likewise.
2480 * solib-spu.c: Likewise.
2481 * solib-target.c: Likewise.
2482 * solib.c: Likewise.
2483 * somread.c: Likewise.
2484 * source.c: Likewise.
2485 * sparc-nat.c: Likewise.
2486 * sparc-sol2-tdep.c: Likewise.
2487 * sparc-tdep.c: Likewise.
2488 * sparc64-tdep.c: Likewise.
2489 * sparc64fbsd-tdep.c: Likewise.
2490 * sparc64nbsd-tdep.c: Likewise.
2491 * sparcnbsd-tdep.c: Likewise.
2492 * spu-linux-nat.c: Likewise.
2493 * spu-multiarch.c: Likewise.
2494 * spu-tdep.c: Likewise.
2495 * stabsread.c: Likewise.
2496 * stack.c: Likewise.
2497 * std-regs.c: Likewise.
2498 * symfile.c: Likewise.
2499 * symmisc.c: Likewise.
2500 * symtab.c: Likewise.
2501 * target.c: Likewise.
2502 * thread.c: Likewise.
2503 * tilegx-linux-nat.c: Likewise.
2504 * tilegx-tdep.c: Likewise.
2506 * tracepoint.c: Likewise.
2507 * tui/tui-command.c: Likewise.
2508 * tui/tui-data.c: Likewise.
2509 * tui/tui-disasm.c: Likewise.
2510 * tui/tui-file.c: Likewise.
2511 * tui/tui-layout.c: Likewise.
2512 * tui/tui-out.c: Likewise.
2513 * tui/tui-regs.c: Likewise.
2514 * tui/tui-source.c: Likewise.
2515 * tui/tui-stack.c: Likewise.
2516 * tui/tui-win.c: Likewise.
2517 * tui/tui-windata.c: Likewise.
2518 * tui/tui-winsource.c: Likewise.
2519 * typeprint.c: Likewise.
2520 * ui-file.c: Likewise.
2521 * ui-out.c: Likewise.
2522 * user-regs.c: Likewise.
2523 * utils.c: Likewise.
2524 * v850-tdep.c: Likewise.
2525 * valarith.c: Likewise.
2526 * valops.c: Likewise.
2527 * valprint.c: Likewise.
2528 * value.c: Likewise.
2529 * varobj.c: Likewise.
2530 * vax-tdep.c: Likewise.
2531 * vaxnbsd-tdep.c: Likewise.
2532 * vaxobsd-tdep.c: Likewise.
2533 * windows-nat.c: Likewise.
2534 * xcoffread.c: Likewise.
2535 * xml-support.c: Likewise.
2536 * xstormy16-tdep.c: Likewise.
2537 * xtensa-linux-nat.c: Likewise.
2539 2014-08-07 Gary Benson <gbenson@redhat.com>
2541 * common/common-defs.h: Include gdb_assert.h.
2542 * aarch64-tdep.c: Do not include gdb_assert.h.
2543 * addrmap.c: Likewise.
2544 * aix-thread.c: Likewise.
2545 * alpha-linux-tdep.c: Likewise.
2546 * alpha-mdebug-tdep.c: Likewise.
2547 * alphanbsd-tdep.c: Likewise.
2548 * amd64-nat.c: Likewise.
2549 * amd64-tdep.c: Likewise.
2550 * amd64bsd-nat.c: Likewise.
2551 * amd64fbsd-nat.c: Likewise.
2552 * amd64fbsd-tdep.c: Likewise.
2553 * amd64nbsd-nat.c: Likewise.
2554 * amd64nbsd-tdep.c: Likewise.
2555 * amd64obsd-nat.c: Likewise.
2556 * amd64obsd-tdep.c: Likewise.
2557 * arch-utils.c: Likewise.
2558 * arm-tdep.c: Likewise.
2559 * armbsd-tdep.c: Likewise.
2561 * bcache.c: Likewise.
2562 * bfin-tdep.c: Likewise.
2563 * blockframe.c: Likewise.
2564 * breakpoint.c: Likewise.
2565 * bsd-kvm.c: Likewise.
2566 * bsd-uthread.c: Likewise.
2567 * buildsym.c: Likewise.
2568 * c-exp.y: Likewise.
2569 * c-lang.c: Likewise.
2570 * charset.c: Likewise.
2571 * cleanups.c: Likewise.
2572 * cli-out.c: Likewise.
2573 * cli/cli-decode.c: Likewise.
2574 * cli/cli-dump.c: Likewise.
2575 * cli/cli-logging.c: Likewise.
2576 * cli/cli-script.c: Likewise.
2577 * cli/cli-utils.c: Likewise.
2578 * coffread.c: Likewise.
2579 * common/common-utils.c: Likewise.
2580 * common/queue.h: Likewise.
2581 * common/signals.c: Likewise.
2582 * common/vec.h: Likewise.
2583 * complaints.c: Likewise.
2584 * completer.c: Likewise.
2585 * corelow.c: Likewise.
2586 * cp-abi.c: Likewise.
2587 * cp-name-parser.y: Likewise.
2588 * cp-namespace.c: Likewise.
2589 * cp-support.c: Likewise.
2590 * cris-tdep.c: Likewise.
2591 * dbxread.c: Likewise.
2592 * dictionary.c: Likewise.
2593 * doublest.c: Likewise.
2594 * dsrec.c: Likewise.
2595 * dummy-frame.c: Likewise.
2596 * dwarf2-frame-tailcall.c: Likewise.
2597 * dwarf2-frame.c: Likewise.
2598 * dwarf2expr.c: Likewise.
2599 * dwarf2loc.c: Likewise.
2600 * dwarf2read.c: Likewise.
2602 * event-loop.c: Likewise.
2603 * exceptions.c: Likewise.
2604 * expprint.c: Likewise.
2605 * f-valprint.c: Likewise.
2606 * fbsd-nat.c: Likewise.
2607 * findvar.c: Likewise.
2608 * frame-unwind.c: Likewise.
2609 * frame.c: Likewise.
2610 * frv-tdep.c: Likewise.
2611 * gcore.c: Likewise.
2612 * gdb-dlfcn.c: Likewise.
2613 * gdb_bfd.c: Likewise.
2614 * gdbarch.c: Likewise.
2615 * gdbarch.sh: Likewise.
2616 * gdbtypes.c: Likewise.
2617 * gnu-nat.c: Likewise.
2618 * gnu-v3-abi.c: Likewise.
2619 * go-lang.c: Likewise.
2620 * guile/scm-exception.c: Likewise.
2621 * guile/scm-gsmob.c: Likewise.
2622 * guile/scm-lazy-string.c: Likewise.
2623 * guile/scm-math.c: Likewise.
2624 * guile/scm-pretty-print.c: Likewise.
2625 * guile/scm-safe-call.c: Likewise.
2626 * guile/scm-utils.c: Likewise.
2627 * guile/scm-value.c: Likewise.
2628 * h8300-tdep.c: Likewise.
2629 * hppa-hpux-nat.c: Likewise.
2630 * hppa-tdep.c: Likewise.
2631 * hppanbsd-tdep.c: Likewise.
2632 * hppaobsd-tdep.c: Likewise.
2633 * i386-darwin-nat.c: Likewise.
2634 * i386-darwin-tdep.c: Likewise.
2635 * i386-nto-tdep.c: Likewise.
2636 * i386-tdep.c: Likewise.
2637 * i386bsd-nat.c: Likewise.
2638 * i386fbsd-tdep.c: Likewise.
2639 * i386gnu-nat.c: Likewise.
2640 * i386nbsd-tdep.c: Likewise.
2641 * i386obsd-tdep.c: Likewise.
2642 * i387-tdep.c: Likewise.
2643 * ia64-libunwind-tdep.c: Likewise.
2644 * ia64-tdep.c: Likewise.
2645 * inf-ptrace.c: Likewise.
2646 * inf-ttrace.c: Likewise.
2647 * infcall.c: Likewise.
2648 * infcmd.c: Likewise.
2649 * infrun.c: Likewise.
2650 * inline-frame.c: Likewise.
2651 * interps.c: Likewise.
2652 * jv-lang.c: Likewise.
2653 * jv-typeprint.c: Likewise.
2654 * linux-fork.c: Likewise.
2655 * linux-nat.c: Likewise.
2656 * linux-thread-db.c: Likewise.
2657 * m32c-tdep.c: Likewise.
2658 * m32r-linux-nat.c: Likewise.
2659 * m32r-tdep.c: Likewise.
2660 * m68k-tdep.c: Likewise.
2661 * m68kbsd-nat.c: Likewise.
2662 * m68kbsd-tdep.c: Likewise.
2663 * m88k-tdep.c: Likewise.
2664 * machoread.c: Likewise.
2665 * macroexp.c: Likewise.
2666 * macrotab.c: Likewise.
2667 * maint.c: Likewise.
2668 * mdebugread.c: Likewise.
2669 * memory-map.c: Likewise.
2670 * mep-tdep.c: Likewise.
2671 * mi/mi-common.c: Likewise.
2672 * microblaze-tdep.c: Likewise.
2673 * mingw-hdep.c: Likewise.
2674 * mips-linux-nat.c: Likewise.
2675 * mips-linux-tdep.c: Likewise.
2676 * mips-tdep.c: Likewise.
2677 * mips64obsd-tdep.c: Likewise.
2678 * mipsnbsd-tdep.c: Likewise.
2679 * mn10300-linux-tdep.c: Likewise.
2680 * mn10300-tdep.c: Likewise.
2681 * moxie-tdep.c: Likewise.
2682 * mt-tdep.c: Likewise.
2683 * nat/linux-btrace.c: Likewise.
2684 * nat/linux-osdata.c: Likewise.
2685 * nat/linux-ptrace.c: Likewise.
2686 * nat/mips-linux-watch.c: Likewise.
2687 * nios2-linux-tdep.c: Likewise.
2688 * nios2-tdep.c: Likewise.
2689 * objc-lang.c: Likewise.
2690 * objfiles.c: Likewise.
2691 * obsd-nat.c: Likewise.
2692 * opencl-lang.c: Likewise.
2693 * osabi.c: Likewise.
2694 * parse.c: Likewise.
2695 * ppc-linux-nat.c: Likewise.
2696 * ppc-sysv-tdep.c: Likewise.
2697 * ppcfbsd-nat.c: Likewise.
2698 * ppcfbsd-tdep.c: Likewise.
2699 * ppcnbsd-nat.c: Likewise.
2700 * ppcnbsd-tdep.c: Likewise.
2701 * ppcobsd-nat.c: Likewise.
2702 * ppcobsd-tdep.c: Likewise.
2703 * printcmd.c: Likewise.
2704 * procfs.c: Likewise.
2705 * prologue-value.c: Likewise.
2706 * psymtab.c: Likewise.
2707 * python/py-lazy-string.c: Likewise.
2708 * python/py-value.c: Likewise.
2709 * regcache.c: Likewise.
2710 * reggroups.c: Likewise.
2711 * registry.c: Likewise.
2712 * remote-sim.c: Likewise.
2713 * remote.c: Likewise.
2714 * rs6000-aix-tdep.c: Likewise.
2715 * rs6000-tdep.c: Likewise.
2716 * s390-linux-tdep.c: Likewise.
2717 * score-tdep.c: Likewise.
2718 * ser-base.c: Likewise.
2719 * ser-mingw.c: Likewise.
2720 * sh-tdep.c: Likewise.
2721 * sh64-tdep.c: Likewise.
2722 * solib-darwin.c: Likewise.
2723 * solib-spu.c: Likewise.
2724 * solib-svr4.c: Likewise.
2725 * source.c: Likewise.
2726 * sparc-nat.c: Likewise.
2727 * sparc-sol2-tdep.c: Likewise.
2728 * sparc-tdep.c: Likewise.
2729 * sparc64-sol2-tdep.c: Likewise.
2730 * sparc64-tdep.c: Likewise.
2731 * sparc64fbsd-tdep.c: Likewise.
2732 * sparc64nbsd-tdep.c: Likewise.
2733 * sparc64obsd-tdep.c: Likewise.
2734 * sparcnbsd-tdep.c: Likewise.
2735 * sparcobsd-tdep.c: Likewise.
2736 * spu-multiarch.c: Likewise.
2737 * spu-tdep.c: Likewise.
2738 * stabsread.c: Likewise.
2739 * stack.c: Likewise.
2740 * symfile.c: Likewise.
2741 * symtab.c: Likewise.
2742 * target-descriptions.c: Likewise.
2743 * target-memory.c: Likewise.
2744 * target.c: Likewise.
2745 * tic6x-linux-tdep.c: Likewise.
2746 * tic6x-tdep.c: Likewise.
2747 * tilegx-linux-nat.c: Likewise.
2748 * tilegx-tdep.c: Likewise.
2750 * tramp-frame.c: Likewise.
2751 * tui/tui-out.c: Likewise.
2752 * tui/tui-winsource.c: Likewise.
2753 * ui-out.c: Likewise.
2754 * user-regs.c: Likewise.
2755 * utils.c: Likewise.
2756 * v850-tdep.c: Likewise.
2757 * valops.c: Likewise.
2758 * value.c: Likewise.
2759 * varobj.c: Likewise.
2760 * vax-nat.c: Likewise.
2761 * xml-syscall.c: Likewise.
2762 * xml-tdesc.c: Likewise.
2763 * xstormy16-tdep.c: Likewise.
2764 * xtensa-linux-nat.c: Likewise.
2765 * xtensa-tdep.c: Likewise.
2767 2014-08-07 Gary Benson <gbenson@redhat.com>
2769 * common/common-defs.h: Include common-utils.h.
2770 * defs.h: Do not include common-utils.h.
2771 * common/gdb_assert.h: Likewise.
2772 * darwin-nat.h: Likewise.
2773 * nat/linux-btrace.c: Likewise.
2774 * target/waitstatus.h: Likewise.
2776 2014-08-07 Gary Benson <gbenson@redhat.com>
2778 * common/common-defs.h: Include ptid.h.
2779 * defs.h: Do not include ptid.h.
2780 * inferior.h: Likewise.
2781 * infrun.h: Likewise.
2782 * nat/linux-btrace.h: Likewise.
2783 * nat/linux-osdata.h: Likewise.
2784 * target/waitstatus.h: Likewise.
2786 2014-08-07 Gary Benson <gbenson@redhat.com>
2788 * common/common-defs.h: Include gdb_locale.h.
2789 * defs.h: Do not include gdb_locale.h.
2791 2014-08-07 Gary Benson <gbenson@redhat.com>
2793 * common/common-defs.h: Include gdb/signals.h.
2794 * defs.h: Do not include gdb/signals.h.
2796 2014-08-07 Gary Benson <gbenson@redhat.com>
2798 * common/common-defs.h: Include pathmax.h.
2799 * defs.h: Do not include pathmax.h.
2801 2014-08-07 Gary Benson <gbenson@redhat.com>
2803 * common/common-defs.h: Include libiberty.h.
2804 * defs.h: Do not include libiberty.h.
2805 * common/queue.h: Likewise.
2806 * cp-name-parser.y: Likewise.
2807 * mi/mi-cmd-catch.c: Likewise.
2808 * python/python.c: Likewise.
2810 2014-08-07 Gary Benson <gbenson@redhat.com>
2812 * common/common-defs.h: Include ansidecl.h.
2813 * defs.h: Do not include ansidecl.h.
2814 * common/buffer.h: Likewise.
2815 * common/common-utils.h: Likewise.
2817 2014-08-07 Gary Benson <gbenson@redhat.com>
2819 * common/common-defs.h: Include stddef.h.
2820 * defs.h: Do not include stddef.h.
2821 * common/common-utils.h: Likewise.
2822 * amd64fbsd-nat.c: Likewise.
2823 * bcache.c: Likewise.
2824 * charset.c: Likewise.
2825 * common/buffer.h: Likewise.
2826 * common/vec.h: Likewise.
2827 * i386bsd-nat.c: Likewise.
2828 * nat/linux-btrace.h: Likewise.
2829 * ppcfbsd-nat.c: Likewise.
2830 * ppcnbsd-tdep.h: Likewise.
2831 * ppcobsd-nat.c: Likewise.
2832 * ppcobsd-tdep.h: Likewise.
2833 * python/py-gdb-readline.c: Likewise.
2835 2014-08-07 Gary Benson <gbenson@redhat.com>
2837 * common/common-defs.h: Include stdarg.h.
2838 * defs.h: Do not include stdarg.h.
2839 * ada-lang.c: Likewise.
2840 * common/common-utils.h: Likewise.
2841 * guile/scm-string.c: Likewise.
2842 * guile/scm-utils.c: Likewise.
2843 * m32c-tdep.c: Likewise.
2845 2014-08-07 Gary Benson <gbenson@redhat.com>
2847 * common/common-defs.h: Include stdlib.h.
2848 * defs.h: Do not include stdlib.h.
2849 * addrmap.c: Likewise.
2850 * bcache.c: Likewise.
2851 * common/buffer.c: Likewise.
2852 * common/common-utils.c: Likewise.
2853 * cp-name-parser.y: Likewise.
2854 * go32-nat.c: Likewise.
2855 * mn10300-linux-tdep.c: Likewise.
2856 * nat/linux-osdata.c: Likewise.
2857 * tui/tui.c: Likewise.
2858 * windows-nat.c: Likewise.
2860 2014-08-07 Gary Benson <gbenson@redhat.com>
2862 * common/common-defs.h: Include stdio.h.
2863 * defs.h: Do not include stdio.h.
2864 * ada-lang.c: Likewise.
2865 * common/buffer.c: Likewise.
2866 * common/common-utils.c: Likewise.
2867 * cp-name-parser.y: Likewise.
2868 * gnu-nat.c: Likewise.
2869 * go32-nat.c: Likewise.
2870 * i386gnu-nat.c: Likewise.
2871 * proc-api.c: Likewise.
2872 * proc-events.c: Likewise.
2873 * proc-flags.c: Likewise.
2874 * proc-why.c: Likewise.
2875 * python/python-internal.h: Likewise.
2876 * target-memory.c: Likewise.
2877 * tui/tui-io.c: Likewise.
2878 * tui/tui.c: Likewise.
2880 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2882 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2883 (scan_dyntag_auxv): Same.
2885 2014-08-06 Yao Qi <yao@codesourcery.com>
2887 * amd64-linux-nat.c: Remove duplicated include
2889 * i386-linux-nat.c: Likewise.
2891 2014-08-06 Yao Qi <yao@codesourcery.com>
2893 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2894 operand" with "Special opcode" in comments.
2896 2014-08-05 Gary Benson <gbenson@redhat.com>
2898 * interps.c (initialize_interps): Remove prototype.
2899 (interpreter_initialized): Remove static global.
2900 (interp_add): Do not call initialize_interps.
2901 (initialize_interps): Remove function.
2903 2014-08-05 Gary Benson <gbenson@redhat.com>
2905 * utils.c (vwarning): Remove spurious va_end.
2907 2014-08-05 Alan Modra <amodra@gmail.com>
2909 * charset.c (convert_between_encodings): Cast result of obstack_base.
2910 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2911 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2912 (read_unwind_info): Use size_t for some locals.
2913 * jit.c (finalize_symtab): Likewise.
2914 * utils.c (hashtab_obstack_allocate): Likewise.
2915 * symmisc.c (print_objfile_statistics): Update format strings.
2917 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2919 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2920 (Changes in GDB 7.8): ... here.
2922 2014-08-04 Tom Tromey <tromey@redhat.com>
2924 * target.c (set_targetdebug): New function.
2925 (initialize_targets): Pass set_targetdebug when creating "set
2928 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2930 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2931 if detecting a variable-sized field that is not the last field.
2932 Fix struct type length computation.
2934 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2936 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2939 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2941 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2942 Remove "+ 8" offset in computation of CHAIN_VMA.
2944 2014-07-31 Doug Evans <dje@google.com>
2946 * inflow.c (child_terminal_inferior): Add comment.
2947 (child_terminal_ours_for_output): Add comment.
2948 (child_terminal_ours): Add comment.
2949 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2950 (linux_nat_terminal_ours): Add comment.
2952 2014-07-31 Gary Benson <gbenson@redhat.com>
2954 * common/btrace-common.h: Do not include defs.h or server.h.
2955 * nat/mips-linux-watch.h: Likewise.
2956 * gdb-dlfcn.h: Do not include defs.h.
2957 * tracefile.h: Likewise.
2959 2014-07-30 Roland McGrath <mcgrathr@google.com>
2961 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2963 2014-07-30 Tom Tromey <tromey@redhat.com>
2965 * bsd-kvm.c (bsd_kvm_open): Constify.
2966 * corelow.c (core_open): Constify.
2967 * ctf.c (ctf_open): Constify.
2968 * dbug-rom.c (dbug_open): Constify.
2969 * exec.c (exec_open): Constify.
2970 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2971 * microblaze-rom.c (picobug_open): Constify.
2972 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2974 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2975 * record-btrace.c (record_btrace_open): Constify.
2976 * record-full.c (record_full_core_open_1, record_full_open_1)
2977 (record_full_open): Constify.
2978 * remote-m32r-sdi.c (m32r_open): Constify.
2979 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2980 (rockhopper_open, lsi_open): Constify.
2981 * remote-sim.c (gdbsim_open): Constify.
2982 * remote.c (remote_open, extended_remote_open, remote_open_1):
2984 * target.h (struct target_ops) <to_open>: Make "arg" const.
2985 * tracefile-tfile.c (tfile_open): Constify.
2987 2014-07-30 Tom Tromey <tromey@redhat.com>
2989 * breakpoint.c (map_breakpoint_numbers): Update.
2990 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2991 (get_number_const): New function.
2992 (get_number): Rewrite using get_number_const.
2993 (init_number_or_range): Make "string" const.
2994 (number_is_in_list): Make "list" const.
2995 * cli/cli-utils.h (get_number_const): Declare.
2996 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2997 (init_number_or_range, number_is_in_list): Update.
2998 * printcmd.c (map_display_numbers): Update.
2999 * value.c (value_from_history_ref): Constify.
3000 * value.h (value_from_history_ref): Update.
3002 2014-07-30 Tom Tromey <tromey@redhat.com>
3004 * corefile.c (hook_type, call_extra_exec_file_hooks)
3005 (specify_exec_file_hook): Constify.
3006 * exec.c (exec_file_attach): Make "filename" const.
3007 * gdbcore.h (deprecated_exec_file_display_hook)
3008 (specify_exec_file_hook, exec_file_attach): Constify.
3009 * main.c (captured_main): Use catch_command_errors_const.
3011 2014-07-30 Tom Tromey <tromey@redhat.com>
3013 * target.c (open_target): New function.
3014 (add_target_with_completer, add_deprecated_target_alias): Use
3015 set_cmd_sfunc, set_cmd_context.
3016 (debug_to_open): Remove.
3017 (setup_target_debug): Update.
3019 2014-07-30 Yao Qi <yao@codesourcery.com>
3021 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3023 * parse.c (exp_iterate): Update comments.
3025 2014-07-30 Gary Benson <gbenson@redhat.com>
3027 * common/common-defs.h: New file.
3028 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3029 * defs.h: Include common-defs.h.
3030 Do not include config.h or build-gnulib/config.h.
3032 2014-07-30 Gary Benson <gbenson@redhat.com>
3034 * common/common-utils.h: Do not include config.h.
3035 * nat/linux-btrace.h: Likewise.
3037 2014-07-30 Gary Benson <gbenson@redhat.com>
3039 * btrace.c: Include defs.h.
3040 * common/ptid.c: Include defs.h or server.h as appropriate.
3041 * nat/mips-linux-watch.c: Likewise.
3043 2014-07-29 Tom Tromey <tromey@redhat.com>
3045 * target.c (target_is_pushed): Simplify.
3047 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3051 2014-07-29 Yao Qi <yao@codesourcery.com>
3054 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3056 2014-07-28 Doug Evans <xdje42@gmail.com>
3059 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3060 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3063 2014-07-28 Will Newton <will.newton@linaro.org>
3065 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3066 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3067 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3068 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3069 (THUMB2_EABI_SYSCALL): Likewise.
3070 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3072 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3073 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3075 2014-07-27 Doug Evans <xdje42@gmail.com>
3077 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3079 2014-07-27 Doug Evans <xdje42@gmail.com>
3081 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3083 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3084 Doug Evans <xdje42@gmail.com>
3087 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3088 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3089 * configure.ac: Try to use guild to compile an scm file, if it fails
3090 then disable guile support.
3091 * configure: Regenerate.
3092 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3094 (GUILE_COMPILED_FILES): New variable.
3095 (GUILE_FILES) Update.
3096 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3097 (stamp-guile): Compile scm files.
3098 * guile/guile.c (boot_guile_support): New function.
3099 (standard_throw_args_p): New function.
3100 (print_standard_throw_error, print_throw_error): New functions.
3101 (handle_boot_error): New function.
3102 (initialize_scheme_side): Rewrite to call boot_guile_support.
3103 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3104 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3106 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3107 Doug Evans <xdje42@gmail.com>
3110 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3111 * guile/lib/gdb/support.scm: New file.
3112 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3113 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3115 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3117 (%assert-type): Ditto, and renamed to assert-type.
3118 (%exception-print-style): Delete.
3120 2014-07-26 Doug Evans <xdje42@gmail.com>
3123 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3124 * configure: Regenerate.
3125 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3127 (PYTHON_FILES): New variable.
3128 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3129 (GUILE_FILES): New variable.
3130 (stamp-python, install-python, uninstall-python): Handle empty
3132 (stamp-guile, install-guile, uninstall-guile): Ditto.
3134 2014-07-26 Doug Evans <xdje42@gmail.com>
3137 * guile/lib/gdb.scm (pretty-printers): Export.
3138 (set-pretty-printers!): Export.
3139 * guile/lib/gdb/printing.scm (gdb module): Update.
3140 (prepend-pretty-printer!, append-pretty-printer!): Update.
3141 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3142 (pretty_printer_list_var): Delete.
3143 (pretty_printer_list): New static global.
3144 (gdbscm_pretty_printers): New function.
3145 (gdbscm_set_pretty_printers_x): New function.
3146 (ppscm_find_pretty_printer_from_gdb): Update.
3147 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3148 (gdbscm_initialize_pretty_printers): Update.
3150 2014-07-26 Doug Evans <xdje42@gmail.com>
3153 * configure.ac: Add check for header gc/gc.h.
3154 Add check for function setenv.
3155 * configure: Regenerate.
3156 * config.in: Regenerate.
3157 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3159 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3161 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3162 variation in gdbarch matching.
3164 2014-07-25 Tom Tromey <tromey@redhat.com>
3166 * exec.c (using_exec_ops): Remove.
3167 (exec_close_1): Update. Remove extraneous block, reindent.
3168 (add_target_sections): Use target_is_pushed.
3170 2014-07-25 Pedro Alves <palves@redhat.com>
3172 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3173 * monitor.c (monitor_create_inferior): Likewise.
3174 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3175 * remote-sim.c (gdbsim_create_inferior): Likewise.
3176 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3177 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3178 * windows-nat.c (do_initial_windows_stuff): Likewise.
3180 2014-07-25 Pedro Alves <palves@redhat.com>
3182 * NEWS: Mention signal passing and "signal" command changes.
3183 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3185 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3187 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3188 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3189 (jump_command): Adjust clear_proceed_status call.
3190 (signal_command): Warn if other thread that are resumed have
3191 signals that will be delivered. Adjust clear_proceed_status call.
3192 (until_next_command, finish_command)
3193 (proceed_after_attach_callback, attach_command_post_wait)
3194 (attach_command): Adjust clear_proceed_status call.
3195 * infrun.c (proceed_after_vfork_done): Likewise.
3196 (proceed_after_attach_callback): Adjust comment.
3197 (clear_proceed_status_thread): Clear stop_signal if not in pass
3199 (clear_proceed_status_callback): Delete.
3200 (clear_proceed_status): New 'step' parameter. Only clear the
3201 proceed status of threads the command being prepared is about to
3203 (proceed): If passed in an explicit signal, override stop_signal
3204 with it. Don't pass the last stop signal to the thread we're
3206 (init_wait_for_inferior): Adjust clear_proceed_status call.
3207 (switch_back_to_stepped_thread): Clear the signal if it should not
3209 * infrun.h (clear_proceed_status): New 'step' parameter.
3210 (user_visible_resume_ptid): Add comment.
3211 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3212 signal is in pass state.
3213 * remote.c (append_pending_thread_resumptions): Likewise.
3214 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3216 2014-07-25 Tom Tromey <tromey@redhat.com>
3218 * target.h (target_stopped_data_address)
3219 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3222 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3224 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3226 (avr_pointer_to_address): Likewise.
3228 2014-07-24 Tom Tromey <tromey@redhat.com>
3230 * monitor.c (compile_pattern): Update.
3231 * target.h (struct target_ops) <to_shortname, to_longname,
3234 2014-07-24 Tom Tromey <tromey@redhat.com>
3236 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3237 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3238 (add_info_alias, add_com): Make "doc" const.
3239 (print_doc_line): Make "str" const.
3240 (delete_cmd): Update.
3241 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3242 (print_doc_line): Update.
3243 * cli/cli-script.c (document_command): Update.
3244 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3245 (add_com, add_info, add_info_alias): Update.
3246 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3247 * python/py-cmd.c (cmdpy_destroyer): Update.
3249 2014-07-24 Tom Tromey <tromey@redhat.com>
3251 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3252 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3253 (help_cmd_list): Constify.
3254 (lookup_cmd): Update.
3255 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3257 (help_cmd_list, apropos_cmd): Update.
3258 * cli/cli-script.c (show_user): Update.
3259 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3260 * cli/cli-setshow.h (cmd_show_list): Update.
3261 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3262 (cmd_show_list): Update.
3263 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3264 * python/py-cmd.c (cmdpy_destroyer): Update.
3266 2014-07-24 Tom Tromey <tromey@redhat.com>
3268 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3269 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3271 * command.h (deprecate_cmd): Update.
3272 * maint.c (maintenance_do_deprecate): Add casts.
3274 2014-07-24 Tom Tromey <tromey@redhat.com>
3276 * cli/cli-decode.c (help_cmd): Make parameter "const".
3277 * cli/cli-decode.h (help_cmd): Update.
3279 2014-07-24 Tom Tromey <tromey@redhat.com>
3281 * stack.c (up_silently_base, down_silently_base): Make argument
3284 2014-07-24 Tom Tromey <tromey@redhat.com>
3286 * solib.c (solib_add): Make "pattern" const.
3287 * solib.h (solib_add): Update.
3289 2014-07-24 Tom Tromey <tromey@redhat.com>
3291 * remote.c (remote_serial_open, print_packet, putpkt)
3292 (putpkt_binary): Constify.
3293 * remote.h (putpkt): Update.
3295 2014-07-24 Tom Tromey <tromey@redhat.com>
3297 * monitor.c (monitor_open): Make "args" const.
3298 * monitor.h (monitor_open): Update.
3300 2014-07-24 Tom Tromey <tromey@redhat.com>
3302 * maint.c (match_bfd_flags): Make "string" const.
3303 (print_bfd_section_info): Remove casts.
3304 (print_objfile_section_info): Make "string" const.
3306 2014-07-24 Tom Tromey <tromey@redhat.com>
3308 * inf-child.c (inf_child_open_target): Make "arg" const.
3309 * inf-child.h (inf_child_open_target): Update.
3311 2014-07-24 Tom Tromey <tromey@redhat.com>
3313 * environ.c (unset_in_environ): Make "var" const.
3314 * environ.h (unset_in_environ): Update.
3316 2014-07-24 Tom Tromey <tromey@redhat.com>
3318 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3320 (scan_filename_with_cleanup): Likewise.
3321 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3322 Make arguments const.
3323 (restore_command): Update.
3325 2014-07-24 Pedro Alves <palves@redhat.com>
3327 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3329 2014-07-24 Tom Tromey <tromey@redhat.com>
3330 Gary Benson <gbenson@redhat.com>
3332 * nat/linux-ptrace.c (additional_flags): New global.
3333 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3334 additional_flags; don't check GDBSERVER.
3335 (linux_ptrace_set_additional_flags): New function.
3336 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3338 * linux-nat.c (_initialize_linux_nat): Call
3339 linux_ptrace_set_additional_flags.
3341 2014-07-24 Tom Tromey <tromey@redhat.com>
3343 * make-target-delegates (munge_type, write_debugmethod): New
3345 (debug_names): New global.
3346 ($TARGET_DEBUG_PRINTER): New global.
3347 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3349 Write debug methods. Generate init_debug_target.
3350 * target-debug.h: New file.
3351 * target-delegates.c: Rebuild.
3352 * target.c: Include target-debug.h.
3353 (debug_target): Hoist definition.
3354 (target_kill, target_get_section_table, target_memory_map)
3355 (target_flash_erase, target_flash_done, target_detach)
3356 (target_disconnect, target_wait, target_resume)
3357 (target_pass_signals, target_program_signals, target_follow_fork)
3358 (target_mourn_inferior, target_search_memory)
3359 (target_thread_address_space, target_close)
3360 (target_find_new_threads, target_core_of_thread)
3361 (target_verify_memory, target_insert_mask_watchpoint)
3362 (target_remove_mask_watchpoint): Remove targetdebug code.
3363 (debug_to_post_attach, debug_to_prepare_to_store)
3364 (debug_to_files_info, debug_to_insert_breakpoint)
3365 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3366 (debug_to_region_ok_for_hw_watchpoint)
3367 (debug_to_can_accel_watchpoint_condition)
3368 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3369 (debug_to_watchpoint_addr_within_range)
3370 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3371 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3372 (debug_to_terminal_init, debug_to_terminal_inferior)
3373 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3374 (debug_to_terminal_save_ours, debug_to_terminal_info)
3375 (debug_to_load, debug_to_post_startup_inferior)
3376 (debug_to_insert_fork_catchpoint)
3377 (debug_to_remove_fork_catchpoint)
3378 (debug_to_insert_vfork_catchpoint)
3379 (debug_to_remove_vfork_catchpoint)
3380 (debug_to_insert_exec_catchpoint)
3381 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3382 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3383 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3384 (setup_target_debug): Call init_debug_target.
3385 * target.h (TARGET_DEBUG_PRINTER): New macro.
3386 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3387 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3389 2014-07-24 Gary Benson <gbenson@redhat.com>
3391 * exceptions.h (throw_vfatal): Renamed to...
3392 (throw_vquit): New declaration.
3393 (throw_quit): Likewise.
3394 * exceptions.c (throw_vfatal): Renamed to...
3395 (throw_vquit): New function.
3396 (throw_quit): Likewise.
3397 (throw_error): Call throw_verror rather than throw_it.
3398 * utils.h (vfatal): Removed.
3400 * utils.c (vfatal): Removed.
3402 (internal_verror): Replaced call to fatal with call to throw_quit.
3403 (quit): Replaced calls to fatal with calls to throw_quit.
3405 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3407 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3410 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3412 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3413 less than zero in conditional expression.
3415 2014-07-23 Tom Tromey <tromey@redhat.com>
3417 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3418 ($INTRO_PART): Don't match whitespace.
3419 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3421 ($METHOD): Add $METHOD_TRAILER.
3423 (scan_target_h): New sub.
3424 Change main loop not to collect state.
3425 * target-delegates.c: Rebuild.
3427 2014-07-23 Gary Benson <gbenson@redhat.com>
3429 * cp-support.c (gdb_demangle): Fix build on systems without
3432 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3434 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3435 for reference entry value target data value.
3437 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3439 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3440 value_available_contents_eq.
3442 2014-07-22 Pedro Alves <palves@redhat.com>
3444 * value.c (allocate_optimized_out_value): Don't mark value as
3447 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3449 * MAINTAINERS (Write After Approval): Update my email address.
3451 2014-07-20 Doug Evans <dje@google.com>
3454 * remote.c (putpkt_binary): Add text to error message.
3456 2014-07-20 Yao Qi <yao@codesourcery.com>
3458 * eval.c: Remove "Chill" from comments.
3459 * gdbtypes.h: Likewise.
3460 * symtab.h: Likewise.
3462 2014-07-20 Yao Qi <yao@codesourcery.com>
3464 * std-operator.def: Update comments to TERNOP_SLICE.
3466 2014-07-20 Yao Qi <yao@codesourcery.com>
3468 * std-operator.def: Remove BINOP_RANGE.
3469 * breakpoint.c (watchpoint_exp_is_const): Update.
3470 * expprint.c (dump_subexp_body_standard): Likewise.
3471 * eval.c (init_array_element): Remove dead code.
3472 (evaluate_subexp_standard): Likewise.
3474 2014-07-20 Yao Qi <yao@codesourcery.com>
3476 * std-operator.def: Remove BINOP_IN.
3477 * breakpoint.c (watchpoint_exp_is_const): Update.
3478 * eval.c (evaluate_subexp_standard): Likewise.
3479 * expprint.c (dump_subexp_body_standard): Likewise.
3481 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3483 * microblaze-tdep.c (microblaze_register_names): Add
3484 the rshr and rslr register names.
3485 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3486 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3487 Use of tdesc_numbered_register. Use of
3488 microblaze_register_g_packet_guesses. Use of
3489 tdesc_use_registers. Use of set_gdbarch_register_type.
3490 (microblaze_register_g_packet_guesses): New.
3491 * microblaze-tdep.h (microblaze_reg_num): Add
3492 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3493 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3494 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3495 * features/microblaze-core.xml: New file.
3496 * features/microblaze-stack-protect.xml: New file.
3497 * features/microblaze-with-stack-protect.c: New file.
3498 * features/microblaze-with-stack-protect.xml: New file.
3499 * features/microblaze.xml: New file.
3500 * features/microblaze.c: New file.
3501 * features/Makefile (microblaze-with-stack-protect): Add
3502 microblaze-with-stack-protect microblaze and microblaze-expedite.
3503 * regformats/microblaze-with-stack-protect.dat: New file.
3504 * regformats/microblaze.dat: New file.
3505 * doc/gdb.texinfo (MicroBlaze Features): Added.
3507 2014-07-18 Tom Tromey <tromey@redhat.com>
3509 * exec.c (exec_ops): Now static.
3510 * exec.h (exec_ops): Don't declare.
3512 2014-07-18 Tom Tromey <tromey@redhat.com>
3514 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3515 to find_target_beneath.
3516 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3517 find_target_beneath.
3518 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3520 2014-07-18 Tom Tromey <tromey@redhat.com>
3523 * utils.c (quit): Use target_supports_terminal_ours.
3524 * target.h (target_supports_terminal_ours): Declare.
3525 * target.c (target_supports_delete_record): Don't check
3526 to_delete_record against NULL.
3527 (target_supports_terminal_ours): New function.
3529 2014-07-18 Tom Tromey <tromey@redhat.com>
3532 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3533 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3534 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3535 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3536 * windows-nat.c (windows_xfer_partial): Always delegate.
3537 * record-btrace.c (record_btrace_xfer_partial): Simplify
3539 (record_btrace_fetch_registers, record_btrace_store_registers)
3540 (record_btrace_prepare_to_store, record_btrace_resume)
3541 (record_btrace_wait, record_btrace_find_new_threads)
3542 (record_btrace_thread_alive): Likewise.
3543 * procfs.c (procfs_xfer_partial): Always delegate.
3544 * corelow.c (core_xfer_partial): Always delegate.
3545 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3547 2014-07-18 Tom Tromey <tromey@redhat.com>
3549 * exec.c (exec_make_note_section): Move earlier.
3551 2014-07-17 Doug Evans <dje@google.com>
3554 * maint.c (count_symtabs_and_blocks): Handle NULL
3555 current_program_space.
3556 (report_command_stats): Check global enabled flag in addition to
3557 recorded enabled flag.
3558 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3560 2014-07-16 Pedro Alves <palves@redhat.com>
3562 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3564 2014-07-16 Tom Tromey <tromey@redhat.com>
3566 * target.h (struct target_ops) <to_delete_record>: Reformat
3569 2014-07-16 Tom Tromey <tromey@redhat.com>
3571 * target-delegates.c: Rebuild.
3573 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3575 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3576 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3577 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3578 (avr_pointer_to_address): Likewise.
3579 (avr_address_class_type_flags): New function.
3580 (avr_address_class_type_flags_to_name): Likewise.
3581 (avr_address_class_name_to_type_flags): Likewise.
3582 (avr_gdbarch_init): Set address_class_type_flags,
3583 address_class_type_flags_to_name and
3584 address_class_name_to_type_flags.
3586 2014-07-15 Pedro Alves <palves@redhat.com>
3588 * linux-nat.c (kill_callback): Save errno and work with saved
3591 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3593 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3595 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3597 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3598 breakpoint support correctly.
3600 2014-07-14 Pedro Alves <palves@redhat.com>
3602 * utils.c (prompt_for_continue): Call target_terminal_ours.
3604 2014-07-14 Pedro Alves <palves@redhat.com>
3606 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3607 catch_errors. Don't re-enable stdin or notify observers where,
3609 (fetch_inferior_event_wrapper): Delete.
3611 2014-07-14 Pedro Alves <palves@redhat.com>
3614 * top.c: Include "inf-loop.h".
3615 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3617 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3619 (gdb_readline_wrapper): Store whether the target is async, and
3622 2014-07-14 Pedro Alves <palves@redhat.com>
3625 * top.c (gdb_readline_wrapper_line): Tweak comment.
3626 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3627 the input handler callback.
3629 2014-07-14 Pedro Alves <palves@redhat.com>
3632 * main.c: Include event-top.h.
3633 (handle_command_errors): New function.
3634 (catch_command_errors, catch_command_errors_const): Use it.
3636 2014-07-14 Pedro Alves <palves@redhat.com>
3638 * exceptions.c (catch_command_errors, catch_command_errors_const):
3640 * exceptions.h (catch_command_errors_ftype)
3641 (catch_command_errors_const_ftype): Moved to main.c.
3642 (catch_command_errors, catch_command_errors_const): Delete
3644 * main.c (catch_command_errors_ftype)
3645 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3646 (catch_command_errors, catch_command_errors_const)): Moved here
3647 from exceptions.c and make static.
3649 2014-07-14 Pedro Alves <palves@redhat.com>
3651 * exceptions.c (print_any_exception): Delete.
3652 (catch_exceptions_with_msg): Use exception_print instead of
3653 print_any_exception.
3654 (catch_errors): Use exception_fprintf instead of
3655 print_any_exception.
3656 (catch_command_errors, catch_command_errors_const): Use
3657 exception_print instead of print_any_exception.
3659 2014-07-14 Pedro Alves <palves@redhat.com>
3661 * infcall.c (run_inferior_call): Set 'sync_execution' while
3662 running the inferior call.
3664 2014-07-14 Pedro Alves <palves@redhat.com>
3666 * value.c (value_contents_equal): Delete function.
3667 * value.h (value_contents_equal): Delete declaration.
3669 2014-07-14 Tom Tromey <tromey@redhat.com>
3672 * gdbtypes.c (is_dynamic_type_internal): New function, from
3674 (is_dynamic_type): Rewrite.
3675 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3676 (resolve_dynamic_struct): Likewise.
3677 (resolve_dynamic_type_internal): New function, from
3678 resolve_dynamic_type.
3679 (resolve_dynamic_type): Rewrite.
3681 2014-07-14 Tom Tromey <tromey@redhat.com>
3683 * target.c (target_require_runnable): Also check record_stratum.
3686 2014-07-11 Yao Qi <yao@codesourcery.com>
3688 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3689 thumb_instruction_restores_sp return true.
3691 2014-07-11 Yao Qi <yao@codesourcery.com>
3693 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3694 (thumb_in_function_epilogue_p): Call
3695 thumb_instruction_restores_sp.
3697 2014-07-11 Yao Qi <yao@codesourcery.com>
3699 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3701 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3703 2014-07-11 Gary Benson <gbenson@redhat.com>
3705 * amd64-linux-nat.c (gdbcore.h): Remove include.
3706 (regset.h): Likewise.
3707 (nat/linux-btrace.h): Likewise.
3708 (btrace.h): Likewise.
3709 (gdb_assert.h): Likewise.
3710 (string.h): Likewise.
3711 (sys/uio.h): Likewise.
3712 (sys/debugreg.h): Likewise.
3713 (sys/syscall.h): Likewise.
3714 (sys/procfs.h): Likewise.
3715 (sys/user.h): Likewise.
3716 (asm/ptrace.h): Likewise.
3717 (i386-nat.h): Likewise.
3718 * i386-linux-nat.c (i386-nat.h): Likewise.
3719 (regset.h): Likewise.
3720 (target.h): Likewise.
3721 (linux-nat.h): Likewise.
3722 (nat/linux-btrace.h): Likewise.
3723 (btrace.h): Likewise.
3724 (gdb_assert.h): Likewise.
3725 (string.h): Likewise.
3726 (sys/uio.h): Likewise.
3727 (sys/user.h): Likewise.
3728 (sys/procfs.h): Likewise.
3729 (sys/reg.h): Likewise.
3730 (sys/debugreg.h): Likewise.
3731 (ORIG_EAX): Remove definition.
3733 2014-07-11 Gary Benson <gbenson@redhat.com>
3735 * i386-linux-nat.h: New file.
3736 * x86-linux-nat.h: Likewise.
3737 * x86-linux-nat.c: Likewise.
3738 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3739 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3740 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3741 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3742 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3743 (PTRACE_SETREGSET): Likewise.
3744 (arch_lwp_info): Now in x86-linux-nat.c.
3745 (have_ptrace_getregset): Now in x86-linux-nat.h.
3746 (x86_linux_dr_get): Now in x86-linux-nat.c.
3747 (x86_linux_dr_set): Likewise.
3748 (x86_linux_dr_get_addr): Likewise.
3749 (x86_linux_dr_get_control): Likewise.
3750 (x86_linux_dr_get_status): Likewise.
3751 (update_debug_registers_callback): Likewise.
3752 (x86_linux_dr_set_control): Likewise.
3753 (x86_linux_dr_set_addr): Likewise.
3754 (x86_linux_prepare_to_resume): Likewise.
3755 (x86_linux_new_thread): Likewise.
3756 (x86_linux_new_fork): Likewise.
3757 (x86_linux_get_thread_area): Likewise.
3758 (super_post_startup_inferior): Likewise.
3759 (x86_linux_child_post_startup_inferior): Likewise.
3760 (AMD64_LINUX_USER64_CS): Likewise.
3761 (AMD64_LINUX_X32_DS): Likewise.
3762 (x86_linux_read_description): Likewise.
3763 (x86_linux_enable_btrace): Likewise.
3764 (x86_linux_disable_btrace): Likewise.
3765 (x86_linux_teardown_btrace): Likewise.
3766 (x86_linux_read_btrace): Likewise.
3767 (x86_linux_create_target): Likewise.
3768 (x86_linux_add_target): Likewise.
3769 * i386-linux-nat.c (x86-linux-nat.h): New include.
3770 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3771 (PTRACE_SETREGSET): Likewise.
3772 (arch_lwp_info): Now in x86-linux-nat.c.
3773 (have_ptrace_getregset): Now in x86-linux-nat.h.
3774 (x86_linux_dr_get): Now in x86-linux-nat.c.
3775 (x86_linux_dr_set): Likewise.
3776 (x86_linux_dr_get_addr): Likewise.
3777 (x86_linux_dr_get_control): Likewise.
3778 (x86_linux_dr_get_status): Likewise.
3779 (update_debug_registers_callback): Likewise.
3780 (x86_linux_dr_set_control): Likewise.
3781 (x86_linux_dr_set_addr): Likewise.
3782 (x86_linux_prepare_to_resume): Likewise.
3783 (x86_linux_new_thread): Likewise.
3784 (x86_linux_new_fork): Likewise.
3785 (x86_linux_get_thread_area): Likewise.
3786 (super_post_startup_inferior): Likewise.
3787 (x86_linux_child_post_startup_inferior): Likewise.
3788 (AMD64_LINUX_USER64_CS): Likewise.
3789 (AMD64_LINUX_X32_DS): Likewise.
3790 (x86_linux_read_description): Likewise.
3791 (x86_linux_enable_btrace): Likewise.
3792 (x86_linux_disable_btrace): Likewise.
3793 (x86_linux_teardown_btrace): Likewise.
3794 (x86_linux_read_btrace): Likewise.
3795 (x86_linux_create_target): Likewise.
3796 (x86_linux_add_target): Likewise.
3798 2014-07-11 Gary Benson <gbenson@redhat.com>
3800 * amd64-linux-nat.c: Comment and whitespace changes.
3801 * i386-linux-nat.c: Comment and whitespace changes.
3803 2014-07-11 Gary Benson <gbenson@redhat.com>
3805 * amd64-linux-nat.c (x86_linux_create_target): New function.
3806 (x86_linux_add_target): Likewise.
3807 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3808 * i386-linux-nat.c (x86_linux_create_target): New function.
3809 (x86_linux_add_target): Likewise.
3810 (_initialize_i386_linux_nat): Delegate to the above new functions.
3812 2014-07-11 Gary Benson <gbenson@redhat.com>
3814 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3815 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3816 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3817 (ps_get_thread_area): Delegate to the above.
3819 2014-07-11 Gary Benson <gbenson@redhat.com>
3821 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3822 x86_linux_read_description. All uses updated. amd64-specific
3823 code conditionalized. Conditionalized i386-specific code added.
3824 Redundant cast removed.
3825 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3826 x86_linux_read_description. All uses updated. i386-specific
3827 code conditionalized. Conditionalized amd64-specific code added.
3828 One sizeof replaced with the actual type it is describing.
3830 2014-07-11 Gary Benson <gbenson@redhat.com>
3832 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3833 x86_linux_dr_get. All uses updated.
3834 (amd64_linux_dr_set): Renamed to
3835 x86_linux_dr_set. All uses updated.
3836 (amd64_linux_dr_get_addr): Renamed to
3837 x86_linux_dr_get_addr. All uses updated.
3838 (amd64_linux_dr_get_control): Renamed to
3839 x86_linux_dr_get_control. All uses updated.
3840 (amd64_linux_dr_get_status): Renamed to
3841 x86_linux_dr_get_status. All uses updated.
3842 (amd64_linux_dr_set_control): Renamed to
3843 x86_linux_dr_set_control. All uses updated.
3844 (amd64_linux_dr_set_addr): Renamed to
3845 x86_linux_dr_set_addr. All uses updated.
3846 (amd64_linux_prepare_to_resume): Renamed to
3847 x86_linux_prepare_to_resume. All uses updated.
3848 (amd64_linux_new_thread): Renamed to
3849 x86_linux_new_thread. All uses updated.
3850 (amd64_linux_new_fork): Renamed to
3851 x86_linux_new_fork. All uses updated.
3852 (amd64_linux_child_post_startup_inferior): Renamed to
3853 x86_linux_child_post_startup_inferior. All uses updated.
3854 (amd64_linux_enable_btrace): Renamed to
3855 x86_linux_enable_btrace. All uses updated.
3856 (amd64_linux_disable_btrace): Renamed to
3857 x86_linux_disable_btrace. All uses updated.
3858 (amd64_linux_teardown_btrace): Renamed to
3859 x86_linux_teardown_btrace. All uses updated.
3860 (amd64_linux_read_btrace): Renamed to
3861 x86_linux_read_btrace. All uses updated.
3862 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3863 x86_linux_dr_get. All uses updated.
3864 (i386_linux_dr_set): Renamed to
3865 x86_linux_dr_set. All uses updated.
3866 (i386_linux_dr_get_addr): Renamed to
3867 x86_linux_dr_get_addr. All uses updated.
3868 (i386_linux_dr_get_control): Renamed to
3869 x86_linux_dr_get_control. All uses updated.
3870 (i386_linux_dr_get_status): Renamed to
3871 x86_linux_dr_get_status. All uses updated.
3872 (i386_linux_dr_set_control): Renamed to
3873 x86_linux_dr_set_control. All uses updated.
3874 (i386_linux_dr_set_addr): Renamed to
3875 x86_linux_dr_set_addr. All uses updated.
3876 (i386_linux_prepare_to_resume): Renamed to
3877 x86_linux_prepare_to_resume. All uses updated.
3878 (i386_linux_new_thread): Renamed to
3879 x86_linux_new_thread. All uses updated.
3880 (i386_linux_new_fork): Renamed to
3881 x86_linux_new_fork. All uses updated.
3882 (i386_linux_child_post_startup_inferior): Renamed to
3883 x86_linux_child_post_startup_inferior. All uses updated.
3884 (i386_linux_enable_btrace): Renamed to
3885 x86_linux_enable_btrace. All uses updated.
3886 (i386_linux_disable_btrace): Renamed to
3887 x86_linux_disable_btrace. All uses updated.
3888 (i386_linux_teardown_btrace): Renamed to
3889 x86_linux_teardown_btrace. All uses updated.
3890 (i386_linux_read_btrace): Renamed to
3891 x86_linux_read_btrace. All uses updated.
3893 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3895 * remote.c (extended_remote_post_attach): New function.
3896 (init_extended_remote_ops): Install it as to_post_attach method.
3898 2014-07-09 Pedro Alves <palves@redhat.com>
3900 * infcmd.c (attach_command_post_wait): Don't call
3901 target_terminal_inferior here.
3902 (attach_command): Call it here instead.
3904 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3906 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3908 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3909 from varobj.c, with additional checks.
3910 (c_varobj_ops): Fill in is_path_expr_parent field.
3911 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3912 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3914 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3916 (varobj_default_is_path_expr_parent): New function.
3917 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3918 (varobj_default_is_path_expr_parent): Declare new function.
3920 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3922 * infcmd.c (finish_backward): Turn internal error into normal error.
3924 2014-07-07 Pedro Alves <palves@redhat.com>
3927 * remote.c (async_handle_remote_sigint)
3928 (async_handle_remote_sigint_twice): Call
3929 gdb_call_async_signal_handler instead of
3930 mark_async_signal_handler.
3932 2014-07-07 Tom Tromey <tromey@redhat.com>
3934 * target-delegates.c: Rebuild.
3935 * target.c (target_info_record): Remove.
3936 * record.c (info_record_command): Unconditionally call
3938 * target.h (struct target_ops) <to_info_record>: Use
3939 TARGET_DEFAULT_IGNORE.
3940 (target_info_record): Remove.
3942 2014-07-07 Tom Tromey <tromey@redhat.com>
3944 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3945 TARGET_DEFAULT_NORETURN.
3946 * target.c (generic_tls_error): New function.
3947 (target_translate_tls_address): Don't search target stack.
3948 * target-delegates.c: Rebuild.
3949 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3951 * linux-thread-db.c (thread_db_get_thread_local_address):
3952 Unconditionally call beneath target.
3954 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3956 * cli/cli-logging.c (pop_output_files): Assign targerr to
3959 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3961 * MAINTAINERS (Write After Approval): Update my email address.
3963 2014-07-02 Gary Benson <gbenson@redhat.com>
3965 * proc-service.c (ps_xfer_memory): Update comment.
3966 (ps_pstop): Remove unused function.
3967 (ps_pcontinue): Likewise.
3968 (ps_lstop): Likewise.
3969 (ps_lcontinue): Likewise.
3970 (ps_lgetxregsize): Likewise.
3971 (ps_lgetxregs): Likewise.
3972 (ps_lsetxregs): Likewise.
3973 (ps_plog): Likewise.
3974 (ps_ptread): Likewise.
3975 (ps_ptwrite): Likewise.
3977 2014-07-01 Mark Wielaard <mjw@redhat.com>
3979 * dwarf2read.c (add_array_cv_type): New function.
3980 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3981 (read_tag_volatile_type): Likewise.
3983 2014-07-01 Tom Tromey <tromey@redhat.com>
3985 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3986 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3987 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3988 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3989 * command.h (cmd_cfunc_ftype): Move earlier.
3990 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3991 (add_com, add_info): Use cmd_cfunc_ftype.
3993 2014-06-30 Tom Tromey <tromey@redhat.com>
3995 * symtab.c (operator_chars): Make parameters and return type
3997 (file_matches): Make "files" const.
3998 (struct search_symbols_data) <files>: Now const.
3999 (search_symbols): Make "regexp" and "files" parameters const.
4001 (symtab_symbol_info): Remove cast.
4002 (rbreak_command): Update.
4003 * symtab.h (search_symbols): Update.
4005 2014-06-27 Yao Qi <yao@codesourcery.com>
4007 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4008 Change parameter type to 'struct thread_info *'. Caller
4010 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4012 * dummy-frame.c (struct dummy_frame_id): New.
4013 (dummy_frame_id_eq): New function.
4014 (struct dummy_frame) <id>: Change its type to 'struct
4016 (dummy_frame_push): Add parameter ptid and save it in
4018 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4020 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4022 (lookup_dummy_frame): Change parameter type to 'struct
4023 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4024 instead of frame_id_eq.
4025 (dummy_frame_pop): Add parameter ptid. Callers updated.
4026 Update comments. Compose dummy_frame_id and pass it to
4028 (dummy_frame_discard): Add parameter ptid.
4029 (dummy_frame_sniffer): Compose dummy_frame_id and call
4030 dummy_frame_id_eq instead of frame_id_eq.
4031 (fprint_dummy_frames): Print ptid.
4032 * dummy-frame.h: Remove comments.
4033 (dummy_frame_push): Add ptid in declaration.
4034 (dummy_frame_pop, dummy_frame_discard): Likewise.
4036 2014-06-26 Tom Tromey <tromey@redhat.com>
4038 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4039 * command.h (error_no_arg): Update.
4041 2014-06-26 Tom Tromey <tromey@redhat.com>
4043 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4044 (do_show_command): Make "arg" const.
4045 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4047 2014-06-26 Tom Tromey <tromey@redhat.com>
4049 * record-full.c (record_full_get_bookmark): Make "args" const.
4050 (record_full_goto_bookmark): Make "raw_bookmark" const.
4051 * record.c (record_goto): New function.
4052 (cmd_record_goto): Use it. Now static.
4053 * record.h (record_goto): Declare.
4054 (cmd_record_goto): Remove declaration.
4055 * target-delegates.c: Rebuild.
4056 * target.h (struct target_ops) <to_get_bookmark,
4057 to_goto_bookmark>: Make parameter const.
4059 2014-06-26 Tom Tromey <tromey@redhat.com>
4061 * defs.h (generic_load): Update.
4062 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4063 * monitor.c (monitor_load): Make "args" const.
4064 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4065 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4067 (mips_load): Make "file" const.
4068 * remote-sim.c (gdbsim_load): Make "args" const.
4069 * remote.c (remote_load): Make "name" const.
4070 * symfile.c (generic_load): Make "args" const.
4071 * target-delegates.c: Rebuild.
4072 * target.c (target_load): Make "arg" const.
4073 (debug_to_load): Make "args" const.
4074 * target.h (struct target_ops) <to_load>: Make parameter const.
4075 (target_load): Update.
4077 2014-06-26 Tom Tromey <tromey@redhat.com>
4080 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4081 (dwarf2_physname, read_partial_die)
4082 (guess_partial_die_structure_name, fixup_partial_die)
4083 (guess_full_die_structure_name, anonymous_struct_prefix)
4084 (dwarf2_name): Use per-BFD obstack.
4086 2014-06-26 Yao Qi <yao@codesourcery.com>
4088 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4089 dummyframe and this_id into inner block below.
4091 2014-06-26 Yao Qi <yao@codesourcery.com>
4093 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4094 with "signal_pass[0]" in the initialization of signal_pass.
4096 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4098 * record-btrace.c (record_btrace_generating_corefile)
4099 (record_btrace_prepare_to_generate_core)
4100 (record_btrace_done_generating_core): New.
4101 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4102 (record_btrace_store_registers, record_btrace_prepare_to_store):
4103 Forward request when generating a core file.
4104 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4105 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4106 to_done_generating_core.
4108 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4110 * target.h (target_ops) <to_prepare_to_generate_core>
4111 <to_done_generating_core>: New.
4112 (target_prepare_to_generate_core, target_done_generating_core): New.
4113 * target.c (target_prepare_to_generate_core)
4114 (target_done_generating_core): New.
4115 * target-delegates.c: Regenerate.
4116 * gcore.c: (write_gcore_file): Rename to ...
4117 (write_gcore_file_1): ...this.
4118 (write_gcore_file): Call target_prepare_to_generate_core
4119 and target_done_generating_core.
4121 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4123 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4124 * gcore.c (write_gcore_file): Free memory returned from
4125 make_corefile_notes.
4126 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4127 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4129 2014-06-24 Yao Qi <yao@codesourcery.com>
4131 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4132 (arm_linux_init_abi): Set skip_trampoline_code with
4133 gdbarch_skip_trampoline_code instead of
4134 find_solib_trampoline_target.
4136 2014-06-24 Yao Qi <yao@codesourcery.com>
4138 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4139 arm_skip_bx_reg returns non-zero.
4141 2014-06-24 Yao Qi <yao@codesourcery.com>
4143 * arm-tdep.c (arm_skip_bx_reg): New function.
4144 (arm_skip_stub): Call arm_skip_bx_reg.
4146 2014-06-23 Don Breazeal <donb@codesourcery.com>
4148 * MAINTAINERS: Add myself as write-after-approval maintainer.
4150 2014-06-23 Pedro Alves <palves@redhat.com>
4152 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4153 DR_CONTROL before setting DR0..DR3.
4154 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4155 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4156 bits of DR_CONTROL related to the debug register slot being
4157 disabled. If all slots are vacant, clear local slowdown as well,
4158 and assert DR_CONTROL is 0.
4160 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4162 * python/lib/gdb/command/xmethods.py
4163 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4164 current progspace only if the string "progspace" matches LOCUS_RE.
4166 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4168 Fix --with-system-readline with readline-6.3 patch 5.
4169 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4170 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4173 2014-06-20 Tom Tromey <tromey@redhat.com>
4175 * dwarf2read.c (dw2_get_real_path): Use correct type in
4177 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4179 2014-06-20 Gary Benson <gbenson@redhat.com>
4181 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4182 * common/glibc_thread_db.h: Likewise.
4183 * common/i386-cpuid.h: Likewise.
4184 * common/i386-gcc-cpuid.h: Likewise.
4185 * common/linux-btrace.h: Likewise.
4186 * common/linux-osdata.h: Likewise.
4187 * common/linux-procfs.h: Likewise.
4188 * common/linux-ptrace.h: Likewise.
4189 * common/mips-linux-watch.h: Likewise.
4190 * common/linux-btrace.c: Moved to nat.
4191 * common/linux-osdata.c: Likewise.
4192 * common/linux-procfs.c: Likewise.
4193 * common/linux-ptrace.c: Likewise.
4194 * common/mips-linux-watch.c: Likewise.
4195 * nat/gdb_thread_db.h: Moved from common.
4196 * nat/glibc_thread_db.h: Likewise.
4197 * nat/i386-cpuid.h: Likewise.
4198 * nat/i386-gcc-cpuid.h: Likewise.
4199 * nat/linux-btrace.c: Likewise.
4200 * nat/linux-btrace.h: Likewise.
4201 * nat/linux-osdata.c: Likewise.
4202 * nat/linux-osdata.h: Likewise.
4203 * nat/linux-procfs.c: Likewise.
4204 * nat/linux-procfs.h: Likewise.
4205 * nat/linux-ptrace.c: Likewise.
4206 * nat/linux-ptrace.h: Likewise.
4207 * nat/mips-linux-watch.c: Likewise.
4208 * nat/mips-linux-watch.h: Likewise.
4209 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4210 (object file files): Reordered.
4211 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4212 of glibc_thread_db.h.
4214 2014-06-20 Gary Benson <gbenson@redhat.com>
4216 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4217 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4218 (i386_dr_low): Likewise.
4219 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4220 (i386_dr_low_set_addr): Likewise.
4221 (i386_dr_low_get_addr): Likewise.
4222 (i386_dr_low_can_set_control): Likewise.
4223 (i386_dr_low_set_control): Likewise.
4224 (i386_dr_low_get_control): Likewise.
4225 (i386_dr_low_get_status): Likewise.
4226 (i386_get_debug_register_length): Likewise.
4227 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4228 (i386_dr_low): Likewise.
4229 * nat/i386-dregs.c (i386-low.h): Remove include.
4230 (i386-nat.h): Likewise.
4231 (nat/i386-dregs.h): New include.
4232 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4233 (i386_dr_low_set_addr): Likewise.
4234 (i386_dr_low_get_addr): Likewise.
4235 (i386_dr_low_can_set_control): Likewise.
4236 (i386_dr_low_set_control): Likewise.
4237 (i386_dr_low_get_control): Likewise.
4238 (i386_dr_low_get_status): Likewise.
4239 (i386_get_debug_register_length): Likewise.
4240 (debug_hw_points): Likewise.
4242 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4244 * Makefile.in (SFILES): Add d-exp.y.
4245 (YYFILES): Add d-exp.c.
4246 (YYOBJ): Add d-exp.o.
4247 (local-maintainer-clean): Delete d-exp.c.
4248 * d-exp.y: New file.
4249 * d-lang.h (d_parse): New declaration.
4250 (d_error): New declaration.
4251 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4252 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4253 PREC_ORDER operators.
4254 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4256 2014-06-19 Yao Qi <yao@codesourcery.com>
4258 * gdbthread.h (any_running): Remove the declaration.
4259 * thread.c (any_running): Remove.
4261 2014-06-19 Yao Qi <yao@codesourcery.com>
4263 * gdbthread.h (struct thread_info) <state>: Change its type to
4264 'enum thread_state'. Update comments.
4266 2014-06-19 Pedro Alves <palves@redhat.com>
4268 * gdbthread.h (ALL_THREADS): Delete.
4269 (ALL_NON_EXITED_THREADS): New macro.
4270 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4271 instead of ALL_THREADS.
4272 * infrun.c (find_thread_needs_step_over)
4273 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4274 instead of ALL_THREADS.
4275 * record-btrace.c (record_btrace_open)
4276 (record_btrace_stop_recording, record_btrace_close)
4277 (record_btrace_is_replaying, record_btrace_resume)
4278 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4279 * remote.c (append_pending_thread_resumptions): Likewise.
4280 * thread.c (thread_apply_all_command): Likewise.
4282 2014-06-19 Gary Benson <gbenson@redhat.com>
4284 * i386-nat.c (i386_stopped_by_watchpoint):
4285 Use i386_dr_stopped_by_watchpoint.
4286 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4287 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4289 2014-06-19 Gary Benson <gbenson@redhat.com>
4291 * nat/i386-dregs.c: New file.
4292 * Makefile.in (i386-dregs.o): New rule.
4293 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4294 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4295 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4296 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4297 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4298 * config/i386/go32.mh (NATDEPFILES): Likewise.
4299 * config/i386/linux.mh (NATDEPFILES): Likewise.
4300 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4301 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4302 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4303 * i386-nat.h (debug_hw_points): New declaration.
4304 * i386-nat.c (breakpoint.h): Remove include.
4305 (command.h): Likewise.
4306 (target.h): Likewise.
4307 (gdb_assert.h): Likewise.
4308 (debug_hw_points): Made nonstatic.
4309 (debug_printf): Now in i386-dregs.c.
4310 (TARGET_HAS_DR_LEN_8): Likewise.
4311 (DR_CONTROL_SHIFT): Likewise.
4312 (DR_CONTROL_SIZE): Likewise.
4313 (DR_RW_EXECUTE): Likewise.
4314 (DR_RW_WRITE): Likewise.
4315 (DR_RW_READ): Likewise.
4316 (DR_RW_IORW): Likewise.
4317 (DR_LEN_1): Likewise.
4318 (DR_LEN_2): Likewise.
4319 (DR_LEN_4): Likewise.
4320 (DR_LEN_8): Likewise.
4321 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4322 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4323 (DR_ENABLE_SIZE): Likewise.
4324 (DR_LOCAL_SLOWDOWN): Likewise.
4325 (DR_GLOBAL_SLOWDOWN): Likewise.
4326 (DR_CONTROL_RESERVED): Likewise.
4327 (I386_DR_CONTROL_MASK): Likewise.
4328 (I386_DR_VACANT): Likewise.
4329 (I386_DR_LOCAL_ENABLE): Likewise.
4330 (I386_DR_GLOBAL_ENABLE): Likewise.
4331 (I386_DR_DISABLE): Likewise.
4332 (I386_DR_SET_RW_LEN): Likewise.
4333 (I386_DR_GET_RW_LEN): Likewise.
4334 (I386_DR_WATCH_HIT): Likewise.
4335 (i386_wp_op_t): Likewise.
4336 (i386_show_dr): Likewise.
4337 (i386_length_and_rw_bits): Likewise.
4338 (i386_insert_aligned_watchpoint): Likewise.
4339 (i386_remove_aligned_watchpoint): Likewise.
4340 (i386_handle_nonaligned_watchpoint): Likewise.
4341 (i386_update_inferior_debug_regs): Likewise.
4342 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4343 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4344 (i386_region_ok_for_watchpoint):
4345 Use i386_dr_region_ok_for_watchpoint.
4346 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4348 2014-06-19 Gary Benson <gbenson@redhat.com>
4350 * i386-nat.c (i386_insert_hw_breakpoint): Use
4351 i386_insert_watchpoint.
4352 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4354 2014-06-19 Gary Benson <gbenson@redhat.com>
4356 * i386-nat.c (i386_dr_show): Renamed to
4357 i386_show_dr and made static. All uses updated.
4358 (i386_dr_length_and_rw_bits): Renamed to
4359 i386_length_and_rw_bits and made static.
4361 (i386_dr_insert_aligned_watchpoint): Renamed to
4362 i386_insert_aligned_watchpoint and made static.
4364 (i386_dr_remove_aligned_watchpoint): Renamed to
4365 i386_remove_aligned_watchpoint and made static.
4367 (i386_dr_update_inferior_debug_regs): Renamed to
4368 i386_update_inferior_debug_regs and made static.
4370 * nat/i386-dregs.h (i386_dr_show): Removed.
4371 (i386_dr_length_and_rw_bits): Likewise.
4372 (i386_dr_insert_aligned_watchpoint): Likewise.
4373 (i386_dr_remove_aligned_watchpoint): Likewise.
4374 (i386_dr_update_inferior_debug_regs): Likewise.
4376 2014-06-19 Gary Benson <gbenson@redhat.com>
4378 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4379 * configure: Regenerate.
4380 * config.in: Likewise.
4381 * main.c (signal.h): New include.
4382 (setup_alternate_signal_stack): New function.
4383 (captured_main): Call the above.
4384 * cp-support.c (signal.h): New include.
4385 (catch_demangler_crashes): New flag.
4386 (SIGJMP_BUF): New define.
4387 (SIGSETJMP): Likewise.
4388 (SIGLONGJMP): Likewise.
4389 (gdb_demangle_jmp_buf): New static global.
4390 (gdb_demangle_attempt_core_dump): Likewise.
4391 (gdb_demangle_signal_handler): New function.
4392 (gdb_demangle): If catch_demangler_crashes is set, install the
4393 above signal handler before calling bfd_demangle, and restore
4394 the original signal handler afterwards. Display the offending
4395 symbol and call demangler_warning the first time a segmentation
4397 (_initialize_cp_support): New maint set/show command.
4399 2014-06-19 Gary Benson <gbenson@redhat.com>
4401 * utils.h (resource_limit_kind): New enum.
4402 (can_dump_core): New declaration.
4403 (warn_cant_dump_core): Likewise.
4404 (dump_core): Likewise.
4405 * utils.c (dump_core): Made nonstatic. Added new
4406 parameter "limit_kind".
4407 (can_dump_core): Made nonstatic. Moved printing code to...
4408 (warn_cant_dump_core): New function.
4409 (can_dump_core_warn): Likewise.
4410 (internal_vproblem): Replace calls to can_dump_core with
4411 calls to can_dump_core_warn. Supply new argument to each.
4413 2014-06-19 Gary Benson <gbenson@redhat.com>
4415 * utils.h (demangler_vwarning): New declaration.
4416 (demangler_warning): Likewise.
4417 * utils.c (struct internal_problem)
4418 <user_settable_should_quit>: New field.
4419 <user_settable_should_dump_core>: Likewise
4420 (internal_error_problem): Add values for above new fields.
4421 (internal_warning_problem): Likewise.
4422 (demangler_warning_problem): New static global.
4423 (demangler_vwarning): New function.
4424 (demangler_warning): Likewise.
4425 (add_internal_problem_command): Selectively add commands.
4426 (_initialize_utils): New internal problem command.
4427 * maint.c (maintenance_demangler_warning): New function.
4428 (_initialize_maint_cmds): New command.
4430 2014-06-18 Tom Tromey <tromey@redhat.com>
4432 * f-valprint.c (info_common_command_for_block): Update.
4433 * symtab.h (struct general_symbol_info) <common_block>: Now
4436 2014-06-18 Tom Tromey <tromey@redhat.com>
4438 * symtab.h (struct symtab) <blockvector>: Now const.
4439 * ada-lang.c (ada_add_global_exceptions): Update.
4440 * buildsym.c (augment_type_symtab): Update.
4441 * dwarf2read.c (dw2_lookup_symbol): Update.
4442 * jit.c (finalize_symtab): Update.
4443 * jv-lang.c (add_class_symtab_symbol): Update.
4444 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4446 * objfiles.c (objfile_relocate1): Update.
4447 * psymtab.c (lookup_symbol_aux_psymtabs)
4448 (maintenance_check_psymtabs): Update.
4449 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4451 * spu-tdep.c (spu_catch_start): Update.
4452 * symmisc.c (dump_symtab_1): Update.
4453 * symtab.c (lookup_global_symbol_from_objfile)
4454 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4455 (basic_lookup_transparent_type_quick)
4456 (basic_lookup_transparent_type, find_pc_sect_symtab)
4457 (find_pc_sect_line, search_symbols): Update.
4458 * block.c (find_block_in_blockvector): Make "bl" const.
4459 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4461 (blockvector_contains_pc): Make "bv" const.
4462 (block_for_pc_sect): Update.
4463 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4464 (blockvector_contains_pc): Update.
4465 * breakpoint.c (resolve_sal_pc): Update.
4466 * inline-frame.c (block_starting_point_at): Update.
4468 2014-06-18 Tom Tromey <tromey@redhat.com>
4470 * completer.c (complete_line): Make "line_buffer" const.
4471 * completer.h (complete_line): Update.
4473 2014-06-18 Tom Tromey <tromey@redhat.com>
4475 * symtab.c (add_macro_name): Remove unneeded cast.
4477 2014-06-18 Tom Tromey <tromey@redhat.com>
4479 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4480 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4482 2014-06-18 Tom Tromey <tromey@redhat.com>
4484 * probe.c (info_probes_for_ops): Make "arg" const.
4485 * probe.h (info_probes_for_ops): Update.
4487 2014-06-18 Tom Tromey <tromey@redhat.com>
4489 * varobj.c (varobj_create): Update.
4490 * valops.c (value_of_this): Update.
4491 * tracepoint.c (add_local_symbols, scope_info): Update.
4492 * symtab.h (struct general_symbol_info) <block>: Now const.
4493 * symtab.c (skip_prologue_sal)
4494 (default_make_symbol_completion_list_break_on)
4495 (skip_prologue_using_sal): Update.
4496 * stack.h (iterate_over_block_locals)
4497 (iterate_over_block_local_vars): Update.
4498 * stack.c (print_frame_args): Update.
4499 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4501 (get_selected_block): Make return type const.
4502 * python/py-frame.c (frapy_block): Update.
4503 * python/py-block.c (gdbpy_block_for_pc): Update.
4504 * p-exp.y (%union) <bval>: Now const.
4505 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4506 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4507 * m2-exp.y (%union) <bval>: Now const.
4508 * linespec.c (get_current_search_block): Make return type const.
4509 (create_sals_line_offset, find_label_symbols): Update.
4510 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4512 (block_starting_point_at): Make "block" const.
4513 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4514 (check_exception_resume): Update.
4515 * guile/scm-frame.c (gdbscm_frame_block): Update.
4516 * guile/scm-block.c (gdbscm_lookup_block): Update.
4517 * frame.h (get_frame_block): Update.
4518 (get_selected_block): Make return type const.
4519 * frame.c (frame_id_inner): Update.
4520 * f-valprint.c (info_common_command_for_block)
4521 (info_common_command): Update.
4522 * dwarf2loc.c (dwarf2_find_location_expression)
4523 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4524 (locexpr_describe_location_piece): Update.
4525 * c-exp.y (%union) <bval>: Now const.
4526 * breakpoint.c (resolve_sal_pc): Update.
4527 * blockframe.c (get_frame_block):Make return type const.
4528 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4529 (block_innermost_frame): Update.
4530 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4531 (block_for_pc, block_for_pc_sect): Update.
4532 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4534 (block_for_pc_sect, block_for_pc): Make return type const.
4535 * ax-gdb.c (gen_expr): Update.
4536 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4537 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4538 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4539 (ada_read_var_value): Update.
4540 * ada-exp.y (struct name_info) <block>: Now const.
4542 (block_lookup): Constify.
4544 2014-06-18 Gary Benson <gbenson@redhat.com>
4546 * nat/i386-dregs.h: New file.
4547 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4548 * i386-nat.h (i386-dregs.h): New include.
4549 (DR_FIRSTADDR): Now in i386-dregs.h.
4550 (DR_LASTADDR): Likewise.
4551 (DR_NADDR): Likewise.
4552 (DR_STATUS): Likewise.
4553 (DR_CONTROL): Likewise.
4554 (i386_debug_reg_state): Likewise.
4555 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4557 2014-06-18 Don Breazeal <donb@codesourcery.com>
4559 * breakpoint.c (set_longjmp_breakpoint): Call
4560 momentary_breakpoint_from_master with additional argument.
4561 (set_longjmp_breakpoint_for_call_dummy): Call
4562 momentary_breakpoint_from_master with additional argument.
4563 (set_std_terminate_breakpoint): Call
4564 momentary_breakpoint_from_master with additional argument.
4565 (momentary_breakpoint_from_master): Add argument to function
4566 definition and use it to initialize structure member flag.
4567 (clone_momentary_breakpoint): Call
4568 momentary_breakpoint_from_master with additional argument.
4569 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4570 member flags set in momentary_breakpoint_from_master.
4572 2014-06-18 Gary Benson <gbenson@redhat.com>
4574 * i386-nat.c (i386_show_dr): Renamed to
4575 i386_dr_show and made nonstatic. All uses updated.
4576 (i386_length_and_rw_bits): Renamed to
4577 i386_dr_length_and_rw_bits and made nonstatic.
4579 (i386_insert_aligned_watchpoint): Renamed to
4580 i386_dr_insert_aligned_watchpoint and made nonstatic.
4582 (i386_remove_aligned_watchpoint): Renamed to
4583 i386_dr_remove_aligned_watchpoint and made nonstatic.
4585 (i386_update_inferior_debug_regs): Renamed to
4586 i386_dr_update_inferior_debug_regs and made nonstatic.
4589 2014-06-18 Gary Benson <gbenson@redhat.com>
4591 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4592 (i386_dr_low_can_set_control): Likewise.
4593 (i386_dr_low_set_addr): Likewise.
4594 (i386_dr_low_set_control): Likewise.
4595 (i386_dr_low_get_addr): Likewise.
4596 (i386_dr_low_get_status): Likewise.
4597 (i386_dr_low_get_control): Likewise.
4598 (i386_insert_aligned_watchpoint): Use new macros.
4599 (i386_update_inferior_debug_regs): Likewise.
4600 (i386_stopped_data_address): Likewise.
4602 2014-06-18 Gary Benson <gbenson@redhat.com>
4604 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4605 New parameter. All uses updated.
4607 2014-06-18 Gary Benson <gbenson@redhat.com>
4609 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4612 2014-06-18 Gary Benson <gbenson@redhat.com>
4614 * i386-nat.c (debug_printf): New macro.
4615 (i386_get_debug_register_length): Likewise.
4616 (TARGET_HAS_DR_LEN_8): Use above macro.
4617 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4618 and printf_unfiltered. Use phex to format values.
4620 2014-06-18 Gary Benson <gbenson@redhat.com>
4622 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4625 2014-06-18 Gary Benson <gbenson@redhat.com>
4627 * i386-nat.c: Comment changes.
4629 2014-06-18 Gary Benson <gbenson@redhat.com>
4631 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4633 2014-06-18 Gary Benson <gbenson@redhat.com>
4635 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4636 (i386_insert_aligned_watchpoint): Likewise.
4637 (i386_remove_aligned_watchpoint): Likewise.
4638 (i386_handle_nonaligned_watchpoint): Likewise.
4640 2014-06-18 Gary Benson <gbenson@redhat.com>
4642 * i386-nat.c: Whitespace changes.
4644 2014-06-17 Samuel Bronson <naesten@gmail.com>
4646 * MAINTAINERS: Update Roland McGrath's email address.
4647 Thanks to Sergio Durigan Junior for pointing out that he left
4648 Red Hat a while ago, and giving me a current address.
4650 2014-06-17 Tom Tromey <tromey@redhat.com>
4652 * utils.h (savestring): Remove declaration.
4654 2014-06-17 Tom Tromey <tromey@redhat.com>
4656 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4658 2014-06-16 Keith Seitz <keiths@redhat.com>
4661 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4662 to update the varobj if inferior_ptid is null_ptid.
4664 2014-06-16 Tom Tromey <tromey@redhat.com>
4666 * target.h (struct target_ops) <to_info_proc>: Make parameter
4668 (target_info_proc): Update.
4669 * target.c (target_info_proc): Make "args" const.
4670 * procfs.c (procfs_info_proc): Update.
4671 * linux-tdep.c (linux_info_proc): Update.
4672 (linux_core_info_proc_mappings): Make "args" const.
4673 (linux_core_info_proc): Update.
4674 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4675 * gdbarch.c: Rebuild.
4676 * gdbarch.h: Rebuild.
4677 * corelow.c (core_info_proc): Update.
4679 2014-06-16 Tom Tromey <tromey@redhat.com>
4681 * target.h (struct target_ops) <to_disconnect>: Make parameter
4683 (target_disconnect): Update.
4684 * target.c (target_disconnect): Make "args" const.
4685 * target-delegates.c: Rebuild.
4686 * remote.c (remote_disconnect): Update.
4687 * record.h (record_disconnect): Update.
4688 * record.c (record_disconnect): Update.
4689 * inf-child.c (inf_child_disconnect): Update.
4691 2014-06-16 Tom Tromey <tromey@redhat.com>
4693 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4694 * target.c (debug_to_rcmd, default_rcmd): Update.
4695 * target-delegates.c: Rebuild.
4696 * remote.c (remote_rcmd): Update.
4697 * monitor.c (monitor_rcmd): Update.
4699 2014-06-16 Pedro Alves <palves@redhat.com>
4701 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4702 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4703 have OBJF_SHARED set.
4704 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4705 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4706 instead of OBJF_USERLOADED.
4707 * objfiles.h (OBJF_SHARED): Update comment.
4708 (userloaded_objfile_contains_address_p): Rename to ...
4709 (shared_objfile_contains_address_p): ... this, and update
4711 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4713 (remove_symbol_file_command): Skip objfiles that don't have
4716 2014-06-16 Tom Tromey <tromey@redhat.com>
4718 * minsyms.h (prim_record_minimal_symbol)
4719 (prim_record_minimal_symbol_and_info): Update comments.
4721 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4723 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4724 or --without-guile, according to how GDB was built.
4726 2014-06-13 Tom Tromey <tromey@redhat.com>
4728 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4730 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4732 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4734 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4735 help_list.Pass all_commands, not -1, to help_list.
4736 * cli/cli-dump.c (dump_command, append_command)
4737 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4738 (binary_dump_command, binary_append_command): Pass all_commands,
4739 not -1, to help_list.
4740 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4742 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4744 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4746 * top.c (set_history): Pass all_commands, not -1, to help_list.
4747 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4748 all_commands, not -1, to help_list.
4749 * symfile.c (overlay_command): Pass all_commands, not -1, to
4751 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4753 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4755 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4757 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4758 not -1, to help_list.
4759 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4760 not -1, to help_list.
4761 * maint.c (maintenance_command, maintenance_info_command)
4762 (maintenance_print_command, maintenance_set_cmd): Pass
4763 all_commands, not -1, to help_list.
4764 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4766 * language.c (set_check): Pass all_commands, not -1, to help_list.
4767 * infcmd.c (unset_command): Pass all_commands, not -1, to
4769 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4771 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4773 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4775 * breakpoint.c (save_command): Pass all_commands, not -1, to
4777 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4778 all_commands, not -1, to help_list.
4780 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4782 * regcache.c (struct register_to_invalidate): New structure.
4783 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4785 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4787 2014-06-12 Yao Qi <yao@codesourcery.com>
4789 * varobj.c (varobj_get_num_children): Call
4790 varobj_is_dynamic_p.
4791 (varobj_list_children): Likewise.
4792 (varobj_update): Likewise. Update comments.
4794 2014-06-12 Yao Qi <yao@codesourcery.com>
4796 * varobj.c (varobj_pretty_printed_p): Rename to ...
4797 (varobj_is_dynamic_p): ... this. New function.
4798 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4799 (varobj_is_dynamic_p): Declare.
4800 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4801 (mi_print_value_p, varobj_update_one): Likewise.
4803 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4804 Yao Qi <yao@codesourcery.com>
4806 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4807 (varobj_get_iterator): Wrap up code for pretty-printer by
4808 "#if HAVE_PYTHON" and "#endif".
4809 (update_dynamic_varobj_children): Likewise.
4811 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4812 Yao Qi <yao@codesourcery.com>
4814 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4815 gdb_python_initialized is false. Move some code from varobj.c.
4816 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4817 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4818 (struct varobj_item): Moved to varobj-iter.h".
4819 (varobj_clear_saved_item): New function.
4820 (update_dynamic_varobj_children): Move python-related code to
4822 (free_variable): Call varobj_clear_saved_item and
4825 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4826 Yao Qi <yao@codesourcery.com>
4828 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4829 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4830 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4831 (py-varobj.o): New rule.
4832 * python/py-varobj.c: New file.
4833 * python/python-internal.h (py_varobj_get_iterator): Declare.
4834 * varobj-iter.h: New file.
4835 * varobj.c: Include "varobj-iter.h"
4836 (struct varobj) <child_iter>: Change its type from "PyObject *"
4837 to "struct varobj_iter *".
4838 <saved_item>: Likewise.
4839 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4840 [HAVE_PYTHON] (varobj_get_iterator): New function.
4841 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4842 python-specific code to python/py-varobj.c.
4843 (install_visualizer): Call varobj_iter_delete instead of
4845 * varobj.h (varobj_ensure_python_env): Declare.
4847 2014-06-12 Yao Qi <yao@codesourcery.com>
4849 * varobj.c (struct varobj_item): New structure.
4850 (create_child_with_value): Update declaration.
4851 (varobj_add_child): Replace arguments 'name' and 'value' with
4852 'item'. All callers updated.
4853 (install_dynamic_child): Likewise.
4854 (update_dynamic_varobj_children): Likewise.
4855 (varobj_add_child): Likewise.
4856 (create_child_with_value): Likewise.
4858 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4860 * NEWS: Create a new section for the next release branch.
4861 Rename the section of the current branch, now that it has
4864 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4866 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4867 * version.in: Bump version to 7.8.50.DATE-cvs.
4869 2014-06-11 Pedro Alves <palves@redhat.com>
4872 * ser-mingw.c (net_windows_socket_check_pending): New function.
4873 (net_windows_select_thread): Ignore spurious wakeups. Use
4874 net_windows_socket_check_pending.
4875 (net_windows_wait_handle): Check for pending events with
4876 ioctlsocket, through net_windows_socket_check_pending, instead of
4877 checking the socket's event.
4879 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4881 * python/python-internal.h (gdb_PyObject_GetAttrString)
4882 (gdb_PyObject_HasAttrString): New inline function definitions.
4883 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4884 char * of the second argument to PyObject_GetAttrString.
4886 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4888 * serial.c (serial_write): Fix index of character to be printed
4889 in call to serial_logchar when serial debug traces are enabled.
4891 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4893 * gdbtypes (resolve_dynamic_range): Add function description.
4895 2014-06-09 Pedro Alves <palves@redhat.com>
4897 * linux-nat.c (linux_child_follow_fork): Initialize status with
4898 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4899 inner block. Only pass the signal to PTRACE_DETACH if in pass
4902 2014-06-09 Gary Benson <gbenson@redhat.com>
4904 * common/signals.c (gdb_signal_from_host): Reorder to separate
4905 the always-available ANSI-standard signals from the signals that
4907 (do_gdb_signal_to_host): Likewise.
4908 * proc-events.c (signal_table): Likewise.
4910 2014-06-08 Hui Zhu <hui@codesourcery.com>
4912 * common/linux-ptrace.c (linux_disable_event_reporting): New
4914 * common/linux-ptrace.h (linux_disable_event_reporting): New
4916 * linux-nat.c (linux_child_follow_fork): Do a single step before
4919 2014-06-07 Keith Seitz <keiths@redhat.com>
4923 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4924 from symbol_matches_domain in symtab.c. All local callers
4925 of symbol_matches_domain updated.
4926 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4927 search STRUCT_DOMAIN.
4928 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4929 independently. standard_lookup will do that automatically.
4930 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4931 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4932 (cp_lookup_symbol_in_namespace): Likewise.
4933 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4934 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4935 may return a STRUCT_DOMAIN match.
4936 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4937 * cp-support.c: Include language.h.
4938 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4940 * psymtab.c (match_partial_symbol): Compare the requested
4941 domain with the symbol's domain directly.
4942 (lookup_partial_symbol): Likewise.
4943 * symtab.c (lookup_symbol_in_language): Explain when/why
4944 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4945 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4946 appropriate languages.
4947 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4948 and moved to ada-lang.c
4949 (lookup_block_symbol): Explain that this function only returns
4950 symbol matching the requested DOMAIN.
4951 Compare the requested domain with the symbol's domain directly.
4952 (iterate_over_symbols): Compare the requested domain with the
4953 symbol's domain directly.
4954 * symtab.h (symbol_matches_domain): Remove.
4956 2014-06-06 Doug Evans <xdje42@gmail.com>
4958 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4959 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4960 (gdbscm_guile_version_is_at_least): Declare.
4961 (gdbscm_scm_string_to_int): Declare.
4962 * guile/guile.c (gdbscm_guile_major_version): New global.
4963 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4964 (guile_datadir): New static global.
4965 (gdbscm_guile_data_directory): New function.
4966 (initialize_scheme_side): Update.
4967 (misc_guile_functions): Add guile-data-directory.
4968 (initialize_gdb_module): Fetch guile version number.
4969 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4970 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4971 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4972 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4974 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4975 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4976 * guile/scm-value.c (gdbscm_value_to_string): Only call
4977 scm_port_conversion_strategy if Guile version >= 2.0.6.
4979 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4981 * main.c (print_gdb_help): Add -q and --silent.
4983 2014-06-06 Gary Benson <gbenson@redhat.com>
4985 * common/signals.c: Remove preprocessor conditionals for
4986 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4987 SIGSEGV and SIGTERM.
4988 * proc-events.c: Likewise.
4990 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4992 * symfile.c (symfile_free_objfile): Remove restriction to
4994 * symfile-mem.c (symbol_file_add_from_memory): Call
4995 add_target_sections_of_objfile.
4997 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4999 * guile/scm-value.c (gdbscm_history_append_x): Use
5000 'vlscm_get_value_smob_arg_unsafe' instead of
5001 'vlscm_scm_to_value'.
5003 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5006 * utils.c (printchar): Don't escape at all if quoter is NUL.
5007 Update function documentation to clarify effect of parameter
5009 * remote.c (escape_buffer): Pass '\\' as the quoter to
5010 fputstrn_unfiltered.
5011 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5012 generate the output.
5013 (mi_solib_unloaded): Same.
5015 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5017 * development.sh: Delete.
5018 * Makefile.in (config.status): Adjust dependency on development.sh.
5019 * configure.ac: Adjust development.sh source call.
5020 * configure: Regenerate.
5022 2014-06-04 Doug Evans <xdje42@gmail.com>
5024 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5025 is_scheme_bkpt, spec.
5026 (bpscm_make_breakpoint_smob): Initialize new members.
5027 (gdbscm_create_breakpoint_x): Split into two ...
5028 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5029 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5030 (scheme_function breakpoint_functions): Update.
5031 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5032 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5033 register-breakpoint!.
5035 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5038 * mem-break.c (z_type_supported): Return zero if
5039 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5041 2014-06-04 Tom Tromey <tromey@redhat.com>
5043 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5044 value_from_contents_and_address_unresolved.
5045 (ada_template_to_fixed_record_type_1): Likewise.
5046 (ada_which_variant_applies): Likewise.
5047 * value.h (value_from_contents_and_address_unresolved): Declare.
5048 * value.c (value_from_contents_and_address_unresolved): New
5050 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5051 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5052 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5054 2014-06-04 Tom Tromey <tromey@redhat.com>
5056 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5058 2014-06-04 Tom Tromey <tromey@redhat.com>
5060 * procfs.c (procfs_attach): Make "args" const.
5061 * windows-nat.c (windows_attach): Make "args" const.
5062 * nto-procfs.c (procfs_attach): Make "args" const.
5063 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5064 * go32-nat.c (go32_attach): Make "args" const.
5065 * gnu-nat.c (gnu_attach): Make "args" const.
5066 * darwin-nat.c (darwin_attach): Make "args" const.
5067 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5068 * linux-nat.c (linux_nat_attach): Make "args" const.
5069 * remote.c (extended_remote_attach_1, extended_remote_attach):
5071 * target.h (struct target_ops) <to_attach>: Make "args" const.
5072 (find_default_attach): Likewise.
5073 * utils.c (parse_pid_to_attach): Make "args" const.
5074 * utils.h (parse_pid_to_attach): Update.
5076 2014-06-04 Tom Tromey <tromey@redhat.com>
5078 * target-delegates.c: Rebuild.
5079 * target.c (default_thread_address_space): New function.
5080 (target_thread_address_space): Simplify.
5081 * target.h (struct target_ops) <to_thread_address_space>: Add
5082 TARGET_DEFAULT_FUNC.
5084 2014-06-04 Doug Evans <xdje42@gmail.com>
5086 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5088 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5090 * record-btrace.c: Include event-loop.h and inf-loop.h.
5091 (record_btrace_resume_exec_dir)
5092 (record_btrace_async_inferior_event_handler)
5093 (record_btrace_handle_async_inferior_event): New.
5094 (record_btrace_open): Create async event handler.
5095 (record_btrace_close): Delete async event handler.
5096 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5097 Mark async event handler.
5098 (record_btrace_execution_direction): New.
5099 (init_record_btrace_ops): Initialize to_execution_direction.
5101 2014-06-03 Doug Evans <xdje42@gmail.com>
5103 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5104 (gdbscm_make_parameter): Ditto.
5106 2014-06-03 Doug Evans <dje@google.com>
5108 * exec.c (exec_close_1): Call clear_section_table instead of
5109 resize_section_table.
5110 (clear_section_table): New function.
5111 (resize_section_table): Make static. Rename arg num_added to
5113 * exec.h (clear_section_table): Declare.
5114 (resize_section_table): Delete.
5115 * progspace.c (release_program_space): Call clear_section_table
5116 instead of resize_section_table.
5118 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5120 * NEWS (Python Scripting): Add entry about the new xmethods
5123 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5125 * python/py-xmethods.c: New file.
5126 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5127 (objfpy_dealloc): XDECREF on the new xmethods field.
5128 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5130 (objfpy_get_xmethods): New function.
5131 (objfile_getset): New entry 'xmethods'.
5132 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5133 (pspy_dealloc): XDECREF on the new xmethods field.
5134 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5136 (pspy_get_xmethods): New function.
5137 (pspace_getset): New entry 'xmethods'.
5138 * python/python-internal.h: Add declarations for new functions.
5139 * python/python.c (_initialize_python): Invoke
5140 gdbpy_initialize_xmethods.
5141 * python/lib/gdb/__init__.py (xmethods): New
5143 * python/lib/gdb/xmethod.py: New file.
5144 * python/lib/gdb/command/xmethods.py: New file.
5146 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5148 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5149 best match method returned by find_overload_match is an xmethod.
5150 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5151 the best matching operator returned by find_overload_match is an
5153 * valops.c: #include "extension.h".
5154 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5155 Return void. The list of matching source methods is returned in
5156 "fn_list" and a vector of matching debug method workers is
5157 returned in "xm_worker_vec". Update all callers.
5158 (value_find_oload_method_list): Likewise.
5159 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5160 non-NULL, then the index of the best matching method in this
5161 vector is returned. Update all callers.
5162 (find_overload_match): Include xmethods while performing overload
5165 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5167 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5168 * extension-priv.h (struct extension_language_ops): Add the
5170 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5171 get_matching_xmethod_workers, get_xmethod_argtypes,
5172 invoke_xmethod, free_xmethod_worker,
5173 free_xmethod_worker_vec): New functions.
5174 * extension.h: #include "common/vec.h".
5175 New function declarations.
5176 (struct xmethod_worker): New struct.
5177 (VEC (xmethod_worker_ptr)): New vector type.
5178 (xmethod_worker_ptr): New typedef.
5179 (xmethod_worker_vec): Likewise.
5180 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5182 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5183 (struct builtin_type): New field "xmethod".
5184 * valarith.c (value_ptradd): Assert that the value argument is not
5186 * valops.c (value_must_coerce_to_target): Return 0 for
5187 lval_xcallable values.
5188 * value.c (struct value): New field XM_WORKER in the field
5190 (value_address, value_raw_address): Return 0 for lval_xcallable
5192 (set_value_address): Assert that the value is not an
5194 (value_free): Free the associated xmethod worker when freeing
5195 lval_xcallable values.
5196 (set_value_component_location): Assert that the WHOLE value is not
5198 (value_of_xmethod, call_xmethod): New functions.
5199 * value.h: Declare "struct xmethod_worker".
5200 Declare new functions value_of_xmethod, call_xmethod.
5202 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5203 Pedro Alves <palves@redhat.com>
5205 PR breakpoints/17000
5206 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5207 New function, extracted from software_breakpoint_inserted_here_p.
5208 (software_breakpoint_inserted_here_p): Replace factored out code
5209 by call to find_non_raw_software_breakpoint_inserted_here.
5210 (bp_target_info_copy_insertion_state): New function.
5211 (bkpt_insert_location): Handle the case of a single-step
5212 breakpoint already inserted at the same address.
5213 (bkpt_remove_location): Handle the case of a single-step
5214 breakpoint still inserted at the same address.
5215 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5216 breakpoint already inserted at the same address.
5217 (deprecated_remove_raw_breakpoint): Handle the case of a
5218 non-raw breakpoint still inserted at the same address.
5219 (find_single_step_breakpoint): New function, extracted from
5220 single_step_breakpoint_inserted_here_p.
5221 (find_single_step_breakpoint): New function,
5222 factored out from single_step_breakpoint_inserted_here_p.
5223 (single_step_breakpoint_inserted_here_p): Reimplement.
5225 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5227 Pushed by Joel Brobecker <brobecker@adacore.com>
5228 * source.c (show_substitute_path_command): Fix display of matching
5231 2014-06-03 Gary Benson <gbenson@redhat.com>
5233 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5235 2014-06-02 Doug Evans <xdje42@gmail.com>
5237 Add parameter support for Guile.
5238 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5239 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5240 (scm-param.o): New rule.
5241 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5242 (gdbscm_misc_error): Declare.
5243 (gdbscm_canonicalize_command_name): Declare.
5244 (gdbscm_scm_to_host_string): Declare.
5245 (gdbscm_scm_from_host_string): Declare.
5246 (gdbscm_initialize_parameters): Declare.
5247 * guile/guile.c (initialize_gdb_module): Call
5248 gdbscm_initialize_parameters.
5249 * guile/lib/gdb.scm: Export parameter symbols.
5250 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5251 cmdscm_canonicalize_name and made public. All callers updated.
5252 * guile/scm-exception.c (gdbscm_misc_error): New function.
5253 * guile/scm-param.c: New file.
5254 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5255 (gdbscm_scm_to_host_string): New function.
5256 (gdbscm_scm_from_host_string): New function.
5257 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5259 2014-06-02 Doug Evans <xdje42@gmail.com>
5261 Add command support for Guile.
5262 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5263 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5264 (scm-cmd.o): New rule.
5265 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5266 (gdbscm_user_error_p): Declare.
5267 (gdbscm_parse_command_name): Declare.
5268 (gdbscm_valid_command_class_p): Declare.
5269 (gdbscm_initialize_commands): Declare.
5270 * guile/guile.c (initialize_gdb_module): Call
5271 gdbscm_initialize_commands.
5272 * guile/lib/gdb.scm: Export command symbols.
5273 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5274 (throw-user-error): New function.
5275 * guile/scm-cmd.c: New file.
5276 * guile/scm-exception.c (user_error_symbol): New static global.
5277 (gdbscm_user_error_p): New function.
5278 (gdbscm_initialize_exceptions): Set user_error_symbol.
5279 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5281 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5283 * top.c (command_loop): Handle comments here...
5284 (command_line_input): ... not here.
5286 2014-06-02 Doug Evans <xdje42@gmail.com>
5288 Add progspace support for Guile.
5289 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5290 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5291 (scm-progspace.o): New rule.
5292 * guile/guile-internal.h (pspace_smob): New typedef.
5293 (psscm_pspace_smob_pretty_printers): Declare.
5294 (psscm_pspace_smob_from_pspace): Declare.
5295 (psscm_scm_from_pspace): Declare.
5296 * guile/guile.c (initialize_gdb_module): Call
5297 gdbscm_initialize_pspaces.
5298 * guile/lib/gdb.scm: Export progspace symbols.
5299 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5301 (append-pretty-printer!): Ditto.
5302 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5304 * guile/scm-progspace.c: New file.
5306 2014-06-03 Alan Modra <amodra@gmail.com>
5308 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5309 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5311 2014-06-02 Doug Evans <dje@google.com>
5313 Add support for skeletonless type units.
5314 * dwarf2read.c (struct dwarf2_per_objfile): New member
5315 n_allocated_type_units.
5316 (struct dwarf2_per_objfile) <tu_stats>: New member
5317 nr_all_type_units_reallocs.
5318 (create_signatured_type_table_from_index): Initialize
5319 n_allocated_type_units
5320 (create_all_type_units): Ditto.
5321 (add_type_unit): Move up in file. New arg slot.
5322 All callers updated. Increase space for all_type_units more
5324 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5325 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5326 (lookup_dwp_signatured_type): Ditto.
5327 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5328 All callers updated.
5329 (build_type_psymtabs_1): Leave type_unit_groups as
5330 NULL if no TUs present.
5331 (print_tu_stats): New function.
5332 (process_skeletonless_type_unit): New function.
5333 (process_dwo_file_for_skeletonless_type_units): New
5335 (process_skeletonless_type_units): New function.
5336 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5337 Call print tu_stats if debugging enabled.
5339 2014-06-02 Pedro Alves <palves@redhat.com>
5341 * breakpoint.c (build_target_command_list): Don't build a command
5342 list if we have any duplicate location that isn't a dprintf.
5344 2014-06-02 Pedro Alves <palves@redhat.com>
5346 * breakpoint.c (dprintf_breakpoint_hit): New function.
5347 (initialize_breakpoint_ops): Install it as dprintf's
5348 breakpoint_hit method.
5350 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5352 * source.c (substitute_path_rule_matches): Simplify using
5353 filename_ncmp instead of FILENAME_CMP.
5355 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5357 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5359 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5361 * configure.ac: When Guile is available, check for the
5362 availability of 'scm_new_smob'.
5363 * configure, config.h.in: Regenerate.
5364 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5367 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5369 * frame.c (struct frame_info): Add stop_string field.
5370 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5371 (get_prev_frame_always): Old content moved into
5372 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5373 TRY_CATCH, handle MEMORY_ERROR exceptions.
5374 (frame_stop_reason_string): New function definition.
5375 * frame.h (unwind_stop_reason_to_string): Extend comment to
5376 mention frame_stop_reason_string.
5377 (frame_stop_reason_string): New function declaration.
5378 * stack.c (frame_info): Switch to frame_stop_reason_string.
5379 (backtrace_command_1): Switch to frame_stop_reason_string.
5380 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5381 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5382 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5384 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5386 * frame.c (frame_stop_reason_string): Rename to ...
5387 (unwind_stop_reason_to_string): this.
5388 * frame.h (frame_stop_reason_string): Rename to ...
5389 (unwind_stop_reason_to_string): this.
5390 * stack.c (frame_info): Update call to frame_stop_reason_string.
5391 (backtrace_command_1): Likewise.
5392 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5393 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5395 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5397 * frame.c (remove_prev_frame): New function.
5398 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5401 2014-05-29 Pedro Alves <palves@redhat.com>
5403 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5404 and make it const. When a single-step decays to a continue,
5405 clear 'step', not 'hw_step'. Pass whether the caller wanted
5406 to step to user_visible_resume_ptid, not what we ask the
5409 2014-05-29 Pedro Alves <palves@redhat.com>
5411 * infrun.c (process_event_stop_test, handle_step_into_function)
5412 (handle_step_into_function_backward): Adjust.
5413 Don't set the even thread's stop_step and call stop_waiting before
5414 calling end_stepping_range. Instead do that ...
5415 (end_stepping_range): ... here. Take an ecs pointer parameter.
5417 2014-05-29 Pedro Alves <palves@redhat.com>
5419 * infrun.c (stop_stepping): Rename to ...
5420 (stop_waiting): ... this.
5421 (proceed): Update comment.
5422 (process_event_stop_test, handle_inferior_event)
5423 (handle_signal_stop, handle_step_into_function)
5424 (handle_step_into_function_backward): Update.
5426 2014-05-29 Pedro Alves <palves@redhat.com>
5428 * infcall.c (run_inferior_call): Don't check whether the current
5429 thread is running after the proceed call.
5431 2014-05-29 Pedro Alves <palves@redhat.com>
5432 Tom Tromey <tromey@redhat.com>
5434 * NEWS: Mention "maint set target-async", "set mi-async", and that
5435 background execution commands are now always available.
5436 * target.h (target_async_permitted): Update comment.
5437 * target.c (target_async_permitted, target_async_permitted_1):
5439 (set_target_async_command): Rename to ...
5440 (maint_set_target_async_command): ... this.
5441 (show_target_async_command): Rename to ...
5442 (maint_show_target_async_command): ... this.
5443 (_initialize_target): Adjust.
5444 * infcmd.c (prepare_execution_command): Make extern.
5445 * inferior.h (prepare_execution_command): Declare.
5446 * infrun.c (set_observer_mode): Leave target async alone.
5447 * mi/mi-interp.c (mi_interpreter_init): Install
5448 mi_on_sync_execution_done as sync_execution_done observer.
5449 (mi_on_sync_execution_done): New function.
5450 (mi_execute_command_input_handler): Don't print the prompt if we
5451 just started a synchronous command with an async target.
5452 (mi_on_resume): Check sync_execution before printing prompt.
5453 * mi/mi-main.h (mi_async_p): Declare.
5454 * mi/mi-main.c: Include gdbcmd.h.
5455 (mi_async_p): New function.
5456 (mi_async, mi_async_1): New globals.
5457 (set_mi_async_command, show_mi_async_command, mi_async): New
5459 (exec_continue): Call prepare_execution_command.
5460 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5461 (mi_execute_async_cli_command): Use mi_async_p.
5462 (_initialize_mi_main): Install "set mi-async". Make
5463 "target-async" a deprecated alias.
5465 2014-05-29 Pedro Alves <palves@redhat.com>
5467 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5468 (_initialize_cli_interp): Adjust.
5469 * event-loop.c: Include "observer.h".
5470 (start_event_loop): Notify 'command_error' observers instead of
5471 calling display_gdb_prompt. Remove FIXME comment.
5472 * event-top.c (display_gdb_prompt): Remove call into the
5474 * inf-loop.c: Include "observer.h".
5475 (inferior_event_handler): Notify 'command_error' observers instead
5476 of calling display_gdb_prompt.
5477 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5478 observers instead of calling display_gdb_prompt.
5479 * interps.c (interp_set): Don't call display_gdb_prompt.
5480 (current_interp_display_prompt_p): Delete.
5481 * interps.h (interp_prompt_p): Delete declaration.
5482 (interp_prompt_p_ftype): Delete.
5483 (struct interp_procs) <prompt_proc_p>: Delete field.
5484 (current_interp_display_prompt_p): Delete declaration.
5485 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5486 (_initialize_mi_interp): Adjust.
5487 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5488 'command_error' observers.
5489 (tui_on_sync_execution_done, tui_on_command_error): New
5491 (tui_display_prompt_p): Delete.
5492 (_initialize_tui_interp): Adjust.
5494 2014-05-29 Pedro Alves <palves@redhat.com>
5497 * cli/cli-interp.c: Include infrun.h and observer.h.
5498 (cli_uiout, cli_interp): New globals.
5499 (cli_on_signal_received, cli_on_end_stepping_range)
5500 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5502 (cli_interpreter_init): Install them as 'end_stepping_range',
5503 'signal_received' 'signal_exited', 'exited' and 'no_history'
5505 (_initialize_cli_interp): Remove cli_interp local.
5506 * infrun.c (handle_inferior_event): Call the several stop reason
5507 observers instead of printing the stop reason directly.
5508 (end_stepping_range): New function.
5509 (print_end_stepping_range_reason, print_signal_exited_reason)
5510 (print_exited_reason, print_signal_received_reason)
5511 (print_no_history_reason): Make static, and add an uiout
5512 parameter. Print to that instead of to CURRENT_UIOUT.
5513 * infrun.h (print_end_stepping_range_reason)
5514 (print_signal_exited_reason, print_exited_reason)
5515 (print_signal_received_reason print_no_history_reason): New
5517 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5519 <cli_uiout>: New field.
5520 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5521 uiout for CLI output. Install 'signal_received',
5522 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5524 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5525 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5526 (mi_on_no_history): New functions.
5527 (ui_out_free_cleanup): Delete function.
5528 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5529 instead use the one already stored in the MI interpreter data.
5530 (mi_ui_out): Adjust.
5531 * tui/tui-interp.c: Include infrun.h and observer.h.
5532 (tui_interp): New global.
5533 (tui_on_signal_received, tui_on_end_stepping_range)
5534 (tui_on_signal_exited, tui_on_exited)
5535 (tui_on_no_history): New functions.
5536 (tui_init): Install them as 'end_stepping_range',
5537 'signal_received' 'signal_exited', 'exited' and 'no_history'
5539 (_initialize_tui_interp): Delete tui_interp local.
5541 2014-05-29 Pedro Alves <palves@redhat.com>
5544 * linux-nat.c (linux_nat_resume_callback): Rename the second
5545 parameter to 'except'. Skip LP if it points to EXCEPT.
5546 (linux_nat_resume): Don't mark the event lwp as not stopped
5547 before resuming sibling lwps. Instead ask
5548 linux_nat_resume_callback to skip the event lwp. Mark it as not
5549 stopped after actually resuming it.
5550 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5552 (wait_lwp): Mark the lwp as stopped here.
5553 (stop_wait_callback): Mark the lwp as not stopped right after
5554 resuming it. Don't mark lwps as stopped here.
5555 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5556 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5558 2014-05-29 Pedro Alves <palves@redhat.com>
5561 * infrun.c (resume): Determine how much to resume depending on
5562 whether the caller wanted a step, not whether we can hardware step
5563 the target. Mark all threads that we intend to run as running,
5564 unless we're calling an inferior function.
5565 (normal_stop): If the thread is running an infcall, don't finish
5567 * target.c (target_resume): Don't mark threads as running here.
5569 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5571 * serial.c (_initialize_serial): Remove support for
5572 the "set remotebaud" and "show remotebaud" commands.
5573 * NEWS: Add entry documenting the removal of that command.
5575 2014-05-28 Yao Qi <yao@codesourcery.com>
5577 * charset.c: Fix typo in comments.
5579 2014-05-27 Gary Benson <gbenson@redhat.com>
5581 * utils.c (internal_vproblem): Prompt for a bug report.
5583 2014-05-26 Andy Wingo <wingo@igalia.com>
5585 * guile/scm-arch.c (arscm_mark_arch_smob):
5586 * guile/scm-block.c (bkscm_mark_block_smob)
5587 (bkscm_mark_block_syms_progress_smob):
5588 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5589 * guile/scm-exception.c (exscm_mark_exception_smob):
5590 * guile/scm-frame.c (frscm_mark_frame_smob):
5591 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5592 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5593 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5594 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5595 (ppscm_mark_pretty_printer_worker_smob):
5596 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5597 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5598 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5599 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5601 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5604 2014-05-26 Andy Wingo <wingo@igalia.com>
5605 Doug Evans <xdje42@gmail.com>
5607 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5608 empty_base_class. All uses updated.
5609 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5610 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5612 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5613 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5614 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5615 (gdbscm_gsmob_has_property_p, add_property_name)
5616 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5617 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5618 (gdb-object-has-property?, gdb-object-properties): Remove.
5619 (gdb-object-kind): Renamed from gsmob-kind.
5621 2014-05-26 Andy Wingo <wingo@igalia.com>
5623 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5624 * configure: Regenerate.
5626 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5628 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5630 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5632 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5633 (replay_memory_access_read_only, replay_memory_access_read_write)
5634 (replay_memory_access_types, replay_memory_access)
5635 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5636 (cmd_set_record_btrace, cmd_show_record_btrace)
5637 (cmd_show_replay_memory_access): New.
5638 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5639 (record_btrace_remove_breakpoint): Replace
5640 record_btrace_allow_memory_access with replay_memory_access.
5641 (_initialize_record_btrace): Add commands.
5642 * NEWS: Announce it.
5644 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5646 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5648 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5650 * MAINTAINERS (Write After Approval): Move self back from
5653 2014-05-22 Pedro Alves <palves@redhat.com>
5655 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5656 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5657 (disable_randomization, enum exec_direction_kind)
5658 (execution_direction, stop_registers, start_remote)
5659 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5660 (wait_for_inferior, normal_stop, get_last_target_status)
5661 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5662 (insert_step_resume_breakpoint_at_sal)
5663 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5664 (set_step_info, print_stop_event, signal_stop_state)
5665 (signal_print_state, signal_pass_state, signal_stop_update)
5666 (signal_print_update, signal_pass_update)
5667 (update_signals_program_target, clear_exit_convenience_vars)
5668 (displaced_step_dump_bytes, update_observer_mode)
5669 (signal_catch_update, gdb_signal_from_command): Move
5671 * infrun.h: ... to this new file.
5672 * amd64-tdep.c: Include infrun.h.
5673 * annotate.c: Include infrun.h.
5674 * arch-utils.c: Include infrun.h.
5675 * arm-linux-tdep.c: Include infrun.h.
5676 * arm-tdep.c: Include infrun.h.
5677 * break-catch-sig.c: Include infrun.h.
5678 * breakpoint.c: Include infrun.h.
5679 * common/agent.c: Include infrun.h instead of inferior.h.
5680 * corelow.c: Include infrun.h.
5681 * event-top.c: Include infrun.h.
5682 * go32-nat.c: Include infrun.h.
5683 * i386-tdep.c: Include infrun.h.
5684 * inf-loop.c: Include infrun.h.
5685 * infcall.c: Include infrun.h.
5686 * infcmd.c: Include infrun.h.
5687 * infrun.c: Include infrun.h.
5688 * linux-fork.c: Include infrun.h.
5689 * linux-nat.c: Include infrun.h.
5690 * linux-thread-db.c: Include infrun.h.
5691 * monitor.c: Include infrun.h.
5692 * nto-tdep.c: Include infrun.h.
5693 * procfs.c: Include infrun.h.
5694 * record-btrace.c: Include infrun.h.
5695 * record-full.c: Include infrun.h.
5696 * remote-m32r-sdi.c: Include infrun.h.
5697 * remote-mips.c: Include infrun.h.
5698 * remote-notif.c: Include infrun.h.
5699 * remote-sim.c: Include infrun.h.
5700 * remote.c: Include infrun.h.
5701 * reverse.c: Include infrun.h.
5702 * rs6000-tdep.c: Include infrun.h.
5703 * s390-linux-tdep.c: Include infrun.h.
5704 * solib-irix.c: Include infrun.h.
5705 * solib-osf.c: Include infrun.h.
5706 * solib-svr4.c: Include infrun.h.
5707 * target.c: Include infrun.h.
5708 * top.c: Include infrun.h.
5709 * windows-nat.c: Include infrun.h.
5710 * mi/mi-interp.c: Include infrun.h.
5711 * mi/mi-main.c: Include infrun.h.
5712 * python/py-threadevent.c: Include infrun.h.
5714 2014-05-22 Pedro Alves <palves@redhat.com>
5716 * infrun.c (handle_inferior_event): Store the exit code for
5717 --return-child-result here, instead of ...
5718 (print_exited_reason): ... here.
5720 2014-05-21 Pedro Alves <palves@redhat.com>
5723 * gdbthread.h (struct thread_control_state): New field
5725 * infrun.c (follow_fork): Copy the new thread control field to the
5727 (clear_proceed_status_thread): Clear the new thread control field.
5728 (proceed): Set the new thread control field.
5729 * interps.h (command_interp): Declare.
5730 * interps.c (command_interpreter): New global.
5731 (command_interp): New function.
5732 (interp_exec): Set `command_interpreter' while here.
5733 * cli-out.c (cli_uiout_dtor): New function.
5734 (cli_ui_out_impl): Install it.
5735 * mi/mi-interp.c: Include cli-out.h.
5736 (mi_cmd_interpreter_exec): Add comment.
5737 (restore_current_uiout_cleanup): New function.
5738 (ui_out_free_cleanup): New function.
5739 (mi_on_normal_stop): If finishing an execution command started by
5740 a CLI command, or any kind of breakpoint-like event triggered,
5741 print the stop event to the output (CLI) stream.
5742 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5744 2014-05-21 Pedro Alves <palves@redhat.com>
5746 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5747 current source line having changed.
5748 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5749 * infrun.c (normal_stop): Adjust call to
5750 set_current_sal_from_frame.
5751 * source.c (clear_lines_listed_range): New function.
5752 (set_current_source_symtab_and_line, identify_source_line): Clear
5753 the lines listed range.
5754 (line_info): Handle the first "info line" after the current source
5755 line having changed.
5756 * stack.c (print_stack_frame): Remove center handling.
5757 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5760 2014-05-21 Pedro Alves <palves@redhat.com>
5762 * inf-child.c (inf_child_mourn_inferior): New function.
5763 * inf-child.h (inf_child_mourn_inferior): New declaration.
5764 * darwin-nat.c (darwin_mourn_inferior): Use
5765 inf_child_mourn_inferior.
5766 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5767 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5768 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5769 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5770 * windows-nat.c (windows_mourn_inferior): Likewise.
5772 2014-05-21 Doug Evans <xdje42@gmail.com>
5774 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5776 2014-05-21 Doug Evans <xdje42@gmail.com>
5778 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5779 (gdbscm_out_of_range_error): Ditto.
5780 (gdbscm_memory_error): Ditto.
5781 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5782 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5783 (gdbscm_out_of_range_error): Update.
5784 (gdbscm_memory_error): Update.
5785 (gdbscm_scm_to_target_string_unsafe): Delete.
5787 2014-05-21 Pedro Alves <palves@redhat.com>
5789 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5791 (inf_child_open_target): New function.
5792 (inf_child_open): Use inf_child_open_target to push the target
5793 instead of erroring out.
5794 (inf_child_disconnect, inf_child_close)
5795 (inf_child_maybe_unpush_target): New functions.
5796 (inf_child_target): Install inf_child_disconnect and
5797 inf_child_close. Store a pointer to the returned object.
5798 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5800 * target.c (auto_connect_native_target): New global.
5801 (show_default_run_target): New function.
5802 (find_default_run_target): Return NULL if automatically connecting
5803 to the native target is disabled.
5804 (_initialize_target): Install set/show auto-connect-native-target.
5805 * NEWS: Mention "set auto-connect-native-target", and "target
5807 * linux-nat.c (super_close): New global.
5808 (linux_nat_close): Call super_close.
5809 (linux_nat_add_target): Store a pointer to the base class's
5811 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5812 inf_child_maybe_unpush.
5813 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5815 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5816 the inferior. Use inf_child_maybe_unpush_target.
5817 (inf_ttrace_attach): Don't push the target if it is already
5819 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5820 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5821 after mourning the inferior. Use inf_child_maybe_unpush_target.
5822 (darwin_attach_pid): Don't push the target if it is already
5824 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5825 mourning the inferior. Use inf_child_maybe_unpush_target.
5826 (gnu_detach): Use inf_child_maybe_unpush_target.
5827 * go32-nat.c (go32_create_inferior): Don't push the target if it
5829 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5830 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5831 (procfs_open): Rename to ...
5832 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5833 comments. Can target_preopen before changing node. Call
5834 inf_child_open_target to push the target explicitly.
5835 (procfs_attach): Don't push the target if it is already pushed.
5836 (procfs_detach): Use inf_child_maybe_unpush_target.
5837 (procfs_create_inferior): Don't push the target if it is already
5839 (nto_native_ops): New global.
5840 (procfs_open): Reimplement.
5841 (procfs_native_open): New function.
5842 (init_procfs_targets): Install procfs_native_open as to_open of
5843 "target native". Store a pointer to the "native" target in
5845 * procfs.c (procfs_attach): Don't push the target if it is already
5847 (procfs_detach): Use inf_child_maybe_unpush_target.
5848 (procfs_mourn_inferior): Only unpush the target after mourning the
5849 inferior. Use inf_child_maybe_unpush_target.
5850 (procfs_init_inferior): Don't push the target if it is already
5852 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5853 if it is already pushed.
5855 2014-05-21 Pedro Alves <palves@redhat.com>
5857 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5858 and "procfs" targets are now called "native" instead.
5860 2014-05-21 Pedro Alves <palves@redhat.com>
5862 * go32-nat.c (go32_open): Delete.
5863 (go32_target): Don't override the to_open method.
5865 2014-05-21 Pedro Alves <palves@redhat.com>
5867 * nto-procfs.c (procfs_can_run): New function.
5868 (nto_procfs_ops): New global.
5869 (init_procfs_targets): New, based on procfs_target. Install
5870 "target native" in addition to "target procfs".
5871 (_initialize_procfs): Call init_procfs_targets instead of adding
5874 2014-05-21 Pedro Alves <palves@redhat.com>
5876 * windows-nat.c (windows_target): Don't override to_shortname,
5877 to_longname or to_doc.
5879 2014-05-21 Pedro Alves <palves@redhat.com>
5881 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5884 2014-05-21 Pedro Alves <palves@redhat.com>
5886 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5887 to_shortname, to_longname or to_doc.
5889 2014-05-21 Pedro Alves <palves@redhat.com>
5891 * go32-nat.c (go32_target): Don't override to_shortname,
5892 to_longname or to_doc.
5894 2014-05-21 Pedro Alves <palves@redhat.com>
5896 * inf-child.c (inf_child_open): Remove mention of "child".
5897 (inf_child_target): Rename target to "native" instead of "child".
5899 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5901 * Makefile.in (SFILES): Delete "regset.c".
5902 (COMMON_OBS): Delete "regset.o".
5904 * regset.h (regset_alloc): Delete prototype.
5906 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5908 * sparc-linux-tdep.c (sparc32_linux_gregset)
5909 (sparc32_linux_fpregset): New static regset structures.
5910 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5911 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5913 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5914 (sparc64_linux_fpregset): New static regset structures.
5915 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5916 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5917 New static regset structures.
5918 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5919 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5920 New static regset structures.
5921 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5922 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5923 New static regset structures.
5924 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5925 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5926 New static regset structures.
5927 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5929 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5931 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5932 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5933 register maps ("regmaps") from "*regset" to "*regmap". Do this
5934 for all regmap types and variables.
5935 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5936 (sparc32_linux_supply_core_gregset)
5937 (sparc32_linux_collect_core_gregset)
5938 (sparc32_linux_supply_core_fpregset)
5939 (sparc32_linux_collect_core_fpregset): Likewise.
5940 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5941 (sparc_gregmap, sparc_fpregmap): ... these.
5942 (sparc_supply_gregset, sparc_collect_gregset)
5943 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5944 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5945 (_initialize_sparc_nat): Rename regmaps.
5946 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5947 (sparc_gregmap, sparc_fpregmap): ... these.
5948 (sparc_supply_gregset, sparc_collect_gregset)
5949 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5950 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5952 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5953 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5955 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5957 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5958 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5959 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5961 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5962 (sparc32_bsd_fpregset): Rename to...
5963 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5964 (sparc32_bsd_fpregmap): ... these.
5965 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5966 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5967 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5968 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5969 (struct sparc_gregmap, struct sparc_fpregmap)
5970 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5971 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5972 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5973 (sparc32_supply_regset, sparc32_collect_gregset)
5974 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5976 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5977 (sparc64_linux_ptrace_gregmap): ... this.
5978 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5979 (_initialize_sparc64_linux_nat): Rename regmaps.
5980 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5981 (sparc64_linux_core_gregmap): ... this.
5982 (sparc64_linux_supply_core_gregset)
5983 (sparc64_linux_collect_core_gregset)
5984 (sparc64_linux_supply_core_fpregset)
5985 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5986 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5987 (sparc64_sol2_fpregset): Rename to...
5988 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5989 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5990 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5992 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5993 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5994 (sparc64_bsd_fpregset): Rename to...
5995 (struct sparc_gregmap, sparc64_sol2_gregmap)
5996 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5997 (sparc64_bsd_fpregmap): ... these.
5998 (sparc64_supply_gregset, sparc64_collect_gregset)
5999 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6001 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6002 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6003 (sparc64fbsd_gregmap): ... this.
6004 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6005 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6007 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6008 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6009 (sparc64nbsd_collect_fpregset): Likewise.
6010 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6011 (sparc64nbsd_gregmap): ... this.
6012 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6014 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6015 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6016 (sparc64obsd_gregmap): ... this.
6017 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6019 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6020 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6021 (sparc32nbsd_gregmap): ... this.
6022 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6025 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6027 * score-tdep.c (score7_linux_gregset): New static regset
6029 (score7_linux_regset_from_core_section): Remove dynamic regset
6031 (score_gdbarch_init): Drop allocation of tdep structure.
6032 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6034 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6036 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6038 (am33_regset_from_core_section): Remove dynamic regset
6041 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6043 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6044 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6046 (mips_linux_regset_from_core_section): Remove dynamic regset
6048 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6049 'gregset64', 'fpregset', and 'fpregset64'.
6050 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6051 deleted tdep fields.
6053 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6055 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6057 (amd64_regset_from_core_section): Remove dynamic regset
6059 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6061 (amd64obsd_regset_from_core_section): Remove dynamic regset
6063 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6065 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6066 x86-common regset supply function.
6067 * i386-tdep.c (i386_collect_gregset): Make static.
6068 (i386_gregset): New global regset structure.
6069 (i386_fpregset, i386_xstateregset): New static regset structures.
6070 (i386_regset_from_core_section): Remove dynamic regset
6072 (i386_gdbarch_init): Remove initialization of tdep fields
6073 'gregset', 'fpregset', and 'xstateregset'.
6074 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6075 'fpregset', and 'xstateregset'.
6076 (i386_collect_gregset): Remove prototype.
6077 (i386_gregset): New declaration.
6078 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6080 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6083 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6085 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6086 (arm_linux_vfpregset): New static regset structures.
6087 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6089 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6090 and 'vfpregset' fields.
6092 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6094 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6095 (aarch64_linux_fpregset): New static regset structures.
6096 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6097 of regset structures.
6098 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6101 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6103 * regset.h (struct regset): Remove gdbarch field.
6104 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6105 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6106 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6108 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6109 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6110 (ppc32_linux_vsxregset): Likewise.
6111 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6112 via the regcache instead of the regset.
6113 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6114 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6115 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6116 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6119 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6121 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6122 Constify structures.
6123 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6124 (alphanbsd_aout_gregset): Likewise.
6125 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6126 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6128 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6129 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6131 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6132 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6133 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6134 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6135 * m88k-tdep.c (m88k_gregset): Likewise.
6136 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6137 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6138 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6139 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6140 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6141 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6142 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6143 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6144 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6146 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6147 * sh-tdep.h (sh_corefile_gregset): Likewise.
6148 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6149 * vax-tdep.c (vax_gregset): Likewise.
6151 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6153 Fix TLS access for -static -pthread.
6154 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6155 (try_thread_db_load_1): Initialize it.
6156 (thread_db_get_thread_local_address): Call it if LM is zero.
6157 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6158 * target.h (struct target_ops) (to_get_thread_local_address): Add
6159 load_module_addr comment.
6161 2014-05-21 Pedro Alves <palves@redhat.com>
6163 * dcache.c (dcache_read_memory_partial): If reading the cache line
6164 fails, fallback to reading just the memory the caller wanted.
6166 2014-05-20 Doug Evans <dje@google.com>
6168 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6169 instead of get_current_arch.
6171 2014-05-20 Pedro Alves <palves@redhat.com>
6173 * NEWS: Mention that compare-sections now works with all targets.
6175 * remote.c (PACKET_qCRC): New enum value.
6176 (remote_verify_memory): Don't send qCRC if the target has no
6177 execution. Use packet_support/packet_ok. If the target doesn't
6178 support the qCRC packet, fallback to a deep memory copy.
6179 (compare_sections_command): Say "target image" instead of "remote
6181 (_initialize_remote): Add PACKET_qCRC to the list of config
6182 packets that have no associated command. Extend comment.
6183 * target.c (simple_verify_memory, default_verify_memory): New
6185 * target.h (struct target_ops) <to_verify_memory>: Default to
6186 default_verify_memory.
6187 (simple_verify_memory): New declaration.
6188 * target-delegates.c: Regenerate.
6190 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6192 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6194 2014-05-20 Hui Zhu <hui@codesourcery.com>
6195 Yao Qi <yao@codesourcery.com>
6198 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6199 and change address of sp and pc.
6201 2014-05-19 Tom Tromey <tromey@redhat.com>
6203 * gdbtypes.c (rank_function): Use XNEWVEC.
6204 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6206 2014-05-19 Doug Evans <dje@google.com>
6208 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6209 build_type_unit_groups and moved closer to only caller. Remove
6210 arguments. All references updated. Remove outdated .gdb_index
6212 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6213 build_type_psymtabs_1.
6215 2014-05-19 Doug Evans <dje@google.com>
6217 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6218 n_type_unit_groups, all_type_unit_groups. All uses removed.
6219 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6220 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6221 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6222 (add_type_unit_group_to_table): Delete.
6224 2014-05-19 Doug Evans <dje@google.com>
6226 * eval.c (evaluate_subexp_standard): Add some comments.
6228 2014-05-17 Doug Evans <xdje42@gmail.com>
6230 * progspace.c (remove_program_space): Delete, unused.
6231 * progspace.h (remove_program_space): Ditto.
6233 2014-05-17 Doug Evans <xdje42@gmail.com>
6235 * inferior.c (prune_inferiors): Fix comment.
6236 (remove_inferior_command): Call prune_program_spaces.
6238 2014-05-16 Doug Evans <dje@google.com>
6240 New command line option -D.
6242 * main.c (set_gdb_data_directory): New function.
6243 (captured_main): Recognize -D. Flag error for --data-directory "".
6244 Call set_gdb_data_directory.
6245 (print_gdb_help): Print --data-directory, -D.
6246 * main.h (set_gdb_data_directory): Declare.
6247 * top.c (staged_gdb_datadir): New static global.
6248 (set_gdb_datadir): Call set_gdb_data_directory
6249 (show_gdb_datadir): New function.
6250 (init_main): Update init of data-directory parameter.
6252 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6254 Import the "dirfd" gnulib module.
6255 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6256 * gnulib/aclocal.m4: Update.
6257 * gnulib/config.in: Update.
6258 * gnulib/configure: Update.
6259 * gnulib/import/Makefile.am: Update.
6260 * gnulib/import/Makefile.in: Update.
6261 * gnulib/import/dirfd.c: New.
6262 * gnulib/import/m4/dirfd.m4: New.
6263 * gnulib/import/m4/gnulib-cache.m4: Update.
6264 * gnulib/import/m4/gnulib-comp.m4: Update.
6266 2014-05-16 Pierre Muller <muller@sourceware.org>
6267 Yao Qi <yao@codesourcery.com>
6269 * valprint.c (print_wchar): Move the code on checking whether
6270 W is a printable wide char to the default branch of switch
6271 statement below. Call wchar_printable instead of gdb_iswprint.
6273 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6275 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6276 ldr.w and ldrd instructions.
6278 2014-05-15 Doug Evans <dje@google.com>
6280 * dwarf2read.c (read_structure_type): Delete outdated comments.
6282 2014-05-14 Tom Tromey <tromey@redhat.com>
6284 * macrocmd.c (print_macro_definition): Reindent.
6286 2014-05-13 Doug Evans <xdje42@gmail.com>
6288 * python/py-cmd.c (cmdpy_completer): Add comment.
6289 (completers): Make const.
6291 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6293 * infrun.c (resume): Remove should_resume (unused). Move up
6294 declaration of resume_ptid.
6296 2014-05-13 Tom Tromey <tromey@redhat.com>
6298 * language.h (unop_type_check): Remove.
6299 (binop_type_check): Don't declare.
6301 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6303 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6304 call to regcache_raw_collect.
6306 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6308 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6309 mi_console->quote as the quoting character.
6311 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6313 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6315 2014-04-29 Tom Tromey <tromey@redhat.com>
6317 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6318 "show debug varobj".
6320 2014-05-07 Kyle McMartin <kyle@redhat.com>
6322 Pushed by Joel Brobecker <brobecker@adacore.com>.
6323 * aarch64-tdep.c (aarch64_software_single_step): New function.
6324 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6325 with aarch64_software_single_step.
6327 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6331 2014-05-05 Keith Seitz <keiths@redhat.com>
6333 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6334 variable or history value is successfully parsed.
6336 2014-05-05 Yao Qi <yao@codesourcery.com>
6337 Pedro Alves <palves@redhat.com>
6339 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6340 address of blocks that intersects the requested range. Trim
6341 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6343 * ctf.c (ctf_xfer_partial): Likewise.
6345 2014-05-05 Yao Qi <yao@codesourcery.com>
6347 * printcmd.c (display_command): Remove the check to
6348 target_has_execution.
6350 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6352 * ppcobsd-nat.c: Include "obsd-nat.h".
6353 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6355 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6357 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6359 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6360 and 16-bit signed and unsigned arguments. Update comment.
6361 (stap_parse_probe_arguments): Extend code to handle such
6362 arguments. Use warning instead of complaint to notify about
6363 unrecognized bitness.
6365 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6367 PR breakpoints/16889
6368 * stap-probe.c (stap_parse_probe_arguments): Simplify
6369 check for non-prefixed probes (i.e., probes whose
6370 arguments do not start with "N@"). Always set the
6371 argument type to a sane value.
6373 2014-05-01 David Taylor <dtaylor@emc.com>
6375 * remote.c (compare_sections_command): Add -r option to compare
6376 all loadable read-only sections.
6378 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6380 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6381 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6383 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6384 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6385 Remove unused CORE_ADDR argument. Update all callers.
6387 2014-04-29 Pedro Alves <palves@redhat.com>
6389 * remote.c (struct packet_config) <detect>: Extend comment.
6390 (add_packet_config_cmd): Don't set the config's detect or support
6392 (init_all_packet_configs): Also initialize the config's 'detect'
6394 (reset_all_packet_configs_support): New function.
6395 (remote_open_1): Call reset_all_packet_configs_support instead of
6396 init_all_packet_configs.
6397 (_initialize_remote): Initialize all packet configs. Assert that
6398 all packets have an associated command, except a few known
6401 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6403 * dwarf2read.c (read_subrange_type): Handle dynamic
6404 DW_AT_lower_bound attributes.
6406 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6408 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6409 dynamic bounds before computing its upper bound.
6410 (ada_discrete_type_low_bound): Same as above with the lower bound.
6412 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6414 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6415 range types. Adjust the array handling implementation to
6416 take advantage of this change.
6417 (resolve_dynamic_range): New function, mostly extracted from
6418 resolve_dynamic_bounds.
6419 (resolve_dynamic_array): New function, mostly extracted from
6420 resolve_dynamic_bounds.
6421 (resolve_dynamic_bounds): Delete.
6422 (resolve_dynamic_type): Reimplement. Add handling of
6423 TYPE_CODE_RANGE types.
6425 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6427 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6428 handling of parallel ___XA types.
6430 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6432 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6433 unnecessary second call to static_unwrap_type.
6435 2014-04-27 Hui Zhu <hui@codesourcery.com>
6437 * stack.c (print_frame_info): Call do_gdb_disassembly with
6438 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6440 2014-04-26 Doug Evans <xdje42@gmail.com>
6442 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6444 2014-04-25 Pedro Alves <palves@redhat.com>
6447 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6448 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6449 and newline from built string.
6450 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6451 (linux_ptrace_attach_fail_reason): ... this.
6452 * linux-nat.c (linux_nat_attach): Adjust to use
6453 linux_ptrace_attach_fail_reason.
6455 2014-04-25 Pedro Alves <palves@redhat.com>
6457 * remote.c (struct remote_state): Remove multi_process_aware,
6458 non_stop_aware, cond_tracepoints, cond_breakpoints,
6459 breakpoint_commands, fast_tracepoints, static_tracepoints,
6460 install_in_trace, disconnected_tracing,
6461 enable_disable_tracepoints, string_tracing, and
6462 augmented_libraries_svr4_read fields.
6463 (remote_multi_process_p): Move further below in the file.
6464 (struct packet_config): Add comments.
6465 (update_packet_config): Delete function.
6466 (show_packet_config_cmd): Use packet_config_support.
6467 (add_packet_config_cmd): Use NULL as set callback.
6468 (packet_ok): "set remote foo-packet"-style commands no longer
6469 change config->supported -- adjust.
6470 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6471 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6472 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6473 (PACKET_QNonStop, PACKET_multiprocess_feature)
6474 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6475 (PACKET_DisconnectedTracing_feature)
6476 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6477 (set_remote_protocol_packet_cmd): Delete function.
6478 (packet_config_support, packet_support): New functions.
6479 (set_remote_protocol_Z_packet_cmd): Don't call
6480 update_packet_config.
6481 (remote_query_attached, remote_pass_signals)
6482 (remote_program_signals, remote_threads_info)
6483 (remote_threads_extra_info, remote_start_remote): Use
6485 (remote_start_remote): Use packet_config_support and
6487 (init_all_packet_configs): Set all packets to unknown support,
6488 instead of calling update_packet_config.
6489 (remote_check_symbols): Use packet_support.
6490 (remote_supported_packet): Unconditionally set the packet config's
6492 (remote_multi_process_feature, remote_non_stop_feature)
6493 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6494 (remote_breakpoint_commands_feature)
6495 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6496 (remote_install_in_trace_feature)
6497 (remote_disconnected_tracing_feature)
6498 (remote_enable_disable_tracepoint_feature)
6499 (remote_string_tracing_feature)
6500 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6501 (remote_protocol_features): Adjust to use remote_supported_packet
6502 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6503 "ConditionalTracepoints", "ConditionalBreakpoints",
6504 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6505 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6506 "EnableDisableTracepoints", and "tracenz".
6507 (remote_query_supported): Use packet_support.
6508 (remote_open_1): Adjust.
6509 (extended_remote_attach_1): Use packet_support. Switch on the
6510 result of packet_ok instead of checking whether the packet ended
6512 (remote_vcont_resume): Use packet_support.
6513 (remote_resume, remote_stop_ns, fetch_register_using_p)
6514 (remote_prepare_to_store, store_register_using_P)
6515 (check_binary_download, remote_write_bytes): Use packet_support.
6516 (remote_vkill): Use packet_support. Switch on the result of
6517 packet_ok instead of checking whether the packet ended up
6519 (extended_remote_supports_disable_randomization): Use
6521 (extended_remote_run): Switch on the result of packet_ok instead
6522 of checking whether the packet ended up disabled.
6523 (remote_insert_breakpoint, remote_remove_breakpoint)
6524 (remote_insert_watchpoint, remote_remove_watchpoint)
6525 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6527 (remote_search_memory): Use packet_config_support.
6528 (remote_get_thread_local_address, remote_get_tib_address)
6529 (remote_hostio_send_command, remote_can_execute_reverse): Use
6531 (remote_supports_cond_tracepoints)
6532 (remote_supports_cond_breakpoints)
6533 (remote_supports_fast_tracepoints)
6534 (remote_supports_static_tracepoints)
6535 (remote_supports_install_in_trace)
6536 (remote_supports_enable_disable_tracepoint)
6537 (remote_supports_string_tracing)
6538 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6539 the packet config says the feature is enabled or disabled.
6540 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6541 (remote_get_trace_status): Use packet_support.
6542 (remote_set_disconnected_tracing): Adjust to check whether the
6543 feature is enabled with packet_support.
6544 (remote_set_trace_buffer_size, remote_use_agent)
6545 (remote_can_use_agent, remote_supports_btrace): Use
6547 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6548 Use packet_config_support.
6549 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6550 the packet config says the feature is enabled or disabled.
6551 (set_range_stepping): Use packet_support.
6553 2014-04-25 Tom Tromey <tromey@redhat.com>
6555 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6558 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6560 * NEWS: Mention support for C99 variable length arrays.
6562 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6564 * ada-lang.c (standard_exc): Expand introductory comment.
6566 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6567 Walfred Tedeschi <walfred.tedeschi@intel.com>
6569 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6571 (amd64_linux_read_description): Add code to handle AVX512 xstate
6572 mask and return respective tdesc.
6573 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6574 and features/i386/x32-avx512-linux.c.
6575 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6576 (amd64_linux_core_read_description): Add code to handle AVX512
6577 xstate mask and return respective tdesc.
6578 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6579 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6581 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6582 (tdesc_amd64_avx512_linux): New prototype.
6583 (tdesc_x32_avx512_linux): Likewise.
6584 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6585 features/i386/x32-avx512.c.
6586 (amd64_ymm_avx512_names): New register names for pseudo
6588 (amd64_ymmh_avx512_names): New register names for raw registers
6590 (amd64_k_names): New register names for K registers.
6591 (amd64_zmmh_names): New register names for ZMM raw registers.
6592 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6593 (amd64_xmm_avx512_names): New register names for XMM16-31
6595 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6597 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6598 if feature is present.
6599 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6600 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6601 (AMD64_NUM_REGS): Adjust to new number of registers.
6602 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6603 registers supplied via XSTATE by AVX512 registers.
6604 (i386_linux_read_description): Add case for AVX512.
6605 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6606 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6607 (i386_linux_core_read_description): Add case for AVX512.
6608 (i386_linux_init_abi): Install supported register note section
6610 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6612 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6613 registers to be number of zmm7h + 1.
6614 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6615 * i386-tdep.c: Include features/i386/i386-avx512.c.
6616 (i386_zmm_names): Add ZMM pseudo register names array.
6617 (i386_zmmh_names): Add ZMM raw register names array.
6618 (i386_k_names): Add K raw register names array.
6619 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6620 registers. AVX512 has 16 more ZMM registers than there are YMM
6622 (i386_zmmh_regnum_p): Add function to look up register number of
6624 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6625 (i386_k_regnum_p): Likewise for K raw registers.
6626 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6627 registers added by AVX512.
6628 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6629 registers added by AVX512.
6630 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6632 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6633 (i386_pseudo_register_name): Add ZMM pseudo registers.
6634 (i386_zmm_type): Construct and return vector registers type for ZMM
6636 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6637 ZMM0-31 pseudo registers and K registers.
6638 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6639 and YMM16-31 registers from register cache.
6640 (i386_pseudo_register_write): Add code to write K, ZMM and
6642 (i386_register_reggroup_p): Add code to include/exclude AVX512
6643 registers in/from respective register groups.
6644 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6645 registers if feature is present in xcr0.
6646 (i386_gdbarch_init): Add code to initialize AVX512 feature
6647 variables in tdep structure, wire in pseudo registers and call
6648 initialize_tdesc_i386_avx512.
6649 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6651 (i386_regnum): Add AVX512 registers.
6652 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6653 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6654 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6655 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6657 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6658 (i386_ymm_avx512_regnum_p): Likewise.
6659 (i386_k_regnum_p): Likewise.
6660 (i386_zmm_regnum_p): Likewise.
6661 (i386_zmmh_regnum_p): Likewise.
6662 * i387-tdep.c : Update year in copyright notice.
6663 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6665 (XSAVE_YMM_AVX512_ADDR): New macro.
6666 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6668 (XSAVE_XMM_AVX512_ADDR): New macro.
6669 (xsave_avx512_k_offset): New table for K register offsets in
6671 (XSAVE_AVX512_K_ADDR): New macro.
6672 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6674 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6675 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6677 (i387_collect_xsave): Add code to collect AVX512 registers from
6679 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6680 of XMM16-31 registers.
6681 (I387_NUM_K_REGS): New define for number of K registers.
6682 (I387_K0_REGNUM): New define for K0 register number.
6683 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6684 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6685 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6687 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6688 (I387_XMM16_REGNUM): New define for XMM16 register number.
6689 (I387_YMM0_REGNUM): New define for YMM0 register number.
6690 (I387_KEND_REGNUM): New define for last K register number.
6691 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6692 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6694 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6696 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6698 * features/Makefile: Add AVX512 related files.
6699 * features/i386/32bit-avx512.xml: New file.
6700 * features/i386/64bit-avx512.xml: Likewise.
6701 * features/i386/amd64-avx512-linux.c: Likewise.
6702 * features/i386/amd64-avx512-linux.xml: Likewise.
6703 * features/i386/amd64-avx512.c: Likewise.
6704 * features/i386/amd64-avx512.xml: Likewise.
6705 * features/i386/i386-avx512-linux.c: Likewise.
6706 * features/i386/i386-avx512-linux.xml: Likewise.
6707 * features/i386/i386-avx512.c: Likewise.
6708 * features/i386/i386-avx512.xml: Likewise.
6709 * features/i386/x32-avx512-linux.c: Likewise.
6710 * features/i386/x32-avx512-linux.xml: Likewise.
6711 * features/i386/x32-avx512.c: Likewise.
6712 * features/i386/x32-avx512.xml: Likewise.
6713 * regformats/i386/amd64-avx512-linux.dat: New file.
6714 * regformats/i386/amd64-avx512.dat: Likewise.
6715 * regformats/i386/i386-avx512-linux.dat: Likewise.
6716 * regformats/i386/i386-avx512.dat: Likewise.
6717 * regformats/i386/x32-avx512-linux.dat: Likewise.
6718 * regformats/i386/x32-avx512.dat: Likewise.
6719 * NEWS: Add note about new support for AVX512.
6722 2014-04-23 Pedro Alves <palves@redhat.com>
6724 * breakpoint.c (insert_bp_location): Tolerate errors if the
6725 breakpoint is set in a user-loaded objfile.
6726 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6727 location is marked shlib_disabled. If the breakpoint is set in a
6728 user-loaded objfile is a GDB-side memory breakpoint, validate it
6729 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6730 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6732 * mem-break.c (memory_validate_breakpoint): New function.
6733 * objfiles.c (userloaded_objfile_contains_address_p): New
6735 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6736 * target.h (memory_validate_breakpoint): New declaration.
6738 2014-04-23 Pedro Alves <palves@redhat.com>
6740 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6741 the breakpoint is set in a shared library, only suppress
6742 errors for software breakpoints, not hardware breakpoints.
6744 2014-04-22 Pedro Alves <palves@redhat.com>
6746 * infrun.c (schedlock_applies): New function, factored out from
6747 find_thread_needs_step_over.
6748 (find_thread_needs_step_over): Use it.
6749 (switch_back_to_stepped_thread): Always clear trap_expected if the
6750 step over is finished. Return early if scheduler locking applies.
6751 Look for the stepping thread and a potential step-over thread with
6753 (currently_stepping_or_nexting_callback): Delete.
6755 2014-04-22 Nick Clifton <nickc@redhat.com>
6757 * NEWS: Mention that ARM sim now supports tracing.
6759 2014-04-22 Yao Qi <yao@codesourcery.com>
6761 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6763 * tracefile.c (tracefile_fetch_registers): ... it. New
6765 * tracefile.h (tracefile_fetch_registers): Declare.
6766 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6767 tracefile_fetch_registers.
6769 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6772 * windows-nat.c (thread_rec): Don't display a warning when
6773 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6774 fails for any reason, set th->suspended to -1, so that we don't
6775 try to resume such a thread. Also, don't return NULL in these
6776 cases, to avoid completely ruin the session due to "PC register is
6777 not available" error.
6778 (do_windows_fetch_inferior_registers): Check errors in
6779 GetThreadContext call.
6780 (windows_continue): Accept an additional argument KILLED; if not
6781 zero, ignore errors in the SetThreadContext call, since the
6782 inferior was killed and is shutting down.
6783 (windows_resume, get_windows_debug_event)
6784 (windows_create_inferior, windows_mourn_inferior)
6785 (windows_kill_inferior): All callers of windows_continue changed
6786 to adjust to its new calling sequence.
6788 2014-04-19 Yao Qi <yao@codesourcery.com>
6790 * ctf.c (ctf_open): Call post_create_inferior.
6792 2014-04-19 Yao Qi <yao@codesourcery.com>
6794 * ctf.c (handle_id): New static variable.
6795 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6796 value. Get the declaration of event "register" and get length
6797 of field "contents".
6799 2014-04-19 Yao Qi <yao@codesourcery.com>
6801 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6803 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6805 * valops.c (oload_method_static): Remove unnecessary argument
6806 METHOD. Update all callers.
6808 2014-04-18 Pedro alves <palves@redhat.com>
6809 Tom Tromey <tromey@redhat.com>
6812 * frame.c (get_prev_frame_1): Rename to ...
6813 (get_prev_frame_always): ... this, and make extern. Adjust.
6814 (skip_artificial_frames): Use get_prev_frame_always.
6815 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6816 (get_frame_unwind_stop_reason): Adjust to rename.
6817 * frame.h (get_prev_frame_always): Declare.
6818 * inline-frame.c: Include frame.h.
6819 (inline_frame_this_id): Use get_prev_frame_always.
6821 2014-04-18 Tristan Gingold <gingold@adacore.com>
6823 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6824 code by using bfd_mach_o_get_base_address.
6826 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6828 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6829 (spu_ax_pseudo_register_collect): New function.
6830 (spu_ax_pseudo_register_push_stack): Likewise.
6831 (spu_dwarf_reg_to_regnum): Likewise.
6832 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6834 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6836 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6837 Replace FRAME argument with FRAME_ID.
6838 * gdbarch.c, gdbarch.h: Regenerate.
6839 * findvar.c (default_value_from_register): Add GDBARCH argument;
6840 replace FRAME by FRAME_ID. No longer call get_frame_id.
6841 (value_from_register): Update call to gdbarch_value_from_register.
6842 * value.h (default_value_from_register): Update prototype.
6843 * s390-linux-tdep.c (s390_value_from_register): Update interface
6844 and call to default_value_from_register.
6845 * spu-tdep.c (spu_value_from_register): Likewise.
6847 * findvar.c (address_from_register): Remove TYPE argument.
6848 Do not call value_from_register; use gdbarch_value_from_register
6849 with null_frame_id instead.
6850 * value.h (address_from_register): Update prototype.
6851 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6852 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6853 address_from_register interface change.
6855 2014-04-17 Yao Qi <yao@codesourcery.com>
6857 * gdbtypes.h: Update comments to link to types and macros'
6860 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6862 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6864 2014-04-16 Keith Seitz <keiths@redhat.com>
6867 * dwarf2read.c (skip_one_die): Check that all relative-offset
6868 sibling DIEs fall within range of the current reader's buffer.
6869 (read_partial_die): Likewise.
6871 2014-04-16 Keith Seitz <keiths@redhat.com>
6874 * cp-namespace.c (lookup_symbol_file): If the type name of
6875 `this' is NULL, return immediately.
6877 2014-04-14 Keith Seitz <keiths@redhat.com>
6880 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6881 from symbol_matches_domain in symtab.c. All local callers
6882 of symbol_matches_domain updated.
6883 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6884 search STRUCT_DOMAIN.
6885 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6886 independently. standard_lookup will do that automatically.
6887 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6888 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6889 (cp_lookup_symbol_in_namespace): Likewise.
6890 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6891 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6892 may return a STRUCT_DOMAIN match.
6893 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6894 * cp-support.c: Include language.h.
6895 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6897 * psymtab.c (match_partial_symbol): Compare the requested
6898 domain with the symbol's domain directly.
6899 (lookup_partial_symbol): Likewise.
6900 * symtab.c (lookup_symbol_in_language): Explain when/why
6901 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6902 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6903 appropriate languages.
6904 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6905 and moved to ada-lang.c
6906 (lookup_block_symbol): Explain that this function only returns
6907 symbol matching the requested DOMAIN.
6908 Compare the requested domain with the symbol's domain directly.
6909 (iterate_over_symbols): Compare the requested domain with the
6910 symbol's domain directly.
6911 * symtab.h (symbol_matches_domain): Remove.
6913 2014-04-14 Tom Tromey <tromey@redhat.com>
6916 * c-exp.y (type_aggregate_p): New function.
6917 (qualified_name, classify_inner_name): Use it.
6918 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6919 and TYPE_TARGET_TYPE of an enum type.
6920 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6922 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6923 handle TYPE_DECLARED_CLASS.
6924 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6926 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6927 * valops.c (enum_constant_from_type): New function.
6928 (value_aggregate_elt): Use it.
6929 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6932 2014-04-14 Tom Tromey <tromey@redhat.com>
6934 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6935 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6937 * value.h (value_aggregate_elt): Update.
6939 2014-04-14 Tom Tromey <tromey@redhat.com>
6941 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6945 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6946 (evaluate_subexp_standard): Pass noside argument.
6947 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6948 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6949 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6950 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6951 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6953 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6955 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6956 points to a constant blob.
6958 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6960 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6961 property and store it as the high bound and flag the range accordingly.
6962 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6963 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6964 * gdbtypes.h (enum range_flags): New enum.
6965 (struct range_bounds): Add flags member.
6967 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6969 * c-typeprint.c (c_type_print_varspec_suffix): Added
6970 check for not yet resolved high bound. If unresolved, print
6971 "variable length" string to the console instead of random
6974 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6976 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6978 (ada_template_to_fixed_record_type_1): Likewise.
6979 (ada_to_fixed_type_1): Likewise.
6980 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6981 (cp_print_value): Likewise.
6982 * d-valprint.c (dynamic_array_type): Likewise.
6983 * findvar.c (address_of_variable): Likewise.
6984 * jv-valprint.c (java_value_print): Likewise.
6985 * valops.c (value_ind): Likewise.
6986 * value.c (coerce_ref): Likewise.
6988 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6990 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6991 value and retrieve the dynamic type size.
6993 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6995 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6996 passed to sizeof is dynamic evaluate the argument to compute the length.
6998 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6999 Joel Brobecker <brobecker@adacore.com>
7001 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7002 (dwarf2_evaluate_property): New function.
7003 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7004 * dwarf2read.c (attr_to_dynamic_prop): New function.
7005 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7007 * gdbtypes.c: Include dwarf2loc.h.
7008 (is_dynamic_type): New function.
7009 (resolve_dynamic_type): New function.
7010 (resolve_dynamic_bounds): New function.
7011 (get_type_length): New function.
7012 (check_typedef): Use get_type_length to compute type length.
7013 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7014 (TYPE_LOW_BOUND_KIND): New macro.
7015 (is_dynamic_type): New function prototype.
7016 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7017 to resolve dynamic properties of the type. Update comment.
7018 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7020 2014-04-14 Richard Henderson <rth@redhat.com>
7022 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7024 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7025 Doug Evans <xdje42@gmail.com>
7027 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7028 dereference TYPE_CODE_REF values.
7030 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7032 Revert the following changes due to regressions:
7034 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7035 (dwarf2_evaluate_property): New function.
7036 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7037 * dwarf2read.c (attr_to_dynamic_prop): New function.
7038 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7040 * gdbtypes.c: Include dwarf2loc.h.
7041 (is_dynamic_type): New function.
7042 (resolve_dynamic_type): New function.
7043 (resolve_dynamic_bounds): New function.
7044 (get_type_length): New function.
7045 (check_typedef): Use get_type_length to compute type length.
7046 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7047 (TYPE_LOW_BOUND_KIND): New macro.
7048 (is_dynamic_type): New function prototype.
7049 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7050 to resolve dynamic properties of the type. Update comment.
7051 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7053 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7054 passed to sizeof is dynamic evaluate the argument to compute the length.
7056 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7057 value and retrieve the dynamic type size.
7059 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7060 (ada_template_to_fixed_record_type_1): Likewise.
7061 (ada_to_fixed_type_1): Likewise.
7062 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7063 (cp_print_value): Likewise.
7064 * d-valprint.c (dynamic_array_type): Likewise.
7065 * eval.c (evaluate_subexp_with_coercion): Likewise.
7066 * findvar.c (address_of_variable): Likewise.
7067 * jv-valprint.c (java_value_print): Likewise.
7068 * valops.c (value_ind): Likewise.
7069 * value.c (coerce_ref): Likewise.
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 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7077 property and store it as the high bound and flag the range accordingly.
7078 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7079 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7080 * gdbtypes.h (enum range_flags): New enum.
7081 (struct range_bounds): Add flags member.
7083 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7084 points to a constant blob.
7086 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7087 (evaluate_subexp_standard): Pass noside argument.
7088 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7089 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7090 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7091 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7092 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7094 2014-04-11 Keith Seitz <keiths@redhat.com>
7097 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7098 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7103 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7104 (evaluate_subexp_standard): Pass noside argument.
7105 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7106 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7107 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7108 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7109 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7111 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7113 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7114 points to a constant blob.
7116 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7118 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7119 property and store it as the high bound and flag the range accordingly.
7120 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7121 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7122 * gdbtypes.h (enum range_flags): New enum.
7123 (struct range_bounds): Add flags member.
7125 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7127 * c-typeprint.c (c_type_print_varspec_suffix): Added
7128 check for not yet resolved high bound. If unresolved, print
7129 "variable length" string to the console instead of random
7132 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7134 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7135 (ada_template_to_fixed_record_type_1): Likewise.
7136 (ada_to_fixed_type_1): Likewise.
7137 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7138 (cp_print_value): Likewise.
7139 * d-valprint.c (dynamic_array_type): Likewise.
7140 * eval.c (evaluate_subexp_with_coercion): Likewise.
7141 * findvar.c (address_of_variable): Likewise.
7142 * jv-valprint.c (java_value_print): Likewise.
7143 * valops.c (value_ind): Likewise.
7144 * value.c (coerce_ref): Likewise.
7146 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7148 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7149 value and retrieve the dynamic type size.
7151 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7153 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7154 passed to sizeof is dynamic evaluate the argument to compute the length.
7156 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7158 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7159 (dwarf2_evaluate_property): New function.
7160 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7161 * dwarf2read.c (attr_to_dynamic_prop): New function.
7162 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7164 * gdbtypes.c: Include dwarf2loc.h.
7165 (is_dynamic_type): New function.
7166 (resolve_dynamic_type): New function.
7167 (resolve_dynamic_bounds): New function.
7168 (get_type_length): New function.
7169 (check_typedef): Use get_type_length to compute type length.
7170 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7171 (TYPE_LOW_BOUND_KIND): New macro.
7172 (is_dynamic_type): New function prototype.
7173 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7174 to resolve dynamic properties of the type. Update comment.
7175 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7177 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7179 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7180 declaring high/low bounds and change uses accordingly. Call
7181 create_range_type instead of create_static_range_type.
7182 * gdbtypes.c (create_range_type): New function.
7183 (create_range_type): Convert bounds into struct bound_prop and pass
7184 them to create_range_type.
7185 * gdbtypes.h (struct bound_prop): New struct.
7186 (create_range_type): New function prototype.
7187 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7188 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7189 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7191 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7193 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7195 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7196 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7197 * ada-lang.c: All uses of create_range_type updated.
7198 * coffread.c: All uses of create_range_type updated.
7199 * dwarf2read.c: All uses of create_range_type updated.
7200 * f-exp.y: All uses of create_range_type updated.
7201 * m2-valprint.c: All uses of create_range_type updated.
7202 * mdebugread.c: All uses of create_range_type updated.
7203 * stabsread.c: All uses of create_range_type updated.
7204 * valops.c: All uses of create_range_type updated.
7205 * valprint.c: All uses of create_range_type updated.
7207 2014-04-10 Pedro Alves <palves@redhat.com>
7209 * breakpoint.c (single_step_breakpoints)
7210 (single_step_gdbarch): Move up in the file.
7211 (one_breakpoint_xfer_memory): New function, factored out from ...
7212 (breakpoint_xfer_memory): ... here. Also process single-step
7215 2014-04-09 Tristan Gingold <gingold@adacore.com>
7217 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7219 (darwin_decode_exception_message): Free port only after use.
7221 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7223 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7224 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7225 when setting the size of call_length.
7227 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7229 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7230 dereference TYPE_CODE_REF values.
7232 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7234 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7235 end of warning message.
7237 2014-04-03 Doug Evans <dje@google.com>
7239 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7240 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7242 2014-04-02 Alan Modra <amodra@gmail.com>
7244 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7245 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7246 (struct symbol_file_add_from_memory_args): Add size field.
7247 (find_vdso_size): New function.
7248 (add_vsyscall_page): Attempt to find vdso size.
7250 2014-04-01 Doug Evans <dje@google.com>
7252 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7254 2014-04-01 Tristan Gingold <gingold@adacore.com>
7256 * darwin-nat.c (darwin_encode_reply): Add prototype.
7257 (darwin_decode_exception_message): Reply to unknown inferiors.
7258 (darwin_decode_message): Handle message by id. Ignore message
7259 to unknown inferior.
7260 (darwin_wait): Discard unknown messages, add debug trace.
7262 2014-03-31 Doug Evans <dje@google.com>
7264 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7267 2014-03-31 Doug Evans <dje@google.com>
7269 New option "set print symbol-loading".
7271 * solib.c (solib_read_symbols): Only print symbol loading messages
7273 (solib_add): If symbol loading is in "brief" mode, notify user
7274 symbols are being loaded.
7275 (reload_shared_libraries_1): Ditto.
7276 * symfile.c (print_symbol_loading_off): New static global.
7277 (print_symbol_loading_brief): New static global.
7278 (print_symbol_loading_full): New static global.
7279 (print_symbol_loading_enums): New static global.
7280 (print_symbol_loading): New static global.
7281 (print_symbol_loading_p): New function.
7282 (symbol_file_add_with_addrs): Only print symbol loading messages
7284 (_initialize_symfile): Register "print symbol-loading" set/show
7286 * symfile.h (print_symbol_loading_p): Declare.
7288 2014-03-30 Doug Evans <xdje42@gmail.com>
7290 * infrun.c (set_last_target_status): New function.
7291 (handle_inferior_event): Call it.
7293 2014-03-30 Doug Evans <xdje42@gmail.com>
7295 * inferior.h (enum stop_kind): Improve comment.
7297 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7299 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7300 a reference, strip the reference layer before calling
7301 the lang_ops value_has_mutated callback.
7303 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7305 Remove some globals from our parser.
7306 * language.c (unk_lang_parser): Add "struct parser_state"
7308 * language.h (struct language_defn) <la_parser>: Likewise.
7309 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7310 (initialize_expout): Add "struct parser_state" argument.
7311 Rewrite function to use the parser state.
7312 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7313 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7314 write_exp_elt_longcst, write_exp_elt_dblcst,
7315 write_exp_elt_decfloatcst, write_exp_elt_type,
7316 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7317 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7318 write_dollar_variable): Likewise.
7319 (parse_exp_in_context_1): Use parser state.
7320 (insert_type_address_space): Add "struct parser_state" argument.
7322 (increase_expout_size): New function.
7323 * parser-defs.h: Forward declare "struct language_defn" and
7324 "struct parser_state".
7325 (expout, expout_size, expout_ptr): Remove extern declarations.
7326 (parse_gdbarch, parse_language): Rewrite macro declarations to
7327 accept the parser state.
7328 (struct parser_state): New struct.
7329 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7330 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7331 write_exp_elt_decfloatcst, write_exp_elt_type,
7332 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7333 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7334 write_exp_msymbol, write_dollar_variable,
7335 mark_struct_expression, insert_type_address_space): Add "struct
7336 parser_state" argument.
7337 (increase_expout_size): New function.
7338 * utils.c (do_clear_parser_state): New function.
7339 (make_cleanup_clear_parser_state): Likewise.
7340 * utils.h (make_cleanup_clear_parser_state): New function
7342 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7343 Update calls to write_exp* in order to pass the parser state.
7344 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7345 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7346 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7347 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7348 * stap-probe.c (stap_parse_register_operand): Likewise.
7349 (stap_parse_single_operand): Likewise.
7350 (stap_parse_argument_1): Likewise.
7351 (stap_parse_argument): Use parser state.
7352 * stap-probe.h: Include "parser-defs.h".
7353 (struct stap_parse_info) <pstate>: New field.
7354 * c-exp.y (parse_type): Rewrite to use parser state.
7355 (yyparse): Redefine to c_parse_internal.
7356 (pstate): New global variable.
7357 (parse_number): Add "struct parser_state" argument.
7358 (write_destructor_name): Likewise.
7359 (type_exp): Update calls to write_exp* and similars in order to
7361 (exp1, exp, variable, qualified_name, space_identifier,
7362 typename, typebase): Likewise.
7363 (write_destructor_name, parse_number, lex_one_token,
7364 classify_name, classify_inner_name, c_parse): Add "struct
7365 parser_state" argument. Update function to use parser state.
7366 * c-lang.h: Forward declare "struct parser_state".
7367 (c_parse): Add "struct parser_state" argument.
7368 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7369 (yyparse): Redefine macro to ada_parse_internal.
7370 (pstate): New variable.
7371 (write_int, write_object_renaming, write_var_or_type,
7372 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7373 type_int, type_long, type_long_long, type_float, type_double,
7374 type_long_double, type_char, type_boolean, type_system_address):
7375 Add "struct parser_state" argument.
7376 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7377 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7378 var_or_type, aggregate, aggregate_component_list,
7379 positional_list, others, component_group,
7380 component_associations): Update calls to write_exp* and similar
7381 functions in order to use parser state.
7382 (ada_parse, write_var_from_sym, write_int,
7383 write_exp_op_with_string, write_object_renaming,
7384 find_primitive_type, write_selectors, write_ambiguous_var,
7385 write_var_or_type, write_name_assoc, type_int, type_long,
7386 type_long_long, type_float, type_double, type_long_double,
7387 type_char, type_boolean, type_system_address): Add "struct
7388 parser_state" argument. Adjust function to use parser state.
7389 * ada-lang.c (parse): Likewise.
7390 * ada-lang.h: Forward declare "struct parser_state".
7391 (ada_parse): Add "struct parser_state" argument.
7392 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7393 calls to both functions.
7394 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7396 (yyparse): Redefine macro to f_parse_internal.
7397 (pstate): New variable.
7398 (parse_number): Add "struct parser_state" argument.
7399 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7400 and similars in order to use parser state.
7401 (parse_number): Adjust code to use parser state.
7403 (f_parse): New function.
7404 * f-lang.h: Forward declare "struct parser_state".
7405 (f_parse): Add "struct parser_state" argument.
7406 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7408 (yyparse): Redefine macro for java_parse_internal.
7409 (pstate): New variable.
7410 (push_expression_name, push_expression_name, insert_exp): Add
7411 "struct parser_state" argument.
7412 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7413 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7414 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7415 PostIncrementExpression, PostDecrementExpression,
7416 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7417 UnaryExpressionNotPlusMinus, CastExpression,
7418 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7419 RelationalExpression, EqualityExpression, AndExpression,
7420 ExclusiveOrExpression, InclusiveOrExpression,
7421 ConditionalAndExpression, ConditionalOrExpression,
7422 ConditionalExpression, Assignment, LeftHandSide): Update
7423 calls to write_exp* and similars in order to use parser state.
7424 (parse_number): Ajust code to use parser state.
7426 (java_parse): New function.
7427 (push_variable): Add "struct parser_state" argument. Adjust
7428 code to user parser state.
7429 (push_fieldnames, push_qualified_expression_name,
7430 push_expression_name, insert_exp): Likewise.
7431 * jv-lang.h: Forward declare "struct parser_state".
7432 (java_parse): Add "struct parser_state" argument.
7433 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7435 (yyparse): Redefine macro to m2_parse_internal.
7436 (pstate): New variable.
7437 (type_exp, exp, fblock, variable, type): Update calls to
7438 write_exp* and similars to use parser state.
7440 (m2_parse): New function.
7441 * m2-lang.h: Forward declare "struct parser_state".
7442 (m2_parse): Add "struct parser_state" argument.
7443 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7444 * objc-lang.h: Forward declare "struct parser_state".
7445 (end_msglist): Add "struct parser_state" argument.
7446 * p-exp.y (parse_type): Rewrite macro to use parser state.
7447 (yyparse): Redefine macro to pascal_parse_internal.
7448 (pstate): New variable.
7449 (parse_number): Add "struct parser_state" argument.
7450 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7451 write_exp* and similars in order to use parser state.
7452 (parse_number, yylex): Adjust code to use parser state.
7453 (pascal_parse): New function.
7454 * p-lang.h: Forward declare "struct parser_state".
7455 (pascal_parse): Add "struct parser_state" argument.
7456 * go-exp.y (parse_type): Rewrite macro to use parser state.
7457 (yyparse): Redefine macro to go_parse_internal.
7458 (pstate): New variable.
7459 (parse_number): Add "struct parser_state" argument.
7460 (type_exp, exp1, exp, variable, type): Update calls to
7461 write_exp* and similars in order to use parser state.
7462 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7463 to use parser state.
7464 (go_parse): Likewise.
7465 * go-lang.h: Forward declare "struct parser_state".
7466 (go_parse): Add "struct parser_state" argument.
7468 2014-03-27 Doug Evans <dje@google.com>
7470 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7472 2014-03-27 Doug Evans <dje@google.com>
7474 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7475 Remove argument abbrev_section. All callers updated.
7477 2014-03-27 Doug Evans <dje@google.com>
7479 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7480 addr_base, ranges_base.
7482 2014-03-26 Keith Seitz <keiths@redhat.com>
7484 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7485 types, not VAR_DOMAIN.
7487 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7489 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7491 * features/nios2-linux.c: Regenerated.
7492 * features/nios2.c: Regenerated.
7494 2014-03-25 Pedro Alves <palves@redhat.com>
7496 * cli/cli-script.c (script_from_file): Force the interpreter to
7499 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7501 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7502 small stack allocation.
7504 2014-03-24 Tristan Gingold <gingold@adacore.com>
7506 * darwin-nat.c (exc_server): Remove unused prototype.
7507 (darwin_dump_message): Correctly display data on x86_64.
7508 (darwin_encode_reply): Fix style.
7509 Add comments and fix indentation.
7511 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7513 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7515 2014-03-22 Doug Evans <xdje42@gmail.com>
7517 * infcmd.c: Whitespace fixes.
7518 (interrupt_command): Merge two function comments into one.
7520 2014-03-22 Doug Evans <xdje42@gmail.com>
7522 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7525 2014-03-22 Yao Qi <yao@codesourcery.com>
7527 * remote.c (target_read_live_memory): Remove.
7528 (memory_xfer_live_readonly_partial): Rename it to
7529 remote_xfer_live_readonly_partial. Remove argument 'object'.
7530 All callers updated. Call remote_read_bytes_1
7531 instead of target_read_live_memory.
7532 * tracepoint.c (set_traceframe_number): Remove.
7533 (make_cleanup_restore_traceframe_number): Likewise .
7534 * tracepoint.h (set_traceframe_number): Remove declaration.
7535 (make_cleanup_restore_traceframe_number): Likewise.
7537 2014-03-22 Yao Qi <yao@codesourcery.com>
7539 * remote.c (remote_read_bytes): Move code on reading from the
7541 (remote_read_bytes_1): ... here. New function.
7543 2014-03-22 Yao Qi <yao@codesourcery.com>
7545 * ctf.c (ctf_xfer_partial): Check the return value of
7546 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7547 return TARGET_XFER_UNAVAILABLE.
7548 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7549 * target.c (target_read_live_memory): Move it to remote.c.
7550 (memory_xfer_live_readonly_partial): Likewise.
7551 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7552 * remote.c (target_read_live_memory): Moved from target.c.
7553 (memory_xfer_live_readonly_partial): Likewise.
7554 (remote_read_bytes): Factored out from
7555 memory_xfer_partial_1.
7557 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7559 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7562 2014-03-21 Pedro Alves <palves@redhat.com>
7564 * infrun.c (normal_stop): Extend comment.
7566 2014-03-21 Hui Zhu <hui@codesourcery.com>
7567 Pedro Alves <palves@redhat.com>
7569 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7571 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7572 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7573 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7575 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7577 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7578 `z' formatted output modifier.
7580 2014-03-20 Tom Tromey <tromey@redhat.com>
7581 Sergio Durigan Junior <sergiodj@redhat.com>
7583 * probe.c (parse_probes): Turn assert into an ordinary error.
7584 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7585 exceptions when parsing probes. Rearrange the code for clarity.
7587 2014-03-20 Tom Tromey <tromey@redhat.com>
7590 * top.c (execute_command): Only dispatch events if the command
7593 2014-03-20 Tom Tromey <tromey@redhat.com>
7596 * infcall.c: Include event-top.h.
7597 (run_inferior_call): Call async_disable_stdin if needed.
7599 2014-03-20 Pedro Alves <palves@redhat.com>
7601 * infrun.c (prepare_to_proceed): Delete.
7602 (thread_still_needs_step_over): New function.
7603 (find_thread_needs_step_over): New function.
7604 (proceed): If the current thread needs a step-over, set its
7605 steping_over_breakpoint flag. Adjust to use
7606 find_thread_needs_step_over instead of prepare_to_proceed.
7607 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7608 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7610 (switch_back_to_stepped_thread): Step over breakpoints of all
7611 threads not the stepping thread, before switching back to the
7614 2014-03-20 Pedro Alves <palves@redhat.com>
7616 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7618 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7619 * infrun.c (saved_singlestep_ptid)
7620 (stepping_past_singlestep_breakpoint): Delete.
7621 (resume): Remove stepping_past_singlestep_breakpoint handling.
7622 (proceed): Store the prev_pc of the stepping thread too.
7623 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7625 (enum infwait_states): Delete infwait_thread_hop_state.
7626 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7628 (handle_inferior_event): Adjust.
7629 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7630 handling and the thread-hop code. Before removing single-step
7631 breakpoints, check whether the thread hit a single-step breakpoint
7632 of another thread. If it did, the trap is not a random signal.
7633 (switch_back_to_stepped_thread): If the event thread hit a
7634 single-step breakpoint, unblock it before switching to the
7635 stepping thread. Handle the case of the stepped thread having
7637 (keep_going): Handle the case of the current thread moving past a
7638 single-step breakpoint.
7640 2014-03-20 Pedro Alves <palves@redhat.com>
7643 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7644 are being stepped over.
7645 (breakpoint_address_match): Make extern.
7646 * breakpoint.h (breakpoint_address_match): New declaration.
7647 * inferior.h (stepping_past_instruction_at): New declaration.
7648 * infrun.c (struct step_over_info): New type.
7649 (step_over_info): New global.
7650 (set_step_over_info, clear_step_over_info)
7651 (stepping_past_instruction_at): New functions.
7652 (handle_inferior_event): Clear the step-over info when
7653 trap_expected is cleared.
7654 (resume): Remove now stale comment.
7655 (clear_proceed_status): Clear step-over info.
7656 (proceed): Adjust step-over handling to set or clear the step-over
7657 info instead of removing all breakpoints.
7658 (handle_signal_stop): When setting up a thread-hop, don't remove
7660 (stop_stepping): Clear step-over info.
7661 (keep_going): Adjust step-over handling to set or clear step-over
7662 info and then always inserting breakpoints, instead of removing
7663 all breakpoints when stepping over one.
7665 2014-03-20 Pedro Alves <palves@redhat.com>
7667 * infrun.c (previous_inferior_ptid): Adjust comment.
7668 (deferred_step_ptid): Delete.
7669 (infrun_thread_ptid_changed, prepare_to_proceed)
7670 (init_wait_for_inferior): Adjust.
7671 (handle_signal_stop): Delete deferred_step_ptid handling.
7673 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7676 * defs.h (sync_quit_force_run): New declaration.
7677 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7678 * event-top.c (async_sigterm_handler): New declaration.
7679 (async_sigterm_token): New variable.
7680 (async_init_signals): Create also async_sigterm_token.
7681 (async_sigterm_handler): New function.
7682 (sync_quit_force_run): New variable.
7683 (handle_sigterm): Replace quit_force call by other calls.
7684 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7686 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7688 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7689 offset into SPE pseudo registers.
7691 2014-03-18 Pedro Alves <palves@redhat.com>
7694 * inferior.h (print_stop_event): Declare.
7695 * infrun.c (print_stop_event): New, factored out from ...
7696 (normal_stop): ... this.
7697 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7698 of bpstat_print/print_stack_frame.
7700 2014-03-17 Tom Tromey <tromey@redhat.com>
7702 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7704 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7706 * ada-lang.c (decode_constrained_packed_array): Perform a
7707 minimal coercion for reference with coerce_ref instead of
7710 2014-03-17 Tristan Gingold <gingold@adacore.com>
7712 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7713 (darwin_solib_create_inferior_hook): Emit a warning if version
7716 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7718 * python/py-value.c (get_field_flag): Cast flag_name argument to
7719 PyObject_GetAttrString to support Python 2.4.
7721 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7723 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7724 (Global Maintainers): Remove Jan Kratochvil.
7726 2014-03-14 Pedro Alves <palves@redhat.com>
7728 * inferior.h (terminal_ours_for_output): Rename to ...
7729 (child_terminal_ours_for_output): ... this.
7730 (terminal_save_ours): Rename to ...
7731 (child_terminal_save_ours): ... this.
7732 (terminal_ours): Rename to ...
7733 (child_terminal_ours): ... this.
7734 (terminal_inferior): Rename to ...
7735 (child_terminal_inferior): ... this.
7736 (terminal_init_inferior): Rename to ...
7737 (child_terminal_init_inferior): ... this.
7738 (terminal_init_inferior_with_pgrp): Rename to ...
7739 (child_terminal_init_inferior_with_pgrp): ... this.
7740 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7741 (child_terminal_init_with_pgrp): ... this.
7742 (terminal_save_ours): Rename to ...
7743 (child_terminal_save_ours): ... this.
7744 (terminal_init_inferior): Rename to ...
7745 (child_terminal_init): ... this. Adjust.
7746 (terminal_inferior): Rename to ...
7747 (child_terminal_inferior): ... this.
7748 (terminal_ours_for_output): Rename to ...
7749 (child_terminal_ours_for_output): ... this. Adjust.
7750 (terminal_ours): Rename to ...
7751 (child_terminal_ours): ... this.
7752 (terminal_ours_1): Rename to ...
7753 (child_terminal_ours_1): ... this. Adjust.
7754 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7755 * windows-nat.c (do_initial_windows_stuff): Adjust.
7756 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7757 (gnu_terminal_init): ... this. Adjust.
7758 (gnu_target): Adjust.
7759 * inf-child.c (inf_child_target): Adjust.
7761 2014-03-13 Doug Evans <xdje42@gmail.com>
7764 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7767 2014-03-13 Doug Evans <xdje42@gmail.com>
7769 * value.c (record_latest_value): Call release_value_or_incref
7770 instead of release_value.
7772 2014-03-13 Pedro Alves <palves@redhat.com>
7774 * procfs.c (procfs_target): Don't override to_shortname,
7775 to_longname or to_doc.
7777 2014-03-13 Pedro Alves <palves@redhat.com>
7779 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7780 Unix in user visible strings.
7782 2014-03-12 Stan Shebs <stan@codesourcery.com>
7784 * gdbtypes.h: Annotate comments for Doxygen, add a page
7785 block comment with some general info.
7787 2014-03-12 Pedro Alves <palves@redhat.com>
7789 * infcmd.c (prepare_execution_command): New function, factored out
7790 from several execution commands.
7791 (run_command_1, continue_command, step_1, jump_command)
7792 (signal_command, until_command, advance_command, finish_command)
7793 (attach_command): Use prepare_execution_command.
7795 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7797 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7800 (struct arm_linux_thread_points): Removed.
7801 (struct arm_linux_process_info): New.
7802 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7803 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7804 (arm_linux_find_breakpoints_by_tid): Removed.
7805 (struct arch_lwp_info): New.
7806 (arm_linux_find_process_pid): New functions.
7807 (arm_linux_add_process): New functions.
7808 (arm_linux_process_info_get): New functions.
7809 (arm_linux_forget_process): New function.
7810 (arm_linux_get_debug_reg_state): New function.
7811 (struct update_registers_data): New.
7812 (update_registers_callback): New function.
7813 (arm_linux_insert_hw_breakpoint1): Updated.
7814 (arm_linux_remove_hw_breakpoint1): Updated.
7815 (arm_linux_insert_hw_breakpoint): Updated.
7816 (arm_linux_remove_hw_breakpoint): Updated.
7817 (arm_linux_insert_watchpoint): Updated.
7818 (arm_linux_remove_watchpoint): Updated.
7819 (arm_linux_new_thread): Updated.
7820 (arm_linux_prepare_to_resume): New function.
7821 (arm_linux_new_fork): New function.
7822 (_initialize_arm_linux_nat): Updated.
7824 2014-03-12 Pedro Alves <palves@redhat.com>
7826 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7828 2014-03-12 Tom Tromey <tromey@redhat.com>
7830 * inf-child.c (return_zero): New function.
7831 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7832 * aix-thread.c (aix_thread_inferior_created): New function.
7833 (aix_thread_attach): Remove.
7834 (init_aix_thread_ops): Don't set to_attach.
7835 (_initialize_aix_thread): Register inferior_created observer.
7836 * corelow.c (init_core_ops): Don't set to_attach or
7838 * exec.c (init_exec_ops): Don't set to_attach or
7840 * infcmd.c (run_command_1): Use find_run_target. Make direct
7842 (attach_command): Use find_attach_target. Make direct target
7844 * record-btrace.c (init_record_btrace_ops): Don't set
7846 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7848 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7849 set to_create_inferior.
7850 * target.c (complete_target_initialization): Add assertion.
7851 (target_create_inferior): Remove.
7852 (find_default_attach, find_default_create_inferior): Remove.
7853 (find_attach_target, find_run_target): New functions.
7854 (find_default_is_async_p, find_default_can_async_p)
7855 (target_supports_non_stop, target_attach): Remove.
7856 (init_dummy_target): Don't set to_create_inferior or
7857 to_supports_non_stop.
7858 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7859 TARGET_DEFAULT_FUNC.
7860 <to_create_inferior>: Add comment.
7861 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7862 TARGET_DEFAULT_RETURN.
7863 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7864 (find_attach_target, find_run_target): Declare.
7865 (target_create_inferior): Remove.
7866 (target_has_execution_1): Update comment.
7867 (target_supports_non_stop): Remove.
7868 * target-delegates.c: Rebuild.
7870 2014-03-12 Pedro Alves <palves@redhat.com>
7872 * inf-child.h: Update comment to not mention Unix.
7874 2014-03-12 Pedro Alves <palves@redhat.com>
7876 * inf-child.c: Update top comment to not mention Unix. Add
7877 generic comment describing how this target is meant to be used.
7878 (inf_child_post_attach, inf_child_post_startup_inferior)
7879 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7882 2014-03-12 Pedro Alves <palves@redhat.com>
7884 * nto-procfs.c: Include inf-child.h.
7885 (procfs_ops): Delete global.
7886 (procfs_can_run): Delete method.
7887 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7888 target pointer instead of referencing procfs_ops.
7889 (procfs_prepare_to_store): Delete.
7890 (init_procfs_ops): Delete function.
7891 (procfs_target): New function, based on init_procfs_ops, but
7892 inherit inf_child_target.
7893 (_initialize_procfs): Use procfs_target.
7895 2014-03-12 Pedro Alves <palves@redhat.com>
7897 * windows-nat.c: Include inf-child.h.
7898 (windows_ops): Delete global.
7899 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7901 (init_windows_ops): Delete function.
7902 (windows_target): New function, based on init_windows_ops, but
7903 inherit inf_child_target.
7904 (_initialize_windows_nat): Use windows_target. Install x86
7905 specific target methods here.
7907 2014-03-10 Doug Evans <xdje42@gmail.com>
7909 * guile/guile.c (call_initialize_gdb_module): New function.
7910 (initialize_guile): Replace call to scm_init_guile with call to
7913 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7915 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7916 in call to TYPE_CODE macro.
7918 2014-03-10 Jerome Guitton <guitton@adacore.com>
7920 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7921 Resolve tagged types to full view.
7923 2014-03-10 Hui Zhu <hui@codesourcery.com>
7925 * target.h (target_insert_breakpoint): Remove "hardware" from its
7928 2014-03-07 Doug Evans <dje@google.com>
7930 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7932 2014-03-07 Doug Evans <dje@google.com>
7934 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7935 Remove unused local comp_dir_attr. Assert exactly one of
7936 stub_comp_unit_die, stub_comp_dir is non-NULL.
7938 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7940 * target.h (complete_target_initialization, add_target):
7943 2014-03-07 Pedro Alves <palves@redhat.com>
7945 * go32-nat.c: Include inf-child.h.
7946 (go32_ops): Delete global.
7947 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7949 (go32_create_inferior): Push the passed in target pointer instead
7950 of referencing go32_ops.
7951 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7952 (go32_target): New function, based on init_go32_ops, but inherit
7954 (_initialize_go32_nat): Use go32_target. Move parts of
7957 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7959 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7960 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7961 SYMBOL_VALUE_ADDRESS.
7962 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7964 2014-03-06 Yao Qi <yao@codesourcery.com>
7966 * breakpoint.c (get_tracepoint_by_number): Remove argument
7967 optional_p. All callers updated. Adjust comments. Update
7969 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7971 2014-03-06 Yao Qi <yao@codesourcery.com>
7973 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7974 early if get_number returns zero. Use 'p' instead of 'args'.
7976 2014-03-06 Yao Qi <yao@codesourcery.com>
7978 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7981 2014-03-06 Yao Qi <yao@codesourcery.com>
7983 PR breakpoints/16508
7984 * tracepoint.c (check_trace_running): New function.
7985 (trace_find_command): Move code to check_trace_running and
7986 call check_trace_running.
7987 (trace_find_pc_command): Likewise.
7988 (trace_find_tracepoint_command): Likewise.
7989 (trace_find_line_command): Likewise.
7990 (trace_find_range_command): Likewise.
7991 * tracepoint.h (check_trace_running): Likewise.
7992 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7994 2014-03-06 Yao Qi <yao@codesourcery.com>
7996 * target.h (struct target_ops) <to_traceframe_info>: Use
7997 TARGET_DEFAULT_NORETURN (tcomplain ()).
7998 * target-delegates.c: Regenerated.
8000 2014-03-05 Pedro Alves <palves@redhat.com>
8003 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8004 void. Update comment.
8005 (dcache_xfer_memory): Delete.
8006 (dcache_read_memory_partial): New, based on the read bits of
8008 (dcache_update): Add status parameter. Use ULONGEST for len, and
8009 adjust. Discard cache lines if the reason for the update was
8011 * dcache.h (dcache_xfer_memory): Delete declaration.
8012 (dcache_read_memory_partial): New declaration.
8013 (dcache_update): Update prototype.
8014 * target.c (raw_memory_xfer_partial): Update the dcache here.
8015 (memory_xfer_partial_1): Don't handle dcache writes here.
8017 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8019 * remote-sim.c (gdbsim_load): Add const to prog.
8021 2014-03-03 Tom Tromey <tromey@redhat.com>
8023 * elfread.c (probe_key): Change to bfd_data.
8024 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8025 now per-BFD, not per-objfile.
8026 * stap-probe.c (stap_probe_destroy): Update comment.
8027 (handle_stap_probe): Allocate on the per-BFD obstack.
8029 2014-03-03 Tom Tromey <tromey@redhat.com>
8031 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8032 * breakpoint.c (create_longjmp_master_breakpoint): Use
8034 (add_location_to_breakpoint, bkpt_probe_insert_location)
8035 (bkpt_probe_remove_location): Update.
8036 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8037 * elfread.c (elf_symfile_relocate_probe): Remove.
8038 (elf_probe_fns): Update.
8039 (insert_exception_resume_breakpoint): Change type of "probe"
8040 parameter to bound_probe.
8041 (check_exception_resume): Update.
8042 * objfiles.c (objfile_relocate1): Don't relocate probes.
8043 * probe.c (bound_probe_s): New typedef.
8044 (parse_probes): Use get_probe_address. Set sal's objfile.
8045 (find_probe_by_pc): Return a bound_probe.
8046 (collect_probes): Return a VEC(bound_probe_s).
8047 (compare_probes): Update.
8048 (gen_ui_out_table_header_info): Change type of "probes"
8050 (info_probes_for_ops): Update.
8051 (get_probe_address): New function.
8052 (probe_safe_evaluate_at_pc): Update.
8053 * probe.h (struct probe_ops) <get_probe_address>: New field.
8054 <set_semaphore, clear_semaphore>: Add objfile parameter.
8055 (struct probe) <objfile>: Remove field.
8057 <address>: Update comment.
8058 (struct bound_probe): New.
8059 (find_probe_by_pc): Return a bound_probe.
8060 (get_probe_address): Declare.
8061 * solib-svr4.c (struct probe_and_action) <address>: New field.
8062 (hash_probe_and_action, equal_probe_and_action): Update.
8063 (register_solib_event_probe): Add address parameter.
8064 (solib_event_probe_at): Update.
8065 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8067 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8068 (stap_get_probe_address): New function.
8069 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8070 (compile_probe_arg): Update.
8071 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8073 (handle_stap_probe): Don't relocate the probe.
8074 (stap_relocate): Remove.
8075 (stap_gen_info_probes_table_values): Update.
8076 (stap_probe_ops): Remove stap_relocate.
8077 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8078 (debug_sym_probe_fns): Update.
8079 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8080 * symtab.c (init_sal): Use memset.
8081 * symtab.h (struct symtab_and_line) <objfile>: New field.
8082 * tracepoint.c (start_tracing, stop_tracing): Update.
8084 2014-03-03 Tom Tromey <tromey@redhat.com>
8086 * probe.h (parse_probes, find_probe_by_pc)
8087 (find_probes_in_objfile): Fix comments.
8089 2014-03-02 Doug Evans <xdje42@gmail.com>
8091 * infrun.c (handle_signal_stop): Replace test for
8092 TARGET_WAITKIND_STOPPED with an assert.
8094 2014-03-02 Doug Evans <xdje42@gmail.com>
8096 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8098 2014-03-02 Doug Evans <xdje42@gmail.com>
8100 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8102 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8104 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8106 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8108 * i386obsd-nat.c: Include "obsd-nat.h".
8109 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8111 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8113 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8115 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8117 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8119 * mips64obsd-nat.c: Include "obsd-nath".
8120 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8122 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8124 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8126 * amd64obsd-nat.c: Include "obsd-nat,h.
8127 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8129 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8131 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8133 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8134 (find_overload_match): Update call to find_oload_champ.
8135 (find_oload_champ_namespace_loop): Likewise
8137 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8139 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8141 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8142 * config/sparc/obsd64.mh: New file.
8143 * sparc64obsd-nat.c: New file.
8145 * obsd-nat.h: New file.
8146 * obsd-nat.c: New file.
8147 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8148 (ALLDEPFILES): Add obsd-nat.c.
8150 2014-02-28 Tom Tromey <tromey@redhat.com>
8152 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8153 * cli-out.h (cli_ui_out_impl): Now const.
8154 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8155 * ui-out.c (struct ui_out) <impl>: Now const.
8156 (default_ui_out_impl): Now const.
8157 (ui_out_new): Make 'impl' parameter const.
8158 * ui-out.h (ui_out_new): Update.
8160 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8162 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8164 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8166 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8168 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8170 Additional PR 8882 fix.
8171 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8173 2014-02-27 Pedro Alves <palves@redhat.com>
8175 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8178 2014-02-27 Pedro Alves <palves@redhat.com>
8181 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8182 * nat/linux-waitpid.c: Include string.h.
8183 (status_to_str): Moved here and made extern.
8184 * nat/linux-waitpid.h (status_to_str): New declaration.
8186 2014-02-27 Hui Zhu <hui@codesourcery.com>
8189 * infrun.c (ptid_match): Move ...
8190 * common/ptid.c (ptid_match): ... here.
8191 * inferior.h (ptid_match): Move ...
8192 * common/ptid.h (ptid_match): ... here.
8194 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8196 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8197 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8200 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8202 * obsd-tdep.c (obsd_auxv_parse): New function.
8203 (obsd_init_abi): Set auxv_parse.
8205 * gdbarch.sh (auxv_parse): New.
8206 * gdbarch.h: Regenerated.
8207 * gdbarch.c: Regenerated.
8208 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8210 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8212 * guile/scm-value.c (gdbscm_history_append_x): New function.
8213 (value_functions): Add it.
8215 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8217 * dwarf2read.c (attr_value_as_address): New function.
8218 (dwarf2_find_base_address, read_call_site_scope): Use
8219 attr_value_as_address in place of DW_ADDR.
8220 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8221 the low and high addresses. Slight rework of the handling
8222 of the high pc being a constant form, and limit it to
8223 DWARF verson 4 or higher.
8224 (dwarf2_record_block_ranges): Likewise.
8225 (read_partial_die): Likewise.
8226 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8228 2014-02-26 Tom Tromey <tromey@redhat.com>
8230 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8232 2014-02-26 Tom Tromey <tromey@redhat.com>
8234 * elfread.c (elf_read_minimal_symbols): Return early if
8235 minimal symbols have already been read. Add "ei" parameter.
8236 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8237 * minsyms.c (prim_record_minimal_symbol_full): Update.
8238 * objfiles.h (struct objstats) <n_minsyms>: Move...
8239 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8240 * symmisc.c (print_objfile_statistics): Update.
8242 2014-02-26 Tom Tromey <tromey@redhat.com>
8244 * elfread.c (elf_read_minimal_symbols): New function, from
8246 (elf_symfile_read): Call it.
8248 2014-02-26 Tom Tromey <tromey@redhat.com>
8250 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8251 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8252 (lookup_minimal_symbol_solib_trampoline)
8253 (lookup_minimal_symbol_by_pc_section_1)
8254 (lookup_minimal_symbol_and_objfile): Update.
8255 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8256 Don't allocate a minimal symbol if minsyms have already been read.
8257 (build_minimal_symbol_hash_tables): Update.
8258 (install_minimal_symbols): Do nothing if minsyms already read.
8259 Use the per-BFD obstack.
8260 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8261 * objfiles.c (allocate_objfile): Call
8262 terminate_minimal_symbol_table later.
8263 (have_minimal_symbols): Update.
8264 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8265 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8266 Move from struct objfile.
8267 <minsyms_read>: New field.
8268 (struct objfile) <msymbols, minimal_symbol_count,
8269 msymbol_hash, msymbol_demangled_hash>: Move.
8270 (ALL_OBJFILE_MSYMBOLS): Update.
8271 * symfile.c (read_symbols): Set minsyms_read.
8272 (reread_symbols): Update.
8273 * symmisc.c (dump_objfile, dump_msymbols): Update.
8275 2014-02-26 Tom Tromey <tromey@redhat.com>
8277 * minsyms.c (msymbols_sort): Remove.
8278 * minsyms.h (msymbols_sort): Remove.
8279 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8280 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8281 * elfread.c (elf_symtab_read): Don't add section offsets.
8282 * xcoffread.c (record_minimal_symbol): Don't add section offset
8283 to minimal symbol address.
8284 * somread.c (text_offset, data_offset): Remove.
8285 (som_symtab_read): Don't add section offsets to minimal symbol
8287 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8288 Don't add section offsets to minimal symbols.
8289 * coffread.c (coff_symtab_read): Don't add section offsets
8290 to minimal symbol addresses.
8291 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8292 to minimal symbol addresses.
8293 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8294 section offset to minimal symbol addresses.
8295 * mdebugread.c (parse_partial_symbols): Don't add section
8296 offset to minimal symbol addresses.
8297 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8298 offset to minimal symbol addresses.
8300 2014-02-26 Tom Tromey <tromey@redhat.com>
8302 * ada-lang.c (ada_main_name): Update.
8303 (ada_add_standard_exceptions): Update.
8304 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8305 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8306 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8307 * auxv.c (ld_so_xfer_auxv): Update.
8308 * avr-tdep.c (avr_scan_prologue): Update.
8309 * ax-gdb.c (gen_var_ref): Update.
8310 * blockframe.c (get_pc_function_start)
8311 (find_pc_partial_function_gnu_ifunc): Update.
8312 * breakpoint.c (create_overlay_event_breakpoint)
8313 (create_longjmp_master_breakpoint)
8314 (create_std_terminate_master_breakpoint)
8315 (create_exception_master_breakpoint): Update.
8316 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8317 * c-valprint.c (c_val_print): Update.
8318 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8319 * common/agent.c (agent_look_up_symbols): Update.
8320 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8321 * dwarf2loc.c (call_site_to_target_addr): Update.
8322 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8323 * elfread.c (elf_gnu_ifunc_record_cache)
8324 (elf_gnu_ifunc_resolve_by_got): Update.
8325 * findvar.c (default_read_var_value): Update.
8326 * frame.c (inside_main_func): Update.
8327 * frv-tdep.c (frv_frame_this_id): Update.
8328 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8329 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8331 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8332 (hppa_hpux_find_dummy_bpaddr): Update.
8333 * hppa-tdep.c (hppa_symbol_address): Update.
8334 * infcmd.c (until_next_command): Update.
8335 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8337 * linespec.c (minsym_found, add_minsym): Update.
8338 * linux-nat.c (get_signo): Update.
8339 * linux-thread-db.c (inferior_has_bug): Update.
8340 * m32c-tdep.c (m32c_return_value)
8341 (m32c_m16c_address_to_pointer): Update.
8342 * m32r-tdep.c (m32r_frame_this_id): Update.
8343 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8344 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8345 * maint.c (maintenance_translate_address): Update.
8346 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8347 (frob_address): New function.
8348 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8349 frob_address. Rename parameter to "pc_in".
8350 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8352 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8354 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8355 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8356 * objc-lang.c (find_objc_msgsend): Update.
8357 * objfiles.c (objfile_relocate1): Update.
8358 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8359 * p-valprint.c (pascal_val_print): Update.
8360 * parse.c (write_exp_msymbol): Update.
8361 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8362 (ppc_elfv2_skip_entrypoint): Update.
8363 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8364 * printcmd.c (build_address_symbolic, msym_info)
8365 (address_info): Update.
8366 * proc-service.c (ps_pglobal_lookup): Update.
8367 * psymtab.c (find_pc_sect_psymtab_closer)
8368 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8369 Change msymbol parameter to bound_minimal_symbol.
8370 * ravenscar-thread.c (get_running_thread_id): Update.
8371 * remote.c (remote_check_symbols): Update.
8372 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8374 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8375 * solib-dsbt.c (lm_base): Update.
8376 * solib-frv.c (lm_base, main_got): Update.
8377 * solib-irix.c (locate_base): Update.
8378 * solib-som.c (som_solib_create_inferior_hook)
8379 (link_map_start): Update.
8380 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8381 * solib-svr4.c (elf_locate_base, enable_break): Update.
8382 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8383 (flush_ea_cache): Update.
8384 * stabsread.c (define_symbol, scan_file_globals): Update.
8385 * stack.c (find_frame_funname): Update.
8386 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8387 (debug_qf_find_pc_sect_symtab): Update.
8388 * symfile.c (simple_read_overlay_table)
8389 (simple_overlay_update): Update.
8390 * symfile.h (struct quick_symbol_functions)
8391 <find_pc_sect_symtab>: Change type of msymbol to
8392 bound_minimal_symbol.
8393 * symmisc.c (dump_msymbols): Update.
8394 * symtab.c (find_pc_sect_symtab_via_partial)
8395 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8396 (search_symbols, print_msymbol_info): Update.
8397 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8398 (MSYMBOL_VALUE_ADDRESS): Redefine.
8399 (BMSYMBOL_VALUE_ADDRESS): New macro.
8400 * tracepoint.c (scope_info): Update.
8401 * tui/tui-disasm.c (tui_find_disassembly_address)
8402 (tui_get_begin_asm_address): Update.
8403 * valops.c (find_function_in_inferior): Update.
8404 * value.c (value_static_field, value_fn_field): Update.
8406 2014-02-26 Tom Tromey <tromey@redhat.com>
8408 * ada-lang.c (ada_update_initial_language): Update.
8409 (ada_main_name, ada_has_this_exception_support): Update.
8410 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8411 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8412 * arm-tdep.c (arm_skip_stub): Update.
8413 * auxv.c (ld_so_xfer_auxv): Update.
8414 * avr-tdep.c (avr_scan_prologue): Update.
8415 * ax-gdb.c (gen_var_ref): Update.
8416 * breakpoint.c (struct breakpoint_objfile_data)
8417 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8418 type to bound_minimal_symbol.
8419 (create_overlay_event_breakpoint)
8420 (create_longjmp_master_breakpoint)
8421 (create_std_terminate_master_breakpoint)
8422 (create_exception_master_breakpoint): Update.
8423 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8424 * c-exp.y (classify_name): Update.
8425 * coffread.c (coff_symfile_read): Update.
8426 * common/agent.c (agent_look_up_symbols): Update.
8427 * d-lang.c (d_main_name): Update.
8428 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8429 * dec-thread.c (enable_dec_thread): Update.
8430 * dwarf2loc.c (call_site_to_target_addr): Update.
8431 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8432 * eval.c (evaluate_subexp_standard): Update.
8433 * findvar.c (struct minsym_lookup_data) <result>: Change type
8434 to bound_minimal_symbol.
8436 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8437 * frame.c (inside_main_func): Update.
8438 * frv-tdep.c (frv_frame_this_id): Update.
8439 * gcore.c (call_target_sbrk): Update.
8440 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8441 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8443 * go-lang.c (go_main_name): Update.
8444 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8445 (hppa_hpux_find_import_stub_for_addr): Update.
8446 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8447 Update. Change return type.
8448 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8450 * jit.c (jit_breakpoint_re_set_internal): Update.
8451 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8453 * linux-nat.c (get_signo): Update.
8454 * linux-thread-db.c (inferior_has_bug): Update
8455 * m32c-tdep.c (m32c_return_value)
8456 (m32c_m16c_address_to_pointer): Update.
8457 * m32r-tdep.c (m32r_frame_this_id): Update.
8458 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8459 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8460 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8461 lookup_minimal_symbol. Change return type.
8462 (lookup_minimal_symbol): Remove.
8463 (lookup_bound_minimal_symbol): Update.
8464 (lookup_minimal_symbol_text): Change return type.
8465 (lookup_minimal_symbol_solib_trampoline): Change return type.
8466 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8467 (lookup_minimal_symbol_solib_trampoline): Change return type.
8468 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8469 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8470 (value_nsstring, find_imps): Update.
8471 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8472 * p-lang.c (pascal_main_name): Update.
8473 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8474 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8475 * proc-service.c (ps_pglobal_lookup): Update.
8476 * ravenscar-thread.c (get_running_thread_msymbol): Change
8478 (has_ravenscar_runtime, get_running_thread_id): Update.
8479 * remote.c (remote_check_symbols): Update.
8480 * sol-thread.c (ps_pglobal_lookup): Update.
8481 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8482 * solib-dsbt.c (lm_base): Update.
8483 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8485 * solib-irix.c (locate_base): Update.
8486 * solib-som.c (som_solib_create_inferior_hook)
8487 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8489 * solib-spu.c (spu_enable_break): Update.
8490 * solib-svr4.c (elf_locate_base, enable_break): Update.
8491 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8492 (flush_ea_cache): Update.
8493 * stabsread.c (define_symbol): Update.
8494 * symfile.c (simple_read_overlay_table): Update.
8495 * symtab.c (find_pc_sect_line): Update.
8496 * tracepoint.c (scope_info): Update.
8497 * tui-disasm.c (tui_get_begin_asm_address): Update.
8498 * value.c (value_static_field): Update.
8500 2014-02-26 Tom Tromey <tromey@redhat.com>
8502 * minsyms.c (prim_record_minimal_symbol_full): Use
8503 SET_MSYMBOL_VALUE_ADDRESS.
8504 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8505 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8506 SET_MSYMBOL_VALUE_ADDRESS.
8507 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8508 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8510 2014-02-26 Tom Tromey <tromey@redhat.com>
8512 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8513 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8514 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8515 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8516 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8517 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8518 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8519 * ada-lang.c (ada_main_name): Update.
8520 (ada_lookup_simple_minsym): Update.
8521 (ada_make_symbol_completion_list): Update.
8522 (ada_add_standard_exceptions): Update.
8523 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8524 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8525 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8526 * arm-tdep.c (skip_prologue_function): Update.
8527 (arm_skip_stack_protector, arm_skip_stub): Update.
8528 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8529 (arm_wince_skip_main_prologue): Update.
8530 * auxv.c (ld_so_xfer_auxv): Update.
8531 * avr-tdep.c (avr_scan_prologue): Update.
8532 * ax-gdb.c (gen_var_ref): Update.
8533 * block.c (call_site_for_pc): Update.
8534 * blockframe.c (get_pc_function_start): Update.
8535 (find_pc_partial_function_gnu_ifunc): Update.
8536 * breakpoint.c (create_overlay_event_breakpoint): Update.
8537 (create_longjmp_master_breakpoint): Update.
8538 (create_std_terminate_master_breakpoint): Update.
8539 (create_exception_master_breakpoint): Update.
8540 (resolve_sal_pc): Update.
8541 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8542 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8544 * c-valprint.c (c_val_print): Update.
8545 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8546 * coffread.c (coff_symfile_read): Update.
8547 * common/agent.c (agent_look_up_symbols): Update.
8548 * dbxread.c (find_stab_function_addr): Update.
8549 (end_psymtab): Update.
8550 * dwarf2loc.c (call_site_to_target_addr): Update.
8551 (func_verify_no_selftailcall): Update.
8552 (tailcall_dump): Update.
8553 (call_site_find_chain_1): Update.
8554 (dwarf_expr_reg_to_entry_parameter): Update.
8555 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8556 (elf_gnu_ifunc_resolve_by_got): Update.
8557 * f-valprint.c (info_common_command): Update.
8558 * findvar.c (read_var_value): Update.
8559 * frame.c (get_prev_frame_1): Update.
8560 (inside_main_func): Update.
8561 * frv-tdep.c (frv_skip_main_prologue): Update.
8562 (frv_frame_this_id): Update.
8563 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8564 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8565 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8566 (gnuv3_skip_trampoline): Update.
8567 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8568 (hppa64_hpux_in_solib_call_trampoline): Update.
8569 (hppa_hpux_skip_trampoline_code): Update.
8570 (hppa64_hpux_search_dummy_call_sequence): Update.
8571 (hppa_hpux_find_import_stub_for_addr): Update.
8572 (hppa_hpux_find_dummy_bpaddr): Update.
8573 * hppa-tdep.c (hppa_symbol_address)
8574 (hppa_lookup_stub_minimal_symbol): Update.
8575 * i386-tdep.c (i386_skip_main_prologue): Update.
8576 (i386_pe_skip_trampoline_code): Update.
8577 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8578 * infcall.c (get_function_name): Update.
8579 * infcmd.c (until_next_command): Update.
8580 * jit.c (jit_breakpoint_re_set_internal): Update.
8581 (jit_inferior_init): Update.
8582 * linespec.c (minsym_found): Update.
8583 (add_minsym): Update.
8584 * linux-fork.c (info_checkpoints_command): Update.
8585 * linux-nat.c (get_signo): Update.
8586 * linux-thread-db.c (inferior_has_bug): Update.
8587 * m32c-tdep.c (m32c_return_value): Update.
8588 (m32c_m16c_address_to_pointer): Update.
8589 (m32c_m16c_pointer_to_address): Update.
8590 * m32r-tdep.c (m32r_frame_this_id): Update.
8591 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8592 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8593 * maint.c (maintenance_translate_address): Update.
8594 * minsyms.c (add_minsym_to_hash_table): Update.
8595 (add_minsym_to_demangled_hash_table): Update.
8596 (msymbol_objfile): Update.
8597 (lookup_minimal_symbol): Update.
8598 (iterate_over_minimal_symbols): Update.
8599 (lookup_minimal_symbol_text): Update.
8600 (lookup_minimal_symbol_by_pc_name): Update.
8601 (lookup_minimal_symbol_solib_trampoline): Update.
8602 (lookup_minimal_symbol_by_pc_section_1): Update.
8603 (lookup_minimal_symbol_and_objfile): Update.
8604 (prim_record_minimal_symbol_full): Update.
8605 (compare_minimal_symbols): Update.
8606 (compact_minimal_symbols): Update.
8607 (build_minimal_symbol_hash_tables): Update.
8608 (install_minimal_symbols): Update.
8609 (terminate_minimal_symbol_table): Update.
8610 (find_solib_trampoline_target): Update.
8611 (minimal_symbol_upper_bound): Update.
8612 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8613 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8614 (mips_skip_pic_trampoline_code): Update.
8615 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8616 * objc-lang.c (selectors_info): Update.
8617 (classes_info): Update.
8618 (find_methods): Update.
8619 (find_imps): Update.
8620 (find_objc_msgsend): Update.
8621 * objfiles.c (objfile_relocate1): Update.
8622 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8623 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8624 * p-valprint.c (pascal_val_print): Update.
8625 * parse.c (write_exp_msymbol): Update.
8626 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8627 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8628 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8629 * printcmd.c (build_address_symbolic): Update.
8631 (address_info): Update.
8632 * proc-service.c (ps_pglobal_lookup): Update.
8633 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8634 (find_pc_sect_psymtab): Update.
8635 * python/py-framefilter.c (py_print_frame): Update.
8636 * ravenscar-thread.c (get_running_thread_id): Update.
8637 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8639 * remote.c (remote_check_symbols): Update.
8640 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8641 (rs6000_skip_trampoline_code): Update.
8642 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8643 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8644 * solib-dsbt.c (lm_base): Update.
8645 * solib-frv.c (lm_base): Update.
8647 * solib-irix.c (locate_base): Update.
8648 * solib-som.c (som_solib_create_inferior_hook): Update.
8649 (som_solib_desire_dynamic_linker_symbols): Update.
8650 (link_map_start): Update.
8651 * solib-spu.c (spu_enable_break): Update.
8652 (ocl_enable_break): Update.
8653 * solib-svr4.c (elf_locate_base): Update.
8654 (enable_break): Update.
8655 * spu-tdep.c (spu_get_overlay_table): Update.
8656 (spu_catch_start): Update.
8657 (flush_ea_cache): Update.
8658 * stabsread.c (define_symbol): Update.
8659 (scan_file_globals): Update.
8660 * stack.c (find_frame_funname): Update.
8661 (frame_info): Update.
8662 * symfile.c (simple_read_overlay_table): Update.
8663 (simple_overlay_update): Update.
8664 * symmisc.c (dump_msymbols): Update.
8665 * symtab.c (fixup_section): Update.
8666 (find_pc_sect_line): Update.
8667 (skip_prologue_sal): Update.
8668 (search_symbols): Update.
8669 (print_msymbol_info): Update.
8670 (rbreak_command): Update.
8671 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8672 (completion_list_objc_symbol): Update.
8673 (default_make_symbol_completion_list_break_on): Update.
8674 * tracepoint.c (scope_info): Update.
8675 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8676 (tui_get_begin_asm_address): Update.
8677 * valops.c (find_function_in_inferior): Update.
8678 * value.c (value_static_field): Update.
8679 (value_fn_field): Update.
8681 2014-02-26 Tom Tromey <tromey@redhat.com>
8683 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8684 bound minimal symbols. Move code that knows about minsym
8686 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8688 * minsyms.h (minimal_symbol_upper_bound): Declare.
8689 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8690 minimal_symbol_upper_bound.
8692 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8694 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8695 Use the type's name if its basic type does not have a tag.
8697 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8699 * dwarf2read.c (read_subrange_type): Add comment.
8701 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8703 * dwarf2read.c (update_enumeration_type_from_children): New
8704 function, mostly extracted from process_structure_scope.
8705 (read_enumeration_type): Call update_enumeration_type_from_children.
8706 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8707 and flag_flag_enum fields.
8709 2014-02-26 Pedro Alves <palves@redhat.com>
8711 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8712 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8713 to_xfer_partial method.
8715 2014-02-26 Pedro Alves <palves@redhat.com>
8717 * target.c (complete_target_initialization): Don't install
8718 default_xfer_partial as to_xfer_partial hook.
8720 (update_current_target): Don't INHERIT nor de_fault
8721 deprecated_xfer_memory. Delete de_fault macro.
8722 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8723 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8724 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8727 2014-02-26 Pedro Alves <palves@redhat.com>
8729 * go32-nat.c (my_write_child): New function.
8730 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8731 (go32_xfer_partial): New function.
8732 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8733 Instead install a to_xfer_partial hook.
8735 2014-02-26 Pedro Alves <palves@redhat.com>
8737 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8738 to_xfer_partial helper. Rewrite.
8739 (procfs_xfer_partial): New function.
8740 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8741 Install a to_xfer_partial hook.
8743 2014-02-26 Pedro Alves <palves@redhat.com>
8745 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8746 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8747 (m32r_xfer_partial): New function.
8748 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8749 Install a to_xfer_partial hook.
8751 2014-02-26 Pedro Alves <palves@redhat.com>
8753 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8755 (mips_xfer_partial): New function.
8756 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8757 hook. Install a to_xfer_partial hook.
8759 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8761 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8762 * gdbtypes.c (create_array_type_with_stride): New function,
8763 renaming create_array_type, but with an added parameter
8764 called "bit_stride".
8765 (create_array_type): Re-implement using
8766 create_array_type_with_stride.
8767 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8768 and DW_AT_bit_stride attributes.
8770 2014-02-26 Pedro Alves <palves@redhat.com>
8772 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8773 task-specific breakpoints.
8775 2014-02-25 Pedro Alves <palves@redhat.com>
8777 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8778 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8780 2014-02-25 Stan Shebs <stan@codesourcery.com>
8782 * defs.h: Annotate comments for Doxygen.
8784 2014-02-25 Tom Tromey <tromey@redhat.com>
8786 * target.h (target_ignore): Don't declare.
8787 * target.c (target_ignore): Remove.
8789 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8792 * auto-load.c (auto_load_objfile_script_1): Change filename to
8795 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8797 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8798 documentation. Adjust prototype to match the target_ops
8799 to_xfer_partial method. Adjust implementation accordingly.
8801 2014-02-25 Hui Zhu <hui@codesourcery.com>
8803 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8806 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8808 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8809 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8810 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8811 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8812 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8813 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8814 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8815 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8817 (rl78_register_type): Use a data pointer type for SP and
8818 new pseudo registers mentioned above. Use a 16 bit integer
8819 type for all other register pairs.
8820 (rl78_register_name, rl78_g10_register_name): Update for
8821 new pseudo registers.
8822 (rl78_pseudo_register_read): Likewise.
8823 (rl78_pseudo_register_write): Likewise.
8824 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8825 to the newly added pseudo registers.
8827 2014-02-24 Doug Evans <dje@google.com>
8829 * value.c (record_latest_value): Fix comment.
8830 * printcmd.c (print_command_1): Remove code to handle -1 return from
8831 record_latest_value.
8833 2014-02-24 Pedro Alves <palves@redhat.com>
8835 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8836 deprecated_xfer_memory hook.
8837 (procfs_xfer_partial): Call procfs_xfer_memory instead
8838 of the deprecated_xfer_memory target hook.
8839 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8842 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8844 * windows-nat.c (windows_xfer_shared_libraries): Return
8845 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8846 requested object is TARGET_OBJECT_LIBRARIES.
8848 2014-02-24 Yao Qi <yao@codesourcery.com>
8850 * target.h (enum target_xfer_status)
8851 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8852 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8854 * corefile.c (memory_error_message): User updated.
8855 * exec.c (section_table_read_available_memory): Likewise.
8856 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8857 * target.c (target_xfer_status_to_string): Likewise.
8858 (raw_memory_xfer_partial): Likewise.
8859 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8860 * valops.c (read_value_memory): Likewise.
8861 * exec.h: Update comments.
8863 2014-02-24 Yao Qi <yao@codesourcery.com>
8865 * target.c (target_xfer_status_to_string): Rename argument err
8867 * target.h (target_xfer_status_to_string): Update declaration.
8868 Replace target_xfer_error_to_string with
8869 target_xfer_status_to_string in comment.
8871 2014-02-24 Yao Qi <yao@codesourcery.com>
8873 * mips-linux-nat.c (super_close): Update its type.
8874 (mips_linux_close): Pass 'self' to super_close.
8876 2014-02-24 Yao Qi <yao@codesourcery.com>
8878 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8879 * corefile.c (read_memory): Adjusted.
8880 * target.c (target_write_with_progress): Adjusted.
8882 2014-02-23 Yao Qi <yao@codesourcery.com>
8886 2013-10-25 Yao Qi <yao@codesourcery.com>
8888 * remote.c (remote_traceframe_info): Return early if
8889 traceframe is not selected.
8891 2013-07-19 Yao Qi <yao@codesourcery.com>
8893 * target.c (update_current_target): Change the default action
8894 of 'to_traceframe_info' from tcomplain to return_zero.
8895 * target.h (struct target_ops) <to_traceframe_info>: Add more
8898 2014-02-23 Yao Qi <yao@codesourcery.com>
8900 * valops.c (read_value_memory): Rewrite it. Call
8901 target_xfer_partial in a loop.
8902 * exec.h (section_table_available_memory): Remove declaration.
8903 Move comments to ...
8904 * exec.c (section_table_available_memory): ... here. Make it
8907 2014-02-23 Yao Qi <yao@codesourcery.com>
8909 * exec.c (section_table_read_available_memory): New function.
8910 * exec.h (section_table_read_available_memory): Declare.
8911 * ctf.c (ctf_xfer_partial): Call
8912 section_table_read_available_memory.
8913 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8915 2014-02-23 Yao Qi <yao@codesourcery.com>
8917 * ctf.c (ctf_xfer_partial): Move code to ...
8918 * exec.c (exec_read_partial_read_only): ... it. New function.
8919 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8920 * tracefile.c: Include "exec.h".
8921 * exec.h (exec_read_partial_read_only): Declare.
8923 2014-02-23 Yao Qi <yao@codesourcery.com>
8925 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8926 (tfile_has_memory): Remove.
8927 (init_tfile_ops): Don't set fields to_has_all_memory and
8928 to_has_memory of tfile_ops.
8929 * tracefile.c (tracefile_has_all_memory): New function.
8930 (tracefile_has_memory): New function.
8931 (init_tracefile_ops): Initialize fields to_has_all_memory and
8932 to_has_memory of 'ops'.
8934 2014-02-23 Yao Qi <yao@codesourcery.com>
8936 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8937 (ctf_thread_alive, ctf_get_trace_status): Remove.
8938 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8940 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8941 (tfile_has_stack, tfile_has_registers): Remove.
8942 (tfile_thread_alive): Remove.
8943 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8945 * tracefile.c (tracefile_has_stack): New function.
8946 (tracefile_has_registers): New function.
8947 (tracefile_thread_alive): New function.
8948 (tracefile_get_trace_status): New function.
8949 (init_tracefile_ops): New function.
8950 * tracefile.h (init_tracefile_ops): Declare.
8952 2014-02-23 Yao Qi <yao@codesourcery.com>
8954 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8955 (O_LARGEFILE): Likewise.
8956 (tfile_ops): Likewise.
8957 (TRACE_HEADER_SIZE): Likewise.
8958 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8959 (cur_data_size): Likewise.
8960 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8961 (tfile_close, tfile_files_info): Likewise.
8962 (tfile_get_trace_status): Likewise.
8963 (tfile_get_tracepoint_status): Likewise.
8964 (tfile_get_traceframe_address): Likewise.
8965 (tfile_trace_find, match_blocktype): Likewise.
8966 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8967 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8968 (tfile_get_trace_state_variable_value): Likewise.
8969 (tfile_has_all_memory, tfile_has_memory): Likewise.
8970 (tfile_has_stack, tfile_has_registers): Likewise.
8971 (tfile_thread_alive, build_traceframe_info): Likewise.
8972 (tfile_traceframe_info, init_tfile_ops): Likewise.
8973 (_initialize_tracepoint): Don't call init_tfile_ops
8974 and add_target_with_completer.
8975 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8976 exec.h, completer.h and filenames.h.
8977 (_initialize_tracefile_tfile): New function.
8979 2014-02-23 Yao Qi <yao@codesourcery.com>
8981 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8983 (HFILES_NO_SRCDIR): Add tracefile.h.
8984 * ctf.c: Include "tracefile.h".
8985 * tracefile.h: New file.
8986 * tracefile.c: New file
8987 * tracefile-tfile.c: New file.
8988 * tracepoint.c: Include "tracefile.h".
8989 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8990 (stop_reason_names): Add const.
8991 (trace_file_writer_xfree): Move it to tracefile.c.
8992 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8993 (trace_save_ctf): Likewise.
8994 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8995 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8996 (tfile_write_header, tfile_write_regblock_type): Likewise.
8997 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8998 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8999 (tfile_write_raw_data, tfile_end): Likewise.
9000 (tfile_trace_file_writer_new): Likewise.
9001 (free_uploaded_tp): Make it extern.
9002 (free_uploaded_tsv): Make it extern.
9003 (_initialize_tracepoint): Move code to register command 'tsave'
9005 * tracepoint.h (stop_reason_names): Declare.
9006 (struct trace_frame_write_ops): Move it to tracefile.h.
9007 (struct trace_file_write_ops): Likewise.
9008 (struct trace_file_writer): Likewise.
9009 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9011 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9014 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9016 (get_cores_used_by_process): New parameter num_cores, use it.
9017 (linux_xfer_osdata_processes): Pass num_cores to it.
9018 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9021 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9023 * target.c (memory_xfer_partial): Fix length arg in call to
9024 breakpoint_xfer_memory.
9026 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9029 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9030 number comes after the + or - signs. Adjust length of register
9031 name to be extracted.
9033 2014-02-20 Tom Tromey <tromey@redhat.com>
9035 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9036 (ada_varobj_ops): Mark "extern".
9038 2014-02-20 Tom Tromey <tromey@redhat.com>
9040 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9042 2014-02-20 Doug Evans <xdje42@gmail.com>
9044 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9045 All callers updated.
9046 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9047 All callers updated.
9048 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9049 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9051 2014-02-20 lin zuojian <manjian2006@gmail.com>
9052 Joel Brobecker <brobecker@adacore.com>
9053 Doug Evans <xdje42@gmail.com>
9056 * dwarf2read.c (struct die_info): New member in_process.
9057 (reset_die_in_process): New function.
9058 (process_die): Set it at the start, reset when returning.
9059 (inherit_abstract_dies): Only call process_die if origin_child_die
9060 not already being processed.
9062 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9064 * windows-nat.c (handle_unload_dll): Add function documentation.
9065 (do_initial_windows_stuff): Add comment explaining why we wait
9066 until after inferior initialization has finished before
9067 processing all DLLs.
9069 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9071 * windows-nat.c (get_module_name): Delete.
9072 (windows_get_exec_module_filename): New function, mostly
9073 inspired from get_module_name.
9074 (windows_pid_to_exec_file): Replace call to get_module_name
9075 by call to windows_get_exec_module_filename.
9077 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9079 * windows-nat.c (handle_load_dll): Rewrite this function's
9080 introductory comment. Remove code using get_module_name
9081 to get the DLL's name.
9083 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9085 * windows-nat.c (get_windows_debug_event): Ignore
9086 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9087 if windows_initialization_done == 0.
9088 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9089 Adjust implementation to always load all DLLs.
9090 (do_initial_windows_stuff): Replace call to
9091 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9093 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9095 * windows-nat.c (_initialize_windows_nat): Deprecate the
9096 "dll-symbols" command. Turn the "add-shared-symbol-files"
9097 and "assf" aliases into commands, and deprecate them as well.
9098 * NEWS: Add entry explaining that "dll-symbols" and its two
9099 aliases are now deprecated.
9101 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9103 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9104 new-line in debug string. Remove trailing spaces.
9106 2014-02-19 Stan Shebs <stan@codesourcery.com>
9108 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9110 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9112 * NEWS: Add entry for the new feature
9113 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9116 2014-02-19 Stan Shebs <stan@codesourcery.com>
9118 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9120 2014-02-19 Pedro Alves <palves@redhat.com>
9122 * common/ptid.h (struct ptid): Mention that process_stratum
9123 targets should prefer ptid.lwp.
9125 2014-02-19 Pedro Alves <palves@redhat.com>
9127 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9128 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9129 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9130 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9131 store remote thread ids rather than ptid.tid.
9132 (_initialize_remote): Adjust.
9134 2014-02-19 Tom Tromey <tromey@redhat.com>
9136 * target.c (target_get_unwinder): Rewrite.
9137 (target_get_tailcall_unwinder): Rewrite.
9138 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9139 (record_btrace_to_get_tailcall_unwinder): New function.
9140 (init_record_btrace_ops): Update.
9141 * target.h (struct target_ops) <to_get_unwinder,
9142 to_get_tailcall_unwinder>: Now function pointers. Use
9143 TARGET_DEFAULT_RETURN.
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9147 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9149 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9151 2014-02-19 Tom Tromey <tromey@redhat.com>
9153 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9155 * target-delegates.c: Rebuild.
9156 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9157 TARGET_DEFAULT_FUNC.
9158 * target.c (default_target_decr_pc_after_break): Rename from
9159 forward_target_decr_pc_after_break. Simplify.
9160 (target_decr_pc_after_break): Rely on delegation.
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target.c (update_current_target): Do not INHERIT to_doc or
9165 to_magic. Do not de_fault to_open or to_close.
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * gcore.h (objfile_find_memory_regions): Declare.
9170 * gcore.c (objfile_find_memory_regions): No longer static. Add
9172 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9173 * exec.c: Include gcore.h.
9174 (exec_set_find_memory_regions): Remove.
9175 (exec_find_memory_regions): Remove.
9176 (exec_do_find_memory_regions): Remove.
9177 (init_exec_ops): Update.
9178 * defs.h (exec_set_find_memory_regions): Remove.
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9182 * target-delegates.c: Rebuild.
9183 * target.h (struct target_ops) <to_extra_thread_info,
9184 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9185 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9186 not 0, in TARGET_DEFAULT_RETURN.
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9190 * target.c (complete_target_initialization): Remove casts. Use
9191 return_zero_has_execution.
9192 (return_zero): Add "ignore" argument.
9193 (return_zero_has_execution): New function.
9194 (init_dummy_target): Remove casts. Use
9195 return_zero_has_execution.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * target.c (update_current_target): Update comments. Do not
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9204 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9206 * corelow.c (core_read_description): Delegate when needed.
9207 * remote.c (remote_read_description): Delegate when needed.
9208 * target-delegates.c: Rebuild.
9209 * target.c (target_read_description): Rewrite.
9210 * target.h (struct target_ops) <to_read_description>: Update
9211 comment. Use TARGET_DEFAULT_RETURN.
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9218 (find_default_run_target): Check against delegate_can_run.
9219 * target.h (struct target_ops) <to_can_run>: Use
9220 TARGET_DEFAULT_RETURN.
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9224 * target-delegates.c: Rebuild.
9225 * target.c (target_disconnect): Unconditionally delegate.
9226 * target.h (struct target_ops) <to_disconnect>: Use
9227 TARGET_DEFAULT_NORETURN.
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * record.c (record_stop): Unconditionally delegate.
9232 * target-delegates.c: Rebuild.
9233 * target.c (target_stop_recording): Unconditionally delegate.
9234 * target.h (struct target_ops) <to_stop_recording>: Use
9235 TARGET_DEFAULT_IGNORE.
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9239 * target-delegates.c: Rebuild.
9240 * target.c (target_enable_btrace): Unconditionally delegate.
9241 * target.h (struct target_ops) <to_enable_btrace>: Use
9242 TARGET_DEFAULT_NORETURN.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target-delegates.c: Rebuild.
9247 * target.c (target_read_btrace): Unconditionally delegate.
9248 * target.h (struct target_ops) <to_read_btrace>: Use
9249 TARGET_DEFAULT_NORETURN.
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9253 * target-delegates.c: Rebuild.
9254 * target.c (target_teardown_btrace): Unconditionally delegate.
9255 * target.h (struct target_ops) <to_teardown_btrace>: Use
9256 TARGET_DEFAULT_NORETURN.
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target-delegates.c: Rebuild.
9261 * target.c (target_disable_btrace): Unconditionally delegate.
9262 * target.h (struct target_ops) <to_disable_btrace>: Use
9263 TARGET_DEFAULT_NORETURN.
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9267 * target-delegates.c: Rebuild.
9268 * target.c (default_search_memory): New function.
9269 (simple_search_memory): Update comment.
9270 (target_search_memory): Unconditionally delegate.
9271 * target.h (struct target_ops) <to_search_memory>: Use
9272 TARGET_DEFAULT_FUNC.
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * auxv.c (default_auxv_parse): No longer static.
9277 (target_auxv_parse): Unconditionally delegate.
9278 * auxv.h (default_auxv_parse): Declare.
9279 * target-delegates.c: Rebuild.
9280 * target.c: Include auxv.h.
9281 * target.h (struct target_ops) <to_auxv_parse>: Use
9282 TARGET_DEFAULT_FUNC.
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9286 * target-delegates.c: Rebuild.
9287 * target.c (target_memory_map): Unconditionally delegate.
9288 * target.h (struct target_ops) <to_memory_map>: Use
9289 TARGET_DEFAULT_RETURN.
9291 2014-02-19 Tom Tromey <tromey@redhat.com>
9293 * target-delegates.c: Rebuild.
9294 * target.c (target_thread_alive): Unconditionally delegate.
9295 * target.h (struct target_ops) <to_thread_alive>: Use
9296 TARGET_DEFAULT_RETURN.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target-delegates.c: Rebuild.
9301 * target.c (target_save_record): Unconditionally delegate.
9302 * target.h (struct target_ops) <to_save_record>: Use
9303 TARGET_DEFAULT_NORETURN.
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9307 * target-delegates.c: Rebuild.
9308 * target.c (target_delete_record): Unconditionally delegate.
9309 * target.h (struct target_ops) <to_delete_record>: Use
9310 TARGET_DEFAULT_NORETURN.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target-delegates.c: Rebuild.
9315 * target.c (target_record_is_replaying): Unconditionally
9317 * target.h (struct target_ops) <to_record_is_replaying>: Use
9318 TARGET_DEFAULT_RETURN.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target-delegates.c: Rebuild.
9323 * target.c (target_goto_record_begin): Unconditionally delegate.
9324 * target.h (struct target_ops) <to_goto_record_begin>: Use
9325 TARGET_DEFAULT_NORETURN.
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9329 * target-delegates.c: Rebuild.
9330 * target.c (target_goto_record_end): Unconditionally delegate.
9331 * target.h (struct target_ops) <to_goto_record_end>: Use
9332 TARGET_DEFAULT_NORETURN.
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9336 * target-delegates.c: Rebuild.
9337 * target.c (target_goto_record): Unconditionally delegate.
9338 * target.h (struct target_ops) <to_goto_record>: Use
9339 TARGET_DEFAULT_NORETURN.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target-delegates.c: Rebuild.
9344 * target.c (target_insn_history): Unconditionally delegate.
9345 * target.h (struct target_ops) <to_insn_history>: Use
9346 TARGET_DEFAULT_NORETURN.
9348 2014-02-19 Tom Tromey <tromey@redhat.com>
9350 * target-delegates.c: Rebuild.
9351 * target.c (target_insn_history_from): Unconditionally delegate.
9352 * target.h (struct target_ops) <to_insn_history_from>: Use
9353 TARGET_DEFAULT_NORETURN.
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9357 * target-delegates.c: Rebuild.
9358 * target.c (target_insn_history_range): Unconditionally delegate.
9359 * target.h (struct target_ops) <to_insn_history_range>: Use
9360 TARGET_DEFAULT_NORETURN.
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9364 * target-delegates.c: Rebuild.
9365 * target.c (target_call_history): Unconditionally delegate.
9366 * target.h (struct target_ops) <to_call_history>: Use
9367 TARGET_DEFAULT_NORETURN.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target-delegates.c: Rebuild.
9372 * target.c (target_call_history_from): Unconditionally delegate.
9373 * target.h (struct target_ops) <to_call_history_from>: Use
9374 TARGET_DEFAULT_NORETURN.
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9378 * target-delegates.c: Rebuild.
9379 * target.c (target_call_history_range): Unconditionally delegate.
9380 * target.h (struct target_ops) <to_call_history_range>: Use
9381 TARGET_DEFAULT_NORETURN.
9383 2014-02-19 Tom Tromey <tromey@redhat.com>
9385 * target-delegates.c: Rebuild.
9386 * target.c (target_verify_memory): Unconditionally delegate.
9387 * target.h (struct target_ops) <to_verify_memory>: Use
9388 TARGET_DEFAULT_NORETURN.
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target-delegates.c: Rebuild.
9393 * target.c (target_core_of_thread): Unconditionally delegate.
9394 * target.h (struct target_ops) <to_core_of_thread>: Use
9395 TARGET_DEFAULT_RETURN.
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9399 * target-delegates.c: Rebuild.
9400 * target.c (target_flash_done): Unconditionally delegate.
9401 * target.h (struct target_ops) <to_flash_done>: Use
9402 TARGET_DEFAULT_NORETURN.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target-delegates.c: Rebuild.
9407 * target.c (target_flash_erase): Unconditionally delegate.
9408 * target.h (struct target_ops) <to_flash_erase>: Use
9409 TARGET_DEFAULT_NORETURN.
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9413 * target-delegates.c: Rebuild.
9414 * target.c (target_get_section_table): Unconditionally delegate.
9415 * target.h (struct target_ops) <to_get_section_table>: Use
9416 TARGET_DEFAULT_RETURN.
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9420 * target-delegates.c: Rebuild.
9421 * target.c (target_pid_to_str): Unconditionally delegate.
9422 (init_dummy_target): Don't initialize to_pid_to_str.
9423 (default_pid_to_str): Rename from dummy_pid_to_str.
9424 * target.h (struct target_ops) <to_pid_to_str>: Use
9425 TARGET_DEFAULT_FUNC.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target-delegates.c: Rebuild.
9430 * target.c (target_find_new_threads): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_find_new_threads>: Use
9432 TARGET_DEFAULT_RETURN.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target-delegates.c: Rebuild.
9437 * target.c (target_program_signals): Unconditionally delegate.
9438 * target.h (struct target_ops) <to_program_signals>: Use
9439 TARGET_DEFAULT_IGNORE.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target-delegates.c: Rebuild.
9444 * target.c (target_pass_signals): Unconditionally delegate.
9445 * target.h (struct target_ops) <to_pass_signals>: Use
9446 TARGET_DEFAULT_IGNORE.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target-delegates.c: Rebuild.
9451 * target.c (default_mourn_inferior): New function.
9452 (target_mourn_inferior): Unconditionally delegate.
9453 * target.h (struct target_ops) <to_mourn_inferior>: Use
9454 TARGET_DEFAULT_FUNC.
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * target-delegates.c: Rebuild.
9459 * target.c (default_follow_fork): New function.
9460 (target_follow_fork): Unconditionally delegate.
9461 * target.h (struct target_ops) <to_follow_fork>: Use
9462 TARGET_DEFAULT_FUNC.
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9466 * target-delegates.c: Rebuild.
9467 * target.c (target_kill): Unconditionally delegate.
9468 * target.h (struct target_ops) <to_kill>: Use
9469 TARGET_DEFAULT_NORETURN.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target-delegates.c: Rebuild.
9474 * target.c (target_masked_watch_num_registers): Unconditionally
9476 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9477 Use TARGET_DEFAULT_RETURN.
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9481 * target-delegates.c: Rebuild.
9482 * target.c (target_remove_mask_watchpoint): Unconditionally
9484 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9485 TARGET_DEFAULT_RETURN.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * target-delegates.c: Rebuild.
9490 * target.c (target_insert_mask_watchpoint): Unconditionally
9492 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9493 TARGET_DEFAULT_RETURN.
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target-delegates.c: Rebuild.
9498 * target.c (target_ranged_break_num_registers): Unconditionally
9500 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9501 Use TARGET_DEFAULT_RETURN.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target-delegates.c: Rebuild.
9506 * target.c (target_fetch_registers): Unconditionally delegate.
9507 * target.h (struct target_ops) <to_fetch_registers>: Use
9508 TARGET_DEFAULT_NORETURN.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target-delegates.c: Rebuild.
9513 * target.c (update_current_target): Don't inherit or default
9515 * target.h (struct target_ops) <to_stop>: Use
9516 TARGET_DEFAULT_IGNORE.
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9520 * target-delegates.c: Rebuild.
9521 * target.c (update_current_target): Don't inherit or default
9522 to_can_run_breakpoint_commands.
9523 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9524 Use TARGET_DEFAULT_RETURN.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * target-delegates.c: Rebuild.
9529 * target.c (update_current_target): Don't inherit or default
9530 to_supports_evaluation_of_breakpoint_conditions.
9531 * target.h (struct target_ops)
9532 <to_supports_evaluation_of_breakpoint_conditions>: Use
9533 TARGET_DEFAULT_RETURN.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target-delegates.c: Rebuild.
9538 * target.c (update_current_target): Don't inherit or default
9539 to_augmented_libraries_svr4_read.
9540 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9541 Use TARGET_DEFAULT_RETURN.
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9545 * target-delegates.c: Rebuild.
9546 * target.c (update_current_target): Don't inherit or default
9548 * target.h (struct target_ops) <to_can_use_agent>: Use
9549 TARGET_DEFAULT_RETURN.
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target-delegates.c: Rebuild.
9554 * target.c (update_current_target): Don't inherit or default
9556 * target.h (struct target_ops) <to_use_agent>: Use
9557 TARGET_DEFAULT_NORETURN.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target-delegates.c: Rebuild.
9562 * target.c (update_current_target): Don't inherit or default
9564 (return_null): Remove.
9565 * target.h (struct target_ops) <to_traceframe_info>: Use
9566 TARGET_DEFAULT_RETURN.
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9570 * target-delegates.c: Rebuild.
9571 * target.c (update_current_target): Don't inherit or default
9572 to_static_tracepoint_markers_by_strid.
9573 * target.h (struct target_ops)
9574 <to_static_tracepoint_markers_by_strid>: Use
9575 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
9582 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9583 Use TARGET_DEFAULT_RETURN.
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9587 * target-delegates.c: Rebuild.
9588 * target.c (update_current_target): Don't inherit or default
9590 * target.h (struct target_ops) <to_set_permissions>: Use
9591 TARGET_DEFAULT_IGNORE.
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target-delegates.c: Rebuild.
9596 * target.c (update_current_target): Don't inherit or default
9598 * target.h (struct target_ops) <to_get_tib_address>: Use
9599 TARGET_DEFAULT_NORETURN.
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9603 * target-delegates.c: Rebuild.
9604 * target.c (update_current_target): Don't inherit or default
9606 * target.h (struct target_ops) <to_set_trace_notes>: Use
9607 TARGET_DEFAULT_RETURN.
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't initialize
9613 to_set_trace_buffer_size.
9614 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9615 TARGET_DEFAULT_IGNORE.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9621 to_set_circular_trace_buffer.
9622 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9623 TARGET_DEFAULT_IGNORE.
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9627 * target-delegates.c: Rebuild.
9628 * target.c (update_current_target): Don't inherit or default
9629 to_set_disconnected_tracing.
9630 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9631 TARGET_DEFAULT_IGNORE.
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
9637 to_get_min_fast_tracepoint_insn_len.
9638 (return_minus_one): Remove.
9639 * target.h (struct target_ops)
9640 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9644 * target-delegates.c: Rebuild.
9645 * target.c (update_current_target): Don't inherit or default
9646 to_get_raw_trace_data.
9647 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9648 TARGET_DEFAULT_NORETURN.
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target-delegates.c: Rebuild.
9653 * target.c (update_current_target): Don't inherit or default
9654 to_upload_trace_state_variables.
9655 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9656 Use TARGET_DEFAULT_RETURN.
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9660 * target-delegates.c: Rebuild.
9661 * target.c (update_current_target): Don't inherit or default
9662 to_upload_tracepoints.
9663 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9664 TARGET_DEFAULT_RETURN.
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9668 * target-delegates.c: Rebuild.
9669 * target.c (update_current_target): Don't inherit or default
9671 * target.h (struct target_ops) <to_save_trace_data>: Use
9672 TARGET_DEFAULT_NORETURN.
9674 2014-02-19 Tom Tromey <tromey@redhat.com>
9676 * target-delegates.c: Rebuild.
9677 * target.c (update_current_target): Don't inherit or default
9678 to_get_trace_state_variable_value.
9679 * target.h (struct target_ops)
9680 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9684 * target-delegates.c: Rebuild.
9685 * target.c (update_current_target): Don't inherit or default
9687 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
9694 * target.h (struct target_ops) <to_trace_stop>: Use
9695 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_get_tracepoint_status.
9702 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9703 TARGET_DEFAULT_NORETURN.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target-delegates.c: Rebuild.
9708 * target.c (update_current_target): Don't inherit or default
9709 to_get_trace_status.
9710 * target.h (struct target_ops) <to_get_trace_status>: Use
9711 TARGET_DEFAULT_RETURN.
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_start>: Use
9719 TARGET_DEFAULT_NORETURN.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target-delegates.c: Rebuild.
9724 * target.c (update_current_target): Don't inherit or default
9725 to_trace_set_readonly_regions.
9726 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9727 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
9734 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9735 TARGET_DEFAULT_NORETURN.
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9739 * target-delegates.c: Rebuild.
9740 * target.c (update_current_target): Don't inherit or default
9741 to_enable_tracepoint.
9742 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9743 TARGET_DEFAULT_NORETURN.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target-delegates.c: Rebuild.
9748 * target.c (update_current_target): Don't inherit or default
9749 to_download_trace_state_variable.
9750 * target.h (struct target_ops) <to_download_trace_state_variable>:
9751 Use TARGET_DEFAULT_NORETURN.
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * target-delegates.c: Rebuild.
9756 * target.c (update_current_target): Don't inherit or default
9757 to_can_download_tracepoint.
9758 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9759 TARGET_DEFAULT_RETURN.
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target-delegates.c: Rebuild.
9764 * target.c (update_current_target): Don't inherit or default
9765 to_download_tracepoint.
9766 * target.h (struct target_ops) <to_download_tracepoint>: Use
9767 TARGET_DEFAULT_NORETURN.
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9771 * target-delegates.c: Rebuild.
9772 * target.c (update_current_target): Don't inherit or default
9774 * target.h (struct target_ops) <to_trace_init>: Use
9775 TARGET_DEFAULT_RETURN.
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * target-delegates.c: Rebuild.
9780 * target.c (update_current_target): Don't inherit or default
9781 to_supports_string_tracing.
9782 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9783 TARGET_DEFAULT_RETURN.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target-delegates.c: Rebuild.
9788 * target.c (update_current_target): Don't inherit or default
9789 to_supports_enable_disable_tracepoint.
9790 * target.h (struct target_ops)
9791 <to_supports_enable_disable_tracepoint>: Use
9792 TARGET_DEFAULT_RETURN.
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target-delegates.c: Rebuild.
9797 * target.c (update_current_target): Don't inherit or default
9798 to_supports_multi_process.
9799 * target.h (struct target_ops) <to_supports_multi_process>: Use
9800 TARGET_DEFAULT_RETURN.
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * target-delegates.c: Rebuild.
9805 * target.c (update_current_target): Don't inherit or default
9806 to_get_ada_task_ptid.
9807 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9808 TARGET_DEFAULT_FUNC.
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9812 * target-delegates.c: Rebuild.
9813 * target.c (update_current_target): Don't inherit or default
9814 to_thread_architecture.
9815 * target.h (struct target_ops) <to_thread_architecture>: Use
9816 TARGET_DEFAULT_FUNC.
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9820 * target-delegates.c: Rebuild.
9821 * target.c (update_current_target): Don't inherit or default
9822 to_execution_direction.
9823 * target.h (struct target_ops) <to_execution_direction>: Use
9824 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
9831 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9832 TARGET_DEFAULT_RETURN.
9833 (target_can_execute_reverse): Unconditionally delegate.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target-delegates.c: Rebuild.
9838 * target.c (update_current_target): Don't inherit or default
9840 (dummy_goto_bookmark): Remove.
9841 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9842 * target.h (struct target_ops) <to_goto_bookmark>: Use
9843 TARGET_DEFAULT_NORETURN.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target-delegates.c: Rebuild.
9848 * target.c (update_current_target): Don't inherit or default
9850 (dummy_get_bookmark): Remove.
9851 (init_dummy_target): Don't inherit or default to_get_bookmark.
9852 * target.h (struct target_ops) <to_get_bookmark>: Use
9853 TARGET_DEFAULT_NORETURN
9855 2014-02-19 Tom Tromey <tromey@redhat.com>
9857 * target-delegates.c: Rebuild.
9858 * target.c (update_current_target): Don't inherit or default
9859 to_make_corefile_notes.
9860 (init_dummy_target): Don't initialize to_make_corefile_notes.
9861 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9862 TARGET_DEFAULT_FUNC.
9864 2014-02-19 Tom Tromey <tromey@redhat.com>
9866 * target-delegates.c: Rebuild.
9867 * target.c (update_current_target): Don't inherit or default
9868 to_find_memory_regions.
9869 (init_dummy_target): Don't initialize to_find_memory_regions.
9870 * target.h (struct target_ops) <to_find_memory_regions>: Use
9871 TARGET_DEFAULT_FUNC.
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9875 * target-delegates.c: Rebuild.
9876 * target.c (update_current_target): Don't inherit or default
9878 * target.h (struct target_ops) <to_log_command>: Use
9879 TARGET_DEFAULT_IGNORE.
9880 (target_log_command): Unconditionally delegate.
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9884 * target-delegates.c: Rebuild.
9885 * target.c (update_current_target): Don't inherit or default
9886 to_pid_to_exec_file.
9887 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9888 TARGET_DEFAULT_RETURN.
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9892 * target-delegates.c: Rebuild.
9893 * target.c (update_current_target): Don't inherit or default
9895 (target_thread_name): Unconditionally delegate.
9896 * target.h (struct target_ops) <to_thread_name>: Use
9897 TARGET_DEFAULT_RETURN.
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9901 * target-delegates.c: Rebuild.
9902 * target.c (update_current_target): Don't inherit or default
9903 to_extra_thread_info.
9904 * target.h (struct target_ops) <to_extra_thread_info>: Use
9905 TARGET_DEFAULT_RETURN.
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9909 * target-delegates.c: Rebuild.
9910 * target.c (update_current_target): Don't inherit or default
9912 * target.h (struct target_ops) <to_has_exited>: Use
9913 TARGET_DEFAULT_RETURN..
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * target-delegates.c: Rebuild.
9918 * target.c (update_current_target): Don't inherit or default
9919 to_set_syscall_catchpoint.
9920 (return_one): Remove.
9921 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9922 TARGET_DEFAULT_RETURN.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target-delegates.c: Rebuild.
9927 * target.c (update_current_target): Don't inherit or default
9928 to_insert_exec_catchpoint.
9929 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9930 TARGET_DEFAULT_RETURN.
9932 2014-01-08 Tom Tromey <tromey@redhat.com>
9934 * target-delegates.c: Rebuild.
9935 * target.c (update_current_target): Don't inherit or default
9936 to_insert_exec_catchpoint.
9937 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9938 TARGET_DEFAULT_RETURN.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_remove_vfork_catchpoint.
9945 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9946 TARGET_DEFAULT_RETURN.
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
9952 to_insert_vfork_catchpoint.
9953 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9954 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
9961 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9962 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
9969 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9970 TARGET_DEFAULT_RETURN.
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
9976 to_post_startup_inferior.
9977 * target.h (struct target_ops) <to_post_startup_inferior>: 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
9985 * target.h (struct target_ops) <to_load>: Use
9986 TARGET_DEFAULT_NORETURN.
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
9993 * target.h (struct target_ops) <to_terminal_info>: Use
9994 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_terminal_save_ours.
10001 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10002 TARGET_DEFAULT_IGNORE.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target-delegates.c: Rebuild.
10007 * target.c (update_current_target): Don't inherit or default
10009 * target.h (struct target_ops) <to_terminal_ours>: Use
10010 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
10017 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10018 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
10025 * target.h (struct target_ops) <to_terminal_inferior>: Use
10026 TARGET_DEFAULT_IGNORE.
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
10033 * target.h (struct target_ops) <to_terminal_init>: Use
10034 TARGET_DEFAULT_IGNORE.
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_accel_watchpoint_condition.
10041 * target.h (struct target_ops)
10042 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target-delegates.c: Rebuild.
10047 * target.c (update_current_target): Don't inherit or default
10048 to_region_ok_for_hw_watchpoint.
10049 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10050 Use TARGET_DEFAULT_FUNC.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target-delegates.c: Rebuild.
10055 * target.c (update_current_target): Don't inherit or default
10056 to_watchpoint_addr_within_range.
10057 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10058 Use TARGET_DEFAULT_FUNC.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10064 to_remove_watchpoint.
10065 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10066 TARGET_DEFAULT_NORETURN.
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
10072 to_insert_watchpoint.
10073 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10074 TARGET_DEFAULT_RETURN.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't inherit or default
10080 to_remove_hw_breakpoint.
10081 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10082 TARGET_DEFAULT_RETURN.
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10086 * target-delegates.c: Rebuild.
10087 * target.c (update_current_target): Don't inherit or default
10088 to_insert_hw_breakpoint.
10089 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10090 TARGET_DEFAULT_RETURN.
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target-delegates.c: Rebuild.
10095 * target.c (update_current_target): Don't inherit or default
10096 to_can_use_hw_breakpoint.
10097 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10098 TARGET_DEFAULT_RETURN.
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10102 * target-delegates.c: Rebuild.
10103 * target.c (update_current_target): Don't inherit or default
10105 * target.h (struct target_ops) <to_files_info>: Use
10106 TARGET_DEFAULT_IGNORE.
10108 2014-02-19 Tom Tromey <tromey@redhat.com>
10110 * target-delegates.c: Rebuild.
10111 * target.c (update_current_target): Don't inherit or default
10113 * target.h (struct target_ops) <to_store>: Use
10114 TARGET_DEFAULT_NORETURN.
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10118 * target-delegates.c: Rebuild.
10119 * target.c (update_current_target): Don't inherit or default
10121 * target.h (struct target_ops) <to_post_attach>: Use
10122 TARGET_DEFAULT_IGNORE.
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10126 * target-delegates.c: Rebuild.
10127 * target.c (update_current_target): Don't inherit or default
10129 (default_rcmd): New function.
10130 (do_monitor_command): Unconditionally delegate.
10131 * target.h (struct target_ops) <to_rmcd>: Use
10132 TARGET_DEFAULT_FUNC.
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10136 * target-delegates.c: Rebuild.
10137 * target.c (init_dummy_target): Don't initialize to_attach.
10138 (target_attach): Unconditionally delegate.
10139 * target.h (struct target_ops) <to_attach>: Use
10140 TARGET_DEFAULT_FUNC.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target-delegates.c: Rebuild.
10145 * target.c (target_detach): Unconditionally delegate.
10146 (init_dummy_target): Don't initialize to_detach.
10147 * target.h (struct target_ops) <to_detach>: Use
10148 TARGET_DEFAULT_IGNORE.
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10152 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10154 (target_augmented_libraries_svr4_read): Add argument.
10155 * target.c (update_current_target): Update.
10156 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target.h (struct target_ops) <to_call_history_range>: Add
10163 * target.c (target_call_history_range): Add argument.
10164 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10166 (record_btrace_call_history_from): Update.
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target.h (struct target_ops) <to_call_history_from>: Add
10172 * target.c (target_call_history_from): Add argument.
10173 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10178 * target.h (struct target_ops) <to_call_history>: Add argument.
10179 * target.c (target_call_history): Add argument.
10180 * record-btrace.c (record_btrace_call_history): Add 'self'
10183 2014-02-19 Tom Tromey <tromey@redhat.com>
10185 * target.h (struct target_ops) <to_insn_history_range>: Add
10187 * target.c (target_insn_history_range): Add argument.
10188 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10190 (record_btrace_insn_history_from): Update.
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10194 * target.h (struct target_ops) <to_insn_history_from>: Add
10196 * target.c (target_insn_history_from): Add argument.
10197 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target.h (struct target_ops) <to_insn_history>: Add argument.
10203 * target.c (target_insn_history): Add argument.
10204 * record-btrace.c (record_btrace_insn_history): Add 'self'
10207 2014-02-19 Tom Tromey <tromey@redhat.com>
10209 * target.h (struct target_ops) <to_goto_record>: Add argument.
10210 * target.c (target_goto_record): Add argument.
10211 * record-full.c (record_full_goto): Add 'self' argument.
10212 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10216 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10217 * target.c (target_goto_record_end): Add argument.
10218 * record-full.c (record_full_goto_end): Add 'self' argument.
10219 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10223 * target.h (struct target_ops) <to_goto_record_begin>: Add
10225 * target.c (target_goto_record_begin): Add argument.
10226 * record-full.c (record_full_goto_begin): Add 'self' argument.
10227 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10232 * target.h (struct target_ops) <to_record_is_replaying>: Add
10234 * target.c (target_record_is_replaying): Add argument.
10235 * record-full.c (record_full_is_replaying): Add 'self' argument.
10236 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10238 (record_btrace_xfer_partial, record_btrace_store_registers)
10239 (record_btrace_prepare_to_store, record_btrace_resume)
10240 (record_btrace_wait, record_btrace_decr_pc_after_break)
10241 (record_btrace_find_new_threads, record_btrace_thread_alive):
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10246 * target.h (struct target_ops) <to_delete_record>: Add argument.
10247 * target.c (target_delete_record): Add argument.
10248 * record-full.c (record_full_delete): Add 'self' argument.
10250 2014-02-19 Tom Tromey <tromey@redhat.com>
10252 * target.h (struct target_ops) <to_save_record>: Add argument.
10253 * target.c (target_save_record): Add argument.
10254 * record-full.c (record_full_save): Add 'self' argument.
10255 (record_full_save): Add 'self' argument.
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10259 * target.h (struct target_ops) <to_info_record>: Add argument.
10260 * target.c (target_info_record): Add argument.
10261 * record.c (info_record_command): Add argument.
10262 * record-full.c (record_full_info): Add 'self' argument.
10263 * record-btrace.c (record_btrace_info): Add 'self' argument.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10268 * target.c (target_stop_recording): Add argument.
10269 * record.c (record_stop): Add argument.
10270 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10276 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10277 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10279 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10280 (_initialize_amd64_linux_nat): Use it.
10281 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10282 (_initialize_i386_linux_nat): Use it.
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10286 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10287 * target.c (target_teardown_btrace): Add argument.
10288 * remote.c (remote_teardown_btrace): Add 'self' argument.
10289 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10291 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10297 * target.c (target_disable_btrace): Add argument.
10298 * remote.c (remote_disable_btrace): Add 'self' argument.
10299 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10301 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10307 * target.c (target_enable_btrace): Add argument.
10308 * remote.c (remote_enable_btrace): Add 'self' argument.
10309 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10311 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10316 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10317 (target_can_use_agent): Add argument.
10318 * target.c (update_current_target): Update.
10319 * remote.c (remote_can_use_agent): Add 'self' argument.
10320 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10324 * target.h (struct target_ops) <to_use_agent>: Add argument.
10325 (target_use_agent): Add argument.
10326 * target.c (update_current_target): Update.
10327 * remote.c (remote_use_agent): Add 'self' argument.
10328 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10332 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10333 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10334 (target_traceframe_info): Add argument.
10335 * target.c (update_current_target): Update.
10336 * remote.c (remote_traceframe_info): Add 'self' argument.
10337 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10339 2014-02-19 Tom Tromey <tromey@redhat.com>
10341 * target.h (target_static_tracepoint_markers_by_strid): Add
10343 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10345 * target.c (update_current_target): Update.
10346 * remote.c (struct target_ops)
10347 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10348 * linux-nat.c (struct target_ops)
10349 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10353 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10355 (target_static_tracepoint_marker_at): Add argument.
10356 * target.c (update_current_target): Update.
10357 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10362 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10363 (target_set_permissions): Add argument.
10364 * target.c (update_current_target): Update.
10365 * remote.c (remote_set_permissions): Add 'self' argument.
10366 (remote_start_remote): Update.
10368 2014-02-19 Tom Tromey <tromey@redhat.com>
10370 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10371 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10372 (target_get_tib_address): Add argument.
10373 * target.c (update_current_target): Update.
10374 * remote.c (remote_get_tib_address): Add 'self' argument.
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10378 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10379 (target_set_trace_notes): Add argument.
10380 * target.c (update_current_target): Update.
10381 * remote.c (remote_set_trace_notes): Add 'self' argument.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10387 (target_set_trace_buffer_size): Add argument.
10388 * target.c (update_current_target): Update.
10389 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10395 (target_set_circular_trace_buffer): Add argument.
10396 * target.c (update_current_target): Update.
10397 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10402 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10404 (target_set_disconnected_tracing): Add argument.
10405 * target.c (update_current_target): Update.
10406 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10410 * target.h (struct target_ops)
10411 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10412 (target_get_min_fast_tracepoint_insn_len): Add argument.
10413 * target.c (update_current_target): Update.
10414 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10419 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10421 (target_get_raw_trace_data): Add argument.
10422 * target.c (update_current_target): Update.
10423 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10429 (target_upload_trace_state_variables): Add argument.
10430 * target.c (update_current_target): Update.
10431 * remote.c (remote_upload_trace_state_variables): Add 'self'
10433 (remote_start_remote): Update.
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10437 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10439 (target_upload_tracepoints): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10442 (remote_start_remote): Update.
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10446 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10447 (target_save_trace_data): Add argument.
10448 * target.c (update_current_target): Update.
10449 * remote.c (remote_save_trace_data): Add 'self' argument.
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10455 * target.h (struct target_ops)
10456 <to_get_trace_state_variable_value>: Add argument.
10457 (target_get_trace_state_variable_value): Add argument.
10458 * target.c (update_current_target): Update.
10459 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10461 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10465 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10466 * target.h (struct target_ops) <to_trace_find>: Add argument.
10467 (target_trace_find): Add argument.
10468 * target.c (update_current_target): Update.
10469 * remote.c (remote_trace_find): Add 'self' argument.
10470 * ctf.c (ctf_trace_find): Add 'self' argument.
10472 2014-02-19 Tom Tromey <tromey@redhat.com>
10474 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10475 (target_trace_stop): Add argument.
10476 * target.c (update_current_target): Update.
10477 * remote.c (remote_trace_stop): Add 'self' argument.
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10481 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10482 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10484 (target_get_tracepoint_status): Add argument.
10485 * target.c (update_current_target): Update.
10486 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10488 2014-02-19 Tom Tromey <tromey@redhat.com>
10490 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10491 * target.h (struct target_ops) <to_get_trace_status>: Add
10493 (target_get_trace_status): Add argument.
10494 * target.c (update_current_target): Update.
10495 * remote.c (remote_get_trace_status): Add 'self' argument.
10496 (remote_start_remote, remote_can_download_tracepoint): Update.
10497 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10499 2014-02-19 Tom Tromey <tromey@redhat.com>
10501 * target.h (struct target_ops) <to_trace_start>: Add argument.
10502 (target_trace_start): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_trace_start): Add 'self' argument.
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10508 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10510 (target_trace_set_readonly_regions): Add argument.
10511 * target.c (update_current_target): Update.
10512 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10517 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10519 (target_disable_tracepoint): Add argument.
10520 * target.c (update_current_target): Update.
10521 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10525 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10527 (target_enable_tracepoint): Add argument.
10528 * target.c (update_current_target): Update.
10529 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10533 * target.h (struct target_ops) <to_download_trace_state_variable>:
10535 (target_download_trace_state_variable): Add argument.
10536 * target.c (update_current_target): Update.
10537 * remote.c (remote_download_trace_state_variable): Add 'self'
10540 2014-02-19 Tom Tromey <tromey@redhat.com>
10542 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10544 (target_can_download_tracepoint): Add argument.
10545 * target.c (update_current_target): Update.
10546 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10548 2014-02-19 Tom Tromey <tromey@redhat.com>
10550 * target.h (struct target_ops) <to_download_tracepoint>: Add
10552 (target_download_tracepoint): Add argument.
10553 * target.c (update_current_target): Update.
10554 * remote.c (remote_download_tracepoint): Add 'self' argument.
10556 2014-02-19 Tom Tromey <tromey@redhat.com>
10558 * target.h (struct target_ops) <to_trace_init>: Add argument.
10559 (target_trace_init): Add argument.
10560 * target.c (update_current_target): Update.
10561 * remote.c (remote_trace_init): Add 'self' argument.
10563 2014-02-19 Tom Tromey <tromey@redhat.com>
10565 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10566 * target.c (target_fileio_readlink): Add argument.
10567 * remote.c (remote_hostio_readlink): Add 'self' argument.
10568 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10572 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10573 * target.c (target_fileio_unlink): Add argument.
10574 * remote.c (remote_hostio_unlink): Add 'self' argument.
10575 (remote_file_delete): Update.
10576 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10578 2014-02-19 Tom Tromey <tromey@redhat.com>
10580 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10581 * target.c (target_fileio_close): Add argument.
10582 * remote.c (remote_hostio_close): Add 'self' argument.
10583 (remote_hostio_close_cleanup): Update.
10584 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10586 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10590 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10591 * target.c (target_fileio_pread): Add argument.
10592 * remote.c (remote_hostio_pread): Add 'self' argument.
10593 (remote_bfd_iovec_pread, remote_file_get): Update.
10594 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10598 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10599 * target.c (target_fileio_pwrite): Add argument.
10600 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10601 (remote_file_put): Update.
10602 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10604 2014-02-19 Tom Tromey <tromey@redhat.com>
10606 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10607 * target.c (target_fileio_open): Add argument.
10608 * remote.c (remote_hostio_open): Add 'self' argument.
10609 (remote_bfd_iovec_open): Add 'self' argument.
10610 (remote_file_put): Add 'self' argument.
10611 (remote_file_get): Add 'self' argument.
10612 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10618 (target_can_run_breakpoint_commands): Add argument.
10619 * target.c (update_current_target): Update.
10620 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10622 (remote_insert_breakpoint): Add 'self' argument.
10623 (remote_insert_hw_breakpoint): Add 'self' argument.
10624 (remote_can_run_breakpoint_commands): Add 'self' argument.
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10628 * target.h (struct target_ops)
10629 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10630 (target_supports_evaluation_of_breakpoint_conditions): Add
10632 * target.c (update_current_target): Update.
10633 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10635 (remote_insert_breakpoint): Add 'self' argument.
10636 (remote_insert_hw_breakpoint): Add 'self' argument.
10637 (remote_supports_cond_breakpoints): Add 'self' argument.
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10641 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10643 (target_supports_string_tracing): Add argument.
10644 * target.c (update_current_target): Update.
10645 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * target.h (struct target_ops)
10650 <to_supports_disable_randomization>: Add argument.
10651 * target.c (find_default_supports_disable_randomization): Add
10653 (target_supports_disable_randomization): Add argument.
10654 (find_default_supports_disable_randomization): Add 'self'
10656 * remote.c (extended_remote_supports_disable_randomization): Add
10658 (remote_supports_disable_randomization): Add 'self' argument.
10659 (extended_remote_create_inferior): Update.
10660 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10665 * target.h (struct target_ops)
10666 <to_supports_enable_disable_tracepoint>: Add argument.
10667 (target_supports_enable_disable_tracepoint): Add argument.
10668 * target.c (update_current_target): Update.
10669 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target.h (struct target_ops) <to_supports_multi_process>: Add
10676 (target_supports_multi_process): Add argument.
10677 * target.c (update_current_target): Update.
10678 * remote.c (remote_supports_multi_process): Add 'self' argument.
10679 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10681 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10686 * target.h (struct target_ops) <to_execution_direction>: Add
10688 (target_execution_direction): Add argument.
10689 * target.c (default_execution_direction): Add 'self' argument.
10690 * record-full.c (record_full_execution_direction): Add 'self'
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10697 (target_can_execute_reverse): Add argument.
10698 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10699 * record-full.c (record_full_can_execute_reverse): Add 'self'
10701 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10707 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10709 (target_get_ada_task_ptid): Add argument.
10710 * target.c (update_current_target): Update.
10711 (default_get_ada_task_ptid): Add 'self' argument.
10712 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10713 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10714 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10716 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10718 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10720 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10722 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10723 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10729 (target_goto_bookmark): Add argument.
10730 * target.c (dummy_goto_bookmark): Add 'self' argument.
10731 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10735 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10736 (target_get_bookmark): Add argument.
10737 * target.c (dummy_get_bookmark): Add 'self' argument.
10738 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10740 2014-02-19 Tom Tromey <tromey@redhat.com>
10742 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10744 (target_make_corefile_notes): Add argument.
10745 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10746 * procfs.c (procfs_make_note_section): Add 'self' argument.
10747 (procfs_make_note_section): Add 'self' argument.
10748 (procfs_make_note_section): Add 'self' argument.
10749 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10751 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10752 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10753 * exec.c (exec_make_note_section): Add 'self' argument.
10754 (exec_make_note_section): Add 'self' argument.
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10758 * target.h (struct target_ops) <to_find_memory_regions>: Add
10760 (target_find_memory_regions): Add argument.
10761 * target.c (dummy_find_memory_regions): Add 'self' argument.
10762 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10763 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10764 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10765 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10766 * exec. (exec_do_find_memory_regions): New global.
10767 (exec_set_find_memory_regions): Rewrite.
10768 (exec_find_memory_regions): New function.
10769 (init_exec_ops): Use exec_find_memory_regions.
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10773 * target.h (struct target_ops) <to_supports_non_stop>: Add
10775 * target.c (find_default_supports_non_stop): Add argument.
10776 (target_supports_non_stop): Add argument.
10777 (find_default_supports_non_stop): Add 'self' argument.
10778 * remote.c (remote_supports_non_stop): Add 'self' argument.
10779 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10783 * target.h (struct target_ops) <to_log_command>: Add argument.
10784 (target_log_command): Add argument.
10785 * serial.h (serial_log_command): Add 'self' argument.
10786 * serial.c (serial_log_command): Add 'self' argument.
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10791 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10793 (target_pid_to_exec_file): Add argument.
10794 * target.c (debug_to_pid_to_exec_file): Add argument.
10795 (update_current_target): Update.
10796 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10797 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10798 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10799 (linux_handle_extended_wait): Update.
10800 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10801 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10802 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10803 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10807 * target.h (struct target_ops) <to_rcmd>: Add argument.
10808 (target_rcmd): Add argument.
10809 * target.c (debug_to_rcmd): Add argument.
10810 (update_current_target, do_monitor_command): Update.
10811 * remote.c (remote_rcmd): Add 'self' argument.
10812 * monitor.c (monitor_rcmd): Add 'self' argument.
10814 2014-02-19 Tom Tromey <tromey@redhat.com>
10816 * windows-nat.c (windows_stop): Add 'self' argument.
10817 * target.h (struct target_ops) <to_stop>: Add argument.
10818 * target.c (target_stop): Add argument.
10819 (debug_to_stop): Add argument.
10820 (update_current_target): Update.
10821 * remote.c (remote_stop): Add 'self' argument.
10822 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10823 (gdbsim_cntrl_c): Update.
10824 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10825 * procfs.c (procfs_stop): Add 'self' argument.
10826 * nto-procfs.c (procfs_stop): Add 'self' argument.
10827 * monitor.c (monitor_stop): Add 'self' argument.
10828 (monitor_open): Update.
10829 * linux-nat.c (linux_nat_stop): Add argument.
10830 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10831 * gnu-nat.c (gnu_stop): Add 'self' argument.
10832 * darwin-nat.c (darwin_stop): Add 'self' argument.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target.h (struct target_ops) <to_thread_name>: Add argument.
10837 * target.c (target_thread_name): Add argument.
10838 (update_current_target): Update.
10839 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target.h (struct target_ops) <to_extra_thread_info>: Add
10845 (target_extra_thread_info): Add argument.
10846 * target.c (update_current_target): Update.
10847 * remote.c (remote_threads_extra_info): Add 'self' argument.
10848 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10850 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10851 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10852 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10854 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10856 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10858 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10863 * target.h (struct target_ops) <to_program_signals>: Add argument.
10864 * target.c (target_program_signals): Add argument.
10865 * remote.c (remote_program_signals): Add 'self' argument.
10867 2014-02-19 Tom Tromey <tromey@redhat.com>
10869 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10870 * target.c (target_pass_signals): Add argument.
10871 * remote.c (remote_pass_signals): Add 'self' argument.
10872 (remote_start_remote): Update.
10873 * procfs.c (procfs_pass_signals): Add 'self' argument.
10874 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10875 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10876 (linux_nat_create_inferior, linux_nat_attach): Update.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * windows-nat.c (windows_can_run): Add 'self' argument.
10881 * target.h (struct target_ops) <to_can_run>: Add argument.
10882 (target_can_run): Add argument.
10883 * target.c (debug_to_can_run): Add argument.
10884 (update_current_target): Update.
10885 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10886 * inf-child.c (inf_child_can_run): Add 'self' argument.
10887 * go32-nat.c (go32_can_run): Add 'self' argument.
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target.h (struct target_ops) <to_has_exited>: Add argument.
10892 (target_has_exited): Add argument.
10893 * target.c (debug_to_has_exited): Add argument.
10894 (update_current_target): Update.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10900 (target_set_syscall_catchpoint): Add argument.
10901 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10903 * target.c (update_current_target): Update.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10909 (target_remove_exec_catchpoint): Add argument.
10910 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10911 (update_current_target): Update.
10912 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10915 2014-02-19 Tom Tromey <tromey@redhat.com>
10917 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10919 (target_insert_exec_catchpoint): Add argument.
10920 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10921 (update_current_target): Update.
10922 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10925 2014-02-19 Tom Tromey <tromey@redhat.com>
10927 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10929 (target_remove_vfork_catchpoint): Add argument.
10930 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10931 (update_current_target): Update.
10932 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10937 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10939 (target_insert_vfork_catchpoint): Add argument.
10940 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10941 (update_current_target): Update.
10942 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10947 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10949 (target_remove_fork_catchpoint): Add argument.
10950 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10951 (update_current_target): Update.
10952 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10955 2014-02-19 Tom Tromey <tromey@redhat.com>
10957 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10959 (target_insert_fork_catchpoint): Add argument.
10960 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10961 (update_current_target): Update.
10962 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10967 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10969 (target_post_startup_inferior): Add argument.
10970 * target.c (debug_to_post_startup_inferior): Add argument.
10971 (update_current_target): Update.
10972 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10974 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10976 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10978 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10980 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10982 (super_post_startup_inferior): Likewise.
10983 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10985 (super_post_startup_inferior): Likewise.
10986 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10987 Add 'self' argument.
10988 (super_post_startup_inferior): Likewise.
10990 2014-02-19 Tom Tromey <tromey@redhat.com>
10992 * target.h (struct target_ops) <to_load>: Add argument.
10993 * target.c (target_load): Add argument.
10994 (debug_to_load): Add argument.
10995 (update_current_target): Update.
10996 * remote.c (remote_load): Add 'self' argument.
10997 * remote-sim.c (gdbsim_load): Add 'self' argument.
10998 * remote-mips.c (mips_load): Add 'self' argument.
10999 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11000 * monitor.c (monitor_load): Add 'self' argument.
11001 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11005 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11006 (target_terminal_info): Add argument.
11007 * target.c (debug_to_terminal_info): Add argument.
11008 (default_terminal_info): Likewise.
11009 * inflow.c (child_terminal_info): Add 'self' argument.
11010 * inferior.h (child_terminal_info): Add 'self' argument.
11011 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11013 2014-02-19 Tom Tromey <tromey@redhat.com>
11015 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11017 (target_terminal_save_ours): Add argument.
11018 * target.c (debug_to_terminal_save_ours): Add argument.
11019 (update_current_target): Update.
11020 * inflow.c (terminal_save_ours): Add 'self' argument.
11021 * inferior.h (terminal_save_ours): Add 'self' argument.
11023 2014-02-19 Tom Tromey <tromey@redhat.com>
11025 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11026 (target_terminal_ours): Add argument.
11027 * target.c (debug_to_terminal_ours): Add argument.
11028 (update_current_target): Update.
11029 * remote.c (remote_terminal_ours): Add 'self' argument.
11030 (remote_close): Update.
11031 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11032 * inflow.c (terminal_ours): Add 'self' argument.
11033 * inferior.h (terminal_ours): Add 'self' argument.
11034 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11036 2014-02-19 Pedro Alves <palves@redhat.com>
11037 Tom Tromey <tromey@redhat.com>
11039 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11041 (target_terminal_ours_for_output): Add argument.
11042 * target.c (debug_to_terminal_ours_for_output): Add argument.
11043 (update_current_target): Update.
11044 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11045 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11046 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11048 2014-02-19 Tom Tromey <tromey@redhat.com>
11050 * target.h (struct target_ops) <to_terminal_inferior>: Add
11052 * target.c (target_terminal_inferior): Add argument.
11053 (update_current_target): Update.
11054 * remote.c (remote_terminal_inferior): Add 'self' argument.
11055 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11056 * inflow.c (terminal_inferior): Add 'self' argument.
11057 * inferior.h (terminal_inferior): Add 'self' argument.
11058 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11059 (go32_terminal_inferior): Add 'self' argument.
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11063 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11064 (target_terminal_init): Add argument.
11065 * target.c (debug_to_terminal_init): Add argument.
11066 (update_current_target): Update.
11067 * inflow.c (terminal_init_inferior): Add 'self' argument.
11068 * inferior.h (terminal_init_inferior): Add 'self' argument.
11069 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11070 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11072 2014-02-19 Tom Tromey <tromey@redhat.com>
11074 * target.h (struct target_ops)
11075 <to_can_accel_watchpoint_condition>: Add argument.
11076 (target_can_accel_watchpoint_condition): Add argument.
11077 * target.c (debug_to_can_accel_watchpoint_condition): Add
11079 (update_current_target): Update.
11080 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11085 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11087 (target_region_ok_for_hw_watchpoint): Add argument.
11088 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11089 (default_region_ok_for_hw_watchpoint): Add argument.
11090 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11091 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11093 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11095 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11097 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11099 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11101 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11103 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11104 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11106 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11107 Add 'self' argument.
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11111 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11113 (target_insert_watchpoint): Add argument.
11114 * target.c (debug_to_insert_watchpoint): Add argument.
11115 (update_current_target): Update.
11116 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11117 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11118 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11119 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11120 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11121 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11123 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11124 (procfs_insert_hw_watchpoint): Add 'self' argument.
11125 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11127 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11129 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11131 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11132 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11134 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11137 2014-02-19 Tom Tromey <tromey@redhat.com>
11139 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11141 (target_remove_watchpoint): Add argument.
11142 * target.c (debug_to_remove_watchpoint): Add argument.
11143 (update_current_target): Update.
11144 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11145 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11146 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11147 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11148 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11149 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11151 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11152 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11154 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11156 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11158 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11159 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11161 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11168 (target_remove_hw_breakpoint): Add argument.
11169 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11170 (update_current_target): Update.
11171 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11172 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11174 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11175 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11177 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11180 2014-02-19 Tom Tromey <tromey@redhat.com>
11182 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11184 (target_insert_hw_breakpoint): Add argument.
11185 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11186 (update_current_target): Update.
11187 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11188 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11190 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11191 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11192 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11194 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11201 (target_can_use_hardware_watchpoint): Add argument.
11202 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11203 (update_current_target): Update.
11204 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11206 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11208 * remote.c (remote_check_watch_resources): Add 'self' argument.
11209 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11210 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11212 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11213 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11215 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11217 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11219 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11221 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11223 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11225 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11226 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11228 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11233 * target.h (struct target_ops) <to_post_attach>: Add argument.
11234 (target_post_attach): Add argument.
11235 * target.c (debug_to_post_attach): Add argument.
11236 (update_current_target): Update.
11237 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11238 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11239 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11240 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11241 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11245 * windows-nat.c (windows_close): Add 'self' argument.
11246 * tracepoint.c (tfile_close): Add 'self' argument.
11247 * target.h (struct target_ops) <to_close>: Add argument.
11248 * target.c (target_close): Add argument.
11249 (update_current_target): Update.
11250 * remote.c (remote_close): Add 'self' argument.
11251 * remote-sim.c (gdbsim_close): Add 'self' argument.
11252 * remote-mips.c (mips_close): Add 'self' argument.
11253 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11254 * record-full.c (record_full_close): Add 'self' argument.
11255 * record-btrace.c (record_btrace_close): Add 'self' argument.
11256 * monitor.h (monitor_close): Add 'self' argument.
11257 * monitor.c (monitor_close): Add 'self' argument.
11258 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11259 * linux-nat.c (linux_nat_close): Add argument.
11260 * go32-nat.c (go32_close): Add 'self' argument.
11261 * exec.c (exec_close_1): Add 'self' argument.
11262 * ctf.c (ctf_close): Add 'self' argument.
11263 * corelow.c (core_close): Add 'self' argument.
11264 (core_close_cleanup): Update.
11265 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11266 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11270 * remote.c (remote_load): New function.
11271 (init_remote_ops): Use it.
11273 2014-02-19 Tom Tromey <tromey@redhat.com>
11275 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11277 * common/linux-btrace.h (linux_supports_btrace): Update.
11278 * remote.c (remote_supports_btrace): Add "self" argument.
11279 * target-delegates.c: Rebuild.
11280 * target.c (target_supports_btrace): Remove.
11281 * target.h (struct target_ops) <to_supports_btrace>: Add
11282 target_ops argument.
11283 (target_supports_btrace): New define.
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11287 * record-full.c (record_full_beneath_to_resume_ops)
11288 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11289 (record_full_beneath_to_wait)
11290 (record_full_beneath_to_store_registers_ops)
11291 (record_full_beneath_to_store_registers)
11292 (record_full_beneath_to_xfer_partial_ops)
11293 (record_full_beneath_to_xfer_partial)
11294 (record_full_beneath_to_insert_breakpoint_ops)
11295 (record_full_beneath_to_insert_breakpoint)
11296 (record_full_beneath_to_remove_breakpoint_ops)
11297 (record_full_beneath_to_remove_breakpoint)
11298 (record_full_beneath_to_stopped_by_watchpoint)
11299 (record_full_beneath_to_stopped_data_address)
11300 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11301 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11302 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11303 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11304 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11305 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11306 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11307 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11308 (record_full_resume, record_full_wait_1)
11309 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11310 (record_full_store_registers, record_full_xfer_partial)
11311 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11312 (record_full_async, record_full_core_xfer_partial): Use target
11314 * target-delegates.c: Rebuild.
11315 * target.c (current_xfer_partial): Remove.
11316 (update_current_target): Do not INHERIT or de_fault
11317 to_insert_breakpoint, to_remove_breakpoint,
11318 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11319 to_is_async_p, to_async. Do not set to_xfer_partial field.
11320 (default_xfer_partial): Simplify.
11321 (current_xfer_partial): Remove.
11322 (target_wait, target_resume): Simplify.
11323 (find_default_can_async_p, find_default_is_async_p): Update.
11324 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11325 to_xfer_partial, to_stopped_by_watchpoint,
11326 to_stopped_data_address.
11327 (target_store_registers): Simplify.
11328 (forward_target_remove_breakpoint)
11329 (forward_target_insert_breakpoint): Remove.
11330 (target_remove_breakpoint, target_insert_breakpoint)
11331 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11332 * target.h (struct target_ops) <to_resume, to_wait,
11333 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11334 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11335 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11337 (forward_target_remove_breakpoint)
11338 (forward_target_insert_breakpoint): Remove.
11339 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11341 (record_btrace_insert_breakpoint): Delegate directly.
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target-delegates.c: New file.
11347 * target.c: Include target-delegates.c.
11348 (init_dummy_target): Call install_dummy_methods.
11349 (complete_target_initialization): Call install_delegators.
11350 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11351 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11352 * make-target-delegates: New file.
11354 2014-02-19 Tom Tromey <tromey@redhat.com>
11356 * record.c (find_record_target): Use find_target_at.
11357 * target.c (find_target_at): New function.
11358 * target.h (find_target_at): Declare.
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11363 Add 'ops' argument.
11364 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11366 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11367 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11369 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11371 * linux-nat.c (save_sigtrap): Update.
11372 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11373 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11374 (linux_nat_close): Update.
11375 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11377 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11379 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11380 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11381 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11382 (tmp_to_async): Add 'ops' argument.
11383 (record_full_stopped_by_watchpoint, record_full_async)
11384 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11386 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11387 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11388 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11389 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11390 (remote_is_async_p, remote_async): Add 'ops' argument.
11391 (remote_stopped_data_address): Update.
11392 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11393 * target.c (update_current_target)
11394 (find_default_can_async_p, find_default_is_async_p): Update.
11395 (init_dummy_target): Update.
11396 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11397 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11398 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11399 (target_can_async_p, target_is_async_p, target_async)
11400 (target_stopped_by_watchpoint): Update.
11402 2014-02-19 Yao Qi <yao@codesourcery.com>
11405 * gdbarch.sh: Remove startup_gdbarch.
11406 * gdbarch.c: Regenerated.
11407 * gdbarch.h: Likewise.
11409 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11411 * rl78-tdep.c (rl78_g10_register_name): New function.
11412 (rl78_return_value): Add g10 support.
11413 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11416 2014-02-17 Doug Evans <xdje42@gmail.com>
11418 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11419 (SUBDIR_GUILE_SRCS): Ditto.
11420 (scm-gsmob.o): Ditto.
11422 2014-02-17 Yao Qi <yao@codesourcery.com>
11424 * gnu-nat.c (ILL_RPC): Declare defined function.
11426 2014-02-17 Yao Qi <yao@codesourcery.com>
11428 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11429 mach_msg_type_number_t.
11430 (gnu_write_inferior): Likewise.
11432 2014-02-17 Yao Qi <yao@codesourcery.com>
11434 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11436 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11437 (inf_validate_procs, inf_signal): Likewise.
11438 (S_exception_raise_request): Likewise.
11439 (do_mach_notify_dead_name): Likewise.
11440 (steal_exc_port): Likewise.
11441 (gnu_read_inferior): Change 'copy_count''s type to
11442 mach_msg_type_number_t.
11443 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11446 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11448 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11449 flag. Adjust all users; in particular...
11450 (gnu_wait): ..., don't decrement its value in here...
11451 (gnu_create_inferior): ..., and instead set the flag in here,
11452 around the startup_inferior call, and call that one with
11453 START_INFERIOR_TRAPS_EXPECTED.
11455 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11456 (ILL_RPC): ... new macro.
11457 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11458 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11459 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11460 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11461 functions with ILL_RPC macro.
11462 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11463 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11464 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11465 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11466 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11467 (S_proc_getlogin_reply, S_proc_getsid_reply)
11468 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11469 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11470 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11471 (S_proc_getnports_reply, S_proc_is_important_reply)
11472 (S_proc_get_code_reply): New stub functions, generated with
11475 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11476 collected the type check structures.
11478 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11480 2014-02-14 Doug Evans <dje@google.com>
11482 * target.c (target_write_partial): Fix result type.
11484 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11486 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11487 the proper offsets to access fpregset_t.
11489 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11491 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11492 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11493 * h8300-tdep.c (setmachinelist): Remove global.
11494 * hppa-tdep.c (hppa_sigtramp): Remove global.
11495 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11496 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11497 * ravenscar-thread.c (update_target_observer): Remove global.
11498 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11500 2014-02-12 Tom Tromey <tromey@redhat.com>
11502 * common/rsp-low.c: Update comments.
11503 * common/rsp-low.h: Update comments.
11505 2014-02-12 Tom Tromey <tromey@redhat.com>
11507 * common/rsp-low.c (convert_ascii_to_int): Remove.
11508 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11510 2014-02-12 Tom Tromey <tromey@redhat.com>
11512 * common/rsp-low.h (unhexify): Don't declare.
11513 * common/rsp-low.c (unhexify): Remove.
11515 2014-02-12 Tom Tromey <tromey@redhat.com>
11517 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11518 * common/rsp-low.c (convert_int_to_ascii): Remove.
11520 2014-02-12 Tom Tromey <tromey@redhat.com>
11522 * common/rsp-low.h (hexify): Don't declare.
11523 * common/rsp-low.c (hexify): Remove.
11525 2014-02-12 Tom Tromey <tromey@redhat.com>
11527 * common/rsp-low.c (hexify): Never take strlen of argument.
11529 2014-02-12 Tom Tromey <tromey@redhat.com>
11531 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11532 * remote.c (extended_remote_run, remote_rcmd)
11533 (remote_download_trace_state_variable, remote_save_trace_data)
11534 (remote_set_trace_notes): Update.
11535 * tracepoint.c (encode_source_string, tfile_write_status)
11536 (tfile_write_uploaded_tsv): Update.
11538 2014-02-12 Tom Tromey <tromey@redhat.com>
11540 * tracepoint.c: Include rsp-low.h.
11541 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11542 * remote.c: Include rsp-low.h.
11543 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11544 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11545 (remote_unescape_input): Move to common/rsp-low.c.
11546 * common/rsp-low.h: New file.
11547 * common/rsp-low.c: New file.
11548 * Makefile.in (SFILES): Add common/rsp-low.c.
11549 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11550 (COMMON_OBS): Add rsp-low.o.
11551 (rsp-low.o): New target.
11553 2014-02-12 Tom Tromey <tromey@redhat.com>
11555 * utils.h: Include print-utils.h.
11556 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11557 (int_string, core_addr_to_string, core_addr_to_string_nz)
11558 (hex_string, hex_string_custom): Don't declare.
11559 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11560 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11561 (hex_string_custom, int_string, core_addr_to_string)
11562 (core_addr_to_string_nz, host_address_to_string): Move to
11563 common/print-utils.c.
11564 * common/print-utils.h: New file.
11565 * common/print-utils.c: New file
11566 * Makefile.in (SFILES): Add common/print-utils.c.
11567 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11568 (COMMON_OBS): Add print-utils.o.
11569 (print-utils.o): New target.
11571 2014-02-12 Tom Tromey <tromey@redhat.com>
11573 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11575 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11577 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11579 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11581 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11582 if a PT_IO ptrace request returns sucessfully but indicates that 0
11583 bytes were transferred.
11585 2014-02-12 Pedro Alves <palves@redhat.com>
11586 Kevin Buettner <kevinb@redhat.com>
11588 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11589 TYPE_INSTANCE_FLAG_CODE_SPACE.
11591 2014-02-12 Pedro Alves <palves@redhat.com>
11593 * h8300-tdep.c (pseudo_from_raw_register)
11594 (raw_from_pseudo_register): New functions.
11595 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11598 2014-02-12 Pedro Alves <palves@redhat.com>
11600 * h8300-tdep.c (h8300_register_sim_regno): New function.
11601 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11602 gdbarch_register_sim_regno hook.
11604 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11606 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11608 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11610 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11612 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11614 * obsd-tdep.h (obsd_init_abi): New prototype.
11615 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11616 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11617 (obsd_init_abi): New functions.
11618 * i386obsd-tdep.c: Include "obsd-tdep.h".
11619 (i386obsd_init_abi): Call obsd_init_abi.
11620 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11621 (amd64obsd_init_abi): Call obsd_init_abi.
11622 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11623 obsd-tdep.c to gdb_target_obs.
11625 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11627 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11628 double float arguments to 16-byte in the argument slots.
11630 2014-02-11 Doug Evans <xdje42@gmail.com>
11632 * configure.ac: Don't crash if pkg-config is not found and guile
11633 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11635 * configure: Regenerate.
11637 2014-02-11 Yao Qi <yao@codesourcery.com>
11639 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11640 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11641 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11642 * gnu-nat.c (gnu_xfer_memory): Likewise.
11643 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11644 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11645 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11646 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11648 2014-02-11 Yao Qi <yao@codesourcery.com>
11650 * target.h (enum target_xfer_error): Rename to ...
11651 (enum target_xfer_status): ... it. New. All users updated.
11652 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11654 (TARGET_XFER_STATUS_ERROR_P): New macro.
11655 (target_xfer_error_to_string): Remove declaration.
11656 (target_xfer_status_to_string): Declare.
11657 (target_xfer_partial_ftype): Adjust it.
11658 (struct target_ops) <to_xfer_partial>: Return
11659 target_xfer_status. Add argument xfered_len. Update
11661 * target.c (target_xfer_error_to_string): Rename to ...
11662 (target_xfer_status_to_string): ... it. New. All callers
11664 (target_read_live_memory): Likewise. Call target_xfer_partial
11665 instead of target_read.
11666 (memory_xfer_live_readonly_partial): Return
11667 target_xfer_status. Add argument xfered_len.
11668 (raw_memory_xfer_partial): Likewise.
11669 (memory_xfer_partial_1): Likewise.
11670 (memory_xfer_partial): Likewise.
11671 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11672 properly. Update debug message.
11673 (default_xfer_partial, current_xfer_partial): Likewise.
11674 (target_write_partial): Likewise.
11675 (target_read_partial): Likewise. All callers updated.
11676 (read_whatever_is_readable): Likewise.
11677 (target_write_with_progress): Likewise.
11678 (target_read_alloc_1): Likewise.
11680 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11681 * auxv.c (procfs_xfer_auxv): Likewise.
11682 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11683 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11684 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11685 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11686 * corefile.c (read_memory): Adjust.
11687 * corelow.c (core_xfer_partial): Likewise.
11688 * ctf.c (ctf_xfer_partial): Likewise.
11689 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11691 (darwin_xfer_partial): Likewise.
11692 * exec.c (section_table_xfer_memory_partial): Likewise. All
11694 (exec_xfer_partial): Likewise.
11695 * exec.h (section_table_xfer_memory_partial): Update
11697 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11699 (gnu_xfer_partial): Likewise.
11700 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11701 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11702 (ia64_hpux_xfer_solib_got): Likewise.
11703 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11704 type of 'partial_len' to ULONGEST.
11705 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11706 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11707 (linux_nat_xfer_partial): Likewise.
11708 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11709 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11710 * monitor.c (monitor_xfer_memory): Likewise.
11711 (monitor_xfer_partial): Likewise.
11712 * procfs.c (procfs_xfer_partial): Likewise.
11713 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11714 * record-full.c (record_full_xfer_partial): Likewise.
11715 (record_full_core_xfer_partial): Likewise.
11716 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11717 (gdbsim_xfer_partial): Likewise.
11718 * remote.c (remote_write_bytes_aux): Likewise. All callers
11720 (remote_write_bytes, remote_read_bytes): Likewise. All
11722 (remote_flash_erase): Likewise. All callers updated.
11723 (remote_write_qxfer): Likewise. All callers updated.
11724 (remote_read_qxfer): Likewise. All callers updated.
11725 (remote_xfer_partial): Likewise.
11726 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11727 (rs6000_xfer_shared_libraries): Likewise.
11728 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11729 (sol_thread_xfer_partial): Likewise.
11730 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11731 (sparc_xfer_partial): Likewise.
11732 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11734 (spu_xfer_partial): Likewise.
11735 * spu-multiarch.c (spu_xfer_partial): Likewise.
11736 * tracepoint.c (tfile_xfer_partial): Likewise.
11737 * windows-nat.c (windows_xfer_memory): Likewise.
11738 (windows_xfer_shared_libraries): Likewise.
11739 (windows_xfer_partial): Likewise.
11740 * valprint.c: Replace 'target_xfer_error' with
11741 'target_xfer_status' in comments.
11743 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11745 Checked in by Joel Brobecker <brobecker@adacore.com>.
11746 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11748 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11750 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11751 function parameters.
11753 2014-02-10 Will Newton <will.newton@linaro.org>
11755 * elfread.c (elf_rel_plt_read): Look for a .got section if
11756 looking up .got.plt fails.
11757 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11758 on address passed to elf_gnu_ifunc_record_cache.
11759 (elf_gnu_ifunc_resolve_addr): Likewise.
11760 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11762 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11764 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11765 (X_RETTURN): New macro.
11766 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11768 * sparc64-tdep.c (sparc64_init_abi): Hook
11769 sparc_in_function_epilogue_p.
11771 2014-02-10 Gary Benson <gbenson@redhat.com>
11773 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11774 Rename name_matcher to symbol_matcher.
11776 2014-02-10 Gary Benson <gbenson@redhat.com>
11778 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11779 Use expand_symtabs_file_matcher_ftype and
11780 expand_symtabs_symbol_matcher_ftype.
11782 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11784 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11785 (struct ada_symbol_cache): New.
11786 (ada_free_symbol_cache): Forward declare.
11787 (struct ada_pspace_data): New.
11788 (ada_pspace_data_handle): New static global.
11789 (get_ada_pspace_data, ada_pspace_data_cleanup)
11790 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11791 (cache_space, cache): Delete, now folded inside struct
11793 (ada_get_symbol_cache): New function.
11794 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11796 (_initialize_ada_language): Remove initialization of cache_space.
11797 Move call to observer_attach_inferior_exit up, grouping it
11798 with the other observer registrations inside this function.
11799 Rename command to be more general. Add call to
11800 register_program_space_data_with_cleanup.
11802 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11804 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11805 ada_new_objfile_observer.
11806 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11807 (_initialize_tasks): Update uses of ada_new_objfile_observer
11808 and ada_tasks_normal_stop_observer.
11810 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11812 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11813 returned by the 'Length attribute to integer.
11815 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11817 * ada-lang.c (_initialize_ada_language): Initialize
11818 cache_space obstack.
11820 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11822 * ada-lang.c (HASH_SIZE): New macro.
11823 (struct cache_entry): New type.
11824 (cache_space, cache): New static globals.
11825 (ada_clear_symbol_cache, find_entry): New functions.
11826 (lookup_cached_symbol, cache_symbol): Implement.
11827 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11828 (_initialize_ada_language): Attach ada_new_objfile_observer
11829 and ada_free_objfile_observer.
11831 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11833 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11834 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11835 struct block * parameter.
11836 (ada_lookup_symbol_list_worker): Constify local variable "block".
11837 Remove cast which is no longer necessary.
11839 2014-02-10 Doug Evans <xdje42@gmail.com>
11841 Add Guile as an extension language.
11842 * NEWS: Mention Guile scripting.
11843 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11844 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11845 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11846 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11847 (CLIBS): Add GUILE_LIBS.
11848 (install-guile): New rule.
11849 (guile.o): New rule.
11850 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11851 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11852 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11853 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11854 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11855 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11856 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11857 * configure.ac: New option --with-guile.
11858 * configure: Regenerate.
11859 * config.in: Regenerate.
11860 * auto-load.c: Remove #include "python/python.h". Add #include
11861 "gdb/section-scripts.h".
11862 (source_section_scripts): Handle Guile scripts.
11863 (_initialize_auto_load): Add name of Guile objfile script to
11864 scripts-directory help text.
11865 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11866 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11867 (struct breakpoint): New member scm_bp_object.
11868 * defs.h (enum command_control_type): New value guile_control.
11869 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11871 (show_user): Update comment.
11872 (_initialize_cli_cmds): Update help text for "show user". Update help
11873 text for max-user-call-depth.
11874 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11876 (multi_line_command_p): Add guile_control.
11877 (print_command_lines): Handle guile_control.
11878 (execute_control_command, recurse_read_control_structure): Ditto.
11879 (process_next_line): Recognize "guile" commands.
11880 * disasm.c (gdb_disassemble_info): Make non-static.
11881 * disasm.h: #include "dis-asm.h".
11882 (struct gdbarch): Add forward decl.
11883 (gdb_disassemble_info): Declare.
11884 * extension.c: #include "guile/guile.h".
11885 (extension_languages): Add guile.
11886 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11887 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11888 * gdbtypes.c (get_unsigned_type_max): New function.
11889 (get_signed_type_minmax): New function.
11890 * gdbtypes.h (get_unsigned_type_max): Declare.
11891 (get_signed_type_minmax): Declare.
11892 * guile/README: New file.
11893 * guile/guile-internal.h: New file.
11894 * guile/guile.c: New file.
11895 * guile/guile.h: New file.
11896 * guile/scm-arch.c: New file.
11897 * guile/scm-auto-load.c: New file.
11898 * guile/scm-block.c: New file.
11899 * guile/scm-breakpoint.c: New file.
11900 * guile/scm-disasm.c: New file.
11901 * guile/scm-exception.c: New file.
11902 * guile/scm-frame.c: New file.
11903 * guile/scm-gsmob.c: New file.
11904 * guile/scm-iterator.c: New file.
11905 * guile/scm-lazy-string.c: New file.
11906 * guile/scm-math.c: New file.
11907 * guile/scm-objfile.c: New file.
11908 * guile/scm-ports.c: New file.
11909 * guile/scm-pretty-print.c: New file.
11910 * guile/scm-safe-call.c: New file.
11911 * guile/scm-string.c: New file.
11912 * guile/scm-symbol.c: New file.
11913 * guile/scm-symtab.c: New file.
11914 * guile/scm-type.c: New file.
11915 * guile/scm-utils.c: New file.
11916 * guile/scm-value.c: New file.
11917 * guile/lib/gdb.scm: New file.
11918 * guile/lib/gdb/boot.scm: New file.
11919 * guile/lib/gdb/experimental.scm: New file.
11920 * guile/lib/gdb/init.scm: New file.
11921 * guile/lib/gdb/iterator.scm: New file.
11922 * guile/lib/gdb/printing.scm: New file.
11923 * guile/lib/gdb/types.scm: New file.
11924 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11925 (VPATH): Add $(GUILE_SRCDIR).
11926 (GUILE_DIR): New variable.
11927 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11928 (all): Add stamp-guile dependency.
11929 (stamp-guile): New rule.
11930 (clean-guile, install-guile, uninstall-guile): New rules.
11931 (install-only): Add install-guile dependency.
11932 (uninstall): Add uninstall-guile dependency.
11933 (clean): Add clean-guile dependency.
11935 2014-02-09 Doug Evans <xdje42@gmail.com>
11937 Revert this patch (which I approved, mea culpa).
11939 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11941 * Makefile.in (all-lib): Remove.
11942 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11944 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11946 Fix Python stack corruption.
11947 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11950 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11952 * Makefile.in (all-lib): Remove.
11953 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11955 2014-02-07 Doug Evans <dje@google.com>
11957 * extension-priv.h (extension_language_script_ops): Add comment.
11958 (extension_language_ops): Add comment.
11959 (active_ext_lang_state): Fix typo in comment.
11961 2014-02-07 Pedro Alves <palves@redhat.com>
11963 PR breakpoints/16292
11964 * infrun.c (handle_signal_stop) <signal arrives while stepping
11965 over a breakpoint>: Switch back to the stepping thread.
11967 2014-02-07 Yao Qi <yao@codesourcery.com>
11969 * target.c (target_xfer_partial): Return zero if LEN is zero.
11971 2014-02-07 Yao Qi <yao@codesourcery.com>
11973 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11974 (ld_so_xfer_auxv): Likewise.
11975 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11976 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11977 * corelow.c (core_xfer_partial): Likewise.
11978 * ctf.c (ctf_xfer_partial): Likewise.
11979 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11980 (darwin_xfer_partial): Likewise.
11981 * exec.c (exec_xfer_partial): Likewise.
11982 * gnu-nat.c (gnu_xfer_partial): Likewise.
11983 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11984 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11985 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11986 * linux-nat.c (linux_xfer_siginfo): Likewise.
11987 (linux_proc_xfer_spu): Likewise.
11988 * procfs.c (procfs_xfer_partial): Likewise.
11989 * record-full.c (record_full_xfer_partial): Likewise.
11990 (record_full_core_xfer_partial): Likewise.
11991 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11992 * remote.c (remote_write_qxfer): Likewise.
11993 (remote_write_qxfer, remote_read_qxfer): Likewise.
11994 (remote_xfer_partial): Likewise.
11995 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11996 (rs6000_xfer_shared_libraries): Likewise.
11997 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11998 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11999 (spu_xfer_partial): Likewise.
12000 * target.c (memory_xfer_partial_1): Likewise.
12001 * tracepoint.c (tfile_xfer_partial): Likewise.
12002 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12003 (windows_xfer_partial): Likewise.
12005 2014-02-07 Yao Qi <yao@codesourcery.com>
12007 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12009 (core_xfer_shared_libraries_aix): Likewise.
12010 * gdbarch.c, gdbarch.h: Regenerated.
12011 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12012 ULONGEST. Change 'len_avail' type to ULONGEST.
12013 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12014 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12016 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12018 2014-02-07 Yao Qi <yao@codesourcery.com>
12020 * corefile.c (memory_error): Get 'exception' from ERR and pass
12021 'exception' to throw_error.
12023 2014-02-06 Doug Evans <xdje42@gmail.com>
12025 * configure.ac (libpython checking): Remove all but python.o from
12026 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12027 * configure: Regenerate.
12029 * Makefile.in (SFILES): Add extension.c.
12030 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12031 (COMMON_OBS): Add extension.o.
12032 * extension.h: New file.
12033 * extension-priv.h: New file.
12034 * extension.c: New file.
12036 * python/python-internal.h: #include "extension.h".
12037 (gdbpy_auto_load_enabled): Declare.
12038 (gdbpy_apply_val_pretty_printer): Declare.
12039 (gdbpy_apply_frame_filter): Declare.
12040 (gdbpy_preserve_values): Declare.
12041 (gdbpy_breakpoint_cond_says_stop): Declare.
12042 (gdbpy_breakpoint_has_cond): Declare.
12043 (void source_python_script_for_objfile): Delete.
12044 * python/python.c: #include "extension-priv.h".
12045 Delete inclusion of "observer.h".
12046 (extension_language_python): Moved here and renamed from
12047 script_language_python in py-auto-load.c.
12048 Redefined to be of type extension_language_defn.
12049 (python_extension_script_ops): New global.
12050 (python_extension_ops): New global.
12051 (struct python_env): New member previous_active.
12052 (restore_python_env): Call restore_active_ext_lang.
12053 (ensure_python_env): Call set_active_ext_lang.
12054 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12056 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12058 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12060 (gdbpy_eval_from_control_command): Renamed from
12061 eval_python_from_control_command, made static. New arg extlang.
12062 (gdbpy_source_script) Renamed from source_python_script, made static.
12064 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12065 result to int. New arg extlang.
12066 (gdbpy_source_objfile_script): Renamed from
12067 source_python_script_for_objfile, made static. New arg extlang.
12068 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12069 static. New args extlang, extlang_printers. Change result type to
12071 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12072 static. New arg extlang. Rename arg printers to extlang_printers
12073 and change type to ext_lang_type_printers *.
12074 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12075 static. Replace argument arg with extlang, extlang_printers.
12076 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12077 (!HAVE_PYTHON, source_python_script): Delete.
12078 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12079 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12080 (!HAVE_PYTHON, start_type_printers): Delete.
12081 (!HAVE_PYTHON, apply_type_printers): Delete.
12082 (!HAVE_PYTHON, free_type_printers): Delete.
12083 (_initialize_python): Delete call to observer_attach_before_prompt.
12084 (finalize_python): Set/restore active extension language.
12085 (gdbpy_finish_initialization) Renamed from
12086 finish_python_initialization, made static. New arg extlang.
12087 (gdbpy_initialized): New function.
12088 * python/python.h: #include "extension.h". Delete #include
12089 "value.h", "mi/mi-cmds.h".
12090 (extension_language_python): Declare.
12091 (GDBPY_AUTO_FILE_NAME): Delete.
12092 (enum py_bt_status): Moved to extension.h and renamed to
12093 ext_lang_bt_status.
12094 (enum frame_filter_flags): Moved to extension.h.
12095 (enum py_frame_args): Moved to extension.h and renamed to
12096 ext_lang_frame_args.
12097 (finish_python_initialization): Delete.
12098 (eval_python_from_control_command): Delete.
12099 (source_python_script): Delete.
12100 (apply_val_pretty_printer): Delete.
12101 (apply_frame_filter): Delete.
12102 (preserve_python_values): Delete.
12103 (gdbpy_script_language_defn): Delete.
12104 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12105 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12107 * auto-load.c: #include "extension.h".
12108 (GDB_AUTO_FILE_NAME): Delete.
12109 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12110 (script_language_gdb): Delete, moved to extension.c and renamed to
12111 extension_language_gdb.
12112 (source_gdb_script_for_objfile): Delete.
12113 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12114 (loaded_script): Change type of language member to
12115 struct extension_language_defn *.
12116 (init_loaded_scripts_info): Initialize
12117 unsupported_script_warning_printed.
12118 (maybe_add_script): Make static. Change type of language arg to
12119 struct extension_language_defn *.
12120 (clear_section_scripts): Reset unsupported_script_warning_printed.
12121 (auto_load_objfile_script_1): Rewrite to use extension language API.
12122 (auto_load_objfile_script): Make public. Remove support-compiled-in
12123 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12124 (source_section_scripts): Rewrite to use extension language API.
12125 (load_auto_scripts_for_objfile): Rewrite to use
12126 auto_load_scripts_for_objfile.
12127 (collect_matching_scripts_data): Change type of language member to
12128 struct extension_language_defn *.
12129 (auto_load_info_scripts): Change type of language arg to
12130 struct extension_language_defn *.
12131 (unsupported_script_warning_print): New function.
12132 (script_not_found_warning_print): Make static.
12133 (_initialize_auto_load): Rewrite construction of scripts-directory
12135 * auto-load.h (struct objfile): Add forward decl.
12136 (struct script_language): Delete.
12137 (struct auto_load_pspace_info): Add forward decl.
12138 (struct extension_language_defn): Add forward decl.
12139 (maybe_add_script): Delete.
12140 (auto_load_objfile_script): Declare.
12141 (script_not_found_warning_print): Delete.
12142 (auto_load_info_scripts): Update prototype.
12143 (auto_load_gdb_scripts_enabled): Declare.
12144 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12145 auto_load_python_scripts_enabled and made public.
12146 (script_language_python): Delete, moved to python.c.
12147 (gdbpy_script_language_defn): Delete.
12148 (info_auto_load_python_scripts): Update to use
12149 extension_language_python.
12151 * breakpoint.c (condition_command): Replace call to
12152 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12153 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12154 with call to breakpoint_ext_lang_cond_says_stop.
12155 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12156 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12157 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12158 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12160 (local_setattro): Print name of extension language with existing
12163 * valprint.c (val_print, value_print): Update to call
12164 apply_ext_lang_val_pretty_printer.
12165 * cp-valprint.c (cp_print_value): Update call to
12166 apply_ext_lang_val_pretty_printer.
12167 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12168 (gdbpy_apply_val_pretty_printer): Renamed from
12169 apply_val_pretty_printer. New arg extlang.
12170 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12172 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12173 extension language API.
12174 * cli/cli-script.c (execute_control_command): Update to call
12175 eval_ext_lang_from_control_command.
12177 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12178 enum ext_lang_bt_status values. Update call to
12179 apply_ext_lang_frame_filter.
12180 (mi_cmd_stack_list_locals): Ditto.
12181 (mi_cmd_stack_list_args): Ditto.
12182 (mi_cmd_stack_list_variables): Ditto.
12183 * mi/mi-main.c: Delete #include "python/python-internal.h".
12184 Add #include "extension.h".
12185 (mi_cmd_list_features): Replace reference to python internal variable
12186 gdb_python_initialized with call to ext_lang_initialized_p.
12188 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12189 Update to use enum ext_lang_frame_args. Update to call
12190 apply_ext_lang_frame_filter.
12191 * python/py-framefilter.c (extract_sym): Update to use enum
12192 ext_lang_bt_status.
12193 (extract_value, py_print_type, py_print_value): Ditto.
12194 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12195 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12196 (py_print_frame): Ditto.
12197 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12198 New arg extlang. Update to use enum ext_lang_bt_status.
12200 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12201 finish_python_initialization. Replace with call to
12202 finish_ext_lang_initialization.
12204 * typeprint.c (do_free_global_table): Update to call
12205 free_ext_lang_type_printers.
12206 (create_global_typedef_table): Update to call
12207 start_ext_lang_type_printers.
12208 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12209 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12210 (type_print_options): Change type of global_printers from "void *"
12211 to "struct ext_lang_type_printers *".
12213 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12214 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12215 (gdbpy_preserve_values): Renamed from preserve_python_values.
12217 (!HAVE_PYTHON, preserve_python_values): Delete.
12219 * utils.c (quit_flag): Delete, moved to extension.c.
12220 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12223 * eval.c: Delete #include "python/python.h".
12224 * main.c: Delete #include "python/python.h".
12226 * defs.h: Update comment.
12228 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12232 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12234 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12237 2014-02-05 Yao Qi <yao@codesourcery.com>
12239 * remote.c (remote_pass_signals): Remove local 'buf' and use
12241 (remote_program_signals): Likewise.
12243 2014-02-05 Yao Qi <yao@codesourcery.com>
12245 * ctf.c: Include "inferior.h" and "gdbthread.h".
12246 (CTF_PID): A new macro.
12247 (ctf_open): Call inferior_appeared and add_thread_silent.
12248 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12249 (ctf_thread_alive): New function.
12250 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12252 2014-02-05 Yao Qi <yao@codesourcery.com>
12256 2013-05-24 Yao Qi <yao@codesourcery.com>
12258 * tracepoint.c (TFILE_PID): Remove.
12259 (tfile_open): Don't add thread and inferior.
12260 (tfile_close): Don't set 'inferior_ptid'. Don't call
12261 exit_inferior_silent.
12262 (tfile_thread_alive): Remove.
12263 (init_tfile_ops): Don't set field 'to_thread_alive' of
12266 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12268 * remote.c (remote_start_remote): Call remote_check_symbols even
12269 if only symbol-file (not file) has been given.
12271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12273 * gdbarch.sh (skip_entrypoint): New callback.
12274 * gdbarch.c, gdbarch.h: Regenerate.
12275 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12276 * infrun.c (fill_in_stop_func): Likewise.
12277 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12278 (ppc_elfv2_elf_make_msymbol_special): New function.
12279 (ppc_elfv2_skip_entrypoint): Likewise.
12280 (ppc_linux_init_abi): Install them for ELFv2.
12282 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12284 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12285 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12286 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12287 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12288 structures returned in GPRs.
12290 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12292 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12293 offset to the stack parameter list for the ELFv2 ABI.
12295 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12297 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12298 set_gdbarch_convert_from_func_ptr_addr and
12299 set_gdbarch_elf_make_msymbol_special for ELFv1.
12300 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12301 function descriptors on ELFv1.
12302 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12303 set up r12 at function entry.
12305 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12307 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12308 (struct gdbarch_tdep): New member elf_abi.
12310 * rs6000-tdep.c: Include "elf/ppc64.h".
12311 (rs6000_gdbarch_init): Detect ELF ABI version.
12313 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12315 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12316 within a register pair holding a DFP 128-bit value on little-endian.
12317 (ppc64_sysv_abi_return_value_base): Likewise.
12318 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12319 (dfp_pseudo_register_write): Likewise.
12321 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12323 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12324 offset on little-endian when passing _Decimal32.
12325 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12327 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12329 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12330 of the overlapped FP register within the VSX register on little-
12332 (efpr_pseudo_register_write): Likewise.
12334 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12336 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12337 offset on little-endian when passing small structures.
12339 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12341 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12342 (struct ppc64_sysv_argpos): New data structure.
12343 (ppc64_sysv_abi_push_float): Remove.
12344 (ppc64_sysv_abi_push_val): New function.
12345 (ppc64_sysv_abi_push_integer): Likewise.
12346 (ppc64_sysv_abi_push_freg): Likewise.
12347 (ppc64_sysv_abi_push_vreg): Likewise.
12348 (ppc64_sysv_abi_push_param): Likewise.
12349 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12350 (ppc64_sysv_abi_return_value_base): New function.
12351 (ppc64_sysv_abi_return_value): Refactor to use it.
12353 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12355 * NEWS: Document new target powerpc64le-*-linux*.
12357 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12359 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12360 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12362 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12363 register set used in ELF core dumps. Add floating-point register set.
12365 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12367 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12368 dwarf2_to_gdb[] table using symbolic constants. Adjust
12369 penultimate entry from number representing the PC register
12370 to symbolic constant representing the MDR register. Add
12371 constant for the PC register to the end of the table.
12373 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12375 * bsd-kvm.c: Include <sys/param.h>
12377 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12379 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12381 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12383 * ada-lang.h (clear_ada_sym_cache): Delete.
12385 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12387 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12389 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12391 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12392 the sigreturn register save area only if the syscall is
12395 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12397 * valops.c (value_slice): Minor reformatting.
12399 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12401 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12403 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12405 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12406 New static globals.
12407 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12408 (ada_ignore_descriptive_types_p): New static global.
12409 (find_parallel_type_by_descriptive_type): Return immediately
12410 if ada_ignore_descriptive_types_p is set.
12411 (_initialize_ada_language): Register new commands "maintenance
12412 set ada", "maintenance show ada", "maintenance set ada
12413 ignore-descriptive-types" and "maintenance show ada
12414 ignore-descriptive-types".
12415 * NEWS: Add entry for new "maint ada set/show
12416 ignore-descriptive-types" commands.
12418 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12420 * record-btrace.c (record_btrace_close): Call btrace_teardown
12423 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12425 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12428 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12430 * ada-typeprint (type_is_full_subrange_of_target_type):
12432 (print_range): Add parameter bounds_prefered_p. If not set,
12433 try printing range types using the name of their base type.
12434 (print_range_type): Add parameter bounds_prefered_p.
12435 Use it in call to print_range.
12436 (print_array_type, ada_print_type): Update calls to print_range
12437 and print_range_type.
12439 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12441 * ada-typeprint.c (print_array_type, print_choices, print_range)
12442 (print_range_bound, print_dynamic_range_bound, print_range_type):
12443 Remove declaration.
12445 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12447 * ada-typeprint.c (print_range): Add missing empty line
12448 after local declaration.
12450 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12452 * ada-valprint.c (print_optional_low_bound): Get index_type's
12453 target type for as long as it is a TYPE_CODE_RANGE.
12455 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12457 * procfs.c (procfs_make_note_section): Remove assertion and
12458 associated comment.
12460 2014-01-24 Yao Qi <yao@codesourcery.com>
12462 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12463 * corelow.c (get_core_siginfo): Likewise.
12465 2014-01-24 Yao Qi <yao@codesourcery.com>
12467 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12468 ULONGEST. Don't check 'len' is negative.
12469 (remote_write_bytes): Change type of 'len' to ULONGEST.
12471 2014-01-23 Tom Tromey <tromey@redhat.com>
12474 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12475 Handle exception from frame.block.
12476 (FrameVars.fetch_frame_locals): Likewise.
12478 2014-01-23 Tom Tromey <tromey@redhat.com>
12481 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12482 on a NULL pointer. Move "goto error" to correct place.
12484 2014-01-23 Tom Tromey <tromey@redhat.com>
12487 * python/py-framefilter.c (apply_frame_filter): Call
12488 ensure_python_env after computing gdbarch.
12490 2014-01-23 Yao Qi <yao@codesourcery.com>
12492 * target.c (raw_memory_xfer_partial): Change argument type
12493 from void * to gdb_byte *.
12494 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12496 2014-01-22 Doug Evans <dje@google.com>
12498 New gdbserver option --debug-format=timestamp.
12499 * NEWS: Mention it.
12501 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12503 * syscalls/s390x-linux.xml: New file.
12504 * syscalls/s390-linux.xml: New file.
12505 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12506 (XML_SYSCALL_FILENAME_S390X): Likewise.
12507 (op_svc): New enum value for SVC opcode.
12508 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12509 (s390_linux_get_syscall_number): New function.
12510 (s390_gdbarch_init): Register '*get_syscall_number' and the
12511 syscall xml file name.
12512 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12513 "s390-linux.xml" and "s390x-linux.xml".
12514 * NEWS: Announce new feature.
12516 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12518 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12520 2014-01-22 Pedro Alves <palves@redhat.com>
12522 * xtensa-config.c: Include defs.h.
12524 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12526 * common/common-utils.h: Add "ARI:" comment beside __func__
12529 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12531 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12532 documentation a bit.
12534 2014-01-21 Roland McGrath <mcgrathr@google.com>
12536 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12537 * configure: Regenerate.
12538 * aclocal.m4: Regenerate.
12539 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12540 New substituted variables.
12541 (install-strip): New target.
12542 (INSTALL_SCRIPT): New substituted variable.
12543 (FLAGS_TO_PASS): Add it.
12544 (install-only): Use $(INSTALL_SCRIPT) rather than
12545 $(INSTALL_PROGRAM) for gcore.
12547 2014-01-20 Tom Tromey <tromey@redhat.com>
12549 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12552 2014-01-20 Tom Tromey <tromey@redhat.com>
12554 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12555 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12556 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12557 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12558 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12559 (struct cmd_list_element) <flags>: Remove.
12560 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12561 doc_allocated>: New fields.
12562 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12564 * maint.c (maintenance_do_deprecate): Update.
12565 * top.c (execute_command): Update.
12567 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12569 * xtensa-linux-nat.c: Include asm/ptrace.h.
12571 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12573 * Makefile.in (SFILES): Add d-support.c.
12574 (COMMON_OBS): Add d-support.o.
12575 * d-lang.h (d_parse_symbol): Add comment, now defined in
12577 * d-lang.c (parse_call_convention)
12578 (parse_attributes, parse_function_types)
12579 (parse_function_args, parse_type, parse_identifier)
12580 (call_convention_p, d_parse_symbol): Move functions to ...
12581 * d-support.c: ... New file.
12583 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12585 * d-lang.h (d_parse_symbol): Add declaration.
12586 * d-lang.c (extract_identifiers)
12587 (extract_type_info): Remove functions.
12588 (parse_call_convention, parse_attributes)
12589 (parse_function_types, parse_function_args)
12590 (parse_type, parse_identifier, call_convention_p)
12591 (d_parse_symbol): New functions.
12592 (d_demangle): Use d_parse_symbol to demangle D symbols.
12594 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12596 * d-lang.h (struct builtin_d_type): New data type.
12597 (builtin_d_type): Add declaration.
12598 * d-lang.c (d_language_arch_info, build_d_types)
12599 (builtin_d_type): New functions.
12600 (enum d_primitive_types): New data type.
12601 (d_language_defn): Change c_language_arch_info to
12602 d_language_arch_info.
12603 (d_type_data): New static variable.
12604 (_initialize_d_language): Initialize d_type_data.
12606 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12608 * d-lang.h (d_main_name): Add declaration.
12609 * d-lang.c (d_main_name): New function.
12610 * symtab.c (find_main_name): Add call to d_main_name.
12612 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12614 * d-lang.c (d_language_defn): Change macro_expansion_c to
12615 macro_expansion_no.
12617 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12619 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12621 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12623 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12624 gdb_exception" declaration.
12625 * remote.c (getpkt_or_notif_sane): Likewise.
12627 2014-01-17 Doug Evans <dje@google.com>
12629 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12630 function, contents of dirnames_to_char_ptr_vec_append moved here.
12631 (delim_string_to_char_ptr_vec): New function.
12632 (dirnames_to_char_ptr_vec_append): Rewrite.
12633 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12635 2014-01-17 Doug Evans <dje@google.com>
12637 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12639 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12640 #include "common-utils.h".
12641 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12642 * common/vec.h (VEC_ASSERT_PASS): Update.
12643 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12644 (MACH_CHECK_ERROR): Update.
12646 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12648 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12650 * gdbarch.h: Regenerate.
12652 2014-01-16 Tom Tromey <tromey@redhat.com>
12654 * value.c (struct value) <regnum>: Move earlier.
12656 2014-01-16 Tom Tromey <tromey@redhat.com>
12658 * remote.c (extended_remote_create_inferior): Rename from
12659 extended_remote_create_inferior_1. Add "ops" argument. Remove
12660 old implementation.
12662 2014-01-16 Pedro Alves <palves@redhat.com>
12664 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12665 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12668 2014-01-16 Doug Evans <dje@google.com>
12670 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12674 * btrace.h (btrace_thread_flag): New.
12675 (struct btrace_thread_info) <flags>: New.
12676 * record-btrace.c (record_btrace_resume_thread)
12677 (record_btrace_find_thread_to_move, btrace_step_no_history)
12678 (btrace_step_stopped, record_btrace_start_replaying)
12679 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12680 (record_btrace_find_resume_thread): New.
12681 (record_btrace_resume, record_btrace_wait): Extend.
12682 (record_btrace_can_execute_reverse): New.
12683 (record_btrace_open): Fail in non-stop mode.
12684 (record_btrace_set_replay): Split into this, ...
12685 (record_btrace_stop_replaying): ... this, ...
12686 (record_btrace_clear_histories): ... and this.
12687 (init_record_btrace_ops): Init to_can_execute_reverse.
12688 * NEWS: Announce it.
12690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12692 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12693 (forward_target_decr_pc_after_break)
12694 (target_decr_pc_after_break): New.
12695 * target.c (forward_target_decr_pc_after_break)
12696 (target_decr_pc_after_break): New.
12697 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12698 instead of gdbarch_decr_pc_after_break.
12699 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12700 instead of gdbarch_decr_pc_after_break.
12701 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12702 instead of gdbarch_decr_pc_after_break.
12703 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12704 instead of gdbarch_decr_pc_after_break.
12705 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12706 instead of gdbarch_decr_pc_after_break.
12707 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12708 instead of gdbarch_decr_pc_after_break.
12710 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12712 * btrace.c: Include regcache.h.
12713 (btrace_add_pc): New.
12714 (btrace_enable): Call btrace_add_pc.
12715 (btrace_is_empty): New.
12716 * btrace.h (btrace_is_empty): New.
12717 * record-btrace.c (require_btrace, record_btrace_info): Call
12720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12722 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12723 Support delta reads.
12724 (linux_disable_btrace): Change return type.
12725 * common/linux-btrace.h (linux_read_btrace): Change parameters
12726 and return type to allow error reporting. Update users.
12727 (linux_disable_btrace): Change return type. Update users.
12728 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12730 (btrace_error): New.
12731 (btrace_block) <begin>: Comment on BEGIN == 0.
12732 * btrace.c (btrace_compute_ftrace): Start from the end of
12734 (btrace_stitch_trace, btrace_clear_history): New.
12735 (btrace_fetch): Read delta trace, return if replaying.
12736 (btrace_clear): Move clear history code to btrace_clear_history.
12737 (parse_xml_btrace): Throw an error if parsing failed.
12738 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12739 and return type to allow error reporting.
12740 (target_read_btrace): Change parameters and return type to allow
12742 * target.c (target_read_btrace): Update.
12743 * remote.c (remote_read_btrace): Support delta reads. Pass
12745 * NEWS: Announce it.
12747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12749 * record.h (record_btrace_frame_unwind)
12750 (record_btrace_tailcall_frame_unwind): New declarations.
12751 * dwarf2-frame: Include record.h
12752 (dwarf2_frame_cfa): Throw an error for btrace frames.
12753 * record-btrace.c: Include hashtab.h.
12754 (btrace_get_bfun_name): New.
12755 (btrace_call_history): Call btrace_get_bfun_name.
12756 (struct btrace_frame_cache): New.
12758 (bfcache_hash, bfcache_eq, bfcache_new): New.
12759 (btrace_get_frame_function): New.
12760 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12761 (record_btrace_frame_this_id): Compute own id.
12762 (record_btrace_frame_prev_register): Provide PC, throw_error
12763 for all other registers.
12764 (record_btrace_frame_sniffer): Detect btrace frames.
12765 (record_btrace_tailcall_frame_sniffer): New.
12766 (record_btrace_frame_dealloc_cache): New.
12767 (record_btrace_frame_unwind): Add new functions.
12768 (record_btrace_tailcall_frame_unwind): New.
12769 (_initialize_record_btrace): Allocate cache.
12770 * btrace.c (btrace_clear): Call reinit_frame_cache.
12771 * NEWS: Announce it.
12773 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12775 * record-btrace.c (record_btrace_set_replay)
12776 (record_btrace_goto_begin, record_btrace_goto_end)
12777 (record_btrace_goto): New.
12778 (init_record_btrace_ops): Initialize them.
12779 * NEWS: Announce it.
12781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12783 * record-btrace.c (record_btrace_find_new_threads)
12784 (record_btrace_thread_alive): New.
12785 (init_record_btrace_ops): Initialize to_find_new_threads and
12788 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12790 * record-btrace.c (record_btrace_resume): New.
12791 (record_btrace_wait): New.
12792 (init_record_btrace_ops): Initialize to_wait and to_resume.
12794 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12796 * record-btrace.c (record_btrace_xfer_partial)
12797 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12798 (record_btrace_allow_memory_access): New.
12799 (init_record_btrace_ops): Initialize new methods.
12800 * target.c (raw_memory_xfer_partial): Bail out if target reports
12801 that this memory is not available.
12803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12805 * target.h (target_ops) <to_insert_breakpoint>
12806 <to_remove_breakpoint>: Add target_ops parameter.
12807 (forward_target_insert_breakpoint): New.
12808 (forward_target_remove_breakpoint): New.
12809 (memory_remove_breakpoint, memory_insert_breakpoint):
12810 Add target_ops parameter.
12811 * target.c (target_insert_breakpoint): Split into this and ...
12812 (forward_target_insert_breakpoint): ... this.
12813 (target_remove_breakpoint): Split into this and ...
12814 (forward_target_remove_breakpoint): ... this.
12815 (debug_to_insert_breakpoint): Add target_ops parameter.
12816 Call forward_target_insert_breakpoint.
12817 (debug_to_remove_breakpoint): Add target_ops parameter.
12818 Call forward_target_remove_breakpoint.
12819 (update_current_target): Do not inherit or default to_insert_breakpoint
12820 and to_remove_breakpoint.
12821 * corelow.c (ignore): Add target_ops parameter.
12822 * exec.c (ignore): Add target_ops parameter.
12823 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12824 Add target_ops parameter.
12825 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12826 Add target_ops parameter.
12827 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12828 Add target_ops parameter.
12829 * record-full.c (record_full_beneath_to_insert_breakpoint)
12830 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12831 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12832 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12833 (record_full_core_remove_breakpoint): Add target_ops parameter.
12835 (record_full_beneath_to_insert_breakpoint_ops)
12836 (record_full_beneath_to_remove_breakpoint_ops)
12837 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12838 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12839 tmp_to_remove_breakpoint_ops,
12840 record_full_beneath_to_insert_breakpoint_ops, and
12841 record_full_beneath_to_remove_breakpoint_ops.
12842 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12843 (m32r_remove_breakpoint): Add target_ops parameter.
12844 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12845 Add target_ops parameter.
12846 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12847 Add target_ops parameter.
12849 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12850 Markus Metzger <markus.t.metzger@intel.com>
12852 * record-btrace.c: Include frame-unwind.h.
12853 (record_btrace_frame_unwind_stop_reason)
12854 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12855 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12857 (init_record_btrace_ops): Install it.
12859 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12861 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12864 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12866 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12869 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12871 * frame-unwind.c: Include target.h.
12872 (frame_unwind_try_unwinder): New function with code from ...
12873 (frame_unwind_find_by_frame): ... here. New variable
12874 unwinder_from_target, call also target_get_unwinder)
12875 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12876 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12877 * target.h (struct target_ops): New fields to_get_unwinder and
12878 to_get_tailcall_unwinder.
12879 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12883 * record-btrace.c (record_btrace_fetch_registers)
12884 (record_btrace_store_registers)
12885 (record_btrace_to_prepare_to_store): New.
12886 (init_record_btrace_ops): Add the above.
12888 2014-01-16 Tom Tromey <tromey@redhat.com>
12890 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12891 * target.h (struct target_ops) <to_prepare_to_store>: Add
12893 (target_prepare_to_store): Add argument.
12894 * target.c (debug_to_prepare_to_store): Add argument.
12895 (update_current_target): Update.
12896 * remote.c (remote_prepare_to_store): Add 'self' argument.
12897 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12898 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12899 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12900 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12902 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12903 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12904 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12905 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12906 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12910 * btrace.h (replay) <replay>: New.
12911 (btrace_is_replaying): New.
12912 * btrace.c (btrace_clear): Free replay iterator.
12913 (btrace_is_replaying): New.
12914 * record-btrace.c (record_btrace_is_replaying): New.
12915 (record_btrace_info): Print insn number if replaying.
12916 (record_btrace_insn_history): Start at replay position.
12917 (record_btrace_call_history): Start at replay position.
12918 (init_record_btrace_ops): Init to_record_is_replaying.
12920 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12922 * record-btrace.c (record_btrace_insn_history_range): Include
12924 (record_btrace_insn_history_from): Adjust range.
12925 (record_btrace_call_history_range): Include
12927 (record_btrace_call_history_from): Adjust range.
12928 * NEWS: Announce changes.
12930 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12932 * record.h (enum record_print_flag)
12933 <record_print_indent_calls>: New.
12934 * record.c (get_call_history_modifiers): Recognize /c modifier.
12935 (_initialize_record): Document /c modifier.
12936 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12937 Reorder fields. Optionally indent the function name. Update
12939 * NEWS: Announce changes.
12941 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12943 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12945 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12947 * btrace.c (ftrace_new_function): Start counting at one.
12948 * record-btrace.c (record_btrace_info): Adjust number of calls
12950 * NEWS: Announce it.
12952 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12954 * record-btrace.c (btrace_call_history_insn_range): Print
12955 insn range as [begin, end].
12957 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12959 * btrace.h (struct btrace_func_link): New.
12960 (enum btrace_function_flag): New.
12961 (struct btrace_inst): Rename to ...
12962 (struct btrace_insn): ...this. Update all users.
12963 (struct btrace_func) <ibegin, iend>: Remove.
12964 (struct btrace_func_link): New.
12965 (struct btrace_func): Rename to ...
12966 (struct btrace_function): ...this. Update all users.
12967 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12968 (number, level, flags>: New.
12969 (struct btrace_insn_iterator): Rename to ...
12970 (struct btrace_insn_history): ...this.
12972 (struct btrace_insn_iterator, btrace_call_iterator): New.
12973 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12974 (struct btrace_target_info) <begin, end, level>
12975 <insn_history, call_history>: New.
12976 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12977 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12978 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12979 (btrace_call_number, btrace_call_begin, btrace_call_end)
12980 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12981 (btrace_find_function_by_number, btrace_set_insn_history)
12982 (btrace_set_call_history): New.
12983 * btrace.c (btrace_init_insn_iterator)
12984 (btrace_init_func_iterator, compute_itrace): Remove.
12985 (ftrace_print_function_name, ftrace_print_filename)
12986 (ftrace_skip_file): Change
12987 parameter to const.
12988 (ftrace_init_func): Remove.
12989 (ftrace_debug): Use new btrace_function fields.
12990 (ftrace_function_switched): Also consider gaining and
12991 losing symbol information).
12992 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12993 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12994 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12996 (ftrace_new_function): Move. Remove debug print.
12997 (ftrace_update_lines, ftrace_update_insns): New.
12998 (ftrace_update_function): Check for call, ret, and jump.
12999 (compute_ftrace): Renamed to ...
13000 (btrace_compute_ftrace): ...this. Rewritten to compute call
13002 (btrace_fetch, btrace_clear): Updated.
13003 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13004 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13005 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13006 (btrace_call_number, btrace_call_begin, btrace_call_end)
13007 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13008 (btrace_find_function_by_number, btrace_set_insn_history)
13009 (btrace_set_call_history): New.
13010 * record-btrace.c (require_btrace): Use new btrace thread
13012 (record_btrace_info, btrace_insn_history)
13013 (record_btrace_insn_history, record_btrace_insn_history_range):
13014 Use new btrace thread info fields and new iterator.
13015 (btrace_func_history_src_line): Rename to ...
13016 (btrace_call_history_src_line): ...this. Use new btrace
13017 thread info fields.
13018 (btrace_func_history): Rename to ...
13019 (btrace_call_history): ...this. Use new btrace thread info
13020 fields and new iterator.
13021 (record_btrace_call_history, record_btrace_call_history_range):
13022 Use new btrace thread info fields and new iterator.
13024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13026 * frame.h (frame_id_build_unavailable_stack_special): New.
13027 * frame.c (frame_id_build_unavailable_stack_special): New.
13029 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13031 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13032 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13033 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13035 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13036 (i386_insn_is_jump, i386_jmp_p): New.
13037 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13038 insn_is_jump to gdbarch.
13039 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13040 * gdbarch.h: Regenerated.
13041 * gdbarch.c: Regenerated.
13042 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13043 (default_insn_is_jump): New.
13044 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13045 (default_insn_is_jump): New.
13047 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13049 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13051 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13052 (btrace_read_type) <btrace_read_new>: Change to ...
13053 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13055 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13057 * common/linux-btrace.c (linux_read_btrace): Free trace from
13058 previous iteration.
13060 2014-01-15 Doug Evans <dje@google.com>
13062 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13065 2014-01-15 Tom Tromey <tromey@redhat.com>
13067 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13068 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13069 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13070 (set_objfile_main_name): New function.
13071 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13072 language_of_main>: New fields.
13073 (set_objfile_main_name): Declare.
13074 * symtab.c (find_main_name): Loop over objfiles to find the main
13076 (set_main_name): Now static.
13077 (get_main_info): Add comment.
13078 * symtab.h (set_main_name): Don't declare.
13080 2014-01-15 Tom Tromey <tromey@redhat.com>
13082 * symtab.c (main_progspace_key): New global.
13083 (struct main_info): New.
13084 (name_of_main, language_of_main): Remove.
13085 (get_main_info, main_info_cleanup): New function.
13086 (set_main_name, main_name, main_language): Use get_main_info.
13087 (_initialize_symtab): Initialize main_progspace_key.
13089 2014-01-15 Tom Tromey <tromey@redhat.com>
13091 * dbxread.c (process_one_symbol): Update.
13092 * dwarf2read.c (read_partial_die): Update.
13093 * symfile.c (set_initial_language): Call main_language.
13094 * symtab.c (language_of_main): Now static.
13095 (set_main_name): Add 'lang' parameter.
13096 (find_main_name): Update.
13097 (main_language): New function.
13098 (symtab_observer_executable_changed): Update.
13099 * symtab.h (set_main_name): Update.
13100 (language_of_main): Remove.
13101 (main_language): Declare.
13103 2014-01-15 Tom Tromey <tromey@redhat.com>
13105 * symfile.c (init_entry_point_info): Use new "initialized" field.
13107 * objfiles.h (struct entry_point) <initialized>: New field.
13108 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13109 (struct objfile) <ei>: ...here. Remove.
13110 * objfiles.c (entry_point_address_query): Update.
13112 2014-01-15 Tom Tromey <tromey@redhat.com>
13114 * objfiles.c (entry_point_address_query): Relocate entry point
13116 (objfile_relocate1): Do not relocate entry point address.
13117 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13118 <the_bfd_section_index>: New field.
13119 * symfile.c (init_entry_point_info): Find the entry point's
13122 2014-01-15 Tom Tromey <tromey@redhat.com>
13124 * solib-frv.c (enable_break): Use entry_point_address_query.
13126 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13128 * NEWS: Add note on improved process record-replay on
13129 arm*-linux* targets.
13131 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13133 * arm-tdep.c (enum arm_record_result): New enum.
13134 (arm_record_unsupported_insn): New function.
13135 (arm_record_coproc_data_proc): Removed.
13136 (thumb2_record_ld_st_multiple): New function.
13137 (thumb2_record_ld_st_dual_ex_tbb): New function.
13138 (thumb2_record_data_proc_sreg_mimm): New function.
13139 (thumb2_record_ps_dest_generic): New function.
13140 (thumb2_record_branch_misc_cntrl): New function.
13141 (thumb2_record_str_single_data): New function.
13142 (thumb2_record_ld_mem_hints): New function.
13143 (thumb2_record_ld_word): New function.
13144 (thumb2_record_lmul_lmla_div): New function.
13145 (thumb2_record_decode_insn_handler): New function.
13146 (decode_insn): Add thumb32 instruction handlers.
13148 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13150 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13151 (struct arm_linux_record_tdep): Declare.
13152 (arm_canonicalize_syscall): New function.
13153 (arm_all_but_pc_registers_record): New function.
13154 (arm_linux_syscall_record): New function.
13155 (arm_linux_init_abi): Add syscall recording constructs.
13156 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13157 decoding. (arm_record_coproc_data_proc): Update arm syscall
13159 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13160 <arm_syscall_record>: New field.
13161 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13164 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13166 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13167 register for push instruction recording.
13169 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13171 * arm-tdep.c (thumb_record_misc): Update to correct logical
13172 error while recording ldm, ldmia and pop instructions.
13174 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13176 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13178 2014-01-15 Pedro Alves <palves@redhat.com>
13180 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13181 (go32_resume, go32_fetch_registers, store_register)
13182 (go32_store_registers, go32_prepare_to_store)
13183 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13184 (go32_create_inferior, go32_can_run, go32_terminal_init)
13185 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13188 2014-01-15 Tom Tromey <tromey@redhat.com>
13190 * target.h (async_callback_ftype): New typedef.
13191 (struct target_ops) <to_async>: Use it.
13193 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13195 * python/py-value.c (get_field_type): Remove unnecessary curly
13196 braces for single-statement if block.
13198 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13200 * python/py-type.c (convert_field): Add missing empty line
13201 after declarations.
13203 2014-01-14 Doug Evans <dje@google.com>
13205 * symfile.h (expand_symtabs_matching): Renamed from
13206 expand_partial_symbol_names. Update prototype.
13207 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13208 * symfile.c (expand_symtabs_matching): Renamed from
13209 expand_partial_symbol_names. New args file_matcher, kind.
13210 Rename arg fun to symbol_matcher.
13211 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13212 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13213 ada_expand_partial_symbol_name.
13214 (ada_make_symbol_completion_list): Update to call
13215 expand_symtabs_matching.
13216 (ada_add_global_exceptions): Call expand_symtabs_matching.
13217 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13218 call map_symbol_filenames.
13219 * symtab.c (sources_info): Update to call map_symbol_filenames.
13220 (search_symbols): Call expand_symtabs_matching.
13221 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13222 (default_make_symbol_completion_list_break_on): Update to call
13223 expand_symtabs_matching.
13224 (make_source_files_completion_list): Update to call
13225 map_symbol_filenames.
13227 2014-01-14 Doug Evans <dje@google.com>
13229 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13230 (expand_symtabs_symbol_matcher_ftype): New typedef.
13231 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13232 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13233 * symfile.c (expand_partial_symbol_names): Update to use
13234 expand_symtabs_symbol_matcher_ftype.
13235 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13236 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13237 Arg name_matcher renamed to symbol_matcher.
13238 * psymtab.c (recursively_search_psymtabs): Update to use
13239 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13241 (expand_symtabs_matching_via_partial): Update to use
13242 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13243 Arg name_matcher renamed to symbol_matcher.
13245 2014-01-14 Doug Evans <dje@google.com>
13247 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13248 (map_partial_symbol_filenames): Ditto.
13249 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13250 (map_partial_symbol_filenames): Ditto.
13251 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13252 (map_partial_symbol_filenames): Ditto.
13253 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13254 (map_partial_symbol_filenames): Ditto.
13255 * symtab.c: Delete #include "psymtab.h".
13257 2014-01-14 Pedro Alves <palves@redhat.com>
13258 Tom Tromey <tromey@redhat.com>
13260 * infrun.c (use_displaced_stepping): Use find_record_target
13261 instead of RECORD_IS_USED.
13262 (adjust_pc_after_break): Use record_full_is_used instead of
13264 * record-btrace.c (record_btrace_open): Call record_preopen
13265 instead of checking RECORD_IS_USED.
13266 * record-full.c (record_full_shortname)
13267 (record_full_core_shortname): New globals.
13268 (record_full_is_used): New function.
13269 (find_full_open): Call record_preopen instead of checking
13271 (init_record_full_ops): Set the target's shortname to
13272 record_full_shortname.
13273 (init_record_full_core_ops): Set the target's shortname to
13274 record_full_core_shortname.
13275 * record-full.h (record_full_is_used): Declare.
13276 * record.c (find_record_target): Make extern.
13277 (record_preopen): New function.
13278 * record.h (RECORD_IS_USED): Delete macro.
13279 (find_record_target, record_preopen): Declare functions.
13281 2014-01-14 Yao Qi <yao@codesourcery.com>
13283 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13284 'len''s type to ULONGEST.
13285 (core_xfer_shared_libraries_aix): Likewise.
13286 * gdbarch.c, gdbarch.h: Regenerated.
13287 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13288 Change type of 'len' to ULONGEST.
13289 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13290 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13292 2014-01-14 Yao Qi <yao@codesourcery.com>
13294 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13295 type of 'len' to ULONGEST.
13296 (linux_xfer_osdata_processgroups): Likewise.
13297 (linux_xfer_osdata_threads): Likewise.
13298 (linux_xfer_osdata_fds): Likewise.
13299 (linux_xfer_osdata_isockets): Likewise.
13300 (linux_xfer_osdata_shm): Likewise.
13301 (linux_xfer_osdata_sem): Likewise.
13302 (linux_xfer_osdata_msg): Likewise.
13303 (linux_common_xfer_osdata): Likewise.
13304 (struct osdata_type) <getter>: Likewise.
13305 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13308 2014-01-14 Yao Qi <yao@codesourcery.com>
13310 * target.h (target_xfer_partial_ftype): Update.
13311 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13313 * aix-thread.c (aix_thread_xfer_partial): Change type of
13314 argument 'len' to ULONGEST.
13315 * auxv.c (procfs_xfer_auxv): Likewise.
13316 (ld_so_xfer_auxv): Likewise.
13317 (memory_xfer_auxv): Likewise.
13318 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13319 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13320 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13321 * corelow.c (core_xfer_partial): Likewise.
13322 * ctf.c (ctf_xfer_partial): Likewise.
13323 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13325 (darwin_read_dyld_info): Likewise.
13326 (darwin_xfer_partial): Likewise.
13327 * exec.c (section_table_xfer_memory_partial): Likewise.
13328 (exec_xfer_partial): Likewise.
13329 * exec.h (section_table_xfer_memory_partial): Update
13331 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13332 instead of plongest.
13333 (gnu_xfer_partial): Likewise.
13334 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13335 (ia64_hpux_xfer_solib_got): Likewise.
13336 (ia64_hpux_xfer_partial): Likewise.
13337 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13338 * inf-ptrace.c (inf_ptrace_xfer_partial):
13339 * inf-ttrace.c (inf_ttrace_xfer_partial):
13340 * linux-nat.c (linux_xfer_siginfo): Likewise.
13341 (linux_nat_xfer_partial): Likewise.
13342 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13343 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13344 * monitor.c (monitor_xfer_memory): Likewise.
13345 (monitor_xfer_partial): Likewise.
13346 * procfs.c (procfs_xfer_partial): Likewise.
13347 * record-full.c (record_full_xfer_partial): Likewise.
13348 (record_full_core_xfer_partial): Likewise.
13349 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13350 instead of plongest.
13351 (gdbsim_xfer_partial): Likewise.
13352 * remote.c (remote_xfer_partial): Likewise.
13353 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13354 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13356 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13357 (rs6000_xfer_shared_libraries): Likewise.
13358 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13359 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13360 (sparc_xfer_partial): Likewise.
13361 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13362 (spu_xfer_partial): Likewise.
13363 * spu-multiarch.c (spu_xfer_partial): Likewise.
13364 * target.c (target_read_live_memory): Likewise.
13365 (memory_xfer_live_readonly_partial): Likewise.
13366 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13367 (target_xfer_partial, default_xfer_partial): Likewise.
13368 (current_xfer_partial): Likewise.
13369 * tracepoint.c (tfile_xfer_partial): Likewise.
13370 * windows-nat.c (windows_xfer_memory): Likewise. Call
13371 pulongest instead of plongest.
13372 (windows_xfer_partial): Likewise.
13373 (windows_xfer_shared_libraries): Likewise.
13375 2014-01-14 Yao Qi <yao@codesourcery.com>
13377 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13378 target_xfer_partial_ftype.
13380 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13384 * valops.c (value_struct_elt_bitpos): New function
13385 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13386 object to 'None' if the field name is an empty string ("").
13387 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13388 attribute to look for a field when 'name' is 'None'.
13389 (get_field_type): New function
13391 2014-01-13 Doug Evans <dje@google.com>
13394 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13395 (try_open_dwop_file): Ditto.
13396 * gdb_bfd.c: #include "vec.h".
13397 (bfdp): New typedef.
13398 (struct gdb_bfd_data): New member included_bfds.
13399 (gdb_bfd_unref): Unref all included bfds.
13400 (gdb_bfd_record_inclusion): New function.
13401 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13403 2014-01-13 Tom Tromey <tromey@redhat.com>
13405 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13407 2014-01-13 Tom Tromey <tromey@redhat.com>
13409 * defs.h (use_windows): Remove.
13410 * gdb.c (main): Update.
13411 * main.c (captured_main, gdb_main): Update.
13412 * main.h (struct captured_main_args) <use_windows>: Remove.
13413 * top.c (use_windows): Remove.
13415 2014-01-13 Tom Tromey <tromey@redhat.com>
13417 * defs.h (deprecated_flush_hook): Remove.
13419 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13422 * linux-thread-db.c (try_thread_db_load): Add parameter
13423 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13424 (try_thread_db_load_from_pdir_1): Move it there from here.
13425 (try_thread_db_load_from_sdir): Update caller.
13426 (try_thread_db_load_from_dir): Move it there from here.
13428 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13430 * regformats/regdat.sh: Always rewrite the register file.
13432 2014-01-13 Pedro Alves <palves@redhat.com>
13434 * Makefile.in (CHECK_HEADERS): New variable.
13435 (check-headers:): New rule.
13437 2014-01-13 Tom Tromey <tromey@redhat.com>
13439 * cli/cli-setshow.c (do_set_command): Update.
13440 * defs.h (deprecated_set_hook): Remove.
13441 * top.c (deprecated_set_hook): Remove.
13443 2014-01-13 Pedro Alves <palves@redhat.com>
13445 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13446 the tracepoint if the PC is a pseudo-register.
13448 2014-01-13 Tom Tromey <tromey@redhat.com>
13450 * defs.h (XCALLOC): Remove.
13451 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13452 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13453 * dwarf2loc.c (allocate_piece_closure): Likewise.
13454 * elfread.c (elf_symfile_segments): Likewise.
13455 (elf_symfile_segments): Likewise.
13456 * gdbtypes.c (copy_type_recursive): Likewise.
13457 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13458 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13459 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13461 * mt-tdep.c (mt_gdbarch_init): Likewise.
13462 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13464 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13465 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13466 * registry.c (registry_alloc_data): Likewise.
13467 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13468 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13469 * serial.c (serial_fdopen_ops): Likewise.
13470 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13472 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13473 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13476 2014-01-13 Tom Tromey <tromey@redhat.com>
13478 * defs.h (XMALLOC): Remove.
13479 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13480 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13481 * cli-out.c (struct ui_out *): Likewise.
13482 * cli/cli-dump.c (add_dump_command): Likewise.
13483 (add_dump_command): Likewise.
13484 * complaints.c (get_complaints): Likewise.
13485 (find_complaint): Likewise.
13486 * dwarf2-frame.c (execute_cfa_program): Likewise.
13487 * dwarf2read.c (abbrev_table_read_table): Likewise.
13488 * gdbarch.sh: Likewise.
13489 * gdbarch.c: Rebuild.
13490 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13491 * interps.c (interp_new): Likewise.
13492 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13493 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13494 * mi/mi-console.c (mi_console_file_new): Likewise.
13495 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13496 * mi/mi-out.c (mi_out_new): Likewise.
13497 * mi/mi-parse.c (mi_parse): Likewise.
13498 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13499 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13500 * observer.c (xalloc_observer_list_node): Likewise.
13501 * regcache.c (regcache_xmalloc_1): Likewise.
13502 * reggroups.c (reggroup_new): Likewise.
13503 (_initialize_reggroup): Likewise.
13504 * registry.c (register_data_with_cleanup): Likewise.
13505 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13506 * ser-base.c (serial_ttystate): Likewise.
13507 * ser-mingw.c (make_pipe_state): Likewise.
13508 * ser-pipe.c (pipe_open): Likewise.
13509 * serial.c (serial_open): Likewise.
13510 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13511 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13512 (tui_alloc_win_info): Likewise.
13513 (tui_add_content_elements): Likewise.
13514 * tui/tui-file.c (tui_file_new): Likewise.
13515 * tui/tui-out.c (tui_out_new): Likewise.
13516 * ui-file.c (mem_file_new): Likewise.
13517 * ui-out.c (push_level): Likewise.
13518 (make_cleanup_ui_out_end): Likewise.
13519 (append_header_to_list): Likewise.
13520 (ui_out_new): Likewise.
13521 * user-regs.c (user_reg_add_builtin): Likewise.
13523 2014-01-13 Tom Tromey <tromey@redhat.com>
13525 * defs.h (XZALLOC): Remove.
13526 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13527 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13528 (get_ada_tasks_inferior_data): Likewise.
13529 * auto-load.c (get_auto_load_pspace_data): Likewise.
13530 * auxv.c (get_auxv_inferior_data): Likewise.
13531 * bfd-target.c (target_bfd_reopen): Likewise.
13532 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13533 (deprecated_insert_raw_breakpoint): Likewise.
13534 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13535 * corelow.c (core_open): Likewise.
13536 * darwin-nat.c (darwin_check_new_threads): Likewise.
13537 (darwin_attach_pid): Likewise.
13538 * dummy-frame.c (dummy_frame_push): Likewise.
13539 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13540 * dwarf2loc.c (allocate_piece_closure): Likewise.
13541 * elfread.c (elf_symfile_segments): Likewise.
13542 * eval.c (ptrmath_type_p): Likewise.
13543 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13544 * gdbtypes.c (alloc_type_arch): Likewise.
13545 (alloc_type_instance): Likewise.
13546 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13547 * inf-child.c (inf_child_can_use_agent): Likewise.
13548 * inflow.c (get_inflow_inferior_data): Likewise.
13549 * infrun.c (save_infcall_suspend_state): Likewise.
13550 * jit.c (jit_reader_load): Likewise.
13551 (get_jit_objfile_data): Likewise.
13552 (get_jit_program_space_data): Likewise.
13553 (jit_object_open_impl): Likewise.
13554 (jit_symtab_open_impl): Likewise.
13555 (jit_block_open_impl): Likewise.
13556 (jit_frame_sniffer): Likewise.
13557 * linux-fork.c (add_fork): Likewise.
13558 * maint.c (make_command_stats_cleanup): Likewise.
13559 * objfiles.c (get_objfile_pspace_data): Likewise.
13560 * opencl-lang.c (struct lval_closure): Likewise.
13561 * osdata.c (osdata_start_osdata): Likewise.
13562 * progspace.c (new_address_space): Likewise.
13563 (add_program_space): Likewise.
13564 * remote-sim.c (get_sim_inferior_data): Likewise.
13565 * sh-tdep.c (sh_gdbarch_init): Likewise.
13566 * skip.c (Ignore): Likewise.
13567 (skip_delete_command): Likewise.
13568 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13569 (library_list_start_library): Likewise.
13570 (solib_aix_current_sos): Likewise.
13571 * solib-darwin.c (get_darwin_info): Likewise.
13572 (darwin_current_sos): Likewise.
13573 * solib-dsbt.c (get_dsbt_info): Likewise.
13574 * solib-ia64-hpux.c (new_so_list): Likewise.
13575 (ia64_hpux_get_solib_linkage_addr): Likewise.
13576 * solib-spu.c (append_ocl_sos): Likewise.
13577 (spu_current_sos): Likewise.
13578 * solib-svr4.c (get_svr4_info): Likewise.
13579 (svr4_keep_data_in_core): Likewise.
13580 (library_list_start_library): Likewise.
13581 (svr4_default_sos): Likewise.
13582 (svr4_read_so_list): Likewise.
13583 * solib-target.c (library_list_start_library): Likewise.
13584 (solib_target_current_sos): Likewise.
13585 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13586 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13587 * symfile.c (default_symfile_segments): Likewise.
13588 * target-descriptions.c (tdesc_data_init): Likewise.
13589 (tdesc_create_reg): Likewise.
13590 (struct tdesc_type *): Likewise.
13591 (tdesc_create_vector): Likewise.
13592 (tdesc_set_struct_size): Likewise.
13593 (struct tdesc_type *): Likewise.
13594 (tdesc_free_feature): Likewise.
13595 (tdesc_create_feature): Likewise.
13596 * windows-nat.c (windows_add_thread): Likewise.
13597 (windows_make_so): Likewise.
13598 * xml-support.c (gdb_xml_body_text): Likewise.
13599 (gdb_xml_create_parser_and_cleanup): Likewise.
13600 (xml_process_xincludes): Likewise.
13601 * xml-syscall.c (allocate_syscalls_info): Likewise.
13602 (syscall_create_syscall_desc): Likewise.
13604 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13606 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13607 function, with code from i386_stap_parse_special_token.
13608 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13609 (i386_stap_parse_special_token): Move code to the two functions
13610 above; simplify it.
13612 2014-01-09 Pedro Alves <palves@redhat.com>
13613 Hui Zhu <hui@codesourcery.com>
13616 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13617 bp_err_string. Don't mark the location shlib_disabled if the
13618 error thrown wasn't a generic or memory error. Catch errors
13619 thrown while inserting breakpoints in overlayed code. Output
13620 error message of software breakpoints.
13621 * remote.c (remote_insert_breakpoint): If this breakpoint has
13622 target-side commands but this stub doesn't support Z0 packets,
13623 throw NOT_SUPPORTED_ERROR error.
13624 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13625 * target.h (target_insert_breakpoint): Extend comment.
13626 (target_insert_hw_breakpoint): Add comment.
13628 2014-01-08 Pedro Alves <palves@redhat.com>
13630 * remote.c (remote_add_thread): Add threads silently if starting
13632 (remote_notice_new_inferior): If in all-stop, and starting up,
13633 don't call notice_new_inferior.
13634 (get_current_thread): New function, factored out from ...
13635 (add_current_inferior_and_thread): ... this. Adjust.
13636 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13637 found any thread, then select the remote's current thread as GDB's
13638 current thread too.
13640 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13642 * NEWS: Create a new section for the next release branch.
13643 Rename the section of the current branch, now that it has
13646 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13648 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13649 * version.in: Bump version to 7.7.50.DATE-cvs.
13651 2014-01-08 Yao Qi <yao@codesourcery.com>
13653 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13654 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13655 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13657 2014-01-08 Yao Qi <yao@codesourcery.com>
13659 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13660 return value of bfd_get_filename to symbol_file_add_from_bfd.
13662 2014-01-08 Pierre Muller <muller@sourceware.org>
13665 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13666 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13667 to prim_record_mininal_symbol_and_info.
13668 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13669 in call to prim_record_minimal_symbol_and_info.
13670 (read_pe_exported_syms): Set index field of section_data.
13672 2014-01-07 Andrew Pinski <apinski@cavium.com>
13674 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13675 * features/aarch64.c: Regenerate.
13677 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13679 * target.c (return_null): Define.
13680 (update_current_target): Use it instead of return_zero for
13681 functions that return a pointer.
13683 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13685 * source.c (add_path): Fix check for duplicated paths in the previously
13688 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13690 * ada-lang.c: Remove duplicated include statements.
13691 * alphabsd-nat.c: Ditto.
13692 * amd64-darwin-tdep.c: Ditto.
13693 * amd64fbsd-nat.c: Ditto.
13694 * auto-load.c: Ditto.
13696 * breakpoint.c: Ditto.
13697 * dbxread.c: Ditto.
13698 * fork-child.c: Ditto.
13699 * gdb_usleep.c: Ditto.
13700 * i386-darwin-tdep.c: Ditto.
13701 * i386fbsd-nat.c: Ditto.
13703 * inferior.c: Ditto.
13704 * jv-lang.c: Ditto.
13705 * linux-nat.c: Ditto.
13706 * linux-tdep.c: Ditto.
13707 * m68kbsd-nat.c: Ditto.
13708 * m68klinux-nat.c: Ditto.
13709 * microblaze-tdep.c: Ditto.
13710 * mips-linux-tdep.c: Ditto.
13711 * mn10300-tdep.c: Ditto.
13712 * nto-tdep.c: Ditto.
13713 * opencl-lang.c: Ditto.
13715 * printcmd.c: Ditto.
13716 * regcache.c: Ditto.
13717 * remote-m32r-sdi.c: Ditto.
13719 * symfile.c: Ditto.
13721 * tilegx-linux-nat.c: Ditto.
13722 * tilegx-tdep.c: Ditto.
13723 * tracepoint.c: Ditto.
13725 * vaxbsd-nat.c: Ditto.
13726 * windows-nat.c: Ditto.
13727 * xtensa-tdep.c: Ditto.
13729 2014-01-07 Yao Qi <yao@codesourcery.com>
13731 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13733 2014-01-07 Yao Qi <yao@codesourcery.com>
13734 Joel Brobecker <brobecker@adacore.com>
13736 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13737 (pdc_write_regs): Likewise.
13738 (fetch_regs_kernel_thread): Likewise.
13739 (store_regs_kernel_thread): Likewise.
13741 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13743 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13744 tagged type objects to their actual type.
13746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13748 * ada-valprint.c (print_field_values): Add "language" parameter.
13749 Update calls to print_field_values and print_variant_part.
13750 Pass new parameter "language" in call to val_print instead
13751 of "current_language". Replace call to ada_val_print by call
13753 (print_variant_part): Add "language" parameter.
13754 (ada_val_print_struct_union): Update call to print_field_values.
13756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13758 * ada-valprint.c (ui_memcpy): Delete.
13759 (ada_print_floating): Update documentation. Add empty line
13760 between between function documentation and implementation.
13761 Delete variable "buffer". Use ui_file_xstrdup in place of
13762 ui_file_put. Minor adjustments following this change.
13764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13766 * ada-valprint.c (ada_val_print_string): New function,
13767 extracted from ada_val_print_array.
13768 (ada_val_print_array): Replace extracted code by call
13769 to ada_val_print_string followed by a return. Move
13770 "else" branch to the function's top block.
13772 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13774 * ada-valprint.c (ada_val_print_array): Move implementation
13775 down. Rename parameter "offset" and "val" into "offset_aligned"
13776 and "original_value" respectively. Add parameter "offset".
13778 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13780 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13781 re-organizing the code. Change the "???" message printed
13782 when target type is a TYPE_CODE_UNDEF into
13783 "<ref to undefined type>".
13785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13787 * ada-valprint.c (print_record): Delete, implementation inlined...
13788 (ada_val_print_struct_union): ... here. Remove call to
13789 ada_check_typedef in inlined implementation.
13791 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13793 * ada-valprint.c (ada_val_print_gnat_array): New function,
13794 extracted from ada_val_print_1;
13795 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13796 (ada_val_print_flt, ada_val_print_struct_union)
13797 (ada_val_print_ref): Likewise.
13798 (ada_val_print_1): Delete variables i and elttype.
13799 Replace extracted-out code by call to corresponding
13802 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13804 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13806 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13808 * ada-valprint.c (ada_val_print_1): Replace calls to
13809 ada_val_print_1 by calls to val_print.
13811 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13813 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13814 Update calls to self accordingly. Replace calls to c_val_print
13815 by calls to val_print.
13817 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13819 * ada-valprint.c (print_record): Delete declaration.
13820 (adjust_type_signedness, ada_val_print_1): Likewise.
13821 (ada_val_print): Move function implementation down.
13822 (print_variant_part, print_field_values, print_record):
13823 Move function implementation up.
13825 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13827 * python/py-type.c (typy_get_name): New function.
13828 (type_object_getset): Add entry for attribute "name".
13829 * NEWS: Add entry mentioning this new attribute.
13831 2014-01-07 Yao Qi <yao@codesourcery.com>
13833 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13836 2014-01-07 Yao Qi <yao@codesourcery.com>
13838 * gnu-nat.c (info_port_rights): Add qualifier const to
13841 2014-01-07 Yao Qi <yao@codesourcery.com>
13843 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13845 2014-01-07 Yao Qi <yao@codesourcery.com>
13847 * gnu-nat.c (make_inf) Update declaration.
13848 (make_inf): Make it static.
13849 (inf_set_traced): Likewise.
13850 (inf_port_to_thread, inf_task_died_status): Likewise.
13852 2014-01-07 Yao Qi <yao@codesourcery.com>
13854 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13856 2014-01-07 Yao Qi <yao@codesourcery.com>
13858 * gnu-nat.c (_initialize_gnu_nat): Declare.
13860 2014-01-07 Yao Qi <yao@codesourcery.com>
13862 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13864 (struct gdbarch_info) <byte_order>: Change type to
13866 <byte_order_for_code>: Likewise.
13867 * gdbarch.c, gdbarch.h: Regenerated.
13869 2014-01-06 Sasha Smundak <asmundak@google.com>
13871 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13873 2014-01-06 Tom Tromey <tromey@redhat.com>
13875 * doublest.c (convert_doublest_to_floatformat): Use const, not
13877 * somread.c (som_symtab_read): Likewise.
13879 2014-01-07 Hui Zhu <hui@codesourcery.com>
13881 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13882 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13883 (gdb_bfd_fopen): Ditto.
13884 (gdb_bfd_openr): Ditto.
13885 (gdb_bfd_openw): Ditto.
13886 (gdb_bfd_openr_iovec): Ditto.
13887 (gdb_bfd_fdopenr): Ditto.
13888 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13889 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13891 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13893 * symfile-mem.c (symbol_file_add_from_memory): Removed
13894 gdb_bfd_stash_filename.
13896 2014-01-03 Doug Evans <dje@google.com>
13898 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13901 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13903 Update year range in copyright notice of all files.
13905 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13907 * top.c (print_gdb_version): Set copyright year to 2014.
13909 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13911 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13913 For older changes see ChangeLog-2013.
13919 version-control: never